diff --git a/funcom_test.tar.gz b/funcom_test.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..66933e0da5d64e0c128d77787c2f6bca73246016 --- /dev/null +++ b/funcom_test.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36f6305f14ba50ffecb2136b5e280b5c008baea36430d6f129b12f7da6c17fe4 +size 1538595 diff --git a/funcom_test/10001320.txt b/funcom_test/10001320.txt deleted file mode 100644 index 394db997664ab5e4932c408a22938d74abc5e1e1..0000000000000000000000000000000000000000 --- a/funcom_test/10001320.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void parse(Connection con, ByteBuffer buf) { - int sz = buf.getShort() & 0xFFFF; - sz -= 2; - ByteBuffer b = (ByteBuffer)buf.slice().limit(sz); - b.order(ByteOrder.LITTLE_ENDIAN); - buf.position(buf.position()+sz); // read message fully - con.decript(b); - con.addReceivedMsg(b); - } - COM: <s> parse received packet push a message into inbound queue </s> - diff --git a/funcom_test/10001325.txt b/funcom_test/10001325.txt deleted file mode 100644 index 692a17d9c2837a49a7f735446cc795ad6457f954..0000000000000000000000000000000000000000 --- a/funcom_test/10001325.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void closeClient(Connection c) { - if (c.readBuffer != null) { - releaseBuffer(c.readBuffer); - c.readBuffer = null; - } - if (c.writeBuffer != null) { - releaseBuffer(c.writeBuffer); - c.writeBuffer = null; - } - try { c.close(); } catch (Exception dummy) {} - } - COM: <s> a helper method to close client if connection was </s> - diff --git a/funcom_test/10214587.txt b/funcom_test/10214587.txt deleted file mode 100644 index d3828992e53a5c8815579cad83cac96008de7432..0000000000000000000000000000000000000000 --- a/funcom_test/10214587.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected Document toDocument(String value) throws Exception { - org.apache.xerces.parsers.DOMParser parser = new org.apache.xerces.parsers.DOMParser(); - parser.setFeature("http://xml.org/sax/features/namespaces", true); - StringReader reader = new StringReader(value); - parser.parse(new InputSource(reader)); - reader.close(); - return parser.getDocument(); - } - COM: <s> convert xml string value to dom </s> - diff --git a/funcom_test/10215017.txt b/funcom_test/10215017.txt deleted file mode 100644 index 1a922f0c2f58e7faa20f31ccdc0284e4c02394f0..0000000000000000000000000000000000000000 --- a/funcom_test/10215017.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void updateUIFromDOMModel() { - - // 1. Get DOM Document from DOM Model. - Document document = model.getDocument(); - - // 3. Update SWT Table with DOM list of shapes (rectangle, ellipse) - if (shapesTableViewer.getInput() == null) - // Input is not initialized, set it - shapesTableViewer.setInput(document); - else - // refresh SWT Table - shapesTableViewer.refresh(); - } - COM: <s> update the ui from dom model </s> - diff --git a/funcom_test/10215277.txt b/funcom_test/10215277.txt deleted file mode 100644 index c330941afdf65934def3154dd3e0818efef02b36..0000000000000000000000000000000000000000 --- a/funcom_test/10215277.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addControllerErrorListener() { - ITkuiController controller = tkuiDocument.getController(); - if (controller != null - && this.getContainer() instanceof ITkuiWizardContainer) { - final ITkuiWizardContainer tkuiContainer = (ITkuiWizardContainer) this - .getContainer(); - final ITkuiWizardPage page = this; - controller - .addControllerErrorListener(new ITkuiControllerErrorListener() { - public void errorThrowed(Exception e) { - tkuiContainer.addControllerError(page, e); - } - }); - } - } - COM: <s> add controller error listner to display icon with error when controller </s> - diff --git a/funcom_test/10216042.txt b/funcom_test/10216042.txt deleted file mode 100644 index 81fe73f6a36e4c312a870839ab220f750867d6bd..0000000000000000000000000000000000000000 --- a/funcom_test/10216042.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public void editElement(Object element, int column) { - if (cellEditor != null) { - applyEditorValue(); - } - - IStructuredSelection structuredSelection; - if (element instanceof TreePath) { - structuredSelection = new TreeSelection((TreePath) element, viewer - .getComparer()); - } else { - structuredSelection = new StructuredSelection(element); - } - setSelection(structuredSelection, true); - Item[] selection = getSelection(); - if (selection.length != 1) { - return; - } - - treeItem = selection[0]; - - // Make sure selection is visible - showSelection(); - columnNumber = column; - activateCellEditor(); - - } - COM: <s> start editing the given element </s> - diff --git a/funcom_test/10216064.txt b/funcom_test/10216064.txt deleted file mode 100644 index 1951881463c10875686c4c7908a2a5ba81197a7b..0000000000000000000000000000000000000000 --- a/funcom_test/10216064.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void saveEditorValue(CellEditor cellEditor, Item treeItem) { - if (cellModifier != null) { - String property = null; - if (columnProperties != null - && columnNumber < columnProperties.length) { - property = columnProperties[columnNumber]; - } - cellModifier.modify(treeItem, property, cellEditor.getValue(), columnNumber); - } - } - COM: <s> saves the value of the currently active cell editor by delegating to the </s> - diff --git a/funcom_test/10216942.txt b/funcom_test/10216942.txt deleted file mode 100644 index 098303979854ce343b0c4f0b13a4f2d8a0ed31f5..0000000000000000000000000000000000000000 --- a/funcom_test/10216942.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public IMenuitem insertItemAt(int index, String label) { - IMenuitem menuitem = (IMenuitem) this.getOwnerDocument() - .createElementNS(XulConstants.XUL_NAMESPACE_URI, - XulConstants.MENUITEM_ELEMENT); - menuitem.setAttribute("label", label); - NodeList nodes = menupopup.getElementsByTagNameNS( - XulConstants.XUL_NAMESPACE_URI, XulConstants.MENUITEM_ELEMENT); - IMenuitem item = (IMenuitem) nodes.item(index); - menupopup.insertBefore(menuitem, item); - ((MenupopupImpl) menupopup).addComboItem(index, menuitem); - return menuitem; - } - COM: <s> creates a new menuitem element and inserts it at a specific position in </s> - diff --git a/funcom_test/10217229.txt b/funcom_test/10217229.txt deleted file mode 100644 index 2fc869ae72941bad8d15f3024b0caa4e24e5763b..0000000000000000000000000000000000000000 --- a/funcom_test/10217229.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setSharedVariables(Map variables) throws TemplateModelException { - if (variables != null) { - for (Iterator iter = variables.entrySet().iterator(); iter - .hasNext();) { - Map.Entry entry = (Map.Entry) iter.next(); - String key = (String) entry.getKey(); - Object value = entry.getValue(); - super.setSharedVariable(key, value); - } - - } - } - COM: <s> set shared variables </s> - diff --git a/funcom_test/10217245.txt b/funcom_test/10217245.txt deleted file mode 100644 index d6a86ee554fa6251f7873c069274ea9167151183..0000000000000000000000000000000000000000 --- a/funcom_test/10217245.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ITemplateEngine getTemplateEngine(String type) throws Exception { - // Get template engine defined into the Spring config - ITemplateEngine templateEngine = (ITemplateEngine) applicationContext - .getBean(type); - // Test if template engine have configuration ID - String configurationId = templateEngine.getConfigurationId(); - if (!StringUtils.isEmpty(configurationId)) { - // Template engine works with Configuration, get it - ITemplateConfiguration configuration = getTemplateConfiguration(configurationId); - templateEngine.setConfiguration(configuration); - } - return templateEngine; - } - COM: <s> return template engine of type code type code </s> - diff --git a/funcom_test/10217907.txt b/funcom_test/10217907.txt deleted file mode 100644 index 499b97e0fe549dfc8479ac705393991f8c9183b7..0000000000000000000000000000000000000000 --- a/funcom_test/10217907.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Composite createComposite(Composite parent, int numColumns) { - Composite composite = new Composite(parent, SWT.NULL); - - // GridLayout - GridLayout layout = new GridLayout(); - layout.numColumns = numColumns; - layout.makeColumnsEqualWidth = false; - layout.marginHeight = 0; - layout.marginWidth = 0; - composite.setLayout(layout); - - // GridData - GridData data = new GridData(SWT.FILL, SWT.FILL, true, false); - composite.setLayoutData(data); - return composite; - } - COM: <s> creates composite control and sets the default layout data </s> - diff --git a/funcom_test/10218506.txt b/funcom_test/10218506.txt deleted file mode 100644 index 8dd010216ac3b7b755370be1165a836e2e47032a..0000000000000000000000000000000000000000 --- a/funcom_test/10218506.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private EditPart getPartForElement(Object modelElement) { - if (modelElement instanceof Docflow) { - return new DocflowPart(); - } - if (modelElement instanceof State) { - return new StatePart(); - } - if (modelElement instanceof Transition) { - return new TransitionPart(); - } - if (modelElement instanceof Connection) { - return new ConnectionPart(); - } - throw new RuntimeException("Can't create part for model element: " - + ((modelElement != null) ? modelElement.getClass().getName() - : "null")); - } - COM: <s> maps an object to an edit part </s> - diff --git a/funcom_test/10218943.txt b/funcom_test/10218943.txt deleted file mode 100644 index 746a1aa3d8f7afe027533b429646826db59e7360..0000000000000000000000000000000000000000 --- a/funcom_test/10218943.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void saveColumnSettings() { - int columnCount = getTable().getColumnCount(); - for (int i = 0; i < columnCount; i++) { - getDialogSettings() - .put( - getQualifier() + ".columnWidth" + i, getTable().getColumn(i).getWidth()); //$NON-NLS-1$ - } - getDialogSettings().put(getQualifier() + ".sortColumn", fSortColumn); //$NON-NLS-1$ - } - COM: <s> persist table settings into the give dialog store prefixed with the </s> - diff --git a/funcom_test/10219363.txt b/funcom_test/10219363.txt deleted file mode 100644 index a54fba87c59cbc7db911e6930e9b2c920142d450..0000000000000000000000000000000000000000 --- a/funcom_test/10219363.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private SearchPatternData getPatternData() { - SearchPatternData match = findInPrevious(xpathCombo.getText()); - if (match != null) { - fPreviousSearchPatterns.remove(match); - } - match = new SearchPatternData(getXPath(), getXPathProcessorId(), - fFileTypeEditor.getFileTypes(), getContainer() - .getSelectedScope(), getContainer() - .getSelectedWorkingSets()); - fPreviousSearchPatterns.add(0, match); - return match; - } - COM: <s> return search pattern data and update previous searches </s> - diff --git a/funcom_test/10219398.txt b/funcom_test/10219398.txt deleted file mode 100644 index b5984895ab698bdf03529fb83b0a8f5a1eb55faf..0000000000000000000000000000000000000000 --- a/funcom_test/10219398.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void reset() throws XFormsException { - if (logger.isDebugEnabled()) { - logger.debug(this + " perform reset"); - } - // recreate instance document - this.instanceDocument = createInstanceDocument(); - // notify to another elements (UI or DOM) whcih are bounded - // with this instance that the instanceDocument to observe - // has changed. - rootNodeObservable.setRootNode(this.instanceDocument); - - } - COM: <s> performs element reset </s> - diff --git a/funcom_test/10221933.txt b/funcom_test/10221933.txt deleted file mode 100644 index df3fbe2fc6f77af675e28ce406904aab2b87a394..0000000000000000000000000000000000000000 --- a/funcom_test/10221933.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setDecorationBounds(int x, int y, int w, int h) { - if (this.bounds == null) { - this.bounds = new Rectangle(x, y, w, h); - } else { - this.bounds.setBounds(x, y, w, h); - } - synch(); - } - COM: <s> change the current decorated bounds </s> - diff --git a/funcom_test/10221965.txt b/funcom_test/10221965.txt deleted file mode 100644 index bf212874bd9655ab34cc9e50336cda89975d77b7..0000000000000000000000000000000000000000 --- a/funcom_test/10221965.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: protected void fillTextareaWithStyleSheetContent(InputStream stream) { - try { - StringWriter writer = new StringWriter(); - InputStreamReader streamReader = new InputStreamReader(stream); - BufferedReader buffer = new BufferedReader(streamReader); - String line = ""; - boolean b = false; - while (null != (line = buffer.readLine())) { - if (b) - writer.write("\n"); - writer.write(line); - b = true; - } - buffer.close(); - streamReader.close(); - String content = writer.toString(); - setStyleSheetContent(content); - } catch (Exception e) { - handleExceptions(e); - } - } - COM: <s> fill the text area which store the style sheet content with the </s> - diff --git a/funcom_test/10222579.txt b/funcom_test/10222579.txt deleted file mode 100644 index b4f76384b56bbe9e9fb60e0dba09883f871b3308..0000000000000000000000000000000000000000 --- a/funcom_test/10222579.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean equals(Object obj) { - if (obj == null || (obj.getClass() != getClass())) { - return false; - } - CSSConditionalSelectorImpl s = (CSSConditionalSelectorImpl)obj; - return (s.simpleSelector.equals(simpleSelector) && - s.condition.equals(condition)); - } - COM: <s> indicates whether some other object is equal to this one </s> - diff --git a/funcom_test/10222898.txt b/funcom_test/10222898.txt deleted file mode 100644 index 5786366ee586fc468f0a8ec1aaea24b4ca145f75..0000000000000000000000000000000000000000 --- a/funcom_test/10222898.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt) { - // Loop for CSS StyleSheet list parsed - StyleSheetList styleSheetList = documentCSS.getStyleSheets(); - int l = styleSheetList.getLength(); - for (int i = 0; i < l; i++) { - CSSStyleSheet styleSheet = (CSSStyleSheet) styleSheetList.item(i); - CSSStyleDeclaration styleDeclaration = getComputedStyle(styleSheet, - elt, pseudoElt); - if (styleDeclaration != null) - return styleDeclaration; - } - return null; - } - COM: <s> b dom b implements </s> - diff --git a/funcom_test/10223338.txt b/funcom_test/10223338.txt deleted file mode 100644 index 069f78e992d85e883a8a567597609d13f50d7e33..0000000000000000000000000000000000000000 --- a/funcom_test/10223338.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected String getHandlerClassName(String property) { - String handlerClassName = "CSSProperty"; - String[] s = StringUtils.split(property, "-"); - for (int i = 0; i < s.length; i++) { - String p = s[i]; - p = p.substring(0, 1).toUpperCase() + p.substring(1, p.length()); - handlerClassName += p; - } - handlerClassName += "Handler"; - return handlerClassName; - } - COM: <s> return the handler class name corresponding to the property label given </s> - diff --git a/funcom_test/10227347.txt b/funcom_test/10227347.txt deleted file mode 100644 index 8856b6cb7747ef8ab1c31367dcabd61779e0ecd3..0000000000000000000000000000000000000000 --- a/funcom_test/10227347.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Command getCommand(Request request) { - if (request instanceof ReconnectRequest) { - Object view = ((ReconnectRequest) request).getConnectionEditPart() - .getModel(); - if (view instanceof View) { - Integer id = new Integer(ModelVisualIDRegistry - .getVisualID((View) view)); - request.getExtendedData().put(VISUAL_ID_KEY, id); - } - } - return super.getCommand(request); - } - COM: <s> extended request data key to hold editpart visual id </s> - diff --git a/funcom_test/10228059.txt b/funcom_test/10228059.txt deleted file mode 100644 index 4997936f4e4246fc8c83d70d9b0c9c997a0dde52..0000000000000000000000000000000000000000 --- a/funcom_test/10228059.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addReturnValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Operation_returnValue_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Operation_returnValue_feature", "_UI_Operation_type"), - ModelPackage.Literals.OPERATION__RETURN_VALUE, - false, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the return value feature </s> - diff --git a/funcom_test/10228096.txt b/funcom_test/10228096.txt deleted file mode 100644 index 3364cdee37b7a26d5b5388b7d646aab796a72bbf..0000000000000000000000000000000000000000 --- a/funcom_test/10228096.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIsInPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Parameter_isIn_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Parameter_isIn_feature", "_UI_Parameter_type"), - ModelPackage.Literals.PARAMETER__IS_IN, - false, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the is in feature </s> - diff --git a/funcom_test/10228099.txt b/funcom_test/10228099.txt deleted file mode 100644 index 278619aecf2619475339938fae2656ff395f030d..0000000000000000000000000000000000000000 --- a/funcom_test/10228099.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIsOutPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Parameter_isOut_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Parameter_isOut_feature", "_UI_Parameter_type"), - ModelPackage.Literals.PARAMETER__IS_OUT, - false, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the is out feature </s> - diff --git a/funcom_test/10228107.txt b/funcom_test/10228107.txt deleted file mode 100644 index 563c518b42b61f01463948b434ae5c2334c99514..0000000000000000000000000000000000000000 --- a/funcom_test/10228107.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addReferencedInstancesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Instance_referencedInstances_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Instance_referencedInstances_feature", "_UI_Instance_type"), - ModelPackage.Literals.INSTANCE__REFERENCED_INSTANCES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the referenced instances feature </s> - diff --git a/funcom_test/10228580.txt b/funcom_test/10228580.txt deleted file mode 100644 index 8b721c1c2d8dbf00cbc41cb28affc81ffa74be4f..0000000000000000000000000000000000000000 --- a/funcom_test/10228580.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean equal(InputStream xml1, InputStream xml2) throws SAXException, IOException { - DOMParser parser1 = new DOMParser(); - DOMParser parser2 = new DOMParser(); - parser1.parse(new InputSource(xml1)); - parser2.parse(new InputSource(xml2)); - Document doc1 = parser1.getDocument(); - Document doc2 = parser2.getDocument(); - - return compareNodes(doc1.getDocumentElement(), doc2.getDocumentElement()); - } - COM: <s> performs the comparison of 2 xml files </s> - diff --git a/funcom_test/10237254.txt b/funcom_test/10237254.txt deleted file mode 100644 index eaa051fed93cd2a20518048288b91412ade80406..0000000000000000000000000000000000000000 --- a/funcom_test/10237254.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void eventPerfomed(FelperEvent event) { - if (event instanceof FelperMessageReceiveEvent) { - FelperMessageReceiveEvent newFelperMessageReceiveEvent = (FelperMessageReceiveEvent) event; - - if(logger.isDebugEnabled()) - logger.debug("Receive Event: " + newFelperMessageReceiveEvent + " with Message " + - newFelperMessageReceiveEvent.getMessage()); - } - } - COM: <s> receive event and process it </s> - diff --git a/funcom_test/10237266.txt b/funcom_test/10237266.txt deleted file mode 100644 index a716aced01842e53c72e7fa92884d82a9fbd4667..0000000000000000000000000000000000000000 --- a/funcom_test/10237266.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void removeUser(User removableUser) throws FelperUserAddRemoveOperationException{ - if (this.users.remove(removableUser)) { - if(logger.isDebugEnabled()) - logger.debug("User is Removed: " + removableUser); - } else { - logger.warn("Can`t remove user: " + removableUser); - throw new FelperUserAddRemoveOperationException("Can`t remove user: " + removableUser); - } - } - COM: <s> remove user and resize users array </s> - diff --git a/funcom_test/10237358.txt b/funcom_test/10237358.txt deleted file mode 100644 index 6e810d059445d15429653e09c7f2d16443cd418b..0000000000000000000000000000000000000000 --- a/funcom_test/10237358.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void sendMessageToPeer(UserConnection userConnection, Message message) throws FelperNotSentMessageException { - - SendMessageThread sendMessageThread = new SendMessageThread(userConnection, message); - sendMessageThread.start(); - - if (sendMessageThread.isInterrupted()) - throw new FelperNotSentMessageException(); - - } - COM: <s> send message to peer </s> - diff --git a/funcom_test/10262852.txt b/funcom_test/10262852.txt deleted file mode 100644 index de3391d9515659ee0cf30f887cef82da37c5b129..0000000000000000000000000000000000000000 --- a/funcom_test/10262852.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean vectorsToNearestCentroid() { - boolean converged = true; - for (int i = 0; i < vectors.size(); ++i) { - // Find centroid closest to current vector. - int nearest = vectors.get(i).nearest(centroids); - - // If there was a change then there is no convergence. - if (nearest != nearestCentroid[i]) { - converged = false; - } - nearestCentroid[i] = nearest; - } - updateNearestNeighbours(); - return converged; - } - COM: <s> assign vectors to nearest centroid </s> - diff --git a/funcom_test/10262853.txt b/funcom_test/10262853.txt deleted file mode 100644 index e01a98aa4bdb4bc2371db85350982ef1bf94163c..0000000000000000000000000000000000000000 --- a/funcom_test/10262853.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void updateNearestNeighbours() { - for (List<V> nn : nearestNeighbours) { - nn.clear(); - } - for (int i = 0; i < nearestCentroid.length; ++i) { - int nearest = nearestCentroid[i]; - nearestNeighbours.get(nearest).add(vectors.get(i)); - } - } - COM: <s> pre nearest centroid has been updated with nearest indexes </s> - diff --git a/funcom_test/10262887.txt b/funcom_test/10262887.txt deleted file mode 100644 index 277fb42c0c1d3acb4d68adc193768739239fdb6d..0000000000000000000000000000000000000000 --- a/funcom_test/10262887.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public double sumSquaredError(V parentEntry) { - double distance = 0.0; - if (isLeaf()) { - for (V key : keys) { - distance += key.distanceSquared(parentEntry); - } - } else { - for (int i = 0; i < count(); ++i) { - distance += children.get(i).sumSquaredError(keys.get(i)); - } - } - return distance; - } - COM: <s> calculate sum of squared error between vecotrs in leaves and their </s> - diff --git a/funcom_test/10262922.txt b/funcom_test/10262922.txt deleted file mode 100644 index 5ac88d40a2461ce5d4afc007e26f102830a82f78..0000000000000000000000000000000000000000 --- a/funcom_test/10262922.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void updateMean(V parentEntry) { - assert (!isLeaf()); - int[] weights = new int[count()]; - for (int iChild = 0; iChild < count(); ++iChild) { - weights[iChild] = children.get(iChild).totalCount; - } - parentEntry.updateMean(keys, weights); - } - COM: <s> update the means entries based on child entries 1 level down the tree </s> - diff --git a/funcom_test/10263089.txt b/funcom_test/10263089.txt deleted file mode 100644 index 9e50e14aa57137fc04fc72d16e26132678143dab..0000000000000000000000000000000000000000 --- a/funcom_test/10263089.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private boolean vectorsToNearestCentroid() { - boolean converged = true; - - for (int i = 0; i < data.size(); ++i) { - // Find centroid closest to current vector. - int nearest = data.get(i).nearest(centroids); - - // If there was a change then there is no convergence. - if (nearest != nearestCentroid[i]) { - converged = false; - } - nearestCentroid[i] = nearest; - } - - return converged; - } - COM: <s> pre set data </s> - diff --git a/funcom_test/10263190.txt b/funcom_test/10263190.txt deleted file mode 100644 index 8622e357659f0c6b7a91c7ad5e8d60dbeaa3cd57..0000000000000000000000000000000000000000 --- a/funcom_test/10263190.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void remove(int index) { - assert(!isLeaf()); - totalCount -= children[index].totalCount; - for (int i = index + 1; i < count; ++i) { - entries[i - 1] = entries[i]; - children[i - 1] = children[i]; - } - entries[count - 1] = null; - children[count - 1] = null; - --count; - } - COM: <s> remove a entry child pair </s> - diff --git a/funcom_test/10263895.txt b/funcom_test/10263895.txt deleted file mode 100644 index 6ac3ffb05c65153d1aa399ef05ae7ee97201cd7e..0000000000000000000000000000000000000000 --- a/funcom_test/10263895.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private float distortion(Vector[] currCentroids) { - // currently inefficient - // cost could be calculated when determining nearest centroids - float cost = 0.0f; - int[] nearestCentroids = vectorsToNearestCentroid(currCentroids); - for (int i = 0; i < vectorCount; ++i) { - cost += vectors[i].distance(currCentroids[nearestCentroids[i]]); - } - return cost; - } - COM: <s> sum of distances to nearest centroid </s> - diff --git a/funcom_test/10347019.txt b/funcom_test/10347019.txt deleted file mode 100644 index 67c6a5bdcc0973d6916ed7f23fe1150ff025bc67..0000000000000000000000000000000000000000 --- a/funcom_test/10347019.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void insertContent(Element element, Component component, Method method) { - - ResourceManager resourceManager = this.usiXMLInterfaceRenderer.resourceRetriever; - String resourceContent = resourceManager.getStringResourceContent(element); - - try { - method.invoke(component, resourceContent); - } catch (IllegalArgumentException e) { - e.printStackTrace(); - } catch (IllegalAccessException e) { - e.printStackTrace(); - } catch (InvocationTargetException e) { - e.printStackTrace(); - } - - } - COM: <s> inserts static content in a specific ui element </s> - diff --git a/funcom_test/1046747.txt b/funcom_test/1046747.txt deleted file mode 100644 index ea7ba315c9e0cb843f6eabd51c848deb9176e988..0000000000000000000000000000000000000000 --- a/funcom_test/1046747.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected TilesContainer createTilesContainer() throws TilesException { - ServletContextAdapter adaptedContext = new ServletContextAdapter( - new DelegatingServletConfig()); - TilesApplicationContext preliminaryContext = new ServletTilesApplicationContext( - adaptedContext); - AbstractTilesApplicationContextFactory contextFactory = AbstractTilesApplicationContextFactory - .createFactory(preliminaryContext); - this.tilesContext = contextFactory - .createApplicationContext(adaptedContext); - AbstractTilesContainerFactory factory = AbstractTilesContainerFactory - .getTilesContainerFactory(this.tilesContext); - return factory.createContainer(this.tilesContext); - } - COM: <s> create a tiles container for this web application </s> - diff --git a/funcom_test/1046774.txt b/funcom_test/1046774.txt deleted file mode 100644 index 1974d9a0f72cea26847eb96a9b61ecfffbb0e9d7..0000000000000000000000000000000000000000 --- a/funcom_test/1046774.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testDeleteBlobDataType() { - // 1. insert init data - insertBlobDataType(); - - // 2. select a blobDataType data - BlobDataType blobDataType = (BlobDataType) session.get( - BlobDataType.class, new Integer(4491)); - - // 3. remove data - session.delete(blobDataType); - - // 4. check if deletion is successful - blobDataType = (BlobDataType) session.get(BlobDataType.class, - new Integer(4491)); - assertNull(blobDataType); - } - COM: <s> flow 3 positive case blob type entity </s> - diff --git a/funcom_test/1046788.txt b/funcom_test/1046788.txt deleted file mode 100644 index d5dd61fdc9b59d87ddcb9f602f6f7cd06402fb0c..0000000000000000000000000000000000000000 --- a/funcom_test/1046788.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testAddCountryWithSequenceGenerator() throws Exception { - CountryWithSequence country1 = new CountryWithSequence(); - country1.setCountryId("KR"); - country1.setCountryName("Korea"); - - Integer countryCode = (Integer) session.save(country1); - assertEquals("fail to generate a new countryCode.", 0, countryCode - .intValue()); - assertNotNull("fail to add a new country with sequence generator.", - countryCode); - } - COM: <s> flow 2 positive case hibernate sequence generator </s> - diff --git a/funcom_test/1046802.txt b/funcom_test/1046802.txt deleted file mode 100644 index 9e8fb0ba703041a142da63ea68342b4de1571bb6..0000000000000000000000000000000000000000 --- a/funcom_test/1046802.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testAddCountryWithUUIDGenerator() throws Exception { - CountryWithUUID country1 = new CountryWithUUID(); - country1.setCountryId("KR"); - country1.setCountryName("대한민국"); - - String countryCode = (String) session.save(country1); - assertTrue("fail to generate a new countryCode.", countryCode - .indexOf("#") != -1); - assertNotNull("fail to add a new country with UUID generator.", - countryCode); - } - COM: <s> flow 6 positive case hibernate uuid generator country </s> - diff --git a/funcom_test/1046818.txt b/funcom_test/1046818.txt deleted file mode 100644 index 5a63936ce2ac25836bae20bddc36923a6c9cf937..0000000000000000000000000000000000000000 --- a/funcom_test/1046818.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testDeleteClobDataType() { - // 1. insert init data - insertClobDataType(); - - // 2. select a clobDataType data - ClobDataType clobDataType = (ClobDataType) session.get( - ClobDataType.class, new Integer(4491)); - - // 3. remove data - session.delete(clobDataType); - - // 4. check if deletion is successful - clobDataType = (ClobDataType) session.get(ClobDataType.class, - new Integer(4491)); - assertNull(clobDataType); - } - COM: <s> flow 3 positive case clob type entity </s> - diff --git a/funcom_test/10576200.txt b/funcom_test/10576200.txt deleted file mode 100644 index dfbf4b48943021c529c72c5156ec628d252f3ea5..0000000000000000000000000000000000000000 --- a/funcom_test/10576200.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void cleanup(ChannelHandlerContext ctx) { - // Make sure we dispose everything on exit on session close - SMTPSession smtpSession = (SMTPSession) ctx.getAttachment(); - - if (smtpSession != null) { - LifecycleUtil.dispose(smtpSession.getState().get(SMTPConstants.MAIL)); - LifecycleUtil.dispose(smtpSession.getState().get(SMTPConstants.DATA_MIMEMESSAGE_STREAMSOURCE)); - } - - super.cleanup(ctx); - } - COM: <s> cleanup temporary files </s> - diff --git a/funcom_test/10576314.txt b/funcom_test/10576314.txt deleted file mode 100644 index d036e2ac89046ba11e6aa983909c1807e2503023..0000000000000000000000000000000000000000 --- a/funcom_test/10576314.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: static protected String hostFromUriStr(String uriStr) { - debugOut("hostFromUriStr(\"" + uriStr + "\")"); - String host = null; - URI uri; - try { - uri = new URI(uriStr); - host = uri.getHost(); - } catch (URISyntaxException e) { - debugOut(e.getMessage()); - } - return host; - } - COM: <s> extracts and returns the host portion of uri string </s> - diff --git a/funcom_test/10576712.txt b/funcom_test/10576712.txt deleted file mode 100644 index 1da2fb7c057e4eeda91b60a7f55eaa9d7b7f8a2f..0000000000000000000000000000000000000000 --- a/funcom_test/10576712.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testInetAddress() throws UnknownHostException { - - // Test name alone (can be IPv4 or IPv6 depending on the OS plaform - // configuration). - address = InetAddress.getByName("localhost"); - assertEquals(true, address instanceof InetAddress); - assertEquals(true, address.toString().contains("localhost")); - - } - COM: <s> preliminary test method to validate the inet address behaviour v4 and v6 </s> - diff --git a/funcom_test/10576766.txt b/funcom_test/10576766.txt deleted file mode 100644 index 9c833f31a66af8e538884e43a00b650dd630e2c6..0000000000000000000000000000000000000000 --- a/funcom_test/10576766.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testHasCorrectArguments() { - CmdType cmd; - boolean result; - - cmd = CmdType.ADDDOMAIN; - - // Test bogus number - result = cmd.hasCorrectArguments(-1); - assertEquals(false, result); - - // Test actual number - result = cmd.hasCorrectArguments(cmd.getArguments()); - assertEquals(true, result); - - // Test known bad number - result = cmd.hasCorrectArguments(cmd.getArguments() - 1); - assertEquals(false, result); - } - COM: <s> test the has correct arguments method </s> - diff --git a/funcom_test/10576888.txt b/funcom_test/10576888.txt deleted file mode 100644 index 496068e2da65a8fdeef0d3e2e140cd43d0951bd6..0000000000000000000000000000000000000000 --- a/funcom_test/10576888.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Date getLastUpdated(Node node) throws RepositoryException { - try { - node = node.getNode("jcr:content"); - } catch (PathNotFoundException e) { - node = node.getProperty("jcr:content").getNode(); - } - return node.getProperty("jcr:lastModified").getDate().getTime(); - } - COM: <s> reads the update timestamp from the </s> - diff --git a/funcom_test/10576918.txt b/funcom_test/10576918.txt deleted file mode 100644 index 6a8581972dcbb374927ebb7e46cb03fb7be0e107..0000000000000000000000000000000000000000 --- a/funcom_test/10576918.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getRealName(String name, boolean ignoreCase) throws UsersRepositoryException { - if (ignoreCase) { - Iterator<String> it = list(); - while (it.hasNext()) { - String temp = it.next(); - if (name.equalsIgnoreCase(temp)) { - return temp; - } - } - return null; - } else { - return objectRepository.containsKey(name) ? name : null; - } - } - COM: <s> return the real name given the ignore case boolean parameter </s> - diff --git a/funcom_test/10577072.txt b/funcom_test/10577072.txt deleted file mode 100644 index 3c6cb8797eb5066f1100ad8f9c52d02905d96562..0000000000000000000000000000000000000000 --- a/funcom_test/10577072.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void rejectRemoteRecipient(MailAddress recipient) throws MessagingException { - // Update the flags of the received message - if (!isLeaveRemoteRecipient()) - setMessageDeleted(); - - if (isMarkRemoteRecipientSeen()) - setMessageSeen(); - - StringBuilder messageBuffer = new StringBuilder("Rejected mail intended for remote recipient: "); - messageBuffer.append(recipient); - messageBuffer.append('.'); - logStatusInfo(messageBuffer.toString()); - } - COM: <s> method reject remote recipient </s> - diff --git a/funcom_test/10577109.txt b/funcom_test/10577109.txt deleted file mode 100644 index 523772df049c40f0b4848bc240180da527d7ee02..0000000000000000000000000000000000000000 --- a/funcom_test/10577109.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void rejectUserUndefined(MailAddress recipient) throws MessagingException { - // Update the flags of the received message - if (!isLeaveUserUndefined()) - setMessageDeleted(); - - if (isMarkUserUndefinedSeen()) - setMessageSeen(); - - StringBuilder messageBuffer = new StringBuilder("Rejected mail intended for undefined user: "); - messageBuffer.append(recipient); - messageBuffer.append('.'); - logStatusInfo(messageBuffer.toString()); - } - COM: <s> method reject user undefined </s> - diff --git a/funcom_test/10577222.txt b/funcom_test/10577222.txt deleted file mode 100644 index 722a11e956134eda89587f7d16e4a5fdffabf3ce..0000000000000000000000000000000000000000 --- a/funcom_test/10577222.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void handleBouncing(Mail mail) throws MessagingException { - mail.setState(Mail.ERROR); - setMessageDeleted(); - - mail.setErrorMessage("This mail from FetchMail task " + getFetchTaskName() + " seems to be bouncing!"); - logStatusError("Message is bouncing! Deleted from message store and moved to the Error repository."); - } - COM: <s> method handle bouncing sets the mail state to error and delete from the </s> - diff --git a/funcom_test/10577360.txt b/funcom_test/10577360.txt deleted file mode 100644 index 0b0e54114fde6030a6938dbaded7d79e30593981..0000000000000000000000000000000000000000 --- a/funcom_test/10577360.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean lock(final Object key) { - Object theLock; - - synchronized (this) { - theLock = locks.get(key); - - if (null == theLock) { - locks.put(key, getCallerId()); - return true; - } else if (getCallerId() == theLock) { - return true; - } else { - return false; - } - } - } - COM: <s> lock on a given object </s> - diff --git a/funcom_test/10577422.txt b/funcom_test/10577422.txt deleted file mode 100644 index c4999ed9d795b8f5d6b3f64dcf78a3fa44297ae9..0000000000000000000000000000000000000000 --- a/funcom_test/10577422.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void setDestination(final String destination) throws ConfigurationException { - - if (!destination.startsWith(FileSystem.FILE_PROTOCOL)) { - throw new ConfigurationException("cannot handle destination " + destination); - } - - try { - m_baseDirectory = fileSystem.getFile(destination); - } catch (FileNotFoundException e) { - throw new ConfigurationException("Unable to acces destination " + destination, e); - } - - } - COM: <s> set the destination for the repository </s> - diff --git a/funcom_test/10577428.txt b/funcom_test/10577428.txt deleted file mode 100644 index 940c898ce9272c19bb77b638dea4802892223de8..0000000000000000000000000000000000000000 --- a/funcom_test/10577428.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected InputStream getInputStream(final String key) throws IOException { - // This was changed to SharedFileInputStream but reverted to - // fix JAMES-559. Usign SharedFileInputStream should be a good - // performance improvement, but more checks have to be done - // on the repository side to avoid concurrency in reading and - // writing the same file. - return new FileInputStream(encode(key)); - } - COM: <s> return the input stream which belongs to the given key </s> - diff --git a/funcom_test/10577511.txt b/funcom_test/10577511.txt deleted file mode 100644 index a36b1aad5be51a8f6975935b34f7d0e673a89006..0000000000000000000000000000000000000000 --- a/funcom_test/10577511.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void setMessageSeen() throws MessagingException { - // If the Seen flag is not handled by the folder - // allow a handler to do whatever it deems necessary - if (!getMessageIn().getFolder().getPermanentFlags().contains(Flags.Flag.SEEN)) - handleMarkSeenNotPermanent(); - else - getMessageIn().setFlag(Flags.Flag.SEEN, true); - } - COM: <s> set the seen flag </s> - diff --git a/funcom_test/10577532.txt b/funcom_test/10577532.txt deleted file mode 100644 index 60b477ef65b202e77b19fc78f0ba2f0f35f849aa..0000000000000000000000000000000000000000 --- a/funcom_test/10577532.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testAddRemoveContainsDifferentDomain() throws DomainListException { - domainList.addDomain(DOMAIN_1); - domainList.removeDomain(DOMAIN_2); - assertEquals(1, domainList.getDomains().length); - assertEquals(true, domainList.containsDomain(DOMAIN_1)); - } - COM: <s> add a domain and remove another domain and check first domain is still </s> - diff --git a/funcom_test/10577617.txt b/funcom_test/10577617.txt deleted file mode 100644 index 85b15d36bbb546606bc2d6635e17fa085267f6cb..0000000000000000000000000000000000000000 --- a/funcom_test/10577617.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public InputStream read(int size, boolean extraCRLF) throws DecodingException { - - // Unset the next char. - nextSeen = false; - nextChar = 0; - FixedLengthInputStream fin = new FixedLengthInputStream(this.in, size); - if (extraCRLF) { - return new EolInputStream(this, fin); - } else { - return fin; - } - } - COM: <s> reads and consumes a number of characters from the underlying reader </s> - diff --git a/funcom_test/10577622.txt b/funcom_test/10577622.txt deleted file mode 100644 index 6c3f4641e167e16bfcc2a8fd97b367f6fc747304..0000000000000000000000000000000000000000 --- a/funcom_test/10577622.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public char nextChar() throws DecodingException { - if (!nextSeen) { - int next = -1; - - if (buffer.readable()) { - next = buffer.readByte(); - read++; - } else { - throw new NotEnoughDataException(); - } - nextSeen = true; - nextChar = (char) next; - } - return nextChar; - } - COM: <s> return the next char to read </s> - diff --git a/funcom_test/10577759.txt b/funcom_test/10577759.txt deleted file mode 100644 index ee1265dea277a107c95c94a47c31c75596a44899..0000000000000000000000000000000000000000 --- a/funcom_test/10577759.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Response onCommand(POP3Session session, Request request) { - POP3Response response = null; - if (session.getHandlerState() == POP3Session.TRANSACTION) { - stat(session); - response = new POP3Response(POP3Response.OK_RESPONSE); - } else { - response = new POP3Response(POP3Response.ERR_RESPONSE); - } - return response; - } - COM: <s> handler method called upon receipt of a rset command </s> - diff --git a/funcom_test/10577824.txt b/funcom_test/10577824.txt deleted file mode 100644 index 3537d7d3927dfc710c3875c1c4142b3c283220ac..0000000000000000000000000000000000000000 --- a/funcom_test/10577824.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private ReadOnlyLDAPUser buildUser(String userDN) throws NamingException { - ReadOnlyLDAPUser result; - - Attributes userAttributes = ldapConnection.getLdapContext().getAttributes(userDN); - Attribute userName = userAttributes.get(userIdAttribute); - - result = new ReadOnlyLDAPUser(userName.get().toString(), userDN, ldapHost); - - return result; - } - COM: <s> given a user dn this method retrieves the user attributes from the ldap </s> - diff --git a/funcom_test/10577846.txt b/funcom_test/10577846.txt deleted file mode 100644 index f144cc4ce1662e977e3314e7098038bc828b49c1..0000000000000000000000000000000000000000 --- a/funcom_test/10577846.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void registerMBeans() throws MalformedObjectNameException, JMException { - - String baseObjectName = "org.apache.james:type=component,component=mailetcontainer,name=processor,"; - - String[] processorNames = mList.getProcessorStates(); - for (int i = 0; i < processorNames.length; i++) { - String processorName = processorNames[i]; - registerProcessorMBean(baseObjectName, processorName); - } - } - COM: <s> register all jmx mbeans </s> - diff --git a/funcom_test/10577848.txt b/funcom_test/10577848.txt deleted file mode 100644 index 04b196b70c525f3c41c5f4e9715bfa60eeebf3f7..0000000000000000000000000000000000000000 --- a/funcom_test/10577848.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void registerProcessorMBean(String baseObjectName, String processorName) throws MalformedObjectNameException, JMException { - String processorMBeanName = baseObjectName + "processor=" + processorName; - - MailProcessorManagement processorDetail = new MailProcessorManagement(processorName); - registerMBean(processorMBeanName, processorDetail); - mMap.put(mList.getProcessor(processorName), processorDetail); - - } - COM: <s> register a jmx mbean for a </s> - diff --git a/funcom_test/10577856.txt b/funcom_test/10577856.txt deleted file mode 100644 index ad33437b014be5784f64c36ef8308fb7b4e588c7..0000000000000000000000000000000000000000 --- a/funcom_test/10577856.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void update(long processTime, boolean success) { - long fastest = fastestProcessing.get(); - - if (fastest > processTime || fastest == -1) { - fastestProcessing.set(processTime); - } - - if (slowestProcessing.get() < processTime) { - slowestProcessing.set(processTime); - } - if (success) { - successCount.incrementAndGet(); - } else { - errorCount.incrementAndGet(); - } - - lastProcessing.set(processTime); - - } - COM: <s> update the stats </s> - diff --git a/funcom_test/10578060.txt b/funcom_test/10578060.txt deleted file mode 100644 index 650adc910d15dd480d52ff4140dab867657b7f74..0000000000000000000000000000000000000000 --- a/funcom_test/10578060.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public boolean tableExists(DatabaseMetaData dbMetaData, String tableName) throws SQLException { - return (tableExistsCaseSensitive(dbMetaData, tableName) || tableExistsCaseSensitive(dbMetaData, tableName.toUpperCase(Locale.US)) || tableExistsCaseSensitive(dbMetaData, tableName.toLowerCase(Locale.US))); - } - COM: <s> checks database metadata to see if a table exists </s> - diff --git a/funcom_test/10578061.txt b/funcom_test/10578061.txt deleted file mode 100644 index 2b9872566e31a57c1c8caf951b798d5777162fd5..0000000000000000000000000000000000000000 --- a/funcom_test/10578061.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void updateHamTokens(Connection conn) throws java.sql.SQLException { - updateTokens(conn, getHamTokenCounts(), sqlQueries.getSqlString("insertHamToken", true), sqlQueries.getSqlString("updateHamToken", true)); - - setMessageCount(conn, sqlQueries.getSqlString("updateHamMessageCounts", true), getHamMessageCount()); - } - COM: <s> updates the database with new ham token frequencies </s> - diff --git a/funcom_test/10578063.txt b/funcom_test/10578063.txt deleted file mode 100644 index 513f84761efa6a154688a5e68786b0931c33be94..0000000000000000000000000000000000000000 --- a/funcom_test/10578063.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void updateSpamTokens(Connection conn) throws java.sql.SQLException { - updateTokens(conn, getSpamTokenCounts(), sqlQueries.getSqlString("insertSpamToken", true), sqlQueries.getSqlString("updateSpamToken", true)); - - setMessageCount(conn, sqlQueries.getSqlString("updateSpamMessageCounts", true), getSpamMessageCount()); - } - COM: <s> updates the database with new spam token frequencies </s> - diff --git a/funcom_test/10578066.txt b/funcom_test/10578066.txt deleted file mode 100644 index 08446464b20b5837598726a8f59ab455eaf76c31..0000000000000000000000000000000000000000 --- a/funcom_test/10578066.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void resetData(Connection conn) throws SQLException { - deleteData(conn, sqlQueries.getSqlString("deleteHamTokens", true)); - deleteData(conn, sqlQueries.getSqlString("deleteSpamTokens", true)); - deleteData(conn, sqlQueries.getSqlString("deleteMessageCounts", true)); - } - COM: <s> reset all trained data </s> - diff --git a/funcom_test/10578067.txt b/funcom_test/10578067.txt deleted file mode 100644 index feffe436b0a5587ef448b500326d0628da759053..0000000000000000000000000000000000000000 --- a/funcom_test/10578067.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean columnExistsCaseSensitive(DatabaseMetaData dbMetaData, String tableName, String columnName) throws SQLException { - ResultSet rsTables = dbMetaData.getColumns(null, null, tableName, columnName); - try { - boolean found = rsTables.next(); - return found; - } finally { - closeJDBCResultSet(rsTables); - } - } - COM: <s> checks database metadata to see if a column exists in a table </s> - diff --git a/funcom_test/10578077.txt b/funcom_test/10578077.txt deleted file mode 100644 index 03a17b7107cd01e327031c28e672ae8e74176428..0000000000000000000000000000000000000000 --- a/funcom_test/10578077.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void initSqlQueries(Connection conn, File sqlFile) throws Exception { - try { - if (conn.getAutoCommit()) { - conn.setAutoCommit(false); - } - - sqlQueries.init(sqlFile, JDBCBayesianAnalyzer.class.getName(), conn, getSqlParameters()); - - checkTables(conn); - } finally { - theJDBCUtil.closeJDBCConnection(conn); - } - } - COM: <s> initializes the sql query environment from the sql resources file </s> - diff --git a/funcom_test/10578158.txt b/funcom_test/10578158.txt deleted file mode 100644 index 2cb46e481a049386a8e7c4a4e583c2741fbe881a..0000000000000000000000000000000000000000 --- a/funcom_test/10578158.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public long getMessageSize() throws MessagingException { - if (source != null && !isModified()) { - try { - return source.getMessageSize(); - } catch (IOException ioe) { - throw new MessagingException("Error retrieving message size", ioe); - } - } else { - return MimeMessageUtil.calculateMessageSize(this); - } - } - COM: <s> returns size of message ie headers and content </s> - diff --git a/funcom_test/10578274.txt b/funcom_test/10578274.txt deleted file mode 100644 index 0e03d497aaf1046e7a6f54e6863d87e3f9b8dee2..0000000000000000000000000000000000000000 --- a/funcom_test/10578274.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testMessageCloningViaCoW3() throws Exception { - MimeMessage mmorig = getSimpleMessage(); - - MimeMessage mm = new MimeMessageCopyOnWriteProxy(mmorig); - - LifecycleUtil.dispose(mmorig); - mmorig = null; - System.gc(); - Thread.sleep(200); - - try { - mm.writeTo(System.out); - } catch (Exception e) { - e.printStackTrace(); - fail("Exception while writing the message to output"); - } - - LifecycleUtil.dispose(mm); - } - COM: <s> this test throw a null pointer exception when the original message was </s> - diff --git a/funcom_test/10578279.txt b/funcom_test/10578279.txt deleted file mode 100644 index 1446a2a74432ff61f53eb846e164e5c6c097c869..0000000000000000000000000000000000000000 --- a/funcom_test/10578279.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void writeObject(java.io.ObjectOutputStream out) throws IOException { - out.writeObject(sender); - out.writeObject(recipients); - out.writeObject(state); - out.writeObject(errorMessage); - out.writeObject(name); - out.writeObject(remoteHost); - out.writeObject(remoteAddr); - out.writeObject(lastUpdated); - out.writeObject(attributes); - } - COM: <s> write the mail impl to an code object output stream code </s> - diff --git a/funcom_test/10578360.txt b/funcom_test/10578360.txt deleted file mode 100644 index 621272b863e21c00296488094a60e8850db0a5af..0000000000000000000000000000000000000000 --- a/funcom_test/10578360.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void closeOutputStreams(OutputStream headerStream, OutputStream bodyStream) throws IOException { - try { - // If the header stream is not the same as the body stream, - // close the header stream here. - if ((headerStream != null) && (headerStream != bodyStream)) { - headerStream.close(); - } - } finally { - if (bodyStream != null) { - bodyStream.close(); - } - } - } - COM: <s> closes output streams used to update message </s> - diff --git a/funcom_test/10578424.txt b/funcom_test/10578424.txt deleted file mode 100644 index 1640c0823305dd0d66f2a8f1db6d114f0cd5ea2e..0000000000000000000000000000000000000000 --- a/funcom_test/10578424.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int getNumberOfParameters(String sqlstring) { - // it is alas a java 1.4 feature to be able to call - // getParameterMetaData which could provide us with the parameterCount - char[] chars = sqlstring.toCharArray(); - int count = 0; - for (int i = 0; i < chars.length; i++) { - count += chars[i] == '?' ? 1 : 0; - } - return count; - } - COM: <s> this method calculates number of parameters in a prepared statement sql </s> - diff --git a/funcom_test/10578470.txt b/funcom_test/10578470.txt deleted file mode 100644 index 2386688ef6c9c3a96a89eb33cd96d794881fb5a7..0000000000000000000000000000000000000000 --- a/funcom_test/10578470.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected MailetException loadFailed(String name, String type, Exception e) { - final StringBuilder builder = new StringBuilder(128).append("Could not load ").append(type).append(" (").append(name).append(")"); - final MailetException mailetException = new MailetException(builder.toString(), e); - return mailetException; - } - COM: <s> constructs an appropriate exception with an appropriate message </s> - diff --git a/funcom_test/10578526.txt b/funcom_test/10578526.txt deleted file mode 100644 index b1b86a8e45fec8d7bdb6e8281116905a4197bfcb..0000000000000000000000000000000000000000 --- a/funcom_test/10578526.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void afterPropertiesSet() throws Exception { - if (configurationMappings != null) { - Iterator<String> it = configurationMappings.keySet().iterator(); - while (it.hasNext()) { - String key = it.next(); - String value = configurationMappings.get(key); - registerConfiguration(key, getConfiguration(value)); - } - } - } - COM: <s> responsible to register additional configurations for the injected </s> - diff --git a/funcom_test/10578609.txt b/funcom_test/10578609.txt deleted file mode 100644 index ec20bca2ebb53dd9c1274b48f72193d46b1e190a..0000000000000000000000000000000000000000 --- a/funcom_test/10578609.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void populateMailMimeMessage(Message message, Mail mail) throws MessagingException, JMSException { - if (message instanceof ObjectMessage) { - mail.setMessage(new MimeMessageCopyOnWriteProxy(new MimeMessageObjectMessageSource((ObjectMessage) message))); - } else { - throw new MailQueueException("Not supported JMS Message received " + message); - } - - } - COM: <s> populat the given </s> - diff --git a/funcom_test/10578654.txt b/funcom_test/10578654.txt deleted file mode 100644 index f46e5746667bffc308de7baf976026131efdcfb9..0000000000000000000000000000000000000000 --- a/funcom_test/10578654.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected String getPrimaryName(String originalUsername) { - String username; - try { - username = originalUsername; - JamesUser user = (JamesUser) localusers.getUserByName(username); - if (user.getAliasing()) { - username = user.getAlias(); - } - } catch (Exception e) { - username = originalUsername; - } - return username; - } - COM: <s> gets the main name of a local customer handling alias </s> - diff --git a/funcom_test/10578705.txt b/funcom_test/10578705.txt deleted file mode 100644 index 51e4c1fcbd352f12b6d38b8061af6e9203da3478..0000000000000000000000000000000000000000 --- a/funcom_test/10578705.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void init() throws MessagingException { - repositoryPath = getInitParameter("repositoryPath"); - try { - passThrough = Boolean.valueOf(getInitParameter("passThrough")); - } catch (Exception e) { - // Ignore exception, default to false - } - - try { - repository = mailStore.select(repositoryPath); - } catch (Exception e) { - throw new MessagingException("Failed to retrieve MailRepository for url " + repositoryPath, e); - } - - } - COM: <s> initialize the mailet loading configuration information </s> - diff --git a/funcom_test/10578707.txt b/funcom_test/10578707.txt deleted file mode 100644 index 57948ed518021378056ff7dbbf88adefe2e49436..0000000000000000000000000000000000000000 --- a/funcom_test/10578707.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void service(Mail mail) throws javax.mail.MessagingException { - StringBuffer logBuffer = new StringBuffer(160).append("Storing mail ").append(mail.getName()).append(" in ").append(repositoryPath); - log(logBuffer.toString()); - repository.store(mail); - if (!passThrough) { - mail.setState(Mail.GHOST); - } - } - COM: <s> store a mail in a particular repository </s> - diff --git a/funcom_test/10578741.txt b/funcom_test/10578741.txt deleted file mode 100644 index db22f2e82a7d246c02889b972b1e39b10d70d87b..0000000000000000000000000000000000000000 --- a/funcom_test/10578741.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected String getUsername(MailAddress m) { - try { - if (usersRepos.supportVirtualHosting()) { - return m.toString(); - } else { - return super.getUsername(m); - } - } catch (UsersRepositoryException e) { - log("Unable to access UsersRepository", e); - return super.getUsername(m); - - } - } - COM: <s> return the username to use for sieve processing for the given </s> - diff --git a/funcom_test/10578805.txt b/funcom_test/10578805.txt deleted file mode 100644 index 7012f2d99c961ddf3b5a3983a15f5791a1ddefb3..0000000000000000000000000000000000000000 --- a/funcom_test/10578805.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: private String getSeparator(String targetString) { - return (targetString.indexOf(',') > -1 ? "," : (targetString.indexOf(';') > -1 ? ";" : (targetString.indexOf("regex:") > -1 ? "" : ":"))); - } - COM: <s> returns the character used to delineate multiple addresses </s> - diff --git a/funcom_test/10579053.txt b/funcom_test/10579053.txt deleted file mode 100644 index 70cf7e39ce250a37ab8256041a86fea80f33e8d7..0000000000000000000000000000000000000000 --- a/funcom_test/10579053.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Collection getRecipients(Mail originalMail) throws MessagingException { - Collection recipients = (isStatic()) ? this.recipients : getRecipients(); - if (recipients != null) { - if (recipients.size() == 1 && (recipients.contains(SpecialAddress.UNALTERED) || recipients.contains(SpecialAddress.RECIPIENTS))) { - recipients = null; - } else { - recipients = replaceMailAddresses(originalMail, recipients); - } - } - return recipients; - } - COM: <s> gets the code recipients code property built dynamically using the </s> - diff --git a/funcom_test/10579057.txt b/funcom_test/10579057.txt deleted file mode 100644 index 94bb46100e9d91fa51815aec62cb54b1e5414e93..0000000000000000000000000000000000000000 --- a/funcom_test/10579057.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void setRecipients(Mail newMail, Collection recipients, Mail originalMail) throws MessagingException { - if (recipients != null) { - newMail.setRecipients(recipients); - if (isDebug) { - log("recipients set to: " + arrayToString(recipients.toArray())); - } - } - } - COM: <s> sets the recipients of i new mail i to i recipients i </s> - diff --git a/funcom_test/10579062.txt b/funcom_test/10579062.txt deleted file mode 100644 index 212d6474fae081688360c9717483317dc7552f3b..0000000000000000000000000000000000000000 --- a/funcom_test/10579062.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected ActiveMQSession getAMQSession(Session session) throws JMSException { - ActiveMQSession amqSession; - - if (session instanceof SessionProxy) { - // handle Springs CachingConnectionFactory - amqSession = (ActiveMQSession) ((SessionProxy) session).getTargetSession(); - } else { - // just cast as we have no other idea - amqSession = (ActiveMQSession) session; - } - return amqSession; - } - COM: <s> cast the given </s> - diff --git a/funcom_test/10579064.txt b/funcom_test/10579064.txt deleted file mode 100644 index 9d8fde130d8d4552ca5b82c9e59003a1e5a9f6a2..0000000000000000000000000000000000000000 --- a/funcom_test/10579064.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void setTo(Mail newMail, InternetAddress[] to, Mail originalMail) throws MessagingException { - if (to != null) { - newMail.getMessage().setRecipients(Message.RecipientType.TO, to); - if (isDebug) { - log("apparentlyTo set to: " + arrayToString(to)); - } - } - } - COM: <s> sets the to header of i new mail i to i to i </s> - diff --git a/funcom_test/10579092.txt b/funcom_test/10579092.txt deleted file mode 100644 index c2e933493f68750527478b6f5e17ae493ff0d185..0000000000000000000000000000000000000000 --- a/funcom_test/10579092.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected MailAddress getReplyTo(Mail originalMail) throws MessagingException { - MailAddress replyTo = (isStatic()) ? this.replyTo : getReplyTo(); - if (replyTo != null) { - if (replyTo == SpecialAddress.UNALTERED) { - replyTo = null; - } else if (replyTo == SpecialAddress.SENDER) { - replyTo = originalMail.getSender(); - } - } - return replyTo; - } - COM: <s> gets the code reply to code property built dynamically using the </s> - diff --git a/funcom_test/10579340.txt b/funcom_test/10579340.txt deleted file mode 100644 index 438b0ac6da247d565a4338214cdd6784f900e2a5..0000000000000000000000000000000000000000 --- a/funcom_test/10579340.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected String getMessageHeaders(MimeMessage message) throws MessagingException { - Enumeration heads = message.getAllHeaderLines(); - StringBuffer headBuffer = new StringBuffer(1024); - while (heads.hasMoreElements()) { - headBuffer.append(heads.nextElement().toString()).append("\r\n"); - } - return headBuffer.toString(); - } - COM: <s> utility method for obtaining a string representation of a messages </s> - diff --git a/funcom_test/10579412.txt b/funcom_test/10579412.txt deleted file mode 100644 index 076089d85f32bfeaa5b2394c607004e4617c30cb..0000000000000000000000000000000000000000 --- a/funcom_test/10579412.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setMessageId(Mail newMail, Mail originalMail) throws MessagingException { - String messageId = originalMail.getMessage().getMessageID(); - if (messageId != null) { - newMail.getMessage().setHeader(RFC2822Headers.MESSAGE_ID, messageId); - if (isDebug) { - log("MESSAGE_ID restored to: " + messageId); - } - } - } - COM: <s> sets the message id of original mail into new mail </s> - diff --git a/funcom_test/10855978.txt b/funcom_test/10855978.txt deleted file mode 100644 index 20cfc6fbd8ce1303eebc96ff45bafc236e24641e..0000000000000000000000000000000000000000 --- a/funcom_test/10855978.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testValidateVersion() throws Exception { - CookieSpec cookiespec = new RFC2965Spec(); - // version attribute is REQUIRED - Header header = new Header("Set-Cookie2", "name=value"); - try { - cookieParse(cookiespec, "www.domain.com", 8000, "/", false, header); - fail("MalformedCookieException should have been thrown"); - } catch (MalformedCookieException e) {} - } - COM: <s> test cookie tt version tt validation </s> - diff --git a/funcom_test/10856115.txt b/funcom_test/10856115.txt deleted file mode 100644 index bfe65ebeaa94c72955129e548b349096590bb3ce..0000000000000000000000000000000000000000 --- a/funcom_test/10856115.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testSecondDomainLevelCookie() throws Exception { - Cookie cookie = new Cookie(".sourceforge.net", "name", null, "/", null, false); - cookie.setDomainAttributeSpecified(true); - cookie.setPathAttributeSpecified(true); - - CookieSpec cookiespec = new CookieSpecBase(); - cookiespec.validate("sourceforge.net", 80, "/", false, cookie); - } - COM: <s> tests if invalid second domain level cookie gets accepted in the </s> - diff --git a/funcom_test/10856252.txt b/funcom_test/10856252.txt deleted file mode 100644 index 7ea6a946a555d13e770f8ea6d8cae5e58440bc14..0000000000000000000000000000000000000000 --- a/funcom_test/10856252.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private File createTempTestFile() throws IOException { - File file = File.createTempFile("FilePartTest", ".txt"); - PrintWriter out = new PrintWriter(new FileWriter(file)); - out.println(PART_DATA); - out.flush(); - out.close(); - return file; - } - COM: <s> writes part data out to a temporary file and returns the file it </s> - diff --git a/funcom_test/10856281.txt b/funcom_test/10856281.txt deleted file mode 100644 index 83ec949cfcd7b3a02dac86464c9d8c90842b9271..0000000000000000000000000000000000000000 --- a/funcom_test/10856281.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testRemoveParameterReturnValue() throws Exception { - PostMethod method = new PostMethod("/"); - - method.addParameter("param", "whatever"); - assertTrue("Return value of the method is expected to be true", method.removeParameter("param")); - assertFalse("Return value of the method is expected to be false", method.removeParameter("param")); - } - COM: <s> test the return value of the post method remove parameter </s> - diff --git a/funcom_test/10856285.txt b/funcom_test/10856285.txt deleted file mode 100644 index 6a0a1f182dcf0dadb1a664378ff15b2be8477570..0000000000000000000000000000000000000000 --- a/funcom_test/10856285.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testGetCause() { - - Exception aCause = new IOException("the cause"); - - try { - throw new HttpException("http exception", aCause); - } - catch (HttpException e) { - assertEquals("Retrieve cause from caught exception", e.getCause(), aCause); - } - } - COM: <s> make sure that you can retrieve the cause from an http exception </s> - diff --git a/funcom_test/10856530.txt b/funcom_test/10856530.txt deleted file mode 100644 index 2b2c5325427aa6e380f12b427dd66a452b3581b2..0000000000000000000000000000000000000000 --- a/funcom_test/10856530.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testSimpleGet() throws Exception { - this.server.setHttpService(new FeedbackService()); - GetMethod get = new GetMethod("/"); - try { - this.client.executeMethod(get); - assertEquals(HttpStatus.SC_OK, get.getStatusCode()); - } finally { - get.releaseConnection(); - } - } - COM: <s> tests get via non authenticating proxy </s> - diff --git a/funcom_test/10856746.txt b/funcom_test/10856746.txt deleted file mode 100644 index 43d629b42b401559af8031c574768ae65f778f50..0000000000000000000000000000000000000000 --- a/funcom_test/10856746.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int hashCode() { - int hash = LangUtils.HASH_SEED; - hash = LangUtils.hashCode(hash, this.defaultPort); - hash = LangUtils.hashCode(hash, this.scheme.toLowerCase(Locale.ENGLISH)); - hash = LangUtils.hashCode(hash, this.secure); - hash = LangUtils.hashCode(hash, this.socketFactory); - return hash; - } - COM: <s> return a hash code for this object </s> - diff --git a/funcom_test/10856923.txt b/funcom_test/10856923.txt deleted file mode 100644 index bc42693ee96f3531548aae79066339f1c174a67c..0000000000000000000000000000000000000000 --- a/funcom_test/10856923.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public int read() throws IOException { - - if (closed) { - throw new IOException("Attempted read from closed stream."); - } - if (eof) { - return -1; - } - if (pos >= chunkSize) { - nextChunk(); - if (eof) { - return -1; - } - } - int b = in.read(); - if (b != -1) { - pos++; - } - return b; - } - COM: <s> p returns all the data in a chunked stream in coalesced form </s> - diff --git a/funcom_test/1086025.txt b/funcom_test/1086025.txt deleted file mode 100644 index 1dff5a958afc63ddda8f196c335410fc59d58ca2..0000000000000000000000000000000000000000 --- a/funcom_test/1086025.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setServer( Server svr ) { - this.server = svr; - // Create a human player object and an action to lauch it - if( theHumanPlayer == null ) theHumanPlayer = new HumanPlayer(); - killServerAction.setEnabled( true ); - openAction.setEnabled(false); - closeAction.setEnabled(false); - enableServerActions(false); - } - COM: <s> set the server from which we are receiving moves </s> - diff --git a/funcom_test/1086054.txt b/funcom_test/1086054.txt deleted file mode 100644 index 7a88f4902e77f0f54d7a45fa50ea406a30c2035e..0000000000000000000000000000000000000000 --- a/funcom_test/1086054.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void moveEntered(Move m) { - if( !userMoveNeeded ) { - System.err.println( "Unexpected user move received from BoardPanel"); - return; - } - userMoveNeeded = false; userMoveRequested = false; - this.theHumanPlayer.moveEntered( m ); - statusLabel.setText( "User move sent to server." ); - } - COM: <s> callback from the board panel </s> - diff --git a/funcom_test/1086087.txt b/funcom_test/1086087.txt deleted file mode 100644 index cbd972103520092a0d631a6c354d3ef79c441baf..0000000000000000000000000000000000000000 --- a/funcom_test/1086087.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Move chooseMove(Board theboard) { - int myColor = this.getColor(); - - // Cast the arguments to the objects we want to work with - BTBoard board = (BTBoard) theboard; - - // Find all my pieces - //TODO:This can be easily optimized to be saved on the board - - - BTMove nextMove = new BTMove(UNASSIGNED_MOVE, -1, -1); - gen_move(board, myColor, myColor, 0, nextMove); - - return nextMove; - } - COM: <s> implement a very stupid way of picking moves </s> - diff --git a/funcom_test/1086099.txt b/funcom_test/1086099.txt deleted file mode 100644 index 0242341b4cea367332cb9809805aa2df4b45d145..0000000000000000000000000000000000000000 --- a/funcom_test/1086099.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void createChildren() { - //go over all possible moves (!) in a specific order - //and for each move generate a board, create a node around it and - //add it to the list of children of this node - Vector<BTMove> moves = this.getBoard().GenerateMoves(); - - for (BTMove move : moves) { - EnhancedBTBoard board = new EnhancedBTBoard(this.getBoard()); - board.move(move); - MyNode node = new MyNode(board); - node.setMove(move); - this.add(node); - } - } - COM: <s> generate all possible moves for this node </s> - diff --git a/funcom_test/1086124.txt b/funcom_test/1086124.txt deleted file mode 100644 index 1abf8f64e6fdfeca31a0ff866470c0dc4763c717..0000000000000000000000000000000000000000 --- a/funcom_test/1086124.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void randomizeWeights() { - for (int layer = 1; layer < structure.length; layer++) - for (int unit = 0; unit < structure[layer]; unit++) - for (int wt = 0; wt < structure[layer - 1] + 1; wt++) - weights[layer][unit][wt] = Math.random() * 0.02 - 0.01; - } - COM: <s> assign random weights everywhere </s> - diff --git a/funcom_test/1086158.txt b/funcom_test/1086158.txt deleted file mode 100644 index c54797a6cf9d7ff04ab367f47e872944b5803985..0000000000000000000000000000000000000000 --- a/funcom_test/1086158.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private MyNode UCTSelect(MyNode root) { - MyNode node, choice = null; - double maxUCB = Double.NEGATIVE_INFINITY, minUCB = Double.POSITIVE_INFINITY; - - for (int i = 0; i < root.getChildCount(); i++) { - node = (MyNode) root.getChildAt(i); - if (node.firstVisit()) - return node; - - double currentUCB = node.getUCBValue(); - if (currentUCB > maxUCB) { - choice = node; - maxUCB = currentUCB; - } - } - return choice; - } - COM: <s> selects the node with the best return </s> - diff --git a/funcom_test/1086160.txt b/funcom_test/1086160.txt deleted file mode 100644 index ff8f4a45353c818bcff363cadf2b4d8a59e3118c..0000000000000000000000000000000000000000 --- a/funcom_test/1086160.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private int RandomSimulation(MyNode node) { - EnhancedBTBoard board = new EnhancedBTBoard(node.getBoard()); - - int winner = board.getWinner(); - - while (board.getWinner() == EnhancedBTBoard.NOBODY) { - // generate moves - - board.move(netPlayer.chooseMove(board)); - - winner = board.getWinner(); - - if (winner != EnhancedBTBoard.NOBODY) { - break; - } - } - - if (winner == myColor) - return 1; - else - return 0; - } - COM: <s> generate a random simulation </s> - diff --git a/funcom_test/10891981.txt b/funcom_test/10891981.txt deleted file mode 100644 index 420c01caf962a0965305ef3af11b8803116876b9..0000000000000000000000000000000000000000 --- a/funcom_test/10891981.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setProperties(Map<String,InterceptorProperty> properties) { - this.properties = properties; - final String useEquals = "useEquals"; - InterceptorProperty p = properties.get(useEquals); - if (p!=null) { - setUseEquals(Boolean.parseBoolean(p.getValue())); - } - } - COM: <s> called during the creation of an interceptor </s> - diff --git a/funcom_test/10892009.txt b/funcom_test/10892009.txt deleted file mode 100644 index 8ef4faad9353b708c424d9698b0cb323493a056e..0000000000000000000000000000000000000000 --- a/funcom_test/10892009.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception { - try { - this.oname = createObjectName(name); - if (oname!=null) registerJmx(); - }catch (MalformedObjectNameException x) { - log.error("Unable to create object name for JDBC pool.",x); - } - return name; - } - COM: <s> if the connection pool mbean exists it will be registered during this operation </s> - diff --git a/funcom_test/10892019.txt b/funcom_test/10892019.txt deleted file mode 100644 index cbac552b4307708d06ce3282d4067de7c8287772..0000000000000000000000000000000000000000 --- a/funcom_test/10892019.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected boolean shouldAbandon() { - if (poolProperties.getAbandonWhenPercentageFull()==0) return true; - float used = busy.size(); - float max = poolProperties.getMaxActive(); - float perc = poolProperties.getAbandonWhenPercentageFull(); - return (used/max*100f)>=perc; - } - COM: <s> determines if a connection should be abandoned based on </s> - diff --git a/funcom_test/10892076.txt b/funcom_test/10892076.txt deleted file mode 100644 index 51734f93f0f8690655712dfb6d96eb2940aeda29..0000000000000000000000000000000000000000 --- a/funcom_test/10892076.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void createMBean() { - try { - jmxPool = new org.apache.tomcat.jdbc.pool.jmx.ConnectionPool(this); - } catch (Exception x) { - log.warn("Unable to start JMX integration for connection pool. Instance["+getName()+"] can't be monitored.",x); - } - } - COM: <s> create mbean object that can be registered </s> - diff --git a/funcom_test/10892115.txt b/funcom_test/10892115.txt deleted file mode 100644 index 36a0c656b3a90628742a418ec290f0d4732064ac..0000000000000000000000000000000000000000 --- a/funcom_test/10892115.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void run() { - try { - Connection con = get(); //complete this future - con.close(); //return to the pool - }catch (ExecutionException ex) { - //we can ignore this - }catch (Exception x) { - ConnectionPool.log.error("Unable to cancel ConnectionFuture.",x); - } - } - COM: <s> run method to be executed when cancelled by an executor </s> - diff --git a/funcom_test/10892455.txt b/funcom_test/10892455.txt deleted file mode 100644 index 95e886f39a9774ea64511d644f9a19aa75bfa3d4..0000000000000000000000000000000000000000 --- a/funcom_test/10892455.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void resetStats() { - ConcurrentHashMap<String,QueryStats> queries = perPoolStats.get(poolName); - if (queries!=null) { - Iterator<String> it = queries.keySet().iterator(); - while (it.hasNext()) it.remove(); - } - } - COM: <s> jmx operation remove all stats for this connection pool </s> - diff --git a/funcom_test/10892817.txt b/funcom_test/10892817.txt deleted file mode 100644 index 91087bec945017940f30f018a3a67041e3b6ccb7..0000000000000000000000000000000000000000 --- a/funcom_test/10892817.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected int getTimeout() { - String timeoutS = servletConfig.getInitParameter("timeout"); - int timeout = 120*1000; //2 min - try { - timeout = Integer.parseInt(timeoutS); - }catch (NumberFormatException nfe) { - //ignore, we have a default value - } - return timeout; - } - COM: <s> returns the preconfigured connection timeout </s> - diff --git a/funcom_test/10892933.txt b/funcom_test/10892933.txt deleted file mode 100644 index 36b74e31937eb1661a4ed9240d265866d8c9982d..0000000000000000000000000000000000000000 --- a/funcom_test/10892933.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public HttpError validate() { - if(clientId==null|| (!this.getTomcatBayeux().hasClient(clientId))) - return new HttpError(400,"Client Id not valid.", null); - if (subscription==null||subscription.length()==0) - return new HttpError(400,"Subscription missing.",null); - return null;//no error - } - COM: <s> check client request for validity </s> - diff --git a/funcom_test/10892966.txt b/funcom_test/10892966.txt deleted file mode 100644 index f1acad9988101ef152161d4200e639dd672b2b75..0000000000000000000000000000000000000000 --- a/funcom_test/10892966.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void recordCookie(HttpCookie cookie) { - if (!checkIfCookieOK(cookie)) { - return; - } - synchronized (cookieJar) { - - String domain = cookie.getDomain().toLowerCase(); - - Vector cookieList = (Vector)cookieJar.get(domain); - if (cookieList == null) { - cookieList = new Vector(); - } - - addOrReplaceCookie(cookieList, cookie); - cookieJar.put(domain, cookieList); - - } - - } - COM: <s> record the cookie in the in memory container of cookies </s> - diff --git a/funcom_test/10893093.txt b/funcom_test/10893093.txt deleted file mode 100644 index 0d570919d125223a8bea5a9b2ae10cabae78f452..0000000000000000000000000000000000000000 --- a/funcom_test/10893093.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setExpectHeaders(String s) { - this.expectHeaders = new HashMap(); - StringTokenizer tok = new StringTokenizer(s, "|"); - while (tok.hasMoreElements()) { - String header = (String) tok.nextElement(); - setHeaderDetails(header, expectHeaders, false); - } - } - COM: <s> code set expect headers code configures gtest to look for the header </s> - diff --git a/funcom_test/10893117.txt b/funcom_test/10893117.txt deleted file mode 100644 index 6f5e2539077299cdb019b6a0eb2bee124f1ee9f0..0000000000000000000000000000000000000000 --- a/funcom_test/10893117.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setRequestHeaders(String s) { - requestHeaders = new HashMap(); - StringTokenizer tok = new StringTokenizer(s, "|"); - while (tok.hasMoreElements()) { - String header = (String) tok.nextElement(); - setHeaderDetails(header, requestHeaders, true); - } - } - COM: <s> code set request headers code configures the request headers gtest </s> - diff --git a/funcom_test/10893420.txt b/funcom_test/10893420.txt deleted file mode 100644 index 757ba26b15a64a530ff7442127e76e44c0064602..0000000000000000000000000000000000000000 --- a/funcom_test/10893420.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public StandardServer getServer() { - - if (server != null) { - return server; - } - - initBaseDir(); - - System.setProperty("catalina.useNaming", "false"); - - server = new StandardServer(); - server.setPort( -1 ); - - service = new StandardService(); - service.setName("Tomcat"); - server.addService( service ); - return server; - } - COM: <s> get the server object </s> - diff --git a/funcom_test/10893655.txt b/funcom_test/10893655.txt deleted file mode 100644 index c32ec47101c86f14495fb76c9dab5290959a6802..0000000000000000000000000000000000000000 --- a/funcom_test/10893655.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ByteBuffer getByteBuffer() { - if (byteBuffer == null || byteBuffer.array() != buff) { - byteBuffer = ByteBuffer.wrap(buff, start, end - start); - } else { - byteBuffer.position(start); - byteBuffer.limit(end); - } - return byteBuffer; - } - COM: <s> return a byte buffer </s> - diff --git a/funcom_test/10893671.txt b/funcom_test/10893671.txt deleted file mode 100644 index ad29c5dee12b2dd19b178ec901ac617f181bca69..0000000000000000000000000000000000000000 --- a/funcom_test/10893671.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean startsWith(String s) { - char[] c = value; - int len = s.length(); - if (c == null || len > end - start) { - return false; - } - int off = start; - for (int i = 0; i < len; i++) { - if (c[off++] != s.charAt(i)) { - return false; - } - } - return true; - } - COM: <s> returns true if the message bytes starts with the specified string </s> - diff --git a/funcom_test/10893712.txt b/funcom_test/10893712.txt deleted file mode 100644 index 9d6f18c9ba42041745ad34c9aff264b4d86d57b5..0000000000000000000000000000000000000000 --- a/funcom_test/10893712.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int read() throws IOException { - if (isClosedAndEmpty()) { - return -1; - } - BBucket bucket = peekFirst(); - if (bucket == null) { - return -2; - } - int res = bucket.array()[bucket.position()]; - bucket.position(bucket.position() + 1); - return res & 0xFF; - } - COM: <s> non blocking read </s> - diff --git a/funcom_test/10893856.txt b/funcom_test/10893856.txt deleted file mode 100644 index 1d54e12d5d83dce709295dcb67274bf88f9d30fd..0000000000000000000000000000000000000000 --- a/funcom_test/10893856.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public IOChannel setHead(IOChannel head) throws IOException { - this.head = head; - head.setSink(this); - - // TODO: do we want to migrate them automatically ? - head.setDataReceivedCallback(dataReceivedCallback); - head.setDataFlushedCallback(dataFlushedCallback); - // app.setClosedCallback(closedCallback); - - dataReceivedCallback = null; - dataFlushedCallback = null; - return this; - } - COM: <s> called to add an filter after the current channel for </s> - diff --git a/funcom_test/10893924.txt b/funcom_test/10893924.txt deleted file mode 100644 index 17761db6de46c279e4b447c6cd6a16bc6d0e8bb1..0000000000000000000000000000000000000000 --- a/funcom_test/10893924.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isOpen() { - if (ch == null) { - return false; - } - return ch.isOpen() && ch.channel != null && - ch.channel.isOpen() && !getIn().isAppendClosed() && - !getOut().isAppendClosed(); - } - COM: <s> both in and out open </s> - diff --git a/funcom_test/10893929.txt b/funcom_test/10893929.txt deleted file mode 100644 index 96a5835103e85d4de0510c0cc30cd2a911feef1a..0000000000000000000000000000000000000000 --- a/funcom_test/10893929.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int readToSpace(BBuffer res) { - int resStart = start; - while (true) { - if (start >= end) { - break; - } - if (buff[start] == SP - || buff[start] == HT) { - break; - } - start++; - } - res.setBytes(buff, resStart, start - resStart); - return res.remaining(); - } - COM: <s> consume all up to the first space or t which will be the </s> - diff --git a/funcom_test/10894097.txt b/funcom_test/10894097.txt deleted file mode 100644 index 58dd212827bcbba03e0a1bc8d8400e806bfcebef..0000000000000000000000000000000000000000 --- a/funcom_test/10894097.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected HttpChannel create() throws IOException { - HttpChannel res = new HttpChannel(); - newHttpChannel.incrementAndGet(); - res.setConnector(this); - if (httpEvents != null) { - httpEvents.onCreate(res, this); - } - if (debugHttp) { - res.debug = debugHttp; - } - return res; - } - COM: <s> override to create customized client server connections </s> - diff --git a/funcom_test/10894173.txt b/funcom_test/10894173.txt deleted file mode 100644 index c45d9486e24498a8b543c7a40d56fb5f6070f67b..0000000000000000000000000000000000000000 --- a/funcom_test/10894173.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean hasBody() { - if (httpCh.getRequest().method().equals("HEAD")) { - return false; - } - if (status >= 100 && status < 200) { - return false; - } - // what about (status == 205) ? - if ((status == 204) - || (status == 304)) { - return false; - } - return true; - } - COM: <s> all responses to the head request method must not include a </s> - diff --git a/funcom_test/10894293.txt b/funcom_test/10894293.txt deleted file mode 100644 index 882c4771346798200d51117c154a05e119d7add2..0000000000000000000000000000000000000000 --- a/funcom_test/10894293.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void maybeRelease() throws IOException { - synchronized (this) { - if (release && sendReceiveDone) { - if (debug) { - trace("RELEASE"); - } - if (getConnector() != null) { - getConnector().returnToPool(this); - } else { - log.severe("Attempt to release with no pool"); - } - } - } - } - COM: <s> called when all done </s> - diff --git a/funcom_test/10894341.txt b/funcom_test/10894341.txt deleted file mode 100644 index b1eef3d79374c852912163d9edf1119c6facd6fb..0000000000000000000000000000000000000000 --- a/funcom_test/10894341.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void abort(HttpChannel http, String t) throws IOException { - if (switchedProtocol != null) { - switchedProtocol.abort(http, t); - return; - } - keepAlive = false; - if (net != null ) { - if (net.isOpen()) { - net.close(); - net.startSending(); - } - } - if (http != null) { - http.abort(t); - } - } - COM: <s> disconnect abruptly client closed frame errors etc </s> - diff --git a/funcom_test/10894400.txt b/funcom_test/10894400.txt deleted file mode 100644 index 5cab234c639e87895117795b122567461a50bcc5..0000000000000000000000000000000000000000 --- a/funcom_test/10894400.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void coyoteService(final HttpRequest httpReq, final HttpResponse httpRes) { - // TODO: reuse, per req - RequestData rc = new RequestData(); - rc.init(httpReq, httpRes); - - try { - adapter.service(rc.req, rc.res); - } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - COM: <s> main lite service method will wrap to coyote request </s> - diff --git a/funcom_test/10894538.txt b/funcom_test/10894538.txt deleted file mode 100644 index a34ad6b9abd8623c20a939e74c8cd0eefec12eee..0000000000000000000000000000000000000000 --- a/funcom_test/10894538.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void handleQueryParameters() { - if( queryMB.length() == 0) { - return; - } - - decodedQuery.recycle(); - decodedQuery.append(getMsgBytes().query()); - // TODO: option 'useBodyEncodingForUri' - versus UTF or ASCII - String queryStringEncoding = getEncoding(); - processParameters( decodedQuery, queryStringEncoding ); - } - COM: <s> process the query string into parameters </s> - diff --git a/funcom_test/10895951.txt b/funcom_test/10895951.txt deleted file mode 100644 index bdacb9f7f8b027ae27f94999933cae8aa4b612a6..0000000000000000000000000000000000000000 --- a/funcom_test/10895951.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public FunctionInfo getFunction(String name) { - - if (functions == null || functions.length == 0) { - return null; - } - - for (int i = 0; i < functions.length; i++) { - if (functions[i].getName().equals(name)) { - return functions[i]; - } - } - return null; - } - COM: <s> get the function info for a given function name looking through all the </s> - diff --git a/funcom_test/10897840.txt b/funcom_test/10897840.txt deleted file mode 100644 index d15013ff2f755ddb24c5418332f6a321005dedfe..0000000000000000000000000000000000000000 --- a/funcom_test/10897840.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void stop() { - - if (log.isDebugEnabled()) - log.debug(sm.getString("hostConfig.stop")); - - if (oname != null) { - try { - Registry.getRegistry(null, null).unregisterComponent(oname); - } catch (Exception e) { - log.error(sm.getString("hostConfig.jmx.unregister", oname), e); - } - } - oname = null; - configBase = null; - - } - COM: <s> process a stop event for this host </s> - diff --git a/funcom_test/10899292.txt b/funcom_test/10899292.txt deleted file mode 100644 index 1e219c84c62699eebd0dda61d8c674a92fff8400..0000000000000000000000000000000000000000 --- a/funcom_test/10899292.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setSessionAttributeFilter(String sessionAttributeFilter) { - if (sessionAttributeFilter == null - || sessionAttributeFilter.trim().equals("")) { - this.sessionAttributeFilter = null; - sessionAttributePattern = null; - } else { - this.sessionAttributeFilter = sessionAttributeFilter; - sessionAttributePattern = Pattern.compile(sessionAttributeFilter); - } - } - COM: <s> set the pattern used for including session attributes to replication </s> - diff --git a/funcom_test/10903479.txt b/funcom_test/10903479.txt deleted file mode 100644 index fb52553f8db18a25a4b9fb44ffae47e54f6281f6..0000000000000000000000000000000000000000 --- a/funcom_test/10903479.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean events() { - boolean result = false; - - Runnable r = null; - while ( (r = events.poll()) != null ) { - result = true; - try { - r.run(); - if ( r instanceof PollerEvent ) { - ((PollerEvent)r).reset(); - eventCache.offer((PollerEvent)r); - } - } catch ( Throwable x ) { - log.error("",x); - } - } - - return result; - } - COM: <s> processes events in the event queue of the poller </s> - diff --git a/funcom_test/1106630.txt b/funcom_test/1106630.txt deleted file mode 100644 index cbbff02fecda11b16a442713c0f3fd13b1d6fb6e..0000000000000000000000000000000000000000 --- a/funcom_test/1106630.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public Point_List getForegroundPoint(PImage Image)throws WrongSizeException,LearningStateException{ - - Point_List Points; - if (!end_learn || learn_state) - throw new LearningStateException(); - - if(Image.width!=width || Image.height!=height) - throw new WrongSizeException(); - - Points=new Point_List(); - for(int x=0;x<width;x++){ - for(int y=0;y<height;y++){ - if(!isBackground(x,y,Image.pixels[y*width+x])) - Points.addPoint(x, y); - } - } - return Points; - - } - COM: <s> returns the pixels identified as belonging to the foreground </s> - diff --git a/funcom_test/1118165.txt b/funcom_test/1118165.txt deleted file mode 100644 index f72a76e1da10a53c8ab366bfdca1ff9959c8bad6..0000000000000000000000000000000000000000 --- a/funcom_test/1118165.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void modifyRoleInCache(Role role, String orgRolename) { - Set users = role.getUsers(); - for (Iterator iter = users.iterator(); iter.hasNext();) { - User user = (User) iter.next(); - userDetailsInCache(user); - } - - for (Iterator iter = role.getRescs().iterator(); iter.hasNext();) { - Resource resource = (Resource) iter.next(); - resourceDetailsInCache(resource); - } - } - COM: <s> role user cache resource cache </s> - diff --git a/funcom_test/11297970.txt b/funcom_test/11297970.txt deleted file mode 100644 index 0221ce9b3f9962fa5280fcad09688de490de328f..0000000000000000000000000000000000000000 --- a/funcom_test/11297970.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String serialiseChildSequence() { - StringBuffer buffer = new StringBuffer(); - for(Iterator it = childSequence.iterator(); it.hasNext();) { - Integer child = (Integer)it.next(); - buffer.append("/" + child.toString()); - } - return buffer.toString(); - } - COM: <s> serialises the child sequence and returns it as a string </s> - diff --git a/funcom_test/11297996.txt b/funcom_test/11297996.txt deleted file mode 100644 index 9d006ea806cda7449220ca4f682128ce592eaa5f..0000000000000000000000000000000000000000 --- a/funcom_test/11297996.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String toString() { - if (shorthandPointer.equals(emptyNCName)) { - StringBuffer buffer = new StringBuffer(); - Iterator parts = pointerParts.iterator(); - while (parts.hasNext()) { - buffer.append(parts.next()); - } - return buffer.toString(); - } else { - return shorthandPointer.toString(); - } - } - COM: <s> returns a string serialisation of this xpointer </s> - diff --git a/funcom_test/11298083.txt b/funcom_test/11298083.txt deleted file mode 100644 index 18321f871725cf6c1e6512f7a603790518d3ef1c..0000000000000000000000000000000000000000 --- a/funcom_test/11298083.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public String toString() { - String operationString = (operation.getPrefix() != null && !operation.getPrefix().equals(emptyString) ? operation.getPrefix() + ":" + operation.getLocalPart() : operation.getLocalPart()); - return "wsdl.bindingOperation(" + binding + "/" + operationString + ")"; - } - COM: <s> returns a string of the serialised binding operation pointer part </s> - diff --git a/funcom_test/11298105.txt b/funcom_test/11298105.txt deleted file mode 100644 index 5d267696d587d16869184d713fbbfa3d2697169b..0000000000000000000000000000000000000000 --- a/funcom_test/11298105.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public QName prefixQNameNamespace(QName qname) { - //Get prefix for the fault QName in the XPointer. - NCName prefix = getXmlNamespacePrefix(qname); - return new QName(qname.getNamespaceURI(), qname.getLocalPart(), prefix.toString()); - } - COM: <s> returns a qname prefixed from the map of local namespaces and prefixes </s> - diff --git a/funcom_test/11298468.txt b/funcom_test/11298468.txt deleted file mode 100644 index 309eeaf753313064815840c2e2f19e25f1b89922..0000000000000000000000000000000000000000 --- a/funcom_test/11298468.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetHttpAuthenticationRealm() { - - //test "abc" parsed from WSDL - Endpoint endpoint = fEndpoints[0]; - HTTPEndpointExtensions httpEndpointExts = - (HTTPEndpointExtensions) endpoint - .getComponentExtensionContext( - HTTPConstants.NS_URI_HTTP); - - String actual = httpEndpointExts.getHttpAuthenticationRealm(); - assertEquals("Unexpected value for http authentication realm.", - "abc", - actual); - } - COM: <s> testcases for the http authentication realm property returned by the </s> - diff --git a/funcom_test/11298735.txt b/funcom_test/11298735.txt deleted file mode 100644 index 68f4b65ec635fd868b943638abea7c85ce4ce0b3..0000000000000000000000000000000000000000 --- a/funcom_test/11298735.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testNoInterfaces() { - DescriptionElement descEl = factory.newDescription(); - Description descComp = descEl.toComponent(); - - try { - descEl.setTargetNamespace(new URI("http://testnamespace")); - } catch(URISyntaxException e) { - // Do nothing. - } - - try { - assertion.validate(descComp, wodenContext); - } catch(WSDLException e) { - fail("Assertion Interface1010 threw WSDLException."); - } - if(handler.errorMessageHasBeenReported()) { - fail("Assertion Interface1010 failed incorrectly with no interfaces specified."); - } - } - COM: <s> test that the assertion passes for an empty list of interfaces </s> - diff --git a/funcom_test/11298866.txt b/funcom_test/11298866.txt deleted file mode 100644 index 3a9b8afd73ba1e151952545a742d528267f2b1d9..0000000000000000000000000000000000000000 --- a/funcom_test/11298866.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private boolean containsInterface(Interface interfac, Interface[] extendedInterfaces) { - boolean foundInterface = false; - - int numExtInterfaces = extendedInterfaces.length; - for(int i = 0; i < numExtInterfaces && !foundInterface; i++) { - if(interfac.isEquivalentTo(extendedInterfaces[i])) - foundInterface = true; - else if(containsInterface(interfac, extendedInterfaces[i].getExtendedInterfaces())) - foundInterface = true; - } - return foundInterface; - } - COM: <s> check whether the specified interface is in the list of extended interfaces </s> - diff --git a/funcom_test/11299440.txt b/funcom_test/11299440.txt deleted file mode 100644 index 2fa14675a6941f9765e05a3f3eea7e1920ffb569..0000000000000000000000000000000000000000 --- a/funcom_test/11299440.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void xmlDeclaration(String encoding) { - - if (out == null) - return; - - if (encoding == null) { - out.println("<?xml version='1.0'?>"); - } else { - out.println("<?xml version='1.0' encoding='" + encoding + "'?>"); - } - } - COM: <s> writes the xml declaration </s> - diff --git a/funcom_test/11299443.txt b/funcom_test/11299443.txt deleted file mode 100644 index acf6f7fddd369a497c9de47ff4a097a5008dee6a..0000000000000000000000000000000000000000 --- a/funcom_test/11299443.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void beginElement(String tag, String attributes) { - - if (out == null) - return; - - indent(); - if (attributes.length() == 0) { - out.println("<" + tag + ">"); - - } else { - out.println("<" + tag + " " + attributes + ">"); - } - tags.push(tag); - } - COM: <s> writes the begin tag for an element with attributes </s> - diff --git a/funcom_test/11299894.txt b/funcom_test/11299894.txt deleted file mode 100644 index 6c661f95ac5ecfb4fed9b945a7500fc1cbc411e9..0000000000000000000000000000000000000000 --- a/funcom_test/11299894.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setURIResolver(URIResolver resolver) { - - if(resolver == null) { - String msg = fWsdlContext.errorReporter.getFormattedMessage( - "WSDL026", new Object[] {"resolver"}); - throw new NullPointerException(msg); - } - - fWsdlContext = new WSDLContext( - fWsdlContext.wsdlFactory, - fWsdlContext.errorReporter, - fWsdlContext.extensionRegistry, - resolver); - } - COM: <s> provides the capability of setting a custom uri resolver </s> - diff --git a/funcom_test/1150413.txt b/funcom_test/1150413.txt deleted file mode 100644 index 16c66c036a8899321c2b13c697e4f5901e3306bb..0000000000000000000000000000000000000000 --- a/funcom_test/1150413.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void skipPast(String to) { - this.myIndex = this.mySource.indexOf(to, this.myIndex); - if (this.myIndex < 0) { - this.myIndex = this.mySource.length(); - } else { - this.myIndex += to.length(); - } - } - COM: <s> skip characters until past the requested string </s> - diff --git a/funcom_test/1150448.txt b/funcom_test/1150448.txt deleted file mode 100644 index 5b22893a494bc9ac640621fee65a3191e552215c..0000000000000000000000000000000000000000 --- a/funcom_test/1150448.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String join(String separator) throws JSONException { - int len = length(); - StringBuffer sb = new StringBuffer(); - - for (int i = 0; i < len; i += 1) { - if (i > 0) { - sb.append(separator); - } - sb.append(JSONObject.valueToString(this.myArrayList.elementAt(i))); - } - return sb.toString(); - } - COM: <s> make a string from the contents of this jsonarray </s> - diff --git a/funcom_test/11758866.txt b/funcom_test/11758866.txt deleted file mode 100644 index d0e9e5417da144771dcfe5b734bd39b8af0c32c6..0000000000000000000000000000000000000000 --- a/funcom_test/11758866.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public GlobalState getGlobalState() { - if (MainConfiguration.getSingleton().staticGlobalState) { - return GlobalStateServer.getStaticallySharedGlobalState(); - } else { - // check if you are server first - GlobalStateServer server = (GlobalStateServer) getPeerletOfType(GlobalStateServer.class); - if (server != null) { - return server.getGlobalState(); - } - GlobalStateClient client = (GlobalStateClient) getPeerletOfType(GlobalStateClient.class); - if (client != null) { - return client.getGlobalState(); - } - return null; - } - } - COM: <s> a convenience method returns an instance of the code global state code </s> - diff --git a/funcom_test/11758890.txt b/funcom_test/11758890.txt deleted file mode 100644 index fe5ef054f18317abbc544e79a80f7d1c22b6e606..0000000000000000000000000000000000000000 --- a/funcom_test/11758890.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void incomingConnectionCompleted(Connection connection) { - - assert incomingConnections.contains(connection); - incomingConnections.remove(connection); - - Message message = connection.getMessage(); - - if (logger.isDebugEnabled()) { - StringBuffer sb = new StringBuffer(); - sb.append("Peer "); - sb.append(getNetworkAddress()); - sb.append(" received a "); - sb.append(message.getClass().getSimpleName()); - sb.append(" from "); - sb.append(message.getSourceAddress()); - logger.debug(sb.toString()); - } - - fireMessageReceived(message.getSourceAddress(), message); - } - COM: <s> called by the network model when the complete message </s> - diff --git a/funcom_test/11758920.txt b/funcom_test/11758920.txt deleted file mode 100644 index 79f2208fa09c9d1547577fa2ad68e40629e5bd8a..0000000000000000000000000000000000000000 --- a/funcom_test/11758920.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void addBWRel(BWRel r) { - - assert tmpToFix.isEmpty(); - assert toFix.isEmpty(); - assert newRates.isEmpty(); - - /* - * calls defreeze on the server and the client of the connection - * which adds them to toFix set and their neighbors to tmpToFix - */ - r.getClient().add(r); - r.getServer().add(r); - - /* - * call management function in order to reallocate - * bandwidth across all network nodes - */ - reallocate(); - - assert tmpToFix.isEmpty(); - assert toFix.isEmpty(); - - } - COM: <s> adds a new bandwidth relation to the network </s> - diff --git a/funcom_test/11758923.txt b/funcom_test/11758923.txt deleted file mode 100644 index ce579861c442b5ad2e392a835225b6809c42ccd5..0000000000000000000000000000000000000000 --- a/funcom_test/11758923.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void removeBWRel(BWRel r) { - - assert tmpToFix.isEmpty(); - assert toFix.isEmpty(); - assert newRates.isEmpty(); - - /* - * calls defreeze on the server and the client of the connection - * which adds tmpToFix set with distance 1 (this triggers the correct - * behavior as distance-1-neighbors can increase the bandwidth of their - * connections) - */ - r.getServer().del(r); - r.getClient().del(r); - - reallocate(); - - assert tmpToFix.isEmpty(); - assert toFix.isEmpty(); - - } - COM: <s> removes the bandwidth relation code r code from the network </s> - diff --git a/funcom_test/11758940.txt b/funcom_test/11758940.txt deleted file mode 100644 index 1de78473d2a43bc9d0d04e277582f657bce6bbbd..0000000000000000000000000000000000000000 --- a/funcom_test/11758940.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void freeze(double newRate, BWNode lbNode) { - frozen = true; - BWNode rbNode = getOtherNode(lbNode); - - rbNode.removeCon(this); // do not adjust the rate while the relation is in rbCons - - rate = newRate; - OriginalImpl.newRates.put(connection, Bandwidth.inBitPerMillisecond(newRate)); - - rbNode.addRBCon(this); - } - COM: <s> freezes this connection i </s> - diff --git a/funcom_test/11758969.txt b/funcom_test/11758969.txt deleted file mode 100644 index 3ea8001f313abebed2ee79dfd2ccec3deb33a661..0000000000000000000000000000000000000000 --- a/funcom_test/11758969.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void addToTmpToFix(Iterator<BWRel> rels, int dist, BWNode exclude) { - while (rels.hasNext()) { - BWRel r = rels.next(); - r.defreeze(); - BWNode other = r.getOtherNode(this); - - if (!other.equals(exclude)) { - other.setDistance(dist); - getTmpToFixSet().add(other); - } - - if (other.isReached()) { - other.calculateBWProCapite(); - } - } - } - COM: <s> iterates over the bwrels code rels code originating at this node and </s> - diff --git a/funcom_test/11759001.txt b/funcom_test/11759001.txt deleted file mode 100644 index a77f43d697ec0401e5106a9eaff6283d71041ae9..0000000000000000000000000000000000000000 --- a/funcom_test/11759001.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void defreeze(BWNode altro) { - - assert (distance >= 0) : "defreeze() invoked for a node with invalid distance"; - - if (distance == 0) { - initialDefreeze(altro); - } else if (distance == 1) { - defreeze1HOP(); - } else if (distance == 2) { - defreeze2HOP(); - } else if (distance == 3) { - defreeze3HOP(); - } - - setBWProCapite(calculateBWProCapite()); - getToFixSet().add(this); - getTmpToFixSet().remove(this); - reached = true; - } - COM: <s> this function is called when a new connection is established or an old </s> - diff --git a/funcom_test/11759212.txt b/funcom_test/11759212.txt deleted file mode 100644 index 49720837b67970bfac90e769d9a06e5ab97f51a3..0000000000000000000000000000000000000000 --- a/funcom_test/11759212.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void mergeIn(Scenario newScenario, int peerIndexNumberFilter, double timeFilter) { - for (ScenarioEvent scenarioEvent : newScenario.scenarioEvents) { - if (scenarioEvent.getExecutionTime() > timeFilter - && scenarioEvent.indexNumberMatches(peerIndexNumberFilter)) { - this.scenarioEvents.add(scenarioEvent); - } - } - } - COM: <s> merges in the events from the code new scenario code into this </s> - diff --git a/funcom_test/11759225.txt b/funcom_test/11759225.txt deleted file mode 100644 index a173234c7c5bbd15c6921d3ae9cb419f9e012f99..0000000000000000000000000000000000000000 --- a/funcom_test/11759225.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void executeMethodOnPeer(Peer peer) { - try { - methodToCall.setAccessible(true); - if (clazz == Peer.class) { - methodToCall.invoke(peer); - } else { - Object target = peer.getPeerletOfType(clazz); - if (target == null) { - logger.error(getGeneralFailureString(peer) + ": peerlet of type " + clazz.getCanonicalName() - + " not found"); - return; - } else { - methodToCall.invoke(target); - } - } - } catch (Exception e) { - logger.error(getGeneralFailureString(peer), e); - } - } - COM: <s> executes the code method code of the event on the code peer code </s> - diff --git a/funcom_test/11759898.txt b/funcom_test/11759898.txt deleted file mode 100644 index baba98a4a3dcef1a58a4cea9a319b502e56e8fbe..0000000000000000000000000000000000000000 --- a/funcom_test/11759898.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void markStart(Object tag) { - synchronized (pair2startTimeMap) { - pair2startTimeMap.put(tag, clock.getCurrentTime()); - // FIXME it probably makes more sense to run the garbage collection - // periodically instead of allocating the timer every time - Timer removalTimer = clock.createNewTimer(); - removalTimer.addTimerListener(new GarbageCollectionTimerListener(tag)); - removalTimer.schedule(Time.inMilliseconds(maxWait)); - } - } - COM: <s> marks the start of the interval </s> - diff --git a/funcom_test/11759899.txt b/funcom_test/11759899.txt deleted file mode 100644 index da642f6ae21cc6e6b5ea8cc1e3c54e685aa8d461..0000000000000000000000000000000000000000 --- a/funcom_test/11759899.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void loadFromFile(String filename) throws ConfigurationException { - InputStream propertiesStream = null; - try { - propertiesStream = new FileInputStream(filename); - Properties properties = new Properties(); - properties.load(propertiesStream); - loadFromProperties(properties); - } catch (ConfigurationException e) { - throw e; - } catch (Exception e) { - throw new ConfigurationException(e); - } finally { - if (propertiesStream != null) { - try { - propertiesStream.close(); - } catch (IOException e) { - throw new ConfigurationException(e); - } - } - } - } - COM: <s> loads the configuration from a file in the java properties format </s> - diff --git a/funcom_test/11759954.txt b/funcom_test/11759954.txt deleted file mode 100644 index 6a43ec2fa1618cb1c57bbe7785f6d227e3be6d64..0000000000000000000000000000000000000000 --- a/funcom_test/11759954.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void initPeers(int startIndex, int numPeers, PeerFactory peerFactory) { - for (int peerIndex = startIndex; peerIndex < startIndex + numPeers; peerIndex++) { - Peer peer = peerFactory.createPeer(peerIndex, this); - peer.init(networkInterfaceFactory, createClock(), getAddressToBindTo(peerIndex)); - peers.setSize(startIndex + numPeers); - peers.setElementAt(peer, peerIndex); - } - } - COM: <s> creates and initializes the peers </s> - diff --git a/funcom_test/11761439.txt b/funcom_test/11761439.txt deleted file mode 100644 index 59a72c53307b0316770e6205e0b22ec68b46f7da..0000000000000000000000000000000000000000 --- a/funcom_test/11761439.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setBootstrapPeers(Collection<Finger> bootstrapPeers){ - synchronized(this.view){ - for(Finger peer:bootstrapPeers){ - FingerDescriptor descriptor=new FingerDescriptor(peer.clone()); - this.ageManager.initAge(descriptor); - this.getView().add(descriptor); - } - //gurantees there are no more than c nodes in the view at the beginning - this.select(new ArrayList()); - } - } - COM: <s> initializes the view with the initial bootstrap neighbors </s> - diff --git a/funcom_test/11761448.txt b/funcom_test/11761448.txt deleted file mode 100644 index d3a41115d70b25a9c91c46955f5e79a3ec4afd87..0000000000000000000000000000000000000000 --- a/funcom_test/11761448.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public FingerDescriptor selectPeer(){ - switch(policy){ - case RAND: - return this.getView().get((int)(Math.random()*this.getView().size())); - case OLD: - return this.ageManager.getOldestDescriptor(this.view); - default: - return null; //no defined policy - } - } - COM: <s> selects a peer from the view to gossip with </s> - diff --git a/funcom_test/11761458.txt b/funcom_test/11761458.txt deleted file mode 100644 index b7f0a1b430bc5b36ed56a16ccc8987fcd5ba4e61..0000000000000000000000000000000000000000 --- a/funcom_test/11761458.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public FingerDescriptor getOldestDescriptor(List<FingerDescriptor> neighbors){ - if(neighbors.size()>0){ - FingerDescriptor oldest=neighbors.get(0);//(int)(Math.random()*neighbors.size()) - for(FingerDescriptor neighbor:neighbors){ - if(isOlder(neighbor, oldest)){ - oldest=neighbor; - } - } - return oldest; - } - return null; - } - COM: <s> finds the oldest finger descriptor from a list of them </s> - diff --git a/funcom_test/11761477.txt b/funcom_test/11761477.txt deleted file mode 100644 index 859d43108008bb07760a63082f121ab193235993..0000000000000000000000000000000000000000 --- a/funcom_test/11761477.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public FingerDescriptor clone(){ - FingerDescriptor fingerDescriptor=new FingerDescriptor(this.getFinger().clone()); - HashMap<Enum, Object> descriptors=new HashMap(); - descriptors.putAll(this.getDescriptors()); - fingerDescriptor.setDescriptors(descriptors); - return fingerDescriptor; - } - COM: <s> clones the descriptor by copying the finger and the descriptor types </s> - diff --git a/funcom_test/11761494.txt b/funcom_test/11761494.txt deleted file mode 100644 index 6969136d1739b0fad1623de0ad3a058cdc90de61..0000000000000000000000000000000000000000 --- a/funcom_test/11761494.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void bootstrap(){ - Timer bootstrapTimer= getPeer().getClock().createNewTimer(); - bootstrapTimer.addTimerListener(new TimerListener(){ - public void timerExpired(Timer timer){ - viewManager.setBootstrapPeers(getNeighborManager().getNeighbors()); - scheduleMeasurements(); - runActiveState(); - } - }); - bootstrapTimer.schedule(B); - } - COM: <s> bootstraps and runs the system </s> - diff --git a/funcom_test/11761563.txt b/funcom_test/11761563.txt deleted file mode 100644 index c30f9905cc8d784e5ffd3aec91eaa392d848af5a..0000000000000000000000000000000000000000 --- a/funcom_test/11761563.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void getGCBlocks() { - if (logger.isDebugEnabled()) { - logger.debug("G2G lookup triggered"); - } - grandChildren = new Vector<Finger>(); - alreadyRequestedGrandchildren = new Vector<Finger>(); - for (Finger peer : getInterestedPeers()) { - // send request for children to interested peer - getPeer().sendMessage(peer.getNetworkAddress(), new G2GChildrenRequestMessage()); - } - - triggerG2gTimer.schedule(triggerG2gInterval); - } - COM: <s> starts search for list of blocks that grandchildren of this peer </s> - diff --git a/funcom_test/11761627.txt b/funcom_test/11761627.txt deleted file mode 100644 index 9b23a663d4bdffd18597feae8dc06a03d2a7cd56..0000000000000000000000000000000000000000 --- a/funcom_test/11761627.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void allocateChunk(VideoChunk chunk, Data sizeInChunk) throws AllocationException { - if (sizeInChunk.isGreaterThan(unallocatedChunksize)) { - throw new AllocationException(chunk, this); - } - allocatedChunksizes.put(chunk, sizeInChunk); - unallocatedBlocksizes.put(chunk, sizeInChunk); - unallocatedChunksize = unallocatedChunksize.subtract(sizeInChunk); - } - COM: <s> allocates a chunk to this frames </s> - diff --git a/funcom_test/11761705.txt b/funcom_test/11761705.txt deleted file mode 100644 index 11e56ccc736c0535aec3eeeccd80cfffbcb183a7..0000000000000000000000000000000000000000 --- a/funcom_test/11761705.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: protected void createPeerlets() { - - createNeighborManagementPeerlets(); - - // state - StorageWrapper storageWrapper = createStorageWrapper(); - - setPeerState(createPeerState(storageWrapper)); - - // interested-management - addPeerlet(new InterestedClient(getPeerState())); - - RemoteChunksPeerlet rcp = new RemoteChunksPeerlet(getNeighborManager()); - addPeerlet(rcp); - addPeerlet(new BTInterestedServer(rcp, getPeerState())); - - // choke/unchoke - addPeerlet(new ChokePeerlet(getPeerState())); - - // Up/download - addPeerlet(new DownloadPeerlet(getPeerState())); - addPeerlet(new UploadPeerlet(getPeerState())); - - } - COM: <s> peerlet creation function </s> - diff --git a/funcom_test/11761754.txt b/funcom_test/11761754.txt deleted file mode 100644 index af9c074c650ed2f7718a41d1a2524a6dc954759e..0000000000000000000000000000000000000000 --- a/funcom_test/11761754.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void startBlockTransmission(PieceMessage message) { - Bandwidth currentBW = up.getRateLimit(); - Bandwidth newFairshare = currentBW.divideBy(transmissions.size()+1); - Time now = up.getPeer().getClock().getTime(); - - // Update old transmissions - for(Transmission t : transmissions) { - t.updateTransmission(lastUpdate, now, fairshare, newFairshare); - } - - // Create new transmission - transmissions.add(new Transmission(this, message, now, newFairshare)); - - // Update stored Bandwidth and Time - lastUpdate = now; - fairshare = newFairshare; - } - COM: <s> this function is called when a new block transmission is started by the </s> - diff --git a/funcom_test/11761778.txt b/funcom_test/11761778.txt deleted file mode 100644 index eb77aa7fa54cbabd839f6f061577fce7647a0421..0000000000000000000000000000000000000000 --- a/funcom_test/11761778.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void updateRate(Data amount, Time now) { - Time oldTime = last.subtract(rateSince); - Data oldData = Converter.getData(rate, oldTime); - Data allData = oldData.add(amount); - Time allTime = now.subtract(rateSince).add(Time.inMilliseconds(0.001)); - - rate = Converter.getBandwidth(allData, allTime); - last = now; - if (rateSince.isLowerThan(now.subtract(maxRatePeriod))) { - rateSince = now.subtract(maxRatePeriod); - } - } - COM: <s> updates the traffic rate with code amount code at time </s> - diff --git a/funcom_test/11761872.txt b/funcom_test/11761872.txt deleted file mode 100644 index 6b628b1e1462e44ff5846d4936fe0c5a92139a1e..0000000000000000000000000000000000000000 --- a/funcom_test/11761872.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void handleCancelMessage(CancelMessage message) { - FileSharingNeighborManager nm = state.getNeighborManager(); - Finger remotePeer = nm.getNeighborByNetworkAddress( - message.getSourceAddress()); - - if (remotePeer != null) { - ConnectionState cs = nm.getConnectionState(remotePeer); - if (cs != null) { - BlockDescriptor block = new BlockDescriptor( - message.getChunkIndex(), message.getBlockIndex()); - cs.removeRequest(block); - } - } - } - COM: <s> cancels the request of a block of the peer which sent this messages </s> - diff --git a/funcom_test/11761882.txt b/funcom_test/11761882.txt deleted file mode 100644 index 0f38930ac2ff3dac4a0989a268c24880c4ab6116..0000000000000000000000000000000000000000 --- a/funcom_test/11761882.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void handleChokeMessage(ChokeMessage message, Finger remotePeer) { - ConnectionState cs = state.getNeighborManager().getConnectionState( - remotePeer); - if (cs != null) { - cs.setPeerChoking(true); - - // clear requested blocks from this peer - StorageWrapper sw = state.getStorageWrapper(); - for (BlockDescriptor block : sw.getRequestedBlocks(remotePeer)) { - sw.setBlockRequestCanceled(block, remotePeer); - } - } - } - COM: <s> sets the code remote peer code s status to choking and cancel all </s> - diff --git a/funcom_test/11761886.txt b/funcom_test/11761886.txt deleted file mode 100644 index 28de96e5068e9fbd5a6b9dfa93a12530265c22c3..0000000000000000000000000000000000000000 --- a/funcom_test/11761886.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void handlePieceMessage(PieceMessage message, Finger remotePeer) { - AbstractBlock block = message.getBlock(); - state.getStorageWrapper().setBlockDownloaded(block, remotePeer, - getPeer().getClock().getTime()); - - blockReceived(block, remotePeer); - - cancelRemainingRequests(block); - - ConnectionState cs = state.getNeighborManager().getConnectionState( - remotePeer); - if (cs != null && !cs.isPeerChoking()) { - // send new request - requestBlock(remotePeer); - } - } - COM: <s> notifies the storage wrapper that a new block is downloaded sends a new </s> - diff --git a/funcom_test/11761909.txt b/funcom_test/11761909.txt deleted file mode 100644 index d7a14599e45baedbfb1dd483303020995b807d83..0000000000000000000000000000000000000000 --- a/funcom_test/11761909.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void sendTrackerMessage(TrackerRequestMessage.EVENT event, int number) { - - double completed = ((FileSharingPeer) - getPeer()).getStorageWrapper().getCompletedFraction(); - - Message m = new TrackerRequestMessage(getPeer().getIdentifier(), - event, completed, number); - getPeer().sendMessage(trackerAddress, m); - - // reschedule timer - sendAliveTimer.cancel(); - sendAliveTimer.schedule(aliveInterval); - } - COM: <s> sends a code tracker request message code to the tracker </s> - diff --git a/funcom_test/11761989.txt b/funcom_test/11761989.txt deleted file mode 100644 index e4ffd83cf7fc3a27c520bc0763105bcfa5232ffb..0000000000000000000000000000000000000000 --- a/funcom_test/11761989.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void handleHandshakeMessage(HandshakeMessage message) { - NetworkAddress remoteAddress = message.getSourceAddress(); - Message response = null; - if (neighborManager.incomingConnectionAllowed()) { - response = new AcceptHandshakeMessage(getPeer().getIdentifier()); - Finger pendingNeighbor = new Finger( - message.getSourceAddress(), message.getPeerId()); - addPendingNeighbor(pendingNeighbor); - } else { - response = new RejectHandshakeMessage(getPeer().getIdentifier()); - } - getPeer().sendMessage(remoteAddress, response); - } - COM: <s> the remote peer wants to initiate a connection by sending this message </s> - diff --git a/funcom_test/1189466.txt b/funcom_test/1189466.txt deleted file mode 100644 index 0158872d6be97ac696c7f50085703e7f5ab2fc8f..0000000000000000000000000000000000000000 --- a/funcom_test/1189466.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public int blocksAccessed() { - // create a dummy TableInfo object to calculate record length - TableInfo ti = new TableInfo("", srcplan.schema()); - double rpb = (double) (BLOCK_SIZE / ti.recordLength()); - return (int) Math.ceil(srcplan.recordsOutput() / rpb); - } - COM: <s> returns the estimated number of blocks in the </s> - diff --git a/funcom_test/1189496.txt b/funcom_test/1189496.txt deleted file mode 100644 index 6a2f6c9d16b48414befbf4bea5c6a2b6f07a6ef3..0000000000000000000000000000000000000000 --- a/funcom_test/1189496.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean next() { - if (!moregroups) - return false; - for (AggregationFn fn : aggfns) - fn.processFirst(s); - groupval = new GroupValue(s, groupfields); - while(moregroups = s.next()) { - GroupValue gv = new GroupValue(s, groupfields); - if (!groupval.equals(gv)) - break; - for (AggregationFn fn : aggfns) - fn.processNext(s); - } - return true; - } - COM: <s> moves to the next group </s> - diff --git a/funcom_test/1189507.txt b/funcom_test/1189507.txt deleted file mode 100644 index 643baa97d9e86d226ddd795475657b97f45e18a6..0000000000000000000000000000000000000000 --- a/funcom_test/1189507.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private FileChannel getFile(String filename) throws IOException { - FileChannel fc = openFiles.get(filename); - if (fc == null) { - File dbTable = new File(dbDirectory, filename); - RandomAccessFile f = new RandomAccessFile(dbTable, "rws"); - fc = f.getChannel(); - openFiles.put(filename, fc); - } - return fc; - } - COM: <s> returns the file channel for the specified filename </s> - diff --git a/funcom_test/1189516.txt b/funcom_test/1189516.txt deleted file mode 100644 index 249aa1e3c7fdf908baf34df260e043ee52e1a211..0000000000000000000000000000000000000000 --- a/funcom_test/1189516.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Plan makeJoinPlan(Plan current) { - Schema currsch = current.schema(); - Predicate joinpred = mypred.joinPred(myschema, currsch); - if (joinpred == null) - return null; - Plan p = makeIndexJoin(current, currsch); - if (p == null) - p = makeProductJoin(current, currsch); - return p; - } - COM: <s> constructs a join plan of the specified plan </s> - diff --git a/funcom_test/1189597.txt b/funcom_test/1189597.txt deleted file mode 100644 index 6c7c4689278b66514778d8a4e2fc539efaa3b7b2..0000000000000000000000000000000000000000 --- a/funcom_test/1189597.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Constant equatesWithConstant(String fldname) { - if (lhs.isFieldName() && - lhs.asFieldName().equals(fldname) && - rhs.isConstant()) - return rhs.asConstant(); - else if (rhs.isFieldName() && - rhs.asFieldName().equals(fldname) && - lhs.isConstant()) - return lhs.asConstant(); - else - return null; - } - COM: <s> determines if this term is of the form f c </s> - diff --git a/funcom_test/1189603.txt b/funcom_test/1189603.txt deleted file mode 100644 index 17076be27457da81138e7a21ca6b7d7391887157..0000000000000000000000000000000000000000 --- a/funcom_test/1189603.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String equatesWithField(String fldname) { - if (lhs.isFieldName() && - lhs.asFieldName().equals(fldname) && - rhs.isFieldName()) - return rhs.asFieldName(); - else if (rhs.isFieldName() && - rhs.asFieldName().equals(fldname) && - lhs.isFieldName()) - return lhs.asFieldName(); - else - return null; - } - COM: <s> determines if this term is of the form f1 f2 </s> - diff --git a/funcom_test/1189712.txt b/funcom_test/1189712.txt deleted file mode 100644 index 03317559101ae0ee3a74084d2674c286eb4d6d02..0000000000000000000000000000000000000000 --- a/funcom_test/1189712.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int setInt(Buffer buff, int offset, int newval) { - int oldval = buff.getInt(offset); - Block blk = buff.block(); - if (isTempBlock(blk)) - return -1; - else - return new SetIntRecord(txnum, blk, offset, oldval).writeToLog(); - } - COM: <s> writes a setint record to the log and returns its lsn </s> - diff --git a/funcom_test/1189718.txt b/funcom_test/1189718.txt deleted file mode 100644 index 78daff90015c182b41341b27aafcf8c62a24871d..0000000000000000000000000000000000000000 --- a/funcom_test/1189718.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int setString(Buffer buff, int offset, String newval) { - String oldval = buff.getString(offset); - Block blk = buff.block(); - if (isTempBlock(blk)) - return -1; - else - return new SetStringRecord(txnum, blk, offset, oldval).writeToLog(); - } - COM: <s> writes a setstring record to the log and returns its lsn </s> - diff --git a/funcom_test/1189726.txt b/funcom_test/1189726.txt deleted file mode 100644 index d95a48a7309248b0376b6d1858ba41012f6b0cb8..0000000000000000000000000000000000000000 --- a/funcom_test/1189726.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void doRollback() { - Iterator<LogRecord> iter = new LogRecordIterator(); - while (iter.hasNext()) { - LogRecord rec = iter.next(); - if (rec.txNumber() == txnum) { - if (rec.op() == START) - return; - rec.undo(txnum); - } - } - } - COM: <s> rolls back the transaction </s> - diff --git a/funcom_test/1189730.txt b/funcom_test/1189730.txt deleted file mode 100644 index a2f89b364ef4d01cbbc557b35016e1cab3852f5d..0000000000000000000000000000000000000000 --- a/funcom_test/1189730.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setInt(Block blk, int offset, int val) { - concurMgr.xLock(blk); - Buffer buff = myBuffers.getBuffer(blk); - int lsn = recoveryMgr.setInt(buff, offset, val); - buff.setInt(offset, val, txnum, lsn); - } - COM: <s> stores an integer at the specified offset </s> - diff --git a/funcom_test/1189741.txt b/funcom_test/1189741.txt deleted file mode 100644 index 7d6a6427998a7a128b44b2bd2dac5ffd3b765d25..0000000000000000000000000000000000000000 --- a/funcom_test/1189741.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setString(Block blk, int offset, String val) { - concurMgr.xLock(blk); - Buffer buff = myBuffers.getBuffer(blk); - int lsn = recoveryMgr.setString(buff, offset, val); - buff.setString(offset, val, txnum, lsn); - } - COM: <s> stores a string at the specified offset </s> - diff --git a/funcom_test/1189764.txt b/funcom_test/1189764.txt deleted file mode 100644 index 92deba2a928c0af6350fab1d7f294690abd358d5..0000000000000000000000000000000000000000 --- a/funcom_test/1189764.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int search(Constant searchkey) { - Block childblk = findChildBlock(searchkey); - while (contents.getFlag() > 0) { - contents.close(); - contents = new BTreePage(childblk, ti, tx); - childblk = findChildBlock(searchkey); - } - return childblk.number(); - } - COM: <s> returns the block number of the b tree leaf block </s> - diff --git a/funcom_test/1189767.txt b/funcom_test/1189767.txt deleted file mode 100644 index 71f5e83f9cfba8797e696869f901507036150ce3..0000000000000000000000000000000000000000 --- a/funcom_test/1189767.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void makeNewRoot(DirEntry e) { - Constant firstval = contents.getDataVal(0); - int level = contents.getFlag(); - Block newblk = contents.split(0, level); //ie, transfer all the records - DirEntry oldroot = new DirEntry(firstval, newblk.number()); - insertEntry(oldroot); - insertEntry(e); - contents.setFlag(level+1); - } - COM: <s> creates a new root block for the b tree </s> - diff --git a/funcom_test/1189770.txt b/funcom_test/1189770.txt deleted file mode 100644 index 3a93f12aff6ec64d42217f8795b5218ad49d9da7..0000000000000000000000000000000000000000 --- a/funcom_test/1189770.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public DirEntry insert(DirEntry e) { - if (contents.getFlag() == 0) - return insertEntry(e); - Block childblk = findChildBlock(e.dataVal()); - BTreeDir child = new BTreeDir(childblk, ti, tx); - DirEntry myentry = child.insert(e); - child.close(); - return (myentry != null) ? insertEntry(myentry) : null; - } - COM: <s> inserts a new directory entry into the b tree block </s> - diff --git a/funcom_test/1189778.txt b/funcom_test/1189778.txt deleted file mode 100644 index 2e9fd59cb2e5fe24032a3a252eec144174c99ccf..0000000000000000000000000000000000000000 --- a/funcom_test/1189778.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void format(Page page) { - page.setInt(0, flag); - page.setInt(INT_SIZE, 0); // #records = 0 - int recsize = ti.recordLength(); - for (int pos=2*INT_SIZE; pos+recsize<=BLOCK_SIZE; pos += recsize) - makeDefaultRecord(page, pos); - } - COM: <s> formats the page by initializing as many index record slots </s> - diff --git a/funcom_test/1189780.txt b/funcom_test/1189780.txt deleted file mode 100644 index 6bda3c1ac2a5c90ba17d888d2536dc0bb0f45097..0000000000000000000000000000000000000000 --- a/funcom_test/1189780.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void beforeFirst(Constant searchkey) { - close(); - BTreeDir root = new BTreeDir(rootblk, dirTi, tx); - int blknum = root.search(searchkey); - root.close(); - Block leafblk = new Block(leafTi.fileName(), blknum); - leaf = new BTreeLeaf(leafblk, leafTi, searchkey, tx); - } - COM: <s> traverses the directory to find the leaf block corresponding </s> - diff --git a/funcom_test/1189784.txt b/funcom_test/1189784.txt deleted file mode 100644 index 11184bae7a604da43e603458b3165dc217cb654f..0000000000000000000000000000000000000000 --- a/funcom_test/1189784.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void insert(Constant dataval, RID datarid) { - beforeFirst(dataval); - DirEntry e = leaf.insert(datarid); - leaf.close(); - if (e == null) - return; - BTreeDir root = new BTreeDir(rootblk, dirTi, tx); - DirEntry e2 = root.insert(e); - if (e2 != null) - root.makeNewRoot(e2); - root.close(); - } - COM: <s> inserts the specified record into the index </s> - diff --git a/funcom_test/1189825.txt b/funcom_test/1189825.txt deleted file mode 100644 index 3963dbeb6ec27e5da3142e9a82b6e62dbb84d24c..0000000000000000000000000000000000000000 --- a/funcom_test/1189825.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void insert(Constant val, RID rid) { - beforeFirst(val); - ts.insert(); - ts.setInt("block", rid.blockNumber()); - ts.setInt("id", rid.id()); - ts.setVal("dataval", val); - } - COM: <s> inserts a new record into the table scan for the bucket </s> - diff --git a/funcom_test/1189832.txt b/funcom_test/1189832.txt deleted file mode 100644 index 4d4301d06cc0e7ee7df618ef67cf67b6bd59d47b..0000000000000000000000000000000000000000 --- a/funcom_test/1189832.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void insertLeaf(int slot, Constant val, RID rid) { - insert(slot); - setVal(slot, "dataval", val); - setInt(slot, "block", rid.blockNumber()); - setInt(slot, "id", rid.id()); - } - COM: <s> inserts a leaf index record at the specified slot </s> - diff --git a/funcom_test/1189908.txt b/funcom_test/1189908.txt deleted file mode 100644 index c7cdf35a224aecafbb4b61064f2b06c246fd8650..0000000000000000000000000000000000000000 --- a/funcom_test/1189908.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void createIndex(String idxname, String tblname, String fldname, Transaction tx) { - RecordFile rf = new RecordFile(ti, tx); - rf.insert(); - rf.setString("indexname", idxname); - rf.setString("tablename", tblname); - rf.setString("fieldname", fldname); - rf.close(); - } - COM: <s> creates an index of the specified type for the specified field </s> - diff --git a/funcom_test/1189911.txt b/funcom_test/1189911.txt deleted file mode 100644 index 4dae39a5955332572bef823867d674aab9282809..0000000000000000000000000000000000000000 --- a/funcom_test/1189911.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Schema schema() { - Schema sch = new Schema(); - sch.addIntField("block"); - sch.addIntField("id"); - if (ti.schema().type(fldname) == INTEGER) - sch.addIntField("dataval"); - else { - int fldlen = ti.schema().length(fldname); - sch.addStringField("dataval", fldlen); - } - return sch; - } - COM: <s> returns the schema of the index records </s> - diff --git a/funcom_test/1189912.txt b/funcom_test/1189912.txt deleted file mode 100644 index 671f98839ecb875423512ee92f3ee8eadfd52eb3..0000000000000000000000000000000000000000 --- a/funcom_test/1189912.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int blocksAccessed() { - // this guesses at the # of chunks - int avail = SimpleDB.bufferMgr().available(); - int size = new MaterializePlan(rhs, tx).blocksAccessed(); - int numchunks = size / avail; - return rhs.blocksAccessed() + - (lhs.blocksAccessed() * numchunks); - } - COM: <s> returns an estimate of the number of block accesses </s> - diff --git a/funcom_test/1189960.txt b/funcom_test/1189960.txt deleted file mode 100644 index 8096fd815ae43a750e3f841fde15012f9e217304..0000000000000000000000000000000000000000 --- a/funcom_test/1189960.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public RemoteResultSet executeQuery(String qry) throws RemoteException { - try { - Transaction tx = rconn.getTransaction(); - Plan pln = SimpleDB.planner().createQueryPlan(qry, tx); - pln.blocksAccessed(); - return new RemoteResultSetImpl(pln, rconn); - } - catch(RuntimeException e) { - rconn.rollback(); - throw e; - } - } - COM: <s> executes the specified sql query string </s> - diff --git a/funcom_test/1189964.txt b/funcom_test/1189964.txt deleted file mode 100644 index de74c3522dd30aac952cfece9d82e2a89170063d..0000000000000000000000000000000000000000 --- a/funcom_test/1189964.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int executeUpdate(String cmd) throws RemoteException { - try { - Transaction tx = rconn.getTransaction(); - int result = SimpleDB.planner().executeUpdate(cmd, tx); - rconn.commit(); - return result; - } - catch(RuntimeException e) { - rconn.rollback(); - throw e; - } - } - COM: <s> executes the specified sql update command </s> - diff --git a/funcom_test/1189978.txt b/funcom_test/1189978.txt deleted file mode 100644 index d28e1a597574a03891130b567a9aebd23ef8f615..0000000000000000000000000000000000000000 --- a/funcom_test/1189978.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Connection connect(String url, Properties prop) throws SQLException { - try { - String newurl = url.replace("jdbc:simpledb", "rmi") + "/simpledb"; - RemoteDriver rdvr = (RemoteDriver) Naming.lookup(newurl); - RemoteConnection rconn = rdvr.connect(); - return new SimpleConnection(rconn); - } - catch (Exception e) { - throw new SQLException(e); - } - } - COM: <s> connects to the simple db server on the specified host </s> - diff --git a/funcom_test/11940205.txt b/funcom_test/11940205.txt deleted file mode 100644 index bac6ecbe004e060ca67ba008323afd99cc9f9706..0000000000000000000000000000000000000000 --- a/funcom_test/11940205.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public WsmlEntityVo findMatchingWsmlEntityVo(Entity entity) { - - // create new Vo from parsed entity - WsmlEntityVo parsedWsmlEntityVo = new WsmlEntityVo(0, entity); - // compare with each serilized Vo - for (WsmlEntityVo serialWsmlEntityVo : this.getWsmlEntityVos()) { - // compare - if (serialWsmlEntityVo.equals(parsedWsmlEntityVo)) { - return serialWsmlEntityVo; - } - } - // if not found return null - return null; - } - COM: <s> seraches linearly in list for given parsed wsml entity compares using </s> - diff --git a/funcom_test/11940210.txt b/funcom_test/11940210.txt deleted file mode 100644 index f45b0df0542492d26285622051da4147b2d22462..0000000000000000000000000000000000000000 --- a/funcom_test/11940210.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Concept getSelectedParent(Object parentObject) { - Concept parentConcept = null; - - if (parentObject instanceof Concept) - parentConcept = (Concept) parentObject; - else if (parentObject instanceof String) { - String parentName = ((String) parentObject); - if (parentName.equalsIgnoreCase("root concept")) - // assure parent is null, e.g. concept becomes global - parentConcept = null; - } - return parentConcept; - } - COM: <s> casts parent element into an entity </s> - diff --git a/funcom_test/11940244.txt b/funcom_test/11940244.txt deleted file mode 100644 index 3f6fb74d4db4d13897c6dd0a2d77766928cd20f5..0000000000000000000000000000000000000000 --- a/funcom_test/11940244.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void setFields(Composite group) { - - // entity name - Label nameLabel = new Label(group, SWT.SINGLE); - nameLabel.setText("Name: "); - - nameText = new Text(group, SWT.SINGLE | SWT.BORDER); - - // entity Type - Label typeLabel = new Label(group, SWT.SINGLE); - typeLabel.setText("Type: "); - - this.typeText = new Text(group, SWT.SINGLE | SWT.BORDER); - - Label parentLabel = new Label(group, SWT.SINGLE); - parentLabel.setText("Parent: "); - } - COM: <s> define the fields used in the grid and form layout examples </s> - diff --git a/funcom_test/11940274.txt b/funcom_test/11940274.txt deleted file mode 100644 index ed16affcf80d422bb1edd478a03107d2a80eb434..0000000000000000000000000000000000000000 --- a/funcom_test/11940274.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: private void setRemapAction() { - - this.remapAction = new Action() { - - // action logic here - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.action.IAction#run() - */ - @Override - public void run() { - remap(); - } - - }; - - // remapAction.setEnabled(false); - remapAction.setText("Remap Wsml Entity "); - /* - * remapAction.setImageDescriptor(PlatformUI.getWorkbench() - * .getSharedImages().getImageDescriptor( ISharedImages.IMG_TOOL_REDO)); - */ - remapAction.setImageDescriptor(REMAPIMAGE); - - } - COM: <s> creates remap action </s> - diff --git a/funcom_test/11940280.txt b/funcom_test/11940280.txt deleted file mode 100644 index 0d9c3f62dff7d6f394cd5e6c941e7baf3d10e581..0000000000000000000000000000000000000000 --- a/funcom_test/11940280.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setSelectionInXsdTreeViewer(MappingVo selectedMappingVo) { - // get selected XsEntity Object - XsEntityVo selectedEntityVo = selectedMappingVo.getXsEntityVo(); - XmlItem selectedXmlItem = selectedMappingVo.getXsEntityVo() - .getXmlItem(); - - // expand and set Selection - int level = selectedEntityVo.getLevel(); - xsdViewer.expandToLevel(level + 1); - xsdViewer.setSelection(new StructuredSelection(selectedXmlItem)); - xsdViewer.refresh(); - } - COM: <s> exapand to selection and highlight it in xsd view remark xsd tree </s> - diff --git a/funcom_test/11940291.txt b/funcom_test/11940291.txt deleted file mode 100644 index b145f1f488e41b12257eb4281a4b17c0647486c7..0000000000000000000000000000000000000000 --- a/funcom_test/11940291.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void createContextMenu() { - MenuManager mngr = new MenuManager(); - // create context menu - Menu contextMenu = mngr.createContextMenu(this.mappingTable - .getControl()); - // add to control - this.mappingTable.getControl().setMenu(contextMenu); - // add action to context menu - if (remapAction != null) { - mngr.add(remapAction); - } - mngr.add(this.viewAction); - - } - COM: <s> creates a context menu for content viewer adds delete action to context </s> - diff --git a/funcom_test/11940319.txt b/funcom_test/11940319.txt deleted file mode 100644 index 02d375347e37237d8b959863dbc2f262efc3903d..0000000000000000000000000000000000000000 --- a/funcom_test/11940319.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void traverseGlobalNodes() { - Node currentGlobalNode = root.getFirstChild(); - - while (currentGlobalNode != null) { - // logic of processing here - - // traverse - XmlItem globalItem = traverseNode(currentGlobalNode); - if (globalItem != null) - this.globalItems.add(globalItem); - // process next - currentGlobalNode = currentGlobalNode.getNextSibling(); - } - try { - this.is.close(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - COM: <s> processes each of the global elements elements that are children of </s> - diff --git a/funcom_test/11940384.txt b/funcom_test/11940384.txt deleted file mode 100644 index 95fbd73e26b821f5450bd8b1b7bd1d13a44b6cc2..0000000000000000000000000000000000000000 --- a/funcom_test/11940384.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void processFileName(String absFilePath) { - File file = new File(absFilePath); - // set project path and project name = name of xsd file - Constants.PROJECTNAME = Utility.getFileName(file.getName()); - Constants.PROJECTPATH = file.getParent() + "/"; - - Constants.XSDFILE = absFilePath; - // Constants.XSDFILE = Constants.XSDFILETEST; - - Constants.WSMLFILE = Constants.PROJECTPATH + Constants.PROJECTNAME - + ".wsml"; - Constants.MPJFILE = Constants.PROJECTPATH + Constants.PROJECTNAME - + ".mpj"; - - } - COM: <s> sets project file name </s> - diff --git a/funcom_test/11950086.txt b/funcom_test/11950086.txt deleted file mode 100644 index c91ea13c67a4131af94edd480d84dd937332bbce..0000000000000000000000000000000000000000 --- a/funcom_test/11950086.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetNumeroBus() { - System.out.println("getNumeroBus"); - - Cronograma instance = null; - - String expResult = ""; - String result = instance.getNumeroBus(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get numero bus method of class proyectoventadepasajes </s> - diff --git a/funcom_test/11950091.txt b/funcom_test/11950091.txt deleted file mode 100644 index ed42cb99cbf5e64f2c25927ed8141abc3779448a..0000000000000000000000000000000000000000 --- a/funcom_test/11950091.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetNumeroBus() { - System.out.println("setNumeroBus"); - - String numeroBus = ""; - Cronograma instance = null; - - instance.setNumeroBus(numeroBus); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set numero bus method of class proyectoventadepasajes </s> - diff --git a/funcom_test/11950096.txt b/funcom_test/11950096.txt deleted file mode 100644 index f77539c8294d61e0fb57b93e0ff8610e33772ac6..0000000000000000000000000000000000000000 --- a/funcom_test/11950096.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetDestino() { - System.out.println("getDestino"); - - Cronograma instance = null; - - String expResult = ""; - String result = instance.getDestino(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get destino method of class proyectoventadepasajes </s> - diff --git a/funcom_test/11950106.txt b/funcom_test/11950106.txt deleted file mode 100644 index 9735c90688b395d26682cd63c1aad9411a24f27b..0000000000000000000000000000000000000000 --- a/funcom_test/11950106.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetFecha() { - System.out.println("getFecha"); - - Cronograma instance = null; - - String expResult = ""; - String result = instance.getFecha(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get fecha method of class proyectoventadepasajes </s> - diff --git a/funcom_test/11950115.txt b/funcom_test/11950115.txt deleted file mode 100644 index 326385af7b6ad6787639a8582a7ea106b62ca66f..0000000000000000000000000000000000000000 --- a/funcom_test/11950115.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetHora() { - System.out.println("getHora"); - - Cronograma instance = null; - - String expResult = ""; - String result = instance.getHora(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get hora method of class proyectoventadepasajes </s> - diff --git a/funcom_test/11950127.txt b/funcom_test/11950127.txt deleted file mode 100644 index 66836238795a5c6261cecc80d1f12fa1f341dc97..0000000000000000000000000000000000000000 --- a/funcom_test/11950127.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testToString() { - System.out.println("toString"); - - Cronograma instance = null; - - String expResult = ""; - String result = instance.toString(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of to string method of class proyectoventadepasajes </s> - diff --git a/funcom_test/11950130.txt b/funcom_test/11950130.txt deleted file mode 100644 index 0a75304444d3afa4cc0a86a5e65bd241ebc865ff..0000000000000000000000000000000000000000 --- a/funcom_test/11950130.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetCodigo() { - System.out.println("getCodigo"); - - Cronograma instance = null; - - String expResult = ""; - String result = instance.getCodigo(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get codigo method of class proyectoventadepasajes </s> - diff --git a/funcom_test/12022371.txt b/funcom_test/12022371.txt deleted file mode 100644 index 9ba66c12c879717c6e8ae45e901f333a7caabecf..0000000000000000000000000000000000000000 --- a/funcom_test/12022371.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public CalendarDate getRemoteLocalDate() { - StringBuffer stringBuffer = new StringBuffer("GMT"); - stringBuffer.append(offsetToString(_offset)); - return Gregorian.getGregorianCalendar().getCalendarDate(_utcTime, TimeZone.getTimeZone(stringBuffer.toString())); - } - COM: <s> returns b u transported u b locale time </s> - diff --git a/funcom_test/12074406.txt b/funcom_test/12074406.txt deleted file mode 100644 index 13fe70ec4393b7a350bcbe341cb53044a140bb8a..0000000000000000000000000000000000000000 --- a/funcom_test/12074406.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private PreferenceStore getPreferenceStore(final Shell shell) { - try { - final File preferencesFile = new File("preferences.properties"); //$NON-NLS-1$ - PreferenceStore store; - - if (!preferencesFile.exists()) { - // create new preferences file - preferencesFile.createNewFile(); - } - - store = new PreferenceStore(preferencesFile.getName()); - store.load(); - return store; - } catch (final IOException e) { - throw new PhotoListerException("Unable to load preferences."); //$NON-NLS-1$ - } - } - COM: <s> creates and the code preference store code for this application </s> - diff --git a/funcom_test/12074447.txt b/funcom_test/12074447.txt deleted file mode 100644 index a2b488d7fb95e49457e221deb06cf0c63ec15b16..0000000000000000000000000000000000000000 --- a/funcom_test/12074447.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void zoomIn() { - if (sourceImage == null) { - return; - } - final Rectangle rect = getClientArea(); - final int w = rect.width, h = rect.height; - final double dx = ((double) w) / 2; - final double dy = ((double) h) / 2; - centerZoom(dx, dy, ZOOMIN_RATE, transform); - } - COM: <s> zoom in around the center of client area </s> - diff --git a/funcom_test/12074448.txt b/funcom_test/12074448.txt deleted file mode 100644 index c6f89527e516abf8c1704f0789a2ffb19efad9f7..0000000000000000000000000000000000000000 --- a/funcom_test/12074448.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void zoomOut() { - if (sourceImage == null) { - return; - } - final Rectangle rect = getClientArea(); - final int w = rect.width, h = rect.height; - final double dx = ((double) w) / 2; - final double dy = ((double) h) / 2; - centerZoom(dx, dy, ZOOMOUT_RATE, transform); - } - COM: <s> zoom out around the center of client area </s> - diff --git a/funcom_test/12107446.txt b/funcom_test/12107446.txt deleted file mode 100644 index 386666aee8c596d6a3e9d1a6c40ddede96e7fc6a..0000000000000000000000000000000000000000 --- a/funcom_test/12107446.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void startNow(Node n) throws VoidexException { - if (n.isStartSupported()) { - executioner.executeEvent(n.getStart(), n.getSatellite()); - - if (log != null) { - log.logEventExecution(n, "START", n.getStart()); - } - } - } - COM: <s> execute the starting event of node </s> - diff --git a/funcom_test/1212818.txt b/funcom_test/1212818.txt deleted file mode 100644 index 303d770f15052530598043a51dd05fa5edf1c840..0000000000000000000000000000000000000000 --- a/funcom_test/1212818.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int getOverlapArea(int x1, int y1, int x2, int y2, DraggableCard exampleCard) { - int cardWidth = exampleCard.getOffsetWidth(); - int cardHeight = exampleCard.getOffsetHeight(); - - int xOverlap = getOverlapLength(x1, x2, cardWidth); - int yOverlap = getOverlapLength(y1, y2, cardHeight); - - return xOverlap * yOverlap; - } - COM: <s> determines overlap area of 2 congruent rectangles </s> - diff --git a/funcom_test/1212826.txt b/funcom_test/1212826.txt deleted file mode 100644 index 479f784e3dec6fb7491c876f39405ee05c89c4be..0000000000000000000000000000000000000000 --- a/funcom_test/1212826.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void onMouseMove(Widget source, int x, int y) { - int scrollY = JSNI.getScrollY(); - int scrollX = JSNI.getScrollX(); - int xTooltipPosition = x + source.getAbsoluteLeft() + scrollX + xTooltipOffset; - int yTooltipPosition = y + source.getAbsoluteTop() + scrollY + yTooltipOffset; - Cardpanda.canvas.setWidgetPosition(tip, xTooltipPosition, yTooltipPosition); - } - COM: <s> moves the tooltip with the mouse cursor </s> - diff --git a/funcom_test/1212944.txt b/funcom_test/1212944.txt deleted file mode 100644 index 52b5ef14527b72483fae47845e0cc6c176fd295a..0000000000000000000000000000000000000000 --- a/funcom_test/1212944.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void logPersonalNote(String result, boolean mine) { - if(mine) { - setMyColor(); - } else { - setOpponentColor(); - } - - String thisClientsName = Cardpanda.clientModel.getSessionID().getName(); - setHTML(result.replace(thisClientsName + "'s", "your")); - Window.setTitle("[" + Cardpanda.clientModel.getSessionID().getName() + "] " - + result.replace(thisClientsName + "'s", "your")); - } - COM: <s> logs something that only the client needs to see </s> - diff --git a/funcom_test/1213121.txt b/funcom_test/1213121.txt deleted file mode 100644 index 055b9e85fd52a70e88839f16a481f0c9e988edf6..0000000000000000000000000000000000000000 --- a/funcom_test/1213121.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addCounter(Color color, long serverID, int x, int y) { - Counter counter = new Counter(color, serverID); - - counters.add(counter); - Cardpanda.canvas.add(counter, x, y); - - System.out.println(counter.getName() + " " + counter.getServerID() + " added at " + x + "," + y); - } - COM: <s> adds a counter to the canvas and the counters in play list </s> - diff --git a/funcom_test/1213163.txt b/funcom_test/1213163.txt deleted file mode 100644 index 30cc1aa5d3f86eb9734e97814d308ce82838897c..0000000000000000000000000000000000000000 --- a/funcom_test/1213163.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setBinHover(Counter counter, int x, int y) { - final List<Bin> bins = Cardpanda.clientModel.getBinsThisClientControls(); - for(Bin bin : bins) { - if(withinBinCoordinates(counter, bin, x, y)) { - bin.setHover(); - } else { - bin.removeHover(); - } - } - } - COM: <s> set bin hover if this card is dragged over a bin </s> - diff --git a/funcom_test/1213319.txt b/funcom_test/1213319.txt deleted file mode 100644 index 5cc2b2f40300b04bb7fed58a11826cde2f0d449f..0000000000000000000000000000000000000000 --- a/funcom_test/1213319.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void shuffleLibrary() { - String logForMe = "You shuffle your library."; - String logForOthers = Cardpanda.clientModel.getSessionID().getName() + "'s library has been shuffled."; - - switch(sessionID) { - case P1: - p1lib.shuffle(); - NoteTip.get().log(logForMe, logForOthers); - break; - - case P2: - p2lib.shuffle(); - NoteTip.get().log(logForMe, logForOthers); - break; - - default: // do nothing - } - } - COM: <s> shuffles the clients library </s> - diff --git a/funcom_test/1227985.txt b/funcom_test/1227985.txt deleted file mode 100644 index e0a5b80e6d80b048504cd68d522c6a4200f03df9..0000000000000000000000000000000000000000 --- a/funcom_test/1227985.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) - .append("country", this.country) - .append("address", this.address) - .append("province", this.province) - .append("postalCode", this.postalCode) - .append("city", this.city).toString(); - } - COM: <s> returns a multi line string with key value pairs </s> - diff --git a/funcom_test/1228050.txt b/funcom_test/1228050.txt deleted file mode 100644 index 4d99b4cdcc32d6d6436443a737df71852d9b69a3..0000000000000000000000000000000000000000 --- a/funcom_test/1228050.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected Object convertToString(Class type, Object value) { - DateFormat df = new SimpleDateFormat(TS_FORMAT); - if (value instanceof Date) { - try { - return df.format(value); - } catch (Exception e) { - throw new ConversionException("Error converting Timestamp to String"); - } - } - - return value.toString(); - } - COM: <s> convert from a java </s> - diff --git a/funcom_test/1228078.txt b/funcom_test/1228078.txt deleted file mode 100644 index 9e0bca9ade8ab91363b9c2d1f961cb0de33b1c1a..0000000000000000000000000000000000000000 --- a/funcom_test/1228078.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void sendMessage(SimpleMailMessage msg, String templateName, Map model) { - String result = null; - - try { - result = - VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, - templateName, model); - } catch (VelocityException e) { - e.printStackTrace(); - log.error(e.getMessage()); - } - - msg.setText(result); - send(msg); - } - COM: <s> send a simple message based on a velocity template </s> - diff --git a/funcom_test/1228112.txt b/funcom_test/1228112.txt deleted file mode 100644 index 510c654d9ea1602b8bfd1bc675adaaa4ee0c7e40..0000000000000000000000000000000000000000 --- a/funcom_test/1228112.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void prepare() { - if (getRequest().getMethod().equalsIgnoreCase("post")) { - // prevent failures on new - if (!"".equals(getRequest().getParameter("user.id"))) { - user = userManager.getUser(getRequest().getParameter("user.id")); - } - } - } - COM: <s> grab the entity from the database before populating with request parameters </s> - diff --git a/funcom_test/12283603.txt b/funcom_test/12283603.txt deleted file mode 100644 index af6a58a9c48bdd50d9790dc40ecc4c8664f5a503..0000000000000000000000000000000000000000 --- a/funcom_test/12283603.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public URL class2URL(final Application application, final String classname) { - URL out = null; - try { - final String sOut = "file://" + application.getRoot() + "/" - + application.getSrc() + "/" + classname.replace('.', '/') - + ".java"; - out = new URL(sOut); - } catch (MalformedURLException exc) { - LOG.error("Exception in URLUtilSingleton.class2URL", exc); - } - return out; - } - COM: <s> transform the name of a class in dot format e </s> - diff --git a/funcom_test/12283615.txt b/funcom_test/12283615.txt deleted file mode 100644 index 21f8f1f4843230e7f228e2d9b5c21c13b5babd2e..0000000000000000000000000000000000000000 --- a/funcom_test/12283615.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void consoleHelp() { - this.showHead(); - LOG.info("Usage:"); - LOG.info("<option> [<tool>] [<technique(s)>]"); - LOG.info(" - <option>"); - LOG.info(" create | clean | run"); - LOG.info(" - <tool> : junit3 | junit3 | testng"); - LOG.info(" junit3 | junit3 | testng"); - LOG.info(" - <technique(s)>"); - LOG - .info(" functional | structural | navigation | performance | semiauto"); - } - COM: <s> this method shows by the standard output the help commands for using the </s> - diff --git a/funcom_test/12283616.txt b/funcom_test/12283616.txt deleted file mode 100644 index 4646420cba9fabbfaa03751ce6c8f7946c8d5c5f..0000000000000000000000000000000000000000 --- a/funcom_test/12283616.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getCUT(final Application application, final Object url) { - final String str = url.toString(); - int init = 2 + application.getRoot().length() - + application.getSrc().length(); - if (str.startsWith(FILEPROTOCOL)) { - init += FILEPROTOCOL.length(); - } - final int end = str.length() - DOMAINFOLDER.length() + 1; // - domain - return this.replaceDot(str.substring(init, end)); - } - COM: <s> it reads the class under study cut </s> - diff --git a/funcom_test/12283636.txt b/funcom_test/12283636.txt deleted file mode 100644 index 83e558b1694fd48f47c3c76809810c16b93a6685..0000000000000000000000000000000000000000 --- a/funcom_test/12283636.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private boolean classpathChanged(final Application app) throws IOException { - boolean out = false; - final String classpath = app.getRoot() + "/.classpath"; - final FileReader freader = new FileReader(new File(classpath)); - final BufferedReader breader = new BufferedReader(freader); - String str = breader.readLine(); - while (str != null) { - out |= (str.contains("classpathentry") & str.contains(app.getOut())); - str = breader.readLine(); - } - breader.close(); - freader.close(); - return out; - } - COM: <s> check is classpath has been changed or not </s> - diff --git a/funcom_test/12283657.txt b/funcom_test/12283657.txt deleted file mode 100644 index 8a48d3b216304d4b7c892e69c56a50539f898770..0000000000000000000000000000000000000000 --- a/funcom_test/12283657.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void list() throws IOException { - final InputStream confFile = FileUtilSingleton.getInstance().loadFile( - "scaffolding/etc/config.properties", this.getClass()); - final Properties config = new Properties(); - config.load(confFile); - for (final Object key : config.keySet()) { - getIO().getOutput().print( - SPACE + key.toString() + " = " - + config.getProperty(key.toString())); - } - getIO().getOutput().println(); - } - COM: <s> list the properties </s> - diff --git a/funcom_test/12283659.txt b/funcom_test/12283659.txt deleted file mode 100644 index 843f6d0a14fb532915290ca2d730b6537a5c1f1b..0000000000000000000000000000000000000000 --- a/funcom_test/12283659.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean isCorrectKeyValue(final String key, final String value) { - return ("webport".equals(key) || "webapp".equals(key) - || "tool".equals(key) || "login".equals(key) - || "loops".equals(key) || "password".equals(key) - || "threads".equals(key) || ("functional".equals(key) - || "structural".equals(key) || "performance".equals(key) || "semiautomatic" - .equals(key)) - && ("true".equals(value) || "false".equals(value))); - } - COM: <s> check if it is correct the pair key value </s> - diff --git a/funcom_test/12283729.txt b/funcom_test/12283729.txt deleted file mode 100644 index 7ce894437c1fb3f10f0624e965c1c27b9eb42066..0000000000000000000000000000000000000000 --- a/funcom_test/12283729.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void processPOJOs(final List<String> classNames, final Technology tech) { - for (String className : classNames) { - MainWizard.getIO().getOutput().println( - "[roma] Generating " + className + extension + " -> " + destination); - Map<String, Object> root = extractor.extract(pckgName + ".domain." + className); - root.put("package", pckgName); - processPOJO(className, tech, root); - } - } - COM: <s> process all the pojos of domain package </s> - diff --git a/funcom_test/12283731.txt b/funcom_test/12283731.txt deleted file mode 100644 index 293834a63535d4357ca8e1cf07d4784423a93c97..0000000000000000000000000000000000000000 --- a/funcom_test/12283731.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void createAll(final String className, final Technology tech) { - MainWizard.getIO().getOutput().println("Generating " + fileType + " file..."); - - List<String> classes = null; - if (className.equals("*")) { - // Gets all the classes contained in the package "domain" !! - classes = extractor.getClasses(pckgName + ".domain"); - } else { - classes = new ArrayList<String>(); - classes.add(className); - } - processPOJOs(classes, tech); - } - COM: <s> processes the pojos to create the infrastructure to the janus view </s> - diff --git a/funcom_test/12283746.txt b/funcom_test/12283746.txt deleted file mode 100644 index 7d5e3f37bef3e030e6cd885df0baa46d2caec5b0..0000000000000000000000000000000000000000 --- a/funcom_test/12283746.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Configuration getConfiguration() throws IOException { - Configuration configuration = new Configuration(); - File file = null; - if (TEMPLATES_PATH.startsWith(Utility.PATH_SEPARATOR_STRING)) { - file = new File(TEMPLATES_PATH); - } else { - file = new File(RomaApplicationContext.getApplicationPath() + "/" + TEMPLATES_PATH); - } - configuration.setDirectoryForTemplateLoading(file); - configuration.setObjectWrapper(new DefaultObjectWrapper()); - return configuration; - } - COM: <s> retrieves the configuration for the templates </s> - diff --git a/funcom_test/12283997.txt b/funcom_test/12283997.txt deleted file mode 100644 index 4d4e7d0d4059bb81566580c921d178a2d850ab82..0000000000000000000000000000000000000000 --- a/funcom_test/12283997.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public ScreenConfiguration getDescriptor(String iName) { - ScreenConfiguration descr; - - synchronized (this) { - descr = getConfiguration(iName); - if (descr == null) { - // LOAD FROM DESCRIPTOR - descr = loadDescriptor(iName); - if (descr != null) { - addConfiguration(iName, descr); - - // REGISTER DESCRIPTOR FILE TO BE WAKED UP ON RELOADING - Roma.component(AutoReloadManager.class).addResource(descr.getFile(), this); - } - } - } - return descr; - } - COM: <s> get a desktop descriptor </s> - diff --git a/funcom_test/12284001.txt b/funcom_test/12284001.txt deleted file mode 100644 index 0d9c058d746ee409b291c24cd93433b146600287..0000000000000000000000000000000000000000 --- a/funcom_test/12284001.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void signalUpdatedFile(File iFile) { - synchronized (this) { - for (ScreenConfiguration d : configuration.values()) { - if (d.getFile().equals(iFile)) { - log.warn("[DesktopConfigurationLoader.signalUpdatedFile] Reloading file: " + iFile); - - try { - d.load(); - } catch (Exception e) { - log.error("[DesktopConfigurationLoader.signalUpdatedFile] Error on loading updated descriptor: " - + iFile.getAbsolutePath()); - } - break; - } - } - } - } - COM: <s> reload desktop configuration from file </s> - diff --git a/funcom_test/12284057.txt b/funcom_test/12284057.txt deleted file mode 100644 index 8c8b9bbb37f81c8edaf2876bfc6a383facb794c6..0000000000000000000000000000000000000000 --- a/funcom_test/12284057.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addResourceForReloading(File iFile, String iEntityName) { - synchronized (fileReloadingMapping) { - List<String> resources = fileReloadingMapping.get(iFile); - if (resources == null) { - resources = new ArrayList<String>(); - fileReloadingMapping.put(iFile, resources); - - // REGISTER DESCRIPTOR FILE TO BE WAKED UP ON RELOADING - ObjectContext.getInstance().getComponent(AutoReloadManager.class).addResource(iFile, this); - } - resources.add(iEntityName); - } - } - COM: <s> map the file to the entity name to be reloaded when updated </s> - diff --git a/funcom_test/12284136.txt b/funcom_test/12284136.txt deleted file mode 100644 index 50bf762e5f879c6db46bebad5ae3577cc081d34d..0000000000000000000000000000000000000000 --- a/funcom_test/12284136.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private boolean getEmbeddedType(Type iType) { - if (iType instanceof Class<?>) { - Class cls = (Class<?>) iType; - if (cls.isArray()) - setEmbeddedType(cls.getComponentType()); - } - - Class<?> embClass = SchemaHelper.getGenericClass(iType); - if (embClass != null) { - setEmbeddedType(embClass); - } - - return embClass != null; - } - COM: <s> get embedded type using generics reflection </s> - diff --git a/funcom_test/12284150.txt b/funcom_test/12284150.txt deleted file mode 100644 index 0484f15f0722a28908287f3afa66429155231ccc..0000000000000000000000000000000000000000 --- a/funcom_test/12284150.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void config() { - String cfgIgnore = getConfiguration(PAR_IGNORE_FIELDS); - if (cfgIgnore != null) { - StringTokenizer tokenizer = new StringTokenizer(cfgIgnore, ","); - while (tokenizer.hasMoreTokens()) - ignoreFields.add(tokenizer.nextToken()); - } - - cfgIgnore = getConfiguration(PAR_IGNORE_ACTIONS); - if (cfgIgnore != null) { - StringTokenizer tokenizer = new StringTokenizer(cfgIgnore, ","); - while (tokenizer.hasMoreTokens()) - ignoreActions.add(tokenizer.nextToken()); - } - } - COM: <s> invoked by io c container at startup </s> - diff --git a/funcom_test/12284183.txt b/funcom_test/12284183.txt deleted file mode 100644 index 98d54781b62da4080188681c7c24af05571789ec..0000000000000000000000000000000000000000 --- a/funcom_test/12284183.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void addResource(File iFile, String iName, String iPackagePrefix, String iStartingPackage) { - List<ResourceResolverListener> listeners = Controller.getInstance().getListeners(ResourceResolverListener.class); - if (listeners != null) - for (ResourceResolverListener l : listeners) { - l.addResource(iFile, iName, iPackagePrefix, iStartingPackage); - } - } - COM: <s> delegates to the listeners the adding of resource </s> - diff --git a/funcom_test/12284308.txt b/funcom_test/12284308.txt deleted file mode 100644 index 9aa0ea46927c6f7cfa054d07cc489831c2b7f690..0000000000000000000000000000000000000000 --- a/funcom_test/12284308.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void invokeAfterActionCallbacks(Object iContent, SchemaElement iAction) { - List<UserObjectEventListener> listeners = getListeners(UserObjectEventListener.class); - for (UserObjectEventListener listener : listeners) { - try { - listener.onAfterActionExecution(iContent, iAction); - } catch (Throwable t) { - log.error("[Controller.invokeAfterActionCallbacks] listener: " + listener, t); - } - } - } - COM: <s> invoke the after action callback on every single one registered listener </s> - diff --git a/funcom_test/12284318.txt b/funcom_test/12284318.txt deleted file mode 100644 index 565ea17a483fd89cd591557e068ab091a784c41c..0000000000000000000000000000000000000000 --- a/funcom_test/12284318.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void flushObjectsOfClass(String iEntityClassName) { - Collection<SessionInfo> sessions = ObjectContext.getInstance().getComponent(SessionAspect.class).getSessionInfos(); - for (SessionInfo sess : sessions) { - ControllerContext ctx = (ControllerContext) ObjectContext.getInstance().getComponent(SessionAspect.class).getProperty( - sess.getSystemSession(), CONTEXT_ATTR); - ctx.removeObject(iEntityClassName); - } - } - COM: <s> flush all objects of a class </s> - diff --git a/funcom_test/12284510.txt b/funcom_test/12284510.txt deleted file mode 100644 index 831b939bb52cc4748a75f75cf54ce90fe6ac4284..0000000000000000000000000000000000000000 --- a/funcom_test/12284510.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void signalToAllListeners(Class<?> cls) { - if (Controller.getInstance().getListeners(ClassLoaderListener.class) != null) - for (ClassLoaderListener l : Controller.getInstance().getListeners(ClassLoaderListener.class)) { - if (l != null) - l.onClassLoading(cls); - } - } - COM: <s> signal to all registered listeners the class loading event </s> - diff --git a/funcom_test/12284553.txt b/funcom_test/12284553.txt deleted file mode 100644 index d283ba09923f050aab9e3e3ac5db9e072267b075..0000000000000000000000000000000000000000 --- a/funcom_test/12284553.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public DynaBean getFieldFeatures(Object iUserObject, String iAspectName, String iFieldName) throws ConfigurationNotFoundException { - SchemaObject obj = getSchemaObject(iUserObject); - if (obj == null) - return null; - - SchemaField field = obj.getField(iFieldName); - if (field != null) - return field.getFeatures(iAspectName); - - return null; - } - COM: <s> return the features of the requested field </s> - diff --git a/funcom_test/12285293.txt b/funcom_test/12285293.txt deleted file mode 100644 index 030e6fb5c2ba75c72fad230b991797b408c524b9..0000000000000000000000000000000000000000 --- a/funcom_test/12285293.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void test(Aspect aspect, String url) throws Exception { - for (Generator g : this.getPlatform().getGenerator()) { - if (g.getFixture().getAspect().equals(aspect) - && g.getFixture().getTool().equals( - this.getDefaults().getUnit())) { - // Test case matched - g.generate(FileUtil.class2URL(this.getApplication(), url)); - } - } - } - COM: <s> it performs test case generation for the default tool e </s> - diff --git a/funcom_test/12285294.txt b/funcom_test/12285294.txt deleted file mode 100644 index e4129d13fbf596bd042c774f93fde47600d6ca2f..0000000000000000000000000000000000000000 --- a/funcom_test/12285294.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void test(String url) throws Exception { - for (Generator g : this.getPlatform().getGenerator()) { - // Unit - if (g.getFixture().getTool().equals(this.getDefaults().getUnit())) { - // Test case matched - g.generate(FileUtil.class2URL(this.getApplication(), url)); - } - } - } - COM: <s> it performs test case generation for the default tool junit4 for each </s> - diff --git a/funcom_test/122853.txt b/funcom_test/122853.txt deleted file mode 100644 index 87fc0f0d2d2a75c1cd46951d64dc2bffc8cb052a..0000000000000000000000000000000000000000 --- a/funcom_test/122853.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Hashtable getModelParameters() { - Hashtable props = new Hashtable(23); - if (model != null) { - model.clearPropertyListeners(); - try { - props = ParameterUtility.getModelProperties(model); - } catch (Exception ex) { - SimUtilities.showError("Error retrieving model properties", ex); - System.exit(0); - } - } - - return props; - } - COM: <s> gets the parameters of the current loaded model </s> - diff --git a/funcom_test/12285383.txt b/funcom_test/12285383.txt deleted file mode 100644 index f76ae78fe55bc5965e02fa798d7fdae6043a1038..0000000000000000000000000000000000000000 --- a/funcom_test/12285383.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Aspect string2aspect(final String s) throws ClassNotFoundException { - Aspect out = null; - final Class<?> c = Class.forName("org.romulus.test.Aspect"); - final Aspect[] enumConstants = (Aspect[]) c.getEnumConstants(); - for (int i = 0; i < enumConstants.length; i++) { - if (enumConstants[i].toString().equals(s)) { - out = enumConstants[i]; - } - } - return out; - } - COM: <s> this method converts a string to its aspect equivalent </s> - diff --git a/funcom_test/12285388.txt b/funcom_test/12285388.txt deleted file mode 100644 index c7fd0b41e5c30ac3924b0d9a1497310b5c2ed3bb..0000000000000000000000000000000000000000 --- a/funcom_test/12285388.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Tool string2tool(final String s) throws ClassNotFoundException { - Tool out = null; - final Class<?> c = Class.forName("org.romulus.test.Tool"); - final Tool[] enumConstants = (Tool[]) c.getEnumConstants(); - for (int i = 0; i < enumConstants.length; i++) { - if (enumConstants[i].toString().equals(s)) { - out = enumConstants[i]; - } - } - return out; - } - COM: <s> this method converts a string to its tool equivalent </s> - diff --git a/funcom_test/12285396.txt b/funcom_test/12285396.txt deleted file mode 100644 index 4e62bcfd90c4931c728cf6c8a5e66c9d0600a6f7..0000000000000000000000000000000000000000 --- a/funcom_test/12285396.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Browser string2browser(final String s) throws ClassNotFoundException { - Browser out = null; - final Class<?> c = Class.forName("org.romulus.test.Browser"); - final Browser[] enumConstants = (Browser[]) c.getEnumConstants(); - for (int i = 0; i < enumConstants.length; i++) { - if (enumConstants[i].toString().equals(s)) { - out = enumConstants[i]; - } - } - return out; - } - COM: <s> this method converts a string to its browser equivalent </s> - diff --git a/funcom_test/12285400.txt b/funcom_test/12285400.txt deleted file mode 100644 index da9e9bee795f3157bce34baf5b70e061ec134c94..0000000000000000000000000000000000000000 --- a/funcom_test/12285400.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Level string2level(final String s) throws ClassNotFoundException { - Level out = null; - final Class<?> c = Class.forName("org.romulus.test.Level"); - final Level[] enumConstants = (Level[]) c.getEnumConstants(); - for (int i = 0; i < enumConstants.length; i++) { - if (enumConstants[i].toString().equals(s)) { - out = enumConstants[i]; - } - } - return out; - } - COM: <s> this method converts a string to its level equivalent </s> - diff --git a/funcom_test/12285766.txt b/funcom_test/12285766.txt deleted file mode 100644 index aa9c6593a2095fc86657d148f43ca708593b48d0..0000000000000000000000000000000000000000 --- a/funcom_test/12285766.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void cleanAop() { - final String metainf = this.getApplication().getRootSrc() + "/META-INF"; - final File fileC4j = new File(metainf + "/c4j.properties"); - final File fileAop = new File(metainf + "/aop.xml"); - final File fileGraph = new File(metainf + "/auto.graphml"); - if (fileC4j.exists()) { - fileC4j.delete(); - } - if (fileAop.exists()) { - fileAop.delete(); - } - if (fileGraph.exists()) { - fileGraph.delete(); - } - } - COM: <s> clean all the aop information </s> - diff --git a/funcom_test/12286679.txt b/funcom_test/12286679.txt deleted file mode 100644 index a08e893689d5319229c6798d4ab274b1adbc4977..0000000000000000000000000000000000000000 --- a/funcom_test/12286679.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void test(Aspect aspect, String url) { - for (Generator g : this.getPlatform().getGenerator()) { - if (g.getFixture().getAspect().equals(aspect) - && g.getFixture().getTool().equals( - this.getDefaults().getUnit())) { - // Test case matched - Collection<URL> in = new ArrayList<URL>(); - in.add(this.class2URL(url)); - Collection<Map<String, Object>> tc = g.getTransformer() - .transform(in); - g.getWriter().write(tc); - } - } - this.copyAnt(); - } - COM: <s> performs test case generation for the default tool junit4 for and an </s> - diff --git a/funcom_test/122874.txt b/funcom_test/122874.txt deleted file mode 100644 index e54660be2b4a2ef156440a6069751d6cec314e80..0000000000000000000000000000000000000000 --- a/funcom_test/122874.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void fireSimEvent(SimEvent evt) { - ArrayList copy; - synchronized(listenerList) { - copy = (ArrayList)listenerList.clone(); - } - - for (int i = 0, n = copy.size(); i < n; i++) { - SimEventListener l = (SimEventListener)copy.get(i); - l.simEventPerformed(evt); - } - } - COM: <s> fires a sim event to the registered listeners </s> - diff --git a/funcom_test/12287464.txt b/funcom_test/12287464.txt deleted file mode 100644 index 951df3b80185a073a570dc0fcbd9d592379df6b5..0000000000000000000000000000000000000000 --- a/funcom_test/12287464.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void initialize(){ - - tablechangelistener =new TableModelListener() { - - public void tableChanged(TableModelEvent e) { - if(e.getType()==TableModelEvent.UPDATE || e.getType()==TableModelEvent.DELETE || e.getType()==TableModelEvent.INSERT){ - getEditorSupport().addI18nSaveCookie(); - } - } - }; - - i18nmodel=new RomaI18NTableModel(mngr); - - initComponents(); - } - COM: <s> initialize the component ad register listener </s> - diff --git a/funcom_test/12287466.txt b/funcom_test/12287466.txt deleted file mode 100644 index 6cd2cab71649c4f4711dd6409e42f1b538e9a71c..0000000000000000000000000000000000000000 --- a/funcom_test/12287466.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void saveProperties() { - setModified(); - int index = 0; - for (FileObject f : files) { - try { - EditorUtils.writeOrderedProperties(props.get(index), File.separator+f.getPath()); - f.refresh(); - index++; - } catch (IOException ex) { - Exceptions.printStackTrace(ex); - } - } - isModified=false; - } - COM: <s> save all modified properties on file </s> - diff --git a/funcom_test/12287897.txt b/funcom_test/12287897.txt deleted file mode 100644 index dfb0094488f1a91935cce46ec1665151e9bf9e20..0000000000000000000000000000000000000000 --- a/funcom_test/12287897.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void fillTableModel(Object[][] dataSource) { - data = new Object[dataSource.length][COLUMN_NUMBER]; - for (int i = 0; i < dataSource.length; i++) { - setValueAt(dataSource[i][MODULE_NAME_COLUMN], i, MODULE_NAME_COLUMN); - setValueAt(dataSource[i][INSTALLED_COLUMN] , i, INSTALLED_COLUMN); - } - } - COM: <s> this method fill interfaces table </s> - diff --git a/funcom_test/12288918.txt b/funcom_test/12288918.txt deleted file mode 100644 index 70ac5a7797d8abeacf0c055da5bf4b263378ba43..0000000000000000000000000000000000000000 --- a/funcom_test/12288918.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Boolean update (final String token, RegisteredUser userData){ - ExtendedBaseAccountRepository userRepository = new ExtendedBaseAccountRepository(); - ExtendedBaseAccount user = userRepository.getCurrentUser(); - CompanyRepository companyRepository = new CompanyRepository(); - - if (user == null) - return false; - - user.setEmailAddress(userData.getEmailAddress()); - user.setUserLatitude(userData.getUserLatitude()); - user.setUserLongitude(userData.getUserLongitude()); - - if (!userRepository.update(user)) - return false; - - return companyRepository.assignUserToCompany(userData.getCompany()); - - } - COM: <s> update user data </s> - diff --git a/funcom_test/12290005.txt b/funcom_test/12290005.txt deleted file mode 100644 index 8232e117c192ead97e46eb6aa0442daec1cb14e6..0000000000000000000000000000000000000000 --- a/funcom_test/12290005.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void buildGridTotalRow(List<List<ReportCell>> grid, List<List<ReportCell>> totals) { - List<ReportCell> row = new ArrayList<ReportCell>(); - if (totals.size() > 0) { - row = buildTotalRow(totals, ReportLabelConstants.TOTAL); - grid.add(grid.size(), row); - } - } - COM: <s> method that builds the total row of the grid </s> - diff --git a/funcom_test/12290538.txt b/funcom_test/12290538.txt deleted file mode 100644 index 980f8fcd64ea64d1a8932795e5c709f2ae5f4232..0000000000000000000000000000000000000000 --- a/funcom_test/12290538.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void onShow() { - Roma - .setClassFeature(this, ViewAspect.ASPECT_NAME, ViewClassFeatures.LABEL, ProjectHelper.getInstance().getProjectName(project)); - refresh(false); - Roma.setFieldFeature(this, ViewAspect.ASPECT_NAME, "newNote", ViewFieldFeatures.VISIBLE, mode); - Roma.setActionFeature(this, ViewAspect.ASPECT_NAME, "addNote", ViewActionFeatures.VISIBLE, !mode); - } - COM: <s> method that performs several operations before showing objects associated to this class </s> - diff --git a/funcom_test/12290540.txt b/funcom_test/12290540.txt deleted file mode 100644 index 3dabc4ca877a7539e50a51eb5730beb894c140a8..0000000000000000000000000000000000000000 --- a/funcom_test/12290540.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void refresh(boolean addedNote) { - if ((oldNotes.size() == 0) || (addedNote)) { - oldNotes.clear(); - List<BoardNote> notes = Roma.component(BoardNoteRepository.class).retrieveByProject(project); - for (BoardNote n : notes) { - OldBoardNoteInstance old = new OldBoardNoteInstance(); - old.setEntity(n); - oldNotes.add(old); - } - Roma.fieldChanged(this, "oldNotes"); - } - } - COM: <s> method that reload the list of old notes </s> - diff --git a/funcom_test/12291730.txt b/funcom_test/12291730.txt deleted file mode 100644 index 3184de76b817c0a6528582801b9a3fe7360645ec..0000000000000000000000000000000000000000 --- a/funcom_test/12291730.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void printRoleElement(String prefix, Role role, PrintWriter pw) { - pw.print("<" + prefix + ":"); - pw.print(PartnerLinkExtension.ROLE_ELEMENT); - DOMUtils.printAttribute(PartnerLinkExtension.ROLE_ATTRIBUTE_NAME, role.getName(), pw); - - DOMUtils.printAttribute(PartnerLinkExtension.ROLE_ATTRIBUTE_PORT, role.getPortType(), pw); - - pw.println("/>"); - } - COM: <s> the method prints the role element on the provided writer </s> - diff --git a/funcom_test/12291930.txt b/funcom_test/12291930.txt deleted file mode 100644 index 09dfa4b2eef4a7887317ec8ca4fec9a35a8e63cb..0000000000000000000000000000000000000000 --- a/funcom_test/12291930.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void responseJSONStream(HttpServletResponse response, JSONObject jsonObject) { - //TODO: proper encoding support - response.setContentType("application/json"); - response.setCharacterEncoding("utf-8"); - try { - System.out.println("RESPONSE:" + jsonObject.toString()); - response.getWriter().print(jsonObject.toString()); - } catch (IOException e) { - } - } - COM: <s> outputs json with proper headers </s> - diff --git a/funcom_test/12291994.txt b/funcom_test/12291994.txt deleted file mode 100644 index f8f50be5584214dac8378996d4894507f66a5038..0000000000000000000000000000000000000000 --- a/funcom_test/12291994.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void createFieldEditors() { - addField(new StringFieldEditor("base_URL", "Base URL", getFieldEditorParent())); - addField(new StringFieldEditor("lookup_URL", "Server URL", getFieldEditorParent())); - addField(new StringFieldEditor("service_Name", "Service Name", getFieldEditorParent())); - } - COM: <s> creates the field editors </s> - diff --git a/funcom_test/12335373.txt b/funcom_test/12335373.txt deleted file mode 100644 index 3a4f5d88a752280e715fadd538274f35ad1ea18a..0000000000000000000000000000000000000000 --- a/funcom_test/12335373.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setReversePath(LinkedList<ServerID> reversePath) { - LinkedList<ServerID> realPath = new LinkedList<ServerID>(); - Set<ServerID> stack = new HashSet<ServerID>(); - for (ServerID node : reversePath) { - if (stack.contains(node)) { - while (!realPath.getLast().equals(node)) { - ServerID previous = realPath.removeLast(); - stack.remove(previous); - } - } else { - stack.add(node); - realPath.addLast(node); - } - } - this.reversePath = realPath; - } - COM: <s> sets the path to the sender removes cycles by itself </s> - diff --git a/funcom_test/12335549.txt b/funcom_test/12335549.txt deleted file mode 100644 index 7094ed8e8ae8eae45b73187865137f84d30da5aa..0000000000000000000000000000000000000000 --- a/funcom_test/12335549.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public InetAddress getAddress(String s) { - - try { - return InetAddress.getByName(s); - } catch (IndexOutOfBoundsException e) { - System.err.println("Invalid number of arguments"); - // printUsage(); - // throw new RuntimeException(e); - } catch (UnknownHostException e) { - System.err.println("Address is not valid"); - // printUsage(); - // throw new RuntimeException(e); - } - return null; - } - COM: <s> get the internet address </s> - diff --git a/funcom_test/12335559.txt b/funcom_test/12335559.txt deleted file mode 100644 index 8d48df4857dad56eaf33e6e8ef9493183de71484..0000000000000000000000000000000000000000 --- a/funcom_test/12335559.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Properties localServicePort(String s ) { - try { - Properties p = new Properties(); - int localPort = Integer.parseInt(s); - p.setProperty(PGridP2P.PROP_LOCAL_PORT, String.valueOf(localPort)); - return p; - } catch (IndexOutOfBoundsException e) { - System.err.println("Invalid number of arguments"); - printUsage(); - throw new RuntimeException(e); - } catch (NumberFormatException e) { - System.err.println("Could not determine local port number"); - printUsage(); - throw new RuntimeException(e); - } - } - COM: <s> get the local service port number to use </s> - diff --git a/funcom_test/12335595.txt b/funcom_test/12335595.txt deleted file mode 100644 index c5ead4ee2905f4381ecf2e70dff1a859ddc7d053..0000000000000000000000000000000000000000 --- a/funcom_test/12335595.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void newSearchResult(GUID guid, Collection results) { - log.info("Search result received:"); - for (Iterator it = results.iterator(); it.hasNext();) { - DataItem item = (DataItem) it.next(); - SimpleDataItem myTripComItem = (SimpleDataItem) item; - System.out.println(item.getData().toString()); - } - } - COM: <s> invoked when a new search result is available </s> - diff --git a/funcom_test/12532667.txt b/funcom_test/12532667.txt deleted file mode 100644 index 9eaa231ed4e7d2cc139a8b7968a1cfd65fa2e6dd..0000000000000000000000000000000000000000 --- a/funcom_test/12532667.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString(){ - String s = this.getClass().getName(); - int k = s.lastIndexOf("."); - if (k != -1) - s = s.substring(k + 1); - - s = s + " Mean = " + getMean() + " Variance = " + getVariance(); - return(s); - } - COM: <s> returns a string describing the distribution </s> - diff --git a/funcom_test/12532672.txt b/funcom_test/12532672.txt deleted file mode 100644 index 0d75d94be6c569f0c59e4708af07a2f05f0d0765..0000000000000000000000000000000000000000 --- a/funcom_test/12532672.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void computeFactorsAt(int n){ - int m = n / 2; - int m2 = 2 * m; - factors[0] = m2 == n - ? x * m * ( alpha2 - m) - / ( (alpha1 + m2) * (alpha1 + m2 - 1)) - : -x * ( alpha1 + m) * (alpha1 + alpha2 + m) - / ( (alpha1 + m2) * (alpha1 + m2 + 1)); - return; - } - COM: <s> compute the pair numerator denominator for iteration n </s> - diff --git a/funcom_test/12532891.txt b/funcom_test/12532891.txt deleted file mode 100644 index 15bc21bb00fe0519c1c3a507f09e6935a20269a6..0000000000000000000000000000000000000000 --- a/funcom_test/12532891.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void removeModelElementsAfterReplication(){ - List<ModelElement> temp = new ArrayList<ModelElement>(); - // iterate through all elements to find all that need removal - for(ModelElement m: myModelElementMap.values()){ - if (m.getRemoveFromModelAfterRepFlag()) - temp.add(m); - } - // now tell them to remove themselves from the model as well as their children - for(ModelElement m: temp){ - m.removeFromModel(); - } - - temp.clear(); - } - COM: <s> used to remove any flagged model elements from the model after a replication </s> - diff --git a/funcom_test/12533000.txt b/funcom_test/12533000.txt deleted file mode 100644 index 53f8c76f7618869e4c98ba644409383be921a986..0000000000000000000000000000000000000000 --- a/funcom_test/12533000.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void setName(String str) { - - if (str == null) { // no name is being passed, construct a default name - String s = this.getClass().getName(); - int k = s.lastIndexOf("."); - if (k != -1) - s = s.substring(k + 1); - str = s + "-" + getId(); - } - myName = str; - } - COM: <s> sets the name of this attribute type </s> - diff --git a/funcom_test/12533001.txt b/funcom_test/12533001.txt deleted file mode 100644 index c4e94e0b0a975c13c31dd4ab16a1f62731c9877d..0000000000000000000000000000000000000000 --- a/funcom_test/12533001.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ProcessExecutor createProcessExecutor(Entity entity){ - if (entity == null) - throw new IllegalArgumentException( - "Entity must be non-null!"); - ProcessExecutor pe = new ProcessExecutor(this, entity); - if (myProcessExecutorStartListener != null) - pe.addBeforeExecutionListener(myProcessExecutorStartListener); - - if (myProcessExecutorCompletedListener != null) - pe.addAfterExecutionListener(myProcessExecutorCompletedListener); - - return(pe); - } - COM: <s> asks the process description to make an instance of </s> - diff --git a/funcom_test/12533129.txt b/funcom_test/12533129.txt deleted file mode 100644 index 932b48bb6fe3e2857349b928c0803cb3e4545d7d..0000000000000000000000000000000000000000 --- a/funcom_test/12533129.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CoordinateIfc getCoordinate(double lat, double lon, double x3) { - if (Math.abs(lat) > 90.0) - throw new IllegalArgumentException("The latitude must be in range [-90, 90] degrees"); - if (Math.abs(lon) > 180.0) - throw new IllegalArgumentException("The latitude must be in range [-180, 180] degrees"); - - Vector3D v = new Vector3D(lat, lon); - return(v); - } - COM: <s> returns a valid coordinate </s> - diff --git a/funcom_test/12533135.txt b/funcom_test/12533135.txt deleted file mode 100644 index 44165e2daa571ff1ed7c7e139f677923fe6d6f25..0000000000000000000000000000000000000000 --- a/funcom_test/12533135.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void outsideSpatialModelHandler(CoordinateIfc coordinate) { - if (myOSMHandler != null) - myOSMHandler.handleOutsideSpatialModel(this, coordinate); - else - throw new IllegalArgumentException("The coordinate (x1= " + coordinate.getX1() - + ",x2= " + coordinate.getX2() + ",x3= " + coordinate.getX3() +") is not contained in the spatial model."); - } - COM: <s> this method is called if the destination is outside of the elements </s> - diff --git a/funcom_test/12533221.txt b/funcom_test/12533221.txt deleted file mode 100644 index e61a000896899df8bb8da0d7877079ad83b158bc..0000000000000000000000000000000000000000 --- a/funcom_test/12533221.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addRateSegment(double duration, double rate){ - - int k = myRateSegments.size(); - RateSegmentIfc prev = myRateSegments.get(k-1); - - ConstantRateSegment next = new ConstantRateSegment(prev.getUpperTimeLimit(), duration, rate, prev.getCumulativeRateUpperLimit()); - - myRateSegments.add(next); - - if (rate > myMaxRate) - myMaxRate = rate; - - if (rate < myMinRate) - myMinRate = rate; - - } - COM: <s> allows the construction of the piecewise rate function starting at time zero </s> - diff --git a/funcom_test/12533314.txt b/funcom_test/12533314.txt deleted file mode 100644 index f0f5ffcadf11f1bb08a0013d333ff510b15eab1d..0000000000000000000000000000000000000000 --- a/funcom_test/12533314.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void warmUp(){ - super.warmUp(); - // make it think that it changed at the warmup time to the same value - myTimeOfChange = getTime(); - // this is so at least two changes are recorded on the variable - // to properly account for variables that have zero area throughout the replication - setValue(getValue()); - } - COM: <s> schedules the batch events for after the warm up period </s> - diff --git a/funcom_test/12533488.txt b/funcom_test/12533488.txt deleted file mode 100644 index fb9f698c726bf970317c5bf508aae41e917420e5..0000000000000000000000000000000000000000 --- a/funcom_test/12533488.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void addAction(ScheduledAction action){ - if (action == null) - throw new IllegalArgumentException("The supplied action cannot be null"); - - if (myActions.contains(action)) - throw new IllegalArgumentException("The supplied action is already part of this schedule."); - - double d = action.getDuration(); - if (d + myDurationTotal > myScheduleLength) - throw new IllegalArgumentException("The supplied scheduled action has a duration that overflows the time available on the schedule"); - - myActions.add(action); - myDurationTotal = myDurationTotal + d; - - } - COM: <s> adds a scheduled action to the schedule </s> - diff --git a/funcom_test/12533500.txt b/funcom_test/12533500.txt deleted file mode 100644 index 72aac89270d2eb750f98234cdf1652cb835865ec..0000000000000000000000000000000000000000 --- a/funcom_test/12533500.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void receive(Load load) { - - if (load == null) - throw new IllegalArgumentException("The load was null!"); - - if (load.getNetwork() != this) - throw new IllegalArgumentException("The load was not made by this network!"); - - // System.out.println("t> "+getTime()+" Load "+load.getId()+" sent by the Load Generator is received by "+getName()); - - if (myDispatcher != null) - myDispatcher.receive(load); - } - COM: <s> receives a load into the transportation network and </s> - diff --git a/funcom_test/12533515.txt b/funcom_test/12533515.txt deleted file mode 100644 index 53fafc0deecd198dbf0b0f3407dfd0b8c5ea2049..0000000000000000000000000000000000000000 --- a/funcom_test/12533515.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setLoadingTimeDistribution(DistributionIfc d) { - - if (d == null) - throw new IllegalArgumentException("Loading Time Distribution was null!"); - - myLoadingTimeDistribution = d; - - if (myLoadingTimeRV == null){// not made yet - myLoadingTimeRV = new RandomVariable(this, myLoadingTimeDistribution); - } else { // already had been made, and added to model - // just change the distribution - myLoadingTimeRV.setRandomSource(myLoadingTimeDistribution); - } - } - COM: <s> sets loading time distribution at that location </s> - diff --git a/funcom_test/12533516.txt b/funcom_test/12533516.txt deleted file mode 100644 index d6321ee7675c60b6fcd4538b15d03c5f8ecabbd9..0000000000000000000000000000000000000000 --- a/funcom_test/12533516.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setUnloadingTimeDistribution(DistributionIfc d) { - - if (d == null) - throw new IllegalArgumentException("Loading Time Distribution was null!"); - - myUnloadingTimeDistribution = d; - - if (myUnloadingTimeRV == null){// not made yet - myUnloadingTimeRV = new RandomVariable(this, myUnloadingTimeDistribution); - } else { // already had been made, and added to model - // just change the distribution - myUnloadingTimeRV.setRandomSource(myUnloadingTimeDistribution); - } - } - COM: <s> sets unloading time distribution at that location </s> - diff --git a/funcom_test/12533524.txt b/funcom_test/12533524.txt deleted file mode 100644 index aaf231473cafb579522fc369f4b3c66f5113199b..0000000000000000000000000000000000000000 --- a/funcom_test/12533524.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void loading(DispatchTask task,double loadingTime){ - // System.out.println("t> "+getTime()+" Task in loading: "+task.getId()+" for driver "+task.getDriver()); - double t = loadingTime; - myUnloadingEvent=scheduleEvent(myLoadingListener, t, "Loading", task); - } - COM: <s> schedules loading for the supplied loading time for a task </s> - diff --git a/funcom_test/12533567.txt b/funcom_test/12533567.txt deleted file mode 100644 index 5225adfd43224d53056a61478058c479f3146075..0000000000000000000000000000000000000000 --- a/funcom_test/12533567.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int getNumberOfOutGoingLanes(TransportLocationIfc origin){ - if (origin == null) - throw new IllegalArgumentException("The supplied location was null."); - - if (!myTransportLocations.contains(origin)) - throw new IllegalArgumentException("The supplied location is not in the network."); - - if (myOutGoingLanes.get(origin)==null) - throw new IllegalArgumentException("The outgoing lane list was null for:"+origin.getName()+"!"); - - return(myOutGoingLanes.get(origin).size()); - } - COM: <s> returns the number of outgoing lanes from the supplied origin </s> - diff --git a/funcom_test/12533573.txt b/funcom_test/12533573.txt deleted file mode 100644 index 891b05714f7d481c1e3195e4fde172bb11193554..0000000000000000000000000000000000000000 --- a/funcom_test/12533573.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int getNumberOfIncomingLanes(TransportLocationIfc destination){ - if (destination == null) - throw new IllegalArgumentException("The supplied location was null."); - - if (!myTransportLocations.contains(destination)) - throw new IllegalArgumentException("The supplied location is not in the network."); - - if (myIncomingLanes.get(destination)==null) - throw new IllegalArgumentException("The incoming lane list was null for:"+destination.getName()+"!"); - - return(myIncomingLanes.get(destination).size()); - } - COM: <s> returns the number of incoming lanes to the supplied destination </s> - diff --git a/funcom_test/12533586.txt b/funcom_test/12533586.txt deleted file mode 100644 index 3fe6c216cd8c1773daf10bc4819a3cf30f3cb104..0000000000000000000000000000000000000000 --- a/funcom_test/12533586.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void setOriginAndDestination(TransportLocationIfc origin, TransportLocationIfc destination) { - if (destination == null) - throw new IllegalArgumentException("The Location destination must not be null"); - if (origin == null) - throw new IllegalArgumentException("The Location origin must not be null"); - if (destination == origin) - throw new IllegalArgumentException("The origin and destination must not be the same."); - myDestination = destination; - myOrigin = origin; - } - COM: <s> sets origin and destination of the lane and attached the lane </s> - diff --git a/funcom_test/12533591.txt b/funcom_test/12533591.txt deleted file mode 100644 index cbb10f0fa759fafb6da1aa138cb91a03e675b571..0000000000000000000000000000000000000000 --- a/funcom_test/12533591.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setOriginProbability(TransportLocationIfc location, double p ){ - if(!myNetwork.isOrigin(location)) - new IllegalArgumentException("The supplied location is not a valid origin."); - - if (!myODRVs.containsKey(location)){ - RandomVariable rv = new RandomVariable(this, new DEmpirical()); - myODRVs.put(location, rv); - } - int i = myNetwork.getIndexOf(location); - myOriginPDF.addProbabilityPoint(i, p); - } - COM: <s> sets the origin probability as a discrete empirical probability distribution my origin pdf </s> - diff --git a/funcom_test/12533594.txt b/funcom_test/12533594.txt deleted file mode 100644 index d6c55d4601f7bb515ebcb7fde8d56bb378fc1f47..0000000000000000000000000000000000000000 --- a/funcom_test/12533594.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setLastOriginProbability(TransportLocationIfc location){ - - if(!myNetwork.isOrigin(location)) - new IllegalArgumentException("The supplied location is not a valid origin."); - - if (!myODRVs.containsKey(location)){ - RandomVariable rv = new RandomVariable(this, new DEmpirical()); - myODRVs.put(location, rv); - } - int i = myNetwork.getIndexOf(location); - myOriginPDF.addLastProbabilityPoint(i); - } - COM: <s> sets the origin probability for the last last origin </s> - diff --git a/funcom_test/12533595.txt b/funcom_test/12533595.txt deleted file mode 100644 index 0bd3520dd62a3ece95f9b1b8f52709b1cfbc476d..0000000000000000000000000000000000000000 --- a/funcom_test/12533595.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setDestinationProbability(LaneIfc lane, double p){ - - if(!myNetwork.isLane(lane)) - new IllegalArgumentException("The supplied lane is not a valid lane."); - - TransportLocationIfc origin = lane.getOrigin(); - TransportLocationIfc destination = lane.getDestination(); - int i = myNetwork.getIndexOf(destination); - RandomVariable rv = myODRVs.get(origin); - DEmpirical d = (DEmpirical) rv.getRandomSource(); - d.addProbabilityPoint(i,p); - - } - COM: <s> sets the loads destination probability for a given origin and destination </s> - diff --git a/funcom_test/12533601.txt b/funcom_test/12533601.txt deleted file mode 100644 index 5b4d2f2959470c911c160519355ac73c39abbbd9..0000000000000000000000000000000000000000 --- a/funcom_test/12533601.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setLastDestinationProbability(LaneIfc lane){ - - if(!myNetwork.isLane(lane)) - new IllegalArgumentException("The supplied lane is not a valid lane."); - - TransportLocationIfc origin = lane.getOrigin(); - TransportLocationIfc destination = lane.getDestination(); - int i = myNetwork.getIndexOf(destination); - RandomVariable rv = myODRVs.get(origin); - DEmpirical d = (DEmpirical) rv.getRandomSource(); - d.addLastProbabilityPoint(i); - } - COM: <s> sets the loads destination probability as discrete empirical probability distribution </s> - diff --git a/funcom_test/12533698.txt b/funcom_test/12533698.txt deleted file mode 100644 index 1976a6062311887886edfe81a9d02c0ede995dc4..0000000000000000000000000000000000000000 --- a/funcom_test/12533698.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public TransportLocationIfc getLocationWithMostIdleTrailers(Collection<LaneIfc> lanes, double distance){ - TransportLocationIfc mLoc = null; - int max = 0; - for(LaneIfc lane: lanes){ - if (lane.getDistance() <= distance){ - TransportLocationIfc dest = lane.getDestination(); - int nt = getNumIdleTrailers(dest); - if (nt > max){ - max = nt; - mLoc = dest; - } - } - } - return(mLoc); - } - COM: <s> from a collection of lanes return a destination that has the most idle </s> - diff --git a/funcom_test/12533793.txt b/funcom_test/12533793.txt deleted file mode 100644 index b039fbfc89801377ba952cd538c83740ebfacfa9..0000000000000000000000000000000000000000 --- a/funcom_test/12533793.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void setFillerOnDemand(Demand demand){ - // if the filler is set, use it, otherwise try to find a filler using the filler finder - DemandFillerIfc filler; - if (myDemandFiller == null){ - filler = myDemandFillerFinder.findDemandFiller(demand); - if (filler == null) - throw new NoDemandFillerFoundException("No demand filler was found for demand: " + demand); - } else - filler = myDemandFiller; - - // set the demand filler - demand.setFiller(filler); - - } - COM: <s> determines the filler for the demand for this generator </s> - diff --git a/funcom_test/12533891.txt b/funcom_test/12533891.txt deleted file mode 100644 index 9a3c8e3ae05c21de1eadfdf5f3c62b8aa785f25f..0000000000000000000000000000000000000000 --- a/funcom_test/12533891.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Demand createDemand(int replenishmentQty){ - // create the demand - Demand demand = new Demand(getItemType(), replenishmentQty); - //JSL.out.println(getTime() + " > Demand: " + demand.getId() + " requesting replenishment inventory: " + replenishmentQty); - //JSL.out.println(this); - incrementAmountPending(replenishmentQty); - // set the requirements of the demand - demand.setAllowBackLoggingFlag(mayRequestBackLoggingOfDemands()); - demand.setAllowPartialFillingFlag(mayRequestPartialFilling()); - return(demand); - } - COM: <s> ensures the creation of a replenishment demand for the proper amount </s> - diff --git a/funcom_test/12533940.txt b/funcom_test/12533940.txt deleted file mode 100644 index a794b5348bdb618dbb4bbb9d753309d0ff148eae..0000000000000000000000000000000000000000 --- a/funcom_test/12533940.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: protected void backLogInitialDemand(Demand demand){ - //demand.process(); - // initial request cannot be filled immediately - // set the fill indicator to indicate no successful first fill - setFirstFillFlag(false); - - // determine how much to give the demand - int amt = allocateInventory(demand); - if (amt > 0){ - // fill by the amount supplied - decrementOnHand(amt); - // give the units to the demand - demand.fill(amt); - } - // ask the backlog policy to backlog the demand - myBackLogPolicy.backlog(demand); - // check inventory after decrement/backlog - checkInventory(); - - } - COM: <s> called internally by fill demand when a new demand must </s> - diff --git a/funcom_test/12533964.txt b/funcom_test/12533964.txt deleted file mode 100644 index 894cdffd1ef5404b6aa5eb066b933751456b592e..0000000000000000000000000000000000000000 --- a/funcom_test/12533964.txt +++ /dev/null @@ -1,30 +0,0 @@ -TDAT: protected void initialize(){ - super.initialize(); - // System.out.println("IN ABSTRACTDISPATCHER initialize()"); - setInitialValues(); - - for(TransportLocationIfc location: myLocations){ - - getIdleDrivers(location).clear(); - getIdleTrucks(location).clear(); - getIdleTrailers(location).clear(); - - List<Driver> drivers = myDriverLocationAssignments.get(location); - for (Driver d : drivers){ - getIdleDrivers(location).add(d); - } - - List<SpatialResource> trucks = myTruckLocationAssignments.get(location); - for (SpatialResource t : trucks){ - getIdleTrucks(location).add(t); - } - - List<SpatialResource> trailers = myTrailerLocationAssignments.get(location); - - for (SpatialResource r : trailers){ - getIdleTrailers(location).add(r); - } - } - } - COM: <s> iterate through all the locations and get the </s> - diff --git a/funcom_test/12533997.txt b/funcom_test/12533997.txt deleted file mode 100644 index 108de4bc6dd51f61e2901ab6e15c037933316372..0000000000000000000000000000000000000000 --- a/funcom_test/12533997.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void driverOffDuty(Driver driver){ - List<Driver> drivers = getIdleDrivers(driver.getCurrentLocation()); - // System.out.println("t> "+getTime()+" Driver:"+driver.getId()+" is now OFF DUTY WITHOUT A TASK at Location "+driver.getCurrentLocation().getName()); - drivers.remove(driver); - myNumOffDutyDrivers.increment(); - myNumIdleDrivers.decrement(); - myNumOffDutyWithoutTaskDrivers.increment(); - } - COM: <s> dispatcher is notified that driver is off duty </s> - diff --git a/funcom_test/12534001.txt b/funcom_test/12534001.txt deleted file mode 100644 index b98659478f4689b23e1ced77f1d76bc0b57fd43d..0000000000000000000000000000000000000000 --- a/funcom_test/12534001.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void driverOnDuty(Driver driver){ - List<Driver> drivers = getIdleDrivers(driver.getCurrentLocation()); - // System.out.println("t> "+getTime()+" Driver:"+driver.getId()+" is now ON DUTY WITHOUT A TASK at Location "+driver.getCurrentLocation().getName()); - drivers.add(driver); - myNumIdleDrivers.increment(); - myNumOffDutyDrivers.decrement(); - myNumOffDutyWithoutTaskDrivers.decrement(); - } - COM: <s> dispatcher is notified that driver is on duty </s> - diff --git a/funcom_test/12534141.txt b/funcom_test/12534141.txt deleted file mode 100644 index 07b9b33d516e16623bff25ee9898442d6a5c404b..0000000000000000000000000000000000000000 --- a/funcom_test/12534141.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void assignLoadBuilder(DemandSenderIfc destination, DemandLoadBuilder loadBuilder){ - if (destination== null) - throw new IllegalArgumentException("The sender must be non-null."); - - if (loadBuilder == null) - throw new IllegalArgumentException("The load builder must be non-null."); - - if (myLoadBuilders.containsKey(destination)) - throw new IllegalArgumentException("The supplied destination has already been assigned a load builder"); - - myLoadBuilders.put(destination, loadBuilder); - loadBuilder.setLoadFormedListener(myLoadFormedListener); - } - COM: <s> assigns the supplied load builder to the given destination </s> - diff --git a/funcom_test/12534204.txt b/funcom_test/12534204.txt deleted file mode 100644 index 57a30cc8e90dc2051bcd950de839e9dc76578e1d..0000000000000000000000000000000000000000 --- a/funcom_test/12534204.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void startRoute(){ - - if (!isPositionEqualTo(myRoute.getStartingLocationCoordinate()))//TODO concerned about this check - throw new IllegalStateException("The vehicle is not at the starting position of the route."); - - if (myRouteIterator != null) - throw new IllegalStateException("The vehicle has already started its route."); - myRouteIterator = myRoute.getTaskIterator(); - continueRoute(); - } - COM: <s> tells the vehicle to start travelling the route </s> - diff --git a/funcom_test/12534270.txt b/funcom_test/12534270.txt deleted file mode 100644 index e37d49fba1c92e06e173f81c8458b0ab1e10a374..0000000000000000000000000000000000000000 --- a/funcom_test/12534270.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: protected void generateAction(EventGenerator generator, JSLEvent event){ - - if (myInventoryProvider != null){ - // get the amount of the demand - int amt = 0; - if (myAmtRV == null) - amt = 1; - else - amt = (int)myAmtRV.getValue(); - - InventoryIfc i = myInventoryProvider.getInventory(myItemType, this); - - if (i != null){ - - Demand d = i.requestInventory(getItemType(), this, amt); - - if (d != null) - i.fillInventory(d); - - } - } - - } - COM: <s> if there is no reference to a inventory provider ifc then </s> - diff --git a/funcom_test/12534284.txt b/funcom_test/12534284.txt deleted file mode 100644 index f4a139ccc9c0f837bb9245f625532094bae96819..0000000000000000000000000000000000000000 --- a/funcom_test/12534284.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean providesInventory(ItemType type, InventoryCustomerIfc customer) { - if (customer == null) - throw new IllegalArgumentException("Invalid argument. InventoryCustomerIfc customer was null."); - - // check if the desired requirements (inputs) match what this inventory can do - if(myItemType != type) - return false; - - if (allowsBackLogging() != customer.permitReplenishmentBackLogging(type)) - return false; - - if (allowsPartialFilling() != customer.permitReplenishmentPartialFilling(type)) - return false; - - // if we get here all requirements matched - - return true; - } - COM: <s> returns true if this inventory provider can provide </s> - diff --git a/funcom_test/12534414.txt b/funcom_test/12534414.txt deleted file mode 100644 index 395c90da1af6df84fd652ee201bc6dd3f2e728f9..0000000000000000000000000000000000000000 --- a/funcom_test/12534414.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void dispatchDeadHead(DispatchTask task, TransportLocationIfc fromLoc){ - task.setTypeToDeadHeadToLoad(); - TransportLocationIfc origin = task.getLoadOrigin(); - dequeue(task); - Queue queue = myDeadHeadPickupQByLocation.get(origin); - queue.enqueue(task); - task.setDriver(getIdleDriver(fromLoc)); - task.setTruck(getIdleTruck(fromLoc)); - task.setTrailer(getIdleTrailer(fromLoc)); - task.allocateDriver(); - task.allocateTruck(); - task.allocateTrailer(); - task.waitingForTransport(); - } - COM: <s> initiates a deadhead for the task from the supplied location </s> - diff --git a/funcom_test/12534422.txt b/funcom_test/12534422.txt deleted file mode 100644 index 8d179caaa534fd7a83e6fd208f7d2fe64b36b071..0000000000000000000000000000000000000000 --- a/funcom_test/12534422.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void setupSearchList(RepairTask rtask){ - System.out.println("t> " + getTime() + " Setting up the equipment location search list."); - AirBase base = rtask.getAirBase(); - // simple search in order of the list, this can be varied by sorting, etc - mySearchList = base.getEquipmentLocationList(); - //System.out.println(mySearchList); - mySearchListIterator = mySearchList.listIterator(); - - } - COM: <s> sets up the list to find the equipment locations this is called </s> - diff --git a/funcom_test/12534434.txt b/funcom_test/12534434.txt deleted file mode 100644 index b00e16a95db4588a482baf4efdf40aa1101a5fca..0000000000000000000000000000000000000000 --- a/funcom_test/12534434.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public RFIDReader addReader(String name, SpatialElementIfc po){ - RFIDReader r = new RFIDReader(name,this, mySpatialModel,po); //TODO how is mySpatialModel set??? - System.out.println(r.getX1() + ", " + r.getX2()); - myReaderList.add(r); - return(r); - } - COM: <s> this method adds a reader to the network and spatial model </s> - diff --git a/funcom_test/12534539.txt b/funcom_test/12534539.txt deleted file mode 100644 index ca4c308755fc41bfb4b453dbcc230bea3be1e7b0..0000000000000000000000000000000000000000 --- a/funcom_test/12534539.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected boolean transportAvailable(DispatchTask task){ - TransportLocationIfc location = task.getLoadOrigin(); - Driver driver = getIdleDriver(location); - if (driver == null) - return false; - SpatialResource truck = getIdleTruck(location); - if (truck == null) - return false; - SpatialResource trailer = getIdleTrailer(location); - if (trailer == null) - return false; - // if here, then a driver, truck and trailer has been found - task.setDriver(driver); - task.setTruck(truck); - task.setTrailer(trailer); - return true; - } - COM: <s> trys to find resources at the tasks origin that will permit </s> - diff --git a/funcom_test/12534577.txt b/funcom_test/12534577.txt deleted file mode 100644 index a3b679815efcbf5da33704dcd1162b7847253212..0000000000000000000000000000000000000000 --- a/funcom_test/12534577.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void stateChanged(ChangeEvent e) { - JSlider source = (JSlider)e.getSource(); - if (!source.getValueIsAdjusting()) { - // System.out.println((int)source.getValue()); - setTimeRatio((int)source.getValue()); - } - } - COM: <s> listen to the slider </s> - diff --git a/funcom_test/12535021.txt b/funcom_test/12535021.txt deleted file mode 100644 index 39292a340230a27cddc0ca7455e3bce4ba96495e..0000000000000000000000000000000000000000 --- a/funcom_test/12535021.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private int convert(int nodes){ - int result = -1;// impossible value - if (nodes <= 0){ - System.out.println("invalid number of nodes."); - }else if (nodes <= 1){//serial jobs - result = 1; - }else if(nodes == 2){ - result =2; - }else if(nodes <= 4){ - result = 4; - }else if(nodes <= 8){ - result = 8; - }else if(nodes <= 12){ - result = 12; - }else { - //nodes > 12 - result = 16; - } - return result; - } - COM: <s> implementing group logic </s> - diff --git a/funcom_test/12565222.txt b/funcom_test/12565222.txt deleted file mode 100644 index 7ea0b5be59f483776c0896844388197e81b1ffdf..0000000000000000000000000000000000000000 --- a/funcom_test/12565222.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected int calculateBreakPosition(int p0, int p1) { - int p; - Segment segment = new Segment();// SegmentCache.getSharedSegment(); - loadText(segment, p0, p1); - int currentWidth = getWidth(); - if (wordWrap) { - p = p0 - + Utilities.getBreakLocation(segment, metrics, tabBase, - tabBase + currentWidth, this, p0); - } else { - p = p0 - + Utilities.getTabbedTextOffset(segment, metrics, tabBase, - tabBase + currentWidth, this, p0, false); - } - - return p; - } - COM: <s> this is called by the nested wrapped line views to determine the break </s> - diff --git a/funcom_test/126267.txt b/funcom_test/126267.txt deleted file mode 100644 index 7b9a4e90c9142dfd56c14f8b8d8962471dbd53ed..0000000000000000000000000000000000000000 --- a/funcom_test/126267.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void focusGained(FocusEvent e) { - if (e.isTemporary()) - return; - - // We call selectAll() via invokeLater in case something else is dealing - // with the component - this was an issue with JFormattedTextFields - final Component comp = e.getComponent(); - if (comp instanceof JTextComponent) - SwingUtilities.invokeLater(new Runnable() { - public void run() { - if (comp.hasFocus()) // make sure we still have focus - ((JTextComponent) comp).selectAll(); - } - }); - } - COM: <s> when focus is gained the text in the component is selected </s> - diff --git a/funcom_test/126312.txt b/funcom_test/126312.txt deleted file mode 100644 index 56ee5071111a9ee42c4c8d76895786576ba999d7..0000000000000000000000000000000000000000 --- a/funcom_test/126312.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public JComponent getQuestionComponent(int questionIndex) { - if (questionIndex < 0 || questionIndex >= answerComponents.size()) { - throw new IndexOutOfBoundsException(questionIndex + " exceeds " - + "maximum index of " + (answerComponents.size() - 1) - + " on panel"); - } - return (JComponent) answerComponents.get(questionIndex); - } - COM: <s> returns the jcomponent for the given question index </s> - diff --git a/funcom_test/126361.txt b/funcom_test/126361.txt deleted file mode 100644 index 2f2b230481fdfe4bcf973520de87fbee929304fe..0000000000000000000000000000000000000000 --- a/funcom_test/126361.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private Insets determinePadding(String attributeValue) { - // If parent row is null, then the comp is floating and has no padding - if (getParentRow() == null) - return null; - - // Inherit from row, if not available - if (attributeValue == null) - attributeValue = getParentRow().getCellPadding(); - if (attributeValue == null) - return null; - - try { - return (Insets) Converter.convert(attributeValue, Insets.class); - } catch (ObjectConverterException e) { - return null; - } - } - COM: <s> given the padding value from the xml this method determines the correct </s> - diff --git a/funcom_test/126363.txt b/funcom_test/126363.txt deleted file mode 100644 index ec1c7184c4bcd1b3c1415a2da8485f021706c318..0000000000000000000000000000000000000000 --- a/funcom_test/126363.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private int determineStretch(String attributeValue) { - // If parent row is null, then comp is floating, it is forced to stretch - if (getParentRow() == null) - return STRETCH_BOTH; - - if ("horizontal".equalsIgnoreCase(attributeValue)) - return STRETCH_HORIZONTAL; - if ("vertical".equalsIgnoreCase(attributeValue)) - return STRETCH_VERTICAL; - if ("both".equalsIgnoreCase(attributeValue)) - return STRETCH_BOTH; - return STRETCH_NONE; - } - COM: <s> given the stretch value from the xml this method determines the correct </s> - diff --git a/funcom_test/126365.txt b/funcom_test/126365.txt deleted file mode 100644 index 81d91f8a9349acc4a9f7aa078975023722935e5a..0000000000000000000000000000000000000000 --- a/funcom_test/126365.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int determineAlignment(String attributeValue) { - // If the parent row is null, then the comp is forced to stretch - // anyway, so the alignment doesn't matter - if (getParentRow() == null) - return WEST; - - // Inherit from row, if not available - if (attributeValue == null) - attributeValue = getParentRow().getCellAlign(); - return SwingUtils.convertStringAlign(attributeValue, WEST); - } - COM: <s> given the align value from the xml this method determines the correct </s> - diff --git a/funcom_test/126375.txt b/funcom_test/126375.txt deleted file mode 100644 index d8c95754a4235417a61025b7abb99c9413f5775c..0000000000000000000000000000000000000000 --- a/funcom_test/126375.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Dimension getMinimumSize() { - if (getParentRow() == null) - return getBounds().getSize(); - - int width = getComponent().getMinimumSize().width; - int height = getComponent().getMinimumSize().height; - if (isFixed()) - width = Math.max(width, getFixed()); - if (getParentRow().isFixed()) - height = Math.max(height, getParentRow().getFixed()); - return new Dimension(width, height); - } - COM: <s> minimum size relies on the following scenarios </s> - diff --git a/funcom_test/12722988.txt b/funcom_test/12722988.txt deleted file mode 100644 index dbbe48c7c0dca323037e14064d23f6754b026c00..0000000000000000000000000000000000000000 --- a/funcom_test/12722988.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public int nextInt() { - int c=0; - double u,f; - u = this.randomGenerator.raw(); -//#if KNUTH_CONVENTION -// c = (int)(u*(g->K)); -//#else - u *= this.K; - c = (int)u; - u -= c; -//#endif - f = this.F[c]; - // fprintf(stderr,"c,f,u: %d %.4f %f\n",c,f,u); - if (f == 1.0) return c; - if (u < f) { - return c; - } - else { - return this.A[c]; - } -} - COM: <s> returns a random integer tt k tt with probability tt pdf k tt </s> - diff --git a/funcom_test/12723050.txt b/funcom_test/12723050.txt deleted file mode 100644 index 4d5d73635b83b8872fb7f799a10a24ee7d909068..0000000000000000000000000000000000000000 --- a/funcom_test/12723050.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int nextInt(double theMean) { - /* - * Adapted from "Numerical Recipes in C". - */ - double xm = theMean; - double g = this.cached_g; - - if (xm == -1.0 ) return 0; // not defined - if (xm < SWITCH_MEAN ) { - int poisson = -1; - double product = 1; - do { - poisson++; - product *= randomGenerator.raw(); - } while ( product >= g ); - // bug in CLHEP 1.4.0: was "} while ( product > g );" - return poisson; - } - COM: <s> returns a random number from the distribution bypasses the internal state </s> - diff --git a/funcom_test/12723198.txt b/funcom_test/12723198.txt deleted file mode 100644 index e93218445e93ee07302c4a3bb4edc7e915ebbde6..0000000000000000000000000000000000000000 --- a/funcom_test/12723198.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public DoubleArrayList quantileElements(DoubleArrayList phis) { - this.sort(); - return cern.jet.stat.Descriptive.quantiles(this.buffer, phis); - /* - int bufferSize = (int) this.size(); - double[] quantileElements = new double[phis.size()]; - for (int i=phis.size(); --i >=0;) { - int rank=(int)Utils.epsilonCeiling(phis.get(i)*bufferSize) -1; - quantileElements[i]=buffer.get(rank); - } - return new DoubleArrayList(quantileElements); - */ -} - COM: <s> computes the specified quantile elements over the values previously added </s> - diff --git a/funcom_test/12723322.txt b/funcom_test/12723322.txt deleted file mode 100644 index e52affff72f89ef5102a34d02383a9b86803fe59..0000000000000000000000000000000000000000 --- a/funcom_test/12723322.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ObjectMatrix2D assign(ObjectMatrix2D other) { - if (other==this) return this; - checkShape(other); - if (haveSharedCells(other)) other = other.copy(); - - for (int row=rows; --row >= 0;) { - for (int column=columns; --column >= 0;) { - setQuick(row,column,other.getQuick(row,column)); - } - } - return this; -} - COM: <s> replaces all cell values of the receiver with the values of another matrix </s> - diff --git a/funcom_test/12723449.txt b/funcom_test/12723449.txt deleted file mode 100644 index af36f42512fd71e311bdc82dc2d01ccb7bd27ce8..0000000000000000000000000000000000000000 --- a/funcom_test/12723449.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected AbstractMatrix3D vDice(int axis0, int axis1, int axis2) { - super.vDice(axis0,axis1,axis2); - - // swap offsets - int[][] offsets = new int[3][]; - offsets[0] = this.sliceOffsets; - offsets[1] = this.rowOffsets; - offsets[2] = this.columnOffsets; - - this.sliceOffsets = offsets[axis0]; - this.rowOffsets = offsets[axis1]; - this.columnOffsets = offsets[axis2]; - - return this; -} - COM: <s> self modifying version of view dice </s> - diff --git a/funcom_test/12723477.txt b/funcom_test/12723477.txt deleted file mode 100644 index a3177969b64693aa5b4d4183b5306f0bd4ce8def..0000000000000000000000000000000000000000 --- a/funcom_test/12723477.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public double getQuick(int row, int column) { - //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); - //return elements[index(row,column)]; - //manually inlined: - return elements[offset + rowOffsets[rowZero + row*rowStride] + columnOffsets[columnZero + column*columnStride]]; -} - COM: <s> returns the matrix cell value at coordinate tt row column tt </s> - diff --git a/funcom_test/12723734.txt b/funcom_test/12723734.txt deleted file mode 100644 index 832f344cec8edfaed6964f2f257f1b8e24674cd7..0000000000000000000000000000000000000000 --- a/funcom_test/12723734.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public double zSum() { - double sum = 0; - final double[] elems = this.elements; - if (elems==null) throw new InternalError(); - int index = index(0,0); - int cs = this.columnStride; - int rs = this.rowStride; - for (int row=rows; --row >= 0; ) { - for (int i=index, column=columns; --column >= 0; ) { - sum += elems[i]; - i += cs; - } - index += rs; - } - return sum; -} - COM: <s> returns the sum of all cells tt sum x i j tt </s> - diff --git a/funcom_test/12723775.txt b/funcom_test/12723775.txt deleted file mode 100644 index 8d248e583f45421998fe6ec253d4f6270c17602c..0000000000000000000000000000000000000000 --- a/funcom_test/12723775.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public DoubleMatrix2D viewColumnFlip() { - if (columns==0) return this; - DoubleMatrix2D view = new WrapperDoubleMatrix2D(this) { - public double getQuick(int row, int column) { - return content.get(row,columns-1-column); - } - public void setQuick(int row, int column, double value) { - content.set(row,columns-1-column,value); - } - }; - return view; -} - COM: <s> constructs and returns a new i flip view i along the column axis </s> - diff --git a/funcom_test/12723837.txt b/funcom_test/12723837.txt deleted file mode 100644 index 4d8091e3b5564099b366e8df31d0c0b104847923..0000000000000000000000000000000000000000 --- a/funcom_test/12723837.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public DoubleMatrix2D viewRowFlip() { - if (rows==0) return this; - DoubleMatrix2D view = new WrapperDoubleMatrix2D(this) { - public double getQuick(int row, int column) { - return content.get(rows-1-row,column); - } - public void setQuick(int row, int column, double value) { - content.set(rows-1-row,column,value); - } - }; - return view; -} - COM: <s> constructs and returns a new i flip view i along the row axis </s> - diff --git a/funcom_test/12723901.txt b/funcom_test/12723901.txt deleted file mode 100644 index c9da0d94e16ae9e888331ef44964bb9523d3a1ba..0000000000000000000000000000000000000000 --- a/funcom_test/12723901.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public ObjectMatrix1D make(ObjectMatrix1D[] parts) { - if (parts.length==0) return make(0); - - int size = 0; - for (int i=0; i < parts.length; i++) size += parts[i].size(); - - ObjectMatrix1D vector = make(size); - size = 0; - for (int i=0; i < parts.length; i++) { - vector.viewPart(size,parts[i].size()).assign(parts[i]); - size += parts[i].size(); - } - - return vector; -} - COM: <s> constructs a matrix which is the concatenation of all given parts </s> - diff --git a/funcom_test/12724160.txt b/funcom_test/12724160.txt deleted file mode 100644 index 45c91c6afd497012673fe86981ce7f08752315f4..0000000000000000000000000000000000000000 --- a/funcom_test/12724160.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean xforEachCoordinate(final cern.colt.function.IntIntIntProcedure procedure) { - for (int column=columns; --column >= 0;) { - for (int slice=slices; --slice >=0;) { - for (int row=rows; --row >= 0;) { - if (!procedure.apply(slice,row,column)) return false; - } - } - } - return true; -} - COM: <s> applies a procedure to each cells coordinate </s> - diff --git a/funcom_test/12724211.txt b/funcom_test/12724211.txt deleted file mode 100644 index d1b8f800b313e07ae1fe62c2b17d54ebc0425a14..0000000000000000000000000000000000000000 --- a/funcom_test/12724211.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public DoubleMatrix2D getR() { - DoubleMatrix2D R = QR.like(n,n); - for (int i = 0; i < n; i++) { - for (int j = 0; j < n; j++) { - if (i < j) - R.setQuick(i,j, QR.getQuick(i,j)); - else if (i == j) - R.setQuick(i,j, Rdiag.getQuick(i)); - else - R.setQuick(i,j, 0); - } - } - return R; -} - COM: <s> returns the upper triangular factor tt r tt </s> - diff --git a/funcom_test/12724348.txt b/funcom_test/12724348.txt deleted file mode 100644 index ce4a3ec205607df6b41147cf4e998d1df98e8b10..0000000000000000000000000000000000000000 --- a/funcom_test/12724348.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void beforeInsert(int index, int element) { - // overridden for performance only. - if (size == index) { - add(element); - return; - } - if (index > size || index < 0) - throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); - ensureCapacity(size + 1); - System.arraycopy(elements, index, elements, index+1, size-index); - elements[index] = element; - size++; -} - COM: <s> inserts the specified element before the specified position into the receiver </s> - diff --git a/funcom_test/12724384.txt b/funcom_test/12724384.txt deleted file mode 100644 index 98ac6b8a685df93f6c25221ecfdd06eb89dc2a48..0000000000000000000000000000000000000000 --- a/funcom_test/12724384.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int indexOfFromTo(double element, int from, int to) { - // overridden for performance only. - if (size==0) return -1; - checkRangeFromTo(from, to, size); - - double[] theElements = elements; - for (int i = from ; i <= to; i++) { - if (element==theElements[i]) {return i;} //found - } - return -1; //not found -} - COM: <s> returns the index of the first occurrence of the specified </s> - diff --git a/funcom_test/12724387.txt b/funcom_test/12724387.txt deleted file mode 100644 index 9781b5285ada018a14c328c27f1530dfb93985d0..0000000000000000000000000000000000000000 --- a/funcom_test/12724387.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int lastIndexOfFromTo(double element, int from, int to) { - // overridden for performance only. - if (size==0) return -1; - checkRangeFromTo(from, to, size); - - double[] theElements = elements; - for (int i = to ; i >= from; i--) { - if (element==theElements[i]) {return i;} //found - } - return -1; //not found -} - COM: <s> returns the index of the last occurrence of the specified </s> - diff --git a/funcom_test/12724485.txt b/funcom_test/12724485.txt deleted file mode 100644 index 54f895f0e0db6e00407b5d345a848ea87400503e..0000000000000000000000000000000000000000 --- a/funcom_test/12724485.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void quickSortFromTo(int from, int to, LongComparator c) { - int mySize = size(); - checkRangeFromTo(from, to, mySize); - - long[] myElements = elements(); - cern.colt.Sorting.quickSort(myElements, from, to+1,c); - elements(myElements); - setSizeRaw(mySize); -} - COM: <s> sorts the receiver according </s> - diff --git a/funcom_test/12724499.txt b/funcom_test/12724499.txt deleted file mode 100644 index adc8b68a7eafa2c11c9009b14c88b640e1febf50..0000000000000000000000000000000000000000 --- a/funcom_test/12724499.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeFromTo(int from, int to) { - checkRangeFromTo(from, to, size); - int numMoved = size - to - 1; - if (numMoved > 0) { - replaceFromToWithFrom(from, from-1+numMoved, this, to+1); - //fillFromToWith(from+numMoved, size-1, 0.0f); //delta - } - int width = to-from+1; - if (width>0) setSizeRaw(size-width); -} - COM: <s> removes from the receiver all elements whose index is between </s> - diff --git a/funcom_test/12724857.txt b/funcom_test/12724857.txt deleted file mode 100644 index 034777cb2458a515bbff79f2dd56c54cf7ac3683..0000000000000000000000000000000000000000 --- a/funcom_test/12724857.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void beforeInsertDummies(int index, int length) { - if (index > size || index < 0) - throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); - if (length > 0) { - ensureCapacity(size + length); - System.arraycopy(elements, index, elements, index + length, size-index); - size += length; - } -} - COM: <s> inserts length dummies before the specified position into the receiver </s> - diff --git a/funcom_test/12724927.txt b/funcom_test/12724927.txt deleted file mode 100644 index 311e94e2ae6b5d504dc0706baa597bbe353c713e..0000000000000000000000000000000000000000 --- a/funcom_test/12724927.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void clear() { - new ByteArrayList(this.state).fillFromToWith(0, this.state.length-1, FREE); - new ObjectArrayList(values).fillFromToWith(0, state.length-1, null); // delta - - this.distinct = 0; - this.freeEntries = table.length; // delta - trimToSize(); -} - COM: <s> removes all key value associations from the receiver </s> - diff --git a/funcom_test/12725302.txt b/funcom_test/12725302.txt deleted file mode 100644 index 60885668033a45fabe27597a3563ab57dae4f2a9..0000000000000000000000000000000000000000 --- a/funcom_test/12725302.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: /* public HelpSet getHelpSet(String helpsetfile) { - HelpSet hs = null; - ClassLoader cl = this.getClass().getClassLoader(); - try { - URL hsURL = HelpSet.findHelpSet(cl, helpsetfile); - hs = new HelpSet(null, hsURL); - } catch (Exception ee) { - System.out.println("HelpSet: " + ee.getMessage()); - System.out.println("HelpSet: " + helpsetfile + " not found"); - } - return hs; - }*/ - COM: <s> this method creates the online help system </s> - diff --git a/funcom_test/12725315.txt b/funcom_test/12725315.txt deleted file mode 100644 index 5ad9ec86e63b8469d933c2a3b73957e5037a90ee..0000000000000000000000000000000000000000 --- a/funcom_test/12725315.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void applyGain() { - try { - double[][] samples = processed_audio_samples - .getSamplesChannelSegregated(); - double gain = (new Double(choose_gain_text_field.getText())) - .doubleValue(); - samples = DSPMethods.applyGain(samples, gain); - processed_audio_samples.setSamples(samples); - updateRecordingInformation(); - } catch (Exception e) { - JOptionPane.showMessageDialog(null, e.getMessage(), "ERROR", - JOptionPane.ERROR_MESSAGE); - } - } - COM: <s> apply the gain entered in the choose gain text field to the samples </s> - diff --git a/funcom_test/12725438.txt b/funcom_test/12725438.txt deleted file mode 100644 index d66c767dfb8479347f38d407463937cda05f1bca..0000000000000000000000000000000000000000 --- a/funcom_test/12725438.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setWindow(int n) throws Exception { - if (n < 2) { - throw new Exception( - "Fraction Of Low Energy Frames's window length must be 2 or greater"); - } else { - number_windows = n; - dependencies = new String[number_windows]; - offsets = new int[number_windows]; - for (int i = 0; i < number_windows; ++i) { - dependencies[i] = "Root Mean Square"; - offsets[i] = 0 - i; - } - } - } - COM: <s> function that must be overridden to allow this feature to be set globally </s> - diff --git a/funcom_test/12725461.txt b/funcom_test/12725461.txt deleted file mode 100644 index 38480c00dd51c3b3f0a2f162d6ad3655226ad681..0000000000000000000000000000000000000000 --- a/funcom_test/12725461.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setWindowLength(int n) throws Exception { - if (n < 2) { - throw new Exception( - "BeatHistogram window length must be greater than 1"); - } else { - number_windows = n; - dependencies = new String[number_windows]; - offsets = new int[number_windows]; - for (int i = 0; i < number_windows; ++i) { - dependencies[i] = "Root Mean Square"; - offsets[i] = 0 - i; - } - } - } - COM: <s> helper function to set window length for this feature </s> - diff --git a/funcom_test/12725466.txt b/funcom_test/12725466.txt deleted file mode 100644 index 1ac08a61e4bf58de6ae35bc2d6e3c6aae005b681..0000000000000000000000000000000000000000 --- a/funcom_test/12725466.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setElement(int index, String value) throws Exception { - if (index != 0) { - throw new Exception("INTERNAL ERROR: invalid index " + index - + " sent to AreaMoments:setElement"); - } else { - try { - int type = Integer.parseInt(value); - setWindowLength(type); - } catch (Exception e) { - throw new Exception( - "Length of Area Method of Moments must be an integer"); - } - } - } - COM: <s> function permitting an unintelligent outside function i </s> - diff --git a/funcom_test/12725476.txt b/funcom_test/12725476.txt deleted file mode 100644 index 599e50c98af4c49173e10d1208e52820568a1eab..0000000000000000000000000000000000000000 --- a/funcom_test/12725476.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void setWindow(int n) throws Exception { - if (n <= 1) { - throw new Exception( - "new value for running average must be greater than one"); - } else { - runningAverage = n; - if (fe_ != null) { - String tmp = fe_.getFeatureDefinition().name; - dependencies = new String[runningAverage]; - offsets = new int[runningAverage]; - for (int i = 0; i < runningAverage; ++i) { - dependencies[i] = tmp; - offsets[i] = 0 - i; - } - } else { - dependencies = null; - offsets = null; - } - - } - super.setWindow(n); - } - COM: <s> changes the number of dependant samples extracted for each object </s> - diff --git a/funcom_test/12725520.txt b/funcom_test/12725520.txt deleted file mode 100644 index 9c728c17d116c2668b90283d168e327e537b0f4c..0000000000000000000000000000000000000000 --- a/funcom_test/12725520.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setNumDimensions(int n) throws Exception { - if (n < 1) { - throw new Exception("Must have at least 1 LPC coeffecient - " + n - + " provided"); - } else { - numDimensions = n; - String name = definition.name; - String description = definition.description; - String[] attributes = definition.attributes; - definition = new FeatureDefinition(name, description, true, - numDimensions, attributes); - if (parent != null) { - parent.updateTable(); - } - } - } - COM: <s> edits the number of lpc coeffecients to be calculated </s> - diff --git a/funcom_test/12725523.txt b/funcom_test/12725523.txt deleted file mode 100644 index df023aa41fb5b01f6a15a35bcc729525bf333b23..0000000000000000000000000000000000000000 --- a/funcom_test/12725523.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setCutoff(double c) throws Exception { - if (Double.isInfinite(c) || Double.isNaN(c)) { - throw new Exception("SpectralRolloff cutoff must be a real number"); - } else if ((c <= 0.0) || (c >= 1.0)) { - throw new Exception( - "SpectralRolloff cutoff must be gretaer than 0 and less than 1"); - } else { - cutoff = c; - } - } - COM: <s> permits users to set the rpecise cutoff point </s> - diff --git a/funcom_test/12725536.txt b/funcom_test/12725536.txt deleted file mode 100644 index 456ef32167d4c13f3e17a61d70a89dcb0fab0acf..0000000000000000000000000000000000000000 --- a/funcom_test/12725536.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void setWindow(int n) throws Exception { - if (n <= 1) { - throw new Exception("Width must be 2 or greater"); - } else { - sampleWidth = n; - String tmp; - if (fe_ != null) { - tmp = fe_.getFeatureDefinition().name; - dependencies = new String[sampleWidth]; - offsets = new int[sampleWidth]; - for (int i = 0; i < sampleWidth; ++i) { - dependencies[i] = tmp; - offsets[i] = 0 - i; - } - } else { - dependencies = null; - offsets = null; - } - } - } - COM: <s> function permits this class to respond to a global window change request </s> - diff --git a/funcom_test/12725636.txt b/funcom_test/12725636.txt deleted file mode 100644 index e42d454578f976e3f7ccad2df6cbc41c7047c015..0000000000000000000000000000000000000000 --- a/funcom_test/12725636.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void save() { - boolean good = true; - for (int i = 0; i < inputBoxes.length; ++i) { - try { - fe_.setElement(i, inputBoxes[i].getText()); - } catch (Exception e) { - good = false; - e.printStackTrace(); - JOptionPane.showMessageDialog(null, e.getMessage(), "ERROR", - JOptionPane.ERROR_MESSAGE); - } - } - if (good) { - setVisible(false); - } - } - COM: <s> called when the save button is pressed </s> - diff --git a/funcom_test/12725640.txt b/funcom_test/12725640.txt deleted file mode 100644 index c1a0fdf117c378545dca66b605685c9f3cc3ebc0..0000000000000000000000000000000000000000 --- a/funcom_test/12725640.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - jContentPane = new JPanel(); - jContentPane.setLayout(new BorderLayout()); - jContentPane.add(getActiveAggList(), BorderLayout.WEST); - jContentPane.add(getAggList(), BorderLayout.EAST); - jContentPane.add(getAggButtonPanel(), BorderLayout.CENTER); - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/12725660.txt b/funcom_test/12725660.txt deleted file mode 100644 index 02b826c7d3f4b33d5c2011897c0be175d76a284b..0000000000000000000000000000000000000000 --- a/funcom_test/12725660.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private JPanel getDescription() { - if (Description == null) { - GridBagConstraints gridBagConstraints = new GridBagConstraints(); - gridBagConstraints.fill = GridBagConstraints.BOTH; - gridBagConstraints.weighty = 1.0; - gridBagConstraints.weightx = 1.0; - DescriptionTitle = new JLabel(); - DescriptionTitle.setText("Description"); - Description = new JPanel(); - Description.setLayout(new BorderLayout()); - Description.setBackground(new Color(192, 218, 255)); - Description.add(DescriptionTitle, BorderLayout.NORTH); - Description.add(getDescriptionText(), BorderLayout.SOUTH); - } - return Description; - } - COM: <s> this method initializes description </s> - diff --git a/funcom_test/12725663.txt b/funcom_test/12725663.txt deleted file mode 100644 index 65b385859d1d2d16164ada017856d2983d732cbb..0000000000000000000000000000000000000000 --- a/funcom_test/12725663.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JButton getCancel() { - if (Cancel == null) { - Cancel = new JButton(); - Cancel.setText("Cancel"); - Cancel.setBackground(new Color(192, 218, 255)); - Cancel.setToolTipText("Return to previous window without changing the aggregator"); - Cancel.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - shutdown(); - } - }); - } - return Cancel; - } - COM: <s> this method initializes cancel </s> - diff --git a/funcom_test/12725670.txt b/funcom_test/12725670.txt deleted file mode 100644 index a6e2a9f27e5ac8a2062dde4382f6f2c221084f72..0000000000000000000000000000000000000000 --- a/funcom_test/12725670.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent event) { - if(event.getSource() == DoneButton){ - if((controller.activeAgg_.getAggregator() !=null)&&(controller.activeAgg_.getAggregator().length>0)){ - controller.dm_.aggregators = controller.activeAgg_.getAggregator(); - this.setVisible(false); - }else{ - controller.dm_.aggregators = new Aggregator[]{new Mean()}; - } - }else if(event.getSource() == Abort){ - this.setVisible(false); - } - } - COM: <s> handles events on this window </s> - diff --git a/funcom_test/12725671.txt b/funcom_test/12725671.txt deleted file mode 100644 index 2b359ce5553a88975eadd04e7901d7f3a69311bf..0000000000000000000000000000000000000000 --- a/funcom_test/12725671.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getFeatureChooser() { - if (FeatureChooser == null) { - FeatureChooser = new JPanel(); - FeatureChooser.setLayout(new BorderLayout()); - FeatureChooser.add(getFeatureControls(), BorderLayout.CENTER); - FeatureChooser.add(getChosenFeaturePanel(), BorderLayout.WEST); - FeatureChooser.add(getFeatureListPanel(), BorderLayout.EAST); - } - return FeatureChooser; - } - COM: <s> this method initializes feature chooser </s> - diff --git a/funcom_test/12725682.txt b/funcom_test/12725682.txt deleted file mode 100644 index 879fb3604596609cf93d4257a1060da3b6abbb41..0000000000000000000000000000000000000000 --- a/funcom_test/12725682.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JTable getChosenFieldTable() { - if (ChosenFieldTable == null) { - ChosenFieldTable = new JTable(); - ChosenFieldTable.setLocation(new Point(0, 0)); - DefaultTableModel model = new AggFeatureListModel(new Object[]{"Selected Features"},0); - String[] names = aggregator.getFeaturesToApply(); - if(names != null){ - for(int i=0;i<names.length;++i){ - model.addRow(new Object[]{names[i]}); - } - } - ChosenFieldTable.setModel(model); - } - return ChosenFieldTable; - } - COM: <s> this method initializes chosen field table </s> - diff --git a/funcom_test/12725684.txt b/funcom_test/12725684.txt deleted file mode 100644 index ff0953e06412721919f168268b9f8fbcd6c5917a..0000000000000000000000000000000000000000 --- a/funcom_test/12725684.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JPanel getFeatureControls() { - if (FeatureControls == null) { - GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); - gridBagConstraints1.gridx = 0; - gridBagConstraints1.gridy = 1; - FeatureControls = new JPanel(); - FeatureControls.setLayout(new GridBagLayout()); - FeatureControls.setBackground(new Color(192, 218, 255)); - FeatureControls.add(getAddFeature(), new GridBagConstraints()); - FeatureControls.add(getRemoveFeature(), gridBagConstraints1); - } - return FeatureControls; - } - COM: <s> this method initializes feature controls </s> - diff --git a/funcom_test/12725692.txt b/funcom_test/12725692.txt deleted file mode 100644 index dcd49d37439289ea8e0d7a0d13503ef0f26e546a..0000000000000000000000000000000000000000 --- a/funcom_test/12725692.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JTable getFeatureListTable() { - if (FeatureListTable == null) { - FeatureListTable = new JTable(); - DefaultTableModel model = new AggFeatureListModel(new Object[]{"Feature List"},0); - for(int i=0;i<controller.dm_.featureDefinitions.length;++i){ - model.addRow(new Object[]{controller.dm_.featureDefinitions[i].name}); - } - FeatureListTable.setModel(model); - } - return FeatureListTable; - } - COM: <s> this method initializes feature list table </s> - diff --git a/funcom_test/12725774.txt b/funcom_test/12725774.txt deleted file mode 100644 index aa64df46e8c7609c085a16f3f39a931b405d4dbb..0000000000000000000000000000000000000000 --- a/funcom_test/12725774.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - int[] selectedRows = features.getSelectedRows(); - if (selectedRows.length > 0) { - boolean valueToBeSet = ((Boolean) features.getValueAt( - selectedRows[0], 0)).booleanValue(); - for (int i = 0; i < selectedRows.length; ++i) { - features.setValueAt(new Boolean(!valueToBeSet), - selectedRows[i], 0); - } - } - } - COM: <s> group select or deselct on all selected rows </s> - diff --git a/funcom_test/12725833.txt b/funcom_test/12725833.txt deleted file mode 100644 index 9eea55514af0504585f3da2fa0d0ed2a37e9426d..0000000000000000000000000000000000000000 --- a/funcom_test/12725833.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean equals(Object object) { - if (!(object instanceof AbstractBin1D)) return false; - AbstractBin1D other = (AbstractBin1D) object; - return size()==other.size() && min()==other.min() && max()==other.max() - && sum()==other.sum() && sumOfSquares()==other.sumOfSquares(); -} - COM: <s> returns whether two bins are equal </s> - diff --git a/funcom_test/12751347.txt b/funcom_test/12751347.txt deleted file mode 100644 index 2ba533bcb59b5b1373aecba0179aa271a0cc7642..0000000000000000000000000000000000000000 --- a/funcom_test/12751347.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Color parseColor(String rgb, String sep) { - StringTokenizer st = new StringTokenizer(rgb, sep); - int[] result = new int[st.countTokens()]; - for (int i = 0; i < result.length; i++) { - result[i] = Integer.parseInt(st.nextToken()); - } - return new Color(result[0], result[1], result[2]); - } - COM: <s> parses a string containing rgb values and returns a color based on those </s> - diff --git a/funcom_test/12751351.txt b/funcom_test/12751351.txt deleted file mode 100644 index 77b0fece206881d0291eb9acf7d8afaaae11991f..0000000000000000000000000000000000000000 --- a/funcom_test/12751351.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Rectangle parseRectangle(String string, String delimeter) { - StringTokenizer st = new StringTokenizer(string, delimeter); - int[] result = new int[st.countTokens()]; - for (int i = 0; i < result.length; i++) { - result[i] = Integer.parseInt(st.nextToken()); - } - return new Rectangle(result[0], result[1], result[2], result[3]); - } - COM: <s> parses a rectangle from a string given the coordiantes of the upper left </s> - diff --git a/funcom_test/12751355.txt b/funcom_test/12751355.txt deleted file mode 100644 index 24da68b45276bd6d814593cff63f06d0c0144da0..0000000000000000000000000000000000000000 --- a/funcom_test/12751355.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean showDocument(String document, String target) { - try { - URL url = new URL(getDocumentBase(), document); - if (target != null) { - getAppletContext().showDocument(url, target); - } - else { - getAppletContext().showDocument(url); - } - } - catch (Exception e) { - System.out.println(e.toString()); - return false; - } - return false; - } - COM: <s> displays another file in the browser in the same frame or another frame </s> - diff --git a/funcom_test/12751365.txt b/funcom_test/12751365.txt deleted file mode 100644 index 060d32722ead5df9294a9d24e2299a937e15d734..0000000000000000000000000000000000000000 --- a/funcom_test/12751365.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean connect(String url, boolean cache,int version) { - ht = new Hashtable(); - try { - URLConnection connection = new URL(url).openConnection(); - connection.setUseCaches(cache); - connection.connect(); - System.out.println("Content length: "+connection.getContentLength()); - contentLength=connection.getContentLength(); - in = connection.getInputStream(); - loadFile(version); - } - catch (IOException e) { - System.out.println(e.toString()); - return false; - } - return true; - } - COM: <s> establishes a connection with an outside file </s> - diff --git a/funcom_test/12751455.txt b/funcom_test/12751455.txt deleted file mode 100644 index ab2cb061b0f7cc51cb16cb3cd5e630d731a5cee1..0000000000000000000000000000000000000000 --- a/funcom_test/12751455.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public MyRectangle union(MyRectangle r) { - int x1 = Math.min(x, r.x); - int x2 = Math.max(x + width, r.x + r.width); - int y1 = Math.min(y, r.y); - int y2 = Math.max(y + height, r.y + r.height); - return new MyRectangle(x1, y1, x2 - x1, y2 - y1); - } - COM: <s> computes the union of this code rectangle code with the </s> - diff --git a/funcom_test/12751471.txt b/funcom_test/12751471.txt deleted file mode 100644 index 2c1392ec821622f94d2073395c0bd1c2f93329b1..0000000000000000000000000000000000000000 --- a/funcom_test/12751471.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void add(MyRectangle r) { - int x1 = Math.min(x, r.x); - int x2 = Math.max(x + width, r.x + r.width); - int y1 = Math.min(y, r.y); - int y2 = Math.max(y + height, r.y + r.height); - x = x1; - y = y1; - width = x2 - x1; - height = y2 - y1; - } - COM: <s> adds a code rectangle code to this code rectangle code </s> - diff --git a/funcom_test/12752908.txt b/funcom_test/12752908.txt deleted file mode 100644 index 26154eba110be559e38cf23a636b542d426b0f25..0000000000000000000000000000000000000000 --- a/funcom_test/12752908.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean isLastLevel() { - if (isLastLevel == null && getCode() != null && getCode().length() > 0) { - isLastLevel = isLastLevel(getCode()); - } - return getCode() != null && getCode().length() == 0 ? true : isLastLevel; - } - COM: <s> it means that there isnt any account under this account </s> - diff --git a/funcom_test/12753307.txt b/funcom_test/12753307.txt deleted file mode 100644 index 321ee51f6882001dddc7017c42c1898b9e618866..0000000000000000000000000000000000000000 --- a/funcom_test/12753307.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void updateModelFromParentObj() { - fillRowWithValues(parentObj.getKodper().split(SPLIT_STRING), KOD_PER_ROW); - fillRowWithValues(parentObj.getKodeka().split(SPLIT_STRING), KOD_EKA_ROW); - fillRowWithValues(parentObj.getKodetr().split(SPLIT_STRING), KOD_ETR_ROW); - } - COM: <s> update tables model using data from the parent object </s> - diff --git a/funcom_test/12753309.txt b/funcom_test/12753309.txt deleted file mode 100644 index 62cbbb4e1ee915bb3a9f57577cdcd5f57421fb6f..0000000000000000000000000000000000000000 --- a/funcom_test/12753309.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void fillRowWithValues(String[] values, int row) { - for (int col = 0; col < values.length; col++) { - jTable1.getModel().setValueAt(values[col], row, col + 1);//We ignore column 0 because it contains labels - } - - } - COM: <s> fill values in cells of specified row using the given values </s> - diff --git a/funcom_test/12753619.txt b/funcom_test/12753619.txt deleted file mode 100644 index e7f4cf10113cee536f56ec610439bc854495d261..0000000000000000000000000000000000000000 --- a/funcom_test/12753619.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setSelectedItem(Object anObject) { - if ((this.selectedEntity != null && !selectedEntity.equals(anObject)) - || selectedEntity == null && anObject != null) { - this.selectedEntity = getRealValue(anObject); - fireContentsChanged(this, -1, -1); - } - } - COM: <s> set the value of the selected item </s> - diff --git a/funcom_test/12895211.txt b/funcom_test/12895211.txt deleted file mode 100644 index 53ece4a85614478c5dcc3bf6803a70f7e21ddfb0..0000000000000000000000000000000000000000 --- a/funcom_test/12895211.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JMenuItem getAboutMenuItem() { - if (aboutMenuItem == null) { - aboutMenuItem = new JMenuItem(); - aboutMenuItem.setText("About"); - aboutMenuItem.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - new JDialog(ClientApp.this, "About", true).setVisible(true); - } - }); - } - return aboutMenuItem; - } - COM: <s> this method initializes j menu item </s> - diff --git a/funcom_test/12895217.txt b/funcom_test/12895217.txt deleted file mode 100644 index 8a766cb23f1503b930eb6f6279b6fe4450c1a2b2..0000000000000000000000000000000000000000 --- a/funcom_test/12895217.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private JButton getOkButton() { - if (okButton == null) { - okButton = new JButton(); - okButton.setText("Ok"); - okButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - if (getTableName().length() == 0) { - JOptionPane.showMessageDialog(AddEntryDialog.this, - "Pleas input a Table Name", "Error", - JOptionPane.ERROR_MESSAGE); - return; - } - okPressed = true; - setVisible(false); - } - }); - } - return okButton; - } - COM: <s> this method initializes j button2 </s> - diff --git a/funcom_test/12922663.txt b/funcom_test/12922663.txt deleted file mode 100644 index 96616dd92fff5372e2679dfb9781551363711154..0000000000000000000000000000000000000000 --- a/funcom_test/12922663.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int undoLastTurn() { - - int turn = getCurrentTurn(); - - for (int i = 0; i < scoresVector.size(); i++) { - DartScore dartScore = (DartScore) scoresVector.elementAt(i); - if (dartScore.getTurn() == turn) { - scoresVector.removeElement(dartScore); - i--; - } - } - - previousPlayer(); - - return turn; - } - COM: <s> if there are scores for the current turn throw them out </s> - diff --git a/funcom_test/1310482.txt b/funcom_test/1310482.txt deleted file mode 100644 index a907948bfae7323318fb781d3ee088a477087922..0000000000000000000000000000000000000000 --- a/funcom_test/1310482.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void addComponents(JButton button, LanguageTerm languageTerm, boolean separator) { - button.setMargin(margins); - button.setName(languageTerm.getLocalized()); - button.setAction(actions.getAction(languageTerm.getLocalized())); - button.setIcon(guiProperties.getIcon(languageTerm.getEnglish())); - button.setBorderPainted(false); - button.setToolTipText(languageTerm.getLocalized()); - button.setText(""); - this.add(button); - if (separator) { - this.addSeparator(); - } - } - COM: <s> adding buttons to the main toolbar component </s> - diff --git a/funcom_test/1310508.txt b/funcom_test/1310508.txt deleted file mode 100644 index 20f56341f7a8f4965fa16ccddf27fcfc746040dc..0000000000000000000000000000000000000000 --- a/funcom_test/1310508.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void updateViewMenu() { - MenuComponent view = new MenuComponent(VIEW, false); - view.add(new ItemComponent(ZOOM_IN, KeyStroke.getKeyStroke('a'), false)); - view.add(new ItemComponent(ZOOM_OUT, KeyStroke.getKeyStroke('a'), false)); - view.add(new ItemComponent(PAGE_VIEW, KeyStroke.getKeyStroke('a'), false)); - addComponents(view, -1); - } - COM: <s> set up component structure of view menu </s> - diff --git a/funcom_test/1310512.txt b/funcom_test/1310512.txt deleted file mode 100644 index e4ab69dda39c4399a76a5ed2042b362cc14d9214..0000000000000000000000000000000000000000 --- a/funcom_test/1310512.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void updateFormatMenu() { - MenuComponent format = new MenuComponent(FORMAT, false); - format.add(new ItemComponent(BOLD, KeyStroke.getKeyStroke('a'), false)); - format.add(new ItemComponent(ITALIC, KeyStroke.getKeyStroke('a'), false)); - format.add(new ItemComponent(COLOR, KeyStroke.getKeyStroke('a'), false)); - addComponents(format, -1); - } - COM: <s> set up component structure of format menu </s> - diff --git a/funcom_test/1310519.txt b/funcom_test/1310519.txt deleted file mode 100644 index ca80bb3498629b628c8bf195cc542a6330f8e391..0000000000000000000000000000000000000000 --- a/funcom_test/1310519.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void updateExtrasMenu() { - MenuComponent extras = new MenuComponent(EXTRAS, false); - extras.add(new ItemComponent(JOIN_NODES, KeyStroke.getKeyStroke('a'), false)); - extras.add(new ItemComponent(PREFERENCES, KeyStroke.getKeyStroke('a'), false)); - addComponents(extras, -1); - } - COM: <s> set up component structure of extras menu </s> - diff --git a/funcom_test/1310605.txt b/funcom_test/1310605.txt deleted file mode 100644 index 3189351dc8093ee3e767e33c554de3a9118f2048..0000000000000000000000000000000000000000 --- a/funcom_test/1310605.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private int calculateColumnHeight(Collection<MindMapNode> childNodesOfColumn) { - - //TODO: Return a default value until implemented - int height = childNodesOfColumn.size()*SINGLE_COLUMN_HEIGHT; - - /*for(MindMapNode v : childNodesOfColumn) { - - }*/ - - this.sizeOfLayout.height = this.sizeOfLayout.height + height; - - return height; - } - COM: <s> calculates the column height for each layer of the mind map </s> - diff --git a/funcom_test/1310830.txt b/funcom_test/1310830.txt deleted file mode 100644 index 5c36c6389dc397caf5fd384841e7d24e3038cf78..0000000000000000000000000000000000000000 --- a/funcom_test/1310830.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isEnabled(JMenuItem pItem, Action pAction) { - logger.info(this+" is asked for " + pAction + "."); - if (pAction instanceof NodeHookAction) { - NodeHookAction action = (NodeHookAction) pAction; - if(action.getHookName().equals(DatabaseConnector.SLAVE_STARTER_NAME)){ - return !isMaster(); - } - } - return !isSlave(); - } - COM: <s> when one option is enabled the other is impossible </s> - diff --git a/funcom_test/1310853.txt b/funcom_test/1310853.txt deleted file mode 100644 index bd19e476cd1cac3df1e610a08e3d83c85d00eab7..0000000000000000000000000000000000000000 --- a/funcom_test/1310853.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void sendMapSharingStopRequest() { - try { - CollaborationAction action = createCollaborationAction(sendToUser, - STOP_MAP_SHARING); - String message = marshal(action); - sendMessage(sendToUser, action); - } catch (Exception e) { - freemind.main.Resources.getInstance().logException(e); - } - } - COM: <s> sends a request to stop sharing a map </s> - diff --git a/funcom_test/1311294.txt b/funcom_test/1311294.txt deleted file mode 100644 index 6f2db062b8b91dfe87763229a346e42c234b485f..0000000000000000000000000000000000000000 --- a/funcom_test/1311294.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setYear(int y) { - super.setValue(y, true, false); - - if (dayChooser != null) { - dayChooser.setYear(value); - } - - spinner.setValue(new Integer(value)); - firePropertyChange(YEAR_PROPERTY, oldYear, value); - oldYear = value; - } - COM: <s> sets the year </s> - diff --git a/funcom_test/1311466.txt b/funcom_test/1311466.txt deleted file mode 100644 index f29c05ddbe864d89ec302f1838e3241a222ad29e..0000000000000000000000000000000000000000 --- a/funcom_test/1311466.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setMonth(int month) { - int maxDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); - calendar.set(Calendar.MONTH, month); - if(maxDays == day) { - day = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); - } - - // Since the day does not change, - // don't fire a day property change, even if alwaysFireDayProperty is - // true :) - boolean storedMode = alwaysFireDayProperty; - alwaysFireDayProperty = false; - setDay(day); - alwaysFireDayProperty = storedMode; - - drawDays(); - } - COM: <s> sets a specific month </s> - diff --git a/funcom_test/1312526.txt b/funcom_test/1312526.txt deleted file mode 100644 index 64675763219048da48cd4880d0b5469035fb5ab3..0000000000000000000000000000000000000000 --- a/funcom_test/1312526.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void changeChildCloudIterativeLevels(int deltaLevel) { - for (ListIterator e = childrenUnfolded(); e.hasNext(); ) { - NodeAdapter childNode = (NodeAdapter)e.next(); - MindMapCloud childCloud = childNode.getCloud(); - if (childCloud != null) { - childCloud.changeIterativeLevel(deltaLevel); - } - childNode.changeChildCloudIterativeLevels(deltaLevel); - } - } - COM: <s> correct iterative level values of children </s> - diff --git a/funcom_test/1312533.txt b/funcom_test/1312533.txt deleted file mode 100644 index 19474911bdd642324afc33c6ffaac4b2ef4ed787..0000000000000000000000000000000000000000 --- a/funcom_test/1312533.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void setStateIcon(MindMapNode node, boolean enabled) { - // icon - if (noteIcon == null) { - noteIcon = new ImageIcon(mBrowseController - .getResource("images/knotes.png")); - } - node.setStateIcon(NODE_NOTE_ICON, (enabled) ? noteIcon - : null); - } - COM: <s> copied from node note registration </s> - diff --git a/funcom_test/1312615.txt b/funcom_test/1312615.txt deleted file mode 100644 index 0bb1b6fd7e1cd378c09f994ba2cb5aac11b84917..0000000000000000000000000000000000000000 --- a/funcom_test/1312615.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void dragEnter(DropTargetDragEvent dtde) { - // TODO: Accepting the action ACTION_MOVE is false, because we cannot - // know if the action is really ACTION_MOVE. - if (isDragAcceptable(dtde)) { - dtde.acceptDrag(DnDConstants.ACTION_MOVE); - } else { - dtde.rejectDrag(); - } - } - COM: <s> the method is called when the cursor carrying the dragged item enteres </s> - diff --git a/funcom_test/1312929.txt b/funcom_test/1312929.txt deleted file mode 100644 index 81eac3e6e9bd9c7f609e6335469012d4f0bfd394..0000000000000000000000000000000000000000 --- a/funcom_test/1312929.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void getXml(Writer fileout, boolean saveInvisible) throws IOException { - fileout.write("<map "); - fileout.write("version=\""+FreeMind.XML_VERSION+"\""); - fileout.write(">\n"); - fileout.write("<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->\n"); - getRegistry().save(fileout); - (getRootNode()).save(fileout, this.getLinkRegistry(), saveInvisible, true); - fileout.write("</map>\n"); - fileout.close(); - } - COM: <s> writes the content of the map to a writer </s> - diff --git a/funcom_test/1313748.txt b/funcom_test/1313748.txt deleted file mode 100644 index da36e6b5779599ae3d0edc2d3a12b38d5af0ce5b..0000000000000000000000000000000000000000 --- a/funcom_test/1313748.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setSaved(boolean saved) { - boolean setTitle = false; - if(saved) { - changesPerformedSinceLastSave = 0; - setTitle = true; - } else { - if(changesPerformedSinceLastSave == 0) { - setTitle = true; - } - ++changesPerformedSinceLastSave; - } - if (setTitle) { - getModeController().getController().setTitle(); - } - } - COM: <s> counts the amount of actions performed </s> - diff --git a/funcom_test/1313805.txt b/funcom_test/1313805.txt deleted file mode 100644 index f907c79dec9658ab0858fc9b209c0b338b700e79..0000000000000000000000000000000000000000 --- a/funcom_test/1313805.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ModeController load (URL file) throws FileNotFoundException, IOException, XMLParseException, URISyntaxException { - final ModeController newModeController = getMode().createModeController(); - final MapAdapter model = newModel(newModeController); - model.load(file); - newMap(model); -// EventQueue.invokeLater(new Runnable(){ -// public void run() { - model.setSaved(true); -// }}); - return newModeController; - } - COM: <s> you may decide to overload this or take the default </s> - diff --git a/funcom_test/1314006.txt b/funcom_test/1314006.txt deleted file mode 100644 index a2715615afe0d114e5ca35bf7241840e7dc14fe9..0000000000000000000000000000000000000000 --- a/funcom_test/1314006.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void copyAttributesToNode(NodeAdapter node) { - // reactivate all settings from nodeAttributes: - for (Iterator i = nodeAttributes.keySet().iterator(); i.hasNext();) { - String key = (String) i.next(); - //to avoid self reference: - setNodeAttribute(key, (String) nodeAttributes.get(key), - node); - } - } - COM: <s> sets all attributes that were formely applied to the current user object </s> - diff --git a/funcom_test/1314058.txt b/funcom_test/1314058.txt deleted file mode 100644 index bb8dda49e6b5afda9e64d9f38a1570b630d05c4a..0000000000000000000000000000000000000000 --- a/funcom_test/1314058.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void mouseDragged(MouseEvent e) { - logger.fine("Event: mouseDragged"); - // first stop the timer and select the node: - stopTimerForDelayedSelection(); - NodeView nodeV = ((MainView) e.getComponent()).getNodeView(); - - // if dragged for the first time, select the node: - if (!c.getView().isSelected(nodeV)) - c.extendSelection(e); - } - COM: <s> invoked when a mouse button is pressed on a component and then dragged </s> - diff --git a/funcom_test/1314216.txt b/funcom_test/1314216.txt deleted file mode 100644 index 171331440b5e7bec3d550fce004de7d8e02a21e5..0000000000000000000000000000000000000000 --- a/funcom_test/1314216.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void startupController() { - setAllActions(true); - if (getFrame().getView() != null) { - FileOpener fileOpener = new FileOpener(); - DropTarget dropTarget = new DropTarget(getFrame().getView(), - fileOpener); - } - getController().getMapMouseWheelListener().register(new MindMapMouseWheelEventHandler(this)); - } - COM: <s> this method is called after and before a change of the map module </s> - diff --git a/funcom_test/1314230.txt b/funcom_test/1314230.txt deleted file mode 100644 index ba0ba3b2d94fdd2deb62879e31015afc2743fe1d..0000000000000000000000000000000000000000 --- a/funcom_test/1314230.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void _setFolded(MindMapNode node, boolean folded) { - if(node == null) - throw new IllegalArgumentException("setFolded was called with a null node."); - // no root folding, fc, 16.5.2004 - if (node.isRoot() && folded) { - return; - } - if (node.isFolded() != folded) { - node.setFolded(folded); - nodeStructureChanged(node); - } - } - COM: <s> dont call me directly </s> - diff --git a/funcom_test/13240419.txt b/funcom_test/13240419.txt deleted file mode 100644 index 26999b36cf89b3bab6d16605712e370c5fb74b2c..0000000000000000000000000000000000000000 --- a/funcom_test/13240419.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void launch(String projectName, String mode) { - try { - ILaunchConfiguration config = createConfiguration(projectName); - if (config != null) { - DebugUITools.saveAndBuildBeforeLaunch(); - config.launch(mode, null); - } - } catch (CoreException e) { - JDIDebugUIPlugin.errorDialog(LauncherMessages.JavaApplicationLaunchShortcut_1, e.getStatus()); //$NON-NLS-1$ - } - } - COM: <s> launches a configuration for the given type </s> - diff --git a/funcom_test/13240484.txt b/funcom_test/13240484.txt deleted file mode 100644 index df56b7cc7558b001ff8333bd97e2efd092a227ae..0000000000000000000000000000000000000000 --- a/funcom_test/13240484.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initializeValues() { - IPreferenceStore store = getPreferenceStore(); - home.setText(store.getString(IServletExecConstants.PREF_DEFAULT_HOME)); - port.setText(store.getString(IServletExecConstants.PREF_DEFAULT_PORT)); - root.setText(store.getString(IServletExecConstants.PREF_DEFAULT_ROOT)); - mime.setText(store.getString(IServletExecConstants.PREF_DEFAULT_MIME)); - sedJarPath.setText(store.getString(IServletExecConstants.PREF_SED_JAR_PATH)); - mainClass.setText(store.getString(IServletExecConstants.PREF_MAIN_CLASS)); - } - COM: <s> initializes states of the controls from the preference store </s> - diff --git a/funcom_test/13278182.txt b/funcom_test/13278182.txt deleted file mode 100644 index 56f1c86bc6c84e4d85666b4f280d036f00fb6e81..0000000000000000000000000000000000000000 --- a/funcom_test/13278182.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean containsAnyNode(Collection nodes) { - boolean found = false; - Iterator it = nodes.iterator(); - - while (it.hasNext() && ! found) { - NodeType n = (NodeType) it.next(); - Integer key = new Integer(n.typeID); - found = container.containsKey(n); - } - - return found; - } - COM: <s> is any of the given nodes in the container </s> - diff --git a/funcom_test/13278188.txt b/funcom_test/13278188.txt deleted file mode 100644 index 984d73c82192a6901ac6c49be74df7fd2ab6461f..0000000000000000000000000000000000000000 --- a/funcom_test/13278188.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int compare(Object a, Object b) { - StructuralConstraintGraphPart ga = (StructuralConstraintGraphPart) a; - StructuralConstraintGraphPart gb = (StructuralConstraintGraphPart) b; - - if (ascending) { - return ga.numberOfConnectedParts() - gb.numberOfConnectedParts(); - } else { - return gb.numberOfConnectedParts() - ga.numberOfConnectedParts(); - } - } - COM: <s> brings two structural constraint graph parts in order either ascending or </s> - diff --git a/funcom_test/13278217.txt b/funcom_test/13278217.txt deleted file mode 100644 index 4ae186e90ff2d0804d0fb16c64bbc0030d3a4080..0000000000000000000000000000000000000000 --- a/funcom_test/13278217.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void registerExpandedNode(Node expandedNode, ConnectedNode cn) { - if (! newNodes.contains(expandedNode) && - ! newNodes.contains(cn.node)) { - expandedNodes.add(expandedNode); - } - - //else the node is already registered as new node it is checked there and doesnt have to be added her - } - COM: <s> a node that got added connections for check on structural consistency </s> - diff --git a/funcom_test/13278219.txt b/funcom_test/13278219.txt deleted file mode 100644 index 12a695c9be67ff2de514862829aa8ecf1e8c0c29..0000000000000000000000000000000000000000 --- a/funcom_test/13278219.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void registerNewNode(Node newNode) { - newNodes.add(newNode); - - if (newNode instanceof Variable) { - dl.print(5, "\n " + newNode + " added"); - } - - - // add node to allNodes - allNodes.add(Registry.getNodeType(newNode), newNode); - } - COM: <s> adds nodes that were newly created for check on structural consistency </s> - diff --git a/funcom_test/13278235.txt b/funcom_test/13278235.txt deleted file mode 100644 index a9e6616dbc038b705771caa4b3b685ae2c80b23e..0000000000000000000000000000000000000000 --- a/funcom_test/13278235.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected boolean allTypesCheckedWithAllNodes() { - if (newNodesForType.size() > 0) { - return false; - } else if (deletedNodesForType.size() > 0) { - return false; - } else if (expandedNodesForType.size() > 0) { - return false; - } else if (reducedNodesForType.size() > 0) { - return false; - } else { - return true; - } - } - COM: <s> are there still nodes to be checked for some structural constraint types </s> - diff --git a/funcom_test/13278249.txt b/funcom_test/13278249.txt deleted file mode 100644 index 17df1f05d9e168a79cba2ce19206397699fb0d7a..0000000000000000000000000000000000000000 --- a/funcom_test/13278249.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean checkInterpretations() { - boolean result = true; - Set keys = interpretation2node.keySet(); - Node n; - SCNode scn; - Iterator it = keys.iterator(); - - while (it.hasNext() && result) { - n = (Node) it.next(); - scn = (SCNode) interpretation2node.get(n); - - if (! scn.checkInterpretation(n)) { - return false; - } - } //while - - return true; - } //checkInterpretations() - COM: <s> checks if the given interpretations for the nodes coincide with the </s> - diff --git a/funcom_test/13278316.txt b/funcom_test/13278316.txt deleted file mode 100644 index 7bb9cbd9e72162c2a9aea89a4be20cd21378fd9f..0000000000000000000000000000000000000000 --- a/funcom_test/13278316.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Collection getAllInterpretations() { - HashSet result = new HashSet(); - MovableSubgraphPart part; - Iterator partIt = allParts.iterator(); - - while (partIt.hasNext()) { - part = (MovableSubgraphPart) partIt.next(); - result.addAll(part.getAllInterpretations()); - } //while - - return result; - } - COM: <s> returns all the interpretations used in this movable subgraph </s> - diff --git a/funcom_test/13278324.txt b/funcom_test/13278324.txt deleted file mode 100644 index 777a47840d80762377e9756c665d9bb5cea0382f..0000000000000000000000000000000000000000 --- a/funcom_test/13278324.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Collection getUnconnectedParts() { - Vector result = new Vector(); - Iterator it = allParts.iterator(); - - while (it.hasNext()) { - MovableSubgraphPart g = (MovableSubgraphPart) it.next(); - - if (! g.hasInnerGraphLinks() && ! g.hasInterGraphLinks()) { - result.add(g); - } - } - - return result; - } - COM: <s> returns all the parts that have no link </s> - diff --git a/funcom_test/13278329.txt b/funcom_test/13278329.txt deleted file mode 100644 index ad5f7c1666787a9ae180bbe2dccf889c3a95526c..0000000000000000000000000000000000000000 --- a/funcom_test/13278329.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean allreadyCheckedInterpretation(Node interpretation) { - if (searchWithoutChecked) { - if (allreadyCheckedNewNodes.contains(interpretation)) { - return true; - - // all the matches with the nodes in allreadyCheckedNewNodes are known to be found - // before. So a match with this node can not lead to a new match - // => stop search by forbidding the interpretation. - } //if - } //if - - return false; - } - COM: <s> was the interpretation allready checked in this turn if it was it is </s> - diff --git a/funcom_test/13278336.txt b/funcom_test/13278336.txt deleted file mode 100644 index 83082fe5748486d7a75312f4e63f0368742b412f..0000000000000000000000000000000000000000 --- a/funcom_test/13278336.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean findAllParts() { - boolean found = true; - firstMissingPart = null; - - Iterator it = allParts.iterator(); - - while (it.hasNext() && found) { // while all parts are found - - MovableSubgraphPart part = (MovableSubgraphPart) it.next(); - found = part.findOneEmbeddingAllParts(); - - if (! found) { - firstMissingPart = part; - } - } - - return found; - } - COM: <s> embedds all parts of the movable subgraph </s> - diff --git a/funcom_test/13278421.txt b/funcom_test/13278421.txt deleted file mode 100644 index 8668c3795c2d47b077bb29686600336e07c7b71b..0000000000000000000000000000000000000000 --- a/funcom_test/13278421.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public TestGraphTypesContainer getTypeTestGraphs() { - Iterator it = testGraphs.iterator(); - TestGraphTypesContainer result = new TestGraphTypesContainer(this); - - while (it.hasNext()) { - Vector actualTestGraphData = (Vector) it.next(); - result.addTestGraph(getTestGraph(actualTestGraphData, true)); - } - - return result; - } - COM: <s> returns all testgraphs for usage in the structural constraint type </s> - diff --git a/funcom_test/13278429.txt b/funcom_test/13278429.txt deleted file mode 100644 index 49b51e39f6f5cd7f4229c1f1bce89f8a7646ccea..0000000000000000000000000000000000000000 --- a/funcom_test/13278429.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object addNode(int typeId, boolean isLeafNode, Element auxiliaryData) { - Pair result = new Pair(new Integer(typeId), null); - actualSubgraphpart.nodes.add(result); - nodeAuxiliaryData.put(result, auxiliaryData); - - if (isLeafNode) { - symmetricalTwins.add(result); - } - - return result; - } - COM: <s> adds one node into actual graphpart </s> - diff --git a/funcom_test/13278456.txt b/funcom_test/13278456.txt deleted file mode 100644 index 5e07ef947e48372a97db6ebbea0e103b72af1af6..0000000000000000000000000000000000000000 --- a/funcom_test/13278456.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private TestGraph getTestGraph(Vector actualTestGraphData, boolean type) { - TestGraph testGraph = new TestGraph(actualTestGraphData, type); - addTestMainParts(testGraph, actualTestGraphData); - addTestApplicationConditions(testGraph, actualTestGraphData); - - return testGraph; - } - COM: <s> creates one test graph </s> - diff --git a/funcom_test/13278460.txt b/funcom_test/13278460.txt deleted file mode 100644 index cf884d472fbda928c41a6dc47f5afb435e2b7726..0000000000000000000000000000000000000000 --- a/funcom_test/13278460.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addACToConnectedMainParts(final ApplicationConditionPart acp) { - Iterator connectedMainPartsIt = ((StructuralConstraintGraphPart) acp).getInnerGraphLinkParts() - .iterator(); - - while (connectedMainPartsIt.hasNext()) { - MainPartInterface mp = (MainPartInterface) connectedMainPartsIt.next(); - mp.addAC(acp.getApplicationCondition()); - } - } - COM: <s> in an application condition part there may be some links to main parts </s> - diff --git a/funcom_test/13278535.txt b/funcom_test/13278535.txt deleted file mode 100644 index b97774095df544f088e0d128b8337a1471613792..0000000000000000000000000000000000000000 --- a/funcom_test/13278535.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void findBiggestEmbeddingAllMissingParts() { - // assign interpretations to all parts that could not be found. - Iterator it = allParts.iterator(); - - while (it.hasNext()) { - MovableSubgraphPart part = (MovableSubgraphPart) it.next(); - - if (! part.isInterpreted()) { // if a part is uninterpreted by now it could only partly be found. so try again, but be contend with a partiall match - part.findBiggestEmbedding(); - } - } - } - COM: <s> finds the biggest embedding for all parts that do not have an </s> - diff --git a/funcom_test/13278580.txt b/funcom_test/13278580.txt deleted file mode 100644 index ac1e91766491a08c3852fe53d5b341243b7c0bbb..0000000000000000000000000000000000000000 --- a/funcom_test/13278580.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public ConnectedNode getConnectedNodePointingFrom(Node n) { - if (interpretation1 != null) { - if (interpretation1.node == n) { - return interpretation2; - } - } - - if (interpretation2 != null) { - if (interpretation2.node == n) { - return interpretation1; - } - } - - return null; //if there was only one interpretation, and none fitted. - } - COM: <s> get the interpretation of this edge viewed from the node n </s> - diff --git a/funcom_test/13278610.txt b/funcom_test/13278610.txt deleted file mode 100644 index e62842dedfa91470c892d0acb0e6b8c3c4de17b0..0000000000000000000000000000000000000000 --- a/funcom_test/13278610.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean checkPartPACs() { - GraphPartFrame frame = createInnerGraphFrame(); - boolean valid = true; - Iterator it = PACs.iterator(); - - while (it.hasNext() && valid) { - ApplicationCondition ac = (ApplicationCondition) it.next(); - valid &= ac.testPartAC(frame); - } - - return valid; - } //checkPartPACs - COM: <s> checks for this main part if all the application conditions are </s> - diff --git a/funcom_test/13278623.txt b/funcom_test/13278623.txt deleted file mode 100644 index 911c41594cb9ae9cecd508265a5e665e484d5c33..0000000000000000000000000000000000000000 --- a/funcom_test/13278623.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean checkAC(Set deletedNodes, Set reducedNodes) { - boolean valid = true; - Iterator partsIt = allParts.iterator(); - - while (partsIt.hasNext() && valid) { - MovableSubgraphPart pacPart = (MovableSubgraphPart) partsIt.next(); - valid = checkPart(pacPart, deletedNodes) && - checkPart(pacPart, reducedNodes); - } - - return valid; - } - COM: <s> checks whether one of the parts is deleted due to a deleted node </s> - diff --git a/funcom_test/13278646.txt b/funcom_test/13278646.txt deleted file mode 100644 index 7440d81697faff404dfcbb4ba674826c3e4a4542..0000000000000000000000000000000000000000 --- a/funcom_test/13278646.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void checkNewNodes(Set newNodes) { - Iterator partsIt = allParts.iterator(); - - while (partsIt.hasNext()) { - Object o = partsIt.next(); - - if (o instanceof TypeDockingUnconnectedNACPart) { - TypeDockingUnconnectedNACPart part = (TypeDockingUnconnectedNACPart) o; - findNewMatchesForPart(part, newNodes); - } - } - } - COM: <s> tries to find all the application condition parts that were improved due </s> - diff --git a/funcom_test/13278697.txt b/funcom_test/13278697.txt deleted file mode 100644 index be1fe4133f7e6ee36f65f8eec0eb7fa2e091e0e3..0000000000000000000000000000000000000000 --- a/funcom_test/13278697.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public PartFrameContainer createInterGraphFrames() { - PartFrameContainer result = new PartFrameContainer(); - Iterator it = mainParts.iterator(); - - while (it.hasNext()) { - StructuralConstraintGraphPart mp = (StructuralConstraintGraphPart) it.next(); - result.add(mp.createInterGraphFrame()); - } - - return result; - } - COM: <s> returns a part frame container with all the frames of all main parts </s> - diff --git a/funcom_test/13278699.txt b/funcom_test/13278699.txt deleted file mode 100644 index 21b55218fff4f696c377b21688b4858497e0e915..0000000000000000000000000000000000000000 --- a/funcom_test/13278699.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public BigInteger getHashCode() { - String stringHash = new String("0"); - Iterator it = mainParts.iterator(); - - while (it.hasNext()) { - StructuralConstraintGraphPart part = (StructuralConstraintGraphPart) it.next(); - stringHash = stringHash.concat(part.getHashCodeString()); - } //while - - return new BigInteger(stringHash); - } - COM: <s> returns a hashcode of the graph with its actual main parts </s> - diff --git a/funcom_test/13278704.txt b/funcom_test/13278704.txt deleted file mode 100644 index cc809b8cb83f5e0042cb14e517c8c5d3ca3a1290..0000000000000000000000000000000000000000 --- a/funcom_test/13278704.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void addMissingMainPart(final Vector queue, Iterator mainIt) { - if (queue.isEmpty()) { - boolean nextMainAdded = false; - - while (mainIt.hasNext() && ! nextMainAdded) { - StructuralConstraintGraphPart nextMain = - (StructuralConstraintGraphPart) mainIt.next(); - - if (! allreadyCheckedPart(nextMain)) { - queue.add(nextMain); - nextMainAdded = true; - } - } - } //if queue empty - } - COM: <s> if the queue is empty it is filled with the next not interpreted </s> - diff --git a/funcom_test/13278728.txt b/funcom_test/13278728.txt deleted file mode 100644 index 6b1858a5690ff615e9c0ffe482307e754e6c2547..0000000000000000000000000000000000000000 --- a/funcom_test/13278728.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean checkPACs(Set deletedNodes, Set reducedNodes) { - Iterator pacIt = this.PACs.iterator(); - - while (pacIt.hasNext()) { - InstanceDockingPAC pac = (InstanceDockingPAC) pacIt.next(); - - if (! pac.checkAC(deletedNodes, reducedNodes)) { - return false; - } - } // while pacIt - - return true; - } //checkPACs() - COM: <s> checks whether the pacs parts still exist </s> - diff --git a/funcom_test/13278733.txt b/funcom_test/13278733.txt deleted file mode 100644 index 2ff842f42bd3608a6dbcb84103f33c034942ce5f..0000000000000000000000000000000000000000 --- a/funcom_test/13278733.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected boolean destroyMainPart(SCIDockingGraph dockingGraph) { - int numParts = dockingGraph.mainParts.size(); - int partNr = myGSC.random.nextInt(numParts); - StructuralConstraintGraphPart part = (StructuralConstraintGraphPart) dockingGraph.mainParts.elementAt( - partNr); - - if (part instanceof NullMainPart) { - return false; - } - - mySCGraphRepairer.destroyGraphPart(part, - repairedInstance.removeNodeProbability); - - return true; - } - COM: <s> destroys one of the main parts of the given docking graph </s> - diff --git a/funcom_test/13278742.txt b/funcom_test/13278742.txt deleted file mode 100644 index 253bafeaa45c8cf32a460a418057a22aa1d52ff6..0000000000000000000000000000000000000000 --- a/funcom_test/13278742.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void destroyNACs(TestGraph repairedTestGraph) { - Iterator it = repairedTestGraph.NACs.iterator(); - - while (it.hasNext()) { - ApplicationCondition nac = (ApplicationCondition) it.next(); - - if (nac.getMinMatchError() > 0) { - destroyNAC(nac); - } - - if (timeUp()) { - return; - } // if timeup - } //while - } - COM: <s> destroys all not found nacs of the repaired test graph </s> - diff --git a/funcom_test/13278764.txt b/funcom_test/13278764.txt deleted file mode 100644 index 20da43ff9c3df300b2c724204c84be281462e34a..0000000000000000000000000000000000000000 --- a/funcom_test/13278764.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean embeddingContainsEdge(Object edge) { - if (edge instanceof ConnectedNode) { - if (changedNode == ((ConnectedNode) edge).node) { - edge = ((ConnectedNode) edge).other; - } - } - - for (int i = 0; i < repairEmbedding.length; i++) { - if (edge == repairEmbedding[i]) { - return true; - } - } - - return false; - } - COM: <s> is the given edge contained in the edges </s> - diff --git a/funcom_test/13278811.txt b/funcom_test/13278811.txt deleted file mode 100644 index c50b50dbdbc4ff91069f5214627e108233be94ff..0000000000000000000000000000000000000000 --- a/funcom_test/13278811.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void setAllEdgesAdded(RepairPlan plan) { - if (plan != null) { - for (int eNr = 0; eNr < plan.getNumEdgesInEmbedding(); eNr++) { - Object edge = plan.getEdgeAt(eNr); - - if (edge instanceof EdgeData) { - setEdgeAdded((EdgeData) edge); - } - } - } - } - COM: <s> stores all edges in the given plan as added </s> - diff --git a/funcom_test/13278831.txt b/funcom_test/13278831.txt deleted file mode 100644 index cc68d390bb9cd8d22b817ed2bc112de0dcd45cc7..0000000000000000000000000000000000000000 --- a/funcom_test/13278831.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void setEdgeRemoved(Object edge) { - if (edge instanceof ConnectedNode) { - ConnectedNode cn = (ConnectedNode) edge; - - if (cn.direction) { - removedEdges.add(cn); - } else { - removedEdges.add(cn.other); - } - } else { - addedEdges.remove(((EdgeData) edge).from, edge); - addedEdges.remove(((EdgeData) edge).to, edge); - } - } - COM: <s> stores the given edge as removed </s> - diff --git a/funcom_test/13278842.txt b/funcom_test/13278842.txt deleted file mode 100644 index 5d6de04ac5a2e34464054cdfd919f3c27fcd47e2..0000000000000000000000000000000000000000 --- a/funcom_test/13278842.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void enterNodeWaitingForInterpretation(Object node) { - nodesWaitingForInterpretation.push(node); - dl.print(1, "\nnodesWaitingForInterpretation.push "); - - if (node == NULL_SCNode) { - dl.print(1, "null \n"); - } else { - dl.print(1, - Registry.nodeType[((SCNode) node).typeID].getTypeName() + - "\n"); - } - } - COM: <s> pushes the given node to the nodes waiting for interpretation stack </s> - diff --git a/funcom_test/13278902.txt b/funcom_test/13278902.txt deleted file mode 100644 index fbfd70a62f43ae940643926aa4637158129bf0b8..0000000000000000000000000000000000000000 --- a/funcom_test/13278902.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void resetAllEdgesAdded(RepairPlan plan) { - if (plan != null) { - for (int eNr = 0; eNr < plan.getNumEdgesInEmbedding(); eNr++) { - Object edge = plan.getEdgeAt(eNr); - - if (edge instanceof EdgeData) { - resetEdgeAdded((EdgeData) edge); - } - } - } - } - COM: <s> calls reset edge added for all edges of the plan </s> - diff --git a/funcom_test/13278910.txt b/funcom_test/13278910.txt deleted file mode 100644 index 8c82d3b59e77faaa2d6593887424d988f5104ee8..0000000000000000000000000000000000000000 --- a/funcom_test/13278910.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void resetEdgeRemoved(Object edge) { - if (edge instanceof ConnectedNode) { - ConnectedNode cn = (ConnectedNode) edge; - - if (cn.direction) { - removedEdges.remove(cn); - } else { - removedEdges.remove(cn.other); - } - } else { - addedEdges.add(((EdgeData) edge).from, edge); - addedEdges.add(((EdgeData) edge).to, edge); - } - } - COM: <s> resets a marking of the edge as removed </s> - diff --git a/funcom_test/13279100.txt b/funcom_test/13279100.txt deleted file mode 100644 index 3c0d2ca7c5334aa4d6d44ae6a5f34f10b7617d2c..0000000000000000000000000000000000000000 --- a/funcom_test/13279100.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void disconnectNode( ConnectionReference first, ConnectionReference last ) - { - if (first.edgeID == Registry.PRODUCT_EDGE) - { - productVariable = null; - product = 0; - } - else { - Variable variable = (Variable) first.node; - double fVal = variable.value(); - multiplyVariables.remove( variable ); - multiplyVariableNumber--; - if ( fVal != 0 ) - { - productVariables = productVariables / fVal; - } - else - { - // deal with zero case - recalculate(); - } - } - updateCosts(); - } - COM: <s> disconnect a node from the contraint </s> - diff --git a/funcom_test/13279164.txt b/funcom_test/13279164.txt deleted file mode 100644 index 1223ba3acfd55e4fbd50acfb97f9c6e53afa0107..0000000000000000000000000000000000000000 --- a/funcom_test/13279164.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void deleteVariable(Variable variable) { - synchronized(variables) { - if (!variables.contains(variable)) { - throw new Error("The variable \"" + variable + - "\" is not part of the CSP"); - } - } - if (variable.connections.number() > 0) { - throw new Error("The variable \"" + variable + - "\" is still connected to constraints"); - } - deleteVariable_unsafe(variable); - } - COM: <s> deletes an existing variable of the csp </s> - diff --git a/funcom_test/13279280.txt b/funcom_test/13279280.txt deleted file mode 100644 index e6187333987f36448cd8d0ff8bbec573bf6293b6..0000000000000000000000000000000000000000 --- a/funcom_test/13279280.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void updateCapacityVariable(long newCapacity) { - - // Updating capacity variable - - capacity = newCapacity; - - // Updating costs and orderings of interval-related lists - - IntervalListElement currentILE = intervalList.getFirst(); - DRCInterval interval; - - while (currentILE != null) { - interval = (DRCInterval) currentILE.getElement(); - if (!interval.tasks.isEmpty()) { - updateIntervalCapacityCosts(currentILE); - } - currentILE = currentILE.getNext(); - } - - } - COM: <s> resets the internal capacity variable and updates the constraints </s> - diff --git a/funcom_test/13279285.txt b/funcom_test/13279285.txt deleted file mode 100644 index 94cf53b566d9a24788846106a90b8e363165f238..0000000000000000000000000000000000000000 --- a/funcom_test/13279285.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public ArrayList retrieveTasksToBeExecuted() { - - DRCInterval interval = (DRCInterval) currentTimeILE.getElement(); - DRCTask task; - - ArrayList taskList = new ArrayList(interval.tasks.size()); - - Iterator it = interval.tasks.iterator(); - while (it.hasNext()) { - task = (DRCTask) it.next(); - if (task.executionState - == DiscreteResourceConstraint.IN_EXECUTION) { - taskList.add(task.operationVar); - } - } - - return taskList; - - } - COM: <s> returns the set of variables of operations that should currently be </s> - diff --git a/funcom_test/13279308.txt b/funcom_test/13279308.txt deleted file mode 100644 index f0a6195356ebb6fa3efd21dd417dbadc9c293ec8..0000000000000000000000000000000000000000 --- a/funcom_test/13279308.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ConventionalConstraint createConstraint_internal(int constraintID, Embedding embedding, int costID, Object costMappingOptions) { - if (Registry.SAFE_MODE) { - return createConstraint(constraintID, embedding, costID, - costMappingOptions); - } else { - return createConstraint_unsafe(constraintID, embedding, costID, - costMappingOptions); - } - } - COM: <s> constraint creation for internal use </s> - diff --git a/funcom_test/13279359.txt b/funcom_test/13279359.txt deleted file mode 100644 index c6d474042ab31f1dd00a89854be3941168258713..0000000000000000000000000000000000000000 --- a/funcom_test/13279359.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setExponent(double newExponent) { - exponent = newExponent; - expIsInteger = exponent == Math.round(exponent); - expIsEven = exponent / 2 == Math.round(exponent/2); - if ((graphObject != null) && (graphObject instanceof ExponentialConstraintGraphics)) { - ((ExponentialConstraintGraphics)graphObject).updateExponent(); - } - updateCosts(); - } - COM: <s> sets how many times output should be input </s> - diff --git a/funcom_test/13279376.txt b/funcom_test/13279376.txt deleted file mode 100644 index 796301d731997e6816ec90cc118a921550a824ad..0000000000000000000000000000000000000000 --- a/funcom_test/13279376.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ConventionalConstraint createConstraint_internal(int constraintID, Embedding embedding, int costID, Object costMappingOptions, int x, int y) { - if (Registry.SAFE_MODE) { - return createConstraint(constraintID, embedding, costID, - costMappingOptions, x, y); - } else { - return createConstraint_unsafe(constraintID, embedding, costID, - costMappingOptions, x, y); - } - } - COM: <s> constraint creation x y for internal use </s> - diff --git a/funcom_test/13279465.txt b/funcom_test/13279465.txt deleted file mode 100644 index d18a2445e98c11c8272cc43ba9bf76e787c2b33d..0000000000000000000000000000000000000000 --- a/funcom_test/13279465.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void createAuxiliarList() { - int i; - // Clears the list - auxiliarList.clear(); - // Building the list - for (i = 0; i < listNumber; i++) { - Variable aux1 = (Variable) constList.get(i); - Variable aux2 = (Variable) varList.get(i); - Variable diff = new Variable(); - diff.set(Math.abs(aux1.value() - aux2.value())); - auxiliarList.add(diff); - } - } - COM: <s> creates the auxiliar list </s> - diff --git a/funcom_test/13279481.txt b/funcom_test/13279481.txt deleted file mode 100644 index f7285a616e80e8cd4437617f9d0c60a162b4bffe..0000000000000000000000000000000000000000 --- a/funcom_test/13279481.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String toString() { - - String desc = null; - switch (executionState) { - case DiscreteResourceConstraint.PENDING: desc = new String("Pending"); - break; - case DiscreteResourceConstraint.IN_EXECUTION: desc = new String("InExecution"); - break; - case DiscreteResourceConstraint.DONE: desc = new String("Done"); - } - - return desc + ":" + begin + ".." + end + ":(" + capacityCosts +")"; - } - COM: <s> prints the begin and end variable </s> - diff --git a/funcom_test/13279519.txt b/funcom_test/13279519.txt deleted file mode 100644 index 93e476e7ab5dd439f04e0d931631543416df52ce..0000000000000000000000000000000000000000 --- a/funcom_test/13279519.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public CostMapping getCostMapping(String name) { - synchronized(costMappings) { - Iterator it = costMappings.iterator(); - while (it.hasNext()) { - CostMapping cm = (CostMapping) it.next(); - if (cm.getName().equals(name)) { - return cm; - } - } - } - return null; - } - COM: <s> returns the cost mapping with the given name if it is present </s> - diff --git a/funcom_test/13279656.txt b/funcom_test/13279656.txt deleted file mode 100644 index 275f1ad375166218d456caf225396f310d998cad..0000000000000000000000000000000000000000 --- a/funcom_test/13279656.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void fireChange(Object changedObject) { - - - ChangeEvent simpleChangeEvent = new ChangeEvent(changedObject); - - - Object[] listeners = listenerList.getListenerList(); - ChangeListener listener = null; - - for (int i = listeners.length - 2; i >= 0; i -= 2) { - if (listeners[i] == ChangeListener.class) { - - ((ChangeListener) listeners[i + 1]).stateChanged( simpleChangeEvent ); - - } - - } - } - COM: <s> this method supports normal change listeners </s> - diff --git a/funcom_test/13279707.txt b/funcom_test/13279707.txt deleted file mode 100644 index 7148fed604e565e02c8e400da067d89433feb2cc..0000000000000000000000000000000000000000 --- a/funcom_test/13279707.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public CostFunction getCostFunction(String name) { - synchronized(costFunctions) { - Iterator it = costFunctions.iterator(); - while (it.hasNext()) { - CostFunction cf = (CostFunction) it.next(); - if (cf.getName().equals(name)) { - return cf; - } - } - } - return null; - } - COM: <s> returns the cost function with the given name if it is present </s> - diff --git a/funcom_test/13279740.txt b/funcom_test/13279740.txt deleted file mode 100644 index f95a766c3e4e38afcd674fea3581a16b1ac97452..0000000000000000000000000000000000000000 --- a/funcom_test/13279740.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public StringBuffer getCostFunctionInfo() { - StringBuffer s = new StringBuffer(); - int i; - CostFunction costFunction; - synchronized(costFunctions) { - for (i = 0; i < costFunctionNumber; i++) { - costFunction = (CostFunction) costFunctions.get(i); - s.append(costFunction.toString() + "\n"); - } - } - return s; - } - COM: <s> returns the descriptions of all cost functions names and </s> - diff --git a/funcom_test/13279758.txt b/funcom_test/13279758.txt deleted file mode 100644 index 42d05ff4dc5cfe0802e2cb4080c3fed8de670045..0000000000000000000000000000000000000000 --- a/funcom_test/13279758.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addCosts_internal(ConventionalConstraint constraint, int costID, Object costMappingOptions) { - if (Registry.SAFE_MODE) { - addCosts(constraint, costID, costMappingOptions); - } else { - addCosts_unsafe(constraint, costID, costMappingOptions); - } - } - COM: <s> cost addition for internal use </s> - diff --git a/funcom_test/13279814.txt b/funcom_test/13279814.txt deleted file mode 100644 index 6ea5960b459a8f0210a9e2536288c58d7107c91a..0000000000000000000000000000000000000000 --- a/funcom_test/13279814.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void removeConstraint(Node node, int edgeID, boolean direction) { - - ConnectedNode connectedNode; - Iterator it = connectedNodes.iterator(); - boolean notFound = true; - - while (notFound && it.hasNext()) { - connectedNode = (ConnectedNode) it.next(); - notFound = ((connectedNode.node != node) - || (connectedNode.edgeID != edgeID) - || (connectedNode.direction != direction)); - } - it.remove(); - - } - COM: <s> announces a disconnection of a directly connected constraint to the </s> - diff --git a/funcom_test/13279835.txt b/funcom_test/13279835.txt deleted file mode 100644 index 4688a01bc6901cce14ddbd8f2687c77bb18e6111..0000000000000000000000000000000000000000 --- a/funcom_test/13279835.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private boolean criterionMatches(ConnectedNode connectedNode) { - boolean ok = true; - if (isCriterionNode && - (connectedNode.node != criterionNode)) { - ok = false; - } - if (isCriterionEdgeID && - (connectedNode.edgeID != criterionEdgeID)) { - ok = false; - } - if (isCriterionDirection && - (connectedNode.direction != criterionDirection)) { - ok = false; - } - return ok; - } - COM: <s> checks whether the search criteria are fulfilled for a connected node </s> - diff --git a/funcom_test/13279873.txt b/funcom_test/13279873.txt deleted file mode 100644 index d29f02ccb1bef6410a0fc11ba9f7c71b4eee568e..0000000000000000000000000000000000000000 --- a/funcom_test/13279873.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void updateSize() { - Dimension dm = getMinimumSize(); - Dimension dp = getPreferredSize(); - Dimension d = new Dimension(dm.width>dp.width?dm.width:dp.width, - dm.height>dp.height?dm.height:dp.height); - setBounds(x - d.width / 2, y - d.height / 2, d.width, d.height); - revalidate(); - } - COM: <s> updates the size of a nodes graphical representation </s> - diff --git a/funcom_test/13279912.txt b/funcom_test/13279912.txt deleted file mode 100644 index 57ad4538383a89724efdfed6d692fdad45454a31..0000000000000000000000000000000000000000 --- a/funcom_test/13279912.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void recalculateBounds() { - lowerBound = Double.NEGATIVE_INFINITY; - upperBound = Double.POSITIVE_INFINITY; - - RangeConstraint r; - synchronized(rangeConstraints) { - Iterator i = rangeConstraints.iterator(); - while (i.hasNext()) { - r = (RangeConstraint)i.next(); - restrictRange(r.lowerBound, r.upperBound); - } - } - integerLowerBound = (long) Math.ceil(lowerBound); - integerUpperBound = (long) Math.floor(upperBound); - } - COM: <s> recalculates the current bounds </s> - diff --git a/funcom_test/13279914.txt b/funcom_test/13279914.txt deleted file mode 100644 index 05ca4f5287aaa3902db938b3c0b346bc5e4395aa..0000000000000000000000000000000000000000 --- a/funcom_test/13279914.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public RangeConstraint getUpperBoundRangeConstraint() { - synchronized(rangeConstraints) { - Iterator it = rangeConstraints.iterator(); - while (it.hasNext()) { - RangeConstraint rc = (RangeConstraint) it.next(); - if (rc.upperBound == upperBound) { - return rc; - } - }//while - } - return null; - } - COM: <s> returns the range constraints of the variable that determines the upper bound </s> - diff --git a/funcom_test/13279915.txt b/funcom_test/13279915.txt deleted file mode 100644 index 4b609dfbee67dd1120a7e287c9c67db577eaab80..0000000000000000000000000000000000000000 --- a/funcom_test/13279915.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public RangeConstraint getLowerBoundRangeConstraint() { - synchronized(rangeConstraints) { - Iterator it = rangeConstraints.iterator(); - while (it.hasNext()) { - RangeConstraint rc = (RangeConstraint) it.next(); - if (rc.lowerBound == lowerBound) { - return rc; - } - }//while - } - return null; - } - COM: <s> returns the range constraints of the variable that determines the lower bound </s> - diff --git a/funcom_test/13279966.txt b/funcom_test/13279966.txt deleted file mode 100644 index eca323f980561c5cbf44f85f562bad0fd0b9efcc..0000000000000000000000000000000000000000 --- a/funcom_test/13279966.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void addMenuItem(JMenuItem jMenuItem, String menuname) { - JMenu subMenu = null; - // check if this menu already exists - if (menuItemMap.containsKey(menuname)) { - - subMenu = (JMenu) menuItemMap.get(menuname); - - } else { - // make a new menu - subMenu = new JMenu(menuname); - menuItemMap.put(menuname, subMenu); - - } - - subMenu.add(jMenuItem); - - } - COM: <s> adds a menu item to a give menu </s> - diff --git a/funcom_test/13279979.txt b/funcom_test/13279979.txt deleted file mode 100644 index 90b170dcda4da857bc978ac9ad7c9ef426dc6bd9..0000000000000000000000000000000000000000 --- a/funcom_test/13279979.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void generateMenus() { - Iterator it = menuMap.entrySet().iterator(); - while (it.hasNext()) { - Map.Entry entry = (Entry) it.next(); - String menuname = (String) entry.getValue(); - JMenu menu = (JMenu) menuItemMap.get(menuname); - Integer mnemonic = (Integer) mnemonicMap.get(menuname); - - if (menu != null) { - jMainMenuBar.add(menu); - } - if (mnemonic != null) { - menu.setMnemonic(mnemonic.intValue()); - } - } - - } - COM: <s> generate all menues from the menu map </s> - diff --git a/funcom_test/13279980.txt b/funcom_test/13279980.txt deleted file mode 100644 index df4b6fdaf6518f54bd39f40b7671803d6ed339ac..0000000000000000000000000000000000000000 --- a/funcom_test/13279980.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void displayVariable(Variable v) { - Dimension d = ((NodeGraphics) v.graphObject).getPreferredSize(); - ((NodeGraphics) v.graphObject).setBounds(((NodeGraphics) v.graphObject).x - d.width / 2, ((NodeGraphics) v.graphObject).y - d.height / 2, d.width, d.height); - cspPanel.add(((NodeGraphics) v.graphObject)); - } - COM: <s> displays the graphical representation of a variable </s> - diff --git a/funcom_test/13279992.txt b/funcom_test/13279992.txt deleted file mode 100644 index 88d5bad116bce0e09358fc48e2ee8ca8c9714af2..0000000000000000000000000000000000000000 --- a/funcom_test/13279992.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void displayConstraint(ConventionalConstraint constraint) { - Dimension d = - ((NodeGraphics) constraint.graphObject).getPreferredSize(); - ((NodeGraphics) constraint.graphObject).setBounds(((NodeGraphics) constraint.graphObject).x - d.width / 2, ((NodeGraphics) constraint.graphObject).y - d.height / 2, d.width, d.height); - cspPanel.add(((NodeGraphics) constraint.graphObject)); - } - COM: <s> displays the graphical representation of a constraint </s> - diff --git a/funcom_test/13280012.txt b/funcom_test/13280012.txt deleted file mode 100644 index dfe1fea632396b99a006ff55fc51f9f123ee781b..0000000000000000000000000000000000000000 --- a/funcom_test/13280012.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void enableVariableButtons(boolean b) { - Variable v; - synchronized(gsc.variables) { - Iterator i = gsc.variables.iterator(); - while (i.hasNext()) { - v = (Variable) i.next(); - if ((v != null) && (v.graphObject != null)) { - ((NodeGraphics) v.graphObject).activator.setEnabled(b); - } - } - } - } - COM: <s> sets whether the variables buttons are enabled </s> - diff --git a/funcom_test/13280125.txt b/funcom_test/13280125.txt deleted file mode 100644 index ad2843e11ef1057781b0b8435e9123bff543aa68..0000000000000000000000000000000000000000 --- a/funcom_test/13280125.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected boolean moreThanOneCostChoice(ConventionalConstraint c) { - - int cNum = c.getNumberOfCosts(); - int unusedCosts = 0; - - for (int i = 0; (unusedCosts < 2) && (i < cNum); i++) { - if (c.getCostFunctionReference(i) == null) { - unusedCosts++; - } - } - return (unusedCosts > 1); - - } - COM: <s> tests whether a constraint has more than one cost type not connected </s> - diff --git a/funcom_test/13280133.txt b/funcom_test/13280133.txt deleted file mode 100644 index dfa0ea3a6d010e893f340a0f1b011740e0b9bfc7..0000000000000000000000000000000000000000 --- a/funcom_test/13280133.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void enableCostConstraintButton(ConventionalConstraint c) { - - int cNum = c.getNumberOfCosts(); - boolean toBeEnabled = false; - - for (int i = 0; !toBeEnabled && (i < cNum); i++) { - if (c.getCostFunctionReference(i) == null) { - toBeEnabled = true; - } - } - ((NodeGraphics) c.graphObject).activator.setEnabled(toBeEnabled); - - } - COM: <s> enables button of a constraint if it has at least one cost type </s> - diff --git a/funcom_test/13280158.txt b/funcom_test/13280158.txt deleted file mode 100644 index 0bf6d7d70b1f751e7dc2245c26bba4cdb0c53fee..0000000000000000000000000000000000000000 --- a/funcom_test/13280158.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void enableConstraintButtonsEditing() { - ConventionalConstraint c; - synchronized(gsc.constraints) { - Iterator i = gsc.constraints.iterator(); - while (i.hasNext()) { - c = (ConventionalConstraint) i.next(); - if ((c instanceof RangeConstraint) || (c instanceof ExponentialConstraint)||(c instanceof ProportionConstraint)) { - ((NodeGraphics) c.graphObject).activator.setEnabled(true); - } else { - ((NodeGraphics) c.graphObject).activator.setEnabled(false); - } - } - } - } - COM: <s> enables constraints buttons for editing </s> - diff --git a/funcom_test/13280173.txt b/funcom_test/13280173.txt deleted file mode 100644 index ba61c0188c596a1299f4973dc83a4f5cbccff2ff..0000000000000000000000000000000000000000 --- a/funcom_test/13280173.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: protected void enableNodeTypeButtons(int typeID) { - if (typeID == Registry.VARIABLE) { - enableConstraintButtons(false); - enableVariableButtons(true); - } else { - enableVariableButtons(false); - ConventionalConstraint c; - synchronized(gsc.constraints) { - Iterator i = gsc.constraints.iterator(); - while (i.hasNext()) { - c = (ConventionalConstraint) i.next(); - if (c.typeID == typeID) { - ((NodeGraphics) c.graphObject).activator.setEnabled(true); - } else { - ((NodeGraphics) c.graphObject).activator.setEnabled(false); - } - } - } - } - } - COM: <s> enables buttons of a specific node type </s> - diff --git a/funcom_test/13280228.txt b/funcom_test/13280228.txt deleted file mode 100644 index 2b84b20333f38367c91365a2b38f31822440d49a..0000000000000000000000000000000000000000 --- a/funcom_test/13280228.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void paintComponent(Graphics g) { - // check if the height has changed - if (oldheight != this.getHeight()) { - // the height has changed, we must adjust the retractbutton height. - oldheight = this.getHeight(); - retractButton.setBounds(0, 0, RETRACT_BUTTON_WIDTH, this - .getHeight()); - } - viewNameButton.setBackground(this.getBackground()); - super.paintComponent(g); - - } - COM: <s> paint the component </s> - diff --git a/funcom_test/13482221.txt b/funcom_test/13482221.txt deleted file mode 100644 index e55f9888b319ac6bc102c35c11dd01bdc38b293b..0000000000000000000000000000000000000000 --- a/funcom_test/13482221.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Swizzler getSwizzler(int vn) { - Iterator iter = IndStore.values().iterator(); - - while (iter.hasNext()) { - Swizzler swz = (Swizzler) iter.next(); - if ((swz.target().valueNumber() == vn) - || (swz.ind_var().valueNumber() == vn)) - return swz; - } - return null; - } - COM: <s> searches the list of induction variables for an induction variable with a </s> - diff --git a/funcom_test/13482232.txt b/funcom_test/13482232.txt deleted file mode 100644 index a0dbd4cc494eeb21a02c42c937715b23b337ad05..0000000000000000000000000000000000000000 --- a/funcom_test/13482232.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void Display_store() { - Iterator iter = IndStore.values().iterator(); - - while (iter.hasNext()) { - Swizzler indswz = (Swizzler) iter.next(); - - System.out.println("\nIV: " + indswz.ind_var() + " tgt: " - + indswz.target() + "\narray: " + indswz.array() - + " init: " + indswz.init_val() + " end: " - + indswz.end_val()); - } - } - COM: <s> displays to system </s> - diff --git a/funcom_test/13482481.txt b/funcom_test/13482481.txt deleted file mode 100644 index 1d599d3998fe646bdedf5e7f71100fcb316428df..0000000000000000000000000000000000000000 --- a/funcom_test/13482481.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void rebuildFlowGraph() { - try { - _controlFlowGraph = new FlowGraph(_methodGen); - } catch (ClassFormatException ex) { - System.err.println(ex.getMessage()); - _context.release(_methodGen.getMethod(), _methodGen.getClassName()); - _controlFlowGraph = null; - - return; - } - - _controlFlowGraph.initialize(); - } - COM: <s> rebuild the control flow graph </s> - diff --git a/funcom_test/13482496.txt b/funcom_test/13482496.txt deleted file mode 100644 index cdbac78a03ea782696b657a759ac4bb79dde4821..0000000000000000000000000000000000000000 --- a/funcom_test/13482496.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void noteMorphicity(int morphicity) { - Integer r = new Integer(morphicity); - Integer count = (Integer) this.morphicity.get(r); - if (count == null) { - this.morphicity.put(r, new Integer(1)); - - } else { - this.morphicity.put(r, new Integer(count.intValue() + 1)); - } - } - COM: <s> maintains a count of the number of methods call sites resolve to </s> - diff --git a/funcom_test/13482721.txt b/funcom_test/13482721.txt deleted file mode 100644 index 6e385ce56c36317a42c575d84ecc299f41281e86..0000000000000000000000000000000000000000 --- a/funcom_test/13482721.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void transform(FlowGraph cfg, SSAConstructionInfo info) { - if (DEBUG) { - System.out.println("transforming " + info.prototype + " (" - + info.prototype.type() + ")"); - } - - placePhiFunctions(cfg, info); - rename(cfg, info); - insertCode(cfg, info); - } - COM: <s> performs the actions necessary to convert a cfg into ssa form with </s> - diff --git a/funcom_test/13482724.txt b/funcom_test/13482724.txt deleted file mode 100644 index 7670bc3a2ccdeca93405e4704526caec3f7ef630..0000000000000000000000000000000000000000 --- a/funcom_test/13482724.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void printClasses(PrintWriter out, int indent) { - TypeNode objectNode = this.getExtendsNode(new ObjectType( - "java.lang.Object")); - indent(out, indent); - out.println(objectNode.type); - printSubclasses(objectNode.type, out, true, indent + 2); - } - COM: <s> prints the class hierarchy i </s> - diff --git a/funcom_test/13482765.txt b/funcom_test/13482765.txt deleted file mode 100644 index e8c005529722d7499d553c8da3bbc97da99d4c35..0000000000000000000000000000000000000000 --- a/funcom_test/13482765.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void insertCode(FlowGraph cfg, SSAConstructionInfo info) { - Iterator blocks = cfg.nodes().iterator(); - - while (blocks.hasNext()) { - Block block = (Block) blocks.next(); - - PhiStmt phi = info.phiAtBlock(block); - - if (phi != null) { - Assert.isFalse(phi instanceof PhiReturnStmt); - block.tree().prependStmt(phi); - } - } - } - COM: <s> iterates over the blocks in the cfg and inserts the phi statement </s> - diff --git a/funcom_test/13482798.txt b/funcom_test/13482798.txt deleted file mode 100644 index 2ab21cccc022c63603ffdc78bbdcd0ef315465c1..0000000000000000000000000000000000000000 --- a/funcom_test/13482798.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void removePhiAtBlock(Block block) { - PhiStmt phi = phis[cfg.preOrderIndex(block)]; - - if (phi != null) { - if (SSA.DEBUG) { - System.out.println(" removing " + phi + " at " + block); - } - - phi.cleanup(); - phis[cfg.preOrderIndex(block)] = null; - } - } - COM: <s> removes the phi statement for this variable at a given block </s> - diff --git a/funcom_test/13482799.txt b/funcom_test/13482799.txt deleted file mode 100644 index f85d338db2e7995b89d06767042d6bfbbf183bc1..0000000000000000000000000000000000000000 --- a/funcom_test/13482799.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addPhi(Block block) { - if (phis[cfg.preOrderIndex(block)] != null) { - return; - } - - VarExpr target = (VarExpr) prototype.clone(); - - PhiJoinStmt phi = new PhiJoinStmt(target, block); - phis[cfg.preOrderIndex(block)] = phi; - - if (SSA.DEBUG) { - System.out.println(" place " + phi + " in " + block); - } - } - COM: <s> adds a tt phi join stmt tt for the variable represented by this </s> - diff --git a/funcom_test/13482801.txt b/funcom_test/13482801.txt deleted file mode 100644 index 3156c6fd6da2a9250d861b4425a01754985c5422..0000000000000000000000000000000000000000 --- a/funcom_test/13482801.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addCatchPhi(Block block) { - if (phis[cfg.preOrderIndex(block)] != null) { - return; - } - - if (prototype instanceof LocalExpr) { - LocalExpr target = (LocalExpr) prototype.clone(); - - PhiCatchStmt phi = new PhiCatchStmt(target); - phis[cfg.preOrderIndex(block)] = phi; - - if (SSA.DEBUG) { - System.out.println(" place " + phi + " in " + block); - } - } - } - COM: <s> inserts a tt phi catch stmt tt whose target is the variable </s> - diff --git a/funcom_test/13482802.txt b/funcom_test/13482802.txt deleted file mode 100644 index 855db6f64faf00bb5dd3924a0d53b91495d7759e..0000000000000000000000000000000000000000 --- a/funcom_test/13482802.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void addRetPhi(Subroutine sub, Block block) { - if (phis[cfg.preOrderIndex(block)] != null) { - return; - } - - VarExpr target = (VarExpr) prototype.clone(); - - PhiReturnStmt phi = new PhiReturnStmt(target, sub); - phis[cfg.preOrderIndex(block)] = phi; - - if (SSA.DEBUG) { - System.out.println(" place " + phi + " in " + block); - } - } - COM: <s> adds a tt phi return stmt tt associated with a given </s> - diff --git a/funcom_test/13482876.txt b/funcom_test/13482876.txt deleted file mode 100644 index 2a950f4d00a4c8efe9576e87271c75e6fd1dcb7a..0000000000000000000000000000000000000000 --- a/funcom_test/13482876.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void print(PrintStream out) { - out.println(" " + entry); - - Iterator e = paths().iterator(); - - while (e.hasNext()) { - Block[] path = (Block[]) e.next(); - out.println(" path: " + path[0] + " -> " + path[1]); - } - } - COM: <s> prints a textual representation of this subroutine </s> - diff --git a/funcom_test/13482891.txt b/funcom_test/13482891.txt deleted file mode 100644 index 4708261b02b13ce9a902af408933e97c97c43a90..0000000000000000000000000000000000000000 --- a/funcom_test/13482891.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void visitRetStmt(RetStmt stmt) { - Set targets = new LinkedHashSet(); - - Iterator iter = stmt.sub().paths().iterator(); - - while (iter.hasNext()) { - Block[] path = (Block[]) iter.next(); - targets.add(path[1]); - } - - targets.addAll(stmt.catchTargets()); - - verifyTargets(stmt.block(), targets); - - visitNode(stmt); - } - COM: <s> make sure that all of targets of the tt ret tt are valid </s> - diff --git a/funcom_test/13482895.txt b/funcom_test/13482895.txt deleted file mode 100644 index 551863a26ad5263aa758217a81600a3658b93947..0000000000000000000000000000000000000000 --- a/funcom_test/13482895.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void visitSwitchStmt(SwitchStmt stmt) { - Set targets = new LinkedHashSet(); - - targets.add(stmt.defaultTarget()); - - for (int i = 0; i < stmt.targets().length; i++) { - targets.add(stmt.targets()[i]); - } - - targets.addAll(stmt.catchTargets()); - - verifyTargets(stmt.block(), targets); - - visitNode(stmt); - } - COM: <s> make sure that that all of the targets of the switch are valid </s> - diff --git a/funcom_test/13482897.txt b/funcom_test/13482897.txt deleted file mode 100644 index 314566cd78dbb8ed7ef3f346fac916673572bcd1..0000000000000000000000000000000000000000 --- a/funcom_test/13482897.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void visitIfStmt(IfStmt stmt) { - Set targets = new LinkedHashSet(); - targets.add(stmt.trueTarget()); - targets.add(stmt.falseTarget()); - targets.addAll(stmt.catchTargets()); - verifyTargets(stmt.block(), targets); - - visitNode(stmt); - } - COM: <s> make sure that the targets of the if statement are valid </s> - diff --git a/funcom_test/13482952.txt b/funcom_test/13482952.txt deleted file mode 100644 index 5bd0a17be372499df574c686ed6436104516b027..0000000000000000000000000000000000000000 --- a/funcom_test/13482952.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public Node findNode(int a) { - nodes.ensureSize(a + 1); - - Node na = (Node) nodes.get(a); - - if (na == null) { - // Start a new set with a - Node root = new Node(a); - - root.child = new Node(a); - root.child.parent = root; - - nodes.set(a, root.child); - - return root; - } - - return findNode(na); - } - COM: <s> searches the disjoint sets for a given integer </s> - diff --git a/funcom_test/13483001.txt b/funcom_test/13483001.txt deleted file mode 100644 index ca485cc06c806dca4a7b740e782a21fb9a759a68..0000000000000000000000000000000000000000 --- a/funcom_test/13483001.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public boolean hasEdge(GraphNode v, GraphNode w) { - Assert.isTrue(nodes.containsValue(v), "Graph does not contain " + v); - Assert.isTrue(nodes.containsValue(w), "Graph does not contain " + w); - return succs(v).contains(w); - } - COM: <s> searches this graph for an directed edge between two graph nodes </s> - diff --git a/funcom_test/13483040.txt b/funcom_test/13483040.txt deleted file mode 100644 index a06b50990a823de4708ed301170fb985228e7b0b..0000000000000000000000000000000000000000 --- a/funcom_test/13483040.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public LocalVariableGen newLocal(Type type) { - // Why don't we add Type information to the LocalVariable? Are we - // assuming that type checking has already been done and so its a - // moot point? - - LocalVariableGen var = new LocalVariableGen(colorsUsed, "retAdr" - + colorsUsed, type, null, null); - colorsUsed += type.getSize(); - return var; - } - COM: <s> creates a new local variable in this method as modeled by the cfg </s> - diff --git a/funcom_test/13483109.txt b/funcom_test/13483109.txt deleted file mode 100644 index 1855736f205c94620e74530ef2a82c2b4ecd84ba..0000000000000000000000000000000000000000 --- a/funcom_test/13483109.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void removeEdge(GraphNode v, GraphNode w) { - Block src = (Block) v; - Block dst = (Block) w; - - if (DEBUG) { - System.out.println(" REMOVING EDGE " + src + " -> " + dst); - } - - super.removeEdge(src, dst); - - cleanupEdge(src, dst); - } - COM: <s> removes an edge from the graph and performs the necessary cleanup </s> - diff --git a/funcom_test/13483128.txt b/funcom_test/13483128.txt deleted file mode 100644 index c6a43e7a9892c76003ad77408d3f2decdf994139..0000000000000000000000000000000000000000 --- a/funcom_test/13483128.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void cleanupEdge(final Block src, final Block dst) { - dst.visit(new TreeVisitor() { - public void visitPhiJoinStmt(PhiJoinStmt stmt) { - Expr operand = stmt.operandAt(src); - - if (operand != null) { - operand.cleanup(); - - // Remove the operand associated with src - // from a PhiJoinStmt - stmt.setOperandAt(src, null); - } - } - - public void visitStmt(Stmt stmt) { - } - }); - } - COM: <s> visit the tree starting at the destination node </s> - diff --git a/funcom_test/13483132.txt b/funcom_test/13483132.txt deleted file mode 100644 index e3bdb1426bb11801285526f35f7ce5cad5359b56..0000000000000000000000000000000000000000 --- a/funcom_test/13483132.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void replacePhis(final FlowGraph cfg) { - replaceCatchPhis(cfg); - replaceJoinPhis(cfg); - - // Remove the phis. - cfg.visit(new TreeVisitor() { - public void visitTree(Tree tree) { - Iterator e = tree.stmts().iterator(); - - while (e.hasNext()) { - Stmt s = (Stmt) e.next(); - - if (s instanceof PhiStmt) { - e.remove(); - } - } - } - }); - } - COM: <s> replace phi stmts with copies that accomplish what the phi stmts represent </s> - diff --git a/funcom_test/13483137.txt b/funcom_test/13483137.txt deleted file mode 100644 index 5f205ac3acca698816871a8c4139ac5169449b27..0000000000000000000000000000000000000000 --- a/funcom_test/13483137.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void initLocals(Collection locals) { - LocalExpr[] t = new LocalExpr[locals.size()]; - - if (t.length == 0) { - return; - } - - Iterator iter = locals.iterator(); - - for (int i = 0; iter.hasNext(); i++) { - t[i] = (LocalExpr) iter.next(); - } - - addStmt(new InitStmt(t)); - } - COM: <s> add a collection of local variables to the block </s> - diff --git a/funcom_test/13483149.txt b/funcom_test/13483149.txt deleted file mode 100644 index b1c6e4d811b7cad63948d8843708e64382f02f90..0000000000000000000000000000000000000000 --- a/funcom_test/13483149.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void computeDominators() { - db(" Computing Dominators"); - - domEdgeModCount = edgeModCount; - - removeUnreachable(); - - // Forward - DominatorTree.buildTree(this, false); - DominanceFrontier.buildFrontier(this, false); - - // Reverse - DominatorTree.buildTree(this, true); - DominanceFrontier.buildFrontier(this, true); - } - COM: <s> uses classes dominator tree and dominace frontier to calculate which blocks </s> - diff --git a/funcom_test/13483193.txt b/funcom_test/13483193.txt deleted file mode 100644 index 1107612aba6e035f64772f95a4df749d304441f1..0000000000000000000000000000000000000000 --- a/funcom_test/13483193.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void finalize(ExprInfo exprInfo) { - // We assume that all availDef for exprInfo are tack. - // Perform a perorder traversal of the dominance tree. Remember that - // the root of the dominance tree is also the root of the CFG. - finalizeVisit(exprInfo, cfg.source(), null); - } - COM: <s> finalize is the final step in preparing for the placement of temporaries </s> - diff --git a/funcom_test/13483227.txt b/funcom_test/13483227.txt deleted file mode 100644 index ee1667ba3592a652cbfb5f12691fbd0dcf44961b..0000000000000000000000000000000000000000 --- a/funcom_test/13483227.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void print(final PrintWriter out) { - String dateString = java.text.DateFormat.getDateInstance().format( - new Date()); - out.println("Print " + ++file + " at " + dateString + " " - + method.getReturnType() + " " + method.getName() + ":"); - - visit(new PrintVisitor(out)); - - if (PRINT_GRAPH) { - printGraph(); - } - } - COM: <s> prints the graph </s> - diff --git a/funcom_test/13483280.txt b/funcom_test/13483280.txt deleted file mode 100644 index eb77a8de373ecf12e1ad7861d54df5bad6622f40..0000000000000000000000000000000000000000 --- a/funcom_test/13483280.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public LocalExpr newLocal(Type type) { - LocalVariableGen var = block.graph().method().addLocalVariable("", - type, null, null); - var.setName("newLocalVar" + var.getIndex()); - // presuming it is bad not to have a name.... - return new LocalExpr(var.getIndex(), type); - } - COM: <s> returns a local variable tt local expr tt located in this method </s> - diff --git a/funcom_test/13483336.txt b/funcom_test/13483336.txt deleted file mode 100644 index a9c08839ee24b90ea1041d216d3a551653d64f11..0000000000000000000000000000000000000000 --- a/funcom_test/13483336.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean canInsert(Block block) { - int blockIndex = cfg.preOrderIndex(block); - - Def def = operands[blockIndex]; - - if (def == null) { - return true; - } - - if (!hasRealUse[blockIndex]) { - if (def instanceof Phi) { - Phi phi = (Phi) def; - - if (!phi.willBeAvail()) { - return true; - } - } - } - - return false; - } - COM: <s> determines whether or not a phi operand satisfies insert </s> - diff --git a/funcom_test/13483361.txt b/funcom_test/13483361.txt deleted file mode 100644 index f681ea7e1fae0984b581f2e25579f78b2d0cb038..0000000000000000000000000000000000000000 --- a/funcom_test/13483361.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addStore(MemExpr target, Expr expr) { - // Stmt last = lastStmt(); - - if (saveValue) { - stack.push(new StoreExpr(target, expr, expr.type())); - - } else { - addStmt(new ExprStmt(new StoreExpr(target, expr, expr.type()))); - } - } - COM: <s> deals with an expression that stores a value </s> - diff --git a/funcom_test/13483474.txt b/funcom_test/13483474.txt deleted file mode 100644 index 7371cc284d676a4ee24144d5b362b1c9e379bd88..0000000000000000000000000000000000000000 --- a/funcom_test/13483474.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addOperand(LocalExpr operand) { - for (int i = 0; i < operands.size(); i++) { - LocalExpr expr = (LocalExpr) operands.get(i); - Assert.isTrue(expr.def() != operand.def()); - } - - operands.add(operand); - operand.setParent(this); - } - COM: <s> add a local variable to the operand list for this phi function </s> - diff --git a/funcom_test/13483742.txt b/funcom_test/13483742.txt deleted file mode 100644 index 4e54f81b70af6d33a5ec351f98bc2b0b1a5c63fa..0000000000000000000000000000000000000000 --- a/funcom_test/13483742.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void replace(int depth, Expr expr) { - for (int i = stack.size() - 1; i >= 0; i--) { - Expr top = (Expr) stack.get(i); - - if (depth == 0) { - stack.set(i, expr); - return; - } - - depth -= top.type().getSize(); - } - - throw new IllegalArgumentException("Can't replace below stack bottom."); - } - COM: <s> replaces the expression that is depth expressions from the top of the </s> - diff --git a/funcom_test/13483753.txt b/funcom_test/13483753.txt deleted file mode 100644 index eda6ff9fb28819a24e441ce6b179268bf4129eac..0000000000000000000000000000000000000000 --- a/funcom_test/13483753.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean equalsExpr(Expr other) { - if (!(other instanceof ConstantExpr)) { - return false; - } - - if (value == null) { - return ((ConstantExpr) other).value == null; - } - - if (((ConstantExpr) other).value == null) { - return false; - } - - return ((ConstantExpr) other).value.equals(value); - } - COM: <s> compare this constant expr to another expr </s> - diff --git a/funcom_test/13483798.txt b/funcom_test/13483798.txt deleted file mode 100644 index eb84fccfcc5b6f3a47f81712cc137d071b27ee0b..0000000000000000000000000000000000000000 --- a/funcom_test/13483798.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public void negate() { - switch (comparison) { - case EQ: - comparison = NE; - break; - case NE: - comparison = EQ; - break; - case LT: - comparison = GE; - break; - case GE: - comparison = LT; - break; - case GT: - comparison = LE; - break; - case LE: - comparison = GT; - break; - } - - Block t = trueTarget; - trueTarget = falseTarget; - falseTarget = t; - } - COM: <s> set the comparison operator for this if statement to its logical </s> - diff --git a/funcom_test/13484008.txt b/funcom_test/13484008.txt deleted file mode 100644 index 2c658b52ebad22eae26077b862390abc8cffcd5a..0000000000000000000000000000000000000000 --- a/funcom_test/13484008.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addPhi(final Block block) { - int blockIndex = cfg.preOrderIndex(block); - - if (phis[blockIndex] == null) { - if (DEBUG) { - System.out.println(" add phi for " + prototype + " at " - + block); - } - - phis[blockIndex] = new Phi(this, block); - } - } - COM: <s> notifies this expr info of the existence of an phi statement for this </s> - diff --git a/funcom_test/13484099.txt b/funcom_test/13484099.txt deleted file mode 100644 index 9e9fc7bd51887bf520ca09cf5b2263e7ec53501b..0000000000000000000000000000000000000000 --- a/funcom_test/13484099.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void sortExprs(List list) { - Collections.sort(list, new Comparator() { - public int compare(Object a, Object b) { - if (a == b) { - return 0; - } - - int ka = ((Expr) a).key(); - int kb = ((Expr) b).key(); - - return ka - kb; - } - }); - } - COM: <s> sort a list of expressions into preorder </s> - diff --git a/funcom_test/13484116.txt b/funcom_test/13484116.txt deleted file mode 100644 index 1a4e55dd3ffae95253d0b1531afd8a1b7be258f0..0000000000000000000000000000000000000000 --- a/funcom_test/13484116.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void sortKills(List list) { - Collections.sort(list, new Comparator() { - public int compare(Object a, Object b) { - if (a == b) { - return 0; - } - - int ka = ((Kill) a).key(); - int kb = ((Kill) b).key(); - - return ka - kb; - } - }); - } - COM: <s> sorts a lists of kills into preorder </s> - diff --git a/funcom_test/13484207.txt b/funcom_test/13484207.txt deleted file mode 100644 index e738d9d2084ef95093ce48cf11d67e950044240c..0000000000000000000000000000000000000000 --- a/funcom_test/13484207.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addKill(Block block, Kill kill) { - if (DEBUG) { - System.out.println(" add alias to worklist=" + kill.expr - + " " + kill + " block: " + block.label()); - } - - int blockIndex = cfg.preOrderIndex(block); - kills[blockIndex].add(kill); - killsSorted[blockIndex] = false; - } - COM: <s> adds a kill expression to the worklist at a given block </s> - diff --git a/funcom_test/13484825.txt b/funcom_test/13484825.txt deleted file mode 100644 index 2489328182bb7fc11c9b0d506ed6a321a7cb41d6..0000000000000000000000000000000000000000 --- a/funcom_test/13484825.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void visitNEW(NEW nI) { - ConstantPoolGen cp = block.graph().method().getConstantPool(); - Type type = nI.getLoadClassType(cp); - Expr top = new NewExpr(type, Type.OBJECT); - stack.push(top); - - db(" new: " + top); - } - COM: <s> pushes a new expr onto the operand stack </s> - diff --git a/funcom_test/13484835.txt b/funcom_test/13484835.txt deleted file mode 100644 index 7212b139fd2179edc6efbc566a4c18b25b8420b5..0000000000000000000000000000000000000000 --- a/funcom_test/13484835.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void visitNEWARRAY(NEWARRAY nAI) { - BasicType type = (BasicType) ((ArrayType) nAI.getType()).getBasicType(); - Expr size = stack.pop(Type.INT); - Expr top = new NewArrayExpr(size, type, (ArrayType) nAI.getType()); - stack.push(top); - } - COM: <s> pushes a new array expr onto the operand stack </s> - diff --git a/funcom_test/13484869.txt b/funcom_test/13484869.txt deleted file mode 100644 index 927c2de9ce59dc9a3bb873fc5ea4a5799cb6ebfe..0000000000000000000000000000000000000000 --- a/funcom_test/13484869.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void visitCHECKCAST(CHECKCAST cCI) { - Expr expr = stack.pop(Type.OBJECT); - ConstantPoolGen cp = block.graph().method().getConstantPool(); - Type type = cCI.getType(cp); - Expr top = new CastExpr(expr, type, type); - stack.push(top); - } - COM: <s> pushes a cast expr onto the operand stack </s> - diff --git a/funcom_test/13484877.txt b/funcom_test/13484877.txt deleted file mode 100644 index bb34bced498c8d69fd24345b17384e0253bea570..0000000000000000000000000000000000000000 --- a/funcom_test/13484877.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void visitINSTANCEOF(INSTANCEOF iOI) { - ConstantPoolGen cp = block.graph().method().getConstantPool(); - Type type = iOI.getType(cp); - Expr expr = (Expr) stack.pop(Type.OBJECT); - Expr top = new InstanceOfExpr(expr, type, Type.INT); - stack.push(top); - } - COM: <s> pushes an instance of expr onto the operand stack </s> - diff --git a/funcom_test/13485030.txt b/funcom_test/13485030.txt deleted file mode 100644 index d9a76a28733cc527ddbf8871da09aae3bb7ae8e6..0000000000000000000000000000000000000000 --- a/funcom_test/13485030.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: /* - * public void visit_aswrange(Instruction inst) { Expr end = (Expr) - * stack.pop(Type.INT); Expr start = (Expr) stack.pop(Type.INT); Expr array = - * (Expr) stack.pop(new ArrayType(Type.OBJECT,1)); - * - * addStmt(new SRStmt(array, start, end)); } - COM: <s> add a srstmt to the statement list </s> - diff --git a/funcom_test/13493984.txt b/funcom_test/13493984.txt deleted file mode 100644 index f33726a06a3a4338eeba39d57ba22cbd274cd618..0000000000000000000000000000000000000000 --- a/funcom_test/13493984.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - String theAddress = "{not specified}"; - if (address != null) { - theAddress = address.toString(); - } - return "id: [" + id + "], name: [" + name + "], address: <" - + theAddress + ">, created: [" + sdf.format(created) + "]"; - } - COM: <s> return this users data as a tt string tt </s> - diff --git a/funcom_test/13512609.txt b/funcom_test/13512609.txt deleted file mode 100644 index f7ab8a17b74134c8894ad0d4cc02101c16ae0aef..0000000000000000000000000000000000000000 --- a/funcom_test/13512609.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean accept(File f) { - if (inclDirectories && f.isDirectory()) { - return true; - } - - - String extension = getExtension(f); - if (extension != null) { - for (int i = 0; i < extensionList.length; i++){ - if (extension.equalsIgnoreCase(extensionList[i])) { - return true; - } - } - return false; - } - return false; - } - COM: <s> accept all directories if indicated during class initialization </s> - diff --git a/funcom_test/13512690.txt b/funcom_test/13512690.txt deleted file mode 100644 index c7fc3550635ebccbe9dc9e23ca54ecafe1c4f6d8..0000000000000000000000000000000000000000 --- a/funcom_test/13512690.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void appendToOutput(String s){ - synchronized(lock){ - DefaultStyledDocument doc = (DefaultStyledDocument) output.getDocument(); - try{ - doc.insertString(doc.getEndPosition().getOffset()-1, s, null); - output.setCaretPosition(doc.getLength()); - }catch(Exception ee){ee.printStackTrace();} - } - } - COM: <s> appends the string to the output panels code document code </s> - diff --git a/funcom_test/13512722.txt b/funcom_test/13512722.txt deleted file mode 100644 index eececcd7b7ca452789c1727ae26c81c0b299bed6..0000000000000000000000000000000000000000 --- a/funcom_test/13512722.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String constructClause(String resourceName, String propertyName, String value){ - StringBuffer clause = new StringBuffer("("); - clause.append(propertyName); - clause.append(" "); - clause.append(resourceName); - clause.append(" "); - clause.append(value); - clause.append(")"); - return clause.toString(); - } - COM: <s> converts the triple into an algernon clause </s> - diff --git a/funcom_test/13512728.txt b/funcom_test/13512728.txt deleted file mode 100644 index 29032ec216c06ce35664c74731ffc9eeed1567c1..0000000000000000000000000000000000000000 --- a/funcom_test/13512728.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean connect(){ - if(defServerURL==null){ - SystemConsole.println("Server url not defined, first set using setServerURL(...)"); - return false; - } - SystemConsole.println("Server:" +defServerURL); - return connect(defServerURL, defMbeanName); - } - COM: <s> call this method to connect to the protege jmx service using the </s> - diff --git a/funcom_test/13512743.txt b/funcom_test/13512743.txt deleted file mode 100644 index 46f4079c6b6e43c2d007ee80558baac00af14180..0000000000000000000000000000000000000000 --- a/funcom_test/13512743.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean checkAlive(int tries) throws Exception{ - boolean alive = false; - for(int i=0;!alive && i<tries;i++){ - if (ProtegeProxy.checkAlive()) alive = true; - else { - try{ - Thread.sleep(500); - }catch(Exception e){;} - } - } - return alive; - } - COM: <s> use this to determine whether the connection is present or not with </s> - diff --git a/funcom_test/13512803.txt b/funcom_test/13512803.txt deleted file mode 100644 index a86fa6f1db6fb5573bde08c42f46c1ec2908b140..0000000000000000000000000000000000000000 --- a/funcom_test/13512803.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public OWLProperty findProperty(String propertyName){ - OWLProperty property = null; - propertyName = propertyName.trim(); - if (om !=null && checkNoSpaces(propertyName)){ - property = om.getOWLProperty(propertyName); - }else SystemConsole.println("Knowledge base doesn't exist or invalid property name:" + propertyName); - return property; - } - COM: <s> used to retrieve a property i </s> - diff --git a/funcom_test/13513176.txt b/funcom_test/13513176.txt deleted file mode 100644 index b890c0df77b00b6a6201fba0196df27c42dc21bd..0000000000000000000000000000000000000000 --- a/funcom_test/13513176.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void startServerWithGUI(String project){ - if(jel==null) jel = new JmxExtLauncher(); - try{ - if(project!=null && !project.equals("")) - jel.setProjectLoc(new File(project).toURI()); - jel.launchProjectWithGUI(); - }catch (Exception e){e.printStackTrace();} - } - COM: <s> starts protege with a gui and with a project at the </s> - diff --git a/funcom_test/13513196.txt b/funcom_test/13513196.txt deleted file mode 100644 index a0500fc74b0f6dd044c555c42c58b2a7337be196..0000000000000000000000000000000000000000 --- a/funcom_test/13513196.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void startServerWithoutGUI(String project){ - if(jel==null) jel = new JmxExtLauncher(); - try{ - if(project!=null && !project.equals("")) - jel.setProjectLoc(new File(project).toURI()); - jel.launchProjectNoGUI(); - }catch (Exception e){e.printStackTrace();} - } - COM: <s> starts protege without a gui and with a project at the </s> - diff --git a/funcom_test/13513213.txt b/funcom_test/13513213.txt deleted file mode 100644 index 2642755f861faf6b0cbc0f43d14137a4844dcbf8..0000000000000000000000000000000000000000 --- a/funcom_test/13513213.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void startServerWithControllerGUI(String project){ - if(jel==null) jel = new JmxExtLauncher(); - try{ - if(project!=null && !project.equals("")) - jel.setProjectLoc(new File(project).toURI()); - jel.launchProjectWithControllerGUI(); - }catch (Exception e){e.printStackTrace();} - } - COM: <s> starts protege without a gui but with a basic jmx controller </s> - diff --git a/funcom_test/13514944.txt b/funcom_test/13514944.txt deleted file mode 100644 index dc605c3b13bd3b015cc5639a606aa59ba92e8956..0000000000000000000000000000000000000000 --- a/funcom_test/13514944.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private boolean saveProject(Project p) { - Collection<String> errors = new ArrayList<String>(); - try{ - p.save(errors); - return true; - }catch(Exception e) {e.printStackTrace();} - if (errors !=null) { - handleErrors(errors); - return false; - } - return false; - } - COM: <s> saves any modifications to the supplied project </s> - diff --git a/funcom_test/13694505.txt b/funcom_test/13694505.txt deleted file mode 100644 index edb77758d4e6fac9ded956df62fa4ac01c17e997..0000000000000000000000000000000000000000 --- a/funcom_test/13694505.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("PersonInfo".equals(portName)) { - setPersonInfoEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/13718198.txt b/funcom_test/13718198.txt deleted file mode 100644 index abdf8328e51a6ed58366cb16ab86d403c3ce961a..0000000000000000000000000000000000000000 --- a/funcom_test/13718198.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void takeSnapshot(SnapshottableMemory memory) { - Validate.notNull(this.snapshotFile, "snapshot file not set"); - - try { - this.basicTakeSnapshot(memory); - } - catch (IOException exc) { - throw new SnapshotException("failed to create snapshot (file=" + this.snapshotFile + ")", exc); - } - } - COM: <s> save the contents of a </s> - diff --git a/funcom_test/13718200.txt b/funcom_test/13718200.txt deleted file mode 100644 index f94f6605baf206944fd5f5b2dcbf397c4ed05a80..0000000000000000000000000000000000000000 --- a/funcom_test/13718200.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void restoreFromSnapshot(SnapshottableMemory memory) { - Validate.notNull(this.snapshotFile, "snapshotFile not set"); - - if (!this.snapshotFile.exists()) { - return; - } - - try { - this.basicRestoreFromSnapshot(memory); - } - catch (Exception exc) { - throw new SnapshotException("failed to restore contents of snapshot file " + this.snapshotFile, exc); - } - } - COM: <s> restore the contents of </s> - diff --git a/funcom_test/13718247.txt b/funcom_test/13718247.txt deleted file mode 100644 index ea918270846179d3377052abc8f567f24a9ad7d0..0000000000000000000000000000000000000000 --- a/funcom_test/13718247.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void snapshot() { - if (this.snapshotter == null) { - throw new IllegalStateException("no Snapshotter defined for this memory"); - } - - this.checkLocked(); - this.lock(); - - try { - this.snapshotter.takeSnapshot(this.memory); - this.logFile.reset(); - } - finally { - this.unlock(); - } - } - COM: <s> store a snapshot of the memorys current state and reset the </s> - diff --git a/funcom_test/13858327.txt b/funcom_test/13858327.txt deleted file mode 100644 index 029daeb5ab9d623591bb151ebf6519b4a31e7aaf..0000000000000000000000000000000000000000 --- a/funcom_test/13858327.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private IWizardModel createModel(String string) { - IWizardModel ret = null; - try { - ret = (IWizardModel) Class.forName(string).newInstance(); - } catch (InstantiationException e) { - } catch (IllegalAccessException e) { - } catch (ClassNotFoundException e) { - } - return ret; - } - COM: <s> method create model </s> - diff --git a/funcom_test/13858338.txt b/funcom_test/13858338.txt deleted file mode 100644 index f7fff8fce0a7acd72b60ab3663460b29a4b21a52..0000000000000000000000000000000000000000 --- a/funcom_test/13858338.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setEnabled(IForm form, FormContext ctx, String script, boolean enabled) { - Command com = getCommand(form, ctx, script); - if (com == null) { - throw new RuntimeException( - "Command not found for script '" + script + "'"); - } - com.setEnabled(enabled); - } - COM: <s> enable or disable a given command </s> - diff --git a/funcom_test/13858367.txt b/funcom_test/13858367.txt deleted file mode 100644 index 5ff34d4a730f5bf21729c872f730a79295f03c84..0000000000000000000000000000000000000000 --- a/funcom_test/13858367.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void handleError(IFormComponent parent, Throwable t) { - String message = "An (un)expected error occured. Sorry for the inconvenience.\n" - + "Please report the following text at \"mehdi.rande@tanaephis.net\":\n\n" - // + StringFunctions.getExceptionTraceText(t); - + t.getMessage() + "\n"; - StackTraceElement[] stack = t.getStackTrace(); - for (int i = 0; i < stack.length; i++) - message += stack[i].toString() + "\n"; - handleError(parent, message); - } - COM: <s> global error reporting facility </s> - diff --git a/funcom_test/13858401.txt b/funcom_test/13858401.txt deleted file mode 100644 index 91681534f1193a47d2c0d4792fcaa4e7b3e869da..0000000000000000000000000000000000000000 --- a/funcom_test/13858401.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addLoader(String formVariable, ILoader loader) { - ArrayList al = (ArrayList) loaderMap.get(formVariable); - if (al == null) { - al = new ArrayList(1); - loaderMap.put(formVariable, al); - log.debug("Loader added for " + formVariable); - BeanUtils.addPropertyChangeListener(ctx, formVariable, this); - } - - al.add(loader); - } - COM: <s> add an iloader used to load a specific form variable </s> - diff --git a/funcom_test/13858403.txt b/funcom_test/13858403.txt deleted file mode 100644 index b93e183539f9617ed896820372736ac80520742a..0000000000000000000000000000000000000000 --- a/funcom_test/13858403.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void run() { - - Callable function = new Callable() { - public Object call() throws Exception { - return construct(); - } - }; - - Runnable doFinished = new Runnable() { - public void run() { - finished(); - } - }; - - /* Convert to TimedCallable if timeout is specified. */ - long msecs = getTimeout(); - if (msecs != 0) { - function = new TimedCallable(function, msecs); - } - - setter(function).run(); - ToolkitManager.getToolkit().asyncExec(doFinished); - } - COM: <s> calls the code construct code method to compute the result and then </s> - diff --git a/funcom_test/13858490.txt b/funcom_test/13858490.txt deleted file mode 100644 index 889ad546dc48aaf8652efe226da8e8a1c3ee7c7f..0000000000000000000000000000000000000000 --- a/funcom_test/13858490.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void instanceSelected(DbInstance dbi) { - if (dbi == null) { - log.warn("Selecting null instance ????"); - return; - } - int oldState = DbState.NO_INSTANCE_SELECTED_STATE; - if (current != null) { - current.getInformations().removePropertyChangeListener("state", - this); - oldState = current.getInformations().getState(); - } - - current = dbi; - current.getInformations().addPropertyChangeListener("state", this); - setCommandState(oldState, dbi.getInformations().getState()); - } - COM: <s> when the instance selected in the dbi list changes the controller will </s> - diff --git a/funcom_test/13858543.txt b/funcom_test/13858543.txt deleted file mode 100644 index cad5391c787a3b1a86184f2a0978ee214b4d00db..0000000000000000000000000000000000000000 --- a/funcom_test/13858543.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected ArrayList parseMediumList(String mediumList, int backupType) { - ArrayList ret = new ArrayList(); - String lines[] = mediumList.split("\n"); - for (int i = 0; i < lines.length; i++) { - BackupMedium medium = parseLine(lines[i]); - if ((backupType & medium.getBackupType()) == medium.getBackupType()) { - ret.add(medium); - } - } - return ret; - } - COM: <s> creates a list of </s> - diff --git a/funcom_test/13858548.txt b/funcom_test/13858548.txt deleted file mode 100644 index f18664e1a99481916fa8c208cf7a34cacb750032..0000000000000000000000000000000000000000 --- a/funcom_test/13858548.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean isAutologEnabled(DbInstance dbi) { - boolean ret = false; - try { - DBM dbm = dbi.getPlainDbmConnection(); - String aLog = dbm.cmd("autolog_show"); - dbm.release(); - if (aLog.endsWith("ON")) { - ret = true; - } - } catch (Exception e) { - } - return ret; - } - COM: <s> method is autolog enabled </s> - diff --git a/funcom_test/14007741.txt b/funcom_test/14007741.txt deleted file mode 100644 index 9782abbf137fff88fa6a5114768e6ec6d55e85c8..0000000000000000000000000000000000000000 --- a/funcom_test/14007741.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public String getUserType(){ - String role = ""; - try{ - String query = "SELECT membershipID FROM users WHERE email='" +email+ "'"; - ResultSet rs = DBManager.FillResultSet(query); - if(rs.next()){ - int type = rs.getInt("membershipID"); - if(type == 0){ - role = "admin"; - }else if(type == 1){ - role = "gold"; - }else if(type == 2){ - role = "platinum"; - } - } - DBManager.close(rs); - }catch(SQLException e){ - System.out.println("getUserType: " + e); - } - return role; - } - COM: <s> gets the type of user </s> - diff --git a/funcom_test/14007742.txt b/funcom_test/14007742.txt deleted file mode 100644 index 328db6f73dba46d2f5f232cad24f306844be3a4e..0000000000000000000000000000000000000000 --- a/funcom_test/14007742.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean enqueueFilm(int filmID, int usersID){ - boolean enqueued = true; - try{ - String query = "INSERT INTO wishlist( filmID, usersID ) VALUES ( " + filmID + ", " + usersID + ")"; - Statement st = DBManager.GetStatement(); - st.executeUpdate(query); - DBManager.close(st); - }catch(SQLException e){ - enqueued = false; - System.out.println("enqueueFilm: " + e); - } - return enqueued; - } - COM: <s> enqueue the given film for the given user </s> - diff --git a/funcom_test/14007744.txt b/funcom_test/14007744.txt deleted file mode 100644 index 76077a8f9f0f515fdfd25ff6e26e8c92da01d5cb..0000000000000000000000000000000000000000 --- a/funcom_test/14007744.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean dequeueFilm(int filmID, int usersID){ - boolean dequeued = true; - try{ - String query = "DELETE FROM wishlist WHERE filmID='" + filmID + "' AND usersID='" + usersID + "'"; - Statement st = DBManager.GetStatement(); - st.executeUpdate(query); - DBManager.close(st); - }catch(SQLException e){ - dequeued = false; - System.out.println("enqueueFilm: " + e); - } - return dequeued; - } - COM: <s> dequeue the given film for the given user </s> - diff --git a/funcom_test/14007748.txt b/funcom_test/14007748.txt deleted file mode 100644 index 24aef68c87d2cac4f3cb22a16dcd70b06cf13f0f..0000000000000000000000000000000000000000 --- a/funcom_test/14007748.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public ResultSet getFilmsQueued(int usersID){ - ResultSet rs = null; - try{ - String query = "SELECT f.* FROM (wishlist w INNER JOIN film f ON w.filmID = f.id) WHERE w.usersID ='" + usersID + "'"; - rs = DBManager.FillResultSet(query); - }catch(Exception e){ - System.out.println("getFilmsQueued" + e); - } - return rs; - } - COM: <s> returns a list of the films queued for the given user </s> - diff --git a/funcom_test/14007870.txt b/funcom_test/14007870.txt deleted file mode 100644 index d84595cde98bbc120154b5803c3b9e8d2ea8b4ab..0000000000000000000000000000000000000000 --- a/funcom_test/14007870.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getLastPersonID() { - String result = ""; - try{ - String query = "SELECT * FROM PERSON ORDER BY ID DESC"; - // SELECT ROLE.NAME FROM PERSON,PERSON_ROLE,ROLE WHERE PERSON.ID=0 AND PERSON.ID=PERSON_ROLE.ID AND PERSON_ROLE.ID = ROLE.ID"; - ResultSet rs = DBManager.FillResultSet(query); - if ( rs.next() ) { - result = rs.getString("ID"); - } - }catch(SQLException e){ - System.out.println("" + e); - } - return result; - } - COM: <s> to be used in conjunction with adding a new person </s> - diff --git a/funcom_test/14008204.txt b/funcom_test/14008204.txt deleted file mode 100644 index f034cd21e77a10364353f2caf696562dbb6dc38b..0000000000000000000000000000000000000000 --- a/funcom_test/14008204.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String addFilmPerson(String filmID, String personID) { - String msg = ""; - try { - String prID = this.getPRID(personID); - String query = "INSERT INTO pr_film( prID, filmID ) VALUES ( " + prID + ", " + filmID + " )"; - Statement st = DBManager.GetStatement(); - st.executeUpdate(query); - DBManager.close(st); - msg = "SUCCESS: Film-Performer/Director assigned"; - }catch(SQLException e){ - msg = "ERROR: Assigning film-performer/director failed"; - } - return msg; - } - COM: <s> add the relation between film and person </s> - diff --git a/funcom_test/14008223.txt b/funcom_test/14008223.txt deleted file mode 100644 index 1266a45d6d0fd53a9dab3e96d4f043d2ea434e75..0000000000000000000000000000000000000000 --- a/funcom_test/14008223.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String addFilmAward(String filmID, String awardID) { - String msg = ""; - try { - String query = "INSERT INTO film_award( filmID, awardID ) VALUES ( " + filmID + ", " + awardID + " )"; - Statement st = DBManager.GetStatement(); - st.executeUpdate(query); - DBManager.close(st); - msg = "SUCCESS: Film-Award assigned"; - }catch(SQLException e){ - msg = "ERROR: Assigning film-award failed"; - } - return msg; - } - COM: <s> add the relation between film and award </s> - diff --git a/funcom_test/14008242.txt b/funcom_test/14008242.txt deleted file mode 100644 index 53b59e11ddc6c7267c49e0c706930df843d52ca7..0000000000000000000000000000000000000000 --- a/funcom_test/14008242.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String addPersonAward(String personID, String awardID) { - String msg = ""; - try { - String query = "INSERT INTO award_person( awardID, personID ) VALUES ( " + awardID + ", " + personID + " )"; - Statement st = DBManager.GetStatement(); - st.executeUpdate(query); - DBManager.close(st); - msg = "SUCCESS: Person-Award assigned"; - }catch(SQLException e){ - msg = "ERROR: Assigning Performer/Director-award failed"; - } - return msg; - } - COM: <s> add the relation between award and person </s> - diff --git a/funcom_test/14087326.txt b/funcom_test/14087326.txt deleted file mode 100644 index d9d7a15649789b16671964301191115178fc31e6..0000000000000000000000000000000000000000 --- a/funcom_test/14087326.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void caseANewStructurePrimaryNoNewArray(ANewStructurePrimaryNoNewArray node) { - structStack.push(new HashMap(13)); - if(node.getStructVars() != null) { - node.getStructVars().apply(this); - } - Map map = (Map) structStack.pop(); - IStruct struct = alg.createStruct(map); - values.setStructValue(node, struct); - } - COM: <s> primary no new array new structure struct l paren struct vars r paren </s> - diff --git a/funcom_test/14087407.txt b/funcom_test/14087407.txt deleted file mode 100644 index cf32df68430e4ea1e153aa0bee5a6ac2afdbb443..0000000000000000000000000000000000000000 --- a/funcom_test/14087407.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void caseASingleRows(ASingleRows node) { - if (node.getRow() != null) { - Hashtable m = (Hashtable) matrixStack.pop(); - int rows = ((Integer) m.get(ROWS)).intValue(); - m.put(ROWS, new Integer(rows + 1)); - m.put(COLS, new Integer(0)); - matrixStack.push(m); - node.getRow().apply(this); - } - } - COM: <s> rows single row multiple rows semicolon row </s> - diff --git a/funcom_test/14088780.txt b/funcom_test/14088780.txt deleted file mode 100644 index 888ea236c66abe722902ea2c3645e889b0c3717a..0000000000000000000000000000000000000000 --- a/funcom_test/14088780.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void init() throws ServletException { - - // Process our servlet initialization parameters - try { - debug = Integer.parseInt(getServletConfig().getInitParameter(Constants.DEBUG)); - } catch (Throwable t) { - debug = 0; - } - if (debug >= 1) { - log("Initializing servlet"); - } - - // Load our database from persistent storage - try { - load(); - } catch (Exception e) { - log("Database load exception", e); - throw new UnavailableException - ("Cannot load database '" + Constants.DBNAME + "'"); - } - - } - COM: <s> initialize this servlet including loading our initial database from </s> - diff --git a/funcom_test/1412807.txt b/funcom_test/1412807.txt deleted file mode 100644 index 5c84b9301c68ae1336c657f24805368cc89cc80e..0000000000000000000000000000000000000000 --- a/funcom_test/1412807.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String capitalizeString(String s) { - String result = ""; - - for(int i = 0; i < s.length(); i++) { - if(i == 0 || s.substring(i-1, i).equals(" ")) - result += s.substring(i, i + 1).toUpperCase(); - else - result += s.substring(i, i + 1); - - } - - return result; - } - COM: <s> capitalizes the first letter of each word </s> - diff --git a/funcom_test/1412818.txt b/funcom_test/1412818.txt deleted file mode 100644 index b300c9873d356039457176e0c6aef5da306103ea..0000000000000000000000000000000000000000 --- a/funcom_test/1412818.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setPoolToFramework(PowerData framework) { - HashSet<String> set = new HashSet<String>(); - set.add(framework.getDefaultPool()); - Listener.getInstance().selectPools(set); - - user_interface.clearPoolButtons(); - user_interface.setPool(framework.getDefaultPool()); - } - COM: <s> change the power pool according to the chosen framework </s> - diff --git a/funcom_test/1412880.txt b/funcom_test/1412880.txt deleted file mode 100644 index c1ed62aa17afafaec215fbd8f53d6f73d2c19d34..0000000000000000000000000000000000000000 --- a/funcom_test/1412880.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void clearPoolFilter(String filter_type) { - HashSet<String> filter = filters.get(filter_type); - HashSet<String> new_filter = (HashSet<String>)filter.clone(); - for(String s : filter) { - if(s.startsWith("pool:")) - new_filter.remove(s); - } - filters.put(filter_type, new_filter); - } - COM: <s> removes all pool filters </s> - diff --git a/funcom_test/1412903.txt b/funcom_test/1412903.txt deleted file mode 100644 index 68bd903ab12f8ad128bf5c3e4f803b0628db6bfc..0000000000000000000000000000000000000000 --- a/funcom_test/1412903.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setChanged(boolean c) { - changed = c; - if(c) { - Main.getInstance().save_menu.setEnabled(true); - setTopText(sys_link.translate("ctrl_s"), 0); - } else - Main.getInstance().save_menu.setEnabled(false); - } - COM: <s> the build changed mark it </s> - diff --git a/funcom_test/1412914.txt b/funcom_test/1412914.txt deleted file mode 100644 index c396b51c1a60805f6e0ea9368ede139c23eae27b..0000000000000000000000000000000000000000 --- a/funcom_test/1412914.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void extendFilter(String filter_type, HashSet<String> filter_values) { - HashSet<String> filter = filters.get(filter_type); - for(String s : filter_values) { - if(!filter.contains(s)) - filter.add(s); - else - filter.remove(s); - } - } - COM: <s> adds a new argument to the filter </s> - diff --git a/funcom_test/1413050.txt b/funcom_test/1413050.txt deleted file mode 100644 index a8feda6f76b7d12738ff8ffec8c95ee3e67c51cf..0000000000000000000000000000000000000000 --- a/funcom_test/1413050.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void updateLanguage(Node xml_power) { - for(PowerListItem item : gui_elements) { - xml = xml_power; - - attributes = xml_power.getAttributes(); - name = attributes.getNamedItem("name").getNodeValue(); - item.setName(name); - - //force effects to be reloaded on next use - effects = null; - } - } - COM: <s> update anything that contains translatable text </s> - diff --git a/funcom_test/14187858.txt b/funcom_test/14187858.txt deleted file mode 100644 index 12ecb0f55e59070253cb1ec2f71ac962b737914d..0000000000000000000000000000000000000000 --- a/funcom_test/14187858.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public long getDataRegionSize() { - return ((long)this.volume.getNumberOfSectors() - - ((long)this.volume.getReservedSectors() + - (long)(this.volume.getFATCopies() * this.volume.getSectorsPerFAT()) + - (long)this.volume.getRootDirSizeInSectors())); - } - COM: <s> returns the size of the data region measured in sectors </s> - diff --git a/funcom_test/14187863.txt b/funcom_test/14187863.txt deleted file mode 100644 index 14a25a31880619e7f4868399f4de017bbf3fe6e8..0000000000000000000000000000000000000000 --- a/funcom_test/14187863.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int getNextCluster(int cluster) { - int nextCluster = 0xffff; - try { - nextCluster = ((int[])(this.fat.get(0)))[cluster]; - if (nextCluster >= 0xfff8) { - nextCluster = 0xffff; - } - } catch (Exception e) { - System.err.println("Cluster after " + Integer.toHexString(cluster) + " is out of range (" + - Integer.toHexString(this.volume.getNumberOfClusters()) + ") - the FAT table is " + - Integer.toHexString(((int[])this.fat.get(0)).length)); - } - return (nextCluster); - } - COM: <s> returns the next cluster within a file </s> - diff --git a/funcom_test/1420680.txt b/funcom_test/1420680.txt deleted file mode 100644 index 7e3484962ab218c12435d70b71c9f9e1bcf59080..0000000000000000000000000000000000000000 --- a/funcom_test/1420680.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public FormValidation doCheckName(@QueryParameter String value) throws IOException, ServletException { - if(value.length()==0) - return FormValidation.error("Please set a name"); - if(value.length()<4) - return FormValidation.warning("Isn't the name too short?"); - return FormValidation.ok(); - } - COM: <s> performs on the fly validation of the form field name </s> - diff --git a/funcom_test/14346030.txt b/funcom_test/14346030.txt deleted file mode 100644 index 60f7f3b3ef3fe7f44b350237cae1f4c680049e10..0000000000000000000000000000000000000000 --- a/funcom_test/14346030.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void applyLens(JGraphPane theJGraphPane, Point2D point) { - for (int i=0;i<m_lenses.size();i++) { - Lens lens=(Lens)m_lenses.get(i); - lens.applyLens(theJGraphPane, point); - } - } - COM: <s> applies the lenses </s> - diff --git a/funcom_test/14346032.txt b/funcom_test/14346032.txt deleted file mode 100644 index f3dd2716f6bf3fe74456eb0a4be1247f35ae382b..0000000000000000000000000000000000000000 --- a/funcom_test/14346032.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void undoLens(JGraphPane theJGraphPane, Point2D point) { - for (int i=m_lenses.size()-1;i>=0;i--) { - Lens lens=(Lens)m_lenses.get(i); - lens.undoLens(theJGraphPane, point); - } - } - COM: <s> undoes the lenses </s> - diff --git a/funcom_test/14346080.txt b/funcom_test/14346080.txt deleted file mode 100644 index 75061549052b8f0793b55db5d4c53dad12b7c204..0000000000000000000000000000000000000000 --- a/funcom_test/14346080.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void fireElementsAdded(Collection nodes,Collection edges) { - EventListener[] listeners=m_listeners.getListeners(GraphListener.class); - for (int i=0;i<listeners.length;i++) - ((GraphListener)listeners[i]).elementsAdded(this,nodes,edges); - } - COM: <s> fires the elements added event </s> - diff --git a/funcom_test/14346082.txt b/funcom_test/14346082.txt deleted file mode 100644 index 7e18d82581f39c695cfbadb3b5aad77e92149913..0000000000000000000000000000000000000000 --- a/funcom_test/14346082.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void fireElementsRemoved(Collection nodes,Collection edges) { - EventListener[] listeners=m_listeners.getListeners(GraphListener.class); - for (int i=0;i<listeners.length;i++) - ((GraphListener)listeners[i]).elementsRemoved(this,nodes,edges); - } - COM: <s> fires the elements removed event </s> - diff --git a/funcom_test/14346123.txt b/funcom_test/14346123.txt deleted file mode 100644 index e0f4a462e6e139efca0105d85df38335ee880b0f..0000000000000000000000000000000000000000 --- a/funcom_test/14346123.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void applyDelta(Node node,NodeMovement nodeMovement,double dx,double dy) { - if (nodeMovement.m_justChanged) { - nodeMovement.m_dx+=dx/10; - nodeMovement.m_dy+=dy/10; - } - else { - nodeMovement.m_dx+=dx; - nodeMovement.m_dy+=dy; - } - } - COM: <s> applies a delta to a node </s> - diff --git a/funcom_test/14346899.txt b/funcom_test/14346899.txt deleted file mode 100644 index 777d951c7239371c0cae1b2c5645f005853cb001..0000000000000000000000000000000000000000 --- a/funcom_test/14346899.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void screenToGraphPoint(Point point,Point2D graphPoint) { - graphPoint.setLocation(point.x-getWidth()/2,point.y-getHeight()/2); - if (m_lens!=null) - m_lens.undoLens(this, graphPoint); - } - COM: <s> converts a given screen point into a point on the graph </s> - diff --git a/funcom_test/14346910.txt b/funcom_test/14346910.txt deleted file mode 100644 index 490f14bd1b1ad4361afcbaa7ad892ed342981397..0000000000000000000000000000000000000000 --- a/funcom_test/14346910.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Point getScreenPointForNode(Node node) { - Point point=(Point)m_nodePositions.get(node); - if (point==null) { - point=new Point(); - graphToScreenPoint(new Point2D.Double(node.getX(),node.getY()),point); - m_nodePositions.put(node,point); - } - return point; - } - COM: <s> returns the position of the node on the screen </s> - diff --git a/funcom_test/14376123.txt b/funcom_test/14376123.txt deleted file mode 100644 index 065b1d64b29785db3cfa9c6f02363fdf06b9afc8..0000000000000000000000000000000000000000 --- a/funcom_test/14376123.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected JButton getBrowseButton() { - if (browseButton == null) { - browseButton = new JButton(); - browseButton.setText("Browse & Add ..."); - browseButton.setMnemonic(KeyEvent.VK_B); - browseButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - showBrowseDialog(); - } - }); - } - return browseButton; - } - COM: <s> this method initializes browse button </s> - diff --git a/funcom_test/14376145.txt b/funcom_test/14376145.txt deleted file mode 100644 index 01a99c21abb6c7681d7e08487ed6684cde140e42..0000000000000000000000000000000000000000 --- a/funcom_test/14376145.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JList getFoundArtifactsList() { - if (foundArtifactsList == null) { - foundArtifactsList = new JList(); - foundArtifactsList.setModel(new DefaultListModel()); - foundArtifactsList - .addListSelectionListener(new javax.swing.event.ListSelectionListener() { - public void valueChanged(javax.swing.event.ListSelectionEvent e) { - doShowArtifact(); - } - }); - } - return foundArtifactsList; - } - COM: <s> this method initializes found artifacts list </s> - diff --git a/funcom_test/14376159.txt b/funcom_test/14376159.txt deleted file mode 100644 index 153e6a9f335dbd761c5113a2d03164209a9b251b..0000000000000000000000000000000000000000 --- a/funcom_test/14376159.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected JButton getSearchButton() { - if (searchButton == null) { - searchButton = new JButton(); - searchButton.setText("Search"); - searchButton.setEnabled(false); - searchButton.setMnemonic(KeyEvent.VK_S); - searchButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - doSearch(); - } - }); - } - return searchButton; - } - COM: <s> this method initializes search button </s> - diff --git a/funcom_test/14376193.txt b/funcom_test/14376193.txt deleted file mode 100644 index 541fc17328658de6cd4294679a4e605f8414f0c6..0000000000000000000000000000000000000000 --- a/funcom_test/14376193.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JPanel getStatusPanel() { - if (statusPanel == null) { - versionLabel = new JLabel(); - showVersion(); - statusLabel = new JLabel(); - statusLabel.setText("m2-repoindex"); - statusPanel = new JPanel(); - statusPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); - statusPanel.setLayout(new BorderLayout()); - statusPanel.add(statusLabel, BorderLayout.WEST); - statusPanel.add(getUpdatePanel(), BorderLayout.EAST); - } - return statusPanel; - } - COM: <s> this method initializes status panel </s> - diff --git a/funcom_test/14376226.txt b/funcom_test/14376226.txt deleted file mode 100644 index bcad5731a57deb0797c41132a07635d2022b1969..0000000000000000000000000000000000000000 --- a/funcom_test/14376226.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected void indexRepositories() { - for (Repository repository:repositories) - { - for (Artifact artifact:repository.getArtifacts()) - { - if (artifact instanceof JarArtifact) - { - String md5 = ArtifactUtils.extractMd5(((JarArtifact)artifact).getMd5()); - List<SearchResult> artifacts = md5Map.get(md5); - if (artifacts == null) - { - artifacts = new LinkedList<SearchResult>(); - md5Map.put(md5, artifacts); - } - artifacts.add(new DefaultSearchResult(artifact, repository.getRepositoryDefinition())); - } - } - } - } - COM: <s> prepares repository for faster search </s> - diff --git a/funcom_test/14376513.txt b/funcom_test/14376513.txt deleted file mode 100644 index c0e4e0d17a10b49cffe055b414247aa3471377a7..0000000000000000000000000000000000000000 --- a/funcom_test/14376513.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean deleteDir(File dir) { - if (dir.isDirectory()) { - File[] children = dir.listFiles(); - for (int i=0; i<children.length; i++) { - if (children[i].isDirectory()) - { - boolean success = deleteDir(new File(dir, children[i].getName())); - if (!success) { - return false; - } - } - else - { - boolean success = children[i].delete(); - if (!success) { - return false; - } - } - } - } - return dir.delete(); - } - COM: <s> deletes directory recursively </s> - diff --git a/funcom_test/14376570.txt b/funcom_test/14376570.txt deleted file mode 100644 index fff031142ecfeaf6cab2b08217bb868ee75d051f..0000000000000000000000000000000000000000 --- a/funcom_test/14376570.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected String extractPrefix(ITextViewer viewer, int offset) { - int i= offset; - IDocument document= viewer.getDocument(); - if (i > document.getLength()) - return ""; //$NON-NLS-1$ - - try { - while (i > 0) { - char ch= document.getChar(i - 1); - if (!Character.isJavaIdentifierPart(ch) && ch!='.' && ch!='-') - break; - i--; - } - prefix = document.get(i, offset - i); - return prefix; - } catch (BadLocationException e) { - return ""; //$NON-NLS-1$ - } - } - COM: <s> copy from the </s> - diff --git a/funcom_test/14376579.txt b/funcom_test/14376579.txt deleted file mode 100644 index 6fc330dd316882751d1e142ee28c70816a70fac4..0000000000000000000000000000000000000000 --- a/funcom_test/14376579.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ContextTypeRegistry getTemplateContextRegistry() { - if (contextTypeRegistry == null) { - ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry(); - registry.addContextType(PomTemplatesContextTypeIds.DEPENDENCIES); - registry.addContextType(PomTemplatesContextTypeIds.ARTIFACT_ID); - registry.addContextType(PomTemplatesContextTypeIds.GROUP_ID); - registry.addContextType(PomTemplatesContextTypeIds.VERSION); - contextTypeRegistry = registry; - } - return contextTypeRegistry; - } - COM: <s> returns the template context type registry </s> - diff --git a/funcom_test/14376589.txt b/funcom_test/14376589.txt deleted file mode 100644 index 9d4f3c2de144b707f10090a084afebd443a5167a..0000000000000000000000000000000000000000 --- a/funcom_test/14376589.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void createFieldEditors() { - FileSearchConfigFiledEditor fileSearchConfigFiledEditor = new FileSearchConfigFiledEditor(PreferenceConstants.FILE_SEARCH_CONFIG, "&File search configuration:", getFieldEditorParent()); - fileSearchConfigFiledEditor.setValidateStrategy(FileSearchConfigFiledEditor.VALIDATE_ON_KEY_STROKE); - addField( - fileSearchConfigFiledEditor); - addField( - new BooleanFieldEditor( - PreferenceConstants.AUTOMATIC_UPDATE, - "&Automatic updates", - getFieldEditorParent())); - - } - COM: <s> creates the field editors </s> - diff --git a/funcom_test/14466709.txt b/funcom_test/14466709.txt deleted file mode 100644 index 87647f2c5a621e846768179a9f3bcb434d237662..0000000000000000000000000000000000000000 --- a/funcom_test/14466709.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean contains(double x, double y) { - if (numTypes < 2) { - return false; - } - int cross = Curve.crossingsForPath(getPathIterator(null), x, y); - if (windingRule == PathIterator.WIND_NON_ZERO) { - return(cross != 0); - } else { - return((cross & 1) != 0); - } - } - COM: <s> tests if the specified coordinates are inside the boundary of </s> - diff --git a/funcom_test/14466713.txt b/funcom_test/14466713.txt deleted file mode 100644 index 5de112e5c846e48a873074bb3306d4afaee58bbc..0000000000000000000000000000000000000000 --- a/funcom_test/14466713.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setWindingRule(int rule) { - if (rule != PathIterator.WIND_EVEN_ODD && rule != PathIterator.WIND_NON_ZERO) { - throw new IllegalArgumentException("winding rule must be "+ - "WIND_EVEN_ODD or "+ - "WIND_NON_ZERO"); - } - windingRule = rule; - } - COM: <s> sets the winding rule for this path to the specified value </s> - diff --git a/funcom_test/14466724.txt b/funcom_test/14466724.txt deleted file mode 100644 index 1df12d10a31c15101870a4882a3449cbc516bdd9..0000000000000000000000000000000000000000 --- a/funcom_test/14466724.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int currentSegment(float[] coords) { - int type = cloudPath.pointTypes[typeIdx]; - int numCoords = curvesize[type]; - if (numCoords > 0 && affine != null) { - affine.transform(cloudPath.pointCoords, pointIdx, - coords, 0, - numCoords / 2); - } else { - System.arraycopy(cloudPath.pointCoords, pointIdx, coords, 0, numCoords); - } - return type; - } - COM: <s> returns the coordinates and type of the current path segment in </s> - diff --git a/funcom_test/14466743.txt b/funcom_test/14466743.txt deleted file mode 100644 index f4c289aa89a3ec9776e098250462526daabf9b84..0000000000000000000000000000000000000000 --- a/funcom_test/14466743.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setStrength(int n) { - this.strength = n; - float dash[] = { 10, 5, 10, 5 }; - this.regBorderStroke = new BasicStroke(n, BasicStroke.CAP_BUTT, - BasicStroke.JOIN_MITER, 10, - dash, 0); - this.borderStroke = this.regBorderStroke; - } - COM: <s> sets the strength for the constituent overriden to get a dashed line </s> - diff --git a/funcom_test/14466744.txt b/funcom_test/14466744.txt deleted file mode 100644 index 1f409b7742b98e4a4dcde6875f881fa68cf2d01c..0000000000000000000000000000000000000000 --- a/funcom_test/14466744.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Constituent getDataNode(int index) { - int currIndex = 0; - Constituent currConstituent; - for (Iterator iter = model.nodes(); iter.hasNext();) { - currConstituent = (Constituent)iter.next(); - if (currConstituent instanceof DataNode) { - if (index == currIndex) return currConstituent; - currIndex++; - } - } - return null; - } - COM: <s> returns the index th data node in the models arraylist holding </s> - diff --git a/funcom_test/14466746.txt b/funcom_test/14466746.txt deleted file mode 100644 index a7b62c1f4831449164634197caf2d6d551a27d3d..0000000000000000000000000000000000000000 --- a/funcom_test/14466746.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isDirty() { - //check the project dirty first - if (this.dirty) return true; - //now check the models for a dirty one - for (int i=0; i < models.size(); i++) - if (((Model)models.get(i)).isDirty()) - return true; - // none of the models were dirty, so return false - return false; - } - COM: <s> determines whether or not the project is in a dirty state </s> - diff --git a/funcom_test/14466747.txt b/funcom_test/14466747.txt deleted file mode 100644 index 5c4a11aed754186554bd4a3bdb891fa410eaa3be..0000000000000000000000000000000000000000 --- a/funcom_test/14466747.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Constituent getHypothesisNode(int index) { - int currIndex = 0; - Constituent currConstituent; - for (Iterator iter = model.nodes(); iter.hasNext();) { - currConstituent = (Constituent)iter.next(); - if (currConstituent instanceof HypothesisNode) { - if (index == currIndex) return currConstituent; - currIndex++; - } - } - return null; - } - COM: <s> returns the index th hypothesis node in the models arraylist </s> - diff --git a/funcom_test/14466759.txt b/funcom_test/14466759.txt deleted file mode 100644 index 4bb1c5135ebf374e028ba16c76640b2c0051f5c2..0000000000000000000000000000000000000000 --- a/funcom_test/14466759.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void fireModelRemoved(Model m, int index) { - for (int i = 0; i < projectObservers.size(); i++) - ((ProjectObserver)projectObservers.get(i)).projectUpdate( - Project.MODEL_REMOVED, this, m, index); - } - COM: <s> used to notify the code project observers code of a model removed event </s> - diff --git a/funcom_test/14466765.txt b/funcom_test/14466765.txt deleted file mode 100644 index a9e1f6f48b691edad713e39d4a211584d36976b4..0000000000000000000000000000000000000000 --- a/funcom_test/14466765.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void paint(Graphics g, int x2, int y2) { - int x1 = this.getOrigin().getCenterX(); - int y1 = this.getOrigin().getCenterY(); - Graphics2D g2D = (Graphics2D)g; - g2D.setColor(borderColor); - g2D.setStroke(borderStroke); - g2D.drawLine(x1, y1, x2, y2); - } - COM: <s> method used to paint a relation that is being added to a model </s> - diff --git a/funcom_test/14466766.txt b/funcom_test/14466766.txt deleted file mode 100644 index 47fb4c31d9dfe592e03fa0f7ce28ad78c2a22275..0000000000000000000000000000000000000000 --- a/funcom_test/14466766.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void fireModelAdded(Model m) { - // index does not matter on this projectUpdate call - for (int i = 0; i < projectObservers.size(); i++) - ((ProjectObserver)projectObservers.get(i)).projectUpdate( - Project.MODEL_ADDED, this, m, 0); - } - COM: <s> used to notify the code project observers code of a model added event </s> - diff --git a/funcom_test/14466782.txt b/funcom_test/14466782.txt deleted file mode 100644 index dd9781155bcb82f643b414ced1891638724fcb76..0000000000000000000000000000000000000000 --- a/funcom_test/14466782.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ArrayList getRelationButtonDescriptors() { - ArrayList al = new ArrayList(); - ButtonDescriptor bd = - new ButtonDescriptor("belvedere.model.concept.ConceptualRelation", - properties.getString("CONCEPT_RELATION_IMAGE"), - properties.getString("ADD_RELATIONS")); - al.add(bd); - return al; - } - COM: <s> provides an array list of button descriptors describing the </s> - diff --git a/funcom_test/14466801.txt b/funcom_test/14466801.txt deleted file mode 100644 index 6c6325d7e4567f2e832b6a4f5284f18f40ce521a..0000000000000000000000000000000000000000 --- a/funcom_test/14466801.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public HashMap getAttributes() { - HashMap h = super.getAttributes(); - h.put(Project.XCOOR_KEY,this.getX() + ""); - h.put(Project.YCOOR_KEY,this.getY() + ""); - h.put(Project.WIDTH_KEY,this.getWidth() + ""); - return h; - } - COM: <s> used to create a code hash map code containing the attributes to be </s> - diff --git a/funcom_test/14466851.txt b/funcom_test/14466851.txt deleted file mode 100644 index bb3ec6989e27667f11e363bd2f8cf65abd60382d..0000000000000000000000000000000000000000 --- a/funcom_test/14466851.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setStrength(int n) { - this.strength = n; - // probably should point this to the same stroke or eliminate - // different stroke states but this needs to be cleaned elsewhere - // so leave it here for now - this.regBorderStroke = new BasicStroke(n); - this.borderStroke = this.regBorderStroke; - } - COM: <s> sets the strength for this code constituent code </s> - diff --git a/funcom_test/14466878.txt b/funcom_test/14466878.txt deleted file mode 100644 index 9bf19b4ecfdc84b93fdeb83558e627db84b85f3c..0000000000000000000000000000000000000000 --- a/funcom_test/14466878.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void detoggleRelationButtons(JToggleButton tb) { - JToggleButton temp; - for (int i = 0; i < addRelationButtons.size(); i++) { - temp = (JToggleButton)addRelationButtons.get(i); - if (temp != tb) temp.setSelected(false); - } - } - COM: <s> sets all but the given code jtoggle button code to its up state </s> - diff --git a/funcom_test/14466904.txt b/funcom_test/14466904.txt deleted file mode 100644 index ab0977deb57d12a8988cbe170060d738739190bd..0000000000000000000000000000000000000000 --- a/funcom_test/14466904.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setConstituentURL(Constituent c, String newURL, String oldURL) { - c.setURL(newURL); - setDirty(true); - notifyObservers(Model.CONSTITUENT_SET_URL, c, null); - addUndoableEvent(new UndoableEvent(UndoableEvent.CHANGE_URL, c, oldURL)); - setUndoMark(); - } - COM: <s> used to set the url of a constituent </s> - diff --git a/funcom_test/14466910.txt b/funcom_test/14466910.txt deleted file mode 100644 index 5859a7ad8fe16050d9f3e000b4c566d5d53fa2ca..0000000000000000000000000000000000000000 --- a/funcom_test/14466910.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setConstituentNotes(Constituent c, String newNotes, String oldNotes) { - c.setNotes(newNotes); - setDirty(true); - notifyObservers(Model.CONSTITUENT_SET_NOTES, c, null); - addUndoableEvent(new UndoableEvent(UndoableEvent.CHANGE_NOTES, c, oldNotes)); - setUndoMark(); - } - COM: <s> used to set the notes of a constituent </s> - diff --git a/funcom_test/14466916.txt b/funcom_test/14466916.txt deleted file mode 100644 index b54caba7300b19d6854a02883259a4a9127f89aa..0000000000000000000000000000000000000000 --- a/funcom_test/14466916.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setConstituentCreator(Constituent c, String newCreator, String oldCreator) { - c.setCreator(newCreator); - setDirty(true); - notifyObservers(Model.CONSTITUENT_SET_CREATOR, c, null); - addUndoableEvent(new UndoableEvent(UndoableEvent.CHANGE_CREATOR, c, oldCreator)); - setUndoMark(); - } - COM: <s> used to set the creator of a constituent </s> - diff --git a/funcom_test/14466921.txt b/funcom_test/14466921.txt deleted file mode 100644 index 95b1fcc38af6b6ae48bcbb05355a4b08fc589299..0000000000000000000000000000000000000000 --- a/funcom_test/14466921.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void mouseDragged(MouseEvent e) { - try { - ((GraphViewNode)dragObject).setX(e.getX()); - ((GraphViewNode)dragObject).setY(e.getY()); - repaint(); - } catch (Exception exc) { - // for model dragging we will eat the exception for now that - // gets thrown because we haven't set dragObject to an object that - // has coordinates - } - } - COM: <s> mouse dragged events continue to fire within the component in which the drag </s> - diff --git a/funcom_test/14466952.txt b/funcom_test/14466952.txt deleted file mode 100644 index d48c824862e19a0bef88142653246694920187cd..0000000000000000000000000000000000000000 --- a/funcom_test/14466952.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setSelection(Constituent c, Object data) { - if (this.selConstituent!=null && this.selConstituent!=c) - this.selConstituent.deselect(); - this.selConstituent = c; - if (this.selConstituent!=null) this.selConstituent.select(); - notifyObservers(Model.CONSTITUENT_SELECT,c,data); - } - COM: <s> this method is used to set the currently selected constituent </s> - diff --git a/funcom_test/14466978.txt b/funcom_test/14466978.txt deleted file mode 100644 index 14a7e706cfd7f94f4269079a8089140b1abe2595..0000000000000000000000000000000000000000 --- a/funcom_test/14466978.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public TableCellRenderer getCellRenderer(int row, int col) { - if (this.model.grayXXCell() && row > 0 && col > 0 && row == col) - return grayRenderer; - Object contents = getValueAt(row, col); - if (contents == null) { - return transparentRenderer; - } else { - return ((TableViewConstituent)contents).getCellRenderer(); - } - } - COM: <s> provides the appropriate renderer to the table </s> - diff --git a/funcom_test/14466996.txt b/funcom_test/14466996.txt deleted file mode 100644 index 72190442d1a728f3e341e35d84519ca9eda887c0..0000000000000000000000000000000000000000 --- a/funcom_test/14466996.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void insertNode(Node n) { - n.setHost(this); - this.nodes.add(n); - setDirty(true); - notifyObservers(Model.CONSTITUENT_INSERT,n,null); - addUndoableEvent(new UndoableEvent(UndoableEvent.INSERT_CONSTITUENT, n)); - setUndoMark(); - } - COM: <s> used to insert a node into this model </s> - diff --git a/funcom_test/14467016.txt b/funcom_test/14467016.txt deleted file mode 100644 index c52de7b06b6b158b09b640b098d3104537cca715..0000000000000000000000000000000000000000 --- a/funcom_test/14467016.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void syncDeleteButton() { - int selRow = table.getSelectedRow(); - int selCol = table.getSelectedColumn(); - if (selRow == -1 || selCol == -1) { - buttonDelete.setEnabled(false); - } else { - buttonDelete.setEnabled(this.table.getValueAt(selRow, selCol) != null); - } - } - COM: <s> sets the button delete enabled or disabled according to the selection in </s> - diff --git a/funcom_test/14467029.txt b/funcom_test/14467029.txt deleted file mode 100644 index 500ab61f89f2d8cbd1a6eae77df115286b21a41e..0000000000000000000000000000000000000000 --- a/funcom_test/14467029.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void deleteSelected() { - if (this.selConstituent!=null) { - // this could be consolidated into one method, removeConstituent, - // however some model types must do some extra bookeeping when removing - // Relations - if (this.selConstituent instanceof Node) { - removeNode((Node)this.selConstituent); - } else { //VisualRelation - removeRelation((Relation)this.selConstituent); - } - } - } - COM: <s> used to delete the selected constituent from the model </s> - diff --git a/funcom_test/14467042.txt b/funcom_test/14467042.txt deleted file mode 100644 index 79cb5361ffb09aa7c8f8b36655e44bedd664477f..0000000000000000000000000000000000000000 --- a/funcom_test/14467042.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean showConstituent( String GUID ) { - boolean result = false; - - Constituent c = model.getConstituent( GUID ); - if( c != null ) - { - model.setSelection( c, null ); - - // move selected object into view - gvp.makeConstituentVisible( c ); - /* - NOTE: Don't need to do anything with the table view. It already updates - based on the selection changed notification. - - tvp.makeConstituentVisible( c ); - */ - - result = true; - } - - return result; - } - COM: <s> select and show the specified constituent </s> - diff --git a/funcom_test/14467075.txt b/funcom_test/14467075.txt deleted file mode 100644 index ff494906999d4189afed5ddb5e6d0ea88ef726c0..0000000000000000000000000000000000000000 --- a/funcom_test/14467075.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean removeModel(int index, boolean forward) { - if (index < 0 || index >= this.models.size()) return false; - Model model = (Model)this.models.remove(index); - model.setHost(null); - notifyObservers(Project.MODEL_REMOVED, model, null, null, forward); - setDirty(true); - return true; - } - COM: <s> removes and returns a code model code from this project based on index </s> - diff --git a/funcom_test/14467078.txt b/funcom_test/14467078.txt deleted file mode 100644 index 87ea72173f95c97121e11c1da8355494f2e7a252..0000000000000000000000000000000000000000 --- a/funcom_test/14467078.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - switch (mode) { - case START_UP: - startUpActionPerformed(e); - break; - case ADD_MODEL: - addModelActionPerformed(e); - break; - case PROJECT_PROPERTIES: - projectPropertiesActionPerformed(e); - break; - case MODEL_PROPERTIES: - modelPropertiesActionPerformed(e); - break; - case NEW_PROJECT: - newProjectActionPerformed(e); - break; - } - } - COM: <s> event handler for the action performed event for this dialog </s> - diff --git a/funcom_test/14467080.txt b/funcom_test/14467080.txt deleted file mode 100644 index eedb998476fbafe8907874ad987d2324def33677..0000000000000000000000000000000000000000 --- a/funcom_test/14467080.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void importAction() { - try { - ModelImporter.importModel(this, this.project); - } catch (Exception e) { - JOptionPane.showMessageDialog(this, - this.properties.getString("IO_ERROR_OPEN"), - this.properties.getString("IO_ERROR"), - JOptionPane.ERROR_MESSAGE); - } - } - COM: <s> imports a models from another project or a picomap model into the current </s> - diff --git a/funcom_test/14467091.txt b/funcom_test/14467091.txt deleted file mode 100644 index 72b2a69a1f87787cc5bc7195316e3d922086d282..0000000000000000000000000000000000000000 --- a/funcom_test/14467091.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean areAdjacent(Constituent a, Constituent b) { - for (Iterator i = relations.iterator(); i.hasNext();) { - Relation r = (Relation)i.next(); - if ((r.getOrigin() == a && r.getDestination() == b) || - (r.getOrigin() == b && r.getDestination() == a)) return true; - } - return false; - } - COM: <s> returns true if constiuent a and constituent b are adjacent </s> - diff --git a/funcom_test/14467106.txt b/funcom_test/14467106.txt deleted file mode 100644 index cbf94f9e9c7b6609e0be36c2ff219c7d8165158a..0000000000000000000000000000000000000000 --- a/funcom_test/14467106.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean areDirectedAdjacent(Constituent oc, Constituent dc) { - for (Iterator i = relations.iterator(); i.hasNext();) { - Relation r = (Relation)i.next(); - if (r.getOrigin() == oc && r.getDestination() == dc) return true; - } - return false; - } - COM: <s> returns true if there exists an relation from constituent oc to </s> - diff --git a/funcom_test/14467116.txt b/funcom_test/14467116.txt deleted file mode 100644 index c0409c397ad0b39e1935c5fe3cda80753c477519..0000000000000000000000000000000000000000 --- a/funcom_test/14467116.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Relation getDirectedAdjoiningRelation(Constituent oc, Constituent dc) { - for (Iterator i = relations.iterator();i.hasNext();) { - Relation r = (Relation)i.next(); - if (r.getOrigin()==oc && r.getDestination()==dc)return r; - } - return null; - } - COM: <s> returns the the relation that goes from constituent oc to </s> - diff --git a/funcom_test/14467180.txt b/funcom_test/14467180.txt deleted file mode 100644 index f0cb54a1a1d504af995c2d9be994184f67715f8c..0000000000000000000000000000000000000000 --- a/funcom_test/14467180.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void notifyObservers(int event, Constituent c, Object data) { - for (int i = 0; i < this.modelObservers.size(); i++) { - ((ModelObserver)this.modelObservers.get(i)).modelUpdate(event, this, c, - data); - } - } - COM: <s> notifies the observers of this model of model changes </s> - diff --git a/funcom_test/14467213.txt b/funcom_test/14467213.txt deleted file mode 100644 index 4a48623d4e34c7e76acb8451e7d5b7f0621dfd14..0000000000000000000000000000000000000000 --- a/funcom_test/14467213.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void stateChanged(ChangeEvent e) { - int index = ((JTabbedPane)e.getSource()).getSelectedIndex(); - if (index == -1) { - this.propertyTable.setModel(this.emptyTableModel); - } else { - Model model = (Model)this.project.getModel(index); - Constituent selected = model.getSelection(); - loadPropertyTable(model, selected); - } - } - COM: <s> fired when the selected panel in the model panels changes </s> - diff --git a/funcom_test/14467232.txt b/funcom_test/14467232.txt deleted file mode 100644 index d09a8da2e242b107132584a6275a349981801fc7..0000000000000000000000000000000000000000 --- a/funcom_test/14467232.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void dropModel(Model droppedModel, int x, int y) { - - if (droppedModel.getClass() == this.getClass()) { - dropModelClone(droppedModel, x, y); - } else { - dropModelModify(droppedModel, x, y); - } - - } - COM: <s> adds all constituents of merging model to this code model code </s> - diff --git a/funcom_test/14467273.txt b/funcom_test/14467273.txt deleted file mode 100644 index 28e7610edf30dc3d63f6efd33b6815d145c21729..0000000000000000000000000000000000000000 --- a/funcom_test/14467273.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void removeConstituent(Constituent c, boolean forward) { - // Clear the selection - if ( c == selConstituent ) { - this.selConstituent = null; - notifyObservers(Model.CONSTITUENT_SELECT, null, null, null, null, false); - } - - // the called method takes care of the dirty work - if (c instanceof Node) { - removeNode((Node)c, forward); - } else { - removeRelation((Relation)c, forward); - } - } - COM: <s> removes a constituent from a model </s> - diff --git a/funcom_test/14467338.txt b/funcom_test/14467338.txt deleted file mode 100644 index 7a52602eacfa9693c61bf407031d6f7dd78b54e4..0000000000000000000000000000000000000000 --- a/funcom_test/14467338.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void synchToModel( Model m ) { - for( Iterator i = this.model.nodes(); i.hasNext(); ) - addGraphConstituent( (Constituent) i.next() ); - - for( Iterator i = this.model.relations(); i.hasNext(); ) - addGraphConstituent( (Constituent) i.next() ); - - } - COM: <s> synchronizes the view to an already existing model </s> - diff --git a/funcom_test/14467343.txt b/funcom_test/14467343.txt deleted file mode 100644 index 09d1aaf39ca9737d0541e9024a77251fbcc0c5d5..0000000000000000000000000000000000000000 --- a/funcom_test/14467343.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void update() { - boolean isVisible = false; - - if( gvc != null && gvc.getConstituent() != null ) { - this.url = (String) gvc.getConstituent().getAttribute( Constituent.URL_KEY ); - if( !url.equals( "" ) ) - isVisible = true; - } - - setVisible( isVisible ); - } - COM: <s> called with a attribute update is reported so the component can </s> - diff --git a/funcom_test/14467351.txt b/funcom_test/14467351.txt deleted file mode 100644 index adc95fcc1750a6a9c643f521fa7d4f14c6647d70..0000000000000000000000000000000000000000 --- a/funcom_test/14467351.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void sizeText() { - Dimension d = this.getPreferredSize(); - this.setSize( d ); - -/* - Insets insets = getParent().getInsets(); - d.height += insets.bottom + insets.top;// + url.getHeight(); - d.width+= insets.left + insets.right; - getParent().setSize( d ); -*/ - sizeNode(); - } - COM: <s> change the size based on the text </s> - diff --git a/funcom_test/14467356.txt b/funcom_test/14467356.txt deleted file mode 100644 index b3f01eb20d0d663098e511763a12cad276a8448d..0000000000000000000000000000000000000000 --- a/funcom_test/14467356.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void sizeNode() { - Dimension d = text.getSize(); - Insets insets = getInsets(); - - d.height += insets.bottom + insets.top + url.getHeight(); - d.width += insets.left + insets.right; - setSize( d ); - - url.setLocation( d.width - insets.right - url.getWidth(), d.height - insets.bottom - url.getHeight() ); - } - COM: <s> update size of node and position url </s> - diff --git a/funcom_test/14467371.txt b/funcom_test/14467371.txt deleted file mode 100644 index 89a3efc7fb58bce58bd8e94021b040d3251ea86f..0000000000000000000000000000000000000000 --- a/funcom_test/14467371.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void actionPerformed( ActionEvent e ) { - String text = chatInput.getText(); - if( text.length() > 0 ) { - this.chatLog.append( chatInput.getText() + "\n" ); - this.chatInput.setText( "" ); - - getConstituent().setAttribute( "chatLog", this.chatLog.getText(), true ); - } - } - COM: <s> responds to enter being pressed in the chat input </s> - diff --git a/funcom_test/14467406.txt b/funcom_test/14467406.txt deleted file mode 100644 index 975a639e0725b285ad210545dc60040c77f1233c..0000000000000000000000000000000000000000 --- a/funcom_test/14467406.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void makeConstituentVisible( Constituent c ) { - Dimension size = scrollPane.getSize(); - GraphViewConstituent gvc = this.pnlGraph.findConstituent( c ); - - scrollPane.getHorizontalScrollBar().setValue( gvc.getCenterX() - size.width / 2 ); - scrollPane.getVerticalScrollBar().setValue( gvc.getCenterY() - size.height / 2 ); - } - COM: <s> brings a algorithmically selected component into the visible area of the panel </s> - diff --git a/funcom_test/14467418.txt b/funcom_test/14467418.txt deleted file mode 100644 index bc969691d328d3b492d64fbb29f84979cf4d6f2c..0000000000000000000000000000000000000000 --- a/funcom_test/14467418.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setUpMrj() { - Belvedere4.mrjVersion = System.getProperty("mrj.version"); - if (Belvedere4.mrjVersion == null) return; - try { - Belvedere4.mrjMajorVersion = - Double.valueOf(Belvedere4.mrjVersion.substring(0, 3)).doubleValue(); - } catch (Exception e) { - Belvedere4.mrjMajorVersion = 0; - } - } - COM: <s> attempts to retrieve mrj version and mrj major version information on the </s> - diff --git a/funcom_test/14467423.txt b/funcom_test/14467423.txt deleted file mode 100644 index 4cdc2c344559c5f12db0c3a6d8f5d85b79619b61..0000000000000000000000000000000000000000 --- a/funcom_test/14467423.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addUndoableEvent(UndoableEvent e) { - if (this.undoOn) { - undoList.addFirst(e); - if (undoList.size() == 1) - notifyObservers(Model.UNDO_NONEMPTY, null, null, null, null, false); - } - } - COM: <s> used to add an undoable event to the undo list </s> - diff --git a/funcom_test/14467517.txt b/funcom_test/14467517.txt deleted file mode 100644 index 202f80ad7e047b62decab011acd23a7958e4315b..0000000000000000000000000000000000000000 --- a/funcom_test/14467517.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setSelection( String itemName ) { - for( int i=0; i<getItemCount(); i++ ) { - ImageIcon icon = (ImageIcon) getItemAt( i ); - if( itemName.equals( icon.getDescription() ) ) { - setSelectedIndex( i ); - break; - } - } - } - COM: <s> change the selection in the list </s> - diff --git a/funcom_test/14467528.txt b/funcom_test/14467528.txt deleted file mode 100644 index fd94227f354b6cffc75138e76a57527cbd62ed4f..0000000000000000000000000000000000000000 --- a/funcom_test/14467528.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void initialize( String filter ) { - this.allowedTypes = null; - if( filter != null && !filter.equals( "" ) ) { - - this.allowedTypes = new Vector(); - - StringTokenizer st = new StringTokenizer( filter, "," ); - while( st.hasMoreTokens() ) { - this.allowedTypes.add( st.nextToken() ); - } - } - } - COM: <s> initialize an existing filter </s> - diff --git a/funcom_test/14467533.txt b/funcom_test/14467533.txt deleted file mode 100644 index 10a5d8ee51d51a11b230bec6c874b7ba6511d28e..0000000000000000000000000000000000000000 --- a/funcom_test/14467533.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean isAllowed( ObjectClass cls ) { - if( this.allowedTypes == null ) - return true; - - for( int i=0; i<this.allowedTypes.size(); i++ ) { - if( cls.isSubClass( (String) this.allowedTypes.get( i ) ) ) - return true; - } - - return false; - } - COM: <s> tests if a type is allowed by the constraints </s> - diff --git a/funcom_test/14467557.txt b/funcom_test/14467557.txt deleted file mode 100644 index 7c9368bdb0b0c58a34738e6ee8a7cccaba12f6dc..0000000000000000000000000000000000000000 --- a/funcom_test/14467557.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getRowCount() { - if( this.constituent == null ) - return 0; - - int rowCount = 0; - Iterator i = this.constituent.getAttributes().values().iterator(); - while( i.hasNext() ) - { - BelAttribute attr = (BelAttribute) i.next(); - if( attr.isVisible() ) - rowCount++; - } - - return rowCount; - } - COM: <s> returns the number of rows to display in the table </s> - diff --git a/funcom_test/14467574.txt b/funcom_test/14467574.txt deleted file mode 100644 index 594447f3ffb720c60720d21136dd7256f166dd0c..0000000000000000000000000000000000000000 --- a/funcom_test/14467574.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public TableCellEditor getCellEditor(int row, int col) { - Object value = getValueAt( row, col ); - - if( value instanceof BelEnumerationAttribute ) { - this.enumEditor.setData( (BelEnumerationAttribute) value ); - return new DefaultCellEditor( this.enumEditor ); - } - - return super.getCellEditor(row, col); - } - COM: <s> returns the appropriate cell editor for a specific table cell </s> - diff --git a/funcom_test/14477028.txt b/funcom_test/14477028.txt deleted file mode 100644 index 47213253fb1501cfa8a07740a1c775f628576ec5..0000000000000000000000000000000000000000 --- a/funcom_test/14477028.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private String id() { - return "" + System.identityHashCode(this) + ", PK = " + - (String) ((ctx == null) ? "nullctx" - : ((ctx.getPrimaryKey() == null ? - "null" : ctx.getPrimaryKey().toString()))); - } - COM: <s> returns the primary key identifying this ejbean </s> - diff --git a/funcom_test/14477030.txt b/funcom_test/14477030.txt deleted file mode 100644 index 960ddce1b5bbbcb2d39f193c0ca2947cd44c59fd..0000000000000000000000000000000000000000 --- a/funcom_test/14477030.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void run() { - try { - for (int i = 0; i < MultiClient.numWithdrawsPerSpender; i++) { - ac.withdraw(MultiClient.amountToWithdraw); - } - } - catch (Exception e) { - System.out.println("Aborting thread " + id + ": " + - weblogic.utils.StackTraceUtils.throwable2StackTrace(e)); - } - } - COM: <s> runs a multi client big spender and makes it </s> - diff --git a/funcom_test/14477302.txt b/funcom_test/14477302.txt deleted file mode 100644 index f19c88dc18054bdd8c97efd7a02e88db0a5b732c..0000000000000000000000000000000000000000 --- a/funcom_test/14477302.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public List retrieveCategories(Document document) { - List categories = new ArrayList(); - String key = null; - - // not the most efficient implementation (loops entire library): - // - loop through all categories - // - match the document with all docs within each category - // - when matching add to current set of categories - Iterator iter = collection.keySet().iterator(); - while (iter.hasNext()) { - key = (String) iter.next(); - - if (((ArrayList) collection.get(key)).contains(document)) { - categories.add(key); - } - } - return categories; - } - COM: <s> retrieves array list of categories for a given document </s> - diff --git a/funcom_test/14477310.txt b/funcom_test/14477310.txt deleted file mode 100644 index 81655bf2efdae881741566f4cbd1a3bc2798b0fc..0000000000000000000000000000000000000000 --- a/funcom_test/14477310.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - // It is possible to concatenate strings with '+' - // toString(), invoked on an object, returns a String representing - // the object (here a Date). - return "title=" + title - + "\ncreationDate=" + creationDate.toString() - + "\nid=" + id - + "\nnumberOfPages=" + numberOfPages; - } - COM: <s> returns attributes as formatted string </s> - diff --git a/funcom_test/14477377.txt b/funcom_test/14477377.txt deleted file mode 100644 index 6b68d686df491713cae164a178ca730534197a13..0000000000000000000000000000000000000000 --- a/funcom_test/14477377.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void displayArray() { - System.out.println(); - for(int walk = 0; walk < arr.length; walk++) { - for(int step = 0; step < arr[walk].length; step++) { - System.out.print(arr[walk][step]); - } - System.out.println(); - } - System.out.println(); - } - COM: <s> print the content on stdout </s> - diff --git a/funcom_test/14477486.txt b/funcom_test/14477486.txt deleted file mode 100644 index 26f5233614431dee2725af2e86357f1e3ce8673c..0000000000000000000000000000000000000000 --- a/funcom_test/14477486.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void init() { - try { - //{socket - socket = new DatagramSocket(); - //}socket - hostAddress = InetAddress.getByName(hostName); - userData = new BufferedReader(new InputStreamReader(System.in)); - } catch (Exception excptn) { - excptn.printStackTrace(); - System.exit(-1); - } - } - COM: <s> init is a seperate method to keep </s> - diff --git a/funcom_test/14477531.txt b/funcom_test/14477531.txt deleted file mode 100644 index d3184dc84e44a358dd746d5f9a339c54d026a801..0000000000000000000000000000000000000000 --- a/funcom_test/14477531.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public void run() { - try { - String line; - - while ((line = reader.readLine()) != null) { - if (initialized) { - broadcast(userName + "> " + line); - } else { - // the handshake - userName = line; - sendOutMessage("OK"); - initialized = true; - } - } - } catch (IOException ioe) { - ioe.printStackTrace(); - } finally { - try { - reader.close(); - writer.close(); - sock.close(); - } catch (Exception ignore) { - // we did all we could - } - } - } - COM: <s> run listens for incoming messages and sends them out to all listeners </s> - diff --git a/funcom_test/14477536.txt b/funcom_test/14477536.txt deleted file mode 100644 index 5b749ad60e805c5bb0ceac0892bf497b5e3e19be..0000000000000000000000000000000000000000 --- a/funcom_test/14477536.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void go(String theUserName) { - try { - new ChatUI((MessageInputReceiver) this, theUserName); - - // shake hands - writer.println(theUserName); - writer.flush(); - // OK means init with server went well - if (reader.readLine().equals("OK")) { - initialized = true; - readChat(); - } else { - bailOut(new IOException("handshake failed")); - } - } catch (IOException ioe) { - bailOut(ioe); - } catch (Exception e) { - bailOut(e); - } - } - COM: <s> shake hands with the server </s> - diff --git a/funcom_test/14477544.txt b/funcom_test/14477544.txt deleted file mode 100644 index fbecc81c8cf4df5ddc2d0727cdc60c0aa34aff9a..0000000000000000000000000000000000000000 --- a/funcom_test/14477544.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void run() { - try { - while (true) { - if (toSendList.size() == 0) { - synchronized (toSendList) { - toSendList.wait(); - } - } else { - sendOutMessage((String) toSendList.elementAt(0)); - // keep the synchronized block (in time) as small as possible - synchronized (toSendList) { - toSendList.removeElementAt(0); - } - } - } - } catch (IOException ioe) { - ioe.printStackTrace(); - exception = ioe; - } catch (InterruptedException ignore) { - ignore.printStackTrace(); - } - } - COM: <s> this run method empties the queue </s> - diff --git a/funcom_test/14477612.txt b/funcom_test/14477612.txt deleted file mode 100644 index 215ca4acc03e81a7385eb2ce8edec7a6afd92265..0000000000000000000000000000000000000000 --- a/funcom_test/14477612.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: static public Properties loadFromFile(String fileName) throws PropertiesLoaderException { - - Properties properties = new Properties(); - - try { - properties.load(new FileInputStream(fileName)); - } - catch (FileNotFoundException e1) { - throw new PropertiesLoaderException("fileName: FileNotFoundException: "+e1); - } - catch (IOException e2) { - throw new PropertiesLoaderException("fileName: IOException: "+e2); - } - - return properties; - } - COM: <s> load a properties object from a properties file </s> - diff --git a/funcom_test/14477848.txt b/funcom_test/14477848.txt deleted file mode 100644 index fc28e868832db339af366c8bac7a70c22dea1d5a..0000000000000000000000000000000000000000 --- a/funcom_test/14477848.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void execute() throws BuildException { - System.out.println("HolyCowAntTask: course=" + courseId + " dest=" + destdir); - - args[0] = "-course"; - args[1] = courseId; - args[2] = "-o"; - args[3] = destdir; - - try { - Content2HTML.main(args); - } catch (Throwable e) { - //e.printStackTrace(); - throw new BuildException("error in Content2HTML.main() " + e, e); - } - } - COM: <s> executes the holy cow processing </s> - diff --git a/funcom_test/14624230.txt b/funcom_test/14624230.txt deleted file mode 100644 index 13b868cb8973545c9f52a15709736a75e4d1d6fc..0000000000000000000000000000000000000000 --- a/funcom_test/14624230.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testopen() { - System.out.println("open"); - org.gps.interfaces.NMEAProvider instance = null; - boolean expectedResult = true; - boolean result = instance.open(); - assertTrue(expectedResult==result); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of open method of class org </s> - diff --git a/funcom_test/14624232.txt b/funcom_test/14624232.txt deleted file mode 100644 index 8d215e1428ccc700d2ba661bf81c29063bd0a281..0000000000000000000000000000000000000000 --- a/funcom_test/14624232.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testaddNMEAEventListener() { - System.out.println("addNMEAEventListener"); - org.gps.interfaces.NMEAEventListener listener = null; - org.gps.interfaces.NMEAProvider instance = null; - instance.addNMEAEventListener(listener); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of add nmeaevent listener method of class org </s> - diff --git a/funcom_test/14624233.txt b/funcom_test/14624233.txt deleted file mode 100644 index f34fde04c14123c89df418f847ecc3b0f13136c6..0000000000000000000000000000000000000000 --- a/funcom_test/14624233.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testremoveNMEAEventListener() { - System.out.println("removeNMEAEventListener"); - org.gps.interfaces.NMEAEventListener listener = null; - org.gps.interfaces.NMEAProvider instance = null; - instance.removeNMEAEventListener(listener); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of remove nmeaevent listener method of class org </s> - diff --git a/funcom_test/14624250.txt b/funcom_test/14624250.txt deleted file mode 100644 index f178fdabaf64885a125947265720b9c37fadbac7..0000000000000000000000000000000000000000 --- a/funcom_test/14624250.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testdecodeNMEA() { - System.out.println("decodeNMEA"); - org.gps.types.NMEAEvent event = null; - org.gps.interfaces.NMEAEventListener instance = null; - instance.decodeNMEA(event); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of decode nmea method of class org </s> - diff --git a/funcom_test/14624270.txt b/funcom_test/14624270.txt deleted file mode 100644 index a80fa67f236b26ad5e199679450961ba6dd708af..0000000000000000000000000000000000000000 --- a/funcom_test/14624270.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private NMEAEvent generateRandomNMEASequence(){ - // Change 2 to the number of different generate*NMEASequence - int type = random.nextInt() % 2; - switch(type){ - case 0: - return generateGPRMCSequence(); - case 1: - return generateGPGGASequence(); - default: - return generateNullNMEASequence(); - - } - } - COM: <s> this method generates a random pseydo valid nmea sequence </s> - diff --git a/funcom_test/14624292.txt b/funcom_test/14624292.txt deleted file mode 100644 index a9de742a6df5bae85c21eecf04f5d94981e4e939..0000000000000000000000000000000000000000 --- a/funcom_test/14624292.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testtoString() { - System.out.println("toString"); - org.gps.types.NMEAEvent instance = new NMEAEvent("test"); - java.lang.String expectedResult = "test"; - java.lang.String result = instance.toString(); - assertEquals(expectedResult, result); - - } - COM: <s> test of to string method of class org </s> - diff --git a/funcom_test/14624337.txt b/funcom_test/14624337.txt deleted file mode 100644 index 81a34cd16a0e798da904ef3b65ec17020c8ea110..0000000000000000000000000000000000000000 --- a/funcom_test/14624337.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testgetVelocity() { - System.out.println("getVelocity"); - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - henson.midp.Float expectedResult = Float.ZERO; - henson.midp.Float result = instance.getVelocity(); - assertEquals(expectedResult, result); - - - } - COM: <s> test of get velocity method of class org </s> - diff --git a/funcom_test/14624341.txt b/funcom_test/14624341.txt deleted file mode 100644 index ada78d93772b81d3fc16ce2dd8d9a7c01a8a2a63..0000000000000000000000000000000000000000 --- a/funcom_test/14624341.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testsetVelocity() { - System.out.println("setVelocity"); - henson.midp.Float velocity = Float.ONE; - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - instance.setVelocity(velocity); - - assertEquals(instance.getVelocity(), Float.ONE); - - - } - COM: <s> test of set velocity method of class org </s> - diff --git a/funcom_test/14624345.txt b/funcom_test/14624345.txt deleted file mode 100644 index 2e77383921ca503868964c58fa54bdb1a1c0b3d2..0000000000000000000000000000000000000000 --- a/funcom_test/14624345.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testsetUseStatus() { - System.out.println("setUseStatus"); - int PRN = 0; - boolean status = true; - org.gps.types.GpsSatelliteArray instance = new org.gps.types.GpsSatelliteArray(); - instance.setUseStatus(PRN,status); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set use status method of class org </s> - diff --git a/funcom_test/14624347.txt b/funcom_test/14624347.txt deleted file mode 100644 index 0e2a6ac621021d8dd44b4467fa88b27ac77268bc..0000000000000000000000000000000000000000 --- a/funcom_test/14624347.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testsetUseStatusAll() { - System.out.println("setUseStatusAll"); - boolean status = true; - org.gps.types.GpsSatelliteArray instance = new org.gps.types.GpsSatelliteArray(); - instance.setUseStatusAll(status); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set use status all method of class org </s> - diff --git a/funcom_test/14624348.txt b/funcom_test/14624348.txt deleted file mode 100644 index 4ee1d7d204fdab9c2a4584a78b8da2ca227d2ec7..0000000000000000000000000000000000000000 --- a/funcom_test/14624348.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testgetHorizontalDilution() { - System.out.println("getHorizontalDilution"); - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - int expectedResult = 0; - int result = instance.getHorizontalDilution(); - assertEquals(expectedResult, result); - - - } - COM: <s> test of get horizontal dilution method of class org </s> - diff --git a/funcom_test/14624349.txt b/funcom_test/14624349.txt deleted file mode 100644 index f35bae85e17439de43ce0afe6de4a66579db2b86..0000000000000000000000000000000000000000 --- a/funcom_test/14624349.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testsetAvailableStatus() { - System.out.println("setAvailableStatus"); - int PRN = 0; - boolean status = true; - org.gps.types.GpsSatelliteArray instance = new org.gps.types.GpsSatelliteArray(); - instance.setAvailableStatus(PRN,status); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set available status method of class org </s> - diff --git a/funcom_test/14624350.txt b/funcom_test/14624350.txt deleted file mode 100644 index 41e9f0ca6bac310200b00e1eb73f00d4aafdd4a0..0000000000000000000000000000000000000000 --- a/funcom_test/14624350.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testsetAvailabeStatusAll() { - System.out.println("setAvailabeStatusAll"); - boolean status = true; - org.gps.types.GpsSatelliteArray instance = new org.gps.types.GpsSatelliteArray(); - instance.setAvailabeStatusAll(status); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set availabe status all method of class org </s> - diff --git a/funcom_test/14624351.txt b/funcom_test/14624351.txt deleted file mode 100644 index edfd5b6cf2788cec7c89e8d77376f9ef99d0b8cb..0000000000000000000000000000000000000000 --- a/funcom_test/14624351.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testsetHorizontalDilution() { - System.out.println("setHorizontalDilution"); - int horizontalDilution = 0; - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - instance.setHorizontalDilution(horizontalDilution); - - assertEquals(instance.getHorizontalDilution(), horizontalDilution); - - } - COM: <s> test of set horizontal dilution method of class org </s> - diff --git a/funcom_test/14624352.txt b/funcom_test/14624352.txt deleted file mode 100644 index a6cdc944ea39e6242961e7ee9470fb69fad47c4c..0000000000000000000000000000000000000000 --- a/funcom_test/14624352.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testadd() { - System.out.println("add"); - int index = 0; - org.gps.types.GpsSatellite element = null; - org.gps.types.GpsSatelliteArray instance = new org.gps.types.GpsSatelliteArray(); - instance.add(index,element); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of add method of class org </s> - diff --git a/funcom_test/14624353.txt b/funcom_test/14624353.txt deleted file mode 100644 index 84ccdc529fab73d81188ce8683e90eb4feb4a982..0000000000000000000000000000000000000000 --- a/funcom_test/14624353.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testgetLatitude() { - System.out.println("getLatitude"); - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - henson.midp.Float expectedResult = Float.ZERO; - henson.midp.Float result = instance.getLatitude(); - assertEquals(expectedResult, result); - - - } - COM: <s> test of get latitude method of class org </s> - diff --git a/funcom_test/14624357.txt b/funcom_test/14624357.txt deleted file mode 100644 index 7d2311cef3bb7717c17e69e0b18d7e31860d8d68..0000000000000000000000000000000000000000 --- a/funcom_test/14624357.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testsetLatitude() { - System.out.println("setLatitude"); - henson.midp.Float latitude = Float.ONE; - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - instance.setLatitude(latitude); - - assertEquals(instance.getLatitude(), Float.ONE); - - - } - COM: <s> test of set latitude method of class org </s> - diff --git a/funcom_test/14624360.txt b/funcom_test/14624360.txt deleted file mode 100644 index c54fcd1681b7adae919652f7190e1defe59848ed..0000000000000000000000000000000000000000 --- a/funcom_test/14624360.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testgetLongitude() { - System.out.println("getLongitude"); - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - henson.midp.Float expectedResult = Float.ZERO; - henson.midp.Float result = instance.getLongitude(); - assertEquals(expectedResult, result); - - - } - COM: <s> test of get longitude method of class org </s> - diff --git a/funcom_test/14624363.txt b/funcom_test/14624363.txt deleted file mode 100644 index 863b06d074da213c53492b53106689c2746e126d..0000000000000000000000000000000000000000 --- a/funcom_test/14624363.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testsetLongitude() { - System.out.println("setLongitude"); - henson.midp.Float longitude = Float.ONE; - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - instance.setLongitude(longitude); - - assertEquals(Float.ONE, instance.getLongitude()); - - - } - COM: <s> test of set longitude method of class org </s> - diff --git a/funcom_test/14624370.txt b/funcom_test/14624370.txt deleted file mode 100644 index d8c551fc4239093be04a7bac9a8d9ebfb481ed68..0000000000000000000000000000000000000000 --- a/funcom_test/14624370.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testgetCourse() { - System.out.println("getCourse"); - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - instance.setCourse(Float.ONE); - henson.midp.Float expectedResult = Float.ONE; - henson.midp.Float result = instance.getCourse(); - assertEquals(expectedResult, result); - - } - COM: <s> test of get course method of class org </s> - diff --git a/funcom_test/14624373.txt b/funcom_test/14624373.txt deleted file mode 100644 index cda594a2a115e32eaac3dff6f97a62b866656829..0000000000000000000000000000000000000000 --- a/funcom_test/14624373.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testsetCourse() { - System.out.println("setCourse"); - henson.midp.Float course = Float.ONE; - org.gps.types.GpsPosition instance = new org.gps.types.GpsPosition(); - instance.setCourse(course); - assertEquals(course, instance.getCourse()); - } - COM: <s> test of set course method of class org </s> - diff --git a/funcom_test/14624374.txt b/funcom_test/14624374.txt deleted file mode 100644 index c3274f16cff43dca8daa78618cdd0c3413e94033..0000000000000000000000000000000000000000 --- a/funcom_test/14624374.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testgetPRN() { - System.out.println("getPRN"); - org.gps.types.GpsSatellite instance = new org.gps.types.GpsSatellite(); - java.lang.String expectedResult = null; - java.lang.String result = instance.getPRN(); - assertEquals(expectedResult, result); - - - } - COM: <s> test of get prn method of class org </s> - diff --git a/funcom_test/14624376.txt b/funcom_test/14624376.txt deleted file mode 100644 index 43ce7d7aea54b66f01546cfd22ffd078649dca14..0000000000000000000000000000000000000000 --- a/funcom_test/14624376.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testsetPRN() { - System.out.println("setPRN"); - java.lang.String PRN = ""; - org.gps.types.GpsSatellite instance = new org.gps.types.GpsSatellite(); - instance.setPRN(PRN); - - java.lang.String expectedResult = ""; - assertEquals(PRN, instance.getPRN()); - - - } - COM: <s> test of set prn method of class org </s> - diff --git a/funcom_test/14624387.txt b/funcom_test/14624387.txt deleted file mode 100644 index 7c502f90c29e48a84800047f45a2130bd5c3198c..0000000000000000000000000000000000000000 --- a/funcom_test/14624387.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testsetSNR() { - System.out.println("setSNR"); - int SNR = 0; - org.gps.types.GpsSatellite instance = new org.gps.types.GpsSatellite(); - instance.setSNR(SNR); - int expectedResult = instance.getSNR(); - - assertEquals(SNR, expectedResult); - } - COM: <s> test of set snr method of class org </s> - diff --git a/funcom_test/14624389.txt b/funcom_test/14624389.txt deleted file mode 100644 index 0a007c3ca43b4d96413227f3afd0bb9b0c2f06ec..0000000000000000000000000000000000000000 --- a/funcom_test/14624389.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testisAvailable() { - System.out.println("isAvailable"); - org.gps.types.GpsSatellite instance = new org.gps.types.GpsSatellite(); - boolean expectedResult = false; - boolean result = instance.isAvailable(); - assertTrue(expectedResult==result); - - instance.setAvailable(true); - expectedResult = true; - result = instance.isAvailable(); - assertTrue(expectedResult==result); - - - } - COM: <s> test of is available method of class org </s> - diff --git a/funcom_test/14624391.txt b/funcom_test/14624391.txt deleted file mode 100644 index a5a9dffdbba0806273815eda9be0425ece1bbb1a..0000000000000000000000000000000000000000 --- a/funcom_test/14624391.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testisInUse() { - System.out.println("isInUse"); - org.gps.types.GpsSatellite instance = new org.gps.types.GpsSatellite(); - boolean expectedResult = false; - boolean result = instance.isInUse(); - assertTrue(expectedResult==result); - - instance.setInUse(true); - expectedResult = true; - result = instance.isInUse(); - assertTrue(expectedResult==result); - - } - COM: <s> test of is in use method of class org </s> - diff --git a/funcom_test/14624392.txt b/funcom_test/14624392.txt deleted file mode 100644 index a3ab26cb37764ef6e380ebb9cc4996af340cb669..0000000000000000000000000000000000000000 --- a/funcom_test/14624392.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testsetAvailable() { - System.out.println("setAvailable"); - boolean available = true; - org.gps.types.GpsSatellite instance = new org.gps.types.GpsSatellite(); - instance.setAvailable(available); - assertTrue(instance.isAvailable()); - - instance.setAvailable(false); - assertTrue(!instance.isAvailable()); - - } - COM: <s> test of set available method of class org </s> - diff --git a/funcom_test/14624394.txt b/funcom_test/14624394.txt deleted file mode 100644 index b2b7a7966ccc52460310bfe25f9208f5318acb1e..0000000000000000000000000000000000000000 --- a/funcom_test/14624394.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testsetInUse() { - System.out.println("setInUse"); - boolean inUse = true; - org.gps.types.GpsSatellite instance = new org.gps.types.GpsSatellite(); - instance.setInUse(inUse); - assertTrue(instance.isInUse()); - - instance.setInUse(false); - assertTrue(!instance.isInUse()); - - } - COM: <s> test of set in use method of class org </s> - diff --git a/funcom_test/14624435.txt b/funcom_test/14624435.txt deleted file mode 100644 index 19fba48cfa7489e54a3a42497d381507313dc42d..0000000000000000000000000000000000000000 --- a/funcom_test/14624435.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testwriteGpsPoint() throws Exception { - System.out.println("writeGpsPoint"); - org.gps.types.GpsPosition pos = null; - org.gps.GpxOutputStream instance = null; - instance.writeGpsPoint(pos); - - //TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of write gps point method of class org </s> - diff --git a/funcom_test/14641169.txt b/funcom_test/14641169.txt deleted file mode 100644 index e7ae6aedb8da0e6d8693d4fe8505e0a5aefa3c80..0000000000000000000000000000000000000000 --- a/funcom_test/14641169.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: protected Object checkValueGet(String key, Object pvalue) { - - if (pvalue instanceof HString) { - HString hstring = (HString) pvalue; - return hstring.getString(); - } - - if (pvalue instanceof HInteger) { - HInteger hint = (HInteger) pvalue; - return hint.getInt(); - } - - if (pvalue instanceof HLong) { - HLong hlong = (HLong) pvalue; - return hlong.getLong(); - } - - if (pvalue instanceof HValueSet) { - - HValueSet hValueSet = (HValueSet) pvalue; - return hValueSet.getValues(); - } - - return pvalue; - } - COM: <s> unwrap hibernate wrapper classes </s> - diff --git a/funcom_test/14641188.txt b/funcom_test/14641188.txt deleted file mode 100644 index 7cc558e58eafe7e767534f875eed6c6bf2a4c6bf..0000000000000000000000000000000000000000 --- a/funcom_test/14641188.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int hashCode() { - int result = 0; - for (Iterator iter = keyValueTuples.iterator(); iter.hasNext();) { - KeyValueTuple keyValueTuple = (KeyValueTuple) iter.next(); - - result += keyValueTuple.getKey().hashCode(); - result - += checkValueGet(keyValueTuple.getKey(), keyValueTuple.getValue()) - .hashCode(); - - } - - return result; - } - COM: <s> hashcode is calculated with hashcode of all keys and values </s> - diff --git a/funcom_test/14641346.txt b/funcom_test/14641346.txt deleted file mode 100644 index fe66b6a861336147086dc624cc47c759d909eec2..0000000000000000000000000000000000000000 --- a/funcom_test/14641346.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void createAgentJob(AgentName agentName, Date date) { - - JobDetail job = createAgentJobDetail(agentName, AGENT_JOB_GROUP_NAME); - - SimpleTrigger trigger = - new SimpleTrigger(agentName.toString(), AGENT_JOB_GROUP_NAME, date); - - QuartzSheduler.getInstance().addSheduleJob(job, trigger); - } - COM: <s> creates an agent schedule job which wakes up the agent at </s> - diff --git a/funcom_test/14641351.txt b/funcom_test/14641351.txt deleted file mode 100644 index 42bc0da035649c7ce55a76d10c9cb81907aeb153..0000000000000000000000000000000000000000 --- a/funcom_test/14641351.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void createAgentCronJob(AgentName agentName, String cronExpression) { - - JobDetail job = createAgentJobDetail(agentName, AGENT_CRON_JOB_GROUP_NAME); - - CronTrigger trigger = - new CronTrigger(agentName.toString(), AGENT_CRON_JOB_GROUP_NAME); - - try { - trigger.setCronExpression(cronExpression); - } catch (ParseException e) { - e.printStackTrace(); - } - - QuartzSheduler.getInstance().addSheduleJob(job, trigger); - - } - COM: <s> creates an agent cron job which wakes the agent periodical </s> - diff --git a/funcom_test/14641877.txt b/funcom_test/14641877.txt deleted file mode 100644 index 7501a8c7516d23726d7c05239aa8ba4b3a9d5308..0000000000000000000000000000000000000000 --- a/funcom_test/14641877.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void writeMessage(SocketAddress address, Serializable message) throws IOException { - IoSession session = getPooledSession(address); - WriteFuture writeFuture = session.write(message); - writeFuture.join(); - if (!writeFuture.isWritten()) { - throw new IOException("message could not be sent to '" + address + "'"); - } - } - COM: <s> writes an object message to remote server </s> - diff --git a/funcom_test/14641991.txt b/funcom_test/14641991.txt deleted file mode 100644 index 46d77784e583cd8b55e692c729072c95ad881c93..0000000000000000000000000000000000000000 --- a/funcom_test/14641991.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Task getNextTask() { - for (Iterator iter = this.fActiveTaskQueues.iterator(); iter.hasNext();) { - ITaskQueue taskQueue = (ITaskQueue) iter.next(); - Task task = taskQueue.getNextTask(); - if (task != null) { - return task; - } - } - - return null; - - } - COM: <s> note if you exspect to retrieve more then one task use </s> - diff --git a/funcom_test/14642021.txt b/funcom_test/14642021.txt deleted file mode 100644 index b7c286129c0a6a124c0936ad5284e0cdcf02296d..0000000000000000000000000000000000000000 --- a/funcom_test/14642021.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public IWorker getPendingWorker() { - if (this.fPendingWorker.isEmpty()) { - return null; - } - - IWorker worker = (IWorker) this.fPendingWorker.remove(0); - if ((worker.getWorkerData().getNeededTasks() - 1) > 0) { - this.fPendingWorker.add(worker); - } - return worker; - } - COM: <s> note this call removes the returned worker from list of pending workers </s> - diff --git a/funcom_test/14642620.txt b/funcom_test/14642620.txt deleted file mode 100644 index 3a0fe65dcdefdf7260950e626bc1036f09049cc4..0000000000000000000000000000000000000000 --- a/funcom_test/14642620.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testDescriptorFilter() { - DescriptorFilter filter = new DescriptorFilter(); - File[] files = this.hello.listFiles(filter); - assertEquals(1, files.length); - assertTrue(files[0].getAbsolutePath().equals(this.descriptor.getAbsolutePath())); - } - COM: <s> test the descriptor filter </s> - diff --git a/funcom_test/14642716.txt b/funcom_test/14642716.txt deleted file mode 100644 index db441c49b26fe1e84cb0a33584a495a5354cb698..0000000000000000000000000000000000000000 --- a/funcom_test/14642716.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testCacheSizeZero() { - Cache cache = new Cache(0); - for (int i = 0; i < 3; i++) { - cache.addElement(this.keys[i], this.values[i]); - assertEquals(0, cache.size()); - assertFalse(cache.contains(this.keys[i])); - } - } - COM: <s> test for caching 0 elements </s> - diff --git a/funcom_test/14642724.txt b/funcom_test/14642724.txt deleted file mode 100644 index 4b1a14d05fa261256be760188dcd0171261af143..0000000000000000000000000000000000000000 --- a/funcom_test/14642724.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void startup() throws SecurityException, IOException { - IMessageQueue messageQueue = this.fICommunication.getMessageQueue(); - MessageProcessorRegistry processorRegistry = messageQueue.getProcessorRegistry(); - processorRegistry.addMessageHandler(MESSAGE_TYPE, this); - loadSecureResources(); - this.fCredential = createNewCredential(); - } - COM: <s> add himself to the messagequeue of the peerservice </s> - diff --git a/funcom_test/14642759.txt b/funcom_test/14642759.txt deleted file mode 100644 index 84ab004003f6c4da72ecffe2a1fe90538118aa3f..0000000000000000000000000000000000000000 --- a/funcom_test/14642759.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void requestNumber() throws Exception { - CommunicationMessage request = MessageUtil.createCommunicationMessage(new Message(EMIT_NUMBER_REQUEST, - this.fPeerService.getPeerName(), null), EMIT_NUMBER_REQUEST); - this.fPeerService.sendMessage(request, PRIME_NUMBER_GROUP + ":" + this.fMasterPeerName); - } - COM: <s> starts the worker and provides the request of new numbers </s> - diff --git a/funcom_test/14642780.txt b/funcom_test/14642780.txt deleted file mode 100644 index 21cbae1a9182c56cfa0126bab0aa2bbd1a20f27b..0000000000000000000000000000000000000000 --- a/funcom_test/14642780.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void handleMessage(byte[] message) { - Message received; - try { - received = (Message) MessageUtil.createObjectFromByteArray(message); - result((PrimeCandidate) received.getContent()); - } catch (Exception e) { - LOGGER.error("could not retrieve Message", e); - } - } - COM: <s> handles the message </s> - diff --git a/funcom_test/14642855.txt b/funcom_test/14642855.txt deleted file mode 100644 index 2ba9e13259650e8b3c4bff41ca66b938e1af5ca6..0000000000000000000000000000000000000000 --- a/funcom_test/14642855.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getURL() { - StringBuffer buffer=new StringBuffer(PROTOCOL); - buffer.append("://"); - buffer.append(this.fGroupPath); - if (this.fPeerName.length() > 0) { - buffer.append(':'); - buffer.append(this.fPeerName); - } - - return buffer.toString(); - } - COM: <s> creates an weta g url </s> - diff --git a/funcom_test/14642872.txt b/funcom_test/14642872.txt deleted file mode 100644 index 4509e3610d92b8333680029f8982d743726dc983..0000000000000000000000000000000000000000 --- a/funcom_test/14642872.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void killAllClientThreads() { - synchronized (this.fClientThreads) { - Collection clients = Collections.synchronizedCollection(this.fClientThreads.values()); - synchronized (clients) { - for (Iterator iter = clients.iterator(); iter.hasNext();) { - AbstractConnectionThread clientThread = (AbstractConnectionThread) iter.next(); - clientThread.interrupt(); - } - } - } - } - COM: <s> interrupts all abstract socket handler threads which were started by this port listener </s> - diff --git a/funcom_test/14642889.txt b/funcom_test/14642889.txt deleted file mode 100644 index db4446419e14e8527c9dd4e98044d2b6ee1a00a8..0000000000000000000000000000000000000000 --- a/funcom_test/14642889.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void killAllClientThreads() { - synchronized (this.fClientThreads) { - Collection clients = Collections.synchronizedCollection(this.fClientThreads.values()); - for (Iterator iter = clients.iterator(); iter.hasNext();) { - AbstractConnectionThread clientConnection = (AbstractConnectionThread) iter.next(); - clientConnection.interrupt(); - iter.remove(); - } - } - } - COM: <s> interrupts all abstract socket handler threads which were started by this </s> - diff --git a/funcom_test/14643011.txt b/funcom_test/14643011.txt deleted file mode 100644 index 09ba5c8f6c5a12c1a668fb5615e1df0126847026..0000000000000000000000000000000000000000 --- a/funcom_test/14643011.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void sendMessage(Message message, String url) throws IOException { - try { - sendMessage(message, url, false); - } catch (InterruptedException e) { - // should not happen - if (fLogger.isErrorEnabled()) { - fLogger.error("unexpected interrupt"); - } - } - } - COM: <s> sends a message any serializable object to a peer or a whole peer </s> - diff --git a/funcom_test/14643052.txt b/funcom_test/14643052.txt deleted file mode 100644 index eaac9bc79760b750238bf2373399636471655d40..0000000000000000000000000000000000000000 --- a/funcom_test/14643052.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testSetInterfaceAddress() throws Exception { - this.peerService1.setTcpIntfAddr("192.168.200.55"); - this.peerService1.setTcpIntfAddr("127.0.0.23"); - - this.peerService1.setTcpServerEnable(true); - this.peerService1.setRendezvous(true); - this.peerService1.startup(); - } - COM: <s> seems that if address is not fetchable the gui configurator will popup </s> - diff --git a/funcom_test/14643077.txt b/funcom_test/14643077.txt deleted file mode 100644 index df2357567c0179b0f7de22eaa73b66a4dc884ca6..0000000000000000000000000000000000000000 --- a/funcom_test/14643077.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean removeRemoteRepository(String peerName) throws Exception { - for (Iterator iter = this.fRepositoryFaces.iterator(); iter.hasNext();) { - RemoteRepositoryFace repositoryFace = (RemoteRepositoryFace) iter - .next(); - if (repositoryFace.getRepositoryPeerName().equals(peerName)) { - this.fDeploymentManager.getScanner().removeResourceRepository( - repositoryFace); - iter.remove(); - return true; - } - } - return false; - } - COM: <s> removes a remote repository from the local scanner </s> - diff --git a/funcom_test/14643087.txt b/funcom_test/14643087.txt deleted file mode 100644 index 1afcea67b02c52c607b93385e4addee06608b391..0000000000000000000000000000000000000000 --- a/funcom_test/14643087.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected String idToName(String id) { - String name = (String) this.fPeerNamesById.get(id); - if (name == null) { - loadPeerName(id); - name = (String) this.fPeerNamesById.get(id); - } - if (name == null) { - return "id-unresolvable"; - } - return name; - } - COM: <s> given a peerid string retrun the peername </s> - diff --git a/funcom_test/14643176.txt b/funcom_test/14643176.txt deleted file mode 100644 index 37cb809fcff22ee987f193dcf2bb454248f4233f..0000000000000000000000000000000000000000 --- a/funcom_test/14643176.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void buildDependencies(Element componentsNode) throws MalformedObjectNameException { - if ("components".equals(componentsNode.getNodeName())) { - NodeList children = componentsNode.getElementsByTagName("component"); - for (int i = 0; i < children.getLength(); i++) { - parseDescription(children.item(i)); - } - } - } - COM: <s> builds injectors if the components node contains io c handling </s> - diff --git a/funcom_test/14643193.txt b/funcom_test/14643193.txt deleted file mode 100644 index 68653c1869f9485bd50e6cd525cec975a385c831..0000000000000000000000000000000000000000 --- a/funcom_test/14643193.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void postInject() throws Exception { - if (this.fPostInjectOperation != null && !this.fPostInjectOperation.trim().equals("")) { - LOG.debug("Execute postinject operation:" + this.fPostInjectOperation); - this.fMBeanServer.invoke(this.fObjectName, this.fPostInjectOperation, null, null); - } - } - COM: <s> if the post inject op is defined this method executes the jmx based </s> - diff --git a/funcom_test/14643293.txt b/funcom_test/14643293.txt deleted file mode 100644 index 82346ae356e18bdee4c2d3e4c71daae751790e01..0000000000000000000000000000000000000000 --- a/funcom_test/14643293.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void deleteWorkCopies(Resource[] resources) { - System.gc(); - for (int i = 0; i < resources.length; i++) { - File workCopy = getWorkCopy(resources[i]); - try { - FileUtil.removeFileOrDir(workCopy); - } catch (IOException e) { - LOGGER.warn("could not remove " + workCopy.getName()); - } - } - } - COM: <s> removes all work copies of the given resources from work dir </s> - diff --git a/funcom_test/14643309.txt b/funcom_test/14643309.txt deleted file mode 100644 index 294a1d837b40c459657af58551aaf502f79fbd2c..0000000000000000000000000000000000000000 --- a/funcom_test/14643309.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void collectFileLinksRecursive(File file, ArrayList fileLinks) { - fileLinks.add(new FileLink(file.isDirectory(), file.getName(), file - .toURI(), file.lastModified(), file.length())); - if (file.isDirectory()) { - File[] files = file.listFiles(); - for (int i = 0; i < files.length; i++) { - collectFileLinksRecursive(files[i], fileLinks); - } - } - } - COM: <s> recursive loop to find all file link inside a file </s> - diff --git a/funcom_test/14643385.txt b/funcom_test/14643385.txt deleted file mode 100644 index 085dfc5fc751bfed33a74cc3496c01858462a09c..0000000000000000000000000000000000000000 --- a/funcom_test/14643385.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void startupConfiguration(ComponentArchive componentArchive) throws Exception { - Node configurationNode = componentArchive.getMx4jConfigurationNode(); - if (configurationNode != null) { - ConfigurationLoader configurationLoader = new ConfigurationLoader(this); - Reader reader = new StringReader(XMLParseUtil.transformNodeToString(configurationNode)); - configurationLoader.startup(reader); - componentArchive.setConfigurationLoader(configurationLoader); - } - } - COM: <s> executes the startup configuration that is described in the deployment </s> - diff --git a/funcom_test/14643569.txt b/funcom_test/14643569.txt deleted file mode 100644 index 20c95bd262d1d6056543b1ccb353789e9f51298e..0000000000000000000000000000000000000000 --- a/funcom_test/14643569.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ChunkMetaData getChunk(int position) { - ChunkMetaData chunkMD = null; - - for (Iterator iter = this.fChunks.iterator(); iter.hasNext();) { - ChunkMetaData element = (ChunkMetaData) iter.next(); - if (position == element.getPosition()) { - chunkMD = element; - break; - } - } - - return chunkMD; - } - COM: <s> the chunk of the given position </s> - diff --git a/funcom_test/14643586.txt b/funcom_test/14643586.txt deleted file mode 100644 index 30df939f3d5062b3beb83cbf222ae3f8c58cc311..0000000000000000000000000000000000000000 --- a/funcom_test/14643586.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private VirtualDirectory getDirectory(String path) { - VirtualDirectory result = this.fRoot; - String[] tokens = PathUtil.getPathTokens(path); - - for (int i = 0; i < tokens.length; i++) { - if (!tokens[i].equals("")) { - if (null != result) { - result = result.getDirectory(tokens[i]); - } else { - break; - } - } - } - - return result; - } - COM: <s> returns the directory to the given path </s> - diff --git a/funcom_test/14643688.txt b/funcom_test/14643688.txt deleted file mode 100644 index 888e488baea2dd219bfe6891b29679e1e2703678..0000000000000000000000000000000000000000 --- a/funcom_test/14643688.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void moveToMid() { - if (size() == 0) - return; - - Object element = this.fElements.remove(this.fActPos); - int midPos = size() / 2 + this.fActPos; - if (midPos > size()) - midPos -= size(); - this.fElements.add(midPos, element); - } - COM: <s> moves the top of this list to the middle </s> - diff --git a/funcom_test/14643784.txt b/funcom_test/14643784.txt deleted file mode 100644 index e9f691fcea487ee93fd73bd132ccd1af3820c27f..0000000000000000000000000000000000000000 --- a/funcom_test/14643784.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void writeBestTermsVector(TermVector termVector, Configuration configuration) throws IOException { - String property = configuration.getProperty("bestTermsVector"); - StorageClient client = getClient(); - client.delete(property); - ObjectOutputStream outputStream = new ObjectOutputStream(client.getOutputStream(property)); - outputStream.writeObject(termVector); - outputStream.close(); - client.close(); - } - COM: <s> writes the best terms vector to the location specified in configuration </s> - diff --git a/funcom_test/14643920.txt b/funcom_test/14643920.txt deleted file mode 100644 index e55032c743b0a9eead9b7404c78bd1410309c4e2..0000000000000000000000000000000000000000 --- a/funcom_test/14643920.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public CategoryDAO getCategory(String name) { - - if (name.indexOf(CATEGORY_NAME_DELIMITER) == -1) - return (CategoryDAO) fMainCategories.get(name); - - String displayName = name.substring(0, name.indexOf(CATEGORY_NAME_DELIMITER)); - name = name.substring(name.indexOf(CATEGORY_NAME_DELIMITER) + 1); - - CategoryDAO category = (CategoryDAO) fMainCategories.get(displayName); - category = getSubCategory(category, name); - - return category; - } - COM: <s> access to any category </s> - diff --git a/funcom_test/14644006.txt b/funcom_test/14644006.txt deleted file mode 100644 index 9b72626f50d958440e02b12cb663609ef6a84c20..0000000000000000000000000000000000000000 --- a/funcom_test/14644006.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void init() throws ServletException { - - String rootPath = getServletContext().getRealPath("/"); - xsltDir = new File(rootPath + "/WEB-INF", "xsl"); - - xsltTransformer = new XsltTransformer(xsltDir); - - try { - WetaNewsService.getInstance().init(); - } catch (WetaNewsException e) { - e.printStackTrace(); - //throw new ServletException( "Exception during initialising process of weta-news", e); - } - } - COM: <s> the servlet container calls the init method </s> - diff --git a/funcom_test/14644008.txt b/funcom_test/14644008.txt deleted file mode 100644 index 97cb4edf2903183505fa7296cc9d2d04ddc43a8f..0000000000000000000000000000000000000000 --- a/funcom_test/14644008.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setMainNaviStatus(int mainNavi) { - this.mainNaviStatus = mainNavi; - - //reset mainContent to category/categories (if a form is actual mainContent) - if (mainNavi==CATEGORIES && getActCategory() != null) - setMainContentAction(IActionKeys.SHOW_CATEGORY); - else if (mainNavi==CATEGORIES && getActCategory() == null) - setMainContentAction(IActionKeys.SHOW_CATEGORIES); - - } - COM: <s> sets the main navi action </s> - diff --git a/funcom_test/1505314.txt b/funcom_test/1505314.txt deleted file mode 100644 index 8df686a812855003b088afad9602553598a5871f..0000000000000000000000000000000000000000 --- a/funcom_test/1505314.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void sortFriendsTable(int column, SortOrder order){ - RowSorter.SortKey sortKey = new RowSorter.SortKey(column, order); - ArrayList alist = new ArrayList(1); - alist.add(sortKey); - ((DefaultRowSorter)friendsTable.getRowSorter()).setSortable(column , true); - ((DefaultRowSorter)friendsTable.getRowSorter()).setSortKeys(alist); - ((DefaultRowSorter)friendsTable.getRowSorter()).sort(); - } - COM: <s> sort the given column of friends table in the specified order </s> - diff --git a/funcom_test/1505337.txt b/funcom_test/1505337.txt deleted file mode 100644 index 0259b3a2a10734d4dc312642497818cd50ad1f71..0000000000000000000000000000000000000000 --- a/funcom_test/1505337.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean connect() { - String url = null; - try { - url = "jdbc:mysql://" + hAddr + "/" + dbName; - Class.forName("com.mysql.jdbc.Driver").newInstance(); //not supplied with JDK will have to download http://www.mysql.com/products/connector/j/ - conn = DriverManager.getConnection(url, uName, pWord); - return true; - } catch (Exception e) { - System.err.println("Connect Failed: " + url); - return false; - } - } - COM: <s> connects to a database </s> - diff --git a/funcom_test/1505340.txt b/funcom_test/1505340.txt deleted file mode 100644 index c84d785685c098565fa2cb35e59d496abb98da0c..0000000000000000000000000000000000000000 --- a/funcom_test/1505340.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean deleteRow(long uid) { - try { - Statement s = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE); - ResultSet dLoc = s.executeQuery("SELECT * FROM tblFacebook WHERE uid = " + uid); - dLoc.next(); - dLoc.deleteRow(); - dLoc.close(); - s.close(); - return true; - } catch (SQLException e) { - System.err.println("Delete UID Failed: " + uid); - return false; - } - } - COM: <s> removes a uid from the database </s> - diff --git a/funcom_test/1509152.txt b/funcom_test/1509152.txt deleted file mode 100644 index ecdf36bea9514868d115b05a40de157aa2aa912d..0000000000000000000000000000000000000000 --- a/funcom_test/1509152.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void assignNewMontage() { - clear(); - downPanel.add(Ok); -// downPanel.add(jlAssignTo); -// downPanel.add(jbM1); -// downPanel.add(jbM2); -// downPanel.add(jbM3); -// downPanel.add(jbM4); -// downPanel.add(cancelButton); - updateTexts(); - pack(); - setLocationRelativeTo(null); - setVisible(true); - } - COM: <s> display the dialog to assign a new montage to quick shortcut buttons </s> - diff --git a/funcom_test/1509255.txt b/funcom_test/1509255.txt deleted file mode 100644 index 399f50e91644c998b1f276cf0440ca114b361b1f..0000000000000000000000000000000000000000 --- a/funcom_test/1509255.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void load(jEDF.EDF.EDFFile edfFile) { - totalDuration = edfFile.getNbRecords() * edfFile.getRecordDuration(); - - montage.loadEDFFile(this, edfFile); - - setEpochDuration(edfFile.getRecordDuration()); - - getNavigationSlider().setMinimum(0); - getNavigationSlider().setValue(0); - - getNavigationSlider().setMaximum(totalDuration - 1); - - } - COM: <s> load an edf file displaying all of its signals </s> - diff --git a/funcom_test/1509261.txt b/funcom_test/1509261.txt deleted file mode 100644 index 698becfc87c73944bf2b7bfe7e64e243b97a60b2..0000000000000000000000000000000000000000 --- a/funcom_test/1509261.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void close() { - try { - cancelPlayTimer(); - hypnogram.clear(); - if (edfFile != null) { - edfFile.close(); - edfFile = null; - } - polysomnograph.clear(); - montageToolbar.clear(); - setTitle(version); - System.gc(); - } catch (UserCancelException e) { - // cancelled by user - } finally { - updatePermissions(); - repaint(); - } - - } - COM: <s> close all opened files </s> - diff --git a/funcom_test/1509311.txt b/funcom_test/1509311.txt deleted file mode 100644 index c5efad19a5e63615cca62d9cd6c0f13284709eab..0000000000000000000000000000000000000000 --- a/funcom_test/1509311.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void openEDFFile() { - JFileChooser chooser = new JFileChooser(); - - String[] extensions = {"rec", "hyp", "edf"}; - - chooser.setFileFilter(new EDFFileFilter(extensions, getLocalizedString("EDF files"))); - - int returnVal = chooser.showOpenDialog(null); - - if (returnVal == JFileChooser.APPROVE_OPTION) { - openFile(chooser.getSelectedFile()); - } - updatePermissions(); - } - COM: <s> display a file chooser dialog for the user to open an edf file </s> - diff --git a/funcom_test/1509501.txt b/funcom_test/1509501.txt deleted file mode 100644 index 5ce469590dd64106db0955501b7a0bc38705633e..0000000000000000000000000000000000000000 --- a/funcom_test/1509501.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void nextPosition() { - if (isCleared()) { - return; - } - - if (!hasFocus()) { - setFocus(true); - return; - } - - currentPosition += granularity; - - if (currentPosition >= polysomnograph.getEpochDuration() && - canBeDisplayed()) { - resetPosition(); - setFocus(false); - polysomnograph.incrementStartRecord(); - } - - positionChanged(); - } - COM: <s> move to the next score </s> - diff --git a/funcom_test/15539479.txt b/funcom_test/15539479.txt deleted file mode 100644 index fc8e4dab3a49fff931c950b15db7fabddafa31e2..0000000000000000000000000000000000000000 --- a/funcom_test/15539479.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private int bufferedRead() throws IOException { - int result; - if (bufferPosition > 0) { - bufferPosition--; - result = buffer[bufferPosition]; - } else { - result = telnetIo.read(); - } - if (trace.isDebugEnabled()) { - trace.debug("n original read: " + result); - } - return result; - } - COM: <s> read from buffer or connection if nothing is left in the buffer </s> - diff --git a/funcom_test/15539501.txt b/funcom_test/15539501.txt deleted file mode 100644 index d1caa589c4d0b05f6978bbb25be86956d5296763..0000000000000000000000000000000000000000 --- a/funcom_test/15539501.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean defineScrollRegion(int topmargin, int bottommargin) throws IOException { - if (m_Terminal.supportsScrolling()) { - m_TelnetIO.write(m_Terminal.getScrollMarginsSequence(topmargin, bottommargin)); - flush(); - return true; - } else { - return false; - } - }//defineScrollRegion - COM: <s> experimental not defined in the interface </s> - diff --git a/funcom_test/15539546.txt b/funcom_test/15539546.txt deleted file mode 100644 index 4f0c31fae6d9bb93eaa9d2056f8115e8674adac3..0000000000000000000000000000000000000000 --- a/funcom_test/15539546.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void flush() throws IOException { - //try { - m_Out.flush(); - //} catch (IOException e) { - // if (m_Connection.isActive()) { - // m_ConnectionData.getManager().registerBrokenConnection(m_Connection); - // } - //} - }//flush - COM: <s> method to flush all buffered output </s> - diff --git a/funcom_test/15539553.txt b/funcom_test/15539553.txt deleted file mode 100644 index 3881ea789cf8a95a65744de90bb0766080e7dadd..0000000000000000000000000000000000000000 --- a/funcom_test/15539553.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void closeOutput() { - - try { - //sends telnetprotocol logout acknowledgement - write(IAC); - write(DO); - write(LOGOUT); - //and now close underlying outputstream - - m_Out.close(); - } catch (IOException ex) { - log.error("closeOutput()", ex); - //handle? - } - }//close - COM: <s> method to close the underlying output stream to free system resources </s> - diff --git a/funcom_test/15539562.txt b/funcom_test/15539562.txt deleted file mode 100644 index d1fa2c5e01ae391f4ca33f758a5dca7b908cb6af..0000000000000000000000000000000000000000 --- a/funcom_test/15539562.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setTerminal(String terminalName) throws IOException { - - m_Terminal = TerminalManager.getReference().getTerminal(terminalName); - //Terminal is set we init it.... - initTerminal(); - //debug message - log.debug("Set terminal to " + m_Terminal.toString()); - }//setTerminal - COM: <s> mutator method to set the active terminal object </s> - diff --git a/funcom_test/15539594.txt b/funcom_test/15539594.txt deleted file mode 100644 index 167594b3f6e938571573b71003946698b4d71139..0000000000000000000000000000000000000000 --- a/funcom_test/15539594.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setTerminalGeometry(int width, int height) { - if (width < SMALLEST_BELIEVABLE_WIDTH) { - width = DEFAULT_WIDTH; - } - if (height < SMALLEST_BELIEVABLE_HEIGHT) { - height = DEFAULT_HEIGHT; - } - //DEBUG: write("[New Window Size " + window_width + "x" + window_height + "]"); - m_ConnectionData.setTerminalGeometry(width, height); - }//setTerminalGeometry - COM: <s> method that checks reported terminal sizes and sets the </s> - diff --git a/funcom_test/15539664.txt b/funcom_test/15539664.txt deleted file mode 100644 index b8734948d4f7243dd2b6de92307b12fec506f91d..0000000000000000000000000000000000000000 --- a/funcom_test/15539664.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private boolean parseTWO(int[] buf) { - switch (buf[0]) { - case IAC: - //doubled IAC to escape 255 is handled within the - //read method. - break; - case AYT: - IamHere(); - break; - case AO: - case IP: - case EL: - case EC: - case NOP: - break; - case BRK: - nvtBreak(); - break; - default: - return false; - } - return true; - }//parseTWO - COM: <s> method that parses for options with two characters </s> - diff --git a/funcom_test/15539678.txt b/funcom_test/15539678.txt deleted file mode 100644 index c7d74bfbbdca6153dbe78e4b906b5db38f20861e..0000000000000000000000000000000000000000 --- a/funcom_test/15539678.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void handleNAWS() throws IOException { - int width = read16int(); - if (width == 255) { - width = read16int(); //handle doubled 255 value; - } - int height = read16int(); - if (height == 255) { - height = read16int(); //handle doubled 255 value; - } - skipToSE(); - setTerminalGeometry(width, height); - }//handleNAWS - COM: <s> method that reads a naws subnegotiation that ends up with a iac se </s> - diff --git a/funcom_test/15539704.txt b/funcom_test/15539704.txt deleted file mode 100644 index d7e25cacd84a0ed1b018f69a9b680ea9fd8e516e..0000000000000000000000000000000000000000 --- a/funcom_test/15539704.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void handleLINEMODE() throws IOException { - int c = rawread(); - switch (c) { - case LM_MODE: - handleLMMode(); - break; - case LM_SLC: - handleLMSLC(); - break; - case WONT: - case WILL: - handleLMForwardMask(c); - break; - default: - //skip to (including) SE - skipToSE(); - } - }//handleLINEMODE - COM: <s> method that handles linemode subnegotiation </s> - diff --git a/funcom_test/15539952.txt b/funcom_test/15539952.txt deleted file mode 100644 index e6a2e444a9f9e2bb4b3eadb33c11c577456d5ab9..0000000000000000000000000000000000000000 --- a/funcom_test/15539952.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private boolean isEnabled(int i) { - switch (i) { - case SUPGA: - return DO_SUPGA; - case ECHO: - return DO_ECHO; - case NAWS: - return DO_NAWS; - case TTYPE: - return DO_TTYPE; - case LINEMODE: - return DO_LINEMODE; - case NEWENV: - return DO_NEWENV; - default: - return false; - } - }//isEnabled - COM: <s> method that informs internally about the status of the supported </s> - diff --git a/funcom_test/15539960.txt b/funcom_test/15539960.txt deleted file mode 100644 index 66314626faef1b27d6e48b62537a40a4764f4088..0000000000000000000000000000000000000000 --- a/funcom_test/15539960.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private boolean waitWILLreply(int i) { - switch (i) { - case SUPGA: - return WAIT_WILL_REPLY_SUPGA; - case ECHO: - return WAIT_WILL_REPLY_ECHO; - case NAWS: - return WAIT_WILL_REPLY_NAWS; - case TTYPE: - return WAIT_WILL_REPLY_TTYPE; - default: - return false; - } - }//waitWILLreply - COM: <s> method that informs internally about the will wait status </s> - diff --git a/funcom_test/15539963.txt b/funcom_test/15539963.txt deleted file mode 100644 index fc155d729011ee48a37af2e61fbfdb2a4f00b889..0000000000000000000000000000000000000000 --- a/funcom_test/15539963.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private boolean waitDOreply(int i) { - switch (i) { - case SUPGA: - return WAIT_DO_REPLY_SUPGA; - case ECHO: - return WAIT_DO_REPLY_ECHO; - case NAWS: - return WAIT_DO_REPLY_NAWS; - case TTYPE: - return WAIT_DO_REPLY_TTYPE; - case LINEMODE: - return WAIT_DO_REPLY_LINEMODE; - case NEWENV: - return WAIT_DO_REPLY_NEWENV; - default: - return false; - } - }//waitDOreply - COM: <s> method that informs internally about the do wait status </s> - diff --git a/funcom_test/15543945.txt b/funcom_test/15543945.txt deleted file mode 100644 index 45656b35b31679b8f0491ef994e64d730b0d2ca3..0000000000000000000000000000000000000000 --- a/funcom_test/15543945.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void GlobalUpdatePheromone( ) { - double d_tau; - int NumCities = Problem.NumCities; -// TRACE ( printf("global pheromone update\n"); ); - - d_tau = 1.0 / (double) TourLen; - for ( int i = 0 ; i < NumCities ; i++ ) { - int j = Tour[i]; - int h = Tour[i+1]; - Problem.Pheromone[j][h] += d_tau; - Problem.Pheromone[h][j] = Problem.Pheromone[j][h]; - } - } - COM: <s> function reinforces edges used in ant ks solution </s> - diff --git a/funcom_test/15543946.txt b/funcom_test/15543946.txt deleted file mode 100644 index 5997a9a2ddb94a9379ec064f4e596ccfd03f0350..0000000000000000000000000000000000000000 --- a/funcom_test/15543946.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void globalUpdatePheromoneWeighted( int weight ) { - double d_tau; - int NumCities = Problem.NumCities; -// TRACE ( printf("global pheromone update weighted\n"); ); - - d_tau = (double) weight / (double) TourLen; - for ( int i = 0 ; i < NumCities ; i++ ) { - int j = Tour[i]; - int h = Tour[i+1]; - Problem.Pheromone[j][h] += d_tau; - Problem.Pheromone[h][j] = Problem.Pheromone[j][h]; - } - } - COM: <s> function reinforces edges of the ants tour with weight weight </s> - diff --git a/funcom_test/15544017.txt b/funcom_test/15544017.txt deleted file mode 100644 index ff594ef1e7db31693ec1b65f7da2df3c81fbbc77..0000000000000000000000000000000000000000 --- a/funcom_test/15544017.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void ComputeTotalInformation( ) { - int i, j; - int NumCities = Problem.NumCities; -// TRACE ( printf("compute total information\n"); ); - - for ( i = 0 ; i < NumCities ; i++ ) { - for ( j = 0 ; j < i ; j++ ) { - Total[i][j] = Math.pow(Pheromone[i][j],Acotsp.ALPHA) * Math.pow(HEURISTIC(i,j),Acotsp.BETA); - Total[j][i] = Total[i][j]; - } - } - } - COM: <s> function calculates heuristic info times pheromone for each arc </s> - diff --git a/funcom_test/15544024.txt b/funcom_test/15544024.txt deleted file mode 100644 index 5dbe43b0d37d86a65434aab5625caf8f9d5b1e59..0000000000000000000000000000000000000000 --- a/funcom_test/15544024.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void Evaporation( ) { - int i, j; - int NumCities = Problem.NumCities; -// TRACE ( printf("pheromone evaporation\n"); ); - - for ( i = 0 ; i < NumCities ; i++ ) { - for ( j = 0 ; j <= i ; j++ ) { - Pheromone[i][j] = (1 - Acotsp.RHO) * Pheromone[i][j]; - Pheromone[j][i] = Pheromone[i][j]; - } - } - } - COM: <s> function implements the pheromone trail evaporation </s> - diff --git a/funcom_test/15544026.txt b/funcom_test/15544026.txt deleted file mode 100644 index 8d00b81bdeb1aafbe6a0723bfca5dac70af4ce23..0000000000000000000000000000000000000000 --- a/funcom_test/15544026.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void EvaporationNeighbours( ) { - - int i, j, help_city; - int NumCities = Problem.NumCities; -// int NearestNeighbours = instance.NearestNeighbours; -// TRACE ( printf("pheromone evaporation nn_list\n"); ); - - for ( i = 0 ; i < NumCities ; i++ ) { - for ( j = 0 ; j < NearestNeighbours ; j++ ) { - help_city = getNeighbour(i,j); - Pheromone[i][help_city] = (1 - Acotsp.RHO) * Pheromone[i][help_city]; - } - } - } - COM: <s> function simulation of the pheromone trail evaporation </s> - diff --git a/funcom_test/15544245.txt b/funcom_test/15544245.txt deleted file mode 100644 index d62d1fda1788dbbf6e89f0ef5e47e23be0a78f85..0000000000000000000000000000000000000000 --- a/funcom_test/15544245.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void usage() { - System.err - .println("Usage: java edu.gatech.resume.Main [OPTIONS] <PDF file> [Text File]\n" - + " -create Create a new index\n" - + " -index <index> Specify location of index\n" - + " -console Send text to console instead of file\n" - + " <PDF file> The PDF document to use\n" - + " [Text File] The file to write the text to\n"); - System.exit(1); - } - COM: <s> this will print the usage requirements and exit </s> - diff --git a/funcom_test/15544267.txt b/funcom_test/15544267.txt deleted file mode 100644 index fd38891fac8731b4dae4ce74e68bc8fde4307f52..0000000000000000000000000000000000000000 --- a/funcom_test/15544267.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void load(float minLong, float maxLong, float minLat, float maxLat) { - double lat = (minLat + maxLat) / 2; - double lon = (minLong + maxLong) / 2; - - mLoading = true; - new NetworkThread(lat, lon).start(); - Log.i(TAG, sInstance.toString()); - } - COM: <s> load a new set of search results for the specified area </s> - diff --git a/funcom_test/15544301.txt b/funcom_test/15544301.txt deleted file mode 100644 index 5156af576c6016c64a8a0972968295e176141f01..0000000000000000000000000000000000000000 --- a/funcom_test/15544301.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addZoomControls(FrameLayout frame) { - // Get the zoom controls and add them to the bottom of the map - View zoomControls = mMapView.getZoomControls(); - - FrameLayout.LayoutParams p = - new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, - LayoutParams.WRAP_CONTENT, Gravity.BOTTOM + Gravity.CENTER_HORIZONTAL); - frame.addView(zoomControls, p); - } - COM: <s> add zoom controls to our frame layout </s> - diff --git a/funcom_test/15544319.txt b/funcom_test/15544319.txt deleted file mode 100644 index 2097b14b17f44068e099f9acc87c470977c0298e..0000000000000000000000000000000000000000 --- a/funcom_test/15544319.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addZoomControls(FrameLayout frame) { - View zoomControls = mMapView.getZoomControls(); - - FrameLayout.LayoutParams p = - new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, - LayoutParams.WRAP_CONTENT, Gravity.BOTTOM + Gravity.CENTER_HORIZONTAL); - frame.addView(zoomControls, p); - } - COM: <s> get the zoom controls and add them to the bottom of the map </s> - diff --git a/funcom_test/15585622.txt b/funcom_test/15585622.txt deleted file mode 100644 index 48a83e3a4fbb018a1ae4991cec96f57ed6e0b80d..0000000000000000000000000000000000000000 --- a/funcom_test/15585622.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void createGui(){ - - guiManager = new GuiManager(); - guiManager.setUserActionListener(this); - - if(SIPConfig.preferredNetworkAddress.equals("")){ - AddressSelection addSel = new AddressSelection(); - } - - SIPConfig.IPAddress = SIPConfig.publicAddress = NetworkAddressManager.getLocalHost().toString().split("/")[1]; - SIPConfig.setSystemProperties(); - - guiManager.loadConfig(); - - } - COM: <s> build the gui manager </s> - diff --git a/funcom_test/15585629.txt b/funcom_test/15585629.txt deleted file mode 100644 index b935f47108ded36687dcca8d50caf232044bc538..0000000000000000000000000000000000000000 --- a/funcom_test/15585629.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void handleRegisterRequest(String u, String p, String s){ - - userName = u; - password = p; - server = s; - - try { - sipManager.startRegisterProcess(); - }catch (CommunicationsException exc) { - System.out.println("ERRO SIP: "+exc.toString()); - } - } - COM: <s> handle an register request </s> - diff --git a/funcom_test/15585639.txt b/funcom_test/15585639.txt deleted file mode 100644 index 6a7bbcead2e7919e2cbd77647a9a44edae6b1b7b..0000000000000000000000000000000000000000 --- a/funcom_test/15585639.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void callReceived(CallEvent evt){ - try { - mediaManager.start(); - Call call = evt.getSourceCall(); - Interlocutor interlocutor = new Interlocutor(); - interlocutor.setCall(call); - guiManager.addInterlocutor(interlocutor); - call.addStateChangeListener(this); - }catch(Exception e){ - - }finally { - } - } - COM: <s> fired when a call is received </s> - diff --git a/funcom_test/15585693.txt b/funcom_test/15585693.txt deleted file mode 100644 index 5851f2a833c74fdd212005eccbd66594c1beb4ac..0000000000000000000000000000000000000000 --- a/funcom_test/15585693.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void hold(String media){ - if(media.equals(CAM)){ - actionHandler.handleCam(); - return; - } - if (interlocutors.size() < 1) { - System.out.println("ERRO: NO Interlocutors"); - return; - } - int selectedRow = 0; - Interlocutor inter = (Interlocutor) interlocutors.get(selectedRow); - boolean mic=inter.onHoldMic(),cam=inter.onHoldCam(); - actionHandler.handleHold(inter,!mic,cam); - } - COM: <s> hold the current call </s> - diff --git a/funcom_test/15585699.txt b/funcom_test/15585699.txt deleted file mode 100644 index c43465d0daf8c8f604f3aa07ee2072447eff01ff..0000000000000000000000000000000000000000 --- a/funcom_test/15585699.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void hangup(){ - if (interlocutors.size() < 1) { - System.out.println("ERRO: NO Interlocutors"); - return; - } - int selectedRow = 0; - Interlocutor inter; - for(int i=0;i<interlocutors.size();i++){ - inter = (Interlocutor) interlocutors.get(selectedRow); - actionHandler.handleHangupRequest(inter); - } - } - COM: <s> hangup the current call </s> - diff --git a/funcom_test/15585711.txt b/funcom_test/15585711.txt deleted file mode 100644 index 96207a91238b90d92330c0507c81d155016e2f2f..0000000000000000000000000000000000000000 --- a/funcom_test/15585711.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void addTabToSpark(){ - Workspace workspace = SparkManager.getWorkspace(); - sparkTab = workspace.getWorkspacePane(); - ImageIcon phone = new ImageIcon(Utils.getResource("on-phone.png")); - siparkTab=sparkTab.addTab("SIPpark",phone, softPhone.guiManager.softPhonePanel); - } - COM: <s> add a soft phone tab to spark </s> - diff --git a/funcom_test/15586245.txt b/funcom_test/15586245.txt deleted file mode 100644 index 6a485063e1692ac031829836603d02878042969d..0000000000000000000000000000000000000000 --- a/funcom_test/15586245.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getSelectedValues() { - List list = new ArrayList(); - Iterator iter = valueMap.keySet().iterator(); - while (iter.hasNext()) { - JCheckBox checkbox = (JCheckBox)iter.next(); - if (checkbox.isSelected()) { - String value = (String)valueMap.get(checkbox); - list.add(value); - } - } - return list; - } - COM: <s> returns a list of selected checkbox values </s> - diff --git a/funcom_test/15637024.txt b/funcom_test/15637024.txt deleted file mode 100644 index 3b795c6b84db80342356b4072e1e7a8c660c0aae..0000000000000000000000000000000000000000 --- a/funcom_test/15637024.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JMenuItem getJMenuItem() { - if (jMenuItem == null) { - jMenuItem = new JMenuItem(); - jMenuItem.setMnemonic('c'); - jMenuItem.setText("Choose Folder..."); - jMenuItem.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - getJButton().doClick(); - } - }); - } - return jMenuItem; - } - COM: <s> this method initializes j menu item </s> - diff --git a/funcom_test/15637036.txt b/funcom_test/15637036.txt deleted file mode 100644 index b7628b8ab9ff4ba134202dd92f79baf533ee0d25..0000000000000000000000000000000000000000 --- a/funcom_test/15637036.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JMenuItem getJMenuItem1() { - if (jMenuItem1 == null) { - jMenuItem1 = new JMenuItem(); - jMenuItem1.setText("Delete Confirmed Files..."); - jMenuItem1.setMnemonic('d'); - jMenuItem1.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - getJButton2().doClick(); - } - }); - - jMenuItem1.setEnabled(false); - } - return jMenuItem1; - } - COM: <s> this method initializes j menu item1 </s> - diff --git a/funcom_test/15637070.txt b/funcom_test/15637070.txt deleted file mode 100644 index 19bb315e7ac856f99b9c396436b3c1cf0387e45f..0000000000000000000000000000000000000000 --- a/funcom_test/15637070.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JPanel getToppanel() { - if (toppanel == null) { - FlowLayout flowLayout = new FlowLayout(); - flowLayout.setAlignment(java.awt.FlowLayout.LEFT); - flowLayout.setVgap(3); - flowLayout.setHgap(2); - toppanel = new JPanel(); - toppanel.setLayout(flowLayout); - toppanel.add(getJButton(), null); - toppanel.add(getJButton1(), null); - toppanel.add(getJButton2(), null); - } - return toppanel; - } - COM: <s> this method initializes toppanel </s> - diff --git a/funcom_test/15657495.txt b/funcom_test/15657495.txt deleted file mode 100644 index 12c5498a550ce54cfc70556e54991fc84e90ade4..0000000000000000000000000000000000000000 --- a/funcom_test/15657495.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean intersects(Error s) { - int sstart = s.getStart(); - // either s's start is in this or this' start is in s - return this.contains(s) || s.contains(this) || getStart() <= sstart - && sstart < getEnd() || sstart <= getStart() && getStart() < s.getEnd(); - } - COM: <s> returns true if the specified span intersects with this span </s> - diff --git a/funcom_test/15657497.txt b/funcom_test/15657497.txt deleted file mode 100644 index 5f744b8cc10c960af8e4b9363ccaa893b89b928b..0000000000000000000000000000000000000000 --- a/funcom_test/15657497.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean crosses(Error s) { - int sstart = s.getStart(); - // either s's start is in this or this' start is in s - return !this.contains(s) - && !s.contains(this) - && (getStart() <= sstart && sstart < getEnd() || sstart <= getStart() - && getStart() < s.getEnd()); - } - COM: <s> returns true is the specified span crosses this span </s> - diff --git a/funcom_test/15657504.txt b/funcom_test/15657504.txt deleted file mode 100644 index ecfdfbd75863965dea5434a470d53e96bdf65e07..0000000000000000000000000000000000000000 --- a/funcom_test/15657504.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int compareTo(Error s) { - if (getStart() < s.getStart()) { - return -1; - } else if (getStart() == s.getStart()) { - if (getEnd() > s.getEnd()) { - return -1; - } else if (getEnd() < s.getEnd()) { - return 1; - } else { - return 0; - } - } else { - return 1; - } - } - COM: <s> compares the specified span to the current span </s> - diff --git a/funcom_test/15657509.txt b/funcom_test/15657509.txt deleted file mode 100644 index 70e4903af9de1b9b43055a3a1659a9aef1b007a1..0000000000000000000000000000000000000000 --- a/funcom_test/15657509.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int hashCode() { - int res = 23; - res = res * 37 + getStart(); - res = res * 37 + getEnd(); - if (getType() == null) { - res = res * 37; - } else { - res = res * 37 + getType().hashCode(); - } - - return res; - } - COM: <s> generates a hash code of the current span </s> - diff --git a/funcom_test/15658019.txt b/funcom_test/15658019.txt deleted file mode 100644 index b3a893f230ea18f0d9cc4ec882a3d2e67ebd1bbb..0000000000000000000000000000000000000000 --- a/funcom_test/15658019.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void advanceTop(Parse p) { - buildModel.eval(buildContextGenerator.getContext(p.getChildren(), 0), - bprobs); - p.addProb(Math.log(bprobs[topStartIndex])); - checkModel.eval(checkContextGenerator.getContext(p.getChildren(), - TOP_NODE, 0, 0), cprobs); - p.addProb(Math.log(cprobs[completeIndex])); - p.setType(TOP_NODE); - } - COM: <s> adds the top node to the specified parse </s> - diff --git a/funcom_test/15658631.txt b/funcom_test/15658631.txt deleted file mode 100644 index fa4ec9db452736984a127df0236af479e6dff86d..0000000000000000000000000000000000000000 --- a/funcom_test/15658631.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String genSecretKeyForUser(User user, byte[] pubKey) throws InvalidKeyException { - PublicKey pkey = encodedStringToPublicKey(pubKey); - byte[] key = genSecretKey(); - LOG.info("Saving keys for user: " + user); - this.keyCache.put(user.getLogin(), new KeyTime(key)); - byte[] enckey = encryptSecretKey(pkey, key); - String encKeyStr = encodeURLSafe(enckey); - return encKeyStr; - } - COM: <s> generates a random secret key for the user </s> - diff --git a/funcom_test/15660435.txt b/funcom_test/15660435.txt deleted file mode 100644 index c98ec58a1e198d09037cfeee5a8f122ebabcc8d8..0000000000000000000000000000000000000000 --- a/funcom_test/15660435.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private int getNextStep(int currentStep) { - int nextStep = -1; - - // we find the next available step. - for (int i = currentStep + 1; i <= STEP_THANKS; i++) { - if(isStepEnabled(i)) { - nextStep = i; - break; - } - } - - return nextStep; - } - COM: <s> get the next step given the current </s> - diff --git a/funcom_test/15689101.txt b/funcom_test/15689101.txt deleted file mode 100644 index 269e4edaef771a61cc0f843f2960337927ea84ff..0000000000000000000000000000000000000000 --- a/funcom_test/15689101.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public MethodInfo addDefaultConstructor() { - Modifiers modifiers = new Modifiers(); - modifiers.setPublic(true); - MethodInfo mi = addConstructor(modifiers, null); - CodeBuilder builder = new CodeBuilder(mi); - builder.loadThis(); - builder.invokeSuperConstructor(null); - builder.returnVoid(); - return mi; - } - COM: <s> adds a public no arg constructor with the code buffer properly defined </s> - diff --git a/funcom_test/15689111.txt b/funcom_test/15689111.txt deleted file mode 100644 index 8a4b90eb2b407ef06c87a3695dabde7ee08606ee..0000000000000000000000000000000000000000 --- a/funcom_test/15689111.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public MethodInfo addInitializer() { - MethodDesc md = MethodDesc.forArguments(null, null); - Modifiers af = new Modifiers(); - af.setStatic(true); - MethodInfo mi = new MethodInfo(this, af, "<clinit>", md); - mMethods.add(mi); - return mi; - } - COM: <s> add a static initializer to this class </s> - diff --git a/funcom_test/15689402.txt b/funcom_test/15689402.txt deleted file mode 100644 index 1edb6b315b1bfaa5479a9a4e1836fd057abbf455..0000000000000000000000000000000000000000 --- a/funcom_test/15689402.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean get(long index) throws IOException { - try { - lock().acquireReadLock(); - int value = mFile.read(index >> 3); - return value > 0 && ((value << (index & 7)) & 0x80) != 0; - } - catch (InterruptedException e) { - throw new InterruptedIOException(); - } - finally { - lock().releaseLock(); - } - } - COM: <s> returns false if bit is clear zero true if bit is set one </s> - diff --git a/funcom_test/15689897.txt b/funcom_test/15689897.txt deleted file mode 100644 index a7110f25c07b28ad3b0b1ad345fa730c8ea488db..0000000000000000000000000000000000000000 --- a/funcom_test/15689897.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public List getAll(Object key) { - Object value = mMap.get(key); - if (value instanceof List) { - return ((List)value); - } - else { - List list = new ArrayList(); - if (value != null || mMap.containsKey(key)) { - list.add(value); - } - mMap.put(key, list); - return list; - } - } - COM: <s> returns all the values associated with the given key </s> - diff --git a/funcom_test/15690046.txt b/funcom_test/15690046.txt deleted file mode 100644 index f50c0f4b9bf54472b50174c5441602e300e42d0e..0000000000000000000000000000000000000000 --- a/funcom_test/15690046.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void moveToIntervalStart(Calendar cal) { - int year = cal.get(Calendar.YEAR); - int month = cal.get(Calendar.MONTH); - int day = cal.get(Calendar.DAY_OF_MONTH); - int hour = cal.get(Calendar.HOUR_OF_DAY); - cal.clear(); - cal.set(year, month, day, hour, 0); - } - COM: <s> moves calendar to beginning of hour </s> - diff --git a/funcom_test/15690066.txt b/funcom_test/15690066.txt deleted file mode 100644 index e62206b4c3852881581200a098b849b365951887..0000000000000000000000000000000000000000 --- a/funcom_test/15690066.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void moveToIntervalStart(Calendar cal) { - int year = cal.get(Calendar.YEAR); - int month = cal.get(Calendar.MONTH); - int day = cal.get(Calendar.DAY_OF_MONTH); - cal.clear(); - cal.set(year, month, day); - } - COM: <s> moves calendar to beginning of day </s> - diff --git a/funcom_test/15690175.txt b/funcom_test/15690175.txt deleted file mode 100644 index 824ea6844ebed5568f4d7be1d096663aa9a4ed62..0000000000000000000000000000000000000000 --- a/funcom_test/15690175.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public BeanComparator caseSensitive() { - if ((mFlags & 0x04) != 0) { - // Already case-sensitive. - return this; - } - BeanComparator bc = new BeanComparator(this); - bc.mOrderByName = mOrderByName; - bc.mUsingComparator = mUsingComparator; - bc.mFlags = mFlags | 0x04; - return bc; - } - COM: <s> override the collator and compare just the last order by property using </s> - diff --git a/funcom_test/15690185.txt b/funcom_test/15690185.txt deleted file mode 100644 index fda316052906e76380d76c410b508afc0fcbf9fb..0000000000000000000000000000000000000000 --- a/funcom_test/15690185.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void put(Object key, Object value) { - Retriever r = getRetriever(key); - synchronized (r) { - mInvalidCache.remove(key); - mValidCache.put(key, value); - // Bypass the factory produced value so that any waiting - // threads are notified. - r.bypassValue(value); - } - } - COM: <s> put a value into the depot bypassing the factory </s> - diff --git a/funcom_test/15690189.txt b/funcom_test/15690189.txt deleted file mode 100644 index b3d2b3227de8a120b2451c5a115ff20162a8fc57..0000000000000000000000000000000000000000 --- a/funcom_test/15690189.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Object remove(Object key) { - Retriever r = getRetriever(key); - synchronized (r) { - Object old; - if (mValidCache.containsKey(key)) { - old = mValidCache.remove(key); - mInvalidCache.remove(key); - } - else { - mValidCache.remove(key); - old = mInvalidCache.remove(key); - } - r.setValue(NOTHING); - return old; - } - } - COM: <s> completely removes an item from the depots caches </s> - diff --git a/funcom_test/15690344.txt b/funcom_test/15690344.txt deleted file mode 100644 index 0a980fb502c50c30ebb03716ef1561c64d24e725..0000000000000000000000000000000000000000 --- a/funcom_test/15690344.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object firstKey() throws NoSuchElementException { - Entry first = (mReverse) ? mLeastRecent : mMostRecent; - if (first != null) { - return first.mKey; - } - else if (mRecentMap.size() == 0) { - throw new NoSuchElementException(); - } - else { - return null; - } - } - COM: <s> returns the first key in the map the most recently used </s> - diff --git a/funcom_test/15690347.txt b/funcom_test/15690347.txt deleted file mode 100644 index abe6f00e72d64b44785d27f5a84221926e089e14..0000000000000000000000000000000000000000 --- a/funcom_test/15690347.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object lastKey() throws NoSuchElementException { - Entry last = (mReverse) ? mMostRecent : mLeastRecent; - if (last != null) { - return last.mKey; - } - else if (mRecentMap.size() == 0) { - throw new NoSuchElementException(); - } - else { - return null; - } - } - COM: <s> returns the last key in the map the least recently used </s> - diff --git a/funcom_test/15690382.txt b/funcom_test/15690382.txt deleted file mode 100644 index 9ccb704cd18cf30ecbc6eef4eb571cc2c072c7a8..0000000000000000000000000000000000000000 --- a/funcom_test/15690382.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object get(Object key) { - Object value = mCacheMap.get(key); - if (value != null || mCacheMap.containsKey(key)) { - return value; - } - value = mBackingMap.get(key); - if (value != null || mBackingMap.containsKey(key)) { - mCacheMap.put(key, value); - } - return value; - } - COM: <s> returns the value from the cache or if not found the backing map </s> - diff --git a/funcom_test/15690415.txt b/funcom_test/15690415.txt deleted file mode 100644 index e7ac6a652777c04f951ed52688476fa4fb6bda0a..0000000000000000000000000000000000000000 --- a/funcom_test/15690415.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Result getMatch(String lookup) { - int strLen = lookup.length(); - char[] chars = new char[strLen + 1]; - lookup.getChars(0, strLen, chars, 0); - chars[strLen] = '\uffff'; - - TinyList resultList = new TinyList(); - fillMatchResults(chars, 1, resultList); - - return (Result)resultList.mElement; - } - COM: <s> returns null if no match </s> - diff --git a/funcom_test/15690588.txt b/funcom_test/15690588.txt deleted file mode 100644 index 1c91a0727bbe579a2316d7aa38b919ec4ce66610..0000000000000000000000000000000000000000 --- a/funcom_test/15690588.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean add(Object o) { - // find the index where this item should go - // add the item @ the specified index - int idx = 0; - if(!isEmpty()) { - idx = findInsertionPoint(o); - } - - try { - super.add(idx, o); - } - catch(IndexOutOfBoundsException e) { - return false; - } - return true; - } - COM: <s> adds an object to this collection </s> - diff --git a/funcom_test/15690844.txt b/funcom_test/15690844.txt deleted file mode 100644 index 6efb44981e1983bada45c5738181650b706d73f6..0000000000000000000000000000000000000000 --- a/funcom_test/15690844.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String readLine() throws IOException { - StringBuffer buf = new StringBuffer(80); - int line = mLineNumber; - int c; - while (line == mLineNumber && (c = read()) >= 0) { - buf.append((char)c); - } - return buf.toString(); - } - COM: <s> after calling read line calling get line number returns the next line </s> - diff --git a/funcom_test/15691054.txt b/funcom_test/15691054.txt deleted file mode 100644 index 4940f425e47cd48263b854c7d91383f712f0529d..0000000000000000000000000000000000000000 --- a/funcom_test/15691054.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void putAll(PersistentMap map) throws IOException { - PersistentIterator it = map.entrySet().iterator(); - while (it.hasNext()) { - PersistentMap.Entry entry = (PersistentMap.Entry)it.next(); - put(entry.getKey(), entry.getValue()); - } - } - COM: <s> puts all the elements of the given map into this one without acquiring </s> - diff --git a/funcom_test/15691076.txt b/funcom_test/15691076.txt deleted file mode 100644 index 8b3a8f2cae5be2011c9abad11e5812755951700e..0000000000000000000000000000000000000000 --- a/funcom_test/15691076.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void saveEntriesToWrite() throws IOException { - List list = mEntriesToWrite; - synchronized (list) { - int size = list.size(); - for (int i=0; i<size; ) { - mBackingMap.put(list.get(i++), list.get(i++)); - } - list.clear(); - } - } - COM: <s> write lock must be held </s> - diff --git a/funcom_test/15691132.txt b/funcom_test/15691132.txt deleted file mode 100644 index a2e160eb69e579bcb59be756e2e2cc9c350ff3e7..0000000000000000000000000000000000000000 --- a/funcom_test/15691132.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private String readUTF(DataInput din) throws IOException { - int length = din.readUnsignedShort(); - char[] chars = new char[length]; - length = DataIO.readUTF(din, chars, 0, length); - return new String(chars, 0, length); - } - COM: <s> reads string length as number of characters </s> - diff --git a/funcom_test/15691443.txt b/funcom_test/15691443.txt deleted file mode 100644 index f518d31609131344cb5f74e22e1f163135399cdc..0000000000000000000000000000000000000000 --- a/funcom_test/15691443.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String getClassTypeName(Class clazz) { - - String type = null; - - if (clazz.isInterface()) { - type = "interface"; - } - else if (clazz.isPrimitive()) { - type = null; - } - else if (clazz.isArray()) { - type = null; - } - else { - type = "class"; - } - - return type; - } - COM: <s> returns the type of the specified class </s> - diff --git a/funcom_test/15691601.txt b/funcom_test/15691601.txt deleted file mode 100644 index 04267ee6f86686b130e8911c0738c258c8600d0b..0000000000000000000000000000000000000000 --- a/funcom_test/15691601.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String createPatternString(String pattern, int length) { - if (pattern == null) { - return null; - } - - int totalLength = pattern.length() * length; - StringBuffer sb = new StringBuffer(totalLength); - for (int i = 0; i < length; i++) { - sb.append(pattern); - } - return sb.toString(); - } - COM: <s> creates a string with the specified pattern repeated length </s> - diff --git a/funcom_test/15691691.txt b/funcom_test/15691691.txt deleted file mode 100644 index 7766997f176a50dbee0a865c2bdd4c6d09957872..0000000000000000000000000000000000000000 --- a/funcom_test/15691691.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public boolean isImplicitTeaImport(String classOrPackageName) { - - if (classOrPackageName == null) { - return false; - } - - if (cPrimativeClasses.get(classOrPackageName) != null) { - return true; - } - - for (int i = 0; i < IMPLICIT_TEA_IMPORTS.length; i++) { - String prefix = IMPLICIT_TEA_IMPORTS[i]; - - if (classOrPackageName.startsWith(prefix)) { - return true; - } - } - - return false; - } - COM: <s> returns true if the specified class or package is </s> - diff --git a/funcom_test/15691743.txt b/funcom_test/15691743.txt deleted file mode 100644 index e4d75e1abe6f37cc1475df3cf9bf0bf7dfb5d914..0000000000000000000000000000000000000000 --- a/funcom_test/15691743.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void syncSources(String name) { - TemplateSourceInfo info = (TemplateSourceInfo)mTemplateMap.get(name); - Unit compUnit = (Unit)this.getCompilationUnit(name,null); - File destFile = compUnit.getDestinationFile(); - if (destFile != null) { - destFile.setLastModified(info.timestamp); - } - } - COM: <s> sets the template classes to have the same timestamp as the sources </s> - diff --git a/funcom_test/15691747.txt b/funcom_test/15691747.txt deleted file mode 100644 index 304e87315d4ddcfb8afff1a3d6bdab0a2e66a662..0000000000000000000000000000000000000000 --- a/funcom_test/15691747.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String createTemplateServerRequest(String servletPath,String templateName) { - String pathInfo = servletPath.substring(servletPath.indexOf("/",TEMPLATE_LOAD_PROTOCOL.length())); - if (templateName != null) { - pathInfo = pathInfo + templateName; - } - return pathInfo; - } - COM: <s> turns a template name and a servlet path into a </s> - diff --git a/funcom_test/15691860.txt b/funcom_test/15691860.txt deleted file mode 100644 index 8bd8daddedce0ee697c9d7613b6b3fb45e72644e..0000000000000000000000000000000000000000 --- a/funcom_test/15691860.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void launchAuto(boolean active) { - killAuto(); - if (mSock != null) { - try { - mAuto = new AutomaticClusterManagementThread(this, mCluster - .getClusterName(), - active); - } - catch (Exception e) { - mAuto = new AutomaticClusterManagementThread(this, active); - } - if (mAuto != null) { - mAuto.start(); - } - } - } - COM: <s> allows the management thread to passively take part in the cluster </s> - diff --git a/funcom_test/15692051.txt b/funcom_test/15692051.txt deleted file mode 100644 index ad01bbe878d8aad38bfd407235e72f603eb39930..0000000000000000000000000000000000000000 --- a/funcom_test/15692051.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean bindToVariable(VariableRef ref) { - String name = ref.getName(); - Variable var = getDeclaredVariable(name); - - if (var != null) { - ref.setType(null); - ref.setVariable(var); - mVariableRefs.add(ref); - return true; - } - else { - return false; - } - } - COM: <s> attempt to bind variable reference to a variable in this scope or a </s> - diff --git a/funcom_test/15692236.txt b/funcom_test/15692236.txt deleted file mode 100644 index f7dfb9d83fc880d0717e28b89a67df36ac37cd65..0000000000000000000000000000000000000000 --- a/funcom_test/15692236.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean hasPrimitivePeer() { - if (mObjectClass == Integer.class || - mObjectClass == Boolean.class || - mObjectClass == Byte.class || - mObjectClass == Character.class || - mObjectClass == Short.class || - mObjectClass == Long.class || - mObjectClass == Float.class || - mObjectClass == Double.class || - mObjectClass == Void.class) { - - return true; - } - - return false; - } - COM: <s> returns true if this type is not primitive but it has a primitive </s> - diff --git a/funcom_test/15692726.txt b/funcom_test/15692726.txt deleted file mode 100644 index f8fb8d825b552029b65d0663a3aa1827e15c38f6..0000000000000000000000000000000000000000 --- a/funcom_test/15692726.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setType(Type type) { - mConversions.clear(); - mExceptionPossible = false; - if (type != null) { - // Prefer cast for initial type for correct operation of - // setInitialType if a conversion needs to be inserted at the - // beginning. - mConversions.add(new Conversion(null, type, true)); - } - } - COM: <s> sets the type of this expression clearing the conversion chain </s> - diff --git a/funcom_test/16108206.txt b/funcom_test/16108206.txt deleted file mode 100644 index c9ee8d053379e952045e323c4ebaf55276f0803b..0000000000000000000000000000000000000000 --- a/funcom_test/16108206.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public OreResource getAggregatedResource(URI uri) { - OreResource ar = (OreResource) this.getResource(uri.toString(), AggregatedResourceFactory.getInstance()); - Object a = java.lang.reflect.Array.newInstance(java.lang.Class.class, 1); - Array.set(a, 0, String.class); - a.getClass(); - return ar; - } - COM: <s> retrieve with a normal uri </s> - diff --git a/funcom_test/16108239.txt b/funcom_test/16108239.txt deleted file mode 100644 index 15cd50d44de1d3e846a38a711429cce076e3098e..0000000000000000000000000000000000000000 --- a/funcom_test/16108239.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String getTitle(Model m, Resource r) { - StmtIterator iter = m.listStatements( new SimpleSelector( r, ATOM.title, (Literal) null ) ); - Literal title = null; - while (iter.hasNext()) { - Statement s = iter.nextStatement(); - title = s.getLiteral(); - } - if (title == null) { - return r.getURI(); - } else { - return title.getString(); - } - } - COM: <s> convenience to retrieve title from a resource </s> - diff --git a/funcom_test/16318542.txt b/funcom_test/16318542.txt deleted file mode 100644 index d544296b062c558996de1ab1c6bda89705f2c670..0000000000000000000000000000000000000000 --- a/funcom_test/16318542.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean isValid(){ - - boolean validPingedWorkId = true; - try { - Integer.parseInt(pingedWorkId); - } catch (NumberFormatException e) { - validPingedWorkId = false; - this.setInvalidMessage("Pinged resource invalid (Work ID NaN)"); - } - return (super.isValid() && validPingedWorkId); - } - COM: <s> as super and also pinged work id must be a number </s> - diff --git a/funcom_test/16318547.txt b/funcom_test/16318547.txt deleted file mode 100644 index 8ea3cdca982e656cdeed2aa785d78fbdab229f47..0000000000000000000000000000000000000000 --- a/funcom_test/16318547.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String getValueStringOfObjectProp(Resource root, Property prop){ - - Statement x = root.getProperty(prop);// <dc:title> - if(x==null){ - return null; - } - Resource innerNode = (Resource)x.getObject(); // <rdf:Description> - return innerNode.getProperty(valueString).getString(); //<dcrdf:valueString>abc - } - COM: <s> helper for parse handles things like </s> - diff --git a/funcom_test/16318566.txt b/funcom_test/16318566.txt deleted file mode 100644 index ab2a8ba05ca0d5cdfeb334f2ada4b535b7f3dccb..0000000000000000000000000000000000000000 --- a/funcom_test/16318566.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected String makeBibCitation(MetadataBean bean){ - String bibCitation = super.makeBibCitation(bean); - if(bean.getIssn()!=null && !bean.getIssn().equals("")){ - bibCitation+="&"+CTX_ISSN+"="+issnWithHyphen(bean.getIssn()); - } - return bibCitation; - } - COM: <s> helper for export overrides the one in dc export and adds issn </s> - diff --git a/funcom_test/16367944.txt b/funcom_test/16367944.txt deleted file mode 100644 index a9b999157a6d50a4709543bb372f2ecc91b5a7ba..0000000000000000000000000000000000000000 --- a/funcom_test/16367944.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void inputChanged(Viewer v, Object oldInput, Object newInput) { - if (viewer == null) - this.viewer = (StructuredViewer) v; - - if (input == null && newInput != null) { - input = (IWorkspace) newInput; - input.addResourceChangeListener(this, - IResourceChangeEvent.POST_CHANGE); - } - if (newInput == null && input != null) { - input.removeResourceChangeListener(this); - input = null; - } - } - COM: <s> saves input reference and adds change listener first time around </s> - diff --git a/funcom_test/16368029.txt b/funcom_test/16368029.txt deleted file mode 100644 index 302d3ce29d09cc8cbdb961cfe26eff8939c8623b..0000000000000000000000000000000000000000 --- a/funcom_test/16368029.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void selectionChanged(SelectionChangedEvent event) { - if (event.getSelection().isEmpty()) { - deleteMarkerAction.setEnabled(false); - doubleClickAction.setEnabled(false); - deleteAllMarkersAction.setEnabled(false); - } else { - deleteMarkerAction.setEnabled(true); - doubleClickAction.setEnabled(true); - deleteAllMarkersAction.setEnabled(true); - } - } - COM: <s> keeps the action state correct based on the viewer selection </s> - diff --git a/funcom_test/16368038.txt b/funcom_test/16368038.txt deleted file mode 100644 index 1cbe539b6618f1791edcc5e7c105b6dd4a11e576..0000000000000000000000000000000000000000 --- a/funcom_test/16368038.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getColumnText(Object obj, int index) { - IMarker marker = (IMarker) obj; - try { - if (marker.getType().equals(MarkerView.MARKER_ID)) { - return getColumnTextMarkerView(index, marker); - } - return getColumnTextMarkerDiagnostic(index, marker); - } catch (CoreException e) { - e.printStackTrace(); - return ""; //$NON-NLS-1$ - } - } - COM: <s> returns column specific text </s> - diff --git a/funcom_test/16368601.txt b/funcom_test/16368601.txt deleted file mode 100644 index 0aba9438ffe116445aa78cb4aae3029bad5c2719..0000000000000000000000000000000000000000 --- a/funcom_test/16368601.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private void reportError(Exception x) { - ErrorDialog.openError(getShell(), Messages.getString("eclipse.dialogtitle"), //$NON-NLS-1$ - Messages.getString("eclipse.projecterror"), null); //$NON-NLS-1$ - } - COM: <s> displays an error that occurred during the project creation </s> - diff --git a/funcom_test/16368606.txt b/funcom_test/16368606.txt deleted file mode 100644 index 48aa3c669ba3785b826944a56377bfd6ffc035e2..0000000000000000000000000000000000000000 --- a/funcom_test/16368606.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: // private void createFolderHelper(IFolder folder, IProgressMonitor monitor) throws CoreException { -// if (!folder.exists()) { -// IContainer parent = folder.getParent(); -// if (parent instanceof IFolder && (!((IFolder) parent).exists())) -// createFolderHelper((IFolder) parent, monitor); -// folder.create(false, true, monitor); -// } -// } - COM: <s> helper method it recursively creates a folder path </s> - diff --git a/funcom_test/16369308.txt b/funcom_test/16369308.txt deleted file mode 100644 index 3950647a3b089b02891c1d161b1bed8bdd6b97c6..0000000000000000000000000000000000000000 --- a/funcom_test/16369308.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public IReportConsole getReportConsole() { - if (_consoleAppender == null) { - try { - IConfigurationElement[] consoleProvider = ExtensionPointHelper.getConfigurationElements(PLUGIN_ID, CONSOLE_EXTENSION_ID); - for (IConfigurationElement configurationElement : consoleProvider) { - _consoleAppender = (IReportConsole) ExtensionPointHelper.createInstance(configurationElement, ExtensionPointHelper.ATT_CLASS); - } - } catch (Throwable ex) { - ex.printStackTrace(); - } - } - return _consoleAppender; - } - COM: <s> get console appender that contributed to plugin console extension extension point </s> - diff --git a/funcom_test/16413013.txt b/funcom_test/16413013.txt deleted file mode 100644 index c5068fb3bf026f9af77a7cd1eba5e619fd240c41..0000000000000000000000000000000000000000 --- a/funcom_test/16413013.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void initializeKeywords() { - this.keywords = new HashSet<String>(Arrays.asList(new String[] { - "select", "from", "where", "order", "by", "and", "or", "group", - "left", "on", "right", "in","outer" })); - } - COM: <s> initializes the keywords list </s> - diff --git a/funcom_test/16424014.txt b/funcom_test/16424014.txt deleted file mode 100644 index 040d7a1c161877f811a1f665951034981ae95c13..0000000000000000000000000000000000000000 --- a/funcom_test/16424014.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void customInit() { - display = new Display(new LWJGLBinding()); - input = new FengJMEInputHandler(display); - - MenuPixmapBackgrounds.loadImages(); - new GameMenuGUI().buildGUI(display); - - display.layout(); - MouseInput.get().setCursorVisible(true); - - } - COM: <s> initializes the feng gui display and </s> - diff --git a/funcom_test/16424411.txt b/funcom_test/16424411.txt deleted file mode 100644 index a9701e6e96d61a2551cf27a5b3ac90858257bc1a..0000000000000000000000000000000000000000 --- a/funcom_test/16424411.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void act(ActionExec action, List<ActionExec> feedback) { - super.act(action, feedback); - Structure actionTerm = action.getActionTerm(); - String functor = actionTerm.getFunctor(); - Method m = annotatedMethods.get(functor); - if (m != null) { - try { - m.invoke(this, (Object)actionTerm.getTermsArray()); - } catch (Exception e) { - e.printStackTrace(); - } - } - } - COM: <s> this method is called when agent wants to execute an action </s> - diff --git a/funcom_test/16632712.txt b/funcom_test/16632712.txt deleted file mode 100644 index 5a15a88373a5c9bdbb9bc00dd95a4c86505cb8c8..0000000000000000000000000000000000000000 --- a/funcom_test/16632712.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void initSelectedClassList() { - for (IClassRelationShip classRelationShip : classRelationShipList) { - String className = classRelationShip.getClassName(); - selectedClassList.add(className); - } - selectedClassesListModel = new CustomizedListModel(selectedClassList); - classNamesList.setModel(selectedClassesListModel); - } - COM: <s> this method is called from within the constructor to </s> - diff --git a/funcom_test/16652158.txt b/funcom_test/16652158.txt deleted file mode 100644 index 00fc3a5194d35325105cf111bae023aaf52c78ef..0000000000000000000000000000000000000000 --- a/funcom_test/16652158.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void printStackTrace(PrintStream stream) { - super.printStackTrace(stream); - - if ((mCause != null) && (! superClassPrintsCause())) { - stream.println("Caused by: " + mCause.getMessage() + ":"); - mCause.printStackTrace(stream); - } - } - COM: <s> prints the stack trace of this exception an of the nested exception if </s> - diff --git a/funcom_test/16652160.txt b/funcom_test/16652160.txt deleted file mode 100644 index a1ad6b297aa2b4ff91528edb57828bf07a8bc668..0000000000000000000000000000000000000000 --- a/funcom_test/16652160.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean superClassPrintsCause() { - // Check whether there is a getCause method in the super class - try { - getClass().getSuperclass().getMethod("getCause"); - - // The superclass has a getCause method -> It must be Java 1.4 or more - return true; - } - catch (Exception exc) { - // The superclass has no getCause method -> It must be Java 1.3 or less - return false; - } - } - COM: <s> gets whether the superclass is able to print the cause of the exception </s> - diff --git a/funcom_test/16652230.txt b/funcom_test/16652230.txt deleted file mode 100644 index 97faa3a1ab50b02261022f37a710a130a56ee811..0000000000000000000000000000000000000000 --- a/funcom_test/16652230.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setShouldPause(boolean shouldPause) { - // NOTE: We get a local copy of the crawler for the case that is should - // change in the meantime - Crawler crawler = mCrawler; - if (crawler != null) { - crawler.setShouldPause(shouldPause); - TrayIconHandler.getInstance().setIndexUpdateRunning(! shouldPause); - } - } - COM: <s> sets whether the crawler should pause </s> - diff --git a/funcom_test/16652235.txt b/funcom_test/16652235.txt deleted file mode 100644 index 9e03169da934ba5b78e12755dcc0af0056251ce5..0000000000000000000000000000000000000000 --- a/funcom_test/16652235.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void saveIndexLastUpdate() { - try { - String lastUpdate = RegainToolkit.lastModifiedToString(new Date()); - RegainToolkit.writeToFile(lastUpdate, LASTUPDATE_FILE); - } - catch (RegainException exc) { - mLog.error("Writing last update file failed", exc); - } - } - COM: <s> saves the current time as the last index update </s> - diff --git a/funcom_test/16652237.txt b/funcom_test/16652237.txt deleted file mode 100644 index 850451173940c590bd7e414ecd41ff5a3c757448..0000000000000000000000000000000000000000 --- a/funcom_test/16652237.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void checkImapList(List<String> errorList, String[] imaplist, Localizer localizer) { - for (int i = 0; i < imaplist.length; i++) { - checkValidUrl(errorList, imaplist[i], imaplist[i], localizer.msg("checkIMAP1", "'"), localizer.msg("checkIMAP2", "' is not a valid IMAP URL")); - } - } - COM: <s> checks a list of imap urls </s> - diff --git a/funcom_test/16652440.txt b/funcom_test/16652440.txt deleted file mode 100644 index fc462b4605d63f58669b2599fc60dea54346afc5..0000000000000000000000000000000000000000 --- a/funcom_test/16652440.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public long getCurrentMeasuringTime() { - // NOTE: We put the start time in a local variable to avoid it is changed - // while this method is executed. - long startTime = mMeasureStart; - if (startTime == -1) { - return -1; - } else { - return System.currentTimeMillis() - startTime; - } - } - COM: <s> gets the current time of the measuring running now </s> - diff --git a/funcom_test/16652467.txt b/funcom_test/16652467.txt deleted file mode 100644 index b1b5e62f8cca3232bb2e1387b6b35a07bad4aa26..0000000000000000000000000000000000000000 --- a/funcom_test/16652467.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void close() throws RegainException { - if (mExcelApplication != null) { - // Excel schlie�en - try { - mExcelApplication.quit(); - } - catch (Throwable thr) { - throw new RegainException("Using COM failed.", thr); - } - finally { - // Alle Ressourcen des COM-Threads freigeben - ComThread.Release(); - } - } - } - COM: <s> frees all resources reserved by the preparator </s> - diff --git a/funcom_test/16652491.txt b/funcom_test/16652491.txt deleted file mode 100644 index 4971797a5b112e6849e7c2048b01c743f09dec54..0000000000000000000000000000000000000000 --- a/funcom_test/16652491.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private String stripNoneWordChars(String uncleanString) { - return uncleanString.replace(".", " ").replace(":", " ").replace("@", " ").replace("-", " ").replace("_", " ").replace("<", " ").replace(">", " "); - - } - COM: <s> removes unwanted chars from a given string </s> - diff --git a/funcom_test/16652530.txt b/funcom_test/16652530.txt deleted file mode 100644 index 9e87bdc2b334908f64576924f583163105080b15..0000000000000000000000000000000000000000 --- a/funcom_test/16652530.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getSelection(Application wordAppl) { - Selection sel = wordAppl.getSelection(); - // Alternative (VB): sel.moveEndWhile(?? cset:=vbCr ??, WdConstants.wdBackward); - // Alternative (VB): Call app.ActiveDocument.Bookmarks.Item("\endofdoc").Select() - sel.moveEnd(); - sel.copy(); - return sel.getText(); - } - COM: <s> gets the currently selected text from a word application </s> - diff --git a/funcom_test/16652533.txt b/funcom_test/16652533.txt deleted file mode 100644 index 495848913addcf585c85558c0341390f1515b40e..0000000000000000000000000000000000000000 --- a/funcom_test/16652533.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean isIndexOf(String content, String expected, int pos) { - if (content.length() < pos + expected.length()) { - // The expected String doesn't match here - return false; - } - - String substring = content.substring(pos, pos + expected.length()); - return expected.equalsIgnoreCase(substring); - } - COM: <s> checks whether an expected substring is at a certain position </s> - diff --git a/funcom_test/16652540.txt b/funcom_test/16652540.txt deleted file mode 100644 index 57abfd519eb303b6a296e0f40b92c23b3bec282a..0000000000000000000000000000000000000000 --- a/funcom_test/16652540.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String removeBinaryStuff(String text) { - StringBuffer newText = new StringBuffer(text.length()); - - for (int j = 0; j < text.length(); j++) { - char c = text.charAt(j); - if (c >= 32) { - newText.append(c); - } - } - - return newText.toString(); - } - COM: <s> removes all characters that are less that 32 from the given string </s> - diff --git a/funcom_test/16652547.txt b/funcom_test/16652547.txt deleted file mode 100644 index c7902813b289ced3e63177b6e49a610494ba4322..0000000000000000000000000000000000000000 --- a/funcom_test/16652547.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setSource(String sourceStr) throws RegainException { - - try { - _parser.setKind(ASTParser.K_COMPILATION_UNIT); - _parser.setSource(sourceStr.toString().toCharArray()); - _unit = (CompilationUnit) _parser.createAST(null); - - } catch (Exception ex) { - throw new RegainException("Error parsing Java file", ex); - } - - } - COM: <s> member sets the source for the parser and creates a compilation unit </s> - diff --git a/funcom_test/16652581.txt b/funcom_test/16652581.txt deleted file mode 100644 index 33e328ae2b99059ed9b757b302b70603e242df31..0000000000000000000000000000000000000000 --- a/funcom_test/16652581.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void printNoHtml(String text) throws RegainException { - if (text != null) { - text = RegainToolkit.replace(text, "<", "<"); - text = RegainToolkit.replace(text, ">", ">"); - } - - print(text); - } - COM: <s> prints text to a page and escapes all html tags </s> - diff --git a/funcom_test/16652589.txt b/funcom_test/16652589.txt deleted file mode 100644 index 811d7bc673de737cff15fbd2abb0407efeb03672..0000000000000000000000000000000000000000 --- a/funcom_test/16652589.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void rawPrint(String text) throws RegainException { - if (mPrintStream == null) { - try { - mPrintStream = mResponse.getPrintStream(); - } - catch (IOException exc) { - throw new RegainException("Getting response PrintStream failed", exc); - } - } - - mPrintStream.print(text); - } - COM: <s> prints text to a page </s> - diff --git a/funcom_test/16652626.txt b/funcom_test/16652626.txt deleted file mode 100644 index bfacb4daa459fc64661443bf2deb9f4048a138d5..0000000000000000000000000000000000000000 --- a/funcom_test/16652626.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String toString() { - StringBuilder str = new StringBuilder(); - str.append("Contains ").append(plugins.size()).append(" Plugins: \n"); - - for (Map.Entry<Integer, CrawlerPlugin> entry : plugins.entrySet()) - { - str.append("Plugin ").append(entry.getValue().getClass().getName()); - str.append(" with order ").append(entry.getKey()).append("\n"); - } - - return str.toString(); - } - COM: <s> lists contained plugins for debugging purposes </s> - diff --git a/funcom_test/16652666.txt b/funcom_test/16652666.txt deleted file mode 100644 index 5c252fd073c9d739cc7c1dd0d3ee8ce567d48bc9..0000000000000000000000000000000000000000 --- a/funcom_test/16652666.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int getParameterAsInt(String name, int defaultValue) throws RegainException { - String asString = getParameter(name); - if (asString == null) { - return defaultValue; - } else { - try { - return Integer.parseInt(asString); - } - catch (NumberFormatException exc) { - throw new RegainException("Parameter '" + name + "' must be a number: " - + asString); - } - } - } - COM: <s> gets a request parameter and converts it to an int </s> - diff --git a/funcom_test/16652740.txt b/funcom_test/16652740.txt deleted file mode 100644 index c64eeb8842689e6af32add6d9a351f3844b6c00e..0000000000000000000000000000000000000000 --- a/funcom_test/16652740.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public IndexReader getIndexReader() throws RegainException { - if (mIndexReader == null) { - if (!mWorkingIndexDir.exists()) { - checkForIndexUpdate(); - } - - try { - mIndexReader = IndexReader.open(FSDirectory.open(mWorkingIndexDir)); - } catch (IOException exc) { - throw new RegainException("Creating index reader failed", exc); - } - } - - return mIndexReader; - } - COM: <s> gets an index reader for the index </s> - diff --git a/funcom_test/16652744.txt b/funcom_test/16652744.txt deleted file mode 100644 index 862ac57efae2b478d127ca1032c5d962a731d6df..0000000000000000000000000000000000000000 --- a/funcom_test/16652744.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public IndexSearcher getIndexSearcher() throws RegainException { - if (mIndexSearcher == null) { - if (!mWorkingIndexDir.exists()) { - checkForIndexUpdate(); - } - - try { - mIndexSearcher = new IndexSearcher(IndexReader.open(FSDirectory.open(mWorkingIndexDir))); - } catch (IOException exc) { - throw new RegainException("Creating index searcher failed", exc); - } - } - - return mIndexSearcher; - } - COM: <s> returns the index searcher </s> - diff --git a/funcom_test/16685341.txt b/funcom_test/16685341.txt deleted file mode 100644 index 15fe91155f925f6d38880b76d94bc721f05da367..0000000000000000000000000000000000000000 --- a/funcom_test/16685341.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int recycleItems(LinearLayout layout, int firstItem, ItemsRange range) { - int index = firstItem; - for (int i = 0; i < layout.getChildCount();) { - if (!range.contains(index)) { - recycleView(layout.getChildAt(i), index); - layout.removeViewAt(i); - if (i == 0) { // first item - firstItem++; - } - } else { - i++; // go to next item - } - index++; - } - return firstItem; - } - COM: <s> recycles items from specified layout </s> - diff --git a/funcom_test/16685347.txt b/funcom_test/16685347.txt deleted file mode 100644 index 4841087884e94157a1749c7b46b35aa157daeb76..0000000000000000000000000000000000000000 --- a/funcom_test/16685347.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void recycleView(View view, int index) { - int count = wheel.getViewAdapter().getItemsCount(); - - if ((index < 0 || index >= count) && !wheel.isCyclic()) { - // empty view - emptyItems = addView(view, emptyItems); - } else { - while (index < 0) { - index = count + index; - } - index %= count; - items = addView(view, items); - } - } - COM: <s> adds view to cache </s> - diff --git a/funcom_test/16685399.txt b/funcom_test/16685399.txt deleted file mode 100644 index 4aa49e09a6164db1653c32f831c5da5a3f1f0552..0000000000000000000000000000000000000000 --- a/funcom_test/16685399.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int getDesiredHeight(LinearLayout layout) { - if (layout != null && layout.getChildAt(0) != null) { - itemHeight = layout.getChildAt(0).getMeasuredHeight(); - } - - int desired = itemHeight * visibleItems - itemHeight * ITEM_OFFSET_PERCENT / 50; - - return Math.max(desired, getSuggestedMinimumHeight()); - } - COM: <s> calculates desired height for layout </s> - diff --git a/funcom_test/16685417.txt b/funcom_test/16685417.txt deleted file mode 100644 index 9dd5dae240b2ec2e26cbd3f945b2cb81851aa7b9..0000000000000000000000000000000000000000 --- a/funcom_test/16685417.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void drawShadows(Canvas canvas) { - int height = (int)(1.5 * getItemHeight()); - topShadow.setBounds(0, 0, getWidth(), height); - topShadow.draw(canvas); - - bottomShadow.setBounds(0, getHeight() - height, getWidth(), getHeight()); - bottomShadow.draw(canvas); - } - COM: <s> draws shadows on top and bottom of control </s> - diff --git a/funcom_test/16685465.txt b/funcom_test/16685465.txt deleted file mode 100644 index 11da19ef49c70a8075ef35675479aeed12b3420f..0000000000000000000000000000000000000000 --- a/funcom_test/16685465.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void buildViewForMeasuring() { - // clear all items - if (itemsLayout != null) { - recycle.recycleItems(itemsLayout, firstItem, new ItemsRange()); - } else { - createItemsLayout(); - } - - // add views - int addItems = visibleItems / 2; - for (int i = currentItem + addItems; i >= currentItem - addItems; i--) { - if (addViewItem(i, true)) { - firstItem = i; - } - } - } - COM: <s> builds view for measuring </s> - diff --git a/funcom_test/16685491.txt b/funcom_test/16685491.txt deleted file mode 100644 index 4fedcb5d46bded69deadab6a4d4260294d56a5a5..0000000000000000000000000000000000000000 --- a/funcom_test/16685491.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private View getItemView(int index) { - if (viewAdapter == null || viewAdapter.getItemsCount() == 0) { - return null; - } - int count = viewAdapter.getItemsCount(); - if (!isValidItemIndex(index)) { - return viewAdapter.getEmptyItem(recycle.getEmptyItem(), itemsLayout); - } else { - while (index < 0) { - index = count + index; - } - } - - index %= count; - return viewAdapter.getItem(index, recycle.getItem(), itemsLayout); - } - COM: <s> returns view for specified item </s> - diff --git a/funcom_test/16686536.txt b/funcom_test/16686536.txt deleted file mode 100644 index a44ce322ac6dc6b791681903e91bd1f707a1fad5..0000000000000000000000000000000000000000 --- a/funcom_test/16686536.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void midPoint(PointF point, WrapMotionEvent event) { - // ... - float x = event.getX(0) + event.getX(1); - float y = event.getY(0) + event.getY(1); - point.set(x / 2, y / 2); - } - COM: <s> calculate the mid point of the first two fingers </s> - diff --git a/funcom_test/16755667.txt b/funcom_test/16755667.txt deleted file mode 100644 index b087c5824b37a34b433a049afd0bd4976b4c7549..0000000000000000000000000000000000000000 --- a/funcom_test/16755667.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void init() { - try { - Install.installJogl(); - } catch (InstallException e) { - // fatal - JOptionPane.showMessageDialog(null, Resources.getLabel("error.install", Install.LOCAL_DATA_DIR.getAbsolutePath()), - Resources.getLabel("fatal.error"), JOptionPane.ERROR_MESSAGE); - System.exit(-1); - } - _mainPanel = new MainPanel(); - getContentPane().add(_mainPanel, BorderLayout.CENTER); - setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - pack(); - setLocationRelativeTo(null); - setVisible(true); - _mainPanel.afterShow(); - } - COM: <s> init the frame </s> - diff --git a/funcom_test/16755696.txt b/funcom_test/16755696.txt deleted file mode 100644 index 9ceb5e3f31039c0be3f501052907df3a818eb99c..0000000000000000000000000000000000000000 --- a/funcom_test/16755696.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void init() throws URISyntaxException, IOException { - // init lookup service - _lookupService = new LookupService(Install.GEO_DATA_FILE, LookupService.GEOIP_MEMORY_CACHE); - // public IP - URL URL = new URL("http://www.whatismyip.org/"); - HttpURLConnection connection = (HttpURLConnection) URL.openConnection(); - InputStream inStream = connection.getInputStream(); - InputStreamReader isr = new InputStreamReader(inStream); - BufferedReader br = new BufferedReader(isr); - _publicIp = br.readLine(); - } - COM: <s> initialize route service </s> - diff --git a/funcom_test/16755702.txt b/funcom_test/16755702.txt deleted file mode 100644 index 7e112a417536dc9c1442d519fe2b299c40ef1624..0000000000000000000000000000000000000000 --- a/funcom_test/16755702.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void addPoint(String ip) { - if (!_ip.contains(ip)) { - _ip.add(ip); - RoutePoint point = getRoutePointForIP(ip); - // if point is null (absent of the database), just ignore it - if (point != null) { - point.setNumber(_route.size()); - _route.add(point); - // notify route point added - for (RouteListener listener : _listeners) { - listener.routePointAdded(point); - } - } - } - } - COM: <s> add a point corresponding to the given ip </s> - diff --git a/funcom_test/16775544.txt b/funcom_test/16775544.txt deleted file mode 100644 index af8c240932186d854aeb5a0bf708b9ed2beb5dd1..0000000000000000000000000000000000000000 --- a/funcom_test/16775544.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public IVector getAllTimes() { - int n = this.getCount(); - int nextindex = 0; - int seriesLength; - double times[] = new double[n]; - double tempTimes[] = null; - for (TimeSeries sery : this.series) { - tempTimes = sery.getTimesRef(); - if(tempTimes!=null){ - seriesLength = tempTimes.length; - System.arraycopy(sery.getTimesRef(), 0, times, nextindex, seriesLength); - nextindex += seriesLength; - } - } - return new Vector(times); - } - COM: <s> get a vector of times matching each value </s> - diff --git a/funcom_test/16775665.txt b/funcom_test/16775665.txt deleted file mode 100644 index 4ad34fa30ef60bb357d06ba118393bf7f31323cd..0000000000000000000000000000000000000000 --- a/funcom_test/16775665.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getTimeString(double timeDouble) { - long time = Time.mjdToMillies(timeDouble); - Calendar calendar = Calendar.getInstance(); - calendar.setTimeZone(this.timeZone); - calendar.setTimeInMillis(time); - return this.dateFormat.format(calendar.getTime()); - } - COM: <s> the date format for the start and end dates in the event tox2 </s> - diff --git a/funcom_test/16775701.txt b/funcom_test/16775701.txt deleted file mode 100644 index 7dfd92ab73749e109df493d8872ece02d531ef2a..0000000000000000000000000000000000000000 --- a/funcom_test/16775701.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void writeTimeValuePair(PrintWriter writer, double time, double value) { - double timeInTimeUnits = EfdcUtils.getRelativeTimeInTimeUnits(Time.mjdToMillies(time), - this.referenceTime, this.secondsPerTimeUnit); - - writer.print(" "); - writer.print(timeInTimeUnits); - writer.print(" "); - writer.print(value); - writer.println(); - } - COM: <s> writes the given time and value to the given writer </s> - diff --git a/funcom_test/16775785.txt b/funcom_test/16775785.txt deleted file mode 100644 index 70a6629a8baf5cfde572cf3b9c38ec4b85434ec8..0000000000000000000000000000000000000000 --- a/funcom_test/16775785.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void removeWdmFileFromBuffer(int wdmFileNumber) { - IntByReference returnCode = new IntByReference(-1); - nativeDLL.wdflcl_(new IntByReference(wdmFileNumber), returnCode); - if (returnCode.getValue() != 0) { - throw new RuntimeException("WdmDll: Invalid result from call to subroutine dll.wdflcl_ , returnCode = " + returnCode.getValue()); - } - } - COM: <s> removes the wdm file at the given fortran unit number </s> - diff --git a/funcom_test/16775804.txt b/funcom_test/16775804.txt deleted file mode 100644 index d282825d414a793fe9f70f0e4714ec8034e131f8..0000000000000000000000000000000000000000 --- a/funcom_test/16775804.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public int getNumberOfTimeSteps(int[] startDate, int[] endDate, int timeUnit, int timeStep) { - IntByReference numberOftimeSteps = new IntByReference(-1); - nativeDLL.timdif_(startDate, endDate, new IntByReference(timeUnit), new IntByReference(timeStep), numberOftimeSteps); - return numberOftimeSteps.getValue(); - } - COM: <s> returns the number of time steps between the given dates </s> - diff --git a/funcom_test/16775825.txt b/funcom_test/16775825.txt deleted file mode 100644 index 920ef0a0db1d158321c59c8d2e2177a34dcbd2ca..0000000000000000000000000000000000000000 --- a/funcom_test/16775825.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testReadAndWriteTimeSeriesMultipleTimes() throws Exception { - //currently only wdm.dll available (not wdm.so), so only run this test on windows. - if (!BBUtils.RUNNING_ON_WINDOWS) { - return; - } - - for (int n = 1; n <= 20; n++) { - testReadTimeSeries(); - testWriteTimeSeries(); - System.out.println(n); - } - } - COM: <s> tests that no exceptions occur when opening reading writing </s> - diff --git a/funcom_test/16776063.txt b/funcom_test/16776063.txt deleted file mode 100644 index facd648560350b2bced18baeb3457b1bc59a9b84..0000000000000000000000000000000000000000 --- a/funcom_test/16776063.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public IStochModelInstance getInstance(OutputLevel outputLevel){ - ArrayList<String> ids = new ArrayList<String>(); - ArrayList<IStochModelInstance> models = new ArrayList<IStochModelInstance>(); - for(int i=0;i<this.childIds.size();i++){ - ids.add(this.childIds.get(i)); - IStochModelInstance tempInstance = this.children.get(i).getInstance(OutputLevel.Suppress); - models.add(tempInstance); - } - IStochModelInstance result = new SimultaneousGroupStochModelInstance(models,ids); - return result; - } - COM: <s> abstract method to create a new instance </s> - diff --git a/funcom_test/16776079.txt b/funcom_test/16776079.txt deleted file mode 100644 index 12d251685ee0975357b5960de380e4c73a7f4058..0000000000000000000000000000000000000000 --- a/funcom_test/16776079.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public int waitUntilFreeThread(){ - - int threadID=-1; - boolean waiting = true; - - while (waiting){ - synchronized (lock1){ - if (numActiveThreads<maxThreads){ - threadID=allocateNewID(); - waiting=false; - } - } - cleanAdmin(); - - /*try { - wait(); - } catch (InterruptedException e) { - e.printStackTrace(); - } */ - } - return threadID; - } - COM: <s> wait until a free thread is available </s> - diff --git a/funcom_test/16776088.txt b/funcom_test/16776088.txt deleted file mode 100644 index 2046b3f026a7e840b6e93af9aa021541e64ee027..0000000000000000000000000000000000000000 --- a/funcom_test/16776088.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private int allocateNewID(){ - int threadID=-1; - - for (int iThread=0; iThread<maxThreads; iThread++){ - if (! allocatedThread[iThread]){ - allocatedThread[iThread]=true; - numActiveThreads++; - return iThread; - } - } - throw new RuntimeException("Cannot find an non-allocated thread. This is a programming error"); - } - COM: <s> return an allocate a free entry thread id in the administration </s> - diff --git a/funcom_test/16776092.txt b/funcom_test/16776092.txt deleted file mode 100644 index 07b5634265fbb09d50899c5ff4a59a6b9c8720c4..0000000000000000000000000000000000000000 --- a/funcom_test/16776092.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void cleanAdmin(){ - synchronized (lock1){ - for (int iThread=0; iThread<maxThreads; iThread++){ - if (allocatedThread[iThread]){ - if (allThreads[iThread]!=null){ - if (!allThreads[iThread].isAlive()){ - allocatedThread[iThread] =false; - allThreads[iThread] =null; - numActiveThreads--; - } - } - } - } - } - } - COM: <s> clean the administration </s> - diff --git a/funcom_test/16776728.txt b/funcom_test/16776728.txt deleted file mode 100644 index 312b30459d96516f57f8d22eace78ea1a070ca0d..0000000000000000000000000000000000000000 --- a/funcom_test/16776728.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void deleteVariationFunctionRow(int tableRowIndex) { - if (tableRowIndex >= 0 && tableRowIndex < this.uiModel.getUncertaintiesObject().variationFunctionCount()) { - this.uiModel.getUncertaintiesObject().removeVariationFunction(tableRowIndex); - updateGUI(); - - //select first row. - this.variationPerParameterTableController.setSelectedRow(0); - } - } - COM: <s> delete a row from variation per parameter table </s> - diff --git a/funcom_test/16776739.txt b/funcom_test/16776739.txt deleted file mode 100644 index c5d4ab10316b0cd5f56d5e2536266eae5fbda770..0000000000000000000000000000000000000000 --- a/funcom_test/16776739.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void updateTables() { - this.pdfDefinitionTableController.updatePDFDefinitionTable(this.uiModel); - this.variationPerParameterTableController.updateVariationPerParameterTable(this.uiModel); - this.correlationTableController.updateCorrelationTable(this.uiModel); - this.resultsTableController.updateResultsTable(this.uiModel); - } - COM: <s> update the tables with data from ui model </s> - diff --git a/funcom_test/16776823.txt b/funcom_test/16776823.txt deleted file mode 100644 index aef6d00df723d3bb9aadd9a5b9ff32e92ff57808..0000000000000000000000000000000000000000 --- a/funcom_test/16776823.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void checkBox_actionListener(MouseEvent e) { - JCheckBox checkBox = (JCheckBox) e.getSource(); - checkBox.setSelected(!checkBox.isSelected()); - - Variation variationFunction = this.getUncertaintiesObject().getVariationFunction(currentRow); - - if (currentCol == COLUMN_IS_ACTIVE) { - variationFunction.getUncertainItem().setActive(checkBox.isSelected()); - } - } - COM: <s> updates active of uncertainties if checkboxes in table are clicked </s> - diff --git a/funcom_test/16776878.txt b/funcom_test/16776878.txt deleted file mode 100644 index 5fc32e40781016b595935785bee6d47154725c66..0000000000000000000000000000000000000000 --- a/funcom_test/16776878.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void createDefaultPdfs(Uncertainties uncertainties) { - for (int n = 0; n < uncertainties.variationFunctionCount(); n++) { - Variation variationFunction = uncertainties.getVariationFunction(n); - - //create new UncertainItem. - UncertainItem uncertainItem = variationFunction.getUncertainItem().clone(); - - //create new default pdf. - PDF pdf = new NormalDistribution(); - pdf.setUncertainItem(uncertainItem); - uncertainties.addPdf(pdf); - } - } - COM: <s> creates default pdfs for all the uncertain items that are present </s> - diff --git a/funcom_test/16776879.txt b/funcom_test/16776879.txt deleted file mode 100644 index 44a7dad2b2679732f3edf4c96e109f04b46042fd..0000000000000000000000000000000000000000 --- a/funcom_test/16776879.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void createDefaultVariationFunctions(Uncertainties uncertainties) { - for (int n = 0; n < uncertainties.pdfCount(); n++) { - PDF pdf = uncertainties.getPdf(n); - - //create new UncertainItem. - UncertainItem uncertainItem = pdf.getUncertainItem().clone(); - - //create new default VariationFunction. - Variation variationFunction = new RangeVariation(); - variationFunction.setUncertainItem(uncertainItem); - uncertainties.addVariationFunction(variationFunction); - } - } - COM: <s> creates default variation functions </s> - diff --git a/funcom_test/16777430.txt b/funcom_test/16777430.txt deleted file mode 100644 index 9420faa0f4655ee8a4603583ec24712c731f4141..0000000000000000000000000000000000000000 --- a/funcom_test/16777430.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean isSelected(TimeSeries ts) { - if (!isSelectedLocation(ts.getLocation())) return false; - if (!isSelectedSource(ts.getSource())) return false; - if (!isSelectedQuantity(ts.getQuantityId())) return false; - if (!intersectsWithTimeInterval(ts.getStartTime(), ts.getStopTime())) return false; - return true; - } - COM: <s> test whether the given time series is within the selection </s> - diff --git a/funcom_test/16777439.txt b/funcom_test/16777439.txt deleted file mode 100644 index dcca0bebeeee3e1fa0dc20faf4caed28266b94fe..0000000000000000000000000000000000000000 --- a/funcom_test/16777439.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setMetaData(TimeSeries other) { - this.setSource(other.source); - this.setQuantity(other.quantity); - this.setUnit(other.unit); - this.setLocation(other.location); - this.setId(other.id); - this.setDescription(other.description); - this.setPosition(other.position[0], other.position[1]); - this.setHeight(other.height); - this.autoId = other.autoId; - this.parent = other.parent; - - for (String propertyName : other.properties.keySet()) { - this.setProperty(propertyName, other.getProperty(propertyName)); - } - } - COM: <s> copy the other time series metadata </s> - diff --git a/funcom_test/16777458.txt b/funcom_test/16777458.txt deleted file mode 100644 index 921ce25ba44d960e55bdd9239afb784e98f04894..0000000000000000000000000000000000000000 --- a/funcom_test/16777458.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public TimeSeriesSet intersectsWithTimeInterval(double t_start, double t_stop) { - Set<TimeSeries> result = new HashSet<TimeSeries>(); - for (TimeSeries ts : this) { - if (ts.intersectsWithTimeInterval(t_start, t_stop)) { - result.add(ts); - } - } - return new TimeSeriesSet(result); - } - COM: <s> return all time series that intersect the given time interval </s> - diff --git a/funcom_test/16777464.txt b/funcom_test/16777464.txt deleted file mode 100644 index f9c7311e57501c02e7368333930e1ea3277dda26..0000000000000000000000000000000000000000 --- a/funcom_test/16777464.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void moveLocation(String fromLocation, String toLocation) { - final TimeSeriesSet toModify = getOnLocation(fromLocation); - for (TimeSeries timeseries : toModify) { - removeFromMultiMap(this.onLocation, fromLocation, timeseries); - timeseries.setLocation(toLocation); - addToMultiMap(this.onLocation, toLocation, timeseries); - } - } - COM: <s> change a location name to another </s> - diff --git a/funcom_test/16777470.txt b/funcom_test/16777470.txt deleted file mode 100644 index eea0cbde470f43aee450a744295b80a605c14826..0000000000000000000000000000000000000000 --- a/funcom_test/16777470.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void buildTimeMap() { - this.onTime.clear(); - for (TimeSeries timeseries : this.set) { - for (double time : timeseries.getTimesRef()) { - TimeSeriesSet.addToMultiMap(this.onTime, new Double(time), timeseries); - } - } - } - COM: <s> build the time map </s> - diff --git a/funcom_test/16777557.txt b/funcom_test/16777557.txt deleted file mode 100644 index 01978f5c66b955d70d237f9f0bd910e57e8f4efb..0000000000000000000000000000000000000000 --- a/funcom_test/16777557.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private IPrevExchangeItem findItem(IPrevExchangeItem[] exchangeItems, String id){ - IPrevExchangeItem result = null; - for(IPrevExchangeItem item : exchangeItems){ - if(item.getId().equalsIgnoreCase(id)){ - result = item; - } - } - if(result==null){ - System.out.println("Id was not found: "+id); - System.out.println("Available id's are:"); - for(IPrevExchangeItem item : exchangeItems){ - System.out.println(" id="+item.getId()); - } - } - return result; - } - COM: <s> find an exchange item in a an array by name </s> - diff --git a/funcom_test/16777644.txt b/funcom_test/16777644.txt deleted file mode 100644 index 6564267227fea50a5d79f9c8381a94bcee653b36..0000000000000000000000000000000000000000 --- a/funcom_test/16777644.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public IVector createRealization() { - if (this.correlated) { - throw new RuntimeException("StochVector.createRealization()not implemented for correlated noise"); - } - TreeVector realization = new TreeVector(this.id); - int i=0; - for (IStochVector child : children) { - if(child instanceof ITreeVector){ - realization.addChild((TreeVector)child.createRealization()); - }else{ - realization.addChild(new TreeVector(id+"_sub"+i,child.createRealization())); - } - i++; - } - return realization; - } - COM: <s> draw a realization from the uncertainty internal to the stoch vector </s> - diff --git a/funcom_test/16777645.txt b/funcom_test/16777645.txt deleted file mode 100644 index 81154769a0cbbbd1f3845659e2c2de1027373994..0000000000000000000000000000000000000000 --- a/funcom_test/16777645.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public double evaluatePdf(IVector tv) { - if (this.correlated) { - throw new RuntimeException("StochVector.evaluatePdf()not implemented for correlated noise"); - } - - double prob = 1.0; - double values[] = tv.getValues(); - int istart=0; - for (IStochVector child : children){ - int length = child.getExpectations().getSize(); - double valuesPart[] = new double[length]; - System.arraycopy(values, istart, valuesPart, 0, values.length); - prob *= child.evaluatePdf(new Vector(valuesPart)); - istart+=length; - } - - return prob; - } - COM: <s> evaluate the probability density function </s> - diff --git a/funcom_test/16777716.txt b/funcom_test/16777716.txt deleted file mode 100644 index c544223d817a5eb6dd6dffc52aabe1a62075b9c1..0000000000000000000000000000000000000000 --- a/funcom_test/16777716.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setExtraValues(String key, double[] extraValues) { - if ((this.times == null) || (this.times.length != extraValues.length)) { - throw new RuntimeException( - "TimeSeries: length for times and extra values do not match."); - } - this.extraValues.put(key, new double[extraValues.length]); - System.arraycopy(extraValues, 0, this.extraValues.get(key), 0, extraValues.length); - } - COM: <s> set an extra value series overwrites an existing series with the same </s> - diff --git a/funcom_test/16777760.txt b/funcom_test/16777760.txt deleted file mode 100644 index a3075781d5295ae752be97d5866e2eec68ce9f48..0000000000000000000000000000000000000000 --- a/funcom_test/16777760.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public IVector getRealizations(){ - //TODO : Now assumes Gaussian distribution implicitly - IVector mean = this.values[this.valueInd]; - IVector std = this.values[this.stdInd]; - IStochVector sv = new StochVector(mean,std); - IVector result = sv.createRealization(); - return result; - } - COM: <s> get realization values for all observations for one ensemble member </s> - diff --git a/funcom_test/16777782.txt b/funcom_test/16777782.txt deleted file mode 100644 index 6c388dfe41e52d712f68177d5dd52c3e1d3b0b30..0000000000000000000000000000000000000000 --- a/funcom_test/16777782.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public IVector evaluateMarginalPDFs(IVector values){ - IVector mean = this.values[this.valueInd]; - IVector std = this.values[this.stdInd]; - StochVector sv = new StochVector(mean,std); - IVector result = sv.evaluateMarginalPDFs(values); - return result; - } - COM: <s> evaluate the pdf for stochastic observations given the values for those observation </s> - diff --git a/funcom_test/16777900.txt b/funcom_test/16777900.txt deleted file mode 100644 index ec20de137072c8914b725a8de671f9eb26843a8d..0000000000000000000000000000000000000000 --- a/funcom_test/16777900.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Mask and(Mask mask) { - if (mask == null || mask.getSize() != this.values.length) throw new RuntimeException(this.sizeMismatch); - for (int i = 0; i < this.values.length; ++i) this.values[i] &= mask.values[i]; - return this; - } - COM: <s> perform an and operation with another mask </s> - diff --git a/funcom_test/16777901.txt b/funcom_test/16777901.txt deleted file mode 100644 index 846a99de55fdf2350e6a827a46a5c4b22d1151b8..0000000000000000000000000000000000000000 --- a/funcom_test/16777901.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Mask or(Mask mask) { - if (mask == null || mask.getSize() != this.values.length) throw new RuntimeException(this.sizeMismatch); - for (int i = 0; i < this.values.length; ++i) this.values[i] |= mask.values[i]; - return this; - } - COM: <s> perform an or operation with another mask </s> - diff --git a/funcom_test/16777932.txt b/funcom_test/16777932.txt deleted file mode 100644 index abaf494a6b00c9add6931b03849cf38e6c737abb..0000000000000000000000000000000000000000 --- a/funcom_test/16777932.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void plot(double[] xVals, double[] yVals, String label){ - // clear the figure - this.xLineValues = new Vector<double[]>(); - this.yLineValues = new Vector<double[]>(); - this.lineLabels = new Vector<String>(); - if(xVals.length!=yVals.length){ - throw new RuntimeException("Attempt to plot vectors of unequal length."); - } - if(xVals.length>1){ - this.xLineValues.add(xVals); - this.yLineValues.add(yVals); - } - this.lineLabels.add(label); - } - COM: <s> clear any existing graph and add a new line plot </s> - diff --git a/funcom_test/16777940.txt b/funcom_test/16777940.txt deleted file mode 100644 index bc3b1b1550db1dfbb103a9929f55f21c73ebcbe1..0000000000000000000000000000000000000000 --- a/funcom_test/16777940.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void readFromFile() { - try { - FileReader fr = new FileReader(this.credentials); - BufferedReader br = new BufferedReader(fr); - this.username = br.readLine(); - this.password = br.readLine(); - br.close(); - fr.close(); - } - catch (Exception e) { - this.username = ""; - this.password = ""; - } - } - COM: <s> ask a file for the username and password </s> - diff --git a/funcom_test/16777945.txt b/funcom_test/16777945.txt deleted file mode 100644 index 39eee52de4971172bb0c8efee005121fc811d1a2..0000000000000000000000000000000000000000 --- a/funcom_test/16777945.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void readFromTerminal() { - while (this.username == null || this.username.isEmpty()) { - this.username = getString("Username: "); - } - while (this.password == null || this.password.isEmpty()) { - this.password = getString("Password: "); - } - } - COM: <s> ask using the terminal for the username and password </s> - diff --git a/funcom_test/16777962.txt b/funcom_test/16777962.txt deleted file mode 100644 index 2b8d0c1d94bf3ad1c23511db776536bb431b8fbb..0000000000000000000000000000000000000000 --- a/funcom_test/16777962.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public IVector diag(){ - int n = Math.min(this.m, this.n); - IVector result = new Vector(n); - for(int i=0;i<n;i++){ - result.setValue(i,this.values[i][i]); - } - return result; - } - COM: <s> extract the diagonal matrix from a vector </s> - diff --git a/funcom_test/16777985.txt b/funcom_test/16777985.txt deleted file mode 100644 index 8cb768aee7abd1c93142ee09c65981f4546f4707..0000000000000000000000000000000000000000 --- a/funcom_test/16777985.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public double stdDev(double average) { - if (this.values == null) return Double.NaN; - - double sumsqdev = 0.0; - int count = 0; - for (double value : this.values) { - if (!Double.isNaN(value)) { - final double dev = (value - average); - sumsqdev += (dev * dev); - ++count; - } - } - - if (count == 0) return Double.NaN; - if (count == 1) return 0.0; - return Math.sqrt(sumsqdev / (count - 1)); - } - COM: <s> calculates the standard deviation of the values in this time series </s> - diff --git a/funcom_test/16778039.txt b/funcom_test/16778039.txt deleted file mode 100644 index cbb84ac6ccf4f593b10e05becdb72e23c4aff26d..0000000000000000000000000000000000000000 --- a/funcom_test/16778039.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public double evaluateFunction(double lagDistance) throws ArithmeticException, IllegalArgumentException { - double sill = this.getSill(); - double range = this.getRange(); - - //The model is isotropic - if (orderOfAnisotropy == ISOTROPIC) { - return sill * (1.0 - Math.exp(-(lagDistance/range))); - } - else { - throw new IllegalArgumentException("Error: the correlation model is two-dimensional. Please specify two- or three-dimensional coordinates."); - } - } - COM: <s> evaluates this isotropic correlation model for the given lag distance </s> - diff --git a/funcom_test/16778070.txt b/funcom_test/16778070.txt deleted file mode 100644 index 4dd99ece7931ab9ec031f51f5f5bf5cae21efd89..0000000000000000000000000000000000000000 --- a/funcom_test/16778070.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void axpy(double alpha, IMatrix X){ - for(int i=0;i<this.m;i++){ - for(int j=0;j<this.n;j++){ - this.values[i][j]+=alpha*X.getValue(i,j); - } - } - } - COM: <s> axpy operation on matrices y alpa x y </s> - diff --git a/funcom_test/16778127.txt b/funcom_test/16778127.txt deleted file mode 100644 index 404ef3242c86e6ca20b61ec3580224404dd3aa55..0000000000000000000000000000000000000000 --- a/funcom_test/16778127.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public double getInverseCDFPoint(double probability) throws ArithmeticException, IllegalArgumentException { - double location = getLocation(); - double scale = getScale(); - - if (probability < 0.0 || probability > 1.0) { - throw new IllegalArgumentException("Incorrect input"); - } else { - return location + ( scale * ( -Math.log( Math.log( 1.0/ (probability) ) ) ) ); - } - } - COM: <s> get the inverse cumulative probability for a given p x x </s> - diff --git a/funcom_test/16778128.txt b/funcom_test/16778128.txt deleted file mode 100644 index 171964942f47a9c9e754d24c6b0dbeb8ab635e2b..0000000000000000000000000000000000000000 --- a/funcom_test/16778128.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double getPDFPoint(double x) throws ArithmeticException { - double shape = this.getShape(); - - if (x < 0) { - throw new IllegalArgumentException("The pdf is undefined for x < 0."); - } else { - return Math.exp( (shape/2.0 - 1.0) * Math.log(x/2.0) - x/2.0 - Mathematics.logGamma(shape/2.0) ) / 2.0; - } - } - COM: <s> get the probability density p x x </s> - diff --git a/funcom_test/16779123.txt b/funcom_test/16779123.txt deleted file mode 100644 index 4cfe5a8385a99bf036323b46326bcf4dae2710b6..0000000000000000000000000000000000000000 --- a/funcom_test/16779123.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setCurrentValues(IVector[] pars) { - this.pCurrent = new IVector[pars.length]; - this.fCurrent = new double[pars.length]; - for (int i = 0; i < pars.length; i++) { - this.pCurrent[i] = pars[i].clone(); - - this.fCurrent[i] = this.f.evaluate(this.pCurrent[i]); - this.predCurrent[i] = this.f.getLastPredictions(); - } - } - COM: <s> set the current sparse dud e </s> - diff --git a/funcom_test/16779243.txt b/funcom_test/16779243.txt deleted file mode 100644 index cac4bc3a68a16f834fb94c86db4ba37f6cbcf67e..0000000000000000000000000000000000000000 --- a/funcom_test/16779243.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void initialize(IVector pInit, IVector[] searchInit){ - this.pMin = pInit; - this.fMin = this.f.evaluate(pInit); - // generate initial perturbations - int n = searchInit.length; - this.pCurrent = pInit; - this.fCurrent = this.fMin; - this.xiCurrent = new IVector[n]; - for(int i=0;i<n;i++){ - xiCurrent[i]=searchInit[i].clone(); - } - } - COM: <s> initializer with start directions </s> - diff --git a/funcom_test/16820857.txt b/funcom_test/16820857.txt deleted file mode 100644 index 13a2ab1c43a161ccb8e01ab6b70c130b453cf3c6..0000000000000000000000000000000000000000 --- a/funcom_test/16820857.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private String getSubID(String strIsdn) throws Exception { - PreparedStatement stmt=null; - ResultSet rs=null; - try { - String strSQL="SELECT sub_id from mc_subscriber WHERE hlr_isdn=?"; - stmt=mcnMain.prepareStatement(strSQL); - stmt.setString(1, strIsdn); - rs=stmt.executeQuery(); - String strResult="(-1"; - while (rs.next()) { - strResult+= "," + rs.getString(1); - } - strResult += ")"; - return strResult; - }finally { - Database.closeObject(stmt); - } - } - COM: <s> tra ve danh sach sub id </s> - diff --git a/funcom_test/16821568.txt b/funcom_test/16821568.txt deleted file mode 100644 index 6015bf7a9dfa29aac88d7635ab31abd9722aeab5..0000000000000000000000000000000000000000 --- a/funcom_test/16821568.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private int getSequence()throws Exception { - PreparedStatement stmtSeq=null; - ResultSet rsSeq=null; - String strSQL="Select hidden_system_seq.nextval from dual"; - try { - stmtSeq = mcnMain.prepareStatement(strSQL); - rsSeq=stmtSeq.executeQuery(); - if(rsSeq.next()) { - return rsSeq.getInt(1); - } - return -1; - } finally { - Database.closeObject(rsSeq); - Database.closeObject(stmtSeq); - } - } - COM: <s> lay sequence bang hidden system </s> - diff --git a/funcom_test/16848321.txt b/funcom_test/16848321.txt deleted file mode 100644 index 1c2f8f5a6d9a9ddca8c9f7817d613bbfecc03db9..0000000000000000000000000000000000000000 --- a/funcom_test/16848321.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JPanel getJPBotones() { - if (jPBotones == null) { - FlowLayout flowLayout = new FlowLayout(); - flowLayout.setHgap(10); - flowLayout.setVgap(5); - jPBotones = new JPanel(); - jPBotones.setLayout(flowLayout); - jPBotones.add(getJBGenerar(), null); - jPBotones.add(getJBCancelar(), null); - } - return jPBotones; - } - COM: <s> this method initializes j pbotones </s> - diff --git a/funcom_test/16848343.txt b/funcom_test/16848343.txt deleted file mode 100644 index a5b8c344447171d28b255ec88d7d42d564de12ff..0000000000000000000000000000000000000000 --- a/funcom_test/16848343.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private MyCalendar getJCalendar() { - if (jCalendar == null) { - jCalendar = new MyCalendar(); - jCalendar.addChangeDateListener(new ChangeDateListener(){ - public void dateChanged(ChangeDateEvent e){ - cargarHoras(e.getValue()); - SimpleDateFormat df = new SimpleDateFormat("EEEE d 'de' MMMM 'de' yyyy"); - jLTitulo.setText("Horas invertidas el " + df.format(e.getDate())); - } - }); - } - return jCalendar; - } - COM: <s> this method initializes j calendar </s> - diff --git a/funcom_test/16848349.txt b/funcom_test/16848349.txt deleted file mode 100644 index bf5917f272e5323e9674325ef12e977fdb2f802d..0000000000000000000000000000000000000000 --- a/funcom_test/16848349.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private MyIntegerField getJTFAnalisis() { - if (jTFAnalisis == null) { - jTFAnalisis = new MyIntegerField(); - jTFAnalisis.addUpdateIntegerListener(new UpdateIntegerListener(){ - public void valueUpdated(UpdateIntegerEvent e) { - ch.fijaHorasAnalisis(jCalendar.getStringDate(), e.getValue()); - actualizaHorasTotales(jCalendar.getStringDate()); - } - }); - } - return jTFAnalisis; - } - COM: <s> this method initializes j tfanalisis </s> - diff --git a/funcom_test/16848359.txt b/funcom_test/16848359.txt deleted file mode 100644 index 9e08dda83b35c621d31626ee7b127f72a0be4d7b..0000000000000000000000000000000000000000 --- a/funcom_test/16848359.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private MyIntegerField getJTFPruebas() { - if (jTFPruebas == null) { - jTFPruebas = new MyIntegerField(); - jTFPruebas.addUpdateIntegerListener(new UpdateIntegerListener(){ - public void valueUpdated(UpdateIntegerEvent e) { - ch.fijaHorasPruebas(jCalendar.getStringDate(), e.getValue()); - actualizaHorasTotales(jCalendar.getStringDate()); - } - }); - } - return jTFPruebas; - } - COM: <s> this method initializes j tfpruebas </s> - diff --git a/funcom_test/16918308.txt b/funcom_test/16918308.txt deleted file mode 100644 index 53c33e5b8f768d018f293a8a36e4e778bc1adf50..0000000000000000000000000000000000000000 --- a/funcom_test/16918308.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: static public void main(String[] arg) { - - XMPPManager connectionManager = new XMPPManager(); - DefaultController controller = new DefaultController(); - jTalkFrame jtalkView = new jTalkFrame(controller); - - controller.addModel(connectionManager); - - Runtime.getRuntime().addShutdownHook(new Shutdown(connectionManager)); - - jtalkView.setVisible(true); - - } - COM: <s> creates a new instance of main </s> - diff --git a/funcom_test/1693038.txt b/funcom_test/1693038.txt deleted file mode 100644 index 08fbbd3b8315f8ccd63f2e82a6ccd3f608dacd84..0000000000000000000000000000000000000000 --- a/funcom_test/1693038.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void sendMessage(SimpleMailMessage msg, String templateName, Map model) { - String result = null; - - try { - result = - VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, - templateName, model); - } catch (VelocityException e) { - e.printStackTrace(); - } - - msg.setText(result); - send(msg); - } - COM: <s> send a simple message based on a velocity template </s> - diff --git a/funcom_test/1694508.txt b/funcom_test/1694508.txt deleted file mode 100644 index 3007fd7fc4c9e9ccd53d7cff001210591f7ed024..0000000000000000000000000000000000000000 --- a/funcom_test/1694508.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String processCommand(String command) throws Exception { - // output string - String outputStr = ""; - String outputLine; - // init the Java Process class and exection the command - Process process = Runtime.getRuntime().exec(command); - // init buffered reader object and get the process's input stream - BufferedReader bufferedReader = new BufferedReader( - new InputStreamReader(process.getInputStream())); - // get the output data - while ((outputLine = bufferedReader.readLine()) != null) { - outputStr += outputLine + "\n"; - } - process.destroy(); - return outputStr; - } - COM: <s> string command will be preform command return the output from the </s> - diff --git a/funcom_test/1694531.txt b/funcom_test/1694531.txt deleted file mode 100644 index fb9b08bf5f84ce45cb00a7dfee23966396dbc151..0000000000000000000000000000000000000000 --- a/funcom_test/1694531.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private String getUserNameFromCookie() throws Exception { - String userName = null; - // get user name - Cookie[] cookies = servletRequest.getCookies(); - for (int i = 0; i < cookies.length; i++) { - Cookie cookie = cookies[i]; - if (cookie != null && cookie.getName().equals("platform.username")) { - String value = cookie.getValue(); - userName = DesEncrypter.getInstance().decrypt(value); - break; - } - } - - return userName; - - } - COM: <s> get users name from cookie </s> - diff --git a/funcom_test/16955339.txt b/funcom_test/16955339.txt deleted file mode 100644 index deb117b444a588c20c3e7b68b984deb3fd12e3a2..0000000000000000000000000000000000000000 --- a/funcom_test/16955339.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void onTearDown() throws Exception { - application = null; - config = null; - externalContext = null; - facesContext.release(); - facesContext = null; - lifecycle = null; - lifecycleFactory = null; - renderKit = null; - request = null; - response = null; - servletContext = null; - session = null; - FactoryFinder.releaseFactories(); - - Thread.currentThread().setContextClassLoader(threadContextClassLoader); - threadContextClassLoader = null; - } - COM: <s> p tear down instance variables required by this test case </s> - diff --git a/funcom_test/16958671.txt b/funcom_test/16958671.txt deleted file mode 100644 index e2b2e37420188086bbe1ed66d59d4d992be52d91..0000000000000000000000000000000000000000 --- a/funcom_test/16958671.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected boolean getInput() { - BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); - - choice = 0; - - // read the username from the command-line; need to use try/catch with - // the - // readLine() method - try { - choice = Integer.parseInt(br.readLine()); - return true; - } catch (IOException ioe) { - display.scroll("Invalid Command"); - display.printScreen(); - return false; - } - catch(NumberFormatException nfe){ - display.scroll("Input Invalid"); - display.printScreen(); - return false; - } - } - COM: <s> depracated use the get input that uses range parameters </s> - diff --git a/funcom_test/16958709.txt b/funcom_test/16958709.txt deleted file mode 100644 index cf498c327e9124b9567785747026a235baacc2c9..0000000000000000000000000000000000000000 --- a/funcom_test/16958709.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void scroll(String s){ - int x,y; - String temp; - // run x from ROWS-CHATSIZE+1 to ROWS-1 - // eg, 21 to 23 - for(x=ROWS-CHATSIZE+1; x<ROWS; x++){ - // run y from 0 to COLS-1 - for(y=0; y<COLS; y++){ - this.putCharAt(screen[x][y], x-1,y); - this.putCharAt(' ', x, y); - } - } - this.putStringAt(s,ROWS-1,0); - - } - COM: <s> prints a string on the bottom of the chat box at the bottom </s> - diff --git a/funcom_test/16958722.txt b/funcom_test/16958722.txt deleted file mode 100644 index 63818582647d4365c7ee6eb556eaf95888ca81df..0000000000000000000000000000000000000000 --- a/funcom_test/16958722.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public String indexToLetter(int index) { - if (index == 0) - return "a"; - else if (index == 1) - return "b"; - else if (index == 2) - return "c"; - else if (index == 3) - return "d"; - else if (index == 4) - return "e"; - else if (index == 5) - return "f"; - else if (index == 6) - return "g"; - else if (index == 7) - return "h"; - else if (index == 8) - return "i"; - else if (index == 9) - return "j"; - else - return null; - } - COM: <s> converts the given integer into a character for the coordinate system </s> - diff --git a/funcom_test/16958733.txt b/funcom_test/16958733.txt deleted file mode 100644 index de73ce24af0d6c87bf5d310ab8cb65ba5885732b..0000000000000000000000000000000000000000 --- a/funcom_test/16958733.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean isOccupied(int x, int y){ - if(myBoard.carrier.get_position(x, y)) - return true; - if(myBoard.battleship.get_position(x, y)) - return true; - if(myBoard.cruiser.get_position(x, y)) - return true; - if(myBoard.submarine.get_position(x, y)) - return true; - if(myBoard.patrolboat.get_position(x, y)) - return true; - - return false; - } - COM: <s> checks to see if the given coordinate is occupied </s> - diff --git a/funcom_test/17037265.txt b/funcom_test/17037265.txt deleted file mode 100644 index e22f50f7c2ab959f724a218c4e0a764bc1910282..0000000000000000000000000000000000000000 --- a/funcom_test/17037265.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public long getTimeInMillis() { - Calendar zeroCalendar = Calendar.getInstance(); - zeroCalendar.set(0,0,0,0,0,0); - zeroCalendar.set(Calendar.MILLISECOND, 0); - - return _value.getTimeInMillis() - zeroCalendar.getTimeInMillis(); - } - COM: <s> returns the time in milliseconds since midnight in utc </s> - diff --git a/funcom_test/17037351.txt b/funcom_test/17037351.txt deleted file mode 100644 index cc56fd9e8956919750ea124bc66908542c75c878..0000000000000000000000000000000000000000 --- a/funcom_test/17037351.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void writeXsiType(XmlOutputStream out, String typeNS, String type) throws IOException { - String prefix = out.getPrefix(typeNS); - - if (prefix == null || "".equals(prefix)) { - out.writeAttribute(Constants.SCHEMA_INSTANCE_NS, "type", type); - } else { - out.writeAttribute(Constants.SCHEMA_INSTANCE_NS, "type", prefix + ":" + type); - } - } - COM: <s> write xsi type </s> - diff --git a/funcom_test/17037848.txt b/funcom_test/17037848.txt deleted file mode 100644 index 34c67f327acef6de6a398c505bd78b78fcbf8d08..0000000000000000000000000000000000000000 --- a/funcom_test/17037848.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getDotNetType(Field field) { - if (field.getType().equals("int")) { - return "int"; - } - else if (field.getType().equals("boolean")) { - return "bool"; - } - else if (field.getType().equals("double")) { - return "double"; - } - else { - return "string"; - } - } - COM: <s> this method attempts to match the salesforce sobject field type to dot net </s> - diff --git a/funcom_test/17037855.txt b/funcom_test/17037855.txt deleted file mode 100644 index 4c08f7feb6ebfa434fb1c3ddc4f570cd286ab8ae..0000000000000000000000000000000000000000 --- a/funcom_test/17037855.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getJavaType(Field field) { - if (field.getType().equals("int")) { - return "Integer"; - } - else if (field.getType().equals("boolean")) { - return "Boolean"; - } - else if (field.getType().equals("double")) { - return "Double"; - } - else { - return "String"; - } - } - COM: <s> this method attempts to match the salesforce sobject field type to java </s> - diff --git a/funcom_test/17092152.txt b/funcom_test/17092152.txt deleted file mode 100644 index 3da4b2873faa19410d05eaf7598ce18b17602f4d..0000000000000000000000000000000000000000 --- a/funcom_test/17092152.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: protected void selectByFieldValue(final String widgetId, final String field, final String value) { -// ensureDataGridRowVisible(widgetId, field, value, true); - Assert.assertEquals(ACTION_SUCCESS, flexSelenium.selectMatchingOnField(widgetId, field, value)); - } - COM: <s> select an element from a list </s> - diff --git a/funcom_test/17110417.txt b/funcom_test/17110417.txt deleted file mode 100644 index d9c43b31e52d227626620db9075ed38e35b01c42..0000000000000000000000000000000000000000 --- a/funcom_test/17110417.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addUserOverviewPanel(String username) { - if (tabs.containsKey(username)) { - UserOverviewPanel albumOverviewPanel = (UserOverviewPanel) tabs - .get(username); - albumOverviewPanel.refresh(); - gotoTab(albumOverviewPanel); - } else { - UserOverviewPanel albumOverviePanel = new UserOverviewPanel( - m_Main.getClientServerConnectorAsync(), this, username, - loggedIn); - tabs.put(username, albumOverviePanel); - addTab(albumOverviePanel); - } - } - COM: <s> add a user overview panel to the center panel </s> - diff --git a/funcom_test/17121849.txt b/funcom_test/17121849.txt deleted file mode 100644 index a1f0774f3373b333f0846a1e45b13ab922e5ab3a..0000000000000000000000000000000000000000 --- a/funcom_test/17121849.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private boolean matchFeatures(Scmlog log) { - return (Tstamp.diff(logStamp, Tstamp.makeTimestamp(log.getDate().getTime())) < MINIMAL_INTERVAL_BETWEEN_COMMITS) - && (00 == comment.compareToIgnoreCase(log.getMessage())) - && (committer.equals(log.getCommitter_id())); - } - COM: <s> compare the features </s> - diff --git a/funcom_test/17121898.txt b/funcom_test/17121898.txt deleted file mode 100644 index 84b9bfa33176aff1d727e43f8842c8e01e63c1b1..0000000000000000000000000000000000000000 --- a/funcom_test/17121898.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int compareTo(TPoint o) { - if ((this.value == o.value()) && (this.tstamp == o.tstamp())) { - return 0; - } - else if (this.tstamp > o.tstamp) { - return 1; - } - else if (this.tstamp < o.tstamp) { - return -1; - } - else if (this.value > o.value) { - return 1; - } - return -1; - } - COM: <s> compares the tpoint object with other tpoint using timestamps first i </s> - diff --git a/funcom_test/17176380.txt b/funcom_test/17176380.txt deleted file mode 100644 index 2214aeeec6bfc5f4eadfbc604081a0f2d04b6b04..0000000000000000000000000000000000000000 --- a/funcom_test/17176380.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getFechaSQL() { - Calendar ca = Calendar.getInstance(); - if (fecha == null) { - return ""; - } - ca.setTime(fecha); - - String res = String.valueOf(ca.get(Calendar.YEAR)) + "-" + - String.valueOf(ca.get(Calendar.MONTH) + 1) + "-" + - String.valueOf(ca.get(Calendar.DAY_OF_MONTH)); - - return res; - } - COM: <s> devuelve un string con la fecha con formato yyyy mm dd </s> - diff --git a/funcom_test/17277252.txt b/funcom_test/17277252.txt deleted file mode 100644 index f96bdf64cd33ebdd49ecc794be529ce0599b94d1..0000000000000000000000000000000000000000 --- a/funcom_test/17277252.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void switchRotationMode() { - this.mode = UserMode.Rotating; - setCursor(new Cursor(Cursor.MOVE_CURSOR)); - if (selection.isEmpty()) { - infoBar.printMessage("Please select a shape or a transformation first."); - } else { - infoBar.printMessage("Click to rotate the selection."); - } - } - COM: <s> switches the current mode to the rotating mode </s> - diff --git a/funcom_test/17277266.txt b/funcom_test/17277266.txt deleted file mode 100644 index ca52c056e03a73ea46f41419d1498f53408435ac..0000000000000000000000000000000000000000 --- a/funcom_test/17277266.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void switchShearMode() { - this.mode = UserMode.Shearing; - setCursor(new Cursor(Cursor.E_RESIZE_CURSOR)); - if (selection.isEmpty()) { - infoBar.printMessage("Please select a shape or a transformation first."); - } else { - infoBar.printMessage("Click to shear the selection."); - } - } - COM: <s> switches the current mode to the shearing mode </s> - diff --git a/funcom_test/17277303.txt b/funcom_test/17277303.txt deleted file mode 100644 index 7556875ca97e43fed8f6b5157a51e97e4f71088f..0000000000000000000000000000000000000000 --- a/funcom_test/17277303.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void groupCurrentSelection() { - if (!selection.isEmpty()) { - - Group gr = new Group(new View(Window.sceneGraph.getView())); - - int i = selection.size(); - while (i-- > 0) { - SceneGraph sg = selection.get(i); - gr.add(sg); - } - - Window.sceneGraph.add(gr); - - selection.clear(); - selection.add(gr); - - repaintPanel(); - } - } - COM: <s> groups the current selection </s> - diff --git a/funcom_test/17277396.txt b/funcom_test/17277396.txt deleted file mode 100644 index 47fa0204adfa083556f9f277f8e70f02e8ddfa37..0000000000000000000000000000000000000000 --- a/funcom_test/17277396.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void copyCurrentSelection() { - if (!selection.isEmpty()) { - for (Enumeration<SceneGraph> en = selection.elements(); en.hasMoreElements();) { - Window.sceneGraph.add(en.nextElement().clone()); - } - selection.removeAllElements(); - repaintPanel(); - } - } - COM: <s> copies the current selection </s> - diff --git a/funcom_test/17277416.txt b/funcom_test/17277416.txt deleted file mode 100644 index a04c494f44181679cbb533a9238072b7a796c951..0000000000000000000000000000000000000000 --- a/funcom_test/17277416.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void deleteCurrentSelection() { - if (!selection.isEmpty()) { - for (Enumeration<SceneGraph> en = selection.elements(); en.hasMoreElements();) { - Window.sceneGraph.remove(en.nextElement()); - } - selection.removeAllElements(); - repaintPanel(); - } - } - COM: <s> deletes the current selection </s> - diff --git a/funcom_test/17277499.txt b/funcom_test/17277499.txt deleted file mode 100644 index 91a3a36e06a189cfe3a993975f88cdf5324eea7e..0000000000000000000000000000000000000000 --- a/funcom_test/17277499.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void displayPopupMenu(MouseEvent e) { - if (e.isPopupTrigger() && this.mode == UserMode.Selecting) { - if (selection.size() > 0) { - popupMenu.show(this, e.getX(), e.getY()); - } - } - } - COM: <s> displays a context menu when a right click is done </s> - diff --git a/funcom_test/17285225.txt b/funcom_test/17285225.txt deleted file mode 100644 index 9db2438f8146a53d8c21ffea0004e6dc6c183116..0000000000000000000000000000000000000000 --- a/funcom_test/17285225.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean registerUser(int clientId, String name, String password, String bday, String country, String city , byte[] picture, PublicKeyPair publicKeyPair , Certificate certificate) { - User user = new User(name , password, bday , country, city, picture, publicKeyPair, certificate); - synchronized (allUsers) { - return (allUsers.put(clientId, user)==null); - } - } - COM: <s> adds a new user to the users table </s> - diff --git a/funcom_test/17285259.txt b/funcom_test/17285259.txt deleted file mode 100644 index 9e080e6b778dcf7aa85d56a1a9dcf22b1140c48d..0000000000000000000000000000000000000000 --- a/funcom_test/17285259.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void init(Certificate cf){ - try { - _out = new BufferedOutputStream(_sock.getOutputStream()); //initialize output stream - byte[] b = SecurityHandler.encrypt(SecurityHandler.getBytes(new Packet(cf)), _key); //encrypt and send the certificate to the other client - _out.write(b); - _out.flush(); - } catch (Exception e) { - SecurityHandler.catchException("initializing chat sender", e, true); - //e.printStackTrace(); - } - } - COM: <s> initialize the message sender for a chat starter </s> - diff --git a/funcom_test/17285264.txt b/funcom_test/17285264.txt deleted file mode 100644 index 0e89bdfa9cda564b7285a31a6d4e0dc47c895f03..0000000000000000000000000000000000000000 --- a/funcom_test/17285264.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void logout(){ - try { - sendEncryptedMessage(new LogoutPacket()); //sends logout request to the server - getMessage(); - } catch (Exception e){ - SecurityHandler.catchException("logging out", e , true); - //e.printStackTrace(); - } - try{ - //disconnects from the server - disconnect(); - } catch (IOException e) { - GuiFacade.getInstance().showErrorMessage("Some error occured while logging out"); - } - _currUser = null; - //shows the login screen - GuiFacade.getInstance().showLogin(); - } - COM: <s> sends a logout request to the server and disconnects </s> - diff --git a/funcom_test/17285268.txt b/funcom_test/17285268.txt deleted file mode 100644 index 4e09f6da3dea944ccb53030df0477b4c2d767d74..0000000000000000000000000000000000000000 --- a/funcom_test/17285268.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void close(){ - try { - byte[] text = SecurityHandler.getBytes(new Packet((String)null)); //serialize a null message - byte[] encryptText = SecurityHandler.encrypt(text,_key); //encrypts the message - _out.write(encryptText); //sends the message - _out.close(); - } catch (Exception e) { - SecurityHandler.catchException("closing chat", e, true); - //e.printStackTrace(); - } - } - COM: <s> closes the message sending channel by sending a null message </s> - diff --git a/funcom_test/17285317.txt b/funcom_test/17285317.txt deleted file mode 100644 index 6e0d62efa5c8bdd24edecc5d7171c9c089403a3f..0000000000000000000000000000000000000000 --- a/funcom_test/17285317.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void whosOnline(){ - try { - sendEncryptedMessage(new WhosOnlinePacket()); //sends the server a whosonline request - UserList users = getUserListReply(); //receive the server's reply (which is a list of the online users) - GuiFacade.getInstance().showWhoIsOnline(users); //shows the online users in a window - } catch (Exception e){ - SecurityHandler.catchException("requesting whos online list", e , true); - } - } - COM: <s> ask the server for a list of the online users </s> - diff --git a/funcom_test/17285334.txt b/funcom_test/17285334.txt deleted file mode 100644 index e594ca76b706a853e39d6e30270aed9ca0537d31..0000000000000000000000000000000000000000 --- a/funcom_test/17285334.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void allUsers(){ - try { - sendEncryptedMessage(new AllUsersPacket()); //sends the server an allusers request - UserList users = getUserListReply(); //receive the server's reply (which is a list of the users) - GuiFacade.getInstance().showAllUsers(users); //shows the users in a window - } catch (Exception e){ - SecurityHandler.catchException("requesting all users list", e , true); - } - } - COM: <s> requests the server for a list of all users </s> - diff --git a/funcom_test/17285345.txt b/funcom_test/17285345.txt deleted file mode 100644 index c2e0984b391426007cfd50c5113c756231f392ab..0000000000000000000000000000000000000000 --- a/funcom_test/17285345.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void update(InetSocketAddress inetAddress, PrivateKey signKey) throws Exception{ - CertificateData old_c; - old_c = (CertificateData)SecurityHandler.getObject(_data); - _data = SecurityHandler.getBytes(new CertificateData(old_c.getId() , old_c.getKey(), inetAddress.getAddress() , inetAddress.getPort())); - _signature = SecurityHandler.sign(_data, signKey); - } - COM: <s> updates the ip address and port of the </s> - diff --git a/funcom_test/17288968.txt b/funcom_test/17288968.txt deleted file mode 100644 index 0856257c60df2a788aec79a728c6bd30f7d55f7f..0000000000000000000000000000000000000000 --- a/funcom_test/17288968.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void validateIndexValue(Object indexValue) { - if (!converter.getItemType().isAssignableFrom(indexValue.getClass())) { - throw new IllegalArgumentException("Value " + indexValue + " is not of a valid type. Expected " + converter.getItemType().getSimpleName() + ", found " + indexValue.getClass().getSimpleName()); - } - } - COM: <s> validate a value to be added removed from this index </s> - diff --git a/funcom_test/1731945.txt b/funcom_test/1731945.txt deleted file mode 100644 index cc4640df9aaae66795fa3cf5232282e8296b774d..0000000000000000000000000000000000000000 --- a/funcom_test/1731945.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public InputStream getHTTSPage(String url) { - URL myURL; - try { - myURL = new URL(url); - InputStream is = myURL.openStream(); - return is; - } catch (MalformedURLException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - return null; - } - COM: <s> return an input stream representing the given url </s> - diff --git a/funcom_test/1736133.txt b/funcom_test/1736133.txt deleted file mode 100644 index 9f832ae0072fe34a0e0170567360940ab8e28c71..0000000000000000000000000000000000000000 --- a/funcom_test/1736133.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List findByKeyword(String keyword) { - log.debug("finding TblProjectActivity instance with keyword: " + keyword); - try { - String queryString = "from TblProjectActivity as model where lower(model.tblActivity.title) like ?"; - getHibernateTemplate().setMaxResults(Constants.HIBERNATE_MAX_RESULT); - getHibernateTemplate().setFetchSize(Constants.HIBERNATE_FETCH_SIZE); - return getHibernateTemplate().find( - queryString, new Object[] { keyword }); - } catch (RuntimeException re) { - log.error("find by keyword failed", re); - throw re; - } - } - COM: <s> this method retrieves a list of project activities using a keyword </s> - diff --git a/funcom_test/17361374.txt b/funcom_test/17361374.txt deleted file mode 100644 index 2b5c230d1a6b04764cf9879af40cffb8d996a27e..0000000000000000000000000000000000000000 --- a/funcom_test/17361374.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void writeOut(DataOutputStream out) throws IOException { - out.write((byte) this.packetType & 0xff); - if ((this.packetType >= INT_LOWER) && (packetType <= INT_UPPER)) - out.writeInt(this.intData); - else if (packetType >= STR_LOWER && packetType <= STR_UPPER) - out.writeUTF(this.strData); - } - COM: <s> writes atmpacket to a stream </s> - diff --git a/funcom_test/1736211.txt b/funcom_test/1736211.txt deleted file mode 100644 index 88ae0481bc790cc4d67521658f483fc84266fefb..0000000000000000000000000000000000000000 --- a/funcom_test/1736211.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List findByYear(Integer year) { - log.debug("finding TblProject instances on a specified year: " + year); - Calendar cal = Calendar.getInstance(); - cal.clear(); - cal.set(year.intValue(), Calendar.JANUARY, 1, 0, 0, 0); - Date start = cal.getTime(); - - cal.clear(); - cal.set(year.intValue(), Calendar.DECEMBER, 31, 23, 59, 59); - Date end = cal.getTime(); - - return findByDateRange (start,end); - } - COM: <s> this method returns all projects on specified year </s> - diff --git a/funcom_test/1736289.txt b/funcom_test/1736289.txt deleted file mode 100644 index d7a091119633e6ad153e6d7a7e41ed68dce8c46f..0000000000000000000000000000000000000000 --- a/funcom_test/1736289.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void resetSchedConflict() { - try { - if (listData == null || listData.size() == 0) - return; - for (int i = 0; i < listData.size(); i++) { - TblAuditor auditor = (TblAuditor) listData.get(i); - auditor.setSchedConflict(false); - } - } catch (Exception ex) { - logger.error(ex); - FacesUtils.addErrorMessage(ex.getMessage()); - } - } - COM: <s> this method resets schedule conflict </s> - diff --git a/funcom_test/1736361.txt b/funcom_test/1736361.txt deleted file mode 100644 index b0eed6d7fb5bb5d5c7ef15fb6be4c3c19882ce01..0000000000000000000000000000000000000000 --- a/funcom_test/1736361.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setFinding(Integer findingId) { - if (findings == null || findings.size() == 0) - return; - for (int i = 0; i < findings.size(); i++) { - ProjectRecommendFindingHelper helper = (ProjectRecommendFindingHelper) findings.get(i); - if (helper.getFindingId().intValue() == findingId.intValue()) - helper.setChecked(true); - else - helper.setChecked(false); - } - } - COM: <s> this method sets checkbox for a list of findings </s> - diff --git a/funcom_test/1736410.txt b/funcom_test/1736410.txt deleted file mode 100644 index 1abfc75643d6403c853f381e7414b257067e6fd7..0000000000000000000000000000000000000000 --- a/funcom_test/1736410.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void removeSelection(List set, String idToRemove) { - if (set != null) { - int idx = 0; - for (Iterator it = set.iterator(); it.hasNext();) { - SelectItem item = (SelectItem) it.next(); - if (item.getValue().toString().equals(idToRemove)) { - set.remove(idx); - return; - } - idx++; - } - }// end if - } - COM: <s> this method removes an item from a list </s> - diff --git a/funcom_test/1736412.txt b/funcom_test/1736412.txt deleted file mode 100644 index 6f2ac34888e5a353536586d0dd6c97d32a5ba1e6..0000000000000000000000000000000000000000 --- a/funcom_test/1736412.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void fillOutReasonCode() { - List list = notificationReasonCodeService.findAllReasonCode(); - if (list == null || list.size() == 0) { - reasonCodeList = null; - return; - } - - reasonCodeList = new ArrayList(); - for (int i = 0; i < list.size(); i++) { - TblReasonCode item = (TblReasonCode) list.get(i); - reasonCodeList.add(new SelectItem(item.getReasoncodeid(), item.getDescription())); - } - } - COM: <s> this method fills out the list of reason codes from the database </s> - diff --git a/funcom_test/1736423.txt b/funcom_test/1736423.txt deleted file mode 100644 index d209fdcc49400d956750514fe2bf487a9dbb9f67..0000000000000000000000000000000000000000 --- a/funcom_test/1736423.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void fillUnselectedPICList() throws IASException { - unSelectedPics = new ArrayList(); - List users = userService.findPicUsersByKeyword(""); - for (Iterator itUsers = users.iterator(); itUsers.hasNext();) { - TblUser userPic = (TblUser) itUsers.next(); - unSelectedPics.add(new SelectItem(userPic.getUserId().toString(), userPic.getFullname())); - } - } - COM: <s> this method fills unselected pic list </s> - diff --git a/funcom_test/1736641.txt b/funcom_test/1736641.txt deleted file mode 100644 index 4bcf6cca34e993a029c62ea97d48757d8ae985b3..0000000000000000000000000000000000000000 --- a/funcom_test/1736641.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void doCurYear(ActionEvent event) { - try { - logger.debug("ProjectListBean.doCurYear"); - listData = projectService.findAllCurYear(); - // listData = projectService.findProjectsByRiskIds(new String("'1', - // '2'")); - if (listData.size() == 0) - throw new IASException("There is no audit project on current year."); - populateList(); - this.lastButtonClicked = ProjectListBean.DO_CUR_YEAR; - } catch (Exception ex) { - logger.error(ex); - FacesUtils.addErrorMessage(ex.getMessage()); - } - } - COM: <s> this method is to fill out the list with all current year projects </s> - diff --git a/funcom_test/1736645.txt b/funcom_test/1736645.txt deleted file mode 100644 index 80fc887effbb860b4b83109760789ca581450e36..0000000000000000000000000000000000000000 --- a/funcom_test/1736645.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void doPrevYear(ActionEvent event) { - try { - logger.debug("ProjectListBean.doPrevYear"); - listData = projectService.findAllPrevYear(); - if (listData.size() == 0) - throw new IASException("There is no audit project on previous year."); - populateList(); - this.lastButtonClicked = ProjectListBean.DO_PREV_YEAR; - } catch (Exception ex) { - logger.error(ex); - FacesUtils.addErrorMessage(ex.getMessage()); - } - } - COM: <s> this method is to fill out the list with all last year projects </s> - diff --git a/funcom_test/1736648.txt b/funcom_test/1736648.txt deleted file mode 100644 index 0a7d6fb066284bac9a546dc08384cc066fac495e..0000000000000000000000000000000000000000 --- a/funcom_test/1736648.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void doNextYear(ActionEvent event) { - try { - logger.debug("ProjectListBean.doNextYear"); - listData = projectService.findAllNextYear(); - if (listData.size() == 0) - throw new IASException("There is no audit project on next year."); - populateList(); - this.lastButtonClicked = ProjectListBean.DO_NEXT_YEAR; - } catch (Exception ex) { - logger.error(ex); - FacesUtils.addErrorMessage(ex.getMessage()); - } - } - COM: <s> this method is to fill out the list with all next year projects </s> - diff --git a/funcom_test/1737238.txt b/funcom_test/1737238.txt deleted file mode 100644 index cb8a38d883755c73beb0d0a33bb872f86cfacd33..0000000000000000000000000000000000000000 --- a/funcom_test/1737238.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List findAll() { - log.debug("finding all TblAuditor instances"); - try { - String queryString = "from TblAuditor "; - return getHibernateTemplate().find(queryString); - } catch (RuntimeException re) { - log.error("find all instances failed", re); - throw re; - } - } - COM: <s> this method retrieves all tbl auditor instances </s> - diff --git a/funcom_test/1738728.txt b/funcom_test/1738728.txt deleted file mode 100644 index be7e616fb84c8e50eda3f4517ab476245f15b312..0000000000000000000000000000000000000000 --- a/funcom_test/1738728.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List findAll () { - log.debug("finding all TblGroup instances with property"); - try { - String queryString = "from TblGroup"; - return getHibernateTemplate().find(queryString); - } catch (RuntimeException re) { - log.error("find all instances failed", re); - throw re; - } - } - COM: <s> this method returns all instances </s> - diff --git a/funcom_test/1738870.txt b/funcom_test/1738870.txt deleted file mode 100644 index 37ab3a36fd723939c7ba2f15216a829e7b041739..0000000000000000000000000000000000000000 --- a/funcom_test/1738870.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean checkSecurity(int securityId) { - - if (tblAppSecurityHash == null) - return false; - Short valueInHash = (Short) tblAppSecurityHash.get(new Integer(securityId)); - if (valueInHash == null) - return false; // not found - if (valueInHash.intValue() == 0) - return false; - else - return true; - } - COM: <s> this method checks if a security variable has been set true </s> - diff --git a/funcom_test/1738897.txt b/funcom_test/1738897.txt deleted file mode 100644 index adfad680d1ea0ce5c93867ee12c96b88f76880b4..0000000000000000000000000000000000000000 --- a/funcom_test/1738897.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setMColumns(List a) { - if (a != null) { - Iterator it = a.iterator(); - mColumns = new ArrayList(); - int index = 0; - while (it.hasNext()) { - mColumns.add(new ColumnBean(index++, it.next().toString(), this)); - } - } - } - COM: <s> a must be of type string </s> - diff --git a/funcom_test/1739039.txt b/funcom_test/1739039.txt deleted file mode 100644 index 040439b0dc07c11bc01b06cc87dddef49cbca9b1..0000000000000000000000000000000000000000 --- a/funcom_test/1739039.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String doSave() { - - try { - this.appVariablesService.updateModel(tblAppVariables); - - getFacesContext().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Save successful", "")); - - } catch (IASException e) { - getFacesContext().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, e.getCode(), "")); - } - - return doCancel(); - } - COM: <s> this method is to save application variables </s> - diff --git a/funcom_test/1741129.txt b/funcom_test/1741129.txt deleted file mode 100644 index 9308e154ca6c7ecab86eee3c5dcb0a17a00707fd..0000000000000000000000000000000000000000 --- a/funcom_test/1741129.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void otherDoEndTagOperations() { - // - // TODO: code that performs other operations in doEndTag - // should be placed here. - // It will be called after initializing variables, - // finding the parent, setting IDREFs, etc, and - // before calling shouldEvaluateRestOfPageAfterEndTag(). - // - } - COM: <s> method called from do end tag </s> - diff --git a/funcom_test/1741262.txt b/funcom_test/1741262.txt deleted file mode 100644 index d1f281426b60c48a33eb794b797fe36720009574..0000000000000000000000000000000000000000 --- a/funcom_test/1741262.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getActiveFunctions() { - List list = projectService.findAllActiveFunction(); - if (list==null) - return null; - List ret = new ArrayList(); - for (int i = 0 ; i<list.size() ; i++) { - TblFunction func = (TblFunction) list.get(i); - ret.add(new SelectItem(func.getFunctionid(), func.getFunctionname())); - } - ret.add(new SelectItem(new Integer(0), new String(" "))); - return ret; - } - COM: <s> this method returns a list of all active functions </s> - diff --git a/funcom_test/17437046.txt b/funcom_test/17437046.txt deleted file mode 100644 index f61df6477131d9442cefc8b9a15969d34b2829f0..0000000000000000000000000000000000000000 --- a/funcom_test/17437046.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void sendPacket(byte[] data) throws IOException { - synchronized (this) { - // this is time consuming.. only enable for debugging - - - { - System.out.println("\n" + printData(data, data.length, "[S->C]")); - } - - _out.write(data, 0, data.length); - _out.flush(); - } - } - COM: <s> this method will be called indirectly by several threads to notify one </s> - diff --git a/funcom_test/17437047.txt b/funcom_test/17437047.txt deleted file mode 100644 index c37f9f5dda764162ed0e48c06be42ae885d78522..0000000000000000000000000000000000000000 --- a/funcom_test/17437047.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void registeNewCommand(GsBaseCommand com) { - System.out.println("Register New Command '" + com.getCmdString() + "' - " + com.getShortDesc()); - _commands.put(com.getCmdString().toLowerCase(), com); - _commandsA.add(com); - } - COM: <s> registe new command com </s> - diff --git a/funcom_test/17437051.txt b/funcom_test/17437051.txt deleted file mode 100644 index 4606422c5f8a78bf0171d1c3442157255c156c71..0000000000000000000000000000000000000000 --- a/funcom_test/17437051.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String GetHelpStr(String Com) { - System.out.println("try gethelp for: '" + Com + "'"); - GsBaseCommand commandToExecute = (GsBaseCommand) _commands.get(Com); - if (commandToExecute == null) { - return Com + ": Command not exist!!!"; - } - return commandToExecute.getHelpToCommand(); - } - COM: <s> get help string for selected command </s> - diff --git a/funcom_test/17437196.txt b/funcom_test/17437196.txt deleted file mode 100644 index c301cc0887553b581f026a704637efb34a91692f..0000000000000000000000000000000000000000 --- a/funcom_test/17437196.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void writeL(long value) { - _bao.write((int) (value & 0xff)); - _bao.write((int) (value >> 8 & 0xff)); - _bao.write((int) (value >> 16 & 0xff)); - _bao.write((int) (value >> 24 & 0xff)); - } - COM: <s> put the long value to byte array </s> - diff --git a/funcom_test/17437277.txt b/funcom_test/17437277.txt deleted file mode 100644 index aca2b35a3e13fc4d3ef79a30e824ab7d46811cde..0000000000000000000000000000000000000000 --- a/funcom_test/17437277.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void writeS(String text, int from, int ile) { - try { - if (text != null) { - _bao.write(text.getBytes("ISO-8859-1"), from, ile); - } - } catch (UnsupportedEncodingException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - } - COM: <s> write strimng to bytearray </s> - diff --git a/funcom_test/17437304.txt b/funcom_test/17437304.txt deleted file mode 100644 index be3be0f6184f3b5b95363ea355d78d6b92704f44..0000000000000000000000000000000000000000 --- a/funcom_test/17437304.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: static private boolean addItemStats(MuItemStats ItemStats) { - if (_allItemStats.containsValue(ItemStats)) { - return false; - } else { - _allItemStats.put(Integer.valueOf( - (int) ((ItemStats.get_groupIndex() << 4) + (ItemStats.get_index() & 0x00FF))), - ItemStats); - return true; - } - } - COM: <s> adds a mu item stats instance to the global list </s> - diff --git a/funcom_test/17437319.txt b/funcom_test/17437319.txt deleted file mode 100644 index 99993d9865235305f123fae29d3939df9ce9b6af..0000000000000000000000000000000000000000 --- a/funcom_test/17437319.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void mC3Header(int typ, int typ2, int s) { - _bao.write(0xc3); - _bao.write((byte) s); - _bao.write((byte) typ); - _bao.write((byte) typ2); - //System.out.println("mc1headrec done2"); - } - COM: <s> make c3 template header with 2 types </s> - diff --git a/funcom_test/17437323.txt b/funcom_test/17437323.txt deleted file mode 100644 index 63b3cf12ed6456c34529abd0ff3997216a346ca1..0000000000000000000000000000000000000000 --- a/funcom_test/17437323.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void markSlots(int line, int column, byte itemXSize, byte itemYSize, boolean flag) { - for (int i=line; i<=line+itemYSize-1; i++) - for (int j=column; j<=column+itemXSize-1; j++) - _slots[i][j] = flag; - } - COM: <s> marks inventory slots according to the flag which indicates an empty </s> - diff --git a/funcom_test/17437365.txt b/funcom_test/17437365.txt deleted file mode 100644 index c059665a06a5ac940b47fcf00ea5326d6390ca5c..0000000000000000000000000000000000000000 --- a/funcom_test/17437365.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected boolean CompareBits(byte[] a, byte[] b) { - - if (a.length != b.length) { - return false; - } else { - for (int i = 0; i < a.length; i++) { - if (a[i] != b[i]) { - return false; - } - } - } - return true; - } - COM: <s> compare two bitarrays </s> - diff --git a/funcom_test/17437443.txt b/funcom_test/17437443.txt deleted file mode 100644 index e933b913a90434a561e839576afed25f17adfcef..0000000000000000000000000000000000000000 --- a/funcom_test/17437443.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void removeObject(MuObject Obj) { - Obj.getCurrentWorldRegion().removeObject(Obj); - _allObjects.remove(new Integer(Obj.getObjectId())); - if (Obj instanceof MuPcInstance) - _allPlayers.remove(((MuPcInstance)Obj).getName().toLowerCase()); - Obj = null; - } - COM: <s> removes an object from the world and map </s> - diff --git a/funcom_test/17437525.txt b/funcom_test/17437525.txt deleted file mode 100644 index d8386721fcc66f4003afbfd5572e1614e76951fd..0000000000000000000000000000000000000000 --- a/funcom_test/17437525.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public MuCharacterBase getChar(String _name) { - for (int i = 0; i < _chars.length; i++) { - MuCharacterBase muCharacterBase = _chars[i]; - if(muCharacterBase!=null) - { - if(muCharacterBase.getName().compareTo(_name)==0) - return muCharacterBase; - } - } - return null; - } - COM: <s> get character base fron name </s> - diff --git a/funcom_test/17437526.txt b/funcom_test/17437526.txt deleted file mode 100644 index 53ed92a13a34f9e316007285825d98ba82985879..0000000000000000000000000000000000000000 --- a/funcom_test/17437526.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void restoreInventory(MuPcInstance character) { - MuCharacterInventory inw = new MuCharacterInventory(); - //inw.storeItem(new MuStoreableItem(inw.InventoryWindow, 1, new MuItemHex().MakeItem(1, 1, 20, 1, 1, 1, false, false))); - character.set_inventory(inw); - - - - - } - COM: <s> restore inwentory list from db </s> - diff --git a/funcom_test/17437548.txt b/funcom_test/17437548.txt deleted file mode 100644 index 1dc1ddc11ff71b68b5b479027bdc50e91fb820f5..0000000000000000000000000000000000000000 --- a/funcom_test/17437548.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setActiveChar(MuPcInstance cha) { - _activeChar = cha; - if (cha != null) { - // we store the connection in the player object so that external - // events can directly send events to the players client - // might be changed later to use a central event management and - // distribution system - _activeChar.setNetConnection(_connection); - - // update world data - - //_world.storeObject(_activeChar); - } - } - COM: <s> set active character </s> - diff --git a/funcom_test/17437588.txt b/funcom_test/17437588.txt deleted file mode 100644 index f649fdf6f3318928d2564bbb1afed29fa9674177..0000000000000000000000000000000000000000 --- a/funcom_test/17437588.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void removeAllKnownObjects() { - MuObject[] notifyList = _knownObjects.values().toArray(new MuObject[_knownObjects.size()]); - // clear our own list - _knownObjects.clear(); - - for (int i = 0; i < notifyList.length; i++) { - notifyList[i].removeKnownObject(this, RemKnow_NoRelasion); - } - } - COM: <s> remove all known objects </s> - diff --git a/funcom_test/17437647.txt b/funcom_test/17437647.txt deleted file mode 100644 index 737ea2cf8ad48466f87e0f499cb22f834805bd06..0000000000000000000000000000000000000000 --- a/funcom_test/17437647.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void updateCurrentWorldRegion() { - MuMap newRegion = MuWorld.getInstance().getMap(getM()); - if (!newRegion.equals(_region)) { - if (_region != null) { - _region.removeObject(this); - } - newRegion.addObject(this); - _region = newRegion; - } - } - COM: <s> update maps after it changes </s> - diff --git a/funcom_test/17437656.txt b/funcom_test/17437656.txt deleted file mode 100644 index 9b2807aa2bf630f3d9277efd7c60d7b9399ceb89..0000000000000000000000000000000000000000 --- a/funcom_test/17437656.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void removeKnownObject(MuObject object, int why) { - super.removeKnownObject(object, why); - switch (why) { - case 1://RemKnow_ForgetID - sendPacket(new SForgetId(object)); - break; - case 2://RemKnow_DieId - sendPacket(new SIdGoneDie(object.getObjectId())); - break; - } - - } - COM: <s> remove knownoiect andalso send oclientforget id package </s> - diff --git a/funcom_test/17437667.txt b/funcom_test/17437667.txt deleted file mode 100644 index 03c1ff951fe89c67ce0eca6ab270fa41e5878ce6..0000000000000000000000000000000000000000 --- a/funcom_test/17437667.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void displayHitMessage(MuCharacter target, int dmg, int f) { - System.out.println("Hit :dmg[" + dmg + "] on id[" + target.getObjectId() + "] who has live[" + target.getCurentHp()); - SDMgOnScreen dmg1 = new SDMgOnScreen(getObjectId(), dmg, SDMgOnScreen._DMG_NORM); - target.sendPacket(dmg1); - - } - COM: <s> send package hit on id </s> - diff --git a/funcom_test/17437825.txt b/funcom_test/17437825.txt deleted file mode 100644 index cfa99d90e108ce10d628f754cdb6a24d381df36a..0000000000000000000000000000000000000000 --- a/funcom_test/17437825.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setProxy(String host, String port){ - this.proxySet = true; - - System.setProperty("http.proxyHost", host); - System.setProperty("http.proxyPort", port); - - System.setProperty("https.proxyHost", host); - System.setProperty("https.proxyPort", port); - } - COM: <s> set the proxy if needed </s> - diff --git a/funcom_test/17437829.txt b/funcom_test/17437829.txt deleted file mode 100644 index 1fd52e656163e8f09e101c1a1abb24f38bbf4a97..0000000000000000000000000000000000000000 --- a/funcom_test/17437829.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private SSLSocketFactory getPushSSLSocketFactory() throws KeyStoreException, NoSuchProviderException, CertificateException, NoSuchAlgorithmException, IOException, UnrecoverableKeyException, KeyManagementException{ - if( pushSSLSocketFactory == null ) { - pushSSLSocketFactory = createSSLSocketFactoryWithTrustManagers( null ); - } - logger.debug( "Returning Push SSLSocketFactory" ); - return pushSSLSocketFactory; - } - COM: <s> return sslsocket factory for push notifications </s> - diff --git a/funcom_test/17437840.txt b/funcom_test/17437840.txt deleted file mode 100644 index cf4d43052a9b8eceb82ffef42433f90fc42c615e..0000000000000000000000000000000000000000 --- a/funcom_test/17437840.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public SSLSocket getSSLSocket() throws IOException, UnknownHostException, KeyStoreException, NoSuchProviderException, CertificateException, NoSuchAlgorithmException, UnrecoverableKeyException, KeyManagementException { - SSLSocketFactory socketFactory = getPushSSLSocketFactory(); - logger.debug( "Returning Push SSLSocket" ); - - if ( proxySet ) { - return tunnelThroughProxy( socketFactory ); - } else { - return (SSLSocket) socketFactory.createSocket(appleHost, applePort); - } - } - COM: <s> create a sslsocket which will be used to send data to apple </s> - diff --git a/funcom_test/17437847.txt b/funcom_test/17437847.txt deleted file mode 100644 index d380e832f30635b2006a9514d141fcccf0775f01..0000000000000000000000000000000000000000 --- a/funcom_test/17437847.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void addDevice(String id, String token) throws DuplicateDeviceException, NullIdException, NullDeviceTokenException, Exception { - logger.debug( "Adding Token [" + token + "] to Device [" + id + "]" ); - DeviceFactory.getInstance().addDevice(id, token); - } - COM: <s> add a device </s> - diff --git a/funcom_test/17437853.txt b/funcom_test/17437853.txt deleted file mode 100644 index fd86e17fbe59de02712552b2e7acb5fdd641f803..0000000000000000000000000000000000000000 --- a/funcom_test/17437853.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public SSLSocket getFeedbackSSLSocket() throws Exception, IOException, UnknownHostException, KeyStoreException, NoSuchProviderException, CertificateException, NoSuchAlgorithmException, UnrecoverableKeyException, KeyManagementException { - SSLSocketFactory socketFactory = getFeedbackSSLSocketFactory(); - logger.debug( "Returning Feedback SSLSocket" ); - return (SSLSocket) socketFactory.createSocket(appleHost, applePort); - } - COM: <s> create a sslsocket which will be used to retrieve data from apple </s> - diff --git a/funcom_test/1744187.txt b/funcom_test/1744187.txt deleted file mode 100644 index 4038e12edac0883faf2b5c1eff22c4d1586f7e98..0000000000000000000000000000000000000000 --- a/funcom_test/1744187.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void getFriendsExternal(Profile userProfile) { - ArrayList<Profile> updatedList = wsClient.getFriendList(userProfile, lastUpdated); - if(updatedList != null) { - lastUpdated = Calendar.getInstance().getTime(); - } - dbAdapter.updateProfile(updatedList); // save the updated friends - ArrayList<ExternalData> list = getAllExternalData(); - try { - saveExternalData(cc.getAllStatus(list)); - } catch (Exception e) { - // Log.v(TAG) - } - } - COM: <s> gets the updated list from the server only the updates that have been </s> - diff --git a/funcom_test/1744208.txt b/funcom_test/1744208.txt deleted file mode 100644 index 6f943f3fdc79f4b0ce063f372b226d0d0fbf187d..0000000000000000000000000000000000000000 --- a/funcom_test/1744208.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean updateStatus(ExternalData exd) throws FriendStalkerException.IExternalClient { - Log.e(TAG, "trying to send status: " + exd.statusText + "\nusername " + exd.login + - "appId: " + exd.application); - IExternalClient client = systems.get(exd.application); - if(client != null) - { - - return client.updateStatus(exd); - } - else - Log.e(TAG, "Could not find client... id: " + exd.application); - return false; - } - COM: <s> updates the status at an external system </s> - diff --git a/funcom_test/1744528.txt b/funcom_test/1744528.txt deleted file mode 100644 index 4e683fc7584d4a2418e7d8d37b244e0dc40eba7b..0000000000000000000000000000000000000000 --- a/funcom_test/1744528.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void destroyStatus(long id) throws TwitterException { - String page = post(TWITTER_URL+"/statuses/destroy/" + id - + ".json", null, true); - // Note: Sends two HTTP requests to Twitter rather than one: Twitter appears - // not to make deletions visible until the user's status page is requested. - flush(); - assert page != null; - } - COM: <s> destroys the status specified by the required id parameter </s> - diff --git a/funcom_test/1744708.txt b/funcom_test/1744708.txt deleted file mode 100644 index 81094e3de71ca8b715050553932db836f5b30186..0000000000000000000000000000000000000000 --- a/funcom_test/1744708.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public User leaveNotifications(String screenName) { - Map<String, String> vars = newMap("screen_name", screenName); - String page = http.getPage(TWITTER_URL+"/notifications/leave.json", vars, true); - try { - return new User(new JSONObject(page), null); - } catch (JSONException e) { - throw new TwitterException(e); - } - } - COM: <s> switches off notifications for updates from the specified user i who </s> - diff --git a/funcom_test/1744881.txt b/funcom_test/1744881.txt deleted file mode 100644 index bc1c1df68e06952967a538c85b7736c76879df62..0000000000000000000000000000000000000000 --- a/funcom_test/1744881.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public User show(String screenName) throws TwitterException { - Map vars = newMap("screen_name", screenName); - String json = http.getPage(TWITTER_URL+"/users/show.json", vars, http.canAuthenticate()); - User user; - try { - user = new User(new JSONObject(json), null); - } catch (JSONException e) { - throw new TwitterException(e); - } - return user; - } - COM: <s> returns information of a given user specified by screen name </s> - diff --git a/funcom_test/1744904.txt b/funcom_test/1744904.txt deleted file mode 100644 index 879486fd6cb5341497f83b29de17a9611515def0..0000000000000000000000000000000000000000 --- a/funcom_test/1744904.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public User show(long userId) { - Map<String, String> vars = asMap("user_id", ""+userId); - String json = http.getPage(TWITTER_URL+"/users/show.json", vars, http.canAuthenticate()); - User user; - try { - user = new User(new JSONObject(json), null); - } catch (JSONException e) { - throw new TwitterException(e); - } - return user; - } - COM: <s> returns information of a given user specified by user id </s> - diff --git a/funcom_test/17510726.txt b/funcom_test/17510726.txt deleted file mode 100644 index fa5c74d3378cc224c58c16f9116239a653c68b4e..0000000000000000000000000000000000000000 --- a/funcom_test/17510726.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ConfigurationService getConfigurationService() { - LOG.debug("Returning the instance of ConfigurationService object."); - if (mConfigurationService == null) { - synchronized (this) { - LOG.debug("ConfigurationService object was't initiated before. " + - "now creating a new instance."); - mConfigurationService = new ConfigurationServiceImpl(); - } - } - return mConfigurationService; - } - COM: <s> return the instance of </s> - diff --git a/funcom_test/17607536.txt b/funcom_test/17607536.txt deleted file mode 100644 index 2bdf7dd92491971dfba26d6bfef6f97354ed0b3a..0000000000000000000000000000000000000000 --- a/funcom_test/17607536.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String transformPath(String target, String substitute) { - if(target.length()<2 || target.lastIndexOf(Constants.DOT) == -1){ - return ""; - } - final String begin = target.substring(0, target.lastIndexOf(Constants.DOT)); - final String end = target.substring(target.lastIndexOf(Constants.DOT)); - return begin + substitute + end; - } - COM: <s> this method used to transform one path to another </s> - diff --git a/funcom_test/17607645.txt b/funcom_test/17607645.txt deleted file mode 100644 index c831d4bb4c8e8c25edc82fc8ab80a537a5f89a83..0000000000000000000000000000000000000000 --- a/funcom_test/17607645.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void search(String keyword) { - if(!isSearchOptionSelected()){ - Events.instance().raiseEvent(Constants.ADD_ERROR_EVENT, Constants.SEARCH_NO_OPTIONS_ERROR); - return; - } - Iterator<ISearchOption> it = options.iterator(); - selectedKeyword = keyword.trim(); - while (it.hasNext()) { - ISearchOption option = it.next(); - if (option.getSelected()) { - option.search(searchAction,selectedKeyword , seachInMyAlbums, searchInShared); - } - } - } - COM: <s> method that perform search by particular phrase </s> - diff --git a/funcom_test/17607653.txt b/funcom_test/17607653.txt deleted file mode 100644 index bf0df09276d3eeb3182bda4891e2cf169192e959..0000000000000000000000000000000000000000 --- a/funcom_test/17607653.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void cancelEditImage(){ - model.resetModel(NavigationEnum.ALBUM_IMAGE_PREVIEW, model.getSelectedImage().getAlbum().getShelf().getOwner(), model.getSelectedImage().getAlbum().getShelf(), model.getSelectedImage().getAlbum(), model.getSelectedImage(), model.getSelectedImage().getAlbum().getImages() ); - } - COM: <s> this method invoked after the user want to interrupt edit image process </s> - diff --git a/funcom_test/17607706.txt b/funcom_test/17607706.txt deleted file mode 100644 index 4ab116a758258c38d4c02d247b2801e9048fdbe6..0000000000000000000000000000000000000000 --- a/funcom_test/17607706.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void cancelEditAlbum(){ - model.resetModel(NavigationEnum.ALBUM_PREVIEW, model.getSelectedAlbum().getOwner(), model.getSelectedAlbum().getShelf(), model.getSelectedAlbum(), null, model.getSelectedAlbum().getImages()); - } - COM: <s> this method invoked after the user want to interrupt edit album process </s> - diff --git a/funcom_test/17608155.txt b/funcom_test/17608155.txt deleted file mode 100644 index d2b59eb406a9545f848ee7459d3461613207b8de..0000000000000000000000000000000000000000 --- a/funcom_test/17608155.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void closeConnection() { - try { - if (this.conn != null && !this.conn.isClosed()) { - - this.conn.close(); - } - } catch (SQLException ex) { - LogUtil.logError(conn, ex); - } - if (ds != null) { - ds = null; - } - } - COM: <s> commit the transaction if necessary and close the connection </s> - diff --git a/funcom_test/17608276.txt b/funcom_test/17608276.txt deleted file mode 100644 index e8d426b2a21df02ee48701dfd6dfedbdee27f7e0..0000000000000000000000000000000000000000 --- a/funcom_test/17608276.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void delete(final int profileId) throws DAOException { - PreparedStatement ps = null; - try { - - StringBuilder sb = new StringBuilder(); - sb.append("delete from "); - sb.append(TABLE_RELATIONSHIP_ADMIN_PROFILE_FUNCTIONALITY); - sb.append(" where profile_id = ?"); - - ps = getConnection().prepareStatement(sb.toString()); - int i = 1; - - ps.setInt(i++, profileId); - - ps.executeUpdate(); - ps.close(); - - } catch (SQLException e) { - throw new DAOException("Error creating Profile.", e); - } - } - COM: <s> delete relationship between profile and functionality </s> - diff --git a/funcom_test/17608281.txt b/funcom_test/17608281.txt deleted file mode 100644 index 9b9a1f6e17d923abe131cb8e7797ce49a937651b..0000000000000000000000000000000000000000 --- a/funcom_test/17608281.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void store(User user) throws DAOException { - if (user == null) { - throw new DAOException("The parameter User is null !"); - } - - if (user.getId() == null || user.getId().equals(new Integer(0))) { - create(user); - } else { - update(user); - } - - } - COM: <s> create update user </s> - diff --git a/funcom_test/17608774.txt b/funcom_test/17608774.txt deleted file mode 100644 index c5c514c1924f8bf1d0868fc339addb3c8fb6554c..0000000000000000000000000000000000000000 --- a/funcom_test/17608774.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addDefaultScreenButtons(ScreenDefinition screenDef, UIComponent mainPanel) { - addCommandButton(mainPanel, "commandSave", "regularButton", - ResourceBundleUtil.getMessage("runit.save"), "#{" - + getController() + ".process}"); - - addCommandButtonReset(mainPanel, "commandCancel", "regularButton", - ResourceBundleUtil.getMessage("common.button.cancel")); - } - COM: <s> add default buttons to the screen </s> - diff --git a/funcom_test/17609046.txt b/funcom_test/17609046.txt deleted file mode 100644 index 6ec8da5718a8e66d9caac1e1e7d08db9e7b6d285..0000000000000000000000000000000000000000 --- a/funcom_test/17609046.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void loadTree() { - - try { - if (!isUserMenuCreated()) { - menuList = serviceAppMenu - .getApplicationMenuByProgram(getProgram()); - createUserMenu(menuList); - } else { - menuList = getUserMenu(); - } - } catch (ServiceException e) { - addError("Error on getApplicationMenuByProgram " + e.getMessage()); - } - - } - COM: <s> load the menu tree </s> - diff --git a/funcom_test/17609063.txt b/funcom_test/17609063.txt deleted file mode 100644 index 680292a73c2bdc6d730b3ca3d9dd8e2a5a234b4d..0000000000000000000000000000000000000000 --- a/funcom_test/17609063.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public UIPanel createPanelGroup(String nameId) { - - Application application = ControllerManager.getContext() - .getApplication(); - - UIPanel component = (UIPanel) application - .createComponent(HtmlPanelGroup.COMPONENT_TYPE); - component.setRendererType("javax.faces.Group"); - - if (nameId != null && !nameId.trim().isEmpty()) { - component.setId(nameId); - } - - return component; - } - COM: <s> create new panel group </s> - diff --git a/funcom_test/17610827.txt b/funcom_test/17610827.txt deleted file mode 100644 index 4bd8201f6840c8649a7bb45287079c0a2cc39607..0000000000000000000000000000000000000000 --- a/funcom_test/17610827.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected ModelAndView onSubmit(Object command) throws ServletException { - Visit visit = (Visit) command; - // delegate the insert to the Business layer - getClinic().storeVisit(visit); - return new ModelAndView(getSuccessView(), "ownerId", Integer.toString(visit.getPet().getOwner().getId())); - } - COM: <s> method inserts a new code visit code </s> - diff --git a/funcom_test/17610838.txt b/funcom_test/17610838.txt deleted file mode 100644 index aa529d8ddb8df77053ba562fd21ed02b044886c4..0000000000000000000000000000000000000000 --- a/funcom_test/17610838.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ModelAndView ownerHandler(HttpServletRequest request, HttpServletResponse response) throws ServletException { - Owner owner = clinic.loadOwner(RequestUtils.getIntParameter(request, "ownerId", 0)); - if (owner == null) { - return new ModelAndView("findOwnersRedirect"); - } - Map model = new HashMap(); - model.put("owner", owner); - return new ModelAndView("ownerView", "model", model); - } - COM: <s> custom handler for owner display </s> - diff --git a/funcom_test/17610845.txt b/funcom_test/17610845.txt deleted file mode 100644 index 10727a29f9e7028ab14ba6a7d802d4f5a9a802a2..0000000000000000000000000000000000000000 --- a/funcom_test/17610845.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void loadVisits(JdbcPet pet) { - pet.setType((PetType) EntityUtils.getById(getPetTypes(), PetType.class, pet.getTypeId())); - List visits = this.visitsQuery.execute(pet.getId()); - Iterator vi = visits.iterator(); - while (vi.hasNext()) { - Visit visit = (Visit) vi.next(); - pet.addVisit(visit); - } - } - COM: <s> method to retrieve the code visit code data for a code pet code </s> - diff --git a/funcom_test/17610880.txt b/funcom_test/17610880.txt deleted file mode 100644 index 6c9903309a407bb904ad498b6ffe5135fbe2e007..0000000000000000000000000000000000000000 --- a/funcom_test/17610880.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void insert(Pet pet) { - Object[] objs = new Object[] {null, pet.getName(), new java.sql.Date(pet.getBirthDate().getTime()), - new Integer(pet.getType().getId()), new Integer(pet.getOwner().getId())}; - super.update(objs); - retrieveIdentity(pet); - } - COM: <s> method to insert a new code pet code </s> - diff --git a/funcom_test/17610882.txt b/funcom_test/17610882.txt deleted file mode 100644 index 9c47975342db7bfcc32ab0d2c4c4044b90281a5a..0000000000000000000000000000000000000000 --- a/funcom_test/17610882.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected int update(Pet pet) { - return this.update(new Object[] {pet.getName(), new java.sql.Date(pet.getBirthDate().getTime()), - new Integer(pet.getType().getId()), new Integer(pet.getOwner().getId()), - new Integer(pet.getId())}); - } - COM: <s> method to update an code pet code s data </s> - diff --git a/funcom_test/1762918.txt b/funcom_test/1762918.txt deleted file mode 100644 index 0f5d4bd9fec312e5ff17d53a7e699e76766b63cd..0000000000000000000000000000000000000000 --- a/funcom_test/1762918.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void release() { - super.release(); - - ignore = false; - name = null; - property = null; - scope = null; - localeKey = null; - bundle = null; - errors = false; - token = false; - type = "amf"; - errorname = Globals.ERROR_KEY; - errorproperty = null; - header = null; - footer = null; - prefix = null; - suffix = null; - locale = Globals.LOCALE_KEY; - } - COM: <s> release all allocated resources </s> - diff --git a/funcom_test/17663624.txt b/funcom_test/17663624.txt deleted file mode 100644 index 73594f25cddac467b5401f35dce21cef116d8111..0000000000000000000000000000000000000000 --- a/funcom_test/17663624.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void loadLibraryJars() { - - List<String> jarNames = listOfJarFilePaths(); - - if( jarNames == null ) - return; - - for( String n : jarNames ) { - try { - EvaluationTarget.addURL(new URL("file:" + n)); - } catch (MalformedURLException e) { - throw new RuntimeException(e); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - } - COM: <s> loads the librarys jars into memory </s> - diff --git a/funcom_test/17664223.txt b/funcom_test/17664223.txt deleted file mode 100644 index 9bb43076869ccc15b575d47b9052e59ff0c40af7..0000000000000000000000000000000000000000 --- a/funcom_test/17664223.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void performBenchmark( RuntimeBenchmarkConfig config ) { - - saveSystemInfo(config); - - long startTime = System.currentTimeMillis(); - - processLibraries(config.getTargets(),config); - - double seconds = (System.currentTimeMillis()-startTime)/1000.0; - double days = seconds/60.0/60.0/24.0; - System.out.println("Total processing time = "+seconds+" (s) or "+days+" days"); - } - COM: <s> perform the benchmark tests against all the different algortihms </s> - diff --git a/funcom_test/17668573.txt b/funcom_test/17668573.txt deleted file mode 100644 index 7f359a83c7c1c82886626b0f7875e8f40a9e2f8c..0000000000000000000000000000000000000000 --- a/funcom_test/17668573.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void setState(int newState) { - - if( newState != state ){ - - setPreviousState(state); - state = newState; - - if( log.isDebugEnabled() && previousState != UNINITIALIZED_STATE ){ - String className = this.getClass().getName(); //get the runtime class name - log.debug("[" + className + "] state change to [" + getStateAsString() + "]"); - } - } - } - COM: <s> changes the state property </s> - diff --git a/funcom_test/17669281.txt b/funcom_test/17669281.txt deleted file mode 100644 index a52e08461c170e460c2cfcbcc7d62969bd6a8925..0000000000000000000000000000000000000000 --- a/funcom_test/17669281.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void setProgressStatus(ProgressStatus progressStatus) { - - ProgressStatus prev = this.progressStatus; - this.progressStatus = progressStatus; - - PropertyChangeListener[] listeners; - - synchronized(progressListeners){ - listeners = progressListeners.toArray(new PropertyChangeListener[progressListeners.size()]); - } - - PropertyChangeEvent event = new PropertyChangeEvent(this, "progressStatus", prev, progressStatus); - - for( PropertyChangeListener listener : listeners ) - listener.propertyChange(event); - } - COM: <s> sets the code progress status code </s> - diff --git a/funcom_test/17669512.txt b/funcom_test/17669512.txt deleted file mode 100644 index 241e93654052a2728fec1c75d08ae83dc2447cee..0000000000000000000000000000000000000000 --- a/funcom_test/17669512.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private int getMaxRetryAttempts(Object transitionObject) { - - try{ - Idempotent idempotent = transitionObject.getClass() - .getMethod("doTransition", new Class[0]).getAnnotation(Idempotent.class); - - return idempotent == null ? 1 : idempotent.attempts(); - } - catch(NoSuchMethodException e){ - throw new IllegalArgumentException("transitionObject is not of type Transition or TransitionWithResult", e); - } - } - COM: <s> retrieves the code max attempts code attribute from the tt </s> - diff --git a/funcom_test/17741754.txt b/funcom_test/17741754.txt deleted file mode 100644 index c09a4477b5effac7276fd9d3a10d46aca5b38cfb..0000000000000000000000000000000000000000 --- a/funcom_test/17741754.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void evolve(Genotype genotype) throws Exception { - double previousFitness = Double.MAX_VALUE; - for (int i = 0; i < EVOLUTIONS; i++) { - genotype.evolve(); - - double fitness = genotype.getFittestChromosome().getFitnessValue(); - if (fitness < previousFitness) { - System.err.println(fitness); - this.drawImage(genotype.getFittestChromosome()); - previousFitness = fitness; - } - - if (i % 100 == 0) { - System.out.println("Evolutions = " + i); - } - } - - this.drawImage(genotype.getFittestChromosome()); - } - COM: <s> evolves the given genotype </s> - diff --git a/funcom_test/1780726.txt b/funcom_test/1780726.txt deleted file mode 100644 index 2ace31424ca86efc36ea9821c2a45cfe68847eda..0000000000000000000000000000000000000000 --- a/funcom_test/1780726.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getQueryString() { - try { - URLEncodedString encoder = new URLEncodedString(); - getParameterHolder().recordPredefinedParameters( encoder ); - return encoder.getString(); - } catch (IOException e) { - throw new RuntimeException( "Programming error: " + e ); // should never happen - } - } - COM: <s> returns the query string defined for this request </s> - diff --git a/funcom_test/1780779.txt b/funcom_test/1780779.txt deleted file mode 100644 index 22b2d7dc6182f412caae0bffaf51abcd58d142d5..0000000000000000000000000000000000000000 --- a/funcom_test/1780779.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getText() { - if (_node.getNodeType() == Node.TEXT_NODE) { - return _node.getNodeValue().trim(); - } else if (_node == null || !_node.hasChildNodes()) { - return ""; - } else { - return NodeUtils.asText( _node.getChildNodes() ).trim(); - } - } - COM: <s> returns the text value of this block </s> - diff --git a/funcom_test/1780926.txt b/funcom_test/1780926.txt deleted file mode 100644 index 09c880399ff8b99df7b13a07ada1a15317a91020..0000000000000000000000000000000000000000 --- a/funcom_test/1780926.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getMainClassName() { - String className = _element.getCode(); - if (className.endsWith( CLASS_EXTENSION )) { - className = className.substring( 0, className.lastIndexOf( CLASS_EXTENSION )); - } - className = className.replace( '/', '.' ).replace( '\\', '.' ); - return className; - } - COM: <s> returns the name of the applet main class </s> - diff --git a/funcom_test/1780987.txt b/funcom_test/1780987.txt deleted file mode 100644 index d3a1224c055c654397813edc035a44058c727472..0000000000000000000000000000000000000000 --- a/funcom_test/1780987.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Object get( String propertyName ) { - if (propertyName.equalsIgnoreCase( "name" )) { - return FormControl.this.getName(); - } else if (propertyName.equalsIgnoreCase( "type" )) { - return FormControl.this.getType(); - } else { - return super.get( propertyName ); - } - } - COM: <s> get the given property </s> - diff --git a/funcom_test/1780989.txt b/funcom_test/1780989.txt deleted file mode 100644 index 5126ff2f3358256c7cfd81e458d969b1ae71ddf8..0000000000000000000000000000000000000000 --- a/funcom_test/1780989.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void set( String propertyName, Object value ) { - if (propertyName.equalsIgnoreCase( "value" )) { - setValueAttribute( value.toString() ); - } else if (propertyName.equalsIgnoreCase( "disabled" )) { - setDisabled( value instanceof Boolean && ((Boolean) value).booleanValue() ); - } else { - super.set( propertyName, value ); - } - } - COM: <s> set the given property to the given value </s> - diff --git a/funcom_test/1780998.txt b/funcom_test/1780998.txt deleted file mode 100644 index 6f38ec7db2f30678f870c8cd831978b3d532ce71..0000000000000000000000000000000000000000 --- a/funcom_test/1780998.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void click() throws IOException, SAXException { - // TODO check whether the empty body of this method was correct - // call onclick event handler - HTMLElement element=this.get_element(); - if (element instanceof FormControl) { - FormControl control=(FormControl)element; - control.sendOnClickEvent(); - } - } - COM: <s> allow calling click for this control </s> - diff --git a/funcom_test/1781021.txt b/funcom_test/1781021.txt deleted file mode 100644 index 6b8f82419f6f8124a33c3b3068a014a4f5dd457a..0000000000000000000000000000000000000000 --- a/funcom_test/1781021.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void sendOnChangeEvent() { - // TODO check why the test for this does not work although - // the javascript function call is done in the corresponding testcase - // testCallOnChange() - HTMLElement element=this.get_element(); - if (element instanceof FormControl) { - FormControl control=(FormControl)element; - control.sendOnChangeEvent(); - } - } - COM: <s> allow firing a send on change event </s> - diff --git a/funcom_test/1781034.txt b/funcom_test/1781034.txt deleted file mode 100644 index 5539c27753837ccaa3c20aa9ac588b77c204f13f..0000000000000000000000000000000000000000 --- a/funcom_test/1781034.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public String getTitle() throws SAXException { - NodeList nl = ((Document) getOriginalDOM()).getElementsByTagName( "title" ); - if (nl.getLength() == 0) return ""; - if (!nl.item(0).hasChildNodes()) return ""; - return nl.item(0).getFirstChild().getNodeValue(); - } - COM: <s> returns the title of the page </s> - diff --git a/funcom_test/1781043.txt b/funcom_test/1781043.txt deleted file mode 100644 index 6efc5986c0ce3d800792e91c133e0e9ba9fe70dc..0000000000000000000000000000000000000000 --- a/funcom_test/1781043.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object get( String propertyName ) { - NamedDelegate delegate = getNamedItem( getForms(), propertyName ); - if (delegate != null) return delegate; - - delegate = getNamedItem( getLinks(), propertyName ); - if (delegate != null) return delegate; - - delegate = getNamedItem( getImages(), propertyName ); - if (delegate != null) return delegate; - - return null; - } - COM: <s> get the object with the given property name </s> - diff --git a/funcom_test/1781073.txt b/funcom_test/1781073.txt deleted file mode 100644 index 352d01a609f3cff739eb49213d7571cb9a99437b..0000000000000000000000000000000000000000 --- a/funcom_test/1781073.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Applet getApplet( String name ) { - try { - WebApplet[] webApplets = _webApplet.getAppletsInPage(); - for (int i = 0; i < webApplets.length; i++) { - if (webApplets[i].getName().equals( name )) return webApplets[i].getApplet(); - } - } catch (Exception e) { - } - return null; - } - COM: <s> finds and returns the applet in the document represented by this </s> - diff --git a/funcom_test/1781098.txt b/funcom_test/1781098.txt deleted file mode 100644 index 792da9e09368ad60218941c94c27ed0a3e911b5b..0000000000000000000000000000000000000000 --- a/funcom_test/1781098.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected boolean isCookieAttribute( String stringLowercase ) { - return stringLowercase.equals("path") || - stringLowercase.equals("domain") || - stringLowercase.equals("expires") || - stringLowercase.equals("comment") || - stringLowercase.equals("max-age") || - stringLowercase.equals("version"); - } - COM: <s> check whether the given lower case string is a cookie attribute </s> - diff --git a/funcom_test/1781106.txt b/funcom_test/1781106.txt deleted file mode 100644 index fa9fb5d24f9485c9327570f38c7840cfefa8442e..0000000000000000000000000000000000000000 --- a/funcom_test/1781106.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: String getRelativePage() { - final String url = getRelativeURL(); - if (HttpUnitUtils.isJavaScriptURL( url )) return url; - final int questionMarkIndex = url.indexOf("?"); - if (questionMarkIndex >= 1 && questionMarkIndex < url.length() - 1) { - return url.substring(0, questionMarkIndex); - } - return url; - } - COM: <s> returns the url relative to the current page which will handle the request </s> - diff --git a/funcom_test/17811221.txt b/funcom_test/17811221.txt deleted file mode 100644 index d1419f40ea938451bd8881250aed705bfc9be423..0000000000000000000000000000000000000000 --- a/funcom_test/17811221.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addCRS(String crs){ - if (crs.contains(" ")){ - this.setCRS(crs); - } else { - String[] set = new String[this.CRSList.length+1]; - int i = 0; - if (this.CRSList.length != 0){ - for (i = 0;i<this.CRSList.length;i++){ - set[i] = this.CRSList[i]; - } - } - set[this.CRSList.length] = crs; - this.CRSList = set; - this.CRSExist = true; - } - } - COM: <s> adds a srs to the crs list of the layer </s> - diff --git a/funcom_test/17811227.txt b/funcom_test/17811227.txt deleted file mode 100644 index 86c5e3b5233b89014631ab151d5113ba22a8cf69..0000000000000000000000000000000000000000 --- a/funcom_test/17811227.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addTimeSpan(String timePosition) { - String[] set = new String[this.timeSpan.length+1]; - int i = 0; - if (this.timeSpan.length != 0){ - for (i = 0;i<this.timeSpan.length;i++){ - set[i] = this.timeSpan[i]; - } - } - set[this.timeSpan.length] = timePosition; - this.timeSpan = set; - this.timeSpanExist = true; - } - COM: <s> sets the next time position </s> - diff --git a/funcom_test/17811276.txt b/funcom_test/17811276.txt deleted file mode 100644 index d1c2cd67da7ea097a8e54910e9bbd097a4461ce0..0000000000000000000000000000000000000000 --- a/funcom_test/17811276.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addWGS84BoundingBox(String CRS,String LngMin,String LatMin,String LngMax,String LatMax,String resx,String resy){ - - if (this.CRSExist && CRS ==null) { - CRS = this.CRS; - } - this.setWGS84BoundingBox(CRS, LngMin, LatMin, LngMax, LatMax, resx, resy); - this.addWGS84BoundingBox(this.wgs84BoundingBox); - } - COM: <s> adds a boundingbox to the feature with the different parameters </s> - diff --git a/funcom_test/17811278.txt b/funcom_test/17811278.txt deleted file mode 100644 index 6fd53686c8552473493972b6247c8ceebe4dafe0..0000000000000000000000000000000000000000 --- a/funcom_test/17811278.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addWGS84BoundingBox(BoundingBox latlonBoundingBox){ - BoundingBox[] set = new BoundingBox[this.WGS84BoundingBoxList.length+1]; - int i = 0; - if (this.WGS84BoundingBoxList.length != 0){ - for (i = 0;i<this.WGS84BoundingBoxList.length;i++){ - set[i] = this.WGS84BoundingBoxList[i]; - } - } - set[i] = new BoundingBox(latlonBoundingBox); - this.WGS84BoundingBoxList = set; - this.wgs84BoundingBoxExistence = true; - - } - COM: <s> adds a bounding box to the feature </s> - diff --git a/funcom_test/17811290.txt b/funcom_test/17811290.txt deleted file mode 100644 index dca9d37fc6c60a1c87a3e1f2893191a170d5c3d9..0000000000000000000000000000000000000000 --- a/funcom_test/17811290.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setCorners(Double[] lowerCorner, Double[] upperCorner) { - if (lowerCorner[0] > upperCorner[0] || lowerCorner[1] > upperCorner[1]){ - this.minX = upperCorner[0]; - this.maxX = lowerCorner[0]; - this.minY = upperCorner[1]; - this.maxY = lowerCorner[1]; - } else { - this.minX = lowerCorner[0]; - this.maxX = upperCorner[0]; - this.minY = lowerCorner[1]; - this.maxY = upperCorner[1]; - } - - } - COM: <s> this method corresponds to specifications for wgs84 bounding box defined since 2005 </s> - diff --git a/funcom_test/17811473.txt b/funcom_test/17811473.txt deleted file mode 100644 index 747643a7ac6dbca6c2711cc37a3d20ca1202a367..0000000000000000000000000000000000000000 --- a/funcom_test/17811473.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addBoundingBox(BoundingBox box) { - BoundingBox[] set = new BoundingBox[this.BBoxList.length+1]; - int i = 0; - if (this.BBoxList.length != 0){ - for (i = 0;i<this.BBoxList.length;i++){ - set[i] = this.BBoxList[i]; - } - } - set[i] = new BoundingBox(box); - this.BBoxList = set; - this.BBoxExists = true; - } - COM: <s> adds a bounding box to the list </s> - diff --git a/funcom_test/1781216.txt b/funcom_test/1781216.txt deleted file mode 100644 index 291b650eceeecdd3f0539dfe4eae5c210b96b9d0..0000000000000000000000000000000000000000 --- a/funcom_test/1781216.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public SubmitButton getSubmitButtonWithID( String ID ) { - SubmitButton[] buttons = getSubmitButtons(); - for (int i = 0; i < buttons.length; i++) { - if (buttons[i].getID().equals( ID )) { - return buttons[i]; - } - } - return null; - } - COM: <s> returns the submit button defined in this form with the specified id </s> - diff --git a/funcom_test/1781300.txt b/funcom_test/1781300.txt deleted file mode 100644 index a889c783708000366f8f03d0bacab263f476d4ff..0000000000000000000000000000000000000000 --- a/funcom_test/1781300.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public WebForm getFirstMatchingForm( HTMLElementPredicate predicate, Object criteria ) { - WebForm[] forms = getForms(); - for (int i = 0; i < forms.length; i++) { - if (predicate.matchesCriteria( forms[i], criteria )) return forms[i]; - } - return null; - } - COM: <s> returns the first link found in the page matching the specified criteria </s> - diff --git a/funcom_test/1781314.txt b/funcom_test/1781314.txt deleted file mode 100644 index b4b4964517f5c1843f5920bfb2ea025ee13fde6a..0000000000000000000000000000000000000000 --- a/funcom_test/1781314.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String getScript( Node scriptNode ) { - String scriptLocation = NodeUtils.getNodeAttribute( scriptNode, "src", null ); - if (scriptLocation == null) { - return NodeUtils.asText( scriptNode.getChildNodes() ); - } else { - try { - return getIncludedScript( scriptLocation ); - } catch (IOException e) { - throw new RuntimeException( "Error loading included script: " + e ); - } - } - } - COM: <s> get the script for the given node </s> - diff --git a/funcom_test/1781415.txt b/funcom_test/1781415.txt deleted file mode 100644 index ef5ed236e57e17e06e18cefb8d79aa547fbba069..0000000000000000000000000000000000000000 --- a/funcom_test/1781415.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setParameter( String parameterName, UploadFileSpec[] files ) { - if (!maySelectFile( parameterName )) throw new IllegalNonFileParameterException( parameterName ); - if (!isMimeEncoded()) throw new MultipartFormRequiredException(); - _parameterHolder.setParameter( parameterName, files ); - } - COM: <s> sets the multiple values of a file upload parameter in a web request </s> - diff --git a/funcom_test/1781460.txt b/funcom_test/1781460.txt deleted file mode 100644 index 42e627fc8f2141e464efac54cf4f3d2d2037e53f..0000000000000000000000000000000000000000 --- a/funcom_test/1781460.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void addPresetParameter( String name, String value ) { - FormControl[] formControls = getFormControls(); - for (int i = 0; i < formControls.length; i++) { - if (formControls[i].getName().equals( name)) return; - } - _presets.add( new PresetFormParameter( this, name, value ) ); - } - COM: <s> records a parameter defined by including it in the destination url </s> - diff --git a/funcom_test/1781538.txt b/funcom_test/1781538.txt deleted file mode 100644 index be3ef8febb521178b5ca0015fcc3ae6e1b949868..0000000000000000000000000000000000000000 --- a/funcom_test/1781538.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setParameter( String name, final String[] values ) { - FormParameter parameter = getParameter( name ); - if (parameter == UNKNOWN_PARAMETER) throw new NoSuchParameterException( name ); - if (parameter.isFileParameter()) { - throw new InvalidFileParameterException(name,values); - } - parameter.setValues( values ); - } - COM: <s> sets the multiple values of a parameter in this form </s> - diff --git a/funcom_test/1781753.txt b/funcom_test/1781753.txt deleted file mode 100644 index 3ca0d70496fd241777c6c1667112ea6c79876b50..0000000000000000000000000000000000000000 --- a/funcom_test/1781753.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean handleEvent(String eventName) { - // check whether onclick is activated - if (eventName.toLowerCase().equals("onclick")) { - handleEvent("onmousedown"); - } - String eventScript = getAttribute( eventName ); - boolean result=doEventScript(eventScript); - if (eventName.toLowerCase().equals("onclick")) { - handleEvent("onmouseup"); - } - return result; - } - COM: <s> get the event handler script for the event e </s> - diff --git a/funcom_test/1781951.txt b/funcom_test/1781951.txt deleted file mode 100644 index c749d3672167e9d134db6aaf602f79331721e710..0000000000000000000000000000000000000000 --- a/funcom_test/1781951.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void associate( WebResponse response ) { - try { - // JavaScript.run( response ); // can't do this (yet?) - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - HttpUnitUtils.handleException(e); - throw new RuntimeException( e.toString() ); - } - } - COM: <s> associate me with a webresponse </s> - diff --git a/funcom_test/1782009.txt b/funcom_test/1782009.txt deleted file mode 100644 index d4705abc2c130f6f52a07f1da8e9719fe8dfc65d..0000000000000000000000000000000000000000 --- a/funcom_test/1782009.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void initialize( DocumentImpl owner, String namespaceURI, String qualifiedName ) { - initialize( owner ); - _tagName = qualifiedName; - _namespaceUri = namespaceURI; - if (qualifiedName.indexOf(':') < 0) { - _localName = qualifiedName; - } else { - _localName = qualifiedName.substring( qualifiedName.indexOf(':') + 1 ); - } - setParentScope(owner); - } - COM: <s> initialize the name space </s> - diff --git a/funcom_test/1782262.txt b/funcom_test/1782262.txt deleted file mode 100644 index 319665780fdf97141b3543102fd39a851b02ce7b..0000000000000000000000000000000000000000 --- a/funcom_test/1782262.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public FormControl getControl() { - FormControl[] controls=getControls(); - if (controls.length!=1) { - throw new RuntimeException("getControl can only be called if the number of controls is 1 but it is "+controls.length+" you might want to use getControls instead"); - } - return controls[0]; - } - COM: <s> get the control for this form parameter assuming it </s> - diff --git a/funcom_test/1782311.txt b/funcom_test/1782311.txt deleted file mode 100644 index c1e1556c937e1b7dce0d664e918a48b66fe3edf6..0000000000000000000000000000000000000000 --- a/funcom_test/1782311.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isHTML() { - boolean result=false; - // check the different content types - for (int i=0;i<validContentTypes.length;i++) { - result=getContentType().equalsIgnoreCase(validContentTypes[i]); - if (result) - break; - } // for - return result; - } - COM: <s> returns true if the response is html </s> - diff --git a/funcom_test/1782353.txt b/funcom_test/1782353.txt deleted file mode 100644 index f0c65cf562594dcc34086181388d82b8d01b4560..0000000000000000000000000000000000000000 --- a/funcom_test/1782353.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public WebImage getImageWithName( String name ) { - WebImage[] images = getImages(); - for (int i = 0; i < images.length; i++) { - if (HttpUnitUtils.matches( name, images[i].getName() )) return images[i]; - } - return null; - } - COM: <s> returns the image found in the page with the specified name </s> - diff --git a/funcom_test/1782360.txt b/funcom_test/1782360.txt deleted file mode 100644 index 28ac97c27afa1708aa503d63e598154eb9d7a62e..0000000000000000000000000000000000000000 --- a/funcom_test/1782360.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public WebImage getImageWithSource( String source ) { - WebImage[] images = getImages(); - for (int i = 0; i < images.length; i++) { - if (HttpUnitUtils.matches( source, images[i].getSource() )) return images[i]; - } - return null; - } - COM: <s> returns the first image found in the page with the specified src attribute </s> - diff --git a/funcom_test/1782368.txt b/funcom_test/1782368.txt deleted file mode 100644 index 21e4868f41fef94abb24fdddbc798b5f6bea5644..0000000000000000000000000000000000000000 --- a/funcom_test/1782368.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public WebImage getImageWithAltText( String altText ) { - WebImage[] images = getImages(); - for (int i = 0; i < images.length; i++) { - if (HttpUnitUtils.matches( altText, images[i].getAltText() )) return images[i]; - } - return null; - } - COM: <s> returns the first image found in the page with the specified alt attribute </s> - diff --git a/funcom_test/1782388.txt b/funcom_test/1782388.txt deleted file mode 100644 index 3d9886627eab153adc7b7e8dbc3a9fe4132689fa..0000000000000000000000000000000000000000 --- a/funcom_test/1782388.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getCharacterSet() { - if (_characterSet == null) { - readContentTypeHeader(); - if (_characterSet == null) setCharacterSet( getHeaderField( "Charset" ) ); - if (_characterSet == null) setCharacterSet( HttpUnitOptions.getDefaultCharacterSet() ); - } - return _characterSet; - } - COM: <s> returns the character set used in this response </s> - diff --git a/funcom_test/1782398.txt b/funcom_test/1782398.txt deleted file mode 100644 index ccaa77597bad93de373aeddd2c8ae5aa326ef28c..0000000000000000000000000000000000000000 --- a/funcom_test/1782398.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setLength( int length ) { - if (length < 0) return; - Option[] newArray = new Option[ length ]; - System.arraycopy( _options, 0, newArray, 0, Math.min( length, _options.length ) ); - for (int i = _options.length; i < length; i++) { - newArray[i] = new Option(); - } - _options = newArray; - } - COM: <s> modified by gklopp 12 19 2005 </s> - diff --git a/funcom_test/1782517.txt b/funcom_test/1782517.txt deleted file mode 100644 index d1af710d12e7cb82581545b87ba0879fbb4e1482..0000000000000000000000000000000000000000 --- a/funcom_test/1782517.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeAttribute( String name ) { - if (_invalid) throw new IllegalStateException(); - if (_values.containsKey( name )) { - Object oldValue = _values.get( name ); - _values.remove( name ); - _listenerDispatcher.sendAttributeRemoved( this, name, oldValue ); - } - } - COM: <s> removes the object bound with the specified name from this session </s> - diff --git a/funcom_test/1782539.txt b/funcom_test/1782539.txt deleted file mode 100644 index 54794a8717b7ce4e9b27bbb42d4af66a5e5eb08e..0000000000000000000000000000000000000000 --- a/funcom_test/1782539.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void service() throws ServletException, IOException { - if (isFilterActive()) { - getFilter().doFilter( getRequest(), getResponse(), getFilterChain() ); - } else { - getServlet().service( getRequest(), getResponse() ); - } - } - COM: <s> invokes the current servlet or filter </s> - diff --git a/funcom_test/1782577.txt b/funcom_test/1782577.txt deleted file mode 100644 index 212f30bf7c78fb7bab49c66c4031cad25ed6b284..0000000000000000000000000000000000000000 --- a/funcom_test/1782577.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Document getDOM() throws SAXException { - if (isHTML()) { - return (Document) getReceivedPage().getDOM(); - } else { - try { - return HttpUnitUtils.parse( new InputSource( new StringReader( getText() ) ) ); - } catch (IOException e) { - throw new SAXException( e ); - } - } - } - COM: <s> returns a copy of the domain object model tree associated with this response </s> - diff --git a/funcom_test/1782673.txt b/funcom_test/1782673.txt deleted file mode 100644 index 576089d3751dd389d565e79798c650dba3d67981..0000000000000000000000000000000000000000 --- a/funcom_test/1782673.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public DomWindowProxy openNewWindow( String name, String relativeUrl ) throws IOException, SAXException { - if (relativeUrl == null || relativeUrl.trim().length() == 0) relativeUrl = "about:"; - GetMethodWebRequest request = new GetMethodWebRequest( getURL(), relativeUrl, _frame, name ); - WebResponse response=_window.getResponse( request ); - return response; - } - COM: <s> open a a new window with the given name and relative url </s> - diff --git a/funcom_test/1782708.txt b/funcom_test/1782708.txt deleted file mode 100644 index 728a28dc90e08eafc26cfae90c4d1e35ab06824d..0000000000000000000000000000000000000000 --- a/funcom_test/1782708.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public PrintWriter getWriter() throws UnsupportedEncodingException { - if (_servletStream != null) throw new IllegalStateException( "Tried to create writer; output stream already exists" ); - if (_writer == null) { - _outputStream = new ByteArrayOutputStream(); - _writer = new PrintWriter( new OutputStreamWriter( _outputStream, getCharacterEncoding() ) ); - } - return _writer; - } - COM: <s> returns a code print writer code object that you </s> - diff --git a/funcom_test/1782714.txt b/funcom_test/1782714.txt deleted file mode 100644 index 98a4691446ed1aeb138f12fc621568413bf7b90f..0000000000000000000000000000000000000000 --- a/funcom_test/1782714.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addHeader( String name, String value ) { - synchronized (_headers) { - String key = name.toUpperCase(); - ArrayList values = (ArrayList) _headers.get( key ); - if (values == null) { - values = new ArrayList(); - _headers.put( key, values ); - } - values.add( value ); - } - } - COM: <s> adds a response header with the given name and value </s> - diff --git a/funcom_test/1782839.txt b/funcom_test/1782839.txt deleted file mode 100644 index 212bc69ad060d9cfcf3ea791e7ee4cbbace53fbd..0000000000000000000000000000000000000000 --- a/funcom_test/1782839.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setCharacterSet( String name, String characterSet ) { - WebResource resource = (WebResource) _resources.get( asResourceName( name ) ); - if (resource == null) { - resource = new WebResource( "" ); - _resources.put( asResourceName( name ), resource ); - } - resource.setCharacterSet( characterSet ); - } - COM: <s> specifies the character set encoding for a resource </s> - diff --git a/funcom_test/1782841.txt b/funcom_test/1782841.txt deleted file mode 100644 index 64411dd52c06e4761fc19a35d8fdf216772228dd..0000000000000000000000000000000000000000 --- a/funcom_test/1782841.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addResourceHeader( String name, String header ) { - WebResource resource = (WebResource) _resources.get( asResourceName( name ) ); - if (resource == null) { - resource = new WebResource( "" ); - _resources.put( asResourceName( name ), resource ); - } - resource.addHeader( header ); - } - COM: <s> adds a header to a defined resource </s> - diff --git a/funcom_test/1782932.txt b/funcom_test/1782932.txt deleted file mode 100644 index e146169a4a1af3f33fb91e6d7db75069c8fe9e64..0000000000000000000000000000000000000000 --- a/funcom_test/1782932.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void processMetaTag( ByteTag tag ) { - if (isHttpEquivMetaTag( tag, "content-type" )) { - inferContentType( tag.getAttribute( "content" ) ); - } else if (isHttpEquivMetaTag( tag, "refresh" )) { - inferRefreshHeader( tag.getAttribute( "content" ) ); - } - } - COM: <s> process meta tags based on the tag </s> - diff --git a/funcom_test/1782954.txt b/funcom_test/1782954.txt deleted file mode 100644 index eb0ceaf92d57bc62aac18b99e67da86c1588855e..0000000000000000000000000000000000000000 --- a/funcom_test/1782954.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void inferRefreshHeader( String refreshHeader ) { - String originalHeader = getHeaderField( "Refresh" ); - // System.err.println("original='"+originalHeader+"'\nrefreshHeader='"+refreshHeader+"'"); - if (originalHeader == null) { - _refreshHeader = refreshHeader; - } - } - COM: <s> infer the refresh header </s> - diff --git a/funcom_test/1782958.txt b/funcom_test/1782958.txt deleted file mode 100644 index cf39a27eac66dfb22a18b67aecd8f3b3ff59d801..0000000000000000000000000000000000000000 --- a/funcom_test/1782958.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public WebResource getResponse( String methodType ) throws IOException { - if (methodType.equalsIgnoreCase( "GET" )) { - return getGetResponse(); - } else if (methodType.equalsIgnoreCase( "PUT" )) { - return getPutResponse(); - } else if (methodType.equalsIgnoreCase( "POST" )) { - return getPostResponse(); - } else { - throw new UnknownMethodException( methodType ); - } - } - COM: <s> returns a resource object as a result of a get request </s> - diff --git a/funcom_test/1783067.txt b/funcom_test/1783067.txt deleted file mode 100644 index 6c77e088e21b6b59cfe54ff9801b9ae81ee9dc5a..0000000000000000000000000000000000000000 --- a/funcom_test/1783067.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testProvider() throws Exception { - Class provider= HttpsProtocolSupport.getHttpsProviderClass(); - String expected=HttpsProtocolSupport.SunJSSE_PROVIDER_CLASS; - Provider[] sslProviders = Security.getProviders("SSLContext.SSLv3"); - if (sslProviders.length>0) - expected= sslProviders[0].getClass().getName(); - assertEquals( "provider",expected, provider.getName() ); - } - COM: <s> test the available https protocol providers </s> - diff --git a/funcom_test/1783133.txt b/funcom_test/1783133.txt deleted file mode 100644 index d3b6619c3bd38d7165fa32b7e9ecd217f633d718..0000000000000000000000000000000000000000 --- a/funcom_test/1783133.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testHttpOnlyCookies() throws Exception { - CookieJar jar = new CookieJar( - new TestSource( new URL( "http://www.meterware.com" ), - new String[] { "myStuff=1234; path=/foo; HttpOnly"} ) ); - assertEquals( "cookie 'myStuff' value", "1234", jar.getCookieValue( "myStuff" ) ); - } - COM: <s> test for bug report 1672385 http only cookie looses all cookie info </s> - diff --git a/funcom_test/1783136.txt b/funcom_test/1783136.txt deleted file mode 100644 index e47e0606195f7e49445c62df4ce57cb7b25d2acb..0000000000000000000000000000000000000000 --- a/funcom_test/1783136.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void xtestCookiesRejection1533762() throws Exception { - checkAcceptance( 1, true, "admin.automation.testing.com.ru", ".admin.automation.testing.com.ru",null); - checkAcceptance( 2, true, "admin.automation.testing.com.ru", ".testing.com.ru", null ); - } - COM: <s> test for bug report 1533762 valid cookies are rejected </s> - diff --git a/funcom_test/1783406.txt b/funcom_test/1783406.txt deleted file mode 100644 index ae368a78ab55cb6867c5a28d3dfbe46bab5e382d..0000000000000000000000000000000000000000 --- a/funcom_test/1783406.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testDocumentWrite() throws Exception { - DomWindow window1 = createMainWindow(); - window1.getDocument().write( "A simple string" ); - assertEquals( "Contents of write buffer", "A simple string", window1.getDocumentWriteBuffer() ); - window1.discardDocumentWriteBuffer(); - assertEquals( "Contents of cleared write buffer", "", window1.getDocumentWriteBuffer() ); - - } - COM: <s> writes to a document should appear in the windows document write buffer </s> - diff --git a/funcom_test/1783420.txt b/funcom_test/1783420.txt deleted file mode 100644 index fd8d9be3057bb92aadd7c2ef98ce3159922476ed..0000000000000000000000000000000000000000 --- a/funcom_test/1783420.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testTextReplacement() throws Exception { - DomWindow window = createMainWindow(); - window.getDocument().write( "A bit of text" ); - window.getDocument().close(); - assertNotNull( "No text replacement occurred", _proxy.getReplacementText() ); - assertEquals( "Replacement text", "A bit of text", _proxy.getReplacementText() ); - } - COM: <s> verifies that writing to and closing a document triggers a replace text request </s> - diff --git a/funcom_test/1783466.txt b/funcom_test/1783466.txt deleted file mode 100644 index 6f735a1022646682021384f42650201c98f3a80a..0000000000000000000000000000000000000000 --- a/funcom_test/1783466.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testFormDetection() throws Exception { - _body.insertBefore( _buttonInput, _form ); - _body.appendChild( _textField ); - _body.appendChild( _htmlDocument.createElement( "form" ) ); - - assertNull( "button should not be part of any form", _buttonInput.getForm() ); - assertSame( "Form for text field", _form, _textField.getForm() ); - } - COM: <s> verifies that we can recognize buttons without forms </s> - diff --git a/funcom_test/1783478.txt b/funcom_test/1783478.txt deleted file mode 100644 index ee5d458dad9964a09702bc128d25672fe73659cd..0000000000000000000000000000000000000000 --- a/funcom_test/1783478.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testEmbeddedEquals() throws Exception { - addInput( "text", "age=x", "12" ); - _form.submit(); - assertEquals( "Expected response", "submitRequest( GET, http://localhost/tryMe?age%3Dx=12, null, null )", TestWindowProxy.popProxyCall() ); - } - COM: <s> verifies that characters in parameter names will be appropriately encoded </s> - diff --git a/funcom_test/1783481.txt b/funcom_test/1783481.txt deleted file mode 100644 index f4318022db7d605dcefc33a232439c142ebca6e5..0000000000000000000000000000000000000000 --- a/funcom_test/1783481.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testIllegalAttributeNodeRemoval() throws Exception { - _element.setAttributeNode( _heightAttribute ); - try { - _element.removeAttributeNode( _weightAttribute ); - fail( "Should have rejected attempt to remove unknown attribute node" ); - } catch (DOMException e ) { - assertEquals( "Reason for failure", DOMException.NOT_FOUND_ERR, e.code ); - } - } - COM: <s> verifies that we cannot remove attribute nodes that are not defined </s> - diff --git a/funcom_test/1783509.txt b/funcom_test/1783509.txt deleted file mode 100644 index 8d9f665430e574c3cbed4550b5f66d7df623724b..0000000000000000000000000000000000000000 --- a/funcom_test/1783509.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testReadDocumentTitle() throws Exception { - Element title = createElement( "title" ); - Text text = _htmlDocument.createTextNode( "something here" ); - title.appendChild( text ); - - _headElement.appendChild( title ); - - assertEquals( "title seen by document", "something here", _htmlDocument.getTitle() ); - } - COM: <s> verifies that we can find the document title </s> - diff --git a/funcom_test/1783516.txt b/funcom_test/1783516.txt deleted file mode 100644 index 7ac8abd17b7b124b99dc13a320e3b978f619aa19..0000000000000000000000000000000000000000 --- a/funcom_test/1783516.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testModifyDocumentTitle() throws Exception { - Element title = createElement( "title" ); - Text text = _htmlDocument.createTextNode( "something here" ); - title.appendChild( text ); - - _headElement.appendChild( title ); - - _htmlDocument.setTitle( "new value" ); - assertEquals( "title seen by document", "new value", _htmlDocument.getTitle() ); - } - COM: <s> verifies that we can modify an existing document title </s> - diff --git a/funcom_test/1783534.txt b/funcom_test/1783534.txt deleted file mode 100644 index 9e5e16b7531095061aeef042c717f9b2486ef087..0000000000000000000000000000000000000000 --- a/funcom_test/1783534.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testNoChildrenForTextNodes() throws Exception { - Element orphan = _document.createElement( "baz" ); - try { - _text.appendChild( orphan ); - fail( "Should not have permitted addition of a child to a text node" ); - } catch (DOMException e) { - assertEquals( "Reason for exception", DOMException.HIERARCHY_REQUEST_ERR, e.code ); - } - } - COM: <s> verifies that text nodes cannot have children </s> - diff --git a/funcom_test/1783592.txt b/funcom_test/1783592.txt deleted file mode 100644 index d0235ff0bd301248389963032a42996426bc38ad..0000000000000000000000000000000000000000 --- a/funcom_test/1783592.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testWriteBufferUpdate() throws Exception { - _htmlDocument.write( "This is a test" ); - assertNotNull( "No write buffer was defined for the document", _htmlDocument.getWriteBuffer() ); - assertEquals( "Result of write buffer", "This is a test", _htmlDocument.getWriteBuffer().toString() ); - } - COM: <s> verifies that writing to the document updates the write buffer </s> - diff --git a/funcom_test/1783593.txt b/funcom_test/1783593.txt deleted file mode 100644 index 99c3124046cad26b68cf7705defb7e956fa323d3..0000000000000000000000000000000000000000 --- a/funcom_test/1783593.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testIFrameAccessById() throws Exception { - defineWebPage( "Frames", - "<iframe id='frame1'></iframe>" + - "<script>" + - "var frame = document.getElementById('frame1');" + - "</script>" ); - - _wc.getResponse(getHostPath() + "/Frames.html"); - } - COM: <s> verifies that iframes can be found using their id </s> - diff --git a/funcom_test/1783594.txt b/funcom_test/1783594.txt deleted file mode 100644 index 7fd07886b9ea8c8b680584e6b3bcfb815ab420f4..0000000000000000000000000000000000000000 --- a/funcom_test/1783594.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testReplaceChild() throws Exception { - Element baz = _document.createElement( "baz" ); - Node old = _foo1.replaceChild( baz, _text ); - assertSame( "Removed node", _text, old ); - verifyNodeList( "foo1 child", _foo1.getChildNodes(), new Node[] { _bar1, baz, _foo2 } ); - } - COM: <s> verifies that we can replace children including those already elsewhere in the tree </s> - diff --git a/funcom_test/1783643.txt b/funcom_test/1783643.txt deleted file mode 100644 index 048134b4439cb52cae8ef906716a8b81ec8ebda3..0000000000000000000000000000000000000000 --- a/funcom_test/1783643.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void doTestKeepCase(boolean preserveTagCase, String[] expected1, String[] expected2) throws Exception { - prepareTestCase(); - verifyMatchingBoldNodes( wc, request, expected1 ); - HTMLParserFactory.setPreserveTagCase( preserveTagCase); - verifyMatchingBoldNodes( wc, request, expected2 ); - } - COM: <s> test the preserve tag case configuration feature ofh the htmlparser factory </s> - diff --git a/funcom_test/1783664.txt b/funcom_test/1783664.txt deleted file mode 100644 index 89d630c8911c35850112d1284a4797928ab075b4..0000000000000000000000000000000000000000 --- a/funcom_test/1783664.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testUndefined() throws Exception { - WebConversation wc=doTestJavaScript("if (typeof(xyzDefinitelyNotDefined) == 'undefined') {\n"+ - "alert ('blabla');\n"+ - "return;\n"+ - "}"); - assertEquals( "Alert message", "blabla", wc.popNextAlert() ); - } - COM: <s> test for bug report 1508516 javascript method undefined is not supported </s> - diff --git a/funcom_test/1783719.txt b/funcom_test/1783719.txt deleted file mode 100644 index 1e91631f839d357d289c7e1e9a32a03e2824cdc9..0000000000000000000000000000000000000000 --- a/funcom_test/1783719.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void testSpecifiedFileContentType() throws Exception { - File file = createFile( "temp.new" , new byte[] { 1, 2, 3, 4, 0x7f, 0x23 }); - doTestFileContentType(file,"x-application/new","x-application/new:message.name=temp.new&message.lines=1"); - } - COM: <s> test the file content type for some </s> - diff --git a/funcom_test/1783722.txt b/funcom_test/1783722.txt deleted file mode 100644 index 6f5522a4652192c4650476d2862ccd1944565141..0000000000000000000000000000000000000000 --- a/funcom_test/1783722.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testUpdateAfterFlushBuffer() throws Exception { - ServletUnitHttpResponse servletResponse = new ServletUnitHttpResponse(); - servletResponse.getWriter(); - assertFalse( "Should not be committed yet", servletResponse.isCommitted() ); - servletResponse.flushBuffer(); - assertTrue( "Should be committed now", servletResponse.isCommitted() ); - } - COM: <s> test is comitted flag after flushing buffer </s> - diff --git a/funcom_test/1784057.txt b/funcom_test/1784057.txt deleted file mode 100644 index 488164c8caedd37eec368ff6d77412bc3801fa31..0000000000000000000000000000000000000000 --- a/funcom_test/1784057.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Element getSubNode(Element parent,String tagName, boolean throwException) { - NodeList subNodes=parent.getElementsByTagName(tagName); - if (subNodes.getLength()!=1) { - if (throwException) - throw new RuntimeException("getSubNode failed for "+parent+" expected 1 child with tag name '"+tagName+"' but got "+subNodes.getLength()); - else - return null; - } - return (Element)subNodes.item(0); - } - COM: <s> get the subnode with the given tagname </s> - diff --git a/funcom_test/17870253.txt b/funcom_test/17870253.txt deleted file mode 100644 index e16ed7320218c234a33d2ed17b058e19de8afb55..0000000000000000000000000000000000000000 --- a/funcom_test/17870253.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void registerSystray() throws FeatureNotSupportedException { - - try { - - SystemTray tray = SystemTray.getSystemTray(); - - this.trayIcon = new TrayIcon(this.trayImage, this.tooltip, this.popupMenu); - this.trayIcon.setImageAutoSize(true); - this.trayIcon.addActionListener(this.onDoubleClick); - - tray.add(trayIcon); - - - } catch (AWTException ex) { - - throw new FeatureNotSupportedException(ERROR_NOT_ADDED); - } - - } - COM: <s> crea un tray y lo muestra en pantalla </s> - diff --git a/funcom_test/18042345.txt b/funcom_test/18042345.txt deleted file mode 100644 index e32ab425d48a07a8386351dbd5ec8b4aeecf2f19..0000000000000000000000000000000000000000 --- a/funcom_test/18042345.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private boolean isIdentifierChar(byte ch) { - return (((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z')) - || ((ch >= '0') && (ch <= '9')) || (".-_:".indexOf(ch) >= 0)); - } - COM: <s> checks whether a character may be part of an identifier </s> - diff --git a/funcom_test/18042437.txt b/funcom_test/18042437.txt deleted file mode 100644 index 1ac314a101de71ab2fabe7c5eacae829e9efd36f..0000000000000000000000000000000000000000 --- a/funcom_test/18042437.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String scanIdentifier(byte[] input, int offset, int end) { - int begin = offset; - - while ((offset < end) && (this.isIdentifierChar(input[offset]))) { - offset++; - } - - if ((offset == end) || (offset == begin)) { - return null; - } else { - return new String(input, begin, offset - begin); - } - } - COM: <s> scans an identifier </s> - diff --git a/funcom_test/18044835.txt b/funcom_test/18044835.txt deleted file mode 100644 index ef19f804cf2e44dbef2ec5fb440c42964f1d9747..0000000000000000000000000000000000000000 --- a/funcom_test/18044835.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void putPiece(Piece p){ - - int x = 0; - int y = 0; - for(int c = 0; c < 4; c++){ - Point component = p.getComponent(c); - x = component.x; - y = component.y; - - if( x >= 0 && x < width && y >= 0 && y < height ){ - data[x+y*width] = p.getType()+1; - //min is needed because you can slide pieces under other pieces - remain[x] = Math.min(y, remain[x]); - } - } - } - COM: <s> puts piece into stack </s> - diff --git a/funcom_test/18044845.txt b/funcom_test/18044845.txt deleted file mode 100644 index 22b14a67a3e40547ec00d165e61ed9dcba6f0a97..0000000000000000000000000000000000000000 --- a/funcom_test/18044845.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void removeRow(int row){ - for(int col = 0; col < width; col++){ - for(int r = row - 1; r >= remain[col]-1; r--){ - data[col+(r+1)*width] = data[col+r*width]; - } - //remain can increase by more than one if there is empty space - //below the cleared line - int r = remain[col]; - while( r < height && data[col+width*r] == EMPTY_CELL){ - r++; - } - remain[col] = r; - } - } - COM: <s> removes a row </s> - diff --git a/funcom_test/18044864.txt b/funcom_test/18044864.txt deleted file mode 100644 index 45ffe2a405a7ddbc63eff0763552b593f6fb6745..0000000000000000000000000000000000000000 --- a/funcom_test/18044864.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void paintBlock(int type, Graphics g){ - //Clear Background - g.setColor(Color.BLACK); - g.fillRect(0,0,4*cellSize, 4*cellSize); - - Piece p = new Piece(); - p.setType(type); - - g.setColor(blockColor[type]); - - //draw the block's components - for(int c = 0; c < 4; c++){ - Point location = p.getComponent(c); - g.fillRect(location.x*cellSize, location.y*cellSize, cellSize, cellSize); - } - } - COM: <s> paint an image of the given block </s> - diff --git a/funcom_test/1806049.txt b/funcom_test/1806049.txt deleted file mode 100644 index 7c2c83689b3c0b46f9ea5b3b67fe5cff8940de56..0000000000000000000000000000000000000000 --- a/funcom_test/1806049.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void handleDocumentAboutToBeChanged() { - IDocument document= fDocument; - if (fCharSequence == null || document == null) - return; - String content= document.get(); - synchronized (this) { - if (fCharSequence == null) - return; - fCharSequence= content; - } - releaseDocument(); - } - COM: <s> copies the document prior to modification and removes the document listener </s> - diff --git a/funcom_test/1810057.txt b/funcom_test/1810057.txt deleted file mode 100644 index c3cc07fe36e5c717bba73529eb7df1268d2bfc41..0000000000000000000000000000000000000000 --- a/funcom_test/1810057.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void fireKeyDown(Widget sender, char keyCode, int modifiers) { - for (Iterator it = iterator(); it.hasNext();) { - KeyboardListener listener = (KeyboardListener) it.next(); - listener.onKeyDown(sender, keyCode, modifiers); - } - } - COM: <s> fires a key down event to all listeners </s> - diff --git a/funcom_test/1810078.txt b/funcom_test/1810078.txt deleted file mode 100644 index 02cfb643aad790b1a868c1d9e148dd91762601ea..0000000000000000000000000000000000000000 --- a/funcom_test/1810078.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addItem(TreeItem item) { - item.setTree(tree); - item.setParentItem(this); - children.add(item); - - DOM.setStyleAttribute(item.getElement(), "marginLeft", 16 + "px"); - - DOM.appendChild(childSpanElem, item.getElement()); - if (children.size() == 1) - updateState(); - } - COM: <s> adds another item as a child to this one </s> - diff --git a/funcom_test/1810081.txt b/funcom_test/1810081.txt deleted file mode 100644 index ed77aa667c75c2f6c9757dbe0e74a10c4c54218c..0000000000000000000000000000000000000000 --- a/funcom_test/1810081.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void onAttach() { - if (attached) - return; - - attached = true; - - // Set the main element's event listener. This should only be set - // while the widget is attached, because it creates a circular - // reference between JavaScript and the DOM. - DOM.setEventListener(getElement(), this); - - // Now that the widget is attached, call onLoad(). - onLoad(); - } - COM: <s> this method is called when a widget is attached to the browsers document </s> - diff --git a/funcom_test/1810102.txt b/funcom_test/1810102.txt deleted file mode 100644 index 1f37917083909dc14a2f4a8256c717d8a831f858..0000000000000000000000000000000000000000 --- a/funcom_test/1810102.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void prepareCell(int row, int column) { - // Ensure that the indices are not negative. - prepareRow(row); - if (column < 0) { - throw new IndexOutOfBoundsException("Cannot access a cell at column " - + column); - } - - if (column >= numColumns) { - throw new IndexOutOfBoundsException("There are " + numRows - + " columns, so no element can be added at column " + column); - } - } - COM: <s> checks that a cell is a valid cell in the table </s> - diff --git a/funcom_test/1810122.txt b/funcom_test/1810122.txt deleted file mode 100644 index 84927d3ebb8ed942d20da1f82fcf4893e07aeb0e..0000000000000000000000000000000000000000 --- a/funcom_test/1810122.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void remove() { - if (parent != null) { - // If this item has a parent, remove self from it. - parent.removeItem(this); - } - else if (tree != null) { - // If the item has no parent, but is in the Tree, it must be a top-level - // element. - tree.removeItem(this); - } - } - COM: <s> removes this item from its tree </s> - diff --git a/funcom_test/1810125.txt b/funcom_test/1810125.txt deleted file mode 100644 index 33b73542de0e1f9bddcb70a7925015b1d2bd7971..0000000000000000000000000000000000000000 --- a/funcom_test/1810125.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeItem(TreeItem item) { - if (!children.contains(item)) - return; - - item.setTree(null); - item.setParentItem(null); - children.remove(item); - DOM.removeChild(childSpanElem, item.getElement()); - if (children.size() == 0) - updateState(); - } - COM: <s> removes one of this items children </s> - diff --git a/funcom_test/1810191.txt b/funcom_test/1810191.txt deleted file mode 100644 index 433a369435e0294ab86a00cb760b633311afc8f4..0000000000000000000000000000000000000000 --- a/funcom_test/1810191.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void fireCellClicked(SourcesTableEvents sender, int row, int cell) { - for (Iterator it = iterator(); it.hasNext();) { - TableListener listener = (TableListener) it.next(); - listener.onCellClicked(sender, row, cell); - } - } - COM: <s> fires a cell clicked event to all listeners </s> - diff --git a/funcom_test/1810270.txt b/funcom_test/1810270.txt deleted file mode 100644 index fb71c3991dcc6ec2f8b278801acac652103e5aec..0000000000000000000000000000000000000000 --- a/funcom_test/1810270.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setPixelSize(int width, int height) { - if (width >= 0) - DOM.setStyleAttribute(element, "width", width + "px"); - if (height >= 0) - DOM.setStyleAttribute(element, "height", height + "px"); - } - COM: <s> sets the objects size in pixels not including decorations such as </s> - diff --git a/funcom_test/1810365.txt b/funcom_test/1810365.txt deleted file mode 100644 index 034ce80ef1f685b2c365bbb32f1aec97dd08ad73..0000000000000000000000000000000000000000 --- a/funcom_test/1810365.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void submit() { - // Fire the onSubmit event, because javascript's form.submit() does not - // fire the built-in onsubmit event. - if (formHandlers != null) { - if (formHandlers.fireOnSubmit(this)) - return; - } - - impl.submit(getElement(), iframe); - } - COM: <s> submits the form </s> - diff --git a/funcom_test/1810376.txt b/funcom_test/1810376.txt deleted file mode 100644 index a4853bed77ad99321c3a9470e921649433797cfe..0000000000000000000000000000000000000000 --- a/funcom_test/1810376.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean fireBeforeTabSelected(SourcesTabEvents sender, int tabIndex) { - for (Iterator it = iterator(); it.hasNext();) { - TabListener listener = (TabListener) it.next(); - if (!listener.onBeforeTabSelected(sender, tabIndex)) - return false; - } - return true; - } - COM: <s> fires a before tab selected event to all listeners </s> - diff --git a/funcom_test/1810433.txt b/funcom_test/1810433.txt deleted file mode 100644 index 96171192a5a44fc635b7de2ba1ec2abe52079580..0000000000000000000000000000000000000000 --- a/funcom_test/1810433.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void disown(Widget w) { - // Only disown it if it's actually contained in this panel. - if (w.getParent() != this) { - throw new IllegalArgumentException("w is not a child of this panel"); - } - - // Remove it at the DOM and GWT levels. - Element elem = w.getElement(); - DOM.removeChild(DOM.getParent(elem), elem); - w.setParent(null); - } - COM: <s> this method must be called whenever a widget is removed </s> - diff --git a/funcom_test/1810451.txt b/funcom_test/1810451.txt deleted file mode 100644 index f1926dee3f8a2a4b83219ca061d6244b8fa6fb13..0000000000000000000000000000000000000000 --- a/funcom_test/1810451.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void fireScroll(Widget sender, int scrollLeft, int scrollTop) { - for (Iterator it = iterator(); it.hasNext();) { - ScrollListener listener = (ScrollListener) it.next(); - listener.onScroll(sender, scrollLeft, scrollTop); - } - } - COM: <s> fires a scroll event to all listeners </s> - diff --git a/funcom_test/1810479.txt b/funcom_test/1810479.txt deleted file mode 100644 index 198d40efcd46c0e47b51482beffa2103474579a4..0000000000000000000000000000000000000000 --- a/funcom_test/1810479.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setWidth(int row, int column, String width) { - // Give the subclass a chance to prepare the cell. - prepareCell(row, column); - DOM.setAttribute(getCellElement(tableElem, row, column), "width", width); - } - COM: <s> sets the width of the specified cell </s> - diff --git a/funcom_test/1810498.txt b/funcom_test/1810498.txt deleted file mode 100644 index 1e66e869e331bd51f7fec989867e94b6480dcf3d..0000000000000000000000000000000000000000 --- a/funcom_test/1810498.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setWordWrap(int row, int column, boolean wrap) { - prepareCell(row, column); - String wrapValue = wrap ? "" : "nowrap"; - DOM.setStyleAttribute(getElement(row, column), "whiteSpace", wrapValue); - } - COM: <s> sets whether the specified cell will allow word wrapping of its contents </s> - diff --git a/funcom_test/1810536.txt b/funcom_test/1810536.txt deleted file mode 100644 index d9826b6fcc8f9bcbc4318a6edc009240a61ada8d..0000000000000000000000000000000000000000 --- a/funcom_test/1810536.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void prepareCell(int row, int column) { - prepareRow(row); - if (column < 0) { - throw new IndexOutOfBoundsException( - "Cannot create a column with a negative index: " + column); - } - - // Ensure that the requested column exists. - int cellCount = getCellCount(row); - for (int i = cellCount; i <= column; ++i) - addCell(row); - } - COM: <s> ensure that the cell exists </s> - diff --git a/funcom_test/1810539.txt b/funcom_test/1810539.txt deleted file mode 100644 index 8ddc5f3083f23b41e91ae592b77581e317ddba82..0000000000000000000000000000000000000000 --- a/funcom_test/1810539.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void prepareRow(int row) { - if (row < 0) { - throw new IndexOutOfBoundsException( - "Cannot create a row with a negative index: " + row); - } - - // Ensure that the requested row exists. - int rowCount = getRowCount(); - for (int i = rowCount; i <= row; i++) - insertRow(i); - } - COM: <s> ensure that the row exists </s> - diff --git a/funcom_test/1810691.txt b/funcom_test/1810691.txt deleted file mode 100644 index 72b359fba048bf9525857cf7b42dd00e484f237c..0000000000000000000000000000000000000000 --- a/funcom_test/1810691.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private JClassType getSerializableSuperclass(JClassType serializableClass) { - if (serializableClass == null) { - return null; - } - - JClassType superClass = serializableClass.getSuperclass(); - if (superClass != null) { - SerializableTypeOracle serializationOracle = getSerializationOracle(); - if (serializationOracle.isSerializable(superClass)) { - return superClass; - } - - return getSerializableSuperclass(superClass); - } - - return null; - } - COM: <s> given a class return the next superclass that is serializable </s> - diff --git a/funcom_test/1810700.txt b/funcom_test/1810700.txt deleted file mode 100644 index 232e9252b02aec932fe2f7b00f8dfc8f129e3381..0000000000000000000000000000000000000000 --- a/funcom_test/1810700.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean isValid() throws TypeOracleException { - TreeLogger logger = rootLogger.branch(TreeLogger.SPAM, - "Validating service interface '" + serviceIntf.getQualifiedSourceName() - + "'", null); - - typeToFinalInstanceFieldCache.clear(); - - if (!validServiceInterface(logger)) { - return false; - } - - if (!validAsyncServiceInterface(logger)) { - return false; - } - - return true; - } - COM: <s> perform a set of consistency checks on the service interface </s> - diff --git a/funcom_test/1810708.txt b/funcom_test/1810708.txt deleted file mode 100644 index a9be0205bf9177c7c6693a2b1a7717b5ddf72d16..0000000000000000000000000000000000000000 --- a/funcom_test/1810708.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void writeFieldAccessors() { - JField[] serializableFields = applyFieldSerializationPolicy(); - int fieldCount = serializableFields.length; - - for (int fieldIndex = 0; fieldIndex < fieldCount; ++fieldIndex) { - JField serializableField = serializableFields[fieldIndex]; - - if (!needsAccessorMethods(serializableField)) { - continue; - } - - writeFieldGet(serializableField); - writeFieldSet(serializableField); - } - } - COM: <s> this method will generate a native jsni accessor method for every field </s> - diff --git a/funcom_test/1810780.txt b/funcom_test/1810780.txt deleted file mode 100644 index 9d2f8661fa33afb204cd03ecc5df0c4719fa305e..0000000000000000000000000000000000000000 --- a/funcom_test/1810780.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isCellPresent(int row, int column) { - if ((row >= getRowCount()) && (row < 0)) { - return false; - } - if ((column < 0) || (column >= getCellCount(row))) { - return false; - } else { - return true; - } - } - COM: <s> determines whether the specified cell exists </s> - diff --git a/funcom_test/1810793.txt b/funcom_test/1810793.txt deleted file mode 100644 index 3260bebd01ab22a41c34a4b453611a2084697929..0000000000000000000000000000000000000000 --- a/funcom_test/1810793.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public SourceWriter createSourceWriter(PrintWriter printWriter) { - return new ClassSourceFileComposer(null, printWriter, getCreatedPackage(), - getCreatedClassShortName(), getSuperclassName(), getInterfaceNames(), - getImports(), classCategory, classComment); - } - COM: <s> creates an implementation of </s> - diff --git a/funcom_test/1810855.txt b/funcom_test/1810855.txt deleted file mode 100644 index 4e3111c802deb4b48b53aa1bcc00cbee5968b6e5..0000000000000000000000000000000000000000 --- a/funcom_test/1810855.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString() { - // Backslashes and quotes must be escaped - String s = value; - // replaces \ with \\ - s = s.replaceAll("\\\\", "\\\\\\\\"); - // replaces " with \" - s = s.replaceAll("\\\"", "\\\\\""); - // wrap the result in quotes - return "\"" + s + "\""; - } - COM: <s> returns the json formatted value of this string quoted for evaluating in a </s> - diff --git a/funcom_test/1810866.txt b/funcom_test/1810866.txt deleted file mode 100644 index a083cb02ccab1840e8082629f3348718ff12f80c..0000000000000000000000000000000000000000 --- a/funcom_test/1810866.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public JSONValue get(int index) throws JSONException { - if (wrappedTest(index)) { - return wrappedGet(index); - } - JSONValue wrapped = null; - if (rawTest(index)) { - wrapped = JSONParser.buildValue(rawGet(index)); - rawSet(index, null); - } - wrappedSet(index, wrapped); - return wrapped; - } - COM: <s> returns the value at the specified index position </s> - diff --git a/funcom_test/1810883.txt b/funcom_test/1810883.txt deleted file mode 100644 index 6063869f4057b0efd90003efe279895fd3d84783..0000000000000000000000000000000000000000 --- a/funcom_test/1810883.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Node removeNamedItem(String name) { - try { - return NodeImpl.build(XMLParserImpl.removeNamedItem(this.getJsObject(), - name)); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_MODIFICATION_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code remove named item code </s> - diff --git a/funcom_test/1810886.txt b/funcom_test/1810886.txt deleted file mode 100644 index 2785a3230f6b1df4316c072943cba0353f21dc69..0000000000000000000000000000000000000000 --- a/funcom_test/1810886.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Node setNamedItem(Node arg) { - try { - return NodeImpl.build(XMLParserImpl.setNamedItem(this.getJsObject(), - ((DOMItem) arg).getJsObject())); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_MODIFICATION_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code set named item code in </s> - diff --git a/funcom_test/1810892.txt b/funcom_test/1810892.txt deleted file mode 100644 index 287d4cc8cbba5fe4251d5aee58e69c5f34d4d582..0000000000000000000000000000000000000000 --- a/funcom_test/1810892.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public CDATASection createCDATASection(String data) { - try { - return (CDATASection) NodeImpl.build(XMLParserImpl.createCDATASection( - this.getJsObject(), data)); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_CHARACTER_ERR, e, this); - } - } - COM: <s> this function delegates to the native method </s> - diff --git a/funcom_test/1810896.txt b/funcom_test/1810896.txt deleted file mode 100644 index 8700386a80266ec1468c0cf7b1f6f9d014d702cf..0000000000000000000000000000000000000000 --- a/funcom_test/1810896.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Comment createComment(String data) { - try { - return (Comment) NodeImpl.build(XMLParserImpl.createComment(this - .getJsObject(), data)); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_CHARACTER_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code create comment code </s> - diff --git a/funcom_test/1810897.txt b/funcom_test/1810897.txt deleted file mode 100644 index dbb70f3c7fca9990672eca1016f468bd82582da6..0000000000000000000000000000000000000000 --- a/funcom_test/1810897.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void deleteData(int offset, int count) { - try { - XMLParserImpl.deleteData(this.getJsObject(), offset, count); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_MODIFICATION_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code delete data code in </s> - diff --git a/funcom_test/1810906.txt b/funcom_test/1810906.txt deleted file mode 100644 index ec7bd0b76e38b7957b012e0e2e906e38270a3619..0000000000000000000000000000000000000000 --- a/funcom_test/1810906.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void insertData(int offset, String arg) { - try { - XMLParserImpl.insertData(this.getJsObject(), offset, arg); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_MODIFICATION_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code insert data code in </s> - diff --git a/funcom_test/1810907.txt b/funcom_test/1810907.txt deleted file mode 100644 index 2da675d3fe47e2af2f9e8adfc9f3d2c1178a4059..0000000000000000000000000000000000000000 --- a/funcom_test/1810907.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Element createElement(String tagName) { - try { - return (Element) NodeImpl.build(XMLParserImpl.createElement(this - .getJsObject(), tagName)); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_CHARACTER_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code create element code </s> - diff --git a/funcom_test/1810909.txt b/funcom_test/1810909.txt deleted file mode 100644 index 38a3b10151f001c6893b234d683e889da8a9da84..0000000000000000000000000000000000000000 --- a/funcom_test/1810909.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void replaceData(int offset, int count, String arg) { - try { - XMLParserImpl.replaceData(this.getJsObject(), offset, count, arg); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_MODIFICATION_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code replace data code in </s> - diff --git a/funcom_test/1810914.txt b/funcom_test/1810914.txt deleted file mode 100644 index 11a9eb372167dc4b9cecba4886f1ce170085afde..0000000000000000000000000000000000000000 --- a/funcom_test/1810914.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Text createTextNode(String data) { - try { - return (Text) NodeImpl.build(XMLParserImpl.createTextNode(this - .getJsObject(), data)); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_CHARACTER_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code create text node code </s> - diff --git a/funcom_test/1810915.txt b/funcom_test/1810915.txt deleted file mode 100644 index 1276f1a2bd1ce6876995bfea6fc3ce154db37b5a..0000000000000000000000000000000000000000 --- a/funcom_test/1810915.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String substringData(final int offset, final int count) { - try { - return XMLParserImpl.substringData(this.getJsObject(), offset, count); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_ACCESS_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code substring data code </s> - diff --git a/funcom_test/1810917.txt b/funcom_test/1810917.txt deleted file mode 100644 index b0fa9a44d925ea17cd8138e2d233b1f7f64b5c46..0000000000000000000000000000000000000000 --- a/funcom_test/1810917.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setAttribute(String name, String value) throws DOMNodeException { - try { - XMLParserImpl.setAttribute(this.getJsObject(), name, value); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_MODIFICATION_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code set attribute code in </s> - diff --git a/funcom_test/1810919.txt b/funcom_test/1810919.txt deleted file mode 100644 index e8d266546ec88e19b23d7deb5ba07d2943a72e69..0000000000000000000000000000000000000000 --- a/funcom_test/1810919.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Node importNode(Node importedNode, boolean deep) { - try { - return NodeImpl.build(XMLParserImpl.importNode(this.getJsObject(), - ((DOMItem) importedNode).getJsObject(), deep)); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_STATE_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code import node code in </s> - diff --git a/funcom_test/1810927.txt b/funcom_test/1810927.txt deleted file mode 100644 index bf3bd50d112bed83f3c19f6d7a8102977f4e1ca7..0000000000000000000000000000000000000000 --- a/funcom_test/1810927.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean equals(final Object o) { - /* - * This method uses the DOM equals method because it happens to work - * perfectly for all the browsers we support, and that method is different - * for each browser. - */ - if (o instanceof DOMItem) { - return DOM.compare(castToElement(this.getJsObject()), - castToElement(((DOMItem) o).getJsObject())); - } - return false; - } - COM: <s> this method determines equality for domitems </s> - diff --git a/funcom_test/1810929.txt b/funcom_test/1810929.txt deleted file mode 100644 index f811a50f70fd2fe3b401a642a057d0b96b75af76..0000000000000000000000000000000000000000 --- a/funcom_test/1810929.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Text splitText(int offset) { - try { - return (Text) NodeImpl.build(XMLParserImpl.splitText(this.getJsObject(), - offset)); - } catch (JavaScriptException e) { - throw new DOMNodeException(DOMNodeException.INVALID_MODIFICATION_ERR, e, this); - } - } - COM: <s> this function delegates to the native method code split text code in </s> - diff --git a/funcom_test/1811035.txt b/funcom_test/1811035.txt deleted file mode 100644 index 524cbaf76d373986dc39994c4caaacd65a51b980..0000000000000000000000000000000000000000 --- a/funcom_test/1811035.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void checkRowBounds(int row) { - int rowSize = getRowCount(); - if ((row >= rowSize) || (row < 0)) { - throw new IndexOutOfBoundsException("Row " + row - + " does not exist, row size is " + getRowCount()); - } - } - COM: <s> checks that the row is within the correct bounds </s> - diff --git a/funcom_test/1811201.txt b/funcom_test/1811201.txt deleted file mode 100644 index a5670970b7be6f8fd744775cb93082bf36299344..0000000000000000000000000000000000000000 --- a/funcom_test/1811201.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void insertCells(int row, int column, int count) { - Element tr = DOM.getChild(bodyElem, row); - for (int i = column; i < column + count; i++) { - Element td = createCell(); - DOM.insertChild(tr, td, i); - } - } - COM: <s> inserts a number of cells before the specified cell </s> - diff --git a/funcom_test/1811219.txt b/funcom_test/1811219.txt deleted file mode 100644 index add0521c3aedd6e03bfb21e8f9cf5f1289488138..0000000000000000000000000000000000000000 --- a/funcom_test/1811219.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected int insertRow(int beforeRow) { - // Specifically allow the row count as an insert position. - if (beforeRow != getRowCount()) { - checkRowBounds(beforeRow); - } - Element tr = DOM.createTR(); - DOM.insertChild(bodyElem, tr, beforeRow); - return beforeRow; - } - COM: <s> inserts a new row into the table </s> - diff --git a/funcom_test/1811280.txt b/funcom_test/1811280.txt deleted file mode 100644 index 5767fe941481fbca24d5c506b4f075a5c75567dc..0000000000000000000000000000000000000000 --- a/funcom_test/1811280.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void removeRow(int row) { - int columnCount = getCellCount(row); - for (int column = 0; column < columnCount; ++column) { - cleanCell(row, column); - } - DOM.removeChild(bodyElem, DOM.getChild(bodyElem, row)); - } - COM: <s> removes the specified row from the table </s> - diff --git a/funcom_test/18122515.txt b/funcom_test/18122515.txt deleted file mode 100644 index 87b82f6594ee558f5f0c2819ac8a8a367b888cc8..0000000000000000000000000000000000000000 --- a/funcom_test/18122515.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getPreference(String name, IProject project) { - String toReturn = null; - if(project != null) { - try { - toReturn = project.getPersistentProperty(new QualifiedName(PLUGIN_ID, name)); - } catch (CoreException e) { - // Ignore as this means we don't have any project properties... - } - } - if(toReturn == null) { - toReturn = this.getPreferenceStore().getString(name); - } - return toReturn; - } - COM: <s> pulls a string valued preference first from the project if applicable </s> - diff --git a/funcom_test/18123111.txt b/funcom_test/18123111.txt deleted file mode 100644 index 71ac4d401dd923a9f52d300a4c093cfa21240f5c..0000000000000000000000000000000000000000 --- a/funcom_test/18123111.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setLOLRuntime(LOLRuntime runtime) { - ifExpression.setLOLRuntime(runtime); - - super.setLOLRuntime(runtime); - for(LOLRuntimeExpression maybeVal : maybeExpressions) { - maybeVal.setLOLRuntime(runtime); - for(RuntimeAction action : maybeActions.get(maybeVal)) { - action.setLOLRuntime(runtime); - } - } - for(RuntimeAction action : trueActions) { - action.setLOLRuntime(runtime); - } - for(RuntimeAction action : falseActions) { - action.setLOLRuntime(runtime); - } - - } - COM: <s> makes sure the runtime is set on all sub actons expressions </s> - diff --git a/funcom_test/18123215.txt b/funcom_test/18123215.txt deleted file mode 100644 index 120158d602bc9bbc91c062854ab3de426dc94218..0000000000000000000000000000000000000000 --- a/funcom_test/18123215.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void createContents(String message, int heightHint, int widthHint) { - GridLayout layout = new GridLayout(); - layout.marginWidth = 0; - setLayout(layout); - setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - - Label label = new Label(this, SWT.WRAP); - label.setText(message); - label.setFont(this.getFont()); - - - // TODO - Remove the filler... - new Label(this, SWT.NONE); - - - createTreeViewer(heightHint); - Dialog.applyDialogFont(this); - } - COM: <s> creates the contents of the composite </s> - diff --git a/funcom_test/18123253.txt b/funcom_test/18123253.txt deleted file mode 100644 index c8a7c3a2ae9d378090a7315c31561bb0a30f2191..0000000000000000000000000000000000000000 --- a/funcom_test/18123253.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setSelectedScript(Object script) { - selectedScript = script; - - // expand to and select the specified container - List itemsToExpand = new ArrayList(); - IContainer parent = project.getParent(); - while (parent != null) { - itemsToExpand.add(0, parent); - parent = parent.getParent(); - } - treeViewer.setExpandedElements(itemsToExpand.toArray()); - treeViewer.setSelection(new StructuredSelection(project), true); - } - COM: <s> sets the selected existing script </s> - diff --git a/funcom_test/18123262.txt b/funcom_test/18123262.txt deleted file mode 100644 index d77af803e6cff2744cc6c5b1616efbed04cd8853..0000000000000000000000000000000000000000 --- a/funcom_test/18123262.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setSelectedProject(IProject project) { - selectedProject = project; - - // expand to and select the specified container - List itemsToExpand = new ArrayList(); - IContainer parent = project.getParent(); - while (parent != null) { - itemsToExpand.add(0, parent); - parent = parent.getParent(); - } - treeViewer.setExpandedElements(itemsToExpand.toArray()); - treeViewer.setSelection(new StructuredSelection(project), true); - } - COM: <s> sets the selected existing project </s> - diff --git a/funcom_test/18185450.txt b/funcom_test/18185450.txt deleted file mode 100644 index 6404a9916263873913dc262332c9e7e371aa5871..0000000000000000000000000000000000000000 --- a/funcom_test/18185450.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public WebConnection (InetAddress ia, int port) throws IOException { - this.ia = ia; - this.port = port; - - if(port<=0 || port >65535) throw new java.net.UnknownHostException("Port number out of range"); - if(ia==null) throw new java.net.UnknownHostException("Host not found in WebConnection"); - socket=null; - reconnect(); - } - COM: <s> create a new web connection to the given inet address and port </s> - diff --git a/funcom_test/18185456.txt b/funcom_test/18185456.txt deleted file mode 100644 index e432e138a95cc8557b7b5d5cbd2028a162569d52..0000000000000000000000000000000000000000 --- a/funcom_test/18185456.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void close () throws IOException { - try { - if(webos!=null) webos.close (); - if(webis!=null) webis.close (); - if(socket!=null) socket.close (); - } catch (IOException e) { - // System.out.println("couldnt close WebConnection: " + e.getMessage ()); - throw e; - } - finally - { - webos = null; - webis = null; - socket = null; - ia = null; - releasedAt = 0; - keepalive = false; - } - } - COM: <s> close the connection </s> - diff --git a/funcom_test/18202981.txt b/funcom_test/18202981.txt deleted file mode 100644 index d37a5fdcaebc3616c0285d7bb36606b4c2533d2d..0000000000000000000000000000000000000000 --- a/funcom_test/18202981.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setDouble(int parameterIndex, double x) throws SQLException { - - if (!this.connection.getAllowNanAndInf() - && (x == Double.POSITIVE_INFINITY - || x == Double.NEGATIVE_INFINITY || Double.isNaN(x))) { - throw new SQLException("'" + x - + "' is not a valid numeric or approximate numeric value", - SQLError.SQL_STATE_ILLEGAL_ARGUMENT); - - } - - setInternal(parameterIndex, StringUtils.fixDecimalExponent(String - .valueOf(x))); - } - COM: <s> set a parameter to a java double value </s> - diff --git a/funcom_test/18203301.txt b/funcom_test/18203301.txt deleted file mode 100644 index dfe2471891b86cf0e9f9224bcffde1040a8199ca..0000000000000000000000000000000000000000 --- a/funcom_test/18203301.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected void initializeFromRef(Reference ref) throws SQLException { - int numPropertiesToSet = PROPERTY_LIST.size(); - - for (int i = 0; i < numPropertiesToSet; i++) { - java.lang.reflect.Field propertyField = (java.lang.reflect.Field) PROPERTY_LIST - .get(i); - - try { - ConnectionProperty propToSet = (ConnectionProperty) propertyField - .get(this); - - if (ref != null) { - propToSet.initializeFrom(ref); - } - } catch (IllegalAccessException iae) { - throw new SQLException("Internal properties failure", - SQLError.SQL_STATE_GENERAL_ERROR); - } - } - - postInitialization(); - } - COM: <s> initializes driver properties that come from a jndi reference in the </s> - diff --git a/funcom_test/18205925.txt b/funcom_test/18205925.txt deleted file mode 100644 index 2f9c2665c9f7f0cabd900af741b4a816b1d17c4b..0000000000000000000000000000000000000000 --- a/funcom_test/18205925.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void cleanup(Throwable fromWhere, Throwable whyCleanedUp) { - try { - if ((this.io != null) && !isClosed()) { - realClose(false, false, false, whyCleanedUp); - } else if (this.io != null) { - this.io.forceClose(); - } - } catch (SQLException sqlEx) { - // ignore, we're going away. - ; - } - - this.isClosed = true; - } - COM: <s> destroys this connection and any underlying resources </s> - diff --git a/funcom_test/18251030.txt b/funcom_test/18251030.txt deleted file mode 100644 index 45446c2cb617237a97f3f31fcb8b0fa49bc8be96..0000000000000000000000000000000000000000 --- a/funcom_test/18251030.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String qualifiedTableName(Table t) { - String schema = t.getOriginalSchema(""); - String mappedSchema = CommandLineParser.getInstance().getSchemaMapping().get(schema); - if (mappedSchema != null) { - schema = mappedSchema; - } - if (schema.length() == 0) { - return t.getUnqualifiedName(); - } - return schema + "." + t.getUnqualifiedName(); - } - COM: <s> gets qualified table name </s> - diff --git a/funcom_test/18251057.txt b/funcom_test/18251057.txt deleted file mode 100644 index 0dd5cd63d0b484d40f91200d5194e5768da9f96c..0000000000000000000000000000000000000000 --- a/funcom_test/18251057.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Cardinality reverse() { - if (this == ONE_TO_ONE) return ONE_TO_ONE; - if (this == ONE_TO_MANY) return MANY_TO_ONE; - if (this == MANY_TO_ONE) return ONE_TO_MANY; - if (this == MANY_TO_MANY) return MANY_TO_MANY; - return null; - } - COM: <s> gets the cardinality of the reversal association </s> - diff --git a/funcom_test/18251069.txt b/funcom_test/18251069.txt deleted file mode 100644 index 114e83f7fc9ea83c9eef102707ff754d81ab8ffd..0000000000000000000000000000000000000000 --- a/funcom_test/18251069.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getJoinCondition() { - if (dataModel.getRestrictionModel() != null) { - String restriction = dataModel.getRestrictionModel().getRestriction(this); - if (restriction != null) { - if (restriction == RestrictionModel.IGNORE) { - return null; - } - return "(" + joinCondition + ") and " + restriction; - } - } - return joinCondition; - } - COM: <s> gets the restricted join condition for joining source with destination table </s> - diff --git a/funcom_test/18251149.txt b/funcom_test/18251149.txt deleted file mode 100644 index a71f5b4095961cc0b999400a628870c9bdc92376..0000000000000000000000000000000000000000 --- a/funcom_test/18251149.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int indexOfDot(String fullName) { - if (fullName.length() > 0) { - char c = fullName.charAt(0); - if (SqlUtil.LETTERS_AND_DIGITS.indexOf(c) < 0) { - // quoting - int end = fullName.substring(1).indexOf(c); - if (end >= 0) { - end += 1; - int i = fullName.substring(end).indexOf('.'); - if (i >= 0) { - return i + end; - } - return -1; - } - } - } - return fullName.indexOf('.'); - } - COM: <s> gets index of schema table separator </s> - diff --git a/funcom_test/18251161.txt b/funcom_test/18251161.txt deleted file mode 100644 index 34b7fa0402363c093f97ec952dc788bf847d38ba..0000000000000000000000000000000000000000 --- a/funcom_test/18251161.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String columnList(String prefix) { - String list = ""; - for (Column column: getColumns()) { - if (list.length() > 0) { - list += ", "; - } - if (prefix != null) { - list += prefix; - } - list += column.name; - } - return list; - } - COM: <s> creates a comma separated list of column names </s> - diff --git a/funcom_test/18251218.txt b/funcom_test/18251218.txt deleted file mode 100644 index 5feb4c38810c960362085a0f8e3ef0ee1d931c44..0000000000000000000000000000000000000000 --- a/funcom_test/18251218.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void saveXmlMapping(PrintWriter out) { - out.println(); - out.println(CsvFile.BLOCK_INDICATOR + "xml-mapping"); - for (Table table: getTables()) { - for (Association a: table.associations) { - String name = a.getName(); - String tag = a.getAggregationTagName(); - String aggregation = a.getAggregationSchema().name(); - out.println(CsvFile.encodeCell(name) + ";" + CsvFile.encodeCell(tag) + ";" + CsvFile.encodeCell(aggregation)); - } - } - } - COM: <s> saves xml mappings </s> - diff --git a/funcom_test/18251221.txt b/funcom_test/18251221.txt deleted file mode 100644 index 32f666b2371430168e24f72bdc1039915c4162b5..0000000000000000000000000000000000000000 --- a/funcom_test/18251221.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: private String tableRow(int indent, String content) throws FileNotFoundException, IOException { - return PrintUtil.applyTemplate("template" + File.separator + "table_top_line.html", new Object[] { indentSpaces(indent), content, "", "", "", COLOR_KEYWORDS, "" }); - } - COM: <s> generates a row in the table render </s> - diff --git a/funcom_test/18251232.txt b/funcom_test/18251232.txt deleted file mode 100644 index 8eba675e01ec47c28b82bc03ce703f7c2486df8e..0000000000000000000000000000000000000000 --- a/funcom_test/18251232.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void readInitialDataTables(Map<String, String> sourceSchemaMapping, Table subject) throws Exception { - File file = CommandLineParser.getInstance().newFile(DataModel.getInitialDataTablesFile()); - if (file.exists()) { - Set<Table> idTables = SqlUtil.readTableList(new CsvFile(file), datamodel, sourceSchemaMapping); - idTables.remove(subject); - initialDataTables = idTables; - } else { - initialDataTables = new HashSet<Table>(); - } - } - COM: <s> reads the initial data tables list </s> - diff --git a/funcom_test/18251237.txt b/funcom_test/18251237.txt deleted file mode 100644 index 72a87a87063111431118cbaea844b5637e3d79f7..0000000000000000000000000000000000000000 --- a/funcom_test/18251237.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String generateComponentsTable(Composite composite) throws SQLException, FileNotFoundException, IOException { - List<String> componentNames = new ArrayList<String>(); - - for (Table component: composite.componentTables) { - componentNames.add(linkTo(component)); - } - return generateHTMLTable("Components", null, componentNames, null); - } - COM: <s> generates a html render of a components table </s> - diff --git a/funcom_test/18251253.txt b/funcom_test/18251253.txt deleted file mode 100644 index bc22f1e24b84fade9176f05595387569f49afd48..0000000000000000000000000000000000000000 --- a/funcom_test/18251253.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String indentSpaces(int indent) { - StringBuffer result = new StringBuffer(); - for (int i = 1; i < indent; ++i) { - for (int j = 0; j < 8; ++j) { - result.append(" "); - } - } - return result.toString(); - } - COM: <s> returns space string of given length </s> - diff --git a/funcom_test/18251847.txt b/funcom_test/18251847.txt deleted file mode 100644 index cc14a2cebe6775b8ab8098c27485430c17dea163..0000000000000000000000000000000000000000 --- a/funcom_test/18251847.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addDbArgs(List<String> args) { - args.add(currentConnection.driverClass); - args.add(currentConnection.url); - args.add(currentConnection.user); - args.add(currentConnection.password); - if (currentConnection.jar1.trim().length() > 0) { - args.add("-jdbcjar"); - args.add(currentConnection.jar1.trim()); - } - if (currentConnection.jar2.trim().length() > 0) { - args.add("-jdbcjar2"); - args.add(currentConnection.jar2.trim()); - } - } - COM: <s> adds jailer cli arguments for db connection </s> - diff --git a/funcom_test/18252028.txt b/funcom_test/18252028.txt deleted file mode 100644 index 0a9fa50e3526bfe46cfc830d16c151a119f85b63..0000000000000000000000000000000000000000 --- a/funcom_test/18252028.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void setPLAF(String plaf) { - try { - UIManager.setLookAndFeel(plaf); - SwingUtilities.updateComponentTreeUI(this); - try { - File file = new File(PLAFSETTING); - file.delete(); - } catch (Exception e) { - } - try { - File plafSetting = new File(PLAFSETTING); - PrintWriter out = new PrintWriter(plafSetting); - out.println(plaf); - out.close(); - } catch (Exception x) { - } - } catch (Exception e) { - UIUtil.showException(this, "Error", e); - } - } - COM: <s> sets look feel </s> - diff --git a/funcom_test/18252038.txt b/funcom_test/18252038.txt deleted file mode 100644 index f9280e6f19bb40cb0faec4587a8f7b5ab1039271..0000000000000000000000000000000000000000 --- a/funcom_test/18252038.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void swapColumns(int i, int j) { - String h = currentColumnLine.cells.get(i + 1); - currentColumnLine.cells.set(i + 1, currentColumnLine.cells.get(j + 1)); - currentColumnLine.cells.set(j + 1, h); - columnsTable.setModel(columnsTableModel()); - columnsTable.getSelectionModel().setSelectionInterval(j, j); - needsSave = true; - } - COM: <s> swaps two columns in current column line </s> - diff --git a/funcom_test/18252104.txt b/funcom_test/18252104.txt deleted file mode 100644 index 7d4d4db7fa0b8c03c0764fcbdfbf396f996d4ab8..0000000000000000000000000000000000000000 --- a/funcom_test/18252104.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void saveDisplayNames() throws FileNotFoundException { - PrintWriter out = new PrintWriter(DataModel.getDisplayNamesFile()); - out.println("# table; display name"); - for (Map.Entry<String, String> e: displayNames.entrySet()) { - out.println(CsvFile.encodeCell(e.getKey()) + "; " + CsvFile.encodeCell(e.getValue())); - } - out.close(); - } - COM: <s> saves the display names </s> - diff --git a/funcom_test/18252350.txt b/funcom_test/18252350.txt deleted file mode 100644 index 2850ccfaaddfe7d24e2d8d347e4a9e9965bb645d..0000000000000000000000000000000000000000 --- a/funcom_test/18252350.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String joinTableRender(Table from, Association association) { - int n = 0; - for (Association a: from.associations) { - if (a.destination == association.destination) { - ++n; - } - } - return datamodel.getDisplayName(association.destination) + (n > 1? " on " + association.getName() : ""); - } - COM: <s> gets render of an association for the join combobox </s> - diff --git a/funcom_test/18252407.txt b/funcom_test/18252407.txt deleted file mode 100644 index 39ce245fdae233f9675a26da49ebc1a089b6a1ed..0000000000000000000000000000000000000000 --- a/funcom_test/18252407.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void open(Table table) { - filterTextfieldsPerColumn.clear(); - if (!isInitialized) { - int w = 600, h = 400; - setSize(w, h); - setLocation(Math.max(0, parent.getX() + parent.getWidth() / 2 - w / 2), - Math.max(0, parent.getY() + parent.getHeight() / 2 - h / 2)); - isInitialized = true; - } - refresh(table); - setVisible(true); - } - COM: <s> opens the editor </s> - diff --git a/funcom_test/18252428.txt b/funcom_test/18252428.txt deleted file mode 100644 index 736803d38346e61d8c62e90f10634e5dba810831..0000000000000000000000000000000000000000 --- a/funcom_test/18252428.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void storeFilterExpressions() { - for (Column c: filterTextfieldsPerColumn.keySet()) { - String newFilter = ConditionEditor.toMultiLine(filterTextfieldsPerColumn.get(c).getText()).trim(); - if (newFilter.length() == 0) { - newFilter = null; - } - c.setFilterExpression(newFilter); - } - getDataModel().version++; - parent.extractionModelEditor.refresh(false, false, true, true); - parent.extractionModelEditor.markDirty(); - } - COM: <s> stores the text field content </s> - diff --git a/funcom_test/18252435.txt b/funcom_test/18252435.txt deleted file mode 100644 index c79beb361bc4aca3be37c0296f91d007e3987a7b..0000000000000000000000000000000000000000 --- a/funcom_test/18252435.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void selectAllCells(String tableName) { - multiSelection = true; - selectedCells.clear(); - selectedTableName = tableName; - for (List<CellInfo> cL : cellInfos) { - for (CellInfo cellInfo : cL) { - if (cellInfo != null) { - if (cellInfo.tableName.equals(tableName)) { - if (cellInfo.numberOfRows > 0) { - selectCell(cellInfo); - } - } - } - } - } - repaint(); - } - COM: <s> selects all cells which render a given table </s> - diff --git a/funcom_test/18252454.txt b/funcom_test/18252454.txt deleted file mode 100644 index 246a9735cc918bcb76934a0de5fe734a20225d5e..0000000000000000000000000000000000000000 --- a/funcom_test/18252454.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean isLastRowVisible() { - if (getRowCount() == 0) { - return false; - } - Rectangle r = getCellRect(getRowCount() - 1, 1, true); - Rectangle visible = getVisibleRect(); - - boolean isVisible = r.y <= visible.y + visible.height; - return isVisible; -// return visible.y <= r.y && visible.y + visible.height >= r.y + r.height; - } - COM: <s> returns visibility of last row of the table </s> - diff --git a/funcom_test/18252518.txt b/funcom_test/18252518.txt deleted file mode 100644 index eedd1fa3d8f03d85e2f1a2c43804eb3d870487c8..0000000000000000000000000000000000000000 --- a/funcom_test/18252518.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean contains(String[] line) { - for (Line l: getLines()) { - boolean differenceFound = false; - int i = 0; - for (String cell: line) { - if (cell != null && !cell.equals(l.cells.get(i))) { - differenceFound = true; - break; - } - ++i; - } - if (!differenceFound) { - return true; - } - } - return false; - } - COM: <s> checks if a certain line can be found in this file </s> - diff --git a/funcom_test/18252594.txt b/funcom_test/18252594.txt deleted file mode 100644 index 1308aca19304c29b1871dea4d70663e708cdb33c..0000000000000000000000000000000000000000 --- a/funcom_test/18252594.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void flush() { - try { - writeToScriptFile(insertStatementBuilder.build(), true); - for (StatementBuilder sb: upsertInsertStatementBuilder.values()) { - writeToScriptFile(sb.build(), true); - } - } catch (IOException e) { - throw new RuntimeException(e); - } - } - COM: <s> flushes the export reader </s> - diff --git a/funcom_test/18252631.txt b/funcom_test/18252631.txt deleted file mode 100644 index 5f1a2a1346edaec6a50ab09b31c15f5581d66375..0000000000000000000000000000000000000000 --- a/funcom_test/18252631.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void append(String head, String item, String separator, String terminator) { - if (this.head != null && !this.head.equals(head)) { - throw new IllegalStateException("can't append, '" + this.head + "'!='" + head + "'"); - } - this.head = head; - this.terminator = terminator; - this.separator = separator; - body.add(item); - } - COM: <s> appends an item </s> - diff --git a/funcom_test/18252716.txt b/funcom_test/18252716.txt deleted file mode 100644 index 923a9d94b09f3ff131e8ab5fc5fe91cebfe8422f..0000000000000000000000000000000000000000 --- a/funcom_test/18252716.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Composite getComposite(Table table) { - if (componentCache.containsKey(table)) { - return componentCache.get(table); - } - for (Composite composite: composites.values()) { - if (composite.mainTable.equals(table) || composite.componentTables.contains(table)) { - componentCache.put(table, composite); - return composite; - } - } - return null; - } - COM: <s> gets composite in which a given table is contained </s> - diff --git a/funcom_test/18252737.txt b/funcom_test/18252737.txt deleted file mode 100644 index 40d1f47cb2e9418b23a91464b9e6d02eafe78671..0000000000000000000000000000000000000000 --- a/funcom_test/18252737.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean showTable(Graph graph, Table table) { - if (table != null && !tableNodes.containsKey(table)) { - Node n = graph.addNode(); - n.setString("label", table.getName()); - String tooltip = tableRenderer.getToolTip(table); - n.setString("tooltip", tooltip); - tableNodes.put(table, n); - return true; - } - return false; - } - COM: <s> creates visible node for given table </s> - diff --git a/funcom_test/18252790.txt b/funcom_test/18252790.txt deleted file mode 100644 index fe70a30295c26a5535390565866f4d4a09f2f0b8..0000000000000000000000000000000000000000 --- a/funcom_test/18252790.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void rollbackAll() throws SQLException { - for (Connection con: connections) { - try { - con.rollback(); - } catch(SQLException e) { - _log.warn(e.getMessage()); - } - try { - con.close(); - } catch(SQLException e) { - _log.warn(e.getMessage()); - } - } - connection = new ThreadLocal<Connection>(); - } - COM: <s> rolls back and closes all connections </s> - diff --git a/funcom_test/18252792.txt b/funcom_test/18252792.txt deleted file mode 100644 index 61fd5ab8fe1e153afe0d9f1afeb2d18b29d0ce34..0000000000000000000000000000000000000000 --- a/funcom_test/18252792.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void checkForCollapsed(Graph g, java.util.Collection<Table> toCheck) { - for (Table t: toCheck) { - if (expandedTables.contains(t)) { - boolean isExpanded = true; - for (Association a: t.associations) { - if (!isVisualizable(a)) { - continue; - } - if (!renderedAssociations.containsKey(a) && !renderedAssociations.containsKey(a.reversalAssociation)) { - isExpanded = false; - break; - } - } - if (!isExpanded) { - expandedTables.remove(t); - } - } - } - } - COM: <s> checks whether some tables are still collapsed </s> - diff --git a/funcom_test/18252810.txt b/funcom_test/18252810.txt deleted file mode 100644 index 03e2dac08f3a9435b42f3d2fea977b88e19f77e4..0000000000000000000000000000000000000000 --- a/funcom_test/18252810.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: static public boolean contains(Document part, Document doc) { - Collection<Element> remainingLeafs = new ArrayList<Element>(); - boolean c = contains(part.getDocumentElement(), doc.getDocumentElement(), remainingLeafs); - dumpLeafs("remaining leafs", remainingLeafs); - return c; - } - COM: <s> checks whether all information in a xml document </s> - diff --git a/funcom_test/18252834.txt b/funcom_test/18252834.txt deleted file mode 100644 index 8afbfb9c15beff56f19b40be73c224ad10662d82..0000000000000000000000000000000000000000 --- a/funcom_test/18252834.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public long addEntities(Table table, String condition, int today, long limit) throws SQLException { - return addEntities(table, "T", condition, null, null, null, null, false, today, limit, 0, true); - } - COM: <s> adds entities to the graph </s> - diff --git a/funcom_test/18252945.txt b/funcom_test/18252945.txt deleted file mode 100644 index 5e97b289f0b06bda650a6524adb3f931ed702d26..0000000000000000000000000000000000000000 --- a/funcom_test/18252945.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void resetGraphEditor(boolean full, boolean storeLayout, boolean removeLayout, boolean expandRoot) { - if (full) { - graphView.close(storeLayout, removeLayout); - graphContainer.remove(graphView); - graphView = new GraphicalDataModelView(dataModel, this, root, expandRoot, graphView.display.getWidth(), graphView.display.getHeight()); - graphContainer.add(graphView); - } else { - graphView.resetExpandedState(); - } - validate(); - } - COM: <s> resets the graphical editor </s> - diff --git a/funcom_test/18253067.txt b/funcom_test/18253067.txt deleted file mode 100644 index 09aa7fe523813f4ada37b681c1ad9fae369d42ff..0000000000000000000000000000000000000000 --- a/funcom_test/18253067.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public long deleteEntities(Table table) throws SQLException { - return session.executeUpdate( - "Delete From " + SQLDialect.dmlTableReference(ENTITY, session) + " " + - "Where r_entitygraph=" + graphID + " and " + - "type='" + table.getName() +"'"); - } - COM: <s> deletes all entities from a given table </s> - diff --git a/funcom_test/18253153.txt b/funcom_test/18253153.txt deleted file mode 100644 index ecc50a349dbfea57b672e439230618f5729bf2b5..0000000000000000000000000000000000000000 --- a/funcom_test/18253153.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void selectTable(Table table) { - Association toS = null; - for (Association a: table.associations) { - if (renderedAssociations.containsKey(a) || renderedAssociations.containsKey(a.reversalAssociation)) { - toS = a.reversalAssociation; - break; - } - } - if (toS == null) { - GraphicalDataModelView.this.modelEditor.select(table); - } else { - GraphicalDataModelView.this.modelEditor.select(toS); - } - Association sa = selectedAssociation; - setSelection(null); - setSelection(sa); - } - COM: <s> selects a table </s> - diff --git a/funcom_test/18253833.txt b/funcom_test/18253833.txt deleted file mode 100644 index 146061dfe77798971cd190281e27c274088d6f06..0000000000000000000000000000000000000000 --- a/funcom_test/18253833.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setRoot(Table table) { - if (table != null) { - root = table; - tree.setModel(getModel()); - resetGraphEditor(true, true, false, true); - if (extractionModelFrame != null && extractionModelFrame.closureBorderView != null) { - extractionModelFrame.closureBorderView.refresh(); - } - if (extractionModelFrame != null && extractionModelFrame.restrictedDependenciesView != null) { - extractionModelFrame.restrictedDependenciesView.refresh(); - } - } - } - COM: <s> sets the root table </s> - diff --git a/funcom_test/18254063.txt b/funcom_test/18254063.txt deleted file mode 100644 index 2421c0132b7a15fcb5877a1350107c4e0fb1f9d8..0000000000000000000000000000000000000000 --- a/funcom_test/18254063.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private ComboBoxModel subjectListModel() { - Vector<String> tableNames = new Vector<String>(); - for (Table table: dataModel.getTables()) { - tableNames.add(dataModel.getDisplayName(table)); - } - Collections.sort(tableNames); - DefaultComboBoxModel model = new DefaultComboBoxModel(tableNames); - return model; - } - COM: <s> gets list model for the subject combobox </s> - diff --git a/funcom_test/18255068.txt b/funcom_test/18255068.txt deleted file mode 100644 index a191101ea704a0e82ad1b714d9dd344d07dc0c66..0000000000000000000000000000000000000000 --- a/funcom_test/18255068.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void showReachability(Table table) { - try { - LayoutStorage.enabled = false; - refresh(false, true, false, true); - resetGraphEditor(true, false, true, false); - } finally { - LayoutStorage.enabled = true; - } - graphView.expandAll(false, table); - expandPathsToVisibleTables(); - if (graphView.isTableVisible(table)) { - graphView.selectTable(table); - } - } - COM: <s> shows reachability of a given table </s> - diff --git a/funcom_test/18276978.txt b/funcom_test/18276978.txt deleted file mode 100644 index 61189af8bff64475f63112323cae781ee095eb7b..0000000000000000000000000000000000000000 --- a/funcom_test/18276978.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String dumpRelationshipAttrs(DataObject rel) - { - String [] attrs = rel.getAttrNames(); - StringBuffer dump = new StringBuffer(); - for (int i = 0; i < attrs.length; i++) - dump.append(attrs[i] + ": " + rel.getAttr(attrs[i]) + "\n"); - return dump.toString(); - } - COM: <s> dump a relationship objects attributes </s> - diff --git a/funcom_test/18277114.txt b/funcom_test/18277114.txt deleted file mode 100644 index 030d0a4004ddc3b571ca68a0c726fd97231bc21a..0000000000000000000000000000000000000000 --- a/funcom_test/18277114.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int hashCode() { - int result; - result = (value != null ? value.hashCode() : 0); - result = 29 * result + (category != null ? category.hashCode() : 0); - result = 29 * result + (source != null ? source.hashCode() : 0); - return result; - } - COM: <s> creates a hashcode for this object to be used by hashing algorithms </s> - diff --git a/funcom_test/1830107.txt b/funcom_test/1830107.txt deleted file mode 100644 index 245630aa60caa7dda189f71d273c3973cdb01ce6..0000000000000000000000000000000000000000 --- a/funcom_test/1830107.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean containsValue(Object value) { - for (Iterator iter = map.keySet().iterator(); iter.hasNext(); ) { - Object key = iter.next(); - Object val = map.get(key); - if (val.equals(value)) { - touch(key); - return true; - }//if - }//for iter - return false; - }//containsValue - COM: <s> returns whether the map contains the given value </s> - diff --git a/funcom_test/1830309.txt b/funcom_test/1830309.txt deleted file mode 100644 index 57f56b77f784d798ae1ef6cde75f86bad4c77b6d..0000000000000000000000000000000000000000 --- a/funcom_test/1830309.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeAOI(AreaOfIntBO aoibo){ - for(int i=0; i<aois.size(); i++){ - AreaOfIntBO aoiTemp = (AreaOfIntBO) aois.get(i); - if(aoiTemp.getID() == aoibo.getID()){ - aois.remove(i); - } - } - } - COM: <s> removes an area of int bo to the membership </s> - diff --git a/funcom_test/1830345.txt b/funcom_test/1830345.txt deleted file mode 100644 index 89a1cd603fea1667bb5a3ea8d4284c4a685ae5bb..0000000000000000000000000000000000000000 --- a/funcom_test/1830345.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public SaleReturnBO create() { - id = getGUID(); - SaleReturnBO srbo = new SaleReturnBO(id); - Cache c = Cache.getInstance(); - c.put(srbo.getID(), srbo); - srbo.setDirty(true); - System.out.println(srbo.getID()); - return srbo; - } - COM: <s> creates a new sale return business object </s> - diff --git a/funcom_test/1830383.txt b/funcom_test/1830383.txt deleted file mode 100644 index 58782d4580dedb3ff1f7cce33b37888f17b6bdf0..0000000000000000000000000000000000000000 --- a/funcom_test/1830383.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public SaleBO create() throws Exception{ - String id = GUID.generate(); - SaleBO sabo = new SaleBO(id); - Cache.getInstance().put(sabo.getID(), sabo); - sabo.setRSDescription("Media Conversion"); - sabo.setRSType("Conversion"); - return sabo; - } - COM: <s> creates a new sale business object with a guid </s> - diff --git a/funcom_test/1830432.txt b/funcom_test/1830432.txt deleted file mode 100644 index 7b3ddcab08f52cf255be6a71bdff988dad3bcd6b..0000000000000000000000000000000000000000 --- a/funcom_test/1830432.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public TrxBO getTrx() { - TrxBO tx = null; - try { - tx = TrxDAO.getInstance().read(trx); - } catch (DataException ex) { - ex.printStackTrace(); - String message = "Error returning Transaction object: " + ex.toString(); - JOptionPane.showMessageDialog(null, message, "getTrx() Exception", JOptionPane.ERROR_MESSAGE); - } - return tx; - } - COM: <s> returns the transaction object associated with the payment </s> - diff --git a/funcom_test/1830449.txt b/funcom_test/1830449.txt deleted file mode 100644 index 5d4046a992466295d4877a3a61548a74c32fb5f2..0000000000000000000000000000000000000000 --- a/funcom_test/1830449.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getCustAddress(boolean all) { - String fullAddress = ""; - if (all == false){ - return custAddress; - }else{ - fullAddress = getCustAddress() + "\n" + getCustCity() + ", " + getCustState() + " " + getCustZip().toString(); - } - return fullAddress; - } - COM: <s> the customers address </s> - diff --git a/funcom_test/1830528.txt b/funcom_test/1830528.txt deleted file mode 100644 index af6353dbf6f41a8205f7efe6b24cb69a1051a0e2..0000000000000000000000000000000000000000 --- a/funcom_test/1830528.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public StoreBO getStore() { - StoreBO sbo = null; - try { - sbo = StoreDAO.getInstance().read(storeID); - } catch (Exception ex) { - ex.printStackTrace(); - String message = "Error returning Store object: " + ex.toString(); - JOptionPane.showMessageDialog(null, message, "getStore() Exception", JOptionPane.ERROR_MESSAGE); - } - return sbo; - } - COM: <s> returns the store where the trx was made </s> - diff --git a/funcom_test/1830539.txt b/funcom_test/1830539.txt deleted file mode 100644 index 239471c650b70259a54afbdd5545e85585387b1d..0000000000000000000000000000000000000000 --- a/funcom_test/1830539.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public EmployeeBO getEmployee() { - EmployeeBO ebo = null; - try { - ebo = EmployeeDAO.getInstance().read(employeeID); - } catch (Exception ex) { - ex.printStackTrace(); - String message = "Error returning Employee object: " + ex.toString(); - JOptionPane.showMessageDialog(null, message, "getEmployee() Exception", JOptionPane.ERROR_MESSAGE); - } - return ebo; - } - COM: <s> returns the employee who performed the trx </s> - diff --git a/funcom_test/1830551.txt b/funcom_test/1830551.txt deleted file mode 100644 index f608ce58f6da4eda726b8c64f2fe2e4333c0c846..0000000000000000000000000000000000000000 --- a/funcom_test/1830551.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public CustomerBO getCustomer() { - CustomerBO cbo = null; - try { - cbo = CustomerDAO.getInstance().read(customerID); - } catch (Exception ex) { - ex.printStackTrace(); - String message = "Error returning Employee object: " + ex.toString(); - JOptionPane.showMessageDialog(null, message, "getEmployee() Exception", JOptionPane.ERROR_MESSAGE); - } - return cbo; - } - COM: <s> returns the purchasing customer </s> - diff --git a/funcom_test/1830592.txt b/funcom_test/1830592.txt deleted file mode 100644 index d34ba0623122cc406a37133f7e64c2070dce6458..0000000000000000000000000000000000000000 --- a/funcom_test/1830592.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public PrintOrderBO create() throws Exception{ - String id = GUID.generate(); - PrintOrderBO pobo = new PrintOrderBO(id); - Cache.getInstance().put(pobo.getID(), pobo); - pobo.setRSDescription("Print Order"); - pobo.setRSType("Printing"); - return pobo; - } - COM: <s> creates a business object of type print order </s> - diff --git a/funcom_test/1830601.txt b/funcom_test/1830601.txt deleted file mode 100644 index 0e02a1533276cf092125af144ed9ee34dd0705cb..0000000000000000000000000000000000000000 --- a/funcom_test/1830601.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ConversionBO create() throws Exception{ - String id = GUID.generate(); - ConversionBO cbo = new ConversionBO(id); - Cache.getInstance().put(cbo.getID(), cbo); - cbo.setRSDescription("Media Conversion"); - cbo.setRSType("Conversion"); - return cbo; - } - COM: <s> creates a business object of type conversion </s> - diff --git a/funcom_test/1830608.txt b/funcom_test/1830608.txt deleted file mode 100644 index cf1b59260efa3e6cedc9844ac0b0b6dd7e8f8a7b..0000000000000000000000000000000000000000 --- a/funcom_test/1830608.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void unZip(String fileName) { - dirsMade = new TreeSet<String>(); - try { - zippy = new ZipFile(fileName); - Enumeration all = zippy.entries(); - while (all.hasMoreElements()) { - getFile((ZipEntry)all.nextElement()); - } - } catch (IOException err) { - System.err.println("IO Error: " + err); - return; - } - } - COM: <s> for a given zip file process each entry </s> - diff --git a/funcom_test/18354698.txt b/funcom_test/18354698.txt deleted file mode 100644 index f94d020588e6d616242e47e081c4f216f2a5531b..0000000000000000000000000000000000000000 --- a/funcom_test/18354698.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void disconnect() throws IOException { - cat.debug("==> disconnect()"); - connected = false; - client = Sasl.createSaslClient( - mechanisms, id, service, serverName, properties, cbh); - - if (client == null) - throw new RuntimeException("Unable to create SASL client"); - - mechanism = client.getMechanismName(); - cat.info("Chosen mechanism: "+mechanism); - - cat.debug("<== disconnect()"); - } - COM: <s> sets the i connected i field to false and instantiates a new </s> - diff --git a/funcom_test/18354735.txt b/funcom_test/18354735.txt deleted file mode 100644 index bd722f890b19d72b4ca1925a0d693caa22803700..0000000000000000000000000000000000000000 --- a/funcom_test/18354735.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void invalidateSession(String uid, String sid) { - cat.debug("==> invalidateSession("+String.valueOf(uid)+", "+String.valueOf(sid)+")"); - - synchronized (lock) { - uid2sid.remove(uid); - sid2ssc.remove(sid); - sid2ttl.remove(sid); - } - - cat.debug("<== invalidateSession()"); - } - COM: <s> removes the mapping between the designated sm2 client identifier and </s> - diff --git a/funcom_test/18354808.txt b/funcom_test/18354808.txt deleted file mode 100644 index 45980ae9d029ee84a81b893e67df246de88bb0f9..0000000000000000000000000000000000000000 --- a/funcom_test/18354808.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void run() { - cat.info("RMIRegistry started on "+String.valueOf(new Date())); - - while (true) { - try { - Thread.sleep(5000); - } catch (InterruptedException x) { - break; - } catch (Throwable x) { - cat.fatal("run()", x); - break; - } - } - - cat.info("RMIRegistry stopped on "+String.valueOf(new Date())); - } - COM: <s> starts the registry </s> - diff --git a/funcom_test/1835530.txt b/funcom_test/1835530.txt deleted file mode 100644 index ce7be35c46c10bcdc32b421bbb037e61a51532aa..0000000000000000000000000000000000000000 --- a/funcom_test/1835530.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void run() { - try { - this.socketIn = new BufferedReader(new InputStreamReader(this.socket.getInputStream())); - this.socketOut = new PrintWriter(this.socket.getOutputStream(), true); - readPolicyRequest(); - } - catch (Exception e) { - debug("Exception (run): " + e.getMessage()); - } - } - COM: <s> create a reader and writer for the socket and call read policy request </s> - diff --git a/funcom_test/1835537.txt b/funcom_test/1835537.txt deleted file mode 100644 index c45372c132e267ae9bc03bfd71304797a99040c6..0000000000000000000000000000000000000000 --- a/funcom_test/1835537.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void writePolicy() { - try { - this.socketOut.write(PolicyServer.POLICY_XML + "\u0000"); - this.socketOut.close(); - debug("policy sent to client"); - } - catch (Exception e) { - debug("Exception (writePolicy): " + e.getMessage()); - } - } - COM: <s> writes the policy of the server </s> - diff --git a/funcom_test/18417039.txt b/funcom_test/18417039.txt deleted file mode 100644 index bbe899284480ea3dada9a844eda7a15edef0f713..0000000000000000000000000000000000000000 --- a/funcom_test/18417039.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: static public SystemEasyDiet getInstance() { - if (m_System == null) { - m_System = new SystemEasyDiet(); - try { - System.out.println("RUN FOREST.. RUN!!!"); - _RootDAO.initialize(); - } catch (HibernateException e) { - e.printStackTrace(); - } - } - return m_System; - } - COM: <s> inits the system and establishes a connection to the database </s> - diff --git a/funcom_test/18417246.txt b/funcom_test/18417246.txt deleted file mode 100644 index fe661644a6114f660114f3052c40733727156510..0000000000000000000000000000000000000000 --- a/funcom_test/18417246.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public List findAll(String firstName, String lastName) { - - Query query = getQuery("select p from Patient as p where p.foreName = :fn and p.surName = :ln order by p.surName"); - query.setParameter("fn", firstName, Hibernate.STRING); - query.setParameter("ln", lastName, Hibernate.STRING); - return query.list(); - } - COM: <s> finds all patients with the given name </s> - diff --git a/funcom_test/18417251.txt b/funcom_test/18417251.txt deleted file mode 100644 index 876fd0d9d8c76be9a4cc2037b2ecdf6036a6b46a..0000000000000000000000000000000000000000 --- a/funcom_test/18417251.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public List findAll(String letters) { - Query query = getQuery("select p from Patient as p where p.foreName like :pattern or p.surName like :pattern order by p.surName"); - query.setParameter("pattern", letters + '%', Hibernate.STRING); - return query.list(); - } - COM: <s> finds all patients where the first or lastname starts with the given string </s> - diff --git a/funcom_test/18417255.txt b/funcom_test/18417255.txt deleted file mode 100644 index 5842996d676acfd634bd6bf86a1a0812091f1a71..0000000000000000000000000000000000000000 --- a/funcom_test/18417255.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Patient find(String username, String password) { - Query query = getQuery("select p from Patient as p where p.username like :un and p.password like :pw"); - query.setParameter("un", username, Hibernate.STRING); - query.setParameter("pw", password, Hibernate.STRING); - return (Patient) query.uniqueResult(); - } - COM: <s> finds a specific patient with the given username and password </s> - diff --git a/funcom_test/18417287.txt b/funcom_test/18417287.txt deleted file mode 100644 index 5d9edde73274dd646f31aab1e14c1c76fdd7e460..0000000000000000000000000000000000000000 --- a/funcom_test/18417287.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public List findAll(String startLetters) { - - Query query = getSession().createQuery("select f from " + NutEntry.REF + " as f where f.name like :pattern order by f.name"); - query.setParameter("pattern", startLetters + "%", Hibernate.STRING); - return query.list(); - } - COM: <s> finds all nutrition entries with the given start letters </s> - diff --git a/funcom_test/18418213.txt b/funcom_test/18418213.txt deleted file mode 100644 index 94407139b46263c1ce7fc1737d76460dca03b26a..0000000000000000000000000000000000000000 --- a/funcom_test/18418213.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String showLatestPlan() { - - // clear previous protocols - mCurrPlanProt = null; - - - try { - PatientController han = new PatientController(mCurrPatient); - NutPlan plan = han.getLatestNutritionPlan(); - NutritionController controller = NutritionController.editPlan(plan); - - mCurrPlanProt = WebPlanProtocol.createPlan(controller, plan, mCurrPatient); - return "success"; - - } catch (Exception e) { - e.printStackTrace(); - } - return "failure"; - } - COM: <s> loads the latest plan in order to show it </s> - diff --git a/funcom_test/18418821.txt b/funcom_test/18418821.txt deleted file mode 100644 index 1d14565ae970b023923aa0de99a1c5e4a18bf70c..0000000000000000000000000000000000000000 --- a/funcom_test/18418821.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void contentChanged() { - - m_Content = ""; - printHead(m_DayItem.getDate()); - - Iterator itType = MealTypeDAO.getAll().iterator(); - while (itType.hasNext()) { - MealType type = (MealType) itType.next(); - printMealType(type); - } - - printFooter(); - } - COM: <s> tells the component that its contents has changed in order to perform </s> - diff --git a/funcom_test/18418878.txt b/funcom_test/18418878.txt deleted file mode 100644 index 5987126a79dbba537c6a446b51b68940d369f292..0000000000000000000000000000000000000000 --- a/funcom_test/18418878.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void deleteRow(int row) { - - // check if we are in bounds - if (row < m_MealItems.size()) { - MealItem mealItem = (MealItem) m_MealItems.get(row); - - // remove the line from the model - m_MealItems.remove(row); - - // inform all listeners that a table row was deleted - fireTableRowsDeleted(row, row); - } - } - COM: <s> removes a meal from the plan </s> - diff --git a/funcom_test/18420085.txt b/funcom_test/18420085.txt deleted file mode 100644 index c67e5aca3dfac185d641fd0e9dd5ca20b64591e4..0000000000000000000000000000000000000000 --- a/funcom_test/18420085.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - jContentPane = new JPanel(); - jContentPane.setLayout(new BorderLayout()); - jContentPane.add(getJPanel(), java.awt.BorderLayout.SOUTH); - jContentPane.add(getJPanel1(), java.awt.BorderLayout.CENTER); - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/18420149.txt b/funcom_test/18420149.txt deleted file mode 100644 index 45b81f4bbdd5e8e3840f7dfb7d11b15735393bbd..0000000000000000000000000000000000000000 --- a/funcom_test/18420149.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void add(Sensor s, boolean start) { - if (!m_Sensors.containsKey(s.getId())) { - m_Sensors.put(s.getId(), s); - m_Logger.debug("Sensor " + s + " added."); - if (start) { - s.start(); - } - } else { - m_Logger.debug("Sensor " + s + " already exists."); - } - } - COM: <s> adds a new sensor and starts it if requested </s> - diff --git a/funcom_test/18420214.txt b/funcom_test/18420214.txt deleted file mode 100644 index 1a60704027fa30f4f5467d6dd61a5043082467e6..0000000000000000000000000000000000000000 --- a/funcom_test/18420214.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void sendToRandom(PastryAntibody a, int amount) { - for (int i = 0; i < amount; i++) { - Id target = m_NIDFactory.generateNodeId(); - m_NetworkEndpoint.route(target, a, null); - m_Statistics.antibodiesSent++; - } - } - COM: <s> sens an antibody to random selected nodes </s> - diff --git a/funcom_test/18420236.txt b/funcom_test/18420236.txt deleted file mode 100644 index 19f5ab2241e5788fa3f244a8e86ead662ffc4b67..0000000000000000000000000000000000000000 --- a/funcom_test/18420236.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JTextField getContent() { - if(m_Content == null) { - m_Content = new JTextField(); - m_Content.setEnabled(false); - m_Content.setLayout(new BorderLayout()); - m_Content.add(getNaviPanel(), java.awt.BorderLayout.SOUTH); - m_Content.add(getCategoryPanel(), java.awt.BorderLayout.CENTER); - - } - return m_Content; - } - COM: <s> this method initializes m content </s> - diff --git a/funcom_test/18420264.txt b/funcom_test/18420264.txt deleted file mode 100644 index 62c7da51b79e269777ca24960f494bc3c23f75b5..0000000000000000000000000000000000000000 --- a/funcom_test/18420264.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JButton getCancel() { - if (m_Cancel == null) { - m_Cancel = new JButton(); - m_Cancel.setBounds(117, 8, 107, 22); - m_Cancel.setText("Abbrechen"); - m_Cancel.setIcon(new ImageIcon(getClass().getResource("/icon/delete_obj.gif"))); - m_Cancel.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - dispose(); - } - }); - } - return m_Cancel; - } - COM: <s> this method initializes m cancel </s> - diff --git a/funcom_test/18420500.txt b/funcom_test/18420500.txt deleted file mode 100644 index c5029f6089011b5a08a098b6340e3235a841889a..0000000000000000000000000000000000000000 --- a/funcom_test/18420500.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JComboBox getUnitCombo() { - if (m_UnitCombo == null) { - m_UnitCombo = new JComboBox(); - m_UnitCombo.setBounds(87, 83, 125, 22); - m_UnitCombo.setModel(getUnitComboModel()); - if (m_FreePara.getUnit() != null) { - m_UnitCombo.setSelectedItem(m_FreePara.getUnit()); - } - } - return m_UnitCombo; - } - COM: <s> this method initializes m unit combo </s> - diff --git a/funcom_test/18420520.txt b/funcom_test/18420520.txt deleted file mode 100644 index 129cb1694a225ef5581205c17b0f2cf44b1989a4..0000000000000000000000000000000000000000 --- a/funcom_test/18420520.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String getAuthors() { - int i; - String ret = "<html>"; - - for (i = 0; i < Application.authors.length - 1; i++) { - ret = ret + Application.authors[i] + "<br>"; - } - ret = ret + Application.authors[i] + "</html>"; - return ret; - } - COM: <s> this method retrieve the authors of this application </s> - diff --git a/funcom_test/18420602.txt b/funcom_test/18420602.txt deleted file mode 100644 index cef9f132616603311988b31e5546d38ffc504a20..0000000000000000000000000000000000000000 --- a/funcom_test/18420602.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private BLSDetailPanel getBLSDetailPanel() { - if (m_BLSDetailPanel == null) { - m_BLSDetailPanel = new BLSDetailPanel(m_FoodHandler); - m_BLSDetailPanel.setBounds(5, 2, 465, 300); - } - return m_BLSDetailPanel; - } - COM: <s> this method initializes m blsdetail panel </s> - diff --git a/funcom_test/18420950.txt b/funcom_test/18420950.txt deleted file mode 100644 index 23013710987ae5a66dbd36b21d15938a1e9682e4..0000000000000000000000000000000000000000 --- a/funcom_test/18420950.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void saveDietPlan (Dietplan dp) { - - Session currentSession = ((HibernateUtil)m_CurrentHibernateUtil).currentSession(); - ((HibernateUtil)m_CurrentHibernateUtil).commitAndRestartTransaction(); - - try { - currentSession.connection().prepareStatement("set AUTOCOMMIT=0").execute(); - } catch (Exception e) { - e.printStackTrace(); - } - - currentSession.save(dp); - currentSession.flush(); - ((HibernateUtil)m_CurrentHibernateUtil).commitAndRestartTransaction(); - } - COM: <s> the function saves the dietplan to the database which is passed as </s> - diff --git a/funcom_test/18420957.txt b/funcom_test/18420957.txt deleted file mode 100644 index 06423466f4388cb4fa8f350636405b94b5dd4648..0000000000000000000000000000000000000000 --- a/funcom_test/18420957.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void saveNutritionJournal (at.fhv.itec03.easydiet.teama.app.mealplan.AbstractDietplan nj) { - - Session currentSession = ((HibernateUtil)m_CurrentHibernateUtil).currentSession(); - ((HibernateUtil)m_CurrentHibernateUtil).commitAndRestartTransaction(); - - try { - currentSession.connection().prepareStatement("set AUTOCOMMIT=0").execute(); - } catch (Exception e) { - e.printStackTrace(); - } - - currentSession.save(nj); - currentSession.flush(); - ((HibernateUtil)m_CurrentHibernateUtil).commitAndRestartTransaction(); - } - COM: <s> this function saves a nutrietion journal to the database </s> - diff --git a/funcom_test/18421151.txt b/funcom_test/18421151.txt deleted file mode 100644 index 8c7a9d8bd18aae21e80027a0d78e588455ee82d3..0000000000000000000000000000000000000000 --- a/funcom_test/18421151.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int compareTo(Object arg0) { - - MealItemAmount mia = (MealItemAmount) arg0; - - if (this.getFood() == mia.getFood()) { - return 0; - } else { - return 1; - } - // return (getFood().getName().compareTo(((MealItemAmount)arg0).getFood().getName())); - } - COM: <s> compare to function </s> - diff --git a/funcom_test/18421173.txt b/funcom_test/18421173.txt deleted file mode 100644 index 24c3436dd459cc2871f4ea766b6b9d3b3ab71136..0000000000000000000000000000000000000000 --- a/funcom_test/18421173.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Contact add(Date thisAppointment, Date nextAppointment, String note) throws ContactDateException { - Contact contact = new Contact(); - contact.setDate(thisAppointment); - contact.setNextAppointment(nextAppointment); - contact.setNotice(note); - contact.setCreatedBy((Dietician)m_UserHandler.getUser()); - - DatabaseHandler dbH = DatabaseHandler.getInstance(); - m_UserHandler.getCurrentPatient().addContact(contact); - dbH.savePatient(m_UserHandler.getCurrentPatient()); - - return contact; - } - COM: <s> the function adds a new contact to the patient which </s> - diff --git a/funcom_test/18421212.txt b/funcom_test/18421212.txt deleted file mode 100644 index 82da7ef9ff4fb40ae6e1e90835d71f82b8c677e6..0000000000000000000000000000000000000000 --- a/funcom_test/18421212.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void deleteItem (DaySchedule day) { - - Date date = day.getDate(); - - m_Dietplan.getDaySchedules().remove(day); - - for (DaySchedule d : m_Dietplan.getDaySchedules()){ - if (d.getDate().after(date)) { - d.setDate(decreaseDate(d.getDate(), 1)); - } - } - - m_Dietplan.setTo(decreaseDate(m_Dietplan.getTo(), 1)); - } - COM: <s> the function removes a day from the dietplan </s> - diff --git a/funcom_test/18421252.txt b/funcom_test/18421252.txt deleted file mode 100644 index 22b623fbb929c3cd8df4e56ae763cd1518c71349..0000000000000000000000000000000000000000 --- a/funcom_test/18421252.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void deleteItem (MealItemAmount mealitem) { - - Iterator<MealItemAmount> iter; - MealItemAmount mia; - - for (DaySchedule day : m_Dietplan.getDaySchedules()) { - - for (Meal meal : day.getMeals()) { - - iter = meal.getMealItems().iterator(); - - while (iter.hasNext()) { - mia = iter.next(); - - if (mia == mealitem) { - iter.remove(); - } - } - } - } - } - COM: <s> the function removes a meal item from the dietplan </s> - diff --git a/funcom_test/18421292.txt b/funcom_test/18421292.txt deleted file mode 100644 index b3b23cb0f98069b077bf3651a9fdc82451e3c1fa..0000000000000000000000000000000000000000 --- a/funcom_test/18421292.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public FoodAmount (Food food, float amount, QuantityUnit unit) { - m_Food = food; - m_Amount = amount; - - if ((unit == null) && (food != null)) { - - QuantityUnits u = QuantityUnits.getInstance(); - - if (food instanceof Recipe) { - unit = u.getDefaultRecipeUnit(); - } else { - unit = u.getDefaultUnit(); - } - } - m_Unit = unit; - } - COM: <s> constructs a new food amount object with the values passed </s> - diff --git a/funcom_test/18421305.txt b/funcom_test/18421305.txt deleted file mode 100644 index 1c7bc55113084936509fa946580a52287315636e..0000000000000000000000000000000000000000 --- a/funcom_test/18421305.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void dietPlanDurationCheck () { - if ((m_Dietplan.getFrom() == null) || (m_Dietplan.getTo() == null)) { - GregorianCalendar currDate = new GregorianCalendar(); - currDate.set(10,0); - currDate.set(12,0); - currDate.set(13,0); - currDate.set(14,0); - m_Dietplan.getDaySchedules().clear(); - m_Dietplan.setFrom(currDate.getTime()); - m_Dietplan.setTo(currDate.getTime()); - } - } - COM: <s> this function checks whether the from and to have </s> - diff --git a/funcom_test/18421388.txt b/funcom_test/18421388.txt deleted file mode 100644 index a58280e10f2385d6d02c9a79637a329881d93b34..0000000000000000000000000000000000000000 --- a/funcom_test/18421388.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void createDays() { - - dietPlanDurationCheck(); - - GregorianCalendar startDate = new GregorianCalendar(); - GregorianCalendar endDate = new GregorianCalendar(); - startDate.setTime(m_Dietplan.getFrom()); - endDate.setTime(m_Dietplan.getTo()); - createDay(startDate.getTime()); - - while (startDate.compareTo(endDate) < 0){ - startDate.add(5,1); - createDay(startDate.getTime()); - }; - } - COM: <s> this function is used when the from and to have </s> - diff --git a/funcom_test/18421390.txt b/funcom_test/18421390.txt deleted file mode 100644 index 5a1e030663946c6dbf1de8ea37e149c10d51a433..0000000000000000000000000000000000000000 --- a/funcom_test/18421390.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void determineLastContact () throws MissingContactException { - if (m_Contacts.size() == 0) { - throw new MissingContactException(); - } - - for (Contact contact : m_Contacts) { - if (m_LastContact == null) { - m_LastContact = contact; - } else { - if (m_LastContact.getDate().before(contact.getDate())) { - m_LastContact = contact; - } - } - } - } - COM: <s> this function will set the last contact </s> - diff --git a/funcom_test/18421414.txt b/funcom_test/18421414.txt deleted file mode 100644 index b196c73e6cf17b1db6dedac9966a18bd4bdc0c83..0000000000000000000000000000000000000000 --- a/funcom_test/18421414.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public void setMealType(Meal meal, MealType type) throws InvalidMealTypeException { - - DaySchedule day = m_Dietplan.getDaySchedule(meal); - - if (day == null) { - return; - } - - Meal equalMeal = null; - for (Meal m : day.getMeals()) { - if (m.getMealType() == type) { - if (m != meal) { - equalMeal = m; - } - break; - } - } - - if (equalMeal != null) { - copyMealItems(day, meal, equalMeal); - } else { - meal.setMealType(type); - } - setChanged(); - notifyObservers(); - } - COM: <s> the function sets a meal type for a certain meal </s> - diff --git a/funcom_test/18421449.txt b/funcom_test/18421449.txt deleted file mode 100644 index 6b7c48a517ca9977c127ca89d29d5976b3e688a4..0000000000000000000000000000000000000000 --- a/funcom_test/18421449.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void nutrientValueInitialization () { - - Nutrients.descriptionMapReloadCheck(); - - if (m_NutrientValues.size() == 0) { - for (NutrientNameI nuname : m_sNutrientDescriptions.values()) { - if (!m_NutrientValues.containsKey(nuname.getShortcode())) { - m_NutrientValues.put(nuname.getShortcode(), new NutrientValue((NutrientName) nuname, 0)); - } - } - } - - } - COM: <s> this function initializes the nutrient value collection if not </s> - diff --git a/funcom_test/18421458.txt b/funcom_test/18421458.txt deleted file mode 100644 index ffcc99445387536ec07aef331bd38352d4344906..0000000000000000000000000000000000000000 --- a/funcom_test/18421458.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setNutrientValue(double value, String code) throws IllegalArgumentException { - - nutrientValueInitialization(); - - try { - if (Nutrients.m_sNutrientDescriptions.containsKey(code)) { - if (m_NutrientValues.containsKey(code)) { - m_NutrientValues.remove(code); - } - m_NutrientValues.put(code, new NutrientValue(Nutrients.m_sNutrientDescriptions.get(code), value)); - - } else { - throw new IllegalArgumentException(); - } - } catch (Exception e) { - throw new IllegalArgumentException(); - } - } - COM: <s> the function is used to set a value of a certain nutrient </s> - diff --git a/funcom_test/18421475.txt b/funcom_test/18421475.txt deleted file mode 100644 index 6bf469175d4cfc2b1e22dfae1c3a48e42df096b0..0000000000000000000000000000000000000000 --- a/funcom_test/18421475.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void add (Nutrients nu) { - - nutrientValueInitialization(); - - Collection<NutrientValue> nuValues = nu.getNutrientValues(); - Iterator<NutrientValue> iter = nuValues.iterator(); - NutrientValue currnuval; - - int nusize = nuValues.size(); - - for (NutrientValue nuVal : m_NutrientValues.values()) { - currnuval = iter.next(); - getNutrientByCode(currnuval.getNutrientName().getShortcode()).add((currnuval).getValue()); - } - } - COM: <s> adds the nutrient values of one nutrient to the </s> - diff --git a/funcom_test/18421482.txt b/funcom_test/18421482.txt deleted file mode 100644 index f9f8f63bbccc8eea1a0ad881975d909293c0274a..0000000000000000000000000000000000000000 --- a/funcom_test/18421482.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void generateRecipeMetadata (Recipe re) { - - re.setCreateDate(new Date()); - re.setCreateBy((Dietician) m_UserHandler.getUser()); - re.setNutrients(re.getNutrients()); - - for (IngredientAmount f : re.getIngredients()) { - if (f.getFood() instanceof Recipe) { - generateRecipeMetadata((Recipe) f.getFood()); - } - } - } - COM: <s> this is a recursive function which assigns the current date and the person </s> - diff --git a/funcom_test/18421648.txt b/funcom_test/18421648.txt deleted file mode 100644 index b97aafdce8a5d634a8f4612ffc7a55822b4ed392..0000000000000000000000000000000000000000 --- a/funcom_test/18421648.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - if ("clear".equals(e.getActionCommand())) { - addressSet = false; - streetField.setText(""); - cityField.setText(""); - - //We can't just setText on the formatted text - //field, since its value will remain set. - zipField.setValue(null); - } else { - addressSet = true; - } - updateDisplays(); - } - COM: <s> called when the user clicks the button or presses </s> - diff --git a/funcom_test/18421665.txt b/funcom_test/18421665.txt deleted file mode 100644 index ee5261f6e5ace9b1a3d755533e8d0bf3e1ac22e0..0000000000000000000000000000000000000000 --- a/funcom_test/18421665.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private Recipe searchRecipe (Recipe re) { - - Recipe recipe; - - for (IngredientAmount iam : re.getIngredients()) { - if (iam.getFood() instanceof Recipe) { - if ((Recipe)iam.getFood() == m_ActiveRecipe) { - return re; - } else { - recipe = searchRecipe ((Recipe) iam.getFood()); - - if (recipe != null) { - return recipe; - } - } - } - } - - return null; - } - COM: <s> this function searches a recipe starting with the recipe passed as parameter </s> - diff --git a/funcom_test/18421749.txt b/funcom_test/18421749.txt deleted file mode 100644 index d6a7f9e74b2f21dc3e54330c190fe5bca620030f..0000000000000000000000000000000000000000 --- a/funcom_test/18421749.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JXTitledPanel getJXTitledPanel() { - if (JXTitledPanel == null) { - JXTitledPanel = new JXTitledPanel(); - JXTitledPanel.setBounds(13, 14, 294, 104); - JXTitledPanel.setTitle("Endlich gefunden."); - } - return JXTitledPanel; - } - COM: <s> this method initializes jxtitled panel </s> - diff --git a/funcom_test/18421751.txt b/funcom_test/18421751.txt deleted file mode 100644 index 8a57011c8341410372c1389c6fac1e89f12cb404..0000000000000000000000000000000000000000 --- a/funcom_test/18421751.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JXStatusBar getJXStatusBar() { - if (JXStatusBar == null) { - JXStatusBar = new JXStatusBar(); - JXStatusBar.setBounds(12, 414, 536, 24); - JXStatusBar.setText("hallo"); - } - return JXStatusBar; - } - COM: <s> this method initializes jxstatus bar </s> - diff --git a/funcom_test/18421810.txt b/funcom_test/18421810.txt deleted file mode 100644 index dd4968abf325c3745dcc5709201c175f964ded2d..0000000000000000000000000000000000000000 --- a/funcom_test/18421810.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getCloseBtn() { - if (m_CloseBtn == null) { - m_CloseBtn = new JButton(); - m_CloseBtn.setText("X"); - m_CloseBtn.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - setVisible(false); - } - }); - } - return m_CloseBtn; - } - COM: <s> this method initializes m close btn </s> - diff --git a/funcom_test/18421861.txt b/funcom_test/18421861.txt deleted file mode 100644 index 8676a40b8997f6445e0c2efc3e7de6c2ca8d8624..0000000000000000000000000000000000000000 --- a/funcom_test/18421861.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String get(int index) { - int arrayIdx[] = { 0 }; - int stringIdx[] = { 0 }; - - // Determine the index - if (!getIndex(index, arrayIdx, stringIdx)) { - return null; - } - - // Return the string - return (String) m_Array[arrayIdx[0]][stringIdx[0]]; - } - COM: <s> get a string </s> - diff --git a/funcom_test/18421862.txt b/funcom_test/18421862.txt deleted file mode 100644 index d8cd2b05e36714cc01c2fb1feadd384c5ea5b770..0000000000000000000000000000000000000000 --- a/funcom_test/18421862.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void set(int index, String value) { - int arrayIdx[] = { 0 }; - int stringIdx[] = { 0 }; - - // Determine the index - if (!getIndex(index, arrayIdx, stringIdx)) { - throw new IndexOutOfBoundsException(); - } - - // Set the string - m_Array[arrayIdx[0]][stringIdx[0]] = value; - } - COM: <s> set a string </s> - diff --git a/funcom_test/18523015.txt b/funcom_test/18523015.txt deleted file mode 100644 index a8b0fa853f889e71fa451682cba78f3d3abb9fd3..0000000000000000000000000000000000000000 --- a/funcom_test/18523015.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int processStepList(IStepList stepList, File outFile) { - try { - FileWriter out = new FileWriter(outFile); - out.write((String) stepList.getRootElement()); - out.close(); - return 0; - } - catch (Exception e) { - ExceptionHandler.handleException(e, new Shell()); - return -1; - } - - - } - COM: <s> watir specific consumer of an itest list </s> - diff --git a/funcom_test/18523034.txt b/funcom_test/18523034.txt deleted file mode 100644 index 62e5fc6a159fdeb893c3f027753b54e52ae1b30c..0000000000000000000000000000000000000000 --- a/funcom_test/18523034.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void convertAatFile(File file, File outFolder, String outFileExtension, URLList urlList, String baseUrl) throws IOException { - Test test = ToFromXML.fromXML(file, urlList); - outFolder = new File(outFolder, file.getName()); - outFolder.mkdirs(); - testConverter.convert(test, outFolder); - } - COM: <s> initializes the export of an </s> - diff --git a/funcom_test/18523035.txt b/funcom_test/18523035.txt deleted file mode 100644 index 2661b223da5eeb9fb88fa535923342feee81b180..0000000000000000000000000000000000000000 --- a/funcom_test/18523035.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private ITestStep fromFormInput(FormInput fi) { - if (fi instanceof ButtonInput || fi instanceof SubmitInput) { - return null; - } - String name = fi.getElement().getName(); - String setInputField = "setFormElementWithLabel(\"" +name + "\",\"" + - fi.getValue() +"\");\n"; - - return new TestStep(setInputField); - } - COM: <s> converts a form input to a j web unit step </s> - diff --git a/funcom_test/18523064.txt b/funcom_test/18523064.txt deleted file mode 100644 index e74cd2ca26892bb03c8ec00a1d001b03d6c63939..0000000000000000000000000000000000000000 --- a/funcom_test/18523064.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private ITestStep fromText(Text text) { - Element verify = new Element("verifyText"); - verify.setAttribute("text", text.getText()); - if (text.isNot()) - { - Element not = new Element("not"); - not.addContent(verify); - not.setAttribute("description", "Checking text NOT present: " + text.getText()); - return new TestStep(not); - } - else - { - verify.setAttribute("description", "Checking text present: " + text.getText()); - return new TestStep(verify); - } - } - COM: <s> creates a test step for checking the the presence of the given text </s> - diff --git a/funcom_test/18523072.txt b/funcom_test/18523072.txt deleted file mode 100644 index f43572bdda9ee0e436bcc6f63a850645585f2606..0000000000000000000000000000000000000000 --- a/funcom_test/18523072.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private ITestStep fromText(Text text) { - Element row = new Element("TR"); - Element d1 = new Element("TD"); - d1.setText("check"); - row.addContent(d1); - Element d2 = new Element("TD"); - String check = (!text.isNot()) ? "text present" : "text not present"; - d2.setText(check); - row.addContent(d2); - Element d3 = new Element("TD"); - d3.setText(text.getText()); - row.addContent(d3); - - return new TestStep(row); - } - COM: <s> creates a row testing for the presence of the given text </s> - diff --git a/funcom_test/18523769.txt b/funcom_test/18523769.txt deleted file mode 100644 index a915ecbc63b31592cf55902897c73efe203a5260..0000000000000000000000000000000000000000 --- a/funcom_test/18523769.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void doSave(IProgressMonitor monitor) { - - ToFromXML.toXML((Test)graphicalViewer.getContents().getModel(),((IFileEditorInput)getEditorInput()).getFile()); - getCommandStack().markSaveLocation(); - - try{ - ((IFileEditorInput)getEditorInput()).getFile().refreshLocal(1, monitor); - } catch (CoreException e) { - e.printStackTrace(); - } - } - COM: <s> saves the multi page editors document </s> - diff --git a/funcom_test/18524126.txt b/funcom_test/18524126.txt deleted file mode 100644 index f9ce738959f623cce2987bcb9ec519b009a7f2ac..0000000000000000000000000000000000000000 --- a/funcom_test/18524126.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Option getSelectedOption() { - Option theOption = null; - ListIterator theListIterator = getOptions().listIterator(); - while (theListIterator.hasNext()) { - Option theCurrentOption = (Option) theListIterator.next(); - if(theCurrentOption.isSelected()) { - theOption = theCurrentOption; - break; - } - } - return theOption; - } - COM: <s> gets the selected option based on the selected attribute </s> - diff --git a/funcom_test/18524135.txt b/funcom_test/18524135.txt deleted file mode 100644 index bf3e3493241d5c9133d09278d2bf78b4fe6a275d..0000000000000000000000000000000000000000 --- a/funcom_test/18524135.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Select getSelect(String aName) { - Select theSelect = null; - ListIterator theListIterator = getSelects().listIterator(); - while (theListIterator.hasNext()) { - Select theNextSelect = (Select) theListIterator.next(); - if(theNextSelect.getName().equals(aName)) { - theSelect = theNextSelect; - break; - } - } - return theSelect; - } - COM: <s> gets the select control based on the name </s> - diff --git a/funcom_test/18524166.txt b/funcom_test/18524166.txt deleted file mode 100644 index 17687afb97938402bd6b7c5eff1c6a37d07ac2c0..0000000000000000000000000000000000000000 --- a/funcom_test/18524166.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSelectedOption(String aOptionText) throws JacobieException { - Option theOption = getOptionBasedOnText(aOptionText); - if(theOption != null) { - //set the select to the value of the option found. - setValue(theOption.getValue()); - } - else { - throw new JacobieException("Option not found with this text: [" + aOptionText + "]"); - } - - } - COM: <s> selects the option based on the text of the option </s> - diff --git a/funcom_test/18524193.txt b/funcom_test/18524193.txt deleted file mode 100644 index 78c3eb438bfeccd7afbb5ef6377815402b0ca627..0000000000000000000000000000000000000000 --- a/funcom_test/18524193.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testFindLink1() { - IE theIE = getIe(); - Document theDocument = theIE.getDocument(); - A theA = theDocument.findLink("INPUT Test 1"); - assertNotNull(theA); - assertEquals("INPUT Test 1", theA.getInnerText().trim()); - } - COM: <s> tests the find link method functionality </s> - diff --git a/funcom_test/18524212.txt b/funcom_test/18524212.txt deleted file mode 100644 index ccaeac932f1aad63a0a8006a28cae8e738d449a6..0000000000000000000000000000000000000000 --- a/funcom_test/18524212.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Form findFormByNameOrID(String aNameOrID) { - Form theForm = null; - ListIterator theListIterator = getForms().listIterator(); - while (theListIterator.hasNext()) { - Form theNextForm = (Form) theListIterator.next(); - if (theNextForm.getName().equals(aNameOrID) - || theNextForm.getID().equals(aNameOrID)) { - theForm = theNextForm; - break; - } - } - return theForm; - } - COM: <s> find the form by either the name or id attribute </s> - diff --git a/funcom_test/18524237.txt b/funcom_test/18524237.txt deleted file mode 100644 index bf1c593d4913c2b31d6420d605278b82d8e60b90..0000000000000000000000000000000000000000 --- a/funcom_test/18524237.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public A findLinkByID(String aID) { - A theA = null; - - Vector theLinksVector = getLinks(); - ListIterator theListIterator = theLinksVector.listIterator(); - - while (theListIterator.hasNext()) { - A theCurrentA = (A) theListIterator.next(); - String theID = theCurrentA.getID(); - if (theID.equals(aID)) { - theA = theCurrentA; - break; - } - } - return theA; - } - COM: <s> finds a specific link based on the id attribute of the url </s> - diff --git a/funcom_test/18524248.txt b/funcom_test/18524248.txt deleted file mode 100644 index 967ebb5720043da5c5db7a868495456309713472..0000000000000000000000000000000000000000 --- a/funcom_test/18524248.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testNewChildBrowser() throws Exception { - IE theIE = getIe(); - - findLinkAndClick(theIE, "New Browser Testing 1"); - assertPageTitle("Web Testing New Parent Browser Window"); - - findLinkAndClick(theIE, "Child window using Target"); - assertPageTitle("Web Testing New Child Browser Window"); - } - COM: <s> tests the new browser functionality by going to the parent page </s> - diff --git a/funcom_test/18524281.txt b/funcom_test/18524281.txt deleted file mode 100644 index d886a2c778343fbf29752fb2386049104019610e..0000000000000000000000000000000000000000 --- a/funcom_test/18524281.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Vector findInputBasedOnType(String aTypeAttribute) { - Vector theFilteredVector = new Vector(); - - ListIterator theListIterator = getInputs().listIterator(); - while (theListIterator.hasNext()) { - Input theNextInput = (Input) theListIterator.next(); - if(theNextInput.getType().equals(aTypeAttribute)) { - theFilteredVector.add(theNextInput); - } - } - return theFilteredVector; - } - COM: <s> find the specific input </s> - diff --git a/funcom_test/18524319.txt b/funcom_test/18524319.txt deleted file mode 100644 index 9f3e34a844d0fd8fa60d7e7eb522faf810a0eb3e..0000000000000000000000000000000000000000 --- a/funcom_test/18524319.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Input findButton(String aButtonID) { - Input theInput = null; - - Vector theVector = findInputTypeButtons(); - ListIterator theListIterator = theVector.listIterator(); - while (theListIterator.hasNext()) { - Input theNextInput = (Input) theListIterator.next(); - if(theNextInput.getID().equals(aButtonID)) { - theInput = theNextInput; - break; - } - } - return theInput; - } - COM: <s> find the input button from the form based type attribute of button </s> - diff --git a/funcom_test/18524338.txt b/funcom_test/18524338.txt deleted file mode 100644 index 16400d88af482bfb28f221b1ecdf2e41d9b45c96..0000000000000000000000000000000000000000 --- a/funcom_test/18524338.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean isTextPresent(String aTextToFind) { - boolean bReturn = false; - - IE theIE = getIe(); - assertNotNull(theIE); - Document theDocument = theIE.getDocument(); - assertNotNull(theDocument); - - bReturn = theDocument.isTextInDocument(aTextToFind); - return bReturn; - } - COM: <s> determines if the text is present in the document </s> - diff --git a/funcom_test/18552038.txt b/funcom_test/18552038.txt deleted file mode 100644 index 9818c3014d016feda0a2db013bce02352537d34e..0000000000000000000000000000000000000000 --- a/funcom_test/18552038.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public float getTotalReflectEnergy() { - float reflectEnergy = 0; - - // loop on each spectral component (R,G,B) - // and sum its contribution - for (int i = 0; i < 3; i++) { - //TODO to delete : reflectEnergy += latentRadiosity[i] * reflectionCoeff[i]; - reflectEnergy += latentRadiosity[i]; - } - - return reflectEnergy; - } - COM: <s> gets total amount of reflected energy the facet can spread </s> - diff --git a/funcom_test/18552093.txt b/funcom_test/18552093.txt deleted file mode 100644 index c6943ae36e3732ad5e15e8981a72a0281b6fcb83..0000000000000000000000000000000000000000 --- a/funcom_test/18552093.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private int getInt( RadFileParser st ) { - int number = 0; - - st.getToken(); - - verifyWord(st); - - try { - number = Integer.parseInt(st.sval); - } catch( NumberFormatException exp ) { - Log.deb("This : "+st.sval+" is not an integer !"); - parsingError(st); - } - - return number; - } - COM: <s> get an int from the parser </s> - diff --git a/funcom_test/18552105.txt b/funcom_test/18552105.txt deleted file mode 100644 index d6c8ec39ae99514936d5405f23a41eb037fc5da6..0000000000000000000000000000000000000000 --- a/funcom_test/18552105.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private float getFloat( RadFileParser st ) { - float number = 0; - - st.getToken(); - - verifyWord(st); - - try { - number = Float.parseFloat(st.sval); - } catch( NumberFormatException exp ) { - Log.deb("This : "+st.sval+" is not a float !"); - parsingError(st); - } - - return number; - } - COM: <s> get a float from the parser </s> - diff --git a/funcom_test/18579046.txt b/funcom_test/18579046.txt deleted file mode 100644 index b410b45b857eab936448036655568c7eca89c5ea..0000000000000000000000000000000000000000 --- a/funcom_test/18579046.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public List getBrowserList() { - List browsers = new ArrayList(); - // add Default if not present - if (!soylatteBrowsers.containsKey(IBrowserLaunching.BROWSER_DEFAULT)) { - browsers.add(IBrowserLaunching.BROWSER_DEFAULT); - } - browsers.addAll(soylatteBrowsers.keySet()); - return browsers; - } - COM: <s> returns a list of browsers to be used for browser </s> - diff --git a/funcom_test/1864469.txt b/funcom_test/1864469.txt deleted file mode 100644 index 3065d692c4c8690fd82477e982ac07486bb4b565..0000000000000000000000000000000000000000 --- a/funcom_test/1864469.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Integer getNearestPixel(double lon, double lat) throws IOException { - int[] nearestIndices = this.getNearestIndices(lon, lat); - if (nearestIndices == null) return null; - return this.image.getPixel(nearestIndices[0], nearestIndices[1]); - } - COM: <s> gets the nearest argb pixel to the given longitude latitude point or </s> - diff --git a/funcom_test/1864472.txt b/funcom_test/1864472.txt deleted file mode 100644 index c5919bc765d3195ce7ae4aa630a41173c9167a60..0000000000000000000000000000000000000000 --- a/funcom_test/1864472.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setNearestPixel(double lon, double lat, int pixel) { - int[] nearestIndices = this.getNearestIndices(lon, lat); - if (nearestIndices == null) return; - this.image.setPixel(nearestIndices[0], nearestIndices[1], pixel); - } - COM: <s> does nothing if lon lat is outside the bounds of this image </s> - diff --git a/funcom_test/1864490.txt b/funcom_test/1864490.txt deleted file mode 100644 index 5d4c30b0c1520cda3ccf20c853d6d7a363c8a475..0000000000000000000000000000000000000000 --- a/funcom_test/1864490.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int compareTo(FileAndCoords o) { - int fileCompare = this.file.compareTo(o.file); - if (fileCompare != 0) return fileCompare; - int jCompare = new Integer(this.j).compareTo(o.j); - if (jCompare != 0) return jCompare; - return new Integer(this.i).compareTo(o.i); - } - COM: <s> sorts by file then j index then i index </s> - diff --git a/funcom_test/1873139.txt b/funcom_test/1873139.txt deleted file mode 100644 index b3daf5189f7e73b2d9a5c255c3bff9e2aab8d5f9..0000000000000000000000000000000000000000 --- a/funcom_test/1873139.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected BufferedReader getFileData() throws FileNotFoundException { - try { - if (this.br != null && this.br.ready()) { - return this.br; - } - } catch (IOException e) { - this.br = this.loadFile(); - return this.br; - } - this.br = this.loadFile(); - return this.br; - } - COM: <s> gets the buffered reader object </s> - diff --git a/funcom_test/1873143.txt b/funcom_test/1873143.txt deleted file mode 100644 index c6d8c858264062d7c6d925b9611fe11bfb7551c7..0000000000000000000000000000000000000000 --- a/funcom_test/1873143.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected int getLineCount() { - if (this.cLines == -1) { - try { - BufferedReader br = this.getFileData(); - int i = 0; - while (br.readLine() != null) { - i++; - } - this.cLines = i; - return i; - } catch (Exception e) { - return -1; - } - } - return this.cLines; - } - COM: <s> gets the line count </s> - diff --git a/funcom_test/1873158.txt b/funcom_test/1873158.txt deleted file mode 100644 index 87e6c3c50dec26ea2ac6f92040b7aca887d92250..0000000000000000000000000000000000000000 --- a/funcom_test/1873158.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public double getDistance(Point p) { - double dX = getDelta(this.getX(), p.getX()); - double dY = getDelta(this.getY(), p.getY()); - return Math.sqrt(Math.pow(dX, 2) + Math.pow(dY, 2)); - } - COM: <s> calculates the distance between two points </s> - diff --git a/funcom_test/1873196.txt b/funcom_test/1873196.txt deleted file mode 100644 index 77379d2a8f829e6ee20b17030ada11bfdbe04ea0..0000000000000000000000000000000000000000 --- a/funcom_test/1873196.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public double getValidCount() { - int k = 0; - for (int i = 0; i < this.nRows; i++) { - for (int j = 0; j < this.nCols; j++) { - if (this.matrix[i][j] != this.noDataVal) { - k++; - } - } - } - return k; - } - COM: <s> method gets the count of the valid cells </s> - diff --git a/funcom_test/1873203.txt b/funcom_test/1873203.txt deleted file mode 100644 index 92a10696be7c5b110c1706ead57a5d064c391817..0000000000000000000000000000000000000000 --- a/funcom_test/1873203.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean collinear(Segment s) { - if (this.isVertical) { - if (s.isVertical && this.p1.getX() == s.p1.getX()) { - return true; - } else { - return false; - } - } else { - if (this.a == s.a && this.b == s.b) { - return true; // collinear Segments - } else { - return false; - } - } - } - COM: <s> checks if two segments are collinear </s> - diff --git a/funcom_test/1880676.txt b/funcom_test/1880676.txt deleted file mode 100644 index aa0adb23c7cfa0daa22a9f9c6cfe7ec35b9938f4..0000000000000000000000000000000000000000 --- a/funcom_test/1880676.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected int intValue(final String option) { - Object value = optionValues.get(option); - if (value instanceof Integer) { - return (Integer) value; - } - if (value instanceof String) { - return Integer.parseInt(value.toString()); - } - return ((Integer) optionValues.get(option)).intValue(); - } - COM: <s> convenience method to retrieve integer options </s> - diff --git a/funcom_test/1880714.txt b/funcom_test/1880714.txt deleted file mode 100644 index 12ac1e5374d1aa714453838f0aebf19436aa80d8..0000000000000000000000000000000000000000 --- a/funcom_test/1880714.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object upgradeValue(final String name, Object value) { - if (name.equalsIgnoreCase("NODE_FACTORY") && value.getClass() == Boolean.class) { - if (((Boolean) value).booleanValue()) { - value = "*"; - } else { - value = ""; - } - } - - return value; - } - COM: <s> help function to handle cases where the meaning of an option has changed </s> - diff --git a/funcom_test/18842441.txt b/funcom_test/18842441.txt deleted file mode 100644 index 1d2a42854395aae01c89c890b7505ab9ba8fc84e..0000000000000000000000000000000000000000 --- a/funcom_test/18842441.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String getDirConstant(ServletConfig config, String initParam, String defaultValue) { - String dir = config.getInitParameter(initParam); - if ((dir == null) || (dir.trim().length() < 1)) { - dir = defaultValue; - } else { - dir = dir.trim(); - } - if (!dir.endsWith("/")) { - dir += "/"; - } - return dir; - } - COM: <s> get directory from init param constant </s> - diff --git a/funcom_test/18842445.txt b/funcom_test/18842445.txt deleted file mode 100644 index 1038aaa983607eed42e1b2196bb5d6db2faa4025..0000000000000000000000000000000000000000 --- a/funcom_test/18842445.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String deduceURLFilename(URL url) throws Exception { - if (url == null) { - return ""; - } - String filename = url.getFile(); - int slash = filename.lastIndexOf("/"); - if ( (slash != -1) && (filename.length() > slash + 1)) { - filename = filename.substring(slash + 1, filename.length()); - } - return filename; - } - COM: <s> deduce filename from this url </s> - diff --git a/funcom_test/18842498.txt b/funcom_test/18842498.txt deleted file mode 100644 index 5868db91db1abb47e13fd1a9e3fc9e55a28fb485..0000000000000000000000000000000000000000 --- a/funcom_test/18842498.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public String renderExampleChart(Object request) throws Exception { - DefaultCategoryDataset dataset = new DefaultCategoryDataset(); - dataset.addValue(new Long(15256), "Hits", "Catalog"); - dataset.addValue(new Long(4568), "Hits", "Checkout"); - return this.renderChart(request, null, "", dataset, 500, 300, false, "white", "vertical"); - } - COM: <s> generate example chart </s> - diff --git a/funcom_test/18842507.txt b/funcom_test/18842507.txt deleted file mode 100644 index 4511208eb0c70ed9bc703e161f71b3a5671a178e..0000000000000000000000000000000000000000 --- a/funcom_test/18842507.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Templates getTemplateFromCache(String xsl) { - Templates xslTemplate = null; - - // Get template from cache (templates hashtable) - if (this.useCache()) { - logger.info("Getting XSLT template [" + xsl + "] from cache"); - xslTemplate = (Templates) templates.get(xsl); - } else { - // Will remove from cache - templates.remove(xsl); - } - return xslTemplate; - } - COM: <s> get template from cache if use cache flag is set to true </s> - diff --git a/funcom_test/18842534.txt b/funcom_test/18842534.txt deleted file mode 100644 index ec6732ecfdf2d18391183c2b29c9ed1bfc33379b..0000000000000000000000000000000000000000 --- a/funcom_test/18842534.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Node getFeed(String source) throws Exception { - HTTPUtil httpUtil = new HTTPUtil(this.buddy); - - InputSource isource = new InputSource(httpUtil.getURLStream(source)); - Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(isource); - return (Node) doc.getDocumentElement(); - } - COM: <s> get xml node feed </s> - diff --git a/funcom_test/18842892.txt b/funcom_test/18842892.txt deleted file mode 100644 index a74dc5108a65ab54afb222d84e5bd0f6d74748f3..0000000000000000000000000000000000000000 --- a/funcom_test/18842892.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Date toDateFormat(String value, String pattern) throws Exception { - if ((pattern == null) || (pattern.trim().length() < 1)) { - pattern = "dd-MM-yyyy"; - } - java.text.SimpleDateFormat df = new java.text.SimpleDateFormat(pattern); - return df.parse(value); - } - COM: <s> return formatted date value </s> - diff --git a/funcom_test/1886615.txt b/funcom_test/1886615.txt deleted file mode 100644 index c52ac1d19edded3156513c071a79ab001f581780..0000000000000000000000000000000000000000 --- a/funcom_test/1886615.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean lastFewSwarmsAreDead() { - int backLimit = swarms.size() - ALL_SWARMS_DEAD_VISION_SIZE; - for (int i = swarms.size() - 1; i >= 0 && i >= backLimit; i--) { - if (!swarms.get(i).getAllDead()) { - return false; - } - } - - return true; - } - COM: <s> returns true if the last couple of swarms defined by </s> - diff --git a/funcom_test/1886630.txt b/funcom_test/1886630.txt deleted file mode 100644 index 51e6ab96a046d88cd025ef3f4100f4ab210d9f61..0000000000000000000000000000000000000000 --- a/funcom_test/1886630.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: /*private void loadLevelName(BufferedReader reader) throws IOException { - SimpleProperty prop = loadProperty(reader.readLine()); - - if (!prop.name.equalsIgnoreCase(PROPERTY_LEVEL_NAME)) { - throw new IOException("Could not find level name!"); - } - - level.name = prop.value; - - reader.readLine(); - }*/ - COM: <s> loads the name of the level </s> - diff --git a/funcom_test/1886725.txt b/funcom_test/1886725.txt deleted file mode 100644 index 868c77cd6a720a89dfbb720b27ef06928d430a5a..0000000000000000000000000000000000000000 --- a/funcom_test/1886725.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void onToggle(ToggleUpgrade upgrade) { - - // If an upgrade is disabled, turn on the default option. - if (!upgrade.isEquipped()) { - if (defaultUpgrade != null) { - defaultUpgrade.enabled = true; - } - return; - } - - // If an upgrade is enabled, turn off everything else. - for (ToggleUpgrade otherUpgrade : upgrades) { - if (otherUpgrade != upgrade) { - otherUpgrade.enabled = false; - } - } - } - COM: <s> listens to any of the upgrades when they are toggled by the user </s> - diff --git a/funcom_test/1886903.txt b/funcom_test/1886903.txt deleted file mode 100644 index 08886cddbb68d729fb28d7bb2d1d6c80eafc9dd5..0000000000000000000000000000000000000000 --- a/funcom_test/1886903.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testUpdate_withDelayTrigger_withDelay() { - priorSwarm.triggered = true; - - swarm.triggerType = Swarm.TRIGGER_AFTER_DELAY; - swarm.triggerDelay = 100; - - assertFalse(swarm.triggered); - - swarm.update(0); - assertFalse(swarm.triggered); - - swarm.update(50); - assertFalse(swarm.triggered); - - swarm.update(60); - assertTrue(swarm.triggered); - } - COM: <s> tests that swarm spawn delays are working </s> - diff --git a/funcom_test/18911149.txt b/funcom_test/18911149.txt deleted file mode 100644 index a01eecc8dc689001f7949b3cca4e3fdcce5720e6..0000000000000000000000000000000000000000 --- a/funcom_test/18911149.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String encrypt(String value) throws Exception { - if (value == null) - value = ""; - - // Initialize the cryptography algorithm. - this.algorithm.init(Cipher.ENCRYPT_MODE, this.key, this.initalVector); - - // Get a UTF-8 byte array from a unicode string. - byte[] utf8Value = value.getBytes("UTF8"); - - // Encrypt the UTF-8 byte array. - byte[] encryptedValue = this.algorithm.doFinal(utf8Value); - - // Return a base64 encoded string of the encrypted byte array. - return Base64Util.encode(encryptedValue); - } - COM: <s> encrypts a string </s> - diff --git a/funcom_test/18911276.txt b/funcom_test/18911276.txt deleted file mode 100644 index 2911538e2bc6e216f3238cda8c7ab9a3d061652f..0000000000000000000000000000000000000000 --- a/funcom_test/18911276.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setDriverName(String driverName) throws SQLException { - if (!this.driverName.equals(driverName)) { - this.driverName = driverName; - driver = null; - } - /* - try { - driver= (Driver)Class.forName (driverName).newInstance(); - log("StandardDataSource:setDriverName a new driver instance is created"); - } catch (Exception e) { - throw new SQLException ("Error trying to load driver: "+driverName+"\n"+e.getMessage()); - } // try-catch - */ - } - COM: <s> set the name of the jdbc driver </s> - diff --git a/funcom_test/18911281.txt b/funcom_test/18911281.txt deleted file mode 100644 index 522f1b07a3b791a4cd4cfff2d53ca057fefdd04a..0000000000000000000000000000000000000000 --- a/funcom_test/18911281.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void connectionErrorOccurred(ConnectionEvent event) { - for (int i = 0; i < listeners.size(); i++) { // for each listener - Object obj = listeners.elementAt(i); // get next listener - ConnectionEventListener cel = (ConnectionEventListener) obj; - //cast to something more useful - cel.connectionErrorOccurred(event); // notify this listener - //cel.connectionClosed (event); // notify this listener - } - } - COM: <s> invoked when a fatal connection error occurs </s> - diff --git a/funcom_test/18911339.txt b/funcom_test/18911339.txt deleted file mode 100644 index 1307819094000c36827053e165e037ce84a3b267..0000000000000000000000000000000000000000 --- a/funcom_test/18911339.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void cleanupObject(Object obj) { - if (obj != null) { - log.debug("PreparedStatementCache:cleanupObject class='" - + obj.getClass() + "'"); - log - .debug("PreparedStatementCache:cleanupObject close a PreparedStatement o=" - + "'" + obj.toString() + "'"); - - try { - ((PreparedStatement) obj).close(); - // obj = null; - } catch (SQLException e) { - log - .error("PreparedStatementCache:cleanupObject problem to close" - + "a PreparedStatement: " + e); - } - } - } - COM: <s> overriden to close the statement </s> - diff --git a/funcom_test/18911384.txt b/funcom_test/18911384.txt deleted file mode 100644 index 489b8765bf152910edf5808c0cb2d3d9fa7a4312..0000000000000000000000000000000000000000 --- a/funcom_test/18911384.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void connectionErrorOccurred(ConnectionEvent event) { - Object obj = event.getSource(); - PooledConnection pc = (PooledConnection) obj; - pool.nextGeneration(pc); - pool.removeLockedObject(pc); // remove the object from the locked pool - expire(pc); // kill the connection (from super) - log.debug( - "StandardXAPoolDataSource:connectionErrorOccurred remove the object from the pool"); - } - COM: <s> connection error occurred and connection closed are methods </s> - diff --git a/funcom_test/18911407.txt b/funcom_test/18911407.txt deleted file mode 100644 index f4172173b2f5b37e2738ed219664341bc753c96e..0000000000000000000000000000000000000000 --- a/funcom_test/18911407.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void expire(Object o) { - log.debug( - "StandardPoolDataSource:expire expire a connection, remove from the pool"); - if (o == null) - return; - try { - PooledConnection pooledCon = (PooledConnection) o; - pooledCon.close(); // call close() of PooledConnection - pooledCon.removeConnectionEventListener(this); - log.debug("StandardPoolDataSource:expire close the connection"); - } catch (java.sql.SQLException e) { - log.error( - "StandardPoolDataSource:expire Error java.sql.SQLException in StandardPoolDataSource:expire"); - } - } - COM: <s> object specific work to kill the object </s> - diff --git a/funcom_test/18911429.txt b/funcom_test/18911429.txt deleted file mode 100644 index f9e7aec9fb5df7cfcbbf4365afeccfd93df83d1c..0000000000000000000000000000000000000000 --- a/funcom_test/18911429.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public XAConnection getXAConnection (String user, String password) throws SQLException { - IdbXAConnection xac = new IdbXAConnection (this, user, password); - xac.setTransactionManager(transactionManager); - if (databaseId == null) { // if this is the first connection - databaseId = ((ConnectionExtensions)xac.con).getDatabaseId();// save the database id - } // if - connectionCount++; - return xac; - } - COM: <s> creates an xa connection using the supplied username and password </s> - diff --git a/funcom_test/18911526.txt b/funcom_test/18911526.txt deleted file mode 100644 index 304c047e389a530386ecac259f68c5cba3bf2c9b..0000000000000000000000000000000000000000 --- a/funcom_test/18911526.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void resize(int newSize) { - if (newSize <= 0) { - return; - } - List removed = new ArrayList(); - synchronized (this) { - maxSize = newSize; - while (cache.size() > maxSize) { - removed.add(removeLRU()); - } - } - cleanupAll(removed); - } - COM: <s> resize the cache </s> - diff --git a/funcom_test/18912151.txt b/funcom_test/18912151.txt deleted file mode 100644 index a16c33fedf3376a84b34790186820253b0b4333f..0000000000000000000000000000000000000000 --- a/funcom_test/18912151.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected CoordinationContext getCoordinationContext(final String participantMATCHCODE) { - final CoordinationContext ctx = this.getCoordinationContext(); - - // Duplicate the coordination context! - final CoordinationContext r = - new CoordinationContext( - ctx.getIdentifier(), - ctx.getCoordinationType(), - new EndpointReference(ctx.getRegistrationService()) - ); - - final MessageElement participantIDMessageElement = - new MessageElement(INITIATOR_MATCHCODE, participantMATCHCODE); - r.getRegistrationService().getProperties().add(participantIDMessageElement); - - return r; - } - COM: <s> add a participant matchcode to the default registration service </s> - diff --git a/funcom_test/18912229.txt b/funcom_test/18912229.txt deleted file mode 100644 index 938524dfe858bcb19b0c5f0df79d230e65b3217b..0000000000000000000000000000000000000000 --- a/funcom_test/18912229.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public QName getResultState(){ - if (State.STATE_ENDED.equals(this.currState)){ - return this.getLastState(); - } - if (false - || State.STATE_COMPLETED.equals(this.currState) - || State.STATE_CLOSING.equals(this.currState) - || State.STATE_COMPENSATING.equals(this.currState) - || State.STATE_FAULTING_COMPENSATING.equals(this.currState) - ){ - return State.STATE_COMPLETED; - } - return State.STATE_ACTIVE; - } - COM: <s> get the result state </s> - diff --git a/funcom_test/18912315.txt b/funcom_test/18912315.txt deleted file mode 100644 index d190d4c2f4a2c9ceab38e7d74bec65f571f959c6..0000000000000000000000000000000000000000 --- a/funcom_test/18912315.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void handleIncomingMessage(final QName messageType, final NotificationType params) throws RemoteException{ - - final BACoordinator coord = getBACoordinatorOrThrowFault(); - final AbstractCoordParticipant part = getBAParticipantOrThrowFault(coord); - - System.out.println("+++ CoordIncoming: "+messageType+" ("+params+"+ in TX "+coord+" from participant "+part); - - if (messageType.equals(State.MESSAGE_GETSTATUS)){ - // Reply with the status - - part.tellStatus(); - }else{ - part.handleIncomingMessage(messageType, params); - } - } - COM: <s> handle an incoming messages </s> - diff --git a/funcom_test/18912322.txt b/funcom_test/18912322.txt deleted file mode 100644 index a5829d483b156278952cefad95ca22dbdbae4f9d..0000000000000000000000000000000000000000 --- a/funcom_test/18912322.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public CoordinationContext registerMatchcode(final String matchcode) throws AxisFault{ - synchronized (this.participantMatchcodes) { - if (matchcode == null || matchcode.length()==0 ) - throw new IllegalArgumentException("The matchcode must not be null or emtpy!"); - - if (! this.isMatchCodeAvailable(matchcode)){ - throw DUPLICATE_MATCHCODE_SOAP_FAULT(matchcode); - } - - this.participantMatchcodes.put(matchcode, null); - - return this.getCoordinationContext(matchcode); - } // end synchronized participantMatchcodes - } - COM: <s> activate a particular matchcode </s> - diff --git a/funcom_test/18912395.txt b/funcom_test/18912395.txt deleted file mode 100644 index f0cd2a4586ce143b2fb65bcaa8533d84217e1367..0000000000000000000000000000000000000000 --- a/funcom_test/18912395.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void handleIncomingMessage(final QName messageType, final NotificationType params) throws RemoteException{ - try{ - final AbstractStateTransition transition = this.currState.transistStateByMessage(messageType); - System.out.println("Participant Incoming "+messageType+", Transition: "+transition); - - handleTransition(transition, params); - }catch(RemoteException e){ - throw e; - }catch(Exception e){ - throw Coordinator.INVALID_STATE_SOAP_FAULT() ; - } - } - COM: <s> accept an incoming message and do what is to be done </s> - diff --git a/funcom_test/18912425.txt b/funcom_test/18912425.txt deleted file mode 100644 index 9aeca9848b787b976703e94fe7a49893057a3813..0000000000000000000000000000000000000000 --- a/funcom_test/18912425.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: protected void tellAgain(final QName message) throws RemoteException{ - final AbstractCoordParticipantProxy proxy = - this.getParticipantProxy(); - - if (State.MESSAGE_CANCEL.equals(message)){ - proxy.cancelOperation(null); - - }else if (State.MESSAGE_COMPENSATE.equals(message)){ - proxy.compensateOperation(null); - - }else if (State.MESSAGE_CLOSE.equals(message)){ - proxy.closeOperation(null); - - }else if (State.MESSAGE_EXITED.equals(message)){ - proxy.exitedOperation(null); - - }else if (State.MESSAGE_FAULTED.equals(message)){ - proxy.faultedOperation(null); - - }else if (State.MESSAGE_GETSTATUS.equals(message)){ - proxy.getStatusOperation(null); - - }else{ - throw new IllegalArgumentException("Sorry, cannot tell a participant "+message); - } - } - COM: <s> forward some message to the participant </s> - diff --git a/funcom_test/18920164.txt b/funcom_test/18920164.txt deleted file mode 100644 index 136ede88967ad9198ea087781bb9566a5647d74a..0000000000000000000000000000000000000000 --- a/funcom_test/18920164.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public ActivityDesigner createDesigner(){ - - Class activityCls = getClass(); - //String clsName = UEngineUtil.getComponentClassName(activityCls, "designer"); - designer = null; - - try{ - //Class designerCls = Thread.currentThread().getContextClassLoader().loadClass(clsName); - designer = (ActivityDesigner)UEngineUtil.getComponentByEscalation(activityCls, "designer"); - designer.setActivity(this); - - }catch(Exception e){ - e.printStackTrace(); - } - - return designer; - } - COM: <s> request a swing component for design support for this activity type </s> - diff --git a/funcom_test/18924954.txt b/funcom_test/18924954.txt deleted file mode 100644 index 5572c8525b921a0957a68ac7eb17574bdce630dd..0000000000000000000000000000000000000000 --- a/funcom_test/18924954.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Component createComponent(RequestContext context) throws Exception { - - FavoriteComponent fc = new FavoriteComponent(id, context, getChartmodel(), getModel()); - - /*String defaultFavorite = null; - if(getFavoriteHttpParam()!=null && getFavoriteHttpParam().length() > 0){ - defaultFavorite = context.getParameter(getFavoriteHttpParam()); - fc.setChangeName(defaultFavorite); - } */ - return fc; - } - COM: <s> creates a print component </s> - diff --git a/funcom_test/18924998.txt b/funcom_test/18924998.txt deleted file mode 100644 index a015d895ad067a1525d565d6153e31cda62a5a32..0000000000000000000000000000000000000000 --- a/funcom_test/18924998.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public PopUp getPopUp0() { - PopUp p = new PopUp(); - p.setLabel("popup 0"); - List items = new ArrayList(); - addItems(items); - for (Iterator it = items.iterator(); it.hasNext();) { - Item item = (Item) it.next(); - p.addItem(item); - } - return p; - } - COM: <s> items w o groups </s> - diff --git a/funcom_test/18925003.txt b/funcom_test/18925003.txt deleted file mode 100644 index 543c225bfe7ad726507224b9f3b810dbd9557d6c..0000000000000000000000000000000000000000 --- a/funcom_test/18925003.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public PopUp getPopUp1b() { - PopUp p = new PopUp(); - p.setLabel("popup 1b"); - // anonymous group - GroupItem g = new GroupItemSupport("Group 1"); - addItems(g.getChildren()); - p.addItem(g); - return p; - } - COM: <s> 2 items in named group </s> - diff --git a/funcom_test/18925173.txt b/funcom_test/18925173.txt deleted file mode 100644 index 942fd2213707e68ebf9eb59cd53f936a63fb5357..0000000000000000000000000000000000000000 --- a/funcom_test/18925173.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void checkRequired(Locale locale, Element elem, boolean empty) { - if (!"true".equals(elem.getAttribute("required"))) - return; - if (empty) { - ResourceBundle rb = ResourceBundle.getBundle("com.tonbeller.wcf.convert.messages", locale); - throw new FormatException(rb.getString("wcf.input.required")); - } - } - COM: <s> throws a format exception if the </s> - diff --git a/funcom_test/18925236.txt b/funcom_test/18925236.txt deleted file mode 100644 index dd6d9c538aa5090a11363532e3ac4f6dec696e73..0000000000000000000000000000000000000000 --- a/funcom_test/18925236.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void revert(RequestContext context) { - logger.info("enter"); - if (fireing) - return; - fireing = true; - try { - for (Iterator it = listeners.iterator(); it.hasNext();) { - FormListener listener = (FormListener) it.next(); - listener.revert(context); - } - } finally { - fireing = false; - } - } - COM: <s> calls revert on all listeners </s> - diff --git a/funcom_test/18925326.txt b/funcom_test/18925326.txt deleted file mode 100644 index 8e6cfb7af04cecefac940e1b7879251e02481c75..0000000000000000000000000000000000000000 --- a/funcom_test/18925326.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void restoreSessionState(Object memento) { - // no bookmark state? - if (memento == null) { - state = Collections.EMPTY_MAP; - return; - } - state = (Map) memento; - for (Iterator it = state.keySet().iterator(); it.hasNext();) { - String name = (String) it.next(); - restoreAttributeState(name); - } - } - COM: <s> restores the state of all bookmarkable session atributes </s> - diff --git a/funcom_test/18925343.txt b/funcom_test/18925343.txt deleted file mode 100644 index de7804a53cb261687f7144d8b76097e53cd53e67..0000000000000000000000000000000000000000 --- a/funcom_test/18925343.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setLogConf(String logConf) { - this.logConf = logConf; - try { - logHandler.applyConfig(logConf); - } catch(Exception e) { - String msg = e.getMessage(); - if(msg == null) - msg = e.toString(); - throw new FormatException(msg); - } - } - COM: <s> sets the log conf </s> - diff --git a/funcom_test/18925452.txt b/funcom_test/18925452.txt deleted file mode 100644 index 2d9d0741a249fff323516135c959d045c4c14d68..0000000000000000000000000000000000000000 --- a/funcom_test/18925452.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Element render(RequestContext context, Document factory, Category cat) { - Element elem = factory.createElement(elementName); - elem.setAttribute("name", cat.getName()); - elem.setAttribute("icon", cat.getIcon()); - return elem; - } - COM: <s> creates a dom element with attributes name and icon </s> - diff --git a/funcom_test/18925476.txt b/funcom_test/18925476.txt deleted file mode 100644 index 7450810405aeab6d4a8d70f07659abc02db32213..0000000000000000000000000000000000000000 --- a/funcom_test/18925476.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected TreeHandler findTreeHandler(FormComponent fc) throws JaxenException { - DOMXPath dx = new DOMXPath("//xtree"); - Element elem = (Element) dx.selectSingleNode(fc.getDocument()); - if (elem == null) - return null; - return (TreeHandler) fc.getHandler(elem); - } - COM: <s> searches for the firs lt xtree </s> - diff --git a/funcom_test/18925500.txt b/funcom_test/18925500.txt deleted file mode 100644 index 5c2c3668fd411321aa5e8ee6c5644c6610518b73..0000000000000000000000000000000000000000 --- a/funcom_test/18925500.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addHandler(FormatHandler newHandler) { - String type = newHandler.getName(); - FormatHandler oldHandler = (FormatHandler) handlerMap.get(type); - if (oldHandler != null) { - handlerMap.remove(type); - handlerList.remove(oldHandler); - } - - handlerMap.put(type, newHandler); - handlerList.add(newHandler); - } - COM: <s> adds a new handler for a specific data type </s> - diff --git a/funcom_test/18925501.txt b/funcom_test/18925501.txt deleted file mode 100644 index 5f3f6bd9885033eeb53d5db04e4e4c989e6689ad..0000000000000000000000000000000000000000 --- a/funcom_test/18925501.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setCurrentPanel(RequestContext context, Element newCurrentPanel) { - if (!xmlComponent.validate(context)) - return; - internalSetCurrent(newCurrentPanel); - // allow the panel hander to update model values - fireChanged(currentPanel); - // and now display the updated model values - xmlComponent.revert(context); - } - COM: <s> sets the current panel </s> - diff --git a/funcom_test/18925521.txt b/funcom_test/18925521.txt deleted file mode 100644 index 11d51ef44489ca400b9f0a1fb69f5f82033792e9..0000000000000000000000000000000000000000 --- a/funcom_test/18925521.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Object parse(String s, String userPattern) throws FormatException { - try { - String regex = super.findPattern(userPattern); - RE re = new RE(regex); - if (!re.match(s)) { - throw new FormatException(getErrorMessage(s)); - } - return s; - } catch (RESyntaxException e) { - logger.error("exception caught", e); - throw new SoftException(e); - } - } - COM: <s> throws a format exception if s does not match the regex </s> - diff --git a/funcom_test/18925549.txt b/funcom_test/18925549.txt deleted file mode 100644 index 33078c8caf113b9347d10a17a750a95856277bdb..0000000000000000000000000000000000000000 --- a/funcom_test/18925549.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected String findPattern(String userPattern) { - - if (userPattern != null && userPattern.length() > 0) - return userPattern; - - Iterator it = patterns.iterator(); - - while (it.hasNext()) { - Pattern p = (Pattern) it.next(); - - if (locale.getLanguage().equals(p.getLanguage())) { - return p.getPattern(); - } - } - - return this.getPattern(); - } - COM: <s> returns the pattern for a given locale </s> - diff --git a/funcom_test/18926014.txt b/funcom_test/18926014.txt deleted file mode 100644 index fc65227ddd6d4008e0c70782ca121a482cdd2052..0000000000000000000000000000000000000000 --- a/funcom_test/18926014.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addRequestListener(String name, String value, RequestListener listener) { - removeRequestListener(listener); - String key = getKey(name, value); - map.put(listener, key); - List list = (List) inverseMap.get(key); - if (list == null) { - list = new LinkedList(); - inverseMap.put(key, list); - } - list.add(listener); - } - COM: <s> adds a listener </s> - diff --git a/funcom_test/18926104.txt b/funcom_test/18926104.txt deleted file mode 100644 index 3cfd1967eaf3108a042abd930f271941b44ddc84..0000000000000000000000000000000000000000 --- a/funcom_test/18926104.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object findBean(String name) { - Object bean = request.getAttribute(name); - if (bean != null) - return bean; - HttpSession session = getSession(); - bean = session.getAttribute(name); - if (bean != null) - return bean; - ServletContext context = getServletContext(); - bean = context.getAttribute(name); - if (bean != null) - return bean; - return null; - } - COM: <s> same as jsp page context </s> - diff --git a/funcom_test/18926277.txt b/funcom_test/18926277.txt deleted file mode 100644 index 7c65759bb7a784327deb8e0e66b828e8df4d2743..0000000000000000000000000000000000000000 --- a/funcom_test/18926277.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Map pushParams(Collection c) { - Map memento = new HashMap(); - for (Iterator it = c.iterator(); it.hasNext();) { - SessionParam param = (SessionParam) it.next(); - SessionParam prev = setParam(param); - String name = param.getName(); - if (!memento.containsKey(name)) - memento.put(name, prev); - } - return memento; - } - COM: <s> stores all session param objects of c into the pool </s> - diff --git a/funcom_test/18926282.txt b/funcom_test/18926282.txt deleted file mode 100644 index c1d541197a966ed33ee4317e2020b8b7c7254517..0000000000000000000000000000000000000000 --- a/funcom_test/18926282.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void popParams(Map memento) { - for (Iterator it = memento.entrySet().iterator(); it.hasNext();) { - Map.Entry e = (Entry) it.next(); - SessionParam p = (SessionParam) e.getValue(); - if (p == null) - removeParam((String) e.getKey()); - else - setParam(p); - } - } - COM: <s> restores the state of the pool that was modified </s> - diff --git a/funcom_test/18926315.txt b/funcom_test/18926315.txt deleted file mode 100644 index 4e7fd5a219a2267cbdc5ee4830e93498c59d3f86..0000000000000000000000000000000000000000 --- a/funcom_test/18926315.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setNodeRenderer(NodeRenderer nodeRenderer) { - if (this.nodeRenderer instanceof RequestListener) - super.getDispatcher().removeRequestListener((RequestListener) this.nodeRenderer); - this.nodeRenderer = nodeRenderer; - if (this.nodeRenderer instanceof RequestListener) - super.getDispatcher().addRequestListener(null, null, (RequestListener) this.nodeRenderer); - } - COM: <s> sets the node renderer </s> - diff --git a/funcom_test/18926405.txt b/funcom_test/18926405.txt deleted file mode 100644 index 6d3f034a0c453481ed6b08579c3311da8574a5ef..0000000000000000000000000000000000000000 --- a/funcom_test/18926405.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void show(String title, String text, RequestListener accept, RequestListener cancel) { - // remove stuff from previous call - DomUtils.removeChildNodesExceptAttributes(body); - this.title.setAttribute("value", title); - DomUtils.setText(body, text); - this.acceptHandler = accept; - this.cancelHandler = cancel; - setVisible(true); - } - COM: <s> creates a simple yes no form </s> - diff --git a/funcom_test/18926408.txt b/funcom_test/18926408.txt deleted file mode 100644 index d2a1d0d7793a71724a4905644cf67da2c5e1bee2..0000000000000000000000000000000000000000 --- a/funcom_test/18926408.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void revert(RequestContext context) { - super.revert(context); - try { - clearErrors(); - context.getConverter().revert(bean, getDocument()); - dirty = false; - haveError = false; - } catch (ConvertException e) { - logger.error("exception caught", e); - throw new SoftException(e); - } - } - COM: <s> fills the form with values from the bean </s> - diff --git a/funcom_test/18926432.txt b/funcom_test/18926432.txt deleted file mode 100644 index 7498d1550e36dccdf28b21f370d6776c0bc075ad..0000000000000000000000000000000000000000 --- a/funcom_test/18926432.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public NodeHandler getParent(NodeHandler handler) { - Element elem = (Element) handlerElementMap.get(handler); - Node node = elem.getParentNode(); - while (node.getNodeType() == Node.ELEMENT_NODE) { - NodeHandler h = (NodeHandler) elementHandlerMap.get(node); - if (h != null) - return h; - node = node.getParentNode(); - } - return null; - } - COM: <s> returns node handler of the parent dom element </s> - diff --git a/funcom_test/18926567.txt b/funcom_test/18926567.txt deleted file mode 100644 index 4f9cc7eed6f5cd7804bf15c9bc3fa90e10978498..0000000000000000000000000000000000000000 --- a/funcom_test/18926567.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void restoreButtonActions(RequestContext context, Object[] state) { - setVisible(((Boolean) state[0]).booleanValue()); - setNextView((String) state[1]); - String successAttr = elem.getAttribute("successAttr"); - if (successAttr.length() > 0) - context.getRequest().removeAttribute(successAttr); - } - COM: <s> restores state after action refrence threw an action reference exception </s> - diff --git a/funcom_test/18926812.txt b/funcom_test/18926812.txt deleted file mode 100644 index 6fbaced24cfc7f492c98e73262330d10f49c4c61..0000000000000000000000000000000000000000 --- a/funcom_test/18926812.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private Number getNumberValue(Cell cell) { - //**** HACK AR 2004.01.10 - //String value = cell.getFormattedValue(); - Object value = cell.getValue(); - - DecimalFormatSymbols dfs = new DecimalFormatSymbols(locale); - DecimalFormat formatter = new DecimalFormat(); - formatter.setDecimalFormatSymbols(dfs); - Number number = null; - try { - number = (Number)value; - //number = formatter.parse(value, new ParsePosition(0)); - } - catch (Exception e) { - number = null; - } - return number; - } - COM: <s> get cell value as a number </s> - diff --git a/funcom_test/18927238.txt b/funcom_test/18927238.txt deleted file mode 100644 index 6158ef07aa7fff18944f58509c1d5190bb93acc5..0000000000000000000000000000000000000000 --- a/funcom_test/18927238.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void itemClicked(RequestContext context, HierarchyItem item) { - // create a selection model - MemberSelectionModel selection = new MemberSelectionModel(); - if (navi.getSlicerExtension() == null) - selection.setMode(SelectionModel.NO_SELECTION); - else - selection.setMode(SelectionModel.SINGLE_SELECTION); - - selection.setOrderedSelection(item.getSlicerSelection()); - navi.itemClicked(context, item, selection, false); - } - COM: <s> calls hierarchy navigator </s> - diff --git a/funcom_test/18927250.txt b/funcom_test/18927250.txt deleted file mode 100644 index 429078472ae0ae138f6ad555d9c3da36344bcff0..0000000000000000000000000000000000000000 --- a/funcom_test/18927250.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setAxisSelection(Collection selection) { - if (selection.equals(axisSelection)) { - // Nothing has changed, just return - return; - } - clear(); - updateHierarchy(selection); - if (axisSelection == null) - axisSelection = new ArrayList(); - else - axisSelection.clear(); - axisSelection.addAll(selection); - axisSelectionDirty = true; - category.setDirty(true); - expression = null; - } - COM: <s> sets the axis selection </s> - diff --git a/funcom_test/18927336.txt b/funcom_test/18927336.txt deleted file mode 100644 index 55137b892a1cf74911cf2a365b32c2335059f2ef..0000000000000000000000000000000000000000 --- a/funcom_test/18927336.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String toMdx() { - String str = ""; - boolean isFollow = false; - for (Iterator iter = names.iterator(); iter.hasNext();) { - NamePart np = (NamePart) iter.next(); - if (isFollow) - str += "."; - isFollow = true; - str += np.name; - } - - return str; - } - COM: <s> format to mdx </s> - diff --git a/funcom_test/18927376.txt b/funcom_test/18927376.txt deleted file mode 100644 index 7db868ffa8e974993d60e4980d3902e01f2d312a..0000000000000000000000000000000000000000 --- a/funcom_test/18927376.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getCube() { - // remove enclosing brackets, if there - if (cube.charAt(0) == '[' && cube.charAt(cube.length() - 1) == ']') - return cube.substring(1, cube.length() - 1); - else - return cube; - } - COM: <s> returns the cube </s> - diff --git a/funcom_test/18927469.txt b/funcom_test/18927469.txt deleted file mode 100644 index 07e8b90f2f927897f118448ca9f1eb44ad2668b3..0000000000000000000000000000000000000000 --- a/funcom_test/18927469.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Object bracesAround(Object oExp) { - Object oSet; - if (uti.isMember(oExp) || uti.isFunCallTo(oExp, "()")) - oSet = uti.createFunCall("{}", new Object[] { oExp }, QuaxUti.FUNTYPE_BRACES); - else - oSet = oExp; - return oSet; - } - COM: <s> put braces around single member or single tuple </s> - diff --git a/funcom_test/18927486.txt b/funcom_test/18927486.txt deleted file mode 100644 index 631ba4b459bb2ecab9dee9a20c575fcae2ffded2..0000000000000000000000000000000000000000 --- a/funcom_test/18927486.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private List memListForHier(int hierIndex, List positions) { - List memList = new ArrayList(); - PositionLoop : for (Iterator iter = positions.iterator(); iter.hasNext();) { - Position pos = (Position) iter.next(); - Member m = pos.getMembers()[hierIndex]; - if (!memList.contains(m)) - memList.add(m); - } - return memList; - } - COM: <s> extract members of hier from result </s> - diff --git a/funcom_test/18927713.txt b/funcom_test/18927713.txt deleted file mode 100644 index 372d385af684068daafd617dbb0eba3d9d5c259d..0000000000000000000000000000000000000000 --- a/funcom_test/18927713.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int handleTreeNode(TreeNode node) { - int iDim = node.getLevel(); - - if (iDim == Quax.this.nDimension) - return TreeNodeCallback.BREAK; // bottom reached - - if (node.getChildren().size() == 1) { - return TreeNodeCallback.CONTINUE; // continue next level - } else { - // more than one child - break out - Quax.this.qubonMode = false; - return TreeNodeCallback.BREAK; - } - } - COM: <s> callback check qubon mode </s> - diff --git a/funcom_test/18927991.txt b/funcom_test/18927991.txt deleted file mode 100644 index e7cfd515b3e759198b5eb4ca5846971657b24e08..0000000000000000000000000000000000000000 --- a/funcom_test/18927991.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int dimIdx(Dimension dim) { - if (hiers == null || hiers.length == 0) - return -1; // quax was not initialized yet - for (int i = 0; i < hiers.length; i++) { - if (hiers[i].getDimension().equals(dim)) - return i; - } - return -1; - } - COM: <s> find out whether axis contains dimension </s> - diff --git a/funcom_test/18928204.txt b/funcom_test/18928204.txt deleted file mode 100644 index 72d265ddd5270dc80f8782d58e14340fdd62cafa..0000000000000000000000000000000000000000 --- a/funcom_test/18928204.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setSortMode(int mode) { - extension.setSortMode(mode); - AxisStyleUI asu = (AxisStyleUI) table.getExtensions().get(AxisStyleUI.ID); - if (asu == null) - return; - if (mode == SortRank.ASC || mode == SortRank.DESC) - asu.setLevelStyle(false); - else - asu.setLevelStyle(true); - } - COM: <s> sets the sort mode and the level style </s> - diff --git a/funcom_test/18928346.txt b/funcom_test/18928346.txt deleted file mode 100644 index 44803c5d2ecaad5418766bf4b822479be8fe93da..0000000000000000000000000000000000000000 --- a/funcom_test/18928346.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void setVisiblePropertiesExtension() { - if (extension == null) - return; - if (!showProperties || visiblePropertyMetas == null) { - extension.setVisibleProperties(new MemberPropertyMeta[0]); - return; - } - MemberPropertyMeta[] mps = new MemberPropertyMeta[visiblePropertyMetas.size()]; - mps = (MemberPropertyMeta[]) visiblePropertyMetas.toArray(mps); - extension.setVisibleProperties(mps); - } - COM: <s> updates the visible properties in the extension </s> - diff --git a/funcom_test/18928348.txt b/funcom_test/18928348.txt deleted file mode 100644 index 9bf24ce75e17162eb3cc11435d98d2a2980ce7aa..0000000000000000000000000000000000000000 --- a/funcom_test/18928348.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TreeNode deepCopy() { - TreeNode newNode = new TreeNode(reference); - for (Iterator iter = children.iterator(); iter.hasNext();) { - TreeNode child = (TreeNode) iter.next(); - newNode.addChildNode(child.deepCopy()); - } - return newNode; - } - COM: <s> deep copy clone </s> - diff --git a/funcom_test/18928423.txt b/funcom_test/18928423.txt deleted file mode 100644 index 39bbca73e89b69f7f69c6c537ce64418113664e2..0000000000000000000000000000000000000000 --- a/funcom_test/18928423.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object createMemberExpression(List members) { - ArrayList memberList = new ArrayList(); - for (Iterator iter = members.iterator(); iter.hasNext();) { - MondrianMember mem = (MondrianMember) iter.next(); - memberList.add(mem.getMonMember()); - } - return memberList; - } - COM: <s> return list of mondrian members </s> - diff --git a/funcom_test/18928624.txt b/funcom_test/18928624.txt deleted file mode 100644 index 0c15b18273251d4d2a199cfc5b7f96c8c3e34333..0000000000000000000000000000000000000000 --- a/funcom_test/18928624.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object createMemberSet(List mList) { - if (mList.size() == 0) - return null; - else if (mList.size() == 1) - return mList.get(0); - else { - Exp[] remExps = (Exp[]) mList.toArray(new Exp[0]); - return new UnresolvedFunCall("{}", Syntax.Braces, remExps); - } - - } - COM: <s> generate an object for a list of members </s> - diff --git a/funcom_test/18928646.txt b/funcom_test/18928646.txt deleted file mode 100644 index c76331a99e91d7ea908005d1be0d06d2bc978529..0000000000000000000000000000000000000000 --- a/funcom_test/18928646.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean getHasDisplayValues() { - MondrianModel model = (MondrianModel) getModel(); - mondrian.olap.Query monQuery = ((MondrianQueryAdapter)model.getQueryAdapter()).getMonQuery(); - mondrian.olap.Parameter[] monParams = monQuery.getParameters(); - return (monParams.length > 0); - } - COM: <s> returns true if the query has one or more parameters </s> - diff --git a/funcom_test/18928704.txt b/funcom_test/18928704.txt deleted file mode 100644 index 2fc2ccff7251ba376008b7aac7efca27d3a0d822..0000000000000000000000000000000000000000 --- a/funcom_test/18928704.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public String getString(String key) throws MissingResourceException { - String s = provider.getString(key); - if (s == null) - throw new MissingResourceException("missing resource for " + key, this.getClass().getName(), key); - return s.trim(); - } - COM: <s> looks up a string value </s> - diff --git a/funcom_test/18929060.txt b/funcom_test/18929060.txt deleted file mode 100644 index 48b21a890e0f4c3d8d3a9bdc713c93b153951b7b..0000000000000000000000000000000000000000 --- a/funcom_test/18929060.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean checkDescendantM(Member aMember, Member dMember) { - mondrian.olap.Member monMember = ((MondrianMember) aMember).getMonMember(); - mondrian.olap.Member monDesc = ((MondrianMember) dMember).getMonMember(); - if (monDesc.isCalculatedInQuery() || monDesc.equals(monMember)) - return false; - return monDesc.isChildOrEqualTo(monMember); - } - COM: <s> return true if member 2 </s> - diff --git a/funcom_test/18929099.txt b/funcom_test/18929099.txt deleted file mode 100644 index 5953e31cd1b6ec8c78c88ffa6bce81c8165759dd..0000000000000000000000000000000000000000 --- a/funcom_test/18929099.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean checkDescendantO(Member aMember, Object oMember) { - mondrian.olap.Member monMember = ((MondrianMember) aMember).getMonMember(); - mondrian.olap.Member monDesc = toMember(oMember); - if (monDesc.isCalculatedInQuery() || monDesc.equals(monMember)) - return false; - return monDesc.isChildOrEqualTo(monMember); - } - COM: <s> return true if expression 2 </s> - diff --git a/funcom_test/18929178.txt b/funcom_test/18929178.txt deleted file mode 100644 index 9a8e94c28536d6edf9fd45719c2e89f7616f6c57..0000000000000000000000000000000000000000 --- a/funcom_test/18929178.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void addLevel(mondrian.olap.Level monLevel, MondrianHierarchy hierarchy) { - String uniqueName = monLevel.getUniqueName(); - if (!hLevels.containsKey(uniqueName)) { - MondrianLevel level = new MondrianLevel(monLevel, hierarchy, this); - hLevels.put(uniqueName, level); - } - } - COM: <s> add level to hashtable if not already there </s> - diff --git a/funcom_test/18929613.txt b/funcom_test/18929613.txt deleted file mode 100644 index 12ca519dfb4ee09886fce7024272a966d45b8f41..0000000000000000000000000000000000000000 --- a/funcom_test/18929613.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void destroy() { - logger.info(null); - super.destroy(); - if (monConnection != null) { - if (logger.isDebugEnabled()) - logger.debug("MondrianModel: closing connection " + monConnection); - monConnection.close(); - monConnection = null; - } - this.sessionId = null; - } - COM: <s> session terminated closing connections etc </s> - diff --git a/funcom_test/18929690.txt b/funcom_test/18929690.txt deleted file mode 100644 index 66f15918df0e315b6a45bf9cd0fd4cefe441f9f3..0000000000000000000000000000000000000000 --- a/funcom_test/18929690.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object getBookmarkState(int levelOfDetail) { - if (this.result == null) - return null; - try { - if (levelOfDetail == Bookmarkable.EXTENSIONAL) - return getExtensionalBookmarkState(); - return getIntensionalBookmarkState(); - } catch (OlapException e) { - logger.error(null, e); - throw new RuntimeException(e); - } - } - COM: <s> create a memento bean object holding current state </s> - diff --git a/funcom_test/18930367.txt b/funcom_test/18930367.txt deleted file mode 100644 index 9e975ba0c1c775cc462a459ffdf86fd29e65fe30..0000000000000000000000000000000000000000 --- a/funcom_test/18930367.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void removeLogicalNameFromList(final String hierName) { - for (int i = 0; i < aLogicalModel.size(); i++) { - String listName = (String) aLogicalModel.get(i); - if (listName.startsWith(hierName)) { - aLogicalModel.remove(i); - break; - } - } - } - COM: <s> sets the dirty hierarchy whose logical representation needs to be removed </s> - diff --git a/funcom_test/18934257.txt b/funcom_test/18934257.txt deleted file mode 100644 index 3744ada9195262d523d505b25e0f1aff6c3e16bd..0000000000000000000000000000000000000000 --- a/funcom_test/18934257.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void write(byte[] buf, int off, int len) throws IOException { - long tm=System.currentTimeMillis(); - out.write(buf,off,len); - tm+=Math.round(nSpB*len)-System.currentTimeMillis(); - int ns=(int) (tm % SlowInputStream.nsPms); - tm/=SlowInputStream.nsPms; - try { - if (tm>0) Thread.sleep(tm,ns); - } catch (InterruptedException ie) { - InterruptedIOException iie=new InterruptedIOException(); - iie.bytesTransferred=len; - throw iie;}} - COM: <s> writes a block of data </s> - diff --git a/funcom_test/18934259.txt b/funcom_test/18934259.txt deleted file mode 100644 index dcc652438eba6b0b1624eb2160f243d521c211e8..0000000000000000000000000000000000000000 --- a/funcom_test/18934259.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int read(byte[] buf, int off, int len) throws IOException { - long tm=System.currentTimeMillis(); - len=in.read(buf,off,len); - if (len <= 0) return len; - tm+=Math.round(nSpB*len)-System.currentTimeMillis(); - int ns=(int) (tm % nsPms); - tm/=nsPms; - try { - if (tm>0) Thread.sleep(tm,ns); - } catch (InterruptedException ie) { - InterruptedIOException iie=new InterruptedIOException(); - iie.bytesTransferred=len; - throw iie;} - return len;} - COM: <s> reads data into the buffer from the underlying </s> - diff --git a/funcom_test/18934396.txt b/funcom_test/18934396.txt deleted file mode 100644 index 45f47b5d20b3407e6cb8f97cfc8bee7acd9e26b4..0000000000000000000000000000000000000000 --- a/funcom_test/18934396.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void add(Object o, int priority) { - try { - ((GenericQueue) (queues[priority])).add(o); - } catch (ArrayIndexOutOfBoundsException bounds) { - if ((0 <= priority) && (priority < queues.length)) throw bounds; - throw new IndexOutOfBoundsException("Invalid priority "+priority+" (Expected 0-"+(queues.length-1)+')');}} - COM: <s> adds an element to the queue at the specified priority </s> - diff --git a/funcom_test/18934438.txt b/funcom_test/18934438.txt deleted file mode 100644 index 82c6a0078deecc502411d9196cb0245ce4b28d45..0000000000000000000000000000000000000000 --- a/funcom_test/18934438.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void prependUnrolled(LinearQueue q) { - bulkMoveTest(q); - for (int i=0; !q.isEmpty(); i++) try { - Object o=q.removeFirst(); - try { - this.addFirst(o); - } catch (RuntimeException re) { - q.addFirst(o); - throw re;} - } catch (RuntimeException re) { - try { - while (i-->0) q.addFirst(this.removeFirst()); - } catch (RuntimeException bah) { - throw new RollbackError(re, bah);} - throw re;}} - COM: <s> moves the contents of q to the beginning of this queue </s> - diff --git a/funcom_test/18934448.txt b/funcom_test/18934448.txt deleted file mode 100644 index 624d79877c672379599d63144d11ff6eec72a154..0000000000000000000000000000000000000000 --- a/funcom_test/18934448.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void appendFlat(LinearQueue q) { - bulkMoveTest(q); - for (int i=0; !q.isEmpty(); i++) try { - Object o=q.removeFirst(); - try { - this.addLast(o); - } catch (RuntimeException re) { - q.addFirst(o); - throw re;} - } catch (RuntimeException re) { - try { - while (i-->0) q.addFirst(this.removeLast()); - } catch (RuntimeException bah) { - throw new RollbackError(re, bah);} - throw re;}} - COM: <s> moves the contents of q to the end of this queue </s> - diff --git a/funcom_test/18934470.txt b/funcom_test/18934470.txt deleted file mode 100644 index 3758d4028f67187291ff8a48c2c5cbeae6e6d7a8..0000000000000000000000000000000000000000 --- a/funcom_test/18934470.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addSet(Enumeration e) { - if (e instanceof ArrayEnum) { - ArrayEnum ae=(ArrayEnum) e; - int avail=availableRoom(), sz=ae.available(); - if (avail<sz) overflow(sz-avail); - if ((end>=begin) && (sz+end>entries.length)) { - int pass1=entries.length-end; - ae.copyInto(entries,end,pass1); - end=sz-pass1; - ae.copyInto(entries,0,end); - } else { - ae.copyInto(entries,end,sz); - end+=sz;} - } else super.addSet(e);} - COM: <s> adds an enumerable set of elements to the end </s> - diff --git a/funcom_test/18956797.txt b/funcom_test/18956797.txt deleted file mode 100644 index 310b63ac1c245517e07553c8f886b6bacf323a34..0000000000000000000000000000000000000000 --- a/funcom_test/18956797.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void open() throws SQLException{ - if (opened) throw new TransactionException("Transaction already open.", this); - checkOpen(content); - if (isTransactional()) { - content.setAutoCommit(false); - content.setTransactionIsolation(getIsolationLevel()); - } - opened = true; - happy = false; /*pessimistic*/ - done = false; - executed = false; - log("Transaction started"); - } - COM: <s> opens a new transaction with all the transactional resources enlisted </s> - diff --git a/funcom_test/19028326.txt b/funcom_test/19028326.txt deleted file mode 100644 index cbb127a680da857be9439ec9c83fd6d9a3ed0a55..0000000000000000000000000000000000000000 --- a/funcom_test/19028326.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testCreateCalendar() throws Exception { - // First, log on to the MightyCal Calendar Registry - WebConversation conversation = new WebConversation(); - conversation.setAuthorization("admin", "admin"); - WebRequest request = new GetMethodWebRequest( "http://localhost:8000/CALSCalendar/CalendarRegistry/addTestCalendars" ); - WebResponse calendarRegistry = conversation.getResponse( request ); - } - COM: <s> handles setting up the leave calendar in the backend </s> - diff --git a/funcom_test/19028327.txt b/funcom_test/19028327.txt deleted file mode 100644 index 601863621a87f443b9106195271e6c54daf3e2ed..0000000000000000000000000000000000000000 --- a/funcom_test/19028327.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testDeleteCalendar() throws Exception { - WebConversation conversation = new WebConversation(); - conversation.setAuthorization("admin", "admin"); - WebRequest request = new GetMethodWebRequest( "http://localhost:8000/CALSCalendar/CalendarRegistry/deleteTestCalendars" ); - WebResponse response = conversation.getResponse( request ); - } - COM: <s> handles deleting the leave calendar prior to exiting </s> - diff --git a/funcom_test/19102418.txt b/funcom_test/19102418.txt deleted file mode 100644 index 6c4b3098a3bb19efcaa44733efe50bd6b37f8d6e..0000000000000000000000000000000000000000 --- a/funcom_test/19102418.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void loadCommands(URL url) throws IOException { - Properties prop = new Properties(); - prop.load(new FileInputStream(url.getFile())); - sqlmap = new HashMap<String, String>(); - for (Entry<Object, Object> entry : prop.entrySet()) - sqlmap.put((String) entry.getKey(), (String) entry.getValue()); - } - COM: <s> load sql commands from a properties file usually accessed by class </s> - diff --git a/funcom_test/19102435.txt b/funcom_test/19102435.txt deleted file mode 100644 index d37bff69dbf8092bcc939367e3831bdb30a3d0e5..0000000000000000000000000000000000000000 --- a/funcom_test/19102435.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public File newDir(File directory) throws IOException { - Log.logf(0, "creating new directory %s.", directory); - if (directory.exists()) { - Log.logf(6, "creating new directory %s failed.", directory); - throw new IOException(directory + ": file already exists."); - } - return ensureDir(directory); - } - COM: <s> create a new directory together with any missing parent directories </s> - diff --git a/funcom_test/19102503.txt b/funcom_test/19102503.txt deleted file mode 100644 index b1ab547a7cf5a303f39c9585583a58f33090b11c..0000000000000000000000000000000000000000 --- a/funcom_test/19102503.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String replaceParams(String expression, Object... params) { - assert (params.length < 10); - for (int i = 0; i < params.length; i++) - expression = expression.replaceAll("#"+(i+1), params[i].toString()); - Log.log(getClass().getName(), 5, expression); - return expression; - } - COM: <s> replace positional parameters in a string expression </s> - diff --git a/funcom_test/19102562.txt b/funcom_test/19102562.txt deleted file mode 100644 index 64c22ff47d2398399228034d85b7b74634553ef9..0000000000000000000000000000000000000000 --- a/funcom_test/19102562.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected String rawReadLine() throws IOException { - String string = reader.readLine(); - // at end of file, string == null - // skip comment lines and empty lines - while (string != null - && (string.equals("") || string.matches("[#;].*"))) { - string = reader.readLine(); - } - if (string == null) - throw new EOFException("end of file reached"); - if (string.equals("%")) - return null; - if (string.equals(" %")) - return ""; - return string; - } - COM: <s> internal read raw line method </s> - diff --git a/funcom_test/19102655.txt b/funcom_test/19102655.txt deleted file mode 100644 index bfcb985202e0a330980bf00ae6bcb86e43cb774e..0000000000000000000000000000000000000000 --- a/funcom_test/19102655.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: static public boolean deleteDirectory(File file) { - if (file.isFile()) return file.delete(); - if (file.isDirectory()) { - for (File child : file.listFiles()) - if (!deleteDirectory(child)) return false; - return file.delete(); - } - return false; - } - COM: <s> recursively deletes a directory or file </s> - diff --git a/funcom_test/19102874.txt b/funcom_test/19102874.txt deleted file mode 100644 index a3d26836520eeccce3344f7c83f21d1e63409a73..0000000000000000000000000000000000000000 --- a/funcom_test/19102874.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void rename(String oldKey, String newKey) throws MappingException { - if (queried.contains(oldKey)) queried.add(newKey); - if (settings.containsKey(oldKey)) { - String before = settings.put(newKey, settings.remove(oldKey)); - if (before != null) throw new MappingException(newKey, "overwritten"); - } - } - COM: <s> renames a setting key </s> - diff --git a/funcom_test/19102927.txt b/funcom_test/19102927.txt deleted file mode 100644 index bcf2d66c5a64c8858759087f6598ae2906ba52de..0000000000000000000000000000000000000000 --- a/funcom_test/19102927.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String dataPath(byte[] hash, long size, boolean zip) { - final String filename = Strings.hex(hash) + "_" + size; - final StringBuilder targetname = new StringBuilder(); - for (int i = 0; i < levels; i++) - targetname.append(File.separatorChar).append(filename.charAt(i)); - if (zip) targetname.append(".zip"); - targetname.append(File.separatorChar).append(filename.substring(levels)); - return targetname.substring(1); - } - COM: <s> returns the relative data file path for a given entry </s> - diff --git a/funcom_test/19103060.txt b/funcom_test/19103060.txt deleted file mode 100644 index ab87035867d410e56697948e7728cf57c100f8b7..0000000000000000000000000000000000000000 --- a/funcom_test/19103060.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setupIndexTable() throws SQLException { - // create index table if it does not yet exist - try { - URL sqlFile = getClass().getResource("sql_init_index_table.sql"); - executeFile(sqlFile); - } catch (SQLException e) { - if (e.toString().contains("Table already exists")) - // the table already exists (this is normal and o.k.) - return; - // some other SQL error occurred. - throw e; - } - } - COM: <s> create the index table if necessary </s> - diff --git a/funcom_test/19103065.txt b/funcom_test/19103065.txt deleted file mode 100644 index 602209650914ed46dd8a6c1c41f24ddf891c96ef..0000000000000000000000000000000000000000 --- a/funcom_test/19103065.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void addFiles(File file, String basepath) throws SQLException { - if (file.isDirectory()) { - // directories: - File[] files = file.listFiles(fileFilter); - if (files.length == 0) { - // either add empty directory - addFile(file, basepath); - } else { - // or recurse - for (File subfile : files) - addFiles(subfile, basepath); - } - } else { - // files: add file - addFile(file, basepath); - } - } - COM: <s> add files or directory to the new files table </s> - diff --git a/funcom_test/19103107.txt b/funcom_test/19103107.txt deleted file mode 100644 index 260b87bd55f0a109b006cf5de83792ae841e26d4..0000000000000000000000000000000000000000 --- a/funcom_test/19103107.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public DataEntry storeUpd(final long estdSize, final Type entryType, final byte[] headerHash, HashInputStream in) throws IOException { - final LocEntry locEntry = store.storeUpd(estdSize, entryType, in); - headerDB.add(locEntry.entry.size(), headerHash); - entryDB.add(locEntry.entry.size(), locEntry.entry.hash(), locEntry.location); - return locEntry.entry; - } - COM: <s> store entry and return the possibly updated entry </s> - diff --git a/funcom_test/19103227.txt b/funcom_test/19103227.txt deleted file mode 100644 index 219b43fc11bd8c5a1da7e9883c5dc7980f5ef018..0000000000000000000000000000000000000000 --- a/funcom_test/19103227.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void release() throws IOException { - // unmount zip files (as far as possible) - try { File.umount(true, false, true, false); } catch (ArchiveBusyException e) { /* ignore */ } - // unlock repository - fileLock.release(); - lockedStream.write("unlocked...\n".getBytes()); - lockedStream.flush(); - lockedStream.close(); - } - COM: <s> release the lock for the repository lock file </s> - diff --git a/funcom_test/19142331.txt b/funcom_test/19142331.txt deleted file mode 100644 index 135f5a2aa955fb21283d5bd397121d4dce4ecfde..0000000000000000000000000000000000000000 --- a/funcom_test/19142331.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Bindings set(String variable, String value) { - if (variable == null) { - throw new NullPointerException("The variable name is null."); - } - if (value == null) { - throw new NullPointerException("The value is null."); - } - unset(variable); - varToString.put(variable, value); - return this; - } - COM: <s> add a variable binding </s> - diff --git a/funcom_test/19142341.txt b/funcom_test/19142341.txt deleted file mode 100644 index c43665b55723a14d72fa9f215a03e76aed3cce25..0000000000000000000000000000000000000000 --- a/funcom_test/19142341.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Document replace(Document doc) { - if (doc == null) { - throw new NullPointerException("The document to rewrite is null."); - } - - // Rewrite the head and body of the document. - Element headElt = (Element) replace(doc.getHead()); - Element bodyElt = (Element) replace(doc.getBody()); - doc.set(headElt, bodyElt); - return doc; - } - COM: <s> replace variable references in the provided documents head and </s> - diff --git a/funcom_test/1914527.txt b/funcom_test/1914527.txt deleted file mode 100644 index 7e30e6b4defc9c6f4c649d55eeda955a811fa92d..0000000000000000000000000000000000000000 --- a/funcom_test/1914527.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setHighlight(HighlightPanel thisHighlight, Point coords, int highlightColor){ - //Set the color of the highlight. - thisHighlight.setColor(highlightColor); - - //place our highlighter over this square: - thisHighlight.setLocation(coords.x + boardPanel.getX(), coords.y + boardPanel.getY()); - - setComponentZOrder(thisHighlight, (getComponentZOrder(boardPanel) -1)); - } - COM: <s> this should be called via highlight space or highlight selection </s> - diff --git a/funcom_test/1918330.txt b/funcom_test/1918330.txt deleted file mode 100644 index 615c539adaa71846d1e5517e80a14784dc0139e9..0000000000000000000000000000000000000000 --- a/funcom_test/1918330.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public OutgoingInterface createOutInterface(ConnectionId cId, boolean oneWay) throws IOException { - - if (getConnectionMethod().equals(ConnectionMethod.UDPDirect)) - return new UDPOutgoingInterface(ip, Consts.SERVER_PORT, port1, cId); - if (getConnectionMethod().equals(ConnectionMethod.TCPDirect)) - return new TCPOutgoingInterface(ip, port2); - if (oneWay && tcp80 != null) - return new TCPOutgoingInterface(tcp80); - - return getTCP80interface(cId); - } - COM: <s> create an outgoing interface to this client </s> - diff --git a/funcom_test/1918408.txt b/funcom_test/1918408.txt deleted file mode 100644 index daa537e47ffd986db56d48308ac8b64998d3578b..0000000000000000000000000000000000000000 --- a/funcom_test/1918408.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void addText(String s, boolean bold){ - Document d = t.getDocument(); - StyleContext sc = new StyleContext(); - NamedStyle ns = sc.new NamedStyle(); - if (bold) - StyleConstants.setBold(ns, true); - - try { - d.insertString(d.getLength(), s, ns); - d.insertString(d.getLength(), System.getProperty("line.separator"), ns); - } catch (BadLocationException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - COM: <s> adds text to the log window </s> - diff --git a/funcom_test/19217975.txt b/funcom_test/19217975.txt deleted file mode 100644 index d4b43a3092542c20a9d0dcf7f943d779285802b5..0000000000000000000000000000000000000000 --- a/funcom_test/19217975.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected boolean applyChanges() { - if(model != null) { - try { - model.setConfig(HtmlConfigProperties.PKEY_CASE_SENSITIVITY, - new Boolean(caseSenRadioButton.isSelected())); - } catch(JCConfigException cex) { - // ignore, should never occur - } - } - return true; - } - COM: <s> user has pressed the apply button </s> - diff --git a/funcom_test/19218259.txt b/funcom_test/19218259.txt deleted file mode 100644 index 8071c3462233745ef901a1d87619c50f2c91de95..0000000000000000000000000000000000000000 --- a/funcom_test/19218259.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void calculateGotoItems() { - if(sourceItems == null || grammarItem == null) { - return; // bail out -- could issue exception here - } - Iterator iter = sourceItems.iterator(); - while(iter.hasNext()) { - LRGotoItem srceGotoItem = (LRGotoItem)iter.next(); - closure(srceGotoItem.getNextItem(state)); - } - } - COM: <s> assumed that all items in the source set have the same grammar item </s> - diff --git a/funcom_test/19218425.txt b/funcom_test/19218425.txt deleted file mode 100644 index e554baf49d68ad37a005d3559bb55567b55ddffd..0000000000000000000000000000000000000000 --- a/funcom_test/19218425.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getClassNameForLookAndFeel(String name) { - if (lfNameToLookAndFeel.containsKey(name)) { - UIManager.LookAndFeelInfo lookAndFeelInfo = - (UIManager.LookAndFeelInfo) lfNameToLookAndFeel.get(name); - return lookAndFeelInfo.getClassName(); - } - else { - return null; - } - } - COM: <s> may return null if no mapping for the name exists </s> - diff --git a/funcom_test/19218498.txt b/funcom_test/19218498.txt deleted file mode 100644 index 7a534fde5743b0bd5a23f0a91892e90514b15241..0000000000000000000000000000000000000000 --- a/funcom_test/19218498.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Object getUnselectedItem() { - Object item = null; - Object currentSelectedItem = getSelectedItem(); - for(int idx = 0, maxIdx = getSize(); - idx < maxIdx && item == null; idx++) - { - item = getElementAt(idx); - if(currentSelectedItem != null && - currentSelectedItem.equals(item)) - { - item = null; - } - } - - return item; - } - COM: <s> returns the first item in the list that is not the selected item </s> - diff --git a/funcom_test/19218891.txt b/funcom_test/19218891.txt deleted file mode 100644 index d43424d48b5b54ae9139d2f3d6da689ccff232a4..0000000000000000000000000000000000000000 --- a/funcom_test/19218891.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void removeUpdate(DocumentEvent e) { - synchronized(lock) { - if(open) { - int changeLength = e.getLength(); - endPosition -= changeLength; - if(e.getOffset() < nextChar) { - nextChar -= e.getLength(); - if(nextChar < 0) { - nextChar = 0; - } - } - } - } - } - COM: <s> gives notification that a portion of the document has been </s> - diff --git a/funcom_test/19219160.txt b/funcom_test/19219160.txt deleted file mode 100644 index 7fc0574c0ec8aa221571c3d801fcfd190e967a4e..0000000000000000000000000000000000000000 --- a/funcom_test/19219160.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public CharEntityInfo getCharEntityInfo(String charEntName) { - if (charEntName == null || charEntName.length() == 0) { - return null; // bail out - } - int index = charEntsLoaded.getElementIndex(charEntName); - return (CharEntityInfo) (index >= 0 ? - charEntsLoaded.getElementAt(index) : null); - } - COM: <s> returns null if a mapping not found </s> - diff --git a/funcom_test/19219424.txt b/funcom_test/19219424.txt deleted file mode 100644 index c0c0f39ba96c750e95091d6555ec57f5c5f9e5f6..0000000000000000000000000000000000000000 --- a/funcom_test/19219424.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void resetElementData() { - elementType = null; - elementName = elementNameSpace = comments = null; - frequency = null; - dataType = null; - dataRegExp = null; - attrManager = null; - singleton = contentOptional = checkingLoose = checkingStrict = false; - if(charEntNames != null) { - charEntNames.clear(); - } - if(charEntRGXs != null) { - charEntRGXs.clear(); - } - } - COM: <s> call this before repopulating if using a single instance of this class </s> - diff --git a/funcom_test/19219454.txt b/funcom_test/19219454.txt deleted file mode 100644 index c61cff87df3f212cc6a2139cc733d11a332787a9..0000000000000000000000000000000000000000 --- a/funcom_test/19219454.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected BaseElement makeDeepCopy(BaseElement newElement) { - TagElement newTagElement = (TagElement)super.makeDeepCopy(newElement); - newTagElement.tagName = this.tagName; - // copy element content - newTagElement.elementContent = elementContent.makeDeepCopy( - newTagElement.elementContent); - return newTagElement; - } - COM: <s> used to create a deep copy of an element cascading override </s> - diff --git a/funcom_test/19219461.txt b/funcom_test/19219461.txt deleted file mode 100644 index b73460cea39bba3e72e7961fbe6fb050feef7c3f..0000000000000000000000000000000000000000 --- a/funcom_test/19219461.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void updateItemToKeyList(CharEntNameItem item, Object key) { - if (itemToKeyList == null) { - itemToKeyList = new HashMap(); - } - List keysList = (List) itemToKeyList.get(item); - if (keysList == null) { - keysList = new ArrayList(); - itemToKeyList.put(item, keysList); - } - keysList.add(key); - } - COM: <s> tracks the lists that reference a particular charentnameitem </s> - diff --git a/funcom_test/19219670.txt b/funcom_test/19219670.txt deleted file mode 100644 index 3bd5ea9bfb18cd29caa331b1080d4c06ac0026f1..0000000000000000000000000000000000000000 --- a/funcom_test/19219670.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void deleteNode(SDDElementTreeNode node) { - // removeNode will remove the SDDObject from the parent's list - SDDObjectImpl sddObject = removeNode(node); // get rid of tree nodes - sddObject.getBaseElement().removeDynamicSDDUpdateListener(sddObject); - // should be no more refs to this SDDObject at this point - // do not iterate children, the sddObjects of the baselement are still - // live and relevant - } - COM: <s> purpose is to completely delete a node this includes the associated </s> - diff --git a/funcom_test/19219785.txt b/funcom_test/19219785.txt deleted file mode 100644 index 5d8bd7f133591797d35d6768f820495a43faf263..0000000000000000000000000000000000000000 --- a/funcom_test/19219785.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean addObject(Object obj) { - ObjectCounter counter = (ObjectCounter)objectTracker.get(obj); - if(counter == null) { - objectTracker.put(obj, new ObjectCounter()); // init to 1 - return true; - } else { - counter.incrementCount(); - return false; - } - } - COM: <s> returns false if object is recursive </s> - diff --git a/funcom_test/19219833.txt b/funcom_test/19219833.txt deleted file mode 100644 index 2618ca01a8e69d1390c410696f18a6b2edcbf021..0000000000000000000000000000000000000000 --- a/funcom_test/19219833.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object clone() throws java.lang.CloneNotSupportedException { - FontPropertiesInfo cloneFont = new FontPropertiesInfo(); - cloneFont.setBackground(this.backGround); - cloneFont.setForeground(this.foreGround); - cloneFont.setFont(this.font); - cloneFont.setTabSize(this.tabSize.intValue()); - return cloneFont; - } - COM: <s> shallow copy do not copy prop change listener </s> - diff --git a/funcom_test/19220263.txt b/funcom_test/19220263.txt deleted file mode 100644 index 53fd80a9071615b6e9f94fc796e892c6797beeed..0000000000000000000000000000000000000000 --- a/funcom_test/19220263.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object getValueAt(int rowIndex, int columnIndex) { - String prop = (String)configKeys.get(rowIndex); - Object value = null; - try { - value = configMap.get(prop); - if(value == null) { - value = validationInfo.getConfig(prop); - } - } catch(JCConfigException jcce) { - jcce.printStackTrace(); - return null; - } - return columnIndex == 0 ? prop : value; - } - COM: <s> returns the value for the cell at code column index code and </s> - diff --git a/funcom_test/19220269.txt b/funcom_test/19220269.txt deleted file mode 100644 index 555180c563a2e3f7d00837419fbff34be20c79f0..0000000000000000000000000000000000000000 --- a/funcom_test/19220269.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean determineElementEligible(SDDElement element) { - SDDElementType type = element.getElementType(); - if (type == SDDElementType.TAG_ELEMENT) { - return true; - } - else if (type == SDDElementType.BLOCK_ELEMENT && - element.getNameSpace() != null) { - return true; - } - else { - return false; - } - } - COM: <s> returns true for tags false for ors and true for blocks with </s> - diff --git a/funcom_test/19220270.txt b/funcom_test/19220270.txt deleted file mode 100644 index 86c1512c0fa58c3281df5817702419a85b05d744..0000000000000000000000000000000000000000 --- a/funcom_test/19220270.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setValueAt(Object aValue, int rowIndex, int columnIndex) { - String configKey = (String)configKeys.get(rowIndex); - configMap.put(configKey, aValue); - // fire change pending to activate apply button - fireConfigChangeEvent( - new JCConfigChangeEvent(JCConfigChangeEvent.CHANGE_PENDING)); - } - COM: <s> sets the value in the cell at code column index code and </s> - diff --git a/funcom_test/19220446.txt b/funcom_test/19220446.txt deleted file mode 100644 index a2da5f77ca9ce6d813c2a780364d73dd3a4934b4..0000000000000000000000000000000000000000 --- a/funcom_test/19220446.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public TreeNode getChildAt(int childIndex) { - if (children == null) { - throw new ArrayIndexOutOfBoundsException("node has no children"); - } - //if(childIndex < children.size()) { - return (TreeNode) children.get(childIndex); - //} - //else { - // return new SDDElementTreeNode(); - //} - } - COM: <s> returns the child code tree node code at index </s> - diff --git a/funcom_test/19220527.txt b/funcom_test/19220527.txt deleted file mode 100644 index 3a51ec177aff608a409daa73eb0842e8b6f5b9ca..0000000000000000000000000000000000000000 --- a/funcom_test/19220527.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void saveLibrary() { - if (userLibrary != null) { - try { - FileOutputStream out_s = new FileOutputStream(getPropertyFileObject()); - userLibrary.store(out_s, "user defined common rgx patterns"); - } - catch (IOException ioex) { - ioex.printStackTrace(); - } - } - } - COM: <s> write user library to disk as property file </s> - diff --git a/funcom_test/19220589.txt b/funcom_test/19220589.txt deleted file mode 100644 index 2e4f0829a6d156b8b5fdd153148f308ecd8268f8..0000000000000000000000000000000000000000 --- a/funcom_test/19220589.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void insert(MutableTreeNode child, int index) { - if (!allowsChildren) { - throw new IllegalStateException("node does not allow children"); - } - else if (child == null) { - throw new IllegalArgumentException("new child is null"); - } - //} else if (isNodeAncestor(newChild)) { - // throw new IllegalArgumentException("new child is an ancestor"); - //} - COM: <s> adds code child code to the receiver at code index code </s> - diff --git a/funcom_test/19220628.txt b/funcom_test/19220628.txt deleted file mode 100644 index 552d46fc7b5d71abb8f517064bd03a359610c1e1..0000000000000000000000000000000000000000 --- a/funcom_test/19220628.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void remove(MutableTreeNode child) { - if (child == null) { - throw new IllegalArgumentException("argument is null"); - } - int childIndex = getIndex(child); - if (childIndex == -1) { - throw new IllegalArgumentException("argument is not a child"); - } - remove(childIndex); // linear search - } - COM: <s> removes code node code from the receiver </s> - diff --git a/funcom_test/19220653.txt b/funcom_test/19220653.txt deleted file mode 100644 index 4e2156daabaf91c70146a0bb5000d98abe4278f8..0000000000000000000000000000000000000000 --- a/funcom_test/19220653.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setUserObject(Object obj) { - if (obj instanceof SDDObject) { - SDDObject sddObj = getSDDObject(); - if (sddObj != null) { - sddObj.removeDynamicSDDUpdateListener(this); - } - userObject = (SDDObject) obj; - userObject.addDynamicSDDUpdateListener(this); - } - else { - throw new IllegalArgumentException( - "The passed argument must be of type SDDObject."); - } - } - COM: <s> resets the user object of the receiver to code object code </s> - diff --git a/funcom_test/19220864.txt b/funcom_test/19220864.txt deleted file mode 100644 index 353b4b899028e19ff9204d8961b91c9c3a05bfbb..0000000000000000000000000000000000000000 --- a/funcom_test/19220864.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setTabSize(int size) { - Document doc = getDocument(); - if (doc != null) { - int old = getTabSizeFromDoc(); - tabSize = size; - doc.putProperty(PlainDocument.tabSizeAttribute, new Integer(size)); - firePropertyChange("tabSize", old, tabSize); - } - } - COM: <s> sets the number of characters to expand tabs to </s> - diff --git a/funcom_test/19220870.txt b/funcom_test/19220870.txt deleted file mode 100644 index 8a89cf1af29b52af10cfacd5b469a8e9ece6f0bc..0000000000000000000000000000000000000000 --- a/funcom_test/19220870.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int getTabSizeFromDoc() { - int size = DEFAULT_TAB_SIZE; - Document doc = getDocument(); - if (doc != null) { - Integer i = (Integer) doc.getProperty(PlainDocument.tabSizeAttribute); - if (i != null) { - size = i.intValue(); - } - } - return size; - } - COM: <s> gets the number of characters used to expand tabs </s> - diff --git a/funcom_test/19221213.txt b/funcom_test/19221213.txt deleted file mode 100644 index 52175468bf22c285b322c8f5fcb68a54fa0c2f0e..0000000000000000000000000000000000000000 --- a/funcom_test/19221213.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean closeConfigDialog() { - int value = JOptionPane.YES_OPTION; - if(getChangesPending()) { - value = JCSwingUtilities.showCenteredConfirmDlg(this, - SDVConstants.UM_APPLY_CHANGES, - SDVConstants.DGT_CHANGES_PENDING, - JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE); - } - return value == JOptionPane.YES_OPTION; - } - COM: <s> user has pressed the close button </s> - diff --git a/funcom_test/19222414.txt b/funcom_test/19222414.txt deleted file mode 100644 index 723507fcd0c5d696babc2697f40189dc595b7e24..0000000000000000000000000000000000000000 --- a/funcom_test/19222414.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public SDDElement addElement(ElementData elemData, SDDElement parent) { - // case of no parent -- need to get doc wrapper - // occurs with first element and all elements on lowest level - if (parent == null) { - parent = getDocumentWrapper().getSDDElement(); - } - return appendNewElement(elemData, parent); - } - COM: <s> method from compiler interface to add an element </s> - diff --git a/funcom_test/19275861.txt b/funcom_test/19275861.txt deleted file mode 100644 index 89cf972b2d4197e73de55a3e7dbdad6486aa74ee..0000000000000000000000000000000000000000 --- a/funcom_test/19275861.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public long getNextVal(String dbSequenceName) { - Connection conn = this.getSession().connection(); - DatabaseUpdater dbu = new DatabaseUpdater(conn); - - try { - return dbu.getNextSeqVal(dbSequenceName); - } catch (SQLException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - throw new RuntimeException(e); - } - - } - COM: <s> get next value from the db sequence </s> - diff --git a/funcom_test/19275953.txt b/funcom_test/19275953.txt deleted file mode 100644 index 041ac56af63bec586f82924603b1f228127cd52a..0000000000000000000000000000000000000000 --- a/funcom_test/19275953.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Method getSet1Method() throws NoSuchMethodException { - if (null != set1Method) { - return set1Method; - } - set1Method = - metaClass.getJavaClass().getMethod( - "set" + Character.toUpperCase(baseName.charAt(0)) + baseName.substring(1), - new Class[] { getOtherMetaClass().getJavaClass() }); - return set1Method; - } - COM: <s> returns the set method for a role with high 1 </s> - diff --git a/funcom_test/19275964.txt b/funcom_test/19275964.txt deleted file mode 100644 index 1b9f9c8cd66ca8819ef153449ddc3ae545da8a5c..0000000000000000000000000000000000000000 --- a/funcom_test/19275964.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getCountOfAll(final MetaClass metaClass) { - assert (!isCompleted()); - Criteria crit = getSession().createCriteria(metaClass.getJavaClass()); - crit = createCriteriaFromAttributeMap(crit, metaClass.getJavaClass(), Collections.EMPTY_MAP); - - Integer count = (Integer) crit.setProjection(Projections.rowCount()).uniqueResult(); - return count.intValue(); - } - COM: <s> get count of certain class </s> - diff --git a/funcom_test/19276328.txt b/funcom_test/19276328.txt deleted file mode 100644 index c01464d14e75aa7fdce9fcf98daa0eaa00cd275b..0000000000000000000000000000000000000000 --- a/funcom_test/19276328.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void flush() { - - if (this.getDbId() == null) - ((org.pimslims.hibernate.WritableVersionImpl) this.get_Version()).save(this); - if (((org.pimslims.hibernate.WritableVersionImpl) this.get_Version()).isFlushSessionAfterCreate()) - this.get_Version().getSession().flush(); - } - COM: <s> flush this object if id is null </s> - diff --git a/funcom_test/19280600.txt b/funcom_test/19280600.txt deleted file mode 100644 index 242df32a4bca84f429065213fce8aa33b025e24d..0000000000000000000000000000000000000000 --- a/funcom_test/19280600.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private RegistrationQuery getPersistenceObject() throws PridePersistenceException { - if (controller == null) { - String dbAlias = PropertiesHelper.getDBAlias(); - if (dbAlias != null) { - controller = new OJBController(dbAlias); - } else { - throw new IllegalStateException("You must specify a jcd-alias to connect as there is no default jcd-alias defined in PRIDE"); - } - } - return controller.getRegistrationQuery(); - } - COM: <s> private method to return a registration query object </s> - diff --git a/funcom_test/19280843.txt b/funcom_test/19280843.txt deleted file mode 100644 index c50591cecd8f03671640953677618583066f378b..0000000000000000000000000000000000000000 --- a/funcom_test/19280843.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Collection getInstitutions() { - try { - if (iInstitutions == null) { - refreshInstitutions(); - logger.debug("Institutions were null while getting them. Attempting to refresh."); - } - return iInstitutions; - } - catch (Exception e) { - logger.warn(e.getMessage(), e); - return Collections.EMPTY_LIST; - } - } - COM: <s> this method returns a collection or institution bean objects </s> - diff --git a/funcom_test/19280968.txt b/funcom_test/19280968.txt deleted file mode 100644 index 4043d35394f2c39cfef34934d1fd730b69b6dcdf..0000000000000000000000000000000000000000 --- a/funcom_test/19280968.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Collection getInstitutions() { - Collection toReturn = null; - try { - toReturn = InstitutionsSingleton.getInstance().getInstitutions(); - } - catch (Exception e) { - logger.error("An Exception has been thrown by the RegistrationForm.getInstitutions() method:", e); - throw new IllegalStateException(); - } - if (toReturn == null) { - toReturn = Collections.EMPTY_LIST; - } - return toReturn; - } - COM: <s> returns a complete list of the institutions currently in the database </s> - diff --git a/funcom_test/19281018.txt b/funcom_test/19281018.txt deleted file mode 100644 index ab75baaae8ab399cbe364ceabe14bf8a7abc10a6..0000000000000000000000000000000000000000 --- a/funcom_test/19281018.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private ByteOrder getByteOrder() { - if (BIG_ENDIAN_LABEL.equals(this.getDataEndian())) { - return ByteOrder.BIG_ENDIAN; - } else if (LITTLE_ENDIAN_LABEL.equals(this.getDataEndian())) { - return ByteOrder.LITTLE_ENDIAN; - } else { - throw new IllegalStateException("The value for data endian for this binary array must be either 'big' or 'little'. In this case it is: " + this.getDataPrecision()); - } - } - COM: <s> returns the appropriate byte order object depending on whether big endian </s> - diff --git a/funcom_test/19281050.txt b/funcom_test/19281050.txt deleted file mode 100644 index c20a12e2eca62d2e19b2c47020c84782f3bc042f..0000000000000000000000000000000000000000 --- a/funcom_test/19281050.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - final StringBuffer buf = new StringBuffer(); - buf.append(" BinaryArrayImpl:") - .append(" DataLength=").append(iDataLength) - .append(", DataEndian=").append(iDataEndian) - .append(", DataPrecision=").append(iDataPrecision) - .append("\n, Base64 String='").append(iBase64String).append("'"); - - buf.append("}\n"); - COM: <s> returns a useful string representation of this imlplementation instance that </s> - diff --git a/funcom_test/19281078.txt b/funcom_test/19281078.txt deleted file mode 100644 index 6d9ddf7843a65a03032df3a7e7a24f68c62621e6..0000000000000000000000000000000000000000 --- a/funcom_test/19281078.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String toString() { - final StringBuffer buf = new StringBuffer(); - buf.append(" AbstractParamType:") - .append(" {Name=").append(iName) - .append(", ParamType=").append(iParamType) - .append(", OrderIndex=").append(iOrderIndex) - .append(", Value=").append(iValue) - .append(", IsInternal=").append(isInternal) - .append('}'); - return buf.toString(); - } - COM: <s> returns a useful string representation of this implementation instance that </s> - diff --git a/funcom_test/19281314.txt b/funcom_test/19281314.txt deleted file mode 100644 index 466c26fafa06b8c2d55745c82ea20e633d8763b2..0000000000000000000000000000000000000000 --- a/funcom_test/19281314.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setParty(Party party) { - // Check that the constraint that only Person or Collaboration objects can be given - // permission to view an experiment has been met. - if (! (party instanceof Person || party instanceof Collaboration)) { - throw new IllegalArgumentException("Only Parties that implement the Person or Party interface can be given permission to view an Experiment as embodied in this ExperimentReadPermissionBean object."); - } - this.party = party; - } - COM: <s> allows the party to which this viewing permission refers to be </s> - diff --git a/funcom_test/19281352.txt b/funcom_test/19281352.txt deleted file mode 100644 index 5d90baca004c316d7c9fb1ea10f64984251b3366..0000000000000000000000000000000000000000 --- a/funcom_test/19281352.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean isConfirmed() { - if (!(getParentOrganisation() instanceof Collaboration)) { - throw new UnsupportedOperationException("MembershipBean.isConfirmed() has been used inappropriately - this method only has meaning if the parentOrganisation field references a Collaboration object. "); - } - return (getConfirmedByOwner() != null && - getConfirmedByOwner().getTime() <= new java.util.Date().getTime()); - } - COM: <s> convenience method to indicate if this membership is confirmed or not </s> - diff --git a/funcom_test/19281404.txt b/funcom_test/19281404.txt deleted file mode 100644 index c2186181438b69220a363657c95cfc96cede1f31..0000000000000000000000000000000000000000 --- a/funcom_test/19281404.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Collection getParentOrganisations(boolean currentOnly) { - final Collection parentOrganisations = new TreeSet(AbstractOrganisationImpl.COMPARATOR); - if (getMembershipParents() != null) { - for (Iterator membershipIterator = getMembershipParents().iterator(); membershipIterator.hasNext();) { - final MembershipBean membershipBean = (MembershipBean) membershipIterator.next(); - if (!currentOnly || membershipBean.isCurrent()) { - parentOrganisations.add(membershipBean.getParentOrganisation()); - } - } - } - return parentOrganisations; - } - COM: <s> method that returns a collection containing all the organisation objects </s> - diff --git a/funcom_test/19281425.txt b/funcom_test/19281425.txt deleted file mode 100644 index 9cd182fd147a8f3a91eded4acbdcab5fe5b36939..0000000000000000000000000000000000000000 --- a/funcom_test/19281425.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getChildPartyFormattedName() throws EncryptionException, KeyStoreException { - if (childParty == null) { - return null; - } - if (childParty instanceof PersonBean) { - return ((PersonBean) childParty).getTitleForenameSurname(); - } else if (childParty instanceof AbstractOrganisationImpl) { - return ((AbstractOrganisationImpl) childParty).getName(); - } else { - // Don't know how to deal with this object - not a Party object of any kind that - // the registration system is aware of! - return null; - } - } - COM: <s> returns the name of the child party formatted as a string and appropriate </s> - diff --git a/funcom_test/19281493.txt b/funcom_test/19281493.txt deleted file mode 100644 index d4ceef9da9f0cc0c0e9c2391a622afa8bbdb32e3..0000000000000000000000000000000000000000 --- a/funcom_test/19281493.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Collection getAllMemberPeople(boolean currentOnly) { - // Call getChildParties recursively... - Collection deepChildParties = this.getChildParties(currentOnly, true); - // Make a new Collection from this one including only Person objects. - Collection memberPeopleCollection = new HashSet(); - for (Iterator iterator = deepChildParties.iterator(); iterator.hasNext();) { - Party party = (Party) iterator.next(); - if (party instanceof Person) { - memberPeopleCollection.add(party); - } - } - return memberPeopleCollection; - } - COM: <s> method that returns all person objects that are members of this organisation </s> - diff --git a/funcom_test/19281872.txt b/funcom_test/19281872.txt deleted file mode 100644 index 28b9e13f61f07caa435542223506799f1ad9ab44..0000000000000000000000000000000000000000 --- a/funcom_test/19281872.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String toString() { - StringBuffer buf = new StringBuffer("EncryptionException\nThis is a wrapper for any exception that is thrown in the course of encryption or decryption of data.\n") - .append(details) - .append("\n\nSource Exception: ") - .append(wrappedException.toString()); - if (null != wrappedException.getCause()) { - buf.append("Root Cause: \n") - .append(wrappedException.getCause().toString()); - } - return buf.toString(); - } - COM: <s> specific to string method that explains the meaning of this exception </s> - diff --git a/funcom_test/19281878.txt b/funcom_test/19281878.txt deleted file mode 100644 index 205dd9b677323847e77f88327c6a82793ab26541..0000000000000000000000000000000000000000 --- a/funcom_test/19281878.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String toHexString(final byte[] b) { - final StringBuffer sb = new StringBuffer(b.length << 1); - for (int i = 0; i < b.length; i++) { - // look up high nibble char - sb.append(hexChar[(b[i] & 0xf0) >>> 4]) - // look up low nibble char - .append(hexChar[b[i] & 0x0f]); - } - return sb.toString(); - } - COM: <s> private method that converts an array of bytes to a string </s> - diff --git a/funcom_test/19281896.txt b/funcom_test/19281896.txt deleted file mode 100644 index 2eaf5fa98c9d50ec9eb70577ece6f6162d6da455..0000000000000000000000000000000000000000 --- a/funcom_test/19281896.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void deleteAllRegistrationInformation() throws PridePersistenceException { - checkPersistenceBrokerStatus(); - Collection persistablesToDelete = controller.collectionQuery(Party.class, null, false); - persistablesToDelete.addAll(controller.collectionQuery(MembershipBean.class, null, false)); - persistablesToDelete.addAll(controller.collectionQuery(ExperimentReadPermissionBean.class, null, false)); - controller.deletePersistableCollection(persistablesToDelete); - } - COM: <s> this method deletes all registration information from the database </s> - diff --git a/funcom_test/19282008.txt b/funcom_test/19282008.txt deleted file mode 100644 index 266976370df2b2d4295ed521063db3dc499447fe..0000000000000000000000000000000000000000 --- a/funcom_test/19282008.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Collection getPeptideReportByIdentificationId(Long identificationId, boolean publicOnly) throws PridePersistenceException { - checkPersistenceBrokerStatus(); - Criteria crit = new Criteria(); - crit.addEqualTo("iIdentification.iId", identificationId); - if (publicOnly) { - crit.addLessOrEqualThan("iIdentification.iExperiment.iPublicDate", new java.sql.Date(new java.util.Date().getTime())); - } - - return controller.collectionQuery(PeptideBean.class, crit, false); - } - COM: <s> returns a collection of peptide objects that belong to a given identification </s> - diff --git a/funcom_test/19282010.txt b/funcom_test/19282010.txt deleted file mode 100644 index 2234d89effa708e13fceba220478181b487dbeb7..0000000000000000000000000000000000000000 --- a/funcom_test/19282010.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getUniquePeptideCount() throws PridePersistenceException { - checkPersistenceBrokerStatus(); - int uniquePeptideCount = 0; - Iterator it = controller.reportQuery(PeptideBean.class, null, new String[]{"iSequence"},true); - while (it.hasNext()){ - uniquePeptideCount++; - it.next(); - } - return uniquePeptideCount; - - } - COM: <s> returns the count of unique peptides in the database including private ones </s> - diff --git a/funcom_test/19282017.txt b/funcom_test/19282017.txt deleted file mode 100644 index c09edf4ba17756e4dda052425b0cc19de4fdc8e6..0000000000000000000000000000000000000000 --- a/funcom_test/19282017.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Collection getAllUncachedExperimentAccessionStrings() throws PridePersistenceException { - // Return only the Experiments where iXmlCacheFile is null or empty. - Criteria crit = new Criteria(); - Criteria crit2 = new Criteria(); - crit.addIsNull("iXmlCacheFile"); - crit2.addEqualTo("iXmlCacheFile", ""); - crit.addOrCriteria(crit2); - return getExperimentAccessionStrings(crit); - } - COM: <s> returns a collection of strings being the accession numbers of all experiments that </s> - diff --git a/funcom_test/19282072.txt b/funcom_test/19282072.txt deleted file mode 100644 index 3984abc68b963cffe2cfee76ea3073d55482bdc7..0000000000000000000000000000000000000000 --- a/funcom_test/19282072.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void close() { - active = false; - - if (iBroker != null) { - if (logger.isDebugEnabled()) { - logger.debug("Closing Persistence Broker..."); - } - iBroker.close(); - if (logger.isDebugEnabled()) { - logger.debug("Persistence Broker closed."); - } - } - } - COM: <s> this method needs to be called to release the associated resources </s> - diff --git a/funcom_test/19282092.txt b/funcom_test/19282092.txt deleted file mode 100644 index 26a1219c7436dfb20bddafc2be52282c791d22a6..0000000000000000000000000000000000000000 --- a/funcom_test/19282092.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private ProtocolStep processProtocolStep(XmlPullParser xpp, int index) throws XmlPullParserException, IOException { - Collection lProtocolStepCvParams = new ArrayList(); - Collection lProtocolStepUserParams = new ArrayList(); - - mzDataUnmarshaller.processParams(xpp, lProtocolStepCvParams, lProtocolStepUserParams, TAG_STEP_DESCRIPTION); - return new ProtocolStepImpl(index, lProtocolStepCvParams, lProtocolStepUserParams); - } - COM: <s> processes an experiment collection experiment protocol protocol steps step description element </s> - diff --git a/funcom_test/19282188.txt b/funcom_test/19282188.txt deleted file mode 100644 index 4bf10feee49013817f1e59c38b756e9199aff600..0000000000000000000000000000000000000000 --- a/funcom_test/19282188.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean addAll(Collection c) { - for (Iterator iterator = c.iterator(); iterator.hasNext();) { - Object o = iterator.next(); - if (! (o instanceof MessageItem)) { - throw new IllegalArgumentException("The Collection passed into the MessageQueue.addAll(Object o) method contains objects that are not MessageItems."); - } - } - return messageItems.addAll(c); - } - COM: <s> appends all of the elements in the specified collection to the end of </s> - diff --git a/funcom_test/19282238.txt b/funcom_test/19282238.txt deleted file mode 100644 index e06cdd51059508d031a5151ae5963a0874a9d6db..0000000000000000000000000000000000000000 --- a/funcom_test/19282238.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Analyzer processAnalyzer(XmlPullParser xpp, int index) throws XmlPullParserException, IOException { - Collection analyzerCvParamList = new ArrayList(); - Collection analyzerUserParamList = new ArrayList(); - - this.processParams(xpp, analyzerCvParamList, analyzerUserParamList, "analyzer"); - - return new AnalyzerImpl(analyzerCvParamList, analyzerUserParamList, index); - } - COM: <s> handles the contents of an analyzer list </s> - diff --git a/funcom_test/19282252.txt b/funcom_test/19282252.txt deleted file mode 100644 index e3c72c6830f8787a64ac7add1fca60321e5bf41d..0000000000000000000000000000000000000000 --- a/funcom_test/19282252.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected Object objectQuery(final Query query) throws PersistenceException { - if (query != null) - { - if (pride2Broker != null){ - return pride2Broker.getObjectByQuery(query); - } - else { - throw new PersistenceException("Query called on uninitialized PersistenceBroker", null); - } - } - else { - throw new PersistenceException("No query specified!", null); - } - } - COM: <s> performs a query and returns an object matching the criteria specified </s> - diff --git a/funcom_test/19282261.txt b/funcom_test/19282261.txt deleted file mode 100644 index afde5d51fa05173b7171b9bffbe42a09cad88754..0000000000000000000000000000000000000000 --- a/funcom_test/19282261.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected int countQuery(final Query query) throws PersistenceException { - if (query != null) - { - if (pride2Broker != null){ - return pride2Broker.getCount(query); - } - else { - throw new PersistenceException("Query called on uninitialized PersistenceBroker", null); - } - } - else { - throw new PersistenceException("No query specified!", null); - } - } - COM: <s> performs a query and returns the count of objects the criteria specified </s> - diff --git a/funcom_test/19282274.txt b/funcom_test/19282274.txt deleted file mode 100644 index 429bb81631f1fe05f37cd181f1be7d7fb59ed6b7..0000000000000000000000000000000000000000 --- a/funcom_test/19282274.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected Collection collectionQuery(final Query query) throws PersistenceException { - if (query != null) - { - if (pride2Broker != null){ - return pride2Broker.getCollectionByQuery(query); - } - else { - throw new PersistenceException("Query called on uninitialized PersistenceBroker", null); - } - } - else { - throw new PersistenceException("No query specified!", null); - } - } - COM: <s> performs a query and returns a collection of objects matching the criteria specified </s> - diff --git a/funcom_test/19282551.txt b/funcom_test/19282551.txt deleted file mode 100644 index d2784ac0385b4eb07075adc604c0acdd45a74215..0000000000000000000000000000000000000000 --- a/funcom_test/19282551.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void configure() { - /** - * ensure we get the right logger - */ - logger = - LoggerFactory.getLogger(PSIModMassCalculator.class, - CommonUtilities.getResource(Constants.OLS_CONFIG_FILE) - ); - parser = new OBOFormatParser(); - ONTOLOGY_DEFINITION = "PSI MOD"; - FULL_NAME = "PSI PTM"; - SHORT_NAME = "MOD"; - } - COM: <s> method from abstract loader </s> - diff --git a/funcom_test/19282582.txt b/funcom_test/19282582.txt deleted file mode 100644 index 9501ae53f709c1323410d7d2906cbe0b20e290b8..0000000000000000000000000000000000000000 --- a/funcom_test/19282582.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void clearCache() throws PersistenceException { - if (broker != null) { - try { - broker.clearCache(); - } catch (PersistenceBrokerException e) { - throw new PersistenceException("Could not clear broker cache", e); - } - } else { - throw new IllegalStateException("Called to clear broker cache when broker not properly initialized!"); - } - } - COM: <s> clears the broker cache </s> - diff --git a/funcom_test/19282641.txt b/funcom_test/19282641.txt deleted file mode 100644 index 35f8d786a20695df55204485c64427ad044e95b1..0000000000000000000000000000000000000000 --- a/funcom_test/19282641.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void configure(String goFile, String defFile) { - Vector filePath = new Vector(); - filePath.add(goFile); - config = new GOFlatFileAdapter.GOFlatFileConfiguration(); - config.setReadPaths(filePath); - if (defFile != null) { - ((GOFlatFileAdapter.GOFlatFileConfiguration) config).setDefFilename(defFile); - } - } - COM: <s> configure the parser </s> - diff --git a/funcom_test/19282675.txt b/funcom_test/19282675.txt deleted file mode 100644 index f37e0dcee0bfbe3ff624c3d2f3e7d5a4ca378fa3..0000000000000000000000000000000000000000 --- a/funcom_test/19282675.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - if (WSDDServiceName.equals(portName)) { - setOntologyQueryEndpointAddress(address); - } else { // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/19282804.txt b/funcom_test/19282804.txt deleted file mode 100644 index b31f512e54675e35af33c0f0eeee4b6c3bac867c..0000000000000000000000000000000000000000 --- a/funcom_test/19282804.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void initXMLMarshaller() { - - if (iFactory == null) { - try { - iFactory = XmlPullParserFactory.newInstance(null, null); - } catch (XmlPullParserException xppe) { - logger.warn(xppe.getMessage(), xppe); - } - } - try { - iSerializer = iFactory.newSerializer(); - } catch (XmlPullParserException xppe) { - logger.warn(xppe.getMessage(), xppe); - } - } - COM: <s> initialize the xml marshaller from xpp api </s> - diff --git a/funcom_test/19282806.txt b/funcom_test/19282806.txt deleted file mode 100644 index c1bd4b310167fb4360acbec03987110a77713222..0000000000000000000000000000000000000000 --- a/funcom_test/19282806.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String buildURL(String termAccession, String url) { - if (termAccession != null) { - try { - return MessageFormat.format(url, new String[]{termAccession}); - } catch (Exception e) { - logger.error(e.getMessage(), e); - return null; - } - } else { - return null; - } - } - COM: <s> builds a url that will return more information at an external web resource </s> - diff --git a/funcom_test/19282826.txt b/funcom_test/19282826.txt deleted file mode 100644 index e305568b9c91bd5185df1a017a27e39d2cc7471b..0000000000000000000000000000000000000000 --- a/funcom_test/19282826.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void configure() { - ONTOLOGY_DEFINITION = safeTrim(currentDefinition); - FULL_NAME = safeTrim(currentFullName); - SHORT_NAME = safeTrim(currentShortName); - QUERY_URL = safeTrim(currentQueryURL); - SOURCE_URL = safeTrim(currentSourceURL); - parser = new OBOFormatParser(); - } - COM: <s> definition of the abstract configure method </s> - diff --git a/funcom_test/19282996.txt b/funcom_test/19282996.txt deleted file mode 100644 index 0737a7af75263ed65984b18850f645ede4b2a942..0000000000000000000000000000000000000000 --- a/funcom_test/19282996.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected String safeTrim(String inStr, boolean escapeXML) { - if (inStr != null) { - String tmp = inStr.trim(); - if (tmp.length() > 0) { - if (escapeXML) { - return StringEscapeUtils.escapeXml(tmp); - } else { - return tmp; - } - } else { - return null; - } - } else { - return null; - } - } - COM: <s> takes a string and trims whitespace </s> - diff --git a/funcom_test/19283106.txt b/funcom_test/19283106.txt deleted file mode 100644 index 6b563b93bb6b194b840f7fe261d04c88a2103387..0000000000000000000000000000000000000000 --- a/funcom_test/19283106.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public FeatureHolder filter(FeatureFilter featureFilter, boolean b) { - // What the hell is boolean b for? <= Phil's comment....(but i agree) - - DazzleFeatureHolder newHolder = new DazzleFeatureHolder(); - Iterator it = this.features(); - while (it.hasNext()) { - Feature feature = (Feature) it.next(); - if (featureFilter.accept(feature)) { - newHolder.addFeature(feature); - } - } - return newHolder; - } - COM: <s> allows the das server to restrict the included features </s> - diff --git a/funcom_test/19331178.txt b/funcom_test/19331178.txt deleted file mode 100644 index 25e4660bac9396c793c99cc75a2e396b69e9cd0e..0000000000000000000000000000000000000000 --- a/funcom_test/19331178.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public long readPackedULong(byte[] source, int offset) { - long result = 0; - int val; - int shift = 0; - do { - val = source[offset++] & 0xff; - result |= (long)(val & 0x7f) << shift; - shift += 7; - } while ((val & 0x80) != 0); - return result; - } - COM: <s> read a packed unsigned long from an array of bytes </s> - diff --git a/funcom_test/19331198.txt b/funcom_test/19331198.txt deleted file mode 100644 index dd1fded8bc6b5748d60ac97eec581ca63268fe8f..0000000000000000000000000000000000000000 --- a/funcom_test/19331198.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public long readPackedLong(byte[] source, int offset) { - int val = source[offset++]; - long result = val & 0x3f; - boolean sign = (val & 0x40) != 0; - int shift = 6; - while ((val & 0x80) != 0) { - val = source[offset++]; - result |= (long)(val & 0x7f) << shift; - shift += 7; - } - return sign ? -result : result; - } - COM: <s> read a packed signed long from an array of bytes </s> - diff --git a/funcom_test/19331667.txt b/funcom_test/19331667.txt deleted file mode 100644 index 1781ebe62cc8b47b0cefde84c7a15e6e4f2011d0..0000000000000000000000000000000000000000 --- a/funcom_test/19331667.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void write() { - // header goes at start of output - int oldPos = outputTell(); - outputSeek(0); - - // output the header fields - writeInt(ChunkID); - writeInt(ChunkSize); - writeInt(Format); - writeInt(fmtChunkID); - writeInt(fmtChunkSize); - writeShort(AudioFormat); - writeShort(NumChannels); - writeInt(SampleRate); - writeInt(ByteRate); - writeShort(BlockAlign); - writeShort(BitsPerSample); - writeInt(Subchunk2ID); - writeInt(Subchunk2Size); - - // reset back to previous position - outputSeek(oldPos); - } - COM: <s> write header content to the output </s> - diff --git a/funcom_test/193398.txt b/funcom_test/193398.txt deleted file mode 100644 index faede5bf7f2bf0ac1b70cfa342f7f3f4b2b47fd7..0000000000000000000000000000000000000000 --- a/funcom_test/193398.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void header(String version, String encoding, String standalone) throws Exception { - outputStream.write("<?xml version=\"" + (version != null ? version : "1.0") + "\""); - if (encoding != null) - outputStream.write(" encoding=\"" + encoding + "\""); - if (standalone != null) - outputStream.write(" standalone=\"" + standalone + "\""); - outputStream.write("?>" + eol); - } - COM: <s> writing header to output stream </s> - diff --git a/funcom_test/19342696.txt b/funcom_test/19342696.txt deleted file mode 100644 index 149cfaedf9b4eb728894ac64f327b3960b4fcdb5..0000000000000000000000000000000000000000 --- a/funcom_test/19342696.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String readFile(String fileName) throws IOException { - //ArrayList<String> lines = new ArrayList<String>(); - StringBuffer ret = new StringBuffer(); - String s; - - BufferedReader r = new BufferedReader(new InputStreamReader(new FileInputStream(fileName))); - - while ((s = r.readLine()) != null) { - ret.append(s.trim()); - } - r.close(); - - return ret.toString(); - // InputS - } - COM: <s> read a file into an array of lines </s> - diff --git a/funcom_test/19342992.txt b/funcom_test/19342992.txt deleted file mode 100644 index 49ef7d951ecd32cd7bc532a62ce14347ac1818e5..0000000000000000000000000000000000000000 --- a/funcom_test/19342992.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void checkSizeError( FieldDetail fld, Object value, String msg) { - - try { - setFldValue(fld, value); - - System.out.println("::> " + msg + " " + value + " :: " + getFldValue(fld)); - throw new AssertionError("Size Error: " + msg + " " + value + " :: " + getFldValue(fld)); - } catch (RecordException e) { - } - } - COM: <s> test setting a field with a value that is to long </s> - diff --git a/funcom_test/19343022.txt b/funcom_test/19343022.txt deleted file mode 100644 index ab06220691348bf4f3fe185209465efb59df9994..0000000000000000000000000000000000000000 --- a/funcom_test/19343022.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public ExternalField fullClone() { - - ExternalField ret = null; - try { - ret = (ExternalField) super.clone(); - } catch (Exception e) { - ret = new ExternalField( - position - , length - , name - , description - , type - , decimal - , cellFormat - , parameter - , defaultValue - , cobolName - , subKey - ); - } - return ret; - } - COM: <s> clone as external field </s> - diff --git a/funcom_test/19343023.txt b/funcom_test/19343023.txt deleted file mode 100644 index 1acba36fbf22f15867bd35b3d7caf75a57841cfb..0000000000000000000000000000000000000000 --- a/funcom_test/19343023.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private AbstractLine defMainframeRec() throws Exception { - LayoutDetail dtar0020 = ToLayoutDetail.getInstance().getLayout( - copybookInt.loadCopyBook( - TstConstants.COBOL_DIRECTORY + copyBookDTAR020 + ".cbl", - CopybookLoader.SPLIT_NONE, 0, "cp037", - Convert.FMT_MAINFRAME, 0, null - )); - return new Line(dtar0020, - recDtar020); - } - COM: <s> creates a mainframe record </s> - diff --git a/funcom_test/19343033.txt b/funcom_test/19343033.txt deleted file mode 100644 index 287286d1e0b2530225ea8863be0acef513b49b53..0000000000000000000000000000000000000000 --- a/funcom_test/19343033.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public ExternalRecord () { - super(true); - - recordId = 0; - recordName = ""; - description = ""; - recordType = 0; - system = 0; - listChar = ""; - copyBook = ""; - delimiter = ""; - quote = ""; - posRecInd = 0; - recSepList = ""; - recordSep = NULL_BYTES; - fontName = ""; - recordStyle = 0; - fileStructure = 0; - - setKeys(); - } - COM: <s> create external record definition </s> - diff --git a/funcom_test/19343055.txt b/funcom_test/19343055.txt deleted file mode 100644 index 4b7f13e70e1ef0c14af0b0227e597ed1a448e40a..0000000000000000000000000000000000000000 --- a/funcom_test/19343055.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setName(String val) { - - if ((val == null || "".equals(val)) - && (name == null || "".equals(name))) { - return; - } - - if ((val == null) || (! val.equals(name)) || (updateStatus == NULL_INT_VALUE)) { - name = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the value of name </s> - diff --git a/funcom_test/19343065.txt b/funcom_test/19343065.txt deleted file mode 100644 index cf9798aa5966bdacc37166dabdf2bccb9e5c3644..0000000000000000000000000000000000000000 --- a/funcom_test/19343065.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setDescription(String val) { - - if ((val == null || "".equals(val)) - && (description == null || "".equals(description))) { - return; - } - - if ((val == null) || (! val.equals(description)) || (updateStatus == NULL_INT_VALUE)) { - description = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of description </s> - diff --git a/funcom_test/19343080.txt b/funcom_test/19343080.txt deleted file mode 100644 index d2ada86d0bfcfed12d4a22ac9b1478f2eb978c0b..0000000000000000000000000000000000000000 --- a/funcom_test/19343080.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public ExternalRecord fullClone() { - - ExternalRecord ret; - - try { - ret = (ExternalRecord) super.clone(); - } catch (Exception e) { - ret = new ExternalRecord( - recordId - , recordName - , description - , recordType - , system - , listChar - , copyBook - , delimiter - , quote - , posRecInd - , recSepList - , recordSep - , fontName - , recordStyle - , fileStructure - ); - } - return ret; - } - COM: <s> clone as a external record </s> - diff --git a/funcom_test/19343122.txt b/funcom_test/19343122.txt deleted file mode 100644 index 23e4e1b589f11f209b2f79821be73c74af6913cd..0000000000000000000000000000000000000000 --- a/funcom_test/19343122.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setParameter(String val) { - - if ((val == null || "".equals(val)) - && (parameter == null || "".equals(parameter))) { - return; - } - - if ((val == null) || (! val.equals(parameter)) || (updateStatus == NULL_INT_VALUE)) { - parameter = val; - setUpdateStatus(UPDATED); - } - } - COM: <s> this method sets the vaule of parameter </s> - diff --git a/funcom_test/19343135.txt b/funcom_test/19343135.txt deleted file mode 100644 index 675c2bba49df491c5bb3a805a2b3a2a5904e0395..0000000000000000000000000000000000000000 --- a/funcom_test/19343135.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void checkRedef(Element element) { - - if (element.hasAttribute(ATTR_NAME)) { - try { - int level = getIntAttribute(element, ATTR_LEVEL); - if (level > 0 - && level < redefLevel - && getStringAttribute(element, ATTR_REDEFINED).equals("true")) { - redefLevel = level; - } - } catch (Exception e) { - } - } - } - COM: <s> insert an xml element field into the field db </s> - diff --git a/funcom_test/19343136.txt b/funcom_test/19343136.txt deleted file mode 100644 index 6dd8b0143174e294ceeba8daef78eb6664364925..0000000000000000000000000000000000000000 --- a/funcom_test/19343136.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setDefault(String val) { - - if ((val == null || "".equals(val)) - && (defaultValue == null || "".equals(defaultValue))) { - return; - } - - if ((val == null) || (! val.equals(defaultValue)) || (updateStatus == NULL_INT_VALUE)) { - defaultValue = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of default </s> - diff --git a/funcom_test/19343141.txt b/funcom_test/19343141.txt deleted file mode 100644 index d2048c4ddbdb1e80f077a048bf7316863cd9a7f7..0000000000000000000000000000000000000000 --- a/funcom_test/19343141.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setRecordName(String val) { - - if ((val == null || "".equals(val)) - && (recordName == null || "".equals(recordName))) { - return; - } - - if ((val == null) || (! val.equals(recordName)) || (updateStatus == NULL_INT_VALUE)) { - recordName = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of record name </s> - diff --git a/funcom_test/19343150.txt b/funcom_test/19343150.txt deleted file mode 100644 index 3aba2b6d6ff9ebcf0b47dacd8e7f4628faf87812..0000000000000000000000000000000000000000 --- a/funcom_test/19343150.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCobolName(String val) { - - if ((val == null || "".equals(val)) - && (cobolName == null || "".equals(cobolName))) { - return; - } - - if ((val == null) || (! val.equals(cobolName)) || (updateStatus == NULL_INT_VALUE)) { - cobolName = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of cobol name </s> - diff --git a/funcom_test/19343286.txt b/funcom_test/19343286.txt deleted file mode 100644 index c00275829a3dcc724aaed59ed2119442739070f7..0000000000000000000000000000000000000000 --- a/funcom_test/19343286.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getFieldText(final int recordIdx, final int fieldIdx) { - - try { - if (fieldIdx == Constants.FULL_LINE) { - return getFullLine(); - } - - FieldDetail field = layout.getField(recordIdx, fieldIdx); - return layout.getField(getLineData(), - Type.ftChar, - field).toString(); - - } catch (final Exception ex) { - return ""; - } - } - COM: <s> get the field values as raw text </s> - diff --git a/funcom_test/19343305.txt b/funcom_test/19343305.txt deleted file mode 100644 index 4ff04ccea35c7812f081b3079b3090bd1c36baec..0000000000000000000000000000000000000000 --- a/funcom_test/19343305.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setListChar(String val) { - - if ((val == null || "".equals(val)) - && (listChar == null || "".equals(listChar))) { - return; - } - - if ((val == null) || (! val.equals(listChar)) || (updateStatus == NULL_INT_VALUE)) { - listChar = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of list char </s> - diff --git a/funcom_test/19343331.txt b/funcom_test/19343331.txt deleted file mode 100644 index 199a3c646d72ede5034f2e679ca628c0599671cb..0000000000000000000000000000000000000000 --- a/funcom_test/19343331.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void adjustLength(final int recordIdx) { - - RecordDetail pref = layout.getRecord(recordIdx); - int newSize = pref.getLength(); //field.getEnd(); - - if (newSize != getLineData().length) { - if (newRecord) { - this.writeLayout = recordIdx; - this.preferredLayoutAlt = recordIdx; - this.preferredLayout = recordIdx; - } - - newRecord(newSize); - } - } - COM: <s> adjust the record length </s> - diff --git a/funcom_test/19343335.txt b/funcom_test/19343335.txt deleted file mode 100644 index 7d20e855a2bc5b56027560109958adbfd7741c50..0000000000000000000000000000000000000000 --- a/funcom_test/19343335.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void newRecord(int newSize) { - byte[] sep = layout.getRecordSep(); - byte[] rec = new byte[newSize]; - //byte[] d = getLineData(); - - System.arraycopy(data, 0, rec, 0, data.length); - - if ((layout.getLayoutType() == Constants.rtGroupOfBinaryRecords) - && sep != null && sep.length > 0) { - System.arraycopy(sep, 0, rec, newSize - sep.length, sep.length); - } - - data = rec; - } - COM: <s> resize the record </s> - diff --git a/funcom_test/19343345.txt b/funcom_test/19343345.txt deleted file mode 100644 index faf0ba9f54c435d0017723a1b3cd96849e87e152..0000000000000000000000000000000000000000 --- a/funcom_test/19343345.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCopyBook(String val) { - - if ((val == null || "".equals(val)) - && (copyBook == null || "".equals(copyBook))) { - return; - } - - if ((val == null) || (! val.equals(copyBook)) || (updateStatus == NULL_INT_VALUE)) { - copyBook = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of copy book </s> - diff --git a/funcom_test/19343362.txt b/funcom_test/19343362.txt deleted file mode 100644 index e9d07ea6d75f62001d6579ec074b627037093f43..0000000000000000000000000000000000000000 --- a/funcom_test/19343362.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void writeFollowingText(@SuppressWarnings("rawtypes") AbstractLine line) throws XMLStreamException { - int idx = line.getPreferredLayoutIdx(); - String followingText = toString(line.getField(idx, FOLLOWING_TEXT_INDEX)); - - if (! "".equals(followingText)) { - writer.writeCharacters(followingText); - } - } - COM: <s> write following text </s> - diff --git a/funcom_test/19343386.txt b/funcom_test/19343386.txt deleted file mode 100644 index 624894ccbf3f5443bb971d9191e4aa3e2c801998..0000000000000000000000000000000000000000 --- a/funcom_test/19343386.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setDelimiter(String val) { - - if ((val == null || "".equals(val)) - && (delimiter == null || "".equals(delimiter))) { - return; - } - - if ((val == null) || (! val.equals(delimiter)) || (updateStatus == NULL_INT_VALUE)) { - delimiter = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of delimiter </s> - diff --git a/funcom_test/19343391.txt b/funcom_test/19343391.txt deleted file mode 100644 index a3c5d88d17a6e6e49c87db2377c8d176937fbc22..0000000000000000000000000000000000000000 --- a/funcom_test/19343391.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean isEqual(final byte[] rec, final int fin) { - int i; - int st = fin - recSep.length - 1; - boolean ret = st >= 0; - - for (i = 0; ret && (i < recSep.length); i++) { - ret = (recSep[i] == rec[st + i]); - } - - return ret; - } - COM: <s> compares part of rec with the record seperator string </s> - diff --git a/funcom_test/19343422.txt b/funcom_test/19343422.txt deleted file mode 100644 index feab9352976b02ec1486f56efb1a47a5dcc811eb..0000000000000000000000000000000000000000 --- a/funcom_test/19343422.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setQuote(String val) { - - if ((val == null || "".equals(val)) - && (quote == null || "".equals(quote))) { - return; - } - - if ((val == null) || (! val.equals(quote)) || (updateStatus == NULL_INT_VALUE)) { - quote = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of quote </s> - diff --git a/funcom_test/19343463.txt b/funcom_test/19343463.txt deleted file mode 100644 index 8d6b8be7dbe08bd7ed10b3b85960ddd809b601b3..0000000000000000000000000000000000000000 --- a/funcom_test/19343463.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setRecSepList(String val) { - - if ((val == null || "".equals(val)) - && (recSepList == null || "".equals(recSepList))) { - return; - } - - if ((val == null) || (! val.equals(recSepList)) || (updateStatus == NULL_INT_VALUE)) { - recSepList = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of rec sep list </s> - diff --git a/funcom_test/19343488.txt b/funcom_test/19343488.txt deleted file mode 100644 index c141d9295b6df03c165c68f93ba901450037021e..0000000000000000000000000000000000000000 --- a/funcom_test/19343488.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setRecordSep(byte[] val) { - - if ((val == null) && (recordSep == null)) { - return; - } - if (! isEqual(val, recordSep) || (updateStatus == NULL_INT_VALUE)) { - recordSep = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of record sep </s> - diff --git a/funcom_test/19343524.txt b/funcom_test/19343524.txt deleted file mode 100644 index 8b47a2b4d813a5f852956e9ebaa6e7c18b7d6062..0000000000000000000000000000000000000000 --- a/funcom_test/19343524.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setFontName(String val) { - - if ((val == null || "".equals(val)) - && (fontName == null || "".equals(fontName))) { - return; - } - - if ((val == null) || (! val.equals(fontName)) || (updateStatus == NULL_INT_VALUE)) { - fontName = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the value of font name </s> - diff --git a/funcom_test/19343549.txt b/funcom_test/19343549.txt deleted file mode 100644 index cf753b9c6a813f662e00193f254141b32e98e157..0000000000000000000000000000000000000000 --- a/funcom_test/19343549.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void runCopy() { - CopyDefinition def = readXml(); - - if (def != null) { - if (! "Yes".equalsIgnoreCase(def.complete)) { - runCopyDialog(def); - } else { - try { - DoCopy.copy(createLayout(), createLayout(), def); - - } catch (Exception e) { - String s = "Error Running Copy"; - e.printStackTrace(); - message.setText(s); - Common.logMsg(s, e); - return; - } - } - } - } - COM: <s> run the copy from saved xml copy definition </s> - diff --git a/funcom_test/19343781.txt b/funcom_test/19343781.txt deleted file mode 100644 index 13c2521c973fb4ca6bff971b26ea46304ec87738..0000000000000000000000000000000000000000 --- a/funcom_test/19343781.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private boolean tableChanged_300_isNotEnd(@SuppressWarnings("rawtypes") AbstractLine l) { - Object o = l.getField(l.getPreferredLayoutIdx(), 0); - String s = ""; - if (o != null) { - s = o.toString(); - } - return ! (l.getLayout().isXml() && s.startsWith("/")); - } - COM: <s> check if it is a xml end tag </s> - diff --git a/funcom_test/19343802.txt b/funcom_test/19343802.txt deleted file mode 100644 index 895988e38b121c30d7d50831c893a18c3bfe11b8..0000000000000000000000000000000000000000 --- a/funcom_test/19343802.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void tableChanged_400_Update(int start) { - LineNode node = findNode4LineNumber(root, start); - - if (node == null) { - node = root; - } - - while (node != null && node.getLineNumber() < start) { - node = (LineNode) node.getNextNode(); - } - -// System.out.print("Update:: >> " + start + " << "); - - rebuildNode(getParent(node, start + 1)); - } - COM: <s> update tree for inserted lines </s> - diff --git a/funcom_test/19343818.txt b/funcom_test/19343818.txt deleted file mode 100644 index c9585276bc64be1841a19f6106e70380c8266d47..0000000000000000000000000000000000000000 --- a/funcom_test/19343818.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void init_200_LayoutScreen() { - - pnl.addLine("Layout", layoutSelection); - pnl.addComponent(1, 5, FIELD_TABLE_HEIGHT, BasePanel.GAP2, - BasePanel.FULL, BasePanel.FULL, - attributeTbl); - - pnl.addLine("", null, addBtn); - - this.addMainComponent(pnl); - this.setVisible(true); - } - COM: <s> layout the screen </s> - diff --git a/funcom_test/19343844.txt b/funcom_test/19343844.txt deleted file mode 100644 index 9442a0fec3d0f21eec506715effe9d252b54feab..0000000000000000000000000000000000000000 --- a/funcom_test/19343844.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void startSearch(@SuppressWarnings("rawtypes") final FileView iFile) { - file = iFile; - - loadFieldList(); - layoutList.setSelectedIndex(Math.min(source.getLayoutIndex(), layoutList.getItemCount() - 1)); - - this.setVisible(true); - this.toFront(); - if (firstTimeDisplayed) { - this.setToMaximum(false); - firstTimeDisplayed = false; - } - } - COM: <s> displays the search screen </s> - diff --git a/funcom_test/19343982.txt b/funcom_test/19343982.txt deleted file mode 100644 index cf53a32972d80fb12dfe8ff5fa81911d98b56e65..0000000000000000000000000000000000000000 --- a/funcom_test/19343982.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void setDirectionButtonStatus() { - - boolean allowBack = currRow > 0; - boolean allowForward = fileView != null && currRow < fileView.getRowCount() - 1; - - btn[0].setEnabled(allowBack); - btn[1].setEnabled(allowBack); - btn[2].setEnabled(allowForward); - btn[3].setEnabled(allowForward); - } - COM: <s> set enabled disabled status of the direction buttons </s> - diff --git a/funcom_test/19344072.txt b/funcom_test/19344072.txt deleted file mode 100644 index 0c2260893a066eb578bfabe3c24ddea1a58e3369..0000000000000000000000000000000000000000 --- a/funcom_test/19344072.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void executeAction(int action, Object o) { - - if (o != null) { - switch (action) { - case ReActionHandler.EXPORT_VELOCITY: - executeSaveAs(SaveAs3.FORMAT_VELOCITY, o.toString()); - break; - case ReActionHandler.EXPORT_XSLT: - executeSaveAs(SaveAs3.FORMAT_XSLT, o.toString()); - break; - case ReActionHandler.EXPORT_SCRIPT: - executeSaveAs(SaveAs3.FORMAT_SCRIPT, o.toString()); - break; - default: - executeAction(action); - } - } else{ - executeAction(action); - } - } - COM: <s> execute standard record editor action with an option </s> - diff --git a/funcom_test/19344151.txt b/funcom_test/19344151.txt deleted file mode 100644 index 0c6828273a44530943fb9ed905e38fe0b2d7e4d6..0000000000000000000000000000000000000000 --- a/funcom_test/19344151.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void runCompareDialog(DiffDefinition def) { - if (def != null) { - if (DiffDefinition.TYPE_SINGLE_LAYOUT.equals(def.type)) { - new CompareSingleLayout(createLayout(), def, rFiles); - } else { - new CompareTwoLayouts(createLayout(), createLayout(), def, rFiles); - } - } - } - COM: <s> run the compare dialogue with supplied definition </s> - diff --git a/funcom_test/19344345.txt b/funcom_test/19344345.txt deleted file mode 100644 index 16d81ea44ca7e73d3a630f7c516669167d690481..0000000000000000000000000000000000000000 --- a/funcom_test/19344345.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void assignComboOptions() { - int i, j; - - for (j = 0; j < fieldModels.length; j++) { - fieldModels[j].removeAllElements(); - - fieldModels[j].addElement(""); - - for (i = 0; i < getFieldCount(layoutIndex); i++) { - fieldModels[j].addElement( - layout.getAdjField(layoutIndex, i).getName()); - } - } - } - COM: <s> assign the field combo options </s> - diff --git a/funcom_test/19344352.txt b/funcom_test/19344352.txt deleted file mode 100644 index 8e7eb6843d323277a33948de0348ca8969eb3148..0000000000000000000000000000000000000000 --- a/funcom_test/19344352.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setTableDetails(JTable tbl) { - DefaultCellEditor includeEditor = new DefaultCellEditor(new JCheckBox()); - TableColumn tc; - - setTableDetailsCol0(tbl); - - tc = tbl.getColumnModel().getColumn(1); - tc.setCellRenderer(new CheckBoxTableRender()); - tc.setCellEditor(includeEditor); - tc.setPreferredWidth(SECOND_COLUMN_WIDTH); - } - COM: <s> allocate table attributes for the 2 include tables </s> - diff --git a/funcom_test/19344410.txt b/funcom_test/19344410.txt deleted file mode 100644 index a5f20201ad928e2a239d14fe4eb81b34ea20db83..0000000000000000000000000000000000000000 --- a/funcom_test/19344410.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void init_100_RecentFiles(String pInFile) { - Common.setCurrClass(this); - - if (pInFile == null || "".equals(pInFile)) { - //System.out.println("!! ~~ " + Common.DEFAULT_FILE_DIRECTORY); - fileName.setText(Common.OPTIONS.DEFAULT_FILE_DIRECTORY.get()); - } else { - fileName.setText(pInFile); - updateLayoutForFile(pInFile); - } - } - COM: <s> load recent files details from the properties file </s> - diff --git a/funcom_test/19344425.txt b/funcom_test/19344425.txt deleted file mode 100644 index d7addde43c80d511c879f0e6cf5b3a732bcf2712..0000000000000000000000000000000000000000 --- a/funcom_test/19344425.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void done() { - - setGap(BasePanel.GAP1); - addFileName(this); - setGap(BasePanel.GAP2); - - addLayoutSelection(); - - addMessage(new JScrollPane(message)); - setHeight(BasePanel.NORMAL_HEIGHT * 4); - - - //editOptCombo.addActionListener(this); - //go.addActionListener(this); - - super.done(); - - setBounds(getY(), getX(), FRAME_WIDTH, getHeight()); - frameSize = this.getBounds(); - } - COM: <s> executed prior to display </s> - diff --git a/funcom_test/19344442.txt b/funcom_test/19344442.txt deleted file mode 100644 index 727839fa9d9b9e3e3dd747b608c044ba82999d81..0000000000000000000000000000000000000000 --- a/funcom_test/19344442.txt +++ /dev/null @@ -1,30 +0,0 @@ -TDAT: private void loadSystems() { - int i, num; - SystemItem dtls; - - systemCombo.removeAllItems(); - - systemCombo.addItem("<All>"); - - dbLink = true; - try { - systems = copyBookInterface.getSystems(); - } catch (Exception ex) { - if (message != null) { - message.setText(ex.getMessage()); - message.setCaretPosition(1); - } - ex.printStackTrace(); - systems = new ArrayList<SystemItem>(); - dbLink = false; - } - - num = systems.size(); - for (i = 0; i < num; i++) { - dtls = systems.get(i); - systemCombo.addItem(dtls.description); - } - - } - COM: <s> load the various systems from the db </s> - diff --git a/funcom_test/19344484.txt b/funcom_test/19344484.txt deleted file mode 100644 index 0b6ea3415c76684ff55ffbb622db07277a06befc..0000000000000000000000000000000000000000 --- a/funcom_test/19344484.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void storeFile(String dir, String filename, String layout) { - - putLayout(filename, layout); - - fileNames[fileNum] = filename; - directory[fileNum] = dir; - layouts[fileNum] = layout; - - lastIdx = fileNum; - lastFile = correctCase(filename); - fileNum += 1; - if (fileNum >= FILE_HISTORY) { - fileNum = 0; - } - } - COM: <s> save a file name away for later lookup </s> - diff --git a/funcom_test/19344487.txt b/funcom_test/19344487.txt deleted file mode 100644 index 0f7bffb6bf6b99460fb11dd38b2500e2b30e3a5b..0000000000000000000000000000000000000000 --- a/funcom_test/19344487.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void updateLayoutForFile(String pFile) { - File f = new File(pFile); - String recentLayout = recent.getLayoutName(pFile, new File(pFile)); - - if (recentLayout == null || "".equals(recentLayout)) { - getLayoutSelection().notifyFileNameChanged(pFile); - } else { - setLayout(recentLayout); - if (recent.isEditorLaunch()) { - loadFile(false); - } - } - } - COM: <s> get the layoutname for the file </s> - diff --git a/funcom_test/19344515.txt b/funcom_test/19344515.txt deleted file mode 100644 index cef8ab528ce5386f8f776c89c8ef9d155a50d047..0000000000000000000000000000000000000000 --- a/funcom_test/19344515.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public ComboRec fetch(ResultSet results) { - ComboRec ret = null; - - try { - if (results.next()) { - ret = new ComboRec( - results.getInt(1) - , results.getInt(2) - , results.getString(3) - , results.getInt(4) - ); - } - message = ""; - } catch (Exception ex) { - setMessage(ex.getMessage(), ex); - } - - return ret; - } - COM: <s> get the next cursor entry </s> - diff --git a/funcom_test/19344529.txt b/funcom_test/19344529.txt deleted file mode 100644 index f7892e355cc296b4ca9faf2f2132983859fc13ed..0000000000000000000000000000000000000000 --- a/funcom_test/19344529.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void insert(ComboRec value) { - //RecordRec val = (RecordRec) value; - - int i = 0; - int key = getNextKey(); - - value.setComboId(key++); - while ((i++ < 10) && (! tryToInsert(value))) { - value.setComboId(key++); - } - } - COM: <s> this method inserts one record </s> - diff --git a/funcom_test/19344530.txt b/funcom_test/19344530.txt deleted file mode 100644 index fad68d76aa184a85f4c5321ad86955a87370afe2..0000000000000000000000000000000000000000 --- a/funcom_test/19344530.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCombo_Code(String val) { - - if ((val == null || "".equals(val)) - && (Combo_Code == null || "".equals(Combo_Code))) { - return; - } - - if ((val == null) || (! val.equals(Combo_Code)) || (updateStatus == NULL_INT_VALUE)) { - Combo_Code = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of combo code </s> - diff --git a/funcom_test/19344536.txt b/funcom_test/19344536.txt deleted file mode 100644 index 0ba63642cba07e6bede96c790877e7274378b7b1..0000000000000000000000000000000000000000 --- a/funcom_test/19344536.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCombo_Value(String val) { - - if ((val == null || "".equals(val)) - && (Combo_Value == null || "".equals(Combo_Value))) { - return; - } - - if ((val == null) || (! val.equals(Combo_Value)) || (updateStatus == NULL_INT_VALUE)) { - Combo_Value = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of combo value </s> - diff --git a/funcom_test/19344549.txt b/funcom_test/19344549.txt deleted file mode 100644 index 66384b0acfae3d9b33abffd37f1d04b8dddafa59..0000000000000000000000000000000000000000 --- a/funcom_test/19344549.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getRecentFileName(int idx) { - String ret = ""; - if (idx >= 0 && idx < prevFiles.length && prevFiles[idx] >= 0) { - String s = fileNames[prevFiles[idx]]; - if (s != null) { - ret = s; - } - - } - return ret; - } - COM: <s> get a recent filename by index </s> - diff --git a/funcom_test/19344578.txt b/funcom_test/19344578.txt deleted file mode 100644 index 4c8031d1619db860e76f8cc1bb53e6640a283a03..0000000000000000000000000000000000000000 --- a/funcom_test/19344578.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getRecentLayoutName(int idx) { - String ret = ""; - if (idx >= 0 && idx < prevFiles.length && prevFiles[idx] >= 0) { - String s = layouts[prevFiles[idx]]; - if (s != null) { - ret = s; - } - - } - return ret; - } - COM: <s> get a recent layout by index </s> - diff --git a/funcom_test/19344582.txt b/funcom_test/19344582.txt deleted file mode 100644 index b9d229deedecae69a7f3a612aa28d8889f1fbcae..0000000000000000000000000000000000000000 --- a/funcom_test/19344582.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setComboName(String val) { - - if ((val == null || "".equals(val)) - && (comboName == null || "".equals(comboName))) { - return; - } - - if ((val == null) || (!val.equals(comboName)) - || (updateStatus == NULL_INT_VALUE)) { - comboName = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of combo name </s> - diff --git a/funcom_test/19344631.txt b/funcom_test/19344631.txt deleted file mode 100644 index c251a91e72b30f4cc78c13a1c55d898d32ec48dc..0000000000000000000000000000000000000000 --- a/funcom_test/19344631.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setDetails(String val) { - - if ((val == null || "".equals(val)) - && (details == null || "".equals(details))) { - return; - } - - if ((val == null) || (! val.equals(details)) || (updateStatus == NULL_INT_VALUE)) { - details = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of details </s> - diff --git a/funcom_test/19344632.txt b/funcom_test/19344632.txt deleted file mode 100644 index 08b92a1ca7baed88c8c56d5329b016adbccbbf29..0000000000000000000000000000000000000000 --- a/funcom_test/19344632.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setTblName(String val) { - - if ((val == null || "".equals(val)) - && (tblName == null || "".equals(tblName))) { - return; - } - - if ((val == null) || (! val.equals(tblName)) || (updateStatus == NULL_INT_VALUE)) { - tblName = val; - updateStatus = UPDATED; - } - } - COM: <s> this method sets the vaule of tbl name </s> - diff --git a/funcom_test/19344747.txt b/funcom_test/19344747.txt deleted file mode 100644 index 575629f96f49b4963a0c1eacb005d21c43897402..0000000000000000000000000000000000000000 --- a/funcom_test/19344747.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void add(String type, String jar, String description) { - if (count < jars.length) { - jars[count] = new String[3]; - jars[count][TYPE_COLUMN] = type; - jars[count][JAR_COLUMN] = jar; - jars[count++][DESCRIPTION_COLUMN] = description; - } - } - COM: <s> add a column to the group of jars </s> - diff --git a/funcom_test/19344783.txt b/funcom_test/19344783.txt deleted file mode 100644 index 1e7fa072446f45203d0cdaedd362ab36329705de..0000000000000000000000000000000000000000 --- a/funcom_test/19344783.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void g100_SetTblFields() { - - typeTblModel.setValueAt(name.getText(), currentRow, TYPE_NAME_COLUMN); - typeTblModel.setValueAt(typeName.getSelectedItem(), currentRow, BASE_TYPE_COLUMN); - typeTblModel.setValueAt(dateFormat.getText(), currentRow, FORMAT_COLUMN); - typeTblModel.fireTableDataChanged(); - } - COM: <s> set the table fields from the screen fields </s> - diff --git a/funcom_test/19344788.txt b/funcom_test/19344788.txt deleted file mode 100644 index b2856ebaeb77495280d2d6e04d64d04bf1d1bfc4..0000000000000000000000000000000000000000 --- a/funcom_test/19344788.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void g200_SetScreenFields(int row) { - currentRow = row; - - name.setText(typeTblModel.getStringValueAt(row, TYPE_NAME_COLUMN)); - g300_SetBaseType(row); - dateFormat.setText(typeTblModel.getStringValueAt(row, FORMAT_COLUMN)); - } - COM: <s> set the screen fields </s> - diff --git a/funcom_test/19344792.txt b/funcom_test/19344792.txt deleted file mode 100644 index 4ec77b3d54e4fc0a4cb21cf1122ce5052b811f0c..0000000000000000000000000000000000000000 --- a/funcom_test/19344792.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setParameters() { - - pgmParams.setProperty(Parameters.PROPERTY_LOOKS_CLASS_INDEX, - Integer.toString(looks.getSelectedIndex())); - - pgmParams.setProperty(Parameters.PROPERTY_LOOKS_CLASS_NAME, - className.getText()); - pgmParams.looksJar = jarName.getText(); - } - COM: <s> save the updated parameters </s> - diff --git a/funcom_test/19344793.txt b/funcom_test/19344793.txt deleted file mode 100644 index 536fa1ca262764a05c09e63523600c62b652d13e..0000000000000000000000000000000000000000 --- a/funcom_test/19344793.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void g300_SetBaseType(int row) { - - try { - //System.out.println(typeTblModel.getStringValueAt(row, BASE_TYPE_COLUMN)); - typeName.setSelectedItem(new Integer(typeTblModel.getStringValueAt(row, BASE_TYPE_COLUMN))); - } catch (Exception e) { - } - } - COM: <s> set the screen base type </s> - diff --git a/funcom_test/19344795.txt b/funcom_test/19344795.txt deleted file mode 100644 index 406d53cac5ccb44b4cd46ecb3c5910fd6394080f..0000000000000000000000000000000000000000 --- a/funcom_test/19344795.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setOptions() { - int idx = looks.getSelectedIndex(); - boolean otherOption = idx == OTHER_ZIP_OPTION; - - if (! otherOption) { - jarName.setText(ZIP_NAME[idx]); - } - if (idx < OTHER_ZIP_OPTION) { - usePng.setSelected(USE_PNG[idx]); - } - usePng.setEnabled(otherOption); - jarName.setEnabled(otherOption); - } - COM: <s> update fields after for the current combo box </s> - diff --git a/funcom_test/19344798.txt b/funcom_test/19344798.txt deleted file mode 100644 index 82f3ac4f434348590548d1c6c18ef188fdeffcb5..0000000000000000000000000000000000000000 --- a/funcom_test/19344798.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean isAvailableLookAndFeel(String laf) { - - try { - //Class lnfClass = Class.forName(laf); - LookAndFeel newLAF = (LookAndFeel) ((Class.forName(laf)).newInstance()); - return newLAF.isSupportedLookAndFeel(); - } catch (Exception e) { // If ANYTHING weird happens, return false - return false; - } - } - COM: <s> check to see if look and feel is available </s> - diff --git a/funcom_test/19344831.txt b/funcom_test/19344831.txt deleted file mode 100644 index e55a9813fd0c379426ea10ce40c1ec0728db45dc..0000000000000000000000000000000000000000 --- a/funcom_test/19344831.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void init_100_LoadJars() { - init_110_LoadJars(CommonCode.SYSTEM_JAR_FILE, true, true); - init_110_LoadJars(CommonCode.SYSTEM_JDBC_JAR_FILE, false, true); - init_110_LoadJars(CommonCode.USER_JAR_FILE, false, false); - } - COM: <s> load the jar file </s> - diff --git a/funcom_test/19344853.txt b/funcom_test/19344853.txt deleted file mode 100644 index 5aadfeb2fa1b81e38f6533ac8e98e57f8f003b5b..0000000000000000000000000000000000000000 --- a/funcom_test/19344853.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void g100_SetFields(int row) { - - optionCombo.removeActionListener(action); - - saveProperty(); - - currentRow = row; - descriptionFld.setText(data[row][1]); - optionCombo.setModel(comboModels[row]); - optionCombo.setSelectedItem(editParams.properties.get(data[row][0])); - optionCombo.addActionListener(action); - } - COM: <s> set the fields based on a table column </s> - diff --git a/funcom_test/19344901.txt b/funcom_test/19344901.txt deleted file mode 100644 index 3f277688919c24d4a5144c27995a3b873abf618c..0000000000000000000000000000000000000000 --- a/funcom_test/19344901.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void focusLost(FocusEvent e) { - //System.out.println("@@@ " + currentRow + " " + typeFld.getText()); - pgmParams.setProperty(model.getCellName(currentRow, col), fld.getText()); - model.fireTableRowsUpdated(currentRow, currentRow); - } - COM: <s> update the tables with values from the field </s> - diff --git a/funcom_test/19344931.txt b/funcom_test/19344931.txt deleted file mode 100644 index 02a7533046731de10590ee1aa930db77f3e19a2e..0000000000000000000000000000000000000000 --- a/funcom_test/19344931.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void updateRecordSepList(int dbIdx) { - - try { - // System.out.println(updateRecordSep); - Connection con = Common.getDBConnection(dbIdx); - Statement statement = con.createStatement(); - - statement.executeUpdate(updateRecordSep); - statement.close(); - } catch (Exception e) { - Common.getLogger().logException(AbsSSLogger.ERROR, e); - - e.printStackTrace(); - } - } - COM: <s> change record sep list to default </s> - diff --git a/funcom_test/19345208.txt b/funcom_test/19345208.txt deleted file mode 100644 index bc8311937430bf8e79d7435dcd8021d99c1f66b0..0000000000000000000000000000000000000000 --- a/funcom_test/19345208.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private ZDateTableRender getDateDisplay(FieldDetail fld) { - String s = dateFormat; - ZDateTableRender ret = null; - - if (s == null) { - s = fld.getParamater(); - } - - try { - ret = new ZDateTableRender(useDateFormat, s); - } catch (Exception e) { - System.out.println("@@ format > " + s); - e.printStackTrace(); - } - - return ret; - } - COM: <s> get the swing checkbox </s> - diff --git a/funcom_test/19345242.txt b/funcom_test/19345242.txt deleted file mode 100644 index b70a2b4e0af6c212c8be15a9a6d99fca7df3d5d4..0000000000000000000000000000000000000000 --- a/funcom_test/19345242.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void fireTreeNodesInserted(MutableTreeNode node) { - AbstractLineNode parentNode = (AbstractLineNode) node.getParent(); - if (parentNode != null) { - int[] ic = {parentNode.getIndex(node)}; - Object[] c = {node}; - fireTreeNodesInserted(parentNode, parentNode.getPath(), ic, c); - } - } - COM: <s> fire nodes inserted for one nore </s> - diff --git a/funcom_test/19345248.txt b/funcom_test/19345248.txt deleted file mode 100644 index c7209d4ba62fa03db9d57f8ee9acc07da426b483..0000000000000000000000000000000000000000 --- a/funcom_test/19345248.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void fireTreeNodesRemoved(MutableTreeNode node) { - AbstractLineNode parentNode = (AbstractLineNode) node.getParent(); - if (parentNode != null) { - int[] ic = {parentNode.getIndex(node)}; - Object[] c = {node}; - fireTreeNodesRemoved(parentNode, parentNode.getPath(), ic, c); - } - } - COM: <s> fire nodes deleted for one node </s> - diff --git a/funcom_test/19345281.txt b/funcom_test/19345281.txt deleted file mode 100644 index 219d70e3b2e4f0f38a6af9f3eb08f96237541150..0000000000000000000000000000000000000000 --- a/funcom_test/19345281.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private SimpleDateFormat getDateFormater(FieldDetail field) { - - if (df == null) { - String s = field.getParamater(); - if (s == null || "".equals(s)) { - s = "yyMMdd"; - } - //System.out.print("~~ " + s + " "); - return new SimpleDateFormat(s); - } - return df; - } - COM: <s> get the date formater </s> - diff --git a/funcom_test/19345286.txt b/funcom_test/19345286.txt deleted file mode 100644 index d3b169da175ea964e5eb53ba25da89a54f2e04c8..0000000000000000000000000000000000000000 --- a/funcom_test/19345286.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void registerFormat(int formatId, CellFormat format) throws RecordException { - int idx = getFormatIndex(formatId); - - if (idx == INVALID_INDEX) { - throw new RecordException("Invalid Index Supplied " + formatId - + " Should be between " + CellFormat.USER_RANGE_START - + " and " + (CellFormat.USER_RANGE_START + userFormatSize)); - } - - formats[idx] = format; - } - COM: <s> registers a new format to the system </s> - diff --git a/funcom_test/19345373.txt b/funcom_test/19345373.txt deleted file mode 100644 index c414c11fddf34d4dae0eabcbb9084dc85f7577c9..0000000000000000000000000000000000000000 --- a/funcom_test/19345373.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int columnSelected_100_getColumnPosition(int col) { - int ret = 0; - int size = recordDef.columnDtls.size() - 1; - - int column = -1; - - ret = 0; - - if (size > 0) { - column = recordDef.columnDtls.get(ret).start; - while (ret < size && (col > column)) { - ret += 1; - column = recordDef.columnDtls.get(ret).start; - } - } - - return ret; - } - COM: <s> get the position of the field starting at b col b </s> - diff --git a/funcom_test/19345382.txt b/funcom_test/19345382.txt deleted file mode 100644 index 4329906455624817ab7634cbb2d3c656b2923ac1..0000000000000000000000000000000000000000 --- a/funcom_test/19345382.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object getTextValueAt(int layoutIdx, int row, int col) { - col = getRealColumn(layoutIdx, col); - - if ((row >= getRowCount()) - || (col < 0) - || (col >= layout.getRecord(layoutIdx).getFieldCount())) { - return null; - } - return lines.get(row).getFieldText(layoutIdx, col); - } - COM: <s> get a fields value as text </s> - diff --git a/funcom_test/19345428.txt b/funcom_test/19345428.txt deleted file mode 100644 index be350f16bcbd54e38949cf9ce0f3799bdb04748a..0000000000000000000000000000000000000000 --- a/funcom_test/19345428.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object getHexValueAt(int layoutIdx, int row, int col) { - col = getRealColumn(layoutIdx, col); - - if ((row >= getRowCount()) - || (col < 0) - || (col >= layout.getRecord(layoutIdx).getFieldCount())) { - return null; - } - return lines.get(row).getFieldHex(layoutIdx, col); - - } - COM: <s> get a fields value as hex </s> - diff --git a/funcom_test/19345478.txt b/funcom_test/19345478.txt deleted file mode 100644 index fda1a1a7da61ea8d1430c1f12b27fe9d78ee8a55..0000000000000000000000000000000000000000 --- a/funcom_test/19345478.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private ComboRec saveRecord() { - - ComboRec rec = pnlCombo.getValues(); - - if (rec.isUpdateSuccessful() - && rec.getComboName() != null && ! "".equals(rec.getComboName())) { - dbTblList.checkAndUpdate(rec); - //pnlTableList.saveTableDetails(); - - pnlCombo.saveItems(); - } - - return rec; - } - COM: <s> save the table record being displayed </s> - diff --git a/funcom_test/19345492.txt b/funcom_test/19345492.txt deleted file mode 100644 index b5a098ffea83cb5ed4cf4a851b30486870691a72..0000000000000000000000000000000000000000 --- a/funcom_test/19345492.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setValueAt(JFrame parentFrame, int layoutIdx, int row, int col, Object val) { - if (row < getRowCount()) { - setValueAt(parentFrame, layoutIdx, getLine(row), row, col, val); - } - } - COM: <s> set the value of a field </s> - diff --git a/funcom_test/19345628.txt b/funcom_test/19345628.txt deleted file mode 100644 index a7cbab718e8ecfa98c465d3b8bc9c4be4d9e70ef..0000000000000000000000000000000000000000 --- a/funcom_test/19345628.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int addRecord(RecordRec rec) { - int ret = -1; - - String s = dbRecordModel.addRecordtoDB(rec); - //System.out.println("PnlRecList - Add Record >> !" + s + "! " + rec.getRecordName()); - - if ("".equals(s)) { - dbRecord.checkAndUpdate(rec); - - dbRecordModel.fireTableDataChanged(); - - ret = dbRecordModel.getRowCount() - 1; - } - - return ret; - } - COM: <s> add a record to the db model </s> - diff --git a/funcom_test/19345636.txt b/funcom_test/19345636.txt deleted file mode 100644 index e4dd439b5a928c33fd4c6d379dd86e3c15fff362..0000000000000000000000000000000000000000 --- a/funcom_test/19345636.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setValuesInternal(final TableListRec tableItem) { - - currVal = tableItem; - - if (tableItem != null) { - sfTBlId.setText("" + tableItem.getTBlId()); - sfTblName.setText(tableItem.getTblName()); - sfDescription.setText(tableItem.getDescription()); - } - } - COM: <s> assign a table list to be displayed </s> - diff --git a/funcom_test/19345643.txt b/funcom_test/19345643.txt deleted file mode 100644 index 1cd7594d5fd950090dbd22f37c266ec70adb856a..0000000000000000000000000000000000000000 --- a/funcom_test/19345643.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void changeRecord(int inc) { - - int newIdx = recordIdx + inc; - - //System.out.println("~~> " + newIdx + " " + recordIdx); - - if (newIdx >= 0 && newIdx < editList.getRowCount()) { - saveRecord(); - recordIdx = newIdx; - - pnlRecord.setValues(getRecord()); - } - } - COM: <s> change to a selected record </s> - diff --git a/funcom_test/19345684.txt b/funcom_test/19345684.txt deleted file mode 100644 index 5ee42d406225f9903ab8714b9be178d939dcb8a3..0000000000000000000000000000000000000000 --- a/funcom_test/19345684.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void check4change() { - - if (! ((oldRecordName.equals(sfRecordName.getText())) - && (oldDescription.equals(sfDescription.getText())) - && (oldRecordType == sfRecordType.getSelectedIndex()) - && (oldSystem == sfSystem.getSelectedIndex()) - && (oldList == sfList.getSelectedIndex()))) { - - searchAction.searchArgChanged(); - saveScreenVals(); - - } - } - COM: <s> check for a change of the screen values </s> - diff --git a/funcom_test/19345751.txt b/funcom_test/19345751.txt deleted file mode 100644 index 566fdc381a303212c08e9421dcf1e927c6e4d0b1..0000000000000000000000000000000000000000 --- a/funcom_test/19345751.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getErrorMsg(String val) { - String retVal = ""; - //System.out.println("correct Int next"); - - - String ss = val.trim().toUpperCase(); - if (ss.equals("TRUE") || ss.equals("YES")) { - ret = true; - } else if (ss.equals("TRUE") || ss.equals("YES")) { - ret = false; - } else { - retVal = "Invalid Boolean"; - } - - return retVal; - } - COM: <s> this method is called when the next button is hit </s> - diff --git a/funcom_test/19345774.txt b/funcom_test/19345774.txt deleted file mode 100644 index 21c21208a4105057e3c2df9886e597edbfc3f112..0000000000000000000000000000000000000000 --- a/funcom_test/19345774.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: protected void prepareCursor() { - - if (isPrepareNeeded(sqlCursor)) { - try { - sqlCursor = connect.getConnection().prepareStatement( - sSQL - + sFrom - + sWhereSQL - + sWhere - + sOrderBy - ); - message = ""; - } catch (Exception ex) { - ex.printStackTrace(); - System.out.println("prepare Cursor >> " + (connect == null)); - setMessage(ex.getMessage(), ex); -// } finally { -// connect.free(); - } - } - } - COM: <s> this method prepares the sql statement for retrieval </s> - diff --git a/funcom_test/19345829.txt b/funcom_test/19345829.txt deleted file mode 100644 index a837e1fb50b661371e5c59b77a4308f4dfbd07c1..0000000000000000000000000000000000000000 --- a/funcom_test/19345829.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void init_300_BuildScreen() { - JPanel topPanel = new JPanel(); - JPanel fullPanel = new JPanel(); - - //buildMenubar(menuBar); - //buildToolbar(toolBar); - - topPanel.setLayout(new BorderLayout()); - topPanel.add("North", menuBar); - topPanel.add("South", toolBar); - - fullPanel.setLayout(new BorderLayout()); - fullPanel.add("North", topPanel); - fullPanel.add("Center", desktop); - setContentPane(fullPanel); - } - COM: <s> build or layout the screen </s> - diff --git a/funcom_test/19345977.txt b/funcom_test/19345977.txt deleted file mode 100644 index b18785e52f1ec8fe67206854778822c4c7fde648..0000000000000000000000000000000000000000 --- a/funcom_test/19345977.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private JMenu buildEditMenu() { - - for (int i = 0; i < systemActions.length; i++) { - editMenu.add(systemActions[i]); - } - editMenu.addSeparator(); - editMenu.add(copyRecords); - editMenu.add(cutRecords); - editMenu.add(pasteRecords); - editMenu.add(pasteRecordsPrior); - editMenu.add(pasteTableInsert); - editMenu.add(pasteTableOver); - editMenu.add(insertRecords); - editMenu.add(deleteRecords); - - editMenu.addSeparator(); - editMenu.add(findAction); - - return editMenu; - } - COM: <s> build the edit menu </s> - diff --git a/funcom_test/19345983.txt b/funcom_test/19345983.txt deleted file mode 100644 index 75239c7bd92ab2c1adeb83bc1afec7bf6aeb6af1..0000000000000000000000000000000000000000 --- a/funcom_test/19345983.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void writeTable() throws IOException { - int i; - - if (tblModel.getRowCount() > 0) { - writeTableHeader(); - - //System.out.println("Write Table " + tblModel.getRowCount() - // + " "); - for (i = 0; i < tblModel.getRowCount(); i++) { - writeRow(i); - } - } - - writer.write("</table><P> </P>"); - } - COM: <s> writes a table model to the file as a html table </s> - diff --git a/funcom_test/19345991.txt b/funcom_test/19345991.txt deleted file mode 100644 index 24d9d458d195c5108ae82cff5f12892bcc439a9d..0000000000000000000000000000000000000000 --- a/funcom_test/19345991.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void writeRow(int rowId) throws IOException { - int col; - - writer.write("<tr>"); - - for (col = firstColumn; col < tblModel.getColumnCount(); col++) { - writeText(correctValue(tblModel.getValueAt(rowId, col)), "td", false); - } - - writer.write("</tr>"); - writer.newLine(); - } - COM: <s> writes a row to the output file </s> - diff --git a/funcom_test/19346044.txt b/funcom_test/19346044.txt deleted file mode 100644 index 4da3f1705c6b734a7e9aafb638447699dc9743be..0000000000000000000000000000000000000000 --- a/funcom_test/19346044.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void init(BmKeyedComboModel comboModel, boolean editable) { - - this.model = comboModel; - //this.editable = isEditable; - - //model.setTableCombo(true); - super.setRenderer(comboModel); - - if (editable) { - this.setEditable(editable); - agent = new BmKeyedComboAgent(this, comboModel.getList(), comboModel.isSorted()); - } - } - COM: <s> common class initialise </s> - diff --git a/funcom_test/19346079.txt b/funcom_test/19346079.txt deleted file mode 100644 index b56f598a4fa9f83b40e0e4133fced2fe150afe34..0000000000000000000000000000000000000000 --- a/funcom_test/19346079.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void doUnFixColumn(int col) { - - TableColumn fixedColumn = fixedTable.getColumnModel().getColumn(col); - int actualCol = fixedColumn.getModelIndex(); - - fixedTable.getColumnModel().removeColumn(fixedColumn); - main.getColumnModel().addColumn(mainColumnModels[actualCol]); - - showFields.addjustHiddenColumns(col, 1, Integer.MAX_VALUE); - correctFixedSize(); - } - COM: <s> move a column from the left hand fixed table to the right </s> - diff --git a/funcom_test/19346082.txt b/funcom_test/19346082.txt deleted file mode 100644 index d4ae308f92d1233d764a7cb817dbf0c1e034df17..0000000000000000000000000000000000000000 --- a/funcom_test/19346082.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void checkAndUpdate(record val) { - - if (val.isNew()) { - //System.out.println("~~~> inserting "); - if (val.getUpdateStatus() != AbsRecord.BLANK_RECORD) { - insert(val); - } - } else if (val.getUpdateStatus() == AbsRecord.UPDATED) { - //System.out.println("~~~> updating "); - update(val); - } - } - COM: <s> check to see if the record has been changed before updating the </s> - diff --git a/funcom_test/19346491.txt b/funcom_test/19346491.txt deleted file mode 100644 index 5e8658cb0db5d0cbbb3ce8cd405cc6204715dd8b..0000000000000000000000000000000000000000 --- a/funcom_test/19346491.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void checkSetLayout(int layout, String field) { - - filter.setLayoutIndex(layout); - assertEquals("The layout Index was " + filter.getLayoutIndex() - + " and not " + layout, layout, filter.getLayoutIndex()); - - String fld = fieldList.getValueAt(1, 0).toString(); - assertEquals("Expected field '" + field + "' but got " + fld, - field, fld); - } - COM: <s> checks layout set correctly </s> - diff --git a/funcom_test/19346493.txt b/funcom_test/19346493.txt deleted file mode 100644 index 67e0e0448a4f914e175bf67a743cde88eafdca94..0000000000000000000000000000000000000000 --- a/funcom_test/19346493.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenuItem newWinAction(String label, ReFrame newFrame) { - - if (windowActionMap.containsKey(newFrame)) { - return windowActionMap.get(newFrame); - } - - JMenuItem mi = new JMenuItem(new WindowAction(label, newFrame)); - - windowActionMap.put(newFrame, mi); - return mi; - } - COM: <s> create and save a new menu item </s> - diff --git a/funcom_test/19346740.txt b/funcom_test/19346740.txt deleted file mode 100644 index d5dd71c50868ca46febcc6a188a5aff71dd34d9e..0000000000000000000000000000000000000000 --- a/funcom_test/19346740.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetColumnCount() { - /* int i; - DetailRecord[] layouts = poCopyBook.getLayouts(); - - for (i = 0; i < layouts.length; i++) { - if (layouts) - }*/ - - assertEquals("column Count expected 11 got " - + poFileRep.getColumnCount(), - 11, poFileRep.getColumnCount()); - } - COM: <s> check the get column count </s> - diff --git a/funcom_test/19346765.txt b/funcom_test/19346765.txt deleted file mode 100644 index c386bdfe6bdc593d5ef9994c7301afbb8e7f6563..0000000000000000000000000000000000000000 --- a/funcom_test/19346765.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private void setupData(FileView file) { - LineDTAR0020 line; - int i; - - for (i = 0; i < KEYCODES.length; i++) { - line = new LineDTAR0020((LayoutDetail) file.getLayout()); - - try { - line.setStore(STORES[i]); - line.setField("KEYCODE-NO", KEYCODES[i]); - line.setField("DATE", date); - line.setField("DEPT-NO", DEPT[i]); - line.setQuantity(QUANTITIES[i]); - line.setSalesRetail(RETAIL_SALES[i]); - - file.add(line); - - } catch (Exception e) { - e.printStackTrace(); - } - } - - } - COM: <s> setup the file </s> - diff --git a/funcom_test/19346778.txt b/funcom_test/19346778.txt deleted file mode 100644 index cb6f24e2afeb3dea6838783bae3ed9ab54e512ac..0000000000000000000000000000000000000000 --- a/funcom_test/19346778.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testSetValueAtObjectintint() { - String newVal = "12"; - - poFileRep.setValueAt(null, 0, 0, 0, newVal); - - String s = poFileRep.getValueAt(0, 2).toString(); - //dtar020FileRep.setValueAt(tmp, 0, 2); - - assertEquals("setValue " + newVal + " <> " + s, newVal, s); - } - COM: <s> class under test for void set value at object int int </s> - diff --git a/funcom_test/19346779.txt b/funcom_test/19346779.txt deleted file mode 100644 index 6698d9a092cc9d271348eaa117ca92d581245ae6..0000000000000000000000000000000000000000 --- a/funcom_test/19346779.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void register(String comboId, Object[][] comboItems) { - - AbsRowList list = new AbsRowList(0, 1, false, false); - - list.loadData(comboItems); - - //System.out.println("== >" + comboId + "<"); - map.put(comboId.toUpperCase(), list); - } - COM: <s> registers a combo and the id display values </s> - diff --git a/funcom_test/19346784.txt b/funcom_test/19346784.txt deleted file mode 100644 index df2790d50bd99a0c6a2723cd8ad9304001bbfe73..0000000000000000000000000000000000000000 --- a/funcom_test/19346784.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void getFileName(JTextField fileNameField) { - - if (chooseFile == null) { - chooseFile = new JFileChooser(); - } - - chooseFile.setSelectedFile(new File(fileNameField.getText())); - int ret = chooseFile.showOpenDialog(null); - - if (ret == JFileChooser.APPROVE_OPTION) { - fileNameField.setText(chooseFile.getSelectedFile().getPath()); - } - } - COM: <s> get the filename via a jfile chooser </s> - diff --git a/funcom_test/19346933.txt b/funcom_test/19346933.txt deleted file mode 100644 index 838cbd8dcc2187832adb232d9127b30bcf7a5ed1..0000000000000000000000000000000000000000 --- a/funcom_test/19346933.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getIntArg(String arg) throws Exception { - try { - return Integer.parseInt(getArg(arg)); - } catch (Exception e) { - System.out.println(); - System.out.println("Error processing integer argument " + arg - + " - " + e.getMessage()); - System.out.println(); - throw e; - } - } - COM: <s> get a requested integer argument </s> - diff --git a/funcom_test/19346936.txt b/funcom_test/19346936.txt deleted file mode 100644 index 1bc18dd46ffe830442ccfd1bce1a24809a5eca62..0000000000000000000000000000000000000000 --- a/funcom_test/19346936.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testIsBrowse() throws IOException, RecordException { - - assertFalse("file should be editable ", poFileRep.isBrowse()); - - FileView tmp = new FileView(poFileName, poCopyBook, true); - assertTrue("file should not be editable ", tmp.isBrowse()); - - } - COM: <s> check i browse function </s> - diff --git a/funcom_test/19346950.txt b/funcom_test/19346950.txt deleted file mode 100644 index 0713167ed234f5083d883017b9040811d0933718..0000000000000000000000000000000000000000 --- a/funcom_test/19346950.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testIsChanged() { - - assertFalse("file should be unchanged, it is not ", poFileRep.isChanged()); - poFileRep.setValueAt(null, 0, 0, 0, "12"); - assertTrue("file Should be changed, it is not ", poFileRep.isChanged()); - } - COM: <s> checking the is changed function </s> - diff --git a/funcom_test/19348254.txt b/funcom_test/19348254.txt deleted file mode 100644 index 544b3303a0deb2cb94f7a81e089342126a0f8741..0000000000000000000000000000000000000000 --- a/funcom_test/19348254.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void updateRDW(int length, byte[] word) { - byte[] bytes = (BigInteger.valueOf(length)).toByteArray(); - - word[1] = bytes[bytes.length - 1]; - word[0] = 0; - if (bytes.length > 1) { - word[0] = bytes[bytes.length - 2]; - } - } - COM: <s> update a rdw record descriptor record bdw block descriptor </s> - diff --git a/funcom_test/19348333.txt b/funcom_test/19348333.txt deleted file mode 100644 index 92e4e5a07c47fac2b0c7482934961aa0fbd0505f..0000000000000000000000000000000000000000 --- a/funcom_test/19348333.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected BigDecimal getBigDecimal(FieldDetail field, String val) { - - BigDecimal decimalVal = new BigDecimal(Conversion.numTrim(val)); - - if ((field.getDecimal() > 0) && adjustTheDecimal) { - decimalVal = decimalVal.multiply(new BigDecimal( - java.lang.Math.pow(BASE_10, field.getDecimal()))); - } - - return decimalVal; - } - COM: <s> convert string to big decimal </s> - diff --git a/funcom_test/19348334.txt b/funcom_test/19348334.txt deleted file mode 100644 index 252871e45c6055aa9e549028a55c25a8efa36cc5..0000000000000000000000000000000000000000 --- a/funcom_test/19348334.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected int getFieldEnd(final FieldDetail currField, final byte[] record) { - int ret = java.lang.Math.min(currField.getEnd(), record.length); - byte padByte = getPadByte(currField.getFontName()); - - while (ret > 0 && (record[ret - 1] == padByte)) { - ret -= 1; - } - - return ret; - } - COM: <s> get actual length of the field </s> - diff --git a/funcom_test/19348351.txt b/funcom_test/19348351.txt deleted file mode 100644 index 9eb7b7cbbe2b899ea4a2b7cb97d81369fbb60caa..0000000000000000000000000000000000000000 --- a/funcom_test/19348351.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void register(int classId, managedClass obj) { - int idx = getIndex(classId); - - if (idx == invalidIndex) { - throw new RuntimeException("Invalid Index Supplied " + classId - + " Should be between " + userRangeStart - + " and " + (userRangeStart + userSize)); - } - - if (idx > used) { - used = idx; - } - - objects[idx] = obj; - } - COM: <s> register a type format </s> - diff --git a/funcom_test/19348384.txt b/funcom_test/19348384.txt deleted file mode 100644 index 6075a68a870b996de48d2454e95f3130ec19e8c0..0000000000000000000000000000000000000000 --- a/funcom_test/19348384.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getColumnNameLine(List<String> names, String delim, String quote) { - StringBuilder buf = new StringBuilder(); - String currDelim = ""; - - for (int i = 0; i < names.size(); i++) { - buf.append(currDelim) - .append(quote) - .append(names.get(i)) - .append(quote); - currDelim = delim; - - } - - return buf.toString(); - } - COM: <s> convert a list of column names into a line </s> - diff --git a/funcom_test/19348945.txt b/funcom_test/19348945.txt deleted file mode 100644 index 0c265086807da9c9cf0650b74e256e6aa6be4ec2..0000000000000000000000000000000000000000 --- a/funcom_test/19348945.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setLowDisplayDate(Date lowDisplayDate) { - // Check for nulls - if(lowDisplayDate == null) { - this.lowDisplayDate = null; - return; - } - - // Check for bounds - if(highDisplayDate != null && lowDisplayDate.compareTo(highDisplayDate) >= 0) - return; - - if(lowDisplayDate.compareTo(startDate) >= 0) - return; - - // Assign the date - this.lowDisplayDate = lowDisplayDate; - } - COM: <s> this method sets the lowest date that can be selected by the user </s> - diff --git a/funcom_test/19348951.txt b/funcom_test/19348951.txt deleted file mode 100644 index 02aa132c5263244486292d018822b9076666d2ed..0000000000000000000000000000000000000000 --- a/funcom_test/19348951.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setHighDisplayDate(Date highDisplayDate) { - // Check for nulls - if(highDisplayDate == null) { - this.highDisplayDate = null; - return; - } - - // Check for bounds - if(lowDisplayDate != null && highDisplayDate.compareTo(lowDisplayDate) <= 0) - return; - - if(highDisplayDate.compareTo(startDate) <= 0) - return; - - // Assign the date - this.highDisplayDate = highDisplayDate; - } - COM: <s> this method sets the highest date that can be selected by the user </s> - diff --git a/funcom_test/19349016.txt b/funcom_test/19349016.txt deleted file mode 100644 index 36c19b4df33ba57aca45693d2ba42827e6292a84..0000000000000000000000000000000000000000 --- a/funcom_test/19349016.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public FileView getView(int[] rows) { - - if (rows == null || rows.length == 0) { - return null; - } - DataStoreStd<AbstractLine> selectedLines - = new DataStoreStd<AbstractLine>(layout, rows.length); - - for (int i = 0; i < rows.length; i++) { - if (rows[i] >= 0) { - selectedLines.add(this.getLine(rows[i])); - } - } - - return new FileView(selectedLines, baseFile, columnMapping); - } - COM: <s> create a view of selected rows </s> - diff --git a/funcom_test/19349533.txt b/funcom_test/19349533.txt deleted file mode 100644 index f805f8508ac3e5fce01af077dd7aba343cde3c37..0000000000000000000000000000000000000000 --- a/funcom_test/19349533.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setMonthFont(final Font monthFont) { - this.monthFont = monthFont; - - // Recalculate HEADER_HEIGHT - final FontRenderContext context = new FontRenderContext(new AffineTransform(), false,false); - final GlyphVector glyphVector = monthFont.createGlyphVector(context, "Month"); - //int stringWidth = (int)glyphVector.getLogicalBounds().getWidth(); - HEADER_HEIGHT = (int)glyphVector.getLogicalBounds().getHeight() + 5; - } - COM: <s> this method sets the font used to draw the month and year </s> - diff --git a/funcom_test/19372495.txt b/funcom_test/19372495.txt deleted file mode 100644 index d4b9e9522431972ba433516079e4392c019369c5..0000000000000000000000000000000000000000 --- a/funcom_test/19372495.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void generationStep(generationEvent e) { - if (e.isStep()) { - monitor_.worked(1); - if (!error) uiInterf_.writeText("."); - } - else if (e.isError()) { - errorFound(e.message(),uiInterf_); - } - else if (e.isWarning()) { - warningFound(e.message(),uiInterf_); - } - } - COM: <s> state graph event handling </s> - diff --git a/funcom_test/19372757.txt b/funcom_test/19372757.txt deleted file mode 100644 index 9f6cfa87f12984ee55f5b9086768330cb3c19135..0000000000000000000000000000000000000000 --- a/funcom_test/19372757.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private SmState checkCondApplic(Condition gcond, SmState st) { - if (gcond == null) return st; - Set gcset = gcond.extractDisjuncs(); - Set<BasicState> nstset = new HashSet<BasicState>(); - for (BasicState bst: st.getStates()) { - nstset.addAll(checkBSCondApplic(gcset,bst)); - } - if (nstset.isEmpty()) { - // gcond is impossible to satisfy - return null; - } - SmState smst = SmState.getState(this,nstset); - state_.add(smst); - return smst; - } - COM: <s> check a state against some constraining condition </s> - diff --git a/funcom_test/19372869.txt b/funcom_test/19372869.txt deleted file mode 100644 index 5cf3238142f911791949676a4858ec6006fc52d3..0000000000000000000000000000000000000000 --- a/funcom_test/19372869.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean hasIncludeRelationTo(String name) { - for (Iterator i = getChildren(); i.hasNext();) { - UseCaseModelBlock b = (UseCaseModelBlock)i.next(); - if (b instanceof IncludeRelation) { - IncludeRelation inc = (IncludeRelation)b; - if ((inc.getValue()).equalsIgnoreCase(name)) return true; - } - } - return false; - } - COM: <s> method has include relation to </s> - diff --git a/funcom_test/19372924.txt b/funcom_test/19372924.txt deleted file mode 100644 index 4e3fda4ff6f17866c591a915529aedfd4a9819cf..0000000000000000000000000000000000000000 --- a/funcom_test/19372924.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Set subSetSuperOf(Set conds) { - //Debug.defaultPrintln(this,"Set super state " + s); - Set sst = new HashSet(); - for (Iterator i = subStates_.iterator(); i.hasNext();) { - BasicState st = (BasicState)i.next(); - - if (moreGeneralSet(st.getConditions(),conds)) { - sst.add(st); - } - } - return sst; - } - COM: <s> method sub set super of </s> - diff --git a/funcom_test/19373401.txt b/funcom_test/19373401.txt deleted file mode 100644 index e6da4a5820f8028a8b3651921868c0a7765a9664..0000000000000000000000000000000000000000 --- a/funcom_test/19373401.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void checkWithDomain(Domain d,UseCaseModel ucm) throws IncorrectElementException { - resetAspectRelations(); - if (redirectStep_.getStep() == null) { - throw new IncorrectElementException(" Redirect " + this.getLabel() + " redirection to <" + getValue() + "> does not refer to a Step"); - } - } - COM: <s> ensure redirection points to a step </s> - diff --git a/funcom_test/19373429.txt b/funcom_test/19373429.txt deleted file mode 100644 index df8f70052f81323ce4f5e0c80152c801c9a58ab8..0000000000000000000000000000000000000000 --- a/funcom_test/19373429.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int insertBlockAfter(int lineNumber,Block block_) { - if (!usecase_.canInsertBlockAfterLine(lineNumber)) { - return lineNumber; - } - //((AbstractUseCaseDescriptionBlock)block_).setProcedure_(usecase_.procedure_); - InsertBlockCommand newCommand_ = new InsertBlockCommand(usecase_,lineNumber,block_); - return performCommand(newCommand_); - } - COM: <s> insert an item at a particular line </s> - diff --git a/funcom_test/19373557.txt b/funcom_test/19373557.txt deleted file mode 100644 index 0d51ce27d77f92377a78777053921987116f00fc..0000000000000000000000000000000000000000 --- a/funcom_test/19373557.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected Iterator getPrimaryAttributes() { - Vector primary = new Vector(); - - Iterator items = DESCRIPTIONS.iterator(); - while (items.hasNext()) { - String item = (String)items.next(); - if (usecase_.isTraitSet(item)) { - primary.add(item); - } - } - return primary.iterator(); - } - COM: <s> get the primary descriptions </s> - diff --git a/funcom_test/19373654.txt b/funcom_test/19373654.txt deleted file mode 100644 index 7c73e030c0f356cffd2df51c1e784716c4bd72ec..0000000000000000000000000000000000000000 --- a/funcom_test/19373654.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addToExtends(ExtendRelation euc) { - // *TODO* - extend_ucases.add(euc); - ExtendUseCase extuc = euc.getExtendUseCase(); - for (Iterator i = this.getExtensionPoints().iterator(); i.hasNext();) { - ExtensionPoint ep = (ExtensionPoint)i.next(); - Part p = extuc.findPart(ep.getValue()); - if (p != null) { - ep.setAsPart(euc.getExtendCondition(),p); - } - } - } - COM: <s> set up a use case as an extension use case of this one </s> - diff --git a/funcom_test/19373660.txt b/funcom_test/19373660.txt deleted file mode 100644 index 1dd47c4dd99692b11c983173b7f745c2f215d940..0000000000000000000000000000000000000000 --- a/funcom_test/19373660.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public UseCaseDescriptionBlock createNextBlock() { - UseCaseDescriptionBlock brother = (UseCaseDescriptionBlock)getBrotherBeforeMe(); - if (brother == NullUseCaseDescriptionBlock.getDefault()) { - brother = ((UseCaseDescriptionBlock)getParent()).determineNodeBeforeFirst(); - } - - UseCaseDescriptionBlock newChild = brother.createNextBlock(); - return(newChild); - } - COM: <s> should have an action after an action </s> - diff --git a/funcom_test/19373926.txt b/funcom_test/19373926.txt deleted file mode 100644 index dd4a463a16418479240aebfd0cac2384647ec002..0000000000000000000000000000000000000000 --- a/funcom_test/19373926.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public Vector getExtensionParts(ExtensionPoint epoint) { - Vector vexp = new Vector(); - for (Iterator i = extend_ucases.iterator(); i.hasNext();) { - ExtendRelation rel = (ExtendRelation)i.next(); - ExtendUseCase euc = rel.getExtendUseCase(); - Part p = euc.findPart(epoint.getValue()); - if (p != null) { - Vector vexpi = new Vector(); - Condition extcond = rel.getExtendCondition(); - if (extcond != null) { - vexpi.add(extcond); - } else { - vexpi.add(NullCondition.getDefault()); - } - vexpi.add(p); - vexp.add(vexpi); - } - } - return vexp; - } - COM: <s> return all extension parts that apply at the given extension point </s> - diff --git a/funcom_test/19374288.txt b/funcom_test/19374288.txt deleted file mode 100644 index 9358fd9d9a9913f2dd95c04a3d7a8a7b52354e83..0000000000000000000000000000000000000000 --- a/funcom_test/19374288.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Set getResumeStates() { - Set<SCStateResume> res = new HashSet<SCStateResume>(); - for (ISCState st:scState_) { - if (st instanceof SCStateResume) { - res.add((SCStateResume) st); - } - else if (st instanceof SCStateCont) { - res.addAll(((SCStateCont)st).getResumeStates()); - } - } - return res; - } - COM: <s> returns all resume sub states in this state </s> - diff --git a/funcom_test/19374289.txt b/funcom_test/19374289.txt deleted file mode 100644 index 75587d9903c4814a0025af930da95570ae185ec9..0000000000000000000000000000000000000000 --- a/funcom_test/19374289.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Set getTransitions(StateGraphEvent ev) { - Set trans = new HashSet(); - for (Iterator i = getAllTransitions().iterator(); i.hasNext();) { - SCharTransition tr = (SCharTransition)i.next(); - try { - SCharEvent tev = (SCharEvent) tr.getEvent(); - //if (tev.getTrigger().equals(ev)) trans.add(tr); - if (tev.getTrigger() == ev) trans.add(tr); - } catch (ClassCastException e) { - - } - } - return trans; - } - COM: <s> method get outgoing transitions such that event is the one as argument </s> - diff --git a/funcom_test/19374367.txt b/funcom_test/19374367.txt deleted file mode 100644 index 96f3b1bc67a9cb3daeee2dd6c79d348e87c79c56..0000000000000000000000000000000000000000 --- a/funcom_test/19374367.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void checkIncludeCycles() throws IncorrectElementException { - java.util.Vector nodes = createNodeGraph(); - //Debug.defaultPrintln(this,"size:" + nodes.size()); - for (Iterator i = nodes.iterator(); i.hasNext();) { - GraphNode node = (GraphNode)i.next(); - - String inc = inclusionLoopFrom(node); - if (inc != null) { - throw new IncorrectElementException(" includes inclusion loop " + inc); - } - } - } - COM: <s> method check include cycles </s> - diff --git a/funcom_test/19374527.txt b/funcom_test/19374527.txt deleted file mode 100644 index 1cee3aefa4ef91529122769d5a80faf68a8e4e39..0000000000000000000000000000000000000000 --- a/funcom_test/19374527.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void validateLineNumber(int lineNumber) throws IllegalArgumentException { - if (!NumberIndex.isWithinLimits(lineNumber,1,numberOfLines())) { - throw new IllegalArgumentException("Cannot handle line number: " + lineNumber + " numberOfLines: " + numberOfLines()); - } - } - COM: <s> validate the particular line number </s> - diff --git a/funcom_test/19374664.txt b/funcom_test/19374664.txt deleted file mode 100644 index 8f3501c6e97d0fef2a8ef3a82197014bd3f23dee..0000000000000000000000000000000000000000 --- a/funcom_test/19374664.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Iterator getNumberedChildren() { - Vector nnchildren = new Vector(); - for (Iterator i = getChildren(); i.hasNext();) { - Block b = (Block) i.next(); - //if (! (b instanceof ExtensionPoint)) nnchildren.addElement(b); - if (b.isNumbered()) nnchildren.addElement(b); - } - return nnchildren.iterator(); - } - COM: <s> return all children but non numbered instances </s> - diff --git a/funcom_test/19374880.txt b/funcom_test/19374880.txt deleted file mode 100644 index df88d4ad43115b322f4c2d3620e51272da777148..0000000000000000000000000000000000000000 --- a/funcom_test/19374880.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void buildAnyExtension(Element procedureElement, AnyExtension anyExtension) { - Element anyExtElement = new Element(ElementConst.ANYEXTENSION); - anyExtElement.setText(anyExtension.getValue()); - - procedureElement.addContent(anyExtElement); - -// buildExtensionActions(anyExtElement, anyExtension); - buildExtension(anyExtElement, anyExtension); - } - COM: <s> method build any extension </s> - diff --git a/funcom_test/19374900.txt b/funcom_test/19374900.txt deleted file mode 100644 index 5980f0b0773dc445544d5c8bb959d3e46dee36c9..0000000000000000000000000000000000000000 --- a/funcom_test/19374900.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addAnyExtension(NormalUseCaseDescription useCase, Element anyExtElement) { - String value = anyExtElement.getTextTrim(); - AnyExtension aext = (AnyExtension)useCase.addAnyExtension(value); - Element extElt = anyExtElement.getChild(ElementConst.EXTENSION); - if (extElt != null) { - addAnExtension(extElt, aext); - } - - } - COM: <s> method add any extension </s> - diff --git a/funcom_test/19374986.txt b/funcom_test/19374986.txt deleted file mode 100644 index 68b3b9bffe554ce4a6407a13189a70a433680be3..0000000000000000000000000000000000000000 --- a/funcom_test/19374986.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void buildRedirectElement(Element extensionElement, Redirect redirect) { - Element operationElement = new Element(ElementConst.OPERATIONINST); - operationElement.setText(redirect.getValue()); - Element actionElement = new Element(ElementConst.ACTION); - actionElement.setAttribute(ElementConst.ATTRIBUTE_OPERATION_REDIRECT,Boolean.TRUE.toString()); - actionElement.setAttribute(ElementConst.ATTRIBUTE_STEP_NUMBER, redirect.getStepLabel().trim()); - operationElement.addContent(actionElement); - extensionElement.addContent(operationElement); - } - COM: <s> convert old redirect </s> - diff --git a/funcom_test/19375075.txt b/funcom_test/19375075.txt deleted file mode 100644 index cc381aff975cf7633ed500f24fea657e45f4031b..0000000000000000000000000000000000000000 --- a/funcom_test/19375075.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void transformRedirects(AbstractProcedure proc,ArrayList<ActionStep> tredirs) { - for (Iterator i = tredirs.iterator(); i.hasNext();) { - ActionStep st = (ActionStep)i.next(); - OperationInstance stiop = (OperationInstance)st.getOperation(); - RedirectTemp rt = (RedirectTemp) stiop.getOperation(); - Redirect redir = (Redirect) proc.createRedirectTo(rt.getValue()); - if (redir != null) { - stiop.setOperation(redir); - } - else { - valid_ = false; - } - } - - } - COM: <s> change redirect temps to redirects </s> - diff --git a/funcom_test/19375163.txt b/funcom_test/19375163.txt deleted file mode 100644 index bbf156d4ba24166c5a55ceaf2b3c6a761e42b8bd..0000000000000000000000000000000000000000 --- a/funcom_test/19375163.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Operation getOperation(String operationName) { - Iterator children = getChildren(); - while (children.hasNext()) { - Block child = (Block)children.next(); - if (child instanceof Operation) { - Operation op = (Operation)child; - if (operationName.equals(op.getValue())) - return op; - } - } - return null; - } - COM: <s> method get operation </s> - diff --git a/funcom_test/19375187.txt b/funcom_test/19375187.txt deleted file mode 100644 index a588e2edb50aa2568d8b027dccc1a322cbba926b..0000000000000000000000000000000000000000 --- a/funcom_test/19375187.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Block outdentAsBrother(Block block) { - - if (getParent().canAddChild(block)) return block; - - AbstractDomainBlock newblock = (AbstractDomainBlock) Domain.createConceptNamed(block.getValue()); - if (block instanceof AbstractConcept || block instanceof Aggregation) { - newblock.addChildrenOf(block); - } - return newblock; - } - COM: <s> method outdent child </s> - diff --git a/funcom_test/19375324.txt b/funcom_test/19375324.txt deleted file mode 100644 index 0365022e71fb58da377c54e1c03c4b3790790c1e..0000000000000000000000000000000000000000 --- a/funcom_test/19375324.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addOperationCall(ActionStep step, Element opinstElement) { - OperationInstance op = new OperationInstance(); - addOperationValue(op,step,opinstElement); - Element opCond = opinstElement.getChild(ElementConst.CONDITION); - if (opCond != null) { - ConditionXmlConverter converter = new ConditionXmlConverter(domain_,valid_); - op.setCondition((Condition) converter.load(opCond)); - valid_ = converter.isValidCondition(); - } - addDelays(opinstElement, op); - step.setOperation(op); - } - COM: <s> action isredirect false entity name after delay d before delay d </s> - diff --git a/funcom_test/19375330.txt b/funcom_test/19375330.txt deleted file mode 100644 index 98810fa46bf81ba4a5285d395b3c5043f8eb6c1a..0000000000000000000000000000000000000000 --- a/funcom_test/19375330.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Set getObjectsOf(Vector conc) { - Set res = new HashSet(); - for (Iterator i = conc.iterator(); i.hasNext();) { - AbstractConcept c = (AbstractConcept) i.next(); - for (Iterator j = c.getChildren(); j.hasNext();) { - Block b = (Block) j.next(); - if (b instanceof ConceptInstance) { - res.add(b); - //break; - } - } - } - return res; - } - COM: <s> used to get the objects of a particular set of concepts </s> - diff --git a/funcom_test/19375389.txt b/funcom_test/19375389.txt deleted file mode 100644 index 633f46d497994cb146a0fe9d5bc0508ee2caa21f..0000000000000000000000000000000000000000 --- a/funcom_test/19375389.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean canHaveDiscreteValues() { - Iterator iter = this.getChildren(); - while(iter.hasNext()) { - Block child = (Block)iter.next(); - if (child instanceof PossibleValueSet) { - PossibleValueSet pvs = (PossibleValueSet)child; - return !pvs.isEmpty(); - } - } - return false; - } - COM: <s> method can have discrete values </s> - diff --git a/funcom_test/19375400.txt b/funcom_test/19375400.txt deleted file mode 100644 index 8847ca41475c26126a48cf0f232db4deb864d378..0000000000000000000000000000000000000000 --- a/funcom_test/19375400.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getFullName() { - StringBuffer sb = new StringBuffer(); - Iterator iter = getFullNameIterator(); - while (iter.hasNext()) { - sb.append(iter.next()); - if (iter.hasNext()) { - sb.append(" "); - } - } - return sb.toString(); - } - COM: <s> get the entitys full name </s> - diff --git a/funcom_test/19375407.txt b/funcom_test/19375407.txt deleted file mode 100644 index 47312fb422fa56fb2a8084d5d4da186914444e6e..0000000000000000000000000000000000000000 --- a/funcom_test/19375407.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Iterator getFullNameIterator() { - ClassFilter filter = new ClassFilter(); - filter.add(Entity.class); - Block node = this; - Vector entities = new Vector(); - - while (filter.isOkay(node)) { - entities.insertElementAt(node.getValue(),0); - node = node.getParent(); - } - - return entities.iterator(); - } - COM: <s> get the entities absolute parent shell </s> - diff --git a/funcom_test/19375409.txt b/funcom_test/19375409.txt deleted file mode 100644 index 07e30fd9b653d71226257833ed82a29f40d15369..0000000000000000000000000000000000000000 --- a/funcom_test/19375409.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected Entity findSubEntity(Vector all, Vector vent, Vector remain) { - for (Iterator iall = all.iterator(); iall.hasNext();) { - Block b = (Block) iall.next(); - if (b instanceof AbstractActiveEntityBlock) { - Entity ent = - ((AbstractActiveEntityBlock) b).findSubEntity(vent, remain); - if (ent != null) - return ent; - } - } - return null; - } - COM: <s> find all children entities of which name start with the first </s> - diff --git a/funcom_test/19375802.txt b/funcom_test/19375802.txt deleted file mode 100644 index 7e11f74c684379d579b5dfdf7276ca3f27dc8ba6..0000000000000000000000000000000000000000 --- a/funcom_test/19375802.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void setHoverLocation(Shell shell, Point position) { - Rectangle displayBounds = shell.getDisplay().getBounds(); - Rectangle shellBounds = shell.getBounds(); - shellBounds.x = Math.max(Math.min(position.x, displayBounds.width - shellBounds.width), 0); - shellBounds.y = Math.max(Math.min(position.y + 16, displayBounds.height - shellBounds.height), 0); - shell.setBounds(shellBounds); - } - COM: <s> sets the location for a hovering dialog shell </s> - diff --git a/funcom_test/19376190.txt b/funcom_test/19376190.txt deleted file mode 100644 index f7a051e80eaf7b34410b8ffa40d0d6660c9a2e8c..0000000000000000000000000000000000000000 --- a/funcom_test/19376190.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private ActorOperationsModel setUpActorModel() { - if (pmodel_ == null) return null; - if (pmodel_.getDomain() == null) return null; - Vector actors = pmodel_.getDomain().getActors(); - amodel_ = new ActorOperationsModel(pmodel_); - for (Iterator i = actors.iterator(); i.hasNext();) { - Concept act = (Concept)i.next(); - createActorOperations(act); - } - return amodel_; - } - COM: <s> set up a tree model for actors operations </s> - diff --git a/funcom_test/19376386.txt b/funcom_test/19376386.txt deleted file mode 100644 index 2d7ab29a6c8ec5437a6c2f1756ffd53142b51412..0000000000000000000000000000000000000000 --- a/funcom_test/19376386.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Figure buildGraph(CompoundDirectedGraph graph) { - scaledPane_ = new ScalableLayeredPane(); - ToolbarLayout layout=new ToolbarLayout(true); - scaledPane_.setLayoutManager(layout); - scaledPane_.setScale(this.currentScale_); - contents = new Panel(); - contents.setFont(NFONT); - contents.setBackgroundColor(ColorConstants.white); - contents.setLayoutManager(new XYLayout()); - Hashtable<ISCState,Figure> nodefigs = new Hashtable<ISCState,Figure>(); - contents = buildStateChartGraph(graph, contents, nodefigs); - if (contents == null) return null; - scaledPane_.add(contents); - return scaledPane_; -// return contents; - } - COM: <s> builds the graph creates draw2d figures for all graph components </s> - diff --git a/funcom_test/19378538.txt b/funcom_test/19378538.txt deleted file mode 100644 index f31ca4237d32edc4f2161cfbef9a0dcfa42b2d8b..0000000000000000000000000000000000000000 --- a/funcom_test/19378538.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private MenuItem buildTestCase(Menu menuBar, Menu menu) { - MenuItem mitem = new MenuItem(menuBar,DEFAULT_MENU_STYLE); - mitem.setText(Messages.getString("UCEd.70")); //$NON-NLS-1$ - mitem.setMenu(menu); - return mitem; - } - COM: <s> method test case generation </s> - diff --git a/funcom_test/19379428.txt b/funcom_test/19379428.txt deleted file mode 100644 index 66adf77b462aa0d91ef86dae5840fdd7d78cfc7c..0000000000000000000000000000000000000000 --- a/funcom_test/19379428.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void simulate(NormalUseCase usecase) { - StateChar schar = usecase.getStateChar(); - if (schar == null) { - MessageDialog.openInformation(this.getShell(),Messages.getString("UCEd.75"), //$NON-NLS-1$ - Messages.getString("UCEd.133")); //$NON-NLS-1$ - return; - } - simulator_.startUseCaseSimulation(currentProject_,schar); - - } - COM: <s> launch simulator for the state chart of a given use case </s> - diff --git a/funcom_test/19412370.txt b/funcom_test/19412370.txt deleted file mode 100644 index 6180321fe55998ec44f71193c7c33cdda8f655e4..0000000000000000000000000000000000000000 --- a/funcom_test/19412370.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void fileInfoGenerated(FileInfoEvent e) { -// FileInfoContainer fileInfo = e.getInfoContainer(); -// if (fileInfo.getClass().equals(StatusInformation.class)) { -// System.err.println("A file status event was received."); -// System.err.println("The status information object is: " + -// fileInfo); -// } - } - COM: <s> called when file status information has been received </s> - diff --git a/funcom_test/19412437.txt b/funcom_test/19412437.txt deleted file mode 100644 index 1e0271d8bf12c55b0b08bc8e050de3bd50496a7d..0000000000000000000000000000000000000000 --- a/funcom_test/19412437.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected DateFormat getDateFormatter() { - if (dateFormatter == null) { - dateFormatter = new SimpleDateFormat(Entry.getLastModifiedDateFormatter().toPattern(), Locale.US); - dateFormatter.setTimeZone(TimeZone.getTimeZone("GMT+0000")); //NOI18N - } - return dateFormatter; - } - COM: <s> returns the date formatter instance that parses and formats date strings </s> - diff --git a/funcom_test/19412557.txt b/funcom_test/19412557.txt deleted file mode 100644 index 33884f19be85a69827ff31344473accb95da3431..0000000000000000000000000000000000000000 --- a/funcom_test/19412557.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void verify() throws AuthenticationException { - try { - process = Runtime.getRuntime().exec("cvs server"); //NOI18N - process.destroy(); - } - catch (Exception e) { - String locMessage = AuthenticationException.getBundleString( - "AuthenticationException.ServerVerification"); //NOI18N - throw new AuthenticationException("Verification error", e, locMessage); //NOI18N - } - finally { - reset(); - } - } - COM: <s> authenticate with the server </s> - diff --git a/funcom_test/19412635.txt b/funcom_test/19412635.txt deleted file mode 100644 index 667fc502f5f4d5cb7e04b5935870b7073616ab28..0000000000000000000000000000000000000000 --- a/funcom_test/19412635.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setLocalPath(String localPath) { - // remove trailing (back-) slash - localPath = localPath.replace('\\', '/'); - while (localPath.endsWith("/")) { // NOI18N - localPath = localPath.substring(0, localPath.length() - 1); - } - - this.localPath = localPath; - } - COM: <s> set the local path i </s> - diff --git a/funcom_test/19412736.txt b/funcom_test/19412736.txt deleted file mode 100644 index 4921d92c63e6f70e63ed8726df15555ba5431b7a..0000000000000000000000000000000000000000 --- a/funcom_test/19412736.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void addArgumentRequests() { - if (files == null) { - return; - } - - for (int i = 0; i < files.length; i++) { - final File file = files[i]; - String relativePath = getRelativeToLocalPathInUnixStyle(file); - addRequest(new ArgumentRequest(relativePath)); - } - } - COM: <s> add the argument requests </s> - diff --git a/funcom_test/19412759.txt b/funcom_test/19412759.txt deleted file mode 100644 index 9d0c80c6ac204296136367d6f950bb3d33b2207e..0000000000000000000000000000000000000000 --- a/funcom_test/19412759.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void ensureConnection() throws AuthenticationException { - BugLog.getInstance().assertNotNull(getConnection()); - - if (getConnection().isOpen()) { - return; - } - -// getConnection().verify(); //VERIFY DOES THE SAME AS OPEN!! - // opening a conection and then closing it and reopening again is wierd. - try { - getConnection().open(); - } catch (CommandAbortedException caex) { - abort(); - } - } - COM: <s> ensures that the connection is open </s> - diff --git a/funcom_test/19412879.txt b/funcom_test/19412879.txt deleted file mode 100644 index 0077d8647fa90f9a9dc92835346b6e926a9686f0..0000000000000000000000000000000000000000 --- a/funcom_test/19412879.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void pruneEmptyDirectories() throws IOException { - final Iterator it = emptyDirectories.iterator(); - while (it.hasNext()) { - final File dir = (File)it.next(); - // we might have deleted it already (due to recursive delete) - // so we need to check existence - if (dir.exists()) { - pruneEmptyDirectory(dir); - } - } - emptyDirectories.clear(); - } - COM: <s> remove any directories that dont contain any files </s> - diff --git a/funcom_test/19413001.txt b/funcom_test/19413001.txt deleted file mode 100644 index 973d38e72c51b2a12d14d2304837b68bd6c30f6d..0000000000000000000000000000000000000000 --- a/funcom_test/19413001.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void messageSent(MessageEvent e) { - String str = e.getMessage(); - if (str.endsWith(DIR_ADDED)) { - str = str.substring(DIRECTORY.length(), str.indexOf(DIR_ADDED)).trim(); - createCvsFiles(str); - } - super.messageSent(e); - } - COM: <s> listens for output of the command </s> - diff --git a/funcom_test/19413575.txt b/funcom_test/19413575.txt deleted file mode 100644 index 63f3b89bbb6424482b770ccaa537998534bd43d5..0000000000000000000000000000000000000000 --- a/funcom_test/19413575.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public byte readByte() throws IOException { - while (in.available() == 0) { - try { - Thread.currentThread().sleep(100); - } catch (InterruptedException iex) { - Thread.currentThread().interrupt(); - return '\0'; - } - } - byte val = (byte) in.read(); - Logger.logInput((char)val); - return val; - } - COM: <s> read a single byte from this stream </s> - diff --git a/funcom_test/19413603.txt b/funcom_test/19413603.txt deleted file mode 100644 index 20b711c5aaf0f812a99be499b652b9cf234ebd3e..0000000000000000000000000000000000000000 --- a/funcom_test/19413603.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void add(byte b) { - if (bytesBuffer.length <= length) { - byte[] newBytesBuffer = new byte[length + length/2]; - System.arraycopy(bytesBuffer, 0, newBytesBuffer, 0, bytesBuffer.length); - bytesBuffer = newBytesBuffer; - } - bytesBuffer[length++] = b; - } - COM: <s> add a byte to the byte array </s> - diff --git a/funcom_test/19413737.txt b/funcom_test/19413737.txt deleted file mode 100644 index 943977be7c6f887c4319f5d818ac1a05763102c5..0000000000000000000000000000000000000000 --- a/funcom_test/19413737.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void execute() throws CommandException { - - // Use stuff that's being done in the superclass. - // - super.execute(); // Ignore the response from the superclass - - SimpleMessage message = - new SimpleMessage( - getFrontendMessages().getString("message.MANIFEST_ACTIVATED"), new Object[]{getSelectedManifest().getName()} - ); - getCommandResponse().addEvent(new MessageEvent(this, message)); - } - COM: <s> execute the command in the cli </s> - diff --git a/funcom_test/19413794.txt b/funcom_test/19413794.txt deleted file mode 100644 index 463229f2203c01960273fa58663aabd5444bb75b..0000000000000000000000000000000000000000 --- a/funcom_test/19413794.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean equals(Object o) { - - if (o instanceof ModuleDigester) { - if ( - (getName().equals(((ModuleDigester) o).getName())) && - (getLocation().equals(((ModuleDigester) o).getLocation())) ) { - return true; - } else { - return false; - } - } else { - return false; - } - } - COM: <s> modules are equal when their name and location are equal </s> - diff --git a/funcom_test/19413900.txt b/funcom_test/19413900.txt deleted file mode 100644 index 38e2a6e26efc08d4e21978a6cf636c857e3938f4..0000000000000000000000000000000000000000 --- a/funcom_test/19413900.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean isAvailable() { - if (!LOCAL.equals(getProtocol()) && getHost() != null && getPort() != -1) { - return Ping.ping(getHost(), getPort(), 3000); - } else { - return true; // Local, apparently. - } - } - COM: <s> pings the cvs repository host on the specified port </s> - diff --git a/funcom_test/19413925.txt b/funcom_test/19413925.txt deleted file mode 100644 index 2d8b7b80d7b37a7c1a6a27e70441a6167f132fc4..0000000000000000000000000000000000000000 --- a/funcom_test/19413925.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setProtocol(String protocol) { - String p = LOCAL + "|" + PSERVER + "|" + EXT; - if (protocol == null || !protocol.toLowerCase().matches(p)) { - throw new IllegalArgumentException("Protocol is invalid; should be " + p); - } - super.setProtocol(protocol.toLowerCase()); - } - COM: <s> the cvs repository protocol code ext code code pserver code etc </s> - diff --git a/funcom_test/19414091.txt b/funcom_test/19414091.txt deleted file mode 100644 index 5d4fa32ed58eb23f3f225a713f6b14e2d3a7cacc..0000000000000000000000000000000000000000 --- a/funcom_test/19414091.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void executeDelete(File dir, String includes) throws CommandException { - - if (project == null) { - project = getProjectInstance(); - } - - if (dir != null && dir.exists()) { - - // <delete> - // - Delete delete = new Delete(); - delete.setProject(project); - - FileSet fileset = new FileSet(); - fileset.setDir(dir); - fileset.setIncludes(includes); - - delete.addFileset(fileset); - delete.execute(); - } - } - COM: <s> performs a lt delete gt task on this commands ant project </s> - diff --git a/funcom_test/19414202.txt b/funcom_test/19414202.txt deleted file mode 100644 index 060d273967ddb6dc8b62949b4287c191bfad75cb..0000000000000000000000000000000000000000 --- a/funcom_test/19414202.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void changeCurrentManifest(String manifestName) throws ManifestException, LocationException { - - ManifestFactory manifestFactory = new ManifestFactory(); - ManifestLoader loader = new ManifestLoader(workingContext); - Manifest newManifest = manifestFactory.create(workingContext, loader.load(manifestName)); - - // If we are here, loading the new manifest was succesfull. - // - currentManifest = newManifest; - - register(); - } - COM: <s> changes the current manifest for this context </s> - diff --git a/funcom_test/19414302.txt b/funcom_test/19414302.txt deleted file mode 100644 index b1e567581d91d07fe781043fca55287e5c614abf..0000000000000000000000000000000000000000 --- a/funcom_test/19414302.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Collection getAllManifests() { - File manifestStore = workingContext.getConfiguration().getManifestStore().getModule().getBaseDir(); - - Object[] mList = manifestStore.list(new XMLFilenameFilter()); - - if (mList == null) { - return new ArrayList(); - } - manifests = Arrays.asList(mList); - if (manifests.size() == 0) { - return new ArrayList(); - } - - return manifests; - } - COM: <s> returns a collection of manifest file names located in the the manifest store </s> - diff --git a/funcom_test/19414305.txt b/funcom_test/19414305.txt deleted file mode 100644 index 7b88a78c5f5b1296330bf36826e2608e24b02678..0000000000000000000000000000000000000000 --- a/funcom_test/19414305.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Manifest loadManifestFromHistory() throws LocationException, ManifestException { - - String contextManifest = workingContext.getContextManifestPreference(); - - String manifestId = Preferences.userRoot().get(contextManifest, null); - if (manifestId != null) { - - ManifestFactory manifestFactory = new ManifestFactory(); - ManifestLoader loader = new ManifestLoader(workingContext); - Manifest manifest = manifestFactory.create(workingContext, loader.load(manifestId)); - - return manifest; - } - - return null; - } - COM: <s> retrieves the last used manifest or code null code when none was found </s> - diff --git a/funcom_test/19414427.txt b/funcom_test/19414427.txt deleted file mode 100644 index f19139bd459567e9a56fc8c4e50c7c68aa72f394..0000000000000000000000000000000000000000 --- a/funcom_test/19414427.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testCommandOptions1() { - - Options options = new Options(); - - Option option = new Option("m", "module-name", true, "The module name for the command."); - options.addOption(option); - - CommandLineParser parser = new PosixParser(); - try { - parser.parse(options, new String[]{"-m", "AAA"}); - assertEquals("AAA", options.getOption("m").getValue()); - } catch (ParseException e) { - fail(e.getMessage()); - } - } - COM: <s> tests the code org </s> - diff --git a/funcom_test/19414465.txt b/funcom_test/19414465.txt deleted file mode 100644 index 936245a49bb8323b5d2cdbc25c341a5330ca8010..0000000000000000000000000000000000000000 --- a/funcom_test/19414465.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getModuleBuildOrder(Module module) throws DependencyException { - List toBeExamined = new ArrayList(); - List buildOrder = new ArrayList(); - - toBeExamined.add(module.getName()); // must be by name because dependencies only contain a name. - - calculateModuleBuildOrder(toBeExamined, buildOrder, new ArrayList()); - - return Collections.unmodifiableList(buildOrder); - } - COM: <s> method to determine the correct build order for the specifid module based on </s> - diff --git a/funcom_test/19414478.txt b/funcom_test/19414478.txt deleted file mode 100644 index d13d34ace6a65d433d5adf38a1490127e6d56cde..0000000000000000000000000000000000000000 --- a/funcom_test/19414478.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean removeLocal(Module module) { - - // todo this method is not abstract ! handles CVS only. - - AdminHandler handler = new AdminHandler(module); - if (!handler.isEqualLocation()) { - try { - FileUtils.deleteDirectory(module.getBaseDir()); - } catch (IOException e) { - return false; - } - } - - return true; - } - COM: <s> p checks is code module code should be removed locally </s> - diff --git a/funcom_test/19414501.txt b/funcom_test/19414501.txt deleted file mode 100644 index a0e93ac8e5cabee3927291c4cbc8f5624da9d8f2..0000000000000000000000000000000000000000 --- a/funcom_test/19414501.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Module getModuleFromManifest(String moduleName) throws DependencyException { - Module module = null; - - try { - module = manifest.getModule(moduleName); - } - catch (ManifestException e) { - throw new DependencyException(DependencyException.MODULE_NOT_IN_MANIFEST, e.getMessageArguments()); - } - - return module; - } - COM: <s> helper method to get the specified module from the manifest while translating </s> - diff --git a/funcom_test/19461504.txt b/funcom_test/19461504.txt deleted file mode 100644 index e327d4e4bc25a913d9dbded65b61568524a1ab4a..0000000000000000000000000000000000000000 --- a/funcom_test/19461504.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void refineExtensions(IEventBRoot concreteEventBRoot, IEventBRoot abstractEventBRoot, IProgressMonitor monitor) throws RodinDBException { - for (ISerialisedExtension extension : abstractEventBRoot.getChildrenOfType(ISerialisedExtension.ELEMENT_TYPE)) { - if (extension.hasExtensionId() && extension.getExtensionId().startsWith(EXTENSION_ID)) - refineExtension(concreteEventBRoot, extension, monitor); - } - } - COM: <s> refines all serialised event b emf extensions with the given id </s> - diff --git a/funcom_test/19461511.txt b/funcom_test/19461511.txt deleted file mode 100644 index 1b949449a2c82ad1ee6b6efc9c32ad43638bc1f1..0000000000000000000000000000000000000000 --- a/funcom_test/19461511.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void refineExtension(IEventBRoot concreteEventBRoot, ISerialisedExtension abstractExtensionRoot, IProgressMonitor monitor) throws RodinDBException { - - EventBElement extension = synchroniser.load(abstractExtensionRoot, null, monitor); - - synchroniser.save(refineEventBElement(extension), concreteEventBRoot, monitor); - } - COM: <s> refines component extension </s> - diff --git a/funcom_test/19462086.txt b/funcom_test/19462086.txt deleted file mode 100644 index 864c41f22474ce446861b739c4110563770e2445..0000000000000000000000000000000000000000 --- a/funcom_test/19462086.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - contextEClass = createEClass(CONTEXT); - createEReference(contextEClass, CONTEXT__EXTENDS); - createEAttribute(contextEClass, CONTEXT__EXTENDS_NAMES); - createEReference(contextEClass, CONTEXT__SETS); - createEReference(contextEClass, CONTEXT__CONSTANTS); - createEReference(contextEClass, CONTEXT__AXIOMS); - - constantEClass = createEClass(CONSTANT); - - carrierSetEClass = createEClass(CARRIER_SET); - - axiomEClass = createEClass(AXIOM); - } - COM: <s> creates the meta model objects for the package </s> - diff --git a/funcom_test/19462365.txt b/funcom_test/19462365.txt deleted file mode 100644 index 1acf5e5333d89ae3a362e101a08009dc8ef548a3..0000000000000000000000000000000000000000 --- a/funcom_test/19462365.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EventBLabeled_label_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EventBLabeled_label_feature", "_UI_EventBLabeled_type"), - CoreextensionPackage.Literals.EVENT_BLABELED__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the label feature </s> - diff --git a/funcom_test/19462415.txt b/funcom_test/19462415.txt deleted file mode 100644 index ccb0d85e91be1aece378172387cce7e39c69bdd3..0000000000000000000000000000000000000000 --- a/funcom_test/19462415.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Resource getContainingResource(EObject eObject) { - // stereotype applications may e.g. not specify an eResource but be contained within one. - if (eObject.eResource() != null) { - return eObject.eResource(); - } - for (Resource resourceInScope : getResourcesInScope()) { - if (ModelUtils.contains(resourceInScope, eObject)) { - return resourceInScope; - } - } - return null; - } - COM: <s> determines the containing resource for the given e object </s> - diff --git a/funcom_test/19462955.txt b/funcom_test/19462955.txt deleted file mode 100644 index ab8efb60260c50acf58db1d0890fae0814b3f0f8..0000000000000000000000000000000000000000 --- a/funcom_test/19462955.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void checkConflicts(Set<IAttributeType> otherwiseTypes) { - Set<IAttributeType> intersection = new HashSet<IAttributeType>(otherwiseTypes); - intersection.retainAll(handledAttributes); - - if (intersection.size() > 0) { - PersistencePlugin.getDefault().getLog().log(new Status(IStatus.ERROR, PersistencePlugin.PLUGIN_ID, "Conflicting attribute handlers for: " + intersection.toString())); - } - } - COM: <s> checks whether the given set of </s> - diff --git a/funcom_test/19463492.txt b/funcom_test/19463492.txt deleted file mode 100644 index 824464df97be854288404aef2310f0f42b6632eb..0000000000000000000000000000000000000000 --- a/funcom_test/19463492.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean boundIdentDecsMatch(BoundIdentDecl[] formulaDecs, BoundIdentDecl[] patternDecs){ - if(formulaDecs.length == patternDecs.length){ - int index = 0; - for(BoundIdentDecl pDec: patternDecs){ - BoundIdentDecl fDec = formulaDecs[index]; - if(!ProverUtilities.canUnifyTypes(fDec.getType(), pDec.getType())){ - return false; - } - index++; - } - return true; - } - else - return false; - } - COM: <s> todo fixme this is incomplete </s> - diff --git a/funcom_test/19463544.txt b/funcom_test/19463544.txt deleted file mode 100644 index dac8b27c0002d4ab22251cdc16f4bea323b66537..0000000000000000000000000000000000000000 --- a/funcom_test/19463544.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected String getNewCategory() { - InputDialog entryDialog = new InputDialog(PlatformUI.getWorkbench() - .getActiveWorkbenchWindow().getShell(), "Add category", - "Add category:", getNewInputObject(), null); - if (entryDialog.open() == InputDialog.OK) { - if(TheoryPrefsUtils.contains(list.getItems(), - entryDialog.getValue())){ - return null; - } - return entryDialog.getValue(); - } - return null; - } - COM: <s> the subclasses must override this to return the modified entry </s> - diff --git a/funcom_test/19463564.txt b/funcom_test/19463564.txt deleted file mode 100644 index 6faf910ff97da90447b44c9815bd5c6080abfc73..0000000000000000000000000000000000000000 --- a/funcom_test/19463564.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void elementChanged(ElementChangedEvent event) { - - TheoryDeltaProcessor processor = new TheoryDeltaProcessor(event - .getDelta()); - final ArrayList<IRodinElement> toRefresh = processor.getToRefresh(); - final ArrayList<IRodinElement> toRemove = processor.getToRemove(); - - PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { - public void run() { - cleanUpModel(toRemove); - // refresh the model - for (IRodinElement elem : toRefresh) { - refreshModel(elem); - - } - notifyListeners(toRefresh); - } - }); - } - COM: <s> react to changes in the database </s> - diff --git a/funcom_test/19463659.txt b/funcom_test/19463659.txt deleted file mode 100644 index f7779e6b90cdf266642f2614ab5213e6b2855bee..0000000000000000000000000000000000000000 --- a/funcom_test/19463659.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setIPSStatus(IPSStatus status) { - internal_status = status; - try { - int confidence = status.getConfidence(); - discharged = (status.getConfidence() > IConfidence.REVIEWED_MAX) - && !status.isBroken(); - reviewed = (confidence > IConfidence.PENDING && confidence <= IConfidence.REVIEWED_MAX); - broken = status.isBroken(); - manual = status.getHasManualProof(); - } catch (RodinDBException e) { - UIUtils.log(e, "when acessing " +status); - } - } - COM: <s> set the status of this proof obligation </s> - diff --git a/funcom_test/19463692.txt b/funcom_test/19463692.txt deleted file mode 100644 index 45d2eb09282eb17e2faac04bbf63f023e2a6aaea..0000000000000000000000000000000000000000 --- a/funcom_test/19463692.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void removePressed() { - setPresentsDefaultValue(false); - int index = list.getSelectionIndex(); - if (index >= 0) { - list.remove(index); - if(list.getItemCount() > 0){ - if(index > 0) - afterRemoveIndex = index-1; - else - afterRemoveIndex = 0; - } - selectionChanged(); - } - } - COM: <s> notifies that the remove button has been pressed </s> - diff --git a/funcom_test/19463762.txt b/funcom_test/19463762.txt deleted file mode 100644 index 5befc9c067d78e2e5c842a8e4d34be2cf2e23104..0000000000000000000000000000000000000000 --- a/funcom_test/19463762.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void refresh() { - if (form == null) - return; - if (form.getContent().isDisposed()) - return; - if (isActive() && needsUpdate) { - // We are switching to this page - refresh it - // if needed. - final Display display = this.getEditorSite().getShell() - .getDisplay(); - display.syncExec(new Runnable() { - public void run() { - // Reset the content string of the form text - setFormText(new NullProgressMonitor()); - } - }); - needsUpdate = false; - } - } - COM: <s> refresh the page contents </s> - diff --git a/funcom_test/19464449.txt b/funcom_test/19464449.txt deleted file mode 100644 index 7085c01bb396781a33d9d6053e5b70209694c2e7..0000000000000000000000000000000000000000 --- a/funcom_test/19464449.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: protected void addErrorNotExist(TaskElement taskElement, String elementName, Token token){ - error_description.put(new ErrorLocation(token.beginLine, token.beginColumn), Messages.bind(Messages.user_taskElement_does_not_exist,taskElement.getDescription(), elementName)); //$NON-NLS-1$ - } - COM: <s> method to add errors when task element named element name does not exist </s> - diff --git a/funcom_test/19464460.txt b/funcom_test/19464460.txt deleted file mode 100644 index 34e43829bc7910911fb2980c88bd90b676cf7f77..0000000000000000000000000000000000000000 --- a/funcom_test/19464460.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void addErrorParse(int[] expectedKeywords, Token token){ - String keywords = ""; //$NON-NLS-1$ - final String append_and = Messages.user_and; - for(int keyword: expectedKeywords){ - keywords = TaskingGrammarUtils.getKeyWord(keyword) + append_and; - } - keywords = keywords.substring(0, keywords.lastIndexOf(append_and)); - error_description.put(new ErrorLocation(token.beginLine, token.beginColumn), Messages.bind(Messages.user_parsing_error_keywords, keywords)); //$NON-NLS-2$ - } - COM: <s> method to add error when a set of keywords are expected </s> - diff --git a/funcom_test/19466045.txt b/funcom_test/19466045.txt deleted file mode 100644 index d11bcd12c5dbdde3fe8e0681ce7188339787ec87..0000000000000000000000000000000000000000 --- a/funcom_test/19466045.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addVariableNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Output_variableName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Output_variableName_feature", "_UI_Output_type"), - CompositeControlPackage.Literals.OUTPUT__VARIABLE_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the variable name feature </s> - diff --git a/funcom_test/19466073.txt b/funcom_test/19466073.txt deleted file mode 100644 index f535875d037071141bd453c31c4cec369ce15060..0000000000000000000000000000000000000000 --- a/funcom_test/19466073.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEventNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EventWrapper_eventName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EventWrapper_eventName_feature", "_UI_EventWrapper_type"), - CompositeControlPackage.Literals.EVENT_WRAPPER__EVENT_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the event name feature </s> - diff --git a/funcom_test/19466112.txt b/funcom_test/19466112.txt deleted file mode 100644 index 2bfd8349ba98597650275f4ac33c85999a75b6df..0000000000000000000000000000000000000000 --- a/funcom_test/19466112.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocalEventPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SynchEvents_localEvent_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SynchEvents_localEvent_feature", "_UI_SynchEvents_type"), - CompositeControlPackage.Literals.SYNCH_EVENTS__LOCAL_EVENT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the local event feature </s> - diff --git a/funcom_test/19466114.txt b/funcom_test/19466114.txt deleted file mode 100644 index 44394e7d6b41a70ef26d01d1777e936342d9abca..0000000000000000000000000000000000000000 --- a/funcom_test/19466114.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRemoteEventPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SynchEvents_remoteEvent_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SynchEvents_remoteEvent_feature", "_UI_SynchEvents_type"), - CompositeControlPackage.Literals.SYNCH_EVENTS__REMOTE_EVENT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the remote event feature </s> - diff --git a/funcom_test/19466347.txt b/funcom_test/19466347.txt deleted file mode 100644 index c73cf140793961ad5f5ac63bf6b9344d787b6c97..0000000000000000000000000000000000000000 --- a/funcom_test/19466347.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addBasePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AddressedVariable_base_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AddressedVariable_base_feature", "_UI_AddressedVariable_type"), - TaskingPackage.Literals.ADDRESSED_VARIABLE__BASE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the base feature </s> - diff --git a/funcom_test/19466353.txt b/funcom_test/19466353.txt deleted file mode 100644 index 7e29a6150baad918c64e890a75b39d0377f74930..0000000000000000000000000000000000000000 --- a/funcom_test/19466353.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAddressPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AddressedVariable_address_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AddressedVariable_address_feature", "_UI_AddressedVariable_type"), - TaskingPackage.Literals.ADDRESSED_VARIABLE__ADDRESS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the address feature </s> - diff --git a/funcom_test/19466375.txt b/funcom_test/19466375.txt deleted file mode 100644 index 803bb1a59fd0f3a9b0b91e4d70682f811bc53967..0000000000000000000000000000000000000000 --- a/funcom_test/19466375.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addImplementationTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Implementation_implementationType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Implementation_implementationType_feature", "_UI_Implementation_type"), - TaskingPackage.Literals.IMPLEMENTATION__IMPLEMENTATION_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the implementation type feature </s> - diff --git a/funcom_test/19466384.txt b/funcom_test/19466384.txt deleted file mode 100644 index 1fdc61ff66a03588ab0a246861968e345517f6e1..0000000000000000000000000000000000000000 --- a/funcom_test/19466384.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPeriodPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PeriodicTaskType_period_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PeriodicTaskType_period_feature", "_UI_PeriodicTaskType_type"), - TaskingPackage.Literals.PERIODIC_TASK_TYPE__PERIOD, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the period feature </s> - diff --git a/funcom_test/19466412.txt b/funcom_test/19466412.txt deleted file mode 100644 index 7b0d2ca37e12204b71bc9663687b434b15182547..0000000000000000000000000000000000000000 --- a/funcom_test/19466412.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addParameterTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ParameterType_parameterType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ParameterType_parameterType_feature", "_UI_ParameterType_type"), - TaskingPackage.Literals.PARAMETER_TYPE__PARAMETER_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the parameter type feature </s> - diff --git a/funcom_test/19466421.txt b/funcom_test/19466421.txt deleted file mode 100644 index f61f2fa537a9181bd5a59504bf3821f48d29165b..0000000000000000000000000000000000000000 --- a/funcom_test/19466421.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTemporaryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SubroutineMetaData_temporary_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SubroutineMetaData_temporary_feature", "_UI_SubroutineMetaData_type"), - RequiredMetadataPackage.Literals.SUBROUTINE_META_DATA__TEMPORARY, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the temporary feature </s> - diff --git a/funcom_test/19466454.txt b/funcom_test/19466454.txt deleted file mode 100644 index 288afef5318feefea8450103536259bf686ef749..0000000000000000000000000000000000000000 --- a/funcom_test/19466454.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCaseExpressionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Case_caseExpression_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Case_caseExpression_feature", "_UI_Case_type"), - Il1Package.Literals.CASE__CASE_EXPRESSION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the case expression feature </s> - diff --git a/funcom_test/19466512.txt b/funcom_test/19466512.txt deleted file mode 100644 index 0ca8dca3bd43275889aa823128649a2a4fb62f51..0000000000000000000000000000000000000000 --- a/funcom_test/19466512.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMachineNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Call_machineName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Call_machineName_feature", "_UI_Call_type"), - Il1Package.Literals.CALL__MACHINE_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the machine name feature </s> - diff --git a/funcom_test/19466518.txt b/funcom_test/19466518.txt deleted file mode 100644 index 26d3742fa9b577bbff7112e72a85b39bf3242afc..0000000000000000000000000000000000000000 --- a/funcom_test/19466518.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addProjectNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Call_projectName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Call_projectName_feature", "_UI_Call_type"), - Il1Package.Literals.CALL__PROJECT_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the project name feature </s> - diff --git a/funcom_test/19466552.txt b/funcom_test/19466552.txt deleted file mode 100644 index a776f521cc9aaf383c5b8697fa292609b54bf6af..0000000000000000000000000000000000000000 --- a/funcom_test/19466552.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRelatedEventPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_If_relatedEvent_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_If_relatedEvent_feature", "_UI_If_type"), - Il1Package.Literals.IF__RELATED_EVENT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the related event feature </s> - diff --git a/funcom_test/19466609.txt b/funcom_test/19466609.txt deleted file mode 100644 index 167a90ae42b23e15d222bac102c655259bde2632..0000000000000000000000000000000000000000 --- a/funcom_test/19466609.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFullInitialisationExpressionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_FullyTranslatedDecl_fullInitialisationExpression_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_FullyTranslatedDecl_fullInitialisationExpression_feature", "_UI_FullyTranslatedDecl_type"), - Il1Package.Literals.FULLY_TRANSLATED_DECL__FULL_INITIALISATION_EXPRESSION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the full initialisation expression feature </s> - diff --git a/funcom_test/19466619.txt b/funcom_test/19466619.txt deleted file mode 100644 index 82cc150734b6bceb7c4a81f62fff33a4267f1a51..0000000000000000000000000000000000000000 --- a/funcom_test/19466619.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLiteralValuesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Enumeration_literalValues_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Enumeration_literalValues_feature", "_UI_Enumeration_type"), - Il1Package.Literals.ENUMERATION__LITERAL_VALUES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the literal values feature </s> - diff --git a/funcom_test/19466627.txt b/funcom_test/19466627.txt deleted file mode 100644 index 0d93613abb1a0065669af2ea01fc4f889f81cd1c..0000000000000000000000000000000000000000 --- a/funcom_test/19466627.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOrderNumberPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Parameter_orderNumber_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Parameter_orderNumber_feature", "_UI_Parameter_type"), - Il1Package.Literals.PARAMETER__ORDER_NUMBER, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the order number feature </s> - diff --git a/funcom_test/19466631.txt b/funcom_test/19466631.txt deleted file mode 100644 index 89f8c54a65b3208a04383a20a295ed4fc23a711c..0000000000000000000000000000000000000000 --- a/funcom_test/19466631.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPartialInitialisationExpressionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PartiallyTranslatedDecl_partialInitialisationExpression_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PartiallyTranslatedDecl_partialInitialisationExpression_feature", "_UI_PartiallyTranslatedDecl_type"), - Il1Package.Literals.PARTIALLY_TRANSLATED_DECL__PARTIAL_INITIALISATION_EXPRESSION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the partial initialisation expression feature </s> - diff --git a/funcom_test/19466657.txt b/funcom_test/19466657.txt deleted file mode 100644 index 4b52b52c1cc3fb6f21b75a000724c403450d3848..0000000000000000000000000000000000000000 --- a/funcom_test/19466657.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCaseValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CaseStatement_caseValue_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_CaseStatement_caseValue_feature", "_UI_CaseStatement_type"), - Il1Package.Literals.CASE_STATEMENT__CASE_VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the case value feature </s> - diff --git a/funcom_test/19466669.txt b/funcom_test/19466669.txt deleted file mode 100644 index b52cd84c6343c7ef2541f26ee25e4025ae3d6001..0000000000000000000000000000000000000000 --- a/funcom_test/19466669.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addParentEventNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Command_ParentEventName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Command_ParentEventName_feature", "_UI_Command_type"), - Il1Package.Literals.COMMAND__PARENT_EVENT_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the parent event name feature </s> - diff --git a/funcom_test/19466681.txt b/funcom_test/19466681.txt deleted file mode 100644 index d7045faf59b5b886eabe2b37a37075a385d8571c..0000000000000000000000000000000000000000 --- a/funcom_test/19466681.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addModePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_FormalParamDecl_mode_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_FormalParamDecl_mode_feature", "_UI_FormalParamDecl_type"), - Il1Package.Literals.FORMAL_PARAM_DECL__MODE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the mode feature </s> - diff --git a/funcom_test/19466699.txt b/funcom_test/19466699.txt deleted file mode 100644 index 87fa4cd2e3dcb900de7e79d8c5fadcde6978337b..0000000000000000000000000000000000000000 --- a/funcom_test/19466699.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInitialValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Declaration_initialValue_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Declaration_initialValue_feature", "_UI_Declaration_type"), - Il1Package.Literals.DECLARATION__INITIAL_VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the initial value feature </s> - diff --git a/funcom_test/19466700.txt b/funcom_test/19466700.txt deleted file mode 100644 index 30ad4948b50e39d2bb48c19c2d7f21c87aca5e6d..0000000000000000000000000000000000000000 --- a/funcom_test/19466700.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNumberBasePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AddressedDeclaration_numberBase_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AddressedDeclaration_numberBase_feature", "_UI_AddressedDeclaration_type"), - RequiredFormulaPackage.Literals.ADDRESSED_DECLARATION__NUMBER_BASE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the number base feature </s> - diff --git a/funcom_test/19466707.txt b/funcom_test/19466707.txt deleted file mode 100644 index 3f05a8bbfface68b319f34d8923de0c1a08b76d8..0000000000000000000000000000000000000000 --- a/funcom_test/19466707.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addComponentNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Declaration_ComponentName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Declaration_ComponentName_feature", "_UI_Declaration_type"), - Il1Package.Literals.DECLARATION__COMPONENT_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the component name feature </s> - diff --git a/funcom_test/19467494.txt b/funcom_test/19467494.txt deleted file mode 100644 index 0ce86d428e6c57f178ee23efd207e199aa50fde8..0000000000000000000000000000000000000000 --- a/funcom_test/19467494.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMachinePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IncludedMachine_machine_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IncludedMachine_machine_feature", "_UI_IncludedMachine_type"), - CompositionmodelPackage.eINSTANCE.getIncludedMachine_Machine(), - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the machine feature </s> - diff --git a/funcom_test/19467503.txt b/funcom_test/19467503.txt deleted file mode 100644 index b938cf0c65d18ec7696b48c88dea6189f3e5a7d3..0000000000000000000000000000000000000000 --- a/funcom_test/19467503.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCombinesEventsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComposedEvent_combinesEvents_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComposedEvent_combinesEvents_feature", "_UI_ComposedEvent_type"), - CompositionmodelPackage.eINSTANCE.getComposedEvent_CombinesEvents(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the combines events feature </s> - diff --git a/funcom_test/19467521.txt b/funcom_test/19467521.txt deleted file mode 100644 index 584e19a721a3d73daaf727a043f58a19e422fa52..0000000000000000000000000000000000000000 --- a/funcom_test/19467521.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addComposesEventsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComposedMachine_composesEvents_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComposedMachine_composesEvents_feature", "_UI_ComposedMachine_type"), - CompositionmodelPackage.eINSTANCE.getComposedMachine_ComposesEvents(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the composes events feature </s> - diff --git a/funcom_test/19467539.txt b/funcom_test/19467539.txt deleted file mode 100644 index ac5208c5ccc786ac955128c74969b8ba87f7658a..0000000000000000000000000000000000000000 --- a/funcom_test/19467539.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEventPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CombinedEventMachine_event_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_CombinedEventMachine_event_feature", "_UI_CombinedEventMachine_type"), - CompositionmodelPackage.eINSTANCE.getCombinedEventMachine_Event(), - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the event feature </s> - diff --git a/funcom_test/19467748.txt b/funcom_test/19467748.txt deleted file mode 100644 index f921ba1d8ba4de4261a07329180287bb4363ed65..0000000000000000000000000000000000000000 --- a/funcom_test/19467748.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setValue(String cmpName, String... valuesMap) { - if (valuesMap.length % 2 != 0) - return; - sendMessage(String.format(SET_VALUE_PATTERN, cmpName)); - for (int i = 0; i < valuesMap.length - 1; i = i + 2) { - sendMessage(String.format(VALUE_PATTERN, valuesMap[i], - valuesMap[i + 1])); - } - sendMessage(END_SET_VALUE_PATTERN); - sendLn(); - } - COM: <s> set a values to a data of a component </s> - diff --git a/funcom_test/19467924.txt b/funcom_test/19467924.txt deleted file mode 100644 index d4a80a8d41dbdc71ef7d10169e63486f28323508..0000000000000000000000000000000000000000 --- a/funcom_test/19467924.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateVariableStates(List<IComponentDeltaState> deltas) { - for (UIModel m : models.values()) { - m.updateVariableValue(getDelta(deltas, m.getName())); - } - for (ComponentModel c : contexts.values()) { - c.updateVariableValue(getDelta(deltas, c.getName())); - } - - } - COM: <s> update each variables of the component </s> - diff --git a/funcom_test/19467984.txt b/funcom_test/19467984.txt deleted file mode 100644 index 38127ce166f1305143a6db11ac1280596a16db4a..0000000000000000000000000000000000000000 --- a/funcom_test/19467984.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void updateElements(final Object[] elements) { - final Control control = viewer.getControl(); - if (control.isDisposed())return; - final Display display = control.getDisplay(); - if (display.getThread() == Thread.currentThread()){ - viewer.update(elements, upd); - } - else{ - display.asyncExec(new Runnable(){ - - public void run() { - if (control.isDisposed())return; - viewer.update(elements, upd); - } - - }); - } - } - COM: <s> updates the given elements presentation when one or more of their </s> - diff --git a/funcom_test/19467993.txt b/funcom_test/19467993.txt deleted file mode 100644 index 2334688d1ca04ed392024bacc16d0e060ce989ea..0000000000000000000000000000000000000000 --- a/funcom_test/19467993.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void createSectionToolbar(Section section, FormToolkit toolkit) { - ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT); - - Composite comp = toolkit.createComposite(section, SWT.WRAP); - GridLayout layout = new GridLayout(); - layout.numColumns = 2; - layout.verticalSpacing = 0; - layout.marginHeight = 0; - layout.marginWidth = 0; - comp.setLayout(layout); - toolBarManager.createControl(comp); - toolBarManager.add(applyAction); - applyAction.setEnabled(false); - toolBarManager.update(true); - - section.setTextClient(comp); - - } - COM: <s> create the toolbar of the events section </s> - diff --git a/funcom_test/19468000.txt b/funcom_test/19468000.txt deleted file mode 100644 index 8475873762f35d1f62c47232855564ff60614949..0000000000000000000000000000000000000000 --- a/funcom_test/19468000.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void createClient(Section section, FormToolkit toolkit) { - section.setText(SECTION_TITLE); - section.setDescription(SECTION_DESCRIPTION); - Composite comp = toolkit.createComposite(section); - GridLayout layout = new GridLayout(); - layout.numColumns = 2; - layout.verticalSpacing = 5; - comp.setLayout(layout); - - - - Label label = toolkit.createLabel(comp, "Abstract machine: "); - label.setLayoutData(new GridData()); - - toolkit.paintBordersFor(comp); - section.setClient(comp); - } - COM: <s> creat the content of the section </s> - diff --git a/funcom_test/19468216.txt b/funcom_test/19468216.txt deleted file mode 100644 index e31bfec671db10f7d254cccc07db3ba504850811..0000000000000000000000000000000000000000 --- a/funcom_test/19468216.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addAllAbstract(ITypeEnvironment te) throws RodinDBException { - ISCMachineRoot model = (ISCMachineRoot) event.getParent(); - IRodinFile[] abss = model.getAbstractSCMachines(); - if (abss.length == 1) { - ITypeEnvironment absEnv = ((ISCMachineRoot) abss[0].getRoot()) - .getTypeEnvironment(ff); - for (ISCEvent abs : event.getAbstractSCEvents()) { - te.addAll(abs.getTypeEnvironment(absEnv, ff)); - } - } - - } - COM: <s> add abstract environment of each refined event </s> - diff --git a/funcom_test/19468458.txt b/funcom_test/19468458.txt deleted file mode 100644 index c27e81f855439bf8f5cb01c02d0def9cc71bb5e4..0000000000000000000000000000000000000000 --- a/funcom_test/19468458.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private JButton getConnect() { - if (connect == null) { - connect = new JButton(); - connect.addActionListener(new ActionListener() { - - public void actionPerformed(ActionEvent e) { - cD.setVisible(true); - new AnimationConnection(jTextArea, cD - .getAnimationName(), cD.getProjectName(), cD - .getModelName(), cD.getHostName(), cD - .getPortNumber()); - - } - }); - connect.setText("Connect"); - } - return connect; - } - COM: <s> this method initializes connect </s> - diff --git a/funcom_test/19468615.txt b/funcom_test/19468615.txt deleted file mode 100644 index c0ed4ecfd2e3e9ed51e69635c5f0e2feb5b31233..0000000000000000000000000000000000000000 --- a/funcom_test/19468615.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean finish() { - if (!ensureTargetIsValid(new File(getDestinationValue()))) { - return false; - } - - // Save dirty editors if possible but do not stop if not all are saved - // saveDirtyEditors(); - // about to invoke the operation so save our state - saveWidgetValues(); - return executeExportOperation(new AnimationExportOperation( - getDestinationValue(), this, checkeds)); - } - COM: <s> the finish button was pressed </s> - diff --git a/funcom_test/19468774.txt b/funcom_test/19468774.txt deleted file mode 100644 index a8b4be9d1d5935388cbec80cbeb7a26395cdd644..0000000000000000000000000000000000000000 --- a/funcom_test/19468774.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected void internalSaveWidgetValues() { - // update directory names history - IDialogSettings settings = getDialogSettings(); - if (settings != null) { - String[] directoryNames = settings - .getArray(STORE_DESTINATION_NAMES_ID); - if (directoryNames == null) { - directoryNames = new String[0]; - } - - directoryNames = addToHistory(directoryNames, getDestinationValue()); - settings.put(STORE_DESTINATION_NAMES_ID, directoryNames); - - // options - settings.put(STORE_OVERWRITE_EXISTING_FILES_ID, - overwriteExistingFilesCheckbox.getSelection()); - - } - } - COM: <s> hook method for saving widget values for restoration by the next instance </s> - diff --git a/funcom_test/19469549.txt b/funcom_test/19469549.txt deleted file mode 100644 index 41600fe49b9cdea4585ea3de041dbffaf586cca0..0000000000000000000000000000000000000000 --- a/funcom_test/19469549.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public UMLBtype basicGetType() { - if (getTranslation()==translationKind.STATE_SETS){ - if (eContainer() instanceof UMLBClass){ - return ((UMLBtype) eContainer()).getType(); - }else{ - UMLBProject p = (UMLBProject) this.getContaining(UMLBPackage.eINSTANCE.getUMLBProject()); - for (UMLBTypeExpression te : p.getTypeExpressions()){ - if (te.getName().equals("BOOL")){ - return te; - } - } - UMLBTypeExpression te = UMLBFactory.eINSTANCE.createUMLBTypeExpression(); - te.setName("BOOL"); - return te; - } - }else - return this; - } - COM: <s> statemachines with translation kind functional are types umlbtype so just return this instance </s> - diff --git a/funcom_test/19469711.txt b/funcom_test/19469711.txt deleted file mode 100644 index b0723f737d032b18b9571adfebbd64a38548d9b7..0000000000000000000000000000000000000000 --- a/funcom_test/19469711.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addPrimitiveTypes(){ - EList<UMLBTypeExpression> te=getTypeExpressions(); - te.add(new UMLBTypeExpressionImpl(RodinKeyboardPlugin.getDefault().translate("BOOL"))); - te.add(new UMLBTypeExpressionImpl(RodinKeyboardPlugin.getDefault().translate("NAT"))); - te.add(new UMLBTypeExpressionImpl(RodinKeyboardPlugin.getDefault().translate("NAT1"))); - te.add(new UMLBTypeExpressionImpl(RodinKeyboardPlugin.getDefault().translate("INT"))); - - } - COM: <s> creates instances of umlbtype expression for each event b primitive type </s> - diff --git a/funcom_test/19469740.txt b/funcom_test/19469740.txt deleted file mode 100644 index a5e13be68c7df0c0261bc269a4afa47632f1593a..0000000000000000000000000000000000000000 --- a/funcom_test/19469740.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getLabel() { - if (getType()!=null){ - //return ((UMLBelement)getExtends()).getContaining(UMLBPackage.eINSTANCE.getUMLBconstruct()).getName()+"::"+((UMLBelement)getType()).getName(); - return ((UMLBelement)getType()).getName(); - } - else return null; - } - COM: <s> get the label for this umlbextended class type </s> - diff --git a/funcom_test/19469840.txt b/funcom_test/19469840.txt deleted file mode 100644 index c64c6a943d8541754d25bf9320fc435dd74848c6..0000000000000000000000000000000000000000 --- a/funcom_test/19469840.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void umlbTools(final UMLBProject umlb, final boolean clean, final IProgressMonitor monitor) { - getUmlbTools(); - for (IUMLBtool element : umlbtools) { - try{ - if (clean){ - element.clean(umlb,monitor); - }else{ - element.run(umlb,monitor); - } - } catch (Exception e){ - Activator.getDefault().logError(e, "failed running umlbTool extender for project "+umlb.getName()+" \""); - } - } - } - COM: <s> main method for the umlbtools extension point </s> - diff --git a/funcom_test/19471196.txt b/funcom_test/19471196.txt deleted file mode 100644 index 8ab4f44b404d6d1b09b38571d7e08e25853bf020..0000000000000000000000000000000000000000 --- a/funcom_test/19471196.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean validateUMLBabstractState_noincomerstoinitial(UMLBabstractState umlBabstractState, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (umlBabstractState.isInitial() && !umlBabstractState.getIncoming().isEmpty()) { - if (diagnostics != null) { - diagnostics.add - (new BasicDiagnostic - (Diagnostic.ERROR, - UMLBValidator.DIAGNOSTIC_SOURCE, - UMLBValidator.UML_BABSTRACT_STATE__NOINCOMERSTOINITIAL, - "There must be no incoming transitions to an initial pseudo-state", - new Object [] { umlBabstractState })); - } - return false; - } - return true; - } - COM: <s> validates the noincomerstoinitial constraint of em uml babstract state em </s> - diff --git a/funcom_test/19471246.txt b/funcom_test/19471246.txt deleted file mode 100644 index 46fcfd4e29bb4400877d9815d2fd02919fafac00..0000000000000000000000000000000000000000 --- a/funcom_test/19471246.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean validateUMLBabstractState_notransitionsfromfinal(UMLBabstractState umlBabstractState, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (umlBabstractState.isFinal() && !umlBabstractState.getOutgoing().isEmpty()) { - if (diagnostics != null) { - diagnostics.add - (new BasicDiagnostic - (Diagnostic.ERROR, - UMLBValidator.DIAGNOSTIC_SOURCE, - UMLBValidator.UML_BABSTRACT_STATE__NOTRANSITIONSFROMFINAL, - "There must be no outgoing transitions from a final pseudo-state", - new Object [] { umlBabstractState })); - } - return false; - } - return true; - } - COM: <s> validates the notransitionsfromfinal constraint of em uml babstract state em </s> - diff --git a/funcom_test/19471333.txt b/funcom_test/19471333.txt deleted file mode 100644 index 08d0d78cd018152572c3cf75c08e02f5171a1f73..0000000000000000000000000000000000000000 --- a/funcom_test/19471333.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean validateUMLBabstractState_oneOutgoingFromSalmiakki(UMLBabstractState umlBabstractState, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (umlBabstractState.isSalmiakki() && umlBabstractState.getOutgoing().size()!=1) { - if (diagnostics != null) { - diagnostics.add - (new BasicDiagnostic - (Diagnostic.ERROR, - UMLBValidator.DIAGNOSTIC_SOURCE, - UMLBValidator.UML_BABSTRACT_STATE__ONE_OUTGOING_FROM_SALMIAKKI, - "There must be exactly one outgoing branch from an OR pseudo-state", - new Object [] { umlBabstractState })); - } - return false; - } - return true; - } - COM: <s> validates the one outgoing from salmiakki constraint of em uml babstract state em </s> - diff --git a/funcom_test/19472690.txt b/funcom_test/19472690.txt deleted file mode 100644 index 817bd55bfaa505fd6361265f6a2d46808a3d5824..0000000000000000000000000000000000000000 --- a/funcom_test/19472690.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void handleComboModified() { - Object newValue = getNewValue(combo.getSelectionIndex()); - if (newValue!=owner.eGet(getFeature())) { - DiagramUtilities.executeCommand(getEditingDomain(), SetCommand.create(getEditingDomain(), owner, getFeature(), newValue)); - } - } - COM: <s> handle the combo modified event </s> - diff --git a/funcom_test/19472709.txt b/funcom_test/19472709.txt deleted file mode 100644 index d7112c9763388c5538af275505ed0e47450fcda2..0000000000000000000000000000000000000000 --- a/funcom_test/19472709.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected Object getNewValue(final int index){ - List<Object> possVals = getComboValues(); - if (possVals!=null) { - Object newValue = possVals.get(index); - if (newValue instanceof EEnumLiteral) newValue = ((EEnumLiteral)newValue).getInstance(); // for enumerations need to convert to the associated EEnum instance - return newValue; - } - return null; - } - COM: <s> get the new selected value of the feature </s> - diff --git a/funcom_test/19472714.txt b/funcom_test/19472714.txt deleted file mode 100644 index 5414c0eba715dc8cc1441e646b714110a97a2f5e..0000000000000000000000000000000000000000 --- a/funcom_test/19472714.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected String getLabelText(){ - String label = "<unknown feature>"; - if (getFeature() instanceof EStructuralFeature){ - label= getFeature().getName(); - if (label.startsWith("UMLB")) label=label.substring(4); - label=label.substring(0,1).toUpperCase()+label.substring(1); - if (label.equals("TypeProvider")) label = "Type"; - if (owner instanceof UMLBTypeExpression && label.equals("Name")) label = "Expression"; - } - return label; - } - COM: <s> get the label for the combo field for the section </s> - diff --git a/funcom_test/19475560.txt b/funcom_test/19475560.txt deleted file mode 100644 index 9547470354a520774f90ff4803e954b1eefe16af..0000000000000000000000000000000000000000 --- a/funcom_test/19475560.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addElaboratesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBTransition_elaborates_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBTransition_elaborates_feature", "_UI_UMLBTransition_type"), - UMLBPackage.Literals.UMLB_TRANSITION__ELABORATES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the elaborates feature </s> - diff --git a/funcom_test/19475570.txt b/funcom_test/19475570.txt deleted file mode 100644 index 03a82353e4f1f8ed1094b7ab7c7706dd6887a130..0000000000000000000000000000000000000000 --- a/funcom_test/19475570.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIsElaboratedByPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBTransition_isElaboratedBy_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBTransition_isElaboratedBy_feature", "_UI_UMLBTransition_type"), - UMLBPackage.Literals.UMLB_TRANSITION__IS_ELABORATED_BY, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the is elaborated by feature </s> - diff --git a/funcom_test/19475578.txt b/funcom_test/19475578.txt deleted file mode 100644 index 5183fd860422f56daa6fd0995e6fa4ee01d4358d..0000000000000000000000000000000000000000 --- a/funcom_test/19475578.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDisjunctsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBTransition_disjuncts_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBTransition_disjuncts_feature", "_UI_UMLBTransition_type"), - UMLBPackage.Literals.UMLB_TRANSITION__DISJUNCTS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the disjuncts feature </s> - diff --git a/funcom_test/19475584.txt b/funcom_test/19475584.txt deleted file mode 100644 index bef4f1d37504edd650d66bb70653522c85619b5b..0000000000000000000000000000000000000000 --- a/funcom_test/19475584.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDisjunctByPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBTransition_disjunctBy_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBTransition_disjunctBy_feature", "_UI_UMLBTransition_type"), - UMLBPackage.Literals.UMLB_TRANSITION__DISJUNCT_BY, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the disjunct by feature </s> - diff --git a/funcom_test/19475585.txt b/funcom_test/19475585.txt deleted file mode 100644 index 9a3289a23f6c8e3b9105fbc62fbad3cc3bd7478c..0000000000000000000000000000000000000000 --- a/funcom_test/19475585.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTypeProviderPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBtypedElement_typeProvider_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBtypedElement_typeProvider_feature", "_UI_UMLBtypedElement_type"), - UMLBPackage.Literals.UML_BTYPED_ELEMENT__TYPE_PROVIDER, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the type provider feature </s> - diff --git a/funcom_test/19475620.txt b/funcom_test/19475620.txt deleted file mode 100644 index 8ab97ca0179e717ca15ea2eef68c2648d7703ed2..0000000000000000000000000000000000000000 --- a/funcom_test/19475620.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBEventVariable_local_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBEventVariable_local_feature", "_UI_UMLBEventVariable_type"), - UMLBPackage.Literals.UMLB_EVENT_VARIABLE__LOCAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the local feature </s> - diff --git a/funcom_test/19475631.txt b/funcom_test/19475631.txt deleted file mode 100644 index a94988abc15f2f91caa4f6388595cedef325c175..0000000000000000000000000000000000000000 --- a/funcom_test/19475631.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMarkedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBelement_marked_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBelement_marked_feature", "_UI_UMLBelement_type"), - UMLBPackage.Literals.UML_BELEMENT__MARKED, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the marked feature </s> - diff --git a/funcom_test/19475638.txt b/funcom_test/19475638.txt deleted file mode 100644 index 83bc59b8bede6b355601b569609655b44f367f8c..0000000000000000000000000000000000000000 --- a/funcom_test/19475638.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOutgoingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBabstractState_outgoing_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBabstractState_outgoing_feature", "_UI_UMLBabstractState_type"), - UMLBPackage.Literals.UML_BABSTRACT_STATE__OUTGOING, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the outgoing feature </s> - diff --git a/funcom_test/19475639.txt b/funcom_test/19475639.txt deleted file mode 100644 index 99288ae586fffc8a6236cd94443406242fc3aa55..0000000000000000000000000000000000000000 --- a/funcom_test/19475639.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSurjectivePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBproperty_surjective_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBproperty_surjective_feature", "_UI_UMLBproperty_type"), - UMLBPackage.Literals.UML_BPROPERTY__SURJECTIVE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the surjective feature </s> - diff --git a/funcom_test/19475640.txt b/funcom_test/19475640.txt deleted file mode 100644 index 9c99c8120fc472c59c52f42f9f66d9d86784964e..0000000000000000000000000000000000000000 --- a/funcom_test/19475640.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addErrorsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBelement_errors_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBelement_errors_feature", "_UI_UMLBelement_type"), - UMLBPackage.Literals.UML_BELEMENT__ERRORS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the errors feature </s> - diff --git a/funcom_test/19475645.txt b/funcom_test/19475645.txt deleted file mode 100644 index 1642c248c208ab01fd3177d52a611b85453e5ff0..0000000000000000000000000000000000000000 --- a/funcom_test/19475645.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInjectivePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBproperty_injective_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBproperty_injective_feature", "_UI_UMLBproperty_type"), - UMLBPackage.Literals.UML_BPROPERTY__INJECTIVE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the injective feature </s> - diff --git a/funcom_test/19475648.txt b/funcom_test/19475648.txt deleted file mode 100644 index b2a0fbda126e72c21228dd7aea89a4b92f94d8af..0000000000000000000000000000000000000000 --- a/funcom_test/19475648.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIncomingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBabstractState_incoming_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBabstractState_incoming_feature", "_UI_UMLBabstractState_type"), - UMLBPackage.Literals.UML_BABSTRACT_STATE__INCOMING, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the incoming feature </s> - diff --git a/funcom_test/19475651.txt b/funcom_test/19475651.txt deleted file mode 100644 index a4210c60d06171f8ef7409cf4d790dbf2a7df0b8..0000000000000000000000000000000000000000 --- a/funcom_test/19475651.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTotalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBproperty_total_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBproperty_total_feature", "_UI_UMLBproperty_type"), - UMLBPackage.Literals.UML_BPROPERTY__TOTAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the total feature </s> - diff --git a/funcom_test/19475656.txt b/funcom_test/19475656.txt deleted file mode 100644 index ac56304ffc4bb3d432c3661101b1a0c63a5913bb..0000000000000000000000000000000000000000 --- a/funcom_test/19475656.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFunctionalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBproperty_functional_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBproperty_functional_feature", "_UI_UMLBproperty_type"), - UMLBPackage.Literals.UML_BPROPERTY__FUNCTIONAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the functional feature </s> - diff --git a/funcom_test/19475658.txt b/funcom_test/19475658.txt deleted file mode 100644 index 7ccbbe5307c9a85d169a02ec5ebe5f91f1ababbe..0000000000000000000000000000000000000000 --- a/funcom_test/19475658.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFinalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBabstractState_final_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBabstractState_final_feature", "_UI_UMLBabstractState_type"), - UMLBPackage.Literals.UML_BABSTRACT_STATE__FINAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the final feature </s> - diff --git a/funcom_test/19475671.txt b/funcom_test/19475671.txt deleted file mode 100644 index 672b7f0a25fc34fc38add91cb534c6f28b48565d..0000000000000000000000000000000000000000 --- a/funcom_test/19475671.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInitialPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBabstractState_initial_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBabstractState_initial_feature", "_UI_UMLBabstractState_type"), - UMLBPackage.Literals.UML_BABSTRACT_STATE__INITIAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the initial feature </s> - diff --git a/funcom_test/19475678.txt b/funcom_test/19475678.txt deleted file mode 100644 index cae7fdaae9481d79ef6f90277f7566ea9a264430..0000000000000000000000000000000000000000 --- a/funcom_test/19475678.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSalmiakkiPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBabstractState_salmiakki_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBabstractState_salmiakki_feature", "_UI_UMLBabstractState_type"), - UMLBPackage.Literals.UML_BABSTRACT_STATE__SALMIAKKI, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the salmiakki feature </s> - diff --git a/funcom_test/19475679.txt b/funcom_test/19475679.txt deleted file mode 100644 index 36ef11ece6c474d07d88bcd71c5cb369c2908172..0000000000000000000000000000000000000000 --- a/funcom_test/19475679.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInheritsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBInheritedAttribute_inherits_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBInheritedAttribute_inherits_feature", "_UI_UMLBInheritedAttribute_type"), - UMLBPackage.Literals.UMLB_INHERITED_ATTRIBUTE__INHERITS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inherits feature </s> - diff --git a/funcom_test/19475687.txt b/funcom_test/19475687.txt deleted file mode 100644 index 0a83b015203c84815e9479aadf4ef1337b0ca196..0000000000000000000000000000000000000000 --- a/funcom_test/19475687.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSupertypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBclassifier_supertype_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBclassifier_supertype_feature", "_UI_UMLBclassifier_type"), - UMLBPackage.Literals.UML_BCLASSIFIER__SUPERTYPE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the supertype feature </s> - diff --git a/funcom_test/19475690.txt b/funcom_test/19475690.txt deleted file mode 100644 index 865c4adf3c0d044856ac2020ee968bb05b6003ec..0000000000000000000000000000000000000000 --- a/funcom_test/19475690.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEighthornPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBabstractState_eighthorn_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBabstractState_eighthorn_feature", "_UI_UMLBabstractState_type"), - UMLBPackage.Literals.UML_BABSTRACT_STATE__EIGHTHORN, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the eighthorn feature </s> - diff --git a/funcom_test/19475691.txt b/funcom_test/19475691.txt deleted file mode 100644 index 5df917582ac058dc5808c93e23c9b9723dce788e..0000000000000000000000000000000000000000 --- a/funcom_test/19475691.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInstancesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBclassifier_instances_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBclassifier_instances_feature", "_UI_UMLBclassifier_type"), - UMLBPackage.Literals.UML_BCLASSIFIER__INSTANCES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the instances feature </s> - diff --git a/funcom_test/19475716.txt b/funcom_test/19475716.txt deleted file mode 100644 index 303385bf21e60f16196a53fb19a6531853e1d148..0000000000000000000000000000000000000000 --- a/funcom_test/19475716.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addKindPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBError_kind_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBError_kind_feature", "_UI_UMLBError_type"), - UMLBPackage.Literals.UMLB_ERROR__KIND, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the kind feature </s> - diff --git a/funcom_test/19475718.txt b/funcom_test/19475718.txt deleted file mode 100644 index 0474bb72baabe60d55700319746f5e312af7a243..0000000000000000000000000000000000000000 --- a/funcom_test/19475718.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTranslationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBabstractStatemachine_translation_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBabstractStatemachine_translation_feature", "_UI_UMLBabstractStatemachine_type"), - UMLBPackage.Literals.UML_BABSTRACT_STATEMACHINE__TRANSLATION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the translation feature </s> - diff --git a/funcom_test/19475719.txt b/funcom_test/19475719.txt deleted file mode 100644 index e35d059334977cb646ed63099923871d3d70f727..0000000000000000000000000000000000000000 --- a/funcom_test/19475719.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMessagePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBError_message_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBError_message_feature", "_UI_UMLBError_type"), - UMLBPackage.Literals.UMLB_ERROR__MESSAGE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the message feature </s> - diff --git a/funcom_test/19475722.txt b/funcom_test/19475722.txt deleted file mode 100644 index c8ac01ccfffc62dd82f2227ccc9b262562925299..0000000000000000000000000000000000000000 --- a/funcom_test/19475722.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUmlbElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBError_umlbElement_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBError_umlbElement_feature", "_UI_UMLBError_type"), - UMLBPackage.Literals.UMLB_ERROR__UMLB_ELEMENT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the umlb element feature </s> - diff --git a/funcom_test/19475757.txt b/funcom_test/19475757.txt deleted file mode 100644 index 17cb7f8fc6bcb95ecd0b4dc8e4d24204f756cd5e..0000000000000000000000000000000000000000 --- a/funcom_test/19475757.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addContextsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBMachine_contexts_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBMachine_contexts_feature", "_UI_UMLBMachine_type"), - UMLBPackage.Literals.UMLB_MACHINE__CONTEXTS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the contexts feature </s> - diff --git a/funcom_test/19475819.txt b/funcom_test/19475819.txt deleted file mode 100644 index 8513565216ecfbcc5662a40203c67cfce5cb6e2c..0000000000000000000000000000000000000000 --- a/funcom_test/19475819.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEventKindPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBEvent_eventKind_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBEvent_eventKind_feature", "_UI_UMLBEvent_type"), - UMLBPackage.Literals.UMLB_EVENT__EVENT_KIND, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the event kind feature </s> - diff --git a/funcom_test/19475841.txt b/funcom_test/19475841.txt deleted file mode 100644 index 77deb2f8c7d13f4525690dfe6b97b76d3aa462df..0000000000000000000000000000000000000000 --- a/funcom_test/19475841.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFixedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBClass_fixed_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBClass_fixed_feature", "_UI_UMLBClass_type"), - UMLBPackage.Literals.UMLB_CLASS__FIXED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the fixed feature </s> - diff --git a/funcom_test/19475846.txt b/funcom_test/19475846.txt deleted file mode 100644 index 7aae8345f26f5c82bf51c4af2d37b818acf85be0..0000000000000000000000000000000000000000 --- a/funcom_test/19475846.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSelfNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UMLBClass_selfName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UMLBClass_selfName_feature", "_UI_UMLBClass_type"), - UMLBPackage.Literals.UMLB_CLASS__SELF_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the self name feature </s> - diff --git a/funcom_test/19475941.txt b/funcom_test/19475941.txt deleted file mode 100644 index a504088402cbcddae64f0b02094475ce2a6ee02c..0000000000000000000000000000000000000000 --- a/funcom_test/19475941.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private IErrorMessageReporter getErrorReporter() { - return new IErrorMessageReporter(){ - /* (non-Javadoc) - * @see org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea.IErrorMessageReporter#reportError(java.lang.String) - */ - public void reportError(final String errorMessage, boolean infoOnly) { - setErrorMessage(errorMessage); - boolean valid = errorMessage == null; - if(valid) { - valid = validatePage(); - } - - setPageComplete(valid); - } - }; - } - COM: <s> get an error reporter for the receiver </s> - diff --git a/funcom_test/19475955.txt b/funcom_test/19475955.txt deleted file mode 100644 index 91e75bc78162068002258ca86eaaac504ab2a1ad..0000000000000000000000000000000000000000 --- a/funcom_test/19475955.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void deleteMarker() throws RodinDBException { - try { - for (final IRodinElement rodinElement : children) { - UMLBelement umlbElement = UMLBSourceAttribute.getUMLBSourceElement((IInternalElement) rodinElement); - umlbElement.deleteAllErrors(); // only sc errors ! - umlbElement.eResource().save(null); - } - } catch (Exception e) { - // TODO error handling - e.printStackTrace(); - } - } - COM: <s> deleting all markers in corresponding umlb project currently not in </s> - diff --git a/funcom_test/19475958.txt b/funcom_test/19475958.txt deleted file mode 100644 index a01bbf8dcde6d40afa44b07d843921975bfd7375..0000000000000000000000000000000000000000 --- a/funcom_test/19475958.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void getRodinElements() throws RodinDBException { - final IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot(); - final IRodinDB rodinDB = RodinCore.valueOf(workspaceRoot); - final IRodinProject rodinProject = rodinDB.getRodinProject(rodinProjectName); - rodinFile = rodinProject.getRodinFile(rodinFileName); - children = rodinFile.getChildren(); - } - COM: <s> searches for the right project in the rodin db </s> - diff --git a/funcom_test/19477031.txt b/funcom_test/19477031.txt deleted file mode 100644 index 625c855f985e2a1d0677d900a1723ecb9277560f..0000000000000000000000000000000000000000 --- a/funcom_test/19477031.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addTransitionGuards(UMLBTransition transition, UMLBClass ownerClass) { - for (UMLBPredicate p : transition.getGuards()) { - Btext_ c=new Btext_(p,ownerClass,false); - c.setName(getName()+"."+c.getName()); - if (p.isTheorem()) c.setTheorem(); - guards.add(c); - } - } - COM: <s> adds guards of a transition to currently translated event </s> - diff --git a/funcom_test/19477476.txt b/funcom_test/19477476.txt deleted file mode 100644 index e68875b447f52a16347c26a769230c7f1b41c467..0000000000000000000000000000000000000000 --- a/funcom_test/19477476.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addDisjunctLeaveActions(UMLBTransition disjunctTransition, UMLBClass ownerClass) { - for (UMLBTransition transition : disjunctTransition.getDisjunctBy()) - if (transition.getDisjunctBy().isEmpty()) { - if (!transition.getSource().isSalmiakki()) - addLeaveNestedActions(transition, ownerClass); - } else { - addDisjunctLeaveActions(transition, ownerClass); - } - } - COM: <s> adds disjunct transitions leave actions </s> - diff --git a/funcom_test/19477611.txt b/funcom_test/19477611.txt deleted file mode 100644 index b54d2dc4d868001df5817fe6bad1939f16781949..0000000000000000000000000000000000000000 --- a/funcom_test/19477611.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public IMachineRoot getIncludedMachine() throws RodinDBException { - final String bareName = getIncludedMachineName(); - IRodinProject includedProject = getIncludedProject(); - if(null==includedProject){ - includedProject = getRodinProject(); - } - final String scName = EventBPlugin.getMachineFileName(bareName); - return (IMachineRoot)includedProject.getRodinFile(scName).getRoot(); - } - COM: <s> included machines are bum files </s> - diff --git a/funcom_test/19477683.txt b/funcom_test/19477683.txt deleted file mode 100644 index 97537d7041285babe608d2c4f6f3cfb2fda0026f..0000000000000000000000000000000000000000 --- a/funcom_test/19477683.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addEnterActions(UMLBTransition transition, UMLBClass ownerClass) { - UMLBabstractStatemachine nestedSm = (UMLBabstractStatemachine) transition.eContainer(); - if (nestedSm.getTranslation() == translationKind.STATE_SETS) - enterSets(transition, ownerClass); - else - enterFunction(transition, ownerClass); - - // enter state in nested SM if target state is not final there - for (UMLBTransition elabTransition : transition.getIsElaboratedBy()) - if (!elabTransition.getTarget().isFinal()) - addEnterActions(elabTransition, ownerClass); - } - COM: <s> adds entry actions for a translated transition </s> - diff --git a/funcom_test/19477811.txt b/funcom_test/19477811.txt deleted file mode 100644 index 3ff45a8ad3c0d90c06695fdd788d4a6d936487d4..0000000000000000000000000000000000000000 --- a/funcom_test/19477811.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void patchTypeEnvironment() throws CoreException { - if (concreteEventInfo.eventIsNew()) - return; - IAbstractEventInfo abstractEventInfo = concreteEventInfo - .getAbstractEventInfos().get(0); - for (FreeIdentifier freeIdentifier : abstractEventInfo.getParameters()) { - String name = freeIdentifier.getName(); - if (identifierSymbolTable.getSymbolInfoFromTop(name) != null) - continue; - Type type = freeIdentifier.getType(); - typeEnvironment.addName(name, type); - } - } - COM: <s> add abstract local variables to type environment that are not also local </s> - diff --git a/funcom_test/19477985.txt b/funcom_test/19477985.txt deleted file mode 100644 index 7c53a97316673e24a8f8b2f41bc84d77dfaf8c47..0000000000000000000000000000000000000000 --- a/funcom_test/19477985.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void process() throws RodinDBException { - if (!isValid(element, attrType)) { - return; - } - final String formulaString = element.getAttributeValue(attrType); - final IAttributeLocation loc = getInternalLocation(element, attrType); - checkCancel(); - final IParseResult result = parseFormula(formulaString, loc); - checkCancel(); - if (result.hasProblem()) { - return; - } - final Formula<?> formula = getParsedFormula(result); - visitAndIndex(formula); - } - COM: <s> actually performs the indexing </s> - diff --git a/funcom_test/19478198.txt b/funcom_test/19478198.txt deleted file mode 100644 index 10e7522c2420341e537c7d3e9a12667e89b87996..0000000000000000000000000000000000000000 --- a/funcom_test/19478198.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeComposedMachine(IComposedMachineRoot machineRoot) { - ModelComposesMachine machine = composedMachines.get(machineRoot); - if (machine != null) { - removeComposedMachineDependencies(machine); - //other machines also can't refine this machine anymore, because it won't exist any longer -// for(ModelMachine mach : machine.getRefinedByMachines()) { -// mach.removeRefinesMachine(machine); -// } - composedMachines.remove(machineRoot); - } - } - COM: <s> removes a machine from this project </s> - diff --git a/funcom_test/19478283.txt b/funcom_test/19478283.txt deleted file mode 100644 index 9579c0f49f95937df4dde58384bfd858a1a92e38..0000000000000000000000000000000000000000 --- a/funcom_test/19478283.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean hasChildren() { - try { - return (parent.getChildrenOfType(childrenType).length != 0); - } - catch (RodinDBException e) { - // TODO Exception handle - e.printStackTrace(); - MessageDialog - .openWarning( - EventBUIPlugin.getActiveWorkbenchShell(), - "Resource out of date", - "Component " - + parent.toString() - + " is out of date with the file system and will be refresh."); - ProjectExplorerActionGroup4Composition.refreshAction.refreshAll(); - } - return false; - } - COM: <s> check if the node has any children </s> - diff --git a/funcom_test/19478328.txt b/funcom_test/19478328.txt deleted file mode 100644 index 94f53af8fa5da12312c08b79349831d295723f59..0000000000000000000000000000000000000000 --- a/funcom_test/19478328.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeComposedMachineDependencies(ModelComposedMachine composedMachine){ -// for(ModelContext ctx : composedMachine.getSeesContexts()) { -// ctx.removeSeenByMachine(machine); -// } -// for(ModelMachine mach : composedMachine.getRefinesMachines()) { -// mach.removeRefinedByMachine(machine); -// } -// for(ModelMachine mach : composedMachine.getIncludeMachines()) { -// mach.removeRefinedByMachine(machine); -// } - } - COM: <s> removes dependencies of this composed machine removes this machine from all </s> - diff --git a/funcom_test/19478376.txt b/funcom_test/19478376.txt deleted file mode 100644 index 89331fff31ea41323f5b30347a80edfee36e4f4b..0000000000000000000000000000000000000000 --- a/funcom_test/19478376.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void makeActions() { - groupActionSet = new ProjectExplorerActionGroup4Composition(this); - - // Double click to link with editor - doubleClickAction = new Action() { - @Override - public void run() { - ISelection selection = viewer.getSelection(); - Object obj = ((IStructuredSelection) selection) - .getFirstElement(); - - if (!(obj instanceof IRodinProject)) { - UIUtils4Composition.linkToEventBEditor(obj); - } - } - }; - } - COM: <s> creat the actions </s> - diff --git a/funcom_test/19478491.txt b/funcom_test/19478491.txt deleted file mode 100644 index 5ffd35b18f5f957add0bcc731b42a7b81250f2a4..0000000000000000000000000000000000000000 --- a/funcom_test/19478491.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private OperationTree4Composition getCommandCreateElement(IInternalElement element) { - final OperationNode4Composition cmd = new OperationNode4Composition(); - cmd.addCommande(new CreateIdenticalElement4Composition(element)); - try { - if (element.hasChildren()) { - cmd.addCommande(getCommandCreateChildren(element.getChildren())); - } - } catch (RodinDBException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - return cmd; - - } - COM: <s> return a command to create the element in parameter </s> - diff --git a/funcom_test/19480774.txt b/funcom_test/19480774.txt deleted file mode 100644 index 913e55f8931dea9b6bb9007158e81dc1291c1e39..0000000000000000000000000000000000000000 --- a/funcom_test/19480774.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNewNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RenameableElement_newName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RenameableElement_newName_feature", "_UI_RenameableElement_type"), - CompositionPackage.Literals.RENAMEABLE_ELEMENT__NEW_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the new name feature </s> - diff --git a/funcom_test/19480828.txt b/funcom_test/19480828.txt deleted file mode 100644 index 24ce0e13f203d575101e8c7ce983f78ed8ac38e8..0000000000000000000000000000000000000000 --- a/funcom_test/19480828.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEventRefinesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Event_eventRefines_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Event_eventRefines_feature", "_UI_Event_type"), - CompositionPackage.Literals.EVENT__EVENT_REFINES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the event refines feature </s> - diff --git a/funcom_test/19480873.txt b/funcom_test/19480873.txt deleted file mode 100644 index 11d16d9def3ac9ebaca5752cfdeb87c8151dc779..0000000000000000000000000000000000000000 --- a/funcom_test/19480873.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEventsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BEventRefines_events_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BEventRefines_events_feature", "_UI_BEventRefines_type"), - EventsPackage.Literals.BEVENT_REFINES__EVENTS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the events feature </s> - diff --git a/funcom_test/19482795.txt b/funcom_test/19482795.txt deleted file mode 100644 index dc1c56c22144826c902c27cf48ff7c6e9a0415d6..0000000000000000000000000000000000000000 --- a/funcom_test/19482795.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void createResourceCopy(Resource res1, Resource res2) throws IOException, CoreException { - IResource file1 = WorkspaceSynchronizer.getFile(res1); - IResource file2 = WorkspaceSynchronizer.getFile(res2); - // if files already synchronised don't continue - if (file1.getModificationStamp() == file2.getModificationStamp()) - return; - - res1.load(null); - EObject element = res1.getContents().get(0); - res2.save(Collections.EMPTY_MAP); - res2.getContents().add(element); - res2.save(Collections.EMPTY_MAP); - - // synchronise modification stamp (used to prevent synchronisation loop) - file2.revertModificationStamp(file1.getModificationStamp()); - } - COM: <s> create a resource of the same content as provided resource </s> - diff --git a/funcom_test/19482797.txt b/funcom_test/19482797.txt deleted file mode 100644 index 31d5b58543baa26ca64f4b4124014945122e609a..0000000000000000000000000000000000000000 --- a/funcom_test/19482797.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void createXMBResource(IResource file) throws IOException, CoreException { - Resource res = rSet.createResource(URI.createPlatformResourceURI(file.getFullPath().toOSString(), true)); - Resource xmbRes = rSet.createResource(URI.createPlatformResourceURI(getTeamworkResourcePath(file), true)); - createResourceCopy(res, xmbRes); - } - COM: <s> create an xmb resource for the event b resource provided </s> - diff --git a/funcom_test/19482798.txt b/funcom_test/19482798.txt deleted file mode 100644 index 47eba1aef6b256bb80b6f649f060e4db511bad67..0000000000000000000000000000000000000000 --- a/funcom_test/19482798.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void createResource(IResource file) throws IOException, CoreException { - Resource xmbRes = rSet.createResource(URI.createPlatformResourceURI(file.getFullPath().toOSString(), true)); - Resource res = rSet.createResource(URI.createPlatformResourceURI(getTeamworkReverseResourcePath(file), true)); - createResourceCopy(xmbRes, res); - } - COM: <s> create an event b resource for the xmb resource provided </s> - diff --git a/funcom_test/19483113.txt b/funcom_test/19483113.txt deleted file mode 100644 index fb71735bee619c004ca311ca9c0b2427abefe661..0000000000000000000000000000000000000000 --- a/funcom_test/19483113.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void log(IProblem problem) { - if (problem == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - - String message = problem.getMessage(); - String category = problem.getCategory(); - - switch (problem.getSeverity()) { - case ERROR: - MessageDialog.openError(shell, category, message); - break; - case WARNING: - MessageDialog.openWarning(shell, category, message); - break; - case INFORMATION: - MessageDialog.openInformation(shell, category, message); - break; - } - } - COM: <s> adds a new log entry </s> - diff --git a/funcom_test/19483159.txt b/funcom_test/19483159.txt deleted file mode 100644 index 43778f640347890488c355d8085503fe38cad6ef..0000000000000000000000000000000000000000 --- a/funcom_test/19483159.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: private IDocumentParser getParser(IDocument document) { - assert document != null; - - String parserId; - String docname; - try { - parserId = document.getCurrentParser(); - docname = document.getName(); - } catch (RodinDBException e) { - e.printStackTrace(); - return null; - } - - if (parserId.equals("")) { - result.addProblem(docname, NO_PARSER()); - return null; - } - - IDocumentParser parser = ParserManager.getParserFromId(parserId); - if (parser == null) { - result.addProblem(docname, OUTDATED_PARSER()); - return null; - } - - return parser; - } - COM: <s> returns the parser for the given code document code </s> - diff --git a/funcom_test/19483169.txt b/funcom_test/19483169.txt deleted file mode 100644 index 57b0d834bde739c427fc29612e76d23c2e798c73..0000000000000000000000000000000000000000 --- a/funcom_test/19483169.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private boolean checkCanParse(IDocument document, IDocumentParser parser) { - assert document != null && parser != null; - - String filename; - String docname; - try { - docname = document.getName(); - filename = document.getFilename(); - } catch (RodinDBException e) { - e.printStackTrace(); - return false; - } - - if (!parser.canParse(filename)) { - result.addProblem(docname, PARSER_NOT_APPLICABLE(parser.getName())); - return false; - } - - return true; - } - COM: <s> checks whether code parser code can parse the given </s> - diff --git a/funcom_test/19483188.txt b/funcom_test/19483188.txt deleted file mode 100644 index aeefed5ca36b22fe38fc500cebf8db9308f3f340..0000000000000000000000000000000000000000 --- a/funcom_test/19483188.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void changeFilename(Object document) { - if (document == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - - if (!(document instanceof IDocument)) - throw new IllegalArgumentException( - ExceptionMessages.WRONG_ARGUMENT_TYPE); - - File[] files = page.getHelpers().showFileDialog("Choose new filename", - false); - if (files.length != 1) - return; - - try { - IDocument doc = (IDocument) document; - doc.setFilename(files[0].getAbsolutePath(), null); - } catch (RodinDBException e) { - e.printStackTrace(); - } - - page.getViewer().refresh(); - } - COM: <s> changes the file name of the given code document code </s> - diff --git a/funcom_test/19483196.txt b/funcom_test/19483196.txt deleted file mode 100644 index 3d06c0007eb67db6e9e7fa58fc10ad436ec42d95..0000000000000000000000000000000000000000 --- a/funcom_test/19483196.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public void removeDocument(Object document) { - if (document == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - - if (!(document instanceof IDocument)) - throw new IllegalArgumentException( - ExceptionMessages.WRONG_ARGUMENT_TYPE); - - IDocument doc = (IDocument) document; - - try { - String message = Messages.bind( - Messages.doccontroller_remove_document, doc.getName()); - boolean confirm = page.getHelpers().showConfirmationDialog( - "Remove document", message); - if (!confirm) - return; - - doc.getRequirementsMap().removeDocument(doc); - - } catch (CoreException e) { - e.printStackTrace(); - } - - page.getViewer().refresh(); - } - COM: <s> removes the given document from the database </s> - diff --git a/funcom_test/19483258.txt b/funcom_test/19483258.txt deleted file mode 100644 index 86a38857b31f558b3d2f02e195e8474d092df8ed..0000000000000000000000000000000000000000 --- a/funcom_test/19483258.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void elementChanged(ElementChangedEvent event) { - - refreshAll = false; - toRefresh = new LinkedList<IRodinElement>(); - - processDelta(event.getDelta()); - - if (page.getViewer() == null - || page.getViewer().getControl().isDisposed()) - return; - - Display.getDefault().syncExec(new Runnable() { - public void run() { - - if (refreshAll) - page.getViewer().refresh(); - else - refreshTree(toRefresh); - - updateText(); - } - }); - - } - COM: <s> listener on element change events of the rodin core </s> - diff --git a/funcom_test/19483277.txt b/funcom_test/19483277.txt deleted file mode 100644 index 179db6374e66f7fc25cd93166f97829bef769fd0..0000000000000000000000000000000000000000 --- a/funcom_test/19483277.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void processDocumentDelta(IRodinElementDelta delta) { - - int kind = delta.getKind(); - if (kind == ADDED || kind == REMOVED) { - String[] items = getDocumentComboLabels(); - final ComboBoxCellEditor cellEditor = page.getComboBoxCellEditor(); - if (cellEditor != null) { - cellEditor.setItems(items); - } - } - - if (kind == REMOVED) { - refreshAll = true; - } - } - COM: <s> updates the combo box cell editor for documents when a document is </s> - diff --git a/funcom_test/19483315.txt b/funcom_test/19483315.txt deleted file mode 100644 index bae2d1233529e83406571ed93b06f13d034c3a93..0000000000000000000000000000000000000000 --- a/funcom_test/19483315.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public void setRelevant(IRequirement requirement, boolean relevant) { - if (requirement == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - - if (!relevant) { - int nr_assocs; - String reqname; - try { - nr_assocs = requirement.getAssociations().length; - reqname = requirement.getIdentifierAsString(); - } catch (RodinDBException e) { - e.printStackTrace(); - nr_assocs = 0; - reqname = ""; - } - - if (nr_assocs > 0) { - logger.log(IRRELEVANT_WITH_ASSOCS(reqname)); - return; - } - } - try { - requirement.setRelevant(relevant, null); - } catch (RodinDBException e) { - e.printStackTrace(); - } - } - COM: <s> changes the relevance of the given code requirement code </s> - diff --git a/funcom_test/19483320.txt b/funcom_test/19483320.txt deleted file mode 100644 index 789d414f5c9936882778813d16984b3fbe15ef99..0000000000000000000000000000000000000000 --- a/funcom_test/19483320.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: protected Document parseDocument(InputStream inputStream) { - assert inputStream != null; - - DocumentBuilder builder = null; - try { - - DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); - fact.setNamespaceAware(true); - builder = fact.newDocumentBuilder(); - } catch (ParserConfigurationException e) { - e.printStackTrace(); - return null; - } - - // Parses the xml file - Document document = null; - try { - document = builder.parse(inputStream); - } catch (SAXException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - - return document; - } - COM: <s> parses the given content </s> - diff --git a/funcom_test/19483345.txt b/funcom_test/19483345.txt deleted file mode 100644 index f110f5b5998e917393dfe03a92b549b7458ef874..0000000000000000000000000000000000000000 --- a/funcom_test/19483345.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void removeAssociations(Object[] associations) { - if (associations == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - if (!ElementManager.isElementArrayOfType(associations, - IAssociation.ELEMENT_TYPE)) - throw new IllegalArgumentException( - ExceptionMessages.WRONG_ARGUMENT_TYPE); - - for (Object o : associations) { - IAssociation association = (IAssociation) o; - try { - association.getRequirement().removeAssociation(association); - } catch (CoreException e) { - e.printStackTrace(); - } - } - } - COM: <s> removes the given associations </s> - diff --git a/funcom_test/19483368.txt b/funcom_test/19483368.txt deleted file mode 100644 index 676802cc0bf69a778ce7a7dc04fe63acdc24ab26..0000000000000000000000000000000000000000 --- a/funcom_test/19483368.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void navigate(Object association) { - if (association == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - if (!(association instanceof IRodinElement)) - throw new IllegalArgumentException( - ExceptionMessages.WRONG_ARGUMENT_TYPE); - - if (((IRodinElement) association).getElementType() != IAssociation.ELEMENT_TYPE) - return; - - IAssociation association1 = (IAssociation) association; - try { - IInternalElement element = association1.getElement(); - if (element.exists()) - UIUtils.linkToEventBEditor(element); - } catch (RodinDBException e) { - e.printStackTrace(); - } - } - COM: <s> navigates to the element referenced by the given code association code </s> - diff --git a/funcom_test/19483379.txt b/funcom_test/19483379.txt deleted file mode 100644 index a792dfc04dcb687382b7b5a16ca5aaf054ebda4e..0000000000000000000000000000000000000000 --- a/funcom_test/19483379.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected String getStyleName(Node node) { - assert node != null; - - NamedNodeMap children = node.getAttributes(); - - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - - if (child.getNodeName().endsWith("style-name")) - return child.getNodeValue(); - } - - throw new IllegalStateException( - "Node must have a style-name attribute, " - + "since only those were selected by the xpath expression!"); - } - COM: <s> extracts the style name attribute from the given node </s> - diff --git a/funcom_test/19483434.txt b/funcom_test/19483434.txt deleted file mode 100644 index 8e98c8a1f84af3cfc2342693a59b165735ddd8e8..0000000000000000000000000000000000000000 --- a/funcom_test/19483434.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void modify(Object element, String property, Object value) { - if (element == null || value == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - - if (!(element instanceof IDocument || element instanceof Item)) - throw new IllegalArgumentException( - ExceptionMessages.WRONG_ARGUMENT_TYPE); - - if (element instanceof Item) - element = ((Item) element).getData(); - - IDocument doc = (IDocument) element; - - try { - doc.setName((String) value, null); - } catch (RodinDBException e) { - e.printStackTrace(); - } - - viewer.refresh(); - } - COM: <s> update the text of the given document code element code to </s> - diff --git a/funcom_test/19483458.txt b/funcom_test/19483458.txt deleted file mode 100644 index f6c2ec17b8fb24168d40a7b7de0a9814d9a6af80..0000000000000000000000000000000000000000 --- a/funcom_test/19483458.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void modify(Object element, String property, Object value) { - if (element == null || value == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - - if (!(element instanceof Item || element instanceof DocumentSetting)) - throw new IllegalArgumentException( - ExceptionMessages.WRONG_ARGUMENT_TYPE); - - if (element instanceof Item) - element = ((Item) element).getData(); - - DocumentSetting setting = (DocumentSetting) element; - setting.setValue((String) value); - - viewer.refresh(); - } - COM: <s> updates the value of the document setting code element code to </s> - diff --git a/funcom_test/19483466.txt b/funcom_test/19483466.txt deleted file mode 100644 index 1bcaa8d79df85a204671fc5f20fc4b254e6ec498..0000000000000000000000000000000000000000 --- a/funcom_test/19483466.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public String getColumnText(Object element, int columnIndex) { - if (element == null) - throw new IllegalArgumentException(ExceptionMessages.NULL_ARGUMENT); - - if (!(element instanceof IDocumentParser)) - throw new IllegalArgumentException( - ExceptionMessages.WRONG_ARGUMENT_TYPE); - - IDocumentParser parser = (IDocumentParser) element; - - switch (columnIndex) { - case 0: - return parser.getName(); - case 1: - return parser.getDescription(); - case 2: - return parser.getId(); - } - - return ""; - } - COM: <s> returns name description or id of the document parser </s> - diff --git a/funcom_test/19483673.txt b/funcom_test/19483673.txt deleted file mode 100644 index 982a9352f9132912abf966d1547ef231a5c0d653..0000000000000000000000000000000000000000 --- a/funcom_test/19483673.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setContentXML(Document document) throws Exception { - try { - ZipEntry entry = new ZipEntry("content.xml"); - zipOutputStream.putNextEntry(entry); - - Source xmlSource = new DOMSource(document); - Result outputTarget = new StreamResult(zipOutputStream); - - transformer.transform(xmlSource, outputTarget); - - } catch (TransformerException e) { - String message = Messages.outcomedoc_content_transform_error; - throw new Exception(message); - } catch (Exception ex2) { - String message = Messages.outcomedoc_content_copy_error; - throw new Exception(message); - } - } - COM: <s> sets the content </s> - diff --git a/funcom_test/19484145.txt b/funcom_test/19484145.txt deleted file mode 100644 index ca540e0928d8212a66deec6a372a468a8c904cf9..0000000000000000000000000000000000000000 --- a/funcom_test/19484145.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isComplete(Stack<MachineValuationPair> valuation, int index) { - MachineValuationPair val = valuation.get(index); - assert val.machine == this; - - for (GlobalVariable<?> var : variables.values()) { - if (!val.valuation.containsKey(var.getName())) return false; - } - if (getAbstraction()!=null) return getAbstraction().isComplete(valuation, index+1); - return true; - } - COM: <s> returns code true code if the specified valuation is complete </s> - diff --git a/funcom_test/19484230.txt b/funcom_test/19484230.txt deleted file mode 100644 index 4a9ba9fb9c160d7f2a5b188e471c430722c9cbd7..0000000000000000000000000000000000000000 --- a/funcom_test/19484230.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object getObject(String name) throws Exception { - // String translated = Text2EventBMathTranslator.translate(name); - String translated = name;// Translator.getTranslator().fromASCII(name); - - final IParseResult result = FormulaFactory.getDefault() - .parsePredicate(translated, LanguageVersion.LATEST, this); - if (result.hasProblem()) - throw new Exception(Messages.bind( - Messages.dict_entry_name_parse_error, name)); - - return result.getParsedPredicate(); - } - COM: <s> the target object is a </s> - diff --git a/funcom_test/19484267.txt b/funcom_test/19484267.txt deleted file mode 100644 index a7edb73cbbfd9b7d7302b588c332c48f2cd7f54e..0000000000000000000000000000000000000000 --- a/funcom_test/19484267.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object getObject(String name) throws Exception { - // String translated = Text2EventBMathTranslator.translate(name); - String translated = name;// Translator.getTranslator().fromASCII(name); - - final IParseResult result = FormulaFactory.getDefault() - .parseAssignment(translated, LanguageVersion.LATEST, this); - if (result.hasProblem()) - throw new Exception(Messages.bind( - Messages.dict_entry_name_parse_error, name)); - - return result.getParsedAssignment(); - } - COM: <s> the target object is an </s> - diff --git a/funcom_test/19484615.txt b/funcom_test/19484615.txt deleted file mode 100644 index 1251c5517ca164d1251ddfebbf86dbed82f925a3..0000000000000000000000000000000000000000 --- a/funcom_test/19484615.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: // public void publishEventState(IAEvent event, ExecutionResult result) { - // assert event != null && rootMachine.getEvents().contains(event); - // - // State state = getEventState(result); - // EventStatus status = new EventStatus(event.getMachineName(), event - // .getName(), state); - // StateChangedEvent chevt = new StateChangedEvent(status, false); - // fireEventListener(chevt); - // } - COM: <s> notifies the listeners of the state of the specified event </s> - diff --git a/funcom_test/19484699.txt b/funcom_test/19484699.txt deleted file mode 100644 index 10b3759a3bb3609b85c65789e980e1bd7c5d7a17..0000000000000000000000000000000000000000 --- a/funcom_test/19484699.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void publishUnknownEventStates() { - Collection<EventStatus> st = new ArrayList<EventStatus>(); - for (IAEvent event : rootMachine.getEvents()) { - EventStatus status = new EventStatus(event.getMachineName(), event - .getName(), State.Unknown); - st.add(status); - } - fireEventListener(new StateChangedEvent(st, true)); - } - COM: <s> invalidates the state of all events </s> - diff --git a/funcom_test/19484908.txt b/funcom_test/19484908.txt deleted file mode 100644 index 3643e97cd4d771eb03829651a202dc3350170c58..0000000000000000000000000000000000000000 --- a/funcom_test/19484908.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void fireVariableListener(VariableChangedEvent e) { - assert e != null; - // put them in a temporary array to avoid concurrent access - IVariableListener[] copy = variableListeners - .toArray(new IVariableListener[variableListeners.size()]); - for (IVariableListener listener : copy) { - try { - listener.variableChanged(e); - } catch (Throwable t) { - logger.log(Level.SEVERE, "Error notifying listeners", t); - } - } - } - COM: <s> fires the listener for a variable change </s> - diff --git a/funcom_test/19485264.txt b/funcom_test/19485264.txt deleted file mode 100644 index 50a9a3d0b9ceb5f938afadff144237a669dfbf37..0000000000000000000000000000000000000000 --- a/funcom_test/19485264.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void init() { - if (result == null) { - result = new Relation<E, F>(); - for (IExpression<IMapplet<F, E>> e : relation.getMutableValue()) { - result.addValue(e.getMutableValue().getRight() - .getImmutableValue(), e.getMutableValue().getLeft() - .getImmutableValue()); - } - } - - } - COM: <s> initialisation of the result </s> - diff --git a/funcom_test/19485361.txt b/funcom_test/19485361.txt deleted file mode 100644 index ed5464f5b4a220fc763879e0fccf3faec1672df4..0000000000000000000000000000000000000000 --- a/funcom_test/19485361.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addValue(IExpression<E> x, IExpression<F> y) { - assert x.isConstant() && y.isConstant(); - TreeSet<IExpression<F>> xIm = map.get(x); - if (xIm == null) { - xIm = new TreeSet<IExpression<F>>(new ExpressionComparator<F>()); - map.put(x, xIm); - } - if (!xIm.contains(y)) { - xIm.add(y); - card++; - } - - } - COM: <s> add a new value to the relation </s> - diff --git a/funcom_test/19485834.txt b/funcom_test/19485834.txt deleted file mode 100644 index 87acafaf5fb8f157f6bf5a1ae86d46faa87978b0..0000000000000000000000000000000000000000 --- a/funcom_test/19485834.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testContains() { - ISet S = createExpression("{1,2}<| {1|->2, 1|->4, 3|->5}"); - assertTrue(S.contains(createMapplet(1,2))); - assertFalse(S.contains(createMapplet(3,5))); - S = createExpression("{1,2}<| %x.(x : 1..10 | 2*x)"); - assertTrue(S.contains(createMapplet(2,4))); - assertFalse(S.contains(createMapplet(3,6))); - } - COM: <s> test method for b </s> - diff --git a/funcom_test/19486305.txt b/funcom_test/19486305.txt deleted file mode 100644 index f5200ab3498f86946984f89f27eabc7fb5245249..0000000000000000000000000000000000000000 --- a/funcom_test/19486305.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testSUBSETEQ1() { - String chaine = new PreParser(new StringReader("")) - .process("{3} <: {1,3,4}"); - - IParseResult result = FormulaFactory.getDefault() - .parsePredicate(chaine,LanguageVersion.LATEST,null); - - assertTrue(!result.hasProblem()); - - Predicate predicate = result.getParsedPredicate(); - - GlobalIdentTable<IExpression> table = new GlobalIdentTable<IExpression>(); - - PredicatBuilder builder = new PredicatBuilder(table); - - assertTrue(predicate.accept(builder)); - - IPredicate predC = builder.getPredicate(); - - assertEquals(true, predC.isHold()); - - } - COM: <s> test inclusion cas vrai </s> - diff --git a/funcom_test/19486319.txt b/funcom_test/19486319.txt deleted file mode 100644 index 173b0fab6f050d414d819d8dabf6c41c770e27b0..0000000000000000000000000000000000000000 --- a/funcom_test/19486319.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testSUBSETEQ2() { - String chaine = new PreParser(new StringReader("")) - .process("{1,3,4} <: {1,3,4}"); - - IParseResult result = FormulaFactory.getDefault() - .parsePredicate(chaine,LanguageVersion.LATEST,null); - - assertTrue(!result.hasProblem()); - - Predicate predicate = result.getParsedPredicate(); - - GlobalIdentTable<IExpression> table = new GlobalIdentTable<IExpression>(); - - PredicatBuilder builder = new PredicatBuilder(table); - - assertTrue(predicate.accept(builder)); - - IPredicate predC = builder.getPredicate(); - - assertEquals(true, predC.isHold()); - - } - COM: <s> test inclusion cas vrai egalite </s> - diff --git a/funcom_test/19486376.txt b/funcom_test/19486376.txt deleted file mode 100644 index 48c6a38b97a701a83b81d9bfa469af9e299181ec..0000000000000000000000000000000000000000 --- a/funcom_test/19486376.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testNOTSUBSETEQ1() { - String chaine = new PreParser(new StringReader("")) - .process("{-2, 3} /<: {1,3,4}"); - - IParseResult result = FormulaFactory.getDefault() - .parsePredicate(chaine,LanguageVersion.LATEST,null); - - assertTrue(!result.hasProblem()); - - Predicate predicate = result.getParsedPredicate(); - - GlobalIdentTable<IExpression> table = new GlobalIdentTable<IExpression>(); - - PredicatBuilder builder = new PredicatBuilder(table); - - assertTrue(predicate.accept(builder)); - - IPredicate predC = builder.getPredicate(); - - assertEquals(true, predC.isHold()); - - } - COM: <s> test not inclusion cas vrai </s> - diff --git a/funcom_test/19486393.txt b/funcom_test/19486393.txt deleted file mode 100644 index 1484e77b9995ceae678d417054ff417346755ea2..0000000000000000000000000000000000000000 --- a/funcom_test/19486393.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testNOTSUBSETEQ2() { - String chaine = new PreParser(new StringReader("")) - .process("{1,3,4} /<: {1,3,4}"); - - IParseResult result = FormulaFactory.getDefault() - .parsePredicate(chaine,LanguageVersion.LATEST,null); - - assertTrue(!result.hasProblem()); - - Predicate predicate = result.getParsedPredicate(); - - GlobalIdentTable<IExpression> table = new GlobalIdentTable<IExpression>(); - - PredicatBuilder builder = new PredicatBuilder(table); - - assertTrue(predicate.accept(builder)); - - IPredicate predC = builder.getPredicate(); - - assertEquals(false, predC.isHold()); - - } - COM: <s> test not inclusion cas faut egalite </s> - diff --git a/funcom_test/19486430.txt b/funcom_test/19486430.txt deleted file mode 100644 index 9c552c19392d68ede9f13638f271fe213d6ac0d6..0000000000000000000000000000000000000000 --- a/funcom_test/19486430.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testSUBSET1() { - String chaine = new PreParser(new StringReader("")) - .process("{3} <<: {1,3,4}"); - - IParseResult result = FormulaFactory.getDefault() - .parsePredicate(chaine,LanguageVersion.LATEST,null); - - assertTrue(!result.hasProblem()); - - Predicate predicate = result.getParsedPredicate(); - - GlobalIdentTable<IExpression> table = new GlobalIdentTable<IExpression>(); - - PredicatBuilder builder = new PredicatBuilder(table); - - assertTrue(predicate.accept(builder)); - - IPredicate predC = builder.getPredicate(); - - assertEquals(true, predC.isHold()); - - } - COM: <s> test inclusion stricte cas vrai </s> - diff --git a/funcom_test/19486447.txt b/funcom_test/19486447.txt deleted file mode 100644 index 3b45891d19afbd0381ae0c726db4889bb08e3764..0000000000000000000000000000000000000000 --- a/funcom_test/19486447.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testSUBSET2() { - String chaine = new PreParser(new StringReader("")) - .process("{1,3,4} <<: {1,3,4}"); - - IParseResult result = FormulaFactory.getDefault() - .parsePredicate(chaine,LanguageVersion.LATEST,null); - - assertTrue(!result.hasProblem()); - - Predicate predicate = result.getParsedPredicate(); - - GlobalIdentTable<IExpression> table = new GlobalIdentTable<IExpression>(); - - PredicatBuilder builder = new PredicatBuilder(table); - - assertTrue(predicate.accept(builder)); - - IPredicate predC = builder.getPredicate(); - - assertEquals(false, predC.isHold()); - - } - COM: <s> test inclusion stricte cas faut egalite </s> - diff --git a/funcom_test/19486495.txt b/funcom_test/19486495.txt deleted file mode 100644 index c542f7a0e2d37591eb7f48137d1a4a2f3d234efa..0000000000000000000000000000000000000000 --- a/funcom_test/19486495.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testNOTSUBSET1() { - String chaine = new PreParser(new StringReader("")) - .process("{-2, 3} /<<: {1,3,4}"); - - IParseResult result = FormulaFactory.getDefault() - .parsePredicate(chaine,LanguageVersion.LATEST,null); - - assertTrue(!result.hasProblem()); - - Predicate predicate = result.getParsedPredicate(); - - GlobalIdentTable<IExpression> table = new GlobalIdentTable<IExpression>(); - - PredicatBuilder builder = new PredicatBuilder(table); - - assertTrue(predicate.accept(builder)); - - IPredicate predC = builder.getPredicate(); - - assertEquals(true, predC.isHold()); - - } - COM: <s> test not inclusion stricte cas vrai </s> - diff --git a/funcom_test/19486856.txt b/funcom_test/19486856.txt deleted file mode 100644 index 72934d5a08839c993fca3a80aedc71b63c065385..0000000000000000000000000000000000000000 --- a/funcom_test/19486856.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void createColumns(final TableViewer viewer) { - for (int i = 0; i < getColumnsLabel().length; i++) { - final TableViewerColumn column = new TableViewerColumn(viewer, - SWT.NONE); - column.getColumn().setText(getColumnsLabel()[i]); - column.getColumn().setWidth(getColumnsBounds()[i]); - column.getColumn().setResizable(true); - column.getColumn().setMoveable(true); - } - - final Table table = viewer.getTable(); - table.setHeaderVisible(true); - table.setLinesVisible(true); - } - COM: <s> creates the columns of the table viewer </s> - diff --git a/funcom_test/19487147.txt b/funcom_test/19487147.txt deleted file mode 100644 index b6df1893975dd57ede6247b3ed84aa93c94da197..0000000000000000000000000000000000000000 --- a/funcom_test/19487147.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: private String validate() { - final StringBuilder errorBuilder = new StringBuilder(); - - if (solverConfig == null) { - if (errorBuilder.length() > 0) { - errorBuilder.append("; ").append(SOLVER_CONFIG_ERROR); - } else { - errorBuilder.append(SOLVER_CONFIG_ERROR); - } - } - - if (solver == null) { - if (errorBuilder.length() > 0) { - errorBuilder.append("; ").append(SOLVER_ERROR); - } else { - errorBuilder.append(SOLVER_ERROR); - } - } - - if (errorBuilder.length() != 0) { - return errorBuilder.toString(); - } else { - return null; - } - } - COM: <s> validates this smt input </s> - diff --git a/funcom_test/19487177.txt b/funcom_test/19487177.txt deleted file mode 100644 index f8a6d375d74b67161df52cf2491f731285386335..0000000000000000000000000000000000000000 --- a/funcom_test/19487177.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean checkVeriTResult() throws IOException { - if (sv.equals(V1_2)) { - if (veriTResult.contains("(benchmark")) { - veriTResult = veriTResult.substring(veriTResult - .indexOf("(benchmark")); - return true; - } - return false; - } else { - if (veriTResult.contains("(set-logic")) { - return true; - } - return false; - } - } - COM: <s> this method checks if the response of veri t after it processed the </s> - diff --git a/funcom_test/19487220.txt b/funcom_test/19487220.txt deleted file mode 100644 index 6e4b31a1dc2fceb63abb7b138be37a9164bce729..0000000000000000000000000000000000000000 --- a/funcom_test/19487220.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testKDOM() { - - testPredicates(new String[] { "dom({1|->2, 2|->3}) = {1,2}", - "3/: dom({1|->2, 2|->3})", "1: dom({1|->2, 2|->3})" }, - new boolean[] { true, true, true }); - - } - COM: <s> test dom operator </s> - diff --git a/funcom_test/19487239.txt b/funcom_test/19487239.txt deleted file mode 100644 index 061ef680fbadeda637713db5648c555fff31fba1..0000000000000000000000000000000000000000 --- a/funcom_test/19487239.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testKRAN() { - testPredicates(new String[] { "ran({1|->2, 2|->3}) = {3,2}", - "3: ran({1|->2, 2|->3})", "1/: ran({1|->2, 2|->3})" }, - new boolean[] { true, true, true }); - - } - COM: <s> test ran operator </s> - diff --git a/funcom_test/19487358.txt b/funcom_test/19487358.txt deleted file mode 100644 index eab161978f9555b9f58f5845bd8a23c03b50112b..0000000000000000000000000000000000000000 --- a/funcom_test/19487358.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testFUNIMAGE() { - - final ITypeEnvironment te = mTypeEnvironment("A", "ℙ(A)", "B", "ℤ ↔ ℤ", - "f", "ℤ"); - - testTranslationV2_0VerDefaultSolver(te, "B(f) = B(f)", "false"); - } - COM: <s> while funimage can not be translated yet false is returned instead </s> - diff --git a/funcom_test/19487367.txt b/funcom_test/19487367.txt deleted file mode 100644 index 977ecede9ca0fdf711b7002c5938359827bb5a4b..0000000000000000000000000000000000000000 --- a/funcom_test/19487367.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private SMTSortSymbol getBoolSort() { - boolean veriTBools = false; - for (final Theory theory : getLogic().getTheories()) { - if (theory instanceof VeriTBooleansV2_0) { - veriTBools = true; - } - } - if (veriTBools) { - return VeriTBooleansV2_0.getInstance().getBooleanSort(); - } else { - return TheoryV2_0.Core.getInstance().getBooleanSort(); - } - } - COM: <s> this method returns the bool sort </s> - diff --git a/funcom_test/19487757.txt b/funcom_test/19487757.txt deleted file mode 100644 index 27e2bf4cb87335366b057f70818cbe73e879fbfc..0000000000000000000000000000000000000000 --- a/funcom_test/19487757.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void verifyPredicateSignature(final SMTPredicateSymbol symbol) { - for (final SMTPredicateSymbol predSymbol : preds) { - - // Verify if the predicates have the same name - if (symbol.getName().equals(predSymbol.getName())) { - - if (verifyRank(symbol.getArgSorts(), predSymbol.getArgSorts())) { - return; - } - } - } - throw new IllegalArgumentException("Predicate " + symbol - + " is not declared in the signature."); - } - COM: <s> checks if the actual predicate symbol has the same rank of the </s> - diff --git a/funcom_test/19487809.txt b/funcom_test/19487809.txt deleted file mode 100644 index 85ac5e708ca5ed2926f59935dd72f5358ee68ce0..0000000000000000000000000000000000000000 --- a/funcom_test/19487809.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public SMTSortSymbol freshSort(final String name) { - final String freshName = freshSortName(name); - final SMTSortSymbol freshSort = new SMTSortSymbol(freshName, - !SMTSymbol.PREDEFINED, smtlibVersion); - final boolean successfullyAdded = sorts.add(freshSort); - if (!successfullyAdded) { - throw new IllegalArgumentException( - Messages.FreshSymbolCreationFailed + freshSort.toString()); - } - return freshSort; - } - COM: <s> gives a fresh sort </s> - diff --git a/funcom_test/19487936.txt b/funcom_test/19487936.txt deleted file mode 100644 index ba133832ce55ad98b4650241397d2288db683079..0000000000000000000000000000000000000000 --- a/funcom_test/19487936.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Command getCommand(Request request) { - if (request instanceof ReconnectRequest) { - Object view = ((ReconnectRequest) request).getConnectionEditPart() - .getModel(); - if (view instanceof View) { - Integer id = new Integer( - ClassdiagramsVisualIDRegistry.getVisualID((View) view)); - request.getExtendedData().put(VISUAL_ID_KEY, id); - } - } - return super.getCommand(request); - } - COM: <s> extended request data key to hold editpart visual id </s> - diff --git a/funcom_test/19488804.txt b/funcom_test/19488804.txt deleted file mode 100644 index 2da66aca376492a54bd826c4d9dd9534a8b0ba92..0000000000000000000000000000000000000000 --- a/funcom_test/19488804.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void translateSetExtension(final SetExtension expression) { - SMTTerm[] children; - children = smtTerms(expression.getMembers()); - final String macroName = signature.freshSymbolName(SMTMacroSymbol.ENUM); - final Type setExtensionType = expression.getMembers()[0].getType(); - - if (signature instanceof SMTSignatureV1_2Verit) { - translateSetExtensionV1_2(expression, children, macroName, - setExtensionType); - } else { - translateSetExtensionV2_0(expression, children, macroName, - setExtensionType); - } - } - COM: <s> translate set extension </s> - diff --git a/funcom_test/19488825.txt b/funcom_test/19488825.txt deleted file mode 100644 index fd5ec6014077315a7ad5f638eca322a3aaa64bf9..0000000000000000000000000000000000000000 --- a/funcom_test/19488825.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociativeElement_AssociationType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociativeElement_AssociationType_feature", "_UI_AssociativeElement_type"), - ClassdiagramsPackage.Literals.ASSOCIATIVE_ELEMENT__ASSOCIATION_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the association type feature </s> - diff --git a/funcom_test/19488877.txt b/funcom_test/19488877.txt deleted file mode 100644 index e5a71385f392636ef17e9068d968844ceb2651bb..0000000000000000000000000000000000000000 --- a/funcom_test/19488877.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addClassTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Class_classType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Class_classType_feature", "_UI_Class_type"), - ClassdiagramsPackage.Literals.CLASS__CLASS_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the class type feature </s> - diff --git a/funcom_test/19488958.txt b/funcom_test/19488958.txt deleted file mode 100644 index e2182887d5813b837c6bf47efb37fce3db463ab1..0000000000000000000000000000000000000000 --- a/funcom_test/19488958.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void createResourceContent(Resource resource) throws NoEClassException { - EClass clazz = getRootClass(resource); - if (clazz == null) - throw new NoEClassException("Cannot find root class of a resource " + resource.getURI()); - EObject element = EcoreUtil.create(clazz); - if (clazz.getEStructuralFeature("name") != null) - EMFCoreUtil.setName(element, resource.getURI().trimFileExtension().lastSegment()); - resource.getContents().add(element); - } - COM: <s> creates basic content in a resource i </s> - diff --git a/funcom_test/19488959.txt b/funcom_test/19488959.txt deleted file mode 100644 index 1958397b09e257550cc9396f620e722af5075423..0000000000000000000000000000000000000000 --- a/funcom_test/19488959.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private EClass getRootClass(Resource resource) { - if (resource.getURI() != null) { - if ("bum".equals(resource.getURI().fileExtension())) - return MachinePackage.eINSTANCE.getMachine(); - if ("buc".equals(resource.getURI().fileExtension())) - return ContextPackage.eINSTANCE.getContext(); - } - return null; - } - COM: <s> returns a root eclass for a resource </s> - diff --git a/funcom_test/19489947.txt b/funcom_test/19489947.txt deleted file mode 100644 index d90b3619b37c2a6ca16dc13a69ac98406f018475..0000000000000000000000000000000000000000 --- a/funcom_test/19489947.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setName(List<Event> events) { - StringBuilder result = new StringBuilder(DEFAULT_NAME); - if (events.isEmpty() == false) { - Iterator<Event> it = events.iterator(); - result.append(it.next().getName()); - while (it.hasNext()) { - result.append(NAME_SEPARATOR); - result.append(it.next().getName()); - } - } - name = result.toString(); - } - COM: <s> sets the name of edge from a list of synchronised events </s> - diff --git a/funcom_test/19489954.txt b/funcom_test/19489954.txt deleted file mode 100644 index 68a217d7a95273d676bfef577e20d51598f62de4..0000000000000000000000000000000000000000 --- a/funcom_test/19489954.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void createEdges() { - edges.clear(); - Stack<InteractionNode> remainingNodes = new Stack<InteractionNode>(); - remainingNodes.addAll(nodes); - while (remainingNodes.size() > 1) { - InteractionNode node1 = remainingNodes.pop(); - for (InteractionNode node2 : remainingNodes) { - List<Event> commons = getCommonEvents(node1, node2); - if (commons.isEmpty() == false) - edges.add(new InteractionEdge(node1, node2, commons)); - } - } - } - COM: <s> creates edges for existing nodes </s> - diff --git a/funcom_test/19490043.txt b/funcom_test/19490043.txt deleted file mode 100644 index 5eab27a7cb5a27923beb85ef4854f62596146ec8..0000000000000000000000000000000000000000 --- a/funcom_test/19490043.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean validateTransition_notToInitial(Transition transition, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (transition.getTarget() instanceof Initial) { - if (diagnostics != null) { - diagnostics.add - (createDiagnostic - (Diagnostic.ERROR, - DIAGNOSTIC_SOURCE, - 0, - "_UI_GenericConstraint_diagnostic", - new Object[] { "Transition cannot go to initial state", getObjectLabel(transition, context) }, - new Object[] { transition }, - context)); - } - return false; - } - return true; - } - COM: <s> validates the not to initial constraint of em transition em </s> - diff --git a/funcom_test/19490063.txt b/funcom_test/19490063.txt deleted file mode 100644 index 81fb69a5c6514f9221b1febddd8901bd88ab952f..0000000000000000000000000000000000000000 --- a/funcom_test/19490063.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean validateTransition_notFromFinal(Transition transition, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (transition.getSource() instanceof Final) { - if (diagnostics != null) { - diagnostics.add - (createDiagnostic - (Diagnostic.ERROR, - DIAGNOSTIC_SOURCE, - 0, - "_UI_GenericConstraint_diagnostic", - new Object[] { "Transition cannot go from final state", getObjectLabel(transition, context) }, - new Object[] { transition }, - context)); - } - return false; - } - return true; - } - COM: <s> validates the not from final constraint of em transition em </s> - diff --git a/funcom_test/19490104.txt b/funcom_test/19490104.txt deleted file mode 100644 index 750e933f59580c537a675ed32ea3396b00cd9ecb..0000000000000000000000000000000000000000 --- a/funcom_test/19490104.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean validateTransition_notFromInitialToFinal(Transition transition, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (transition.getSource() instanceof Initial && transition.getTarget() instanceof Final) { - if (diagnostics != null) { - diagnostics.add - (createDiagnostic - (Diagnostic.ERROR, - DIAGNOSTIC_SOURCE, - 0, - "_UI_GenericConstraint_diagnostic", - new Object[] { "Transition cannot go directly from initial to final state", getObjectLabel(transition, context) }, - new Object[] { transition }, - context)); - } - return false; - } - return true; - } - COM: <s> validates the not from initial to final constraint of em transition em </s> - diff --git a/funcom_test/19490210.txt b/funcom_test/19490210.txt deleted file mode 100644 index 519ce0552fd2082bd3ea2109ed34df139af23db4..0000000000000000000000000000000000000000 --- a/funcom_test/19490210.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean validateStatemachine_hasValidName(Statemachine statemachine, DiagnosticChain diagnostics, Map<Object, Object> context) { - String name = statemachine.getName(); - if (name == null || !name.trim().matches("\\w+")) { - if (diagnostics != null) { - diagnostics.add - (createDiagnostic - (Diagnostic.WARNING, - DIAGNOSTIC_SOURCE, - 0, - "_UI_GenericConstraint_diagnostic", - new Object[] { "Statemachine should have a valid name", getObjectLabel(statemachine, context) }, - new Object[] { statemachine }, - context)); - } - return false; - } - return true; - } - COM: <s> validates the has valid name constraint of em statemachine em </s> - diff --git a/funcom_test/19490525.txt b/funcom_test/19490525.txt deleted file mode 100644 index 7c9cf07d8fd3b2d7a6ca1b01c55ef444224bdc15..0000000000000000000000000000000000000000 --- a/funcom_test/19490525.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean validateState_hasValidName(State state, DiagnosticChain diagnostics, Map<Object, Object> context) { - String name = state.getName(); - if (name == null || !name.trim().matches("\\w+")) { - if (diagnostics != null) { - diagnostics.add - (createDiagnostic - (Diagnostic.ERROR, - DIAGNOSTIC_SOURCE, - 0, - "_UI_GenericConstraint_diagnostic", - new Object[] { "State must have a valid name", getObjectLabel(state, context) }, - new Object[] { state }, - context)); - } - return false; - } - return true; - } - COM: <s> validates the has valid name constraint of em state em </s> - diff --git a/funcom_test/19490630.txt b/funcom_test/19490630.txt deleted file mode 100644 index 42f53ff01ae9bcb7935b7fdf3acfb98b31372d07..0000000000000000000000000000000000000000 --- a/funcom_test/19490630.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean validateInitial_hasOutgoing(Initial initial, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (initial.getOutgoing().isEmpty()) { - if (diagnostics != null) { - diagnostics.add - (createDiagnostic - (Diagnostic.WARNING, - DIAGNOSTIC_SOURCE, - 0, - "_UI_GenericConstraint_diagnostic", - new Object[] { "Initial state should have an outgoing transition", getObjectLabel(initial, context) }, - new Object[] { initial }, - context)); - } - return false; - } - return true; - } - COM: <s> validates the has outgoing constraint of em initial em </s> - diff --git a/funcom_test/19490679.txt b/funcom_test/19490679.txt deleted file mode 100644 index d0e57a89431f388a03c84cd3da1a5687194d5834..0000000000000000000000000000000000000000 --- a/funcom_test/19490679.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean validateFinal_hasIncoming(Final final_, DiagnosticChain diagnostics, Map<Object, Object> context) { - if (final_.getIncoming().isEmpty()) { - if (diagnostics != null) { - diagnostics.add - (createDiagnostic - (Diagnostic.WARNING, - DIAGNOSTIC_SOURCE, - 0, - "_UI_GenericConstraint_diagnostic", - new Object[] { "Final state should have an incoming transition", getObjectLabel(final_, context) }, - new Object[] { final_ }, - context)); - } - return false; - } - return true; - } - COM: <s> validates the has incoming constraint of em final em </s> - diff --git a/funcom_test/19491576.txt b/funcom_test/19491576.txt deleted file mode 100644 index 9603701f2db1bae819b941f7b7054d759a845319..0000000000000000000000000000000000000000 --- a/funcom_test/19491576.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSourceContainerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Transition_sourceContainer_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Transition_sourceContainer_feature", "_UI_Transition_type"), - StatemachinesPackage.Literals.TRANSITION__SOURCE_CONTAINER, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the source container feature </s> - diff --git a/funcom_test/19491582.txt b/funcom_test/19491582.txt deleted file mode 100644 index c32b91ba1b64e88eb0a78e9c51473d5fb55259b3..0000000000000000000000000000000000000000 --- a/funcom_test/19491582.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTargetContainerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Transition_targetContainer_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Transition_targetContainer_feature", "_UI_Transition_type"), - StatemachinesPackage.Literals.TRANSITION__TARGET_CONTAINER, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the target container feature </s> - diff --git a/funcom_test/19491720.txt b/funcom_test/19491720.txt deleted file mode 100644 index e76e19f9926c39088804ade38ef37dc96dd5f5c8..0000000000000000000000000000000000000000 --- a/funcom_test/19491720.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTranslationTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AnimationDiagram_translationType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AnimationDiagram_translationType_feature", "_UI_AnimationDiagram_type"), - AnimationMetamodelPackage.Literals.ANIMATION_DIAGRAM__TRANSLATION_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the translation type feature </s> - diff --git a/funcom_test/19491724.txt b/funcom_test/19491724.txt deleted file mode 100644 index 8419474edd1e418f47355da3f118b4e29bfd5df5..0000000000000000000000000000000000000000 --- a/funcom_test/19491724.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addClassNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AnimationDiagram_className_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AnimationDiagram_className_feature", "_UI_AnimationDiagram_type"), - AnimationMetamodelPackage.Literals.ANIMATION_DIAGRAM__CLASS_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the class name feature </s> - diff --git a/funcom_test/19491756.txt b/funcom_test/19491756.txt deleted file mode 100644 index 3c85f01111b14fc5846cfc36cedebada2d9971ae..0000000000000000000000000000000000000000 --- a/funcom_test/19491756.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEnabledPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AnimationTransition_enabled_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AnimationTransition_enabled_feature", "_UI_AnimationTransition_type"), - AnimationMetamodelPackage.Literals.ANIMATION_TRANSITION__ENABLED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the enabled feature </s> - diff --git a/funcom_test/19492056.txt b/funcom_test/19492056.txt deleted file mode 100644 index 8fec47679dc7d20b72b0e8da7752ba639efb293e..0000000000000000000000000000000000000000 --- a/funcom_test/19492056.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateFace() { - AnimationTransition transition = (AnimationTransition) ((View) AnimationTransitionEditPart.this - .getModel()).getElement(); - - // set line width and colour depending on enablement of underlying operation - int lineWidth = 1; - Color color = THIS_FORE; - if (transition.isEnabled()) { - lineWidth = 2; - color = THIS_FORE_ENABLED; - } - this.setLineWidth(lineWidth); - this.setForegroundColor(color); - } - COM: <s> update the figure depending on enablement of the transition </s> - diff --git a/funcom_test/19492886.txt b/funcom_test/19492886.txt deleted file mode 100644 index f6c692de777bcdf8c1ee6300e69eeabfa6899172..0000000000000000000000000000000000000000 --- a/funcom_test/19492886.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSkipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SkipNode_skip_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SkipNode_skip_feature", "_UI_SkipNode_type"), - AtomicitydecompositionPackage.Literals.SKIP_NODE__SKIP, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the skip feature </s> - diff --git a/funcom_test/19492920.txt b/funcom_test/19492920.txt deleted file mode 100644 index b9a6b929099c48587eeee3da9c7613ecdeed110a..0000000000000000000000000000000000000000 --- a/funcom_test/19492920.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAbstractPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_FlowDiagram_abstract_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_FlowDiagram_abstract_feature", "_UI_FlowDiagram_type"), - AtomicitydecompositionPackage.Literals.FLOW_DIAGRAM__ABSTRACT, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the abstract feature </s> - diff --git a/funcom_test/19492931.txt b/funcom_test/19492931.txt deleted file mode 100644 index f5c6519311a2c2d031ccf0e5c198ffefccf708df..0000000000000000000000000000000000000000 --- a/funcom_test/19492931.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStrongSequencingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_FlowDiagram_strongSequencing_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_FlowDiagram_strongSequencing_feature", "_UI_FlowDiagram_type"), - AtomicitydecompositionPackage.Literals.FLOW_DIAGRAM__STRONG_SEQUENCING, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the strong sequencing feature </s> - diff --git a/funcom_test/19492938.txt b/funcom_test/19492938.txt deleted file mode 100644 index 73106794dc3024d431db1129464075914c8771c1..0000000000000000000000000000000000000000 --- a/funcom_test/19492938.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCopyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_FlowDiagram_copy_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_FlowDiagram_copy_feature", "_UI_FlowDiagram_type"), - AtomicitydecompositionPackage.Literals.FLOW_DIAGRAM__COPY, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the copy feature </s> - diff --git a/funcom_test/19493808.txt b/funcom_test/19493808.txt deleted file mode 100644 index 69a9c3e684a690117057fa23c635ee10079c4033..0000000000000000000000000000000000000000 --- a/funcom_test/19493808.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void createModel() { - final String projectName = rodinProject.getElementName(); - final URI resourceURI = URI.createPlatformResourceURI(projectName + "/" - + fNAME, true); - @SuppressWarnings("unused") - Exception exception = null; - Resource resource = null; - try { - // Load the resource through the editing domain. - // - resource = editingDomain.getResourceSet().getResource(resourceURI, - true); - } catch (Exception e) { - exception = e; - resource = editingDomain.getResourceSet().getResource(resourceURI, - false); - } - @SuppressWarnings("unused") - final Resource result = resource; - } - COM: <s> this is the method called to load a resource into the editing domains </s> - diff --git a/funcom_test/19493847.txt b/funcom_test/19493847.txt deleted file mode 100644 index 319b2015639118416d3fdee59869925eeb059fd2..0000000000000000000000000000000000000000 --- a/funcom_test/19493847.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testCardNoExtractEqualIdent() { - doTest("a = card(B)", "0≤a∧(∃f·f∈B⤖1‥a)", true); - doTest("card(B) = a", "0≤a∧(∃f·f∈B⤖1‥a)", true); - doTest("a ≠ card(B)", "¬(0≤a∧∃f·f∈B⤖1‥a)", true); - doTest("card(B) ≠ a", "¬(0≤a∧∃f·f∈B⤖1‥a)", true); - } - COM: <s> ensures that a cardinal is not extracted when equalled to an identifier </s> - diff --git a/funcom_test/19493939.txt b/funcom_test/19493939.txt deleted file mode 100644 index 1383ac6dbb86b97ad39ea042f6aeb53fe5b0a4df..0000000000000000000000000000000000000000 --- a/funcom_test/19493939.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testBR5_simple() { - - doTest( "s ≠ t", - "¬(s = t)", false, br_te); - doTest( "x ≠ 0", - "¬(x = 0)", false, br_te); - doTest( "x ≠ TRUE", - "¬(x = TRUE)", false, br_te); - } - COM: <s> tests for br5 </s> - diff --git a/funcom_test/19494490.txt b/funcom_test/19494490.txt deleted file mode 100644 index efb063fbf15cb0fbc161f47ce5958c7669f3a1b3..0000000000000000000000000000000000000000 --- a/funcom_test/19494490.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private IEventBRoot getSelectedRoot() { - if (!(selection instanceof IStructuredSelection)) - return null; - - final IStructuredSelection ssel = (IStructuredSelection) selection; - if (ssel.size() != 1) - return null; - - final Object obj = ssel.getFirstElement(); - if (!(obj instanceof IInternalElement)) - return null; - - final IInternalElement root = (IInternalElement) obj; - if (!(root instanceof IContextRoot || root instanceof IMachineRoot)) - return null; - - return (IEventBRoot) root; - } - COM: <s> return the selected element if it is a </s> - diff --git a/funcom_test/19494744.txt b/funcom_test/19494744.txt deleted file mode 100644 index d7b96a46f23696dd29dbdb7c455235fa735d3ac3..0000000000000000000000000000000000000000 --- a/funcom_test/19494744.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Composite getButtonBoxControl(Composite parent) { - buttonBox = new Composite(parent, SWT.NULL); - GridLayout layout = new GridLayout(); - layout.marginWidth = 0; - buttonBox.setLayout(layout); - createButtons(buttonBox); - buttonBox.addDisposeListener(new DisposeListener() { - @Override - public void widgetDisposed(DisposeEvent event) { - addButton = null; - removeButton = null; - upButton = null; - downButton = null; - buttonBox = null; - } - }); - return buttonBox; - } - COM: <s> returns this field editors button box containing the add remove up </s> - diff --git a/funcom_test/19494899.txt b/funcom_test/19494899.txt deleted file mode 100644 index e52f42a7efbc85a9614021817cd0888c3b968923..0000000000000000000000000000000000000000 --- a/funcom_test/19494899.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void contributeToActionBars() { - final IPageSite site = getSite(); - final IActionBars bars = site.getActionBars(); - - // Setup global actions - UIUtils.addGlobalActionHandler(site, bars, ActionFactory.NEXT); - UIUtils.addGlobalActionHandler(site, bars, ActionFactory.PREVIOUS); - - fillLocalPullDown(bars.getMenuManager()); - fillLocalToolBar(bars.getToolBarManager()); - - // Commit changes - bars.updateActionBars(); - } - COM: <s> setup the action bars </s> - diff --git a/funcom_test/19495015.txt b/funcom_test/19495015.txt deleted file mode 100644 index 3c82444a3edd0b6bf2b5c74feaec13a709681971..0000000000000000000000000000000000000000 --- a/funcom_test/19495015.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int readPriority() { - String priorityValue = configElement.getAttribute("priority"); - if (priorityValue == null) { - UIUtils.log(null, - "Missing priority attribute (using default)," - + " for editor page extension " + id); - return DEFAULT_PRIORITY; - } - try { - return Integer.parseInt(priorityValue); - } catch (NumberFormatException e) { - UIUtils.log(e, - "Illegal priority " + priorityValue - + ", using default instead," - + " for editor page extension " + id); - return DEFAULT_PRIORITY; - } - } - COM: <s> utility method for reading the priority of the page </s> - diff --git a/funcom_test/19495211.txt b/funcom_test/19495211.txt deleted file mode 100644 index 7a0e8328761af8e0eb12634f304a098caeeca819..0000000000000000000000000000000000000000 --- a/funcom_test/19495211.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private boolean isSimplePattern(Expression expr, int loIndex, int hiIndex) { - if (expr.getTag() == Expression.MAPSTO) { - BinaryExpression bin = (BinaryExpression) expr; - return hasBoundIndex(bin.getRight(), loIndex) && - isSimplePattern(bin.getLeft(), loIndex + 1, hiIndex); - } - return loIndex == hiIndex && hasBoundIndex(expr, loIndex); - } - COM: <s> returns whether the given expression is a simple pattern that can be </s> - diff --git a/funcom_test/19495486.txt b/funcom_test/19495486.txt deleted file mode 100644 index 4c9712f147199a8aec94b9a9842da06ada5d8bb7..0000000000000000000000000000000000000000 --- a/funcom_test/19495486.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void fireSelectionChanged(final SelectionChangedEvent event) { - Object[] listeners = this.listenerList.getListeners(); - for (int i = 0; i < listeners.length; ++i) { - final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i]; - SafeRunner.run(new SafeRunnable() { - @Override - public void run() { - l.selectionChanged(event); - } - }); - } - } - COM: <s> notifies all registered selection changed listeners that the editors </s> - diff --git a/funcom_test/19495499.txt b/funcom_test/19495499.txt deleted file mode 100644 index 039de106240ee720df3e58118ce425fc4cbcc7cc..0000000000000000000000000000000000000000 --- a/funcom_test/19495499.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void handleClosedProjects(IRodinElementDelta[] changedDeltas) { - for (final IRodinElementDelta child : changedDeltas) { - final IRodinElement elt = child.getElement(); - if (elt instanceof IRodinProject - && (child.getFlags() & IRodinElementDelta.F_CLOSED) != 0) { - final IRodinProject project = elt.getRodinProject(); - final IProject prj = project.getProject(); - final EditorInputFilter filter = new ProjectInputFilter(prj); - closeRelatedEditors(filter); - } - } - } - COM: <s> method that close all active and inactive editors contained by a project </s> - diff --git a/funcom_test/19495757.txt b/funcom_test/19495757.txt deleted file mode 100644 index f49aef0a63d06037701e545abe7b74b7de4bad44..0000000000000000000000000000000000000000 --- a/funcom_test/19495757.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void notifyElementChangedListeners(final IRodinElementDelta delta) { - IElementChangedListener[] safeCopy; - synchronized (listeners) { - safeCopy = listeners.toArray(new IElementChangedListener[listeners - .size()]); - } - for (final IElementChangedListener listener : safeCopy) { - SafeRunner.run(new ISafeRunnable() { - @Override - public void handleException(Throwable exception) { - // do nothing, will be logged by the platform - } - - @Override - public void run() throws Exception { - listener.elementChanged(new ElementChangedEvent(delta, - ElementChangedEvent.POST_CHANGE)); - } - }); - } - } - COM: <s> notified the element changed </s> - diff --git a/funcom_test/19495941.txt b/funcom_test/19495941.txt deleted file mode 100644 index 913e9c95e53fed4b609ed00749a2ae812f9b8827..0000000000000000000000000000000000000000 --- a/funcom_test/19495941.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void update() { - TreeViewer viewer = getTreeViewer(); - if (viewer != null) { - Control control = viewer.getControl(); - if (control != null && !control.isDisposed()) { - control.setRedraw(false); - - // Saving the expanded elements - Object[] elements = viewer.getExpandedElements(); - viewer.setInput(fInput.exists() ? fInput : null); - viewer.setExpandedElements(elements); - control.setRedraw(true); - } - } - } - COM: <s> updates the outline page </s> - diff --git a/funcom_test/19496012.txt b/funcom_test/19496012.txt deleted file mode 100644 index bb1c3052c30d42a7e99f34886c25709a51bb2edd..0000000000000000000000000000000000000000 --- a/funcom_test/19496012.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void addComponentName(IInternalElement root) { - // Print the Machine/Context name - beginLevel0(); - if (root instanceof IMachineRoot) { - bold("MACHINE"); - } else if (root instanceof IContextRoot) { - bold("CONTEXT"); - } - append(SPACE); - final String handle = root.getHandleIdentifier(); - final String bareName = root.getRodinFile().getBareName(); - append(makeHyperlink(handle, bareName)); - endLevel(); - return; - } - COM: <s> this private helper method adds the component name to the content string </s> - diff --git a/funcom_test/19496550.txt b/funcom_test/19496550.txt deleted file mode 100644 index c8027de93ef0da3d8c760f32f3442524503a6307..0000000000000000000000000000000000000000 --- a/funcom_test/19496550.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setCurrentPO(IPSStatus psStatus, IProgressMonitor monitor) { - final IProofState proofState = userSupport.getCurrentPO(); - if (proofState != null && proofState.getPSStatus().equals(psStatus)) - return; - try { - userSupport.setCurrentPO(psStatus, monitor); - } catch (RodinDBException e) { - e.printStackTrace(); - } - } - COM: <s> set the current proof obligation </s> - diff --git a/funcom_test/19496644.txt b/funcom_test/19496644.txt deleted file mode 100644 index a4f22129498a59052c5fff87dbc0db8108e31982..0000000000000000000000000000000000000000 --- a/funcom_test/19496644.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: protected void refresh() { - if (!control.isVisible()) { - tracker.trace("No refresh"); - dirty = true; - return; - } - tracker.start(); - final IProofState ps = userSupport.getCurrentPO(); - final IProverSequent sequent; - final Iterable<Predicate> hyps; - final boolean enabled; - if (ps == null) { - sequent = null; - hyps = Collections.emptyList(); - enabled = false; - } else { - sequent = getProverSequent(ps); - hyps = getHypotheses(ps); - enabled = isEnabled(ps); - } - reinitialise(hyps, sequent, enabled); - dirty = false; - tracker.endTask("refresh"); - } - COM: <s> refresh the content of the hypothesis composite by recreating the </s> - diff --git a/funcom_test/19496729.txt b/funcom_test/19496729.txt deleted file mode 100644 index 3e63c37e157d3de92c13ae62a646dd8c11805448..0000000000000000000000000000000000000000 --- a/funcom_test/19496729.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void instantiate() { - final IUserSupport us = getUserSupport(); - final String[] inputs = getPredicateText().getResults(); - final String globalInput = getProverUI().getProofControl().getInput(); - if (isGoal) { - ProverUIUtils.applyInstantiation(null, us, inputs, globalInput); - return; - } - ProverUIUtils.applyInstantiation(pred, us, inputs, globalInput); - } - COM: <s> instantiates the given predicate with the current value of the inputs </s> - diff --git a/funcom_test/19496744.txt b/funcom_test/19496744.txt deleted file mode 100644 index 76508b60521a438f2a7324054c176264f94090e7..0000000000000000000000000000000000000000 --- a/funcom_test/19496744.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void apply(ICommandApplication commandAppli) { - final String[] inputs = getPredicateText().getResults(); - final IUserSupport us = getUserSupport(); - if (isGoal()) { - ProverUIUtils.applyCommand(commandAppli.getProofCommand(), us, - null, inputs, new NullProgressMonitor()); - return; - } - ProverUIUtils.applyCommand(commandAppli.getProofCommand(), us, - getPredicate(), inputs, new NullProgressMonitor()); - } - COM: <s> applies the command to the predicate held by this row </s> - diff --git a/funcom_test/19497396.txt b/funcom_test/19497396.txt deleted file mode 100644 index c198d25d8038e1d044191c92038202bc96877265..0000000000000000000000000000000000000000 --- a/funcom_test/19497396.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void projectSelectionChanged(IRodinProject project) { - selectedProject = project; - - if (allowNewProjectName) { - if (project == null) { - projectNameField.setText("");//$NON-NLS-1$ - } else { - String text = project.getElementName(); - projectNameField.setText(text); - projectNameField.setToolTipText(text); - } - } - - // fire an event so the parent can update its controls - if (listener != null) { - Event changeEvent = new Event(); - changeEvent.type = SWT.Selection; - changeEvent.widget = this; - listener.handleEvent(changeEvent); - } - } - COM: <s> the project selection has changed in the tree view </s> - diff --git a/funcom_test/19497525.txt b/funcom_test/19497525.txt deleted file mode 100644 index 56d6998d7d4c67343ef1605a936b67e7eb8b6a1e..0000000000000000000000000000000000000000 --- a/funcom_test/19497525.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testVersion_03_contextSC() throws Exception { - IContextRoot root = createContext("ctx"); - root.setConfiguration(ORG_EVENTB_CORE_FWD, null); - saveRodinFileOf(root); - - runBuilder(); - - ISCContextRoot scRoot = root.getSCContextRoot(); - - assertEquals("attribute missing in SC context", ORG_EVENTB_CORE_FWD, scRoot.getConfiguration()); - } - COM: <s> sc contexts are updated to contexts of version 1 </s> - diff --git a/funcom_test/19497530.txt b/funcom_test/19497530.txt deleted file mode 100644 index 3822dde8e340863845d381cf0994340a64e7fccb..0000000000000000000000000000000000000000 --- a/funcom_test/19497530.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testVersion_04_machineSC() throws Exception { - IMachineRoot root = createMachine("mch"); - root.setConfiguration(ORG_EVENTB_CORE_FWD, null); - saveRodinFileOf(root); - - runBuilder(); - - ISCMachineRoot scRoot = root.getSCMachineRoot(); - - assertEquals("attribute missing in SC machine", ORG_EVENTB_CORE_FWD, scRoot.getConfiguration()); - } - COM: <s> sc machines are updated to machines of version 1 </s> - diff --git a/funcom_test/19497542.txt b/funcom_test/19497542.txt deleted file mode 100644 index b7d7e8d52e830ba39741bbe245d58e272af47ab9..0000000000000000000000000000000000000000 --- a/funcom_test/19497542.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setSelectedProject(IRodinProject project) { - selectedProject = project; - - // expand to and select the specified project - List<IRodinElement> itemsToExpand = new ArrayList<IRodinElement>(); - IRodinElement parent = project.getParent(); - while (parent != null) { - itemsToExpand.add(0, parent); - parent = parent.getParent(); - } - treeViewer.setExpandedElements(itemsToExpand.toArray()); - treeViewer.setSelection(new StructuredSelection(project), true); - } - COM: <s> sets the selected existing project </s> - diff --git a/funcom_test/19497680.txt b/funcom_test/19497680.txt deleted file mode 100644 index 47e809548bf51be47b8455b44d63bd654d557009..0000000000000000000000000000000000000000 --- a/funcom_test/19497680.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testDelta_01_initCtxPredSet() throws Exception { - IContextRoot root = createContext("ctx"); - addAxioms(root, makeSList("A"), makeSList("ℕ≠∅"), false); - saveRodinFileOf(root); - - runBuilder(); - - hasStamp(root.getPORoot().getPredicateSets()[0], IPOStampedElement.INIT_STAMP); - hasStamp(root.getPORoot().getPredicateSets()[1], IPOStampedElement.INIT_STAMP); - - } - COM: <s> verifies that predicate sets created initially receive </s> - diff --git a/funcom_test/19497685.txt b/funcom_test/19497685.txt deleted file mode 100644 index 60e077447c49b5a42a0fbf6eaa13aac1ed2230a4..0000000000000000000000000000000000000000 --- a/funcom_test/19497685.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testDelta_02_initCtxSequent() throws Exception { - IContextRoot root = createContext("ctx"); - addAxioms(root, makeSList("T"), makeSList("ℕ≠∅"), true); - saveRodinFileOf(root); - - runBuilder(); - - hasStamp(root.getPORoot().getSequents()[0], IPOStampedElement.INIT_STAMP); - - } - COM: <s> verifies that sequents created initially receive </s> - diff --git a/funcom_test/19497711.txt b/funcom_test/19497711.txt deleted file mode 100644 index cc70acac451cb48d54c9f69cbd4b158e8f7d329f..0000000000000000000000000000000000000000 --- a/funcom_test/19497711.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testDelta_09_delCtxPredSet() throws Exception { - IContextRoot con = createContext("ctx"); - addAxioms(con, makeSList("A"), makeSList("ℕ≠∅"), false); - saveRodinFileOf(con); - - runBuilder(); - - hasStamp(con.getPORoot(), IPOStampedElement.INIT_STAMP); - - - con = createContext("ctx"); - saveRodinFileOf(con); - - runBuilder(); - - hasStamp(con.getPORoot(), IPOStampedElement.INIT_STAMP+1); - - } - COM: <s> verifies that the po file stamp is incremented when a predicate set </s> - diff --git a/funcom_test/19497741.txt b/funcom_test/19497741.txt deleted file mode 100644 index 7f6712b5ff0004d4dafa7c216fd02dd2460f1f57..0000000000000000000000000000000000000000 --- a/funcom_test/19497741.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testDelta_15_Machine() throws Exception { - final IMachineRoot mac = createMachine("mac"); - final IPORoot po = mac.getPORoot(); - - addInvariants(mac, makeSList("I"), makeSList("1∈ℤ"), false); - saveRodinFileOf(mac); - - runBuilder(); - - addVariant(mac, "1"); - saveRodinFileOf(mac); - - runBuilderNotChanged(po); - } - COM: <s> ensures that the proof obligation file of a machine is modified only </s> - diff --git a/funcom_test/19497745.txt b/funcom_test/19497745.txt deleted file mode 100644 index 5ae506928dec3e96dde538858c5df41e4a802ed1..0000000000000000000000000000000000000000 --- a/funcom_test/19497745.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testBug3489973() { - doTest("prj2(r(a ↦ b)) ∈ T", // - "∃aa·(∀a1,b1·a ↦ b ↦ (a1 ↦ b1) ∈ r ⇒ b1 = aa) ∧ aa ∈ T", // - true, // - mTypeEnvironment("r", "ℤ×ℤ ↔ ℤ×ℤ")); - } - COM: <s> ensures that bug 3489973 npe in pp trans is fixed original predicate </s> - diff --git a/funcom_test/19497899.txt b/funcom_test/19497899.txt deleted file mode 100644 index ac9dac84839fd514523cee141dca6e744c6d3132..0000000000000000000000000000000000000000 --- a/funcom_test/19497899.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testCommitBroken() throws Exception { - final IProofAttempt pa = pc.createProofAttempt(PO1, TEST, null); - dischargeTrueGoal(pa); - increasePOStamp(PO1); - pa.commit(true, null); - assertNonEmptyProof(pc.getProofSkeleton(PO1, ff, null)); - assertStatus(DISCHARGED_MAX, true, true, pc.getStatus(PO1)); - } - COM: <s> ensures that one can commit a discharging proof attempt successfully </s> - diff --git a/funcom_test/19497900.txt b/funcom_test/19497900.txt deleted file mode 100644 index fb5941063081c2d7ad1b3c923ae30153b674260b..0000000000000000000000000000000000000000 --- a/funcom_test/19497900.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void assertOpen(Predicate[] hyps, Predicate goal) { - final IProofTreeNode node = userSupport.getCurrentPO().getCurrentNode(); - assertNotNull("No current node in loaded PO", node); - assertTrue("Current node should be open", node.isOpen()); - assertSequent(hyps, goal, node.getSequent()); - } - COM: <s> checks that the current node of the current proof tree is open and </s> - diff --git a/funcom_test/19497924.txt b/funcom_test/19497924.txt deleted file mode 100644 index 9b9fb69c31b245e2affa8fcdc9f35dbc65ba942c..0000000000000000000000000000000000000000 --- a/funcom_test/19497924.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testSecondChild() throws CoreException { - setCurrentPO("PO1"); - assertOpen(mList(), G); - - final ITactic tac = Tactics.doCase(P1.toString()); - userSupport.applyTactic(tac, false, null); - assertOpen(mList(), btrue); - - final ITactic tac2 = Tactics.review(REVIEWED_MAX); - userSupport.applyTactic(tac2, false, null); - assertOpen(mList(P1), G); - } - COM: <s> ensures that the current node after closing the first child is the second </s> - diff --git a/funcom_test/19497931.txt b/funcom_test/19497931.txt deleted file mode 100644 index 26b48f7983dd2dec321a5d4795d86e30c55ceb9e..0000000000000000000000000000000000000000 --- a/funcom_test/19497931.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testSecondThenThirdChild() throws CoreException { - setCurrentPO("PO1"); - assertOpen(mList(), G); - - final ITactic tac = Tactics.doCase(P1.toString()); - userSupport.applyTactic(tac, false, null); - assertOpen(mList(), btrue); - - gotoNextSibling(); - assertOpen(mList(P1), G); - - final ITactic tac2 = Tactics.review(REVIEWED_MAX); - userSupport.applyTactic(tac2, false, null); - assertOpen(mList(nP1), G); - } - COM: <s> ensures that the current node after closing the second child is the third </s> - diff --git a/funcom_test/19497940.txt b/funcom_test/19497940.txt deleted file mode 100644 index f97a17d0236661c7f887a127c0297084e3fd99f0..0000000000000000000000000000000000000000 --- a/funcom_test/19497940.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testThirdThenFirstChild() throws CoreException { - setCurrentPO("PO1"); - assertOpen(mList(), G); - - final ITactic tac = Tactics.doCase(P1.toString()); - userSupport.applyTactic(tac, false, null); - assertOpen(mList(), btrue); - - gotoNextSibling(); - assertOpen(mList(P1), G); - - gotoNextSibling(); - assertOpen(mList(nP1), G); - - final ITactic tac2 = Tactics.review(REVIEWED_MAX); - userSupport.applyTactic(tac2, false, null); - assertOpen(mList(), btrue); - } - COM: <s> ensures that the current node after closing the third child is the first </s> - diff --git a/funcom_test/19497955.txt b/funcom_test/19497955.txt deleted file mode 100644 index 33a297ad0f47b0548cc8415679a91b5c17f1c73f..0000000000000000000000000000000000000000 --- a/funcom_test/19497955.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testCreateTwoSameOwner() throws Exception { - createPOFile(); - runBuilder(); - final IProofAttempt pa = pc.createProofAttempt(PO1, TEST, null); - final IProofAttempt pa2 = pc.createProofAttempt(PO2, TEST, null); - assertNotNull(pa2); - assertNotSame(pa, pa2); - assertLivePAs(pa, pa2); - } - COM: <s> ensures that one can create two proof attempts for two existing pos with </s> - diff --git a/funcom_test/19497971.txt b/funcom_test/19497971.txt deleted file mode 100644 index 7339760989fcc487fbe614fad02bd62a1dda19b2..0000000000000000000000000000000000000000 --- a/funcom_test/19497971.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testCreateTwoSamePO() throws Exception { - createPOFile(); - runBuilder(); - final IProofAttempt pa = pc.createProofAttempt(PO1, TEST, null); - final IProofAttempt pa2 = pc.createProofAttempt(PO1, OTHER, null); - assertNotNull(pa2); - assertNotSame(pa, pa2); - assertLivePAs(pa, pa2); - } - COM: <s> ensures that one can create two proof attempts for an existing po with </s> - diff --git a/funcom_test/19497992.txt b/funcom_test/19497992.txt deleted file mode 100644 index a25c0606091c64d5700a5a3171caf1d831b3dfaf..0000000000000000000000000000000000000000 --- a/funcom_test/19497992.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testChangePONotLoaded() throws Exception { - POUtil - .addSequent(poRoot, originalPO, "1 = 2", hyp0, - mTypeEnvironment()); - POUtil.addSequent(poRoot, dischargedPO, "1 = 1", hyp1, - mTypeEnvironment()); - saveRodinFileOf(poRoot); - runBuilder(); - userSupport = newUserSupport(psRoot); - startDeltas(); - PSWrapperUtil.copyPO(poRoot, psRoot, prRoot, originalPO, dischargedPO); - assertDeltas("Changed: PO is not loaded ", ""); - stopDeltas(); - } - COM: <s> this corresponding to the case where the orinal po is not loaded </s> - diff --git a/funcom_test/19497998.txt b/funcom_test/19497998.txt deleted file mode 100644 index 4577408a7e82da2ce8a57f3eba6e8e791733cd0a..0000000000000000000000000000000000000000 --- a/funcom_test/19497998.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testTwoConcrete() throws Exception { - final IMachineRoot abs = createMachine("M1"); - addInitialisation(abs); - saveRodinFileOf(abs); - - final IMachineRoot con1 = createMachine("A1"); - addMachineRefines(con1, abs.getElementName()); - addInitialisation(con1); - saveRodinFileOf(con1); - - final IMachineRoot con2 = createMachine("A2"); - addMachineRefines(con2, abs.getElementName()); - addInitialisation(con2); - saveRodinFileOf(con2); - - runBuilder(); - assertNoMarker(abs.getRodinProject()); - assertGenerated(abs, con1, con2); - } - COM: <s> regression test for builder bug two components depend on a third one </s> - diff --git a/funcom_test/19498003.txt b/funcom_test/19498003.txt deleted file mode 100644 index 0a6fe200b3a91e0fe962ff5bc002864458609b72..0000000000000000000000000000000000000000 --- a/funcom_test/19498003.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testMultipleConfigurations() throws Exception { - final IMachineRoot abs = createMachine("M1"); - final String oldConfig = abs.getConfiguration(); - final String newConfig = oldConfig + ";" + INEXISTENT_CONFIG; - abs.setConfiguration(newConfig, null); - addInitialisation(abs); - saveRodinFileOf(abs); - - runBuilder(); - assertMarkers(abs.getRodinProject(), GraphProblem.UnknownConfigurationWarning); - assertGenerated(abs); - - assertEquals(newConfig, abs.getSCMachineRoot().getConfiguration()); - } - COM: <s> test ensuring that several configurations can be given within a file and </s> - diff --git a/funcom_test/19498015.txt b/funcom_test/19498015.txt deleted file mode 100644 index 591f363525888729bc681bea532ed7a5450d9abd..0000000000000000000000000000000000000000 --- a/funcom_test/19498015.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testSchedulingRule() throws Exception { - final ISchedulingRule rule = pc.getSchedulingRule(); - assertFalse(rule.contains(mchroot.getSchedulingRule())); - assertFalse(rule.contains(scRoot.getSchedulingRule())); - assertTrue(rule.contains(poRoot.getSchedulingRule())); - assertTrue(rule.contains(prRoot.getSchedulingRule())); - assertTrue(rule.contains(psRoot.getSchedulingRule())); - } - COM: <s> ensures that the scheduling rule for a proof component is correctly </s> - diff --git a/funcom_test/19498207.txt b/funcom_test/19498207.txt deleted file mode 100644 index 7b7da193e16ae19c8972acba3c3221245a976963..0000000000000000000000000000000000000000 --- a/funcom_test/19498207.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testVariant_07() throws Exception { - IMachineRoot mac = createMachine("mac"); - - addInitialisation(mac); - setOrdinary(addEvent(mac, "evt")); - addVariant(mac, "1"); - - saveRodinFileOf(mac); - - runBuilder(); - - ISCMachineRoot file = mac.getSCMachineRoot(); - - containsEvents(file, IEvent.INITIALISATION, "evt"); - - hasMarker(mac.getVariants()[0], EventBAttributes.EXPRESSION_ATTRIBUTE, - GraphProblem.NoConvergentEventButVariantWarning); - } - COM: <s> if there is no convergent event then there need not be a variant </s> - diff --git a/funcom_test/19498211.txt b/funcom_test/19498211.txt deleted file mode 100644 index 1c873a088559988641046eb47134c1bf3e0b04fa..0000000000000000000000000000000000000000 --- a/funcom_test/19498211.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testCarrierSets_01_twoCarrierSets() throws Exception { - IContextRoot con = createContext("ctx"); - - addCarrierSets(con, makeSList("S1", "S2")); - - saveRodinFileOf(con); - - runBuilder(); - - ISCContextRoot file = con.getSCContextRoot(); - - containsCarrierSets(file, "S1", "S2"); - - containsMarkers(con, false); - } - COM: <s> creation of two carrier sets </s> - diff --git a/funcom_test/19498213.txt b/funcom_test/19498213.txt deleted file mode 100644 index 2d80d84fd115c9640190d45e1a46f1b237e1f4ba..0000000000000000000000000000000000000000 --- a/funcom_test/19498213.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testCarrierSets_02_twoCarrierSetsNameConflict() throws Exception { - IContextRoot con = createContext("ctx"); - - addCarrierSets(con, makeSList("S1", "S1")); - - saveRodinFileOf(con); - - runBuilder(); - - ISCContextRoot file = con.getSCContextRoot(); - - containsCarrierSets(file); - - hasMarker(con.getCarrierSets()[0]); - hasMarker(con.getCarrierSets()[1]); - } - COM: <s> name conflict between two carrier sets </s> - diff --git a/funcom_test/19498215.txt b/funcom_test/19498215.txt deleted file mode 100644 index 5e0b429d226ad809dc853a463933ac8846ae8647..0000000000000000000000000000000000000000 --- a/funcom_test/19498215.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testAcc_03() throws Exception { - IContextRoot abs = createContext("abs"); - - addAxioms(abs, makeSList("T"), makeSList("x∈ℕ"), true); - - saveRodinFileOf(abs); - - IContextRoot con = createContext("ctx"); - addContextExtends(con, "abs"); - - addAxioms(con, makeSList("X"), makeSList("1<0"), true); - - saveRodinFileOf(con); - - runBuilder(); - - containsMarkers(con, false); - isNotAccurate(abs.getSCContextRoot()); - } - COM: <s> inaccurate abstract contexts should make an sc context inaccurate </s> - diff --git a/funcom_test/19498216.txt b/funcom_test/19498216.txt deleted file mode 100644 index 1a26c4898531e6bc4c8775602f8a7cb8fc4f08dd..0000000000000000000000000000000000000000 --- a/funcom_test/19498216.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testCarrierSets_03_carrierSetFaultyName() throws Exception { - IContextRoot con = createContext("ctx"); - - addCarrierSets(con, makeSList("S>", "k-1", "#")); - - saveRodinFileOf(con); - - runBuilder(); - - ISCContextRoot file = con.getSCContextRoot(); - - containsCarrierSets(file); - - hasMarker(con.getCarrierSets()[0]); - hasMarker(con.getCarrierSets()[1]); - hasMarker(con.getCarrierSets()[2]); - - } - COM: <s> faulty names for carrier sets </s> - diff --git a/funcom_test/19498217.txt b/funcom_test/19498217.txt deleted file mode 100644 index 3dfce39337b0cd8a32829d7b4954ba237da15cff..0000000000000000000000000000000000000000 --- a/funcom_test/19498217.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void testSeesContext_01() throws Exception { - IContextRoot con1 = createContext("con1"); - saveRodinFileOf(con1); - - IContextRoot con2 = createContext("con2"); - addContextExtends(con2, "con1"); - saveRodinFileOf(con2); - - IMachineRoot mac = createMachine("mac"); - addInitialisation(mac); - addMachineSees(mac, "con2"); - saveRodinFileOf(mac); - - runBuilder(); - - ISCMachineRoot file = mac.getSCMachineRoot(); - seesContexts(file, "con2"); - containsContexts(file, "con1", "con2"); - - containsMarkers(mac, false); - } - COM: <s> ensures that a context seen only indirectly occurs as an internal </s> - diff --git a/funcom_test/19498218.txt b/funcom_test/19498218.txt deleted file mode 100644 index 44322ebbce6c4cfd5882c5a6f466959b2620c450..0000000000000000000000000000000000000000 --- a/funcom_test/19498218.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testVariant_09_bug2689872() throws Exception { - IMachineRoot mac = createMachine("mac"); - - setConvergent(addEvent(mac, "evt")); - addInitialisation(mac); - addVariant(mac, "{x ∣ x /= 0}"); - - saveRodinFileOf(mac); - - runBuilder(); - - ISCMachineRoot file = mac.getSCMachineRoot(); - - containsVariant(file, emptyEnv); - - hasMarker(mac.getVariants()[0], EventBAttributes.EXPRESSION_ATTRIBUTE, - ParseProblem.LexerError, "/"); - } - COM: <s> create a variant containing an illegal character </s> - diff --git a/funcom_test/19498222.txt b/funcom_test/19498222.txt deleted file mode 100644 index 6ccbb4c8c7a183c49f5bb649b63103e2bc85089b..0000000000000000000000000000000000000000 --- a/funcom_test/19498222.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void testSeesContext_02() throws Exception { - IContextRoot con = createContext("ctx"); - saveRodinFileOf(con); - - IMachineRoot abs = createMachine("abs"); - addMachineSees(abs, "ctx"); - saveRodinFileOf(abs); - - IMachineRoot mac = createMachine("mac"); - addMachineRefines(mac, "abs"); - saveRodinFileOf(mac); - - runBuilder(); - - ISCMachineRoot file = mac.getSCMachineRoot(); - seesContexts(file, "ctx"); - containsContexts(file, "ctx"); - - hasMarker(mac.getRefinesClauses()[0]); - } - COM: <s> ensures that a context seen through the abstraction is repaired and </s> - diff --git a/funcom_test/19498227.txt b/funcom_test/19498227.txt deleted file mode 100644 index 7cb470d06ff18e71832da84722d38d141d9bdb3a..0000000000000000000000000000000000000000 --- a/funcom_test/19498227.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void test_00() throws Exception { - E con = getGeneric().createElement("elt"); - - getGeneric().addPredicates(con, makeSList("P"), makeSList("ℕ≠∅"), false); - - getGeneric().save(con); - - runBuilder(); - - SCE file = getGeneric().getSCElement(con); - - getGeneric().containsPredicates(file, emptyEnv, makeSList("P"), makeSList("ℕ≠∅"), false); - - getGeneric().containsMarkers(con, false); - } - COM: <s> creation of axiom or invariant </s> - diff --git a/funcom_test/19498229.txt b/funcom_test/19498229.txt deleted file mode 100644 index 1c6035b791caf89b057cf5cbbe8f78edf97898a6..0000000000000000000000000000000000000000 --- a/funcom_test/19498229.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testSeesContext_03() throws Exception { - IContextRoot con1 = createContext("con1"); - saveRodinFileOf(con1); - - IContextRoot con2 = createContext("con2"); - addContextExtends(con2, "con1"); - saveRodinFileOf(con2); - - IMachineRoot abs = createMachine("abs"); - addMachineSees(abs, "con2"); - saveRodinFileOf(abs); - - IMachineRoot mac = createMachine("mac"); - addMachineRefines(mac, "abs"); - saveRodinFileOf(mac); - - runBuilder(); - - ISCMachineRoot file = mac.getSCMachineRoot(); - seesContexts(file, "con2"); - containsContexts(file, "con1", "con2"); - } - COM: <s> ensures that a context seen through the abstraction and where its </s> - diff --git a/funcom_test/19498237.txt b/funcom_test/19498237.txt deleted file mode 100644 index 3ac16d389166d350aad637cedc145cc15436cbac..0000000000000000000000000000000000000000 --- a/funcom_test/19498237.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void test_02() throws Exception { - E con = getGeneric().createElement("elt"); - - getGeneric().addPredicates(con, makeSList("A1"), makeSList("ℕ≠BOOL"), false); - - getGeneric().save(con); - - runBuilder(); - - SCE file = getGeneric().getSCElement(con); - - getGeneric().containsPredicates(file, emptyEnv, makeSList(), makeSList()); - - hasMarker(getGeneric().getPredicates(con)[0]); - } - COM: <s> type conflict in one axiom or invariant </s> - diff --git a/funcom_test/19498246.txt b/funcom_test/19498246.txt deleted file mode 100644 index bc0d01e626fab61a1a46d26b941c2a361787a648..0000000000000000000000000000000000000000 --- a/funcom_test/19498246.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void test_04() throws Exception { - E con = getGeneric().createElement("elt"); - - getGeneric().addPredicates(con, makeSList("A1"), makeSList("C1∈ℕ"), false); - - getGeneric().save(con); - - runBuilder(); - - SCE file = getGeneric().getSCElement(con); - - getGeneric().containsPredicates(file, emptyEnv, makeSList(), makeSList()); - - hasMarker(getGeneric().getPredicates(con)[0]); - } - COM: <s> use of undeclared constants or variables </s> - diff --git a/funcom_test/19498248.txt b/funcom_test/19498248.txt deleted file mode 100644 index a8a93cd78ab898a0d725ee1db595ff0391a33977..0000000000000000000000000000000000000000 --- a/funcom_test/19498248.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void testAcc_06() throws Exception { - IContextRoot abs = createContext("abs"); - - addAxioms(abs, makeSList("T"), makeSList("x∈ℕ"), true); - - saveRodinFileOf(abs); - - IMachineRoot con = createMachine("cnc"); - addMachineSees(con, "abs"); - addInitialisation(con); - - addInvariants(con, makeSList("X"), makeSList("1<0"), true); - - saveRodinFileOf(con); - - runBuilder(); - - containsMarkers(con, false); - isNotAccurate(con.getSCMachineRoot()); - } - COM: <s> inaccurate seen contexts should make an sc machine inaccurate </s> - diff --git a/funcom_test/19498258.txt b/funcom_test/19498258.txt deleted file mode 100644 index b6ddeae4b4fc4676ab64afd2e65d5a316cefde35..0000000000000000000000000000000000000000 --- a/funcom_test/19498258.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void testAcc_07() throws Exception { - IMachineRoot abs = createMachine("abs"); - addInitialisation(abs); - - addInvariants(abs, makeSList("T"), makeSList("x∈ℕ"), true); - - saveRodinFileOf(abs); - - IMachineRoot con = createMachine("cnc"); - addMachineRefines(con, "abs"); - addInitialisation(con); - - addInvariants(con, makeSList("X"), makeSList("1<0"), true); - - saveRodinFileOf(con); - - runBuilder(); - - containsMarkers(con, false); - isNotAccurate(con.getSCMachineRoot()); - } - COM: <s> inaccurate abstract machines should make an sc machine inaccurate </s> - diff --git a/funcom_test/19498265.txt b/funcom_test/19498265.txt deleted file mode 100644 index 60fa47572a9b82ff565ca62e6c33662cf59f1ff0..0000000000000000000000000000000000000000 --- a/funcom_test/19498265.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testAcc_08() throws Exception { - IMachineRoot con = createMachine("cnc"); - - addInitialisation(con, makeSList()); - addEvent(con, "evt", makeSList(), - makeSList("G"), makeSList("x∈ℕ"), - makeSList(), makeSList()); - - saveRodinFileOf(con); - - runBuilder(); - - isAccurate(con.getSCMachineRoot()); - isNotAccurate(con.getSCMachineRoot().getSCEvents()[1]); - } - COM: <s> erroneous guards should make an sc event inaccurate </s> - diff --git a/funcom_test/19498280.txt b/funcom_test/19498280.txt deleted file mode 100644 index 67866a8b1227daa585c2461df3e44ed8fadb1a88..0000000000000000000000000000000000000000 --- a/funcom_test/19498280.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void test_10_bug2689872() throws Exception { - E con = getGeneric().createElement("elt"); - - getGeneric().addPredicates(con, makeSList("A1"), makeSList("0/=1"), false); - - getGeneric().save(con); - - runBuilder(); - - SCE file = getGeneric().getSCElement(con); - - getGeneric().containsPredicates(file, emptyEnv, makeSList(), makeSList()); - - hasMarker(getGeneric().getPredicates(con)[0], - EventBAttributes.PREDICATE_ATTRIBUTE, - ParseProblem.LexerError, - "/" - ); - } - COM: <s> an invalid character in a predicate is ignored but reported as a warning </s> - diff --git a/funcom_test/19498283.txt b/funcom_test/19498283.txt deleted file mode 100644 index b05b1ea70882eddb0ba5e428ec6d1eee3401c28c..0000000000000000000000000000000000000000 --- a/funcom_test/19498283.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void test_11() throws Exception { - E con = getGeneric().createElement("elt"); - - getGeneric().addIdents(con, "C1"); - getGeneric().addPredicates(con, makeSList("T1"), makeSList("C1 ∈ ℤ"), true); - - getGeneric().save(con); - - runBuilder(); - - getGeneric().containsMarkers(con, false); - } - COM: <s> a piece of data can now be typed by a theorem </s> - diff --git a/funcom_test/19498290.txt b/funcom_test/19498290.txt deleted file mode 100644 index 33b9b5a8ad36963100bef6835fb0d5df0230b2ff..0000000000000000000000000000000000000000 --- a/funcom_test/19498290.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void test_12() throws Exception { - E con = getGeneric().createElement("elt"); - - getGeneric().addPredicates(con, makeSList(""), makeSList("ℕ≠∅"), false); - - getGeneric().save(con); - - runBuilder(); - - hasMarker(getGeneric().getPredicates(con)[0], null, GraphProblem.EmptyLabelError); - } - COM: <s> creation of an axiom or an invariant with an empty label </s> - diff --git a/funcom_test/19498298.txt b/funcom_test/19498298.txt deleted file mode 100644 index 362b5b0b0be0d6aaad3528bacf0fe518048437ee..0000000000000000000000000000000000000000 --- a/funcom_test/19498298.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void testOccThm() throws Exception { - - final IContextRoot context = - ResourceUtils.createContext(rodinProject, CTX_BARE_NAME, CST_1DECL_1REF_THM); - - final IConstant cst1 = context.getConstant(INTERNAL_ELEMENT1); - final IDeclaration declCst1 = newDecl(cst1, CST1); - - final IAxiom thm = context.getAxiom(INTERNAL_ELEMENT1); - final IOccurrence occRef = makeRefPred(thm, 9, 13, declCst1); - - - final BridgeStub tk = new BridgeStub(context); - - final ContextIndexer indexer = new ContextIndexer(); - - assertTrue(indexer.index(tk)); - - tk.assertOccurrencesOtherThanDecl(cst1, occRef); - } - COM: <s> all other tests only check for occurrences in axioms </s> - diff --git a/funcom_test/19498301.txt b/funcom_test/19498301.txt deleted file mode 100644 index 9d1eae92a2eb45a07a47431d4d27cb2a591ed9bd..0000000000000000000000000000000000000000 --- a/funcom_test/19498301.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testAcc_12() throws Exception { - IMachineRoot con = createMachine("cnc"); - - addInitialisation(con, makeSList()); - addEvent(con, "evt", makeSList(), - makeSList(), makeSList(), - makeSList("A"), makeSList("x≔0")); - - saveRodinFileOf(con); - - runBuilder(); - - isAccurate(con.getSCMachineRoot()); - isNotAccurate(con.getSCMachineRoot().getSCEvents()[1]); - } - COM: <s> erroneous actions should make an sc event inaccurate </s> - diff --git a/funcom_test/19498308.txt b/funcom_test/19498308.txt deleted file mode 100644 index 2dca24f30b673c596e1f2e7855709514626ebcf3..0000000000000000000000000000000000000000 --- a/funcom_test/19498308.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testAcc_13() throws Exception { - IMachineRoot con = createMachine("cnc"); - - addVariables(con, "v"); - addInvariants(con, makeSList("I"), makeSList("v∈ℕ"), true); - addInitialisation(con); - - saveRodinFileOf(con); - - runBuilder(); - - isAccurate(con.getSCMachineRoot()); - isNotAccurate(con.getSCMachineRoot().getSCEvents()[0]); - } - COM: <s> missing action in initialisation should make the initialisation inaccurate </s> - diff --git a/funcom_test/19498364.txt b/funcom_test/19498364.txt deleted file mode 100644 index 9f19796bd4f1ada2491919b802899185e4cabaec..0000000000000000000000000000000000000000 --- a/funcom_test/19498364.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void testExtendsContext_01_createCarrierSet() throws Exception { - IContextRoot abs = createContext("abs"); - addCarrierSets(abs, makeSList("S")); - - saveRodinFileOf(abs); - - runBuilder(); - - IContextRoot con = createContext("ctx"); - addContextExtends(con, "abs"); - - saveRodinFileOf(con); - - runBuilder(); - - ISCContextRoot file = con.getSCContextRoot(); - - extendsContexts(file, "abs"); - ISCInternalContext[] contexts = getInternalContexts(file, 1); - - containsCarrierSets(contexts[0], "S"); - - containsMarkers(con, false); - } - COM: <s> a carrier set should be copied into internal contexts </s> - diff --git a/funcom_test/19498369.txt b/funcom_test/19498369.txt deleted file mode 100644 index e2b57d4d67c9253b8a2f73f5219ca7cc23931ee0..0000000000000000000000000000000000000000 --- a/funcom_test/19498369.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void testExtendsContext_02_twoCarrierSets() throws Exception { - IContextRoot abs = createContext("abs"); - addCarrierSets(abs, makeSList("S1", "S2")); - - saveRodinFileOf(abs); - - runBuilder(); - - IContextRoot con = createContext("ctx"); - addContextExtends(con, "abs"); - - saveRodinFileOf(con); - - runBuilder(); - - ISCContextRoot file = con.getSCContextRoot(); - - ISCInternalContext[] contexts = getInternalContexts(file, 1); - - containsCarrierSets(contexts[0], "S1", "S2"); - - containsMarkers(con, false); - } - COM: <s> two carrier sets should be copied into internal contexts </s> - diff --git a/funcom_test/19498376.txt b/funcom_test/19498376.txt deleted file mode 100644 index 0d6fcfe5ecb9af452961c188448088e871551b20..0000000000000000000000000000000000000000 --- a/funcom_test/19498376.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testDeltaContext() throws Exception { - final IContextRoot root = createContext("ctx"); - final ISCContextRoot sc = root.getSCContextRoot(); - final IPORoot po = root.getPORoot(); - - addCarrierSets(root, makeSList("S1")); - saveRodinFileOf(root); - - runBuilder(); - - root.getCarrierSets()[0].setComment("foo", null); - saveRodinFileOf(root); - - runBuilderNotChanged(sc, po); - } - COM: <s> ensures that the statically checked file of a context is modified only </s> - diff --git a/funcom_test/19498381.txt b/funcom_test/19498381.txt deleted file mode 100644 index 5af00f39d61eb6943421d5129e8974b2bc6a7353..0000000000000000000000000000000000000000 --- a/funcom_test/19498381.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testDeltaMachine() throws Exception { - final IMachineRoot mac = createMachine("cnc"); - final ISCMachineRoot sc = mac.getSCMachineRoot(); - final IPORoot po = mac.getPORoot(); - - addVariables(mac, makeSList("V1")); - addInvariants(mac, makeSList("I1"), makeSList("V1∈BOOL"), true); - saveRodinFileOf(mac); - - runBuilder(); - - mac.getVariables()[0].setComment("foo", null); - saveRodinFileOf(mac); - - runBuilderNotChanged(sc, po); - } - COM: <s> ensures that the statically checked file of a machine is modified only </s> - diff --git a/funcom_test/19498386.txt b/funcom_test/19498386.txt deleted file mode 100644 index 8a425db48a24cce16e7af0644c741a7206e2e60b..0000000000000000000000000000000000000000 --- a/funcom_test/19498386.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void testExtendsContext_06_transitive() throws Exception { - IContextRoot abs1 = createContext("abs1"); - addCarrierSets(abs1, makeSList("S1")); - saveRodinFileOf(abs1); - - IContextRoot abs2 = createContext("abs2"); - addContextExtends(abs2, "abs1"); - addCarrierSets(abs2, makeSList("S2")); - saveRodinFileOf(abs2); - - IContextRoot con = createContext("ctx"); - addContextExtends(con, "abs2"); - saveRodinFileOf(con); - - runBuilder(); - - - ISCContextRoot file = con.getSCContextRoot(); - extendsContexts(file, "abs2"); - containsContexts(file, "abs1", "abs2"); - - containsMarkers(con, false); - } - COM: <s> contexts should be included transitively </s> - diff --git a/funcom_test/19498391.txt b/funcom_test/19498391.txt deleted file mode 100644 index f0a815a8cb7085bc0363c365d4761fe1288a75ba..0000000000000000000000000000000000000000 --- a/funcom_test/19498391.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testExtendsContext_07_redundant() throws Exception { - IContextRoot cab = createContext("cab"); - - saveRodinFileOf(cab); - - IContextRoot cco = createContext("cco"); - addContextExtends(cco, "cab"); - IContextRoot con = createContext("ctx"); - addContextExtends(con, "cco"); - addContextExtends(con, "cab"); - - saveRodinFileOf(cco); - saveRodinFileOf(con); - - runBuilder(); - - hasMarker(con.getExtendsClauses()[1]); - } - COM: <s> contexts extended transitively by means of a extended contexts </s> - diff --git a/funcom_test/19498396.txt b/funcom_test/19498396.txt deleted file mode 100644 index 6c9c9830922c896bdcff6d8052ca83c290592894..0000000000000000000000000000000000000000 --- a/funcom_test/19498396.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testCvg_01_NoVariantConvergentSetToOrdinary() throws Exception { - IMachineRoot mac = createMachine("mac"); - - IEvent evt = addEvent(mac, "evt"); - setOrdinary(evt); - IEvent fvt = addEvent(mac, "fvt"); - setAnticipated(fvt); - IEvent gvt = addEvent(mac, "gvt"); - setConvergent(gvt); - saveRodinFileOf(mac); - - runBuilder(); - - ISCMachineRoot file = mac.getSCMachineRoot(); - - ISCEvent[] events = getSCEvents(file, "evt", "fvt", "gvt"); - isOrdinary(events[0]); - isAnticipated(events[1]); - isOrdinary(events[2]); - - hasMarker(gvt); - } - COM: <s> if there is no variant convergent events are set to ordinary </s> - diff --git a/funcom_test/19498397.txt b/funcom_test/19498397.txt deleted file mode 100644 index f8e6c00d665b5f4173f9946959238ed0b43c2e47..0000000000000000000000000000000000000000 --- a/funcom_test/19498397.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testExtendsContext_09_abstractContextNotSaved() throws Exception { - IContextRoot abs = createContext("abs"); - addCarrierSets(abs, makeSList("S")); - - IContextRoot con = createContext("ctx"); - addContextExtends(con, "abs"); - addCarrierSets(con, makeSList("T")); - - saveRodinFileOf(con); - - runBuilder(); - - - ISCContextRoot file = con.getSCContextRoot(); - - containsMarkers(abs, true); - containsMarkers(con, true); - - containsCarrierSets(file, "T"); - - hasMarker(con.getExtendsClauses()[0], EventBAttributes.TARGET_ATTRIBUTE); - } - COM: <s> abstract context not saved </s> - diff --git a/funcom_test/19498434.txt b/funcom_test/19498434.txt deleted file mode 100644 index f1f955508a942c617b0cb9c3472fac0f42313f46..0000000000000000000000000000000000000000 --- a/funcom_test/19498434.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testMessages() throws Exception { - Set<IRodinProblem> problems = new HashSet<IRodinProblem>(specs.length * 4 / 3 + 1); - for (Spec spec : specs) { - problems.add(spec.problem); - } - for (IRodinProblem problem : GraphProblem.values()) { - boolean found = problems.contains(problem); - assertTrue("No spec for problem " + problem, found); - } - //assertEquals("wrong number of problems", specs.length, GraphProblem.values().length); - } - COM: <s> check whether the messages loaded from the properties file are complete </s> - diff --git a/funcom_test/19498735.txt b/funcom_test/19498735.txt deleted file mode 100644 index ea2f0980b73be680614409635e0a63e4e0baabc1..0000000000000000000000000000000000000000 --- a/funcom_test/19498735.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void registerUndoRedoAction(String actionId, HistoryAction action) { - final IAction oldAction = getAction(actionId); - if (oldAction instanceof OperationHistoryActionHandler) - ((OperationHistoryActionHandler) oldAction).dispose(); - if (action == null) - return; - setAction(actionId, action); - final IActionBars actionBars = getEditorSite().getActionBars(); - if (actionBars != null) - actionBars.setGlobalActionHandler(actionId, action); - action.setEnabled(false); - } - COM: <s> pushed down from abstract text editor </s> - diff --git a/funcom_test/19498753.txt b/funcom_test/19498753.txt deleted file mode 100644 index 5762ab2cbec560ed94c2da2b1a690b447a9d9b35..0000000000000000000000000000000000000000 --- a/funcom_test/19498753.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testEvents_29_createGuardWithEmptyLabel() throws Exception { - IMachineRoot mac = createMachine("mac"); - IEvent evt = addEvent(mac, "evt", makeSList(), makeSList(""), - makeSList("1∈ℕ"), makeSList(), makeSList()); - - saveRodinFileOf(mac); - - runBuilder(); - - hasMarker(evt.getGuards()[0], null, GraphProblem.EmptyLabelError); - } - COM: <s> create a guard with an empty label </s> - diff --git a/funcom_test/19498784.txt b/funcom_test/19498784.txt deleted file mode 100644 index f9bbdbc3625e7c7a35fcc885d74c6d40c3521a83..0000000000000000000000000000000000000000 --- a/funcom_test/19498784.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testEvents_30_createActionWithEmptyLabel() throws Exception { - IMachineRoot mac = createMachine("mac"); - IEvent evt = addEvent(mac, "evt", makeSList(), makeSList(), - makeSList(), makeSList(""), makeSList("L1≔1")); - - saveRodinFileOf(mac); - - runBuilder(); - - hasMarker(evt.getActions()[0], null, GraphProblem.EmptyLabelError); - } - COM: <s> create an action an empty label </s> - diff --git a/funcom_test/19498806.txt b/funcom_test/19498806.txt deleted file mode 100644 index 92f8814f24b2c15748f079c9ad961733f6790a79..0000000000000000000000000000000000000000 --- a/funcom_test/19498806.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testEvents_31_createWitnessWithEmptyLabel() throws Exception { - IMachineRoot mac = createMachine("mac"); - IEvent evt = addEvent(mac, "evt"); - IWitness witness = evt.createChild(IWitness.ELEMENT_TYPE, null, null); - witness.setLabel("", null); - - saveRodinFileOf(mac); - - runBuilder(); - - hasMarker(witness, null, GraphProblem.EmptyLabelError); - } - COM: <s> create a witness with an empty label </s> - diff --git a/funcom_test/19498827.txt b/funcom_test/19498827.txt deleted file mode 100644 index aea27c96753bd60e5af36d38f69baf8b063a7bff..0000000000000000000000000000000000000000 --- a/funcom_test/19498827.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void firePostSelectionChanged(final SelectionChangedEvent event) { - final Object[] listeners = postSelectionChangedListeners.getListeners(); - for (int i = 0; i < listeners.length; ++i) { - final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i]; - SafeRunnable.run(new SafeRunnable() { - public void run() { - l.selectionChanged(event); - } - }); - } - } - COM: <s> notifies any post selection listeners that a post selection event has </s> - diff --git a/funcom_test/19498999.txt b/funcom_test/19498999.txt deleted file mode 100644 index ef243b4664f71b68925f1a05d32cd5181d0a86d9..0000000000000000000000000000000000000000 --- a/funcom_test/19498999.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private int findIntervalIndex(int offset) { - int low = 0; - int high = intervals.size() - 1; - int mid; - while (low <= high) { - mid = (low + high) / 2; - - if (intervals.get(mid).getOffset() > offset) { - high = mid - 1; - } else if ( intervals.get(mid).getLastIndex() < offset) { - low = mid + 1; - } else - return mid; - } - return -1; - } - COM: <s> binary search to find an interval that contains an offset </s> - diff --git a/funcom_test/19499205.txt b/funcom_test/19499205.txt deleted file mode 100644 index def6253ee8c60a3a935581121655045325881f77..0000000000000000000000000000000000000000 --- a/funcom_test/19499205.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Element addEventElement(Element parent, String eventLabel) { - assert parent.getType() == IMachineRoot.ELEMENT_TYPE; - final Element result = new Element(IEvent.ELEMENT_TYPE); - result.addAttribute(LABEL_ATTRIBUTE.makeValue(eventLabel)); - result.addAttribute(EXTENDED_ATTRIBUTE.makeValue(false)); - final int ordinary = ORDINARY.getCode(); - result.addAttribute(CONVERGENCE_ATTRIBUTE.makeValue(ordinary)); - parent.addChild(result, null); - return result; - } - COM: <s> utility method to get an element representing a ievent created with </s> - diff --git a/funcom_test/19499260.txt b/funcom_test/19499260.txt deleted file mode 100644 index 786de094feedc7cb4b5f6afaf5cc7eda7729de55..0000000000000000000000000000000000000000 --- a/funcom_test/19499260.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testImageAxiom() throws Exception { - final IContextRoot ctx = createContext("ctx"); - final IAxiom axm = createAxiom(ctx, "axm", "TRUE", false); - assertImage("Unexpected image descriptor for axiom", - IEventBSharedImages.IMG_AXIOM_PATH, axm); - - axm.setTheorem(true, null); - assertImage( - "Unexpected image descriptor for axiom with theorem attribute", - IEventBSharedImages.IMG_THEOREM_PATH, axm); - } - COM: <s> checks the image for an axiom </s> - diff --git a/funcom_test/19499267.txt b/funcom_test/19499267.txt deleted file mode 100644 index bb833d24c7b7cd410ae877ae4cdd76017c81e9fa..0000000000000000000000000000000000000000 --- a/funcom_test/19499267.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testImageGuard() throws Exception { - final IMachineRoot mch = createMachine("mch"); - final IEvent evt = createEvent(mch, "evt"); - final IGuard grd = createGuard(evt, "grd", "TRUE"); - assertImage("Unexpected image descriptor for guard", - IEventBSharedImages.IMG_GUARD_PATH, grd); - - grd.setTheorem(true, null); - assertImage( - "Unexpected image descriptor for guard with theorem attribute", - IEventBSharedImages.IMG_THEOREM_PATH, grd); - } - COM: <s> checks the image for a guard </s> - diff --git a/funcom_test/19499272.txt b/funcom_test/19499272.txt deleted file mode 100644 index 577857a21fef1a999b20ed3fda1c21638a261bdc..0000000000000000000000000000000000000000 --- a/funcom_test/19499272.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testImageInvariant() throws Exception { - final IMachineRoot mch = createMachine("mch"); - final IInvariant inv = createInvariant(mch, "inv", "TRUE", false); - assertImage("Unexpected image descriptor for invariant", - IEventBSharedImages.IMG_INVARIANT_PATH, inv); - - inv.setTheorem(true, null); - assertImage( - "Unexpected image descriptor for invariant with theorem attribute", - IEventBSharedImages.IMG_THEOREM_PATH, inv); - } - COM: <s> checks the image for an invariant </s> - diff --git a/funcom_test/19499402.txt b/funcom_test/19499402.txt deleted file mode 100644 index 02d1c54a2b4a874b759d2c4a44680a513ad73668..0000000000000000000000000000000000000000 --- a/funcom_test/19499402.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testGetFreeIndexLabelGuardExtended() throws Exception { - final IEvent con = createRefiningEvent(); - con.setExtended(true, null); - - final IEvent abs = EventBUtils.getAbstractEvent(con); - createGuard(abs, guardLabelPrefix + 1, ""); - - assertFreeIndex(con, IGuard.ELEMENT_TYPE, LABEL_ATTRIBUTE, - guardLabelPrefix, "2"); - } - COM: <s> ensures that abstract guards are taken into account when computing a free </s> - diff --git a/funcom_test/19499406.txt b/funcom_test/19499406.txt deleted file mode 100644 index ba22cb040c9b2b6fd50d8a36efb64d295f3515de..0000000000000000000000000000000000000000 --- a/funcom_test/19499406.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testGetFreeIndexLabelGuardNotExtended() throws Exception { - final IEvent con = createRefiningEvent(); - con.setExtended(false, null); - - final IEvent abs = EventBUtils.getAbstractEvent(con); - createGuard(abs, guardLabelPrefix + 1, ""); - - assertFreeIndex(con, IGuard.ELEMENT_TYPE, LABEL_ATTRIBUTE, - guardLabelPrefix, "1"); - } - COM: <s> ensures that abstract guards are ignored when computing a free label for </s> - diff --git a/funcom_test/19499454.txt b/funcom_test/19499454.txt deleted file mode 100644 index 0ed2f207fcfcc0f275876dea2f43d07fbc252426..0000000000000000000000000000000000000000 --- a/funcom_test/19499454.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected IContextRoot createContext(String bareName) throws RodinDBException { - final String fileName = EventBPlugin.getContextFileName(bareName); - IRodinFile file = rodinProject.getRodinFile(fileName); - file.create(true, null); - IContextRoot result = (IContextRoot) file.getRoot(); - result.setConfiguration(DEFAULT_CONFIGURATION, null); - return result; - } - COM: <s> utility method to create a context with the given bare name </s> - diff --git a/funcom_test/19499460.txt b/funcom_test/19499460.txt deleted file mode 100644 index dc36b461832a0416c2130cb5a3945a0c7173d2df..0000000000000000000000000000000000000000 --- a/funcom_test/19499460.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected IMachineRoot createMachine(String bareName) throws RodinDBException { - final String fileName = EventBPlugin.getMachineFileName(bareName); - final IRodinFile file = rodinProject.getRodinFile(fileName); - file.create(true, null); - final IMachineRoot result = (IMachineRoot) file.getRoot(); - result.setConfiguration(DEFAULT_CONFIGURATION, null); - return result; - } - COM: <s> utility method to create a machine with the given bare name </s> - diff --git a/funcom_test/19499629.txt b/funcom_test/19499629.txt deleted file mode 100644 index 1992e209def43f7284ef8b4b3b3edb646f4b524c..0000000000000000000000000000000000000000 --- a/funcom_test/19499629.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void assertKeepProofs(List<IPRProof> keepProofs, List<IPRRoot> keepFiles) { - for (IPRProof pr : keepProofs) { - assertTrue("Some proofs were erased by error: " - + pr.getRodinFile().getPath() - + ":" - + pr.getElementName(), pr.exists()); - } - for (IPRRoot root : keepFiles) { - final IRodinFile file = root.getRodinFile(); - assertTrue("Some files were erased by error: " + file.getPath(), - file.exists()); - } - } - COM: <s> asserts that the given proofs exist in the db </s> - diff --git a/funcom_test/19499804.txt b/funcom_test/19499804.txt deleted file mode 100644 index 5ffa9fd48fd74703ebce0f195b59752e64fc09b6..0000000000000000000000000000000000000000 --- a/funcom_test/19499804.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Predicate instantiate(Expression[] replacements, FormulaFactory formulaFactory) { - BoundIdentSubstitution subst = - new BoundIdentSubstitution(quantifiedIdentifiers, replacements, formulaFactory); - Predicate newPred = pred.rewrite(subst); - List<BoundIdentDecl> newBoundIdentDecls = subst.getNewDeclarations(); - if (newBoundIdentDecls.isEmpty()) - return newPred; - return formulaFactory.makeQuantifiedPredicate(getTag(), newBoundIdentDecls, newPred, getSourceLocation()); - } - COM: <s> instantiates this quantified predicate with the given expressions </s> - diff --git a/funcom_test/19500563.txt b/funcom_test/19500563.txt deleted file mode 100644 index 69823ce33af06792534dd52b99e8e5c437768e78..0000000000000000000000000000000000000000 --- a/funcom_test/19500563.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean contains(String str) { - if (str.isEmpty()) { - return false; - } - if (!isStart(str.codePointAt(0))) { - return false; - } - final int start = nextCodePoint(str, 0); - for (int i = start; i < str.length(); i = nextCodePoint(str, i)) { - if (!isPart(str.codePointAt(i))) { - return false; - } - } - return true; - } - COM: <s> returns whether the given string is a lexem of this lexical class </s> - diff --git a/funcom_test/19500577.txt b/funcom_test/19500577.txt deleted file mode 100644 index 725b2fa5919d76e40153a4ad784990f88c56b561..0000000000000000000000000000000000000000 --- a/funcom_test/19500577.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void upgradePredicate(String input, UpgradeResult<Predicate> result) { - final FormulaFactory factory = result.getFactory(); - final IParseResult parseResult = factory.parsePredicate(input, - sourceVersion, null); - if (parseResult.hasProblem()) { - copyProblems(parseResult, result); - result.setUpgradeNeeded(true); - return; - } - final Predicate pred = parseResult.getParsedPredicate(); - upgrade(input, pred, result); - } - COM: <s> returns the upgrade result for of the given formula string </s> - diff --git a/funcom_test/19500994.txt b/funcom_test/19500994.txt deleted file mode 100644 index 1a3db14d208b8c26ccfe0318606abe95c81cb6a2..0000000000000000000000000000000000000000 --- a/funcom_test/19500994.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void verify() { - for (Entry<FreeIdentifier, Expression> entry : identSubst.entrySet()) { - final FreeIdentifier ident = entry.getKey(); - final Type newType = ident.getType().specialize(this); - final Expression value = entry.getValue(); - if (!value.getType().equals(newType)) { - throw new IllegalArgumentException("Incompatible types for " - + ident); - } - } - } - COM: <s> verifies that both substitutions are compatible </s> - diff --git a/funcom_test/19501344.txt b/funcom_test/19501344.txt deleted file mode 100644 index 95101540b1998156abfa6444af10d03dbba7f634..0000000000000000000000000000000000000000 --- a/funcom_test/19501344.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public ProgressDirection giveProgressDirection() throws SyntaxError { - final int leftKind = parentKind.val; - final int rightKind = t.kind; - if (!grammar.isOperator(rightKind)) { - return LEFT; - } - final OperatorRelationship opRel = grammar.getOperatorRelationship( - leftKind, rightKind); - switch (opRel) { - case INCOMPATIBLE: - throw syntaxError(new ASTProblem(makeSourceLocation(t), - ProblemKind.IncompatibleOperators, ProblemSeverities.Error, - grammar.getImage(leftKind), grammar.getImage(rightKind))); - case RIGHT_PRIORITY: - return RIGHT; - case COMPATIBLE: - // process as left associative - case LEFT_PRIORITY: - return LEFT; - default: - return LEFT; - } - } - COM: <s> returns whether the current token allows to progress right in the </s> - diff --git a/funcom_test/19502508.txt b/funcom_test/19502508.txt deleted file mode 100644 index 9865fca37ab02307aab549a038b8d6e528650509..0000000000000000000000000000000000000000 --- a/funcom_test/19502508.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void makeExecutable(IPath path) { - try { - final IFileSystem fs = EFS.getLocalFileSystem(); - final IFileStore store = fs.getStore(path); - final IFileInfo info = store.fetchInfo(); - info.setAttribute(EFS.ATTRIBUTE_EXECUTABLE, true); - store.putInfo(info, EFS.SET_ATTRIBUTES, null); - } catch (Exception e) { - log("Problem making file " + path + " executable", e); - } - } - COM: <s> makes the given local file executable </s> - diff --git a/funcom_test/19502894.txt b/funcom_test/19502894.txt deleted file mode 100644 index 3fe6ab09ca23da7912580f5d100c234ccf7930e8..0000000000000000000000000000000000000000 --- a/funcom_test/19502894.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void splitIdentDecls() { - final int innerDeclsLength = allDecls.length - - indexOfFirstReplacement(); - final int outerDeclsLength = allDecls.length - innerDeclsLength; - outerDecls = new BoundIdentDecl[outerDeclsLength]; - innerDecls = new BoundIdentDecl[innerDeclsLength]; - System.arraycopy(allDecls, 0, outerDecls, 0, outerDeclsLength); - System.arraycopy(allDecls, outerDeclsLength, innerDecls, 0, - innerDeclsLength); - } - COM: <s> splits the bound identifier declarations into two sub arrays outer decls </s> - diff --git a/funcom_test/19503298.txt b/funcom_test/19503298.txt deleted file mode 100644 index 4dff2466877f73cb630f1c45906c98973dc7a189..0000000000000000000000000000000000000000 --- a/funcom_test/19503298.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Expression testIdent(RelationalPredicate pred, Expression ident) { - final Expression left = pred.getLeft(); - final Expression right = pred.getRight(); - if (left.getTag() == FREE_IDENT && left.equals(ident)) { - return right; - } - if (right.getTag() == FREE_IDENT && right.equals(ident)) { - return left; - } - return null; - - } - COM: <s> check that the left side or the right side of the predicate </s> - diff --git a/funcom_test/19503813.txt b/funcom_test/19503813.txt deleted file mode 100644 index 1b41310ce7a2082ad5ee0cc78997cd07bb91d782..0000000000000000000000000000000000000000 --- a/funcom_test/19503813.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void checkNormalReplay(ReasonerApplication app, IProofRule rule) { - final IProverSequent sequent = makeSequent(app, rule, false); - final IReasonerInput input = app.getInput(); - final IProofRule newRule = applyAndCheckChildren(new SuccessfullReasonerApplication( - sequent, input, rule.apply(sequent))); - assertTrue(ProverLib.deepEquals(rule, newRule)); - } - COM: <s> ensures that a given rule is replayable from a simple sequent </s> - diff --git a/funcom_test/19504473.txt b/funcom_test/19504473.txt deleted file mode 100644 index 2f6388824818e828551af1eace79804469a2dceb..0000000000000000000000000000000000000000 --- a/funcom_test/19504473.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void assertNodePending(IProofTreeNode node) { - assertNotEmpty(node.getChildNodes()); - assertNotNull(node.getFirstOpenDescendant()); - assertNotSame(node, node.getFirstOpenDescendant()); - assertNotEmpty(node.getOpenDescendants()); - assertNotNull(node.getRule()); - assertTrue(node.hasChildren()); - assertFalse(node.isClosed()); - assertFalse(node.isOpen()); - } - COM: <s> checks that the given node is pending using all available methods </s> - diff --git a/funcom_test/19504481.txt b/funcom_test/19504481.txt deleted file mode 100644 index b932a926b976ef2d50e1a72e71cbd22137f230e3..0000000000000000000000000000000000000000 --- a/funcom_test/19504481.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void checkOpenDescendants(IProofTreeNode node) { - IProofTreeNode[] openDescendants = node.getOpenDescendants(); - IProofTreeNode firstOpenDescendant = node.getFirstOpenDescendant(); - if (openDescendants.length == 0) { - assertNull(firstOpenDescendant); - return; - } - assertSame(firstOpenDescendant, openDescendants[0]); - for (IProofTreeNode openDescendant : openDescendants) { - assertNodeOpen(openDescendant); - assertAncestor(node, openDescendant); - } - } - COM: <s> checks that the information about open descendants of a given node is </s> - diff --git a/funcom_test/19504632.txt b/funcom_test/19504632.txt deleted file mode 100644 index f2b4aa4001a88c3200fa48e76b709107d86bce88..0000000000000000000000000000000000000000 --- a/funcom_test/19504632.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void translate(Widget widget) { - SymbolRegistry registry = SymbolRegistry.getDefault(); - symbols = registry.getTextSymbols(); - maxSize = registry.getMaxTextSymbolSize(); - if (widget instanceof Text) { - String text = ((Text) widget).getText(); - translate((Text) widget, 0, text.length()); - } - if (widget instanceof StyledText) { - String text = ((StyledText) widget).getText(); - translate((StyledText) widget, 0, text.length()); - } - } - COM: <s> translate the content of the text widget </s> - diff --git a/funcom_test/19504722.txt b/funcom_test/19504722.txt deleted file mode 100644 index 50526e861001a9df96aec9fabf512bdd82dd0830..0000000000000000000000000000000000000000 --- a/funcom_test/19504722.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void prove(long maxSteps) { - if (result != null) return; - if (context == null) throw new IllegalStateException("Loader must be preliminary invoked"); - - initProver(); - if (DEBUG) { - debug("==== Original clauses ===="); - for (Clause clause : clauses) { - debug(clause.toString()); - } - } - - proofStrategy.setClauses(clauses); - proofStrategy.mainLoop(maxSteps); - result = proofStrategy.getResult(); - - debugResult(); - } - COM: <s> invokes the prover </s> - diff --git a/funcom_test/19504805.txt b/funcom_test/19504805.txt deleted file mode 100644 index bc20e433ec7c9f5d1b4fa4d084138c228677c36d..0000000000000000000000000000000000000000 --- a/funcom_test/19504805.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Clause nextCandidate() { - List<Clause> restrictedCandidates = getCandidatesDependingOnGoal(); - if (restrictedCandidates.isEmpty()) restrictedCandidates = candidates; - int depth = -1; - Clause currentClause = null; - for (Clause clause : restrictedCandidates) { - if (depth == -1 || clause.getOrigin().getDepth() < depth) { - depth = clause.getOrigin().getDepth(); - currentClause = clause; - } - } - return currentClause; - } - COM: <s> returns the next candidate </s> - diff --git a/funcom_test/19505094.txt b/funcom_test/19505094.txt deleted file mode 100644 index dfb25ca2c2c11c3ec628c2b4c9bf137eca3764ce..0000000000000000000000000000000000000000 --- a/funcom_test/19505094.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public long getHeight() { - long i = 0; - while (true) { - if (level.add(ONE).compareTo(BigInteger.valueOf(Double.valueOf((Math.pow(2, i))).longValue()))>=0 - && - level.add(ONE).compareTo(BigInteger.valueOf(Double.valueOf((Math.pow(2, i+1))).longValue()))<0) - return i; - i++; - } - } - COM: <s> returns the height of this level </s> - diff --git a/funcom_test/19505220.txt b/funcom_test/19505220.txt deleted file mode 100644 index ba026eb5921f9d0d93827c5540cf2ebbb0d5fb62..0000000000000000000000000000000000000000 --- a/funcom_test/19505220.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void mainLoop(long nofSteps) { - if (DEBUG) debug("=== ClauseDispatcher. Starting ==="); - addOriginalClauses(); - if (DEBUG) dumpOriginalClauses(); - - boolean force = false; - while (!terminated) { - cancellation.check(); - if (!updateCounterAndCheckTermination(nofSteps)) { - // first phase, treat non dispatched clauses - if (!treatNondispatchedClausesAndCheckContradiction()) { - // second phase, all clauses have been treated - force = getNextClauseFromProvers(force); - } - } - } - } - COM: <s> starts the clause dispatcher on the specified clauses </s> - diff --git a/funcom_test/19505269.txt b/funcom_test/19505269.txt deleted file mode 100644 index 17ce44747ed08cace05eb4c8317036f10434acce..0000000000000000000000000000000000000000 --- a/funcom_test/19505269.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equalsWithDifferentVariables(S literal, HashMap<SimpleTerm, SimpleTerm> map) { - if (terms.size() != literal.terms.size()) return false; - else { - for (int i = 0; i < terms.size(); i++) { - T term1 = terms.get(i); - Term term2 = literal.terms.get(i); - if (!term1.equalsWithDifferentVariables(term2, map)) return false; - } - return true; - } - } - COM: <s> return code true code if this literal is equal to the specified </s> - diff --git a/funcom_test/19505382.txt b/funcom_test/19505382.txt deleted file mode 100644 index 94c4683425cb917c0e6f61ae639695897013b813..0000000000000000000000000000000000000000 --- a/funcom_test/19505382.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Clause makeEquivalenceClause(IOrigin origin, List<PredicateLiteral> predicates, List<EqualityLiteral> equalities, List<ArithmeticLiteral> arithmetic, List<EqualityLiteral> conditions) { - assert predicates.size() + arithmetic.size() + equalities.size() > 1; - - return new EquivalenceClause(origin, predicates, equalities, arithmetic, conditions); - } - COM: <s> creates a new equivalence clause with the given literals </s> - diff --git a/funcom_test/19505695.txt b/funcom_test/19505695.txt deleted file mode 100644 index 442e833708c59dd8f3757d3963fc75146dcfa75d..0000000000000000000000000000000000000000 --- a/funcom_test/19505695.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public IRodinDBStatus getRodinDBStatus() { - IStatus status = this.getStatus(); - if (status instanceof IRodinDBStatus) { - return (IRodinDBStatus) status; - } else { - // A regular IStatus is created only in the case of a CoreException. - // See bug 13492 Should handle RodinDBExceptions that contains - // CoreException more gracefully - return new RodinDBStatus(this.nestedCoreException); - } - } - COM: <s> returns the rodin database status object for this exception </s> - diff --git a/funcom_test/19505801.txt b/funcom_test/19505801.txt deleted file mode 100644 index f2dca0525e1b786bd769c1737b6c0325e0270901..0000000000000000000000000000000000000000 --- a/funcom_test/19505801.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected IRodinDBStatus commonVerify() { - if (elementsToProcess == null || elementsToProcess.length == 0) { - return new RodinDBStatus(IRodinDBStatusConstants.NO_ELEMENTS_TO_PROCESS); - } - for (int i = 0; i < elementsToProcess.length; i++) { - if (elementsToProcess[i] == null) { - return new RodinDBStatus(IRodinDBStatusConstants.NO_ELEMENTS_TO_PROCESS); - } - } - return RodinDBStatus.VERIFIED_OK; - } - COM: <s> common code used to verify the elements this operation is processing </s> - diff --git a/funcom_test/19505812.txt b/funcom_test/19505812.txt deleted file mode 100644 index 21cc9c07f556e686fd7d3e51bb4d60d5dfc2ce5f..0000000000000000000000000000000000000000 --- a/funcom_test/19505812.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void copyResources(IResource[] resources, IPath destinationPath) throws RodinDBException { - IProgressMonitor subProgressMonitor = getSubProgressMonitor(resources.length); - IWorkspace workspace = resources[0].getWorkspace(); - try { - workspace.copy(resources, destinationPath, false, subProgressMonitor); - this.setAttribute(HAS_MODIFIED_RESOURCE_ATTR, TRUE); - } catch (CoreException e) { - throw new RodinDBException(e); - } - } - COM: <s> convenience method to copy resources </s> - diff --git a/funcom_test/19505815.txt b/funcom_test/19505815.txt deleted file mode 100644 index 46d97d501c5383f15eb16069137fab32c3cae79e..0000000000000000000000000000000000000000 --- a/funcom_test/19505815.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public RodinProject getRodinProject(IResource resource) { - switch (resource.getType()) { - case IResource.FOLDER: - return new RodinProject(((IFolder) resource).getProject(), this); - case IResource.FILE: - return new RodinProject(((IFile) resource).getProject(), this); - case IResource.PROJECT: - return new RodinProject((IProject) resource, this); - default: - throw new IllegalArgumentException( - Messages.element_invalidResourceForProject); - } - } - COM: <s> returns the active rodin project associated with the specified resource </s> - diff --git a/funcom_test/19505839.txt b/funcom_test/19505839.txt deleted file mode 100644 index d881db68b2eebad649be170a06946b5f91618ad3..0000000000000000000000000000000000000000 --- a/funcom_test/19505839.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void createFolder(IContainer parentFolder, String name, boolean forceFlag) throws RodinDBException { - IFolder folder= parentFolder.getFolder(new Path(name)); - try { - // we should use true to create the file locally. Only VCM should use tru/false - folder.create( - forceFlag ? IResource.FORCE | IResource.KEEP_HISTORY : IResource.KEEP_HISTORY, - true, // local - getSubProgressMonitor(1)); - this.setAttribute(HAS_MODIFIED_RESOURCE_ATTR, TRUE); - } catch (CoreException e) { - throw new RodinDBException(e); - } - } - COM: <s> convenience method to create a folder </s> - diff --git a/funcom_test/19505866.txt b/funcom_test/19505866.txt deleted file mode 100644 index d0f5479da2f9baf5034aaff02f2a810d16b2bbfe..0000000000000000000000000000000000000000 --- a/funcom_test/19505866.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private InternalElement getDestElement(InternalElement element) { - final IInternalElement destParent = - (IInternalElement) getDestinationParent(element); - String newName = getNewNameFor(element); - if (newName == null) { - newName = element.getElementName(); - } - final IInternalElementType<? extends IInternalElement> newType = - element.getElementType(); - return (InternalElement) destParent.getInternalElement(newType, newName); - } - COM: <s> returns the destination element for the given element </s> - diff --git a/funcom_test/19505886.txt b/funcom_test/19505886.txt deleted file mode 100644 index 6b848b141fb3a061e03231181d046181e88132b7..0000000000000000000000000000000000000000 --- a/funcom_test/19505886.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void putInfo(Openable element, OpenableElementInfo info) { - IElementType<?> elementType = element.getElementType(); - if (elementType == IRodinDB.ELEMENT_TYPE) { - this.modelInfo = (RodinDBInfo) info; - } else if (elementType == IRodinProject.ELEMENT_TYPE) { - this.projectCache.put( - (RodinProject) element, - (RodinProjectElementInfo) info - ); - } else { - this.openableCache.put(element, info); - } - } - COM: <s> remember the info for the element </s> - diff --git a/funcom_test/19505948.txt b/funcom_test/19505948.txt deleted file mode 100644 index 9222e2f437d78795793de85c139142c3841a2146..0000000000000000000000000000000000000000 --- a/funcom_test/19505948.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public T createInstance(String elementName, IRodinElement parent) { - if (constructor == null) { - computeConstructor(); - } - if (constructor == null) { - return null; - } - try { - return constructor.newInstance(elementName, parent); - } catch (Exception e) { - String message = "Can't create an element of type " + getId(); - Util.log(null, message); - throw new IllegalStateException(message, e); - } - } - COM: <s> creates a new internal element handle </s> - diff --git a/funcom_test/19506140.txt b/funcom_test/19506140.txt deleted file mode 100644 index eb567d688e3126fc51ae8aba084fd676587f4bca..0000000000000000000000000000000000000000 --- a/funcom_test/19506140.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Text findDOMTextElement(Element domElement) { - for (Node domChild = domElement.getLastChild(); domChild != null; - domChild = domChild.getPreviousSibling()) { - if (domChild.getNodeType() == Node.TEXT_NODE) { - String contents = domChild.getNodeValue(); - contents = Util.trimSpaceChars(contents); - if (contents.length() != 0) { - return (Text) domChild; - } - } - } - return null; - } - COM: <s> returns the dom text element corresponding to the contents of the given </s> - diff --git a/funcom_test/19506146.txt b/funcom_test/19506146.txt deleted file mode 100644 index 0cf7e54d06fe9a49d686bd90d69188df64d9e778..0000000000000000000000000000000000000000 --- a/funcom_test/19506146.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected RodinElementDelta find(IRodinElement e) { - if (this.equalsAndSameParent(this.changedElement, e)) { // handle case - // of two jars - // that can be - // equals but - // not in the - // same project - return this; - } else { - for (int i = 0; i < fAffectedChildren.length; i++) { - RodinElementDelta delta = fAffectedChildren[i].find(e); - if (delta != null) { - return delta; - } - } - } - return null; - } - COM: <s> returns the code rodin element delta code for the given element in the </s> - diff --git a/funcom_test/19506155.txt b/funcom_test/19506155.txt deleted file mode 100644 index 577dc98ee1ec06a2f9c9ae800c4ff1a4c92c4e51..0000000000000000000000000000000000000000 --- a/funcom_test/19506155.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void removeAllChildren(IRodinElement element) { - if (element instanceof IParent) { - ArrayList<IRodinElement> newRootElements = new ArrayList<IRodinElement>(); - for (IRodinElement currentRoot: rootElements) { - if (! element.equals(currentRoot) && ! element.isAncestorOf(currentRoot)) { - newRootElements.add(currentRoot); - } - } - rootElements = newRootElements; - } - } - COM: <s> removes any children of this element that are contained within this </s> - diff --git a/funcom_test/19506256.txt b/funcom_test/19506256.txt deleted file mode 100644 index c543a08e806ad565e60825824088be9537637703..0000000000000000000000000000000000000000 --- a/funcom_test/19506256.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void verifySibling(IRodinElement element, IRodinElement destination) throws RodinDBException { - IRodinElement insertBeforeElement = this.insertBeforeElements.get(element); - if (insertBeforeElement != null) { - if (!insertBeforeElement.exists() || !insertBeforeElement.getParent().equals(destination)) { - error(IRodinDBStatusConstants.INVALID_SIBLING, insertBeforeElement); - } - } - } - COM: <s> verifies that the positioning sibling specified for the code element code exists and </s> - diff --git a/funcom_test/19506388.txt b/funcom_test/19506388.txt deleted file mode 100644 index c31874cd01dad5bde156244e21e124e80fc4fa7c..0000000000000000000000000000000000000000 --- a/funcom_test/19506388.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Element getDOMElement(IInternalElement element) { - Element result = internalElements.get(element); - if (result != null) { - assert result.getParentNode() != null; - return result; - } - - // Not found, force a cache update - IRodinElement parent = element.getParent(); - if (parent instanceof InternalElement) { - getElementInfo((InternalElement) parent); - } else if (! childrenUpToDate) { - computeChildren(); - } - return internalElements.get(element); - } - COM: <s> returns the dom element corresponding to the given rodin element </s> - diff --git a/funcom_test/19506422.txt b/funcom_test/19506422.txt deleted file mode 100644 index 41b02ec0326ad74c20295c45153af77ae026d199..0000000000000000000000000000000000000000 --- a/funcom_test/19506422.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected boolean makeSpace(int space) { - - int limit; - - limit = this.getSpaceLimit(); - - /* if space is already available */ - if (getCurrentSpace() + space <= limit) { - return true; - } - - /* if entry is too big for cache */ - if (space > limit) { - return false; - } - - /* Free up space by removing oldest entries */ - while (getCurrentSpace() + space > limit && fEntryQueueTail != null) { - removeForSpace(fEntryQueueTail); - } - return true; - } - COM: <s> ensures there is the specified amount of free space in the receiver by </s> - diff --git a/funcom_test/19506457.txt b/funcom_test/19506457.txt deleted file mode 100644 index 19b214fd197c44de9f0f37802230001351002b95..0000000000000000000000000000000000000000 --- a/funcom_test/19506457.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected void privateAddEntry(LRUCacheEntry<K, V> entry, boolean shuffle) { - - if (!shuffle) { - cache.putEntry(entry); - } - - entry._fTimestamp = fTimestampCounter++; - entry._fNext = this.fEntryQueue; - entry._fPrevious = null; - - if (fEntryQueue == null) { - /* this is the first and last entry */ - fEntryQueueTail = entry; - } else { - fEntryQueue._fPrevious = entry; - } - - fEntryQueue = entry; - } - COM: <s> adds the given entry from the receiver </s> - diff --git a/funcom_test/19506506.txt b/funcom_test/19506506.txt deleted file mode 100644 index ab8cf774aad58044751e0ca2c516fcf1299f5b89..0000000000000000000000000000000000000000 --- a/funcom_test/19506506.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public V put(K key, V value) { - - LRUCacheEntry<K, V> entry; - - /* Check whether there's an entry in the cache */ - entry = cache.getEntry(key); - if (entry != null) { - - if (entry.isHard && getCurrentSpace() <= getSpaceLimit()) { - updateTimestamp(entry); - entry._fValue = value; - return value; - } else { - privateRemoveEntry(entry, false); - } - } - if (makeSpace(1)) { - privateAdd(key, value); - } - return value; - } - COM: <s> sets the value in the cache at the given key </s> - diff --git a/funcom_test/19506638.txt b/funcom_test/19506638.txt deleted file mode 100644 index b45cecd3261fd3160a80965065a35b896ac769b1..0000000000000000000000000000000000000000 --- a/funcom_test/19506638.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void prepareDeltas(IRodinElement sourceElement, IRodinElement destinationElement, boolean isMove) { - IRodinProject destProject = destinationElement.getRodinProject(); - if (isMove) { - IRodinProject sourceProject = sourceElement.getRodinProject(); - getDeltaFor(sourceProject).movedFrom(sourceElement, destinationElement); - getDeltaFor(destProject).movedTo(destinationElement, sourceElement); - } else { - getDeltaFor(destProject).added(destinationElement); - } - } - COM: <s> sets the deltas to register the changes resulting from this operation </s> - diff --git a/funcom_test/19506836.txt b/funcom_test/19506836.txt deleted file mode 100644 index 069cadabe99fadfa61f18f905f13f12eac74468a..0000000000000000000000000000000000000000 --- a/funcom_test/19506836.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testIsValid() { - assertTrue(isValid("")); - - assertFalse(isValid("&")); // below lower bound - assertTrue(isValid("'")); - assertTrue(isValid(";")); - assertFalse(isValid("<")); // invalid inside range - assertTrue(isValid("=")); - assertTrue(isValid("~")); - assertFalse(isValid("\u007f")); // above upper bound - - assertFalse(isValid("abc<def")); - } - COM: <s> ensures that the </s> - diff --git a/funcom_test/19506904.txt b/funcom_test/19506904.txt deleted file mode 100644 index 4641ff2bab79674cbd574529a2576478a6ce8805..0000000000000000000000000000000000000000 --- a/funcom_test/19506904.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testCopyIntFromSnapshotToSameFile() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - rfSource.save(null, false); - - copyPositive(neSource.getSnapshot(), neSource, null, "bar", false); - } - COM: <s> ensures that an internal element snapshot can be copied to the </s> - diff --git a/funcom_test/19506912.txt b/funcom_test/19506912.txt deleted file mode 100644 index 45a53ba175ff8b1c213b0060736d3705e4addc24..0000000000000000000000000000000000000000 --- a/funcom_test/19506912.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testCreateDuplicate() throws Exception { - final NamedElement e1 = createNEPositive(root, "foo", null); - checkEmptyChildren(root, e1); - - // Attempt to create a duplicate element - createNENegative(root, "foo", null, - IRodinDBStatusConstants.NAME_COLLISION); - - // File has not changed - checkEmptyChildren(root, e1); - } - COM: <s> ensures that attempting to create a new internal element with </s> - diff --git a/funcom_test/19506915.txt b/funcom_test/19506915.txt deleted file mode 100644 index 8084feb0b738f25018f3a429cadc0ef797e8ccd8..0000000000000000000000000000000000000000 --- a/funcom_test/19506915.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testCopyIntNoop() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - createNEPositive(neSource, "bar", null); - - copyNoop(neSource, null); - } - COM: <s> ensures that copying an internal element to itself is a no op </s> - diff --git a/funcom_test/19506951.txt b/funcom_test/19506951.txt deleted file mode 100644 index fe4cd5f98dd71d32769fe34f9c704fe77e38d0fa..0000000000000000000000000000000000000000 --- a/funcom_test/19506951.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testCopyIntSameParent() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - - copyPositive(neSource, neParent, null, "bar", false); - } - COM: <s> ensures that an internal element can be duplicated in the same file </s> - diff --git a/funcom_test/19506996.txt b/funcom_test/19506996.txt deleted file mode 100644 index c59417334fa335a15c43abf4bf5980cd9b667caf..0000000000000000000000000000000000000000 --- a/funcom_test/19506996.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testSimilarRoot() { - final IRodinFile rf1 = getRodinFile("P/X.test"); - final RodinTestRoot r1 = (RodinTestRoot) rf1.getRoot(); - final IRodinFile rf2 = getRodinFile("P/Y.test"); - final RodinTestRoot r2 = (RodinTestRoot) rf2.getRoot(); - assertEquals(r1, r1.getSimilarElement(rf1)); - assertEquals(r2, r1.getSimilarElement(rf2)); - } - COM: <s> ensures that a similar element for a root element is constructed </s> - diff --git a/funcom_test/19507007.txt b/funcom_test/19507007.txt deleted file mode 100644 index be9e63d3fb3110d2763a1bef765fc49bad8e6dc6..0000000000000000000000000000000000000000 --- a/funcom_test/19507007.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSimilarInt() { - final IRodinFile rf1 = getRodinFile("P/X.test"); - final RodinTestRoot r1 = (RodinTestRoot) rf1.getRoot(); - final NamedElement ie1 = getNamedElement(r1, "foo"); - - final IRodinFile rf2 = getRodinFile("P/Y.test"); - final RodinTestRoot r2 = (RodinTestRoot) rf2.getRoot(); - final NamedElement ie2 = getNamedElement(r2, ie1.getElementName()); - assertEquals(ie1, ie1.getSimilarElement(rf1)); - assertEquals(ie2, ie1.getSimilarElement(rf2)); - } - COM: <s> ensures that a similar element for an internal element is constructed </s> - diff --git a/funcom_test/19507018.txt b/funcom_test/19507018.txt deleted file mode 100644 index 62243cfa4cc8175e1166011d8d67abe0711855b1..0000000000000000000000000000000000000000 --- a/funcom_test/19507018.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testNextSiblingInexistent() throws Exception { - final NamedElement ne = getNamedElement(root, "foo"); - try { - ne.getNextSibling(); - fail("should have raised an exception"); - } catch (RodinDBException e) { - IRodinDBStatus st = e.getRodinDBStatus(); - assertTrue(st.isDoesNotExist()); - assertEquals(Arrays.asList(ne), Arrays.asList(st.getElements())); - } - } - COM: <s> ensures that trying to access to the next sibling of an inexistent </s> - diff --git a/funcom_test/19507022.txt b/funcom_test/19507022.txt deleted file mode 100644 index 6a4abe7064fc6a1efc5bdfaecfef00c18fce90c3..0000000000000000000000000000000000000000 --- a/funcom_test/19507022.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void testRunnableInResourceDelta() throws Exception { - final CheckingRunnable inner = new CheckingRunnable(); - final IResourceChangeListener listener = new IResourceChangeListener() { - public void resourceChanged(IResourceChangeEvent event) { - try { - RodinCore.run(inner, null); - } catch (RodinDBException e) { - fail("Unexpected exception"); - } - } - }; - final IProject project = workspace.getRoot().getProject("P"); - try { - workspace.addResourceChangeListener(listener); - project.create(null); - } finally { - workspace.removeResourceChangeListener(listener); - project.delete(true, null); - } - assertTrue(inner.done); - } - COM: <s> ensures that a rodin runnable can be run while processing a resource </s> - diff --git a/funcom_test/19507028.txt b/funcom_test/19507028.txt deleted file mode 100644 index 2f310638277bebf6d82210dc0b29230d6fdf6a39..0000000000000000000000000000000000000000 --- a/funcom_test/19507028.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testThrowCoreException() { - final CoreExceptionThrower action = new CoreExceptionThrower(); - try { - RodinCore.run(action, null); - fail("Should have raised an exception"); - } catch (RodinDBException e) { - assertSame(action.exc.getStatus(), e.getStatus()); - assertSame(action.exc, e.getException()); - } - } - COM: <s> ensures that a core exception thrown by a rodin runnable is properly </s> - diff --git a/funcom_test/19507064.txt b/funcom_test/19507064.txt deleted file mode 100644 index 1c3c29b4f3f67782f6502ad5cdce8b5c34dd23b6..0000000000000000000000000000000000000000 --- a/funcom_test/19507064.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testCreateNewChildRoot() throws Exception { - checkEmpty(root); - final NamedElement e1 = createNewNEPositive(root, null); - checkEmptyChildren(root, e1); - final NamedElement e3 = createNewNEPositive(root, null); - checkEmptyChildren(root, e1, e3); - final NamedElement e0 = createNewNEPositive(root, e1); - checkEmptyChildren(root, e0, e1, e3); - final NamedElement e2 = createNewNEPositive(root, e3); - checkEmptyChildren(root, e0, e1, e2, e3); - } - COM: <s> ensures that creating a new child of a root element works as advertised </s> - diff --git a/funcom_test/19507068.txt b/funcom_test/19507068.txt deleted file mode 100644 index 853dc89c821012cc45e635785a8a1fe4c92e2a4c..0000000000000000000000000000000000000000 --- a/funcom_test/19507068.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testCopyTopWithInvalidPositioning() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neSource = createNEPositive(rSource, "foo", null); - - IRodinFile rfDest = createRodinFile("P/Y.test"); - IInternalElement rootDest = rfDest.getRoot(); - - copyNegative( - neSource, - rootDest, - rootDest.getInternalElement(NamedElement.ELEMENT_TYPE, "invalid"), - null, - false, - IRodinDBStatusConstants.INVALID_SIBLING); - } - COM: <s> ensures that a top level internal element cannot be copied to a different </s> - diff --git a/funcom_test/19507083.txt b/funcom_test/19507083.txt deleted file mode 100644 index efa13437a5bad4f9abab58116eb2448c133a4cec..0000000000000000000000000000000000000000 --- a/funcom_test/19507083.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testCopyTopWithInvalidRenamings() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neSource = createNEPositive(rSource, "foo", null); - - copyNegative( - new IRodinElement[] {neSource}, - new IRodinElement[] {rfSource}, - null, - new String[] {"bar", "baz"}, - false, - IRodinDBStatusConstants.INVALID_RENAMING); - } - COM: <s> ensures that attempting to rename with an incorrect number of renamings fails </s> - diff --git a/funcom_test/19507110.txt b/funcom_test/19507110.txt deleted file mode 100644 index 375e66de8ba272a40528993ab691f90f9270396a..0000000000000000000000000000000000000000 --- a/funcom_test/19507110.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void testIsSnapshot(ISnapshotable mutable) { - final ISnapshotable snapshot = mutable.getSnapshot(); - final ISnapshotable mutable2 = snapshot.getMutableCopy(); - assertFalse("Mutable should not be a snapshot", mutable.isSnapshot()); - assertTrue("Snapshot should be a snapshot", snapshot.isSnapshot()); - assertFalse("Mutable should not be a snapshot", mutable2.isSnapshot()); - } - COM: <s> ensures that the is snapshot method works properly </s> - diff --git a/funcom_test/19507132.txt b/funcom_test/19507132.txt deleted file mode 100644 index 45c6dbb8e3ab263a1920ac7d1b2aa747c0cc6814..0000000000000000000000000000000000000000 --- a/funcom_test/19507132.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testIntSnapshotExists() throws CoreException { - final IRodinFile rf = getRodinFile("P/X.test"); - final RodinTestRoot root = (RodinTestRoot) rf.getRoot(); - final NamedElement e1 = getNamedElement(root, "foo"); - final NamedElement e11 = getNamedElement(e1, "bar"); - testSnapshotNotExists(e11); - createRodinFile("P/X.test"); - createNEPositive(root, "foo", null); - createNEPositive(e1, "bar", null); - rf.save(null, false); - testSnapshotExists(e11); - } - COM: <s> ensures that a snapshot exists iff its mutable copy exists </s> - diff --git a/funcom_test/19507138.txt b/funcom_test/19507138.txt deleted file mode 100644 index 9c83e05a65afbdd64a11173d05fd45b9a221f8ac..0000000000000000000000000000000000000000 --- a/funcom_test/19507138.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testMoveIntNoop() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - createNEPositive(neSource, "bar", null); - - moveNoop(neSource, null); - } - COM: <s> ensures that moving an internal element to itself is a no op </s> - diff --git a/funcom_test/19507139.txt b/funcom_test/19507139.txt deleted file mode 100644 index 523fe67091f60260f7293d35140c7db4e324549a..0000000000000000000000000000000000000000 --- a/funcom_test/19507139.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testIntSnapshotParent() { - final IRodinFile rf = getRodinFile("P/X.test"); - final RodinTestRoot root = (RodinTestRoot) rf.getRoot(); - final NamedElement e1 = getNamedElement(root, "foo"); - final NamedElement e11 = getNamedElement(e1, "bar"); - assertDiffers("Parents of mutable and snapshot internal should differ", - e11.getParent(), e11.getSnapshot().getParent() - ); - } - COM: <s> ensures that the mutable copy and a snapshot of a top level internal </s> - diff --git a/funcom_test/19507158.txt b/funcom_test/19507158.txt deleted file mode 100644 index 3eafac591f1bc9bb555c62e4ceb81a0219c9fabe..0000000000000000000000000000000000000000 --- a/funcom_test/19507158.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testCopyRFWithNullContainer() throws CoreException { - IRodinFile rfSource = createRodinFile("/P/X.test"); - try { - rfSource.copy(null, null, null, false, null); - } catch (IllegalArgumentException iae) { - return; - } - assertTrue("Should not be able to copy a rf to a null container", false); - } - COM: <s> ensures that a rodin file cannot be copied to a null container </s> - diff --git a/funcom_test/19507187.txt b/funcom_test/19507187.txt deleted file mode 100644 index 51f6d36152b8c5ac22bd62456f8b77010bc564aa..0000000000000000000000000000000000000000 --- a/funcom_test/19507187.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testMoveIntSameParent() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - - movePositive(neSource, neParent, null, "bar", false); - } - COM: <s> ensures that an internal element can be moved in the same file </s> - diff --git a/funcom_test/19507196.txt b/funcom_test/19507196.txt deleted file mode 100644 index be57bdac2d68251c82b082163306e9ded45c04e8..0000000000000000000000000000000000000000 --- a/funcom_test/19507196.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void test_01_RenameElement() throws Exception { - - IRodinProject project = fetchProject("V01"); - - convertProjectWithSuccess(project, 2); - - // ff does not have a version attribute, i.e., its version is 0 - - getElements(project, "ff.tva", IVersionEA.ELEMENT_TYPE, 1); - - // gg has a version attribute with value 0 - - getElements(project, "gg.tva", IVersionEA.ELEMENT_TYPE, 1); - } - COM: <s> rename broken element name and load fixed rodin file </s> - diff --git a/funcom_test/19507209.txt b/funcom_test/19507209.txt deleted file mode 100644 index 6dd0469d29cd56e5cf5df2fc058932ae16a6e68d..0000000000000000000000000000000000000000 --- a/funcom_test/19507209.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void test_02_RenameAttribute() throws Exception { - - IRodinProject project = fetchProject("V02"); - - convertProjectWithSuccess(project, 1); - - IInternalElement[] elements = getElements(project, "ff.tvb", IVersionEA.ELEMENT_TYPE, 1); - - assertAttribute(elements[0], VersionAttributes.StringAttr, "Hello"); - } - COM: <s> rename broken attribute name and load fixed rodin file </s> - diff --git a/funcom_test/19507222.txt b/funcom_test/19507222.txt deleted file mode 100644 index 9debf8f0f6f6c3ecb0c18a208584384af93f3a34..0000000000000000000000000000000000000000 --- a/funcom_test/19507222.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testMoveIntFromSnapshot() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - rfSource.save(null, false); - - moveNegative(neSource.getSnapshot(), neParent, null, "bar", false, - IRodinDBStatusConstants.READ_ONLY); - } - COM: <s> ensures that an internal element snapshot cannot be moved </s> - diff --git a/funcom_test/19507227.txt b/funcom_test/19507227.txt deleted file mode 100644 index eafb0a0414360a81f8b4f19986e096a8871fa2d3..0000000000000000000000000000000000000000 --- a/funcom_test/19507227.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void test_03_AddAttribute() throws Exception { - - IRodinProject project = fetchProject("V03"); - - convertProjectWithSuccess(project, 1); - - IInternalElement[] elements = getElements(project, "ff.tvc", IVersionEA.ELEMENT_TYPE, 2); - - // new attribute in elements[0] added - - assertAttribute(elements[0], VersionAttributes.StringAttr, "Hello"); - - // existing attributes are not modified - - assertAttribute(elements[1], VersionAttributes.StringAttr, "Byebye"); - } - COM: <s> add an attribute and load fixed rodin file </s> - diff --git a/funcom_test/19507233.txt b/funcom_test/19507233.txt deleted file mode 100644 index 7241088d11a37293d784b15c949110d82fd5ef3a..0000000000000000000000000000000000000000 --- a/funcom_test/19507233.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testMoveIntToSnapshot() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - rfSource.save(null, false); - - moveNegative(neSource, neParent.getSnapshot(), null, "bar", false, - IRodinDBStatusConstants.READ_ONLY); - } - COM: <s> ensures that an internal element cannot be moved to a snapshot </s> - diff --git a/funcom_test/19507303.txt b/funcom_test/19507303.txt deleted file mode 100644 index a5591d2b095e6c6ddabca4ff999c5b2c33fbb3a1..0000000000000000000000000000000000000000 --- a/funcom_test/19507303.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void test_10_InvalidVersion() throws Exception { - final String contents = // - "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" - + "<org.rodinp.core.tests.versionFileF " - + " version=\"not a number\">" - + "</org.rodinp.core.tests.versionFileF>"; - - final IRodinFile rf = createRodinProject("P").getRodinFile("ff.tvf"); - setFileContents(rf, contents); - assertRodinDBExceptionRaised(rf, ERROR, INVALID_VERSION_NUMBER); - } - COM: <s> test for a file containing an invalid version number </s> - diff --git a/funcom_test/19507327.txt b/funcom_test/19507327.txt deleted file mode 100644 index 5741f56dcad34d3e05e445189f1cbb6dca954c5d..0000000000000000000000000000000000000000 --- a/funcom_test/19507327.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testMoveRFRename() throws CoreException { - IRodinFile rfSource = createRodinFile("/P/X.test"); - RodinTestRoot root = (RodinTestRoot) rfSource.getRoot(); - createNEPositive(root, "foo", null); - rfSource.save(null, false); - - movePositive(rfSource, getRodinProject("P2"), null, "Y.test", false); - } - COM: <s> ensures that a rodin file can be moved to a different project </s> - diff --git a/funcom_test/19507336.txt b/funcom_test/19507336.txt deleted file mode 100644 index f3ddded942d2a670f5f61d1419298ad18ffcc8d0..0000000000000000000000000000000000000000 --- a/funcom_test/19507336.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testConv_11_mustNotRenameFileElementTypeId() throws Exception { - - IConfigurationElement[] vElements = - makeFileElementVersions( - new FileElementVersion(PLUGIN_ID, FILEA_TYPE, "1") - ); - - IConfigurationElement[] cElements = - makeConversions( - new SimpleConversion(PLUGIN_ID, FILEA_TYPE, "1", - new Element( - "/" + FILEA_TYPE, - new RenameElement(FILEB_TYPE)) - ) - ); - - faultyConversions(vElements, cElements, cElements); - } - COM: <s> an element rename op must not be attached to a path only </s> - diff --git a/funcom_test/19507357.txt b/funcom_test/19507357.txt deleted file mode 100644 index 478baa9b899721b849ce199c89eef2c81c1f0fc6..0000000000000000000000000000000000000000 --- a/funcom_test/19507357.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testDeleteRodinFile() throws CoreException { - try { - IRodinFile file = createRodinFile("P/X.test"); - - startDeltas(); - file.delete(false, null); - assertNotExists("Should be able to delete a Rodin file", file); - assertDeltas( - "Unexpected delta", - "P[*]: {CHILDREN}\n" + - " X.test[-]: {}" - ); - } finally { - stopDeltas(); - deleteFile("P/X.test"); - } - } - COM: <s> should be able to delete a rodin file </s> - diff --git a/funcom_test/19507365.txt b/funcom_test/19507365.txt deleted file mode 100644 index 16c5650e98d2ebb78dad50a5d6b8ea5215c6faff..0000000000000000000000000000000000000000 --- a/funcom_test/19507365.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testMoveTopWithInvalidPositioning() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neSource = createNEPositive(rSource, "foo", null); - - IRodinFile rfDest = createRodinFile("P/Y.test"); - IInternalElement rootDest = rfDest.getRoot(); - - moveNegative( - neSource, - rootDest, - rootDest.getInternalElement(NamedElement.ELEMENT_TYPE, "invalid"), - null, - false, - IRodinDBStatusConstants.INVALID_SIBLING); - } - COM: <s> ensures that a top level internal element cannot be moved to a different </s> - diff --git a/funcom_test/19507382.txt b/funcom_test/19507382.txt deleted file mode 100644 index 0bf2684f0a4e4f6783ff41e3ceb94c89bebb5f92..0000000000000000000000000000000000000000 --- a/funcom_test/19507382.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testConv_14_onlyContributorCanAddAttribute() throws Exception { - - IConfigurationElement[] vElements = - makeFileElementVersions( - new FileElementVersion(PLUGIN_ID, FILEA_TYPE, "1") - ); - - IConfigurationElement[] cElements = - makeConversions( - new SimpleConversion(OTHER_PLUGIN_ID, FILEA_TYPE, "1", - new Element( - "/" + FILEA_TYPE + "/" + ELEMA_TYPE, - new AddAttribute(ATTRS_TYPE, "x")) - ) - ); - - faultyConversions(vElements, cElements, cElements); - } - COM: <s> an attribute type can be added by the plugin that is contributing </s> - diff --git a/funcom_test/19507390.txt b/funcom_test/19507390.txt deleted file mode 100644 index 728625df573fadb06c79adfdedaaa11dc7e1b72f..0000000000000000000000000000000000000000 --- a/funcom_test/19507390.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void movePositive(IRodinElement element, IRodinElement container, IRodinElement sibling, String rename, boolean force) throws RodinDBException { - IRodinElement[] siblings = new IRodinElement[] {sibling}; - String[] renamings = new String[] {rename}; - if (sibling == null) { - siblings = null; - } - if (rename == null) { - renamings = null; - } - movePositive(new IRodinElement[] {element}, new IRodinElement[] {container}, siblings, renamings, force); - } - COM: <s> moves the element to the container with optional rename </s> - diff --git a/funcom_test/19507414.txt b/funcom_test/19507414.txt deleted file mode 100644 index 8e2a0f5ba25525dc8252ca724540b209c4c75e85..0000000000000000000000000000000000000000 --- a/funcom_test/19507414.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testMoveRFWithNullContainer() throws CoreException { - IRodinFile rfSource = createRodinFile("/P/X.test"); - try { - rfSource.move(null, null, null, false, null); - } catch (IllegalArgumentException iae) { - return; - } - assertTrue("Should not be able to move a rf to a null container", false); - } - COM: <s> ensures that a rodin file cannot be moved to a null container </s> - diff --git a/funcom_test/19507421.txt b/funcom_test/19507421.txt deleted file mode 100644 index 8bcda0b70ecdafc619ab617c283ba0cf34a0f18a..0000000000000000000000000000000000000000 --- a/funcom_test/19507421.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testRenameInt() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - - renamePositive(neSource, "bar", false); - } - COM: <s> ensures that an internal element can be renamed </s> - diff --git a/funcom_test/19507431.txt b/funcom_test/19507431.txt deleted file mode 100644 index 7b43351fa705ca9c57f9f2b3d85d99709f5d013c..0000000000000000000000000000000000000000 --- a/funcom_test/19507431.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void renameNegative(IRodinElement element, String rename, boolean force, int failureCode) { - try { - ((IElementManipulation)element).rename(rename, force, null); - } catch (RodinDBException jme) { - assertTrue("Code not correct for RodinDBException: " + jme, jme.getStatus().getCode() == failureCode); - return; - } - assertTrue("The renaming should have failed for: " + element, false); - return; - } - COM: <s> attempts to rename the element with optional </s> - diff --git a/funcom_test/19507433.txt b/funcom_test/19507433.txt deleted file mode 100644 index 59641f1ea5892bcbc8eeb9bcea6001feaf79ee59..0000000000000000000000000000000000000000 --- a/funcom_test/19507433.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testRenameIntForce() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - NamedElement neDest = createNEPositive(neParent, "bar", null); - - renamePositive(neSource, neDest.getElementName(), true); - } - COM: <s> ensures that an internal element can be renamed replacing an existing element </s> - diff --git a/funcom_test/19507436.txt b/funcom_test/19507436.txt deleted file mode 100644 index 4ea8220571ed0037db6a8c3502369c37deaca782..0000000000000000000000000000000000000000 --- a/funcom_test/19507436.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected IRodinElementDelta getDeltaFor(IRodinElement element, boolean returnFirst) { - IRodinElementDelta[] deltas = this.deltaListener.deltas; - if (deltas == null) return null; - IRodinElementDelta result = null; - for (int i = 0; i < deltas.length; i++) { - IRodinElementDelta delta = searchForDelta(element, this.deltaListener.deltas[i]); - if (delta != null) { - if (returnFirst) { - return delta; - } - result = delta; - } - } - return result; - } - COM: <s> returns the delta for the given element from the cached delta </s> - diff --git a/funcom_test/19507443.txt b/funcom_test/19507443.txt deleted file mode 100644 index 22ebb780427efab8055c08648f63277082488872..0000000000000000000000000000000000000000 --- a/funcom_test/19507443.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testRenameIntNoop() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - createNEPositive(neSource, "bar", null); - - renameNoop(neSource); - } - COM: <s> ensures that renaming an internal element to itself is a no op </s> - diff --git a/funcom_test/19507453.txt b/funcom_test/19507453.txt deleted file mode 100644 index bb92a0fa6fe761963cc4a9f0a2fc71bd8399e6e0..0000000000000000000000000000000000000000 --- a/funcom_test/19507453.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testRenameIntSnapshot() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - rfSource.save(null, false); - - renameNegative(neSource.getSnapshot(), "bar", false, - IRodinDBStatusConstants.READ_ONLY); - } - COM: <s> ensures that an internal element snapshot cannot be renamed </s> - diff --git a/funcom_test/19507471.txt b/funcom_test/19507471.txt deleted file mode 100644 index aac792a40ff5ae9a33cae6ad98c208a98e3578e3..0000000000000000000000000000000000000000 --- a/funcom_test/19507471.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testRenameIntWithCollision() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement neSource = createNEPositive(neParent, "foo", null); - NamedElement neDest = createNEPositive(neParent, "bar", null); - - renameNegative(neSource, neDest.getElementName(), false, IRodinDBStatusConstants.NAME_COLLISION); - } - COM: <s> ensures that an internal element cannot be renamed </s> - diff --git a/funcom_test/19507526.txt b/funcom_test/19507526.txt deleted file mode 100644 index df4b1df190c3cd13c65dd719307e9807b14cf029..0000000000000000000000000000000000000000 --- a/funcom_test/19507526.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testReorderIntSnapshot() throws CoreException { - IRodinFile rfSource = createRodinFile("P/X.test"); - IInternalElement rSource = rfSource.getRoot(); - NamedElement neParent = createNEPositive(rSource, "parent", null); - NamedElement ne1 = createNEPositive(neParent, "foo", null); - NamedElement ne2 = createNEPositive(neParent, "bar", null); - rfSource.save(null, false); - - reorderNegative(ne2.getSnapshot(), ne1.getSnapshot(), - IRodinDBStatusConstants.READ_ONLY); - } - COM: <s> ensures that an internal element snapshot cannot be reordered </s> - diff --git a/funcom_test/19507684.txt b/funcom_test/19507684.txt deleted file mode 100644 index 8754bafd725ae529ec08955ad7e6bb8ddd9482a3..0000000000000000000000000000000000000000 --- a/funcom_test/19507684.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testProjectImport() throws Exception { - importProject("Q"); - - IRodinProject qProject = getRodinProject("Q"); - - SCTool.RUN_SC = true; - SCTool.SHOW_CLEAN = true; - SCTool.SHOW_EXTRACT = true; - SCTool.SHOW_RUN = true; - - POTool.RUN_PO = false; - POTool.SHOW_CLEAN = false; - POTool.SHOW_EXTRACT = false; - POTool.SHOW_RUN = false; - - runBuilder(qProject, - "CSC extract /Q/x.ctx", - "MSC extract /Q/a.mch", - "CSC run /Q/x.csc", - "MSC run /Q/a.msc" - ); - } - COM: <s> check that when importing a project it is subsequently built i </s> - diff --git a/funcom_test/19507723.txt b/funcom_test/19507723.txt deleted file mode 100644 index c29fef775250c0d5609351fa02b6ff1aa0947798..0000000000000000000000000000000000000000 --- a/funcom_test/19507723.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testOneTwoCreate() throws Exception { - IRodinFile ctx = createRodinFile("P/x.ctx"); -// ToolTrace.flush(); - createData(ctx, "one"); - ctx.save(null, true); - runBuilder(); - - IRodinFile cty = createRodinFile("P/y.ctx"); - createDependency(cty, "x"); - createData(cty, "two"); - cty.save(null, true); - runBuilder( - "CSC extract /P/x.ctx", - "CSC run /P/x.csc", - "CSC extract /P/y.ctx", - "CSC run /P/y.csc" - ); - } - COM: <s> ensures dependency is followed if source of dependency is created before target </s> - diff --git a/funcom_test/19507725.txt b/funcom_test/19507725.txt deleted file mode 100644 index 8e339fdd349a11d6b3a2e98fbbb173b107207401..0000000000000000000000000000000000000000 --- a/funcom_test/19507725.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testTwoOneCreate() throws Exception { - IRodinFile cty = createRodinFile("P/y.ctx"); - createDependency(cty, "x"); - createData(cty, "two"); - cty.save(null, true); - runBuilder(); - - IRodinFile ctx = createRodinFile("P/x.ctx"); - createData(ctx, "one"); - ctx.save(null, true); - - runBuilder( - "CSC extract /P/y.ctx", - "CSC run /P/y.csc", - "CSC extract /P/x.ctx", - "CSC run /P/x.csc", - "CSC run /P/y.csc" - ); - } - COM: <s> ensures dependency is followed if target of dependency is created before source </s> - diff --git a/funcom_test/19507735.txt b/funcom_test/19507735.txt deleted file mode 100644 index d0aeda8f3d3b41fe14449fa0b55b4cf0e8305838..0000000000000000000000000000000000000000 --- a/funcom_test/19507735.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void testOneTwoThreeCreateCycle() throws Exception { - IRodinFile ctx = createRodinFile("P/x.ctx"); - createDependency(ctx, "y"); - createData(ctx, "one"); - ctx.save(null, true); - runBuilder(); - - IRodinFile cty = createRodinFile("P/y.ctx"); - createDependency(cty, "x"); - createData(cty, "two"); - cty.save(null, true); - - IRodinFile ctz = createRodinFile("P/z.ctx"); - createData(ctz, "three"); - ctz.save(null, true); - - runBuilder( - "CSC extract /P/x.ctx", - "CSC run /P/x.csc", - "CSC extract /P/y.ctx", - "CSC extract /P/z.ctx", - "CSC run /P/z.csc" - ); - } - COM: <s> ensures cycles are ignored </s> - diff --git a/funcom_test/19507740.txt b/funcom_test/19507740.txt deleted file mode 100644 index 68b9d7014d9dc42ee68771fa9d3e715a9fa835a1..0000000000000000000000000000000000000000 --- a/funcom_test/19507740.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void testRodinDBProblem() throws Exception { - - try { - CSCTool.FAULTY_AFTER_TARGET_CREATION = true; - - IRodinFile ctx = createRodinFile("P/x.ctx"); - createData(ctx, "one"); - ctx.save(null, true); - - IRodinFile cty = createRodinFile("P/y.ctx"); - createDependency(cty, "x"); - createData(cty, "two"); - cty.save(null, true); - runBuilder( - "CSC extract /P/y.ctx", - "CSC extract /P/x.ctx", - "CSC run /P/x.csc", - "CSC run /P/y.csc" - ); - } finally { - CSCTool.FAULTY_AFTER_TARGET_CREATION = false; - } - } - COM: <s> test that the test case for database problems can work correctly </s> - diff --git a/funcom_test/19507784.txt b/funcom_test/19507784.txt deleted file mode 100644 index 11082f3db814a7c7db9de2700dd003e610938b30..0000000000000000000000000000000000000000 --- a/funcom_test/19507784.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testAddTwoRodinProjects() throws CoreException { - startDeltas(); - ResourcesPlugin.getWorkspace().run( - new IWorkspaceRunnable() { - public void run(IProgressMonitor monitor) throws CoreException { - createRodinProject("P1"); - createRodinProject("P2"); - } - }, - null); - assertEquals( - "Unexpected delta", - "P1[+]: {}\n" + - "P2[+]: {}", - getSortedByProjectDeltas()); - } - COM: <s> add two rodin projects in an iworkspace runnable </s> - diff --git a/funcom_test/19507794.txt b/funcom_test/19507794.txt deleted file mode 100644 index 5d221a9e118e6bc316edb81bcb4e270253333884..0000000000000000000000000000000000000000 --- a/funcom_test/19507794.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testClean() throws Exception { - final IRodinFile ctx = createRodinFile("P/x.ctx"); - createData(ctx, "one"); - ctx.save(null, true); - - runBuilder("CSC extract /P/x.ctx", "CSC run /P/x.csc"); - ToolTrace.flush(); - - final IRodinFile csc = getRodinFile("P/x.csc"); - createData(csc, "new"); - csc.save(null, true); - runBuilder(); - - runBuilderClean(project); - ToolTrace.assertTrace("CSC clean /P/x.csc"); - } - COM: <s> ensures that clean removes a generated file even if it has been modified </s> - diff --git a/funcom_test/19507797.txt b/funcom_test/19507797.txt deleted file mode 100644 index 7ed62154083ee91d0135a7bcd1cc578f623bfe56..0000000000000000000000000000000000000000 --- a/funcom_test/19507797.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testIsRoot() throws Exception { - final IRodinDB db = getRodinDB(); - final IRodinProject prj = getRodinProject("INEXISTENT"); - final IRodinFile rf = getRodinFile("P/inexistent.test"); - final IInternalElement root = rf.getRoot(); - final NamedElement ne = getNamedElement(root, "inexistent"); - - assertFalse(db.isRoot()); - assertFalse(prj.isRoot()); - assertFalse(rf.isRoot()); - assertTrue(root.isRoot()); - assertFalse(ne.isRoot()); - } - COM: <s> ensure that is root works properly on handles only </s> - diff --git a/funcom_test/19507802.txt b/funcom_test/19507802.txt deleted file mode 100644 index cd65d699be11d22492c1cf86f6cdd35cac4ee900..0000000000000000000000000000000000000000 --- a/funcom_test/19507802.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testGetRoot() throws Exception { - final IRodinFile rf = getRodinFile("P/inexistent.test"); - final IInternalElement root = rf.getRoot(); - final NamedElement child = getNamedElement(root, "inexistent"); - final NamedElement grandChild = getNamedElement(child, "inexistent"); - - assertEquals(root, root.getRoot()); - assertEquals(root, child.getRoot()); - assertEquals(root, grandChild.getRoot()); - } - COM: <s> ensure that get root works properly on handles only </s> - diff --git a/funcom_test/19507814.txt b/funcom_test/19507814.txt deleted file mode 100644 index 34c22fd15bffafeaf4b361993367653f856fc376..0000000000000000000000000000000000000000 --- a/funcom_test/19507814.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testMoveFromRoot() throws CoreException { - moveNegative(rSource, rDest, null, null, false, ROOT_ELEMENT); - moveNegative(rSource, rDest, null, null, true, ROOT_ELEMENT); - moveNegative(rSource, rfSource, null, null, false, ROOT_ELEMENT); - moveNegative(rSource, rfSource, null, null, true, ROOT_ELEMENT); - } - COM: <s> ensures that a root element cannot be moved from </s> - diff --git a/funcom_test/19507818.txt b/funcom_test/19507818.txt deleted file mode 100644 index bf251123a4b6ddf0adfcf09b2e6200c8f7ef3534..0000000000000000000000000000000000000000 --- a/funcom_test/19507818.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testMoveToRoot() throws CoreException { - final String name = rDest.getElementName(); - - moveNegative(neSource, rfDest, null, null, false, INVALID_DESTINATION); - moveNegative(neSource, rfDest, null, name, false, INVALID_DESTINATION); - moveNegative(neSource, rfDest, null, null, true, INVALID_DESTINATION); - moveNegative(neSource, rfDest, null, name, true, INVALID_DESTINATION); - } - COM: <s> ensures that one cannot move to a root element </s> - diff --git a/funcom_test/19507861.txt b/funcom_test/19507861.txt deleted file mode 100644 index dd7dff97a7408c9ed7d09e55c3b611d47b428416..0000000000000000000000000000000000000000 --- a/funcom_test/19507861.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testRodinFileRemoveAndAdd() throws CoreException { - createRodinProject("P"); - IFile file = createRodinFile("/P/X.test").getResource(); - - // delete file - startDeltas(); - deleteResource(file); - assertDeltas( - "Unexpected delta after deleting /P/p/X.test", - "P[*]: {CHILDREN}\n" + - " X.test[-]: {}" - ); - - // add file - clearDeltas(); - createRodinFile("/P/X.test"); - assertDeltas( - "Unexpected delta after adding /P/p/X.test", - "P[*]: {CHILDREN}\n" + - " X.test[+]: {}" - ); - } - COM: <s> test that deltas are generated when a file is added </s> - diff --git a/funcom_test/19508002.txt b/funcom_test/19508002.txt deleted file mode 100644 index fe2d146bfd2dfc94761410a3c61b017792972c0b..0000000000000000000000000000000000000000 --- a/funcom_test/19508002.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void testNonRodinResourceRemoveAndAdd() throws CoreException { - createRodinProject("P"); - IFile file = createFile("/P/read.txt", ""); - - startDeltas(); - deleteResource(file); - assertDeltas( - "Unexpected delta after deleting /P/src/read.txt", - "P[*]: {CONTENT}\n" + - " ResourceDelta(/P/read.txt)[-]" - ); - - clearDeltas(); - createFile("/P/read.txt", ""); - assertDeltas( - "Unexpected delta after creating /P/src/read.txt", - "P[*]: {CONTENT}\n" + - " ResourceDelta(/P/read.txt)[+]" - ); - } - COM: <s> test that deltas are generated when a non rodin file is </s> - diff --git a/funcom_test/19508387.txt b/funcom_test/19508387.txt deleted file mode 100644 index 4865daa126f4d6ef8a36bce0ed9d98f373fd3af7..0000000000000000000000000000000000000000 --- a/funcom_test/19508387.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testMarkerAttrLocInexistent() throws Exception { - IRodinFile rodinFile = createRodinFile("P/x.test"); - RodinTestRoot root = (RodinTestRoot) rodinFile.getRoot(); - IInternalElement ne = createNEPositive(root, "ne1", null); - rodinFile.save(null, false); - createMarkerNegative(ATTRIBUTE_DOES_NOT_EXIST, ne, fString, 0, 3, - TestProblem.err0); - } - COM: <s> ensures that a problem marker cannot be set on an inexistent attribute of </s> - diff --git a/funcom_test/19508652.txt b/funcom_test/19508652.txt deleted file mode 100644 index 855839dbb1f2adf161bc4ef0a1a5a5a946316a1b..0000000000000000000000000000000000000000 --- a/funcom_test/19508652.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testMarkerAttrNull() throws Exception { - IRodinFile rodinFile = createRodinFile("P/x.test"); - RodinTestRoot root = (RodinTestRoot) rodinFile.getRoot(); - IInternalElement ne = createNEPositive(root, "ne1", null); - rodinFile.save(null, false); - createMarkerPositive(ne, (IAttributeType) null, TestProblem.err0); - } - COM: <s> ensures that a problem marker can be set with a null attribute id </s> - diff --git a/funcom_test/19509177.txt b/funcom_test/19509177.txt deleted file mode 100644 index 7aa9c2213a385400dd35c6c0642807ad5beebbb6..0000000000000000000000000000000000000000 --- a/funcom_test/19509177.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected IProofTreeNode getNextReviewedSubgoal(IProofTreeNode node) { - if (node.getProofTree() != pt) { - node = pt.getRoot(); - } - return node.getNextNode(true, new IProofTreeNodeFilter() { - @Override - public boolean select(IProofTreeNode n) { - int confidence = n.getConfidence(); - return (confidence > IConfidence.PENDING && confidence <= IConfidence.REVIEWED_MAX); - } - - }); - } - COM: <s> get the next reviewed subgoal from the input node </s> - diff --git a/funcom_test/19509298.txt b/funcom_test/19509298.txt deleted file mode 100644 index 1ac02d5b710d523f45be99a1e5725cea2d54c8e1..0000000000000000000000000000000000000000 --- a/funcom_test/19509298.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void patchTypeEnvironment() throws CoreException { - if (concreteEventInfo.eventIsNew()) - return; - final List<IAbstractEventInfo> infos = concreteEventInfo - .getAbstractEventInfos(); - for (final IAbstractEventInfo info : infos) { - for (final FreeIdentifier freeIdentifier : info.getParameters()) { - final String name = freeIdentifier.getName(); - if (identifierSymbolTable.getSymbolInfoFromTop(name) == null) { - typeEnvironment.add(freeIdentifier); - } - } - } - } - COM: <s> adds abstract parameters to type environment when they are not also present </s> - diff --git a/funcom_test/19509681.txt b/funcom_test/19509681.txt deleted file mode 100644 index 601f6de6ad6b55b2013a8d03b13a0643c2bcda6b..0000000000000000000000000000000000000000 --- a/funcom_test/19509681.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testAssociativeExpression() { - doTest(mAssociativeExpression(BUNION, heS, heT), tS, tT); - doTest(mAssociativeExpression(BUNION, hiS, hiT), tS, tT); - doTest(mAssociativeExpression(BUNION, heS, heT, heU), tS, tT, tU); - doTest(mAssociativeExpression(BUNION, hiS, hiT, hiU), tS, tT, tU); - } - COM: <s> ensures that given types are propagated through an associative </s> - diff --git a/funcom_test/19509682.txt b/funcom_test/19509682.txt deleted file mode 100644 index 8f5d221081ee1442c72eb3b56359de7c9a81d88f..0000000000000000000000000000000000000000 --- a/funcom_test/19509682.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testWDStrictExtensions() { - assertWDStrict(EFF.makeExtendedPredicate(fooS, TWO_EXPRS, TWO_PREDS, - null)); - assertWDStrict(EFF.makeExtendedExpression(barS, TWO_EXPRS, TWO_PREDS, - null)); - assertNotWDStrict(EFF.makeExtendedPredicate(fooL, TWO_EXPRS, TWO_PREDS, - null)); - assertNotWDStrict(EFF.makeExtendedExpression(barL, TWO_EXPRS, - TWO_PREDS, null)); - } - COM: <s> ensures that wd strictness is correctly implemented for extension </s> - diff --git a/funcom_test/19509688.txt b/funcom_test/19509688.txt deleted file mode 100644 index 474df231c100fc7aed0c0941585b6967806f21a3..0000000000000000000000000000000000000000 --- a/funcom_test/19509688.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testAssociativePredicate() { - doTest(mAssociativePredicate(LAND, peS, peT), tS, tT); - doTest(mAssociativePredicate(LAND, piS, piT), tS, tT); - doTest(mAssociativePredicate(LAND, peS, peT, peU), tS, tT, tU); - doTest(mAssociativePredicate(LAND, piS, piT, piU), tS, tT, tU); - } - COM: <s> ensures that given types are propagated through an associative predicate </s> - diff --git a/funcom_test/19509761.txt b/funcom_test/19509761.txt deleted file mode 100644 index 32d7e92273aefeef38255999fced6702be287347..0000000000000000000000000000000000000000 --- a/funcom_test/19509761.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testQuantifiedExpression() { - final BoundIdentDecl[] decls = mList(mBoundIdentDecl("x", tS)); - final BoundIdentifier use = mBoundIdentifier(0, tS); - doTest(mQuantifiedExpression(CSET, Explicit, decls, peT, use), tS, tT); - doTest(mQuantifiedExpression(CSET, Explicit, decls, piT, use), tS, tT); - } - COM: <s> ensures that given types in a quantified expression are propagated </s> - diff --git a/funcom_test/19509769.txt b/funcom_test/19509769.txt deleted file mode 100644 index 54767e74abbd70b49835ac00750794ef160bf291..0000000000000000000000000000000000000000 --- a/funcom_test/19509769.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testQuantifiedPredicate() { - final BoundIdentDecl[] decls = mList(mBoundIdentDecl("x", tS)); - final BoundIdentifier use = mBoundIdentifier(0, tS); - final Predicate pred = mAssociativePredicate(LAND, - mRelationalPredicate(IN, use, eS), - peT, - piU - ); - doTest(mQuantifiedPredicate(EXISTS, decls, pred), tS, tT, tU); - } - COM: <s> ensures that given types in a quantified predicate are propagated </s> - diff --git a/funcom_test/19509788.txt b/funcom_test/19509788.txt deleted file mode 100644 index 68765be31c3dc1d6f7aff9de81408dbd28b33096..0000000000000000000000000000000000000000 --- a/funcom_test/19509788.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testOtherGenericAtomicExpressions() throws Exception { - final Type rSTS = REL(CPROD(ty_S, ty_T), ty_S); - doTest(mPrj1(rSTS), rSTS, V2); - - final Type rSTT = REL(CPROD(ty_S, ty_T), ty_T); - doTest(mPrj2(rSTT), rSTT, V2); - - final Type rSS = REL(ty_S, ty_S); - doTest(mId(rSS), rSS, V2); - } - COM: <s> the other generic atomic expressions kprj1 gen kprj2 gen and kid gen </s> - diff --git a/funcom_test/19509811.txt b/funcom_test/19509811.txt deleted file mode 100644 index 0f954126978eba9f021bbeaa9a57b8120ba21c78..0000000000000000000000000000000000000000 --- a/funcom_test/19509811.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testMultiplePredicate() { - doTest(FastFactory.mMultiplePredicate(eS), tS); - doTest(FastFactory.mMultiplePredicate(eS, eS), tS); - doTest(FastFactory.mMultiplePredicate(eS, eS, eS), tS); - } - COM: <s> ensures that given types in a multiple predicate are propagated </s> - diff --git a/funcom_test/19509813.txt b/funcom_test/19509813.txt deleted file mode 100644 index 258fe7772b7ef6a759877576be02474c86761071..0000000000000000000000000000000000000000 --- a/funcom_test/19509813.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testSerialization() { - final Formula<?> foo = pred; - final List<String> strings = new ArrayList<String>(); - - // Serialize predicate - assert foo.isTypeChecked(); - strings.add(foo.toStringWithTypes()); - - // Serialize type environment - for (FreeIdentifier i : foo.getFreeIdentifiers()) { - strings.add(i.getName()); - strings.add(i.getType().toString()); - } - - assertEquals(serialized, strings); - } - COM: <s> code shown in the rodin wiki about mathematical formula serialization </s> - diff --git a/funcom_test/19509910.txt b/funcom_test/19509910.txt deleted file mode 100644 index 43f1f39020d349d377a7ce79d3719e4cbd04a98e..0000000000000000000000000000000000000000 --- a/funcom_test/19509910.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testAssignmentSpecialization() { - try { - final Assignment assign = parseAssignment("a ≔ a + 1"); - final FreeIdentifier a = mFreeIdentifier("a", ff.makeIntegerType()); - te.add(a); - assign.typeCheck(te); - assertTrue(assign.isTypeChecked()); - spec.put(a, mFreeIdentifier("b", a.getType())); - assign.specialize(spec); - fail("Should have thrown an unsupported operation error"); - } catch (UnsupportedOperationException e) { - // pass - } - } - COM: <s> ensures that an exception is thrown on assignment specialization as it </s> - diff --git a/funcom_test/19509922.txt b/funcom_test/19509922.txt deleted file mode 100644 index c2a5869805a1a99f7e89f01d24ad347070e804b3..0000000000000000000000000000000000000000 --- a/funcom_test/19509922.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testAssociativeExpression2() { - te = mTypeEnvironment("a", "ℙ(S)", "b", "ℙ(S)"); - assertExpressionSpecialization(te, // - "a ∪ b", // - mSpec(te,// - mList("S", "ℤ"), // - mList("a", "ℙ(S)", "c", "ℙ(ℤ)"))); - } - COM: <s> ensures that an associative expression can have two children and only one </s> - diff --git a/funcom_test/19509928.txt b/funcom_test/19509928.txt deleted file mode 100644 index d4c536fd2d0ae5ac9ac685019fed99c97dda229c..0000000000000000000000000000000000000000 --- a/funcom_test/19509928.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testQuantifiers() { - final ITypeEnvironment env = mTypeEnvironment("f", REL(S, S)); - assertWDLemma(env,// - "∀x·x ∈ dom(f) ⇒ (∃y · f(x) = f(y)) ",// - "∀x·x∈dom(f) ⇒" // - + "(∀y·x∈dom(f) ∧ f∈S ⇸ S ∧ y∈dom(f) ∧ f∈S ⇸ S)",// - "∀x·x∈dom(f) ⇒ (∀y·f∈S ⇸ S∧y∈dom(f))"); - } - COM: <s> ensures that wd simplification does not mess up bound identifiers </s> - diff --git a/funcom_test/19509939.txt b/funcom_test/19509939.txt deleted file mode 100644 index 9b0ba60469395b671e7cec5325b1f3d5610e6715..0000000000000000000000000000000000000000 --- a/funcom_test/19509939.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testUnaryPredicate() { - te = mTypeEnvironment("s", "S"); - assertPredicateSpecialization(te, // - "¬(s ∈ S)", // - mSpec(te,// - mList("S", "Y"), // - mList("s", "S", "y", "Y"))); - } - COM: <s> ensures that an unary predicate with two children gets specialized </s> - diff --git a/funcom_test/19509944.txt b/funcom_test/19509944.txt deleted file mode 100644 index 79caa2f8e2189cd928fbfa8cb879bee5c4465da3..0000000000000000000000000000000000000000 --- a/funcom_test/19509944.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testAssociativePredicate() { - te = mTypeEnvironment("s", "S", "t", "T"); - assertPredicateSpecialization(te, // - "s ∈ S ∧ t ∈ T", // - mSpec(te,// - mList("S", "Y", // - "T", "Z"), // - mList("s", "S", "y", "Y", // - "t", "T", "z", "Z"))); - } - COM: <s> ensures that an associative predicate with two children gets specialized </s> - diff --git a/funcom_test/19509951.txt b/funcom_test/19509951.txt deleted file mode 100644 index 4c98cee5567a89d931533b25c5dfd226b8a85128..0000000000000000000000000000000000000000 --- a/funcom_test/19509951.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testAssociativePredicate2() { - te = mTypeEnvironment("T", "ℙ(T)"); - assertPredicateSpecialization(te, // - "card(t)>0 ∧ t ⊆ T ∧ t ≠ ∅", // - mSpec(te,// - mList("T", "ℤ"), // - mList("t", "ℙ(T)", "{1}", "ℙ(ℤ)"))); - } - COM: <s> ensures that an associative predicate with three children gets </s> - diff --git a/funcom_test/19510001.txt b/funcom_test/19510001.txt deleted file mode 100644 index 5922df13692cf41cd760f668e0d64dd413f489a3..0000000000000000000000000000000000000000 --- a/funcom_test/19510001.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testBinaryExpressionRight() { - te = mTypeEnvironment("a", "S", "b", "T"); - assertExpressionSpecialization(te, // - "a ↦ b", // - mSpec(te, mList("T", "U"), mList("b", "T", "c", "U"))); - } - COM: <s> ensures a binary expression can be specialized on the right and only </s> - diff --git a/funcom_test/19510012.txt b/funcom_test/19510012.txt deleted file mode 100644 index 3ec3da6ea9c8cf0435de2dc52d16dcbc867d6777..0000000000000000000000000000000000000000 --- a/funcom_test/19510012.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testBinaryExpressionBoth() { - te = mTypeEnvironment("a", "S", "b", "T"); - assertExpressionSpecialization(te, // - "a ↦ b", // - mSpec(te, mList("S", "U", "T", "V"),// - mList("a", "S", "c", "U",// - "b", "T", "d", "V"))); - } - COM: <s> ensures that both left and right sides of a binary expression can be </s> - diff --git a/funcom_test/19510020.txt b/funcom_test/19510020.txt deleted file mode 100644 index 64f680de85fa6ff179358a10d0db54709096765a..0000000000000000000000000000000000000000 --- a/funcom_test/19510020.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testBinaryPredicateSpecializationLeft() { - te = mTypeEnvironment("S", "ℙ(S)", "T", "ℙ(T)", "x", "S", "y", "T"); - assertPredicateSpecialization(te, // - "x ∈ S ⇒ y ∈ T", // - mSpec(te, mList("S", "U"), mList("x", "S", "c", "U"))); - } - COM: <s> ensures that the left side of a binary predicate can be specialized </s> - diff --git a/funcom_test/19510028.txt b/funcom_test/19510028.txt deleted file mode 100644 index 8f9cf66e65156851d629e5dbde09b2a4f4235edb..0000000000000000000000000000000000000000 --- a/funcom_test/19510028.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testBinaryPredicateSpecializationRight() { - te = mTypeEnvironment("S", "ℙ(S)", "T", "ℙ(T)", "x", "S", "y", "T"); - assertPredicateSpecialization(te, // - "x ∈ S ⇒ y ∈ T", // - mSpec(te, mList("T", "U"), mList("y", "T", "c", "U"))); - } - COM: <s> ensures that the right side of a binary predicate can be specialized </s> - diff --git a/funcom_test/19510052.txt b/funcom_test/19510052.txt deleted file mode 100644 index b97184585f52621ca07547227049f3f7f68f3cd1..0000000000000000000000000000000000000000 --- a/funcom_test/19510052.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testBooleanExpressionSpecialization() { - te = mTypeEnvironment("S", "ℙ(S)", "x", "ℙ(S)", "y", "ℙ(S)"); - assertExpressionSpecialization(te, // - "bool(x ⊆ y)", // - mSpec(te, mList("S", "T"), // - mList("x", "ℙ(S)", "z", "ℙ(T)"))); - } - COM: <s> ensures that a boolean expression gets specialized </s> - diff --git a/funcom_test/19510155.txt b/funcom_test/19510155.txt deleted file mode 100644 index e24e41208e8e560c4f584b7068a61ffac3370972..0000000000000000000000000000000000000000 --- a/funcom_test/19510155.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testExtendedPredicate() throws Exception { - final Predicate predicate = EFF.makeExtendedPredicate(fooS, - Arrays.<Expression> asList(eA, eB), - Arrays.<Predicate> asList(pA, pB), null); - assertTrace(predicate, ""); - assertTrace(predicate, "0"); - assertTrace(predicate, "1"); - assertTrace(predicate, "2"); - assertTrace(predicate, "3"); - assertSkipChildrenOnce(predicate); - } - COM: <s> ensures that skip methods work as expected on extended predicates </s> - diff --git a/funcom_test/19510161.txt b/funcom_test/19510161.txt deleted file mode 100644 index fa792fae627ba132b6e77b82474c281ccf5db1cf..0000000000000000000000000000000000000000 --- a/funcom_test/19510161.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testQuantifiedPredicateSpecialization() { - assertPredicateSpecialization(te, // - "∀x,y·x ∈ ℕ ∧ y ∈ ℕ ⇒ x + y ∈ ℕ", // - mSpec(te, // - new String[0], // - mList("x", "ℤ", "t", "ℤ"))); - } - COM: <s> ensures that a quantified predicated remains unchanged if bound </s> - diff --git a/funcom_test/19510166.txt b/funcom_test/19510166.txt deleted file mode 100644 index 0d90bb4bbc6d7727d151cb5e50776675be180a32..0000000000000000000000000000000000000000 --- a/funcom_test/19510166.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testExtendedExpression() throws Exception { - final Expression expression = EFF.makeExtendedExpression(barS, - Arrays.<Expression> asList(eA, eB), - Arrays.<Predicate> asList(pA, pB), null); - assertTrace(expression, ""); - assertTrace(expression, "0"); - assertTrace(expression, "1"); - assertTrace(expression, "2"); - assertTrace(expression, "3"); - assertSkipChildrenOnce(expression); - } - COM: <s> ensures that skip methods work as expected on extended expression </s> - diff --git a/funcom_test/19510179.txt b/funcom_test/19510179.txt deleted file mode 100644 index 71592dd4c75d4db1f8cd6b29eb5dd14c58d9e1c3..0000000000000000000000000000000000000000 --- a/funcom_test/19510179.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testRelationalPredicateSpecialization() { - te = mTypeEnvironment("S", " ℙ(S)", "s", "S"); - assertPredicateSpecialization(te, // - "s ∈ S", // - mSpec(te, // - mList("S", "T"), // - new String[0])); - } - COM: <s> ensures that the left part of a relational predicate gets specialized </s> - diff --git a/funcom_test/19510259.txt b/funcom_test/19510259.txt deleted file mode 100644 index adc2bb24cc15f76cfcf6665ba4a93fb116bafae8..0000000000000000000000000000000000000000 --- a/funcom_test/19510259.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testPowerSetTypeToProductTypeSpecialization() { - try { - final ProductType prodType = ff.makeProductType(S, T); - spec.put(S, prodType); - final Type specializedS = POWER_S.specialize(spec); - assertEquals(ff.makePowerSetType(prodType), specializedS); - } catch (IllegalArgumentException e) { - fail("Should not have raised an exception"); - } - } - COM: <s> ensures that a powerset type specialization to a product type </s> - diff --git a/funcom_test/19510270.txt b/funcom_test/19510270.txt deleted file mode 100644 index a7a84f8465ad36364fa678798d6ee52751f3cb27..0000000000000000000000000000000000000000 --- a/funcom_test/19510270.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testProductTypeLeftRightSpecialization() { - try { - final ProductType pType = ff.makeProductType(S, T); - spec.put(S, U); - spec.put(T, V); - final Type specialType = pType.specialize(spec); - assertEquals(ff.makeProductType(U, V), specialType); - } catch (IllegalArgumentException e) { - fail("Should not have raised an exception"); - } - } - COM: <s> ensures that given types appearing as left and right members of a product </s> - diff --git a/funcom_test/19510307.txt b/funcom_test/19510307.txt deleted file mode 100644 index dcf2c30498a97f501fae24e3e52b7c3ca4709e7b..0000000000000000000000000000000000000000 --- a/funcom_test/19510307.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testBoundIdentDecl() throws Exception { - final QuantifiedPredicate predicate = mQuantifiedPredicate( - mList(b_x, b_y, b_z), pA); - assertTrace(predicate, "0"); - assertTrace(predicate, "1"); - assertTrace(predicate, "2"); - final Expression expression = mQuantifiedExpression( - mList(b_x, b_y, b_z), pA, eA); - assertTrace(expression, "0"); - assertTrace(expression, "1"); - assertTrace(expression, "2"); - } - COM: <s> ensures that skip methods works as expected on bound ident decl </s> - diff --git a/funcom_test/19510374.txt b/funcom_test/19510374.txt deleted file mode 100644 index 227af9f5de7f558c8cbee56bd3c9e7c2367a2cc7..0000000000000000000000000000000000000000 --- a/funcom_test/19510374.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testPrimedUnprimedIdentifiers() { - - FreeIdentifier a = ff.makeFreeIdentifier("a", null); - assertFalse("a should be unprimed", a.isPrimed()); - - FreeIdentifier ap = a.withPrime(ff); - assertTrue("ap should be primed", ap.isPrimed()); - - FreeIdentifier np = ap.withoutPrime(ff); - assertEquals("Primed should be the inverse of Unprimed", a, np); - - FreeIdentifier pp = np.withPrime(ff); - assertEquals("Unprimed should be the inverse of Primed", ap, pp); - } - COM: <s> test method for org </s> - diff --git a/funcom_test/19511016.txt b/funcom_test/19511016.txt deleted file mode 100644 index b0ce7d61ca527b583f87d53d969ec2119c5f0590..0000000000000000000000000000000000000000 --- a/funcom_test/19511016.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void testAction(String message, IAction act, String expected) { - try { - String actual = act.getLabel() + ": " + act.getAssignmentString(); - assertEquals(message + ": Incorrect action", expected, actual); - } catch (RodinDBException e) { - e.printStackTrace(); - fail("There should be no exception"); - return; - } - } - COM: <s> utility method to test an action </s> - diff --git a/funcom_test/19511233.txt b/funcom_test/19511233.txt deleted file mode 100644 index fc6fe17d9f5093b5aa663e6d6e224f9ae2cd28b7..0000000000000000000000000000000000000000 --- a/funcom_test/19511233.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Expression getTypeExpression() throws RodinDBException { - if (element.getElementType() == IConstant.ELEMENT_TYPE) { - return EventBUtils.getTypeExpression((IContextRoot) element - .getRoot(), name); - } - if (element.getElementType() == IVariable.ELEMENT_TYPE) { - return EventBUtils.getTypeExpression((IMachineRoot) element - .getRoot(), name); - } - return null; - } - COM: <s> returns the type expression of the element associated with this symbol </s> - diff --git a/funcom_test/19511287.txt b/funcom_test/19511287.txt deleted file mode 100644 index 14bea39f54e2e4962ade88b3f019bb42a5b55c9c..0000000000000000000000000000000000000000 --- a/funcom_test/19511287.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void createContents() { - GridLayout gl = new GridLayout(); - gl.numColumns = 2; - group.setLayout(gl); - - // Project label - Label label = new Label(group, SWT.NONE); - label.setText(Messages.label_project); //$NON-NLS-1$ - - // Project chooser - createProjectChooser(); - - // Machine label - label = new Label(group, SWT.NONE); - label.setText(Messages.label_machine); //$NON-NLS-1$ - - // Machine chooser - createMachineChooser(); - } - COM: <s> utility method to create the content of the group with two element </s> - diff --git a/funcom_test/19511321.txt b/funcom_test/19511321.txt deleted file mode 100644 index f2dc562de6eaa1725fc157fb8a973414ad8e351e..0000000000000000000000000000000000000000 --- a/funcom_test/19511321.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void createLabels(final Composite parent) { - Label availableLabel = new Label(parent, SWT.LEFT); - availableLabel.setText(Messages.label_available); - GridData gd = new GridData(GridData.FILL_HORIZONTAL); - availableLabel.setLayoutData(gd); - - Label tmpLabel = new Label(parent, SWT.CENTER); - gd = new GridData(); - gd.verticalAlignment = GridData.CENTER; - tmpLabel.setLayoutData(gd); - - Label selectedLabel = new Label(parent, SWT.LEFT); - selectedLabel.setText(ch.ethz.eventb.internal.decomposition.utils.Messages.label_selected); - gd = new GridData(GridData.FILL_HORIZONTAL); - selectedLabel.setLayoutData(gd); - } - COM: <s> utility method to create the labels on top of the two lists </s> - diff --git a/funcom_test/19511325.txt b/funcom_test/19511325.txt deleted file mode 100644 index 725715e9f6572156fe6a0c8c94e7af1b5a9d93cc..0000000000000000000000000000000000000000 --- a/funcom_test/19511325.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private ListViewer createListViewer(final Composite parent,boolean resizable) { - int style = SWT.BORDER | SWT.MULTI; - if(resizable){ - style = style | SWT.V_SCROLL | SWT.H_SCROLL; - } - ListViewer viewer = new ListViewer(parent, style); - viewer.getControl().setLayoutData( - new GridData(SWT.FILL, SWT.FILL, true, true)); - viewer.setLabelProvider(new RodinElementLabelProvider()); - viewer.setContentProvider(new RodinElementContentProvider<T>(type)); - return viewer; - } - COM: <s> creates the list viewer </s> - diff --git a/funcom_test/19512267.txt b/funcom_test/19512267.txt deleted file mode 100644 index 7a4dd30c162fb9bcbf38fd0f746e504567fd3601..0000000000000000000000000000000000000000 --- a/funcom_test/19512267.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void prettyPrint(final EventBObject emfObject) { - final String packageNsURI = emfObject.eClass().getEPackage().getNsURI(); - - if (packageNsURI.equals(MachinePackage.eNS_URI)) { - machineSwitch.doSwitch(emfObject); - } else if (packageNsURI.equals(ContextPackage.eNS_URI)) { - contextSwitch.doSwitch(emfObject); - } - } - COM: <s> creates a pretty print for the given </s> - diff --git a/funcom_test/19513043.txt b/funcom_test/19513043.txt deleted file mode 100644 index c9de4154c375b07bbf6533130b096b0c3af95199..0000000000000000000000000000000000000000 --- a/funcom_test/19513043.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public MenuManager buildOpenWithMenu() { - MenuManager menu = new MenuManager("Open With", ICommonMenuConstants.GROUP_OPEN_WITH); - ISelection selection = site.getStructuredViewer().getSelection(); - Object obj = ((IStructuredSelection) selection).getFirstElement(); - menu.add(new OpenWithMenu(TheoryUIPlugIn.getActivePage(), ((IInternalElement) obj).getRodinFile().getResource())); - return menu; - } - COM: <s> builds an open with menu </s> - diff --git a/funcom_test/19513395.txt b/funcom_test/19513395.txt deleted file mode 100644 index f3a62ea8ffd8cf6aa320712cd0f9018f9eaa117e..0000000000000000000000000000000000000000 --- a/funcom_test/19513395.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public IBinding match(Formula<?> form, Formula<?> pattern, boolean acceptPartialMatch) { - IBinding initialBinding = matchingFactory.createBinding(form, pattern,acceptPartialMatch, factory); - if (matchingFactory.match(form, pattern, initialBinding)){ - initialBinding.makeImmutable(); - return initialBinding; - } - return null; - } - COM: <s> matches the formula and the pattern and produces a matching result </s> - diff --git a/funcom_test/19514510.txt b/funcom_test/19514510.txt deleted file mode 100644 index 1674640b5389212ebd5d8e3ec5074fad7138f9f7..0000000000000000000000000000000000000000 --- a/funcom_test/19514510.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOrderPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BPredicate_order_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BPredicate_order_feature", "_UI_BPredicate_type"), - BPackage.Literals.BPREDICATE__ORDER, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the order feature </s> - diff --git a/funcom_test/19514525.txt b/funcom_test/19514525.txt deleted file mode 100644 index 95aa76f40b79cda0a58c330a7b1cd64f73a3f8bd..0000000000000000000000000000000000000000 --- a/funcom_test/19514525.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addImplicitPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BMachine_implicit_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BMachine_implicit_feature", "_UI_BMachine_type"), - BPackage.Literals.BMACHINE__IMPLICIT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the implicit feature </s> - diff --git a/funcom_test/19515941.txt b/funcom_test/19515941.txt deleted file mode 100644 index 05e0c8b0b056592c0fdca962b99b27d70cf367c5..0000000000000000000000000000000000000000 --- a/funcom_test/19515941.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_detinp_detPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DET_inv_detinp_det_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DET_inv_detinp_det_feature", "_UI_DET_type"), - Context_FmsCPackage.Literals.DET__INV_DETINP_DET, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv detinp det feature </s> - diff --git a/funcom_test/19515965.txt b/funcom_test/19515965.txt deleted file mode 100644 index c92183dccd84f54b49c188d27a746b29701cb70b..0000000000000000000000000000000000000000 --- a/funcom_test/19515965.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_actout_outPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OUT_inv_actout_out_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_OUT_inv_actout_out_feature", "_UI_OUT_type"), - Context_FmsCPackage.Literals.OUT__INV_ACTOUT_OUT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv actout out feature </s> - diff --git a/funcom_test/19515977.txt b/funcom_test/19515977.txt deleted file mode 100644 index 0d9feb7fa4ddad9d6c54f02ec7e11e5ef4092bc7..0000000000000000000000000000000000000000 --- a/funcom_test/19515977.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_det_condPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_COND_inv_det_cond_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_COND_inv_det_cond_feature", "_UI_COND_type"), - Context_FmsCPackage.Literals.COND__INV_DET_COND, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv det cond feature </s> - diff --git a/funcom_test/19515982.txt b/funcom_test/19515982.txt deleted file mode 100644 index e81894323ba894a4926d967978044869da434a94..0000000000000000000000000000000000000000 --- a/funcom_test/19515982.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_act_condPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_COND_inv_act_cond_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_COND_inv_act_cond_feature", "_UI_COND_type"), - Context_FmsCPackage.Literals.COND__INV_ACT_COND, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv act cond feature </s> - diff --git a/funcom_test/19516021.txt b/funcom_test/19516021.txt deleted file mode 100644 index dd05865774515a3bcc933dd4b3c316d56f7cce47..0000000000000000000000000000000000000000 --- a/funcom_test/19516021.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_det_confPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CONF_inv_det_conf_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_CONF_inv_det_conf_feature", "_UI_CONF_type"), - Context_FmsCPackage.Literals.CONF__INV_DET_CONF, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv det conf feature </s> - diff --git a/funcom_test/19516023.txt b/funcom_test/19516023.txt deleted file mode 100644 index ad28cdad77be40a3c348c613e1715cd711fff12d..0000000000000000000000000000000000000000 --- a/funcom_test/19516023.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAll_HealthyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ACT_All_Healthy_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ACT_All_Healthy_feature", "_UI_ACT_type"), - Context_FmsCPackage.Literals.ACT__ALL_HEALTHY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the all healthy feature </s> - diff --git a/funcom_test/19516025.txt b/funcom_test/19516025.txt deleted file mode 100644 index e3c3b6d9b41c3c86c82af307813d38109be8a72f..0000000000000000000000000000000000000000 --- a/funcom_test/19516025.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNot_HealthyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ACT_Not_Healthy_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ACT_Not_Healthy_feature", "_UI_ACT_type"), - Context_FmsCPackage.Literals.ACT__NOT_HEALTHY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the not healthy feature </s> - diff --git a/funcom_test/19516053.txt b/funcom_test/19516053.txt deleted file mode 100644 index f3bf3f2ebc971f4ddfadea29223c6d2890478376..0000000000000000000000000000000000000000 --- a/funcom_test/19516053.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_actout_actPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ACT_inv_actout_act_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ACT_inv_actout_act_feature", "_UI_ACT_type"), - Context_FmsCPackage.Literals.ACT__INV_ACTOUT_ACT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv actout act feature </s> - diff --git a/funcom_test/19516064.txt b/funcom_test/19516064.txt deleted file mode 100644 index 13ec98c717ae42b7cf588635b3c87a71dc0d9fc0..0000000000000000000000000000000000000000 --- a/funcom_test/19516064.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_detinp_inpPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_INP_inv_detinp_inp_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_INP_inv_detinp_inp_feature", "_UI_INP_type"), - Context_FmsCPackage.Literals.INP__INV_DETINP_INP, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv detinp inp feature </s> - diff --git a/funcom_test/19516494.txt b/funcom_test/19516494.txt deleted file mode 100644 index 95346f48576933ed326d8690d078545bf993dda5..0000000000000000000000000000000000000000 --- a/funcom_test/19516494.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInv_a_condPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_COND_inv_a_cond_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_COND_inv_a_cond_feature", "_UI_COND_type"), - Machine_FMS_machinePackage.Literals.COND__INV_ACOND, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inv acond feature </s> - diff --git a/funcom_test/19516765.txt b/funcom_test/19516765.txt deleted file mode 100644 index f38d30f6a4364a4f9619f583c49be412c7d31620..0000000000000000000000000000000000000000 --- a/funcom_test/19516765.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void addInstance(Map<String,String> instance) { - - // check if all attributes of this instance are already - // in attribute list - for(String attrName : instance.keySet()) { - if(!attributes.contains(attrName)) - attributes.add(attrName); - else { - if(attrName.startsWith("*")) { - int index = attributes.indexOf(attrName.substring(1)); - if(index != -1) - attributes.remove(index); - } - } - } - - // add instance to instance list - instances.add(instance); - } - COM: <s> add an instance </s> - diff --git a/funcom_test/19516769.txt b/funcom_test/19516769.txt deleted file mode 100644 index 3ac43d16763ee385964085e39fcafc40d124b8ec..0000000000000000000000000000000000000000 --- a/funcom_test/19516769.txt +++ /dev/null @@ -1,31 +0,0 @@ -TDAT: public String toString() { - StringBuilder res = new StringBuilder(); - - // table definition - res.append("TABLE:" + elementType + "\n"); - - // column headers - for(String attr : attributes) { - res.append("," + attr); - } - res.append("\n"); - - // values - for(Map<String,String> instance : instances) { - for(String attr : attributes) { - res.append(","); - String value = instance.get(attr); - - if(value == null && attr.startsWith("*")) - value = instance.get(attr.substring(1)); - - if(value != null) - res.append(value); - } - res.append("\n"); - } - - return res.toString(); - } - COM: <s> formats instance data as csv </s> - diff --git a/funcom_test/19516896.txt b/funcom_test/19516896.txt deleted file mode 100644 index 363ff90148e13a1e5c74e10042693d3627f88a65..0000000000000000000000000000000000000000 --- a/funcom_test/19516896.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void insert(String theItem, int pos) { - if(!theItem.trim().equals("")) { - int p=pos; - if(p<0) { p=0; } else if(p>Items.size()) { p=Items.size(); } - Items.insertElementAt(theItem.trim(), p); - size=Items.size(); - } - } - COM: <s> insert adds an item to the clause at the given position </s> - diff --git a/funcom_test/19516935.txt b/funcom_test/19516935.txt deleted file mode 100644 index a7989d211f4af862bfd94fbd7f434b8c380a336a..0000000000000000000000000000000000000000 --- a/funcom_test/19516935.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String quantify(String predicate) { - String instName=owner.getName(); - if(owner.getCardType()!=ClassicBComponent.SINGULAR&predicate.indexOf("this" +instName)!=-1) - return "!(this" +instName+").(this" +instName+":" +instName+"=>(" +predicate+"))"; - else - return predicate; - } - COM: <s> adds universal quantification to a predicate </s> - diff --git a/funcom_test/19517124.txt b/funcom_test/19517124.txt deleted file mode 100644 index 07639c5cc49b3fc1d6213e0622e8abba25cf684f..0000000000000000000000000000000000000000 --- a/funcom_test/19517124.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConstantsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MachineState_constants_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MachineState_constants_feature", "_UI_MachineState_type"), - ExtcorePackage.Literals.MACHINE_STATE__CONSTANTS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the constants feature </s> - diff --git a/funcom_test/19517139.txt b/funcom_test/19517139.txt deleted file mode 100644 index b8871ba3a68a918df39134165f360bcb0a0def2b..0000000000000000000000000000000000000000 --- a/funcom_test/19517139.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addParametersPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EventState_parameters_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EventState_parameters_feature", "_UI_EventState_type"), - ExtcorePackage.Literals.EVENT_STATE__PARAMETERS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the parameters feature </s> - diff --git a/funcom_test/19517728.txt b/funcom_test/19517728.txt deleted file mode 100644 index 1e269d852ae8ad1a89ef6c811d71b28d187e61f3..0000000000000000000000000000000000000000 --- a/funcom_test/19517728.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void configureDebugOptions() { - if (isDebugging()) { - - // Global plugin debug - String option = Platform.getDebugOption(GLOBAL_TRACE); - if (option != null) - PatternUtils.DEBUG = option.equalsIgnoreCase("true"); //$NON-NLS-1$ - - // Wizard debug - option = Platform.getDebugOption(WIZARD_TRACE); - if (option != null) - WizardUtils.DEBUG = option.equalsIgnoreCase("true"); //$NON-NLS-1$ - } - } - COM: <s> utility method for configuring various debug options </s> - diff --git a/funcom_test/19517755.txt b/funcom_test/19517755.txt deleted file mode 100644 index e46852ec922dc3ff074b9bdd40b70fa690b79513..0000000000000000000000000000000000000000 --- a/funcom_test/19517755.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateFoldingStructure() { - for (Annotation a : oldPojectionAnnotations) { - projectionAnnotationModel.removeAnnotation(a); - } - final Position[] positions = mapper.getFoldingPositions(); - final Annotation[] annotations = mapper.getFoldingAnnotations(); - Assert.isLegal(annotations.length == positions.length); - // TODO use AnnotationModel.replaceAnnotations(Annotation[], Map) - for (int i = 0; i < positions.length; i++) { - projectionAnnotationModel.addAnnotation(annotations[i], - positions[i]); - } - oldPojectionAnnotations = annotations; - } - COM: <s> replaces the old folding structure with the current one </s> - diff --git a/funcom_test/19517824.txt b/funcom_test/19517824.txt deleted file mode 100644 index 07c8df8dd169eeedb556892615a9237836f0acb1..0000000000000000000000000000000000000000 --- a/funcom_test/19517824.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addPages() { - matchingPage = new MatchingWizardPage(selection, openFiles, data); - addPage(matchingPage); - syntaxCheckingPage = new SyntaxCheckingWizardPage(matchingPage); - addPage(syntaxCheckingPage); - mergingPage = new MergingWizardPage(matchingPage, openFiles, data); - addPage(mergingPage); - renamingPage = new RenamingWizardPage(matchingPage, mergingPage, data); - addPage(renamingPage); - incorporatingPage = new IncorporatingWizardPage(matchingPage, mergingPage, data); - addPage(incorporatingPage); - } - COM: <s> adding the pages to the wizard </s> - diff --git a/funcom_test/19517902.txt b/funcom_test/19517902.txt deleted file mode 100644 index f861e4c57f8bc9bc96a2e483522ad1c76b1568c7..0000000000000000000000000000000000000000 --- a/funcom_test/19517902.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void testEventGuards(String message, IEvent evt, String... expected) { - try { - IGuard[] grds = evt.getGuards(); - assertEquals(message + ": Incorrect number of guards", - expected.length, grds.length); - for (int i = 0; i < grds.length; i++) { - testGuard(message, grds[i], expected[i]); - - } - } catch (RodinDBException e) { - e.printStackTrace(); - fail("There should be no exception"); - return; - } - } - COM: <s> utility method for testing event guards </s> - diff --git a/funcom_test/19518178.txt b/funcom_test/19518178.txt deleted file mode 100644 index 4da035dfdec9d20e05f7c84f56cdfe5fb6445003..0000000000000000000000000000000000000000 --- a/funcom_test/19518178.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void extract(IPOSequent sequent) throws RodinDBException { - final IInternalElement root = sequent.getRoot(); - if (root instanceof IPORoot) { - final IProofComponent pc = pm.getProofComponent((IPORoot) root); - final IProofTree proofTree = getProofTree(sequent, pc); - if (proofTree != null) { - IProofTreeNode ptNode = proofTree.getRoot(); - if (ptNode != null) { - listPtNode.add(ptNode); - } - } - } - } - COM: <s> record the iproof tree node root of the iposequent in </s> - diff --git a/funcom_test/19518304.txt b/funcom_test/19518304.txt deleted file mode 100644 index 9b046c96d06479ee7cc11f2a3c9cfd7607b27db8..0000000000000000000000000000000000000000 --- a/funcom_test/19518304.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void test_HeavyProject(String projectName) throws Exception { - IRodinProject rProject = getProject(projectName); - System.out.println(getMRTName() + isBeingTested + "on " + projectName); - if (rProject == null) { - return; - } - for (IRodinFile file : rProject.getRodinFiles()) { - System.gc(); - x = extractFile(file); - System.out.println(testingFile + file.getElementName()); - suitePerfMeasure(1); - } - } - COM: <s> compute the execution time for each </s> - diff --git a/funcom_test/19518353.txt b/funcom_test/19518353.txt deleted file mode 100644 index 8866fada957a125831c1054e03f921e35072566d..0000000000000000000000000000000000000000 --- a/funcom_test/19518353.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setOverallTimeoutPreference(int aTimeout) { - getPreferenceStore().putInt(OVERALL_TIMEOUT_PREFERENCE, aTimeout); - try { - getPreferenceStore().flush(); - } catch (BackingStoreException e) { - e.printStackTrace(); - } - assert getOverallTimeoutPreference() == aTimeout; - } - COM: <s> set the overall timeout preference </s> - diff --git a/funcom_test/19518359.txt b/funcom_test/19518359.txt deleted file mode 100644 index 3d935a3581a2cd3b9c7d5e221f78764259418094..0000000000000000000000000000000000000000 --- a/funcom_test/19518359.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public FilterRepresentative getFilterRepForName(String aName) { - FilterRepresentative result = null; - Class<? extends FilterRepresentative> lClass = filterReps.get(aName); - if (lClass != null) { - try { - result = lClass.newInstance(); - result.setDefault(); - } catch (InstantiationException e) { - // Ignore - } catch (IllegalAccessException e) { - // Ignore - } - } - - return result; - } - COM: <s> returns a new filter representative instance for the filter with name a name </s> - diff --git a/funcom_test/19518363.txt b/funcom_test/19518363.txt deleted file mode 100644 index 2eae8b5cdb0ccf72b6c0c4a9cd4a3bdab0fab863..0000000000000000000000000000000000000000 --- a/funcom_test/19518363.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public ProverRepresentative getProverRepForName(String aName) { - ProverRepresentative result = null; - Class<? extends ProverRepresentative> lClass = proverReps.get(aName); - if (lClass != null) { - try { - result = lClass.newInstance(); - result.setDefault(); - } catch (InstantiationException e) { - // Ignore - } catch (IllegalAccessException e) { - // Ignore - } - } - - return result; - } - COM: <s> returns a new prover representative instance for the filter with name a name </s> - diff --git a/funcom_test/19518453.txt b/funcom_test/19518453.txt deleted file mode 100644 index 5d80335a227c7c1f7ca5b23052c71adb96bd5fcb..0000000000000000000000000000000000000000 --- a/funcom_test/19518453.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Node extractMax() { - assert isHeap; - if (contents.isEmpty()) { - return null; - } else { - Node lMaxNode = contents.get(0); - lMaxNode.heapPos = -1; - Node last = contents.get(contents.size() - 1); - contents.remove(contents.size() - 1); - if (contents.size() > 0) { - contents.set(0, last); - last.heapPos = 0; - sink(last); - } - return lMaxNode; - } - } - COM: <s> removes the maximum node root of the heap </s> - diff --git a/funcom_test/19518455.txt b/funcom_test/19518455.txt deleted file mode 100644 index 6caa558fa66955a8c8f5d732e2035f11d66b9fa8..0000000000000000000000000000000000000000 --- a/funcom_test/19518455.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void sink(Node cur) { - Node max; - do { - max = cur; - Node left = leftChild(cur); - if (left != null && left.getSimilarity() > max.getSimilarity()) { - max = left; - } - Node right = rightChild(cur); - if (right != null - && right.getSimilarity() > max.getSimilarity()) { - max = right; - } - if (max != cur) { - swap(max, cur); - } - } while (max != cur); - } - COM: <s> moves a node downwards until the node satisfies the heap condition </s> - diff --git a/funcom_test/19518936.txt b/funcom_test/19518936.txt deleted file mode 100644 index 025aa1707a845f67b9483c567b25a87380d6e4ef..0000000000000000000000000000000000000000 --- a/funcom_test/19518936.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void calculateParameters (Collection<IEvent> events, HashMap<IEvent, Collection<IParameter>> parameterMap) throws RodinDBException { - for (IEvent event : events) { - Collection<IParameter> parameters = new ArrayList<IParameter>(); - for (IParameter parameter : event.getParameters()) - parameters.add(parameter); - parameterMap.put(event, parameters); - } - } - COM: <s> calculates the map of parameter for a given collection of events </s> - diff --git a/funcom_test/19518998.txt b/funcom_test/19518998.txt deleted file mode 100644 index 9161f5bda97b75b650ca4f4a625e072414fb0379..0000000000000000000000000000000000000000 --- a/funcom_test/19518998.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void calculateGuards (Collection<IEvent> events, HashMap<IEvent, Collection<IGuard>> guardMap) throws RodinDBException { - for (IEvent event : events) { - Collection<IGuard> guards = new ArrayList<IGuard>(); - for (IGuard guard : event.getGuards()) - guards.add(guard); - guardMap.put(event, guards); - } - } - COM: <s> calculates the map of guards for a given collection of events </s> - diff --git a/funcom_test/19519045.txt b/funcom_test/19519045.txt deleted file mode 100644 index 5d75616350f053ceebe621d6403acd49a39cd622..0000000000000000000000000000000000000000 --- a/funcom_test/19519045.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void calculateActions (Collection<IEvent> events, HashMap<IEvent, Collection<IAction>> actionMap) throws RodinDBException { - for (IEvent event : events) { - Collection<IAction> actions = new ArrayList<IAction>(); - for (IAction action : event.getActions()) - actions.add(action); - actionMap.put(event, actions); - } - } - COM: <s> calculates the map of actions for a given collection of events </s> - diff --git a/funcom_test/19519643.txt b/funcom_test/19519643.txt deleted file mode 100644 index ef5936496caaa00725d8b718b1f82b0031374d17..0000000000000000000000000000000000000000 --- a/funcom_test/19519643.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private IPred2 buildPredicate(IPred goal, IPred[] hypothesis, IFactory fact) { - IPred2 imp = fact.newImp2(fact.newNot(goal), BFalse.instance); - for (int i = hypothesis.length - 1; i > 0; i--) { - imp = fact.newImp2(hypothesis[i], imp); - } - return imp; - } - COM: <s> build the predicate hypothesis 1 </s> - diff --git a/funcom_test/19519654.txt b/funcom_test/19519654.txt deleted file mode 100644 index 484d8fe6aa525397956ebc78320c28b0f9fc3be7..0000000000000000000000000000000000000000 --- a/funcom_test/19519654.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean prooveImp(IPred2 r, IFactory fact, IHypothesis H) { - - for (BoundedVariable v : vars) { - v.setValue(fact.newSkolem(), this); - } - final IPred np = p.extract(fact, null); - for (BoundedVariable v : vars) { - v.unlock(this); - } - return np.prooveImp(r, fact, H); - } - COM: <s> hypothesis this r </s> - diff --git a/funcom_test/19519660.txt b/funcom_test/19519660.txt deleted file mode 100644 index 58fe0574428ff519f5528e0a633e6049be3f4f3c..0000000000000000000000000000000000000000 --- a/funcom_test/19519660.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean prooveImp(IPred2 r, IFactory fact, IHypothesis H) { - IPred2 r2 = r; - for (int i = preds.length - 1; i >= 1; i--) { - r2 = fact.newImp2(preds[i], r2); - } - return preds[0].prooveImp(r2, fact, H); - } - COM: <s> and2 this r </s> - diff --git a/funcom_test/19519710.txt b/funcom_test/19519710.txt deleted file mode 100644 index cb3f57600623d8d011ab6f75bb1b10fa45eceba5..0000000000000000000000000000000000000000 --- a/funcom_test/19519710.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean prooveImp(IPred2 r, IFactory fact, IHypothesis H) { - - final List<INorPPU> disj = new ArrayList<INorPPU>(); - disj.add(new NormalizedPPList(vars)); - p.normalizePPNeg(fact, disj, 0); - - // not p <=> pred(disj) - - return proove(r, fact, H, disj, 0, fact.newNormalizationOrigin(this)); - - } - COM: <s> all2 h this r </s> - diff --git a/funcom_test/19519714.txt b/funcom_test/19519714.txt deleted file mode 100644 index e39a27f408242d6c6fadc005aefcc52a4b80ce91..0000000000000000000000000000000000000000 --- a/funcom_test/19519714.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean prooveNotImp(IPred2 r, IFactory fact, IHypothesis H) { - - for (BoundedVariable v : vars) { - v.setValue(fact.newSkolem(), this); - } - final IPred extract = p.extract(fact, null); - for (final BoundedVariable v : vars) { - v.unlock(this); - } - return extract.prooveNotImp(r, fact, H); - } - COM: <s> all1 h this r </s> - diff --git a/funcom_test/19519727.txt b/funcom_test/19519727.txt deleted file mode 100644 index 8fd34f9d4e8fcc0587e6c2f5951895adbc9e9050..0000000000000000000000000000000000000000 --- a/funcom_test/19519727.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void normalizePPNeg(IFactory fact, List<INorPPU> disj, int curInd) { - for (int i = curInd; i < disj.size(); i++) { - final INorPPU l = disj.get(i); - for (BoundedVariable v : vars) { - l.addPossibleVariable(v); - } - } - p.normalizePPNeg(fact, disj, curInd); - - } - COM: <s> normalization of not </s> - diff --git a/funcom_test/19519824.txt b/funcom_test/19519824.txt deleted file mode 100644 index e066e71000d50dd657ae09ee9eff65f4f207c52f..0000000000000000000000000000000000000000 --- a/funcom_test/19519824.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void simplify(ISimple s, IFactory fact, IHypothesis H) { - for (int i = 0; i < elts.size() && !H.isFalse(); i++) { - if (!removed.get(i)) { - final INormalizedPredicate simplify = elts.get(i).simplify(s, - fact, H); - if (simplify != null) { - removed.set(i); - simplify.addToHyp(fact, H); - } - } - } - } - COM: <s> simplify each hypothesis of this set against the simple predicate </s> - diff --git a/funcom_test/19519833.txt b/funcom_test/19519833.txt deleted file mode 100644 index 118ab55010d38f68887735a735f8d667b753b3da..0000000000000000000000000000000000000000 --- a/funcom_test/19519833.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void normalize(IFactory fact, List<INormalizedList> disj, int curInd) { - - substituteVariables(fact); - - final ArrayList<INormalizedList> tmp = removeForClone(disj, curInd); - final int tmpSize = tmp.size(); - for (final INormalizedPPTerme p : eltsD) { - addNewList(disj, tmp); - p.normalizeNeg(fact, disj, disj.size() - tmpSize); - } - for (final BoundedVariable v : ownVariable) { - v.unlock(this); - } - - } - COM: <s> normalization of a universal when contained directly in an other </s> - diff --git a/funcom_test/19519980.txt b/funcom_test/19519980.txt deleted file mode 100644 index d0d9e717cdbea480bde0e4973184fc99ba9e26c6..0000000000000000000000000000000000000000 --- a/funcom_test/19519980.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean derivedFromBoolean(Type type, FormulaFactory ff) { - if (type.equals(ff.makeBooleanType())) - return true; - final Type baseType = type.getBaseType(); - if (baseType != null) - return derivedFromBoolean(baseType, ff); - if (type instanceof ProductType) { - final ProductType productType = (ProductType) type; - return derivedFromBoolean(productType.getLeft(), ff) - && derivedFromBoolean(productType.getRight(), ff); - } - return false; - } - COM: <s> returns code true code if the given type is composed from boolean </s> - diff --git a/funcom_test/19520701.txt b/funcom_test/19520701.txt deleted file mode 100644 index 609cdb7863958296a6574a1ea302ebc8c509a18f..0000000000000000000000000000000000000000 --- a/funcom_test/19520701.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void initialise() { - IEvent evt = (IEvent) this.getElement(); - try { - this.setRenamingString(evt.getLabel()); - } catch (RodinDBException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - try { - IParameter[] pars = evt.getParameters(); - for (IParameter par : pars) { - ParameterRenaming renaming = new ParameterRenaming(this, par); - this.addChild(renaming); - } - } catch (RodinDBException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - COM: <s> utility method for initialising the renaming </s> - diff --git a/funcom_test/19520739.txt b/funcom_test/19520739.txt deleted file mode 100644 index 7d0ba08afc1b7ada8478f1ccb3a15d697db67c03..0000000000000000000000000000000000000000 --- a/funcom_test/19520739.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void updateIndex(IWorkbenchPart part){ - cancelled = false; - teamRunnable = new UpdateRodinIndexer(part); - - try { - teamRunnable.run(); - } catch (InvocationTargetException e) { - RefactoryManager.log("Exception "+e.getMessage()+" occurred when waiting for the Indexer to update."); - } catch (InterruptedException e) { - RefactoryManager.log("InterruptedException "+e.getMessage()+" occurred when waiting for the Indexer to update."); - } - - showBusy(); - } - COM: <s> waits until the rodin indexer is updated </s> - diff --git a/funcom_test/19520834.txt b/funcom_test/19520834.txt deleted file mode 100644 index e1b623eb9f9f617be759d19cfae8a49d3785c9c5..0000000000000000000000000000000000000000 --- a/funcom_test/19520834.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected Object getExecutableExtension() { - if (instance == null) { - try { - instance = configElement.createExecutableExtension("class"); - } catch (InvalidRegistryObjectException iroe) { - // The registry has changed since creation of this tool - // description - // TODO implement dynamic registry update recovery - } catch (CoreException e) { - RefactoryManager.log(e, "when loading executable extension " + className); - } - } - return instance; - } - COM: <s> returns an instance of this executable extension </s> - diff --git a/funcom_test/19521013.txt b/funcom_test/19521013.txt deleted file mode 100644 index 364eef61fef7988f2b8ee773890de24634c2a623..0000000000000000000000000000000000000000 --- a/funcom_test/19521013.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void testInvariant(String message, IInvariant inv, String expected) { - try { - assertEquals(message + ": Incorrect invariant", expected, inv - .getLabel() - + ":" + inv.getPredicateString() + ":" + inv.isTheorem()); - } catch (RodinDBException e) { - e.printStackTrace(); - fail("There should be no exception"); - return; - } - } - COM: <s> utility method for testing an invariant </s> - diff --git a/funcom_test/19521034.txt b/funcom_test/19521034.txt deleted file mode 100644 index 32eab7179b79d05fec455224f605eadddc516fd4..0000000000000000000000000000000000000000 --- a/funcom_test/19521034.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void testEvent(String message, IEvent evt, String expected) { - try { - assertNotNull(message + ": The event must not be null", evt); - assertEquals(message + ": Incorrect event", expected, evt - .getLabel() - + ":" + evt.getConvergence() + ":" + evt.isExtended()); - } catch (RodinDBException e) { - e.printStackTrace(); - fail("There should be no exception"); - return; - } - } - COM: <s> utility method for testing an event </s> - diff --git a/funcom_test/19521129.txt b/funcom_test/19521129.txt deleted file mode 100644 index f7316157d680c0b8d586c60692d4c2c92308decc..0000000000000000000000000000000000000000 --- a/funcom_test/19521129.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void testGuard(String message, IGuard grd, String expected) { - try { - assertEquals(message + ": Incorrect guard", expected, grd - .getLabel() - + ":" + grd.getPredicateString() + ":" + grd.isTheorem()); - } catch (RodinDBException e) { - e.printStackTrace(); - fail("There should be no exception"); - return; - } - } - COM: <s> utility method for testing a guard </s> - diff --git a/funcom_test/19521139.txt b/funcom_test/19521139.txt deleted file mode 100644 index 44285882ded20ddb9fb2c679f23b595c0fce2d96..0000000000000000000000000000000000000000 --- a/funcom_test/19521139.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testFail01_wrongTypeIDs() throws Exception { - - int j = 0; - - for (int i=0; i<faultyElements.length; i++) { - - try { - @SuppressWarnings("unused") - Refactory r = new Refactory(faultyElements[i]); - } catch (Exception e) { - j++; - continue; - } - fail("faulty element type path accepted"); - } - assertEquals("test aborted too early", faultyElements.length, j); - } - COM: <s> check that evidently wrong type paths are rejected </s> - diff --git a/funcom_test/19521449.txt b/funcom_test/19521449.txt deleted file mode 100644 index 1094dc26aea824a47b6a72239151c7372538c62d..0000000000000000000000000000000000000000 --- a/funcom_test/19521449.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Record getExtendedRecord() { - if (extendedRecord != null && extendedRecord.eIsProxy()) { - InternalEObject oldExtendedRecord = (InternalEObject) extendedRecord; - extendedRecord = (Record) eResolveProxy(oldExtendedRecord); - if (extendedRecord != oldExtendedRecord) { - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, RecordsPackage.RECORD_EXTENSION__EXTENDED_RECORD, oldExtendedRecord, - extendedRecord)); - } - } - } - return extendedRecord; - } - COM: <s> begin user doc returns the actual record if it exists i </s> - diff --git a/funcom_test/19629811.txt b/funcom_test/19629811.txt deleted file mode 100644 index 3a051bb30025aa85e2c59c1f8dbc4d9820d35ac3..0000000000000000000000000000000000000000 --- a/funcom_test/19629811.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - dataEClass = createEClass(DATA); - createEReference(dataEClass, DATA__SOURCE); - createEReference(dataEClass, DATA__DATA_LINK); - - dataSourceEClass = createEClass(DATA_SOURCE); - - canvasEClass = createEClass(CANVAS); - createEReference(canvasEClass, CANVAS__DATA_LINKS); - createEReference(canvasEClass, CANVAS__WORKFLOW); - } - COM: <s> creates the meta model objects for the package </s> - diff --git a/funcom_test/19630078.txt b/funcom_test/19630078.txt deleted file mode 100644 index 14e697f5116f8fe62f2f36a818ace912ae216228..0000000000000000000000000000000000000000 --- a/funcom_test/19630078.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Command getCommand(Request request) { - if (request instanceof ReconnectRequest) { - Object view = ((ReconnectRequest) request).getConnectionEditPart() - .getModel(); - if (view instanceof View) { - Integer id = new Integer(WorkflowVisualIDRegistry - .getVisualID((View) view)); - request.getExtendedData().put(VISUAL_ID_KEY, id); - } - } - return super.getCommand(request); - } - COM: <s> extended request data key to hold editpart visual id </s> - diff --git a/funcom_test/19630615.txt b/funcom_test/19630615.txt deleted file mode 100644 index 5ca379380bd50b1a9788fd04cb34e7465beb43b2..0000000000000000000000000000000000000000 --- a/funcom_test/19630615.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addComponentDefinitionIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComponentDefinitionReference_componentDefinitionId_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComponentDefinitionReference_componentDefinitionId_feature", "_UI_ComponentDefinitionReference_type"), - WorkflowPackage.Literals.COMPONENT_DEFINITION_REFERENCE__COMPONENT_DEFINITION_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the component definition id feature </s> - diff --git a/funcom_test/19630624.txt b/funcom_test/19630624.txt deleted file mode 100644 index 72668c1e755f805c8ab47eedccefd7a1bd341e50..0000000000000000000000000000000000000000 --- a/funcom_test/19630624.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDiscoveryUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComponentDefinitionReference_discoveryUrl_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComponentDefinitionReference_discoveryUrl_feature", "_UI_ComponentDefinitionReference_type"), - WorkflowPackage.Literals.COMPONENT_DEFINITION_REFERENCE__DISCOVERY_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the discovery url feature </s> - diff --git a/funcom_test/19630627.txt b/funcom_test/19630627.txt deleted file mode 100644 index b1ff3bae5e48fa2781a3476b4b671a69777bee6d..0000000000000000000000000000000000000000 --- a/funcom_test/19630627.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addComponentDefinitionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Workflow_componentDefinition_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Workflow_componentDefinition_feature", "_UI_Workflow_type"), - WorkflowPackage.Literals.WORKFLOW__COMPONENT_DEFINITION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the component definition feature </s> - diff --git a/funcom_test/19630638.txt b/funcom_test/19630638.txt deleted file mode 100644 index 3bb4c580e41f4bbcdbc6fcf19ade578960531869..0000000000000000000000000000000000000000 --- a/funcom_test/19630638.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFamilyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComponentInstance_family_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComponentInstance_family_feature", "_UI_ComponentInstance_type"), - WorkflowPackage.Literals.COMPONENT_INSTANCE__FAMILY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the family feature </s> - diff --git a/funcom_test/19630654.txt b/funcom_test/19630654.txt deleted file mode 100644 index b143c238dc08cadd37c40b10df6e533d6844ab63..0000000000000000000000000000000000000000 --- a/funcom_test/19630654.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addActivityTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComponentInstance_activityType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComponentInstance_activityType_feature", "_UI_ComponentInstance_type"), - WorkflowPackage.Literals.COMPONENT_INSTANCE__ACTIVITY_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the activity type feature </s> - diff --git a/funcom_test/19630714.txt b/funcom_test/19630714.txt deleted file mode 100644 index dcec9e485d21e142e6bd3201da2fdfc9fd01d7c7..0000000000000000000000000000000000000000 --- a/funcom_test/19630714.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void registerProblemWithResultType(int itemType) { - if (isValidResultType(itemType)) { - if (itemType == Resource.ALL_RESOURCE_TYPES) { - this.resultTypesWithProblems.addAll(Resource.ALL_SUPPORTED_RESOURCE_TYPES); - } - else { - this.resultTypesWithProblems.add(itemType); - } - } - } - COM: <s> used to register some sort of problem with a particular result type </s> - diff --git a/funcom_test/19632232.txt b/funcom_test/19632232.txt deleted file mode 100644 index 4ce9fdef73ff3221894d84259da7e80dfd68aad5..0000000000000000000000000000000000000000 --- a/funcom_test/19632232.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFieldTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationPropertyLiteral_fieldType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationPropertyLiteral_fieldType_feature", "_UI_ConfigurationPropertyLiteral_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY_LITERAL__FIELD_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the field type feature </s> - diff --git a/funcom_test/19632234.txt b/funcom_test/19632234.txt deleted file mode 100644 index 6c9b2ecf10045bc1ec1cd1ac1b2f87580fbc9798..0000000000000000000000000000000000000000 --- a/funcom_test/19632234.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationPropertyLiteralOption_label_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationPropertyLiteralOption_label_feature", "_UI_ConfigurationPropertyLiteralOption_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY_LITERAL_OPTION__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the label feature </s> - diff --git a/funcom_test/19632244.txt b/funcom_test/19632244.txt deleted file mode 100644 index 59857b0de478fac90cf3e974116cdeccfa88c5d0..0000000000000000000000000000000000000000 --- a/funcom_test/19632244.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDataTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationPropertyLiteral_dataType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationPropertyLiteral_dataType_feature", "_UI_ConfigurationPropertyLiteral_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY_LITERAL__DATA_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the data type feature </s> - diff --git a/funcom_test/19632245.txt b/funcom_test/19632245.txt deleted file mode 100644 index 349ce62fd335bc3560139be25c9f4591100df351..0000000000000000000000000000000000000000 --- a/funcom_test/19632245.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationPropertyLiteralOption_value_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationPropertyLiteralOption_value_feature", "_UI_ConfigurationPropertyLiteralOption_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY_LITERAL_OPTION__VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the value feature </s> - diff --git a/funcom_test/19632303.txt b/funcom_test/19632303.txt deleted file mode 100644 index d85f83252cfef2f4e04f4e40b1e9e53848ff1c6d..0000000000000000000000000000000000000000 --- a/funcom_test/19632303.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUriPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationPropertyReference_uri_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationPropertyReference_uri_feature", "_UI_ConfigurationPropertyReference_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY_REFERENCE__URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the uri feature </s> - diff --git a/funcom_test/19632316.txt b/funcom_test/19632316.txt deleted file mode 100644 index 6608d35d300932492fff0992ed8d11e5e71f30be..0000000000000000000000000000000000000000 --- a/funcom_test/19632316.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOriginalComponentDefinitionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Component_originalComponentDefinition_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Component_originalComponentDefinition_feature", "_UI_Component_type"), - CanvasPackage.Literals.COMPONENT__ORIGINAL_COMPONENT_DEFINITION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the original component definition feature </s> - diff --git a/funcom_test/19632326.txt b/funcom_test/19632326.txt deleted file mode 100644 index 0330e39ae809471529e3a7892b6dff5cba07a37c..0000000000000000000000000000000000000000 --- a/funcom_test/19632326.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPredicatePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationProperty_predicate_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationProperty_predicate_feature", "_UI_ConfigurationProperty_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY__PREDICATE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the predicate feature </s> - diff --git a/funcom_test/19632343.txt b/funcom_test/19632343.txt deleted file mode 100644 index a3c8dddab3a559bb47b8542d86cc53edbfca67e5..0000000000000000000000000000000000000000 --- a/funcom_test/19632343.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDesiredDepthPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IterationStrategyPortNode_desiredDepth_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IterationStrategyPortNode_desiredDepth_feature", "_UI_IterationStrategyPortNode_type"), - CanvasPackage.Literals.ITERATION_STRATEGY_PORT_NODE__DESIRED_DEPTH, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the desired depth feature </s> - diff --git a/funcom_test/19632347.txt b/funcom_test/19632347.txt deleted file mode 100644 index 50ea885678822a0a6045754c504d2798c156535e..0000000000000000000000000000000000000000 --- a/funcom_test/19632347.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IterationStrategyPortNode_port_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IterationStrategyPortNode_port_feature", "_UI_IterationStrategyPortNode_type"), - CanvasPackage.Literals.ITERATION_STRATEGY_PORT_NODE__PORT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the port feature </s> - diff --git a/funcom_test/19632373.txt b/funcom_test/19632373.txt deleted file mode 100644 index 0e519fe303cc1faf5c1d2b5ea56191aeb1d0032b..0000000000000000000000000000000000000000 --- a/funcom_test/19632373.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRequiredPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationProperty_required_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationProperty_required_feature", "_UI_ConfigurationProperty_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY__REQUIRED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the required feature </s> - diff --git a/funcom_test/19632384.txt b/funcom_test/19632384.txt deleted file mode 100644 index b556b04e992890c926babee6ad263525e5a8679a..0000000000000000000000000000000000000000 --- a/funcom_test/19632384.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFixedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationProperty_fixed_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationProperty_fixed_feature", "_UI_ConfigurationProperty_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY__FIXED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the fixed feature </s> - diff --git a/funcom_test/19632385.txt b/funcom_test/19632385.txt deleted file mode 100644 index afe066f6e90473021bb8ac4f88312dce12294eb3..0000000000000000000000000000000000000000 --- a/funcom_test/19632385.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGranularDepthPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ProcessorOutput_granularDepth_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ProcessorOutput_granularDepth_feature", "_UI_ProcessorOutput_type"), - CanvasPackage.Literals.PROCESSOR_OUTPUT__GRANULAR_DEPTH, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the granular depth feature </s> - diff --git a/funcom_test/19632389.txt b/funcom_test/19632389.txt deleted file mode 100644 index 8f1f7f5adbe10e1fa6d07953611ab944fd696c94..0000000000000000000000000000000000000000 --- a/funcom_test/19632389.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addHiddenPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationProperty_hidden_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationProperty_hidden_feature", "_UI_ConfigurationProperty_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY__HIDDEN, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the hidden feature </s> - diff --git a/funcom_test/19632392.txt b/funcom_test/19632392.txt deleted file mode 100644 index 4a79d7afb0532d7e685d54e0068eba8812c946db..0000000000000000000000000000000000000000 --- a/funcom_test/19632392.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConstrainedToOptionsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationProperty_constrainedToOptions_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationProperty_constrainedToOptions_feature", "_UI_ConfigurationProperty_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY__CONSTRAINED_TO_OPTIONS, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the constrained to options feature </s> - diff --git a/funcom_test/19632396.txt b/funcom_test/19632396.txt deleted file mode 100644 index 7238e3d316211f4027f1c3a80e6054707928d7bd..0000000000000000000000000000000000000000 --- a/funcom_test/19632396.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addExamplesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConfigurationProperty_examples_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConfigurationProperty_examples_feature", "_UI_ConfigurationProperty_type"), - CanvasPackage.Literals.CONFIGURATION_PROPERTY__EXAMPLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the examples feature </s> - diff --git a/funcom_test/19633149.txt b/funcom_test/19633149.txt deleted file mode 100644 index a71b3460de6c1916cca1f80e6e9bf4d56e553698..0000000000000000000000000000000000000000 --- a/funcom_test/19633149.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equals(Object other) { - // could only be equal to another Tag object, not anything else - if (!(other instanceof Tag)) - return (false); - - // 'other' object is a Tag; equality is based on the data stored - // in the current and 'other' Tag instances - Tag otherTag = (Tag) other; - return (this.count == otherTag.count && this.tagName - .equals(otherTag.tagName)); - } - COM: <s> this makes sure that things like instance of and remove in list </s> - diff --git a/funcom_test/19633306.txt b/funcom_test/19633306.txt deleted file mode 100644 index ff3c2ddeb0ae3b6268de9689fbf3579d93e32fb7..0000000000000000000000000000000000000000 --- a/funcom_test/19633306.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean isDownloadAllowed() { - int iAccessType = 0; - - switch (this.itemType) { - case Resource.WORKFLOW: - iAccessType = ((Workflow) this).getAccessType(); - break; - case Resource.FILE: - iAccessType = ((File) this).getAccessType(); - break; - case Resource.PACK: - iAccessType = ((Pack) this).getAccessType(); - break; - default: - iAccessType = 0; - } - - return (iAccessType >= Resource.ACCESS_DOWNLOADING); - } - COM: <s> determines whether the current resource instance can be downloaded by the </s> - diff --git a/funcom_test/19633479.txt b/funcom_test/19633479.txt deleted file mode 100644 index f40619c267489fa93c2989301d320c5c2e71cbce..0000000000000000000000000000000000000000 --- a/funcom_test/19633479.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Document searchByTag(String strTag) { - Document doc = null; - - try { - String strUrlEncodedTag = MyExperimentClient.urlEncodeQuery(strTag); - doc = this.doMyExperimentGET( - BASE_URL + "/tagged.xml?tag=" + strUrlEncodedTag - + Util.composeAPIQueryElements(null)) - .getResponseBody(); - } catch (Exception e) { - logger.error("ERROR: Failed to fetch tagged items from myExperiment. Query tag was '" - + strTag + "'\n" + e); - } - - return (doc); - } - COM: <s> queries my experiment api for all items that are tagged with particular </s> - diff --git a/funcom_test/19633521.txt b/funcom_test/19633521.txt deleted file mode 100644 index 27dc49f439d368209d14696280584c8b64caca66..0000000000000000000000000000000000000000 --- a/funcom_test/19633521.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void convertTagListIntoTagCloudData(List<Tag> tags) { - try { - Document doc = null; - - for (Tag t : tags) { - doc = this.getResource(Resource.TAG, t.getURI(), - Resource.REQUEST_DEFAULT_FROM_API); - Element rootElement = doc.getRootElement(); - t.setCount(Integer.parseInt(rootElement.getChild("count") - .getText())); - } - } catch (Exception e) { - logger.error("Failed while getting tag application counts when turning tag list into tag cloud data"); - } - } - COM: <s> converts a tag list into tag cloud data by fetching tag application count </s> - diff --git a/funcom_test/19661977.txt b/funcom_test/19661977.txt deleted file mode 100644 index 2e91a6b7624e16a4ac448acb53f51a644bf34acd..0000000000000000000000000000000000000000 --- a/funcom_test/19661977.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getKey() { - - // get the current time in millis. - //String key = "" + System.currentTimeMillis() + "!" + Long.toHexString(random.nextInt()); - String key = "" + Long.toHexString(random.nextLong()); - - // appending to hexadecimal representation of a random number will give: - // + Long.toHexString(random.nextInt()); - - return key; - } - COM: <s> this method returns a key that is unique to email a millisecond </s> - diff --git a/funcom_test/19662071.txt b/funcom_test/19662071.txt deleted file mode 100644 index c104d9dc20196b720dc014153fdef84753c59151..0000000000000000000000000000000000000000 --- a/funcom_test/19662071.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String getCurrentUserFullName(HttpServletRequest req) { - MyAlumniUserContainer sessionObj = null; - HttpSession session = req.getSession(false); - String fullName = null; - if (session != null) { - sessionObj = (MyAlumniUserContainer) session - .getAttribute(BaseConstants.USER_CONTAINER); - fullName = sessionObj.getToken().getFirstName() + " " - + sessionObj.getToken().getLastName(); - } - return fullName; - } - COM: <s> retrieve the full value of the user that is currently logged in </s> - diff --git a/funcom_test/19682806.txt b/funcom_test/19682806.txt deleted file mode 100644 index 0b01215b7b1027ad868abade426a5fef02a4b0d0..0000000000000000000000000000000000000000 --- a/funcom_test/19682806.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void initRegisters() { - Processor processor = Machine.processor(); - - // by default, everything's 0 - for (int i = 0; i < Processor.numUserRegisters; i++) - processor.writeRegister(i, 0); - - // initialize PC and SP according - processor.writeRegister(Processor.regPC, savedPC); - processor.writeRegister(Processor.regSP, savedSP); - - // initialize the first two argument registers to argc and argv - processor.writeRegister(Processor.regA0, argc); - processor.writeRegister(Processor.regA1, argv); - } - COM: <s> initialize the processors registers in preparation for running the </s> - diff --git a/funcom_test/19682824.txt b/funcom_test/19682824.txt deleted file mode 100644 index 38fafe270c9ab6f6941b315f9ffab7fc638c5728..0000000000000000000000000000000000000000 --- a/funcom_test/19682824.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private int handleHalt() { - //need to test that this is the root process - if(processID == 0){ - Machine.halt(); - }else{ - //System.err.println("non-root process trying to call halt"); - return -1; //This is not the root process so ignore this one - } - - Lib.assertNotReached("Machine.halt() did not halt machine!"); - return 0; - } - COM: <s> handle the halt system call </s> - diff --git a/funcom_test/19682971.txt b/funcom_test/19682971.txt deleted file mode 100644 index 431680479260cd81ad2759d399991e3a07d82b1a..0000000000000000000000000000000000000000 --- a/funcom_test/19682971.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void sleep() { - Lib.assertTrue(conditionLock.isHeldByCurrentThread()); - boolean prevStatus = Machine.interrupt().disable(); - - waitQueue.waitForAccess(KThread.currentThread()); // make the current - // thread accessible - // to a call to - // wake() - - conditionLock.release(); // allow wake to be called - KThread.sleep(); - conditionLock.acquire(); // continue from where we were - - Machine.interrupt().restore(prevStatus); - } - COM: <s> atomically release the associated lock and go to sleep on this condition </s> - diff --git a/funcom_test/19683033.txt b/funcom_test/19683033.txt deleted file mode 100644 index 4da7ba2e21a93a0b6975d25adca133915df7c7cd..0000000000000000000000000000000000000000 --- a/funcom_test/19683033.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void selfTest() { - super.selfTest(); - - KThread serverThread = new KThread(new Runnable() { - public void run() { - pingServer(); - } - }); - - serverThread.fork(); - - System.out.println("Press any key to start the network test..."); - console.readByte(true); - - int local = Machine.networkLink().getLinkAddress(); - - // ping this machine first - ping(local); - - // if we're 0 or 1, ping the opposite - if (local <= 1) - ping(1 - local); - } - COM: <s> test the network </s> - diff --git a/funcom_test/19762740.txt b/funcom_test/19762740.txt deleted file mode 100644 index f535941bbb1bd6d48788454a522c19e9c11720a9..0000000000000000000000000000000000000000 --- a/funcom_test/19762740.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String listToString(List<String> list) { - String string = ""; - // use comma to dilemma every element - for (String curString : list) { - string = string + curString + ", "; - } - string = string.substring(0, string.lastIndexOf(", ")); - return string; - } - COM: <s> converts a list of string to a string with commas </s> - diff --git a/funcom_test/19762742.txt b/funcom_test/19762742.txt deleted file mode 100644 index 2a426afe0c2e177e73f324dce16479cb163268f5..0000000000000000000000000000000000000000 --- a/funcom_test/19762742.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String bigIntegerListToString(List<BigInteger> list) { - String string = ""; - // use comma to dilemma every element - for (BigInteger curInteger : list) { - String curString = "" + curInteger.intValue(); - string = string + curString + ", "; - } - string = string.substring(0, string.lastIndexOf(", ")); - return string; - } - COM: <s> converts a list of big integer to a string with commas </s> - diff --git a/funcom_test/19802878.txt b/funcom_test/19802878.txt deleted file mode 100644 index a79c4f3434186fd4f293b27d2ed8ece55bcdeb8d..0000000000000000000000000000000000000000 --- a/funcom_test/19802878.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String createListString(List<String> listElements) { - int listSize = listElements.size(); - int listCount = 1; - StringBuffer listString = new StringBuffer(); - for (String element : listElements) { - if (listCount < listSize) { - element += ", "; - } - listString.append(element); - listCount++; - } - - return listString.toString(); - } - COM: <s> generates a string representation of a list </s> - diff --git a/funcom_test/19802879.txt b/funcom_test/19802879.txt deleted file mode 100644 index 6be1db7c1d958055371f24ed2cfaa24ff3e889a8..0000000000000000000000000000000000000000 --- a/funcom_test/19802879.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public JPanel createJPanel(JTable table) { - table.setPreferredScrollableViewportSize(new Dimension(1000, 40)); - table.setFillsViewportHeight(true); - JScrollPane scrollPane = new JScrollPane(table); - JPanel viewTable = new JPanel(new GridLayout(1, 0)); - viewTable.add(scrollPane); - - return viewTable; - } - COM: <s> generates the panel for the given table </s> - diff --git a/funcom_test/19802937.txt b/funcom_test/19802937.txt deleted file mode 100644 index 617d4470f5fcb0cfcc69a94f20db7441f1bbce94..0000000000000000000000000000000000000000 --- a/funcom_test/19802937.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean checkValidLink(String url, String id) { - /* - * try { WebConversation wc = new WebConversation(); wc.getResponse(url); } catch (Exception - * error) { return false; } - */ - - // map the URL to the ID - uniqueIdsAndUrls.put(id, url); - - return true; - } - COM: <s> checks if the given url string is a valid web page </s> - diff --git a/funcom_test/19808051.txt b/funcom_test/19808051.txt deleted file mode 100644 index d588268c3498ba9f8e48f76bffa1d60065555ba4..0000000000000000000000000000000000000000 --- a/funcom_test/19808051.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Object execute(String methodName, Object[] params) throws MsfException{ - MsfguiLog.defaultLog.logMethodCall(methodName, params); - Object[] paramsNew = new Object[params.length+1]; - paramsNew[0] = rpcToken; - System.arraycopy(params, 0, paramsNew, 1, params.length); - Object result = cacheExecute(methodName, paramsNew); - MsfguiLog.defaultLog.logMethodReturn(methodName, params, result); - return result; - } - COM: <s> adds token runs command and notifies logger on call and return </s> - diff --git a/funcom_test/19808205.txt b/funcom_test/19808205.txt deleted file mode 100644 index cf0e4477347ec0f2b4c4e9ea58fd2ea6c149e185..0000000000000000000000000000000000000000 --- a/funcom_test/19808205.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void logSession(Map session){ - if(sessions.get(session.get("id")) != null) - return; - sessions.put(session.get("id"), session); - activityLog.add(now() + " Session "+session.get("id")+" to "+session.get("tunnel_peer")+" opened."); - } - COM: <s> ensure that a session is recorded in the sessions map </s> - diff --git a/funcom_test/19808209.txt b/funcom_test/19808209.txt deleted file mode 100644 index 3f3bccf988db34058c5beb86b4f80866ade2a40c..0000000000000000000000000000000000000000 --- a/funcom_test/19808209.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void checkSessions(Map sessionsActive){ - for(Object o : sessions.keySet()){ - Map session = (Map)sessions.get(o); - //mark as inactive if we haven't already done so, and it is inactive - if(session.get("inactive") == null && sessionsActive.get(o) == null){ - session.put("inactive", o); - activityLog.add(now() + " Session "+o+" closed."); - } - } - } - COM: <s> see if any sessions have been closed </s> - diff --git a/funcom_test/19808220.txt b/funcom_test/19808220.txt deleted file mode 100644 index d93bc6436894b16b72a87943e3b86bf4a8eca584..0000000000000000000000000000000000000000 --- a/funcom_test/19808220.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void valueChanged(TreeSelectionEvent e) { - DefaultMutableTreeNode node = (DefaultMutableTreeNode)payloadTree.getLastSelectedPathComponent(); - if (node == null || !node.isLeaf()) - return; - payload = node.getUserObject().toString(); - while(node.getParent() != node.getRoot()){ - node = (DefaultMutableTreeNode)node.getParent(); - payload = node.getUserObject() + "/" + payload; - } - showOptions(); - } - COM: <s> sets selected payload to the official payload </s> - diff --git a/funcom_test/19808241.txt b/funcom_test/19808241.txt deleted file mode 100644 index d1880fb0e696f9e7570f9edc72b176182f9e2d5f..0000000000000000000000000000000000000000 --- a/funcom_test/19808241.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void delete() { - int indx = mainTable.getSelectedRow(); - if (indx == -1) - return; - String clickedFile = mainTable.getValueAt(indx, 0).toString(); - try { - if (files.get(clickedFile).equals("dir")) - executeCommand("rmdir \"" + clickedFile + "\"\n"); - else - executeCommand("rm \"" + clickedFile + "\"\n"); - } catch (MsfException ex) { - JOptionPane.showMessageDialog(null, ex); - } - getFiles(); - } - COM: <s> deletes selected file </s> - diff --git a/funcom_test/19809577.txt b/funcom_test/19809577.txt deleted file mode 100644 index 1a79a5b3e61558d1c6dda01fc3d02f848ace5606..0000000000000000000000000000000000000000 --- a/funcom_test/19809577.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public String toString() { - return "CompassClassMapping: mappedClass=[" + mappedClass + "], root=[" + root + "], poly=[" + poly + "], extend=[" + extend + "], propertyMappings=[" + propertyMappings + "]"; - } - COM: <s> provide a useful string </s> - diff --git a/funcom_test/19841020.txt b/funcom_test/19841020.txt deleted file mode 100644 index e8c1b6db3576fca96bd0f4ab6a3ae212d01a7040..0000000000000000000000000000000000000000 --- a/funcom_test/19841020.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public JSONArray findUsuarioByNome(JSONObject js) throws Exception { - try { - JSONArray ja = null; - - dao = getDaoInstance(); - dao.begin(); - - ja = ControleDePessoa.findUsuarioByNome(dao, js); - - - return ja; - } catch (Exception e) { - e.printStackTrace(); - throw e; - } finally { - dao.close(); - } - } - COM: <s> json id acao pesquisar tipo usuario nome data </s> - diff --git a/funcom_test/19841633.txt b/funcom_test/19841633.txt deleted file mode 100644 index 4d134cb8f99580f3c8f2d3393e2f959c4293c5f1..0000000000000000000000000000000000000000 --- a/funcom_test/19841633.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void testSaveAndFindAllIteration(Class<? extends PersistentEntity> clazz) - { - List<PersistentEntity> allBeforeSave = persistenceHelper.findAll(clazz); - int beforeSave = allBeforeSave.size(); - - createAndSaveObject(clazz); - - List<PersistentEntity> allAfterSave = persistenceHelper.findAll(clazz); - assertEquals("Number of " + clazz.getCanonicalName() + " instances in DB didn't increase after save", - beforeSave + 1, allAfterSave.size()); - } - COM: <s> performs test iteration for a certain class </s> - diff --git a/funcom_test/19847200.txt b/funcom_test/19847200.txt deleted file mode 100644 index ae2ec748f44e6cb1fb9ca61d321c6bb3aa2ad34f..0000000000000000000000000000000000000000 --- a/funcom_test/19847200.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void dispatchEvent(WiiEvent e) { - for (ListIterator<WiiRemoteListener> it = listeners.listIterator(); it.hasNext();) { - WiiRemoteListener listener = it.next(); - if (e instanceof WiiButtonEvent) - listener.wiiButtonChange((WiiButtonEvent)e); - if (e instanceof WiiIREvent) - listener.wiiIRInput((WiiIREvent)e); - if (e instanceof WiiAccelEvent) - listener.wiiAccelInput((WiiAccelEvent)e); - } - } - COM: <s> dispatches wiimote events to all the wiimote listeners </s> - diff --git a/funcom_test/19847287.txt b/funcom_test/19847287.txt deleted file mode 100644 index e9155ff6b991025b0c7689b405f3106e7bd1f196..0000000000000000000000000000000000000000 --- a/funcom_test/19847287.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: synchronized private void sendCommand(byte command, byte[] payload) { - try { - byte[] message = new byte[2+payload.length]; - message[0] = 82; - message[1] = command; - System.arraycopy(payload, 0, message, 2, payload.length); - - sendCon.send(message); - } - catch(IOException ioexception) { - System.out.println("error sending data " + ioexception); - } - } - COM: <s> sends a generic command to the wiimote </s> - diff --git a/funcom_test/19849220.txt b/funcom_test/19849220.txt deleted file mode 100644 index 1e4a265f989bd9f7cfa2be943b2ca560dae93267..0000000000000000000000000000000000000000 --- a/funcom_test/19849220.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public String getLex() { - if (NamedEntity_Type.featOkTst && ((NamedEntity_Type)jcasType).casFeat_lex == null) - jcasType.jcas.throwFeatMissing("lex", "net.lateeye.uima.types.NamedEntity"); - return jcasType.ll_cas.ll_getStringValue(addr, ((NamedEntity_Type)jcasType).casFeatCode_lex);} - COM: <s> getter for lex gets normalized word </s> - diff --git a/funcom_test/19865059.txt b/funcom_test/19865059.txt deleted file mode 100644 index 8fd41d97919b139a2b0878b5e7abfc72c5c778a2..0000000000000000000000000000000000000000 --- a/funcom_test/19865059.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - jContentPane = new JPanel(); - jContentPane.setLayout(new BorderLayout()); - jContentPane.add(getJPanel(), BorderLayout.NORTH); - jContentPane.add(getJPanel1(), BorderLayout.SOUTH); - jContentPane.add(getObserverPanel(), BorderLayout.EAST); - jContentPane.add(getJPanel2(), BorderLayout.CENTER); - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/19865061.txt b/funcom_test/19865061.txt deleted file mode 100644 index bebb622b62c4088e67f3dfbe3829309e34569326..0000000000000000000000000000000000000000 --- a/funcom_test/19865061.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JPanel getJPanel() { - if (jPanel == null) { - jPanel = new JPanel(); - jPanel.setLayout(new FlowLayout()); - jPanel.setName("ButtonBarPanel"); - jPanel.add(getStart(), null); - jPanel.add(getStep(), null); - jPanel.add(getStop(), null); - } - return jPanel; - } - COM: <s> this method initializes j panel </s> - diff --git a/funcom_test/19892039.txt b/funcom_test/19892039.txt deleted file mode 100644 index cb19ce871e6a871519ecfee739bd84db11f9a9f0..0000000000000000000000000000000000000000 --- a/funcom_test/19892039.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setPolicyUrl(String policyUrl) throws MessageException { - try - { - new URL(policyUrl); - } catch (MalformedURLException e) - { - throw new MessageException("Invalid policy_url: " + policyUrl); - } - - if (DEBUG) _log.debug("Setting SReg request policy_url: " + policyUrl); - - _parameters.set(new Parameter("policy_url", policyUrl)); - } - COM: <s> sets the optional policy url </s> - diff --git a/funcom_test/19892289.txt b/funcom_test/19892289.txt deleted file mode 100644 index a66ab589217eae6f5100e52928bda85d6522a8f2..0000000000000000000000000000000000000000 --- a/funcom_test/19892289.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public OAuthToken getRequestToken(String callbackURL) { - HashMap<String, String> map = new HashMap<String, String>(); - if (callbackURL != null) - map.put("oauth_callback", callbackURL); - String reqUrl = server.generateRequestUrl(OAUTH_REQUEST_TOKEN_URL, map); - String response = server.doHttpReq(reqUrl); - OAuthToken token = new OAuthToken(response); -//System.out.println("Request token = " + token); - return token; - } - COM: <s> returns the request token </s> - diff --git a/funcom_test/19892328.txt b/funcom_test/19892328.txt deleted file mode 100644 index 9ba2181a998ab8b2b6d51c0a79bff171cf7899ae..0000000000000000000000000000000000000000 --- a/funcom_test/19892328.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public JSONObject getUser() { - checkIfAuthorized(); - HashMap<String, String> map = new HashMap<String, String>(); - String reqUrl = server.generateRequestUrl(API_USERINFO_URL, map); - String response = server.doHttpReq(reqUrl); - - JSONParser parser = new JSONParser(); - Object obj = null; - try - { - obj = parser.parse(response); - } - catch (ParseException e) - { - StringWriter sw = new StringWriter(); - e.printStackTrace(new PrintWriter(sw)); - throw new MySpaceException(sw.toString(), MySpaceException.REMOTE_ERROR); - } - - return (JSONObject) obj; - } - COM: <s> returns the current user as an object </s> - diff --git a/funcom_test/19892329.txt b/funcom_test/19892329.txt deleted file mode 100644 index f0a9f80588be6e5d1c38beb9a1fda8183fd20619..0000000000000000000000000000000000000000 --- a/funcom_test/19892329.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public JSONObject getPerson(String fields) { - securityContext.checkIfAuthorized(); - HashMap<String, String> map = new HashMap<String, String>(); - map.put("format", "json"); - map.put("fields", "@all"); - if (fields != null) - map.put("fields", fields); - return (JSONObject) getUserData(API_USER_URL, map); - } - COM: <s> returns the person in the security context associated with this object </s> - diff --git a/funcom_test/19892408.txt b/funcom_test/19892408.txt deleted file mode 100644 index dedd9fd8d296e8a42220cbff7e552986c830c2f0..0000000000000000000000000000000000000000 --- a/funcom_test/19892408.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public Object clearGlobalAppData(String keys) { - String url = API_GLOBAL_APP_DATA_KEYS_XML_URL.replaceFirst("%s", keys); - return putUserData("DELETE", url, new HashMap<String, String>(), new HashMap<String, String>()); - } - COM: <s> clears the global app data with the given keys </s> - diff --git a/funcom_test/19892439.txt b/funcom_test/19892439.txt deleted file mode 100644 index 2e32ed8415622f75a8ff9e548a2c91f90446b307..0000000000000000000000000000000000000000 --- a/funcom_test/19892439.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Object putAppData(String userId, Map<String, String> appParams) { - securityContext.checkIfAuthorized(); - String url = API_APP_DATA_XML_URL.replaceFirst("%s", userId); - return putUserData(url, new HashMap<String, String>(), appParams); - } - COM: <s> sets the given key value pairs into a users app data </s> - diff --git a/funcom_test/19892480.txt b/funcom_test/19892480.txt deleted file mode 100644 index b537713eb53ef5d039cf7a9dc26570c873e54a17..0000000000000000000000000000000000000000 --- a/funcom_test/19892480.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public JSONArray getUserFriendsAppData(String userId) { - securityContext.checkIfAuthorized(); -// String url = API_APP_DATA_URL.replaceFirst("%s", userId); -// return getUserData(url, new HashMap<String, String>()); - return getUserFriendsAppData(userId, null); - } - COM: <s> this apparently has a bug on the server side </s> - diff --git a/funcom_test/19892687.txt b/funcom_test/19892687.txt deleted file mode 100644 index 986c53dadcfaa8a01afd229c10a1c76419b43814..0000000000000000000000000000000000000000 --- a/funcom_test/19892687.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public JSONObject getAlbum(String userId, int albumId) { - //securityContext.checkIfAuthorized(); - HashMap<String, String> map = new HashMap<String, String>(); - String url = API_ALBUM_URL.replaceFirst("%s", userId); - url = url.replaceFirst("%s", Integer.toString(albumId)); - return (JSONObject) getUserData(url, map); - } - COM: <s> returns an album of the given user </s> - diff --git a/funcom_test/19892744.txt b/funcom_test/19892744.txt deleted file mode 100644 index 1f9ac5b48712658881a4b41799b44f34fdb64547..0000000000000000000000000000000000000000 --- a/funcom_test/19892744.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public JSONObject getAlbumInfo(String userId, int albumId) { - //securityContext.checkIfAuthorized(); - HashMap<String, String> map = new HashMap<String, String>(); - String url = API_ALBUMINFO_URL.replaceFirst("%s", userId); - url = url.replaceFirst("%s", Integer.toString(albumId)); - return (JSONObject) getUserData(url, map); - } - COM: <s> returns an albums info for the given user </s> - diff --git a/funcom_test/19892850.txt b/funcom_test/19892850.txt deleted file mode 100644 index 04620478c91af07eba039c89605d15e024618271..0000000000000000000000000000000000000000 --- a/funcom_test/19892850.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public JSONObject getFriendship(String userId, String friendIds) { - //securityContext.checkIfAuthorized(); - String url = API_FRIENDSHIP_URL.replaceFirst("%s", userId).replaceFirst("%s", friendIds); - return (JSONObject) getUserData(url, new HashMap<String, String>()); - } - COM: <s> returns the friendship of the given user with other users </s> - diff --git a/funcom_test/19892924.txt b/funcom_test/19892924.txt deleted file mode 100644 index f4e2f939a6496c5a759ae9ff1f049e0a8461c8b6..0000000000000000000000000000000000000000 --- a/funcom_test/19892924.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public JSONObject getPhoto(String userId, int photoId) { - //securityContext.checkIfAuthorized(); - String url = API_PHOTO_URL.replaceFirst("%s", userId).replaceFirst("%s", String.valueOf(photoId)); - return (JSONObject) getUserData(url, new HashMap<String, String>()); - } - COM: <s> returns a photo of the given user </s> - diff --git a/funcom_test/19892963.txt b/funcom_test/19892963.txt deleted file mode 100644 index 5224bd235a55cd020d036ea5abd0299e04ddc141..0000000000000000000000000000000000000000 --- a/funcom_test/19892963.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getStatusHistory(String userId) { - String url = API_ACTIVITIES_URL.replaceFirst("%s", userId); - HashMap<String, String> map = new HashMap<String, String>(); - map.put("activityTypes", "StatusMoodUpdate"); - String reqUrl = server.generateRequestUrl(url, map); - String response = server.doHttpReq(reqUrl); - return response; - } - COM: <s> returns the status history of a given user </s> - diff --git a/funcom_test/19892988.txt b/funcom_test/19892988.txt deleted file mode 100644 index 47a4dd49fdeb2d256f38364b0862d08e230a789b..0000000000000000000000000000000000000000 --- a/funcom_test/19892988.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: @Deprecated public Object postStatus(String userId, String status) { - //securityContext.checkIfAuthorized(); - String url = API_PUT_STATUS_URL.replaceFirst("%s", userId); - HashMap<String, String> map = new HashMap<String, String>(); - HashMap<String, String> appParams = new HashMap<String, String>(); - appParams.put("status", status); - return putUserData(url, map, appParams); - } - COM: <s> posts a status update </s> - diff --git a/funcom_test/19893011.txt b/funcom_test/19893011.txt deleted file mode 100644 index 8192de40df511c80db6ed1a175b6a4fed002848a..0000000000000000000000000000000000000000 --- a/funcom_test/19893011.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: @Deprecated public Object postMood(String userId, int mood) { - //securityContext.checkIfAuthorized(); - String url = API_PUT_MOOD_URL.replaceFirst("%s", userId); - HashMap<String, String> map = new HashMap<String, String>(); - HashMap<String, String> appParams = new HashMap<String, String>(); - appParams.put("mood", "" + mood); - return putUserData(url, map, appParams); - } - COM: <s> posts a mood update </s> - diff --git a/funcom_test/19893115.txt b/funcom_test/19893115.txt deleted file mode 100644 index 5909b81e2534bcf8a4cc770e3a8a41d72153030a..0000000000000000000000000000000000000000 --- a/funcom_test/19893115.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object setStatusMood(String userId, String status, int mood) { - String url = API_PUT_MOOD_URL.replaceFirst("%s", userId); - HashMap<String, String> map = new HashMap<String, String>(); - HashMap<String, String> appParams = new HashMap<String, String>(); - appParams.put("status", status); - appParams.put("mood", "" + mood); - return putUserData(url, map, appParams); - } - COM: <s> posts a status and mood update at the same time </s> - diff --git a/funcom_test/19893201.txt b/funcom_test/19893201.txt deleted file mode 100644 index 214cae97c6c2661cb6231cbe5f69a233dbe212c9..0000000000000000000000000000000000000000 --- a/funcom_test/19893201.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public JSONObject getVideo(String userId, int videoId) { - //securityContext.checkIfAuthorized(); - String url = API_VIDEO_URL.replaceFirst("%s", userId).replaceFirst("%s", String.valueOf(videoId)); - return (JSONObject) getUserData(url, new HashMap<String, String>()); - } - COM: <s> returns a video of the given user </s> - diff --git a/funcom_test/1993674.txt b/funcom_test/1993674.txt deleted file mode 100644 index 2a6710ed21f0b82098696c780e1dc58e1972d109..0000000000000000000000000000000000000000 --- a/funcom_test/1993674.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Image getImageForField(final IField field) throws Exception { - String imageName = null; - - if (isPrivate(field.getFlags())) { - imageName = ISharedImages.IMG_FIELD_PRIVATE; - } else if (isProtected(field.getFlags())) { - imageName = ISharedImages.IMG_FIELD_PROTECTED; - } else if (isPublic(field.getFlags())) { - imageName = ISharedImages.IMG_FIELD_PUBLIC; - } - - return this.getImage(imageName); - } - COM: <s> gets the image for field </s> - diff --git a/funcom_test/1993726.txt b/funcom_test/1993726.txt deleted file mode 100644 index f7bf1d4fcb84ef2dd7c90a7bd8fb3046b10d609e..0000000000000000000000000000000000000000 --- a/funcom_test/1993726.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private String createFieldLabel(final IField field) throws JavaModelException { - // return field.getElementName() + "( " + Signature.getSignatureSimpleName(field.getTypeSignature()) + " : " + field.getTypeSignature() + ")"; - return field.getElementName() + "( " + Signature.getSignatureSimpleName(field.getTypeSignature()) + ")"; - } - COM: <s> creates the field label </s> - diff --git a/funcom_test/19979277.txt b/funcom_test/19979277.txt deleted file mode 100644 index f2704d8600bb9a0228b4f30a2113823c3930db37..0000000000000000000000000000000000000000 --- a/funcom_test/19979277.txt +++ /dev/null @@ -1,34 +0,0 @@ -TDAT: private boolean checklock(){ - try{ - final File f = new File("musicdaze.lock"); - if (f.exists()){ - f.delete(); - } - final FileChannel ch = new RandomAccessFile(f, "rw").getChannel(); - final FileLock lock = ch.tryLock(); - if (lock==null){ - ch.close(); - return false; - } - Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { - @Override - public void run() { - try { - lock.release(); - ch.close(); - f.delete(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - })); - return true; - } - catch (IOException io){ - io.printStackTrace(); - return false; - } - } - COM: <s> creates a lock for this application so only </s> - diff --git a/funcom_test/19979395.txt b/funcom_test/19979395.txt deleted file mode 100644 index 1e554744ffdae1122a340fffa3f4681955ea798f..0000000000000000000000000000000000000000 --- a/funcom_test/19979395.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean addJar(String path){ - File file = new File(path); - if (!file.exists()){ - return false; - } - try { - URL jar = new URL("jar:file:" + file.getAbsolutePath() + "!/"); - addURL(jar); - } - catch (MalformedURLException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return false; - } - return true; - } - COM: <s> adds the specified jar to the class loader given its path </s> - diff --git a/funcom_test/20026649.txt b/funcom_test/20026649.txt deleted file mode 100644 index 62811c0087cd7eaf4988e03c01019fdc5febc17a..0000000000000000000000000000000000000000 --- a/funcom_test/20026649.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setTorrentComment(String[] ids, String comment) throws XmlRpcFault, SecurityException, IllegalArgumentException, IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { - for (String id : ids) { - TorrentInfo info=new TorrentInfo(id); - Process process=ProcessPool.getProcess(info.getProcessId(), user); - process.setComment(info,comment); - } - } - COM: <s> sets the torrent comment </s> - diff --git a/funcom_test/20026654.txt b/funcom_test/20026654.txt deleted file mode 100644 index b06e9c93f1c95a444911c031eaa889085bfe8c5b..0000000000000000000000000000000000000000 --- a/funcom_test/20026654.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setTorrentTag(String[] ids, String tag) throws XmlRpcFault, SecurityException, IllegalArgumentException, IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { - for (String id : ids) { - TorrentInfo info=new TorrentInfo(id); - Process process=ProcessPool.getProcess(info.getProcessId(), user); - process.setTag(info,tag); - } - } - COM: <s> sets the torrent tag </s> - diff --git a/funcom_test/20067936.txt b/funcom_test/20067936.txt deleted file mode 100644 index 37a09eb7b5038cc7da6d3def9886cfaf35cd788e..0000000000000000000000000000000000000000 --- a/funcom_test/20067936.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int getDBID(String username) { - try { - DBConnection conn = DBConnectionService.getInstance().getDBConnection(); - java.sql.ResultSet results = conn - .executeQueryWithRS("SELECT `id` FROM `users` WHERE `username` LIKE '" - + username + "'"); - if (results.next()) { - return results.getInt(1); - } - } catch (Exception e) { - e.printStackTrace(System.err); - } - return 0; - } - COM: <s> returns the users id if successful or 0 otherwise </s> - diff --git a/funcom_test/20067938.txt b/funcom_test/20067938.txt deleted file mode 100644 index a9501e2c215174f544f3ab309daddf5b9eff7e60..0000000000000000000000000000000000000000 --- a/funcom_test/20067938.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String correctCapsUsername(String username) { - try { - DBConnection conn = DBConnectionService.getInstance().getDBConnection(); - java.sql.ResultSet results = conn.executeQueryWithRS("SELECT `username` FROM `users` WHERE `username` LIKE '" + username + "'"); - if (results.next()) { - return results.getString(1); - } - } catch (Exception e) { - e.printStackTrace(System.err); - } - return null; - } - COM: <s> corrects capitalizations of username </s> - diff --git a/funcom_test/20075689.txt b/funcom_test/20075689.txt deleted file mode 100644 index 9383123950ce99bb2939d658c1a1b6f6c8533cc9..0000000000000000000000000000000000000000 --- a/funcom_test/20075689.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void saveTokenSecretInPrefs(Context context) { - SharedPreferences defaults = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); - Editor editor = defaults.edit(); - - if (mToken != null) { - editor.putString(PREF_TOKEN, mToken); - } else { - editor.remove(PREF_TOKEN); - } - - if (mTokenSecret != null) { - editor.putString(PREF_TOKEN_SECRET, mTokenSecret); - } else { - editor.remove(PREF_TOKEN_SECRET); - } - - editor.commit(); - } - COM: <s> saves access token and token secret in shared preferences </s> - diff --git a/funcom_test/20085518.txt b/funcom_test/20085518.txt deleted file mode 100644 index ff0224f47f7660ea27ec39727c1a5debca55a261..0000000000000000000000000000000000000000 --- a/funcom_test/20085518.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void doPoll() throws Exception { - - log.debug( "*** Within doPoll() *** " ); - - String[] addr = getSlaveHostsFromMaster(); - - doMarkOfflineRemovedHosts( addr ); - - for( int i = 0; i < addr.length; ++i ) { - - String address = addr[i]; - doPoll( address ); - - } - - //If a slave has been marked offline... just reconnect it. - reconnectOfflineSlaves(); - driver.rebalanceConnections( profile ); - - } - COM: <s> do the actual polling of all the hosts in our load balanced queue </s> - diff --git a/funcom_test/20085539.txt b/funcom_test/20085539.txt deleted file mode 100644 index ceafadbf5e848768239e5e2f8bd58b145321cb87..0000000000000000000000000000000000000000 --- a/funcom_test/20085539.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void sleepForConnection() { - - try { - - b2.start(); - - if ( log.isDebugEnabled() ) - log.debug( "Sleeping to re-establish connection to slave. Last host: " + status ); - - Thread.sleep( LBDriver.HOST_POLL_INTERVAL ); - - } catch ( Exception e ) { - log.error( e ); //won't happen in production I think. - } finally { - b2.complete(); - } - - } - COM: <s> sleep for host poll interval so that the a connection can come back </s> - diff --git a/funcom_test/20098263.txt b/funcom_test/20098263.txt deleted file mode 100644 index bd27ac0061831daaf05ac5b950a0cba5fdf48be9..0000000000000000000000000000000000000000 --- a/funcom_test/20098263.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void initialize() { - setCheckingModel(new DefaultTreeCheckingModel(this.treeModel)); - setCellRenderer(new DefaultCheckBoxTreeCellRenderer()); - addMouseListener(new NodeCheckListener()); - this.selectionModel.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); - setShowsRootHandles(true); - putClientProperty("JTree.lineStyle", "Angled");// for Metal L&F - } - COM: <s> convenience initialization method </s> - diff --git a/funcom_test/20107093.txt b/funcom_test/20107093.txt deleted file mode 100644 index d652b25685e040aa0ee5b51dd82c8e9e75283cf3..0000000000000000000000000000000000000000 --- a/funcom_test/20107093.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean equals(Object o) { - if (this == o) - return true; - - if (o == null || !o.getClass().equals(this.getClass()) - || this.getId() == null) - return false; - - return this.getId().equals(((BaseModelObject) o).getId()); - } - COM: <s> compares this object to the passed in one </s> - diff --git a/funcom_test/20107204.txt b/funcom_test/20107204.txt deleted file mode 100644 index ff8baac59c775dd7f0cf519568ef4fc3977a8eff..0000000000000000000000000000000000000000 --- a/funcom_test/20107204.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void createRoles() { - rService.createRole("User", "ROLE_USER"); - rService.createRole("Administrator", "ROLE_ADMINISTRATOR"); - rService.createRole("Supervisor", "ROLE_SUPERVISOR"); - rService.createRole("ROOT", "ROLE_ROOT"); - rService.createRole("Collector", "ROLE_COLLECTOR"); - } - COM: <s> checks that the roles needed for user administration </s> - diff --git a/funcom_test/20107538.txt b/funcom_test/20107538.txt deleted file mode 100644 index 5c519de5a3cef314b8496cb34d60297441e7d18d..0000000000000000000000000000000000000000 --- a/funcom_test/20107538.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void wake() { - //if current thread doesn't hold the lock, then abort - Lib.assertTrue(conditionLock.isHeldByCurrentThread()); - boolean status = Machine.interrupt().disable(); - KThread thread = waitQueue.nextThread(); - //wakes up thread - if (thread != null) { - thread.ready(); - } - Machine.interrupt().restore(status); - - } - COM: <s> wake up at most one thread sleeping on this condition variable </s> - diff --git a/funcom_test/20107542.txt b/funcom_test/20107542.txt deleted file mode 100644 index e09c87ea08aeeb1b3525a804da03a284d17930dc..0000000000000000000000000000000000000000 --- a/funcom_test/20107542.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void wakeAll() { - Lib.assertTrue(conditionLock.isHeldByCurrentThread()); - boolean status = Machine.interrupt().disable(); - //goes through the thread queue and wakes up all the threads - for(KThread thread = waitQueue.nextThread(); thread != null; thread = waitQueue.nextThread()){ - thread.ready(); - } - Machine.interrupt().restore(status); - } - COM: <s> wake up all threads sleeping on this condition variable </s> - diff --git a/funcom_test/20107600.txt b/funcom_test/20107600.txt deleted file mode 100644 index a2305eb34fe784c48fad458de7611686271ab170..0000000000000000000000000000000000000000 --- a/funcom_test/20107600.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public KThread nextThread() { - Lib.assertTrue(Machine.interrupt().disabled()); - if (waitQueue.isEmpty()){ - associatedThread=null; - return null; - } - associatedThread=waitQueue.peek(); - getThreadState(associatedThread).acquire(this); //for Q2 - return waitQueue.poll(); //return next thread - } - COM: <s> select the next thread in the thread queue </s> - diff --git a/funcom_test/20107608.txt b/funcom_test/20107608.txt deleted file mode 100644 index 1a01efc9c77a8c5e3d29489d668e95c9275a0236..0000000000000000000000000000000000000000 --- a/funcom_test/20107608.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void selfTest() { - System.out.println("\n*** Nachos Kernel Successfull Started ***\n"); - PriorityScheduler.selfTest(); -// KThread.simpleSelfTest(); -// KThread.selfTest(); -// Semaphore.selfTest(); -// Condition.selfTest(); -// Condition2.selfTest(); -// Alarm.selfTest(); -// Communicator.selfTest(); - PriorityScheduler.selfTest(); - } - COM: <s> test this kernel </s> - diff --git a/funcom_test/20138067.txt b/funcom_test/20138067.txt deleted file mode 100644 index 5aae966357a0ba7a2a8ccd1202c8c494297474d1..0000000000000000000000000000000000000000 --- a/funcom_test/20138067.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void itemStateChanged(ItemEvent e) { - if (e.getStateChange() == ItemEvent.DESELECTED) { - cm.disconnectBeans(this.meth,this.lBean); - } else if (e.getStateChange() == ItemEvent.SELECTED) { - cm.reconnectBeans(this.meth,this.lBean); - } - } - COM: <s> we listen to our box </s> - diff --git a/funcom_test/2025190.txt b/funcom_test/2025190.txt deleted file mode 100644 index 1d020bd5286c314c17a568c6370ab4a64de9d9da..0000000000000000000000000000000000000000 --- a/funcom_test/2025190.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Diff getDiff( java.util.Date pFrom, java.util.Date pTo ) { - if ( pFrom.after( pTo ) ) { - java.util.Date pTemp = pTo; - pTo = pFrom; - pFrom = pTemp; - log.debug("fromDate " + pFrom + " is after toDate " + pTo + ", inversing"); - } - return getDiff2(pFrom, pTo); - } - COM: <s> compute the difference between two dates in years months and days </s> - diff --git a/funcom_test/20265562.txt b/funcom_test/20265562.txt deleted file mode 100644 index 55af4b4f17c90cebef4763ec141c8b17352586ad..0000000000000000000000000000000000000000 --- a/funcom_test/20265562.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void stop() { - Log.d(LOG_TAG, String.format("stopping; ticker != null: %s", (ticker != null))); //$NON-NLS-1$ - if (ticker != null) { - ticker.purge(); - ticker.cancel(); - running = false; - } - } - COM: <s> stops notification of the current time </s> - diff --git a/funcom_test/20322268.txt b/funcom_test/20322268.txt deleted file mode 100644 index dfc8d40e8b6942fda2a21bec24cb8f39dd29934e..0000000000000000000000000000000000000000 --- a/funcom_test/20322268.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void fillStatement(PreparedStatement stamtement, Object[] params) throws SQLException { - if (params == null || params.length < 1) { - return; - } - for (int i = 0; i < params.length; i++) { - if (params[i] != null) { - stamtement.setObject(i + 1, params[i]); - } else { - stamtement.setNull(i + 1, Types.VARCHAR); - } - } - } - COM: <s> fill the code prepared statement code replacement parameters with the given objects </s> - diff --git a/funcom_test/2035078.txt b/funcom_test/2035078.txt deleted file mode 100644 index ae4f1314702714f853d8eb40103f8116b2ed3074..0000000000000000000000000000000000000000 --- a/funcom_test/2035078.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void printFileHeader(StringBuffer sb) { - Date date = new Date(); - sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"); - sb.append("<!--"); - sb.append("Auto generated at "); - sb.append(date.toString()); - sb.append(" by Visual Ant Editor"); - sb.append("-->\r\n"); - sb.append("<project "); - // print all the attributes of the project element - printAttributes(sb, proj); - sb.append(">\r\n"); - - } - COM: <s> this method print out the begin tag of the project element </s> - diff --git a/funcom_test/2035097.txt b/funcom_test/2035097.txt deleted file mode 100644 index 8cb38fae97b0a4d2008e0a7559be5f090728dbcb..0000000000000000000000000000000000000000 --- a/funcom_test/2035097.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void printProperties(StringBuffer sb) { - // Initializing the directed acyclic graph - MgaDAG dag = new MgaDAG(propEles, propConns); - List<DAGVertex> orderedPropList = dag.getOrderedList(); - for (DAGVertex prop : orderedPropList) { - if (prop instanceof MgaVertex) { - MgaVertex propModel = (MgaVertex) prop; - sb.append("<property "); - printAttributes(sb, propModel.getModel()); - sb.append("/>\r\n"); - } - } - } - COM: <s> this method print all code property code elements </s> - diff --git a/funcom_test/20365551.txt b/funcom_test/20365551.txt deleted file mode 100644 index a81092f5f287922541f5e2e0c3b5946e0f596557..0000000000000000000000000000000000000000 --- a/funcom_test/20365551.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Expression create() { - if ( components.isEmpty() ) { - throw new IllegalStateException( "expression is empty" ); - } - if ( dataStackSize != 1 ) { - throw new IllegalStateException( "expression is incomplete" ); - } - return new Expression( components.toArray( new ExpressionComponent[components.size()] ) ); - } - COM: <s> creates a new expression representing the sequence of operations in this builder </s> - diff --git a/funcom_test/20365638.txt b/funcom_test/20365638.txt deleted file mode 100644 index 20ececd114ef389819b622f529b3a4d510f23446..0000000000000000000000000000000000000000 --- a/funcom_test/20365638.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Complex calculate( CalculationContext context ) { - if ( context == null ) { - throw new IllegalArgumentException( "context is null" ); - } - Deque<Complex> stack = new ArrayDeque<Complex>( maxDataStackSize ); - for ( ExpressionComponent component : components ) { - component.calculate( stack, context ); - } - if ( stack.size() != 1 ) { - throw new AssertionError( stack ); - } - return stack.pop(); - } - COM: <s> calculates this expression and returns the result </s> - diff --git a/funcom_test/20365685.txt b/funcom_test/20365685.txt deleted file mode 100644 index cf6ca18f27df683c1e547d84924bbb3ae2259298..0000000000000000000000000000000000000000 --- a/funcom_test/20365685.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String toPostfixString() { - StringBuilder buffer = new StringBuilder(); - boolean separator = false; - for ( ExpressionComponent component : components ) { - if ( separator ) { - buffer.append( ' ' ); - } - buffer.append( component.getPostfixSymbol() ); - separator = true; - } - return buffer.toString(); - } - COM: <s> returns a string representation of this expression in the postfix form </s> - diff --git a/funcom_test/20377255.txt b/funcom_test/20377255.txt deleted file mode 100644 index e74dab3ecdab7c7283d2c436b0c468572d328bb3..0000000000000000000000000000000000000000 --- a/funcom_test/20377255.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void getBars() { - getBarsService.getBars(new AsyncCallback<HashMap<Integer, String>>() { - - public void onSuccess(HashMap<Integer, String> result) { - for (Integer barVal : result.keySet()) { - bar.addItem(result.get(barVal), Integer.toString(barVal)); - } - } - - public void onFailure(Throwable caught) { - caught.printStackTrace(); - bar.addItem("-no bars available-"); - } - }); - } - COM: <s> fills the bar select box with available bars </s> - diff --git a/funcom_test/20477560.txt b/funcom_test/20477560.txt deleted file mode 100644 index 2d8c05e785b019731bd1e89945bdc052817b1b05..0000000000000000000000000000000000000000 --- a/funcom_test/20477560.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setWord(String word) { - wordLabelL.setText("Word: (" + word.length() + " letters)"); - - String tempWord = ""; - for(int i=0; i < word.length(); i++) { - tempWord += word.charAt(i) + " "; - } - this.word = tempWord; - wordL.setText(tempWord); - } - COM: <s> sets the current view of the word </s> - diff --git a/funcom_test/20477609.txt b/funcom_test/20477609.txt deleted file mode 100644 index 8decd8c7337e32834c49dc77a2f17342a6d4cead..0000000000000000000000000000000000000000 --- a/funcom_test/20477609.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void sendStartRequest() { - if( isConnected() ) { - gui.statusBarInfo("Starting new game...", false); - try { - os.write("start game\r\n".getBytes()); - os.flush(); - } catch (IOException e) { - gui.statusBarInfo("Failed to send start game. IOException", true); - System.err.println("IOException during send \"start game\" to server"); - } - } - } - COM: <s> sends a start game request through the socket </s> - diff --git a/funcom_test/20477616.txt b/funcom_test/20477616.txt deleted file mode 100644 index 5e2cb7c857f2b32b05a93ba96e118df85f00ed99..0000000000000000000000000000000000000000 --- a/funcom_test/20477616.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void sendGuess(String guess) { - if( isConnected() ) { - gui.statusBarInfo("Querying...", false); - try { - os.write( (guess + "\r\n").getBytes() ); - os.flush(); - } catch (IOException e) { - gui.statusBarInfo("Failed to send guess. IOException", true); - System.err.println("IOException during send guess to server"); - } - } - } - COM: <s> sends a guess to the server </s> - diff --git a/funcom_test/20477624.txt b/funcom_test/20477624.txt deleted file mode 100644 index 6c07df33ac61482279d7659910e625381cffefe0..0000000000000000000000000000000000000000 --- a/funcom_test/20477624.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public String receiveAnswer() { - String line = null; - if( isConnected() ) { - try { - line = readLine(); - if(line == null) { - disconnect(); - gui.statusBarInfo("Connection lost (no data received)", true); - gui.connected(false); - } - else { - actOnAnswer(line); - } - } catch (IOException e) { - disconnect(); - gui.statusBarInfo("Connection lost (no data received). IOException", true); - gui.connected(false); - System.err.println("IOException during socket connection to server"); - } - } - return line; - } - COM: <s> blocks until an answer is received by the server </s> - diff --git a/funcom_test/20477852.txt b/funcom_test/20477852.txt deleted file mode 100644 index 25b9d39bf51500e1fbaf4d109b484af3715d16bb..0000000000000000000000000000000000000000 --- a/funcom_test/20477852.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void modifyShownWord(String guessLetter) { - - String newShownWord = ""; - char guessChar = guessLetter.charAt(0); - for(int i=0; i < word.length(); i++) { - if(word.charAt(i) == guessChar) { - newShownWord += guessChar; - } - else { - newShownWord += shownWord.charAt(i); - } - } - shownWord = newShownWord; - } - COM: <s> method for altering the dashed word uses </s> - diff --git a/funcom_test/20537348.txt b/funcom_test/20537348.txt deleted file mode 100644 index a17b1fb45ea146147733b5ea6944acea3e44e487..0000000000000000000000000000000000000000 --- a/funcom_test/20537348.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void onModuleLoad() { - // Find the slot for the calendar widget. - // - //RootPanel slot = RootPanel.get("ClassAvailibility"); - ClsClassAvailability classAvai = new ClsClassAvailability(); - //slot.add(classAvai); - RootPanel.get().add(classAvai); - } - COM: <s> this is the entry point method </s> - diff --git a/funcom_test/20561661.txt b/funcom_test/20561661.txt deleted file mode 100644 index 144944365a4b06d928973d0806ec8fb5eed76e51..0000000000000000000000000000000000000000 --- a/funcom_test/20561661.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String generateNonce() { - // Get the time of day and run MD5 over it. - Date date = new Date(); - long time = date.getTime(); - Random rand = new Random(); - long pad = rand.nextLong(); - String nonceString = (new Long(time)).toString() + - (new Long(pad)).toString(); - byte mdbytes[] = messageDigest.digest(nonceString.getBytes()); - // Convert the mdbytes array into a hex string. - return ProxyUtilities.toHexString(mdbytes); - } - COM: <s> generate the challenge string </s> - diff --git a/funcom_test/20561676.txt b/funcom_test/20561676.txt deleted file mode 100644 index 89789bceadd7ac1409eee088db7c6f13b410eb03..0000000000000000000000000000000000000000 --- a/funcom_test/20561676.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: protected int authorize(String uri, String method) { - - - if (method.equals("PUBLISH")) { - if (uri.equals(notifierURI)) - return Response.OK; - //Should check if the publish came from any - //of the registered contacts - - } else if (method.equals(Request.SUBSCRIBE)) { - //Check auth file - //check uri in authorization file - return Response.OK; - - } else { - return Response.FORBIDDEN; - - } - - return Response.FORBIDDEN; - } - COM: <s> should be a bit more sophisticated </s> - diff --git a/funcom_test/20561721.txt b/funcom_test/20561721.txt deleted file mode 100644 index 5d2b8d6d9b65aed26455cd403124c7307d10d6b7..0000000000000000000000000000000000000000 --- a/funcom_test/20561721.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setRlmiFile(File rlmi) { - - notifyBody = "--" + boundary +"\n" + - "Content-Transfer-Encoding: binary\n" + - "Content-ID: <" + mainCid + ">\n" + - "Content-Type: application/rlmi+xml\n" + - //parseRlmi(rlmi) + - "\n--" + boundary; - } - COM: <s> simply takes the resource list and adds attributes </s> - diff --git a/funcom_test/20563932.txt b/funcom_test/20563932.txt deleted file mode 100644 index 0e594133fe97c42879491c3023b027613e99ccdc..0000000000000000000000000000000000000000 --- a/funcom_test/20563932.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void testCounter(Counters counter) throws ParseException { - String compactEscapedString = counter.makeEscapedCompactString(); - - Counters recoveredCounter = - Counters.fromEscapedCompactString(compactEscapedString); - // Check for recovery from string - assertTrue("Recovered counter does not match on content", - counter.contentEquals(recoveredCounter)); - - } - COM: <s> test counter recovery </s> - diff --git a/funcom_test/20564366.txt b/funcom_test/20564366.txt deleted file mode 100644 index bdd3789c89624568282788de5cbb10c3e0d05948..0000000000000000000000000000000000000000 --- a/funcom_test/20564366.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void stopTaskTracker(int id) { - taskTrackerList.get(id).shutdown(); - - taskTrackerThreadList.get(id).interrupt(); - - try { - taskTrackerThreadList.get(id).join(); - // This will break the wait until idle loop - taskTrackerList.get(id).isDead = true; - } catch (InterruptedException ex) { - LOG.error("Problem waiting for task tracker to finish", ex); - } - } - COM: <s> kill the tasktracker </s> - diff --git a/funcom_test/20566870.txt b/funcom_test/20566870.txt deleted file mode 100644 index 40db8b5f62b0f5540656f05c440317eb682e6638..0000000000000000000000000000000000000000 --- a/funcom_test/20566870.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void addContext(String pathSpec, String dir, boolean isFiltered) { - HttpContext context = new HttpContext(); - context.setContextPath(pathSpec); - context.setResourceBase(dir); - context.addHandler(new ResourceHandler()); - webServer.addContext(context); - if (isFiltered) { - addFilterPathMapping(pathSpec); - } - } - COM: <s> add a context </s> - diff --git a/funcom_test/20566944.txt b/funcom_test/20566944.txt deleted file mode 100644 index 60108eff507812f67a4ce7b11f7fcd98932db844..0000000000000000000000000000000000000000 --- a/funcom_test/20566944.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void run(Context context) throws IOException, InterruptedException { - setup(context); - KEYIN key = context.nextKey(null); - while(key != null) { - reduce(key, context.getValues(), context); - key = context.nextKey(key); - } - cleanup(context); - } - COM: <s> advanced application writers can use the </s> - diff --git a/funcom_test/20566962.txt b/funcom_test/20566962.txt deleted file mode 100644 index c9ed3eb5e2b118e233559094840634335d4795cb..0000000000000000000000000000000000000000 --- a/funcom_test/20566962.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Path getWorkingDirectory() throws IOException { - String name = conf.get(WORKING_DIR_ATTR); - if (name != null) { - return new Path(name); - } else { - Path dir = FileSystem.get(conf).getWorkingDirectory(); - conf.set(WORKING_DIR_ATTR, dir.toString()); - return dir; - } - } - COM: <s> get the current working directory for the default file system </s> - diff --git a/funcom_test/20567250.txt b/funcom_test/20567250.txt deleted file mode 100644 index 8472e287276eecd16ef3846aa70e9863b3a4c5a7..0000000000000000000000000000000000000000 --- a/funcom_test/20567250.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void purgeMapEvents(int lastKnownIndex) { - // Note that the sync is first on fromEventId and then on allMapEvents - synchronized (fromEventId) { - synchronized (allMapEvents) { - int index = 0; - if (allMapEvents.size() > lastKnownIndex) { - fromEventId.set(lastKnownIndex); - allMapEvents = allMapEvents.subList(0, lastKnownIndex); - } - } - } - } - COM: <s> check if the number of events that are obtained are more than required </s> - diff --git a/funcom_test/20567686.txt b/funcom_test/20567686.txt deleted file mode 100644 index bbb49b131e8cdd6556f276a55bb04fc73160eab4..0000000000000000000000000000000000000000 --- a/funcom_test/20567686.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void jobHasFinished(boolean wasFailure) throws IOException { - // Kill the task if it is still running - synchronized(this){ - if (getRunState() == TaskStatus.State.RUNNING || - getRunState() == TaskStatus.State.UNASSIGNED || - getRunState() == TaskStatus.State.COMMIT_PENDING) { - kill(wasFailure); - } - } - - // Cleanup on the finished task - cleanup(true); - } - COM: <s> we no longer need anything from this task as the job has </s> - diff --git a/funcom_test/20568172.txt b/funcom_test/20568172.txt deleted file mode 100644 index dbb1cb9d2c8d3d1690e3d520df3a4d58dd483859..0000000000000000000000000000000000000000 --- a/funcom_test/20568172.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getPid(TaskAttemptID tipID) { - Path pidFileName = getPidFilePath(tipID, taskTracker.getJobConf()); - if (pidFileName == null) { - return null; - } - return ProcfsBasedProcessTree.getPidFromPidFile(pidFileName.toString()); - } - COM: <s> load pid of the task from the pid file </s> - diff --git a/funcom_test/20571050.txt b/funcom_test/20571050.txt deleted file mode 100644 index 7c94c486b8992c6360bea61eccfd933b71b1a224..0000000000000000000000000000000000000000 --- a/funcom_test/20571050.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void rollbackTransaction() { - if(this.openTrasactionCalls < 1) { - return; - } - this.openTrasactionCalls = 0; - if(currentTransaction.isActive() && transactionStatus != TXN_STATUS.ROLLBACK) { - transactionStatus = TXN_STATUS.ROLLBACK; - // could already be rolled back - currentTransaction.rollback(); - } - } - COM: <s> rolls back the current transaction if it is active </s> - diff --git a/funcom_test/20571148.txt b/funcom_test/20571148.txt deleted file mode 100644 index e899beaf5898aa9edd2fb9e3e7d684389b77c46e..0000000000000000000000000000000000000000 --- a/funcom_test/20571148.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getReclaimTimeLimit(String queue) { - int reclaimTimeLimit = rmConf.getInt(toFullPropertyName(queue, "reclaim-time-limit"), - defaultReclaimTime); - if(reclaimTimeLimit <= 0) { - throw new IllegalArgumentException("Invalid reclaim time limit : " - + reclaimTimeLimit + " for queue : " + queue); - } - return reclaimTimeLimit; - } - COM: <s> get the amount of time before which redistributed resources must be </s> - diff --git a/funcom_test/20571973.txt b/funcom_test/20571973.txt deleted file mode 100644 index b69d5a1824cdbe28731b9c15c3bd70da99f698d3..0000000000000000000000000000000000000000 --- a/funcom_test/20571973.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setCollectors(Iterator<String> collectors){ - this.collectors = collectors; - //setup a new destination from our list of collectors if one hasn't been set up - if (currCollector == null){ - if (collectors.hasNext()){ - currCollector = collectors.next(); - } - else - log.error("No collectors to try in send(), not even trying to do doPost()"); - } - } - COM: <s> set up a list of connectors for this client to send </s> - diff --git a/funcom_test/20581568.txt b/funcom_test/20581568.txt deleted file mode 100644 index 195b5a3a158eb16b06957a15a623ddd50096eef5..0000000000000000000000000000000000000000 --- a/funcom_test/20581568.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void startDB(String url, String user, String pass){ - try{ - Class.forName("com.mysql.jdbc.Driver"); - conn = DriverManager.getConnection(url, user, pass); - Statement use = conn.createStatement(); - use.execute("USE crm;"); - } catch (ClassNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (SQLException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - COM: <s> connect to the my sql database with the specified url and credentials </s> - diff --git a/funcom_test/20687588.txt b/funcom_test/20687588.txt deleted file mode 100644 index 510c824dc9e489a16ec3f6b7022a07ec413a8f4b..0000000000000000000000000000000000000000 --- a/funcom_test/20687588.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getToolsPanel() { - if (toolsPanel == null) { - toolsPanel = new JPanel(); - toolsPanel.setLayout(new BoxLayout(getToolsPanel(), BoxLayout.X_AXIS)); - toolsPanel.add(getPenButton(), null); - toolsPanel.add(getRubberButton(), null); - toolsPanel.add(getLineButton(), null); - } - return toolsPanel; - } - COM: <s> this method initializes tools panel </s> - diff --git a/funcom_test/20687655.txt b/funcom_test/20687655.txt deleted file mode 100644 index fdba2ceb24689cdef198b4700a980c68145c2b96..0000000000000000000000000000000000000000 --- a/funcom_test/20687655.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getToolOptionsPanel() { - if (toolOptionsPanel == null) { - toolOptionsPanel = new JPanel(); - toolOptionsPanel.setLayout(new BoxLayout(getToolOptionsPanel(), BoxLayout.X_AXIS)); - toolOptionsPanel.add(getThinPenButton(), null); - toolOptionsPanel.add(getMediumPenButton(), null); - toolOptionsPanel.add(getThickPenButton(), null); - } - return toolOptionsPanel; - } - COM: <s> this method initializes tool options panel </s> - diff --git a/funcom_test/20687658.txt b/funcom_test/20687658.txt deleted file mode 100644 index 2b6466ec4f3896c702c79520f5527a67addaef22..0000000000000000000000000000000000000000 --- a/funcom_test/20687658.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public StringList serializeShape(IShape s) throws EntryNotFoundException { - final int headerSize = 1; - - StringList list = s.serializeToStrings(); - // building the header, in reverse order - list.addFirst( getShapeUri( s )); - list.addFirst(Integer.toString(headerSize)); // size of the header - return list; - } - COM: <s> serializes a shape to a list of strings </s> - diff --git a/funcom_test/20687690.txt b/funcom_test/20687690.txt deleted file mode 100644 index 5a251b317a56eca8121bb2cccbc4db4f6e0ab010..0000000000000000000000000000000000000000 --- a/funcom_test/20687690.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getLeftPanel() { - if (leftPanel == null) { - leftPanel = new JPanel(); - leftPanel.setLayout(new BorderLayout()); - leftPanel.setPreferredSize(new Dimension(100, 44)); - leftPanel.add(getMapPanel(), BorderLayout.NORTH); - leftPanel.add(getChatPanel(), BorderLayout.CENTER); - } - return leftPanel; - } - COM: <s> this method initializes left panel </s> - diff --git a/funcom_test/20687719.txt b/funcom_test/20687719.txt deleted file mode 100644 index 3372ff72acc6bc5895c1854da5c899124ad0a3b0..0000000000000000000000000000000000000000 --- a/funcom_test/20687719.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JPanel getConnectionPanel() { - if (connectionPanel == null) { - connectionRoomLabel = new JLabel(); - connectionRoomLabel.setText("Playground"); - connectionPanel = new JPanel(); - connectionPanel.setLayout(new BoxLayout(getConnectionPanel(), BoxLayout.X_AXIS)); - connectionPanel.add(getConnectionsButton(), null); - connectionPanel.add(connectionRoomLabel, null); - } - return connectionPanel; - } - COM: <s> this method initializes connection panel </s> - diff --git a/funcom_test/20687739.txt b/funcom_test/20687739.txt deleted file mode 100644 index 7b78f4b531fd211a6734bad469e95198ab4a7592..0000000000000000000000000000000000000000 --- a/funcom_test/20687739.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - jContentPane = new JPanel(); - jContentPane.setLayout(new BorderLayout()); - jContentPane.add(getTopPanel(), BorderLayout.NORTH); - jContentPane.add(getLeftPanel(), BorderLayout.WEST); - jContentPane.add(getDrawingScrollPane(), BorderLayout.CENTER); - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/20751121.txt b/funcom_test/20751121.txt deleted file mode 100644 index 8b75d28af8f1c331092115a558a9b75405b2f6b1..0000000000000000000000000000000000000000 --- a/funcom_test/20751121.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected List __getChildren(String name) { - Iterator i = children.iterator(); - ArrayList al = new ArrayList(); - - while (i.hasNext()) { - Binding b = (Binding)i.next(); - if (name.equals(b.name)) { - al.add(b); - } - } - - return al; - } - COM: <s> gets all the children of given name </s> - diff --git a/funcom_test/20785875.txt b/funcom_test/20785875.txt deleted file mode 100644 index 806eaaf13089c22619ef91f69e9a7067486ce8bb..0000000000000000000000000000000000000000 --- a/funcom_test/20785875.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public double getMaxAbsoluteAccelerationValue() { - double value = getMaxOverallValue(); - // System.err.println("MAX: " + getMaxOverallValue()); - // System.err.println("MIN: " + getMinOverallValue()); - if (Math.abs(getMinOverallValue()) > value) { - value = Math.abs(getMinOverallValue()); - // System.err.println("MIN taken"); - } - return value; - } - COM: <s> returns the maximum absolute value for overall accelerations </s> - diff --git a/funcom_test/20785942.txt b/funcom_test/20785942.txt deleted file mode 100644 index 55a0701251ffd3cb832000eac402546acb276dda..0000000000000000000000000000000000000000 --- a/funcom_test/20785942.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public PACKET getOnePacket(){ - PACKET[] arr = new PACKET[10]; - if (hdc == null) - return null; - - PACKET p = new PACKET(); - lib.WTPacketsGet(hdc, 1,p); - lib.WTPacketsGet(hdc, 3,arr);//discard 3 packets - return p; - - } - COM: <s> get single packet discard 3 </s> - diff --git a/funcom_test/20786026.txt b/funcom_test/20786026.txt deleted file mode 100644 index 702b09e43d730c2d2c75021ec01aba5cc31e6b93..0000000000000000000000000000000000000000 --- a/funcom_test/20786026.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void initProjectView(String projectName) { - setTitle(GuiBundleTool.getBundle().getName(GuiBundleTool.KEY) - + org.sigtec.util.Constant.DASH_S + projectName); - - if (!initialized) { - populateDialog(); - if ((!first) || (!model.minimizeAsStartup())) { - setVisible(true); - } - else { - first = false; - } - } - - } - COM: <s> initialises the view for a project </s> - diff --git a/funcom_test/20786028.txt b/funcom_test/20786028.txt deleted file mode 100644 index ff2981f3c87f7f614e36accca9fcda291f65c4b1..0000000000000000000000000000000000000000 --- a/funcom_test/20786028.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: /* - * private void loadData() { gestureClasses = new ArrayList<GestureClass>(); - * - * for (GestureClass dataObject : storageManager.load(GestureClass.class)) { - * gestureClasses.add(dataObject); } - * - * for (GestureSet dataObject : storageManager.load(GestureSet.class)) { - * gestureSets.add(dataObject); } } // loadData - COM: <s> loads the data from the database </s> - diff --git a/funcom_test/20786030.txt b/funcom_test/20786030.txt deleted file mode 100644 index b979e99cb33435f6064028c838ab977fd5d173a4..0000000000000000000000000000000000000000 --- a/funcom_test/20786030.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void loadGestureSet(GestureSet gestureSet) { - if (!configuration.getGestureSets().contains(gestureSet)) - configuration.addGestureSet(gestureSet); - - this.gestureSet = gestureSet; - gestureClassesTable.clear(); - - for (GestureClass gc : gestureSet.getGestureClasses()) { - gestureListModel.add(gc); - gestureClassesTable.put(gc.getName(), gc); - - } - - toBeSaved = true; - } // loadGestureSet - COM: <s> adds the gesture set to the gesture main model </s> - diff --git a/funcom_test/20786060.txt b/funcom_test/20786060.txt deleted file mode 100644 index 1eaa64b23d487c8dfdf924d8afb09d43284beac5..0000000000000000000000000000000000000000 --- a/funcom_test/20786060.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void mouseClicked(MouseEvent event) { - if (event.getClickCount() == 2) { - - if (mainView.isVisible()) { - mainView.setVisible(false); - } - else { - mainView.setVisible(true); - mainView.setState(Frame.NORMAL); - mainView.requestFocus(); - mainView.toFront(); - } - - } - - } // mouseClicked - COM: <s> handles a clicked button </s> - diff --git a/funcom_test/20786072.txt b/funcom_test/20786072.txt deleted file mode 100644 index 50900cccccfe628f5bbc98427090eaf28e7201ec..0000000000000000000000000000000000000000 --- a/funcom_test/20786072.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void actionPerformed(ResultSet resultSet) { - try { - if ((command != null) && (!command.isEmpty())) { - - if (SystemTool.isWindowsPlatform()) { - Runtime.getRuntime().exec(WIN_CONSOLE + command); - } - - } - } - catch (IOException ioe) { - ioe.printStackTrace(); - } - - } // run - COM: <s> execute the action </s> - diff --git a/funcom_test/20786075.txt b/funcom_test/20786075.txt deleted file mode 100644 index f9420e75d75e32583908e8cbafa7a2ee70e84d7a..0000000000000000000000000000000000000000 --- a/funcom_test/20786075.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String toString() { - - StringBuilder sb = new StringBuilder(); - for (Key key : keys) { - sb.append(key.toString()); - sb.append(Constant.PLUS); - } - - return sb.length() > 0 ? sb.deleteCharAt(sb.length() - 1).toString() : sb - .toString(); - }// toString - COM: <s> returns a description of the action </s> - diff --git a/funcom_test/20786081.txt b/funcom_test/20786081.txt deleted file mode 100644 index 020a94dcc4c0822eacf61db9df5992d19c188fe0..0000000000000000000000000000000000000000 --- a/funcom_test/20786081.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void removeMapping(GestureToActionMapping gm) { - mappings.remove(gm.getGestureClass()); - eventManager.unRegisterEventHandler(gm.getGestureClass().getName()); - mappingListModel.removeElement(gm); - gestureListModel.add(gm.getGestureClass()); - toBeSaved = true; - }// removeMapping - COM: <s> removes a gesture action mapping </s> - diff --git a/funcom_test/20786176.txt b/funcom_test/20786176.txt deleted file mode 100644 index 6e88f8d54ae143e7bd9ad3d735abf4c3d6b2650e..0000000000000000000000000000000000000000 --- a/funcom_test/20786176.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private void drawLine(Point startPoint, Point endPoint) { - graphic.drawLine((int)startPoint.getX(), (int)startPoint.getY(), - (int)endPoint.getX(), (int)endPoint.getY()); - } // drawLine - COM: <s> draws a line between two given points </s> - diff --git a/funcom_test/20786178.txt b/funcom_test/20786178.txt deleted file mode 100644 index 137923e3199491a6e037c1bcb463f9f927f755f0..0000000000000000000000000000000000000000 --- a/funcom_test/20786178.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void drawPoint(Point point, int radius) { - graphic.setColor(Color.RED); - graphic.fillOval((int)point.getX() - radius / 2, (int)point.getY() - - radius / 2, radius, radius); - graphic.setColor(Color.BLACK); - } // drawPoint - COM: <s> draws a point marking the start of a stroke </s> - diff --git a/funcom_test/20786182.txt b/funcom_test/20786182.txt deleted file mode 100644 index 1cf2c1c7d51580563fc9681662e74693cd8c3478..0000000000000000000000000000000000000000 --- a/funcom_test/20786182.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void numberTrace(Point point, int number) { - graphic.setColor(Color.RED); - graphic.drawString(String.valueOf(number), (int)point.getX() - 5, - (int)point.getY() - 5); - graphic.setColor(Color.BLACK); - } // numberTrace - COM: <s> numbers the traces </s> - diff --git a/funcom_test/20786186.txt b/funcom_test/20786186.txt deleted file mode 100644 index 4d61f0031aa3581d3108c79f5389829b42de6697..0000000000000000000000000000000000000000 --- a/funcom_test/20786186.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean isInArea(Point point) { - if (point.getX() > bufferedImage.getWidth() - || point.getY() > bufferedImage.getHeight() || point.getX() < 0 - || point.getY() < 0) { - return false; - } - - return true; - } // isInArea - COM: <s> tests if the point lies within the drawing area </s> - diff --git a/funcom_test/20786189.txt b/funcom_test/20786189.txt deleted file mode 100644 index 448762cd2fd6a28bbc2f5bad92ea431342ea04cc..0000000000000000000000000000000000000000 --- a/funcom_test/20786189.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Point computeCenterPoint() { - final List<Point2D> points = new ArrayList<Point2D>(); - - for (final Point ts : locationBuffer) { - points.add(new Point2D.Double(ts.getX(), ts.getY())); - } - - final Point2D point = Points.getCentre(points); - return new Point((int)point.getX(), (int)point.getY()); - } // computeCenterPoint - COM: <s> computes the cetner point of a drawing </s> - diff --git a/funcom_test/20786293.txt b/funcom_test/20786293.txt deleted file mode 100644 index cd28e623920593f32038a705908791fd3f0de9d0..0000000000000000000000000000000000000000 --- a/funcom_test/20786293.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public File addExtension(File file){ - if(file != null && !file.getName().endsWith(this.extension) ){ - File parent = file.getParentFile(); - return new File(parent, String.format("%s.%s", file.getName(), extension)); - } - - return file; - } - COM: <s> adds the extension if it is not already there </s> - diff --git a/funcom_test/20786629.txt b/funcom_test/20786629.txt deleted file mode 100644 index aae4b1cb1fecbc7ba234d89be118c9610d04c76a..0000000000000000000000000000000000000000 --- a/funcom_test/20786629.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initTitle() { - - StringBuilder sb = new StringBuilder(); - sb.append(testClass.getName()); - - JLabel titleLabel = TitleFactory.createStaticTitle(sb.toString()); - BindingFactory.createInstance(titleLabel, testClass, TestClass.PROPERTY_NAME); - setTitle(titleLabel); - } - COM: <s> sets the title of the form </s> - diff --git a/funcom_test/20786657.txt b/funcom_test/20786657.txt deleted file mode 100644 index bc1e68c0d26cfd31f482f853d5d912df61f55bbf..0000000000000000000000000000000000000000 --- a/funcom_test/20786657.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void storeProperties() { - try { - mainModel.getProperties().storeToXML( - new FileOutputStream(GestureConstants.PROPERTIES), - "iGesture: " + new Date()); - } - catch (Exception e) { - LOGGER.log(Level.WARNING, "Failed to store properties.", e); - } - } - COM: <s> persist the properties </s> - diff --git a/funcom_test/20786759.txt b/funcom_test/20786759.txt deleted file mode 100644 index 6a2597dd98779bbd057b46ec5be2602dc9345b49..0000000000000000000000000000000000000000 --- a/funcom_test/20786759.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initController() { - adminView = new AdminView(this); - - ExplorerTreeModel explorerModel = new ExplorerTreeModel(mainModel.getGestureSetList(), NodeInfoFactory - .createAdminNodeInfo(this)); - explorerTreeController = new ExplorerTreeController(this, adminView, explorerModel); - - addController(explorerTreeController); - } - COM: <s> initializes the controller </s> - diff --git a/funcom_test/20786945.txt b/funcom_test/20786945.txt deleted file mode 100644 index a3c324899822c97cd80fa82b54d270ade4d183d2..0000000000000000000000000000000000000000 --- a/funcom_test/20786945.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void fireEvent(final ResultSet resultSet) { - - Executor executor = Executors.newFixedThreadPool(NUMBER_OF_THREADS); - for (final GestureHandler gestureHandler : resultSet.getSource().getGestureHandlers()) { - LOGGER.info("Handler: "+gestureHandler.getClass()); - if (gestureHandler != null) { - executor.execute(new Runnable() { - - @Override - public void run() { - gestureHandler.handle(resultSet); - } - - }); - } - } - } // fireEvent - COM: <s> fires an event and informs all registered gesture handlers </s> - diff --git a/funcom_test/20787002.txt b/funcom_test/20787002.txt deleted file mode 100644 index 642f7af4fbbcd0bb672035bdff20184e2f4f16b5..0000000000000000000000000000000000000000 --- a/funcom_test/20787002.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void addParameter(String algorithm, String key, String value) { - Map<String, String> parameters = getParameters(algorithm); - parameters.put(key, value); - propertyChangeSupport.firePropertyChange("parameters", null, value); - } // addParameter - COM: <s> adds a key value parameter to the specified algorithm </s> - diff --git a/funcom_test/20787007.txt b/funcom_test/20787007.txt deleted file mode 100644 index fafe9c2fcae0a15e6e5a7920f699ad7a3a0041d8..0000000000000000000000000000000000000000 --- a/funcom_test/20787007.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void store(String path, InputStream stream) throws IOException { - toIgnore.add(normalizePath(path)); - ZipEntry entry = new ZipEntry(path); - zipOutput.putNextEntry(entry); - IOUtils.copy(stream, zipOutput); - zipOutput.closeEntry(); - } - COM: <s> stores a new element in the zip file with the given path </s> - diff --git a/funcom_test/20787032.txt b/funcom_test/20787032.txt deleted file mode 100644 index d0254bd8a6a8b9e62ed5bc639656609a5c7490a1..0000000000000000000000000000000000000000 --- a/funcom_test/20787032.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setMaxResultSetSize(int maxResultSetSize) { - int oldValue = maxResultSetSize; - this.maxResultSetSize = maxResultSetSize; - propertyChangeSupport.firePropertyChange(PROPERTY_MAX_RESULT_SET_SIZE, - oldValue, maxResultSetSize); - } // setMaxResultSetSize - COM: <s> sets the maximal result set size </s> - diff --git a/funcom_test/20787130.txt b/funcom_test/20787130.txt deleted file mode 100644 index 07269f7312592b7218ab8b97ed6b6e501d33047e..0000000000000000000000000000000000000000 --- a/funcom_test/20787130.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void add(Gesture<?> sample) { - if (sample == null) { - return; - } - - TestClass testClass = getTestClass(sample.getName()); - if (testClass == null) { - testClass = new TestClass(sample.getName()); - addTestClass(testClass); - - } - testClass.add(sample); - } // add - COM: <s> adds a sample to the list of samples </s> - diff --git a/funcom_test/20787135.txt b/funcom_test/20787135.txt deleted file mode 100644 index 1671443bcb1a68f5aba332cca0fc76316b475823..0000000000000000000000000000000000000000 --- a/funcom_test/20787135.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addAll(List<Gesture<?>> samples) { - for (Gesture<?> sample : samples) { - add(sample); - } - - for (Gesture< ? > sample : samples) { - propertyChangeSupport.fireIndexedPropertyChange(PROPERTY_TEST_CLASSES, - samples.indexOf(sample), null, sample); - } - - } // addAll - COM: <s> adds a list of samples </s> - diff --git a/funcom_test/20787277.txt b/funcom_test/20787277.txt deleted file mode 100644 index fbd82ec6d4dff8ab11d300eb00af7f079bfaa09b..0000000000000000000000000000000000000000 --- a/funcom_test/20787277.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setGesture(GestureSample3D gs) { - //System.err.println("SAMPLE : " + gs.getName()); - this.gs = gs; -// if(gs != null){ -// System.err.println("WiiReaderPanel.setGesture() Displaying: " + gs.getName()); -// } -// else { -// System.err.println("WiiReaderPanel.setGesture() Displaying: null gesture"); -// } - this.paintComponent(this.getGraphics()); - } - COM: <s> sets the gesture to be drawn by this panel </s> - diff --git a/funcom_test/20787309.txt b/funcom_test/20787309.txt deleted file mode 100644 index 82330211181eb4924abd52d19368ed442dc86cc3..0000000000000000000000000000000000000000 --- a/funcom_test/20787309.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void update(TuioTime ttime, float xp, float yp, float zp, float xs, float ys, float zs, float ma) { - super.update(ttime,xp,yp,zp); - x_speed = xs; - y_speed = ys; - z_speed = zs; - motion_speed = (float)Math.sqrt(x_speed*x_speed+y_speed*y_speed+z_speed*z_speed); - motion_accel = ma; - path.addElement(new TuioPoint3D(currentTime,xpos,ypos,zpos)); - - if (motion_accel>0) state = TUIO_ACCELERATING; - else if (motion_accel<0) state = TUIO_DECELERATING; - else state = TUIO_STOPPED; - } - COM: <s> takes a tuio time argument and assigns it along with the provided </s> - diff --git a/funcom_test/20787316.txt b/funcom_test/20787316.txt deleted file mode 100644 index 1b44e1bb921c442c3d60b251b8d4baa7daf6cde1..0000000000000000000000000000000000000000 --- a/funcom_test/20787316.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void update (TuioContainer3D tcon) { - super.update(tcon); - x_speed = tcon.getXSpeed(); - y_speed = tcon.getYSpeed(); - z_speed = tcon.getZSpeed(); - motion_speed = tcon.getMotionSpeed(); - motion_accel= tcon.getMotionAccel(); - path.addElement(new TuioPoint3D(currentTime,xpos,ypos,zpos)); - - if (motion_accel>0) state = TUIO_ACCELERATING; - else if (motion_accel<0) state = TUIO_DECELERATING; - else state = TUIO_STOPPED; - } - COM: <s> takes the attributes of the provided tuio container3 d </s> - diff --git a/funcom_test/20787348.txt b/funcom_test/20787348.txt deleted file mode 100644 index 38b7b18e192287f30c1f797ead0b2ca5a719120e..0000000000000000000000000000000000000000 --- a/funcom_test/20787348.txt +++ /dev/null @@ -1,33 +0,0 @@ -TDAT: public float getAngle(int planes, float ap, float bp) { - - float side = 0, height = 0, distance = 0; - - switch(planes) - { - case XY: - side = xpos - ap; - height = ypos -bp; - distance = getDistance(XY,ap,bp); - break; - case XZ: - side = xpos - ap; - height = zpos -bp; - distance = getDistance(XZ,ap,bp); - break; - case YZ: - side = ypos - ap; - height = zpos -bp; - distance = getDistance(YZ,ap,bp); - break; - default: - System.err.println("Unknown planes entered"); - break; - } - - float angle = (float)(Math.asin(side/distance)+Math.PI/2); - if (height<0) angle = 2.0f*(float)Math.PI-angle; - - return angle; - } - COM: <s> returns the angle to the provided coordinates </s> - diff --git a/funcom_test/20787352.txt b/funcom_test/20787352.txt deleted file mode 100644 index 32a9cc14e2744083bc627362bef4480412c06d0e..0000000000000000000000000000000000000000 --- a/funcom_test/20787352.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public float getAngle(int planes, TuioPoint3D tpoint) { - float angle = 0; - switch(planes) - { - case XY: - angle = getAngle(planes,tpoint.getX(),tpoint.getY()); - break; - case XZ: - angle = getAngle(planes,tpoint.getX(),tpoint.getZ()); - break; - case YZ: - angle = getAngle(planes,tpoint.getY(),tpoint.getZ()); - break; - default: - System.err.println("Unknown planes entered"); - } - return angle; - } - COM: <s> returns the angle to the provided tuio point3 d </s> - diff --git a/funcom_test/20787679.txt b/funcom_test/20787679.txt deleted file mode 100644 index 56db6159e17cb3ee065577bd406c5f032d82c8d1..0000000000000000000000000000000000000000 --- a/funcom_test/20787679.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void recognise(String setName) { - // Configure recogniser - //new Rubine3DAlgorithm(); - Configuration config = new Configuration(); - config.addAlgorithm(Rubine3DAlgorithm.class.getName()); - config.addGestureSet(getGestureSet(setName)); - try { - recogniser = new Recogniser(config); - } catch (AlgorithmException e) { - e.printStackTrace(); - } - // Recognise - ResultSet resultSet = recogniser.recognise(reader.getGesture()); - ui.setResultField(resultSet); - // - System.err.println("Number of Results in ResultSet: " - + resultSet.getResults().size()); - } - COM: <s> recognises the current gesture from the wii reader against the gesture set </s> - diff --git a/funcom_test/20787697.txt b/funcom_test/20787697.txt deleted file mode 100644 index acbbc46b88f9f0c661379a6e79d20d87f5fae5e2..0000000000000000000000000000000000000000 --- a/funcom_test/20787697.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeSet(String setName) { - if (storage.load(GestureSet.class, "name", setName).get(0) != null) { - storage.remove(storage.load(GestureSet.class, "name", setName).get( - 0)); - } else - System.err.println("Gesture3DTool: Gesture set " + setName - + " can not be removed because it does not exist"); - } - COM: <s> removes the gesture set with name set name from storage </s> - diff --git a/funcom_test/20787759.txt b/funcom_test/20787759.txt deleted file mode 100644 index 860afc9a169fe58a6822bdfde1c9718b03d09e20..0000000000000000000000000000000000000000 --- a/funcom_test/20787759.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private Position getPosition(Point point) { - final Position result = new Position(0, 0); - result.x = (int)(point.getX() / ((rasterSize / gridSize) + 1)); - result.y = (int)(point.getY() / ((rasterSize / gridSize) + 1)); - return result; - } // getPosition - COM: <s> computes the position in the grid </s> - diff --git a/funcom_test/20787762.txt b/funcom_test/20787762.txt deleted file mode 100644 index 21614a3907aca994598521bdb5fb78c609dcc0d6..0000000000000000000000000000000000000000 --- a/funcom_test/20787762.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addSignature(BitSet bit) { - for (int i = 0; i < grid.getBitStringLength(); i++) { - this.signatures.set(grid.getBitStringLength() * numberOfPoints + i, bit - .get(i)); - } - - numberOfPoints++; - } // addSignature - COM: <s> appends a point signature point to the gesture signature </s> - diff --git a/funcom_test/20787764.txt b/funcom_test/20787764.txt deleted file mode 100644 index 4e02e608a33686d5b4d69cd4e168047fc5bf8cbf..0000000000000000000000000000000000000000 --- a/funcom_test/20787764.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private String prettyPrint(BitSet bitSet) { - final StringBuilder sb = new StringBuilder(); - - for (int i = 0; i < this.bitStringLength; i++) { - - if (bitSet.get(i)) { - sb.append(Constant.ONE); - } - else { - sb.append(Constant.ZERO); - } - - } - - return sb.toString(); - } // prettyPrint - COM: <s> pretty print for a given bit set </s> - diff --git a/funcom_test/20787769.txt b/funcom_test/20787769.txt deleted file mode 100644 index e4cf3f298ff5fb5e328dd21017aab3ea82120ce6..0000000000000000000000000000000000000000 --- a/funcom_test/20787769.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setCell(int x, int y, BitSet bitSet) { - if (!(x >= 0 && x < size && y >= 0 && y < size)) { - throw new IndexOutOfBoundsException(); - } - - grid[x][y] = bitSet; - } // setCell - COM: <s> sets the signature of a field </s> - diff --git a/funcom_test/20787794.txt b/funcom_test/20787794.txt deleted file mode 100644 index af5c743ef10b557dc4bb644024ed5dcf42ebaca3..0000000000000000000000000000000000000000 --- a/funcom_test/20787794.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private double parseDoubleToken(String token, Statistics statistic) { - final double d = 0; - - if (isDouble(token)) { - return Double.parseDouble(token); - } - else { - final Tokens t = Tokens.valueOf(token); - - if (t != null) { - return evaluateFunction(t, statistic); - } - - } - return d; - } // parseDoubleToken - COM: <s> parses a double token </s> - diff --git a/funcom_test/20787800.txt b/funcom_test/20787800.txt deleted file mode 100644 index b0ab63deb14e90d142f31efbf038b007974f978d..0000000000000000000000000000000000000000 --- a/funcom_test/20787800.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public double getProximity() { - final double diag = Math.sqrt(Math.pow(note.getBounds2D().getWidth(), 2) - + Math.pow(note.getBounds2D().getHeight(), 2)); - return note.getStartPoint().distance(note.getEndPoint()) - / diag; - } - COM: <s> returns the proportional distance between the first and last point </s> - diff --git a/funcom_test/20787816.txt b/funcom_test/20787816.txt deleted file mode 100644 index 592b2a46334de6c1b8bf85ed17936df4728878de..0000000000000000000000000000000000000000 --- a/funcom_test/20787816.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getCorners() { - int corners = 0; - for (int i = 1; i < directions.size(); i++) { - if ((isStraight(directions.get(i - 1)) && isDiagonal(directions.get(i))) - || isDiagonal(directions.get(i - 1)) - && isStraight(directions.get(i))) { - corners++; - } - } - return corners; - } - COM: <s> returns the number of corners </s> - diff --git a/funcom_test/20818563.txt b/funcom_test/20818563.txt deleted file mode 100644 index 7272acfa298416dc88938a81dd282df10676ea39..0000000000000000000000000000000000000000 --- a/funcom_test/20818563.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testSlowRequest() throws Exception { - RequestInspector adi = new StackTimerInspector(100); - MockHttpServletRequest request = new MockHttpServletRequest(); - adi.beforeRequest(request); - Thread.sleep(200); - adi.afterRequest(request); - assertNotNull(request.getAttribute(Constants._WATCHER_STACKTIMERTRACE)); - // System.out.println(request.getAttribute(Constants._WATCHER_STACKTIMERTRACE)); - } - COM: <s> delay long enough for the stack trace to be generated </s> - diff --git a/funcom_test/20818678.txt b/funcom_test/20818678.txt deleted file mode 100644 index b4fba52064b23b134384940af58468456f78b6d5..0000000000000000000000000000000000000000 --- a/funcom_test/20818678.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void logReport(List report) { - // Insert the record into the database - try { - if (DEBUG) { - System.err.println("Logging request"); - } - boolean success = queue.offer(report, 50); - if (!success && DEBUG) { - System.err.println("Timed out offer"); - } - } catch (InterruptedException ie) { - // Ignore this - } - } - COM: <s> send this report to the server </s> - diff --git a/funcom_test/20818695.txt b/funcom_test/20818695.txt deleted file mode 100644 index 9dbddd80a16bd1f4b96ce0d52ad4c552791bac3b..0000000000000000000000000000000000000000 --- a/funcom_test/20818695.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void init() throws ServletException { - ActiveRequestReporterFactory factory = new ActiveRequestReporterFactory(); - threadview = factory - .makeReporter(getInitParameter("threadinfo"), - "thread,start,duration,ip,sessionid,method,url,querystring,stacktrace"); - reporter = factory.makeReporter(getInitParameter("loginfo"), - "id,start,duration,ip,thread,uri"); - } - COM: <s> determines whether jdk 1 </s> - diff --git a/funcom_test/20818769.txt b/funcom_test/20818769.txt deleted file mode 100644 index 6e2f2ed624e4729acd678b40cef4cd297c4c6d1b..0000000000000000000000000000000000000000 --- a/funcom_test/20818769.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void beforeRequest(HttpServletRequest request) { - TimerTask task = new StackTraceTask(request); - timer.schedule(task, delay); - request.setAttribute(Constants._WATCHER_STACKTIMERTASK, task); - request.setAttribute(Constants._WATCHER_THREAD, Thread.currentThread()); - super.beforeRequest(request); - } - COM: <s> create the timer task for this request </s> - diff --git a/funcom_test/20819365.txt b/funcom_test/20819365.txt deleted file mode 100644 index 61167865452bec53dae222a9f1181cb9f953aba8..0000000000000000000000000000000000000000 --- a/funcom_test/20819365.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Requirement parse(final Reader reader) throws IOException{ - final BufferedReader reqReader = new BufferedReader(reader); - final CompositeRequirement req = new CompositeRequirement(); - String line = reqReader.readLine(); - while(line != null){ - line = line.replaceAll(COMMENT, EMPTY).trim(); - if(line.trim().length() > 0){ - req.addRequirement(buildRequirement(line)); - } - line = reqReader.readLine(); - } - return req; - } - COM: <s> parses code reader code and returns the executable requirement </s> - diff --git a/funcom_test/20883741.txt b/funcom_test/20883741.txt deleted file mode 100644 index 8aaa189df795b3729d31e314b16d6d88c4cc6569..0000000000000000000000000000000000000000 --- a/funcom_test/20883741.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getColorizedWord(String queryWord, String word){ - int index = words.indexOf(queryWord); - return new StringBuffer().append("<b>").append(word).append("</b>").toString(); -// return new StringBuffer().append("<b><font style=\"color:").append( -// availableColors[index % availableColors.length]).append("\">").append(word).append( -// "</font></b>").toString(); - } - COM: <s> colorize a word </s> - diff --git a/funcom_test/20913602.txt b/funcom_test/20913602.txt deleted file mode 100644 index 0ae2527430452174fd70e50b7e7c0c0831a1d696..0000000000000000000000000000000000000000 --- a/funcom_test/20913602.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public long computeTotalTime() { - long a = (startTime != null) ? startTime.getTime() - : ((Long.MAX_VALUE / 2) - 1); - long b = (stopTime != null) ? stopTime.getTime() - : ((Long.MIN_VALUE / 2) + 1); - - return (b - a); - } - COM: <s> computes the total time of execution </s> - diff --git a/funcom_test/20913631.txt b/funcom_test/20913631.txt deleted file mode 100644 index f15ea0dbb9d2659df7528ec471a6815d33e68035..0000000000000000000000000000000000000000 --- a/funcom_test/20913631.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getDBCalls() { - if (!contextClosed) { - throw new RuntimeException("Context must be closed!"); - } - - /* - * Here the assumption is that if you take a connection from the pool, - * then you will use it to do some DB operation. - */ - int calls = connectionActivity.size() / 2; - - return calls; - } - COM: <s> get the approximate number of db calls in the execution context </s> - diff --git a/funcom_test/20919925.txt b/funcom_test/20919925.txt deleted file mode 100644 index 28a16d2b3ab65c6bb26c06fe37b68d98eef64521..0000000000000000000000000000000000000000 --- a/funcom_test/20919925.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int getSpaceWidth() { - if (spaceWidth < 0) { - getGraphics2D(); - FontRenderContext frc = getFontRenderContext(); - GlyphVector gv = font.createGlyphVector(frc, " "); - GlyphMetrics metrics = gv.getGlyphMetrics(0); - spaceWidth = (int) metrics.getAdvanceX(); - } - return spaceWidth; - } - COM: <s> returns the width of the ascii space character in pixels drawn </s> - diff --git a/funcom_test/20920415.txt b/funcom_test/20920415.txt deleted file mode 100644 index 3f2bf58f7e4fedcf6fce587a140441589aa93135..0000000000000000000000000000000000000000 --- a/funcom_test/20920415.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void addState(S state,Action<S,E> entryAction,Action<S,E> exitAction){ - //adds an entry action to the transition model - if(entryAction!=null) - transitionModel.addEntryAction(state,entryAction); - //adds an exit action to the transition model - if(exitAction!=null) - transitionModel.addExitAction(state,exitAction); - } - COM: <s> adds a state and its actions triggered on transitions into the state machine </s> - diff --git a/funcom_test/20920417.txt b/funcom_test/20920417.txt deleted file mode 100644 index 795b9ac79f853609a5f4c37a3c41548ed81fa42c..0000000000000000000000000000000000000000 --- a/funcom_test/20920417.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void updateLogicalLayer(final ReadOnlyTimer timer){ - final S currentStateBeforeUpdate=internalStateMachine.getCurrentState(); - scheduler.update(previousState,currentStateBeforeUpdate,timer.getTimePerFrame()); - //obviously the current state may change during the update - final S currentStateAfterUpdate=internalStateMachine.getCurrentState(); - previousState=currentStateAfterUpdate; - } - COM: <s> updates the logical layer by running the scheduler </s> - diff --git a/funcom_test/20920725.txt b/funcom_test/20920725.txt deleted file mode 100644 index 4d28ddd8ce2edb1c72ac92c0eed40cb5165e41ba..0000000000000000000000000000000000000000 --- a/funcom_test/20920725.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean isPutBackComplete(){ - final boolean isPutBackComplete; - if(isCurrentWeaponAmmunitionCountDisplayable()) - {final Node primaryWeaponNode=primaryHandWeaponContainer.getNode(weaponInUse); - final double putBackYEnd=PUT_BACK_WEAPON_ORDINATE; - //checks if the operation has completed - isPutBackComplete=primaryWeaponNode.getTranslation().getY()==putBackYEnd; - } - else - isPutBackComplete=true; - return(isPutBackComplete); - } - COM: <s> returns whether the put back is complete </s> - diff --git a/funcom_test/20920727.txt b/funcom_test/20920727.txt deleted file mode 100644 index d5a1448a398403d9fc49feaa79047ff6a3c264aa..0000000000000000000000000000000000000000 --- a/funcom_test/20920727.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean isPullOutComplete(){ - final boolean isPullOutComplete; - if(isCurrentWeaponAmmunitionCountDisplayable()) - {final Node primaryWeaponNode=primaryHandWeaponContainer.getNode(weaponInUse); - final double pullOutYEnd=PULLED_OUT_WEAPON_ORDINATE; - //checks if the operation has completed - isPullOutComplete=primaryWeaponNode.getTranslation().getY()==pullOutYEnd; - } - else - isPullOutComplete=true; - return(isPullOutComplete); - } - COM: <s> returns whether the pull out is complete </s> - diff --git a/funcom_test/20950513.txt b/funcom_test/20950513.txt deleted file mode 100644 index 7adfb173373a2c18cca76734623c2f7afe2bcce2..0000000000000000000000000000000000000000 --- a/funcom_test/20950513.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void rename(String newName) throws SQLIOException { - unlockAndClose(); - - // parent can be null, but is not clear in which case and if this can lead - // to problems - File newFile = new File(fileHnd.getParent(), newName); - - boolean renameOk = fileHnd.renameTo(newFile); - if (renameOk) { - fileHnd = newFile; - lockAndInit(fileHnd, false); - } - else { - lockAndInit(fileHnd, false); - throw new SQLIOException("Cannot rename table file."); - } - } - COM: <s> rename to new name in the same directory </s> - diff --git a/funcom_test/20950527.txt b/funcom_test/20950527.txt deleted file mode 100644 index 9f93c4d3eb1922714a279be38ea52a2a4f2c8a74..0000000000000000000000000000000000000000 --- a/funcom_test/20950527.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void renameCol(String oldName, String newName) throws THSException { - checkNewNameCollision(newName); - - for (ThsColumn column : getColumns()) { - if (column.getName().equals(oldName)) { - column.rename(newName); - updateImage(); - return; - } - } - - throw new THSException (ErrCode.COLUMN_NOT_FOUND, oldName); - } - COM: <s> doesnt check for old name </s> - diff --git a/funcom_test/20950841.txt b/funcom_test/20950841.txt deleted file mode 100644 index 0566cdd9fb362625750013353c50da6236ccacbf..0000000000000000000000000000000000000000 --- a/funcom_test/20950841.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void encode(byte[] buffer, int ofs) { - // pad with terminator byte; name length must include it. - encodeCString(_name, buffer, ofs); - - buffer[ofs + POS_TYPE] = encodeType(getType()); - - buffer[ofs + POS_LENGTH] = (byte)getLen(); - buffer[ofs + POS_DEC_COUNT] = (byte)getLenExtra(); - } - COM: <s> encode into the buffer br </s> - diff --git a/funcom_test/20950857.txt b/funcom_test/20950857.txt deleted file mode 100644 index e07f52da857352dab417e2e0bc99e00cdc2baaad..0000000000000000000000000000000000000000 --- a/funcom_test/20950857.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private LockedFile initFile(File dataDir, String tableName) throws SQLIOException { - File dbtFileHnd = new File(dataDir, tableName + MEMO_EXTENSION); - - if (! dbtFileHnd.exists()) { - LockedFile file = new LockedFile(dbtFileHnd, true); - createHeader(file); - return file; - } - else { - return new LockedFile(dbtFileHnd, false); - } - } - COM: <s> construct a dbf memo given its name and dir </s> - diff --git a/funcom_test/20950872.txt b/funcom_test/20950872.txt deleted file mode 100644 index ace368431c791757e10808e2327b06002f0bd25f..0000000000000000000000000000000000000000 --- a/funcom_test/20950872.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void createHeader(LockedFile file) throws SQLIOException { - if (file.getSize() > 0) throw new IllegalStateException("file not empty!"); - - final byte[] FIRST_FREE_BLOCK = { 0x01, 0x00, 0x00, 0x00 }; - - file.setPosition(FREE_BLOCK_PTR_POS); - file.write(FIRST_FREE_BLOCK); - - file.setPosition(VERSION_POS); - file.write(VERSION); - - // the header is the first block. - file.setPosition(BLOCK_SIZE); - file.truncate(); - } - COM: <s> create the header </s> - diff --git a/funcom_test/20950900.txt b/funcom_test/20950900.txt deleted file mode 100644 index 98723890904bf683cafb427383803a6db1fbe6c2..0000000000000000000000000000000000000000 --- a/funcom_test/20950900.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void load(LockedFile file) throws SQLIOException { - file.setPosition(POS_HEADER); - - byte[] buffer = new byte[BASE_HEADER_SIZE]; - file.read(buffer, 0, BASE_HEADER_SIZE); - - type = buffer[POS_TYPE]; - lastUpdate = decode3Date(buffer, POS_LAST_UDPATE); - recordsNum = DbfUtils.decodeLittleUint16(buffer, POS_RECORDS_NUM); - recordSize = DbfUtils.decodeLittleUint16(buffer, POS_RECORD_SIZE); - headerSize = DbfUtils.decodeLittleUint16(buffer, POS_HEADER_SIZE); - - verifyAndFixHeader(file); - } - COM: <s> loads the image from a file </s> - diff --git a/funcom_test/20950951.txt b/funcom_test/20950951.txt deleted file mode 100644 index 7d97528d6382f314f9cb45a9d1a649e76535f462..0000000000000000000000000000000000000000 --- a/funcom_test/20950951.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String encodeField_typeDBT(String text) { - /* here we replace all types of single newline (\n or \r) with \r\n, - obviously except the one already in format \r\n - 1 l0v3 r3g3x!! - */ - text = text.replaceAll("(\\r(?!\\n))|((?<!\\r)\\n)", "\r\n"); - return text + TERMINATOR + TERMINATOR; - } - COM: <s> encode a string to the dbt format </s> - diff --git a/funcom_test/20950988.txt b/funcom_test/20950988.txt deleted file mode 100644 index b9f681f184786cd0ab84ae25b195ce649aead0bd..0000000000000000000000000000000000000000 --- a/funcom_test/20950988.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void encode3Date(Date date, byte[] buffer, int pos) { - Calendar cal = Calendar.getInstance(); - - cal.setTime(date); - - buffer[pos] = (byte)(cal.get(Calendar.YEAR) - 1900); - buffer[pos + 1] = (byte)(cal.get(Calendar.MONTH) + 1); - buffer[pos + 2] = (byte)(cal.get(Calendar.DAY_OF_MONTH)); - } - COM: <s> encode a date in the 3 byte format </s> - diff --git a/funcom_test/20951083.txt b/funcom_test/20951083.txt deleted file mode 100644 index c07865c26460dde868f33ea6aeb36170ee817c55..0000000000000000000000000000000000000000 --- a/funcom_test/20951083.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private StringBuilder createTableDef(ThsTable table) { - String tableName = table.getName(); - StringBuilder sb = new StringBuilder(tableName); - sb.append('|'); - - List<? extends ThsColumn> columns = table.getColumns(); - for (int i = 0; i < columns.size(); i++) { - ThsColumn column = columns.get(i); - - char type = valueTypeToSymbol(column.getType()); - - sb.append(column.getName()).append(',') - .append(type).append(',') - .append(column.getLen()); - - if (i < columns.size() - 1) sb.append(';'); - } - - return sb; - } - COM: <s> get table definition for def file </s> - diff --git a/funcom_test/20951092.txt b/funcom_test/20951092.txt deleted file mode 100644 index 9473223b46660cde3bb93d36999bac06bec44f37..0000000000000000000000000000000000000000 --- a/funcom_test/20951092.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void linkSelectionFields(TableFieldsMapper fm) throws THSException { - for (SelectionField<FieldValue> selField: fields) selField.value.link(fm); - - if (functions != null) { - for (SelectionField<IFunctionValue> fx: functions) { - fx.value.link(fm); - } - } - if (aggregates != null) { - for (SelectionField<Aggregate> aggr: aggregates) { - aggr.value.link(fm); - } - } - if (whereValues != null) { - for (Value value: whereValues) value.link(fm); - } - } - COM: <s> link all fields except having ones </s> - diff --git a/funcom_test/20951131.txt b/funcom_test/20951131.txt deleted file mode 100644 index 0e881425a21bf40a35848d376f0bd90144ced5be..0000000000000000000000000000000000000000 --- a/funcom_test/20951131.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setupUI() { -Container contentPane = getContentPane(); -contentPane.setLayout(new BorderLayout()); // optional ? - -JComponent upperComp = getUpperComponent(); -contentPane.add(upperComp, BorderLayout.PAGE_START); - -centerTabPane = new JTabbedPane(); -contentPane.add(centerTabPane, BorderLayout.CENTER); - -setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); -setSize(DFLT_SIZE); - } - COM: <s> sets up user interface objects </s> - diff --git a/funcom_test/21073719.txt b/funcom_test/21073719.txt deleted file mode 100644 index 840d4519e0b57978d66b9d82d488f964b7f0d182..0000000000000000000000000000000000000000 --- a/funcom_test/21073719.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void appendSlotValue(StringBuffer result, Slot slot){ - for (Iterator values = slot.getValues().iterator(); values.hasNext();){ - ValueSpecification next = (ValueSpecification)values.next(); - String nextDisplayValue = getSlotValue(next); - if (!isEmpty(nextDisplayValue)){ - result.append(" = ").append(nextDisplayValue); - //FIXME: for now stop on first success - break; - } - } - } - COM: <s> fixme it is unclear from the spec how multiple values should be shown </s> - diff --git a/funcom_test/21079241.txt b/funcom_test/21079241.txt deleted file mode 100644 index 1eddb973ca9804516c184e9e800b0a9e357d6b9e..0000000000000000000000000000000000000000 --- a/funcom_test/21079241.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected IParser createAssocationRoleParser(boolean sourceNotTarget) { - LookupSuite lookupSuite = getAssociationLookupSuite(); - return new SemanticParserAdapter(new AssociationEndParser(lookupSuite), new AssociationEndApplyStrategy(sourceNotTarget), new AssociationEndToString.ROLE_VIEW(sourceNotTarget), - new AssociationEndToString.EDIT(sourceNotTarget)); - } - COM: <s> different views but shared common edit </s> - diff --git a/funcom_test/21098957.txt b/funcom_test/21098957.txt deleted file mode 100644 index a8f89428fc3288f5167c2221d43f57f090419f88..0000000000000000000000000000000000000000 --- a/funcom_test/21098957.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Date setDate(String value, HttpServletRequest request) throws ParseException { - Date member = null; - - // look first for a parameter than for a attribute - if (request.getParameter(value) != null) { - member = TextUtil.stringToDate(request.getParameter(value)); - } else { - if (request.getAttribute(value) != null) { - System.out.println("value " + request.getAttribute(value)); - member = (Date) request.getAttribute(value); - } - } - return member; - } - COM: <s> sets the date </s> - diff --git a/funcom_test/21098967.txt b/funcom_test/21098967.txt deleted file mode 100644 index 323d002a9c5858e32e508e217bc9036f23fa8fb6..0000000000000000000000000000000000000000 --- a/funcom_test/21098967.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private int setInt(String value, HttpServletRequest request) { - int member = -1; - - // look first for a parameter than for a attribute - if (request.getParameter(value) != null) { - member = Integer.parseInt(request.getParameter(value)); - } else { - if (request.getAttribute(value) != null) { - member = Integer.parseInt(request.getAttribute(value).toString()); - } - } - return member; - } - COM: <s> sets the int </s> - diff --git a/funcom_test/21098974.txt b/funcom_test/21098974.txt deleted file mode 100644 index 9ed5b7157f245aaa712646c1361cf161b71e4fd3..0000000000000000000000000000000000000000 --- a/funcom_test/21098974.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setRequestAttributes(HttpServletRequest request) { - request.setAttribute("dateFrom", this.dateFrom); - request.setAttribute("dateTill", this.dateTill); - request.setAttribute("scenario_id",new Integer(this.scenarioId)); - request.setAttribute("taskgroup_id", new Integer(this.taskgroupId)); - request.setAttribute("task_id", new Integer(this.taskId)); - } - COM: <s> sets the request attributes </s> - diff --git a/funcom_test/21103047.txt b/funcom_test/21103047.txt deleted file mode 100644 index 561cb6932bfafe7d22b09dd60a81455cf009ea61..0000000000000000000000000000000000000000 --- a/funcom_test/21103047.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addRule(String path, IXMLAction action) { - if (!paths.contains(path)) { - paths.add(path); - } - List list = null; - if (!actions.containsKey(path)) { - list = new ArrayList(); - actions.put(path, list); - } else { - list = (List)actions.get(path); - } - list.add(action); - } - COM: <s> adds a rule to the list of rules for the specified path </s> - diff --git a/funcom_test/21103051.txt b/funcom_test/21103051.txt deleted file mode 100644 index f605344f389e96978e6f71930e2ae2261e653527..0000000000000000000000000000000000000000 --- a/funcom_test/21103051.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addContext(String path, SAXContext context) { - List list = null; - if (!contexts.containsKey(path)) { - list = new ArrayList(); - contexts.put(path, list); - } else { - list = (List)contexts.get(path); - } - list.add(context); - } - COM: <s> adds the specified context to the list of contexts for the specified path </s> - diff --git a/funcom_test/21103175.txt b/funcom_test/21103175.txt deleted file mode 100644 index 3c4f85b405174b3472a89533f3f7e2513a0bc5df..0000000000000000000000000000000000000000 --- a/funcom_test/21103175.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public MBeanInfo getMBeanInfo(Class c) { - if (c == null) { - c = target.getClass(); - } - ExportedInterface exported = (ExportedInterface)interfaceMap.get(c); - if (exported != null) { - try { - return exported.getInfo(); - } catch (IntrospectionException e) { - return null; - } - } - return null; - } - COM: <s> returns the mbean info for the specified interface </s> - diff --git a/funcom_test/21103234.txt b/funcom_test/21103234.txt deleted file mode 100644 index 994cce52038e8a6ba25fa038348e56e0bf7b3a22..0000000000000000000000000000000000000000 --- a/funcom_test/21103234.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Element getFirstChildElement(Element element) { - NodeList children = element.getChildNodes(); - int len = children.getLength(); - for (int i = 0; i < len; i++) { - Node node = children.item(i); - if (node instanceof Element) { - return (Element)node; - } - } - return null; - } - COM: <s> returns the first child node of the specified element that is an </s> - diff --git a/funcom_test/21111592.txt b/funcom_test/21111592.txt deleted file mode 100644 index 6afaef985d436297e08a9b16de878bce3a1ea38b..0000000000000000000000000000000000000000 --- a/funcom_test/21111592.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void fireTreeStructureChanged(XSpaceTreeNode node) { - int len = treeModelListeners.size(); - TreeModelEvent e = new TreeModelEvent(this, new Object[] {node}); - for (int i = 0; i < len; i++) { - TreeModelListener tml = (TreeModelListener) treeModelListeners.get(i); - tml.treeStructureChanged(e); - } - } - COM: <s> the only event raised by this model is tree structure changed with the </s> - diff --git a/funcom_test/21111610.txt b/funcom_test/21111610.txt deleted file mode 100644 index 068b6b08d42d6519d42dedc294c76539bd59c256..0000000000000000000000000000000000000000 --- a/funcom_test/21111610.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Document getXML() throws XSpaceException { - if (!type.equals(TYPE_XML)) { - throw new XSpaceException("Value is not XML type"); - } - if (value == null) { - throw new XSpaceException("Value is null"); - } - try { - Document doc = XMLUtil.parse(value); - return doc; - } catch (Throwable t) { - throw new XSpaceException("Failed to parse XML"); - } - } - COM: <s> returns the xml document </s> - diff --git a/funcom_test/21269748.txt b/funcom_test/21269748.txt deleted file mode 100644 index 357f1e70aa5c83932088eb64c7bf7fae4c611b6d..0000000000000000000000000000000000000000 --- a/funcom_test/21269748.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void close() { - // Notify listeners - for (IChatStatusListener l : chatListeners) - l.chatClosed( this ); - // clean-up now - if (service != null) { - service.close(); // The chat service will clean-up all us as listeners too - service = null; - } - // Good bye, friends - chatListeners.clear(); - chatListeners = null; - } - COM: <s> close the chat this includes disconnecting from the underlying chat service </s> - diff --git a/funcom_test/21269759.txt b/funcom_test/21269759.txt deleted file mode 100644 index 9f6ac4b479d32ea6d51a653eb42fdedbc9e7e169..0000000000000000000000000000000000000000 --- a/funcom_test/21269759.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private IParticipant findModerator() { - IParticipant[] all = getChatRoomModel().getParticipants(); - - for (int i = 0; i < all.length; i++) { - IParticipant p = all[i]; - if (Role.MODERATOR.equals( p.getRole() )) - return p; - } - - return null; - } - COM: <s> find the first moderator in the chat room </s> - diff --git a/funcom_test/21269805.txt b/funcom_test/21269805.txt deleted file mode 100644 index 17c55d02c24c8c1650ac2e9084cc2fa6b505fcb3..0000000000000000000000000000000000000000 --- a/funcom_test/21269805.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testOrderingAmongTheRoles() { - Role[] roles = { Role.PARTICIPANT, Role.VISITOR, Role.MODERATOR }; - - Arrays.sort( roles ); - - assertTrue( Arrays.equals( new Role[] { Role.VISITOR, Role.PARTICIPANT, Role.MODERATOR }, roles ) ); - } - COM: <s> ensure that director moderator scribe participant visitor </s> - diff --git a/funcom_test/21269885.txt b/funcom_test/21269885.txt deleted file mode 100644 index e24082de420bb88b2c5824373f00eef8ed42ba19..0000000000000000000000000000000000000000 --- a/funcom_test/21269885.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setErrorMessage( String[] errorMessage ) { - if(errorMessage!=null){ - errorMessageText.setText(""); - for (int i = 0; i < errorMessage.length; i++) { - errorMessageText.setText(errorMessageText.getText()+ (errorMessage[i] == null ? "" : errorMessage[i]+"\n") ); - } - //errorMessageText.getParent().update(); - } - } - COM: <s> sets or clears the error message </s> - diff --git a/funcom_test/21269925.txt b/funcom_test/21269925.txt deleted file mode 100644 index 8dd0bf19fd62b433752392525d8c97303b205383..0000000000000000000000000000000000000000 --- a/funcom_test/21269925.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void createSashForm() { - sashForm = new SashForm( top, SWT.NONE ); - sashForm.setOrientation( org.eclipse.swt.SWT.VERTICAL ); - messageBoardText = new StyledText( sashForm, SWT.BORDER | SWT.V_SCROLL | SWT.WRAP ); - messageBoardText.setEditable( false ); - createComposite1(); - } - COM: <s> this method initializes the sashform container </s> - diff --git a/funcom_test/21269982.txt b/funcom_test/21269982.txt deleted file mode 100644 index 2e8319e28a074bb4081f34f2992a484ca31798ed..0000000000000000000000000000000000000000 --- a/funcom_test/21269982.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private ImageDescriptor loadAndRegisterIconImage( String symbolicName ) { - Bundle bundle = Platform.getBundle( ID ); - - URL url = bundle.getResource( ICON_PATH + symbolicName + ICON_FILES_EXT ); - ImageDescriptor descr = ImageDescriptor.createFromURL( url ); - getImageRegistry().put( symbolicName, descr ); - - return descr; - } - COM: <s> actually loads the image </s> - diff --git a/funcom_test/21270031.txt b/funcom_test/21270031.txt deleted file mode 100644 index 74e0b975319e9c1d1758ddd047c109ef5fb8dfe3..0000000000000000000000000000000000000000 --- a/funcom_test/21270031.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void notifyListeners() { - String message = getMessage(); - - // Workaround - // strips trailing carriage return and line feed - if (message.endsWith( SYSTEM_CR )) { - message = message.substring( 0, message.length() - SYSTEM_CR.length() ); - } - - if (message.length() > 0) { - for (ISendMessagelListener l : listeners) { - l.notifySendMessage( message ); - } - } - } - COM: <s> notifies all listeners about the incoming message </s> - diff --git a/funcom_test/21270265.txt b/funcom_test/21270265.txt deleted file mode 100644 index 1771fac2767978622ce26849acfb3f6c24405db3..0000000000000000000000000000000000000000 --- a/funcom_test/21270265.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void createCombo() { - GridData gridData = new org.eclipse.swt.layout.GridData(); - gridData.grabExcessHorizontalSpace = true; - gridData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER; - gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; - connectionCombo = new Combo( this, SWT.NONE ); - connectionCombo.setLayoutData(gridData); - } - COM: <s> this method initializes combo </s> - diff --git a/funcom_test/21270551.txt b/funcom_test/21270551.txt deleted file mode 100644 index 9433a65c13fbced0f3666af68d91ec5f5cf8698c..0000000000000000000000000000000000000000 --- a/funcom_test/21270551.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected XMPPConnection createConnection( String host, int port, String serviceName ) throws XMPPException { - ConnectionConfiguration config; - if (serviceName=="" || serviceName == null) - config = new ConnectionConfiguration(host, port); - else - config = new ConnectionConfiguration(host, port, serviceName); - //TODO: verify how the following statement works - config.setReconnectionAllowed(true); - - return new XMPPConnection( config ); - } - COM: <s> create a normal xmpp connection </s> - diff --git a/funcom_test/21305021.txt b/funcom_test/21305021.txt deleted file mode 100644 index 100a02a6dec4b7dda4c8c71907ad2b483ad7a409..0000000000000000000000000000000000000000 --- a/funcom_test/21305021.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String getTaggedResource(String id, String mediaType) { - // throw new InvalidMediaTypeException(); - logger.info("Get ID: " + makeIdentifier(id, mediaType)); - if ( store.hasResource(id, mediaType) ) { - String t = store.getText(id, mediaType); - logger.finer(" text = " + t); - return t; - } - return null; - } - COM: <s> return a resource </s> - diff --git a/funcom_test/21344301.txt b/funcom_test/21344301.txt deleted file mode 100644 index e8427f5d7348d077fdf81132d609de26f3be7784..0000000000000000000000000000000000000000 --- a/funcom_test/21344301.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private ApplicationSpec loadCurrentApplicationSpec() { - ApplicationSpec currentApplicationSpec = null; - if (currentApplicationSpecFile != null && currentApplicationSpecFile.exists()) { - try { - currentApplicationSpec = applicationSpecSerializer - .downloadApplicationSpec(new BufferedInputStream(new FileInputStream( - currentApplicationSpecFile))); - if (!validateCurrentApplicationSpec(currentApplicationSpec)) - currentApplicationSpec = null; - } catch (Exception e) { - log.error("Could not read local application spec file", e); - } - } - return currentApplicationSpec; - } - COM: <s> load and validate the current application specification </s> - diff --git a/funcom_test/21359224.txt b/funcom_test/21359224.txt deleted file mode 100644 index 1e64ca7e0a6afed49c58cbc42f235157ae3a2d7c..0000000000000000000000000000000000000000 --- a/funcom_test/21359224.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void updateCountryCode() { - String countryPrefix = countryPrefixTextField.getText(); - String countryCode = CountryPrefix.getCountryCode(countryPrefix); - - boolean temp = fullyInicialized; - fullyInicialized = false; - if (StringUtils.isEmpty(countryCode)) { - countryCodeComboBox.setSelectedIndex(0); - } else { - countryCodeComboBox.setSelectedItem(countryCode); - } - fullyInicialized = temp; - } - COM: <s> update country code according to country </s> - diff --git a/funcom_test/21359273.txt b/funcom_test/21359273.txt deleted file mode 100644 index 5c9b1334417aa95a998eeb78e36d605e758b0d82..0000000000000000000000000000000000000000 --- a/funcom_test/21359273.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected TaskPane wrapAsTaskPane(GatewayMessage gm, String title, Icon icon) { - TaskPane pane = new TaskPane(gm); - pane.setTitle(title); - pane.setIcon(icon); - pane.setScrollOnExpand(true); - pane.setCollapsed(true); - return pane; - } - COM: <s> wrap this message as a task pane </s> - diff --git a/funcom_test/21359309.txt b/funcom_test/21359309.txt deleted file mode 100644 index c3db9e9923a9cfe437d81e891349ef9b145c9d00..0000000000000000000000000000000000000000 --- a/funcom_test/21359309.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void importVCardFile(String fileName) { - Validate.notNull(fileName); - - vcardRadioButton.setSelected(true); - updateBrowsePanel(); - cardLayout.show(cardPanel, "browsePanel"); - actualCard = "browsePanel"; - fileTextField.setText(fileName); - forwardButtonActionPerformed(null); - } - COM: <s> change frame to parsing state and start parsing provided v card file </s> - diff --git a/funcom_test/21359319.txt b/funcom_test/21359319.txt deleted file mode 100644 index 3f462dbdab4228767293e81e2da2d13925775df4..0000000000000000000000000000000000000000 --- a/funcom_test/21359319.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean checkValid(JComponent c) { - boolean valid = true; - if (c == nameTextField) { - valid = StringUtils.isNotEmpty(nameTextField.getText()); - updateBorder(c, valid); - } else if (c == numberTextField) { - valid = Contact.isValidNumber(numberTextField.getText()); - updateBorder(c, valid); - } - return valid; - } - COM: <s> checks if components content is valid </s> - diff --git a/funcom_test/21359338.txt b/funcom_test/21359338.txt deleted file mode 100644 index fe109f6a570b2099c56e2ed3319c29d27f3b2260..0000000000000000000000000000000000000000 --- a/funcom_test/21359338.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void updateCredentialsInfoLabel() { - Gateway gateway = gatewayComboBox.getSelectedGateway(); - if (gateway != null && gateway.isLoginRequired() && - keyring.getKey(gateway.getName()) == null) { - credentialsInfoLabel.setVisible(true); - } else { - credentialsInfoLabel.setVisible(false); - } - } - COM: <s> show warning if user selected gateway requiring registration </s> - diff --git a/funcom_test/21359362.txt b/funcom_test/21359362.txt deleted file mode 100644 index 62d19aecc9dc17521c565efda2339d209d39b26f..0000000000000000000000000000000000000000 --- a/funcom_test/21359362.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setContacts(Collection<Contact> contacts) { - if (contacts.size() <= 1) { - setContact(contacts.size() <= 0 ? null : contacts.iterator().next()); - return; - } - setMultiMode(true); - gatewayComboBox.setSelectedGateway(contacts.iterator().next().getGateway()); - } - COM: <s> set contacts for collective editing </s> - diff --git a/funcom_test/21359380.txt b/funcom_test/21359380.txt deleted file mode 100644 index 929a3b2511577ecd394c1a30f67abaf041c9e12c..0000000000000000000000000000000000000000 --- a/funcom_test/21359380.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void prepareForShow() { - //no gateway, try to suggest one - if (gatewayComboBox.getSelectedGateway() == null) { - suggestGatewayAction.actionPerformed(null); - } - - //give focus - if (multiMode) { - gatewayComboBox.requestFocusInWindow(); - } else { - nameTextField.requestFocusInWindow(); - nameTextField.selectAll(); - } - } - COM: <s> improve focus etc </s> - diff --git a/funcom_test/21359426.txt b/funcom_test/21359426.txt deleted file mode 100644 index c0ac25f4d6e5d5d5102496db5469387fa4e9f3fc..0000000000000000000000000000000000000000 --- a/funcom_test/21359426.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void removeTaskPane(TaskPane taskPane) { - // find the index of this taskPane to remember it - lastPaneRemovedIndex = 0; - Component[] comps = taskContainer.getComponents(); - for (int i = 0; i < comps.length; i++) { - if (comps[i] == taskPane) { - lastPaneRemovedIndex = i; - } - } - //and remove it - taskContainer.remove(taskPane); - } - COM: <s> remove a task pane from the container </s> - diff --git a/funcom_test/21359431.txt b/funcom_test/21359431.txt deleted file mode 100644 index 3e2a1537ebe8bc66ceb7ccb55afcb6d5c1f7743c..0000000000000000000000000000000000000000 --- a/funcom_test/21359431.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean setSelectedContact(String name) { - if (name == null || name.length() == 0) { - return false; - } - for (Contact c : contacts.getAll()) { - if (c.getName().equals(name)) { - contactList.setSelectedValue(c, true); - return true; - } - } - return false; - } - COM: <s> set selected contact in contact list based on contact name </s> - diff --git a/funcom_test/21359507.txt b/funcom_test/21359507.txt deleted file mode 100644 index 0ee10e92f63133549ac6864f695ebc15faef8336..0000000000000000000000000000000000000000 --- a/funcom_test/21359507.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void updateInfoLabel() { - boolean wasVisible = restartLabel.isVisible(); - restartLabel.setVisible(!restartRequests.isEmpty()); - - if (!fullyInicialized) { - return; - } - if (!wasVisible && restartLabel.isVisible()) { - this.validate(); - if (MiscUtils.isCropped(closeButton)) { - this.pack(); - } - } - } - COM: <s> show or hide info panel according to requests in restart requests </s> - diff --git a/funcom_test/21359552.txt b/funcom_test/21359552.txt deleted file mode 100644 index 57f6cb3938fa54f33d8075bd53b7f1ce7af3769f..0000000000000000000000000000000000000000 --- a/funcom_test/21359552.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void updateItems() { - MainFrame frame = Context.mainFrame; - - boolean queuePaused = queue.isPaused(); - pauseQueueItem.setLabel(queuePaused ? unpauseQueue : pauseQueue); - //visible if visible and not iconified - boolean visible = frame.isVisible() && (frame.getExtendedState() & JFrame.ICONIFIED) == 0; - toggleItem.setLabel(visible ? hideWindow : showWindow); - } - COM: <s> update labels in popup menu according to current program state </s> - diff --git a/funcom_test/21359554.txt b/funcom_test/21359554.txt deleted file mode 100644 index 82c9c6d22c051ec6a36a4f3674611b297d7039be..0000000000000000000000000000000000000000 --- a/funcom_test/21359554.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void updateTrayImage() { - int size = queue.size(); - boolean changed = false; - - if (size > 0) { - changed = (trayImageCurrent != trayImageSending); - trayImageCurrent = trayImageSending; - } else { - changed = (trayImageCurrent != trayImageDefault); - trayImageCurrent = trayImageDefault; - } - - if (trayIcon != null && changed) { - trayIcon.setImage(trayImageCurrent); - } - } - COM: <s> update tray image according to program state </s> - diff --git a/funcom_test/21359561.txt b/funcom_test/21359561.txt deleted file mode 100644 index ce3002eb45fa4e7cf9a296b86b9725fecaf5d5d3..0000000000000000000000000000000000000000 --- a/funcom_test/21359561.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void updateProxy() { - if (!fullyInicialized) { - return; - } - boolean useProxy = useProxyCheckBox.isSelected(); - - if (useProxy) { - ProxyManager.setProxy(httpProxyTextField.getText(), - httpsProxyTextField.getText(), - socksProxyTextField.getText()); - } else { - ProxyManager.setProxy(null, null, null); - } - } - COM: <s> reaction to proxy configuration change </s> - diff --git a/funcom_test/21359704.txt b/funcom_test/21359704.txt deleted file mode 100644 index 1b63cde22c0015117cad60a6f641942f10502c32..0000000000000000000000000000000000000000 --- a/funcom_test/21359704.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void showSearchField(String text) { - if (StringUtils.isEmpty(text)) { - remove(searchField); - } else { - searchField.setText(text); - if (searchField.getParent() == null) { - add(searchField); - } - } - searchField.invalidate(); - validate(); - } - COM: <s> show search field in contact list or hide it </s> - diff --git a/funcom_test/21359747.txt b/funcom_test/21359747.txt deleted file mode 100644 index 38324898a757a6c662e0a1d2fea093c19f4a5689..0000000000000000000000000000000000000000 --- a/funcom_test/21359747.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void loadHistory() throws Exception { - logger.fine("Loading history..."); - if (historyFile.exists()) { - ArrayList<History.Record> records = ImportManager.importHistory(historyFile); - ContinuousSaveManager.disableHistory(); - History.getInstance().clearRecords(); - History.getInstance().addRecords(records); - ContinuousSaveManager.enableHistory(); - } - } - COM: <s> load sms history </s> - diff --git a/funcom_test/21359805.txt b/funcom_test/21359805.txt deleted file mode 100644 index 96393043ebc11be1f7fdc1283110644a7a03fc4d..0000000000000000000000000000000000000000 --- a/funcom_test/21359805.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean isFirstInstance() { - try { - FileOutputStream out = new FileOutputStream(lockFile); - FileChannel channel = out.getChannel(); - lock = channel.tryLock(); - if (lock == null) { - return false; - } - lockFile.deleteOnExit(); - } catch (Throwable t) { - logger.log(Level.INFO, "Program lock could not be obtained", t); - return false; - } - return true; - } - COM: <s> checks if this is the first instance of the program </s> - diff --git a/funcom_test/21359816.txt b/funcom_test/21359816.txt deleted file mode 100644 index 7db43f88384b43f403ded1859e48b8960da64da8..0000000000000000000000000000000000000000 --- a/funcom_test/21359816.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String toDebugString() { - return "[name=" + name + ", number=" + Contact.anonymizeNumber(number) + - ", gateway=" + gateway + ", status=" + status + ", gatewayMsg=" + - gatewayMsg + ", errMsg=" + errMsg + "]"; - } - COM: <s> return very detailed description of the instance used mainly for </s> - diff --git a/funcom_test/21359817.txt b/funcom_test/21359817.txt deleted file mode 100644 index 7df235bda556228656d6a0ea5e7bbf03fda8f61d..0000000000000000000000000000000000000000 --- a/funcom_test/21359817.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void createHistory(SMS sms) { - History.Record record = new History.Record(sms.getNumber(), sms.getText(), - sms.getGateway(), sms.getName(), sms.getSenderNumber(), - sms.getSenderName(), null); - history.addRecord(record); - } - COM: <s> saves history of sent sms </s> - diff --git a/funcom_test/21359835.txt b/funcom_test/21359835.txt deleted file mode 100644 index 6801b783bc5c54c226eff917b941bed957dcf48d..0000000000000000000000000000000000000000 --- a/funcom_test/21359835.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean addAll(Collection<SMS> collection) { - Validate.notNull(collection, "collection is null"); - Validate.noNullElements(collection); - - logger.log(Level.FINE, "Adding {0} new SMS to the queue", collection.size()); - boolean added = false; - for (SMS sms : collection) { - if (add(sms)) { - added = true; - } - } - return added; - } - COM: <s> add collection of new sms to the queue </s> - diff --git a/funcom_test/21359860.txt b/funcom_test/21359860.txt deleted file mode 100644 index d438024aff9017e5bee9c6dba4e1416283800f6d..0000000000000000000000000000000000000000 --- a/funcom_test/21359860.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void fireActionPerformed(int id, String command) { - ActionEvent event = new ActionEvent(source, id, command); - for (ListIterator<ActionListener> it = listeners.listIterator(listeners.size()); it.hasPrevious(); ) { - it.previous().actionPerformed(event); - } - } - COM: <s> fire new action event </s> - diff --git a/funcom_test/21359881.txt b/funcom_test/21359881.txt deleted file mode 100644 index d41a5ec6d59db53bd8a424dc2961f59f05f9af4c..0000000000000000000000000000000000000000 --- a/funcom_test/21359881.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private File backupFile(File file) throws IOException { - if (!file.exists()) { - return null; - } - String backupName = file.getAbsolutePath() + "~"; - File backup = new File(backupName); - FileUtils.copyFile(file, backup); - file.delete(); - return backup; - } - COM: <s> copies original file to backup file with same filename but ending with </s> - diff --git a/funcom_test/21359888.txt b/funcom_test/21359888.txt deleted file mode 100644 index e3a4194ac323df551485cf7a18fe597e35ed050f..0000000000000000000000000000000000000000 --- a/funcom_test/21359888.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setNumber(String number) { - if (number == null) { - number = ""; - } - if (number.length() > 0 && !isValidNumber(number)) { - throw new IllegalArgumentException("Number is not valid: " + number); - } - - String oldNumber = this.number; - this.number = number; - changeSupport.firePropertyChange("number", oldNumber, number); - } - COM: <s> set full phone number </s> - diff --git a/funcom_test/21359907.txt b/funcom_test/21359907.txt deleted file mode 100644 index 5b3559808ee6e474b4d3599ad0b4112bc2f5250d..0000000000000000000000000000000000000000 --- a/funcom_test/21359907.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setPaused(boolean paused) { - this.paused.set(paused); - if (paused) { - logger.fine("Queue is now paused"); - valuedSupport.fireEventOccured(Events.QUEUE_PAUSED, null); - } else { - logger.fine("Queue is now resumed"); - valuedSupport.fireEventOccured(Events.QUEUE_RESUMED, null); - } - } - COM: <s> sets whether queue is currently paused </s> - diff --git a/funcom_test/21359922.txt b/funcom_test/21359922.txt deleted file mode 100644 index 6e6863dfe008c09401e58b50577a49ef5cb5d260..0000000000000000000000000000000000000000 --- a/funcom_test/21359922.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void putKey(String gatewayName, Tuple<String, String> key) { - if (putKeyImpl(gatewayName, key)) { - logger.finer("New keyring key added: [gatewayName=" + gatewayName + "]"); - actionSupport.fireActionPerformed(ACTION_ADD_KEY, null); - } - } - COM: <s> put key for chosen gateway </s> - diff --git a/funcom_test/21359924.txt b/funcom_test/21359924.txt deleted file mode 100644 index 5209c1a888965273c485b66c8b6e0cd2dff76325..0000000000000000000000000000000000000000 --- a/funcom_test/21359924.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean putKeyImpl(String gatewayName, Tuple<String, String> key) { - if (gatewayName == null) { - throw new IllegalArgumentException("gatewayName"); - } - if (key == null) { - throw new IllegalArgumentException("key"); - } - Tuple<String, String> previous = keyring.put(gatewayName, key); - return previous == null || !ObjectUtils.equals(previous, key); - } - COM: <s> inner execution code for put key method </s> - diff --git a/funcom_test/21359940.txt b/funcom_test/21359940.txt deleted file mode 100644 index 75e0b14944dae0d1be4d3947db61ce84a773f49e..0000000000000000000000000000000000000000 --- a/funcom_test/21359940.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSMSSent(SMS sms) { - Validate.notNull(sms); - - logger.log(Level.FINE, "Marking sms as successfully sent: {0}", sms); - sms.setStatus(SMS.Status.SENT); - valuedSupport.fireEventOccured(Events.SMS_SENT, sms); - - updateGatewayDelay(sms.getGateway()); - remove(sms); //remove it from the queue - timer.start(); - } - COM: <s> mark the sms as successfully sent </s> - diff --git a/funcom_test/21359943.txt b/funcom_test/21359943.txt deleted file mode 100644 index 228174154eb2cc7f95ba0830e1e7c80065ef3778..0000000000000000000000000000000000000000 --- a/funcom_test/21359943.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getSMSLength() { - int min = Integer.MAX_VALUE; - for (Contact c : contacts) { - Gateway gateway = Gateways.getGateway(c.getGateway()); - if (gateway == null) { - continue; - } - min = Math.min(min, gateway.getSMSLength()); - } - if (min <= 0) { - //sms length is unspecified - min = -1; - } - return min; - } - COM: <s> get length of one sms </s> - diff --git a/funcom_test/21359945.txt b/funcom_test/21359945.txt deleted file mode 100644 index 3f88d55e45b2ff27fdab97407ffea556ae24de0d..0000000000000000000000000000000000000000 --- a/funcom_test/21359945.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean addAll(Collection<Gateway> gateways) { - Validate.notNull(gateways); - Validate.noNullElements(gateways); - - logger.log(Level.FINE, "Adding {0} gateways: {1}", - new Object[]{gateways.size(), gateways}); - boolean changed = Gateways.gateways.addAll(gateways); - - if (changed) { - valuedSupport.fireEventOccured(Events.ADDED_GATEWAYS, null); - } - return changed; - } - COM: <s> add new gateways </s> - diff --git a/funcom_test/21359947.txt b/funcom_test/21359947.txt deleted file mode 100644 index f48477d64f88dee804231a1f864d24c33e6a42c1..0000000000000000000000000000000000000000 --- a/funcom_test/21359947.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setSMSSending(SMS sms) { - Validate.notNull(sms); - - logger.log(Level.FINE, "Marking SMS as currently being sent: {0}", sms); - sms.setStatus(SMS.Status.SENDING); - valuedSupport.fireEventOccured(Events.SENDING_SMS, sms); - } - COM: <s> mark sms as currently being sent </s> - diff --git a/funcom_test/21359951.txt b/funcom_test/21359951.txt deleted file mode 100644 index ba6d8f002b3da4146e327b4efbd89ac90000bc3b..0000000000000000000000000000000000000000 --- a/funcom_test/21359951.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void show(Contact contact) { - logger.fine("Showing edit contact dialog for contact: " + contact); - this.contact = contact; - init(); - setLocationRelativeTo(Context.mainFrame); - optionPane.setValue(JOptionPane.UNINITIALIZED_VALUE); - panel.setContact(contact); - panel.prepareForShow(); - setVisible(true); - } - COM: <s> show dialog with existing or new null contact </s> - diff --git a/funcom_test/21359957.txt b/funcom_test/21359957.txt deleted file mode 100644 index 031ab068e61de5c2bcb68576de1c1f5d1ded2632..0000000000000000000000000000000000000000 --- a/funcom_test/21359957.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean removeAll(Collection<Gateway> gateways) { - Validate.notNull(gateways); - Validate.noNullElements(gateways); - - logger.log(Level.FINE, "Removing {0} gateways: {1}", - new Object[]{gateways.size(), gateways}); - boolean changed = Gateways.gateways.removeAll(gateways); - - if (changed) { - valuedSupport.fireEventOccured(Events.REMOVED_GATEWAYS, null); - } - return changed; - } - COM: <s> remove existing gateways </s> - diff --git a/funcom_test/21359958.txt b/funcom_test/21359958.txt deleted file mode 100644 index 10922a31742132022cca831ef979c84b8c375928..0000000000000000000000000000000000000000 --- a/funcom_test/21359958.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void markIfReady(SMS sms) { - Validate.notNull(sms); - - long delay = getSMSDelay(sms); - if (sms.getStatus() == SMS.Status.WAITING && delay <= 0) { - logger.log(Level.FINER, "Marking SMS as ready: {0}", sms); - sms.setStatus(SMS.Status.READY); - valuedSupport.fireEventOccured(Events.NEW_SMS_READY, sms); - } - } - COM: <s> check if sms is ready and set status if it is </s> - diff --git a/funcom_test/21359993.txt b/funcom_test/21359993.txt deleted file mode 100644 index 884cd4def812b50ea11488a79e501c65883ee85a..0000000000000000000000000000000000000000 --- a/funcom_test/21359993.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void updateUI(DocumentEvent e) { - try { - envelope.setText(e.getDocument().getText(0,e.getDocument().getLength())); - } catch (BadLocationException ex) { - logger.log(Level.SEVERE, "Error getting sms text", ex); - } - } - COM: <s> update form components </s> - diff --git a/funcom_test/21360061.txt b/funcom_test/21360061.txt deleted file mode 100644 index bb50d51eb82dadf2b8f5bec51c83a1e6d4eb1198..0000000000000000000000000000000000000000 --- a/funcom_test/21360061.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void finishedSending(SMS sms, boolean success) { - logger.log(Level.FINE, "Finished sending SMS: {0}", sms.toDebugString()); - workers.remove(sms.getGateway()); - if (success) { - queue.setSMSSent(sms); - } else { - queue.setSMSFailed(sms); - } - //look for another sms to send - sendNew(sms.getGateway()); - } - COM: <s> handle processed sms </s> - diff --git a/funcom_test/21360075.txt b/funcom_test/21360075.txt deleted file mode 100644 index 84f1523e8797c48771c7517598ef560bb94dbae2..0000000000000000000000000000000000000000 --- a/funcom_test/21360075.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void init() { - if (engine == null) { - engine = manager.getEngineByName("js"); - invocable = (Invocable) engine; - } - if (engine == null) { - throw new IllegalStateException("JavaScript execution not supported"); - } - if (variables == null) { - variables = new HashMap<GatewayVariable, String>(); - } - } - COM: <s> recreate needed variables before every use </s> - diff --git a/funcom_test/21360079.txt b/funcom_test/21360079.txt deleted file mode 100644 index 64b2bc2c8851b13bdbad6d65c6959c4ebd240819..0000000000000000000000000000000000000000 --- a/funcom_test/21360079.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String getPreferredLanguage(Gateway gateway) { - List<String> languages = Arrays.asList(gateway.getSupportedLanguages()); - String defLang = Locale.getDefault().getLanguage(); - if (languages.isEmpty() || languages.contains(defLang)) { - return defLang; - } else { - return languages.get(0); - } - } - COM: <s> compute preffered language to retrieve web content based on user default </s> - diff --git a/funcom_test/21360403.txt b/funcom_test/21360403.txt deleted file mode 100644 index e9b974991f431f85ec4848eab9f4fd065bf47e27..0000000000000000000000000000000000000000 --- a/funcom_test/21360403.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setLookAndFeel(ThemeManager.LAF lookAndFeel) { - if (lookAndFeel == null) { - throw new IllegalArgumentException("lookAndFeel may not be null"); - } - ThemeManager.LAF oldLookAndFeel = this.lookAndFeel; - this.lookAndFeel = lookAndFeel; - changeSupport.firePropertyChange("lookAndFeel", oldLookAndFeel, lookAndFeel); - } - COM: <s> set current look and feel </s> - diff --git a/funcom_test/21360488.txt b/funcom_test/21360488.txt deleted file mode 100644 index 8905e3491e32c3bb06d0e83c5b0f3a12514e1398..0000000000000000000000000000000000000000 --- a/funcom_test/21360488.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setCheckUpdatePolicy(CheckUpdatePolicy checkUpdatePolicy) { - if (checkUpdatePolicy == null) { - checkUpdatePolicy = CheckUpdatePolicy.CHECK_ALL; - } - CheckUpdatePolicy old = this.checkUpdatePolicy; - this.checkUpdatePolicy = checkUpdatePolicy; - changeSupport.firePropertyChange("checkUpdatePolicy", old, checkUpdatePolicy); - } - COM: <s> set check update policy </s> - diff --git a/funcom_test/21360502.txt b/funcom_test/21360502.txt deleted file mode 100644 index 8ae4a47dd3a7b61bdab26dc1c5a775e6349812d4..0000000000000000000000000000000000000000 --- a/funcom_test/21360502.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setCheckForUnstableUpdates(boolean checkForUnstableUpdates) { - if (!isStableVersion()) { - checkForUnstableUpdates = true; - } - boolean old = this.checkForUnstableUpdates; - this.checkForUnstableUpdates = checkForUnstableUpdates; - changeSupport.firePropertyChange("checkForUnstableUpdates", old, checkForUnstableUpdates); - } - COM: <s> set if should check for unstable versions </s> - diff --git a/funcom_test/21412264.txt b/funcom_test/21412264.txt deleted file mode 100644 index d0c7235002fa25b06619c87cead73b27c120a3a8..0000000000000000000000000000000000000000 --- a/funcom_test/21412264.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initialize() { - mCellSide = mBoardSide/mNumCellsAcross; - mBackgroundColor = Color.WHITE; - mGridLineColor = Color.BLACK; - //We add 1 to the board size so that the final gridlines are drawn in the x and y planes. - this.setSize(mBoardSide + 1, mBoardSide + 1); - this.setLayout(new GridBagLayout()); - this.setPreferredSize(new Dimension(mBoardSide + 1, mBoardSide + 1)); - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/21412540.txt b/funcom_test/21412540.txt deleted file mode 100644 index 2fcf84e71edac6bcb6a8f77928773cf3264dce4f..0000000000000000000000000000000000000000 --- a/funcom_test/21412540.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Player getPlayerByQueue(String queueName) { - for (int i = 0; i < this.players.size(); i++) { - String currentQueue = this.players.elementAt(i).getQueue(); - if (currentQueue.equals(queueName)) { - return this.players.elementAt(i).getPlayer(); - } - } - return null; - } - COM: <s> get the player object from the queue name </s> - diff --git a/funcom_test/21412543.txt b/funcom_test/21412543.txt deleted file mode 100644 index 1b387f9e580b97bf6b3d1c1ab20cc9bf67ce2b59..0000000000000000000000000000000000000000 --- a/funcom_test/21412543.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getQueueByPlayerId(String playerId) { - for (int i = 0; i < this.players.size(); i++) { - String currentPid = this.players.elementAt(i).getPlayer().getId(); - if (currentPid.equals(playerId)) { - return this.players.elementAt(i).getQueue(); - } - } - return null; - } - COM: <s> get the queue object from the player id </s> - diff --git a/funcom_test/21412583.txt b/funcom_test/21412583.txt deleted file mode 100644 index 6a8d9aeedbbc17eac972fd0a08e9d33acfc2972a..0000000000000000000000000000000000000000 --- a/funcom_test/21412583.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Player getPlayer(String playerId) { - for (int i = 0; i < this.players.size(); i++) { - String thisPlayerId = this.players.elementAt(i).getPlayer().getId(); - if (thisPlayerId.equals(playerId)) { - return this.players.elementAt(i).getPlayer(); - } - } - return null; - } - COM: <s> get the player object by player id </s> - diff --git a/funcom_test/21412710.txt b/funcom_test/21412710.txt deleted file mode 100644 index 786b560b4b8b762abd522ccacd301ccca229bf00..0000000000000000000000000000000000000000 --- a/funcom_test/21412710.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void print() { - System.out.println(" 0123456789"); - for (int y = 0; y < this.board.length; y++) { - System.out.print(y + " "); - for (int x = 0; x < this.board.length; x++) { - System.out.print(this.board[x][y]); - } - System.out.println(" " + y); - } - System.out.println(" 0123456789"); - } - COM: <s> prints out an ascii version of the current board </s> - diff --git a/funcom_test/21518991.txt b/funcom_test/21518991.txt deleted file mode 100644 index bf396a7a87287394c3b5fafb2acce5c4c15e65d7..0000000000000000000000000000000000000000 --- a/funcom_test/21518991.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void onModuleLoad() { - - LoginServiceAsync loginService = GWT.create(LoginService.class); - loginService.login(GWT.getHostPageBaseURL(), new AsyncCallback<LoginInfo>() { - - public void onFailure(Throwable caught) { - Window.alert("登入失敗"); - } - - public void onSuccess(LoginInfo result) { - loginInfo = result ; - MyInfo.set(result); - if (loginInfo.isLoggedIn()) { - RootPanel.get().add(MainForm.getInstance()); - } else { - loadLogin(); - } - } - }); - } - COM: <s> this is the entry point method </s> - diff --git a/funcom_test/21621174.txt b/funcom_test/21621174.txt deleted file mode 100644 index dd7a09aae2fccd1bc1ea805f90d220864afae4d3..0000000000000000000000000000000000000000 --- a/funcom_test/21621174.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void close() { - Trace.trace(Trace.FINEST, "Closing connection"); - try { - in.getOutputStream().flush(); - in.shutdownInput(); - in.shutdownOutput(); - - out.getOutputStream().flush(); - out.shutdownInput(); - out.shutdownOutput(); - Trace.trace(Trace.FINEST, "Connection closed"); - } catch (Exception ex) { - Trace.trace(Trace.WARNING, "Error closing connection " + this, ex); - } - } - COM: <s> close the connection </s> - diff --git a/funcom_test/21621198.txt b/funcom_test/21621198.txt deleted file mode 100644 index 7922fe5c07ec141736b155ef72e38506bd65d49d..0000000000000000000000000000000000000000 --- a/funcom_test/21621198.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addToRequest(byte[] addRequest) { - if (addRequest == null || addRequest.length == 0) - return; - - if (request == null || request.length == 0) { - setRequest(addRequest); - return; - } - - int size = request.length + addRequest.length; - byte[] b = new byte[size]; - System.arraycopy(request, 0, b, 0, request.length); - System.arraycopy(addRequest, 0, b, request.length, addRequest.length); - request = b; - fireChangedEvent(); - } - COM: <s> add to the request </s> - diff --git a/funcom_test/21621202.txt b/funcom_test/21621202.txt deleted file mode 100644 index ea624f9742d56b8dc351a08475fad720930068a2..0000000000000000000000000000000000000000 --- a/funcom_test/21621202.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void startMonitor(IMonitor monitor) throws CoreException { - if (!monitors.contains(monitor)) - return; - - if (AcceptThread.isPortInUse(monitor.getLocalPort())) - throw new CoreException(new Status(IStatus.ERROR, MonitorPlugin.PLUGIN_ID, 0, NLS.bind(Messages.errorPortInUse, monitor.getLocalPort() + ""), null)); - - AcceptThread thread = new AcceptThread(monitor); - thread.startServer(); - threads.put(monitor, thread); - } - COM: <s> start a monitor </s> - diff --git a/funcom_test/21621205.txt b/funcom_test/21621205.txt deleted file mode 100644 index 4c8ab6c239e7d5e5c40578444d8de452cca5fdc2..0000000000000000000000000000000000000000 --- a/funcom_test/21621205.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addToResponse(byte[] addResponse) { - if (addResponse == null || addResponse.length == 0) - return; - - if (response == null || response.length == 0) { - setResponse(addResponse); - return; - } - - int size = response.length + addResponse.length; - byte[] b = new byte[size]; - System.arraycopy(response, 0, b, 0, response.length); - System.arraycopy(addResponse, 0, b, response.length, addResponse.length); - response = b; - fireChangedEvent(); - } - COM: <s> add to the response </s> - diff --git a/funcom_test/21621231.txt b/funcom_test/21621231.txt deleted file mode 100644 index d7ec6ee00e15dbaafa59f2542e086abc1e4bd373..0000000000000000000000000000000000000000 --- a/funcom_test/21621231.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void addResendRequest(Request request, ResendHTTPRequest resendReq) { - if (request == null || resendReq == null) - return; - - List<ResendHTTPRequest> list = null; - try { - list = resendMap.get(request); - } catch (Exception e) { - // ignore - } - - if (list == null) { - list = new ArrayList<ResendHTTPRequest>(); - resendMap.put(request, list); - } - list.add(resendReq); - } - COM: <s> adds a resend request to this request </s> - diff --git a/funcom_test/21621242.txt b/funcom_test/21621242.txt deleted file mode 100644 index 93218c0e7af2a3a864a267022f77f22b9f009fd4..0000000000000000000000000000000000000000 --- a/funcom_test/21621242.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void fillBuffer() throws IOException { - int n = in.read(readBuffer); - - if (n <= 0) - throw new IOException("End of input"); - - // add to full buffer - int len = buffer.length - bufferIndex; - if (len < 0) - len = 0; - byte[] x = new byte[n + len]; - System.arraycopy(buffer, bufferIndex, x, 0, len); - System.arraycopy(readBuffer, 0, x, len, n); - bufferIndex = 0; - buffer = x; - } - COM: <s> read more data into the buffer </s> - diff --git a/funcom_test/21621321.txt b/funcom_test/21621321.txt deleted file mode 100644 index 0a4fea3f0446d305b3dbb133088bbe0a764a09f4..0000000000000000000000000000000000000000 --- a/funcom_test/21621321.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void setLabel(String s) { - try { - int index1 = s.indexOf(' '); - if (index1 < 0 || index1 > 15) - return; - int index2 = s.indexOf(' ', index1 + 1); - if (index2 < 0) - return; - - conn.setLabel(s.substring(index1 + 1, index2), true); - } catch (Exception e) { - // ignore - } - } - COM: <s> sets the title of the call </s> - diff --git a/funcom_test/21628829.txt b/funcom_test/21628829.txt deleted file mode 100644 index d19c9597dff7fc10cabc763e5051b604ff20187c..0000000000000000000000000000000000000000 --- a/funcom_test/21628829.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private int getColumnCount(UIComponent component) { - int count; - Object value = component.getAttributes().get("columns"); - if ((value != null) && (value instanceof Integer)) { - count = (Integer) value; - } else { - count = 2; - } - if (count < 1) { - count = 1; - } - return (count); - } - COM: <s> returns number of columns of the grid converting the value </s> - diff --git a/funcom_test/21628867.txt b/funcom_test/21628867.txt deleted file mode 100644 index 8092b43cd59d934113835d2d06603a906464a3e0..0000000000000000000000000000000000000000 --- a/funcom_test/21628867.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getActionStr(FacesContext context) { - String viewId = context.getViewRoot().getViewId(); - String actionURL = - context.getApplication().getViewHandler(). - getActionURL(context, viewId); - return (context.getExternalContext().encodeActionURL(actionURL)); - } - COM: <s> p return the value to be rendered as the code action code attribute </s> - diff --git a/funcom_test/21628930.txt b/funcom_test/21628930.txt deleted file mode 100644 index bad14abfac2c58d956b090738241131dc78870e0..0000000000000000000000000000000000000000 --- a/funcom_test/21628930.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void writeComment(Object comment) throws IOException { - if (comment == null) { - // PENDING i18n - throw new NullPointerException( - "Argument Error: One or more parameters are null."); - } - closeStartIfNecessary(); - writer.write("<!-- "); - writer.write(comment.toString()); - writer.write(" -->"); - } - COM: <s> p write a comment string containing the specified text </s> - diff --git a/funcom_test/21628954.txt b/funcom_test/21628954.txt deleted file mode 100644 index 0340b4d9395a431583da63ccdfe6cf8091670a57..0000000000000000000000000000000000000000 --- a/funcom_test/21628954.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void writeText(char text[]) throws IOException { - if (text == null) { - // PENDING i18n - throw new NullPointerException( - "Argument Error: One or more parameters are null."); - } - closeStartIfNecessary(); - if (dontEscape) { - writer.write(text); - } else { - Util.writeText(writer, buffer, text); - } - } - COM: <s> p write properly escaped text from a character array </s> - diff --git a/funcom_test/21629286.txt b/funcom_test/21629286.txt deleted file mode 100644 index ef6e9ceb025bee7539ae965c17a5555d1314f188..0000000000000000000000000000000000000000 --- a/funcom_test/21629286.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String getURI(FacesContext context) { - StringBuffer sb = new StringBuffer(); - sb.append(context.getExternalContext().getRequestContextPath()); - - // if this mapping is changed, the following lines must be changed as well. - sb.append("/faces"); - sb.append(context.getViewRoot().getViewId()); - - return (sb.toString()); - } - COM: <s> p return the context relative path for the current page </s> - diff --git a/funcom_test/21629615.txt b/funcom_test/21629615.txt deleted file mode 100644 index 28db7e575dab3974d8b98197ec3fb0e0cf7aeccf..0000000000000000000000000000000000000000 --- a/funcom_test/21629615.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getWidth() { - if (null != this.width) { - return this.width; - } - ValueExpression _ve = getValueExpression("width"); - if (_ve != null) { - return (java.lang.String) _ve.getValue(getFacesContext().getELContext()); - } else { - return null; - } - } - COM: <s> p return the width of the chart </s> - diff --git a/funcom_test/21629647.txt b/funcom_test/21629647.txt deleted file mode 100644 index c1143fe415f562c737693a00d2833ae97402da53..0000000000000000000000000000000000000000 --- a/funcom_test/21629647.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getHeight() { - if (null != this.height) { - return this.height; - } - ValueExpression _ve = getValueExpression("height"); - if (_ve != null) { - return (java.lang.String) _ve.getValue(getFacesContext().getELContext()); - } else { - return null; - } - } - COM: <s> p return the height of the chart </s> - diff --git a/funcom_test/21629677.txt b/funcom_test/21629677.txt deleted file mode 100644 index 96c1c839764a3152aadd020676fd1d0f091a69ef..0000000000000000000000000000000000000000 --- a/funcom_test/21629677.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getOrientation() { - if (null != this.orientation) { - return this.orientation; - } - ValueExpression _ve = getValueExpression("orientation"); - if (_ve != null) { - return (java.lang.String) _ve.getValue(getFacesContext().getELContext()); - } else { - return null; - } - } - COM: <s> p return the orientation of the chart </s> - diff --git a/funcom_test/21629709.txt b/funcom_test/21629709.txt deleted file mode 100644 index 848890edefa370603148b960d52dfd283bd889c2..0000000000000000000000000000000000000000 --- a/funcom_test/21629709.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getType() { - if (null != this.type) { - return this.type; - } - ValueExpression _ve = getValueExpression("type"); - if (_ve != null) { - return (java.lang.String) _ve.getValue(getFacesContext().getELContext()); - } else { - return null; - } - } - COM: <s> p return the type of the chart </s> - diff --git a/funcom_test/21629719.txt b/funcom_test/21629719.txt deleted file mode 100644 index fabaa7e6d97f35615af02803343689757d01131a..0000000000000000000000000000000000000000 --- a/funcom_test/21629719.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void decode(FacesContext context, UIComponent component) { - - if ((context == null) || (component == null)) { - throw new NullPointerException(); - } - MapComponent map = (MapComponent) component; - - String key = getName(context, map); - String value = (String) - context.getExternalContext().getRequestParameterMap().get(key); - if (value != null) { - map.setCurrent(value); - } - - } - COM: <s> p decode the incoming request parameters to determine which </s> - diff --git a/funcom_test/21629736.txt b/funcom_test/21629736.txt deleted file mode 100644 index 92b91ecf9dc8e46aba8ea69a66ed6e6f620b74a4..0000000000000000000000000000000000000000 --- a/funcom_test/21629736.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getTitle() { - if (null != this.title) { - return this.title; - } - ValueExpression _ve = getValueExpression("title"); - if (_ve != null) { - return (java.lang.String) _ve.getValue(getFacesContext().getELContext()); - } else { - return null; - } - } - COM: <s> p return the title of the chart </s> - diff --git a/funcom_test/21629780.txt b/funcom_test/21629780.txt deleted file mode 100644 index d719f2fd55588de3fc3273879063ff9e4f76e937..0000000000000000000000000000000000000000 --- a/funcom_test/21629780.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getXlabel() { - if (null != this.xlabel) { - return this.xlabel; - } - ValueExpression _ve = getValueExpression("xlabel"); - if (_ve != null) { - return (java.lang.String) _ve.getValue(getFacesContext().getELContext()); - } else { - return null; - } - } - COM: <s> p return the x axis label of the chart </s> - diff --git a/funcom_test/21629818.txt b/funcom_test/21629818.txt deleted file mode 100644 index 20d69b7200966fd06da0c7c871036d9591e54aaa..0000000000000000000000000000000000000000 --- a/funcom_test/21629818.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getYlabel() { - if (null != this.ylabel) { - return this.ylabel; - } - ValueExpression _ve = getValueExpression("ylabel"); - if (_ve != null) { - return (java.lang.String) _ve.getValue(getFacesContext().getELContext()); - } else { - return null; - } - } - COM: <s> p return the y axis label of the chart </s> - diff --git a/funcom_test/21630549.txt b/funcom_test/21630549.txt deleted file mode 100644 index d6c08f349a5cf4a8c9aee3bd3d88216d0380485c..0000000000000000000000000000000000000000 --- a/funcom_test/21630549.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private IPlaceParking garerVehicule(IVehicule vehicule) throws FullParkingException, VehiculeAlreadyInParkingException { - if (listeVehiculesPresents.contains(vehicule)) - throw new VehiculeAlreadyInParkingException(); - IPlaceParking retValue = null; - synchronized (mutexAccesRessourcesParking) { - for (final PlaceParking place : placesParking) { - if (place.isFree()) { - retValue = place; - place.attribuerVehicule(vehicule); - listeVehiculesPresents.add(vehicule); - break ; - } - } - } - if (retValue == null) - throw new FullParkingException(); - return retValue; - } - COM: <s> permet de garer un vehicule une place </s> - diff --git a/funcom_test/21649391.txt b/funcom_test/21649391.txt deleted file mode 100644 index 2e6784fd7c7ea7f9885013bf5bd1f5e14bfb3d47..0000000000000000000000000000000000000000 --- a/funcom_test/21649391.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void run() throws IllegalArgumentException { - try { - final BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os), 50 /* - * keep - * small - * for - * tests - */); - for (int i = 99; i >= 0; i--) { - bw.write("Dummy counter: " + i); - bw.write(lineSeparator); - } - bw.close(); - } catch (IOException e) { - throw new IllegalArgumentException("IOException sending data to child process."); - } - } - COM: <s> method invoked when sender thread started </s> - diff --git a/funcom_test/21649392.txt b/funcom_test/21649392.txt deleted file mode 100644 index 29bfe85e44bd0cd7a0fd78509fb65339962cb767..0000000000000000000000000000000000000000 --- a/funcom_test/21649392.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void run() throws IllegalArgumentException { - try { - final BufferedReader br = new BufferedReader(new InputStreamReader(is), 50 /* - * keep - * small - * for - * testing - */); - String line; - while ((line = br.readLine()) != null) { - System.out.println(line); - } - br.close(); - } catch (IOException e) { - throw new IllegalArgumentException("IOException receiving data from child process."); - } - } - COM: <s> method invoked when receiver thread started </s> - diff --git a/funcom_test/21649447.txt b/funcom_test/21649447.txt deleted file mode 100644 index 89a6046e6e3421768befbd923bc5616237c64e08..0000000000000000000000000000000000000000 --- a/funcom_test/21649447.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void clear() { - // clear signature and random data buffer - Util.arrayFillNonAtomic(randomBuffer, (short) 0, (short) 256, (byte) 0); - Util.arrayFillNonAtomic(responseBuffer, (short) 0, (short) 128, (byte) 0); - // no EF and DF selected yet; select MF by default - selectedFile = masterFile; - // invalidate cardholder PIN - cardholderPin.reset(); - /* - * clear text message buffer, signature and previous ADPU type are - * transient so no need to reset these manually - */ - } - COM: <s> perform any cleanup tasks and set default selected file </s> - diff --git a/funcom_test/21650413.txt b/funcom_test/21650413.txt deleted file mode 100644 index 271931423ff3d74ca7eb571ce0704b4683fc3ad1..0000000000000000000000000000000000000000 --- a/funcom_test/21650413.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void activateKey(APDU apdu, byte[] buffer) { - // check P1 - if (buffer[ISO7816.OFFSET_P1] != (byte) 0x00) - ISOException.throwIt(ISO7816.SW_WRONG_P1P2); - switch (buffer[ISO7816.OFFSET_P2]) { - case AUTHENTICATION: - // activate key: key always active, do nothing - break; - case NON_REPUDIATION: - // activate key: key always active, do nothing - break; - default: - ISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND); - break; - } - } - COM: <s> activate a public authentication or non repudiation key if deactivated </s> - diff --git a/funcom_test/21650705.txt b/funcom_test/21650705.txt deleted file mode 100644 index ff25d804930b05d6c59017aaf2beef4a441f069e..0000000000000000000000000000000000000000 --- a/funcom_test/21650705.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void selectFile(APDU apdu, byte[] buffer) { - // check P2 - if (buffer[ISO7816.OFFSET_P2] != (byte) 0x0C) - ISOException.throwIt(ISO7816.SW_WRONG_P1P2); - // P1 determines the select method - switch (buffer[ISO7816.OFFSET_P1]) { - case (byte) 0x02: - selectByFileIdentifier(apdu, buffer); - break; - case (byte) 0x08: - selectByPath(apdu, buffer); - break; - default: - ISOException.throwIt(ISO7816.SW_INCORRECT_P1P2); - break; - } - } - COM: <s> select a file on the e id card </s> - diff --git a/funcom_test/21651076.txt b/funcom_test/21651076.txt deleted file mode 100644 index 2d2082fcc624a54752ee1a5de5969bc2acf3ad70..0000000000000000000000000000000000000000 --- a/funcom_test/21651076.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void eraseBinary(APDU apdu, byte[] buffer) { - // check if access to this file is allowed - if (!fileAccessAllowed(ERASE_BINARY)) - ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED); - // use P1 and P2 as offset - short offset = Util.makeShort(buffer[ISO7816.OFFSET_P1], buffer[ISO7816.OFFSET_P2]); - // impossible to start erasing from offset large than size of file - short size = ((ElementaryFile) selectedFile).getCurrentSize(); - if (offset > size) - ISOException.throwIt(ISO7816.SW_WRONG_P1P2); - ((ElementaryFile) selectedFile).eraseData(offset); - } - COM: <s> erase data in file that was selected with select file </s> - diff --git a/funcom_test/21742431.txt b/funcom_test/21742431.txt deleted file mode 100644 index ff458ec13e06916ad0cbce99021293125e71b48c..0000000000000000000000000000000000000000 --- a/funcom_test/21742431.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int activateTeam(int offset) { - int newActiveTeamIndex = activeTeamIndex + offset; - if (newActiveTeamIndex < 0) { - newActiveTeamIndex = 0; - } else { - if (newActiveTeamIndex >= meetData.teamCount()) { - newActiveTeamIndex = meetData.teamCount() - 1; - } - } - return newActiveTeamIndex; - } - COM: <s> change the active team by the given offset </s> - diff --git a/funcom_test/21756985.txt b/funcom_test/21756985.txt deleted file mode 100644 index 49583c4dbe10226a0e6510dd04e85940c6fd0c24..0000000000000000000000000000000000000000 --- a/funcom_test/21756985.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void revokeCertificate(BigInteger serialNumber) throws XKMSClientException { - LOG.info("Revoking certificate"); - - // Create the request - RequestType request = createRevocationElement(serialNumber); - - // Execute it - List<RegisterResult> results = executeRequest(request); - if (results.size() != 1) { - throw new XKMSClientException("Expected one result from the XKMS service, but got " + results.size()); - } - // Parse the result - parseRevokeCertificateResult(results.get(0)); - } - COM: <s> sends a request to the xkms to revoke a certificate </s> - diff --git a/funcom_test/21756992.txt b/funcom_test/21756992.txt deleted file mode 100644 index 86a2880f0f1e26b8c9d7acfc6f0ea36b37ea4667..0000000000000000000000000000000000000000 --- a/funcom_test/21756992.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private String encode(String toEncode) { - if (toEncode == null) { - return ""; - } - - final String ENCODED = ",+\"\\<>;&"; - - StringBuilder result = new StringBuilder(); - for (int i = 0; i < toEncode.length(); i++) { - char ch = toEncode.charAt(i); - if (ENCODED.indexOf(ch) != -1) { - result.append('\\'); - } - result.append(ch); - } - - return result.toString(); - } - COM: <s> encodes a parameter in the key name </s> - diff --git a/funcom_test/21757003.txt b/funcom_test/21757003.txt deleted file mode 100644 index 19d26a269514e71be664b281d47083f9a0249416..0000000000000000000000000000000000000000 --- a/funcom_test/21757003.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getResultReason(KeyBindingType keyBinding) { - if (keyBinding == null || keyBinding.getProcessInfo() == null || keyBinding.getProcessInfo().getAny() == null) { - return null; - } - - return (String) getFromJAXBElementList(keyBinding.getProcessInfo().getAny(), "Reason"); - } - COM: <s> get the result reason from the ogcm parameters </s> - diff --git a/funcom_test/21757023.txt b/funcom_test/21757023.txt deleted file mode 100644 index e9c2138ddbe7f55b2a4c84d94fb652523aec9c49..0000000000000000000000000000000000000000 --- a/funcom_test/21757023.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private BigInteger getResultReasonCode(KeyBindingType keyBinding) { - if (keyBinding == null || keyBinding.getProcessInfo() == null || keyBinding.getProcessInfo().getAny() == null) { - return null; - } - - return (BigInteger) getFromJAXBElementList(keyBinding.getProcessInfo().getAny(), "ReasonCode"); - } - COM: <s> get the result reason code from the ogcm parameters </s> - diff --git a/funcom_test/21757814.txt b/funcom_test/21757814.txt deleted file mode 100644 index f54e61a3fa059835683738a4e891887d795df49e..0000000000000000000000000000000000000000 --- a/funcom_test/21757814.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void generate(Dialect dialect) { - new java.io.File(workingDir + "/schema").mkdirs(); - - cfg.setProperty("hibernate.dialect", dialect.getDialectClass()); - - SchemaExport export = new SchemaExport(cfg); - export.setDelimiter(";"); - export.setOutputFile(workingDir + "/schema/ddl_" + dialect.name().toLowerCase() + ".sql"); - export.execute(true, false, false, false); - } - COM: <s> method that actually creates the file </s> - diff --git a/funcom_test/21758000.txt b/funcom_test/21758000.txt deleted file mode 100644 index 1e62d868a2d2f0399cece4c0d166cb67112774d4..0000000000000000000000000000000000000000 --- a/funcom_test/21758000.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public CertificateSigningRequestType toRequestType() { - CertificateSigningRequestType requestType = getObjectFactory().createCertificateSigningRequestType(); - super.fillInRequestType(requestType); - - requestType.setCertificateType(certificateType); - requestType.setCSR(csr); - requestType.setDistinguishedName(distinguishedName); - requestType.setValidityPeriodMonths(BigInteger.valueOf(validityPeriodMonths)); - - return requestType; - } - COM: <s> builds the request type </s> - diff --git a/funcom_test/21811601.txt b/funcom_test/21811601.txt deleted file mode 100644 index d3eaf60dc72f02bc924b44764cf14abe5d5b8718..0000000000000000000000000000000000000000 --- a/funcom_test/21811601.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void perform() throws IOException { - - // read ssh server version - ByteBuffer buffer = ByteBuffer.allocateDirect(512); - this.getChannel().read(buffer); - buffer.flip(); - String serverVersion = this.getClient().getDecoder().decode(buffer).toString(); - System.out.println(serverVersion); - - // send ssh client version - Packet packet = new Packet(1024); - packet.put((SSHClient.ID + "\r\n").getBytes()); - this.getClient().getTransportManager().send(packet); - - } - COM: <s> perform protocol version exchange as specified in rfc4253 section 4 </s> - diff --git a/funcom_test/21811643.txt b/funcom_test/21811643.txt deleted file mode 100644 index 336432c836a9ea04730d76ecc274db308ce5ae85..0000000000000000000000000000000000000000 --- a/funcom_test/21811643.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void perform() throws IOException { - - // receive initialization packet - ByteBuffer buffer = ByteBuffer.allocateDirect(1024); - this.getChannel().read(buffer); - buffer.flip(); - this.serverInitializationPacket = new SSHPacketKeyExchangeInitialization(buffer); - System.out.println(this.getServerInitializationPacket()); - - // guess preferred key exchange configuration - this.guessConfiguration(); - - // send client initialization packet based on configuration - this.createClientInitializationPacket(); - this.getClient().getTransportManager().send(this.getClientInitializationPacket()); - - buffer = ByteBuffer.allocateDirect(1024); - int size = this.getChannel().read(buffer); - buffer.flip(); - System.out.println(size); - } - COM: <s> perform key exchange between client and server as specified in </s> - diff --git a/funcom_test/21811683.txt b/funcom_test/21811683.txt deleted file mode 100644 index 5d8605fc29f90198e72133819edcef37dfd62f79..0000000000000000000000000000000000000000 --- a/funcom_test/21811683.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public ByteBuffer getBytes() { - int i = 0; - ByteBuffer data = ByteBuffer.allocateDirect(this.length + 4); - data.putInt(this.length); - for (String entry : this.getEntries()) { - try { - if (this.getEntries().size() > 0 && i > 0) { - entry = entry + ","; - data.put(entry.getBytes(this.encoding)); - } - } catch (UnsupportedEncodingException e) { - e.printStackTrace(); - } - i++; - } - return data; - } - COM: <s> get bytes for use in a packet </s> - diff --git a/funcom_test/21823912.txt b/funcom_test/21823912.txt deleted file mode 100644 index b30e617650b7958cdd0dfc29f01a6e6c83b00138..0000000000000000000000000000000000000000 --- a/funcom_test/21823912.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean validateFieldNotNull(PObject obj, String field, String label) { - if(obj.get(field) == null) { - String i18n = label; - if(i18n == null) { - i18n = "error." + obj.getType().getName().toLowerCase() + "." + field + ".notNull"; - } - addFieldError(field, getText(i18n)); - return false; - } - return true; - } - COM: <s> this function checks if some pobject attribute is null and </s> - diff --git a/funcom_test/21823923.txt b/funcom_test/21823923.txt deleted file mode 100644 index 8e34111ac4150e8267046fa19b8b74762b7fe61e..0000000000000000000000000000000000000000 --- a/funcom_test/21823923.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean validateFieldNotEmpty(PObject obj, String field, String label) { - String x = obj.get(field); - if(isNullOrEmpty(x)) { - String i18n = label; - if(i18n == null) { - i18n = "error." + obj.getType().getName().toLowerCase() + "." + field + ".notEmpty"; - } - addFieldError(field, getText(i18n)); - return false; - } - return true; - } - COM: <s> this function checks if some pobject attribute is empty and </s> - diff --git a/funcom_test/21825595.txt b/funcom_test/21825595.txt deleted file mode 100644 index a7b45f1408d326aa64f93f1cfe1df962a691a323..0000000000000000000000000000000000000000 --- a/funcom_test/21825595.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Repository open() { - Crud crud = this.newCrud(); - - Enhancer e = new Enhancer(); - e.setSuperclass(getRepositoryImplementorClass()); - e.setInterfaces(getInterfaces(crud)); - ProxyWrapper pw = createPersistentWrapper(crud); - e.setCallbacks(getCallbacks(crud, pw)); - e.setCallbackFilter(getCallbackFilter(crud)); - return (Repository) e.create(new Class[] { Crud.class, ProxyWrapper.class }, new Object[] { crud, pw }); - } - COM: <s> creates a new repository instance </s> - diff --git a/funcom_test/21825671.txt b/funcom_test/21825671.txt deleted file mode 100644 index e14e6b2179a0baff2c687baf8d41de17c44dc59f..0000000000000000000000000000000000000000 --- a/funcom_test/21825671.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void handleException(HibernateTransaction transaction, Exception e) throws StorageException { - LOGGER.warn("rolling back: " + transaction.getName(), e); - rollbackSilently(); - StorageException result; - if (e instanceof StorageException) { - result = (StorageException) e; - } else { - result = new GenericStorageException(transaction.isReadOnly(), transaction.getName(), e); - } - throw result; - } - COM: <s> this method will roll back the current transaction and throw a storage exception </s> - diff --git a/funcom_test/21825922.txt b/funcom_test/21825922.txt deleted file mode 100644 index c4968d14d825a36403519ea825e4ef9f823c47fe..0000000000000000000000000000000000000000 --- a/funcom_test/21825922.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public PAttribute putAttribute(String attName, Class<? extends PValue> valueClass) throws TypeMismatchException { - PAttribute result; - if (this.hasAttribute(attName)) { - result = this.getAttribute(attName); - if (valueClass != result.getValueClass()) { - throw new TypeMismatchException(this, attName, valueClass, result.getValueClass()); - } - } - else { - result = new PAttribute(attName, this, valueClass); - result.setIndex(attributes.size()); - this.add(result); - } - return result; - } - COM: <s> puts an attribute in this type </s> - diff --git a/funcom_test/21825952.txt b/funcom_test/21825952.txt deleted file mode 100644 index 4cd573bcfaec4af73d4a93193fe2e0947537be27..0000000000000000000000000000000000000000 --- a/funcom_test/21825952.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void remove(String attName) { - // NOTE: the containsKey check relates to TM-262 - if (this.getAttributes().containsKey(attName)) { - PAttribute attribute = this.getAttributes().remove(attName); - Collection<PAttribute> allAttributes = this.getAttributes().values(); - for (PAttribute element : allAttributes) { - if(element.getIndex() > attribute.getIndex()) - element.setIndex(element.getIndex() - 1); - } - } - } - COM: <s> removes an attribute from this type </s> - diff --git a/funcom_test/21826152.txt b/funcom_test/21826152.txt deleted file mode 100644 index 955db886531c0f08dd259b151493627df20c5245..0000000000000000000000000000000000000000 --- a/funcom_test/21826152.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testUnwrapEmptyPassthrough() { - List nakedList = (List) tested.unwrapIfNeeded(Collections.EMPTY_LIST); - assertSame("same list", Collections.EMPTY_LIST, nakedList); - - Map nakedMap = (Map) tested.unwrapIfNeeded(Collections.EMPTY_MAP); - assertSame("same map", Collections.EMPTY_MAP, nakedMap); - - Set nakedSet = (Set) tested.unwrapIfNeeded(Collections.EMPTY_SET); - assertSame("same set", Collections.EMPTY_SET, nakedSet); -} - COM: <s> tm 278 empty immutable collections must pass through </s> - diff --git a/funcom_test/21826484.txt b/funcom_test/21826484.txt deleted file mode 100644 index 8a6c0c92a29a152881b338f1af1d98104245d6f9..0000000000000000000000000000000000000000 --- a/funcom_test/21826484.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void testCycleReload() { - Repository repo = this.createRepository(); - - PType st = repo.createType("NamedSet"); - st.putAttribute("elements", PAttribute.SET); - st.save(); - - PObject child = st.newInstance("parent"); - child.save(); - PObject parent = st.newInstance("child"); - parent.add("elements", child); - parent.save(); - child.add("elements", parent); - - repo.commit(); repo.close(); - repo = this.createRepository(); - PObject obj = repo.load("parent"); - obj.describe(); - - repo.close(); - } - COM: <s> tm 87 bug on pset cycle </s> - diff --git a/funcom_test/21826505.txt b/funcom_test/21826505.txt deleted file mode 100644 index 7485229b9f37ee96134b73513fba5a48028d366b..0000000000000000000000000000000000000000 --- a/funcom_test/21826505.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testReplaceAttribute() { - - Repository repo = this.createRepository(); - PType type = repo.createType("aType"); - type.putAttribute(ATT_NAME, PAttribute.STRING); - repo.commit(); - - type.remove(ATT_NAME); - type.putAttribute(ATT_NAME, PAttribute.INTEGER); - -// repo.commit(); - - assertTrue("has attribute", type.hasAttribute(ATT_NAME)); - assertEquals("integer att", PAttribute.INTEGER, type.getAttribute(ATT_NAME).getValueClass()); - repo.close(); - } - COM: <s> tm 262 test if this method throws a class cast exception hhh 2112 </s> - diff --git a/funcom_test/22045319.txt b/funcom_test/22045319.txt deleted file mode 100644 index 91cf30d7f03cc57fcb9d565017b766af7e84434b..0000000000000000000000000000000000000000 --- a/funcom_test/22045319.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public double function( double x, double y ){ - if( x < 0 || Math.round( x ) - x != 0 ) - throw new ArithmeticException( "Combination error" ); - if( y < 0 || y > x || Math.round( y ) - y != 0 ) - throw new ArithmeticException( "Combination error" ); - if( y == 0 ) - return 1; - else - return x / y * function( x - 1, y - 1 ); - } - COM: <s> calculates the number of unordered ways to choose y objects from x </s> - diff --git a/funcom_test/22045364.txt b/funcom_test/22045364.txt deleted file mode 100644 index 226afcf153e4611a324e4a9872014e6ae5f273ce..0000000000000000000000000000000000000000 --- a/funcom_test/22045364.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public double function( double x, double y ){ - if( x < 0 || Math.round( x ) - x != 0 ) - throw new ArithmeticException( "Permutation error" ); - if( y < 0 || y > x || Math.round( y ) - y != 0 ) - throw new ArithmeticException( "Permutation error" ); - if( y == 0 ) - return 1; - else - return x * function( x - 1, y - 1 ); - } - COM: <s> calculates the number of ordered ways to choose y objects from x </s> - diff --git a/funcom_test/22045403.txt b/funcom_test/22045403.txt deleted file mode 100644 index 4bd6684787cc16d7cb6cae23a24d549e41bc41b0..0000000000000000000000000000000000000000 --- a/funcom_test/22045403.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void convertContainers( java.util.List<GObject> list ){ - /* first we convert Numerals */ - convertNumerals( list ); - for( java.util.ListIterator<GObject> i = list.listIterator(); i.hasNext(); ){ - GObject o = i.next(); - if( o instanceof Container ){ - if( ((Container)o).error() ) - throw new RuntimeException( "Stat Error" ); - i.set( ((Container)o).value() ); - } - } - } - COM: <s> convert anything that is a container </s> - diff --git a/funcom_test/22045412.txt b/funcom_test/22045412.txt deleted file mode 100644 index c6e9b47a9b23f0cd649412bc9c68b94839217f1a..0000000000000000000000000000000000000000 --- a/funcom_test/22045412.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isMinusOne() { - if( string.size() != 1 ) return false; - if( string.firstElement().size() != 2 ) return false; - if( string.firstElement().elementAt( 0 ) != minus.elementAt( 0 ) ) - return false; - if( string.firstElement().elementAt( 1 ) != "1" ) return false; - return true; - } - COM: <s> test whether this matches minus 1 </s> - diff --git a/funcom_test/22045426.txt b/funcom_test/22045426.txt deleted file mode 100644 index b09349cb66373e4f5024f0b1e3bc622ed9259b7c..0000000000000000000000000000000000000000 --- a/funcom_test/22045426.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void convertBoolFunctions( java.util.List<GObject> list ){ - /* first we must convert AFunctions */ - convertAFunctions( list ); - for( java.util.ListIterator<GObject> i = list.listIterator(); i.hasNext(); ){ - GObject o = i.next(); - if( o instanceof BoolFunction ){ - i.remove(); - BoolFunction b = (BoolFunction)o; - OObject y = (OObject)i.next(); - i.remove(); - OObject x = (OObject)i.previous(); - i.set( b.function( x, y ) ); - } - } - } - COM: <s> deal with boolean functions </s> - diff --git a/funcom_test/22045428.txt b/funcom_test/22045428.txt deleted file mode 100644 index 97872ffa4e8bd283de72d213c320ed0a79eb43f7..0000000000000000000000000000000000000000 --- a/funcom_test/22045428.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void convertToProduct( java.util.List<GObject> list ){ - convertBoolFunctions( list ); - while( list.size() > 1 ){ - OObject z = (OObject)(list.get( 0 )); - OObject c = (OObject)(list.remove( 1 )); - list.set( 0, c.multiply( (OObject)(list.get( 0 )) ) ); - } - } - COM: <s> takes final expression and multiplies all complex numbers together </s> - diff --git a/funcom_test/22045480.txt b/funcom_test/22045480.txt deleted file mode 100644 index 08c1cf1e4678d8179d7577c0bd3c39867c395606..0000000000000000000000000000000000000000 --- a/funcom_test/22045480.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public int length(){ - if( NaN ) - return 3; - if( zero ) - return 1; - if( infinity ) - if( negative ) - return 2; - else - return 1; - int length = digits.size(); - for( int i = digits.size() - 1; digits.elementAt( i ) == 0; --i ) - --length; - if( exponentNegative ){ // ignore trailing zeros - // base point - length += exponent + 1; - } else { - if( length > exponent + 1 ) // base point - ++length; - else - length = exponent + 1; - } - if( negative ) ++length; - return length; - } - COM: <s> the length of string that would be produced in standard notation </s> - diff --git a/funcom_test/22045511.txt b/funcom_test/22045511.txt deleted file mode 100644 index 5670c10b7162c0a42efbaaf4db81e205e130d780..0000000000000000000000000000000000000000 --- a/funcom_test/22045511.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private double logabs(){ - double xabs = StrictMath.abs( real() ); - double yabs = StrictMath.abs( imaginary() ); - double max, u; - - if( xabs >= yabs ){ - max = xabs; - u = yabs / xabs; - } else { - max = yabs; - u = xabs / yabs; - } - - /* Handle underflow when u is close to 0 */ - - return StrictMath.log( max ) + 0.5 * StrictMath.log1p( u * u ); - } - COM: <s> find log this </s> - diff --git a/funcom_test/22045530.txt b/funcom_test/22045530.txt deleted file mode 100644 index dc6b2cc4730bc61201c0ec1b929893b9ffa26ba9..0000000000000000000000000000000000000000 --- a/funcom_test/22045530.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setPanels() { - displayPanel.setUp(); - calculatorPanels - = new java.util.HashMap<SpecialButtonType,CalculatorPanel>(); - for( SpecialButtonType sbt : SpecialButtonType.values() ){ - CalculatorPanel calculatorPanel - = CalculatorPanel - .createPanel( this, sbt, panelColour ); - calculatorPanels.put( sbt, calculatorPanel ); - } - - setCalculatorPanel( SpecialButtonType.NONE ); - } - COM: <s> the calculator buttons are all set on objects of class calculator panel </s> - diff --git a/funcom_test/22045539.txt b/funcom_test/22045539.txt deleted file mode 100644 index 89e33edb80cd98486ff94fdfef328e1bd2273cb8..0000000000000000000000000000000000000000 --- a/funcom_test/22045539.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Complex sin(){ - double r = real(); - double i = imaginary(); - - if( i == 0 ){ - /* avoid returing negative zero (-0.0) for the imaginary part */ - return new Complex( StrictMath.sin( r ), 0 ); - } else { - return new Complex( StrictMath.sin( r ) * StrictMath.cosh( i ), - StrictMath.cos( r ) * StrictMath.sinh( i ) ); - } - } - COM: <s> get the sine of this </s> - diff --git a/funcom_test/22045542.txt b/funcom_test/22045542.txt deleted file mode 100644 index 117087aa3350d6f9fae03e712a373b56d948b90c..0000000000000000000000000000000000000000 --- a/funcom_test/22045542.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Complex cos(){ - double r = real(); - double i = imaginary(); - - if( i == 0 ){ - /* avoid returing negative zero (-0.0) for the imaginary part */ - return new Complex( StrictMath.cos( r ), 0 ); - } else { - return new Complex( StrictMath.cos( r ) * StrictMath.cosh( i ), - StrictMath.sin( r ) * StrictMath.sinh( -i ) ); - } - - } - COM: <s> get the cosine of this </s> - diff --git a/funcom_test/22045559.txt b/funcom_test/22045559.txt deleted file mode 100644 index c7d12e87d7d1a5091e56091b969a15f75a1fb6fb..0000000000000000000000000000000000000000 --- a/funcom_test/22045559.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Complex acos_real( double a ){ - if( StrictMath.abs( a ) <= 1.0 ) - return new Complex( StrictMath.acos( a ), 0 ); - else - if( a < 0.0 ) - return new Complex( StrictMath.PI, -acosh_real( -a ) ); - else - return new Complex( 0, acosh_real( a ) ); - } - COM: <s> used to compute arccos where imaginary part is zero </s> - diff --git a/funcom_test/22045645.txt b/funcom_test/22045645.txt deleted file mode 100644 index c6f3fafe6656c3a6536d04bd5fa88ee281165b7f..0000000000000000000000000000000000000000 --- a/funcom_test/22045645.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void setShift( boolean value ){ - shift = value; - if( shift ) - if( stat ) - setCalculatorPanel( SpecialButtonType.SHIFT_STAT ); - else - switch( getBase() ){ - case DECIMAL: - setCalculatorPanel( SpecialButtonType.SHIFT ); - break; - default: - setCalculatorPanel( SpecialButtonType.SHIFT_HEX ); - } - else - if( stat ) - setCalculatorPanel( SpecialButtonType.STAT ); - else - switch( getBase() ){ - case DECIMAL: - setCalculatorPanel( SpecialButtonType.NONE ); - break; - default: - setCalculatorPanel( SpecialButtonType.HEX ); - } - } - COM: <s> set the em shift em button to pressed or unpressed </s> - diff --git a/funcom_test/22045656.txt b/funcom_test/22045656.txt deleted file mode 100644 index 645c0e22ef6d080d47b3bc88ce11785a09677eaf..0000000000000000000000000000000000000000 --- a/funcom_test/22045656.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Sum clone(){ - Sum copy = new Sum(); - copy.complex = new Complex( complex.real(), complex.imaginary() ); - copy.expressionList = new java.util.LinkedList<Expression>(); - for( java.util.ListIterator<Expression> - i = getExpressionList().listIterator(); i.hasNext(); ){ - copy.expressionList.add( i.next() ); - } - return copy; - } - COM: <s> create a copy of this sum </s> - diff --git a/funcom_test/22045661.txt b/funcom_test/22045661.txt deleted file mode 100644 index 717c532298ce08408fc22ea4d5a83e5da91fef1e..0000000000000000000000000000000000000000 --- a/funcom_test/22045661.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public OObject add( Sum x ){ - Sum s = clone(); - // Add complex - s.complex = s.complex.add( x.complex ); - OObject sum = (OObject)s; - for( java.util.ListIterator<Expression> i = x.expressionList.listIterator(); - i.hasNext(); ){ - sum = sum.add( i.next() ); - } - return sum; - } - COM: <s> add a sum to this </s> - diff --git a/funcom_test/22045724.txt b/funcom_test/22045724.txt deleted file mode 100644 index 066645bad48bdff5948446f6db05e0e907051390..0000000000000000000000000000000000000000 --- a/funcom_test/22045724.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setLocus( OObject oobject ){ - if( oobject != null && !(oobject instanceof jscicalc.Error) ){ - //jscicalc.pobject.Variable x = new jscicalc.pobject.Variable( 'x' ); - //jscicalc.expression.Variable v = new jscicalc.expression.Variable( x ); - //oobject = new jscicalc.expression.Tan( v, jscicalc.AngleType.RADIANS ); - Locus locus = new Locus( oobject, view ); - model.reset( locus ); - view.repaint(); - } - } - COM: <s> set a locus from an oobject </s> - diff --git a/funcom_test/22045797.txt b/funcom_test/22045797.txt deleted file mode 100644 index c4bddebc3b5202811fd6dff5040b69d7a5751650..0000000000000000000000000000000000000000 --- a/funcom_test/22045797.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void actionPerformed( java.awt.event.ActionEvent actionEvent ){ - synchronized( applet ){ - if( getApplet().getOn() ){ - getApplet().setMode( getApplet().getMode() + 1 ); - getApplet().setShift( false ); - getApplet().updateDisplay( true, true ); - } - getApplet().requestFocusInWindow(); - } - } - COM: <s> probably the strangest button it only changes the state of calculator applet </s> - diff --git a/funcom_test/22045799.txt b/funcom_test/22045799.txt deleted file mode 100644 index e5e51e9c3d3e0e31d269cf98588fff199ad5c9fe..0000000000000000000000000000000000000000 --- a/funcom_test/22045799.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void actionPerformed( java.awt.event.ActionEvent actionEvent ){ - synchronized( applet ){ - if( getApplet().getMode() != 0 ){ - getApplet().setMode( 0 ); - getApplet().setShift( false ); - } - getApplet().clearStatMemory(); - getApplet().setShift( false ); - getApplet().updateDisplay( true, true ); - getApplet().requestFocusInWindow(); - } - } - COM: <s> asks calculator applet to clear statistical memory </s> - diff --git a/funcom_test/22045804.txt b/funcom_test/22045804.txt deleted file mode 100644 index 09e86bba98c451aa2533de298c4085f09b07118d..0000000000000000000000000000000000000000 --- a/funcom_test/22045804.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void actionPerformed( java.awt.event.ActionEvent actionEvent ){ - synchronized( applet ){ - if( getApplet().getMode() != 0 ){ - getApplet().setMode( 0 ); - getApplet().setShift( false ); - } - getApplet().setMemory( new Complex() ); - getApplet().setShift( false ); - getApplet().updateDisplay( true, true ); - getApplet().requestFocusInWindow(); - } - } - COM: <s> clears calculator memory </s> - diff --git a/funcom_test/22045822.txt b/funcom_test/22045822.txt deleted file mode 100644 index 086fe72af50bb5f0d98ef0f9941b4641add03a7f..0000000000000000000000000000000000000000 --- a/funcom_test/22045822.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void actionPerformed( java.awt.event.ActionEvent actionEvent ){ - synchronized( applet ){ - if( getApplet().getMode() != 0 ){ - getApplet().setMode( pobject ); - getApplet().requestFocusInWindow(); - return; - } - if( !getApplet().getOn() ) - return; - getApplet().copy(); - getApplet().setShift( false ); - getApplet().updateDisplay( true, true ); - getApplet().requestFocusInWindow(); - } - } - COM: <s> copy contents of display label to system clipboard </s> - diff --git a/funcom_test/22045849.txt b/funcom_test/22045849.txt deleted file mode 100644 index 2b4c31f5e8b8d39743190d4dd56be799eccc70d6..0000000000000000000000000000000000000000 --- a/funcom_test/22045849.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void createKeyMap(){ - for( CalculatorButton o : buttons ){ - if( o.shortcut() == 0 ) continue; - if( keyMap.containsKey( o.shortcut() ) ){ - System.out.print( "Repeat of " ); - System.out.print( o.shortcut() ); - System.out.print( " in " ); - System.out.println( o.tooltip() ); - } - keyMap.put( o.shortcut(), o ); - } - - } - COM: <s> the method that creates the key map </s> - diff --git a/funcom_test/22045881.txt b/funcom_test/22045881.txt deleted file mode 100644 index 701b6b920d7619a5617ba19a2dbd26bdc85a0cb0..0000000000000000000000000000000000000000 --- a/funcom_test/22045881.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public OObject combination( OObject x ){ - if( (this instanceof Complex) && (x instanceof Complex) ) { - return ((Complex)this).combination( (Complex)x ); - } else if( !((this instanceof Error) || (x instanceof Error)) ){ - return new jscicalc.expression.Combination( this, x ); - } - return new Error( "OObject combination( x ) error" ); - } - COM: <s> combination function applied to x and this </s> - diff --git a/funcom_test/22045885.txt b/funcom_test/22045885.txt deleted file mode 100644 index 74b9e54072dcb70c1ff1150180f4ac3118a5a0ca..0000000000000000000000000000000000000000 --- a/funcom_test/22045885.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public OObject pow( OObject y ){ - if( (this instanceof Complex) && (y instanceof Complex) ) { - return ((Complex)this).pow( (Complex)y ); - } else if( !((this instanceof Error) || (y instanceof Error)) ){ - return new jscicalc.expression.Power( this, y ); - } - return new Error( "OObject pow( y ) error" ); - } - COM: <s> power function applied to x </s> - diff --git a/funcom_test/22045913.txt b/funcom_test/22045913.txt deleted file mode 100644 index 8fc15e0bdc4dbdee71209c8915a52b8e09baafe4..0000000000000000000000000000000000000000 --- a/funcom_test/22045913.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void left(){ - //System.out.println( "###left" ); - int pos = textPane.getCaret().getDot(); - java.util.ListIterator<Integer> i; - for( i = navigator.dots().listIterator(); i.hasNext(); ){ - int p = i.next(); - if( p >= pos ){ - i.previous(); - break; - } - } - dotPosition = i.hasPrevious() ? i.previous() : 0; - } - COM: <s> move the caret left if possible </s> - diff --git a/funcom_test/22045931.txt b/funcom_test/22045931.txt deleted file mode 100644 index cf9ba51b994f59557f550b69829b6ea2d8d1174f..0000000000000000000000000000000000000000 --- a/funcom_test/22045931.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public OObject and( OObject z ){ - if( (this instanceof Complex) && (z instanceof Complex) ) { - return ((Complex)this).and( (Complex)z ); - } else if( !((this instanceof Error) || (z instanceof Error)) ){ - return new jscicalc.expression.And( this, z ); - } - return new Error( "OObject and( z ) error" ); - } - COM: <s> and with another oobject </s> - diff --git a/funcom_test/22045937.txt b/funcom_test/22045937.txt deleted file mode 100644 index 5d76b1814d62e79e4ab816ef91356dfde9ea58d1..0000000000000000000000000000000000000000 --- a/funcom_test/22045937.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public OObject or( OObject z ){ - if( (this instanceof Complex) && (z instanceof Complex) ) { - return ((Complex)this).or( (Complex)z ); - } else if( !((this instanceof Error) || (z instanceof Error)) ){ - return new jscicalc.expression.Or( this, z ); - } - return new Error( "OObject or( z ) error" ); - } - COM: <s> or with another oobject </s> - diff --git a/funcom_test/22045940.txt b/funcom_test/22045940.txt deleted file mode 100644 index a47bafe3e4aa458d743a65bc8e2af3554fc83bc0..0000000000000000000000000000000000000000 --- a/funcom_test/22045940.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public OObject xor( OObject z ){ - if( (this instanceof Complex) && (z instanceof Complex) ) { - return ((Complex)this).xor( (Complex)z ); - } else if( !((this instanceof Error) || (z instanceof Error)) ){ - return new jscicalc.expression.Xor( this, z ); - } - return new Error( "OObject xor( z ) error" ); - } - COM: <s> xor with another oobject </s> - diff --git a/funcom_test/22075688.txt b/funcom_test/22075688.txt deleted file mode 100644 index 3a2203109e7e0071bda892335a25a52aa1587b22..0000000000000000000000000000000000000000 --- a/funcom_test/22075688.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected Document createLrcrudHeader(String id) { - Document xmldoc = null; - try { - DocumentBuilder db = DocumentBuilderFactory.newInstance() - .newDocumentBuilder(); - xmldoc = db.newDocument(); - Element root = xmldoc.createElement("lrcrud"); - root.setAttribute("date", new Date().toString()); - root.setAttribute("version", LRCRUD_VER); - Element e = xmldoc.createElement("packageIdentifier"); - e.setTextContent(id); - root.appendChild(e); - xmldoc.appendChild(root); - } catch (Exception e) { - e.printStackTrace(); - } - return xmldoc; - } - COM: <s> creates the lrcrud header file </s> - diff --git a/funcom_test/22075693.txt b/funcom_test/22075693.txt deleted file mode 100644 index ea9abe2f357ab6d16e4e75ae3e1b999e45a90585..0000000000000000000000000000000000000000 --- a/funcom_test/22075693.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void returnFile(File file, OutputStream out) throws IOException { - FileInputStream fin = new FileInputStream(file); - byte[] buf = new byte[4 * 1024]; // 4K buffer - int bytesRead; - while ((bytesRead = fin.read(buf)) != -1) { - out.write(buf, 0, bytesRead); - out.flush(); - } - fin.close(); - } - COM: <s> sends a file to a client via the servlet output stream </s> - diff --git a/funcom_test/22075785.txt b/funcom_test/22075785.txt deleted file mode 100644 index e72d9290803f4adbee6a15ae885e2949306aaae8..0000000000000000000000000000000000000000 --- a/funcom_test/22075785.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private ModsModsDocument extractMODS() throws PackagerException { - ModsModsDocument mods = null; - XmlObject xobj[] = fedoramets.selectPath("declare namespace mods='" - + METSProfile.MODS_NS + "'; //mods:mods"); - if (xobj.length > 0) { - try { - mods = ModsModsDocument.Factory.parse(xobj[0].getDomNode()); - } catch (XmlException e) { - throw new PackagerException( - "Problem parsing MODS document from Fedora " - + e.getMessage()); - } - } - return mods; - } - COM: <s> pulls out the mods that is embedded in the fedora mets export </s> - diff --git a/funcom_test/22075812.txt b/funcom_test/22075812.txt deleted file mode 100644 index defb3a4a44f7e3347f2386f1fa9f4574a9efa8ec..0000000000000000000000000000000000000000 --- a/funcom_test/22075812.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private ModsModsDocument extractDSMODS() throws PackagerException { - ModsModsDocument mods = null; - XmlObject xobj[] = dspacemets.selectPath("declare namespace mods='" - + METSProfile.MODS_NS + "'; //mods:mods"); - if (xobj.length > 0) { - try { - mods = ModsModsDocument.Factory.parse(xobj[0].getDomNode()); - } catch (XmlException e) { - throw new PackagerException( - "Problem parsing MODS document from DSpace " - + e.getMessage()); - } - } - return mods; - } - COM: <s> pulls out the mods that is embedded in the dspace mets export </s> - diff --git a/funcom_test/22075892.txt b/funcom_test/22075892.txt deleted file mode 100644 index 5cf838e011c01912bb728698551239777997b59d..0000000000000000000000000000000000000000 --- a/funcom_test/22075892.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void initialize () { - namespaceMap = new HashMap<String, String>(); - namespaceMap.put("jhove", "http://hul.harvard.edu/ois/xml/ns/jhove"); - - //If this were to get more complicated, this - //can be constructed directly from the namespaceMap - URIMap = new HashMap<String,List<String>>(); - List<String> l = new LinkedList<String>(); - l.add("jhove"); - URIMap.put("http://hul.harvard.edu/ois/xml/ns/jhove", l); - } - COM: <s> set up the maps between namespaces and uris </s> - diff --git a/funcom_test/22075937.txt b/funcom_test/22075937.txt deleted file mode 100644 index 1971a9a778ad1612d277d82e9ad0b0eecbfd750d..0000000000000000000000000000000000000000 --- a/funcom_test/22075937.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Templates getTemplate () throws TransformerConfigurationException { - if (templateMap.containsKey(this.XSLName())) { - return templateMap.get(this.XSLName()); - } else { - Source s = new StreamSource(new File(this.XSLFile())); - Templates t = transformer_factory.newTemplates(s); - templateMap.put(this.XSLName(), t); - return t; - } - } - COM: <s> get a template for the xsl transformation represented by </s> - diff --git a/funcom_test/22075963.txt b/funcom_test/22075963.txt deleted file mode 100644 index ee64ddd5ab7ba570bc9ca60f5aac484aa4daff11..0000000000000000000000000000000000000000 --- a/funcom_test/22075963.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected boolean usesArcFiles(){ - boolean arcFiles=false; - MetsFileType fls[] = this.getAllFiles(); - if (fls.length>0 - && (fls[0].isSetUSE() && (fls[0].getUSE().compareTo(HaSMETSWebProfile.ArcFileDecomposition.ARC.toString())==0 - || fls[0].getUSE().compareTo(HaSMETSWebProfile.ArcFileDecomposition.ARC_URL_RECORD.toString())==0))){ - arcFiles=true; - } - return arcFiles; - } - COM: <s> determine whether this document is using arc files or not </s> - diff --git a/funcom_test/22076485.txt b/funcom_test/22076485.txt deleted file mode 100644 index 85ee4fc30996693da7df04df1e99aa9f9b492be3..0000000000000000000000000000000000000000 --- a/funcom_test/22076485.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public MetsMdSecType getPrimaryDmdSec() throws HaSMETSProfileException { - String xql = "declare namespace m='" + METS_NS - + "'; .//m:dmdSec[@STATUS='PRIMARY_DMDSEC']"; - - XmlObject o[] = metsDoc.selectPath(xql); - - if (o.length != 1) { - throw new HaSMETSProfileException( - "There must be exactly one Primary dmdSec; this document contains " - + o.length); - } - return (MetsMdSecType) o[0]; - } - COM: <s> returns the primary dmd sec element which has a status primary dmdsec </s> - diff --git a/funcom_test/22079663.txt b/funcom_test/22079663.txt deleted file mode 100644 index 53759bd697ae982cbb2070174990f7f8e69a47b8..0000000000000000000000000000000000000000 --- a/funcom_test/22079663.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String hashString(String[] toHash) { - String hashedVal = toHash[0];//if something goes wrong - synchronized (this.hashEngine) { - this.hashEngine.init(); - for (int i = 0; i < toHash.length; i++) { - this.hashEngine.updateASCII(toHash[i]); - } - hashedVal = this.hashEngine.digout(); - } - return hashedVal; - } - COM: <s> hashes an array of strings using this </s> - diff --git a/funcom_test/22161218.txt b/funcom_test/22161218.txt deleted file mode 100644 index 1c9f4e1eb68af3c0f36a1d3705417b301005d497..0000000000000000000000000000000000000000 --- a/funcom_test/22161218.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void updatePreviewPanel(File programmeFile){ - String content="<h1>"+programmeFile.getName()+"</h1>"; - jGraph.clear(); - try { - Controller c=ControllerFactory.loadController(null,programmeFile); - content+=c.getDescription(); - jGraph.addPreview(c.getPreview()); - } catch (Exception e) { - content+="<p>couldn't load: </p><pre>"+e.getMessage()+"</pre>"; - } - - htmlPanel.setText(content); - } - COM: <s> fill in data for this file </s> - diff --git a/funcom_test/22161277.txt b/funcom_test/22161277.txt deleted file mode 100644 index f29ade766e76febbe78b62044dc6c0f3379d0245..0000000000000000000000000000000000000000 --- a/funcom_test/22161277.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean isElapsed() throws InterruptedException, ConnectionConfigurationException{ - RunData dat = getRunData(); - - // check max. duration - Duration d=getDuration(); - if(d!=null){ - Duration runDuration= dat.getRunDuration(); - Duration stepDuration=runDuration.subtract(startedAtRunDuration); - if (getDuration().compareTo(stepDuration)<0) { - return true; - } - } - - // check max. height difference - if(maxHeightMeters!=null){ - double runHeight=dat.getHeightDifference()-startedAtHeight; - if(runHeight>maxHeightMeters){ - return true; - } - } - return false; - } - COM: <s> check if time to go </s> - diff --git a/funcom_test/22170205.txt b/funcom_test/22170205.txt deleted file mode 100644 index d87d49bbc3415e4508c97338d173e32e2f69b3f5..0000000000000000000000000000000000000000 --- a/funcom_test/22170205.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean instanceOf(Class c, String className) { - if (c.getName().equals(className)) - return true; - Class[] ifcs = c.getInterfaces(); - for (int i = 0; i < ifcs.length; i++) - if (instanceOf(ifcs[i], className)) - return true; - c = c.getSuperclass(); - if (c != null) - return instanceOf(c, className); - return false; - - } - COM: <s> begin user doc instance of implementation for use in velocity </s> - diff --git a/funcom_test/22170562.txt b/funcom_test/22170562.txt deleted file mode 100644 index 82949f7ed35882cd8881e8f11e5bd2901cda0594..0000000000000000000000000000000000000000 --- a/funcom_test/22170562.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public File unmarshall(String destinationPath) { - if (!isvalid() || fileContent == null) { - throw new EveFlypeerServiceFileContainerException("SBVR2GrailsResult not set."); - } - File file = new File(destinationPath+"/"+fileName); - try { - FileOutputStream out = new FileOutputStream(file); - out.write(fileContent); - out.close(); - } catch (IOException e) { - throw new EveFlypeerServiceFileContainerException("Could not write content to "+file+".",e); - } - return file; - } - COM: <s> stores the file from the byte array to the defined output </s> - diff --git a/funcom_test/22171596.txt b/funcom_test/22171596.txt deleted file mode 100644 index 3c485093316623717781a45be9197593e0412be0..0000000000000000000000000000000000000000 --- a/funcom_test/22171596.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMessageUUIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveMessage_messageUUID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveMessage_messageUUID_feature", "_UI_EveMessage_type"), - MsgPackage.Literals.EVE_MESSAGE__MESSAGE_UUID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the message uuid feature </s> - diff --git a/funcom_test/22171597.txt b/funcom_test/22171597.txt deleted file mode 100644 index 20647c43ec4b5bb7df7d9290a6f6dca8ef988941..0000000000000000000000000000000000000000 --- a/funcom_test/22171597.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMessagePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveLogMessage_message_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveLogMessage_message_feature", "_UI_EveLogMessage_type"), - MsgPackage.Literals.EVE_LOG_MESSAGE__MESSAGE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the message feature </s> - diff --git a/funcom_test/22171598.txt b/funcom_test/22171598.txt deleted file mode 100644 index 479020b50579a8a64c36cb49f29d3caa4846b170..0000000000000000000000000000000000000000 --- a/funcom_test/22171598.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDetailPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveLogMessage_detail_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveLogMessage_detail_feature", "_UI_EveLogMessage_type"), - MsgPackage.Literals.EVE_LOG_MESSAGE__DETAIL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the detail feature </s> - diff --git a/funcom_test/22171599.txt b/funcom_test/22171599.txt deleted file mode 100644 index 9f557dd1a1269892750d97f0688af80dcfb025cc..0000000000000000000000000000000000000000 --- a/funcom_test/22171599.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSessionUUIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveMessage_sessionUUID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveMessage_sessionUUID_feature", "_UI_EveMessage_type"), - MsgPackage.Literals.EVE_MESSAGE__SESSION_UUID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the session uuid feature </s> - diff --git a/funcom_test/22171601.txt b/funcom_test/22171601.txt deleted file mode 100644 index 3e3c427fb5bc07afaa000357d3877148a2a26748..0000000000000000000000000000000000000000 --- a/funcom_test/22171601.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSenderUUIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveMessage_senderUUID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveMessage_senderUUID_feature", "_UI_EveMessage_type"), - MsgPackage.Literals.EVE_MESSAGE__SENDER_UUID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the sender uuid feature </s> - diff --git a/funcom_test/22171603.txt b/funcom_test/22171603.txt deleted file mode 100644 index d002f1e89c4686d264bf71500b6fee69b2cc1e3b..0000000000000000000000000000000000000000 --- a/funcom_test/22171603.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAttributeNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveUpdateMessage_attributeName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveUpdateMessage_attributeName_feature", "_UI_EveUpdateMessage_type"), - MsgPackage.Literals.EVE_UPDATE_MESSAGE__ATTRIBUTE_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the attribute name feature </s> - diff --git a/funcom_test/22171604.txt b/funcom_test/22171604.txt deleted file mode 100644 index bc4093a1eb843b43f29100107113c8f4a35b00b2..0000000000000000000000000000000000000000 --- a/funcom_test/22171604.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRecieverUUIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveMessage_recieverUUID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveMessage_recieverUUID_feature", "_UI_EveMessage_type"), - MsgPackage.Literals.EVE_MESSAGE__RECIEVER_UUID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the reciever uuid feature </s> - diff --git a/funcom_test/22171606.txt b/funcom_test/22171606.txt deleted file mode 100644 index cb33ac3563a4bf328a8a795f8171c151aabf2d60..0000000000000000000000000000000000000000 --- a/funcom_test/22171606.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOldValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveUpdateMessage_oldValue_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveUpdateMessage_oldValue_feature", "_UI_EveUpdateMessage_type"), - MsgPackage.Literals.EVE_UPDATE_MESSAGE__OLD_VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the old value feature </s> - diff --git a/funcom_test/22171608.txt b/funcom_test/22171608.txt deleted file mode 100644 index e4dd7474feb6d78592c02808e67c286368443112..0000000000000000000000000000000000000000 --- a/funcom_test/22171608.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTimestampPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveMessage_timestamp_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveMessage_timestamp_feature", "_UI_EveMessage_type"), - MsgPackage.Literals.EVE_MESSAGE__TIMESTAMP, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the timestamp feature </s> - diff --git a/funcom_test/22171609.txt b/funcom_test/22171609.txt deleted file mode 100644 index 3a65f2c935ad16ed2c09bd0563882d007bd6b9c7..0000000000000000000000000000000000000000 --- a/funcom_test/22171609.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNewValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveUpdateMessage_newValue_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveUpdateMessage_newValue_feature", "_UI_EveUpdateMessage_type"), - MsgPackage.Literals.EVE_UPDATE_MESSAGE__NEW_VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the new value feature </s> - diff --git a/funcom_test/22171613.txt b/funcom_test/22171613.txt deleted file mode 100644 index 80b0dd961bdd2d48b61bcebb51cb5adec590b541..0000000000000000000000000000000000000000 --- a/funcom_test/22171613.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFeatureIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveUpdateMessage_featureID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveUpdateMessage_featureID_feature", "_UI_EveUpdateMessage_type"), - MsgPackage.Literals.EVE_UPDATE_MESSAGE__FEATURE_ID, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the feature id feature </s> - diff --git a/funcom_test/22171628.txt b/funcom_test/22171628.txt deleted file mode 100644 index ab1617ab57b2a24af6c9a363ae68b0262ce68dcc..0000000000000000000000000000000000000000 --- a/funcom_test/22171628.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPayloadPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveSerializedMessage_payload_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveSerializedMessage_payload_feature", "_UI_EveSerializedMessage_type"), - MsgPackage.Literals.EVE_SERIALIZED_MESSAGE__PAYLOAD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the payload feature </s> - diff --git a/funcom_test/22171632.txt b/funcom_test/22171632.txt deleted file mode 100644 index f88ed12de975cb49a6fde1782719da15a7f9d7c8..0000000000000000000000000000000000000000 --- a/funcom_test/22171632.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void addFilenamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFileMessageSink_filename_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFileMessageSink_filename_feature", "_UI_EveFileMessageSink_type"), - MsgPackage.Literals.EVE_FILE_MESSAGE_SINK__FILENAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_FilePropertyCategory"), - new String[] { - "file" - })); - } - COM: <s> this adds a property descriptor for the filename feature </s> - diff --git a/funcom_test/22171636.txt b/funcom_test/22171636.txt deleted file mode 100644 index 8c2737950c06782864e62de3d6e415e95a637608..0000000000000000000000000000000000000000 --- a/funcom_test/22171636.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void addFiletypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFileMessageSink_filetype_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFileMessageSink_filetype_feature", "_UI_EveFileMessageSink_type"), - MsgPackage.Literals.EVE_FILE_MESSAGE_SINK__FILETYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_FilePropertyCategory"), - new String[] { - "file" - })); - } - COM: <s> this adds a property descriptor for the filetype feature </s> - diff --git a/funcom_test/22171637.txt b/funcom_test/22171637.txt deleted file mode 100644 index 7dfbc97d24ef11b76b9e6f4faca2772b0f3a915a..0000000000000000000000000000000000000000 --- a/funcom_test/22171637.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addHashtablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveDataMessage_hashtable_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveDataMessage_hashtable_feature", "_UI_EveDataMessage_type"), - MsgPackage.Literals.EVE_DATA_MESSAGE__HASHTABLE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the hashtable feature </s> - diff --git a/funcom_test/22171638.txt b/funcom_test/22171638.txt deleted file mode 100644 index da6838431bf084b03f2cf14ce930b341fc0c25c1..0000000000000000000000000000000000000000 --- a/funcom_test/22171638.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void addAppendPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFileMessageSink_append_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFileMessageSink_append_feature", "_UI_EveFileMessageSink_type"), - MsgPackage.Literals.EVE_FILE_MESSAGE_SINK__APPEND, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - getString("_UI_FilePropertyCategory"), - new String[] { - "file" - })); - } - COM: <s> this adds a property descriptor for the append feature </s> - diff --git a/funcom_test/22171643.txt b/funcom_test/22171643.txt deleted file mode 100644 index b4696aaebec86aa2c048b809c549f440539a3318..0000000000000000000000000000000000000000 --- a/funcom_test/22171643.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void addDelimeterFieldPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFileMessageSink_delimeterField_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFileMessageSink_delimeterField_feature", "_UI_EveFileMessageSink_type"), - MsgPackage.Literals.EVE_FILE_MESSAGE_SINK__DELIMETER_FIELD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_FilePropertyCategory"), - new String[] { - "file" - })); - } - COM: <s> this adds a property descriptor for the delimeter field feature </s> - diff --git a/funcom_test/22171659.txt b/funcom_test/22171659.txt deleted file mode 100644 index 91299e37461c41e21a2fc72c6bca6fc62a524b52..0000000000000000000000000000000000000000 --- a/funcom_test/22171659.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTimerThreadPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveTimer_timerThread_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveTimer_timerThread_feature", "_UI_EveTimer_type"), - TimerPackage.Literals.EVE_TIMER__TIMER_THREAD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the timer thread feature </s> - diff --git a/funcom_test/22171661.txt b/funcom_test/22171661.txt deleted file mode 100644 index 34ec62e1e05e643e290a077fd7b2e5aeae97c2c6..0000000000000000000000000000000000000000 --- a/funcom_test/22171661.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRunningPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveTimer_running_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveTimer_running_feature", "_UI_EveTimer_type"), - TimerPackage.Literals.EVE_TIMER__RUNNING, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the running feature </s> - diff --git a/funcom_test/22171662.txt b/funcom_test/22171662.txt deleted file mode 100644 index d8e29173583467fa9af17b2dedac007d12edab46..0000000000000000000000000000000000000000 --- a/funcom_test/22171662.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMaxRepeatPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveRepeatingTimer_maxRepeat_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveRepeatingTimer_maxRepeat_feature", "_UI_EveRepeatingTimer_type"), - TimerPackage.Literals.EVE_REPEATING_TIMER__MAX_REPEAT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the max repeat feature </s> - diff --git a/funcom_test/22171664.txt b/funcom_test/22171664.txt deleted file mode 100644 index badf65ee7a0bce312e5d07162877d0ac68cc3596..0000000000000000000000000000000000000000 --- a/funcom_test/22171664.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSleepPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveRepeatingTimer_sleep_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveRepeatingTimer_sleep_feature", "_UI_EveRepeatingTimer_type"), - TimerPackage.Literals.EVE_REPEATING_TIMER__SLEEP, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the sleep feature </s> - diff --git a/funcom_test/22171666.txt b/funcom_test/22171666.txt deleted file mode 100644 index 3662c00ae65d7f06b0f8021871fa2f0fc526590c..0000000000000000000000000000000000000000 --- a/funcom_test/22171666.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCounterPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveRepeatingTimer_counter_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveRepeatingTimer_counter_feature", "_UI_EveRepeatingTimer_type"), - TimerPackage.Literals.EVE_REPEATING_TIMER__COUNTER, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the counter feature </s> - diff --git a/funcom_test/22171678.txt b/funcom_test/22171678.txt deleted file mode 100644 index 3ebb8e1d2fc85515e2eef4624139c1c2a9a15051..0000000000000000000000000000000000000000 --- a/funcom_test/22171678.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCurrentTimePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveHistoryTimer_currentTime_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveHistoryTimer_currentTime_feature", "_UI_EveHistoryTimer_type"), - TimerPackage.Literals.EVE_HISTORY_TIMER__CURRENT_TIME, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the current time feature </s> - diff --git a/funcom_test/22171686.txt b/funcom_test/22171686.txt deleted file mode 100644 index a92c81b0cd6855a2f8a3bd0bfb244cc8573ed44a..0000000000000000000000000000000000000000 --- a/funcom_test/22171686.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSimIntervalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveHistoryTimer_simInterval_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveHistoryTimer_simInterval_feature", "_UI_EveHistoryTimer_type"), - TimerPackage.Literals.EVE_HISTORY_TIMER__SIM_INTERVAL, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the sim interval feature </s> - diff --git a/funcom_test/22171689.txt b/funcom_test/22171689.txt deleted file mode 100644 index a2b45e756c11de16def805deb73a28f0b7408f43..0000000000000000000000000000000000000000 --- a/funcom_test/22171689.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIsExponentialPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFunctionTimer_isExponential_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFunctionTimer_isExponential_feature", "_UI_EveFunctionTimer_type"), - TimerPackage.Literals.EVE_FUNCTION_TIMER__IS_EXPONENTIAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the is exponential feature </s> - diff --git a/funcom_test/22171693.txt b/funcom_test/22171693.txt deleted file mode 100644 index b9d6233e4cad0f37443dbc6e22659e73ad521e1e..0000000000000000000000000000000000000000 --- a/funcom_test/22171693.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIsLogarithmicPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFunctionTimer_isLogarithmic_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFunctionTimer_isLogarithmic_feature", "_UI_EveFunctionTimer_type"), - TimerPackage.Literals.EVE_FUNCTION_TIMER__IS_LOGARITHMIC, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the is logarithmic feature </s> - diff --git a/funcom_test/22171697.txt b/funcom_test/22171697.txt deleted file mode 100644 index 9d57a6b5417d296adb5c6c0a89605bdf8d401789..0000000000000000000000000000000000000000 --- a/funcom_test/22171697.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGradientPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFunctionTimer_gradient_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFunctionTimer_gradient_feature", "_UI_EveFunctionTimer_type"), - TimerPackage.Literals.EVE_FUNCTION_TIMER__GRADIENT, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the gradient feature </s> - diff --git a/funcom_test/22171701.txt b/funcom_test/22171701.txt deleted file mode 100644 index 88f540a3999befeb19723c7cb7699f6f9fd656d7..0000000000000000000000000000000000000000 --- a/funcom_test/22171701.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConstantPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFunctionTimer_constant_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFunctionTimer_constant_feature", "_UI_EveFunctionTimer_type"), - TimerPackage.Literals.EVE_FUNCTION_TIMER__CONSTANT, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the constant feature </s> - diff --git a/funcom_test/22171707.txt b/funcom_test/22171707.txt deleted file mode 100644 index 2db7e316720713c4a01cfcfe449468b02e4ea15b..0000000000000000000000000000000000000000 --- a/funcom_test/22171707.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPowerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFunctionTimer_power_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFunctionTimer_power_feature", "_UI_EveFunctionTimer_type"), - TimerPackage.Literals.EVE_FUNCTION_TIMER__POWER, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the power feature </s> - diff --git a/funcom_test/22171709.txt b/funcom_test/22171709.txt deleted file mode 100644 index 3a337e4fce9de6404b9082db99acd7f2c8f70f20..0000000000000000000000000000000000000000 --- a/funcom_test/22171709.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIsPowerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveFunctionTimer_isPower_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveFunctionTimer_isPower_feature", "_UI_EveFunctionTimer_type"), - TimerPackage.Literals.EVE_FUNCTION_TIMER__IS_POWER, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the is power feature </s> - diff --git a/funcom_test/22171711.txt b/funcom_test/22171711.txt deleted file mode 100644 index 045283b3e050e937279d7de63ba3ba8a07f5a5b4..0000000000000000000000000000000000000000 --- a/funcom_test/22171711.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIsRootPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveHistoryAgent_isRoot_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveHistoryAgent_isRoot_feature", "_UI_EveHistoryAgent_type"), - SocialNetworkAnalysisPackage.Literals.EVE_HISTORY_AGENT__IS_ROOT, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the is root feature </s> - diff --git a/funcom_test/22171715.txt b/funcom_test/22171715.txt deleted file mode 100644 index a12fc818c17cfa4a81d1d319c3181cba7435a7c3..0000000000000000000000000000000000000000 --- a/funcom_test/22171715.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addBirthdatePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveHistoryAgent_Birthdate_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveHistoryAgent_Birthdate_feature", "_UI_EveHistoryAgent_type"), - SocialNetworkAnalysisPackage.Literals.EVE_HISTORY_AGENT__BIRTHDATE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the birthdate feature </s> - diff --git a/funcom_test/22171718.txt b/funcom_test/22171718.txt deleted file mode 100644 index 5ac1f2ac1d3abe62d7d11d2d051dfe08a0eff8fe..0000000000000000000000000000000000000000 --- a/funcom_test/22171718.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addHistDataPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveHistoryAgent_histData_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveHistoryAgent_histData_feature", "_UI_EveHistoryAgent_type"), - SocialNetworkAnalysisPackage.Literals.EVE_HISTORY_AGENT__HIST_DATA, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the hist data feature </s> - diff --git a/funcom_test/22171734.txt b/funcom_test/22171734.txt deleted file mode 100644 index c75ac1f3b17588eb80f6f29961024fe98d847145..0000000000000000000000000000000000000000 --- a/funcom_test/22171734.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEditingPropabilityPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgentSNA_editingPropability_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgentSNA_editingPropability_feature", "_UI_EveAgentSNA_type"), - SocialNetworkAnalysisPackage.Literals.EVE_AGENT_SNA__EDITING_PROPABILITY, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the editing propability feature </s> - diff --git a/funcom_test/22171737.txt b/funcom_test/22171737.txt deleted file mode 100644 index 8785b8372ae4bb53746758496525e8fb828067ab..0000000000000000000000000000000000000000 --- a/funcom_test/22171737.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDeletingPropabilityPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgentSNA_deletingPropability_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgentSNA_deletingPropability_feature", "_UI_EveAgentSNA_type"), - SocialNetworkAnalysisPackage.Literals.EVE_AGENT_SNA__DELETING_PROPABILITY, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the deleting propability feature </s> - diff --git a/funcom_test/22171740.txt b/funcom_test/22171740.txt deleted file mode 100644 index d4d698a00248e0e9f9dc0c03e1dabb3fd36c5ad6..0000000000000000000000000000000000000000 --- a/funcom_test/22171740.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCreatingPropabilityPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgentSNA_creatingPropability_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgentSNA_creatingPropability_feature", "_UI_EveAgentSNA_type"), - SocialNetworkAnalysisPackage.Literals.EVE_AGENT_SNA__CREATING_PROPABILITY, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the creating propability feature </s> - diff --git a/funcom_test/22171744.txt b/funcom_test/22171744.txt deleted file mode 100644 index 9bd4f65c34364e52e83d534455e7e4faae2eb71b..0000000000000000000000000000000000000000 --- a/funcom_test/22171744.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStartedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgentSNA_started_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgentSNA_started_feature", "_UI_EveAgentSNA_type"), - SocialNetworkAnalysisPackage.Literals.EVE_AGENT_SNA__STARTED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the started feature </s> - diff --git a/funcom_test/22171803.txt b/funcom_test/22171803.txt deleted file mode 100644 index d25375e0b28739192b04492dd41978caee21f253..0000000000000000000000000000000000000000 --- a/funcom_test/22171803.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNodeStatusPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveMonitorNode_nodeStatus_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveMonitorNode_nodeStatus_feature", "_UI_EveMonitorNode_type"), - MonitorPackage.Literals.EVE_MONITOR_NODE__NODE_STATUS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the node status feature </s> - diff --git a/funcom_test/22171817.txt b/funcom_test/22171817.txt deleted file mode 100644 index c564441494fe07a4f99b9c2d7067ce6a601f6191..0000000000000000000000000000000000000000 --- a/funcom_test/22171817.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConnectedComponentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveConnection_connectedComponent_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveConnection_connectedComponent_feature", "_UI_EveConnection_type"), - EvesimPackage.Literals.EVE_CONNECTION__CONNECTED_COMPONENT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the connected component feature </s> - diff --git a/funcom_test/22171819.txt b/funcom_test/22171819.txt deleted file mode 100644 index 0245fddd04bec081f68c20faede29cca86b803f3..0000000000000000000000000000000000000000 --- a/funcom_test/22171819.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStrengthPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveConnection_strength_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveConnection_strength_feature", "_UI_EveConnection_type"), - EvesimPackage.Literals.EVE_CONNECTION__STRENGTH, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the strength feature </s> - diff --git a/funcom_test/22171820.txt b/funcom_test/22171820.txt deleted file mode 100644 index d5904c9174d04d45b1cf88acf68a9ba9bd8f4266..0000000000000000000000000000000000000000 --- a/funcom_test/22171820.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUriPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_uri_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_uri_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_GeneralPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the uri feature </s> - diff --git a/funcom_test/22171822.txt b/funcom_test/22171822.txt deleted file mode 100644 index 6318f81e06398855303545a53159a2028d07937e..0000000000000000000000000000000000000000 --- a/funcom_test/22171822.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConnectedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveConnection_connected_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveConnection_connected_feature", "_UI_EveConnection_type"), - EvesimPackage.Literals.EVE_CONNECTION__CONNECTED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the connected feature </s> - diff --git a/funcom_test/22171823.txt b/funcom_test/22171823.txt deleted file mode 100644 index 5cce118b2546180d825ef0e6c93164312db39b9c..0000000000000000000000000000000000000000 --- a/funcom_test/22171823.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveConnection_type_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveConnection_type_feature", "_UI_EveConnection_type"), - EvesimPackage.Literals.EVE_CONNECTION__TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the type feature </s> - diff --git a/funcom_test/22171825.txt b/funcom_test/22171825.txt deleted file mode 100644 index 2d9a1707f286a272ccf8fcf116a478b8926e2595..0000000000000000000000000000000000000000 --- a/funcom_test/22171825.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDirectionalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveConnection_directional_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveConnection_directional_feature", "_UI_EveConnection_type"), - EvesimPackage.Literals.EVE_CONNECTION__DIRECTIONAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the directional feature </s> - diff --git a/funcom_test/22171827.txt b/funcom_test/22171827.txt deleted file mode 100644 index 81b80a356be197969764628f62481d099f72f783..0000000000000000000000000000000000000000 --- a/funcom_test/22171827.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_name_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_GeneralPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the name feature </s> - diff --git a/funcom_test/22171835.txt b/funcom_test/22171835.txt deleted file mode 100644 index bfd34588d4100cfcee9b0a320b5f74ef294e5605..0000000000000000000000000000000000000000 --- a/funcom_test/22171835.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_description_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_description_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__DESCRIPTION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_GeneralPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the description feature </s> - diff --git a/funcom_test/22171839.txt b/funcom_test/22171839.txt deleted file mode 100644 index 313f2d5770419d7f6b4463e2a47a8b195ca717bc..0000000000000000000000000000000000000000 --- a/funcom_test/22171839.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocLongitudePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_locLongitude_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_locLongitude_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOC_LONGITUDE, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - getString("_UI_LocationCoordinatesPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the loc longitude feature </s> - diff --git a/funcom_test/22171841.txt b/funcom_test/22171841.txt deleted file mode 100644 index bfda03382f90cce294aa14a09d2e6dadfcf5b44e..0000000000000000000000000000000000000000 --- a/funcom_test/22171841.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMessageQueuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNode_messageQueue_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNode_messageQueue_feature", "_UI_EveNode_type"), - EvesimPackage.Literals.EVE_NODE__MESSAGE_QUEUE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the message queue feature </s> - diff --git a/funcom_test/22171843.txt b/funcom_test/22171843.txt deleted file mode 100644 index dc410b722661b32393d7772d89b964e911d8ae7f..0000000000000000000000000000000000000000 --- a/funcom_test/22171843.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocLatitudePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_locLatitude_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_locLatitude_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOC_LATITUDE, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - getString("_UI_LocationCoordinatesPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the loc latitude feature </s> - diff --git a/funcom_test/22171844.txt b/funcom_test/22171844.txt deleted file mode 100644 index e55b037f1d753c4629974915298eef48731dc2e4..0000000000000000000000000000000000000000 --- a/funcom_test/22171844.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addServerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNode_server_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNode_server_feature", "_UI_EveNode_type"), - EvesimPackage.Literals.EVE_NODE__SERVER, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the server feature </s> - diff --git a/funcom_test/22171846.txt b/funcom_test/22171846.txt deleted file mode 100644 index 15d0ce7e53c8c7dfcec027e90f543e0635a94708..0000000000000000000000000000000000000000 --- a/funcom_test/22171846.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNodeTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNode_nodeType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNode_nodeType_feature", "_UI_EveNode_type"), - EvesimPackage.Literals.EVE_NODE__NODE_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the node type feature </s> - diff --git a/funcom_test/22171847.txt b/funcom_test/22171847.txt deleted file mode 100644 index abf1a4ca23a84bb7fb0e87c563bf8cb74ced7183..0000000000000000000000000000000000000000 --- a/funcom_test/22171847.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addServerUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNode_serverUrl_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNode_serverUrl_feature", "_UI_EveNode_type"), - EvesimPackage.Literals.EVE_NODE__SERVER_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the server url feature </s> - diff --git a/funcom_test/22171848.txt b/funcom_test/22171848.txt deleted file mode 100644 index 70483732791040ad37ba92dd902b28ed012e8362..0000000000000000000000000000000000000000 --- a/funcom_test/22171848.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocCountryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_locCountry_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_locCountry_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOC_COUNTRY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_LocationPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the loc country feature </s> - diff --git a/funcom_test/22171854.txt b/funcom_test/22171854.txt deleted file mode 100644 index d1e0897cba94cec8f9ab659eff35f45c56afbbaf..0000000000000000000000000000000000000000 --- a/funcom_test/22171854.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocCityPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_locCity_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_locCity_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOC_CITY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_LocationPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the loc city feature </s> - diff --git a/funcom_test/22171857.txt b/funcom_test/22171857.txt deleted file mode 100644 index c3efaac0b0363706a0a3187dd805b54f5d13105d..0000000000000000000000000000000000000000 --- a/funcom_test/22171857.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocPONrPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_locPONr_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_locPONr_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOC_PO_NR, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_LocationPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the loc po nr feature </s> - diff --git a/funcom_test/22171862.txt b/funcom_test/22171862.txt deleted file mode 100644 index 5ee14e2876c3bcec07fab93058c74cafb6c2ae4c..0000000000000000000000000000000000000000 --- a/funcom_test/22171862.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocAddressPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_locAddress_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_locAddress_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOC_ADDRESS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_LocationPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the loc address feature </s> - diff --git a/funcom_test/22171867.txt b/funcom_test/22171867.txt deleted file mode 100644 index cc932405c8791911813bbb823186ada26173629f..0000000000000000000000000000000000000000 --- a/funcom_test/22171867.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocLocationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_locLocation_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_locLocation_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOC_LOCATION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_LocationPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the loc location feature </s> - diff --git a/funcom_test/22171873.txt b/funcom_test/22171873.txt deleted file mode 100644 index b39ebcbbe5c750e609ae8c90ee9fe6be40559b45..0000000000000000000000000000000000000000 --- a/funcom_test/22171873.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNetIPPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_netIP_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_netIP_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__NET_IP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_NetworkPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the net ip feature </s> - diff --git a/funcom_test/22171878.txt b/funcom_test/22171878.txt deleted file mode 100644 index 8d4b7f2c0d5d49898b1958a907afc325af166ef8..0000000000000000000000000000000000000000 --- a/funcom_test/22171878.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNetUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_netUrl_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_netUrl_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__NET_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - getString("_UI_NetworkPropertyCategory"), - null)); - } - COM: <s> this adds a property descriptor for the net url feature </s> - diff --git a/funcom_test/22171881.txt b/funcom_test/22171881.txt deleted file mode 100644 index 049d32f3f28b586d9ef0e93b1541f5800a79b437..0000000000000000000000000000000000000000 --- a/funcom_test/22171881.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_location_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_location_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__LOCATION, - true, - true, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the location feature </s> - diff --git a/funcom_test/22171885.txt b/funcom_test/22171885.txt deleted file mode 100644 index c128c8aa66f5077d3dbb1f044bee4d9ab3bd39a1..0000000000000000000000000000000000000000 --- a/funcom_test/22171885.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTimeStampPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_timeStamp_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_timeStamp_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__TIME_STAMP, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the time stamp feature </s> - diff --git a/funcom_test/22171890.txt b/funcom_test/22171890.txt deleted file mode 100644 index 629ca0b528ae69eba4a7ef746a49c88c172ae16d..0000000000000000000000000000000000000000 --- a/funcom_test/22171890.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAttachedConnectionsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveComponent_attachedConnections_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveComponent_attachedConnections_feature", "_UI_EveComponent_type"), - EvesimPackage.Literals.EVE_COMPONENT__ATTACHED_CONNECTIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the attached connections feature </s> - diff --git a/funcom_test/22171902.txt b/funcom_test/22171902.txt deleted file mode 100644 index c987eaebb238e05c5ea3a49d7e585bb16da51a37..0000000000000000000000000000000000000000 --- a/funcom_test/22171902.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNodePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNodeServer_node_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNodeServer_node_feature", "_UI_EveNodeServer_type"), - EvesimPackage.Literals.EVE_NODE_SERVER__NODE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the node feature </s> - diff --git a/funcom_test/22171905.txt b/funcom_test/22171905.txt deleted file mode 100644 index b8184ecb27e55f8df8df4c80114f037034668bb4..0000000000000000000000000000000000000000 --- a/funcom_test/22171905.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addJettyServerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNodeServer_jettyServer_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNodeServer_jettyServer_feature", "_UI_EveNodeServer_type"), - EvesimPackage.Literals.EVE_NODE_SERVER__JETTY_SERVER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the jetty server feature </s> - diff --git a/funcom_test/22171909.txt b/funcom_test/22171909.txt deleted file mode 100644 index 573eafe4e3fb42763d9a041c1f27feb75cee3900..0000000000000000000000000000000000000000 --- a/funcom_test/22171909.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addServerHostPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNodeServer_serverHost_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNodeServer_serverHost_feature", "_UI_EveNodeServer_type"), - EvesimPackage.Literals.EVE_NODE_SERVER__SERVER_HOST, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the server host feature </s> - diff --git a/funcom_test/22171911.txt b/funcom_test/22171911.txt deleted file mode 100644 index e65a1ae3186ed0d8304c3ce5c727f7ade9b02789..0000000000000000000000000000000000000000 --- a/funcom_test/22171911.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addServerPortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNodeServer_serverPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNodeServer_serverPort_feature", "_UI_EveNodeServer_type"), - EvesimPackage.Literals.EVE_NODE_SERVER__SERVER_PORT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the server port feature </s> - diff --git a/funcom_test/22171912.txt b/funcom_test/22171912.txt deleted file mode 100644 index 08081f14e3b4ddd04451b377737fabb22a13c161..0000000000000000000000000000000000000000 --- a/funcom_test/22171912.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStepDurationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveSimulation_stepDuration_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveSimulation_stepDuration_feature", "_UI_EveSimulation_type"), - EvesimPackage.Literals.EVE_SIMULATION__STEP_DURATION, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the step duration feature </s> - diff --git a/funcom_test/22171914.txt b/funcom_test/22171914.txt deleted file mode 100644 index b600049900d1783026a86fc1413a54f413178ced..0000000000000000000000000000000000000000 --- a/funcom_test/22171914.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStepCountPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveSimulation_stepCount_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveSimulation_stepCount_feature", "_UI_EveSimulation_type"), - EvesimPackage.Literals.EVE_SIMULATION__STEP_COUNT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the step count feature </s> - diff --git a/funcom_test/22171915.txt b/funcom_test/22171915.txt deleted file mode 100644 index 6ee17fc071f616a38cf2fec9901f5e08a4e2ee86..0000000000000000000000000000000000000000 --- a/funcom_test/22171915.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addThreadPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveNodeServer_thread_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveNodeServer_thread_feature", "_UI_EveNodeServer_type"), - EvesimPackage.Literals.EVE_NODE_SERVER__THREAD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the thread feature </s> - diff --git a/funcom_test/22171919.txt b/funcom_test/22171919.txt deleted file mode 100644 index dfa8c14f9c3e5ed857f6eb5824a20833fdfebb3a..0000000000000000000000000000000000000000 --- a/funcom_test/22171919.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPrototypeUUIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_prototypeUUID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_prototypeUUID_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__PROTOTYPE_UUID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the prototype uuid feature </s> - diff --git a/funcom_test/22171924.txt b/funcom_test/22171924.txt deleted file mode 100644 index 258fbd7a4fa2197a4de991779d641e28d06dd97e..0000000000000000000000000000000000000000 --- a/funcom_test/22171924.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPrototypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_prototype_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_prototype_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__PROTOTYPE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the prototype feature </s> - diff --git a/funcom_test/22171930.txt b/funcom_test/22171930.txt deleted file mode 100644 index a59852fae8ec38f935c871bb2b3600fbeaf1cb8d..0000000000000000000000000000000000000000 --- a/funcom_test/22171930.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAgentPoolUUIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_agentPoolUUID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_agentPoolUUID_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__AGENT_POOL_UUID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the agent pool uuid feature </s> - diff --git a/funcom_test/22171937.txt b/funcom_test/22171937.txt deleted file mode 100644 index 16e282c9ca81900e0b99c06d7d8c8a09ec4e7b65..0000000000000000000000000000000000000000 --- a/funcom_test/22171937.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAgentPoolPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_agentPool_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_agentPool_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__AGENT_POOL, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the agent pool feature </s> - diff --git a/funcom_test/22171941.txt b/funcom_test/22171941.txt deleted file mode 100644 index 795d225b7e3ed305da5d6f8af4b1c5baa872f8ed..0000000000000000000000000000000000000000 --- a/funcom_test/22171941.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDemandedServicesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_demandedServices_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_demandedServices_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__DEMANDED_SERVICES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the demanded services feature </s> - diff --git a/funcom_test/22171942.txt b/funcom_test/22171942.txt deleted file mode 100644 index 4a65ceb7e852a78f7db09d52cba831d5c895a8b1..0000000000000000000000000000000000000000 --- a/funcom_test/22171942.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOfferedServicesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_offeredServices_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_offeredServices_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__OFFERED_SERVICES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the offered services feature </s> - diff --git a/funcom_test/22171943.txt b/funcom_test/22171943.txt deleted file mode 100644 index 5a9e66344e1d1e937e77f7a79e160d99025569cc..0000000000000000000000000000000000000000 --- a/funcom_test/22171943.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocalServicePoolPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_localServicePool_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_localServicePool_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__LOCAL_SERVICE_POOL, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the local service pool feature </s> - diff --git a/funcom_test/22171945.txt b/funcom_test/22171945.txt deleted file mode 100644 index f0f297496e82138087db06682ddb436841e2ff95..0000000000000000000000000000000000000000 --- a/funcom_test/22171945.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addBetweenessPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_EveAgent_betweeness_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_EveAgent_betweeness_feature", "_UI_EveAgent_type"), - EvesimPackage.Literals.EVE_AGENT__BETWEENESS, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the betweeness feature </s> - diff --git a/funcom_test/22218429.txt b/funcom_test/22218429.txt deleted file mode 100644 index 754f2c98e604c3198d96e5f5fb3ee4738a6605ea..0000000000000000000000000000000000000000 --- a/funcom_test/22218429.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void disconnect() throws IOException { - out = null; - in = null; - buffer = null; - encoder = null; - decoder = null; - if (isAutoCloseSnoop()) { - closeQuietly(snoopOut); - closeQuietly(snoopIn); - } else { - flushQuietly(snoopOut); - flushQuietly(snoopIn); - } - } - COM: <s> close the connection to the smsc </s> - diff --git a/funcom_test/22218432.txt b/funcom_test/22218432.txt deleted file mode 100644 index f9a013b0ba5bc13d46a2e2213a72891cc145e9d8..0000000000000000000000000000000000000000 --- a/funcom_test/22218432.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setTimeout(int timeout) { - try { - sockTimeout = timeout; - if (sock != null) { - sock.setSoTimeout(sockTimeout); - } - } catch (SocketException x) { - LOG.error("Failed to set timeout on socket: {} ", x.getMessage()); - if (LOG.isDebugEnabled()) { - LOG.debug(STACK_TRACE_ERR, x); - } - } - } - COM: <s> set the socket timeout </s> - diff --git a/funcom_test/22218478.txt b/funcom_test/22218478.txt deleted file mode 100644 index 742e742ca076f1d64084318a11417e73e06096e1..0000000000000000000000000000000000000000 --- a/funcom_test/22218478.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void dump(OutputStream s, byte[] b, int offset, int len) { - try { - if (s != null) { - s.write(b, offset, len); - } - } catch (IOException x) { - LOG.warn("Couldn't write incoming bytes to input snooper.", x); - } - } - COM: <s> dump bytes to an output stream </s> - diff --git a/funcom_test/22218483.txt b/funcom_test/22218483.txt deleted file mode 100644 index d236d044465689e87a0386fffdd285f076118db9..0000000000000000000000000000000000000000 --- a/funcom_test/22218483.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private boolean isAutoCloseSnoop() { - boolean autoClose = true; - try { - APIConfig config = APIConfigFactory.getConfig(); - autoClose = config.getBoolean(APIConfig.LINK_AUTOCLOSE_SNOOP); - } catch (PropertyNotFoundException x) { - LOG.debug("{} property not found. Using the default of {}", - APIConfig.LINK_AUTOCLOSE_SNOOP, autoClose); - } - - return autoClose; - } - COM: <s> check the configuration to see if the snoop streams should be </s> - diff --git a/funcom_test/22218597.txt b/funcom_test/22218597.txt deleted file mode 100644 index 8175b7c7aa5fe79bb174b49b772970ec11ea88a5..0000000000000000000000000000000000000000 --- a/funcom_test/22218597.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void notifyObservers(Session conn, SMPPEvent event) { - SessionObserver[] observerList = getObserverList(); - for (SessionObserver observer : observerList) { - try { - observer.update(conn, event); - } catch (Exception x) { - LOG.error("An observer threw an exception during event processing", x); - } - } - } - COM: <s> notify registered observers of an smpp event </s> - diff --git a/funcom_test/22218599.txt b/funcom_test/22218599.txt deleted file mode 100644 index 518bf40a2b0eb1331e516a1b1f55f55e3d5ccc1f..0000000000000000000000000000000000000000 --- a/funcom_test/22218599.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void notifyObservers(Session conn, SMPPPacket packet) { - SessionObserver[] observerList = getObserverList(); - for (SessionObserver observer : observerList) { - try { - observer.packetReceived(conn, packet); - } catch (Exception x) { - LOG.error("An observer threw an exception during packet processing", x); - } - } - } - COM: <s> notify registered observers of an incoming smpp packet </s> - diff --git a/funcom_test/22218671.txt b/funcom_test/22218671.txt deleted file mode 100644 index e103f808f79fd2e1b253ba272a8c619ad46da04c..0000000000000000000000000000000000000000 --- a/funcom_test/22218671.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public SMPPPacket newResponse(SMPPPacket packet) { - if (packet.isResponse()) { - throw new SMPPRuntimeException( - "Cannot create a response to a response!"); - } - int id = packet.getCommandId(); - SMPPPacket response = newInstance(id | 0x80000000, packet); - response.setSequenceNum(packet.getSequenceNum()); - return response; - } - COM: <s> get a response packet for the specified request </s> - diff --git a/funcom_test/22218702.txt b/funcom_test/22218702.txt deleted file mode 100644 index 10d665fe57f708ad1dbc4a9e1bbb362400a7e6d0..0000000000000000000000000000000000000000 --- a/funcom_test/22218702.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected boolean toBoolean(String value) { - Boolean bool = BOOLEANS.get(value); - if (bool == null) { - try { - if (Integer.parseInt(value) != 0) { - bool = Boolean.TRUE; - } else { - bool = Boolean.FALSE; - } - } catch (NumberFormatException x) { - throw new InvalidConfigurationException( - "Invalid boolean property", value); - } - } - return bool.booleanValue(); - } - COM: <s> convert a string value to a boolean </s> - diff --git a/funcom_test/22218703.txt b/funcom_test/22218703.txt deleted file mode 100644 index bd032da8a1b52d8d95419e6cccd01dd55d483055..0000000000000000000000000000000000000000 --- a/funcom_test/22218703.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public BindResp bind(Bind bindRequest) throws IOException { - long timeout = getBindTimeout(); - BindResp bindResp = (BindResp) sendAndWait( - bindRequest, bindCaller, timeout); - if (bindResp == null) { - throw new ReadTimeoutException(); - } else { - return bindResp; - } - } - COM: <s> bind to the smsc </s> - diff --git a/funcom_test/22218740.txt b/funcom_test/22218740.txt deleted file mode 100644 index d66f906dd4b403a64e4672deacf86cf03309a410..0000000000000000000000000000000000000000 --- a/funcom_test/22218740.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public SMPPPacket readNextPacket(boolean block) throws IOException { - SMPPPacket packet = null; - try { - synchronized (packetQueue) { - if (packetQueue.size() < 1 && block) { - packetQueue.wait(); - } else { - packet = packetQueue.remove(0); - } - } - } catch (InterruptedException x) { - LOG.info("Thread interrupted while blocked waiting on a packet."); - } - return packet; - } - COM: <s> read the next packet from the connection </s> - diff --git a/funcom_test/22219311.txt b/funcom_test/22219311.txt deleted file mode 100644 index 3bdba547361b4055fe4c77f984c595a34abd8db4..0000000000000000000000000000000000000000 --- a/funcom_test/22219311.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int hashCode() { - StringBuilder buf = new StringBuilder(); - buf.append(Integer.toString(ton)).append(':'); - buf.append(Integer.toString(npi)).append(':'); - if (address != null) { - buf.append(address); - } - return buf.hashCode(); - } - COM: <s> get a unique hash code for this address </s> - diff --git a/funcom_test/22219357.txt b/funcom_test/22219357.txt deleted file mode 100644 index f873547c23cb649fb3973825d631620ade53de28..0000000000000000000000000000000000000000 --- a/funcom_test/22219357.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setData(byte[] data) { - if (data == null) { - throw new NullPointerException("data cannot be null"); - } - this.data = new byte[data.length + 7]; - System.arraycopy(data, 0, this.data, 7, data.length); - initHeader(data.length); - reset(); - } - COM: <s> set this extended objects data </s> - diff --git a/funcom_test/22322680.txt b/funcom_test/22322680.txt deleted file mode 100644 index 4a7b9755a32b219568a180cf19db3a10df005113..0000000000000000000000000000000000000000 --- a/funcom_test/22322680.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String toString() { - String csm="CSM(MCL/" + getMCL() + " "; - Enumeration tags = orderedTags.elements(); - while (tags.hasMoreElements()) { - String tag = (String) tags.nextElement(); - csm = csm + tag + "/" + getFieldContent(tag) + " "; - } - - csm = csm + ")"; - return csm; - } - COM: <s> formats the csm as a string suitable for transfer </s> - diff --git a/funcom_test/22323120.txt b/funcom_test/22323120.txt deleted file mode 100644 index 61720e4e29f60f679da68b89c51ae9f82f2c4ada..0000000000000000000000000000000000000000 --- a/funcom_test/22323120.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected OutputStream getCompressedOutputStream(File f) throws IOException{ - OutputStream os = new BufferedOutputStream(new FileOutputStream(f)); - if (getCompressionFormat() == ZIP) { - ZipOutputStream ret = new ZipOutputStream(os); - ret.putNextEntry(new ZipEntry(logName)); - return ret; - } else { - return new GZIPOutputStream(os); - } - } - COM: <s> hook method that creates an output stream that will compress the data </s> - diff --git a/funcom_test/22323490.txt b/funcom_test/22323490.txt deleted file mode 100644 index c2503addd58f448ceb71e9df8c656a7496f968ab..0000000000000000000000000000000000000000 --- a/funcom_test/22323490.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String makeExceptionMessage(ISOComponent c, String operation) { - Object fieldKey = "unknown"; - if (c != null) - { - try - { - fieldKey = c.getKey(); - } catch (Exception ignore) - { - } - } - return getClass().getName() + ": Problem " + operation + " field " + fieldKey; - } - COM: <s> create a nice readable message for errors </s> - diff --git a/funcom_test/22323761.txt b/funcom_test/22323761.txt deleted file mode 100644 index bd618d9c547706a9aa3680e9d5f3ecfd4713277e..0000000000000000000000000000000000000000 --- a/funcom_test/22323761.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void copyFromParent( ISOMsg Source ){ - this.packager = Source.packager; - this.fields = Source.fields; - this.dirty = Source.dirty; - this.maxFieldDirty = Source.maxFieldDirty; - this.header = Source.header; - this.fieldNumber = Source.fieldNumber; - this.maxField = Source.maxField; - this.direction = Source.direction; - } - COM: <s> copy properties from parent </s> - diff --git a/funcom_test/22323816.txt b/funcom_test/22323816.txt deleted file mode 100644 index bcd40c88c5739506e820c491a141e8719e8b935a..0000000000000000000000000000000000000000 --- a/funcom_test/22323816.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ISOChannelPanel (String symbolicName) { - super(); - this.symbolicName = symbolicName; - setLayout(new FlowLayout()); - setBorder(BorderFactory.createRaisedBevelBorder()); - log = new DefaultListModel(); - add(createCountersPanel()); - meter.setConnected(false); - } - COM: <s> unconnected constructor allows for instantiation of </s> - diff --git a/funcom_test/22323845.txt b/funcom_test/22323845.txt deleted file mode 100644 index 027908819fcc34555314b5f49287c1775cfc0434..0000000000000000000000000000000000000000 --- a/funcom_test/22323845.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getString (int fldno) { - String s = null; - if (hasField (fldno)) { - try { - Object obj = getValue(fldno); - if (obj instanceof String) - s = (String) obj; - else if (obj instanceof byte[]) - s = ISOUtil.hexString ((byte[]) obj); - } catch (ISOException e) { - // ignore ISOException - return null - } - } - return s; - } - COM: <s> return the string value associated with the given isofield number </s> - diff --git a/funcom_test/22323858.txt b/funcom_test/22323858.txt deleted file mode 100644 index 494e236a838c2813424b6d10909c09ae074f5682..0000000000000000000000000000000000000000 --- a/funcom_test/22323858.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getString (String fpath) { - String s = null; - try { - Object obj = getValue(fpath); - if (obj instanceof String) - s = (String) obj; - else if (obj instanceof byte[]) - s = ISOUtil.hexString ((byte[]) obj); - } catch (ISOException e) { - // ignore ISOException - return null - } - return s; - } - COM: <s> return the string value associated with the given field path </s> - diff --git a/funcom_test/22324152.txt b/funcom_test/22324152.txt deleted file mode 100644 index f10075fdf0a1e6d2c7dd5b9f1a022bbc961d1050..0000000000000000000000000000000000000000 --- a/funcom_test/22324152.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setConfiguration(Configuration cfg) throws ConfigurationException { - this.cfg = cfg; - this.minLen = cfg.getInt( "min-len", 0 ); - this.maxLen = cfg.getInt( "max-len", 999999 ); - this.breakOnError = cfg.getBoolean( "break-on-error", false ); - } - COM: <s> default config params are min len minimun length </s> - diff --git a/funcom_test/22324233.txt b/funcom_test/22324233.txt deleted file mode 100644 index 0deff3f73069c214be4a818fccb090302fc359be..0000000000000000000000000000000000000000 --- a/funcom_test/22324233.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void unpack(byte[] buf) throws ISOException { - ByteBuffer buffer=ByteBuffer.wrap(buf); - TLVMsg currentNode; - while (hasNext(buffer)) { - currentNode = getTLVMsg(buffer); // null is returned if no tag found (trailing padding) - if (currentNode != null) { - append(currentNode); - } - } - } - COM: <s> unpack a message </s> - diff --git a/funcom_test/22324238.txt b/funcom_test/22324238.txt deleted file mode 100644 index 20839e59003f0358386b9b99053cf66e2ade890a..0000000000000000000000000000000000000000 --- a/funcom_test/22324238.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void unpack(byte[] buf, int offset) throws ISOException { - ByteBuffer buffer=ByteBuffer.wrap(buf,offset,buf.length-offset); - TLVMsg currentNode; - while (hasNext(buffer)) { - currentNode = getTLVMsg(buffer); - append(currentNode); - } - } - COM: <s> unpack a message with a starting offset </s> - diff --git a/funcom_test/22324668.txt b/funcom_test/22324668.txt deleted file mode 100644 index fd2a0e372a50e307cf2f6b3fb8257ed3e157763a..0000000000000000000000000000000000000000 --- a/funcom_test/22324668.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setConfiguration (Configuration cfg) throws ConfigurationException { - this.cfg = cfg; - try { - init(cfg.get("provider"), cfg.get("lmk"), cfg.getBoolean("rebuildlmk")); - } catch (SMException e) { - throw new ConfigurationException(e); - } - } - COM: <s> configures a jcesecurity module </s> - diff --git a/funcom_test/22324839.txt b/funcom_test/22324839.txt deleted file mode 100644 index 5b22b5c5febd08ddb2e7c5a1e662ad5e25497ead..0000000000000000000000000000000000000000 --- a/funcom_test/22324839.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public PersistentPeer getPeer (Object obj) throws NoPeerException { - if (obj instanceof PersistentPeer) - return (PersistentPeer) obj; - else { - try { - Class c = Class.forName (obj.getClass().getName()+"Peer"); - return (PersistentPeer) c.newInstance(); - } catch (Exception e) { - throw new NoPeerException (e.toString()); - } - } - } - COM: <s> finds a peer for this object </s> - diff --git a/funcom_test/22324971.txt b/funcom_test/22324971.txt deleted file mode 100644 index 961ff4fb9e3805c95fee1015bfe8d02415b1a6f2..0000000000000000000000000000000000000000 --- a/funcom_test/22324971.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public ISOMsg getResponse(int timeout) { - synchronized (this) { - if (response == null) { - try { - if (timeout > 0) - wait(timeout); - else - wait(); - } catch (InterruptedException e) { } - } - setExpired (response == null); - } - Logger.log (new LogEvent (this, "ISORequest", this)); - return response; - } - COM: <s> wait for a response to arrive </s> - diff --git a/funcom_test/22324991.txt b/funcom_test/22324991.txt deleted file mode 100644 index f1d60471b6ae08f0b95aee71692451f790220044..0000000000000000000000000000000000000000 --- a/funcom_test/22324991.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected String getKey(ISOMsg m) throws ISOException { - return (m.hasField(41)?ISOUtil.zeropad((String)m.getValue(41),16) : "") - + (m.hasField (traceNumberField) ? - ISOUtil.zeropad((String) m.getValue(traceNumberField),6) : - Long.toString (System.currentTimeMillis())); - } - COM: <s> construct key to match request with responses </s> - diff --git a/funcom_test/22325002.txt b/funcom_test/22325002.txt deleted file mode 100644 index aa147bcf313e313a328b69f7da3ddc6e27a4c590..0000000000000000000000000000000000000000 --- a/funcom_test/22325002.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void purgeRxQueue() { - Enumeration e = rxQueue.keys(); - while (e.hasMoreElements()) { - Object key = e.nextElement(); - ISORequest r = (ISORequest) rxQueue.get(key); - if (r != null && r.isExpired()) { - rxQueue.remove(key); - cnt[RX_EXPIRED]++; - } - } - } - COM: <s> get rid of expired requests </s> - diff --git a/funcom_test/22325184.txt b/funcom_test/22325184.txt deleted file mode 100644 index 99f8afc18dd4ec3c9674b49a56b5ad7d51d6c7c1..0000000000000000000000000000000000000000 --- a/funcom_test/22325184.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setConnect (boolean connect) { - this.doConnect = connect; - if (!connect && isConnected()) { - channel.setUsable(false); - try { - channel.disconnect(); - } catch (IOException e) { - Logger.log (new LogEvent(this, "set-connect", e)); - } - synchronized(this) { - this.notify(); - } - } - } - COM: <s> isomuxs usually calls connect on the underlying isochannel br </s> - diff --git a/funcom_test/22325710.txt b/funcom_test/22325710.txt deleted file mode 100644 index bf78dd9bb78e082d01ec4ee8482b6d734b6f7ee6..0000000000000000000000000000000000000000 --- a/funcom_test/22325710.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void init() { - log.debug("Running Broker.init().."); - try { - serverSocket = new ServerSocket(config.getLocalComPort()); - } catch (Exception e) { - log.fatal("Unable to create server socket", e); - throw new RuntimeException(e); - } - - dataBase = new DataBase(); - - taskDispenser = new StandardTaskDispenser(); - } - COM: <s> initializes brokers services </s> - diff --git a/funcom_test/22325711.txt b/funcom_test/22325711.txt deleted file mode 100644 index 3254f7e9e31ec4d2f2a9a61db65de8ac77bef3ec..0000000000000000000000000000000000000000 --- a/funcom_test/22325711.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void start() { - log.debug("Running Broker.start().."); - - try { - while (true) { - Socket connectionSocket = serverSocket.accept(); - BrokerConnection connection = new BrokerConnection( - connectionSocket, dataBase, taskDispenser); - Thread clientConnectionThread = new Thread(connection); - clientConnectionThread.start(); - } - } catch (Exception e) { - log.warn("Broker runtime error", e); - throw new RuntimeException(e); - } - } - COM: <s> starts the broker activity </s> - diff --git a/funcom_test/22325727.txt b/funcom_test/22325727.txt deleted file mode 100644 index 550e36bcf93e33aaa7890cd01ada3d6ae7760bea..0000000000000000000000000000000000000000 --- a/funcom_test/22325727.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void registerTaskFile(String taskName, UniqueID fileID) { - log.debug("Running Client.registerTaskFile(taskName, fileID).."); - RemoteTask remoteTask = new RemoteTask(fileID, connection, config); - tasks.put(taskName, remoteTask); - } - COM: <s> creates the remote task using the file name and file id provided </s> - diff --git a/funcom_test/22325728.txt b/funcom_test/22325728.txt deleted file mode 100644 index 170efc41c86e9bdaa948f0ab4a5e03ed1939cf39..0000000000000000000000000000000000000000 --- a/funcom_test/22325728.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setupDefaults() { - log.debug("Running ClientConfig.setupDefaults().."); - setBrokerHost("127.0.0.1"); - setBrokerComPort(1980); - setFilesDir("files"); - setTempDir("temp"); - setClientGFTPPort(1984); - } - COM: <s> sets up the default values of the properties </s> - diff --git a/funcom_test/22325768.txt b/funcom_test/22325768.txt deleted file mode 100644 index 3b5ecf34fa94d2c4dd3ceb45139134cb90ac74a0..0000000000000000000000000000000000000000 --- a/funcom_test/22325768.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void reportTaskDone(UniqueID taskID, String fileName) { - log - .debug("Running BrokerConnection.reportTaskDone(taskID, fileName).."); - UniqueID resultFileID = taskDispenser.taskDone(taskID, userID); - registerFile(resultFileID, fileName); - } - COM: <s> implementation of the done node command </s> - diff --git a/funcom_test/22325839.txt b/funcom_test/22325839.txt deleted file mode 100644 index 0931f1345f3b059e456a9c1bc73348a9157d944c..0000000000000000000000000000000000000000 --- a/funcom_test/22325839.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TaskDescription getTaskDescription() { - TaskDescription taskDescription = new TaskDescription(taskID, jarID, - resultDataID); - for (int i = 0; i < dataID.length; i++) { - taskDescription.addDataID(dataID[i]); - } - return taskDescription; - } - COM: <s> returns the description of this task </s> - diff --git a/funcom_test/22325854.txt b/funcom_test/22325854.txt deleted file mode 100644 index b7f32e59ce196b30049838960c72a243bdd7a0c3..0000000000000000000000000000000000000000 --- a/funcom_test/22325854.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void loadConfig(InputStream input) throws ConfigException { - log.debug("Running Config.loadConfig(input).."); - try { - SAXBuilder builder = new SAXBuilder(); - Document doc = builder.build(input); - buildConfigFromDocument(doc); - } catch (Exception e) { - throw new ConfigException(e); - } - } - COM: <s> loads config from specified input stream </s> - diff --git a/funcom_test/22325863.txt b/funcom_test/22325863.txt deleted file mode 100644 index 82126180e4f56e1ba6fd0fff0e442e7697691f88..0000000000000000000000000000000000000000 --- a/funcom_test/22325863.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void loadConfig(String fileName) throws ConfigException { - log.debug("Running Config.loadConfig(fileName).."); - try { - SAXBuilder builder = new SAXBuilder(); - Document doc = builder.build(fileName); - buildConfigFromDocument(doc); - } catch (Exception e) { - throw new ConfigException(e); - } - } - COM: <s> loads the config from specified file </s> - diff --git a/funcom_test/22325885.txt b/funcom_test/22325885.txt deleted file mode 100644 index 3e6754662790272d83ffdec31854729d724c70e5..0000000000000000000000000000000000000000 --- a/funcom_test/22325885.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void readCFG(InputStream taskCFGInputStream) throws Exception { - log.debug("Running TaskJarAnalyzer.readCFG(taskCFGInputStream).."); - Config taskConfig = new Config(taskCFGInputStream); - taskClassName = taskConfig.getStringValue("taskClassName"); - taskStateClassName = taskConfig.getStringValue("taskStateClassName"); - } - COM: <s> reads the contents of the config file </s> - diff --git a/funcom_test/22325913.txt b/funcom_test/22325913.txt deleted file mode 100644 index 5436ecf26dd9f608cf6caa5c2e388cf72cae966f..0000000000000000000000000000000000000000 --- a/funcom_test/22325913.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void registerFile(UniqueID fileID, String fileName) { - log.debug("Running BrokerConnection.registerFile(fileID, fileName).."); - try { - dataBase.registerFile(fileID, fileName, userID); - out("OK"); - } catch (Exception e) { - log.warn("Command execution error", e); - throw new CommandException(e); - } - } - COM: <s> implementation of the regfile command </s> - diff --git a/funcom_test/22325918.txt b/funcom_test/22325918.txt deleted file mode 100644 index c959650f2ca53ebbd00c8609c2b431ceb5dc793f..0000000000000000000000000000000000000000 --- a/funcom_test/22325918.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void newClient() { - log.debug("Running BrokerConnection.newClient().."); - userID = UniqueID.getNextId(); - connectionMode = BrokerConnection.CLIENT_MODE; - try { - out("OK " + userID.toString()); - } catch (Exception e) { - log.warn("Command execution error", e); - throw new CommandException(e); - } - } - COM: <s> implementation of the newclient command </s> - diff --git a/funcom_test/22325919.txt b/funcom_test/22325919.txt deleted file mode 100644 index 230097b005cb234ba512339679f78a642ffd37ae..0000000000000000000000000000000000000000 --- a/funcom_test/22325919.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void loginNode(UniqueID nodeID) { - log.debug("Running BrokerConnection.loginNode(nodeID).."); - userID = nodeID; - connectionMode = BrokerConnection.NODE_MODE; - try { - out("OK"); - } catch (IOException e) { - log.warn("Command execution error", e); - throw new CommandException(e); - } - } - COM: <s> implementation of the loginnode command </s> - diff --git a/funcom_test/22325920.txt b/funcom_test/22325920.txt deleted file mode 100644 index 53be03b93085d09adeac94acff540e2f5e533cdc..0000000000000000000000000000000000000000 --- a/funcom_test/22325920.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void loginClient(UniqueID clientID) { - log.debug("Running BrokerConnection.loginClient(clientID).."); - userID = clientID; - connectionMode = BrokerConnection.CLIENT_MODE; - try { - out("OK"); - } catch (IOException e) { - log.warn("Command execution error", e); - throw new CommandException(e); - } - } - COM: <s> implementation of the loginclient command </s> - diff --git a/funcom_test/22336082.txt b/funcom_test/22336082.txt deleted file mode 100644 index e958ebd9f1484209e202b104edd3168f090edba9..0000000000000000000000000000000000000000 --- a/funcom_test/22336082.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void createFootComposite() { - GridLayout gridLayout4 = new GridLayout(); - gridLayout4.numColumns = 2; - footComposite = new Composite(detailFKGroup, SWT.NONE); - footComposite.setLayout(gridLayout4); - addDetailButton = new Button(footComposite, SWT.NONE); - addDetailButton.setText("Add"); - deleteDetailButton = new Button(footComposite, SWT.NONE); - deleteDetailButton.setText("Delete"); - } - COM: <s> this method initializes foot composite </s> - diff --git a/funcom_test/22336108.txt b/funcom_test/22336108.txt deleted file mode 100644 index 54161d4d76cd2916c928365fde1b88ffd2adadd6..0000000000000000000000000000000000000000 --- a/funcom_test/22336108.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void createButtonComposite() { - GridLayout gridLayout2 = new GridLayout(); - gridLayout2.numColumns = 2; - buttonComposite = new Composite(this, SWT.NONE); - buttonComposite.setLayout(gridLayout2); - addButton = new Button(buttonComposite, SWT.NONE); - addButton.setText(ResourceLoader.queryString(COLUMN_ADD_BUTTON_LABEL)); - deleteButton = new Button(buttonComposite, SWT.NONE); - deleteButton.setText(ResourceLoader.queryString(COLUMN_DELETE_BUTTON_LABEL)); - } - COM: <s> this method initializes button composite </s> - diff --git a/funcom_test/22336214.txt b/funcom_test/22336214.txt deleted file mode 100644 index b06559cb536eaa8e090591da9871132e4b67dd5d..0000000000000000000000000000000000000000 --- a/funcom_test/22336214.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void run(IAction action) { - IType entityType = this.getEntityType(action); - - try { - this.run(entityType); - } catch (CoreException e) { - IStatus status = e.getStatus(); - ErrorDialog.openError(this.getShell(), Messages.getString("error"), Messages.getString("creation.error"), status); - } - - } - COM: <s> the action has been activated </s> - diff --git a/funcom_test/22398964.txt b/funcom_test/22398964.txt deleted file mode 100644 index 7907bf757e8accf4aa9279a075eda8faa71bbd19..0000000000000000000000000000000000000000 --- a/funcom_test/22398964.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void setDocOffset(int offset) { - try { - col = getColumnNumber(offset); - if(offset == 0) - atZero = true; - else { - atZero = false; - --offset; - } - pos = getDoc().createPosition(offset); - } catch(BadLocationException ex) { - pos = null; - return; - } - } - COM: <s> if the mark offset is not valid then this mark is converted into </s> - diff --git a/funcom_test/22398974.txt b/funcom_test/22398974.txt deleted file mode 100644 index 6fe36529b3795047aa36287f71f7a64b1df66270..0000000000000000000000000000000000000000 --- a/funcom_test/22398974.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getColumn() { - checkMarkUsable(); - if (this.pos == INVALID_MARK_LINE) - return 0; - MySegment seg = getLineSegment(getLine()); - int len = seg.length() - 1; - return seg.length() <= 0 ? 0 : Math.min(col, len); - } - COM: <s> note may return column position of newline </s> - diff --git a/funcom_test/22399114.txt b/funcom_test/22399114.txt deleted file mode 100644 index 862140aa658ea612760aefcf79dc2e8c2f8ece9d..0000000000000000000000000000000000000000 --- a/funcom_test/22399114.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: static private char read_redo(boolean init, boolean old_redo) { - if(init) { - if(redobuff.hasNext() == false) { - return FAIL; - } else { - redobuff_idx = 0; - return OK; - } - } - char c = NUL; // assume none left - if(redobuff.hasCharAt(redobuff_idx)) { - c = redobuff.getCharAt(redobuff_idx); - redobuff_idx++; - } - return c; - } - COM: <s> read a character from the redo buffer </s> - diff --git a/funcom_test/22399518.txt b/funcom_test/22399518.txt deleted file mode 100644 index 9e3cb993cebda7c63268d017653c38b11c485992..0000000000000000000000000000000000000000 --- a/funcom_test/22399518.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: /*static private void del_from_showcmd(int len) { - int old_len; - - if (!G.p_sc.getBoolean()) - return; - - old_len = showcmd_buf.length(); - if (len > old_len) - len = old_len; - showcmd_buf.delete(old_len - len, SHOWCMD_COLS); - - if (!GetChar.char_avail()) - display_showcmd(); - }*/ - COM: <s> delete len characters from the end of the shown command </s> - diff --git a/funcom_test/22399872.txt b/funcom_test/22399872.txt deleted file mode 100644 index 959b599d3beca53079c973b2820ea4b9ecceea57..0000000000000000000000000000000000000000 --- a/funcom_test/22399872.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: static private void nv_dollar(CMDARG cap) { - cap.oap.motion_type = MCHAR; - cap.oap.inclusive = true; - G.curwin.w_curswant = MAXCOL; // so we stay at the end - if (Edit.cursor_down(cap.count1 - 1, cap.oap.op_type == OP_NOP) == FAIL) { - clearopbeep(cap.oap); - } - } - COM: <s> handle the command </s> - diff --git a/funcom_test/22400618.txt b/funcom_test/22400618.txt deleted file mode 100644 index 422e596653a2b610d924cf86fa71f38b6af6a037..0000000000000000000000000000000000000000 --- a/funcom_test/22400618.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: static private void nv_optrans (CMDARG cap) { - do_xop("nv_optrans"); - - String str = "xXDCsSY&"; - if (!checkclearopq(cap.oap)) - { - if (cap.count0 != 0) { - GetChar.stuffnumReadbuff(cap.count0); - } - - GetChar.stuffReadbuff(nv_optrans_ar[str.indexOf(cap.cmdchar)]); - } - } - COM: <s> translate a command into another command </s> - diff --git a/funcom_test/22401389.txt b/funcom_test/22401389.txt deleted file mode 100644 index 6561959b6c17a727573ee3c3e1084e0a293fe081..0000000000000000000000000000000000000000 --- a/funcom_test/22401389.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: static private void adjust_for_sel(CMDARG cap) { - if (G.VIsual_active - && cap.oap.inclusive - && G.p_sel.charAt(0) == 'e' - && Misc.gchar_cursor() != '\n') - { - G.curwin.w_cursor.incColumn(); - cap.oap.inclusive = false; - } - } - COM: <s> in exclusive visual mode may include the last character </s> - diff --git a/funcom_test/22406997.txt b/funcom_test/22406997.txt deleted file mode 100644 index 8c8b8952a6370ee02d5c296e32c35ee5ce0dd867..0000000000000000000000000000000000000000 --- a/funcom_test/22406997.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean openServerSocket(final int serverPort) { - try { - if (REUSABLE_SERVER_ADDRESS) { - openRebindableServerSocket(serverPort); - } else { - openSimpleServerSocket(serverPort); - } - } catch (IOException ioe) { - LOGGER.error("Could not listen on port: " + serverPort, ioe); - serverSocket = null; - - return false; - } - - port = serverPort; - - return true; - } - COM: <s> open the server socket on the given port </s> - diff --git a/funcom_test/22407013.txt b/funcom_test/22407013.txt deleted file mode 100644 index c19b9e3d67c0679d15e74720051eb03234ea0fe2..0000000000000000000000000000000000000000 --- a/funcom_test/22407013.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private boolean evaluateProtocol(final Message message) throws IOException { - int messageId = message.getId(); - - boolean bye = Protocol.BYE.hasId(messageId); - if (bye) { - evaluateBye(); - } else if (Protocol.PROJECT.hasId(messageId)) { - evaluateProject(message); - } else if (Protocol.INPUT_TASK.hasId(messageId)) { - evaluateInput(message); - } - - return bye; - } - COM: <s> evaluation of the sent data </s> - diff --git a/funcom_test/22407014.txt b/funcom_test/22407014.txt deleted file mode 100644 index e0d421fee01c797305e6ffb0e57abad714a0a315..0000000000000000000000000000000000000000 --- a/funcom_test/22407014.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void notifyServerStarted() { - synchronized (listeners) { - Iterator iterator = listeners.iterator(); - - while (iterator.hasNext()) { - ServerListener listener = (ServerListener) iterator.next(); - listener.serverStarted(port); - } - } - - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("notified all server listeners about start"); - } - } - COM: <s> notify all listeners about the start of the server </s> - diff --git a/funcom_test/22407016.txt b/funcom_test/22407016.txt deleted file mode 100644 index f683b964adf5e0f203f08c1eeb1990525e682800..0000000000000000000000000000000000000000 --- a/funcom_test/22407016.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void evaluateProject(final Message message) { - String projectName = message.getText(); - - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("READ PROJECT: " + projectName); - } - - if (!node.getAntProjectName().equals(projectName)) { - LOGGER.error("connected to wrong ant instance! Should be " - + node.getAntProjectName() + " but was " - + projectName - + "!"); - } - } - COM: <s> evaluation of a project message </s> - diff --git a/funcom_test/22407026.txt b/funcom_test/22407026.txt deleted file mode 100644 index 05a172c2e89824c005efdd511bc549161a66e83f..0000000000000000000000000000000000000000 --- a/funcom_test/22407026.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void notifyServerStopped() { - synchronized (listeners) { - Iterator iterator = listeners.iterator(); - - while (iterator.hasNext()) { - ServerListener listener = (ServerListener) iterator.next(); - listener.serverStopped(); - } - } - - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("notified all server listeners about stop"); - } - } - COM: <s> notify all listeners about the stop of the server </s> - diff --git a/funcom_test/22407054.txt b/funcom_test/22407054.txt deleted file mode 100644 index 6b1a2942e0b051bdcc3509f8229d0fdc9e48426a..0000000000000000000000000000000000000000 --- a/funcom_test/22407054.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void keymapChanged() { - final Keymap keymap = EditorManager.getKeymap(); - - if (keymap == null) { - return; - } - - bindAction(keymap, startaction, - KeyStroke.getKeyStroke(KeyEvent.VK_F10, Event.CTRL_MASK)); - bindAction(keymap, stopaction, - KeyStroke.getKeyStroke(KeyEvent.VK_F11, Event.CTRL_MASK)); - } - COM: <s> the keymap has changed </s> - diff --git a/funcom_test/22407065.txt b/funcom_test/22407065.txt deleted file mode 100644 index 5eb073f8bdb68e67d36b3e70b47a8c93c0598637..0000000000000000000000000000000000000000 --- a/funcom_test/22407065.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean equals(final Object obj) { - if (obj == null) { - return false; - } - - if (obj instanceof Locale) { - return locale.equals(obj); - } - - if (obj.getClass() != IDELocaleListItem.class) { - return false; - } - - IDELocaleListItem item = (IDELocaleListItem) obj; - - return locale.equals(item.locale); - } - COM: <s> compare the given object to this one </s> - diff --git a/funcom_test/22407105.txt b/funcom_test/22407105.txt deleted file mode 100644 index 6c14c9db83eb3d77ef0049bf2855b5897e90b208..0000000000000000000000000000000000000000 --- a/funcom_test/22407105.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void readProperties() { - final IDESettings settings = IDESettings.getInstance(); - - final AntRunner antrunner = AntRunner.getInstance(); - - statusPanel.serverStarted(antrunner.isLoggerServerRunning()); - statusPanel.antConfigured(settings.isConfigured()); - - scriptPanel.readProperties(); - generalBehaviourPanel.readProperties(); - localeSetting.setSelected(settings.isLocaleEnabled()); - serverPanel.setPort(settings.getPort()); - } - COM: <s> read the properties from the global properties and display them </s> - diff --git a/funcom_test/22407106.txt b/funcom_test/22407106.txt deleted file mode 100644 index 3d1b0b2709a4c4b2ca9c552f7e8b509814ae426d..0000000000000000000000000000000000000000 --- a/funcom_test/22407106.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void fireContentChanged() { - synchronized (listeners) { - final ListDataEvent e = - new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, 0, - getSize()); - - final Iterator iterator = listeners.iterator(); - - while (iterator.hasNext()) { - ListDataListener l = (ListDataListener) iterator.next(); - l.contentsChanged(e); - } - } - } - COM: <s> notify the listeners that the contents has changed </s> - diff --git a/funcom_test/22407109.txt b/funcom_test/22407109.txt deleted file mode 100644 index 297854dbd090a217ae94891bc3b537fe057bf556..0000000000000000000000000000000000000000 --- a/funcom_test/22407109.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void writeProperties() { - final IDESettings settings = IDESettings.getInstance(); - final AntRunner antrunner = AntRunner.getInstance(); - - scriptPanel.writeProperties(); - generalBehaviourPanel.writeProperties(); - settings.setLocaleEnabled(localeSetting.isSelected()); - settings.setPort(serverPanel.getPort()); - - antrunner.removeLoggerServerListener(this); - - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("pageide: wrote properties"); - } - } - COM: <s> write the properties to the global properties </s> - diff --git a/funcom_test/22407116.txt b/funcom_test/22407116.txt deleted file mode 100644 index f2dc6a67f4fd1c46a901abca952a26833a2c3246..0000000000000000000000000000000000000000 --- a/funcom_test/22407116.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void toggleServer() { - final AntRunner antrunner = AntRunner.getInstance(); - - serverControl.setEnabled(false); - - if (antrunner.isLoggerServerRunning()) { - antrunner.stopLoggerServer(); - } else { - int port = getPort(); - - if (!antrunner.startLoggerServer(port)) { - serverControl.setEnabled(true); - } - } - } - COM: <s> the user clicked on the server control button </s> - diff --git a/funcom_test/22407133.txt b/funcom_test/22407133.txt deleted file mode 100644 index 02fbfc9d78264eac36a0ea01e2fb5b6cc4822c0b..0000000000000000000000000000000000000000 --- a/funcom_test/22407133.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void centerFrame(final JFrame frame) { - Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); - Dimension frameSize = frame.getSize(); - frame.setLocation((screenSize.width / 2) - (frameSize.width / 2), - (screenSize.height / 2) - (frameSize.height / 2)); - } - COM: <s> center the frame in the middle of the screen </s> - diff --git a/funcom_test/22407210.txt b/funcom_test/22407210.txt deleted file mode 100644 index 8ea5e95580c5aaea5697eb8a35258812126e4907..0000000000000000000000000000000000000000 --- a/funcom_test/22407210.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setAntManual(final String manual) { - String oldManualEntry = getAntManual(); - - if ((manual == null) || ("".equals(manual.trim()))) { - antManual.setValue(null); - } else { - antManual.setValue(manual); - } - - antManual.firePropertyChange(oldManualEntry, manual); - } - COM: <s> modificator for the ant manual </s> - diff --git a/funcom_test/22407223.txt b/funcom_test/22407223.txt deleted file mode 100644 index 05986c5a4aaaa6245742621ecd8a780d24508e23..0000000000000000000000000000000000000000 --- a/funcom_test/22407223.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void initContextAction() { - ProjectView.registerContextActionProvider(new ContextActionProvider() { - public Action getContextAction( - final Browser browser, - final Node[] nodes) { - if (nodes.length == 1) { - Node node = nodes[0]; - - if (node instanceof AntNode) { - return new AntNodeContextGroup((AntNode) node); - } - } - - return null; - } - }); - } - COM: <s> initialize the context action </s> - diff --git a/funcom_test/22407226.txt b/funcom_test/22407226.txt deleted file mode 100644 index 181c7c3d769336748f40f99256277c4d05c8d9f6..0000000000000000000000000000000000000000 --- a/funcom_test/22407226.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void parse() throws BuildfileParsingException { - final String file = buildfile.getFullName(); - parser = BuildfileParserFactory.getBuildfileParser(); - - try { - parser.parse(file); - } catch (SAXParseException se) { - throw new BuildfileParsingException(file, se, se.getLineNumber(), - se.getColumnNumber()); - } catch (Exception e) { - throw new BuildfileParsingException(file, e); - } - } - COM: <s> parse the actual build file </s> - diff --git a/funcom_test/22407234.txt b/funcom_test/22407234.txt deleted file mode 100644 index 83de343fdf3d5c3ab21f03d83e2d31f0fa324104..0000000000000000000000000000000000000000 --- a/funcom_test/22407234.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Locale getLocale() { - String currentLanguage = language.getValue(); - String currentCountry = country.getValue(); - - final Locale defaultLocale = Locale.getDefault(); - - if (currentLanguage == null) { - currentLanguage = defaultLocale.getLanguage(); - } - - if (currentCountry == null) { - currentCountry = defaultLocale.getCountry(); - } - - return new Locale(currentLanguage, currentCountry); - } - COM: <s> get the configured locale </s> - diff --git a/funcom_test/22407249.txt b/funcom_test/22407249.txt deleted file mode 100644 index 089c87c552f04af6a100a6353ff0792054707752..0000000000000000000000000000000000000000 --- a/funcom_test/22407249.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getString(final String key, final String def) { - String value; - - try { - value = bundle.getString(key); - } catch (MissingResourceException mre) { - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("Error getting resource for key '" + key + "'"); - LOGGER.debug("using default: '" + def + "'"); - } - value = def; - } - - return value; - } - COM: <s> get the value for the given key from the encapsulated resource bundle </s> - diff --git a/funcom_test/22407250.txt b/funcom_test/22407250.txt deleted file mode 100644 index 865291b543c8cbcc3f6a750838c85e827916a40c..0000000000000000000000000000000000000000 --- a/funcom_test/22407250.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Collection getStringArray(final String key) { - ArrayList values = new ArrayList(); - - int index = 0; - String value = getString(key + "." + index, null); - while (value != null) { - values.add(value); - - index++; - value = getString(key + "." + index, null); - } - - return values; - } - COM: <s> gets an array of value for the given key from the encapsulated resource </s> - diff --git a/funcom_test/22407272.txt b/funcom_test/22407272.txt deleted file mode 100644 index 0921063aa9d2fd75fca9880080d75e0b35ed7103..0000000000000000000000000000000000000000 --- a/funcom_test/22407272.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String extractFilename(final String uri) { - if (!uri.startsWith(FILE_PREFIX)) { - return uri; - } - - if (uri.startsWith(ROOT_FILE_PREFIX)) { - return uri.substring(ROOT_FILE_PREFIX.length()); - } - - // URI starts with 'file:' Just remove that prefix. - return uri.substring(FILE_PREFIX.length()); - } - COM: <s> get the filename from a given system id </s> - diff --git a/funcom_test/22407276.txt b/funcom_test/22407276.txt deleted file mode 100644 index 2cc4cd031d3975cd22bd83e6945bea114fb32a44..0000000000000000000000000000000000000000 --- a/funcom_test/22407276.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void writeChildrenXML(final XMLWriter writer) throws IOException { - final NodeList children = getChildNodes(); - - for (int i = 0; i < children.getLength(); i++) { - final Node child = children.item(i); - if (child instanceof XMLWritable) { - final XMLWritable writable = (XMLWritable) child; - writable.writeXML(writer); - } - } - } - COM: <s> used to write any children of a node </s> - diff --git a/funcom_test/22407293.txt b/funcom_test/22407293.txt deleted file mode 100644 index 29ea549864054e84aea64d6946b449536739e0a5..0000000000000000000000000000000000000000 --- a/funcom_test/22407293.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Collection values() { - final Collection col = new java.util.LinkedList(); - final AntTargetIterator iterator = targetIterator(); - - while (iterator.hasNext()) { - final AntTarget target = iterator.nextTarget(); - col.add(target); - } - - java.util.Collections.sort((java.util.LinkedList) col, - COMPARATOR); - - return col; - } - COM: <s> get a collection of selected targets </s> - diff --git a/funcom_test/22407295.txt b/funcom_test/22407295.txt deleted file mode 100644 index 5f185401647e14fb3f06bf064df4fdde8757447b..0000000000000000000000000000000000000000 --- a/funcom_test/22407295.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Node findFirstChildNode(final Node parent, final String name) { - final NodeList list = parent.getChildNodes(); - for (int i = 0; i < list.getLength(); i++) { - final Node currentNode = list.item(i); - if (name.equalsIgnoreCase(currentNode.getLocalName())) { - return currentNode; - } - } - - return null; - } - COM: <s> find the first child of the given nodewith the given local name </s> - diff --git a/funcom_test/22407300.txt b/funcom_test/22407300.txt deleted file mode 100644 index 815fe33503a2f91466d2218dde7c2618b928a8ae..0000000000000000000000000000000000000000 --- a/funcom_test/22407300.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String dump() { - StringBuffer str = new StringBuffer(); - - str.append("Target[name="); - str.append(name); - str.append(",description="); - str.append(description); - str.append(",selected="); - str.append(selected); - str.append("]"); - - return str.toString(); - } - COM: <s> print a dump of this object </s> - diff --git a/funcom_test/22407301.txt b/funcom_test/22407301.txt deleted file mode 100644 index 2e9e83e6c1517e92a5df9e9367311b5d13bd2e33..0000000000000000000000000000000000000000 --- a/funcom_test/22407301.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getDescription() { - final NodeList children = project.getChildNodes(); - - for (int i = 0; i < children.getLength(); i++) { - final Node child = children.item(i); - if ("description".equals(child.getNodeName())) { - return getText((DOMNode)child); - } - } - - return null; - } - COM: <s> get the project description </s> - diff --git a/funcom_test/22407318.txt b/funcom_test/22407318.txt deleted file mode 100644 index f67d246cdeae20c886a753ecb67e01ad21fa0a34..0000000000000000000000000000000000000000 --- a/funcom_test/22407318.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void jbInit() throws Exception { - setLayout(new GridBagLayout()); - - add(m_environmentpanel, - new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, - GridBagConstraints.CENTER, - GridBagConstraints.HORIZONTAL, - new Insets(0, 0, 0, 0), 0, 0)); - } - COM: <s> add compononents to the page </s> - diff --git a/funcom_test/22407319.txt b/funcom_test/22407319.txt deleted file mode 100644 index 3f145b6e661ff0fecce4afc83367234cf1f5ff62..0000000000000000000000000000000000000000 --- a/funcom_test/22407319.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void selectWithDescription() { - final AntTargetIterator iterator = targetIterator(); - - while (iterator.hasNext()) { - final AntTarget target = iterator.nextTarget(); - boolean select = (target.getDescription() != null) - && !target.getName().startsWith("-"); - target.setSelected(select); - } - } - COM: <s> select all public targets with description </s> - diff --git a/funcom_test/22407325.txt b/funcom_test/22407325.txt deleted file mode 100644 index 358c3946d8b7b3fe828acfe74512cf89b061d707..0000000000000000000000000000000000000000 --- a/funcom_test/22407325.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public WizardPage invokeWizard(WizardHost host) { - setWizardTitle(WIZARD_TITLE); - addWizardPage(pageSelectBuildfile); - addWizardPage(pageSelectExecPath); - addWizardPage(pageSelectTargets); - addWizardPage(pageSelectDefaultTarget); - addWizardPage(pageGeneral); - addWizardPage(pageOptions); - addWizardPage(globalEnvironment); - addWizardPage(localEnvironment); - - return super.invokeWizard(host); - } - COM: <s> returns the first page in this wizard </s> - diff --git a/funcom_test/22407332.txt b/funcom_test/22407332.txt deleted file mode 100644 index 5c2d0e7704c6bff6a622fdaa915fd27644454019..0000000000000000000000000000000000000000 --- a/funcom_test/22407332.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Collection selectedTargets() { - final Collection col = new java.util.LinkedList(); - final AntTargetIterator iterator = targetIterator(); - - while (iterator.hasNext()) { - final AntTarget target = iterator.nextTarget(); - - if (target.isSelected()) { - col.add(target); - } - } - - java.util.Collections.sort((java.util.LinkedList) col, - COMPARATOR); - - return col; - } - COM: <s> returns a collection of selected targets </s> - diff --git a/funcom_test/22407335.txt b/funcom_test/22407335.txt deleted file mode 100644 index be3647cd30e62c47fa0fb7f272bb17ed66ef4ffe..0000000000000000000000000000000000000000 --- a/funcom_test/22407335.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void propertyChange(PropertyChangeEvent evt) { - String eventName = evt.getPropertyName(); - - if (AntNodeWizard.PROPERTY_TARGET_MAP.equals(eventName)) { - AntTargetMap targetmap = (AntTargetMap) evt.getNewValue(); - m_targetCombModel.setTargetMap(targetmap); - - AntBuildfile buildfile = m_wizard.getAntBuildfile(); - m_targetCombModel.setSelectedItem(buildfile.getDefaultTarget()); - } - } - COM: <s> this method gets called when a bound property is changed </s> - diff --git a/funcom_test/22407339.txt b/funcom_test/22407339.txt deleted file mode 100644 index 117252038461e8beebe88ca79399fa4eca6b5032..0000000000000000000000000000000000000000 --- a/funcom_test/22407339.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void finish() throws VetoException { - Url urlBuildfile = pageSelectBuildfile.getBuildfile(); - - if (urlBuildfile == null) { - return; - } - - try { - createAntNode(project); - } catch (Exception e) { - LOGGER.error("Error creating antnode wizard", e); - throw new VetoException(e.getMessage()); - } - } - COM: <s> the user has clicked finish and the wizard should go do its work </s> - diff --git a/funcom_test/22407369.txt b/funcom_test/22407369.txt deleted file mode 100644 index 79e57d0ae2e734850fccc1cb2eba10d45e5e39f5..0000000000000000000000000000000000000000 --- a/funcom_test/22407369.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public String toString() { - StringBuffer str = new StringBuffer(); - str.append("AntTargetMap["); - - final AntTargetIterator iterator = targetIterator(); - - while (iterator.hasNext()) { - AntTarget target = iterator.nextTarget(); - - str.append(target.dump()); - - if (iterator.hasNext()) { - str.append(","); - } - } - - str.append("]"); - - return str.toString(); - } - COM: <s> returns a string representation of this object </s> - diff --git a/funcom_test/22407381.txt b/funcom_test/22407381.txt deleted file mode 100644 index 5d39689e68e6c4209151dd53d72754e21c247792..0000000000000000000000000000000000000000 --- a/funcom_test/22407381.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void jbInit() throws Exception { - setLayout(new GridBagLayout()); - add(m_environmentPanel, - new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, - GridBagConstraints.CENTER, - GridBagConstraints.BOTH, - new Insets(0, 0, 0, 0), 0, 0)); - } - COM: <s> set up the panel </s> - diff --git a/funcom_test/22407414.txt b/funcom_test/22407414.txt deleted file mode 100644 index 65f6f63276f7a1c5ab326c015d2fbc600e2878fa..0000000000000000000000000000000000000000 --- a/funcom_test/22407414.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String trim(final String name, final int max) { - final StringBuffer trimmed = new StringBuffer(name.trim()); - if (max == -1) { - return trimmed.toString(); - } - - final int len = trimmed.length(); - if (len > max) { - trimmed.delete(max, len - 1); - trimmed.append("..."); - } - - return trimmed.toString(); - } - COM: <s> trim the string to the given maximum </s> - diff --git a/funcom_test/22407433.txt b/funcom_test/22407433.txt deleted file mode 100644 index c33fcf39ace16b15588488460d1e10a329784591..0000000000000000000000000000000000000000 --- a/funcom_test/22407433.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected int checkString(int initialState) { - if (ch != '\"') { - return -1; - } - - readNextChar(); - - while (ch != '\"' && ch != '\n' && ch != EOF) { - readNextChar(); - } - - if (ch != EOF) { - readNextChar(); - } - - return BasicStyleMap.STRING; - } - COM: <s> check to see if the buffer pointer is on a string character </s> - diff --git a/funcom_test/22407437.txt b/funcom_test/22407437.txt deleted file mode 100644 index 1985beaa3bf445683affaae958ee54fa48cc1441..0000000000000000000000000000000000000000 --- a/funcom_test/22407437.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setVersionInfo() { - final AntRunner antrunner = AntRunner.getInstance(); - - setProperty(PROP_VERSION, PROP_MAJOR_VERSION, - Integer.toString(antrunner.getMajorVersionNumber())); - setProperty(PROP_VERSION, PROP_MINOR_VERSION, - Integer.toString(antrunner.getMinorVersionNumber())); - } - COM: <s> stores the version properties </s> - diff --git a/funcom_test/22407447.txt b/funcom_test/22407447.txt deleted file mode 100644 index 401c3d4d01c6b1d1dcdc75dd5ab06c32a2b9ceba..0000000000000000000000000000000000000000 --- a/funcom_test/22407447.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected boolean isSymbol(char c) { - switch (c) { - case '<': - /** falls through */ - case '/': - /** falls through */ - case '>': - /** falls through */ - case '\"': - /** falls through */ - case '!': - return true; - - default: - return false; - } - } - COM: <s> the default implementation of check symbol will call this method </s> - diff --git a/funcom_test/22407449.txt b/funcom_test/22407449.txt deleted file mode 100644 index c4376d444b7da9d3f3b1025ebfa21b29fe70d88a..0000000000000000000000000000000000000000 --- a/funcom_test/22407449.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setDOMNode(final DOMNode domnode) { - current = domnode; - - // If the node changed the contents of the editorpane changes - // without a change of its contens. So don't inform the ant node - // about changes of the contents. - final Document document = editorpane.getDocument(); - document.removeDocumentListener(documentlistener); - - attributePanel.setDOMNode(domnode); - updateEditorPane(domnode); - validate(); - document.addDocumentListener(documentlistener); - } - COM: <s> display the given dom in this viewer component </s> - diff --git a/funcom_test/22407456.txt b/funcom_test/22407456.txt deleted file mode 100644 index 9de10f5a6d8ad905b2f462d981b6eb7438abff7b..0000000000000000000000000000000000000000 --- a/funcom_test/22407456.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void saveBuildfile(final File buildfile) throws IOException { - final FileWriter filewriter = new FileWriter(buildfile); - final XMLWriter writer = new XMLWriter(filewriter); - - try { - writer.writeHeader(); - project.writeXML(writer); - } catch (IOException ioe) { - LOGGER.error("error writing project", ioe); - } - - filewriter.flush(); - } - COM: <s> save the contents of the build file </s> - diff --git a/funcom_test/22407472.txt b/funcom_test/22407472.txt deleted file mode 100644 index fd35f6a549d31123b0061edb881521ed07a2155c..0000000000000000000000000000000000000000 --- a/funcom_test/22407472.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int getIndexOfChild(Object parent, Object child) { - final NodeList children = project.getChildNodes(); - - for (int i = 0; i < children.getLength(); i++) { - final Node node = children.item(i); - if (node.toString().equals(child.toString())) { - return i; - } - } - - return -1; - } - COM: <s> returns the index of child in parent </s> - diff --git a/funcom_test/22407475.txt b/funcom_test/22407475.txt deleted file mode 100644 index 1bc52dc3077946f9e0233efadf238df89f9520bf..0000000000000000000000000000000000000000 --- a/funcom_test/22407475.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private Collection filter(final NodeList children) { - if (children == null) { - return null; - } - - final Collection filtered = new java.util.ArrayList(); - - for (int i = 0; i < children.getLength(); i++) { - final Node child = children.item(i); - - if (!(child instanceof TextDOMNode)) { - filtered.add(child); - } - } - - return filtered; - } - COM: <s> apply a filter to the given children </s> - diff --git a/funcom_test/22407482.txt b/funcom_test/22407482.txt deleted file mode 100644 index cc39ba22d366b35f8f3a77939f2172bc0b9b260a..0000000000000000000000000000000000000000 --- a/funcom_test/22407482.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Map getProperties() { - Map mapProperties = new java.util.HashMap(); - - Iterator iterator = properties.iterator(); - - while (iterator.hasNext()) { - Property property = (Property) iterator.next(); - String strKey = property.getKey().trim(); - - if (!"".equals(strKey)) { - mapProperties.put(strKey, property.getValue()); - } - } - - return mapProperties; - } - COM: <s> selector for the represented properties map </s> - diff --git a/funcom_test/22407485.txt b/funcom_test/22407485.txt deleted file mode 100644 index 9de3f80f5b740cc6b9dc322fd710a2cad21bb628..0000000000000000000000000000000000000000 --- a/funcom_test/22407485.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setProperties(Map mapProperties) { - properties.clear(); - - if (mapProperties != null) { - Iterator iterator = mapProperties.keySet().iterator(); - - while (iterator.hasNext()) { - String key = (String) iterator.next(); - properties.add(new Property(key, (String) mapProperties.get(key))); - } - } - - fireTableChanged(new TableModelEvent(this)); - } - COM: <s> modificator for the map of properties </s> - diff --git a/funcom_test/22407502.txt b/funcom_test/22407502.txt deleted file mode 100644 index 5ebabac57b69138b5ad2fbd2a1b5eb9c2dd19bd5..0000000000000000000000000000000000000000 --- a/funcom_test/22407502.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void onSelectWithDescription(ActionEvent e) { - if (m_propertyChangeSupport == null) { - return; - } - - m_propertyChangeSupport.firePropertyChange( - PROPERTY_SELECT_WITH_DESCRIPTION, - new Boolean(!isSelectWithDescription()), - new Boolean(isSelectWithDescription())); - } - COM: <s> the user clicked on the select with description </s> - diff --git a/funcom_test/22407506.txt b/funcom_test/22407506.txt deleted file mode 100644 index 1459050b97463d85073271f94cfe428861bde477..0000000000000000000000000000000000000000 --- a/funcom_test/22407506.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public Collection getlistener() { - Vector enteredListeners = new Vector(); - - Iterator iterator = listener.iterator(); - - if (addedAntRunnerListener) { - iterator.next(); - - } while (iterator.hasNext()) { - String currentListener = (String) iterator.next(); - currentListener = currentListener.trim(); - - if (!"".equals(currentListener)) { - enteredListeners.add(currentListener); - } - } - - return enteredListeners; - } - COM: <s> selector for the represented listeners </s> - diff --git a/funcom_test/22407512.txt b/funcom_test/22407512.txt deleted file mode 100644 index 7e22d165ba60b558383fc84f50586988f6739161..0000000000000000000000000000000000000000 --- a/funcom_test/22407512.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void onDefaultExecPathClick(ActionEvent e) { - Url oldBuildFile = new Url(getBuildfileObject()); - setExecPath(m_node.getDefaultExecPath()); - m_lblBuildfile.setText(FileUtils.noramlize(getExecPathUrl() - .getRelativePath(oldBuildFile))); - } - COM: <s> the user clicked on the default button </s> - diff --git a/funcom_test/22407536.txt b/funcom_test/22407536.txt deleted file mode 100644 index 717071f254e7fc8ac1f5ccab3d6190d05dabaa9a..0000000000000000000000000000000000000000 --- a/funcom_test/22407536.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void jbInit() throws Exception { - setLayout(new GridBagLayout()); - add(optionspanel, - new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, - GridBagConstraints.CENTER, - GridBagConstraints.BOTH, - new Insets(0, 0, 0, 0), 0, 0)); - } - COM: <s> set up the property page </s> - diff --git a/funcom_test/22407556.txt b/funcom_test/22407556.txt deleted file mode 100644 index 1c1c5a89b8e0d6a06ec1d5ab32a2d005b9f12a64..0000000000000000000000000000000000000000 --- a/funcom_test/22407556.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void writeProperties() { - if (m_node == null) { - return; - } - - m_node.setSaveOnAnt(generalpanel.isSaveOnAnt()); - m_node.setKeepTarget(generalpanel.isKeepTarget()); - m_node.setSelectWithDescription(generalpanel.isSelectWithDescription()); - - if (logger.isDebugEnabled()) { - logger.debug("AntNodePP: properties written"); - } - } - COM: <s> write the properties to the project file </s> - diff --git a/funcom_test/22407570.txt b/funcom_test/22407570.txt deleted file mode 100644 index 5b1d72edf735e9dc3939cb82167b29aca7cb9a01..0000000000000000000000000000000000000000 --- a/funcom_test/22407570.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSelectedItem(AntTarget target) { - if (m_targetMap.isSelected(target.getName())) { - m_selectedTarget = target; - } else { - if (m_vecTargets.size() > 0) { - m_selectedTarget = (AntTarget) m_vecTargets.elementAt(0); - } else { - m_selectedTarget = null; - } - } - } - COM: <s> set the given target as the selected item </s> - diff --git a/funcom_test/22407577.txt b/funcom_test/22407577.txt deleted file mode 100644 index a64de1b7141d800e80083bf180bbbb5e4c95d1aa..0000000000000000000000000000000000000000 --- a/funcom_test/22407577.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public AntTargetMap setTargetMap() { - AntTargetMap targetMap = null; - String strDefaultTarget = null; - targetMap = m_buildfile.getTargetMap(); - strDefaultTarget = m_buildfile.getDefaultTarget(); - - if (m_bSelectWithDescription) { - targetMap.selectWithDescription(); - - } - setTargetMap(targetMap); - - return m_targetMap; - } - COM: <s> modifiactor for the target map from the current configured settings </s> - diff --git a/funcom_test/22407591.txt b/funcom_test/22407591.txt deleted file mode 100644 index b595b8ec79123d4d447ec68d572ffffc92d8bee2..0000000000000000000000000000000000000000 --- a/funcom_test/22407591.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setSelectWithDescription(boolean bSelectWithDescription) { - AntTargetMap targetmap = getTargetMap(); - - if (bSelectWithDescription) { - targetmap.selectWithDescription(); - } else { - targetmap.selectAll(); - } - - m_targetTableModel.setSelectWithDescription(bSelectWithDescription); - m_targetTableModel.setTargetMap(targetmap); - } - COM: <s> select targets with description according to the given value </s> - diff --git a/funcom_test/22407594.txt b/funcom_test/22407594.txt deleted file mode 100644 index 37e4e2a05c22794cf3d013cf239cada7580f14c9..0000000000000000000000000000000000000000 --- a/funcom_test/22407594.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setCurrentTarget(final String target) { - if (target == null) { - return; - } - - String strCurrentTarget = getCurrentTarget(); - - if (target.equals(strCurrentTarget)) { - return; - } - - currentTarget.setValue(this, target); - - firePropertyChange(CURRENT_TARGET, strCurrentTarget, target); - } - COM: <s> sets the current target to the given one </s> - diff --git a/funcom_test/22407599.txt b/funcom_test/22407599.txt deleted file mode 100644 index a19f26b42e705e5cab9f82413dd86b52a89a7cf9..0000000000000000000000000000000000000000 --- a/funcom_test/22407599.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void tableChanged(TableModelEvent e) { - if (m_propertyChangeSupport == null) { - return; - } - - m_propertyChangeSupport.firePropertyChange(PROPERTY_SELECTED_TARGETS, - m_oldTargetMap, getTargetMap()); - - m_oldTargetMap = (AntTargetMap) getTargetMap().clone(); - } - COM: <s> the target table changed </s> - diff --git a/funcom_test/22407650.txt b/funcom_test/22407650.txt deleted file mode 100644 index ef06ea06fcf09db1eb8d6cb8e088246a9c94b15e..0000000000000000000000000000000000000000 --- a/funcom_test/22407650.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void update(final Object object) { - if (node != null) { - if (node.isAntRunning()) { - if (isEnabled()) { - setEnabled(false); - } - } else { - if (!isEnabled()) { - setEnabled(true); - } - } - } else { - // There is currently no ant node. - if (isEnabled()) { - setEnabled(false); - } - } - } - COM: <s> this method is perodically called from jbuilder to check the status of </s> - diff --git a/funcom_test/22407707.txt b/funcom_test/22407707.txt deleted file mode 100644 index d8e6f51dbc328233bc94300a4a1dc2da683d3596..0000000000000000000000000000000000000000 --- a/funcom_test/22407707.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private String unescape(final String line) { - if (line == null) { - return null; - } - - final StringBuffer buffer = new StringBuffer(line); - final int size = line.length(); - - for (int i = 0; i < size; ++i) { - switch (buffer.charAt(i)) { - case '\n': - case '\r': - case '\t': - buffer.setCharAt(i, ' '); - } - } - - return buffer.toString(); - } - COM: <s> remove non representable characters from a line </s> - diff --git a/funcom_test/22407727.txt b/funcom_test/22407727.txt deleted file mode 100644 index bbec32745de4d485142119fef5efd764c39e2e3d..0000000000000000000000000000000000000000 --- a/funcom_test/22407727.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void jbInit() throws Exception { - setLayout(new BorderLayout()); - tab.setTabPlacement(JTabbedPane.BOTTOM); - tab.addTab("ANT", outputPanel); - tab.addTab("Compiler", compilerPanel); - - add(controlPanel, BorderLayout.WEST); - add(tab, BorderLayout.CENTER); - add(compileStatusPanel, BorderLayout.SOUTH); - } - COM: <s> draw this tab </s> - diff --git a/funcom_test/22407730.txt b/funcom_test/22407730.txt deleted file mode 100644 index 1e512c2159a5b8d5f0afd989198f0b1a791b6d50..0000000000000000000000000000000000000000 --- a/funcom_test/22407730.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private String getShortFileName(final String filename) { - if ((srcFiles == null) || (filename == null)) { - return filename; - } - - final Iterator iterator = srcFiles.iterator(); - - while (iterator.hasNext()) { - final String srcFileName = (String) iterator.next(); - - if (filename.startsWith(srcFileName)) { - return filename.substring(srcFileName.length() + 1); - } - } - - return filename; - } - COM: <s> get the file name relative to one of the source paths </s> - diff --git a/funcom_test/22407740.txt b/funcom_test/22407740.txt deleted file mode 100644 index dcf7a66de27aa839c7d3c3bd252cb990c6373699..0000000000000000000000000000000000000000 --- a/funcom_test/22407740.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void parse() throws BuildfileParsingException { - BuildfileParsingException e = null; - final AntBuildfile file = getAntBuildfile(); - - try { - file.parse(); - //setName(getName()); - } catch (BuildfileParsingException bpe) { - e = bpe; - } - - firePropertyChange(TARGET_LIST, null, getTargetMap()); - - if (e != null) { - throw e; - } - } - COM: <s> parse the current buildfile </s> - diff --git a/funcom_test/22407744.txt b/funcom_test/22407744.txt deleted file mode 100644 index 3aac4753564c241601143544c3a5b4bfcdb93f98..0000000000000000000000000000000000000000 --- a/funcom_test/22407744.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void antStarted(final String target) { - outputPanel.antStarted(node, target); - controlPanel.antStarted(node, target); - compilerPanel.antStarted(node, target); - compileStatusPanel.antStarted(node, target); - - // Primary interst in ant's output not in old compiler errors. - tab.setSelectedComponent(outputPanel); - } - COM: <s> notification that ant was started </s> - diff --git a/funcom_test/22407788.txt b/funcom_test/22407788.txt deleted file mode 100644 index 9cdf9a869daec22679fe89e556c97020fb96c6a2..0000000000000000000000000000000000000000 --- a/funcom_test/22407788.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public Color getForegroundColor() { - final Color color; - final int index = foreground - 30; - - if ((index >= 0) && (index < COLORS.length)) { - switch (attribute) { - case ATTRIBUTE_BRIGHT: - color = BRIGHTENED_COLOR[index]; - break; - case ATTRIBUTE_DIM: - color = DIMMED_COLOR[index]; - break; - default: - color = COLORS[index]; - break; - } - } else { - color = Color.black; - } - - return color; - } - COM: <s> get the foreground color </s> - diff --git a/funcom_test/22407803.txt b/funcom_test/22407803.txt deleted file mode 100644 index 407627ea62ff600c9a53cc9761eb54f9df9a0672..0000000000000000000000000000000000000000 --- a/funcom_test/22407803.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: private int getStartOfFilename(final String text) { - if (text.startsWith("file:")) { - return 5; - } - - int start = text.indexOf("] "); - - if (start > 0) { - return start + 2; - } - - start = text.indexOf(": "); - - if (start > 0) { - return start + 2; - } - - start = text.indexOf("file:"); - - if (start > 0) { - return start + 5; - } - - return 0; - } - COM: <s> get the start position of a filename in the message </s> - diff --git a/funcom_test/22407804.txt b/funcom_test/22407804.txt deleted file mode 100644 index 9eb69c861bff622297a3cdefebeda751b6e4e692..0000000000000000000000000000000000000000 --- a/funcom_test/22407804.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setColumnInLastError(final int col) { - final int size = size() - 1; - - for (int i = size; i > 0; i--) { - final LineView line = get(i); - - if (line.hasError()) { - if (line.getErrorCol() == -1) { - line.setErrorCol(col); - setChanged(); - notifyObservers(LAST_ERROR_LINE_CHANGED); - } - - return; - } - } - } - COM: <s> sets the column in the last line having an error </s> - diff --git a/funcom_test/22407846.txt b/funcom_test/22407846.txt deleted file mode 100644 index d8d8791cedd66459170f1593b93b756b4fa2770f..0000000000000000000000000000000000000000 --- a/funcom_test/22407846.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void readBye() throws IOException { - Message message = (Message) listener.receive(); - - if (message == null) { - return; - } - - if (Protocol.BYE.hasId(message.getId())) { - message = new Message(Protocol.BYE); - System.err.println("ANT execution interrupted..."); - listener.send(message); - System.exit(0); - } - } - COM: <s> try to read a bye from ant runner </s> - diff --git a/funcom_test/22407858.txt b/funcom_test/22407858.txt deleted file mode 100644 index f21da5c190bdc9060880a9e03600df67571253a7..0000000000000000000000000000000000000000 --- a/funcom_test/22407858.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void messageLogged(final BuildEvent event) { - if ((out != null) && detectedInput) { - detectedInput = false; - - Message message = - new Message(Protocol.INPUT_TASK, event.getMessage()); - - try { - send(message); - } catch (IOException ignore) { - System.err.println("could not send to AntRunner"); - } - } - } - COM: <s> signals a message logging event </s> - diff --git a/funcom_test/22407860.txt b/funcom_test/22407860.txt deleted file mode 100644 index 837e62d52fb981612cf1ea0dbaeb80c1728f8f50..0000000000000000000000000000000000000000 --- a/funcom_test/22407860.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int getFileExtensionPos(final String str) { - String lower = str.toLowerCase(); - final String[] extensions = - new String[] {".java", ".xml", ".bat", ".sh"}; - - for (int i = 0; i < extensions.length; i++) { - int pos = lower.indexOf(extensions[i]); - - if (pos > 0) { - fileExtension = - str.substring(pos, pos + extensions[i].length()); - - return pos; - } - } - - return -1; - } - COM: <s> get the position of the fileextension </s> - diff --git a/funcom_test/22407861.txt b/funcom_test/22407861.txt deleted file mode 100644 index 982dc95dec8be8af31c3ee74eabe9d301c5cfb88..0000000000000000000000000000000000000000 --- a/funcom_test/22407861.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void targetStarted(final BuildEvent event) { - if (connected && !sentProjectInfo) { - String projectName = event.getProject().getName(); - Message message = new Message(Protocol.PROJECT, projectName); - - try { - send(message); - } catch (IOException ignore) { - System.err.println("could not send to AntRunner"); - } - - sentProjectInfo = true; - } - } - COM: <s> signals that a target is starting </s> - diff --git a/funcom_test/22407876.txt b/funcom_test/22407876.txt deleted file mode 100644 index 24351ec4657b5c9475b2494a46c4696532ab4fc9..0000000000000000000000000000000000000000 --- a/funcom_test/22407876.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getErrorMessage(final String str) { - if ((errorMessage == null) && (fileExtension != null)) { - int startLineNumber = - str.indexOf(fileExtension) + fileExtension.length() + 1; - - int endLineNumber = str.indexOf(": ", startLineNumber); - - if (endLineNumber > 0) { - errorMessage = str.substring(endLineNumber + 2); - } - } - - return errorMessage; - } - COM: <s> extract the error message </s> - diff --git a/funcom_test/22407878.txt b/funcom_test/22407878.txt deleted file mode 100644 index 7ff1a03e19e3e31ba2b6e4f1a0bb5ffef33befc5..0000000000000000000000000000000000000000 --- a/funcom_test/22407878.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void close() { - if (!connected) { - return; - } - - connected = false; - - // We have to close the output stream first, so that the - // WaitForKillThread does not attempt to send a bye. - try { - out.close(); - out = null; - in.close(); - socket.close(); - } catch (IOException ignore) { - // Nothing to do here. - } finally { - in = null; - } - } - COM: <s> closes all streams and the socket </s> - diff --git a/funcom_test/22408365.txt b/funcom_test/22408365.txt deleted file mode 100644 index 97a47f824b2dcfdbe6e5481b44a26b52c7d93634..0000000000000000000000000000000000000000 --- a/funcom_test/22408365.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Map getGlobalEnvProperties() { - String[] properties = globalEnvProperties.getValues(this); - Map mapProperties = new Hashtable(); - - for (int i = 0; i < properties.length; i++) { - Property property = new Property(properties[i]); - mapProperties.put(property.getKey(), property.getValue()); - } - - return mapProperties; - } - COM: <s> get the global environment properties as a map </s> - diff --git a/funcom_test/22408386.txt b/funcom_test/22408386.txt deleted file mode 100644 index da590a829703e39581eff881d4494ae884531130..0000000000000000000000000000000000000000 --- a/funcom_test/22408386.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setGlobalEnvProperties(final Map environment) { - String[] properties = new String[environment.size()]; - - Iterator iterator = environment.keySet().iterator(); - int i = 0; - - while (iterator.hasNext()) { - String key = (String) iterator.next(); - - Property property = - new Property(key, (String) environment.get(key)); - - properties[i] = property.toString(); - i++; - } - - globalEnvProperties.setValues(this, properties); - } - COM: <s> rewrite the map of global environment properties </s> - diff --git a/funcom_test/22408401.txt b/funcom_test/22408401.txt deleted file mode 100644 index 576522008801d2ea510f6a385681535d91271cb5..0000000000000000000000000000000000000000 --- a/funcom_test/22408401.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Map getLocalEnvProperties() { - String[] properties = localEnvProperties.getValues(this); - Map mapProperties = new Hashtable(); - - for (int i = 0; i < properties.length; i++) { - Property property = new Property(properties[i]); - mapProperties.put(property.getKey(), property.getValue()); - } - - return mapProperties; - } - COM: <s> get the local environment properties as a map </s> - diff --git a/funcom_test/22408414.txt b/funcom_test/22408414.txt deleted file mode 100644 index 427b45accd76aaaf268a85985658721737b63b14..0000000000000000000000000000000000000000 --- a/funcom_test/22408414.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setLocalEnvProperties(final Map environment) { - String[] properties = new String[environment.size()]; - - Iterator iterator = environment.keySet().iterator(); - int i = 0; - - while (iterator.hasNext()) { - String key = (String) iterator.next(); - - Property property = - new Property(key, (String) environment.get(key)); - - properties[i] = property.toString(); - i++; - } - - localEnvProperties.setValues(this, properties); - } - COM: <s> rewrite the map of local environment properties </s> - diff --git a/funcom_test/22449404.txt b/funcom_test/22449404.txt deleted file mode 100644 index f1249fb6c42e04cecad44ef4ed00d8054ca17c7d..0000000000000000000000000000000000000000 --- a/funcom_test/22449404.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String generateVariableName(LPVariable variable) { - String result = variable.getName(); - if (result == null || result.length() == 0) { - result = "x" + this.varCounter++; - } - else if (!Character.isLetter(result.charAt(0))) { - result = "x" + result; - } - - return result; - } - COM: <s> generate a name for a variable of the format x consecutive number </s> - diff --git a/funcom_test/22449417.txt b/funcom_test/22449417.txt deleted file mode 100644 index bd1cbc9a066b921a2bc2cb14e60341fbd1a0ea92..0000000000000000000000000000000000000000 --- a/funcom_test/22449417.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String generateConstraintName(LPConstraint constr) { - String result = constr.getName(); - if (result == null || result.length() == 0) { - result = "c" + this.rowUniqueIdSeq++; - } - else if (!Character.isLetter(result.charAt(0))) { - result = "c" + result; - } - - return result; - } - COM: <s> generate a new for a constraint of the format c consecutive number </s> - diff --git a/funcom_test/22449758.txt b/funcom_test/22449758.txt deleted file mode 100644 index 4d219041f6c367c769f6135c7b2b341ac8a2d729..0000000000000000000000000000000000000000 --- a/funcom_test/22449758.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected int nextNode(NumberNode startNode, NumberNode currNode) { - if (empty() || !contains(startNode)) { - return NOSUCHNODE; - } - int currNodeNum = 0; - if (currNode != null) { - currNodeNum = currNode.getNodeNum()+1; - } - return calcNextNode(startNode.getNodeNum(), currNodeNum); - } - COM: <s> helps number node iterators to calculate the next node when iterating </s> - diff --git a/funcom_test/22449867.txt b/funcom_test/22449867.txt deleted file mode 100644 index 5978fccf495e05d6a2ddcdea9211f1701490e943..0000000000000000000000000000000000000000 --- a/funcom_test/22449867.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void concatenateRows(LPModelRows newComponent) { - int offset = this.totalNumColumns; - this.totalNumColumns += newComponent.getNumColumns(); - this.mapColToSubComponent.put(new Integer(offset), newComponent); - - if (this.highestComponent == null || - this.highestComponent.getNumRows() < newComponent.getNumRows()) { - this.highestComponent = newComponent; - } - } - COM: <s> concatenate further rows to the component </s> - diff --git a/funcom_test/22449872.txt b/funcom_test/22449872.txt deleted file mode 100644 index 6b44a42e7363a026ac115fc8f50653ff0f4e1688..0000000000000000000000000000000000000000 --- a/funcom_test/22449872.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void concatenateColumns(LPModelColumns newComponent) { - int offset = this.totalNumRows; - this.totalNumRows += newComponent.getNumRows(); - this.mapRowToSubComponent.put(new Integer(offset), newComponent); - - if (this.broadestComponent == null || - this.broadestComponent.getNumColumns() < newComponent.getNumColumns()) { - this.broadestComponent = newComponent; - } - } - COM: <s> concatenate further columns to the component </s> - diff --git a/funcom_test/22450085.txt b/funcom_test/22450085.txt deleted file mode 100644 index 67f320ecae92d84336c248b2b383a82ad9437991..0000000000000000000000000000000000000000 --- a/funcom_test/22450085.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void globalSearchForCycles() { - Iterator<Node> itAllNodes = this.globNodes.getAllNodesIterator(); - while (itAllNodes.hasNext()) { - Node currNode = itAllNodes.next(); - if (!this.visited.contains(currNode)) { - searchForCyclesFrom(currNode); - if (cycleFound()) { - break; - } - } - } - } - COM: <s> search for cycles restarting the search at unvisited nodes until </s> - diff --git a/funcom_test/22450175.txt b/funcom_test/22450175.txt deleted file mode 100644 index 5c5c7bd21982d4702acd5aa4fe44107d99726924..0000000000000000000000000000000000000000 --- a/funcom_test/22450175.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int addNode(double doubleVal) { - Node newNode = this.constructG.addNode(); - if (this.nodeMap == null) { - throw new IllegalParameterException("NodeMap not set"); - } - this.nodeMap.put(newNode, new Double(doubleVal)); - return this.globNodes.getNodeNumber(newNode); - } - COM: <s> add a new node and set its weight </s> - diff --git a/funcom_test/22450179.txt b/funcom_test/22450179.txt deleted file mode 100644 index 28e78304f6551e5a47c270bb891156e6f04d8d7e..0000000000000000000000000000000000000000 --- a/funcom_test/22450179.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int addNodesWithWeights(int numNodesToAdd, double[] nodeWeights) { - int lastNodeNum = IndexedNodesGraphProp.UNDEFINED_NODE; - for (int i = 0; i < numNodesToAdd; i++) { - lastNodeNum = addNode(nodeWeights[i]); - } - return lastNodeNum; - } - COM: <s> add several nodes simultaneously and fill a node map </s> - diff --git a/funcom_test/22450181.txt b/funcom_test/22450181.txt deleted file mode 100644 index 5fad9c40099784eac62d97ea4d09c41eb9ba4368..0000000000000000000000000000000000000000 --- a/funcom_test/22450181.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public int addEdge(int fromNodeNum, int toNodeNum) { - Edge newEdge = this.constructG.addEdge( - this.globNodes.getNode(fromNodeNum), - this.globNodes.getNode(toNodeNum)); - return this.globEdges.getEdgeNumber(newEdge); - } - COM: <s> add an edge </s> - diff --git a/funcom_test/22450187.txt b/funcom_test/22450187.txt deleted file mode 100644 index 4feea1c3dba9222d16db18036729815fe0018058..0000000000000000000000000000000000000000 --- a/funcom_test/22450187.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addEdgesWithWeights(int edgesWithWeights[][]) { - for (int i = 0; i < edgesWithWeights.length; i++) { - addEdge(edgesWithWeights[i][0], - edgesWithWeights[i][1], - edgesWithWeights[i][2]); - } - } - COM: <s> add multiple edges and set their integer weights </s> - diff --git a/funcom_test/22450191.txt b/funcom_test/22450191.txt deleted file mode 100644 index e5f38accdcc0309353a4ee843ea7b2cd1d9275be..0000000000000000000000000000000000000000 --- a/funcom_test/22450191.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void fillEdgeMap(EdgeMap<Edge, Double> mapToFill, double[] edgeWeights) { - mapToFill.init(this.g); - for (int i = 0; i < this.globEdges.getNumEdges(); i++) { - Edge e = this.globEdges.getEdge(i); - mapToFill.put(e, new Double(edgeWeights[i])); - } - } - COM: <s> fill an edge map with double values for all edges in the graph </s> - diff --git a/funcom_test/22617082.txt b/funcom_test/22617082.txt deleted file mode 100644 index fde107c9906871921b69b80c84db710e6f9b585a..0000000000000000000000000000000000000000 --- a/funcom_test/22617082.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Tree getFPart(Tree t, String prefix) { - List tlist = t.getChildrenAsList(); - Iterator it = tlist.iterator(); - while (it.hasNext()) { - Tree tree = (Tree) it.next(); - if (tree.nodeString().startsWith(prefix)) { - return tree; - } - } - return null; - } - COM: <s> returns first subtree with the given prefix </s> - diff --git a/funcom_test/22617087.txt b/funcom_test/22617087.txt deleted file mode 100644 index 127791fbfd04d63b85d21b51d7eedf3b737586bb..0000000000000000000000000000000000000000 --- a/funcom_test/22617087.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Tree getLPart(Tree t, String prefix) { - - List tlist = t.getChildrenAsList(); - int size = tlist.size(); - for (int i = size - 1; i >= 0; i--) { - Tree tree = (Tree) tlist.get(i); - if (tree.nodeString().startsWith(prefix)) { - return tree; - } - } - - return null; - } - COM: <s> returns last subtree with the given prefix </s> - diff --git a/funcom_test/22617155.txt b/funcom_test/22617155.txt deleted file mode 100644 index f0d589074910b36e81e6118f9e33f1d810a124a7..0000000000000000000000000000000000000000 --- a/funcom_test/22617155.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void onCellClicked(SourcesTableEvents sender, int row, int cell) { - this.getRowFormatter().removeStyleName(selectedRow, selectedStyle); - if ((dataSource.getHeaderRow() == null) || (row > 0)) { - this.getRowFormatter().addStyleName(row, selectedStyle); - selectedRow = row; - } - } - COM: <s> this method handles our styling of the clicked row </s> - diff --git a/funcom_test/22617839.txt b/funcom_test/22617839.txt deleted file mode 100644 index c74b838e76d082fa1f1d29d788e06e4156bd55cc..0000000000000000000000000000000000000000 --- a/funcom_test/22617839.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public File unmarshall(String destinationPath) { - if (!isvalid() || fileContent == null) { - throw new SBVR2GrailsResultException("SBVR2GrailsResult not set."); - } - File file = new File(destinationPath+"/"+fileName); - try { - FileOutputStream out = new FileOutputStream(file); - out.write(fileContent); - out.close(); - } catch (IOException e) { - throw new SBVR2GrailsResultException("Could not write content to "+file+".",e); - } - return file; - } - COM: <s> stores the file from the byte array to the defined output </s> - diff --git a/funcom_test/22618425.txt b/funcom_test/22618425.txt deleted file mode 100644 index e0eac9686c44f2925cea65591d2559b30f2feb5e..0000000000000000000000000000000000000000 --- a/funcom_test/22618425.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addError(String error, String message) { - prtln("addError(): " + error + " " + this.getClass().getName()); - if (errors == null) - errors = new ArrayList(); - - errors.add(new OAIError(error, message)); - badVerbOrArgument = (error.equals(OAICodes.BAD_ARGUMENT) || error.equals(OAICodes.BAD_VERB)); - } - COM: <s> adds a feature to the error attribute of the identify bean object </s> - diff --git a/funcom_test/22618511.txt b/funcom_test/22618511.txt deleted file mode 100644 index 96ba0db19023920e92d17ca6a892430212cea3cc..0000000000000000000000000000000000000000 --- a/funcom_test/22618511.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void addAdminEmail(String email) { - Hashtable emails = null; - try { - emails = (Hashtable)adminData.get(Keys.ADMIN_EMAILS); - } catch (OIDDoesNotExistException e) { - emails = new Hashtable(); - } - emails.put(email, ""); - - try { - if (adminData.oidExists(Keys.ADMIN_EMAILS)) - adminData.update(Keys.ADMIN_EMAILS, emails); - else - adminData.put(Keys.ADMIN_EMAILS, emails); - } catch (Exception e) { - log("Error serializing adminEmail data: " + e); - } - } - COM: <s> add the given admin e mail to the repository </s> - diff --git a/funcom_test/22618550.txt b/funcom_test/22618550.txt deleted file mode 100644 index 0f43cded3ba1d7d28bae6abfa95c7d5d26d48475..0000000000000000000000000000000000000000 --- a/funcom_test/22618550.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString() { - StringBuffer buf = new StringBuffer(); - for (Iterator i = pages.iterator(); i.hasNext(); ) { - Page page = (Page) i.next(); - buf.append("\n" + page.toString()); - } - buf.append("\n\nhomePage: " + getHomePage()); - buf.append("\nfirstPage: " + getFirstPage()); - return buf.toString(); - } - COM: <s> description of the method </s> - diff --git a/funcom_test/22618655.txt b/funcom_test/22618655.txt deleted file mode 100644 index 8715f94c3f162bea6ede17dd3a8cb918f495e16d..0000000000000000000000000000000000000000 --- a/funcom_test/22618655.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void getGlobalElements(Document doc, File file) { - if (doc == null) { - return; - } - List list = doc.selectNodes("/xsd:schema/xsd:element"); - for (Iterator iter = list.iterator(); iter.hasNext(); ) { - Element element = (Element) iter.next(); - String name = element.attributeValue("name"); - GlobalElement g = new GlobalElement(element, file); - // System.out.println (g.toString()); - try { - globalDefMap.setValue(name, g); - } catch (Exception e) { - prtln (e.getMessage()); - } - } - } - COM: <s> gets the global elements attribute of the definition miner object </s> - diff --git a/funcom_test/22618690.txt b/funcom_test/22618690.txt deleted file mode 100644 index 5d3e5bdb1e42c2fc2ff1cc9c6e2b6c1cb450858a..0000000000000000000000000000000000000000 --- a/funcom_test/22618690.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getOrderedPages() { - List pageParams = new ArrayList(); - for (Enumeration e = properties.propertyNames(); e.hasMoreElements(); ) { - String propName = (String) e.nextElement(); - if (propName.startsWith("page.")) { - pageParams.add(propName); - } - } - Collections.sort(pageParams, new PageSorter()); - prtln("sorted pages"); - return pageParams; - } - COM: <s> gets the ordered pages attribute of the meta data framework object </s> - diff --git a/funcom_test/22618713.txt b/funcom_test/22618713.txt deleted file mode 100644 index ee31a858a2cdc51aa913bf98b09f4af57c365522..0000000000000000000000000000000000000000 --- a/funcom_test/22618713.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Element getMultiBoxInput() { - // prtln("getMultiBoxInput() with " + xpath); - - if (state.hasMdvMapping(xpath)) { - Element mdvMultiBox = df.createElement("st__mdvMultiBox") - .addAttribute("elementPath", "enumerationValuesOf(" + XPathUtils.getSiblingXPath(xpath) + ")"); - return mdvMultiBox; - } - else { - return super.getMultiBoxInput(); - } - } - COM: <s> renders a multibox input a set of of checkboxes as an element </s> - diff --git a/funcom_test/22618761.txt b/funcom_test/22618761.txt deleted file mode 100644 index 89b96d7882d645fdff0535d553e872075a24d698..0000000000000000000000000000000000000000 --- a/funcom_test/22618761.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected Element getComplexTypeBox() { - Element baseDiv = getDiv(); - renderElementDebugInfo(baseDiv, "complexType"); - - Element anchor = baseDiv.addElement("a") - .addAttribute("name", xpath); - if (getLevel() == 0) { - Element branding = baseDiv.addElement("div") - .addAttribute("class", "element-debug-info"); - branding.addText("Rendered by " + this.getClass().getName()); - } - return baseDiv; - } - COM: <s> gets the complex type box attribute of the dumb jsp renderer object </s> - diff --git a/funcom_test/22618765.txt b/funcom_test/22618765.txt deleted file mode 100644 index a3390a0c71ced942b347f5272624e5c3f656ca6c..0000000000000000000000000000000000000000 --- a/funcom_test/22618765.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void init(String xpath, Element parent, RendererState state) { - this.xpath = xpath; - this.parent = parent; - this.state = state; - this.sh = state.getSchemaHelper(); - this.root = state.getRoot(); - - df = DocumentFactory.getInstance(); - normalizedXPath = AutoForm.normalizeXPath(xpath); - schemaNode = sh.getSchemaNode(normalizedXPath); - - // guard against infinite loops - if (state.counter++ > 200) { - prtln("*** Sytem Exit ***"); - System.exit(state.counter); - } - - } - COM: <s> initialize class attributes </s> - diff --git a/funcom_test/22618766.txt b/funcom_test/22618766.txt deleted file mode 100644 index b5ce9d9691219f415818da4f615c099e8b1e8f9d..0000000000000000000000000000000000000000 --- a/funcom_test/22618766.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Element getSelectInput() { - // prtln ("getSelectInput() with " + xpath); - Element input = df.createElement("html__select") - .addAttribute("name", "${formBean}") - .addAttribute("property", "valueOf(" + xpath + ")"); - Element options = input.addElement("html__optionsCollection") - .addAttribute("property", "enumerationOptions(" + normalizedXPath + ")"); - return input; - } - COM: <s> gets the select input attribute of the renderer object </s> - diff --git a/funcom_test/22618774.txt b/funcom_test/22618774.txt deleted file mode 100644 index 182e99adb37b9cffc913e475543d296116a892f7..0000000000000000000000000000000000000000 --- a/funcom_test/22618774.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected Element getInputElement() { - /* have to first test to see if we are rendering an optional, simpleContent element. if so, - then we must test to see if the parent exists before creating the inputElement - - */ - Element inputElement = super.getInputElement(); - if (schemaNode.isSimpleOrComplexContent() && !sh.isRequiredBranch(schemaNode)) { - Element nodeExists = nodeExistsTest(); - nodeExists.add(inputElement); - return nodeExists; - } - else { - return inputElement; - } - } - COM: <s> gets the input element attribute of the basic jsp renderer object </s> - diff --git a/funcom_test/22618786.txt b/funcom_test/22618786.txt deleted file mode 100644 index 98024caafb75a8a802645365b326db90e74c2f9e..0000000000000000000000000000000000000000 --- a/funcom_test/22618786.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected Element getLabelFieldTable(Element label, Element field) { - Element table = df.createElement("table") - .addAttribute("cellspacing", "1") - .addAttribute("cellpadding", "1"); - Element row = table.addElement("tr") - .addAttribute("class", "form-row"); - Element labelCell = row.addElement("td") - .addAttribute("class", "label-box") - .addAttribute("nowrap", "1"); - attachToolHelp(labelCell, xpath); - labelCell.add(label); - - Element fieldCell = row.addElement("td") - .addAttribute("class", "field-box"); - fieldCell.add(field); - return table; - } - COM: <s> gets the label field table attribute of the basic jsp renderer object </s> - diff --git a/funcom_test/22618787.txt b/funcom_test/22618787.txt deleted file mode 100644 index bb27360393eca42d707d79e87e6c3f7fd3c5f679..0000000000000000000000000000000000000000 --- a/funcom_test/22618787.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected Element getLabelActionTableFoo(Element label, Element action) { - Element table = df.createElement("table") - .addAttribute("cellspacing", "1") - .addAttribute("cellpadding", "3"); - Element row = table.addElement("tr") - .addAttribute("class", "form-row"); - Element labelCell = row.addElement("td") - .addAttribute("class", "label-box") - .addAttribute("nowrap", "1"); - attachToolHelp(labelCell, xpath); - labelCell.add(label); - - Element actionCell = row.addElement("td") - .addAttribute("class", "action-box"); - actionCell.add(action); - return table; - } - COM: <s> gets the label action table attribute of the basic jsp renderer object </s> - diff --git a/funcom_test/22618823.txt b/funcom_test/22618823.txt deleted file mode 100644 index 26acf2dba07d641139576a1af19e151ea10e69e5..0000000000000000000000000000000000000000 --- a/funcom_test/22618823.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected Element getChoiceTest(Element choice, String name, String path) { - - // prtln ("\tchoice element: " + aChoice.asXML()); - - Element existenceTest = df.createElement("logic__equal") - .addAttribute("name", "sef") - .addAttribute("property", "nodeExists(" + path + ")") - .addAttribute("value", "true"); - - renderElementDebugInfo(existenceTest, "existenceTest"); - return existenceTest; - } - COM: <s> gets the choice test attribute of the dumb jsp renderer object </s> - diff --git a/funcom_test/22618845.txt b/funcom_test/22618845.txt deleted file mode 100644 index fe103414520c1150e33f2ffd327c386f52db62f5..0000000000000000000000000000000000000000 --- a/funcom_test/22618845.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getKeywordsTruncated() { - String ret = getQ(); - if ( ret.length() > 30 ) { - int ind = ret.indexOf( " ", 30 ); - if ( ( ind > -1 ) && ( ind < 40 ) ) { - ret = ret.substring( 0, ind ) + "..."; - } - else if ( ret.length() > 34 ) { - ret = ret.substring( 0, 30 ) + "..."; - } - } - return ret.trim(); - } - COM: <s> gets the user keywords truncated for feedback display </s> - diff --git a/funcom_test/22618847.txt b/funcom_test/22618847.txt deleted file mode 100644 index c0de737369bcc0616f363441213fef10642b99a3..0000000000000000000000000000000000000000 --- a/funcom_test/22618847.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected Element getRepeatItemLabel(String siblingPath, String indexId) { - // label element contains the label for the repeating element - // <div class="indexed-element-label">keyword ${index+1}</div> - Element labelElement = df.createElement("div") - .addAttribute("class", "indexed-element-label"); - renderLabelDebugInfo(labelElement, "indexed-element-label"); - labelElement.setText(XPathUtils.getLeafName(siblingPath) + " ${" + indexId + "+1}"); - return labelElement; - } - COM: <s> gets the repeat item label attribute of the dumb jsp renderer object </s> - diff --git a/funcom_test/22619580.txt b/funcom_test/22619580.txt deleted file mode 100644 index dd656539283324424d52d40eb38e90ea2455c36e..0000000000000000000000000000000000000000 --- a/funcom_test/22619580.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected SuggestCommentHelper getSuggestHelper () throws ServletException { - if (suggestHelper == null) { - try { - suggestHelper = (SuggestCommentHelper) servlet.getServletContext().getAttribute("SuggestCommentHelper"); - if (suggestHelper == null) - throw new Exception (); - } catch (Throwable t) { - throw new ServletException ("SuggestCommentHelper is not initialized"); - } - } - return suggestHelper; - } - COM: <s> gets the suggest comment helper attribute of the suggest comment action </s> - diff --git a/funcom_test/22619614.txt b/funcom_test/22619614.txt deleted file mode 100644 index f8c01addb7605cfbbba25b7f5a32f5fd08e77f55..0000000000000000000000000000000000000000 --- a/funcom_test/22619614.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCreationDate(String dateStr) throws Exception { - - put(service_date_created_path, dateStr); - - Element orgContributor = this.getOrgContributor(); - orgContributor.addAttribute("date", dateStr); - - if (docMap.nodeExists(person_contributor_path)) { - Element personContributor = getPersonContributor(); - personContributor.addAttribute("date", dateStr); - } - } - COM: <s> writes a string representaton of the date to various locations in the instance </s> - diff --git a/funcom_test/22619647.txt b/funcom_test/22619647.txt deleted file mode 100644 index a877e4071d0e0ed79eb4709e1d3e9fdfeb285863..0000000000000000000000000000000000000000 --- a/funcom_test/22619647.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getErrorMessage() { - if ( errorMessages.size() > 0 ) { - StringBuffer ret = new StringBuffer( "<ul>" ); - for ( int i = 0; i < errorMessages.size(); i++ ) { - ret.append( "<li>" + (String)errorMessages.get( i ) + "</li>" ); - } - ret.append( "</ul>" ); - return ret.toString(); - } - return errorMessage; - } - COM: <s> gets the error message attribute of the submit news opps form object </s> - diff --git a/funcom_test/22619688.txt b/funcom_test/22619688.txt deleted file mode 100644 index d009d87481f1bd3c648e7e9f9b343f778b1c2931..0000000000000000000000000000000000000000 --- a/funcom_test/22619688.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void init(FilterConfig config) throws ServletException { - /* if (context == null) { - try { - context = config.getServletContext(); - if (((String)context.getInitParameter("debug")).toLowerCase().equals("true")) { - debug = true; - //prtln("Outputting debug info"); - } - } catch (Throwable e) {} - } */ - } - COM: <s> init is called once at application start up </s> - diff --git a/funcom_test/22619903.txt b/funcom_test/22619903.txt deleted file mode 100644 index 0b6be5856a467b3b1e11341cae760ce43aef060e..0000000000000000000000000000000000000000 --- a/funcom_test/22619903.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String toString() { - StringBuffer ret = - new StringBuffer( - "\n Repository name: " + repositoryName + - "\n setSpec: " + setSpec + - "\n baseURL: " + baseURL + - "\n metadataPrefix: " + metadataPrefix + - "\n enabled status: " + enabledDisabled + - "\n harvestingInterval: " + harvestingInterval + - "\n intervalGranularity: " + intervalGranularity - ); - return ret.toString(); - } - COM: <s> provides a string representataion for this scheduled harvest </s> - diff --git a/funcom_test/22620033.txt b/funcom_test/22620033.txt deleted file mode 100644 index 8ee128375e5df0e8d7aa9a1a0502718baf77cd7d..0000000000000000000000000000000000000000 --- a/funcom_test/22620033.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void harvestNow(Long shUid, boolean harvestAll, boolean harvestAllIfNoDeletedRecord) { - Hashtable shs = getScheduledHarvests(); - ScheduledHarvest sh = (ScheduledHarvest) shs.get(shUid); - if (harvestAll == true) { - sh.setHarvestAll(true); - } - else { - sh.setHarvestAll(false); - } - - new HarvestThread(shUid, harvestAll, harvestAllIfNoDeletedRecord, true).start(); - } - COM: <s> harvests the given scheduled harvest immediately if not already running </s> - diff --git a/funcom_test/22620063.txt b/funcom_test/22620063.txt deleted file mode 100644 index ffc889b471e6f16634153285b903e76a4803c174..0000000000000000000000000000000000000000 --- a/funcom_test/22620063.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getDescription() { - int level = this.getLevel(); - String baseText = this.getAsnStatement().getDescription(); - if (level != 2) - return baseText; - - AsnStandard parent = this.getParentStandard(); - String parentNum = this.getNumber(parent); - String myNum = this.getNumber(this); - if (parentNum != null && myNum != null) { - return parentNum + "." + myNum + ". " + - getNonNumberText(baseText, level); - } - return baseText; - } - COM: <s> gets the description attribute of the colorado benchmark object </s> - diff --git a/funcom_test/22620068.txt b/funcom_test/22620068.txt deleted file mode 100644 index d95d52d1b181648ca72a860e8916b83359a8311e..0000000000000000000000000000000000000000 --- a/funcom_test/22620068.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String getAuthorName(String purl) { - /* prtln ("getAuthor - " + purl); - return (String) map.get(purl); */ - Jurisdiction juris = null; - try { - juris = (Jurisdiction) getAuthorMap().get(purl); - } catch (Exception e) { - prtln("WARNING: jurisdiction not found for " + purl + ": " + e.getMessage()); - e.printStackTrace(); - } - if (juris != null) { - if (juris.orgClass.equals("Organization")) - return juris.abbrev; - else - return juris.name; - } - else - return null; - } - COM: <s> gets the author name for the given author purl using abbreviations for </s> - diff --git a/funcom_test/22620070.txt b/funcom_test/22620070.txt deleted file mode 100644 index d807bcc1a9071e9e590b259787df7b05f2081ef5..0000000000000000000000000000000000000000 --- a/funcom_test/22620070.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private Map getAuthorMap() { - if (map == null) { - map = new HashMap(); - List jurisdictionNodes = doc.getNodes("/asnJurisdictions/Jurisdiction"); - for (Iterator i = jurisdictionNodes.iterator(); i.hasNext(); ) { - Element element = (Element) i.next(); - Jurisdiction jurisdiction = null; - try { - jurisdiction = new Jurisdiction(element); - } catch (Throwable t) { - prtln("ERROR: could not create jurisdiction for " + element.asXML()); - continue; - } - map.put(jurisdiction.purl, jurisdiction); - } - } - return map; - } - COM: <s> returns a mapping from author purl to author label </s> - diff --git a/funcom_test/22620090.txt b/funcom_test/22620090.txt deleted file mode 100644 index 26fa66a9100f93a1f3b1d34f968f6c9feb4f4fd5..0000000000000000000000000000000000000000 --- a/funcom_test/22620090.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getSubjects() { - if (this.subjects == null) { - this.subjects = new ArrayList(); - - File[] subjectFiles = mappingsDir.listFiles(new XMLFileFilter()); - for (int i = 0; i < subjectFiles.length; i++) { - String filename = subjectFiles[i].getName(); - this.subjects.add(filename.substring(0, filename.length() - 4)); - } - } - return this.subjects; - } - COM: <s> gets the subjects attribute of the asn catalog object </s> - diff --git a/funcom_test/22620101.txt b/funcom_test/22620101.txt deleted file mode 100644 index 26b353e4761e9e8ea499ad4b19b15c01731d2677..0000000000000000000000000000000000000000 --- a/funcom_test/22620101.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public List getSubjects() { - if (this.subjects == null) { - this.subjects = new ArrayList(); - - File[] subjectFiles = cacheDir.listFiles(new XMLFileFilter()); - for (int i = 0; i < subjectFiles.length; i++) { - String filename = subjectFiles[i].getName(); - String subject = filename.substring(0, filename.length() - 4); - if (subject.length() > 0) { - this.subjects.add(subject); - } - } - } - return this.subjects; - } - COM: <s> gets the subjects attribute of the asn catalog new object </s> - diff --git a/funcom_test/22620110.txt b/funcom_test/22620110.txt deleted file mode 100644 index 5c075f407bf2f4cc86ce790d8e330810cdcb63d6..0000000000000000000000000000000000000000 --- a/funcom_test/22620110.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void report() { - prtln("\nAsnCatalogNew report"); - prtln(this.idMap.size() + " asn docIDs read for the following subjects"); - for (Iterator i = this.subjects.iterator(); i.hasNext(); ) { - String subject = (String) i.next(); - int itemCount = this.getSubjectItems(subject).size(); - prtln(" - " + subject + " (" + itemCount + ")"); - } - } - COM: <s> produce debugging report for this asn catalog new </s> - diff --git a/funcom_test/22620142.txt b/funcom_test/22620142.txt deleted file mode 100644 index 430bd39e4a9065b6b61db4238055abace63067c1..0000000000000000000000000000000000000000 --- a/funcom_test/22620142.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public IdMapping createMapping(AcsrDocumentBean acsrDoc, String subject) throws Exception { - - AcsrDocInfo acsrDocInfo = new AcsrDocInfo(acsrDoc); - - AsnDocument asnDoc = null; - try { - asnDoc = ACSRToolkit.getAsnDocument(acsrDoc.getAcsrId()); - } catch (Exception e) { - throw new Exception("Could not create AsnDocument: " + e.getMessage()); - } - - AsnDocInfo asnDocInfo = new AsnDocInfo(asnDoc); - return new IdMapping(acsrDocInfo, asnDocInfo, subject); - } - COM: <s> creates a mapping between providee acsr doc and associated asn doc </s> - diff --git a/funcom_test/22620145.txt b/funcom_test/22620145.txt deleted file mode 100644 index cfb650232a49f74e22da2d04f1aee3788acdf6b9..0000000000000000000000000000000000000000 --- a/funcom_test/22620145.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void run() { - - boolean harvestAll = false; - boolean harvestAllIfNoDeletedRecord = true; - - // For scheduled harvests, only harvest all if deletions are not supported: - new HarvestThread(shUid, harvestAll, harvestAllIfNoDeletedRecord, false).start(); - - //new auto harvest setting which would harvest all records every time. - //new HarvestThread(shUid, true, false, false).start(); - } - COM: <s> main processing method for the harvest task object </s> - diff --git a/funcom_test/22620146.txt b/funcom_test/22620146.txt deleted file mode 100644 index 0827f4a3c8e1e54338e65687e7b832f093fa844a..0000000000000000000000000000000000000000 --- a/funcom_test/22620146.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addMapping(IdMapping mapping) throws Exception { - try { - mapping.validate(); - } catch (Exception e) { - prtln("\nrejecting invalid mapping: " + e.getMessage()); - return; - } - Map subjectMappings = this.getSubjectMappings(mapping.subject); - String asnId = mapping.asnInfo.id; - String acsrId = mapping.acsrInfo.id; - subjectMappings.put(acsrId, mapping); - this.asnIdMap.put(asnId, acsrId); - this.acsrIdMap.put(acsrId, asnId); - } - COM: <s> adds a mapping to the asn id mappings updater object </s> - diff --git a/funcom_test/22620278.txt b/funcom_test/22620278.txt deleted file mode 100644 index fa696a1359ba478d6f33b891e5f5373964156b0a..0000000000000000000000000000000000000000 --- a/funcom_test/22620278.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private AsnStandard makeAsnStandard(Element e) { - AsnStatement stmnt = new AsnStatement(e); - AsnStandard std = null; - if (authorIsColorado()) { - std = new ColoradoBenchmark(stmnt, this); - } - else if (authorIsAAAS()) { - std = new AAASBenchmark(stmnt, this); - } - else if (authorIsCommonCore()) { - std = new CommonCoreStandard(stmnt, this); - } - else { - std = new AsnStandard(stmnt, this); - } - return std; - } - COM: <s> factory to creates an asn standard instance based on the asn documents </s> - diff --git a/funcom_test/22620305.txt b/funcom_test/22620305.txt deleted file mode 100644 index 0fadee2a4a86c6d082a914945b4ae5ba0ee04cc8..0000000000000000000000000000000000000000 --- a/funcom_test/22620305.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getDisplayText() { - - String s = ""; - List aList = getAncestors(); - for (int i = 0; i < aList.size(); i++) { - AsnStandard std = (AsnStandard) aList.get(i); - s += std.getDescription(); - s += ": "; - } - s += this.getDescription(); - - s = FindAndReplace.replace(s, "<br>", "\n", true); - return removeEntityRefs(s); - } - COM: <s> walk the ancestor list adding text from each node </s> - diff --git a/funcom_test/22620380.txt b/funcom_test/22620380.txt deleted file mode 100644 index edac4adb94dfaf8ba8eb63ea1d0b8d64efc7bfe8..0000000000000000000000000000000000000000 --- a/funcom_test/22620380.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Standard getStandardById () { - if (stdId == null || commCoreHelper == null || this.standard == null) { - log.error ("returning null"); - return null; - } - Standard std = commCoreHelper.getStandard(this.standard.getDocumentIdentifier(), stdId); - if (std == null) - log.error ("std not found"); - return std; - } - COM: <s> returns the std corresponding to this </s> - diff --git a/funcom_test/22620434.txt b/funcom_test/22620434.txt deleted file mode 100644 index 5a75332df066ab0dc9c019ef4c884d08b20a5c91..0000000000000000000000000000000000000000 --- a/funcom_test/22620434.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected String getMasterJspHeader() { - String header = "<%@ include file=\"/lib/includes.jspf\" %>\n\n"; - header += "<%@ page import=\"org.dlese.dpc.schemedit.display.CollapseBean\" %>\n\n"; - header += - "<bean:define id=\"collapseBean\" name=\"" + formBeanName + "\" property=\"collapseBean\" type=\"CollapseBean\" />\n\n"; - return header; - } - COM: <s> jsp code to insert at the top of master jsp files </s> - diff --git a/funcom_test/22620443.txt b/funcom_test/22620443.txt deleted file mode 100644 index a55b162c62694daa748610a5b0e286f76497e1ab..0000000000000000000000000000000000000000 --- a/funcom_test/22620443.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void doInit(String xpath, Element parent, RendererHelper rhelper) throws Exception { - init(xpath, parent, rhelper); - - if (schemaNode == null) { - typeName = ""; - typeDef = null; - throw new Exception("Renderer can't find schemaNode for " + normalizedXPath); - } - else { - typeDef = schemaNode.getTypeDef(); - typeName = typeDef.getQualifiedName(); - } - if (schemaNode.isHeadElement()) - prtln(report() + "\n"); - - } - COM: <s> constructor for the renderer object </s> - diff --git a/funcom_test/22620483.txt b/funcom_test/22620483.txt deleted file mode 100644 index 8916c8576facf3a74aeb38977883dbecd420dd07..0000000000000000000000000000000000000000 --- a/funcom_test/22620483.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getLabelText(String xpath, String siblingPath, String indexId) { - if (siblingPath != null && indexId != null) { - String nodeName = - NamespaceRegistry.stripNamespacePrefix(XPathUtils.getNodeName(siblingPath)); - return (nodeName + " ${" + indexId + "+1}"); - } - else { - String nodeName = - NamespaceRegistry.stripNamespacePrefix(XPathUtils.getNodeName(normalizedXPath)); - return nodeName; - } - } - COM: <s> removes namespace prefix from label text </s> - diff --git a/funcom_test/22620512.txt b/funcom_test/22620512.txt deleted file mode 100644 index d27f88712f18abc70716236c591e1b9aa00962e3..0000000000000000000000000000000000000000 --- a/funcom_test/22620512.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void renderRepeatingElement() { - String normalizedXPath = RendererHelper.normalizeXPath(xpath); - - StandardsManager sm = rhelper.getFramework().getStandardsManager(); - if (sm != null && normalizedXPath.equals(sm.getXpath())) { - MdeStdsNode mdeStdsNode = new MdeStdsNode(this, sm); - mdeStdsNode.render(); - } else { - super.renderRepeatingElement(); - } - } - COM: <s> if this element has been configured to use suggestion service render using </s> - diff --git a/funcom_test/22620612.txt b/funcom_test/22620612.txt deleted file mode 100644 index d94f6a98d5946d11f9507d4b89b6d09311bdd3ec..0000000000000000000000000000000000000000 --- a/funcom_test/22620612.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Element bestPracticesLink(String xpath) { - Element bpLink = DocumentHelper.createElement("span") - .addAttribute("class", "action-button"); - - // String format = rhelper.getFramework().getXmlFormat(); - String pathArg = RendererHelper.normalizeXPath(xpath); - String fieldName = XPathUtils.getNodeName(pathArg); - - Element tag = DocumentHelper.createElement("st__bestPracticesLink") - .addAttribute("pathArg", pathArg) - .addAttribute("fieldName", fieldName); - - bpLink.add(tag); - return bpLink; - } - COM: <s> render a best practices link for the specified xpath </s> - diff --git a/funcom_test/22620616.txt b/funcom_test/22620616.txt deleted file mode 100644 index 7a9a2271957d3709faf93aa49bc5f1ab5f4cadc3..0000000000000000000000000000000000000000 --- a/funcom_test/22620616.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getToolHelp(String s) { - FieldInfoReader fieldInfoReader = rhelper.getFieldInfo(s); - if (fieldInfoReader != null) { - try { - return fieldInfoReader.getDefinition(); - } catch (Exception e) { - prtln("getToolHelp: unable to obtain definition for " + s); - } - } - return "${sf:decodePath(" + RendererHelper.jspQuotedString(s) + ")}"; - } - COM: <s> attempts to return a metadata vocab field definition for the input string </s> - diff --git a/funcom_test/22620620.txt b/funcom_test/22620620.txt deleted file mode 100644 index 84a6d78dcc95c8ed69e28306f15a0fb14f9723c1..0000000000000000000000000000000000000000 --- a/funcom_test/22620620.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String getInstancePrefix(Namespace ns, GlobalDef typeDef) { - if (!sh.getNamespaceEnabled()) - return null; - NamespaceRegistry namespaces = sh.getDefinitionMiner().getGlobalDefMap().getNamespaces(); - String instancePrefix = namespaces.getPrefixforUri(ns.getURI()); - if (instancePrefix.equals("")) - instancePrefix = namespaces.getNamedDefaultNamespace().getPrefix(); - return instancePrefix; - } - COM: <s> returns the instance level prefix assigned to the given namespace </s> - diff --git a/funcom_test/22620621.txt b/funcom_test/22620621.txt deleted file mode 100644 index 9e856e7f05554d29220c6487eb8b557c351ae316..0000000000000000000000000000000000000000 --- a/funcom_test/22620621.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Element getInputHelperElement(String xpath) { - Element inputHelper = null; - if (!this.isEditMode()) - return null; - String inputHelperPath = this.rhelper.getInputHelperFile(xpath); - if (inputHelperPath != null) { - String path = "/editor/input_helpers/" + inputHelperPath; - inputHelper = DocumentHelper.createElement("div") - .addAttribute("class", "input-helper"); - inputHelper.setText("<%@ include file=\"" + path + "\" %>"); - } - return inputHelper; - } - COM: <s> creates the jsp element to render an input helper for the specified path </s> - diff --git a/funcom_test/22620624.txt b/funcom_test/22620624.txt deleted file mode 100644 index 4fb02d0ec9741b01f9c3d6b1e55fcaf857377d4d..0000000000000000000000000000000000000000 --- a/funcom_test/22620624.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private String resolveQualifiedName(String name, GlobalDef typeDef) { - String localPrefix = NamespaceRegistry.getNamespacePrefix(name); - Namespace localPrefixNS = typeDef.getSchemaReader().getNamespaces().getNSforPrefix(localPrefix); - String topLevelPrefix = getInstancePrefix(localPrefixNS, typeDef); - return NamespaceRegistry.makeQualifiedName(topLevelPrefix, NamespaceRegistry.stripNamespacePrefix(name)); - } - COM: <s> resolve the prefix of the qualified name using the type def as context </s> - diff --git a/funcom_test/22620644.txt b/funcom_test/22620644.txt deleted file mode 100644 index 05c7bbcec192ba8e8323f599101c605af779e02e..0000000000000000000000000000000000000000 --- a/funcom_test/22620644.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void renderSubElements() { - if (typeDef != null && typeDef.isAnyType()) { - MdeAny any = new MdeAny(this); - any.render(); - } - else if (typeDef == null || !typeDef.isComplexType()) { - MdeSimpleType st = new MdeSimpleType(this); - st.render(); - } - else { - MdeComplexType ct = new MdeComplexType(this); - ct.renderSubElements(); - } - - } - COM: <s> render the sub elements of the current type definition </s> - diff --git a/funcom_test/22620649.txt b/funcom_test/22620649.txt deleted file mode 100644 index 6f860f4519a7110a8c06e1d9291733746418bb4c..0000000000000000000000000000000000000000 --- a/funcom_test/22620649.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Element getStaticSimpleValue(String xpath) { - prtln("\t getStaticSimpleValue()"); - Element valueDiv = DocumentHelper.createElement("div") - .addAttribute("class", "static-value"); - Element valueElement = valueDiv.addElement("bean__write") - .addAttribute("name", formBeanName) - .addAttribute("property", "valueOf(" + xpath + ")") - .addAttribute("filter", "false"); - return valueDiv; - } - COM: <s> displays the value of the element at specified xpath </s> - diff --git a/funcom_test/22620662.txt b/funcom_test/22620662.txt deleted file mode 100644 index 8e41070d68909cd32f2f6e739091619c8fc48ca9..0000000000000000000000000000000000000000 --- a/funcom_test/22620662.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public SimpleTypeLabel getSimpleTypeLabel(String xpath, String siblingPath, String indexId) { - SimpleTypeLabel labelObj = super.getSimpleTypeLabel(xpath, siblingPath, indexId); - labelObj.editMeTag = getEditMeTag(xpath, siblingPath, indexId); - return labelObj; - } - COM: <s> gets the simple type label attribute of the viewer renderer object </s> - diff --git a/funcom_test/22620664.txt b/funcom_test/22620664.txt deleted file mode 100644 index 0206a99bd258066a88197dc09228e494697ba532..0000000000000000000000000000000000000000 --- a/funcom_test/22620664.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public ComplexTypeLabel getComplexTypeLabel(String xpath, String siblingPath, String indexId) { - ComplexTypeLabel labelObj = super.getComplexTypeLabel(xpath, siblingPath, indexId); - labelObj.editMeTag = getEditMeTag(xpath, siblingPath, indexId); - return labelObj; - } - COM: <s> gets the complex type label attribute of the viewer renderer object </s> - diff --git a/funcom_test/22620666.txt b/funcom_test/22620666.txt deleted file mode 100644 index 486c0046664fc2cd9771acb6fb0bb3cc55389c9e..0000000000000000000000000000000000000000 --- a/funcom_test/22620666.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Element getSelectInput(String xpath) { - Element input = DocumentHelper.createElement("html__select") - .addAttribute("name", formBeanName) - .addAttribute("property", "valueOf(" + xpath + ")"); - Element options = input.addElement("html__optionsCollection") - .addAttribute("property", "selectOptions(" + xpath + ")"); - return input; - } - COM: <s> gets the select input attribute of the renderer impl object </s> - diff --git a/funcom_test/22620682.txt b/funcom_test/22620682.txt deleted file mode 100644 index a6e18bd01a2ffea642c8bfc4bb316eb8a53139df..0000000000000000000000000000000000000000 --- a/funcom_test/22620682.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Element missingValueTest(String xpath) { - // test to see if child node (the multiSelect) is empty - Element test = DocumentHelper.createElement("logic__equal") - .addAttribute("name", formBeanName) - .addAttribute("property", "nodeIsMissingValue(" + xpath + ")") - .addAttribute("value", "true"); - - return test; - } - COM: <s> test for whether a node has a value </s> - diff --git a/funcom_test/22620692.txt b/funcom_test/22620692.txt deleted file mode 100644 index 556f7cbbe943d4d9b7c06b2b88d2b1c81981f81f..0000000000000000000000000000000000000000 --- a/funcom_test/22620692.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void insertHtmlComment(Element e, String s) { - prtln("\ninsertHtmlComment()"); - Element comment = DocumentHelper.createElement("st__htmlComment"); - comment.setText(s); - Element parent = e.getParent(); - - if (parent != null) { - List children = parent.elements(); - int index = children.indexOf(e); - children.add(index, comment); - } - else { - // prtlnErr("PARENT NOT FOUND"); - } - } - COM: <s> insert an html comment into the html source </s> - diff --git a/funcom_test/22620710.txt b/funcom_test/22620710.txt deleted file mode 100644 index deab5171481119614953f341bc5aab7eae8ea2e9..0000000000000000000000000000000000000000 --- a/funcom_test/22620710.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getLabelText(String xpath, String siblingPath, String indexId) { - if (siblingPath != null && indexId != null) { - String nodeName = XPathUtils.getNodeName(siblingPath); - return (nodeName + " ${" + indexId + "+1}"); - } - else { - String nodeName = XPathUtils.getNodeName(normalizedXPath); - return nodeName; - } - } - COM: <s> label text is indexed if sibling path and index id provided otherwise based </s> - diff --git a/funcom_test/22620714.txt b/funcom_test/22620714.txt deleted file mode 100644 index 610dbc4ad0c247dc85b546b9a3bbef1e3eefa1fe..0000000000000000000000000000000000000000 --- a/funcom_test/22620714.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void attachElementId(Element e) { - // define javascript id for this node based on xpath - // ISSUE: is this ever actually used?? - e.addElement("c__set") - .addAttribute("var", "elementPath") - .addAttribute("value", xpath); - e.addElement("c__set") - .addAttribute("var", "id") - .addAttribute("value", "${sf__pathToId(elementPath)}"); - } - COM: <s> add an id attribute to the provided element with a value derived from </s> - diff --git a/funcom_test/22620725.txt b/funcom_test/22620725.txt deleted file mode 100644 index 20ef12e8b5823f39e064941010c731d613aec3cc..0000000000000000000000000000000000000000 --- a/funcom_test/22620725.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getDups() { - prtln("\ngetDups"); - List dups = new ArrayList(); - - dups.addAll(getPrimaryDups()); - dups.addAll(getMirrorDups()); - if (dups.size() > 1) { - DupSim first = (DupSim) dups.get(0); - Collections.sort(dups, first.getComparator()); - } - // prtln (" ... getDups returning " + dups.size() + " items"); - return dups; - } - COM: <s> returns a list records in collection that contain either a primary url or </s> - diff --git a/funcom_test/22620729.txt b/funcom_test/22620729.txt deleted file mode 100644 index fc1a10571fd3bf689d8850db5008e32c0af1ef61..0000000000000000000000000000000000000000 --- a/funcom_test/22620729.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public List getSims() { - prtln("getSims ..."); - List sims = new ArrayList(); - - sims.addAll(getPrimarySims()); - sims.addAll(getMirrorSims()); - - if (sims.size() > 1) { - DupSim first = (DupSim) sims.get(0); - Collections.sort(sims, first.getComparator()); - } - prtln(" ... returning " + sims.size() + " sims"); - return sims; - } - COM: <s> returns a list of dup sim instances that represent records in collection </s> - diff --git a/funcom_test/22620761.txt b/funcom_test/22620761.txt deleted file mode 100644 index 5252606f0fa8e809b4436437cfa4652fa3353200..0000000000000000000000000000000000000000 --- a/funcom_test/22620761.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List myLockedRecords(String sessionId) { - List recList = new ArrayList(); - for (Iterator i = lockedRecords.keySet().iterator(); i.hasNext(); ) { - String recId = (String) i.next(); - String mySessionId = (String) lockedRecords.get(recId); - if (sessionId.equals(mySessionId)) { - recList.add(recId); - } - } - return recList; - } - COM: <s> find records locked by a given session </s> - diff --git a/funcom_test/22620787.txt b/funcom_test/22620787.txt deleted file mode 100644 index 36ded7d0390e36105f38030db1ffcdcd4b7686c3..0000000000000000000000000000000000000000 --- a/funcom_test/22620787.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public StandardsManager getStandardsManager() { - if (this.getActionForm() == null) - prtlnErr("getStandardsManager: actionForm is unavailable"); - else if (this.getActionForm().getFramework() == null) - prtlnErr("getStandardsManager: framework is unavailable"); - return this.getActionForm().getFramework().getStandardsManager(); - } - COM: <s> gets the standards manager attribute of the catservice helper object </s> - diff --git a/funcom_test/22620792.txt b/funcom_test/22620792.txt deleted file mode 100644 index d2c41a1b46dbdb6c25c19930474e79ee3bbcdbed..0000000000000000000000000000000000000000 --- a/funcom_test/22620792.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void init(StdDocument stdDoc) throws Exception { - - rootNode = makeTeachersDomainLexicon(stdDoc); - if (rootNode != null) - nodeList = getNodeList(rootNode.getSubList()); - this.author = stdDoc.getAuthor(); - this.topic = stdDoc.getTopic(); - // this.created = stdDoc.getCreated(); - this.title = stdDoc.getTitle(); - this.id = stdDoc.getIdentifier(); - this.uid = this.id; - } - COM: <s> initialize the teachers domain lexicon by populating the standards map and </s> - diff --git a/funcom_test/22620829.txt b/funcom_test/22620829.txt deleted file mode 100644 index 28f7fb0880b04bd4abf6082a96cfe0dbb5550c61..0000000000000000000000000000000000000000 --- a/funcom_test/22620829.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void diagnose(Standard parentStd) { - prtln("\nDIAGNOSE: " + parentStd.getId()); - - List children = parentStd.getChildren(); - prtln("children (" + children.size() + ")"); - for (Iterator i = children.iterator(); i.hasNext(); ) { - Standard childStd = (Standard) i.next(); - if (childStd == null) - prtln("NULL"); - else - prtln(childStd.getId()); - } - } - COM: <s> debugging called to diagnose errors thrown during attach standards branch </s> - diff --git a/funcom_test/22620837.txt b/funcom_test/22620837.txt deleted file mode 100644 index 461e2d34059a1a9fc891c9f2983c2afeedc42f1b..0000000000000000000000000000000000000000 --- a/funcom_test/22620837.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private ArrayList getNodeList(List nodes) { - ArrayList ret = new ArrayList(); - for (int i = 0; i < nodes.size(); i++) { - StandardsNode addNode = (StandardsNode) nodes.get(i); - List sublist = addNode.getSubList(); - ret.add(addNode); - if (sublist.size() > 0) { - ret.addAll(getNodeList(sublist)); - } - } - return ret; - } - COM: <s> flattens the hierarchy under the given teachers domain lexicon list and </s> - diff --git a/funcom_test/22620855.txt b/funcom_test/22620855.txt deleted file mode 100644 index c772c13633f9194b1ce20873487e5f77d8702ed5..0000000000000000000000000000000000000000 --- a/funcom_test/22620855.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public TeachersDomainStandardsManager getStandardsManager() { - if (this.getActionForm() == null) - prtlnErr("getStandardsManager: actionForm is unavailable"); - else if (this.getActionForm().getFramework() == null) - prtlnErr("getStandardsManager: framework is unavailable"); - return (TeachersDomainStandardsManager) this.getActionForm().getFramework().getStandardsManager(); - } - COM: <s> gets the standards manager attribute of the teachers domain service helper object </s> - diff --git a/funcom_test/22620869.txt b/funcom_test/22620869.txt deleted file mode 100644 index 61c8ff800f304d28df7dc616025c1ea70c1ecf95..0000000000000000000000000000000000000000 --- a/funcom_test/22620869.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean isLastInSubList() { - if (parent == null || parent.getSubList() == null || parent.getSubList().size() == 0) { - return false; - } - return (parent.getSubList().indexOf(this) == parent.getSubList().size() - 1); - } - COM: <s> returns true if this standards node is the last of its siblings </s> - diff --git a/funcom_test/22620907.txt b/funcom_test/22620907.txt deleted file mode 100644 index 9e019b707e86710d6217a80183e594b91aa327cc..0000000000000000000000000000000000000000 --- a/funcom_test/22620907.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getLineage() { - if (this.lineage == null) { - this.lineage = new ArrayList(); - for (Iterator i = this.getAncestors().iterator(); i.hasNext(); ) { - TeachersDomainStandardsNode node = (TeachersDomainStandardsNode) i.next(); - this.lineage.add(0, node.getItemText()); - } - this.lineage.add(this.getLabel()); - } - return this.lineage; - } - COM: <s> gets a list containing the text of this node and its ancestors </s> - diff --git a/funcom_test/22620954.txt b/funcom_test/22620954.txt deleted file mode 100644 index 21df9b64b2f3d9db078f74f351e95eef30749c23..0000000000000000000000000000000000000000 --- a/funcom_test/22620954.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public AsnDocInfo getAsnDocByKey(String key) { - // prtln("getAsnDocByKey() " + key); - for (Iterator i = this.docMap.values().iterator(); i.hasNext(); ) { - AsnDocInfo doc = (AsnDocInfo) i.next(); - if (doc.key.equals(key)) { - return doc; - } - } - return null; - } - COM: <s> gets the asn doc info for the provided key </s> - diff --git a/funcom_test/22620974.txt b/funcom_test/22620974.txt deleted file mode 100644 index 95628c4c4e021bd01dfda144a12d9b7385c964e9..0000000000000000000000000000000000000000 --- a/funcom_test/22620974.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private String getDisplayText(int level) { - String text = getDescription(); - if (level == 1) { - // String pat = "all students should develop"; - String pat = "all students should develop understanding of"; - int x = text.indexOf(pat); - if (x != -1) - return text.substring(0, x + pat.length()); - else { - pat = "all students should develop"; - x = text.indexOf(pat); - if (x != -1) - return text.substring(0, x + pat.length()); - else - return "** pattern not found **"; - } - } - return text; - } - COM: <s> gets the display text attribute of the asn mapping standard object </s> - diff --git a/funcom_test/22620999.txt b/funcom_test/22620999.txt deleted file mode 100644 index 521bd7ee22db39f65bc00dd9a6cb8215c8312d98..0000000000000000000000000000000000000000 --- a/funcom_test/22620999.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: /* public List toAdnStandardsList(StandardsList sl) { - List suggestions = new ArrayList(); - int size = sl.getSize(); - for (int i = 0; i < size; i++) { - StandardWrapper wrapper = sl.getStandardAt(i); - String adnText = getAdnText(wrapper.getIdentifier()); - if (adnText != null) - suggestions.add(adnText); - else { - prtln("WARNING: AsnToAdnMapper could not find ADN standard for ASF id: " + wrapper.getIdentifier()); - } - } - return suggestions; - } */ - COM: <s> converts a standards list into a list of suggestions represented as adn standards </s> - diff --git a/funcom_test/22621046.txt b/funcom_test/22621046.txt deleted file mode 100644 index 84395594bedf233a5b3b71d37acf65165bbf2032..0000000000000000000000000000000000000000 --- a/funcom_test/22621046.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private ArrayList getNodeList(List nodes) { - ArrayList ret = new ArrayList(); - for (int i = 0; i < nodes.size(); i++) { - DleseStandardsNode addNode = (DleseStandardsNode) nodes.get(i); - List sublist = addNode.getSubList(); - ret.add(addNode); - if (sublist.size() > 0) { - ret.addAll(getNodeList(sublist)); - } - } - return ret; - } - COM: <s> flattens the hierarchy under the given dlese standards document list and </s> - diff --git a/funcom_test/22621050.txt b/funcom_test/22621050.txt deleted file mode 100644 index acb9fc074cc6cfb980f586269823284851a9ac08..0000000000000000000000000000000000000000 --- a/funcom_test/22621050.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Map getLevelMap() { - Map levelMap = new HashMap(); - List standards = getStandards(); - for (int i = 0; i < standards.size(); i++) { - AdnStandard std = (AdnStandard) standards.get(i); - Integer levels = new Integer(std.getLevels()); - List list = new ArrayList(); - if (levelMap.containsKey(levels)) { - list = (List) levelMap.get(levels); - } - list.add(std); - levelMap.put(levels, list); - } - return levelMap; - } - COM: <s> debugging method maps standards to their level the number of </s> - diff --git a/funcom_test/22621122.txt b/funcom_test/22621122.txt deleted file mode 100644 index c49a6be7b18de8de6d70af69be6b3eccafcfb72b..0000000000000000000000000000000000000000 --- a/funcom_test/22621122.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List makeSortedGRList(String[] values) { - List sorted = new ArrayList(); - for (int i = 0; i < values.length; i++) { - GradeRangeItem grItem = getGradeRangeItem(values[i]); - if (grItem != null) - sorted.add(grItem); - } - Collections.sort(sorted, new GrItemComparator()); - showList(sorted, "sorted"); - return pruneSortedGRList(sorted); - } - COM: <s> create a sorted list of grade range items using gr item comparator </s> - diff --git a/funcom_test/22621125.txt b/funcom_test/22621125.txt deleted file mode 100644 index 2a20d7ec3132ac547b0c6bdaa5b9e7a42a304084..0000000000000000000000000000000000000000 --- a/funcom_test/22621125.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public List pruneSortedGRList(List sorted) { - int max = 0; - int i = sorted.size() - 1; - while (i > 0 && max < 20) { - GradeRangeItem item = (GradeRangeItem) sorted.get(i); - GradeRangeItem other = (GradeRangeItem) sorted.get(i - 1); - if (item.contains(other)) { - sorted.remove(item); - } - i--; - max++; - } - showList(sorted, "pruned"); - return sorted; - } - COM: <s> removes grade range items that contain the item in front of them </s> - diff --git a/funcom_test/22621134.txt b/funcom_test/22621134.txt deleted file mode 100644 index a0a40b169d9fec70f25f5b9d54de77c0a5077d6f..0000000000000000000000000000000000000000 --- a/funcom_test/22621134.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public int compare(Object o1, Object o2) { - - GradeRangeItem gr1 = (GradeRangeItem) o1; - GradeRangeItem gr2 = (GradeRangeItem) o2; - - int minComp = getMinComparison(gr1, gr2); - int diffComp = getDiffComparison(gr1, gr2); - int maxComp = getMaxComparison(gr1, gr2); - - if (gr1.contains(gr2)) - return 1; - - if (gr2.contains(gr1)) - return -1; - - if (minComp == 0) - return maxComp; - else - return minComp; - } - COM: <s> compare two grade ranges to enable nsdl graderange sort </s> - diff --git a/funcom_test/22621193.txt b/funcom_test/22621193.txt deleted file mode 100644 index 791614dac613a0a3e05acc9aff90f230f081bb5a..0000000000000000000000000000000000000000 --- a/funcom_test/22621193.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getSelectedCATStartGrade(String[] gradeConstraints) { - if (gradeConstraints == null || !this.getCatHelper().getUseGradeRanges()) { - return CATRequestConstraints.ANY_GRADE; - } - - int min = CATRequestConstraints.ANY_GRADE; - try { - min = Math.min(Integer.parseInt(gradeConstraints[0]), Integer.parseInt(gradeConstraints[1])); - } catch (Throwable t) { - prtln("WARNING: getSelectedCATStartGrade problem: " + t.getMessage()); - } - return min; - } - COM: <s> returns the greater of the selected grade level constraints selected in the </s> - diff --git a/funcom_test/22621196.txt b/funcom_test/22621196.txt deleted file mode 100644 index 03e0fc499a1cdb757f65d659ae35c56829243fb3..0000000000000000000000000000000000000000 --- a/funcom_test/22621196.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getSelectedCATEndGrade(String[] gradeConstraints) { - if (gradeConstraints == null || !this.getCatHelper().getUseGradeRanges()) { - return CATRequestConstraints.ANY_GRADE; - } - - int max = CATRequestConstraints.ANY_GRADE; - try { - max = Math.max(Integer.parseInt(gradeConstraints[0]), Integer.parseInt(gradeConstraints[1])); - } catch (Throwable t) { - prtln("WARNING: getSelectedCATEndGrade problem: " + t.getMessage()); - } - return max; - } - COM: <s> returns the lesser of the selected grade level constraints selected in the </s> - diff --git a/funcom_test/22621237.txt b/funcom_test/22621237.txt deleted file mode 100644 index f488e9b70189a5a1f011bd203e6d8707d8ebb675..0000000000000000000000000000000000000000 --- a/funcom_test/22621237.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeAvailableDocs () { -/* Iterator entryIter = this.entrySet().iterator(); - while (entryIter.hasNext()) { - Map.Entry entry = (Map.Entry) entryIter.next(); - DocInfoStatus info = (DocInfoStatus)entry.getValue(); - if (info.registered) - this.remove((String)entry.getKey()); - } */ - for (Iterator i=this.getAvailableDocIds().iterator();i.hasNext();) - this.remove ((String)i.next()); - } - COM: <s> remove all entries that are currently registered </s> - diff --git a/funcom_test/22621259.txt b/funcom_test/22621259.txt deleted file mode 100644 index b1d2ccf4b327d4b6bbd4309d3f90f0c552520cad..0000000000000000000000000000000000000000 --- a/funcom_test/22621259.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public AsnStandardsDocument getStandardsDocument() { - if (this.standardsDocument == null) { - prtln("getStandardsDocument: this.standardsDocument is null, obtaining from StandardsRegistry"); - try { - this.standardsDocument = - StandardsRegistry.getInstance().getStandardsDocument(this.getDefaultDoc()); - } catch (Throwable t) { - prtlnErr("could not instantiate AsnStandardsDocument: " + t.getMessage()); - } - } - return this.standardsDocument; - } - COM: <s> gets the current standards document if one has been assigned or fetches the </s> - diff --git a/funcom_test/22621312.txt b/funcom_test/22621312.txt deleted file mode 100644 index d875efc986bb0bff32b96f6136ae04d0bb16a8d0..0000000000000000000000000000000000000000 --- a/funcom_test/22621312.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getSelectedKeywords() { - if (selectedKeywords == null) { - String[] recordKeywords = getRecordKeywords(); - String rkws = ""; - if (recordKeywords != null) { - for (int i = 0; i < recordKeywords.length; i++) { - rkws += recordKeywords[i]; - if (i < recordKeywords.length - 1) { - rkws += ", "; - } - } - selectedKeywords = rkws; - } - } - return selectedKeywords; - } - COM: <s> gets the keywords currently selected in the service controls </s> - diff --git a/funcom_test/22621314.txt b/funcom_test/22621314.txt deleted file mode 100644 index f40b3920d0a535c362a848641fc8ea9c732a2ed3..0000000000000000000000000000000000000000 --- a/funcom_test/22621314.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private ArrayList getNodeList(List nodes) { - ArrayList ret = new ArrayList(); - for (int i = 0; i < nodes.size(); i++) { - AsnStandardsNode addNode = (AsnStandardsNode) nodes.get(i); - List sublist = addNode.getSubList(); - ret.add(addNode); - if (sublist.size() > 0) { - ret.addAll(getNodeList(sublist)); - } - } - return ret; - } - COM: <s> flattens the hierarchy under the given asn standards document list and returns </s> - diff --git a/funcom_test/22621328.txt b/funcom_test/22621328.txt deleted file mode 100644 index c9b9e89ac7ba32d2d226571af36e362f1e20c4ee..0000000000000000000000000000000000000000 --- a/funcom_test/22621328.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getGradeRangeOptions() { - List options = new ArrayList(); - try { - for (int i = 0; i <= 12; i++) { - String num = String.valueOf(i); - options.add(new LabelValueBean(num, num)); - } - } catch (Throwable t) { - prtlnErr("getGradeRangeOptions ERROR: " + t.getMessage()); - // t.printStackTrace(); - } - return options; - } - COM: <s> gets the grade ranges corresponding to the grades searchable in the </s> - diff --git a/funcom_test/22621357.txt b/funcom_test/22621357.txt deleted file mode 100644 index 395128b1187ad8e75d540308132935088d93c7eb..0000000000000000000000000000000000000000 --- a/funcom_test/22621357.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ADNFragDocReader (String id, String collection, Document itemRecordDoc) { - super (id, collection, itemRecordDoc, null); // vocab=null; - doc = Dom4jUtils.localizeXml(doc, "itemRecord"); - if (doc == null) { - prtln (" constructor: doc never set"); - } - else { - // prtln (Dom4jUtils.prettyPrint (doc)); - } - - } - COM: <s> adnfrag doc reader constructor requiring an item record doc </s> - diff --git a/funcom_test/22621370.txt b/funcom_test/22621370.txt deleted file mode 100644 index b81491ab20070b01bb629c7798a29b6025313817..0000000000000000000000000000000000000000 --- a/funcom_test/22621370.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public User createUser(String username) throws Exception { - if (this.userMap.containsKey(username)) - throw new Exception("User already exists with username: " + username); - - User newUser = new User(); - newUser.setUsername(username); - File newFile = new File(this.userDataDir, username + ".xml"); - newUser.setSource(newFile); - newUser.flush(); - this.register(newUser); - return newUser; - } - COM: <s> create a new user instance for provided user name </s> - diff --git a/funcom_test/22621377.txt b/funcom_test/22621377.txt deleted file mode 100644 index d1ab637c3295067a21a229005910f7584e3af632..0000000000000000000000000000000000000000 --- a/funcom_test/22621377.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void saveUser(User user) throws Exception { - if (user.getSource() == null) { - String username = user.getUsername(); - if (username.trim().length() == 0) - throw new Exception("cannot save user because no username is defined for it"); - else { - File newFile = new File(this.userDataDir, username + ".xml"); - user.setSource(newFile); - } - } - user.flush(); - this.register(user); - } - COM: <s> writes data for specified user to disk as xml file </s> - diff --git a/funcom_test/22621383.txt b/funcom_test/22621383.txt deleted file mode 100644 index 25aa667a7ea1cd9492a37e8cf30d24ace7029b63..0000000000000000000000000000000000000000 --- a/funcom_test/22621383.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getUsers(Roles.Role maxRole) { - List users = new ArrayList(); - for (Iterator i = userMap.keySet().iterator(); i.hasNext(); ) { - String username = (String) i.next(); - User user = getUser(username); - - if (user.hasRole(maxRole)) { - users.add(getUser(username)); - } - } - Collections.sort(users, new UserNameComparator()); - return users; - } - COM: <s> returns all users having role equal to or below max role </s> - diff --git a/funcom_test/22621385.txt b/funcom_test/22621385.txt deleted file mode 100644 index abc4f4eca5b05c1d323565ed6345b602b283caeb..0000000000000000000000000000000000000000 --- a/funcom_test/22621385.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public List getUserDisplayNames() { - List users = getUsers(); - List names = new ArrayList(); - for (Iterator i = users.iterator(); i.hasNext(); ) { - User user = (User) i.next(); - names.add("<b>" + user.getUsername() + "</b> (" + user.getFullName() + ")"); - } - return names; - } - COM: <s> return a listing of users including username and full names </s> - diff --git a/funcom_test/22621474.txt b/funcom_test/22621474.txt deleted file mode 100644 index 50909208dde6a71607cc50e5d061964f42ef5ee7..0000000000000000000000000000000000000000 --- a/funcom_test/22621474.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) { - prtln("initialize"); - super.initialize(subject, callbackHandler, sharedState, options); - String propsFile = getOption("propsFile", null); - if (propsFile == null) - throw new Error("UcasLogin config error: propsFile not supplied"); - prtln("propsFile: " + propsFile); - MyUcasClient.setPropsPath(propsFile); - - } - COM: <s> intialize the ucas login using the props file obtained from the login config </s> - diff --git a/funcom_test/22621488.txt b/funcom_test/22621488.txt deleted file mode 100644 index bfd50a84d83a56350e475c80cd980518727f1422..0000000000000000000000000000000000000000 --- a/funcom_test/22621488.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void showSharedState() { - Set keys = this.sharedState.keySet(); - prtln("\nSharedState (" + keys.size() + " keys)"); - for (Iterator i = this.sharedState.keySet().iterator(); i.hasNext(); ) { - String key = (String) i.next(); - Object value = this.sharedState.get(key); - prtln("\t" + key); - } - prtln(""); - } - COM: <s> debugging utility to show the contents of the shared state map </s> - diff --git a/funcom_test/22621514.txt b/funcom_test/22621514.txt deleted file mode 100644 index b0e5f5be45501a62d4f25f8924be09f01a9ada61..0000000000000000000000000000000000000000 --- a/funcom_test/22621514.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private List getRoleOptions(Collection roles) { - // prtln ("getRoleOptions"); - List options = new ArrayList(); - options.add(new LabelValueBean("- none -", "")); - for (Iterator i = roles.iterator(); i.hasNext(); ) { - String role = Roles.toString((Roles.Role) i.next()); - // prtln ("adding options for " + role); - options.add(new LabelValueBean(role, role)); - } - return options; - } - COM: <s> gets the role options attribute of the collection access action object </s> - diff --git a/funcom_test/22621517.txt b/funcom_test/22621517.txt deleted file mode 100644 index 899cebef165b38e701d511ec8d77c930de51c93e..0000000000000000000000000000000000000000 --- a/funcom_test/22621517.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Map getCollectionAccessMap(List authorizedSets, Collection users) { - // prtln ("getCollectionAccessMap"); - List collections = getCollections(authorizedSets); - Map accessMap = new LinkedHashMap(); - for (Iterator i = collections.iterator(); i.hasNext(); ) { - LabelValueBean cb = (LabelValueBean) i.next(); - String collection = cb.getValue(); - accessMap.put(collection, getCollectionRoles(collection, users)); - } - return accessMap; - } - COM: <s> gets the collection access map attribute of the collection access action object </s> - diff --git a/funcom_test/22621526.txt b/funcom_test/22621526.txt deleted file mode 100644 index 26570df99d4d2f53575a5fc31a27fec6ab36209a..0000000000000000000000000000000000000000 --- a/funcom_test/22621526.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private List getCollectionRoles(String collection, Collection users) { - List list = new ArrayList(); - for (Iterator i = users.iterator(); i.hasNext(); ) { - User user = (User) i.next(); - Roles.Role role = user.getRole(collection); - list.add(new UserRoleBean(user, Roles.toString(role))); - } - Collections.sort(list, new UserRoleBeanComparator()); - return list; - } - COM: <s> returns a list of user role beans sorted by user fullname lastname </s> - diff --git a/funcom_test/22621685.txt b/funcom_test/22621685.txt deleted file mode 100644 index fca11358545bf756223d56ca87eae0dae41a5cce..0000000000000000000000000000000000000000 --- a/funcom_test/22621685.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getUid (String dn) { - // prtln ("getUid from " + dn); - String uidPat = FindAndReplace.replace (dnTemplate, "{0}", "(.*?)", false); - // prtln ("uidPat: " + uidPat); - - Pattern p = Pattern.compile(uidPat); - Matcher m = p.matcher(dn); - if (m.find()) { - // prtln (" ... found it"); - return m.group(1); - } - else { - // prtln (" ... didn't find it"); - return null; - } - } - COM: <s> get the uid from the provided dn distinguished name </s> - diff --git a/funcom_test/22621693.txt b/funcom_test/22621693.txt deleted file mode 100644 index 13fa059b2fca82fb0d6a68b1074fe94cb0728638..0000000000000000000000000000000000000000 --- a/funcom_test/22621693.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Map getDocContentMap(File file) { - String rootElementName = framework.getRootElementName(); - - try { - doc = Dom4jUtils.getXmlDocument(file); - doc = Dom4jUtils.localizeXml(doc, rootElementName); - } catch (Exception e) { - prtln("getXmlDocument error: " + e.getMessage()); - } - return getDocContentMap(doc, framework); - } - COM: <s> returns a content map of the provided file assuming it belongs to the </s> - diff --git a/funcom_test/22621782.txt b/funcom_test/22621782.txt deleted file mode 100644 index 2683a7403ce30ec2c1f9c1b66a80c8b872adb892..0000000000000000000000000000000000000000 --- a/funcom_test/22621782.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void getIdDirect(String collection) { - String qs = "verb=" + verb; - qs += "&collection=" + collection; - URL url; - Document doc; - try { - url = new URL(baseUrl + "?" + qs); - doc = Dom4jUtils.getXmlDocument(url); - } catch (MalformedURLException mue) { - prtln("URL error: " + mue.getCause()); - return; - } catch (org.dom4j.DocumentException de) { - prtln(de.getMessage()); - return; - } - - prtln(Dom4jUtils.prettyPrint(doc)); - } - COM: <s> perform get id by directly issuing request url </s> - diff --git a/funcom_test/22621889.txt b/funcom_test/22621889.txt deleted file mode 100644 index b82c81b4c65d71979993eafef8be51ac959bb5bd..0000000000000000000000000000000000000000 --- a/funcom_test/22621889.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public CollectionConfig findCollectionByHandle(String handle) { - if (handle == null || handle.trim().length() == 0) - return null; - for (Iterator i = this.collections.values().iterator(); i.hasNext(); ) { - CollectionConfig config = (CollectionConfig) i.next(); - if (handle.equals(config.getMetadataProviderHandle())) { - return config; - } - } - return null; - } - COM: <s> find collection config having provided handle as its metadata provider handle </s> - diff --git a/funcom_test/22622005.txt b/funcom_test/22622005.txt deleted file mode 100644 index 46c84d0599be91f037f67ec3c871cd0a5f642c07..0000000000000000000000000000000000000000 --- a/funcom_test/22622005.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void setNodeText(String xpath, String value) { - Node node = getNode(xpath); - if (node == null) { - prtln("setNodeText did not find node at " + xpath + " - creating ..."); - try { - node = docMap.createNewNode(xpath); - } catch (Exception e) { - prtln("configReader could not find or create node at " + xpath); - return; - } - } - node.setText(value); - } - COM: <s> sets the node text for specified path creating new node if necessary </s> - diff --git a/funcom_test/22622010.txt b/funcom_test/22622010.txt deleted file mode 100644 index 33e0a9244aef8da600453a17d9a3cee07e3691f9..0000000000000000000000000000000000000000 --- a/funcom_test/22622010.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void deleteCollection(String collection) { - // CollectionConfig config = this.getCollectionConfig(collection); - CollectionConfig config = (CollectionConfig) collections.get(collection); - if (config == null) { - prtln("WARNING: deleteCollection(): config not found for " + collection); - String s = "Registered collection keys:"; - for (Iterator i = getIds().iterator(); i.hasNext(); ) { - String key = (String) i.next(); - s += "\n\t" + key; - } - prtln(s); - return; - } - deleteCollection(config); - } - COM: <s> unregister a collection and deletes its configuration file </s> - diff --git a/funcom_test/22622012.txt b/funcom_test/22622012.txt deleted file mode 100644 index 5d3fe74b090f2e5890c6ab7a8282d3ff61f1e00c..0000000000000000000000000000000000000000 --- a/funcom_test/22622012.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getMinimalRecordPaths() { - if (this.minimalRecordPaths == null) { - ArrayList paths = new ArrayList(); - for (Iterator i = nameMap.values().iterator(); i.hasNext(); ) { - SchemaPath schemaPath = (SchemaPath) i.next(); - if (schemaPath.requiredByMinimalRecord) - paths.add(schemaPath); - } - Collections.sort (paths, new SchemaPathComparator()); - this.minimalRecordPaths = paths; - } - return this.minimalRecordPaths; - } - COM: <s> minimal record paths represent fields that are required for new records </s> - diff --git a/funcom_test/22622018.txt b/funcom_test/22622018.txt deleted file mode 100644 index 882fe724b804c663fbc7fd1162a9eb7e8b32cfd3..0000000000000000000000000000000000000000 --- a/funcom_test/22622018.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public List getStatusLabels() { - List labels = new ArrayList(); - Map statusMap = getStatusMap(); - if (statusMap != null) { - for (Iterator i = statusMap.values().iterator(); i.hasNext(); ) { - StatusFlag statusFlag = (StatusFlag) i.next(); - String label = statusFlag.getLabel(); - if (label.trim().length() > 0) { - labels.add(label); - } - } - Collections.sort(labels); - } - return labels; - } - COM: <s> returns a sorted list of status flag labels defined by this collection </s> - diff --git a/funcom_test/22622019.txt b/funcom_test/22622019.txt deleted file mode 100644 index b61c700438ac00367d6994a6cac5eb9b8b619612..0000000000000000000000000000000000000000 --- a/funcom_test/22622019.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getSchemaPathsByValueType(String valueType) { - ArrayList paths = new ArrayList(); - for (Iterator i = nameMap.values().iterator(); i.hasNext(); ) { - SchemaPath schemaPath = (SchemaPath) i.next(); - if (schemaPath.valueType != null && schemaPath.valueType.equals(valueType)) - paths.add(schemaPath); - } - Collections.sort (paths, new SchemaPathComparator()); - return paths; - } - COM: <s> returns list of schema path instances having specified value type e </s> - diff --git a/funcom_test/22622020.txt b/funcom_test/22622020.txt deleted file mode 100644 index a58e71264f4611b3895898b03487bf8f42b0138a..0000000000000000000000000000000000000000 --- a/funcom_test/22622020.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getReadOnlyPaths() { - if (this.readOnlyPaths == null) { - ArrayList paths = new ArrayList(); - for (Iterator i = nameMap.values().iterator(); i.hasNext(); ) { - SchemaPath schemaPath = (SchemaPath) i.next(); - if (schemaPath.readOnly) - paths.add(schemaPath.xpath); - } - // prtln (" about to return " + paths.size() + " paths"); - this.readOnlyPaths = paths; - } - return this.readOnlyPaths; - } - COM: <s> returns lists of xpaths instances representing fields configured as read only </s> - diff --git a/funcom_test/22622021.txt b/funcom_test/22622021.txt deleted file mode 100644 index c9f2c55daa8b6ac490dffb3ff43a00a9cf14a0f2..0000000000000000000000000000000000000000 --- a/funcom_test/22622021.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String toString() { - String s = "Collection Registry"; - for (Iterator i = getIds().iterator(); i.hasNext(); ) { - String key = (String) i.next(); - s += "\n\t" + key; - /* s += "\n **" + key + " **"; - CollectionConfig config = (CollectionConfig) collections.get(key); - s += config.toString(); */ - } - return s; - } - COM: <s> print the items of the mdv map for debugging purposes </s> - diff --git a/funcom_test/22622094.txt b/funcom_test/22622094.txt deleted file mode 100644 index 22c22453b20cf6eee1ab71da4749470baf968c70..0000000000000000000000000000000000000000 --- a/funcom_test/22622094.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void extractMuiGroups() { - if (vocab != null) { - prtln("\nextractMuiGroups() ... "); - for (Iterator i = loadedFrameworks.values().iterator(); i.hasNext(); ) { - MetaDataFramework framework = (MetaDataFramework) i.next(); - framework.setMuiGroups(vocab, AUDIENCE, LANGUAGE); - } - } - } - COM: <s> initialize each framework with information about which fields can be </s> - diff --git a/funcom_test/22622139.txt b/funcom_test/22622139.txt deleted file mode 100644 index 28589003adf87792866bf2294b167afed3f458fc..0000000000000000000000000000000000000000 --- a/funcom_test/22622139.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getVirtualPageLists() { - List vpls = new ArrayList(); - List keys = Arrays.asList(this.getKeys().toArray()); - if (keys != null && !keys.isEmpty()) { - Collections.sort(keys); - for (Iterator i = keys.iterator(); i.hasNext(); ) - vpls.add((VirtualPageList) i.next()); - } - return vpls; - } - COM: <s> gets the virtual page lists attribute of the virtual page config object </s> - diff --git a/funcom_test/22622142.txt b/funcom_test/22622142.txt deleted file mode 100644 index bdd6ded2f7f1ff5fe85479aba5ccbaa627a9ead4..0000000000000000000000000000000000000000 --- a/funcom_test/22622142.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getUnloadedFrameworks() { - // return this.unloadedFrameworks; - List unloaded = new ArrayList(); - List loaded = this.getAllFormats(); - File[] configs = this.getConfigFiles(); - for (int i = 0; i < configs.length; i++) { - String xmlFormat = getFormatForConfigFile(configs[i]); - if (!loaded.contains(xmlFormat)) - unloaded.add(xmlFormat); - } - return unloaded; - } - COM: <s> returns a list of xml formats corresponding to framework config files that </s> - diff --git a/funcom_test/22622147.txt b/funcom_test/22622147.txt deleted file mode 100644 index 76385686657b86ad2b2b0728319515b6aa297722..0000000000000000000000000000000000000000 --- a/funcom_test/22622147.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void exposeElement(String xpath) { - // prtln ("exposeNode() with " + xpath); - String path = xpath; - - // set ancestor paths to OPEN - while (path != null && xpath.length() > 0) { - - String encodedXPath = XPathUtils.encodeXPath(path); - String id = CollapseUtils.pathToId(encodedXPath); - - openElement(id); - path = XPathUtils.getParentXPath(path); - } - } - COM: <s> opens the element at the given xpath as well as each ancestor element </s> - diff --git a/funcom_test/22622152.txt b/funcom_test/22622152.txt deleted file mode 100644 index 84372e2181c10a0b022de4d303d77cd19e1dab55..0000000000000000000000000000000000000000 --- a/funcom_test/22622152.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setDisplayState(String key, String state) { - // prtln ("setting displayState for " + CollapseUtils.ppKey(key) + " to: " + state); - if (key != null && key.trim().length() != 0) { - getStateMap().put(key, state); - } - } - COM: <s> sets the display state for a document node corresponding to the given key </s> - diff --git a/funcom_test/22622159.txt b/funcom_test/22622159.txt deleted file mode 100644 index 35ce4e1d1a3da42e3ff9649a5087eecad966da6c..0000000000000000000000000000000000000000 --- a/funcom_test/22622159.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getItemFormats() { - List formats = new ArrayList(); - List nonItemFormats = Arrays.asList(NON_ITEM_FORMATS); - for (Iterator i = getAllFormats().iterator(); i.hasNext(); ) { - String format = (String) i.next(); - if ("dlese_collect".equals(format) && !this.allowDleseCollectItems) - continue; - if (!nonItemFormats.contains(format) && !formats.contains(format)) - formats.add(format); - } - return formats; - } - COM: <s> gets the registered formats that are item frameworks e </s> - diff --git a/funcom_test/22622205.txt b/funcom_test/22622205.txt deleted file mode 100644 index 29dfb0f5c7e5ef2e64ede46c1ad35b2d76f00c5f..0000000000000000000000000000000000000000 --- a/funcom_test/22622205.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getHits(int start, int length) { - // prtln ("\n ** getHits () start: " + start + " , length: " + length); - List hits = new ArrayList(); - for (int i = start; i < (start + length) && i < this.size(); i++) { - String id = getRecId(i); - if (id != null) { - hits.add(getResultDoc(id)); - } - } - return hits; - } - COM: <s> returns a list of record docs for the specified range </s> - diff --git a/funcom_test/22622221.txt b/funcom_test/22622221.txt deleted file mode 100644 index 43fac50659cd723b7bfd8a5e1f5cc382b068574c..0000000000000000000000000000000000000000 --- a/funcom_test/22622221.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getRecId(int recIndex) { - if (recIndex > -1 && this.getNumHits() >= (recIndex + 1)) { - return getIdFromResultDoc(this.getResults().get(recIndex)); - } else { - prtlnErr("getRecId error: requested index: " + recIndex + " size: " + this.getNumHits()); - return null; - } - } - COM: <s> gets the id of the result at specifiec index of search results </s> - diff --git a/funcom_test/22622222.txt b/funcom_test/22622222.txt deleted file mode 100644 index f44df0f01f9dd722aa8e95e37cc0d5412314819a..0000000000000000000000000000000000000000 --- a/funcom_test/22622222.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private List getNodeList(List nodeList) { - List ret = new ArrayList(); - for (int i = 0; i < nodeList.size(); i++) { - LayoutNode addNode = (LayoutNode) nodeList.get(i); - List sublist = addNode.getSubList(); - ret.add(addNode); - if (sublist.size() > 0) { - ret.addAll(getNodeList(sublist)); - } - } - return ret; - } - COM: <s> recursively expands the provided list of nodes into a flat list </s> - diff --git a/funcom_test/22622249.txt b/funcom_test/22622249.txt deleted file mode 100644 index 01b588b67a382c5f31ceca799596ad92dda05ff3..0000000000000000000000000000000000000000 --- a/funcom_test/22622249.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public List getSubList() { - if (subList == null) { - subList = new ArrayList(); - for (Iterator i = this.element.elementIterator(); i.hasNext(); ) { - subList.add(new LayoutNode((Element) i.next(), this.vocabLayout, this)); - } - } - return subList; - } - COM: <s> gets the sub list attribute of the layout node object </s> - diff --git a/funcom_test/22622295.txt b/funcom_test/22622295.txt deleted file mode 100644 index b8873ba601b60aba834fade6160874bb25037f99..0000000000000000000000000000000000000000 --- a/funcom_test/22622295.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getInactiveIntervalRemaining() { - String ret = "Unknown"; - try { - long lastAccessTime = session.getLastAccessedTime(); - long now = new Date().getTime(); - long lastAccess = now - lastAccessTime; - long maxInterval = (long) session.getMaxInactiveInterval() * 1000; - ret = Utils.convertMillisecondsToTime(maxInterval - lastAccess); - } catch (Throwable t) { - // t.printStackTrace(); - } - return ret; - } - COM: <s> gets the inactive interval remaining attribute of the session bean object </s> - diff --git a/funcom_test/22622324.txt b/funcom_test/22622324.txt deleted file mode 100644 index 09863f87f4a948e1655e566c85a2c18d47c1fc2b..0000000000000000000000000000000000000000 --- a/funcom_test/22622324.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getPrompts() { - if (prompts == null) { - prompts = new ArrayList(); - List nodes = doc.selectNodes("/metadataFieldInfo/field/prompts/prompt"); - if (nodes != null) { - for (Iterator i = nodes.iterator(); i.hasNext(); ) { - Element promptEl = (Element) i.next(); - prompts.add(promptEl.getTextTrim()); - } - } - } - return prompts; - } - COM: <s> gets the prompts for this field </s> - diff --git a/funcom_test/22622372.txt b/funcom_test/22622372.txt deleted file mode 100644 index fd0cd150030c688bded4d8c094e3aa5d8e0004fd..0000000000000000000000000000000000000000 --- a/funcom_test/22622372.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public File getCollectionDir(String collection, String xmlFormat) { - File formatDir = new File(dcsDataDir, xmlFormat); - if (!formatDir.exists()) { - prtln("creating formatDir: " + formatDir.toString()); - formatDir.mkdir(); - } - - File collectDir = new File(formatDir, collection); - if (!collectDir.exists()) { - prtln("creating collectDir: " + collectDir.toString()); - collectDir.mkdir(); - } - return collectDir; - } - COM: <s> get the directory in which dcs data records are stored for the given </s> - diff --git a/funcom_test/22622374.txt b/funcom_test/22622374.txt deleted file mode 100644 index 67863b5dd442999f5fd744bacf22ac931d5e0c29..0000000000000000000000000000000000000000 --- a/funcom_test/22622374.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getDcsStatusOptions() { - List statusOptions = new ArrayList(); - try { - statusOptions = dcsDataFramework.getSchemaHelper().getEnumerationValues("dcsStatusType", false); - } catch (Exception e) { - prtln("getStatusOptions error: " + e.getMessage()); - } - // prtln ("getStatusOptions returning " + statusOptions); - return statusOptions; - } - COM: <s> gets the dcs status options attribute of the dcs data manager object </s> - diff --git a/funcom_test/22622388.txt b/funcom_test/22622388.txt deleted file mode 100644 index ead07ee2a66c880eefdecb2ce2dd16a8f8c82535..0000000000000000000000000000000000000000 --- a/funcom_test/22622388.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getFullName(String userName) { - try { - UserManager userManager = - (UserManager) getServletContext().getAttribute("userManager"); - User user = userManager.getUser(userName); - return user.getFullName(); - } catch (Throwable t) {} - - if (userName != null && userName.trim().length() > 0) { - return userName; - } else { - return Constants.UNKNOWN_USER; - } - } - COM: <s> gets the full name attribute of the dcs data file indexing plugin object </s> - diff --git a/funcom_test/22622398.txt b/funcom_test/22622398.txt deleted file mode 100644 index 05c2fbbd67696ade1ed2ba087297f8ee1240f8ba..0000000000000000000000000000000000000000 --- a/funcom_test/22622398.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int compare(Object o1, Object o2) { - Date dateOne; - Date dateTwo; - try { - dateOne = ((StatusEntry) o1).getDate(); - dateTwo = ((StatusEntry) o2).getDate(); - } catch (Exception e) { - prtlnErr("Error: unable to find last modified date: " + e.getMessage()); - return 0; - } - return dateTwo.compareTo (dateOne); - } - COM: <s> provide comparison for sorting sugest a url records by last modified property </s> - diff --git a/funcom_test/22622479.txt b/funcom_test/22622479.txt deleted file mode 100644 index 601f1e68d01d38fff58e5db0528320df398519f4..0000000000000000000000000000000000000000 --- a/funcom_test/22622479.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private List getStatusFlagFields() { - List list = new ArrayList(); - String statusFlagPath = "/collectionConfigRecord/statusFlags/statusFlag/status"; - for (Iterator i = im.getInputFields().iterator(); i.hasNext(); ) { - InputField field = (InputField) i.next(); - // prtln (field.toString()); - if (field.getNormalizedXPath().startsWith(statusFlagPath)) { - list.add(field); - } - } - return list; - } - COM: <s> gets the status flag input fields from the input manager </s> - diff --git a/funcom_test/22622484.txt b/funcom_test/22622484.txt deleted file mode 100644 index 05f4fc1a4c7b81a8e8de563f5a22dd82b5baca52..0000000000000000000000000000000000000000 --- a/funcom_test/22622484.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setValue(String str) { - // prtln ("\nsetValue(" + XPathUtils.getLeaf(this.getXPath()) +") in: \"" + str + "\""); - - if (this.im.getPreserveWhiteSpace()) - value = handleWhiteSpace(str); - else - value = str.trim(); - // prtln ("\t out: \"" + value + "\""); - } - COM: <s> sets the value attribute of the input field object </s> - diff --git a/funcom_test/22622497.txt b/funcom_test/22622497.txt deleted file mode 100644 index 07a9444386c331c8f0e2b971d0ae9db06cae8b7a..0000000000000000000000000000000000000000 --- a/funcom_test/22622497.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - String ret = "---"; - ret += "\n\t" + "fieldName: " + getFieldName(); - ret += "\n\t" + "paramName: " + getParamName(); - ret += "\n\t" + "value: " + getValue(); - ret += "\n\t" + "xpath: " + getXPath(); - ret += "\n\t" + "normalizedXPath: " + getNormalizedXPath(); - return ret + "\n"; - } - COM: <s> debugging utility returns a string listing key fields and values </s> - diff --git a/funcom_test/22622507.txt b/funcom_test/22622507.txt deleted file mode 100644 index d59f7c621194538480c22a2a9ccf457ed10ab9b2..0000000000000000000000000000000000000000 --- a/funcom_test/22622507.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getEntryList() { - if (entryList == null) { - entryList = new ArrayList(); - List entries = doc.selectNodes("/dcsDataRecord/statusEntries/statusEntry"); - for (Iterator i = entries.iterator(); i.hasNext(); ) { - Element entryElement = (Element) i.next(); - entryList.add(new StatusEntry(entryElement)); - } - Collections.sort(entryList, new SortStatusEntries()); - } - return entryList; - } - COM: <s> returns list of managed suggestions records </s> - diff --git a/funcom_test/22622513.txt b/funcom_test/22622513.txt deleted file mode 100644 index f2383f4494a7d45dd6a7aa23a9760e001b0bbd17..0000000000000000000000000000000000000000 --- a/funcom_test/22622513.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Element getHistoryElement(String changeDate) { - List dateElements = doc.selectNodes("//dcsDataRecord/statusEntries/statusEntry/changeDate"); - if (dateElements != null && dateElements.size() > 0) - for (Iterator i = dateElements.iterator(); i.hasNext(); ) { - Element dateElement = (Element) i.next(); - if (dateElement.getText().equals(changeDate)) - return dateElement.getParent(); - } - return null; - } - COM: <s> gets the history element attribute of the dcs data record object </s> - diff --git a/funcom_test/22622526.txt b/funcom_test/22622526.txt deleted file mode 100644 index ae79bec25cd31fe12456dd015d5e5629262d15fa..0000000000000000000000000000000000000000 --- a/funcom_test/22622526.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getEntityErrorFields() { - if (entityErrorFields == null) { - entityErrorFields = new ArrayList(); - for (Iterator i = this.getInputFields().iterator(); i.hasNext(); ) { - InputField field = (InputField) i.next(); - if (field.hasEntityErrors()) { - entityErrorFields.add(field); - } - } - Collections.sort(entityErrorFields, new SortInputFieldAscending()); - } - return entityErrorFields; - } - COM: <s> gets the entity error fields managed by this input manager </s> - diff --git a/funcom_test/22622573.txt b/funcom_test/22622573.txt deleted file mode 100644 index a5c2f889d63145e4c5ade406e0c8f8a96edd36f0..0000000000000000000000000000000000000000 --- a/funcom_test/22622573.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void displayAttributeFields() { - prtln("** Attribute Fields **"); - for (Iterator ai = getAttributeFields().iterator(); ai.hasNext(); ) { - InputField field = (InputField) ai.next(); - if (schemaHelper.isRequiredAttribute(field.getSchemaNode())) { - // field.isRequired()) - prtln(field.getXPath() + " (required)"); - } else { - prtln(field.getXPath()); - } - prtln("\t" + field.getValue()); - } - prtln("----------\n"); - } - COM: <s> displays the input fields corresponding to metadata fields that are </s> - diff --git a/funcom_test/22622602.txt b/funcom_test/22622602.txt deleted file mode 100644 index 709893ff79f3c7e511a29e18f8a1d266a18c0836..0000000000000000000000000000000000000000 --- a/funcom_test/22622602.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void displayMultiValueFields() { - prtln("** MultiValue Fields **"); - for (Iterator em = getMultiValueFields().iterator(); em.hasNext(); ) { - InputField field = (InputField) em.next(); - if (schemaHelper.isRequiredBranch(field.getSchemaNode())) { - prtln(field.getXPath() + " (required)"); - } else { - prtln(field.getXPath()); - } - prtln("\t" + field.getValue()); - } - prtln("----------\n"); - } - COM: <s> displays the input fields corresponding to metadata fields that allow for </s> - diff --git a/funcom_test/22622649.txt b/funcom_test/22622649.txt deleted file mode 100644 index 8e310748190a843c9582ccc2b6aaf1bb71d230f2..0000000000000000000000000000000000000000 --- a/funcom_test/22622649.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: /* public void setMetadataHandle(String handle) { - try { - if (getNode("/dcsDataRecord/metadataHandle") == null) { - this.getDocument().getRootElement().addElement("metadataHandle"); - } - getNode("/dcsDataRecord/metadataHandle").setText(handle); - } catch (Throwable e) { - prtlnErr("setMetadataHandle failed: " + e.getMessage()); - } - } */ - COM: <s> sets the metadata handle attribute of the dcs data record object </s> - diff --git a/funcom_test/22622679.txt b/funcom_test/22622679.txt deleted file mode 100644 index cd0854eae69ca9dbdd1225394a9928c424927cf5..0000000000000000000000000000000000000000 --- a/funcom_test/22622679.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setLastEditor(String userName) { - try { - Node node = getNode("/dcsDataRecord/lastEditor"); - if (node == null) - node = this.doc.getRootElement().addElement("lastEditor"); - ((Element)node).setText(userName); - } catch (Throwable e) { - prtlnErr("setLastEditor failed: " + e.getMessage()); - } - } - COM: <s> sets the last editor attribute of the dcs data record object </s> - diff --git a/funcom_test/22622682.txt b/funcom_test/22622682.txt deleted file mode 100644 index 57fa0a237bac2292bd64e3faa6691f6fa8bc88f0..0000000000000000000000000000000000000000 --- a/funcom_test/22622682.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getCollectionsQueryClause() { - String query = ""; - List colList = this.getAuthorizedCollections(); - String[] collections = (String[]) colList.toArray(new String[]{}); - if (collections != null && collections.length > 0) { - query = "(collection:0" + collections[0]; - for (int i = 1; i < collections.length; i++) { - query += " OR collection:0" + collections[i]; - } - query += ")"; - } - return query; - } - COM: <s> return a query clause oring together all the collections the current user </s> - diff --git a/funcom_test/22622767.txt b/funcom_test/22622767.txt deleted file mode 100644 index ca4fef68530a03cc56e5792996fe0c5e87f951b5..0000000000000000000000000000000000000000 --- a/funcom_test/22622767.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected Object getRequiredContextAttributeValue(String attrName, ActionErrors errors) throws Exception { - Object attrValue = servlet.getServletContext().getAttribute(attrName); - if (attrValue == null) - errors.add("actionSetupError", new ActionError("dcs.action.attribute.error", attrName)); - return attrValue; - } - COM: <s> gets the required context attribute value attribute of the dcsaction object </s> - diff --git a/funcom_test/22622792.txt b/funcom_test/22622792.txt deleted file mode 100644 index 83398dc49d200028dedd5b30686ee5c15e2ca11e..0000000000000000000000000000000000000000 --- a/funcom_test/22622792.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Map getUserRolesMap(User user, List setInfos) { - - HashMap map = new HashMap(); - for (Iterator i = setInfos.iterator(); i.hasNext(); ) { - SetInfo setInfo = (SetInfo) i.next(); - String collection = setInfo.getSetSpec(); - if (user == null) - map.put(collection, "<i>roles disabled</i>"); - else - map.put(collection, user.getRole(collection)); - } - return map; - } - COM: <s> return mapping from collection key to permission for authorized sets </s> - diff --git a/funcom_test/22622923.txt b/funcom_test/22622923.txt deleted file mode 100644 index 5f2ec386fb4134228d53eaa089b504258fe55c09..0000000000000000000000000000000000000000 --- a/funcom_test/22622923.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private List getFormatList() { - List formats = new ArrayList(); - formats.add(new org.apache.struts.util.LabelValueBean("-- Select format --", "")); - for (Iterator i = frameworkRegistry.getItemFormats().iterator(); i.hasNext(); ) { - String format = (String) i.next(); - formats.add(new org.apache.struts.util.LabelValueBean(format, format)); - } - return formats; - } - COM: <s> gets the format list attribute of the collection services action object </s> - diff --git a/funcom_test/22623217.txt b/funcom_test/22623217.txt deleted file mode 100644 index 22205748614debeec44ab1aee15d287baffd171e..0000000000000000000000000000000000000000 --- a/funcom_test/22623217.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean getMuiFormattable(String encodedPath) { - String xpath = XPathUtils.decodeXPath(encodedPath); - VocabNode vNode = vocab.getVocabNode(getXmlFormat(), vocabAudience, "en-us", encodedPath, null); - if (vNode != null) - prtln("vNode found"); - return (vNode != null); - } - COM: <s> returns true if a mui groups file exists for the provided path </s> - diff --git a/funcom_test/22623231.txt b/funcom_test/22623231.txt deleted file mode 100644 index 4426c15acb7f6d0bd656ab5109d3465cc91969ff..0000000000000000000000000000000000000000 --- a/funcom_test/22623231.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getScparams() { - if (selectedCollection != null) { - return "&sc=" + selectedCollection; - } - else if (selectedCollections != null && selectedCollections.length > 0) { - String sparams = "&scs=" + selectedCollections[0]; - for (int i = 1; i < selectedCollections.length; i++) { - sparams += "&scs=" + selectedCollections[i]; - } - return sparams; - } - return ""; - } - COM: <s> gets the selected collection s parameter to be inserted in the url that </s> - diff --git a/funcom_test/22623495.txt b/funcom_test/22623495.txt deleted file mode 100644 index d7a95c06e3df3a70e37ad7d6706e2c5a307cbf2a..0000000000000000000000000000000000000000 --- a/funcom_test/22623495.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public SyncReport writeCollectionInfo(DcsSetInfo setInfo) throws Exception { - DcsDataRecord dcsDataRecord = dcsDataManager.getDcsDataRecord(setInfo.getId(), rm); - prtln("\nwriteCollectionInfo() setInfo.getId: " + setInfo.getId()); - MetadataProviderWriter writer = new MetadataProviderWriter(servletContext); - return writer.write(setInfo.getId(), collectionConfig, dcsDataRecord); - } - COM: <s> write collection level info metadata provider and aggregator for the </s> - diff --git a/funcom_test/22623537.txt b/funcom_test/22623537.txt deleted file mode 100644 index f7c4b09b5c5afbb792361a1a8bb1f34e95799605..0000000000000000000000000000000000000000 --- a/funcom_test/22623537.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Element asElement() { - Element root = getRootElement(); - - for (Iterator pi=props.keySet().iterator();pi.hasNext();) { - String prop = (String)pi.next(); - List values = (List)props.get (prop); - for (Iterator vi=values.iterator();vi.hasNext();) { - String value = (String)vi.next(); - if (notEmpty(value)) { - Element e = root.addElement ("dc:" + prop); - e.setText (value); - } - } - } - - return root; - } - COM: <s> returns service description as an dom4j </s> - diff --git a/funcom_test/22623543.txt b/funcom_test/22623543.txt deleted file mode 100644 index 871fa728bbbe93591d162fbf947aba712daae6ae..0000000000000000000000000000000000000000 --- a/funcom_test/22623543.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Document getWritableDocument() { - Element root = doc.getRootElement().createCopy(); - - root.addAttribute("xmlns", "http://ns.nsdl.org/ncs"); - - root.add(DocumentHelper.createNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance")); - root.addAttribute("schemaLocation", - "http://ns.nsdl.org/ncs http://ns.nsdl.org/ncs/ncs_collect/1.02/schemas/ncs-collect.xsd"); - return DocumentHelper.createDocument(root); - } - COM: <s> gets the writable document attribute of the ncscollect reader object </s> - diff --git a/funcom_test/22623571.txt b/funcom_test/22623571.txt deleted file mode 100644 index ff29114531277965f269ed949f1e530a43c05ba4..0000000000000000000000000000000000000000 --- a/funcom_test/22623571.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private String getSessionUserName() { - User sessionUser = null; - /* try { - SessionRegistry sessionRegistry = - (SessionRegistry) getRequiredContextAttribute("sessionRegistry"); - SessionBean sessionBean = sessionRegistry.getSessionBean(request); - if (sessionBean == null) { - throw new Exception("SessionBean not found in SessionRegistry"); - } - else { - sessionUser = sessionBean.getUser(); - } - } catch (Throwable t) {} - return (sessionUser == null ? Constants.UNKNOWN_USER : sessionUser.getUsername()); */ - return Constants.UNKNOWN_USER; - } - COM: <s> gets the session user name attribute of the collection importer object </s> - diff --git a/funcom_test/22623578.txt b/funcom_test/22623578.txt deleted file mode 100644 index 14314d03324d03816b0a7c5c920504b5f3fb9c19..0000000000000000000000000000000000000000 --- a/funcom_test/22623578.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private String getCollectionName() { - if (collectionName == null) { - collectionName = mdp.getCollectionName(); - - if (!hasValue(collectionName)) { - collectionName = mdp.getProperty("setName"); - } - - if (!hasValue(collectionName)) { - ServiceDescriptionReader sd = mdp.getServiceDescription(); - if (sd != null) { - try { - collectionName = sd.getTitle(); - } catch (Throwable t) {} - } - } - - if (!hasValue(collectionName)) { - collectionName = "Unnamed Collection"; - } - } - return collectionName; - } - COM: <s> determines a collection name for the collection to be imported </s> - diff --git a/funcom_test/22623594.txt b/funcom_test/22623594.txt deleted file mode 100644 index 3704ebf2a5c5a59844169db6be4a3cbbdc305a88..0000000000000000000000000000000000000000 --- a/funcom_test/22623594.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Element getRootElement() { - Element root = DocumentHelper.createElement("serviceDescription"); - /* root.add(DocumentHelper.createNamespace("dct", "http://purl.org/dc/terms/")); - root.add(DocumentHelper.createNamespace("ieee", "http://purl.org/ieee/phony_namespace")); */ - root.add(DocumentHelper.createNamespace("dc", "http://purl.org/dc/elements/1.1/")); - - return root; - } - COM: <s> creates the root element for the service description in required namespaces </s> - diff --git a/funcom_test/22623600.txt b/funcom_test/22623600.txt deleted file mode 100644 index 9e1ce27f75bd05383fe695c2c171149f40ce2c96..0000000000000000000000000000000000000000 --- a/funcom_test/22623600.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setNodeText(String xpath, String text) { - Node node = getNode(xpath); - if (node == null) { - Element parent = (Element) getNode(XPathUtils.getParentXPath(xpath)); - if (parent == null) { - prtln("Neither node or parent found for " + xpath); - return; - } - node = parent.addElement(XPathUtils.getLeaf(xpath)); - } - node.setText(text); - } - COM: <s> sets the text of the node specified by xpath </s> - diff --git a/funcom_test/22623729.txt b/funcom_test/22623729.txt deleted file mode 100644 index 510c89bf39cc8f7c69e97346d6bae6489a73123b..0000000000000000000000000000000000000000 --- a/funcom_test/22623729.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected String getNCSCollectionNativeFormat() { - try { - Element mdpColconfig = this.getNCSCollectionConfig(); - if (mdpColconfig == null) - throw new Exception("WARNING - mdpColconfig not found for " + collectionMetadataProvider); - return mdpColconfig.selectSingleNode("xmlFormat").getText(); - } catch (Throwable t) { - this.prtlnErr("getNCSCollectionNativeFormat: " + t.getMessage()); - } - return null; - } - COM: <s> for collections whose items are managed by this ncs instance we can find </s> - diff --git a/funcom_test/22623814.txt b/funcom_test/22623814.txt deleted file mode 100644 index 6af033ec36dac4eb138efb5bb6aaa179a62b1c7e..0000000000000000000000000000000000000000 --- a/funcom_test/22623814.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void getContent(HttpServletRequest request) throws Exception { - int contentLength = request.getContentLength(); - String contentType = request.getContentType(); - prtln("content: " + contentType + " (" + contentLength + ")"); - - BufferedReader reader = request.getReader(); - CharBuffer buffer = CharBuffer.allocate(contentLength); - int charsRead = reader.read(buffer); - prtln(charsRead + " characters read from buffer"); - prtln("\n--------------------------------"); - prtln(buffer.toString()); - prtln("\n--------------------------------"); - } - COM: <s> gets the content attribute of the file upload action object </s> - diff --git a/funcom_test/22623869.txt b/funcom_test/22623869.txt deleted file mode 100644 index 6fd073b4f787838a6aad4933c79f82ef4dd929d3..0000000000000000000000000000000000000000 --- a/funcom_test/22623869.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private XMLDocReader getXMLDocReader(String id) { - RepositoryManager repositoryManager = null; - try { - repositoryManager = getRepositoryManager(); - } catch (Exception e) { - prtln(e.getMessage()); - return null; - } - ResultDoc record = repositoryManager.getRecord(id); - if (record == null) { - prtln("indexed record not found for id: " + id); - return null; - } - try { - return (XMLDocReader) record.getDocReader(); - } catch (Exception e) { - prtln("getDcsDataRecord found unexpected docReader class " + e.getMessage()); - return null; - } - } - COM: <s> gets the xmldoc reader associated with an id </s> - diff --git a/funcom_test/22623871.txt b/funcom_test/22623871.txt deleted file mode 100644 index 9e186d7cac709e93854d6fe885a9145df9d606b5..0000000000000000000000000000000000000000 --- a/funcom_test/22623871.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: /* protected void writeCollectionData (CollectionConfig collectionConfig, DcsDataRecord collDcsDataRecord) { - collDcsDataRecord.clearSyncErrors(); - RepositoryWriterPlugin plugin = getRepositoryWriterPlugin (collectionConfig.getId()); - if (plugin != null) { - try { - plugin.putCollectionData (collectionConfig, collDcsDataRecord); - } catch (RepositoryWriterPluginException e) { - collDcsDataRecord.setNdrSyncError(e.getSyncMessage()); - collDcsDataRecord.flushToDisk(); - } - } - } */ - COM: <s> not currently used </s> - diff --git a/funcom_test/22623874.txt b/funcom_test/22623874.txt deleted file mode 100644 index 26a240f82fc3e72148b2b97620ea933c512fc8b7..0000000000000000000000000000000000000000 --- a/funcom_test/22623874.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public List getDirs() { - if (recordsDir == null) { - prtln("getDirs: recordsDir is null"); - return null; - } - File[] files = recordsDir.listFiles(); - ArrayList dirs = new ArrayList(); - for (int i = 0; i < files.length; i++) { - File file = files[i]; - if (file.isDirectory()) { - dirs.add(file.getName()); - } - } - - return dirs; - } - COM: <s> gets the dirs attribute of the schem edit form object </s> - diff --git a/funcom_test/22623885.txt b/funcom_test/22623885.txt deleted file mode 100644 index 7cc2da63989b9ba9645e14481ef70874c8c6e636..0000000000000000000000000000000000000000 --- a/funcom_test/22623885.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setServletContext(ServletContext servletContext) { - super.setServletContext(servletContext); - try { - smileMoveEventUrl = new URL((String) servletContext.getInitParameter("smileMoveEventUrl")); - } catch (Throwable t) { - prtlnErr("SmileEventLister could not be instantiated: " + t.getMessage()); - } - prtln("instantiated with url: " + smileMoveEventUrl); - } - COM: <s> sets the servlet context attribute of the smile event listener object and </s> - diff --git a/funcom_test/22623898.txt b/funcom_test/22623898.txt deleted file mode 100644 index 84554c912b23a35311b3a51bdd3ff56a7d58508a..0000000000000000000000000000000000000000 --- a/funcom_test/22623898.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getMetadataHandle(String collectionSetSpec) throws Exception { - String mdHandle = null; - try { - HandleServiceClient client = new HandleServiceClient(getHandleServiceBaseUrl()); - mdHandle = client.getMetadataHandle(getId(), collectionSetSpec); - } catch (Throwable t) { - String msg = "Unable to obtain metadataHandle: " + t.getMessage(); - // System.out.println(msg); - throw new Exception(msg); - } - System.out.println("mdHandle: " + mdHandle); - - return mdHandle; - } - COM: <s> gets the metadata handle from a handle service client </s> - diff --git a/funcom_test/22623912.txt b/funcom_test/22623912.txt deleted file mode 100644 index 6d1c12d357d28c01ac39dbea397b79e447aa3794..0000000000000000000000000000000000000000 --- a/funcom_test/22623912.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getDups(String url, String collection) { - DupSimUrlChecker urlChecker = null; - List dups = new ArrayList(); - try { - urlChecker = new DupSimUrlChecker(url, collection, servletContext); - dups = urlChecker.getDups(); - } catch (Exception e) { - prtlnErr("DupSimUrlChecker error: " + e.getMessage()); - } - return dups; - } - COM: <s> gets the dups attribute of the repository service object </s> - diff --git a/funcom_test/22623917.txt b/funcom_test/22623917.txt deleted file mode 100644 index eb52da3786390d9190ea6ba7a3967d7cc6a6bde3..0000000000000000000000000000000000000000 --- a/funcom_test/22623917.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getSims(String url, String collection) { - DupSimUrlChecker urlChecker = null; - List sims = new ArrayList(); - try { - urlChecker = new DupSimUrlChecker(url, collection, servletContext); - sims = urlChecker.getSims(); - } catch (Exception e) { - prtlnErr("DupSimUrlChecker error: " + e.getMessage()); - } - return sims; - } - COM: <s> gets the sims attribute of the repository service object </s> - diff --git a/funcom_test/22623930.txt b/funcom_test/22623930.txt deleted file mode 100644 index a2f411c65917017306d47aea2fa50eced01715c7..0000000000000000000000000000000000000000 --- a/funcom_test/22623930.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public PageList getPageList() { - // prtln ("getPageList() --> " + this.getXmlFormat()); - VirtualPageConfig vpConfig = VirtualPageConfig.getInstance(); - if (vpConfig != null) { - VirtualPageList formatConfig = vpConfig.getConfig(this.getXmlFormat()); - if (formatConfig != null) { - // prtln ("returning VIRTUAL Page List"); - return formatConfig; - } - } - - return configReader.getPageList(); - } - COM: <s> gets the page list attribute of the meta data framework object which </s> - diff --git a/funcom_test/22623976.txt b/funcom_test/22623976.txt deleted file mode 100644 index 2fdb577fd5c2217e2f1c248877f0834b9458a55d..0000000000000000000000000000000000000000 --- a/funcom_test/22623976.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void run() { - try { - doValidateRecords(idList); - } catch (Throwable e) { - e.printStackTrace(); - // addStatusMessage(e.toString()); - String errorMsg = "Error validating records: " + e; - addStatusMessage(errorMsg); - prtln("ERROR validating records: " + e); - } finally { - prtln ("IN FINALLY CLAUSE"); - isProcessing = false; - sessionBean = null; - dcsSetInfo = null; - } - } - COM: <s> main processing method for the validate thread object </s> - diff --git a/funcom_test/22624005.txt b/funcom_test/22624005.txt deleted file mode 100644 index a3d1b72617c29fcd93fe15c179a49b57ce4dbcff..0000000000000000000000000000000000000000 --- a/funcom_test/22624005.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getValidationReport () { - String rpt = FindAndReplace.replace (validationReport, "\n", "<br/>", false); - String pattern = "NOT VALID:"; - if (rpt.indexOf(pattern) == 0) { - rpt = "<b>" + pattern +"</b>" + rpt.substring(pattern.length()); - rpt = FindAndReplace.replace (rpt, "Error:", "<br/>Error:", false); - } - return rpt; - } - COM: <s> format the validation report for browser display </s> - diff --git a/funcom_test/22624020.txt b/funcom_test/22624020.txt deleted file mode 100644 index 8a0e3ab7a057f1a47fd841da48613574a0316759..0000000000000000000000000000000000000000 --- a/funcom_test/22624020.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getIdFromFileName(String osmCollectFileName) throws Exception { - try { - verifyOsmCollectFileName(osmCollectFileName); - } catch (Exception e) { - throw new Exception("\'" + osmCollectFileName + "\' is an invalid file name : " + e.getMessage()); - } - return osmCollectFileName.substring(0, osmCollectFileName.length() - 4); - } - COM: <s> get the osm collect id from the osm collect filename verifying that the </s> - diff --git a/funcom_test/22624034.txt b/funcom_test/22624034.txt deleted file mode 100644 index bbb281ac09a7c02b18334f3689b475d26bf42ace..0000000000000000000000000000000000000000 --- a/funcom_test/22624034.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void fetchStandardsDocs(List docIds) throws ValidatingServiceException { - prtln("fetchStandardsDocs to fetch " + docIds.size() + " docs"); - - if (isProcessing) { - prtln("ALERT: isProcessing!"); - return; - } - isProcessing = true; - this.ignoreCachedValidation = ignoreCachedValidation; - - // Here is where we would obtain lock on records to validate! - - try { - new AsnFetchThread(docIds).start(); - } catch (Throwable t) { - prtln("WARNING: validate Records: " + t.getMessage()); - } - } - COM: <s> validate a set of records in a separate thread </s> - diff --git a/funcom_test/22624074.txt b/funcom_test/22624074.txt deleted file mode 100644 index 69f554ef43161f0a16740f940f87de86675ffc86..0000000000000000000000000000000000000000 --- a/funcom_test/22624074.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void deleteFile (File destFile) { - prtln ("deleteFile: " + destFile + " (setSpec: " + this.dcsSetInfo.getSetSpec() + ")"); - destFile.delete(); - - if (this.nldrExportHelper != null) { - try { - nldrExportHelper.deleteMirroredFile (destFile.getName()); - } catch (Exception e) { - prtlnErr ("WARNING: unable to delete mirrored dlese_collect file: " + e.getMessage()); - } - } - } - COM: <s> remove file from dest directory </s> - diff --git a/funcom_test/22624097.txt b/funcom_test/22624097.txt deleted file mode 100644 index 673d6ef58b5303a43bbac5ce474c51fd693fec79..0000000000000000000000000000000000000000 --- a/funcom_test/22624097.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public RecordList batchDeleteRecords(RecordList records) throws Exception { - - prtln("\nbatchDeleteRecords()"); - - RecordList failures = new RecordList(getRepositoryManager().getIndex()); - if (records.isEmpty()) { - prtln("batchDeleteRecords no records to delete"); - } - else { - for (Iterator i = records.iterator(); i.hasNext(); ) { - String id = (String) i.next(); - try { - deleteRecord(id); - } catch (Exception e) { - prtlnErr("batchDeleteRecords failed to delete " + id); - failures.add(id); - } - } - } - return failures; - } - COM: <s> returns list of records that could not be deleted </s> - diff --git a/funcom_test/22624121.txt b/funcom_test/22624121.txt deleted file mode 100644 index f46e2d38d919f30b4c2ec1afeca84f4ab3f17469..0000000000000000000000000000000000000000 --- a/funcom_test/22624121.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getUniqueUrlPath() { - SchemaPath schemaPath = getNamedSchemaPath("url"); - if (schemaPath == null) { - // prtln("url schemaPath not found ... returning"); - return null; - } - - if (schemaPath.valueType == null || !schemaPath.valueType.equals("uniqueUrl")) { - // prtln("framework does not specify uniqueUrl"); - return null; - } - return schemaPath.xpath; - } - COM: <s> gets the unique url path attribute of the meta data framework object </s> - diff --git a/funcom_test/22624130.txt b/funcom_test/22624130.txt deleted file mode 100644 index 5179e8fe1e504d4f3236306fc2e3a9e08be6a4d6..0000000000000000000000000000000000000000 --- a/funcom_test/22624130.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public List getUrlPaths() { - List urlPathTypes = Arrays.asList(new String[]{"url", "uniqueUrl"}); - List xpaths = new ArrayList(); - Iterator iterator = getSchemaPathMap().getSchemaPathsByValueTypes(urlPathTypes).iterator(); - while (iterator.hasNext()) { - xpaths.add(((SchemaPath) iterator.next()).xpath); - } - return xpaths; - } - COM: <s> returns normalized xpaths specified in framework configuration as url </s> - diff --git a/funcom_test/22624163.txt b/funcom_test/22624163.txt deleted file mode 100644 index 93c50386ef0713cd2cbb22c4ff8b88fbac425b19..0000000000000000000000000000000000000000 --- a/funcom_test/22624163.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getBranchIsRequired(String key) { - String xpath = XPathUtils.decodeXPath(key); - boolean branchIsRequired = false; - try { - branchIsRequired = schemaHelper.isRequiredBranch(schemaHelper.getSchemaNode(xpath)); - } catch (Throwable t) { - prtlnErr("error testing for requiredBranch (" + xpath + ": " + t.getMessage()); - } - return branchIsRequired ? TRUE : FALSE; - } - COM: <s> return true iff schema helper </s> - diff --git a/funcom_test/22624176.txt b/funcom_test/22624176.txt deleted file mode 100644 index 2494db46d4fb6210985e01da681f62c234fcf33e..0000000000000000000000000000000000000000 --- a/funcom_test/22624176.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getEnumerationPaths(String encodedPath) { - String xpath = XPathUtils.decodeXPath(encodedPath); - List nodes = docMap.selectNodes(xpath); - List paths = new ArrayList(); - for (int i = 0; i < nodes.size(); i++) { - Node node = (Node) nodes.get(i); - int index = i + 1; - String path = xpath + "[" + index + "]"; - paths.add(path); - } - return paths; - } - COM: <s> gets the enumeration paths of a document given an xpath to a member </s> - diff --git a/funcom_test/22624194.txt b/funcom_test/22624194.txt deleted file mode 100644 index 29739d6a87397c7ad423f14dd93fb2a0c15f2757..0000000000000000000000000000000000000000 --- a/funcom_test/22624194.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void processOrderedElements(Document doc) { - - List orderedElementPaths = getSchemaPathMap().getSchemaPathsByValueType("ordered"); - // prtln(orderedElementPaths.size() + " ordered paths found"); - - for (Iterator i = orderedElementPaths.iterator(); i.hasNext(); ) { - SchemaPath schemaPath = (SchemaPath) i.next(); - ElementsOrderer.orderElements(doc, schemaPath.xpath); - } - } - COM: <s> orders elements as specified by the framework configuration </s> - diff --git a/funcom_test/22624212.txt b/funcom_test/22624212.txt deleted file mode 100644 index f71a2b0e742b63d02d0c1a9e290d994ca6e0afa7..0000000000000000000000000000000000000000 --- a/funcom_test/22624212.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getAcceptsNewSubstitionGroupMember(String encodedPath) { - String xpath = XPathUtils.decodeXPath(encodedPath); - SchemaNode schemaNode = schemaHelper.getSchemaNode(xpath); - if (schemaNode == null) { - prtlnErr("WARNING: getAcceptsNewSubstitionGroupMember did not find schemaNode for " + xpath); - return FALSE; - } - boolean accepts = - getSubstitutionGroupMemberCountOf(encodedPath) < schemaNode.getMaxOccurs(); - // prln (" .. accepts ? " + accepts); - return accepts ? TRUE : FALSE; - } - COM: <s> gets the accepts new substition group member attribute of the schem edit form </s> - diff --git a/funcom_test/22624282.txt b/funcom_test/22624282.txt deleted file mode 100644 index c690f9458666de7eb2910dbf887daa4a9958806a..0000000000000000000000000000000000000000 --- a/funcom_test/22624282.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private boolean isAuthorized(HttpServletRequest request, String securityRole) { - prtln ("ip of requester: " + request.getRemoteAddr()); - if (securityRole.equals("trustedIp")) { - String[] trustedIps = repositoryManager.getTrustedWsIpsArray(); - if (trustedIps == null) - return false; - - String IP = request.getRemoteAddr(); - for (int i = 0; i < trustedIps.length; i++) - if (IP.matches(trustedIps[i])) - return true; - } - return false; - } - COM: <s> checks for ip authorization </s> - diff --git a/funcom_test/22624437.txt b/funcom_test/22624437.txt deleted file mode 100644 index 069c043a0b9ed4ff33e1e188ef7e38cd8137df82..0000000000000000000000000000000000000000 --- a/funcom_test/22624437.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected CollectionInfo getCollectionInfo(String collection) throws Exception { - - List collectionInfos = this.getCollectionInfos(); - if (collectionInfos == null) - throw new Exception("no collection infos found"); - - for (Iterator i = collectionInfos.iterator(); i.hasNext(); ) { - CollectionInfo cInfo = (CollectionInfo) i.next(); - if (cInfo.getCollectionKey().equals(collection)) - return cInfo; - } - return null; - } - COM: <s> gets the collection info instance for the specified collection </s> - diff --git a/funcom_test/22624439.txt b/funcom_test/22624439.txt deleted file mode 100644 index cc0167b7e342a21fee8c6433d4cdc71553e5a216..0000000000000000000000000000000000000000 --- a/funcom_test/22624439.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean hasRecord(String id, String xmlFormat) throws DDSServiceErrorResponseException, Exception { - DDSServicesResponse ddsServicesResponse = null; - try { - ddsServicesResponse = getRecord(id, null, xmlFormat, null, false, true); - } catch (DDSServiceErrorResponseException de) { - if (de.getServiceResponseCode().equals("idDoesNotExist") || de.getServiceResponseCode().equals("cannotDisseminateFormat")) { - return false; - } - throw de; - } - return true; - } - COM: <s> determines whether the given record is in this dds repository </s> - diff --git a/funcom_test/22624445.txt b/funcom_test/22624445.txt deleted file mode 100644 index 7ee66525619b70c80405e14c1867ab4354d2acb4..0000000000000000000000000000000000000000 --- a/funcom_test/22624445.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String getValueAtPath(Node baseElement, String relativePath) throws Exception { - Node node = baseElement.selectSingleNode(relativePath); - if (node == null) { - throw new Exception("node not found at relative path: " + relativePath); - } - String ret = node.getText(); - if (ret == null) { - prtln("WARNING: text not found for node at relative path: " + relativePath); - return ret; - } - return ret.trim(); - } - COM: <s> gets the textual value of the node located at relative path from given </s> - diff --git a/funcom_test/22624449.txt b/funcom_test/22624449.txt deleted file mode 100644 index ef906b2b2e10eedfdd4d0a8d75c76ed5e245b754..0000000000000000000000000000000000000000 --- a/funcom_test/22624449.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected int getIntAtPath(Node baseElement, String relativePath) throws Exception { - String str = getValueAtPath(baseElement, relativePath); - try { - if (str == null) { - throw new Exception("Nothing found at relative path: " + relativePath); - } - - return Integer.parseInt(str); - } catch (NumberFormatException nfe) { - throw new Exception("couldnt parse as int for relative path:" + relativePath); - } - } - COM: <s> gets the integer value of the node located at relative path from given </s> - diff --git a/funcom_test/22624602.txt b/funcom_test/22624602.txt deleted file mode 100644 index 45e3a09c2e71e59b01eeea41b3092111f847c8e4..0000000000000000000000000000000000000000 --- a/funcom_test/22624602.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Map asMap() { - Map map = new HashMap(); - // map.put ("org_id", org_id); - map.put("startDate", start_date); - map.put("endDate", end_date); - if (this.organization != null) - map.put("organization", this.organization.acronym); - map.put("type", (this.isVisitor() ? "Visitor" : "Employee")); - // return new JSONObject (map); - return map; - } - COM: <s> for use in json emulate part of people db 1 </s> - diff --git a/funcom_test/22624712.txt b/funcom_test/22624712.txt deleted file mode 100644 index ab340cf9de86ce5cbee2249d62fece9e6dac87b9..0000000000000000000000000000000000000000 --- a/funcom_test/22624712.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public ADNItemDocReader getDocReader() { - if (docReader == null) { - try { - prtln("getDocReader() creating new docReader for id=" + id); - docReader = new ADNItemDocReader(id, getDocument(), rs.getVocab()); - } catch (Exception e) { - System.err.println("Error reading document: " + e); - e.printStackTrace(); - return null; - } - } - else { - // prtln ("getDocReader() returning existing docReader"); - } - return docReader; - } - COM: <s> gets the doc reader attribute of the remote result doc object which supports </s> - diff --git a/funcom_test/22624724.txt b/funcom_test/22624724.txt deleted file mode 100644 index 240090949fd1b70357040296a8e37ad57a4c311b..0000000000000000000000000000000000000000 --- a/funcom_test/22624724.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Document getStandardResponse(String asnId) throws Exception { - - String serviceUrl = getBaseUrl() + "?verb=GetStandard&id=" + asnId; - - URL url = new URL(serviceUrl); - Document response = getResponseDoc(url); - Element error = (Element) response.selectSingleNode("/ASNWebService/error"); - if (error != null) - throw new Exception("Error: " + error.getText()); - response = Dom4jUtils.localizeXml(response); - return response; - } - COM: <s> gets the get stadard response from webservice client for provided asn id </s> - diff --git a/funcom_test/22624744.txt b/funcom_test/22624744.txt deleted file mode 100644 index 77bd09a80c738d7a692595c942a7d0c5d5fdd0b2..0000000000000000000000000000000000000000 --- a/funcom_test/22624744.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getResults() throws Exception { - String path = "//asn_ACSRSubjects/asn_ACSRSubjects"; - Document response = Dom4jUtils.localizeXml(this.getResponse()); - List docElements = response.selectNodes(path); - prtln(docElements.size() + " nodes found"); - List results = new ArrayList(); - for (Iterator i = docElements.iterator(); i.hasNext(); ) { - SubjBean result = new SubjBean((Element) i.next()); - results.add(result.subject); - } - return results; - } - COM: <s> gets the results attribute of the get subjects object </s> - diff --git a/funcom_test/22624748.txt b/funcom_test/22624748.txt deleted file mode 100644 index f8a935e3a20bb19cd11cada064192ecceac153c0..0000000000000000000000000000000000000000 --- a/funcom_test/22624748.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getDetailedResults() throws Exception { - String path = "//asn_ACSRSubjects/asn_ACSRSubjects"; - Document response = Dom4jUtils.localizeXml(this.getResponse()); - List docElements = response.selectNodes(path); - - List results = new ArrayList(); - for (Iterator i = docElements.iterator(); i.hasNext(); ) { - results.add(new SubjBean((Element) i.next())); - } - return results; - } - COM: <s> gets the detailed results attribute of the get subjects object </s> - diff --git a/funcom_test/22624773.txt b/funcom_test/22624773.txt deleted file mode 100644 index 0157672171d9457622cc8f0916e1ae9f9a5cc4c3..0000000000000000000000000000000000000000 --- a/funcom_test/22624773.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString() { - String NT = "\n\t"; - String s = this.getTitle(); - s += NT + "localAdoptionDate: " + this.getLocalAdoptionDate(); - s += NT + "subject: " + this.getSubject(); - s += NT + "jurisdiction: " + this.getJurisdiction(); - s += NT + "fileName: " + this.getFileName(); - s += NT + "acsrId: " + this.getAcsrId(); - return s; - } - COM: <s> return a string representation of this acsr doc </s> - diff --git a/funcom_test/22624800.txt b/funcom_test/22624800.txt deleted file mode 100644 index c1ee81edbaef3a4f5a2e1af6b85e6be4ac328025..0000000000000000000000000000000000000000 --- a/funcom_test/22624800.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getDisplayText() { - - String s = ""; - List aList = getAncestors(); - for (int i = 0; i < aList.size(); i++) { - AsnStatement std = (AsnStatement) aList.get(i); - s += std.getDescription(); - s += ": "; - } - s += this.getTarget().getDescription(); - - s = FindAndReplace.replace(s, "<br>", "\n", true); - // return removeEntityRefs (s); - return s; - } - COM: <s> gets the display text attribute of the asn resolution response object </s> - diff --git a/funcom_test/22624809.txt b/funcom_test/22624809.txt deleted file mode 100644 index 8c197814746b1ea523adb0463d7c9a017497af69..0000000000000000000000000000000000000000 --- a/funcom_test/22624809.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public String getUrlTruncated() { - final int CUTOFF = 80; - String t = getUrl(); - - if (t == null) { - return DEFAULT; - } - else { - if (t.length() > CUTOFF + 10) { - int ind = t.indexOf("/", CUTOFF); - if (ind > -1 && ind < CUTOFF + 10) { - t = t.substring(0, ind + 1) + "..."; - } - else { - t = t.substring(0, CUTOFF) + "..."; - } - } - return t; - } - } - COM: <s> gets the url for this resource truncated if it is very long </s> - diff --git a/funcom_test/22624839.txt b/funcom_test/22624839.txt deleted file mode 100644 index 1c54ba308f69c206df48cad0299e8434460a09a2..0000000000000000000000000000000000000000 --- a/funcom_test/22624839.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getCollectionKey() { - if (vocab != null && - collection != null && - collection.trim().length() > 0) { - try { - // prtln ("about to call vocab.getFieldValueSystemId with " + collectionKey); - String useVocabMapping = "key"; - return vocab.getFieldValueSystemId(useVocabMapping, getCollection()); - } catch (Throwable e) { - prtln("makeSystemCollectionKey failed with " + collection + ":\n" + e); - } - } - return null; - } - COM: <s> gets the collection key associated with this record for example 01 </s> - diff --git a/funcom_test/22624862.txt b/funcom_test/22624862.txt deleted file mode 100644 index a3fcfc39d4215e0c3e6c184986867f8b40d812ed..0000000000000000000000000000000000000000 --- a/funcom_test/22624862.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected boolean getHasRelatedResource() { - try { - if (getElements("/itemRecord/relations/relation/idEntry/@entry").size() > 0 || - getElements("/itemRecord/relations/relation/urlEntry/@url").size() > 0) { - return true; - } - } catch (Exception e) { - prtln("getHasRelatedResource() " + e); - } - return false; - } - COM: <s> returns true if the item has one or more related resource false otherwise </s> - diff --git a/funcom_test/22624888.txt b/funcom_test/22624888.txt deleted file mode 100644 index e1ec15eafe9f6dd77651e0414d1e16cfab08e7ff..0000000000000000000000000000000000000000 --- a/funcom_test/22624888.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Element getElement(String xpath) { - List list = getElements(xpath); - if ((list == null) || (list.size() == 0)) { - prtln("getElement() did not find element for " + xpath); - return null; - } - if (list.size() > 1) { - prtln("getElement() found mulitple elements for " + xpath + " (returning first)"); - } - return (Element) list.get(0); - } - COM: <s> gets a single element satisfying given xpath </s> - diff --git a/funcom_test/22624891.txt b/funcom_test/22624891.txt deleted file mode 100644 index 400dd03c83a881beea0d3accc31e0cb093a9812b..0000000000000000000000000000000000000000 --- a/funcom_test/22624891.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void run() { - while ( keepRunning ) { - try { - sleep( sleepDuration ); - } - catch ( Exception e ) { // thrown upon interrupt when sleeping - keepRunning = false; - Thread.currentThread().interrupt(); - } - String getLast = getLastUpdate(); - if ( keepRunning && ( !lastUpdate.equals( getLast ) ) ) { - System.out.println( "Reloading vocab instance '" + instanceName + "'" ); - lastUpdate = getLast; - loaderServlet.loadVocabs(); - } - } - closeConnections(); - } - COM: <s> main processing method for the new vocabs checker object </s> - diff --git a/funcom_test/22624995.txt b/funcom_test/22624995.txt deleted file mode 100644 index bfbe7cd2f9f921606c8b468586accab2c198792e..0000000000000000000000000000000000000000 --- a/funcom_test/22624995.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void setHighestId( String metadataFieldSystemId, String newHighest ) { - try { - stmt = con.createStatement(); - stmt.executeQuery( "UPDATE vocab_fields SET highestValueId = '" + newHighest - + "' WHERE metadataFieldId = '" + metadataFieldSystemId + "'" ); - } - catch ( Exception e ) { - vocab.reportError( "SQL error" ); - e.printStackTrace(); - } - finally { - if ( stmt != null ) { - try { - stmt.close(); - } - catch ( Exception e ) {} - } - } - } - COM: <s> sets the highest id attribute of the dlesemetadata vocab tracker object </s> - diff --git a/funcom_test/22625002.txt b/funcom_test/22625002.txt deleted file mode 100644 index 1cd5a11f61bf2e6c5268621c23ca6a902e2d8a1d..0000000000000000000000000000000000000000 --- a/funcom_test/22625002.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void writeDataAsTextFile() { - if ( vocabTextFile != null ) { - try { - FileWriter file = new FileWriter( vocabTextFile ); - String outStr = getDataAsText(); - file.write( outStr, 0, outStr.length() ); - file.flush(); - file.close(); - } - catch ( Exception e ) { - System.out.println( "Problem writing vocab text file: " + e.toString() ); - e.printStackTrace(); - } - } - } - COM: <s> this method writes a text based version of the entire vocabulary even </s> - diff --git a/funcom_test/22625013.txt b/funcom_test/22625013.txt deleted file mode 100644 index a0ce256ca11f09ca5590329ca4d02263ac50d8b5..0000000000000000000000000000000000000000 --- a/funcom_test/22625013.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getHistogramQuery() { - String addCollection = ""; - if ( collection != null && !collection.equals( "0*" ) ) { - addCollection = "ky_" + collection + "_"; - } - return "/library/browse_" + addCollection + vocabNode.getFieldId() + "_" + vocabNode.getId() + ".htm"; - } - COM: <s> gets the histogram query attribute of the histogram vocab node object </s> - diff --git a/funcom_test/22625017.txt b/funcom_test/22625017.txt deleted file mode 100644 index d34479ffc82365d3ca197f53bf684329ec207392..0000000000000000000000000000000000000000 --- a/funcom_test/22625017.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getVocabTotalBarPercent() { - float percent = (float)( (float)Integer.parseInt( libraryTotal ) / (float)largestTotalInThisGroup ) * - PERCENT_ADJUST; - String perc = Float.toString( percent ); - int ind = perc.indexOf( "." ); - if ( ind > -1 ) { - perc = perc.substring( 0, ind ); - } - return perc; - } - COM: <s> gets the vocab total bar attribute of the histogram vocab node object </s> - diff --git a/funcom_test/22625020.txt b/funcom_test/22625020.txt deleted file mode 100644 index 6b037035d68d302b7f5b2095912fb84f9d37843d..0000000000000000000000000000000000000000 --- a/funcom_test/22625020.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getLibraryTotal() { - if ( isCollection ) { - // This is a collections node, so let the histogram form know which collection is - // being inspected (so it can add it to other vocab criteria): - histogramForm.setCollection( vocabNode.getId() ); - } - if ( vocabNode.getList().item.size() > 0 ) { // Sub-headers are not currently tallied - return "-1"; - } - return libraryTotal; - } - COM: <s> gets the library total attribute of the histogram vocab node object </s> - diff --git a/funcom_test/22625058.txt b/funcom_test/22625058.txt deleted file mode 100644 index e1a6e5abb3b055c7e4b731d225b32ede6c472671..0000000000000000000000000000000000000000 --- a/funcom_test/22625058.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public int compare(Object o1, Object o2) { - File file1; - File file2; - - if (order == NEWEST_FIRST) { - file1 = (File) o1; - file2 = (File) o2; - } - else { - file1 = (File) o2; - file2 = (File) o1; - } - - if (file1.lastModified() < file2.lastModified()) - return 1; - else if (file1.lastModified() > file2.lastModified()) - return -1; - else - return 0; - } - COM: <s> compares two files for sorting by their modification date </s> - diff --git a/funcom_test/22625064.txt b/funcom_test/22625064.txt deleted file mode 100644 index fe8f34db41019d2346e7439a8ee7b2df5ce8ef94..0000000000000000000000000000000000000000 --- a/funcom_test/22625064.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getTitleText() throws ParserException { - String titleText = ""; - - String[] tagToBeFound = {"TITLE"}; - TagFindingVisitor visitor = new TagFindingVisitor(tagToBeFound); - parser.visitAllNodesWith(visitor); - Node[] allTitleTags = visitor.getTags(0); - - for (int i = 0; i < allTitleTags.length; i++) - titleText = titleText + " " + allTitleTags[i].toPlainTextString(); - - parser.reset(); - return titleText; - } - COM: <s> returns the title of the html page i </s> - diff --git a/funcom_test/22625072.txt b/funcom_test/22625072.txt deleted file mode 100644 index f1efc0f173228bfb4fbe748081589eef7dcfb931..0000000000000000000000000000000000000000 --- a/funcom_test/22625072.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void init(ServletConfig config) throws ServletException { - super.init(config); - ServletContext servletContext = getServletContext(); - uriMappings = new UriMappings(servletContext, XML_PARSER); - xmlConfig = (String) servletContext.getInitParameter("UriSpoof.config"); - if (xmlConfig.indexOf("/") == 0) { - xmlConfig = xmlConfig.substring(1, xmlConfig.length()); - } - xmlConfig = servletContext.getRealPath("/") + xmlConfig; - uriMappings.loadMappings(xmlConfig); - } - COM: <s> initialize the servlet </s> - diff --git a/funcom_test/22625102.txt b/funcom_test/22625102.txt deleted file mode 100644 index 8563deeb57cbc68787114f0ac2db4b5d755196d6..0000000000000000000000000000000000000000 --- a/funcom_test/22625102.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setFieldIds( VocabList list ) { - for ( int i = 0; i < list.item.size(); i++ ) { - VocabNode node = (VocabNode)list.item.get( i ); - if ( node.getList().item.size() > 0 ) { - setNodeFieldIds( node.getList(), node.getId() ); - } - } - } - COM: <s> sets the field ids attribute of the metadata vocab object </s> - diff --git a/funcom_test/22625107.txt b/funcom_test/22625107.txt deleted file mode 100644 index 703e64925f4f6b57737c2d2e732606b6346a924b..0000000000000000000000000000000000000000 --- a/funcom_test/22625107.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setNodeFieldIds( VocabList list, String id ) { - for ( int i = 0; i < list.item.size(); i++ ) { - VocabNode node = (VocabNode)list.item.get( i ); - node.setFieldId( id ); - if ( node.getList().item.size() > 0 ) { - setNodeFieldIds( node.getList(), id ); - } - } - } - COM: <s> sets the node field ids attribute of the metadata vocab object </s> - diff --git a/funcom_test/22625187.txt b/funcom_test/22625187.txt deleted file mode 100644 index 5624fd6556f66027a225be9773857b74784e93c9..0000000000000000000000000000000000000000 --- a/funcom_test/22625187.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void charactersDefinition( char ch[], int start, int length ) throws SAXException { - String charsValue = new String( ch, start, length ); - if ( currentSAXElementName.equals( "definition" ) ) { - setDefinitions( currentSAXElementSystem, newNodeId, charsValue ); - } - if ( startSavingXML ) { - outputXML.append( charsValue ); - } - } - COM: <s> sax element data for definitions </s> - diff --git a/funcom_test/22625226.txt b/funcom_test/22625226.txt deleted file mode 100644 index 4178a3a14ba6d8c1b75672acb228cc8e0f0bb94c..0000000000000000000000000000000000000000 --- a/funcom_test/22625226.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public List listDocs() { - //prtln("listDocs() called"); - ArrayList list = new ArrayList(); - synchronized (_readerSearcherUpdateLock) { - if (_myReader != null) { - try { - int numdocs = _myReader.numDocs(); - for (int i = 0; i < numdocs; i++) { - try { - list.add(_myReader.document(i)); - } catch (Exception e) {} - } - } catch (Throwable e) {} - } - else { - prtlnErr("listDocs couldn't get reader..."); - } - } - - return list; - } - COM: <s> gets a list of all </s> - diff --git a/funcom_test/22625277.txt b/funcom_test/22625277.txt deleted file mode 100644 index b7cec74667859f3d50e886986b2e98eeef366ebf..0000000000000000000000000000000000000000 --- a/funcom_test/22625277.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public int getTermFrequency(String term) { - //prtln("getTermFrequency()"); - - int freq = -1; - List fields = getFields(); - if (fields != null) { - synchronized (_readerSearcherUpdateLock) { - if (_myReader != null) { - try { - freq = 0; - for (int i = 0; i < fields.size(); i++) { - freq += _myReader.docFreq(new Term((String) fields.get(i), term)); - } - } catch (Exception e) {} - } - } - } - return freq; - } - COM: <s> gets the term frequency across all fields in the index </s> - diff --git a/funcom_test/22625398.txt b/funcom_test/22625398.txt deleted file mode 100644 index 577bf2a2534b818022168e3dd48d9971b255d1aa..0000000000000000000000000000000000000000 --- a/funcom_test/22625398.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected ResultDocList getMyAnnoResultDocs() throws Exception { - if (_myAnnoResultDocs == null) { - RecordDataService recordDataService = getRecordDataService(); - if (recordDataService != null) { - // Get annotation for this record only. If I am a multi-doc, these (should) include all annos for all records - _myAnnoResultDocs = recordDataService.getDleseAnnoResultDocs(_getIds()); - } - } - return _myAnnoResultDocs; - } - COM: <s> gets the annotations for this record null or zero length if none available </s> - diff --git a/funcom_test/22625503.txt b/funcom_test/22625503.txt deleted file mode 100644 index 8f6381673106e33ec3872d0799fb3660852fd10c..0000000000000000000000000000000000000000 --- a/funcom_test/22625503.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected String getReviewProcessUrl() throws Exception { - List nodes = getDom4jDoc().selectNodes("/*[local-name()='collectionRecord']/*[local-name()='general']/*[local-name()='reviewProcess']/@url"); - if (nodes.size() > 1) - prtln("More than one review process URL!"); - if (nodes.size() == 0) - return null; - Attribute attrib = (Attribute) nodes.get(0); - return attrib.getValue(); - } - COM: <s> gets the url to the collections review process statement </s> - diff --git a/funcom_test/22625505.txt b/funcom_test/22625505.txt deleted file mode 100644 index 8dc057ac6dfb4e3268d95119cde8aa6b74829cff..0000000000000000000000000000000000000000 --- a/funcom_test/22625505.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected String getReviewProcess() throws Exception { - List nodes = getDom4jDoc().selectNodes("/*[local-name()='collectionRecord']/*[local-name()='general']/*[local-name()='reviewProcess']"); - if (nodes.size() > 1) - prtln("More than one review process!"); - if (nodes.size() == 0) - return null; - Element element = (Element) nodes.get(0); - return element.getText(); - } - COM: <s> gets the collections review process statement </s> - diff --git a/funcom_test/22625509.txt b/funcom_test/22625509.txt deleted file mode 100644 index f3b3135fd6ab79f99c132fba1a116e06ebd79fbf..0000000000000000000000000000000000000000 --- a/funcom_test/22625509.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected String getCost() throws Exception { - List nodes = getDom4jDoc().selectNodes("/*[local-name()='collectionRecord']/*[local-name()='general']/*[local-name()='cost']"); - - if (nodes.size() != 1) - return null; - Element element = (Element) nodes.get(0); - return element.getText().replaceAll(":", "").replaceAll(" ", ""); - } - COM: <s> gets the cost associated with this collection </s> - diff --git a/funcom_test/22625513.txt b/funcom_test/22625513.txt deleted file mode 100644 index 90dd8989036218167a2e060f1cc824744b78af1f..0000000000000000000000000000000000000000 --- a/funcom_test/22625513.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected String getKeywords() throws Exception { - List nodes = getDom4jDoc().selectNodes("/*[local-name()='collectionRecord']/*[local-name()='general']/*[local-name()='keywords']/*[local-name()='keyword']"); - String tmp = ""; - if (nodes.size() > 1) - tmp = ((Element) nodes.get(0)).getText(); - for (int i = 1; i < nodes.size(); i++) - tmp += "+" + ((Element) nodes.get(i)).getText(); - return tmp.trim(); - } - COM: <s> gets the keywords associated with this collection </s> - diff --git a/funcom_test/22625519.txt b/funcom_test/22625519.txt deleted file mode 100644 index c0e4589f6c8ce8436c0dd51653d512fa9352cbaf..0000000000000000000000000000000000000000 --- a/funcom_test/22625519.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected Date getAccessionDate() throws Exception { - if (!getAccessionStatus().equals("accessioned")) - return null; - Node dateElement = getDom4jDoc().selectSingleNode("/collectionRecord/approval/collectionStatuses/collectionStatus[@state='Accessioned']"); - if (dateElement != null) - return MetadataUtils.parseUnionDateType(((Element) dateElement).attribute("date").getText()); - return null; - } - COM: <s> returns the accession date or null if this collection is not currently accessioned </s> - diff --git a/funcom_test/22625538.txt b/funcom_test/22625538.txt deleted file mode 100644 index ae3d16021056fdd09503a92fa831885546ccec04..0000000000000000000000000000000000000000 --- a/funcom_test/22625538.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void addDocToRemove(String field, String value) { - if (newDocData != null) { - //prtln("addDocToRemove() removing field: " + field + " value: " + value); - newDocData.addDocToRemove(field, value); - } - else { - // prtln("addDocToRemove() NOT removing field: " + field + " value: " + value); - } - - } - COM: <s> removes a matching item from the index during the file indexing service update </s> - diff --git a/funcom_test/22625582.txt b/funcom_test/22625582.txt deleted file mode 100644 index a4608d1e25e36dc4ccd9b6396c8cbc6ab7312320..0000000000000000000000000000000000000000 --- a/funcom_test/22625582.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setUrls(String[] theUrls) throws IllegalStateException { - if (xmlProcessed) - throw new IllegalStateException(illegalPostProssingMsg); - - if(theUrls != null) { - this.urls = new String [theUrls.length]; - for(int i = 0; i < theUrls.length; i++) - this.urls[i] = UrlHelper.normalize(theUrls[i]); - } - else - this.urls = urls; - } - COM: <s> sets the value of urls and normalizes them </s> - diff --git a/funcom_test/22625588.txt b/funcom_test/22625588.txt deleted file mode 100644 index c2a3429901d5b7555005a967227d85b74d305c66..0000000000000000000000000000000000000000 --- a/funcom_test/22625588.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void close() { - try { - stopIndexing(); - synchronized (_readerSearcherUpdateLock) { - if (optimizeMonitorThread != null) - optimizeMonitorThread.stopMonitoring(); - if (_myReader != null) - _myReader.close(); - if (_mySearcher != null) - _mySearcher.close(); - if(_myFacetTaxonomyReader != null) - _myFacetTaxonomyReader.close(); - _myReader = null; - _mySearcher = null; - _myFacetTaxonomyReader = null; - } - - optimizeMonitorThread = null; - } catch (Exception e) { - prtlnErr("Problem closing resources: " + e); - e.printStackTrace(); - } - } - COM: <s> closes the readers and searchers and performs clean up </s> - diff --git a/funcom_test/22625625.txt b/funcom_test/22625625.txt deleted file mode 100644 index 85aa098013b9cdf9f47c589806003cffc8fc5f2b..0000000000000000000000000000000000000000 --- a/funcom_test/22625625.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getRequestDate() { - String t = doc.get("requestdate"); - - if (t == null) - return DEFAULT; - long time = -1; - try { - time = DateFieldTools.stringToTime(t); - } catch (ParseException pe) { - prtlnErr("Error in getRequestDate(): " + pe); - } - - return new SimpleDateFormat("EEE MMM d, yyyy h:mm:ss a zzz").format(new Date(time)); - } - COM: <s> gets the request date attribute of the web log reader object </s> - diff --git a/funcom_test/22625645.txt b/funcom_test/22625645.txt deleted file mode 100644 index 139253f9ec9075dbfe30e7b0cddbc7beaf3c5f1c..0000000000000000000000000000000000000000 --- a/funcom_test/22625645.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String getTermStringFromStringArray(String[] vals) { - if (vals == null) { - return ""; - } - String tmp = ""; - try { - for (int i = 0; i < vals.length; i++) { - tmp += " " + vals[i].substring(vals[i].lastIndexOf(":") + 1, vals[i].length()); - } - } catch (Throwable e) {} - return tmp.trim(); - } - COM: <s> gets the appropriate terms from a string array of metadata fields </s> - diff --git a/funcom_test/22625648.txt b/funcom_test/22625648.txt deleted file mode 100644 index 9b0c54ab62697651ffb068b34f1c82554c23744e..0000000000000000000000000000000000000000 --- a/funcom_test/22625648.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String getCost() throws Exception { - String val = ""; - for (int i = 0; i < adnXmlDoc.length; i++) { - String[] cost = adnXmlDoc[i].getXmlFields("rights/cost"); - for (int j = 0; j < cost.length; j++) - val += " " + cost[j].replaceAll(":", "").replaceAll(" ", ""); - } - //prtln("creators: " + val); - return val.trim(); - } - COM: <s> returns the items cost </s> - diff --git a/funcom_test/22625669.txt b/funcom_test/22625669.txt deleted file mode 100644 index 1dd4cd2ed75a0eca9be578428ee6ca2d198c1008..0000000000000000000000000000000000000000 --- a/funcom_test/22625669.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void init() { - repositoryManager = (RepositoryManager) getAttribute("repositoryManager"); - xmlConversionService = (XMLConversionService) getAttribute("xmlConversionService"); - recordDataService = (RecordDataService) getAttribute("recordDataService"); - if (recordDataService != null) - metadataVocab = recordDataService.getVocab(); - if (repositoryManager != null) { - vocabLang = repositoryManager.getMetadataVocabLanguageDefault(); - vocabAudience = repositoryManager.getMetadataVocabAudienceDefault(); - } - - initDeDuping(); - } - COM: <s> initialized a new xmldoc reader at search time </s> - diff --git a/funcom_test/22625828.txt b/funcom_test/22625828.txt deleted file mode 100644 index 168962ce0283147a92497b9e6263303077780e0d..0000000000000000000000000000000000000000 --- a/funcom_test/22625828.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getDateFileWasIndexedString() { - String t = doc.get("fileindexeddate"); - - if (t == null) - return DEFAULT; - long modTime = -1; - try{ - modTime = DateFieldTools.stringToTime(t); - } catch (ParseException pe) { - prtlnErr("Error in getDateFileWasIndexedString(): " + pe); - } - return new SimpleDateFormat("MMM d, yyyy h:mm:ss a zzz").format(new Date(modTime)); - } - COM: <s> gets the date and time this record was indexed as a string </s> - diff --git a/funcom_test/22625831.txt b/funcom_test/22625831.txt deleted file mode 100644 index 4ab37fbcc46c0ba64c384724afe9995d57dcd216..0000000000000000000000000000000000000000 --- a/funcom_test/22625831.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getLastModifiedAsUTC() { - String t = doc.get("modtime"); - - if (t == null) - return DEFAULT; - - SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); - df.setTimeZone(new SimpleTimeZone(SimpleTimeZone.UTC_TIME, "UTC")); - try { - return df.format(DateFieldTools.stringToDate(t)); - } catch (ParseException pe) { - prtlnErr("Error in getLastModifiedAsUTC(): " + pe); - return df.format(new Date(0)); - } - } - COM: <s> gets the file modification date in utc format for the given record </s> - diff --git a/funcom_test/22625841.txt b/funcom_test/22625841.txt deleted file mode 100644 index f527542c8216fea9dcaf4a82a122ea599ba21efc..0000000000000000000000000000000000000000 --- a/funcom_test/22625841.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getLogDate() { - String t = doc.get("logdate"); - - if (t == null) - return DEFAULT; - long time = -1; - try { - time = DateFieldTools.stringToTime(t); - } catch (ParseException pe) { - prtlnErr("Error in getLogDate(): " + pe); - } - - return new SimpleDateFormat("h:mm:ss a zzz, EEE MMM d, yyyy").format(new Date(time)); - } - COM: <s> gets the log date attribute of the harvest log reader object </s> - diff --git a/funcom_test/22625846.txt b/funcom_test/22625846.txt deleted file mode 100644 index 3d3bef287acd2095cfda0145bbe93fa277ae739b..0000000000000000000000000000000000000000 --- a/funcom_test/22625846.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getStartTime() { - String t = doc.get("starttime"); - - if (t == null) - return DEFAULT; - - long time = -1; - try { - time = DateFieldTools.stringToTime(t); - } catch (ParseException pe) { - prtlnErr("Error in getStartTime(): " + pe); - } - if (time <= 0) - return "Unknown"; - return new SimpleDateFormat("h:mm:ss a zzz, EEE MMM d, yyyy").format(new Date(time)); - } - COM: <s> gets the start time attribute of the harvest log reader object </s> - diff --git a/funcom_test/22625857.txt b/funcom_test/22625857.txt deleted file mode 100644 index fef486e10fb240dc852493d64b341c75275137c2..0000000000000000000000000000000000000000 --- a/funcom_test/22625857.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getEndTime() { - String t = doc.get("endtime"); - - if (t == null) - return DEFAULT; - long time = -1; - try { - time = DateFieldTools.stringToTime(t); - } catch (ParseException pe) { - prtlnErr("Error in getEndTime(): " + pe); - } - if (time <= 0) - return "Unknown"; - - return new SimpleDateFormat("h:mm:ss a zzz, EEE MMM d, yyyy").format(new Date(time)); - } - COM: <s> gets the end time attribute of the harvest log reader object </s> - diff --git a/funcom_test/22625952.txt b/funcom_test/22625952.txt deleted file mode 100644 index 92193916f510ba69b5241102c4340ab2367ec50b..0000000000000000000000000000000000000000 --- a/funcom_test/22625952.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getCreationDate() { - String t = doc.get("creationdate"); - - if (t == null) - return ""; - - try { - long modTime = DateFieldTools.stringToTime(t); - SimpleDateFormat df = new SimpleDateFormat("MMM' 'dd', 'yyyy"); - return df.format(new Date(modTime)); - } catch (Throwable e) { - prtlnErr("Error getCreationDate(): " + e); - return ""; - } - } - COM: <s> gets the created date as a string </s> - diff --git a/funcom_test/22625968.txt b/funcom_test/22625968.txt deleted file mode 100644 index 28ff15aad14d6542c1cda81cf95587c99301d7e0..0000000000000000000000000000000000000000 --- a/funcom_test/22625968.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public String getXmlFormat(String format, boolean filter) { - //prtln("getXmlFormat() format: " + format); - if (format == null) - return ""; - if (format.equals(getDoctype())) { - if (filter) - return getXmlStripped(); - else - return getXml(); - } - else if (xmlConversionService != null) { - StringBuffer xml = - xmlConversionService.getConvertedXml(getDoctype(), format, getFile(), this); - - if (xml == null) - return ""; - else - return xml.toString(); - } - else - return ""; - } - COM: <s> gets xml in the given format </s> - diff --git a/funcom_test/22625970.txt b/funcom_test/22625970.txt deleted file mode 100644 index 63d763d98d3b73ce0e3e252277568ba1a0593ff9..0000000000000000000000000000000000000000 --- a/funcom_test/22625970.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void startTimerThread(long updateFrequency) { - if (updateFrequency == 0) { - stopTimerThread(); - } - if (updateFrequency > 0) { - if (timer != null) { - timer.cancel(); - } - // Set daemon to true - timer = new Timer(true); - // Start monitoring the metadata sourceFile directory for updates and changes. - timer.schedule(new FileSyncTask(), - 6000, - ((updateFrequency > 0) ? updateFrequency * 1000 : 60000)); - addIndexingMessage("Auto-indexing timer started"); - //prtln("FileIndexingService timer started"); - } - } - COM: <s> start or restarts the timer thread with the given update frequency </s> - diff --git a/funcom_test/22625975.txt b/funcom_test/22625975.txt deleted file mode 100644 index 253f7cdb187d3433edd4ab4b9f872226e7b35f38..0000000000000000000000000000000000000000 --- a/funcom_test/22625975.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public List getOaiSets() { - RepositoryManager rm = - (RepositoryManager) getServlet().getServletContext().getAttribute("repositoryManager"); - ArrayList setsList = new ArrayList(); - setsList.add(SimpleQueryAction.SELECT_ALL); - if (rm == null) - return setsList; - String[] sets = rm.getOaiSets(); - if (sets == null) - return setsList; - for (int i = 0; i < sets.length; i++) - setsList.add(sets[i]); - return setsList; - } - COM: <s> gets the oai set specs for this repository or null if none </s> - diff --git a/funcom_test/22625980.txt b/funcom_test/22625980.txt deleted file mode 100644 index a4f99706d8c0f15e37ee267b3e28f99d5ebfcae4..0000000000000000000000000000000000000000 --- a/funcom_test/22625980.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getAccessionDate() { - String t = doc.get("accessiondate"); - - if (t == null) - return ""; - - try { - long modTime = DateFieldTools.stringToTime(t); - SimpleDateFormat df = new SimpleDateFormat("MMM' 'dd', 'yyyy"); - return df.format(new Date(modTime)); - } catch (Throwable e) { - prtlnErr("Error getAccessionDate(): " + e); - return ""; - } - } - COM: <s> gets the accession date as a string </s> - diff --git a/funcom_test/22626027.txt b/funcom_test/22626027.txt deleted file mode 100644 index 55cc131d4de8978204d0910bf08695b145c6bf6d..0000000000000000000000000000000000000000 --- a/funcom_test/22626027.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getOaiLastModifiedString() { - String t = doc.get("oaimodtime"); - - if (t == null) - return DEFAULT; - - long modTime = -1; - try { - modTime = DateFieldTools.stringToTime(t); - } catch (java.text.ParseException pe) { - prtlnErr("Error in getOaiLastModifiedString(): " + pe); - } - return new SimpleDateFormat("MMM d, yyyy h:mm:ss a zzz").format(new Date(modTime)); - } - COM: <s> gets a string representataion of the oai datestamp in human readable format </s> - diff --git a/funcom_test/22626063.txt b/funcom_test/22626063.txt deleted file mode 100644 index 256bfd92b83c2f61624b343937bd4a75c7fb9644..0000000000000000000000000000000000000000 --- a/funcom_test/22626063.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ArrayList getAnnoPathways() { - String t = multiDoc.get("itemannopathways"); - //System.out.println("getAnnoPathways() String: " + t ); - if (t == null || t.length() == 0) { - return null; - } - else { - String[] tmp = t.split("\\s+"); - ArrayList list = new ArrayList(tmp.length); - for (int i = 0; i < tmp.length; i++) - list.add(tmp[i].replaceAll("\\+", " ")); - return list; - } - } - COM: <s> gets the anno pathways that are associated with this record </s> - diff --git a/funcom_test/22626066.txt b/funcom_test/22626066.txt deleted file mode 100644 index 3043450f12fae24b43f431e9aa065e7e53212000..0000000000000000000000000000000000000000 --- a/funcom_test/22626066.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void showConfig() { - prtln("config"); - String property = "ndr.client.repository.baseURL"; - prtln("\t" + property + ": " + config.getProperty(property)); - property = "ndr.client.authentication.agentHandle"; - prtln("\t" + property + ": " + config.getProperty(property)); - property = "ndr.client.authentication.privateKey"; - prtln("\t" + property + ": " + config.getProperty(property)); - } - COM: <s> output configuration properties to the console </s> - diff --git a/funcom_test/22626067.txt b/funcom_test/22626067.txt deleted file mode 100644 index c6953424409f788d8ad32e1fbf5b2c81b5f71448..0000000000000000000000000000000000000000 --- a/funcom_test/22626067.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void getAllResources() throws Exception { - - prtln("getAllResources"); - - NDRObject resTemplate = new NDRObjectTemplate(Type.Resource); - // resTemplate.addRelationship(Resource.MEMBER_OF, aggregator); - - Results <NDRObjectInfo> resources = this.getFinder().matchObject(resTemplate); - int count = 0; - try { - for (NDRObjectInfo res : resources) { - // prtln ("\t" + res.handle()); - count++; - } - } finally { - resources.close(); - } - prtln(count + " resources found"); - } - COM: <s> find all resources in the ndr </s> - diff --git a/funcom_test/22626073.txt b/funcom_test/22626073.txt deleted file mode 100644 index 2a80edc5fdbbc9fe7d5a1c4979f8fff79924195a..0000000000000000000000000000000000000000 --- a/funcom_test/22626073.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Resource putContent(String resourceUrl, byte[] content, String label) throws Exception { - // if resource exists at resourceUrl, then use it - Resource resource = findResource(resourceUrl); - if (resource == null) { - prtln("putContent: resource does not exist"); - resource = ndr.newObject(Type.Resource); - } - if (resource == null) - throw new Exception("Unable to create new resource"); - setResourceContent(resource, content, label); - return resource; - } - COM: <s> set the provided content into the ndr resource object having provided </s> - diff --git a/funcom_test/22626074.txt b/funcom_test/22626074.txt deleted file mode 100644 index d0e858806fbc30a36b206c00f7e689fb202a3dae..0000000000000000000000000000000000000000 --- a/funcom_test/22626074.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ArrayList getAnnoStatus() { - String t = multiDoc.get("itemannostatus"); - //System.out.println("getAnnoStatus() String: " + t ); - if (t == null || t.trim().length() == 0) { - return null; - } - else { - String[] tmp = t.split("\\s+"); - ArrayList list = new ArrayList(tmp.length); - for (int i = 0; i < tmp.length; i++) - list.add(tmp[i].replaceAll("\\+", " ")); - return list; - } - } - COM: <s> gets the annotation statuses that are associated with this item </s> - diff --git a/funcom_test/22626090.txt b/funcom_test/22626090.txt deleted file mode 100644 index 08242a1b8c8d90539824b5a96b6ac57c02f8eceb..0000000000000000000000000000000000000000 --- a/funcom_test/22626090.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ArrayList getAnnoFormats() { - String t = multiDoc.get("itemannoformats"); - if (t == null || t.trim().length() == 0) { - return null; - } - else { - String[] tmp = t.split("\\s+"); - ArrayList list = new ArrayList(tmp.length); - for (int i = 0; i < tmp.length; i++) - list.add(tmp[i].replaceAll("\\+", " ")); - return list; - } - } - COM: <s> gets the annotation formats that are associated with this item </s> - diff --git a/funcom_test/22626150.txt b/funcom_test/22626150.txt deleted file mode 100644 index 096bd51ed3a54a75d84d52d9d8fcc0537869d405..0000000000000000000000000000000000000000 --- a/funcom_test/22626150.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Document asDocument() { - Element root = this.getRootElement(); - Element obj = root.addElement(this.objectType.getTag()); - - if (this.properties != null) { - obj.add(this.properties.asElement()); - } - if (this.relationships != null) { - obj.add(this.relationships.asElement()); - } - if (this.data != null) { - obj.add(this.data.asElement()); - } - - return DocumentHelper.createDocument(root); - } - COM: <s> get an org </s> - diff --git a/funcom_test/22626192.txt b/funcom_test/22626192.txt deleted file mode 100644 index 44b8f9ab76a4b5ca7a7e0e351f986f9d215990a5..0000000000000000000000000000000000000000 --- a/funcom_test/22626192.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void showContextParams () { - - prtln ("\ninit parameters from CONFIG"); - Enumeration e1 = this.getServletConfig().getInitParameterNames(); - while (e1.hasMoreElements()) { - prtln ("\t" + (String)e1.nextElement()); - } - - prtln ("\ninit parameters from CONTEXT"); - Enumeration e2 = this.getServletContext().getInitParameterNames(); - while (e2.hasMoreElements()) { - prtln ("\t" + (String)e2.nextElement()); - } - } - COM: <s> debugging method to show config and context params </s> - diff --git a/funcom_test/22626199.txt b/funcom_test/22626199.txt deleted file mode 100644 index 6c2c7718eec6848d2ff01399c15799553312c2c3..0000000000000000000000000000000000000000 --- a/funcom_test/22626199.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ServiceDescriptionReader getServiceDescription() { - if (serviceDescription == null) { - String xpath = "/ndr:NSDLDataRepository/ndr:NDRObject/ndr:data/ndr:serviceDescription"; - String uriStr = getNodeText(xpath); - try { - URL url = new URL(uriStr); - serviceDescription = new ServiceDescriptionReader(url); - } catch (Exception e) { - prtln("serviceDescription error: " + e.getMessage()); - serviceDescription = null; - } - } - return serviceDescription; - } - COM: <s> gets the service description attribute of the grouping object reader object </s> - diff --git a/funcom_test/22626202.txt b/funcom_test/22626202.txt deleted file mode 100644 index 3bc669dde5fdd848ccfda27606228a2868735353..0000000000000000000000000000000000000000 --- a/funcom_test/22626202.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getInactiveMemberHandles() throws Exception { - if (inactiveMemberHandles == null) { - FindRequest request = new FindRequest(); - request.setObjectType(NDRConstants.NDRObjectType.METADATA); - request.addCommand("relationship", getChildToParentRelationship(), this.getHandle()); - request.addStateCmd(NDRConstants.ObjectState.INACTIVE); - inactiveMemberHandles = request.getResultHandles(); - } - return inactiveMemberHandles; - } - COM: <s> gets the handles of the inactive metadata objects of the grouping object reader </s> - diff --git a/funcom_test/22626215.txt b/funcom_test/22626215.txt deleted file mode 100644 index efcd0596040256d2d174b148276710e02bbed784..0000000000000000000000000000000000000000 --- a/funcom_test/22626215.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Document getItemRecord() throws Exception { - Element root = this.getNativeDataStream(this.nativeDataStreamFormat); - if (root == null) - throw new Exception("itemRecord not found in " + this.getHandle()); - try { - return DocumentHelper.createDocument(root); - } catch (Throwable t) { - throw new Exception("could not create itemRecord for " + this.getHandle() + ": " + t.getMessage()); - } - } - COM: <s> gets the native datastream as a dom4j </s> - diff --git a/funcom_test/22626216.txt b/funcom_test/22626216.txt deleted file mode 100644 index 42b3d865e7b4f8272bfca102d62eb67169ef9c0c..0000000000000000000000000000000000000000 --- a/funcom_test/22626216.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Document getCanonicalNsdlDcItemRecord() throws Exception { - Element root = this.getCanonicalNsdlDcDataStream(); - if (root == null) - throw new Exception("canonicalNsdlDcItemRecord not found in " + this.getHandle()); - try { - return DocumentHelper.createDocument(root); - } catch (Throwable t) { - throw new Exception("could not create canonicalNsdlDcItemRecord for " + this.getHandle() + ": " + t.getMessage()); - } - } - COM: <s> gets the nsdl dc datastream as a dom4j </s> - diff --git a/funcom_test/22626219.txt b/funcom_test/22626219.txt deleted file mode 100644 index a02d77d8b6e639c5732ea824a247929568063a6c..0000000000000000000000000000000000000000 --- a/funcom_test/22626219.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getMdpHandle() { - if (mdpHandle == null) { - try { - FindRequest request = new FindRequest(NDRConstants.NDRObjectType.METADATAPROVIDER); - request.addCommand("relationship", "aggregatedBy", this.getHandle()); - return request.getResultHandle(); - } catch (Throwable t) { - prtln("could not obtain mdpHandle: " + t); - } - mdpHandle = ""; - } - return mdpHandle; - } - COM: <s> gets the mdp handle attribute of the aggregator reader object </s> - diff --git a/funcom_test/22626298.txt b/funcom_test/22626298.txt deleted file mode 100644 index a4925c662d0b4a9e0314ff4858a87802d4b3ca49..0000000000000000000000000000000000000000 --- a/funcom_test/22626298.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getPropertyValues(String name) { - String path = "/ndr:NSDLDataRepository/ndr:NDRObject/ndr:properties/" + qname(name); - List nodes = getNodes(path); - List values = new ArrayList(); - for (Iterator i = nodes.iterator(); i.hasNext(); ) { - Element e = (Element) i.next(); - values.add(e.getText()); - } - return values; - } - COM: <s> gets a list of values for the specified property </s> - diff --git a/funcom_test/22626301.txt b/funcom_test/22626301.txt deleted file mode 100644 index cc2ab0d8b8ae30c1b7d6e9c9a0f9ad2b14a69ef3..0000000000000000000000000000000000000000 --- a/funcom_test/22626301.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getRelationshipValues(String name) { - String xpath = "/ndr:NSDLDataRepository/ndr:NDRObject/ndr:relationships/" + qname(name); - List nodes = getNodes(xpath); - List values = new ArrayList(); - for (Iterator i = nodes.iterator(); i.hasNext(); ) { - Element e = (Element) i.next(); - values.add(e.getText()); - } - return values; - } - COM: <s> gets all the relationships for the specified name </s> - diff --git a/funcom_test/22626384.txt b/funcom_test/22626384.txt deleted file mode 100644 index 01bb28e6109b39e6292dc0cc19d165dc5448ba32..0000000000000000000000000000000000000000 --- a/funcom_test/22626384.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean equals(Object o) { - try { - RelatedResource rr = (RelatedResource) o; - if (rr.getUrl() != null && _url != null && rr.getKind() != null && _kind != null) - return (rr.getUrl().equals(_url) && rr.getKind().equals(_kind)); - } catch (Throwable t) { - return false; - } - return false; - } - COM: <s> true if the two related resource urls and kind are the same </s> - diff --git a/funcom_test/22626468.txt b/funcom_test/22626468.txt deleted file mode 100644 index 308f819ae60fce045b7f5df32e0634b83af97b2f..0000000000000000000000000000000000000000 --- a/funcom_test/22626468.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getOaiSetSpecs() { - List setSpecs = new ArrayList(); - if (matchingFieldsSetsList != null) { - for (int i = 0; i < matchingFieldsSetsList.size(); i++) { - String setSpec = ((Node) matchingFieldsSetsList.get(i)).valueOf("setSpec"); - setSpecs.add(setSpec); - } - } - //prtln("getOaiSetSpecs(): " + setSpecs); - return setSpecs; - } - COM: <s> gets the oai set specs attribute of the oaisets matching fields bean object </s> - diff --git a/funcom_test/22626504.txt b/funcom_test/22626504.txt deleted file mode 100644 index a4f1e34ccf44009535fb4426517e2113aed9f8da..0000000000000000000000000000000000000000 --- a/funcom_test/22626504.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void fireEvent(IndexingEvent indexingEvent, String itemIndexerClassName) throws Exception { - if (itemIndexers == null) - return; - - if(repositoryManager.getIsReadOnly()){ - String msg = "Repository is read-only. No action taken."; - addIndexingMessage(msg,MSG_TYPE_INFO); - return; - } - synchronized (itemIndexers) { - if (itemIndexers.size() == 0) - throw new Exception("There are no ItemIndexers configured. Check for initialization errors."); - } - IndexingEventThread indexingEventThread = new IndexingEventThread(indexingEvent, itemIndexerClassName); - indexingEventThread.start(); - } - COM: <s> fires the given event on all item indexers </s> - diff --git a/funcom_test/22626563.txt b/funcom_test/22626563.txt deleted file mode 100644 index 176eaea66d86c5dd03d4e329c853a3c596c630b9..0000000000000000000000000000000000000000 --- a/funcom_test/22626563.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getFilePathForId(MmdRec rec) { - if (rec == null) { - //prtln("getFilePathForId() Error: ID map record is null"); - return ""; - } - String pathToRecord = collBaseDir + "/" - + rec.metastyleNames[rec.getMetastyle()] - + "/" + rec.getCollKey() + "/" + rec.getFileName(); - return pathToRecord; - } - COM: <s> gets the file path for id attribute of the record data service object </s> - diff --git a/funcom_test/22626628.txt b/funcom_test/22626628.txt deleted file mode 100644 index 9eb6f76de6998f2bdb165a76b6be18dfe7e3678d..0000000000000000000000000000000000000000 --- a/funcom_test/22626628.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString() { - StringBuffer ret = new StringBuffer(); - ret.append("format: "); - ret.append(format); - ret.append(" directory: "); - Object[] attributeKeys = attributes.keySet().toArray(); - for (int i = 0; i < attributeKeys.length; i++) - ret.append("\n attribute: " + attributeKeys[i].toString()); - return ret.toString(); - } - COM: <s> provides a string representataion for this dir info </s> - diff --git a/funcom_test/22626702.txt b/funcom_test/22626702.txt deleted file mode 100644 index b79e2107d17463370ec84866e2a6588cf297dc69..0000000000000000000000000000000000000000 --- a/funcom_test/22626702.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getIndexingDaysOfWeek() { - if (indexingDaysOfWeek == null) - return "all days"; - else { - String daysOfWeekMsg = ""; - for (int i = 0; i < indexingDaysOfWeek.length; i++) - daysOfWeekMsg += Utils.getDayOfWeekString(indexingDaysOfWeek[i]) + (i == indexingDaysOfWeek.length - 1 ? "s" : "s, "); - return daysOfWeekMsg; - } - } - COM: <s> gets the days of the week the indexer will run as a string </s> - diff --git a/funcom_test/22626749.txt b/funcom_test/22626749.txt deleted file mode 100644 index b7f38acf1c0100355318bec745e66f193769b70e..0000000000000000000000000000000000000000 --- a/funcom_test/22626749.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addOaiError(String error, String message) { - //prtln("addOaiError(): " + error + " " + this.getClass().getName()); - if (errors == null) - errors = new ArrayList(); - - errors.add(new OAIError(error, message)); - if(!hasBadVerbOrArgument) - hasBadVerbOrArgument = (error.equals(OAICodes.BAD_VERB) || error.equals(OAICodes.BAD_ARGUMENT)); - } - COM: <s> adds a feature to the error attribute of the repository form object </s> - diff --git a/funcom_test/22626800.txt b/funcom_test/22626800.txt deleted file mode 100644 index c988c8b0cc0695e6e1e975bde84ccf00e6311a3e..0000000000000000000000000000000000000000 --- a/funcom_test/22626800.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public ArrayList getSets() { - RepositoryManager rm = - (RepositoryManager) getServlet().getServletContext().getAttribute("repositoryManager"); - if (rm == null) - return new ArrayList(); - - try { - ArrayList sets = rm.getSetInfos(); - if (sets == null) - return new ArrayList(); - else - return sets; - } catch (Throwable e) { - prtlnErr("getSets() error: " + e); - return new ArrayList(); - } - } - COM: <s> gets the sets attribute of the repository form object </s> - diff --git a/funcom_test/22626951.txt b/funcom_test/22626951.txt deleted file mode 100644 index 756ad3f4cfdbd8105aa737fa4caf076a8a5550a9..0000000000000000000000000000000000000000 --- a/funcom_test/22626951.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getFormatTypeToIndex() { - // Format type 'canonical_nsdl_dc' or 'native' - String formatType = configXmlDoc.valueOf("/NFR_Collections/ncsManagedCollections/formatType"); - if (formatType == null || formatType.trim().length() == 0 || !(formatType.equalsIgnoreCase("canonical_nsdl_dc") || formatType.equalsIgnoreCase("native"))) - formatType = "canonical_nsdl_dc"; - return formatType; - } - COM: <s> gets the format type one of canonical nsdl dc or native </s> - diff --git a/funcom_test/22627050.txt b/funcom_test/22627050.txt deleted file mode 100644 index 782ced78dd83454bd1afbd11cfaf91d72d51d17c..0000000000000000000000000000000000000000 --- a/funcom_test/22627050.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: /* public String getLastIndexModifiedTimez() { - if(index == null) - return ""; - long ut = index.getLastModifiedTime(); - if ( ut == 0 || getNumRecords() == null ) { - return null; - } - else { - return new SimpleDateFormat( "MMM d, yyyy 'at' h:mm:ss a zzz" ).format( new Date( ut ) ); - } - } */ - COM: <s> gets the last index modified time attribute of the ddsadmin form object </s> - diff --git a/funcom_test/22627090.txt b/funcom_test/22627090.txt deleted file mode 100644 index 6dc78002d9a204062d044548649787456fb00826..0000000000000000000000000000000000000000 --- a/funcom_test/22627090.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getHasIdeasForUse() { - ResultDocList annoResults = ( (ItemDocReader)primaryResultDoc.getDocReader() ).getAnnotationResultDocs(); - for ( int i = 0; i < annoResults.size(); i++ ) { - if ( ( (DleseAnnoDocReader)annoResults.get(i).getDocReader() ).getType().equals( "See also" ) ) { - return "true"; - } - } - return "false"; - } - COM: <s> gets the has ideas for use attribute of the ddsview resource form object </s> - diff --git a/funcom_test/22627092.txt b/funcom_test/22627092.txt deleted file mode 100644 index 96a30e48245a41a94c9908a22e190a4a8dd20cb7..0000000000000000000000000000000000000000 --- a/funcom_test/22627092.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getHasChallengingLearningContexts() { - ResultDocList annoResults = ( (ItemDocReader)primaryResultDoc.getDocReader() ).getAnnotationResultDocs(); - for ( int i = 0; i < annoResults.size(); i++ ) { - if ( ( (DleseAnnoDocReader)annoResults.get(i).getDocReader() ).getType().equals( "Information on challenging teaching and learning situations" ) ) { - return "true"; - } - } - return "false"; - } - COM: <s> gets the has challenging learning contexts attribute of the </s> - diff --git a/funcom_test/22627296.txt b/funcom_test/22627296.txt deleted file mode 100644 index b8a4ebf41ce36536665ef9d67eeb6490d83f9a80..0000000000000000000000000000000000000000 --- a/funcom_test/22627296.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setConfigDirectory(File configDir, File persistanceDir) throws Exception { - if (configDir == null) - throw new Exception("The configDir is null"); - this.configFile = new File(configDir, "org.dlese.dpc.dds.ndr.NDRIndexer.NDR_indexer_collections.xml"); - myPersistanceDir = new File(persistanceDir, "NDRIndexer"); - myPersistanceDir.mkdirs(); - } - COM: <s> sets the config directory attribute of the ndrindexer object </s> - diff --git a/funcom_test/22627464.txt b/funcom_test/22627464.txt deleted file mode 100644 index 09b9980f525349f421a8f4a8bd256787ea5cffd5..0000000000000000000000000000000000000000 --- a/funcom_test/22627464.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ArrayList getImportPaths() { - ArrayList paths = new ArrayList(); - List list = doc.selectNodes("//" + NamespaceRegistry.makeQualifiedName (xsdPrefix, "import")); - for (Iterator iter = list.iterator(); iter.hasNext(); ) { - Element element = (Element) iter.next(); - String schemaLocation = element.attributeValue("schemaLocation"); - String namespace = element.attributeValue("namespace"); - paths.add(new IncludePath(schemaLocation, namespace)); - } - return paths; - } - COM: <s> gets the import paths attribute of the schema reader object </s> - diff --git a/funcom_test/22627479.txt b/funcom_test/22627479.txt deleted file mode 100644 index 3e6323c50215cce5647af5625beece0754efad26..0000000000000000000000000000000000000000 --- a/funcom_test/22627479.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Object get(String key) { - String xpath = XPathUtils.decodeXPath(key); - Node node = doc.selectSingleNode(xpath); - String val = ""; - if (node == null) { - // prtln("DocMap.get(): couldn't find node for " + xpath); - } - else { - try { - val = node.getText(); - } catch (Exception e) { - prtlnErr("DocMap.get(): unable to get Text for " + xpath); - } - } - return val; - } - COM: <s> given an encoded xpath return the value of the referred to node </s> - diff --git a/funcom_test/22627492.txt b/funcom_test/22627492.txt deleted file mode 100644 index 2c0ee2dd8b8adab2e15891cbdacd51ce7ade99d3..0000000000000000000000000000000000000000 --- a/funcom_test/22627492.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void extractDocumentation() { - Element docElement = (Element) this.element.selectSingleNode(this.xsdPrefix + ":annotation/" + - this.xsdPrefix + ":documentation"); - if (docElement != null) { - String docString = docElement.getTextTrim(); - if (docString != null && docString.length() > 0) - this.documentation = docString; - else - this.documentation = null; - } - } - COM: <s> find documentation within this type definition </s> - diff --git a/funcom_test/22627504.txt b/funcom_test/22627504.txt deleted file mode 100644 index cacff590a3cfbbc2f025e9103c4cfc35fd763cbd..0000000000000000000000000000000000000000 --- a/funcom_test/22627504.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void remove(String xpath) { - Node node = doc.selectSingleNode(xpath); - if (node == null) { - // prtln("remove could not find node to delete (" + xpath + ")"); - return; - } - - Element parent = node.getParent(); - if (parent == null) { - // prtln("remove could not find parent of node to delete (" + xpath + ")"); - return; - } - if (!parent.remove(node)) { - prtlnErr("failed to remove node at " + xpath); - } - } - COM: <s> removes a node from the dom4j document </s> - diff --git a/funcom_test/22627540.txt b/funcom_test/22627540.txt deleted file mode 100644 index 5bb59bd1115a99a76801e91023eddff98b1933ac..0000000000000000000000000000000000000000 --- a/funcom_test/22627540.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String uriMapToString() { - String s = "\nUriMap"; - for (Iterator i = uriMap.entrySet().iterator(); i.hasNext(); ) { - Map.Entry entry = (Map.Entry) i.next(); - String uri = (String) entry.getKey(); - Namespace ns = (Namespace) entry.getValue(); - s += "\n\t" + uri + "(" + this.nsToString(ns) + ")"; - } - return s + "\n"; - } - COM: <s> debugging utility returns a printable representation of the uri map </s> - diff --git a/funcom_test/22627553.txt b/funcom_test/22627553.txt deleted file mode 100644 index e4b412419d6ef5eaad46c0a91026cf806e142560..0000000000000000000000000000000000000000 --- a/funcom_test/22627553.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String toString() { - String s = ""; - String nl = "\n\t"; - s += nl + "type: " + type; - s += nl + "location: " + getLocation(); - if (getNamespace() != null && getNamespace() != Namespace.NO_NAMESPACE) - s += nl + "namespace: " + getNamespace().getPrefix() + ": " + getNamespace().getURI(); - else - s += nl + "namespace: null"; - s += nl + this.getElementAsXml(); - return s; - } - COM: <s> return string representation </s> - diff --git a/funcom_test/22627578.txt b/funcom_test/22627578.txt deleted file mode 100644 index 04f07218f7f9280c62b91fd704a6b1881c239965..0000000000000000000000000000000000000000 --- a/funcom_test/22627578.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public QName getQName(String qualifiedName) throws Exception { - if (!isQualified(qualifiedName)) - throw new Exception("getQName expects a qualifiedName is input"); - String prefix = getNamespacePrefix(qualifiedName); - Namespace ns = this.getNSforPrefix(prefix); - if (ns == NO_NAMESPACE) - throw new Exception("Namespace not found for prefix: " + prefix); - String name = stripNamespacePrefix(qualifiedName); - return DocumentHelper.createQName(name, ns); - } - COM: <s> gets the q name attribute of the namespace registry object </s> - diff --git a/funcom_test/22627656.txt b/funcom_test/22627656.txt deleted file mode 100644 index 6b8f4fdcec1090caac2133b2e682c7e22ef65fe2..0000000000000000000000000000000000000000 --- a/funcom_test/22627656.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getSimpleContentType() { - if (!hasSimpleContent()) { - return null; - } - Element e = getElement(); - Node node = e.selectSingleNode(NamespaceRegistry.makeQualifiedName(xsdPrefix, "simpleContent") + "/" + - NamespaceRegistry.makeQualifiedName(xsdPrefix, "extension")); - if (node == null) { - prtln("extension node not found for " + getName()); - return null; - } - return ((Element) node).attributeValue("base"); - } - COM: <s> gets the base extension type of the simple content element of the </s> - diff --git a/funcom_test/22627662.txt b/funcom_test/22627662.txt deleted file mode 100644 index c71f9e23e4eca13a716ad82d23ec8c68ebb62abf..0000000000000000000000000000000000000000 --- a/funcom_test/22627662.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Element getExtensionElement() { - if (isDerivedContentModel()) - return (Element) getElement() - .selectSingleNode(NamespaceRegistry.makeQualifiedName(xsdPrefix, "complexContent") + "/" + - NamespaceRegistry.makeQualifiedName(xsdPrefix, "extension")); - if (isDerivedTextOnlyModel()) - return (Element) getElement() - .selectSingleNode(NamespaceRegistry.makeQualifiedName(xsdPrefix, "simpleContent") + "/" + - NamespaceRegistry.makeQualifiedName(xsdPrefix, "extension")); - return null; - } - COM: <s> gets the extension element complex type object </s> - diff --git a/funcom_test/22627664.txt b/funcom_test/22627664.txt deleted file mode 100644 index b9e953cac245ff322612fef85249f376cc1880b6..0000000000000000000000000000000000000000 --- a/funcom_test/22627664.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Element getRestrictionElement() { - if (isDerivedContentModel()) - return (Element) getElement() - .selectSingleNode(NamespaceRegistry.makeQualifiedName(xsdPrefix, "complexContent") + - "/" + NamespaceRegistry.makeQualifiedName(xsdPrefix, "restriction")); - if (isDerivedTextOnlyModel()) - return (Element) getElement() - .selectSingleNode(NamespaceRegistry.makeQualifiedName(xsdPrefix, "simpleContent") + - "/" + NamespaceRegistry.makeQualifiedName(xsdPrefix, "restriction")); - return null; - } - COM: <s> gets the restriction element complex type object </s> - diff --git a/funcom_test/22627716.txt b/funcom_test/22627716.txt deleted file mode 100644 index 313125c025b5da299e8206fc589d31a87ec2e98b..0000000000000000000000000000000000000000 --- a/funcom_test/22627716.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getInstanceDocNodes(String xpath) { - // xpath may be decoded, and it must be normalized before accessing instanceDoc! - String normalizedPath = XPathUtils.normalizeXPath(XPathUtils.decodeXPath(xpath)); - try { - return instanceDocument.selectNodes(normalizedPath); - } catch (org.dom4j.InvalidXPathException e) { - prtln("getInstanceDocNode error: " + e.getMessage()); - return null; - } - } - COM: <s> gets the instance doc nodes attribute of the schema helper object </s> - diff --git a/funcom_test/22627719.txt b/funcom_test/22627719.txt deleted file mode 100644 index 5ba1acdfba61d3565bd72e80c65417b0f1ce396a..0000000000000000000000000000000000000000 --- a/funcom_test/22627719.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected List getSubstitionGroupMembers(GlobalElement headElement) { - List members = new ArrayList(); - for (Iterator i = headElement.getSubstitutionGroup().iterator(); i.hasNext(); ) { - GlobalElement sgm = (GlobalElement) i.next(); - members.add(new CompositorMember(sgm)); - } - // unless the headElement is abstract, add its name - if (!headElement.isAbstract()) - members.add(new CompositorMember(headElement)); - return members; - } - COM: <s> return a list of composito members made from the substition group for the </s> - diff --git a/funcom_test/22627728.txt b/funcom_test/22627728.txt deleted file mode 100644 index 2907c8c40c42a5dfd3bf8ae8217c8de295e7cfb5..0000000000000000000000000000000000000000 --- a/funcom_test/22627728.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Namespace getCurrentNamespace() { - int size = nsStack.size(); - prtln("getCurrentNamespace (" + size + ")", 1); - if (size < 1) { - prtlnErr("WARNING: Namespace stack is empty!"); - return null; - } - else { - Namespace ns = nsStack.getNamespace(size - 1); - prtln(" ... current namespace: " + ns.getPrefix() + ": " + ns.getURI(), 1); - return ns; - } - } - COM: <s> gets the current namespace attribute of the structure walker object </s> - diff --git a/funcom_test/22627738.txt b/funcom_test/22627738.txt deleted file mode 100644 index 78e4383503bce8664adcefaf42d845401c024337..0000000000000000000000000000000000000000 --- a/funcom_test/22627738.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private Namespace popNS() { - Namespace ns = nsStack.pop(); - prtln(" ... stack (" + nsStack.size() + ") POPPED namespace: " + ns.getPrefix() + ": " + ns.getURI(), 1); - prtln(" ..... currentNS is now (" + getCurrentNamespace().getPrefix() + ": " + getCurrentNamespace().getURI(), 1); - return ns; - } - COM: <s> pop a namespace object from the namespace stack </s> - diff --git a/funcom_test/22627743.txt b/funcom_test/22627743.txt deleted file mode 100644 index 86bda8c89ad48c8f9bcb0163ad1cb5e435573340..0000000000000000000000000000000000000000 --- a/funcom_test/22627743.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int getMaxInstanceElements() { - if (maxInstanceElements == -1) { - int max = 0; - Iterator members = getMembers().iterator(); - while (members.hasNext()) { - CompositorMember cm = (CompositorMember) members.next(); - int cmMax = cm.getMaxInstanceElements(); - if (cmMax == Integer.MAX_VALUE) { - max = cmMax; - break; - } - else - max = max + cmMax; - } - maxInstanceElements = max; - } - return maxInstanceElements; - } - COM: <s> return the maximum leaf nodes this member could have </s> - diff --git a/funcom_test/22627777.txt b/funcom_test/22627777.txt deleted file mode 100644 index c696690352c0436f3a5a14d7c87c52719ed41beb..0000000000000000000000000000000000000000 --- a/funcom_test/22627777.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public List getAcceptableMembers (Element instanceElement) { - prtln ("\ngetAcceptableMembers with instanceElement:"); - prtln (instanceElement.asXML()); - ChoiceGuard guard; - try { - guard = new ChoiceGuard (this, instanceElement); - } catch (Exception e) { - prtln ("ChoiceGard init error: " + e.getMessage()); - return new ArrayList(); - } - prtln ("about to call ChoiceGuard getAcceptableMembers()"); - List members = guard.getAcceptableMembers(); - prtln ("acceptable members:"); - printMemberList (members); - return members; - } - COM: <s> returns the members that could be added to the specified instance element </s> - diff --git a/funcom_test/22627785.txt b/funcom_test/22627785.txt deleted file mode 100644 index 05426648b427338b12cd6a38c38252732b6a26da..0000000000000000000000000000000000000000 --- a/funcom_test/22627785.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private boolean isBuiltInType(Element e) { - String prefix = e.getNamespacePrefix(); - String type = e.attributeValue("type", null); - if (type == null) { - type = e.attributeValue("ref", null); - } - if (type == null) { - return false; - } - - String typePrefix = NamespaceRegistry.getNamespacePrefix(type); - if (prefix != null && (prefix.equals(typePrefix) || typePrefix.equals("xml"))) { - return true; - } - else { - return false; - } - } - COM: <s> test if the type or ref attribute of the given schema element </s> - diff --git a/funcom_test/22627798.txt b/funcom_test/22627798.txt deleted file mode 100644 index e4bcac071e576f24cbf996abfcc7a42f98b8d828..0000000000000000000000000000000000000000 --- a/funcom_test/22627798.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isRepeatingElement(String encodedXPath) { - String schemaPath = toSchemaPath(encodedXPath); - // prtln ("isRepeatingElement with schemaPath: " + schemaPath); - SchemaNode schemaNode = getSchemaNode(schemaPath); - if (schemaNode == null) { - prtln("isRepeatingElement() could not find a schemaNode for " + schemaPath); - return false; - } - return (isRepeatingElement(schemaNode)); - } - COM: <s> gets the repeating element attribute of the schema helper object </s> - diff --git a/funcom_test/22627830.txt b/funcom_test/22627830.txt deleted file mode 100644 index 7d514cb6e97e3536c309cd97c1773ba2c85858ca..0000000000000000000000000000000000000000 --- a/funcom_test/22627830.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public CompositorGuard getParentCompositorGuard() { - prtln("\n getParentCompositorGuard()"); - if (parentCompositorGuard == null) { - - /* - * prtln ("\t parentCompositorGuard not found"); - * prtln ("\t compositorGuard element: " + getElement().asXML()); - * / construct parentCompositorGuard - the compositorGuard in the - * / parentCompositor that manages the instanceList elements. - */ - } - return parentCompositorGuard; - } - COM: <s> gets the parent compositor guard attribute of the compositor member object </s> - diff --git a/funcom_test/22627850.txt b/funcom_test/22627850.txt deleted file mode 100644 index 940bbed5a1a51c64d6fa2163e7b5807f56d0bd91..0000000000000000000000000000000000000000 --- a/funcom_test/22627850.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean acceptsNewMember() { - prtln ("choiceGuard.acceptsNewMember()"); - prtln ("\t super.acceptsNewMember(): " + super.acceptsNewMember()); - prtln ("\t getAcceptableMembers().size(): " + getAcceptableMembers().size()); - return (super.acceptsNewMember() && getAcceptableMembers().size() > 0); - } - COM: <s> returns true if a new member may be added </s> - diff --git a/funcom_test/22627888.txt b/funcom_test/22627888.txt deleted file mode 100644 index 62b86a64f4d6969ad75b3166cfba2d7c6d4888eb..0000000000000000000000000000000000000000 --- a/funcom_test/22627888.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Map getUrisFromNR() { - Map uris = new HashMap(); - for (Iterator i = namespaces.getPrefixMap().keySet().iterator(); i.hasNext(); ) { - String prefix = (String) i.next(); - Namespace ns = namespaces.getNSforPrefix(prefix); - /* - * if (prefix.trim().length() > 0) - * uris.put(prefix, ns.getURI()); - */ - uris.put(prefix, ns.getURI()); - } - return uris; - } - COM: <s> gets the uris from nr attribute of the structure walker object </s> - diff --git a/funcom_test/22627892.txt b/funcom_test/22627892.txt deleted file mode 100644 index dd3bfe37727c44cc1a66e6515e7a44db6ccbe935..0000000000000000000000000000000000000000 --- a/funcom_test/22627892.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setHarvesterStatus(String value) { - if (value == null) - return; - try { - if (!adminData.oidExists(Keys.HARVESTER_STATUS)) { - adminData.put(Keys.HARVESTER_STATUS, value); - } - else { - adminData.update(Keys.HARVESTER_STATUS, value); - } - } catch (Exception e) { - prtlnErr("Error saving serialized HARVESTER_STATUS: " + e); - } - } - COM: <s> sets the harvester status attribute of the repository manager object </s> - diff --git a/funcom_test/22627972.txt b/funcom_test/22627972.txt deleted file mode 100644 index aaf9569ac4ca8a5d6af2d48441c24d6809638143..0000000000000000000000000000000000000000 --- a/funcom_test/22627972.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setRepositoryIdentifier(String value) { - if (value == null) - return; - try { - if (!adminData.oidExists(Keys.REPOSITORY_IDENTIFIER)) { - adminData.put(Keys.REPOSITORY_IDENTIFIER, value); - } - else { - adminData.update(Keys.REPOSITORY_IDENTIFIER, value); - } - } catch (Exception e) { - prtlnErr("Error saving serialized REPOSITORY_IDENTIFIER: " + e); - } - } - COM: <s> sets the oai identifier attribute of the repository manager object </s> - diff --git a/funcom_test/22628065.txt b/funcom_test/22628065.txt deleted file mode 100644 index 033997bda6d588147194d7d55e6a470b0b3d28b4..0000000000000000000000000000000000000000 --- a/funcom_test/22628065.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void setProtocolVersion(String value) { - if (value == null) - return; - try { - if (!adminData.oidExists(Keys.PROTOCOL_VERSION)) { - adminData.put(Keys.PROTOCOL_VERSION, value); - } - else { - adminData.update(Keys.PROTOCOL_VERSION, value); - } - } catch (Exception e) { - prtlnErr("Error saving serialized PROTOCOL_VERSION: " + e); - } - } - COM: <s> sets the protocol version attribute of the repository manager object </s> - diff --git a/funcom_test/22628091.txt b/funcom_test/22628091.txt deleted file mode 100644 index 038b12181feeee296fa3f36e5941cb91e6eb8f7e..0000000000000000000000000000000000000000 --- a/funcom_test/22628091.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int compare(Object o1, Object o2) { - Node node1; - Node node2; - - if (order == DESCENDING) { - node1 = (Node) o1; - node2 = (Node) o2; - } - else { - node1 = (Node) o2; - node2 = (Node) o1; - } - - Object oo1 = node1.valueOf(xPath); - Object oo2 = node2.valueOf(xPath); - - return oo1.toString().compareTo(oo2.toString()); - } - COM: <s> compares two dom4j nodes for sorting by an x path </s> - diff --git a/funcom_test/22628119.txt b/funcom_test/22628119.txt deleted file mode 100644 index 64322cbbf31a115cfcafb1aca995481828fbd443..0000000000000000000000000000000000000000 --- a/funcom_test/22628119.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected int findPlace(XMLNode node) { - int count = 0; - int place = children.size(); - for (int i=0; i<children.size(); i++) { - String name = ((XMLNode)children.get(i)).getName(); - if (name.equals(node.getName())) { - count++; - place = i+1; - } - } - node.occurs = count; - return place; - } - COM: <s> finds the place where a new node should be inserted </s> - diff --git a/funcom_test/22628130.txt b/funcom_test/22628130.txt deleted file mode 100644 index 9a22504fe488c60dea1e716987e43505724791b2..0000000000000000000000000000000000000000 --- a/funcom_test/22628130.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean removeComment(String identifier) { - ArrayList result = new ArrayList(); - //List list = element.getMixedContent(); - List list = element.getContent(); - for (int i=(list.size()-1); i>=0; i--) { - Object obj = list.get(i); - if (obj instanceof Comment) { - String str = ((Comment)obj).getText(); - if (str.indexOf(identifier) >= 0) { - list.remove(i); - return true; - } - } - } - return false; - } - COM: <s> removes the first identified comment from the element of this node </s> - diff --git a/funcom_test/22628132.txt b/funcom_test/22628132.txt deleted file mode 100644 index 828c97aa8c2a74c528e81336b153fbd2f39ea511..0000000000000000000000000000000000000000 --- a/funcom_test/22628132.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setRepositoryName(String value) { - if (value == null) - return; - try { - if (!adminData.oidExists(Keys.REPOSITORY_NAME)) { - adminData.put(Keys.REPOSITORY_NAME, value); - } - else { - adminData.update(Keys.REPOSITORY_NAME, value); - } - } catch (Exception e) { - prtlnErr("Error saving serialized REPOSITORY_NAME: " + e); - } - } - COM: <s> sets the repository name attribute of the repository manager object </s> - diff --git a/funcom_test/22628158.txt b/funcom_test/22628158.txt deleted file mode 100644 index 70fbd038e0136189ea79c1c51f5f146d141f2157..0000000000000000000000000000000000000000 --- a/funcom_test/22628158.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getAttribute(String attName) { - try { - //Namespace namespace = element.getNamespace(); - // if this doesn't work, we may have to use the namespace argument - Attribute attribute = element.getAttribute(attName); - if (attribute != null) { - return attribute.getValue(); - } - else { - //System.out.println("attribute = null"); - } - } catch (Exception e) { - //System.err.println("Error: retrieving " + attName + " info for " + element.getName()); - } - return null; - } - COM: <s> retrieves a named attribute from the element of this node if the </s> - diff --git a/funcom_test/22628176.txt b/funcom_test/22628176.txt deleted file mode 100644 index 6f0781b04e8b5bcacc685d26a320055531eff8d8..0000000000000000000000000000000000000000 --- a/funcom_test/22628176.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String convertXML(String xml, ServletContext context) { - //return Dom4jUtils.localizeXml(xml.replaceFirst("<\\?xml.+version=.+encoding=.+\\?>", ""), "itemRecord"); - // return Dom4jUtils.localizeXml(xml, "annotationRecord"); - return Dom4jUtils.localizeXml(xml); - } - COM: <s> performs xml conversion from dlese anno to dlese anno localized </s> - diff --git a/funcom_test/22628188.txt b/funcom_test/22628188.txt deleted file mode 100644 index ac75f8ea5417511189c6a87ffb48fb3700ee3d93..0000000000000000000000000000000000000000 --- a/funcom_test/22628188.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean canConvert(String fromFormat, String toFormat) { - //prtln("canConvert(): fromFormat '" + fromFormat + "' toFormat '" + toFormat + "'"); - if (fromFormat.equals(toFormat)) - return true; - Hashtable formatConverters = (Hashtable) converters.get(fromFormat); - if (formatConverters == null) - return false; - return (formatConverters.containsKey(toFormat)); - } - COM: <s> determines whether this xmlconversion service can perform the given converstion </s> - diff --git a/funcom_test/22628192.txt b/funcom_test/22628192.txt deleted file mode 100644 index ad220940fda71450900303d33d0ab7d4c3066d58..0000000000000000000000000000000000000000 --- a/funcom_test/22628192.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public GlobalDef getGlobalDefFromXPath(String xpath) { - // use a (normalized) xpath to obtain a typeName - // prtln ("getGlobalDefFromXPath()"); - String normalizedXPath = XPathUtils.normalizeXPath(xpath); - SchemaNode schemaNode = (SchemaNode) schemaNodeMap.getValue(normalizedXPath); - if (schemaNode == null) { - prtln("getGlobalDefFromXPath no schemaNode found for " + normalizedXPath); - return null; - } - return schemaNode.getTypeDef(); - } - COM: <s> finds a global def object for a given xpath </s> - diff --git a/funcom_test/22628197.txt b/funcom_test/22628197.txt deleted file mode 100644 index b25431273cf1c20a966d60632ec8143645d85c46..0000000000000000000000000000000000000000 --- a/funcom_test/22628197.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void setEarliestDatestamp(String value) { - if (value == null) - return; - try { - if (!adminData.oidExists(Keys.EARLIEST_DATESTAMP)) { - adminData.put(Keys.EARLIEST_DATESTAMP, value); - } - else { - adminData.update(Keys.EARLIEST_DATESTAMP, value); - } - } catch (Exception e) { - prtlnErr("Error saving serialized EARLIEST_DATESTAMP: " + e); - } - } - COM: <s> sets the earliest datestamp attribute of the repository manager object </s> - diff --git a/funcom_test/22628199.txt b/funcom_test/22628199.txt deleted file mode 100644 index 2da6925924ede219d08d733699f5179eeb23c091..0000000000000000000000000000000000000000 --- a/funcom_test/22628199.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getAssetNodes() { - List primaryAssetNodes = this.selectNodes("/record/resources/primaryAsset"); - prtln(primaryAssetNodes.size() + " primaryAssetNodes found"); - List otherAssetNodes = this.selectNodes("/record/resources/otherAsset"); - prtln(otherAssetNodes.size() + " otherAssetNodes found"); - - List assetNodes = new ArrayList(); - assetNodes.addAll(primaryAssetNodes); - assetNodes.addAll(otherAssetNodes); - return assetNodes; - } - COM: <s> gets the primary and other asset nodes in the document </s> - diff --git a/funcom_test/22628200.txt b/funcom_test/22628200.txt deleted file mode 100644 index 645cd9b0154b3f77b57648264b708573d46ead0c..0000000000000000000000000000000000000000 --- a/funcom_test/22628200.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addXslStylesheet(String fromFormat, String toFormat, String xslFilePath) { - //fromFormat = fromFormat; - //toFormat = toFormat; - - Hashtable formatConverters = (Hashtable) converters.get(fromFormat); - if (formatConverters == null) - formatConverters = new Hashtable(); - formatConverters.put(toFormat, new XslConverter(fromFormat, toFormat, xslFilePath)); - converters.put(fromFormat, formatConverters); - } - COM: <s> adds a xsl stylesheet that can convert from one xml format to another </s> - diff --git a/funcom_test/22628206.txt b/funcom_test/22628206.txt deleted file mode 100644 index 2ea420071f56188cf6a07719562d0db6870d7ede..0000000000000000000000000000000000000000 --- a/funcom_test/22628206.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setUrl(String newValue) { - Element general = (Element) selectSingleNode("/record/general"); - if (general.element("urlOfRecord") == null) { - QName qname = DocumentHelper.createQName("urlOfRecord", general.getNamespace()); - general.elements().add(2, DocumentHelper.createElement(qname)); - } - this.setTextAtPath(url_path, newValue); - } - COM: <s> sets the url of record a citable url for this record </s> - diff --git a/funcom_test/22628221.txt b/funcom_test/22628221.txt deleted file mode 100644 index f2cee2f6e5ed1b8947b3a9bef0a55225d3450d9d..0000000000000000000000000000000000000000 --- a/funcom_test/22628221.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void process(XMLNode parentNode) { - map.put(parentNode.path, parentNode); - - Element parentElement = parentNode.getElement(); - List children = parentElement.getChildren(); - int size = children.size(); - for (int i=0; i<size; i++) { - Element childElement = (Element)children.get(i); - XMLNode childNode = new XMLNode(childElement, true); - parentNode.addChild(childNode); - //System.err.println("map path = " + childNode.path); - process(childNode); - } - } - COM: <s> recursively iterates through the children xml elements wrapping each </s> - diff --git a/funcom_test/22628242.txt b/funcom_test/22628242.txt deleted file mode 100644 index 28e91dfd87ec19924338087cb571e35f239d5ea3..0000000000000000000000000000000000000000 --- a/funcom_test/22628242.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String encodeAnyTypeXpath (String xpath) { - String leaf = XPathUtils.getLeaf (xpath); - String anyType = NamespaceRegistry - .makeQualifiedName(this.getSchemaNamespace().getPrefix(), "any"); - if (leaf.startsWith(anyType)) - return XPathUtils.getParentXPath(xpath) + "/*" + leaf.substring(anyType.length()); - return xpath; - } - COM: <s> replaces xpath having node name of any with a wild card version that </s> - diff --git a/funcom_test/22628251.txt b/funcom_test/22628251.txt deleted file mode 100644 index 226210f3db89c6fed9867896a5acc9c5361b4aa3..0000000000000000000000000000000000000000 --- a/funcom_test/22628251.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String convertXML(String xml, ServletContext context) { - //return Dom4jUtils.localizeXml(xml.replaceFirst("<\\?xml.+version=.+encoding=.+\\?>", ""), "itemRecord"); - // return Dom4jUtils.localizeXml(xml, "collectionRecord"); - return Dom4jUtils.localizeXml(xml); - } - COM: <s> performs xml conversion from dlese collect to dlese collect localized </s> - diff --git a/funcom_test/22628283.txt b/funcom_test/22628283.txt deleted file mode 100644 index f6b8c747fae909f6b7caaef599dfb00483206b26..0000000000000000000000000000000000000000 --- a/funcom_test/22628283.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean init() { - initErrorMsg = ""; - isValid = true; - try { - xmlRecord = new XMLRecord(xmlFile); - map = new HashMap(); - } catch (Throwable t) { - //System.err.println( this.getClass() + " threw exception with message: " + t.getMessage() ); - //t.printStackTrace(); - initErrorMsg = "Error initializing DleseXMLReader. " + t.toString(); - isValid = false; - } - return isValid; - - } - COM: <s> creates tt xmlrecord tt and intializes local map </s> - diff --git a/funcom_test/22628384.txt b/funcom_test/22628384.txt deleted file mode 100644 index fe8fa0ee8467a125e663d8e35622ace6d6880a78..0000000000000000000000000000000000000000 --- a/funcom_test/22628384.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected List getSubjects() { - ArrayList result = new ArrayList(); - XMLNode parent = xmlRecord.getNode("record:0.general:0.extension:0"); - int num = parent.likeChildren("topic"); - if (num > 0) { - StringBuffer key = new StringBuffer(); - for (int i = 0; i < num; i++) { - key.delete(0, key.length()); - key.append("record:0.general:0.extension:0.topic:") - .append(Integer.toString(i)) - .append(".langstring:0"); - String value = getStringValue(key.toString()); - if (value != null) { - insertToList(result, value); - } - } - } - return result; - } - COM: <s> retrieves the list of subjects specified for a resource from the current </s> - diff --git a/funcom_test/22628424.txt b/funcom_test/22628424.txt deleted file mode 100644 index c4f8fdf887a5444496c73f1d6037bde17b43d6ea..0000000000000000000000000000000000000000 --- a/funcom_test/22628424.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: protected List getKeywords() { - ArrayList result = new ArrayList(); - XMLNode parent = xmlRecord.getNode("record:0.general:0"); - int num = parent.likeChildren("keywords"); - if (num > 0) { - StringBuffer key = new StringBuffer(); - for (int i = 0; i < num; i++) { - key.delete(0, key.length()); - key.append("record:0.general:0.keywords:") - .append(Integer.toString(i)) - .append(".langstring:0"); - String value = getStringValue(key.toString()); - if (value != null) { - //CatalogTools.insertToList(result, value); - result.add(value); - } - } - } - return result; - } - COM: <s> gets the keywords attribute of the dlese xmlreader object </s> - diff --git a/funcom_test/22628442.txt b/funcom_test/22628442.txt deleted file mode 100644 index 2d4a94f00471a6315a57d21e891377f515c5287c..0000000000000000000000000000000000000000 --- a/funcom_test/22628442.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void insertToList(List list, String s) { - if ((list != null) && (s != null)) { - for (int i = 0; i < list.size(); i++) { - if (s.compareToIgnoreCase((String) list.get(i)) <= 0) { - list.add(i, s); - return; - } - } - list.add(s); - } - } - COM: <s> simple insertion sort for building a sorted list of strings </s> - diff --git a/funcom_test/22628446.txt b/funcom_test/22628446.txt deleted file mode 100644 index 732d75677ffdc25cc5a6c89dd8e41755ab8fa01c..0000000000000000000000000000000000000000 --- a/funcom_test/22628446.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void insertToList(List list, Object o) { - if ((list != null) && (o != null)) { - String s = o.toString(); - for (int i = 0; i < list.size(); i++) { - String c = (list.get(i)).toString(); - if (s.compareToIgnoreCase(c) <= 0) { - list.add(i, o); - return; - } - } - list.add(o); - } - } - COM: <s> simple insertion routine for constructing an ordered list of objects </s> - diff --git a/funcom_test/22628472.txt b/funcom_test/22628472.txt deleted file mode 100644 index db06d46f387e2d743828123fdf7319d8fcd07b1b..0000000000000000000000000000000000000000 --- a/funcom_test/22628472.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setValueAt( Object aValue, int row, int column ) { - aValue = ( (String) aValue ).trim(); - if ( column == 0 ) { - names.remove( row ); - names.add( row, aValue ); - } - else { - values.remove( row ); - values.add( row, aValue ); - } - if ( row == names.size() - 1 ) { - if ( !hasEmptyRow() ) { - addRow( true ); - } - } - fireTableCellUpdated( row, column ); - } - COM: <s> sets the value at attribute of the attributes table model object </s> - diff --git a/funcom_test/22628494.txt b/funcom_test/22628494.txt deleted file mode 100644 index 3b9e3bdfa83095495a240566929d3528edd25573..0000000000000000000000000000000000000000 --- a/funcom_test/22628494.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private Component getValueEditor( String name, String value ) { - JTextField text = new JTextField(); - int fontSize = JDataEditor.swingTextSizeOf( - (String) UserStateDirectoryBase.getUserSerializedObject( "state/textSize.dat" ) ); - text.setFont( new Font( "Arial", Font.PLAIN, fontSize ) ); - return text; - } - COM: <s> gets the value editor attribute of the selection listener object </s> - diff --git a/funcom_test/22628590.txt b/funcom_test/22628590.txt deleted file mode 100644 index e8ac65edd27f6f3b7b273991d85c48e1cf927e07..0000000000000000000000000000000000000000 --- a/funcom_test/22628590.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Query getDisabledSetsQuery() { - ArrayList setList = getDisabledSets(); - if (setList == null || setList.size() == 0) - return null; - - BooleanQuery bq = new BooleanQuery(); - for (int i = 0; i < setList.size(); i++) { - bq.add(new TermQuery(new Term("collection", "0" + setList.get(i))), BooleanClause.Occur.MUST); - } - return bq; - } - COM: <s> gets a lucene query for all disabled sets or null if none </s> - diff --git a/funcom_test/22628624.txt b/funcom_test/22628624.txt deleted file mode 100644 index d9e935b5200374f0e19172ad387da3c961fc1234..0000000000000000000000000000000000000000 --- a/funcom_test/22628624.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public JLabel getLabel( String label, String tooltipText, boolean enabled ) { - JLabel ret = new JLabelAntiAliased( label ); - ret.setFont( LABEL_FONT ); - if ( tooltipText != null ) { - ret.setToolTipText( Styles.markup( tooltipText ) ); - } - ret.setForeground( LABEL_COLOR ); - ret.setEnabled( enabled ); - return ret; - } - COM: <s> gets the label attribute of the data editor object </s> - diff --git a/funcom_test/22628732.txt b/funcom_test/22628732.txt deleted file mode 100644 index 7b3bfbb6c016b109e9bee28427fb52fc212da59d..0000000000000000000000000000000000000000 --- a/funcom_test/22628732.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public ArrayList getFormatsThatCanBeConvertedToFormats(String[] formats) { - ArrayList fmts = new ArrayList(); - if (formats == null) - return fmts; - List tmp; - String fmt; - for (int i = 0; i < formats.length; i++) { - tmp = getFormatsThatCanBeConvertedToFormat(formats[i]); - for (int j = 0; j < tmp.size(); j++) { - fmt = (String) tmp.get(j); - if (!fmts.contains(fmt)) - fmts.add(fmt); - } - } - return fmts; - } - COM: <s> gets all formats that can be converted to the given formats </s> - diff --git a/funcom_test/22628733.txt b/funcom_test/22628733.txt deleted file mode 100644 index f6116a497e9db2c5db13f3c2c0341a93062e715c..0000000000000000000000000000000000000000 --- a/funcom_test/22628733.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addNewNodes( DefaultMutableTreeNode node, DefaultMutableTreeNode newNodes ) { - for ( int i = 0; i < node.getChildCount(); i++ ) { - DefaultMutableTreeNode snode = (DefaultMutableTreeNode) node.getChildAt( i ); - newNodes.add( snode ); - if ( snode.getChildCount() > 0 ) { - addNewNodes( snode, (DefaultMutableTreeNode) newNodes.getChildAt( i ) ); - } - } - } - COM: <s> adds a feature to the new nodes attribute of the mutable tree object </s> - diff --git a/funcom_test/22628734.txt b/funcom_test/22628734.txt deleted file mode 100644 index 829dedaa7747b8cb7b42f63423d79a30348ed82e..0000000000000000000000000000000000000000 --- a/funcom_test/22628734.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void setTopAttributes( Attributes from ) { - for ( int i = 0; i < from.getLength(); i++ ) { - topMenu.setAttribute( from.getLocalName( i ), from.getValue( i ) ); - topMenu.setAttribute( from.getQName( i ), from.getValue( i ) ); - } - } - COM: <s> populate top level attributes with opml type specific data attributes from </s> - diff --git a/funcom_test/22628739.txt b/funcom_test/22628739.txt deleted file mode 100644 index cc80d99ba8705946e8198c60fcd5448bd30c1f24..0000000000000000000000000000000000000000 --- a/funcom_test/22628739.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getOpmlFromNode( DefaultMutableTreeNode selection ) { - StringBuffer ret = new StringBuffer(); - if ( selection.getUserObject() instanceof OTag ) { - OTag tag = (OTag) selection.getUserObject(); - String title = tag.getAttribute( "text" ); - ret.append( getOpmlDeclaration( title, "" ) ); - ret.append( writeTraverse( selection ) ); - ret.append( "\t</body>\n</opml>" ); - } - return ret.toString(); - } - COM: <s> traverse the given node and return its contents as opml </s> - diff --git a/funcom_test/22628747.txt b/funcom_test/22628747.txt deleted file mode 100644 index 622a8e5ecbc574caee945d98616becdc8266ef4c..0000000000000000000000000000000000000000 --- a/funcom_test/22628747.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public ArrayList getIndexedSets() { - if (primaryIndex.getLastModifiedCount() > indexedSetsUpdateCount) { - indexedSetsUpdateCount = primaryIndex.getLastModifiedCount(); - - List cols = primaryIndex.getTerms("collection"); - indexedSets.clear(); - if (cols != null) { - String col; - for (int i = 0; i < cols.size(); i++) { - col = (String) cols.get(i); - // remove leading '0' - indexedSets.add(col.substring(1, col.length())); - } - } - } - return indexedSets; - } - COM: <s> gets the sets that are in the index </s> - diff --git a/funcom_test/22628937.txt b/funcom_test/22628937.txt deleted file mode 100644 index 18ffcd82a7ed3cc8820a5153b4e0aa1693ec4f4d..0000000000000000000000000000000000000000 --- a/funcom_test/22628937.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private boolean wouldMakeEmptyTree() { - TreePath path = getSelectionPath(); - if ( path != null ) { - DefaultMutableTreeNode selection = (DefaultMutableTreeNode) - path.getLastPathComponent(); - DefaultMutableTreeNode pNode = (DefaultMutableTreeNode) selection.getParent(); - if ( pNode.isRoot() && ( pNode.getChildCount() == 1 ) ) { - return true; - } - } - return false; - } - COM: <s> would the selected node make an empty tree if it were deleted </s> - diff --git a/funcom_test/22629019.txt b/funcom_test/22629019.txt deleted file mode 100644 index 1b5a83f8d8b35b833ac82668594789f73867e046..0000000000000000000000000000000000000000 --- a/funcom_test/22629019.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getFromCache( String url ) { - HashMap retTypes = (HashMap) - UserStateDirectoryBase.getUserSerializedObject( "state/urlTypes.dat" ); - if ( ( retTypes == null ) || ( retTypes.get( url ) == null ) ) { - return RequestFriendly.URL_TYPE_UNKNOWN; - } - else { - return Integer.parseInt( (String) retTypes.get( url ) ); - } - } - COM: <s> gets the from cache attribute of the request friendly object </s> - diff --git a/funcom_test/22629383.txt b/funcom_test/22629383.txt deleted file mode 100644 index 3c72aa32af37d72bc76cfc7f8a6de0919575e16b..0000000000000000000000000000000000000000 --- a/funcom_test/22629383.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public HashMap getEnabledSetsHashMap() { - if (enabledSetsHashMap == null) { - synchronized (setInfosLock) { - enabledSetsHashMap = new HashMap(); - ArrayList es = getEnabledSets(); - if (es != null) - for (int i = 0; i < es.size(); i++) - enabledSetsHashMap.put(es.get(i), es.get(i)); - } - } - return (HashMap) enabledSetsHashMap.clone(); - } - COM: <s> gets the configured sets that are currently enabled in this repository </s> - diff --git a/funcom_test/22629431.txt b/funcom_test/22629431.txt deleted file mode 100644 index cd7c2747e3b6b877d8daf634278a5c1edf7dbdf1..0000000000000000000000000000000000000000 --- a/funcom_test/22629431.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public HashMap getDisabledSetsHashMap() { - if (disabledSetsHashMap == null) { - synchronized (setInfosLock) { - disabledSetsHashMap = new HashMap(); - ArrayList es = getDisabledSets(); - if (es != null) - for (int i = 0; i < es.size(); i++) - disabledSetsHashMap.put(es.get(i), es.get(i)); - } - } - return (HashMap) disabledSetsHashMap.clone(); - } - COM: <s> gets the configured sets that are currently disabled in this repository </s> - diff --git a/funcom_test/22629922.txt b/funcom_test/22629922.txt deleted file mode 100644 index 4a22c6b6ee27036c45c95a2b52b513b545176c94..0000000000000000000000000000000000000000 --- a/funcom_test/22629922.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setStemmingEnabled(boolean stemmingEnabled) { - try { - if (!adminData.oidExists(Keys.STEMMING_ENABLED)) { - adminData.put(Keys.STEMMING_ENABLED, new Boolean(stemmingEnabled)); - } - else { - adminData.update(Keys.STEMMING_ENABLED, new Boolean(stemmingEnabled)); - } - } catch (Exception e) { - prtlnErr("Error saving serialized STEMMING_ENABLED: " + e); - } - } - COM: <s> sets whether stemming is enabled </s> - diff --git a/funcom_test/22630141.txt b/funcom_test/22630141.txt deleted file mode 100644 index 1f29e2e3a1552755d44f35caf028ac6be10956b6..0000000000000000000000000000000000000000 --- a/funcom_test/22630141.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public ArrayList getDisabledSets() { - if (disabledSets == null) { - synchronized (setInfosLock) { - disabledSets = new ArrayList(); - ArrayList setInfos = getSetInfos(); - if (setInfos != null) { - SetInfo set; - for (int i = 0; i < setInfos.size(); i++) { - set = (SetInfo) setInfos.get(i); - if (!set.isEnabled()) - disabledSets.add(set.getSetSpec()); - } - } - } - } - return (ArrayList) disabledSets.clone(); - } - COM: <s> gets the configured file sets that are currently disabled in this repository </s> - diff --git a/funcom_test/22630329.txt b/funcom_test/22630329.txt deleted file mode 100644 index 33aee144c44ec6ff6da372de7f6e2a33a3d0e846..0000000000000000000000000000000000000000 --- a/funcom_test/22630329.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void enableSet(String setUid) { - try { - ArrayList setInfos = this.getSetInfos(); - int index = getIndexOfSetInfo(setUid, setInfos); - //prtln("enabling set: " + index); - ((SetInfo) setInfos.get(index)).setEnabled("true"); - - synchronized (setInfosLock) { - adminData.update(Keys.SET_INFOS, setInfos); - resetSetsData(); - } - - } catch (Throwable e) { - return; - } - } - COM: <s> enables the given set of files for discovery </s> - diff --git a/funcom_test/22630354.txt b/funcom_test/22630354.txt deleted file mode 100644 index 8a44225b4095666ec37f98aa7da29116d219550d..0000000000000000000000000000000000000000 --- a/funcom_test/22630354.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void disableSet(String setUid) { - - try { - ArrayList setInfos = getSetInfos(); - int index = getIndexOfSetInfo(setUid, setInfos); - //prtln("disabling set: " + index); - ((SetInfo) setInfos.get(index)).setEnabled("false"); - - synchronized (setInfosLock) { - adminData.update(Keys.SET_INFOS, setInfos); - resetSetsData(); - } - - } catch (Throwable e) { - return; - } - } - COM: <s> disabled the given set of files from discovery </s> - diff --git a/funcom_test/22630538.txt b/funcom_test/22630538.txt deleted file mode 100644 index 3d6d4e79c9c032d51f9a79c4cfa12c69c9cb127e..0000000000000000000000000000000000000000 --- a/funcom_test/22630538.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void removeSetInfo(int i) { - synchronized (setInfosLock) { - //prtln("removeSetInfo(): index " + i); - - // Get the item from disc to be sure we've got the right one. - removeSetFromIndex((SetInfo) arrayListGetItem(i, Keys.SET_INFOS, true)); - arrayListRemoveItem(i, Keys.SET_INFOS); - - // Reset so that these will get re-generated - resetSetsData(); - } - } - COM: <s> removes the given set of files form the repository </s> - diff --git a/funcom_test/22630721.txt b/funcom_test/22630721.txt deleted file mode 100644 index 60b84e3f5d6e52a72d13fb48c64f3cc688101f39..0000000000000000000000000000000000000000 --- a/funcom_test/22630721.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void removeSetFromIndex(SetInfo set) { - //String setSpec = set.getSetSpec(); - ArrayList dirInfos = set.getDirInfos(); - DirInfo dirInfo; - for (int j = 0; j < dirInfos.size(); j++) { - dirInfo = (DirInfo) dirInfos.get(j); - fileIndexingService.deleteDirectory(dirInfo.getDirectory()); - } - } - COM: <s> remove the set of files from the index </s> - diff --git a/funcom_test/22631400.txt b/funcom_test/22631400.txt deleted file mode 100644 index 3682a8a9e9076a05d0f2864daca1fc1e2b9662dd..0000000000000000000000000000000000000000 --- a/funcom_test/22631400.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void putSetInIndex(SetInfo set) { - String setSpec = set.getSetSpec(); - ArrayList dirInfos = set.getDirInfos(); - DirInfo dirInfo; - for (int j = 0; j < dirInfos.size(); j++) { - //prtln("putSetInIndex(): " + (DirInfo) dirInfos.get(j)); - putDirInIndex((DirInfo) dirInfos.get(j), setSpec); - } - } - COM: <s> puts the set info into the index and repsository </s> - diff --git a/funcom_test/22633708.txt b/funcom_test/22633708.txt deleted file mode 100644 index c43438b464d09ad5f7c5e3cd43fd62e5c4e32051..0000000000000000000000000000000000000000 --- a/funcom_test/22633708.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void defineOaiSetsForCollections(boolean runInBackground) throws Exception { - // Run in background (synchronization is handled in dependent methods): - if (runInBackground) { - new Thread( - new Runnable() { - public void run() { - try { - prtln("Creating OAI sets for each collection in the background..."); - doDefineOaiSetsForCollections(); - prtln("Finished creating OAI sets for each collection"); - } catch (Exception e) { - prtlnErr("Error creating OAI sets: " + e); - } - } - }).start(); - } - // Run in sequence: - else { - doDefineOaiSetsForCollections(); - } - } - COM: <s> define oai sets for each collection in the repository </s> - diff --git a/funcom_test/22671223.txt b/funcom_test/22671223.txt deleted file mode 100644 index a58628724601c9bfa0b90112c0f7b749ab10fd74..0000000000000000000000000000000000000000 --- a/funcom_test/22671223.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ColumnCell getColumn(String columnName, Class<?> columnType) { - for (int index = 0; index < columns.size(); index++) { - if (columnName.equals(columns.get(index).getHeader().getName())) { - return getColumn(index, columnType); - } - } - return null; - } - COM: <s> get the column from the column name and type </s> - diff --git a/funcom_test/22671428.txt b/funcom_test/22671428.txt deleted file mode 100644 index 048a469209d9946d2c709469624c389b90295179..0000000000000000000000000000000000000000 --- a/funcom_test/22671428.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void applyToStatusLine(IStatus status, DialogPage page) { - String message= status.getMessage(); - if (message.length() == 0) message= null; - switch (status.getSeverity()) { - case IStatus.OK: - page.setErrorMessage(null); - page.setMessage(message); - break; - case IStatus.WARNING: - page.setErrorMessage(null); - page.setMessage(message, WizardPage.WARNING); - break; - case IStatus.INFO: - page.setErrorMessage(null); - page.setMessage(message, WizardPage.INFORMATION); - break; - default: - page.setErrorMessage(message); - page.setMessage(null); - break; - } - } - COM: <s> applies the status to the status line of a dialog page </s> - diff --git a/funcom_test/22671744.txt b/funcom_test/22671744.txt deleted file mode 100644 index 10f4738cd717ab608407c2e0b9d52e2d90dfe4a2..0000000000000000000000000000000000000000 --- a/funcom_test/22671744.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addChildAccount(Account account) { - if (account == null) { - throw new IllegalArgumentException("Child account may not be null"); - } - if (account == this) { - throw new IllegalArgumentException("Cannot add account as a child account of itself"); - } - if (account.getParent() != null) { - account.getParent().removeChildAccount(account); - } - account.setParent(this); - this.accounts.add(account); - } - COM: <s> add a child account </s> - diff --git a/funcom_test/22671888.txt b/funcom_test/22671888.txt deleted file mode 100644 index 77e1e320d2edc381a488c9564eb9a910d6b4396b..0000000000000000000000000000000000000000 --- a/funcom_test/22671888.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void doModelLoadedEvent(final IAdaptable model) { - Display display = this.getViewSite().getShell().getDisplay(); - if (display.getThread() != Thread.currentThread()) { - display.asyncExec( - new Runnable() { - public void run() { - doModelLoadedEvent(model); - } - } - ); - } else { - logger.debug("Account model loaded"); - this.viewer.setInput(model); - this.viewer.getTree().setEnabled(true); - this.modelLoaded = true; - } - } - COM: <s> this is the callback when the model is loaded </s> - diff --git a/funcom_test/22671982.txt b/funcom_test/22671982.txt deleted file mode 100644 index be883e1337d3364dd512d6055ef5ed2d767240d7..0000000000000000000000000000000000000000 --- a/funcom_test/22671982.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Table createTable(Composite parent) { - int style = SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | - SWT.FULL_SELECTION | SWT.HIDE_SELECTION; - - Table table = new Table(parent, style); - - GridData gridData = new GridData(GridData.FILL_BOTH); - gridData.grabExcessVerticalSpace = true; - gridData.horizontalSpan = 1; - table.setLayoutData(gridData); - - table.setLinesVisible(true); - table.setHeaderVisible(true); - - return table; - } - COM: <s> creates and returns a simple table </s> - diff --git a/funcom_test/22671986.txt b/funcom_test/22671986.txt deleted file mode 100644 index 66afda4bb470e0a86fad8e9278ea9c818f140a38..0000000000000000000000000000000000000000 --- a/funcom_test/22671986.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void doModelLoadedEvent(final IAdaptable model) { - if (model == this.model && !viewer.getControl().isDisposed()) { - Display display = this.getViewSite().getShell().getDisplay(); - if (display.getThread() != Thread.currentThread()) { - display.asyncExec( - new Runnable() { - public void run() { - doModelLoadedEvent(model); - } - } - ); - } else { - this.controller.setInput(model); - this.progressMonitor.done(); - this.modelLoaded = true; - } - } - } - COM: <s> callback called when the model has been completely loaded </s> - diff --git a/funcom_test/22672154.txt b/funcom_test/22672154.txt deleted file mode 100644 index 7e58a5c6d4664e83e3f6afdd3d4f93814eb19082..0000000000000000000000000000000000000000 --- a/funcom_test/22672154.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: private void refreshCombo() { - try { - accounts = DAOFactory.getCurrentFactory().getAccountDAO().findAll(); - - if (allowNull) { - accounts.add(0, null); - } - - accountCombo.removeAll(); - for (Account account : accounts) { - if (account == null) { - accountCombo.add("*** EMPTY ***"); - } else { - accountCombo.add( - MessageFormat.format( - "{0}", - account.toString() - ) - ); - } - } - } catch (DAOException e) { - accounts = null; - accountCombo.setEnabled(false); - logger.error("Could not populate account combo", e); - } - } - COM: <s> refreshes the combo from the data model </s> - diff --git a/funcom_test/22672157.txt b/funcom_test/22672157.txt deleted file mode 100644 index 44e19a3edcb6fa4caa454d5b40f40d2d7d8b73e6..0000000000000000000000000000000000000000 --- a/funcom_test/22672157.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setSelectedAccount(Account selectedAccount) { - if (accounts != null) { - for (int i = 0; i < accounts.size(); i++) { - if (accounts.get(i) == null && selectedAccount == null) { - accountCombo.select(i); - } else if ( - accounts.get(i) != null && accounts.get(i).equals(selectedAccount) - ) { - accountCombo.select(i); - } - } - } - } - COM: <s> set the currently selected account </s> - diff --git a/funcom_test/22672162.txt b/funcom_test/22672162.txt deleted file mode 100644 index 3d1fb00035ee6d78d0edb9703e52a0c393e0c5ac..0000000000000000000000000000000000000000 --- a/funcom_test/22672162.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setSelectedCurrency(Currency selectedCurrency) { - if (selectedCurrency == null) { - currencyCombo.select(0); - } else if (currencies != null) { - for (int i = 0; i < currencies.size(); i++) { - if ((currencies.get(i) == null && selectedCurrency == null) - || currencies.get(i).equals(selectedCurrency)) { - currencyCombo.select(i); - return; - } - } - } - } - COM: <s> set the currently selected currency </s> - diff --git a/funcom_test/22672184.txt b/funcom_test/22672184.txt deleted file mode 100644 index eb842021d70e577ee0c8309b77fb60e1838e1440..0000000000000000000000000000000000000000 --- a/funcom_test/22672184.txt +++ /dev/null @@ -1,44 +0,0 @@ -TDAT: private String getColumnText(Payment payment, int columnIndex) { - String value = null; - try { - switch (columnIndex) { - case 1: - value = MessageFormat.format( - "{0}", - payment.getCreated() - ); - break; - case 2: - value = MessageFormat.format( - "{0}", - payment.getAccount() - ); - break; - case 3: - value = MessageFormat.format( - "{0}", - payment.getAmount() - ); - break; - case 4: - value = MessageFormat.format( - "{0} {1}", - payment.getCurrency(), - payment.getExchangeRate() - ); - break; - default: - } - } catch (DAOException e) { - logger.error( - MessageFormat.format( - "Could not set column label for payment {0} in column {1}", - payment, - columnIndex - ) - ); - } - return value; - } - COM: <s> get the column text for a given payment based on the column index </s> - diff --git a/funcom_test/22672271.txt b/funcom_test/22672271.txt deleted file mode 100644 index f6071aa3a71332f6429ca6338449943f27bec831..0000000000000000000000000000000000000000 --- a/funcom_test/22672271.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void validate() throws ImportException { - if (debitAccount == null) { - throw new ImportException("Debit account should not be null"); - } - if (debitCurrency == null) { - throw new ImportException("Debit currency should not be null"); - } - if (creditAccount == null) { - throw new ImportException("Credit account should not be null"); - } - if (creditCurrency == null) { - throw new ImportException("Credit currency should not be null"); - } - } - COM: <s> validates that all data is set as required </s> - diff --git a/funcom_test/22672319.txt b/funcom_test/22672319.txt deleted file mode 100644 index 50738d164c7d3da9337febc079380f2d975b85fa..0000000000000000000000000000000000000000 --- a/funcom_test/22672319.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public BigDecimal getTotal(boolean includeChildren) throws DAOException { - BigDecimal total = new BigDecimal(0); - IPaymentDAO dao = DAOFactory.getCurrentFactory().getPaymentDAO(); - List<Payment> payments = dao.findByAccount(this); - for (Payment payment : payments) { - total = total.add(payment.getPaymentAmount(getCurrency())); - } - if (includeChildren) { - for (Account account : getChildren()) { - total = total.add(account.getTotal(includeChildren)); - } - } - return total; - } - COM: <s> get the current total of the account </s> - diff --git a/funcom_test/22672407.txt b/funcom_test/22672407.txt deleted file mode 100644 index 56a19d4266f06ee56c54f8860b6ea24164b15a3f..0000000000000000000000000000000000000000 --- a/funcom_test/22672407.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected Long modelIdToDb(String stringId) throws DAOException { - Long id = DB_NULL_ID; - if (stringId != null && !stringId.trim().equals("")) { - try { - id = Long.parseLong(stringId); - } catch (NumberFormatException e) { - throw new DAOException(MessageFormat.format( - "Could not convert {0} to an int", stringId), e); - } - } - return id; - } - COM: <s> convert a models id to an integer for use with the db </s> - diff --git a/funcom_test/22672410.txt b/funcom_test/22672410.txt deleted file mode 100644 index 0d3fc54c96c5a96c4d40ef939a094102d3e3db26..0000000000000000000000000000000000000000 --- a/funcom_test/22672410.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected Currency getCurrency(String currencyCode) throws DAOException { - Currency currency = null; - if (currencyCode == null || currencyCode.trim().equals("")) { - currency = Currency.getInstance(Locale.getDefault()); - } else { - try { - currency = Currency.getInstance(currencyCode); - } catch (IllegalArgumentException e) { - throw new DAOException(MessageFormat.format( - "{0} is not a valid currency code", currencyCode), e); - } - } - return currency; - } - COM: <s> allows a safe way of setting the currency </s> - diff --git a/funcom_test/22672498.txt b/funcom_test/22672498.txt deleted file mode 100644 index 82c996fc6715092bd042b8fbab6ae5e7b6a7b346..0000000000000000000000000000000000000000 --- a/funcom_test/22672498.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public File findFile(String fileName, File initialDirectory, SearchType searchType) { - this.setStatus("Calculating files ..."); - this.initialDirectory = initialDirectory; - this.numberOfFiles = this.getNumberOfFiles(this.initialDirectory); - this.setStatus("Searching " + this.numberOfFiles + " folders"); - return this.searchForFile(fileName, initialDirectory, searchType); - } - COM: <s> search a given directory recursively for a given directory file name </s> - diff --git a/funcom_test/22829811.txt b/funcom_test/22829811.txt deleted file mode 100644 index 99bc70ef6a201d8103bede5e3f961c5d3c75d8cf..0000000000000000000000000000000000000000 --- a/funcom_test/22829811.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void close() { - if (!connected) { - connected = false; - try { - // close object output stream - // but before write all the content which is currently not written to - // the communication partner - out.flush(); - out.close(); - out = null; - } - catch (IOException e) { - throw new CsccException(e.getMessage()); - } - } - } - COM: <s> this method closes the connection to the communication partner </s> - diff --git a/funcom_test/22829816.txt b/funcom_test/22829816.txt deleted file mode 100644 index 66702f8521b4b31690ea392feb3d6fa48c0a1666..0000000000000000000000000000000000000000 --- a/funcom_test/22829816.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void beginListening() { - try { - // notify communication observers about the start of the port listening - connectionRegistry.notifyCommunicationEventObservers( - new CommunicationEvent(CommunicationEvent.CONNECTION_START_LISTENING)); - serverSocket = new ServerSocket(port); - // starts the listening thread - this.start(); - - } catch (IOException e) { - throw new CsccException(e.getMessage()); - } - - } - COM: <s> starts the listening thread by creating a new server socket listening </s> - diff --git a/funcom_test/22829817.txt b/funcom_test/22829817.txt deleted file mode 100644 index 1e607e7579c2f9549adc2e77f102bafb46f630a8..0000000000000000000000000000000000000000 --- a/funcom_test/22829817.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void stopListening() { - listening = false; - try { - if (serverSocket != null) serverSocket.close(); - //Thread.yield(); - connectionRegistry.notifyCommunicationEventObservers( - new CommunicationEvent(CommunicationEvent.CONNECTION_STOP_LISTENING)); - - serverSocket = null; - } - catch (IOException e) { - throw new CsccException(e.getMessage()); - } - } - COM: <s> this method stops the listening thread </s> - diff --git a/funcom_test/22829938.txt b/funcom_test/22829938.txt deleted file mode 100644 index 43c09c0fac2f52a86d0ee92e6f3891e9936ea8d9..0000000000000000000000000000000000000000 --- a/funcom_test/22829938.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void receiveEvent(DataEvent de) { - if (((Integer)de.getEventKey()).intValue() == 1) { - clientMessages.append("Client " + de.getClientId() + " sends data: " + de.getData().toString() + "\n"); - } - } - COM: <s> this interface method is called by objects of the communication component </s> - diff --git a/funcom_test/22829949.txt b/funcom_test/22829949.txt deleted file mode 100644 index a34c6f2b216c55ef424f137ec4afefe4cf882361..0000000000000000000000000000000000000000 --- a/funcom_test/22829949.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void receiveEvent(CommunicationEvent ce) { - switch(ce.getEventId()) { - case(CommunicationEvent.CONNECTION_ESTABLISHED): - statusBar.setText(ce.getData() + " connected to server!\n"); - break; - case(CommunicationEvent.CONNECTION_BROKEN): - statusBar.setText("Connection to " + ce.getData() + " broken!\n"); - break; - case(CommunicationEvent.CONNECTION_CLOSED): - statusBar.setText(ce.getData() + "disconnected from server!"); - break; - } - } - COM: <s> this interface method is called by communication component class </s> - diff --git a/funcom_test/22881217.txt b/funcom_test/22881217.txt deleted file mode 100644 index e8cf7396641456f355906cb39055e0d15529e1a5..0000000000000000000000000000000000000000 --- a/funcom_test/22881217.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean isSignaling() { - if(model.getPopState()[0][1] > 0.99) { - if(model.getPopState()[1][2] > 0.99) { - return true; - } - return false; - } - if(model.getPopState()[0][2] > 0.99) { - if(model.getPopState()[1][1] > 0.99) { - return true; - } - return false; - } - return false; - - } - COM: <s> determines if the two populations are in a signaling system </s> - diff --git a/funcom_test/22907663.txt b/funcom_test/22907663.txt deleted file mode 100644 index a7aa573ecb452115937ab60111e2db632a0fbe0f..0000000000000000000000000000000000000000 --- a/funcom_test/22907663.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Date getParsedFirmwareDate() { - Date date = null; - try { - date = obexDateFormatter.parse(firmwareDate); - } catch (ParseException ex) { - Logger.getLogger(DevInfo.class.getName()).log(Level.SEVERE, null, ex); - } - return date; - } - COM: <s> get the formatted firmware date </s> - diff --git a/funcom_test/22907855.txt b/funcom_test/22907855.txt deleted file mode 100644 index a03e0e57963e7e1105db942cad5920e0daf920b4..0000000000000000000000000000000000000000 --- a/funcom_test/22907855.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setupFileTypeTableModel() { - JTable table = window.getFileTypeTable(); - - table.setModel(extensionsTableModel); - table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); - table.setColumnModel(new FileTypeColumnModel()); - table.setRowHeight(20); - - table.setRowSorter(new TableRowSorter<FileTypeExtensionsTableModel>(extensionsTableModel)); - } - COM: <s> setup the file category mapping table </s> - diff --git a/funcom_test/22907857.txt b/funcom_test/22907857.txt deleted file mode 100644 index e46dd09652eb6b7909064da6ea6432babf96a3c9..0000000000000000000000000000000000000000 --- a/funcom_test/22907857.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void saveConfiguration() { - Configuration config = getConfiguration(); - persistence.saveConfiguration(config); - - log.info("Configuration saved"); - - log.debug("Notifying the registered ConfigurationListeners"); - for (ConfigurationListener listener : configListenerList) { - listener.configurationChanged(new ConfigurationEvent(config)); - } - log.debug("ConfigurationListeners notified"); - } - COM: <s> save the users preferences to disk </s> - diff --git a/funcom_test/22907860.txt b/funcom_test/22907860.txt deleted file mode 100644 index deadb42ef7332980aa68e142d4d4e39be17f745d..0000000000000000000000000000000000000000 --- a/funcom_test/22907860.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void enableTestConnectionComponents(boolean b) { - String state = b ? "Enabling" : "Disabling"; - log.debug(state + " the connection components"); - - for (Component comp : window.getObexFTPPanel().getComponents()) { - comp.setEnabled(b); - } - - window.getConnectionProgressLabel().setEnabled(true); - window.getConnectionProgressLabel().setVisible(!b); - } - COM: <s> enable the components during the test connection operation </s> - diff --git a/funcom_test/22907865.txt b/funcom_test/22907865.txt deleted file mode 100644 index 924570e53cae8e34e37bee8d380e53ead8323a5f..0000000000000000000000000000000000000000 --- a/funcom_test/22907865.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testConnection() { - try { - Configuration config = getConfiguration(); - - log.info("Trying to connect to the device"); - connectCommand.setConfiguration(config); - queue.append(connectCommand); - } catch (Exception exc) { - log.warn("Error while executing the connection test command", exc); - } - } - COM: <s> callback method that is invoked when the user activates the connection </s> - diff --git a/funcom_test/22907912.txt b/funcom_test/22907912.txt deleted file mode 100644 index db7c1f9933d76c411e0705053e552c1706e636e5..0000000000000000000000000000000000000000 --- a/funcom_test/22907912.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void updateContextMenusEnablement() { - JTree tree = window.getFileSystemTree(); - - /* generate a "fake" tree selection event */ - TreeSelectionEvent event = new TreeSelectionEvent(tree, null, false, null, null); - for (TreeSelectionListener listener : tree.getTreeSelectionListeners()) { - listener.valueChanged(event); - } - - log.debug("Updating the initial enablement state of context menus"); - } - COM: <s> update the enablement of context menus by generating a fake tree </s> - diff --git a/funcom_test/22907967.txt b/funcom_test/22907967.txt deleted file mode 100644 index e5d652096747d15c4bacbcd80c677c123cf3f98c..0000000000000000000000000000000000000000 --- a/funcom_test/22907967.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void frameClosing() { - if (!queue.isEmpty() || commandConsumer.isWorking()) { - if (showConfirmMessage("Interrupt processing?", "Exit")) { - log.info("Closing the application"); - System.exit(0); - } - } else { - log.info("Closing the application"); - System.exit(0); - } - - log.info("Close operation aborted"); - } - COM: <s> show a confirmation message if the user tries to close the application </s> - diff --git a/funcom_test/22907997.txt b/funcom_test/22907997.txt deleted file mode 100644 index 2b761fee34cdbd7ed15dbb6a20e20400ba2cf84d..0000000000000000000000000000000000000000 --- a/funcom_test/22907997.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void removeRedundantOperations(OBEXElement file, List<OBEXElement> filesToRemove) { - OBEXElement parentFolder = file; - log.debug("Removing redundant operations"); - - while ((parentFolder = parentFolder.getParent()) != null) { - - if (filesToRemove.contains(parentFolder)) { - filesToRemove.remove(file); - file = parentFolder; - } - } - } - COM: <s> optimize the list of files to remove by discarding redundant operations like </s> - diff --git a/funcom_test/22908030.txt b/funcom_test/22908030.txt deleted file mode 100644 index b626e0716e707dc7bf13814efde7dc19e05653bc..0000000000000000000000000000000000000000 --- a/funcom_test/22908030.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void setLocation(OBEXElement file) { - if (file == null) { - return; - } - - String[] path = file.getStringPath(); - String stringPath = ""; - - for (int i = 1; i < path.length; i++) { - stringPath += "/" + path[i]; - } - - window.getLocationTextField().setText(stringPath); - } - COM: <s> extract the file location from the given obexelement object </s> - diff --git a/funcom_test/22908034.txt b/funcom_test/22908034.txt deleted file mode 100644 index 4cd13b0552084644222b9202eaf11160a5b74ac6..0000000000000000000000000000000000000000 --- a/funcom_test/22908034.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setCreated(OBEXElement file) { - try { - window.getCreatedTextField().setText("-"); - window.getCreatedTextField().setText(format.format(file.getCreated())); - } catch (Exception exc) { - log.warn("Cannot set the formatted creation date", exc); - } - } - COM: <s> extract the file creation date from the given obexelement object </s> - diff --git a/funcom_test/22908035.txt b/funcom_test/22908035.txt deleted file mode 100644 index 820a20731a146556445da629e08636fd0902145e..0000000000000000000000000000000000000000 --- a/funcom_test/22908035.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setModified(OBEXElement file) { - try { - window.getModifiedTextField().setText("-"); - window.getModifiedTextField().setText(format.format(file.getModified())); - } catch (Exception exc) { - log.warn("Cannot set the formatted modified date", exc); - } - } - COM: <s> extract the file modification date from the given obexelement object </s> - diff --git a/funcom_test/22908038.txt b/funcom_test/22908038.txt deleted file mode 100644 index a67d6af460a4ea4feb67f1be39f5a497bd5a237f..0000000000000000000000000000000000000000 --- a/funcom_test/22908038.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setAccessed(OBEXElement file) { - try { - window.getAccessedTextField().setText("-"); - window.getAccessedTextField().setText(format.format(file.getAccessed())); - } catch (Exception exc) { - log.warn("Cannot set the formatted last accessed date", exc); - } - } - COM: <s> extract the file last access date from the given obexelement object </s> - diff --git a/funcom_test/22908225.txt b/funcom_test/22908225.txt deleted file mode 100644 index 4acbebb58ab5e2400808d340091f935b425c5bd7..0000000000000000000000000000000000000000 --- a/funcom_test/22908225.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void copyFile(File from, File to) throws IOException { - FileInputStream input = new FileInputStream(from); - FileOutputStream output = new FileOutputStream(to); - - byte[] buffer = new byte[1024]; - int count = 0; - - while ((count = input.read(buffer)) > 0) { - output.write(buffer, 0, count); - } - - output.close(); - input.close(); - } - COM: <s> copy a file </s> - diff --git a/funcom_test/22916164.txt b/funcom_test/22916164.txt deleted file mode 100644 index ca3179f5f36b0eaf91b4589926b0a852a0c100ea..0000000000000000000000000000000000000000 --- a/funcom_test/22916164.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public StringBuffer toStringBuffer(StringBuffer in) { - if (in == null) { - in = new StringBuffer(48); - } - else { - in.ensureCapacity(in.length() + 48); - } - in.append("{ Point: latitude = "); - in.append(latitude); - in.append(", longitude = "); - in.append(longitude); - in.append(" }"); - return in; - } - COM: <s> appends a string representation of this object to the given </s> - diff --git a/funcom_test/22916385.txt b/funcom_test/22916385.txt deleted file mode 100644 index 7374d3e17a9af9a32887bd7d36c31fd39bb6486b..0000000000000000000000000000000000000000 --- a/funcom_test/22916385.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public boolean getAutoCommit() throws SQLException { - //throw new UnsupportedOperationException("Connection.getAutoCommit() unsupported"); - return false; // at present this is just a read only driver: you can't do update/insert operations -> it - // makes no sense giving the chance to set auto commit, so this is always false - } - COM: <s> retrieves the current auto commit mode for this code connection code </s> - diff --git a/funcom_test/2298092.txt b/funcom_test/2298092.txt deleted file mode 100644 index 7186ab75e836e6a486406fbc502243c6e295759a..0000000000000000000000000000000000000000 --- a/funcom_test/2298092.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setViewRectSize(int width, int height) { - Rectangle oldRect = new Rectangle(viewRect); - viewRect.setSize((int)Math.round(width*SCALE), - (int)Math.round(height*SCALE)); - oldRect.add(viewRect); - repaint(oldRect.x-2, oldRect.y-2, oldRect.width+4, - oldRect.height+4); - } - COM: <s> sets the mini maps view rectangle to be the given width and height </s> - diff --git a/funcom_test/2298093.txt b/funcom_test/2298093.txt deleted file mode 100644 index 237e594b2573157f70df00de1e3b376706c30b61..0000000000000000000000000000000000000000 --- a/funcom_test/2298093.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public SessionManager getSession(String id) { - if(id == null) { - return null; - } else { - SessionManager session = currentSessions.get(id); - if(session == null) { - session = new SessionManager(id, this, false); - currentSessions.put(id, session); - } - return session; - } - } - COM: <s> gets the session with the given name </s> - diff --git a/funcom_test/2298162.txt b/funcom_test/2298162.txt deleted file mode 100644 index 2f10e6b6e223a1e1380ee83b4501bd5a1125aa95..0000000000000000000000000000000000000000 --- a/funcom_test/2298162.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean setSelectedPaint(Paint newPaint, int mouse) { - DrawnObject obj; - if(!checkAccess(mouse)) { - return false; - } - for(int i = 0; i < selectedObjects[mouse].size(); i++) { - obj = selectedObjects[mouse].get(i); - obj.setPaint(newPaint); - } - return true; - } - COM: <s> sets the paint used to color the objects the given user has selected </s> - diff --git a/funcom_test/2298199.txt b/funcom_test/2298199.txt deleted file mode 100644 index 96c05ad498c1a97d92a89a9ef6e6664a034a00b3..0000000000000000000000000000000000000000 --- a/funcom_test/2298199.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Net3IntData readThreeInt() throws IOException { - Net3IntData data = new Net3IntData(in.readInt(), in.readInt(), - in.readInt()); - if(expectsUserID) { - data.setUserID(in.readInt()); - } - return data; - } - COM: <s> reads in the three ints required when creating a new drawn object </s> - diff --git a/funcom_test/2298239.txt b/funcom_test/2298239.txt deleted file mode 100644 index ccfe4ada6dbf568868b90549807e97743b8155a2..0000000000000000000000000000000000000000 --- a/funcom_test/2298239.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void updateSelection(DrawnObjectKey[] keys, int mouse) { - for(int i = 0; i < keys.length; i++) { - DrawnObject object = drawnObjects.get(keys[i]); - if(object.canAccess(mouse)) { - object.setAccess(mouse); - } else { - object.addToQueue(mouse); - } - } - } - COM: <s> sets the selection for all the drawn objects referenced by the given keys </s> - diff --git a/funcom_test/2298311.txt b/funcom_test/2298311.txt deleted file mode 100644 index ce9ab81bdf258e43e1a7af172a00667f3085d721..0000000000000000000000000000000000000000 --- a/funcom_test/2298311.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void sendIM(String text) { - try { - netConnection.writeString(DrawingDataModel.IM_TEXT, currentUserName+": "+text, -1); - } catch(IOException e) { - System.err.println("Disconnected sending IM"); - System.err.println(e); - } - } - COM: <s> sends the given text as an im over the network </s> - diff --git a/funcom_test/22987089.txt b/funcom_test/22987089.txt deleted file mode 100644 index b74ea86cc28aaecfc0c6fe02de3c5b242dd14b9b..0000000000000000000000000000000000000000 --- a/funcom_test/22987089.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Command getCommand(Request request) { - if (request instanceof ReconnectRequest) { - Object view = ((ReconnectRequest) request).getConnectionEditPart() - .getModel(); - if (view instanceof View) { - Integer id = new Integer(SaveccmVisualIDRegistry - .getVisualID((View) view)); - request.getExtendedData().put(VISUAL_ID_KEY, id); - } - } - return super.getCommand(request); - } - COM: <s> extended request data key to hold editpart visual id </s> - diff --git a/funcom_test/22993152.txt b/funcom_test/22993152.txt deleted file mode 100644 index b29fded0a681714501262c353f93919f27f3edf3..0000000000000000000000000000000000000000 --- a/funcom_test/22993152.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private PaletteContainer createComplexConnections19Group() { - PaletteStack paletteContainer = new PaletteStack( - Messages.ComplexConnections19Group_title, null, null); - paletteContainer - .setDescription(Messages.ComplexConnections19Group_desc); - paletteContainer.add(createComplexConnection1CreationTool()); - paletteContainer.setActiveEntry((ToolEntry) paletteContainer - .getChildren().get(paletteContainer.getChildren().size() - 1)); - paletteContainer.add(createComplexConnectionFrom2CreationTool()); - paletteContainer.add(createComplexConnectionTo3CreationTool()); - return paletteContainer; - } - COM: <s> creates complex connections palette tool group </s> - diff --git a/funcom_test/22993300.txt b/funcom_test/22993300.txt deleted file mode 100644 index 1edb334b58e3887c16cde96f45e6332380953734..0000000000000000000000000000000000000000 --- a/funcom_test/22993300.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSetPortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InDataPort_setPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InDataPort_setPort_feature", "_UI_InDataPort_type"), - SaveccmPackage.Literals.IN_DATA_PORT__SET_PORT, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the set port feature </s> - diff --git a/funcom_test/22993381.txt b/funcom_test/22993381.txt deleted file mode 100644 index 4007408ea11b25970ccca04732fd3e9645e10035..0000000000000000000000000000000000000000 --- a/funcom_test/22993381.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addBindPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindPort_bind_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BindPort_bind_feature", "_UI_BindPort_type"), - SaveccmPackage.Literals.BIND_PORT__BIND, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the bind feature </s> - diff --git a/funcom_test/22993383.txt b/funcom_test/22993383.txt deleted file mode 100644 index cf436fcfa63fd78532007b1c589beafcac081136..0000000000000000000000000000000000000000 --- a/funcom_test/22993383.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addArgumentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindPort_argument_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BindPort_argument_feature", "_UI_BindPort_type"), - SaveccmPackage.Literals.BIND_PORT__ARGUMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the argument feature </s> - diff --git a/funcom_test/22993401.txt b/funcom_test/22993401.txt deleted file mode 100644 index 24fa96ae2a3ffad56b07cecc0d570911ff364dbf..0000000000000000000000000000000000000000 --- a/funcom_test/22993401.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addComplexFromPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConnectionComplex_complexFrom_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConnectionComplex_complexFrom_feature", "_UI_ConnectionComplex_type"), - SaveccmPackage.Literals.CONNECTION_COMPLEX__COMPLEX_FROM, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the complex from feature </s> - diff --git a/funcom_test/22993403.txt b/funcom_test/22993403.txt deleted file mode 100644 index 77cf0bdc7cd1cb8ac1cc8ac19e798ef58e606d41..0000000000000000000000000000000000000000 --- a/funcom_test/22993403.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addComplexToPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ConnectionComplex_complexTo_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ConnectionComplex_complexTo_feature", "_UI_ConnectionComplex_type"), - SaveccmPackage.Literals.CONNECTION_COMPLEX__COMPLEX_TO, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the complex to feature </s> - diff --git a/funcom_test/22993449.txt b/funcom_test/22993449.txt deleted file mode 100644 index 647a1dad2932fc5bf3cb14edd08a06b1d50d8c9f..0000000000000000000000000000000000000000 --- a/funcom_test/22993449.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConditionToPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Condition_conditionTo_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Condition_conditionTo_feature", "_UI_Condition_type"), - SaveccmPackage.Literals.CONDITION__CONDITION_TO, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the condition to feature </s> - diff --git a/funcom_test/22993450.txt b/funcom_test/22993450.txt deleted file mode 100644 index ad6db469d67beb1c4c39647cb32613d3ad5d07c6..0000000000000000000000000000000000000000 --- a/funcom_test/22993450.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConditionFromPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Condition_conditionFrom_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Condition_conditionFrom_feature", "_UI_Condition_type"), - SaveccmPackage.Literals.CONDITION__CONDITION_FROM, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the condition from feature </s> - diff --git a/funcom_test/23008646.txt b/funcom_test/23008646.txt deleted file mode 100644 index 9e8227256f5bc01ba73e0afadaa6e1290f7507f1..0000000000000000000000000000000000000000 --- a/funcom_test/23008646.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private PaletteContainer createTAEditor1Group() { - PaletteGroup paletteContainer = new PaletteGroup( - se.mdh.mrtc.save.taEditor.diagram.part.Messages.TAEditor1Group_title); - paletteContainer - .setDescription(se.mdh.mrtc.save.taEditor.diagram.part.Messages.TAEditor1Group_desc); - paletteContainer.add(createEntry1Group()); - paletteContainer.add(createLocation2Group()); - paletteContainer.add(createExit3CreationTool()); - paletteContainer.add(createEdge4Group()); - return paletteContainer; - } - COM: <s> creates ta editor palette tool group </s> - diff --git a/funcom_test/23010166.txt b/funcom_test/23010166.txt deleted file mode 100644 index 3a2eb44f5a40175fa7fb74e4aecc81b643e1dc1c..0000000000000000000000000000000000000000 --- a/funcom_test/23010166.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTANamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TA_TAName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TA_TAName_feature", "_UI_TA_type"), - TaEditorPackage.Literals.TA__TA_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the ta name feature </s> - diff --git a/funcom_test/23010194.txt b/funcom_test/23010194.txt deleted file mode 100644 index 487a174d4fbdb66989fa74712f20f947cc598db3..0000000000000000000000000000000000000000 --- a/funcom_test/23010194.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLocationNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractNode_LocationName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractNode_LocationName_feature", "_UI_AbstractNode_type"), - TaEditorPackage.Literals.ABSTRACT_NODE__LOCATION_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the location name feature </s> - diff --git a/funcom_test/23010205.txt b/funcom_test/23010205.txt deleted file mode 100644 index 9fa868175b5446053d4b42ef0a15f10086c90b03..0000000000000000000000000000000000000000 --- a/funcom_test/23010205.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addExitAssignementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Exit_ExitAssignement_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Exit_ExitAssignement_feature", "_UI_Exit_type"), - TaEditorPackage.Literals.EXIT__EXIT_ASSIGNEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the exit assignement feature </s> - diff --git a/funcom_test/23010209.txt b/funcom_test/23010209.txt deleted file mode 100644 index cc9bf736cfa1cdacf0eeea6bf812e09f5f6aac38..0000000000000000000000000000000000000000 --- a/funcom_test/23010209.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEntryAssignementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractEntry_EntryAssignement_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractEntry_EntryAssignement_feature", "_UI_AbstractEntry_type"), - TaEditorPackage.Literals.ABSTRACT_ENTRY__ENTRY_ASSIGNEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the entry assignement feature </s> - diff --git a/funcom_test/23010236.txt b/funcom_test/23010236.txt deleted file mode 100644 index 7e7a655eca1a6349ff38ea6b56a6282c999dfa43..0000000000000000000000000000000000000000 --- a/funcom_test/23010236.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGuardPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractEdge_Guard_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractEdge_Guard_feature", "_UI_AbstractEdge_type"), - TaEditorPackage.Literals.ABSTRACT_EDGE__GUARD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the guard feature </s> - diff --git a/funcom_test/23010239.txt b/funcom_test/23010239.txt deleted file mode 100644 index 192b351a9d42858c171271a9964a190089f3880a..0000000000000000000000000000000000000000 --- a/funcom_test/23010239.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssignementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractEdge_Assignement_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractEdge_Assignement_feature", "_UI_AbstractEdge_type"), - TaEditorPackage.Literals.ABSTRACT_EDGE__ASSIGNEMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the assignement feature </s> - diff --git a/funcom_test/23010241.txt b/funcom_test/23010241.txt deleted file mode 100644 index f49b3616f609a579ef1285812f32ce8d577a4299..0000000000000000000000000000000000000000 --- a/funcom_test/23010241.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSelectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractEdge_Select_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractEdge_Select_feature", "_UI_AbstractEdge_type"), - TaEditorPackage.Literals.ABSTRACT_EDGE__SELECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the select feature </s> - diff --git a/funcom_test/23010243.txt b/funcom_test/23010243.txt deleted file mode 100644 index 845f96298ec4d41c9219c72bce3c5a826107fd5c..0000000000000000000000000000000000000000 --- a/funcom_test/23010243.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addToPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractEdge_to_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractEdge_to_feature", "_UI_AbstractEdge_type"), - TaEditorPackage.Literals.ABSTRACT_EDGE__TO, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the to feature </s> - diff --git a/funcom_test/23010298.txt b/funcom_test/23010298.txt deleted file mode 100644 index 1d5b1eb47d87475d4f77a2aae5ab6e5ea50a7707..0000000000000000000000000000000000000000 --- a/funcom_test/23010298.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JTextArea getTxtNameElement() { - if (txtNameElement == null) { - txtNameElement = new JTextArea(); - txtNameElement.setBounds(new Rectangle(138, 31, 187, 23)); - txtNameElement.setBackground(Color.white); - txtNameElement.setBorder(BorderFactory.createLineBorder(Color.lightGray, 2)); - txtNameElement.setEditable(false); - } - return txtNameElement; - } - COM: <s> this method initializes txt name element </s> - diff --git a/funcom_test/23010316.txt b/funcom_test/23010316.txt deleted file mode 100644 index 207ac08ee57d8b87cfbf1d0c2b0cc218909e7d8a..0000000000000000000000000000000000000000 --- a/funcom_test/23010316.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JTextArea getTxtElementDescription() { - if (txtElementDescription == null) { - txtElementDescription = new JTextArea(); - txtElementDescription.setBounds(new Rectangle(136, 61, 504, 44)); - txtElementDescription.setBackground(Color.white); - txtElementDescription.setBorder(BorderFactory.createLineBorder(Color.lightGray, 2)); - txtElementDescription.setEditable(false); - } - return txtElementDescription; - } - COM: <s> this method initializes txt element description </s> - diff --git a/funcom_test/23010377.txt b/funcom_test/23010377.txt deleted file mode 100644 index d6671bed72eaf8566188a8d44053b5e7d5ad657d..0000000000000000000000000000000000000000 --- a/funcom_test/23010377.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JScrollPane getJScrollPaneInPutPort() { - if (jScrollPaneInPutPort == null) { - jScrollPaneInPutPort = new JScrollPane(); - jScrollPaneInPutPort.setBounds(new Rectangle(16, 150, 305, 134)); - jScrollPaneInPutPort.setViewportView(getTxtInputPort()); - } - return jScrollPaneInPutPort; - } - COM: <s> this method initializes j scroll pane in put port </s> - diff --git a/funcom_test/23010394.txt b/funcom_test/23010394.txt deleted file mode 100644 index 371df478016a7acce84fb1a870c08fc983904ad4..0000000000000000000000000000000000000000 --- a/funcom_test/23010394.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JScrollPane getJScrollPaneOutputPort() { - if (jScrollPaneOutputPort == null) { - jScrollPaneOutputPort = new JScrollPane(); - jScrollPaneOutputPort.setBounds(new Rectangle(15, 336, 307, 133)); - jScrollPaneOutputPort.setViewportView(getTxtOutputPort()); - } - return jScrollPaneOutputPort; - } - COM: <s> this method initializes j scroll pane output port </s> - diff --git a/funcom_test/23010585.txt b/funcom_test/23010585.txt deleted file mode 100644 index fe7bae650960f0505f5fffa7e61c4da7979ec1e9..0000000000000000000000000000000000000000 --- a/funcom_test/23010585.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getBtnSearch() { - if (btnSearch == null) { - btnSearch = new JButton(); - btnSearch.setBounds(new Rectangle(67, 535, 84, 24)); - btnSearch.setText("Search"); - btnSearch.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent e) { - } - }); - } - return btnSearch; - } - COM: <s> this method initializes btn search </s> - diff --git a/funcom_test/23010590.txt b/funcom_test/23010590.txt deleted file mode 100644 index 003afeb469c9715bf749896278acec4066f6a5c8..0000000000000000000000000000000000000000 --- a/funcom_test/23010590.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void Layout() - { - this.setSize(885, 593); - - //Set the window in the center of screen - Toolkit toolkit = Toolkit.getDefaultToolkit(); - Dimension screenSize = toolkit.getScreenSize(); - //Calculate the frame location - int x = (screenSize.width - this.getWidth()) / 2; - int y = (screenSize.height - this.getHeight()) / 2; - this.setLocation(x, y); - - this.setResizable(false); - this.setTitle("Repository Browser"); - } - COM: <s> prepare the layout size location of the frame </s> - diff --git a/funcom_test/23014246.txt b/funcom_test/23014246.txt deleted file mode 100644 index 8fdbf23f79a9f5f34183aadff1115c0958df6116..0000000000000000000000000000000000000000 --- a/funcom_test/23014246.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public float calculateFloat(float time,Vector4f first, Vector4f second){ - float delta = second.getX()- first.getX(); - float ratio = (time - first.getX())/delta; - - return first.getY() + ratio*(second.getY()-first.getY()); - } - COM: <s> interpolates the curve at the given time the x coordinate </s> - diff --git a/funcom_test/23014250.txt b/funcom_test/23014250.txt deleted file mode 100644 index 1f54baf0dfb34a3689f03f1c5bb1dfd67b7abf07..0000000000000000000000000000000000000000 --- a/funcom_test/23014250.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void notifyListeners(final int index) { - TableModelEvent tme = new TableModelEvent(CurveData.this, index, index, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT); - for (TableModelListener tml : listeners) { - tml.tableChanged(tme); - } - } - COM: <s> notifies the listeners that a new element was created </s> - diff --git a/funcom_test/23014251.txt b/funcom_test/23014251.txt deleted file mode 100644 index 54118b9bd5fda98254e8b0421d2c9e877504b94b..0000000000000000000000000000000000000000 --- a/funcom_test/23014251.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void notifyListenersForDataChange(int index) { - TableModelEvent tme = new TableModelEvent(CurveData.this, index, index, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE); - for (TableModelListener tml : listeners) { - tml.tableChanged(tme); - } - } - COM: <s> notifies the listeners that the table was changed </s> - diff --git a/funcom_test/23014271.txt b/funcom_test/23014271.txt deleted file mode 100644 index 454cf114825399a04496c07b7cc658a7e185b0f2..0000000000000000000000000000000000000000 --- a/funcom_test/23014271.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Object getValueAt(int rowIndex, int columnIndex) { - Vector4f vector = points.get(rowIndex); - switch (columnIndex) { - case 0: - return vector.getX(); - case 1: - return vector.getY(); - case 2: - return vector.getZ(); - case 3: - return vector.getW(); - default: - return ZERO; - } - } - COM: <s> returns the float value in a cell </s> - diff --git a/funcom_test/23014277.txt b/funcom_test/23014277.txt deleted file mode 100644 index 3960945a49ae599b8e99f9ec3120608fd7347a6d..0000000000000000000000000000000000000000 --- a/funcom_test/23014277.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getSubIndex(Semantic semantic) { - for (int i = 0; i < semantics.size(); i++) { - if (semantics.get(i) == semantic) { - return i; - } - } - throw new IllegalArgumentException("Semantic " + semantic + " not used in this" + - " VertexBufferConstruct object !"); - } - COM: <s> returns the subindex in the other indices for the given semantic </s> - diff --git a/funcom_test/23014371.txt b/funcom_test/23014371.txt deleted file mode 100644 index b35863581a6112b3292bdea40915c93a4072a08a..0000000000000000000000000000000000000000 --- a/funcom_test/23014371.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void bindEffect(Effect effect) { - GL gl = GLU.getCurrentGL(); - if (effect != currentEffect) { - OGLEffect oglEffect = (OGLEffect) effect; - if (oglEffect.getNumberOfPasses() > 0) { - OGLPass first = (OGLPass) oglEffect.getPass(0); - gl.glUseProgram(first.getProgramID()); - currentEffect = effect; - } - } - } - COM: <s> activates the effect </s> - diff --git a/funcom_test/23014409.txt b/funcom_test/23014409.txt deleted file mode 100644 index a29122bdd2db46cd5a9d8730c74bcfef2d56407e..0000000000000000000000000000000000000000 --- a/funcom_test/23014409.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void customizeParameter(String identifier, Object value) { - if (value == null) { - return; - } - EffectParameter ep = effect.getEffectParameter(identifier); - if (ep != null) { - ep.setValue(value); - parameterMap.put(ep.getIdentifier(), ep); - parameters.add(ep); - }else - System.out.println("identifier : " + identifier +" not found!"); - - } - COM: <s> looks up an effect parameter via the identifier and sets the value </s> - diff --git a/funcom_test/23014446.txt b/funcom_test/23014446.txt deleted file mode 100644 index 2438b7ab8efeae64f66b94a9265effbefe50c075..0000000000000000000000000000000000000000 --- a/funcom_test/23014446.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void addMaterial(String key, Material material){ - if (materials.containsKey(key)){ - Logger.getLogger(MaterialLibrary.class.getName()).log(Level.WARNING, "Key " + key +" allready defined in MaterialLibrary."); - } - materials.put(key,material); - } - COM: <s> adds a new material with the specified key </s> - diff --git a/funcom_test/23014462.txt b/funcom_test/23014462.txt deleted file mode 100644 index d9bdb5e64ec5c80441cc46f6d19f5ab94b9fe6d2..0000000000000000000000000000000000000000 --- a/funcom_test/23014462.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void moveForward() { - Vector3f fwVec = new Vector3f(getDirection().getX(), getDirection().getY(), getDirection().getZ()); - fwVec.normalizeTo(speed); - getEye().dirtyAdd(fwVec); - changed = true; - } - COM: <s> moves the viewpoint forward </s> - diff --git a/funcom_test/23014469.txt b/funcom_test/23014469.txt deleted file mode 100644 index 01aa8b6168339c4553d5862716761c225f8d9300..0000000000000000000000000000000000000000 --- a/funcom_test/23014469.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void moveBack() { - Vector3f backVec = new Vector3f(-getDirection().getX(), -getDirection().getY(), -getDirection().getZ()); - backVec.normalizeTo(speed); - getEye().dirtyAdd(backVec); - changed = true; - } - COM: <s> moves the viewpoint back </s> - diff --git a/funcom_test/23014476.txt b/funcom_test/23014476.txt deleted file mode 100644 index 45349b81d4bde218efd2a059b088fb0b652f2957..0000000000000000000000000000000000000000 --- a/funcom_test/23014476.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addRotation(Vector3f axis, Angle rotation) { - Quaternion q = new Quaternion(rotation, axis); - Matrix result = new Matrix(4, 4); - Matrix quaternion = q.getRotationMatrix(); - - Matrix.multiply(matrix,q.getRotationMatrix(), result); - matrix = result; - } - COM: <s> adds a rotation to this matrix </s> - diff --git a/funcom_test/23014477.txt b/funcom_test/23014477.txt deleted file mode 100644 index 589484583046f88db0beaaa421948e9f92238ca3..0000000000000000000000000000000000000000 --- a/funcom_test/23014477.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void addTranslation(Vector3f translation) { - matrix.addFactor(3, 0, translation.getX()); - matrix.addFactor(3, 1, translation.getY()); - matrix.addFactor(3, 2, translation.getZ()); - } - COM: <s> adds a translation to this matrix </s> - diff --git a/funcom_test/23014479.txt b/funcom_test/23014479.txt deleted file mode 100644 index 2df1089d075c4548602c370f8a41bfbfc18bb38f..0000000000000000000000000000000000000000 --- a/funcom_test/23014479.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void addScale(Vector3f scale) { - matrix.multiplyFactor(0, 0, scale.getX()); - matrix.multiplyFactor(1, 1, scale.getY()); - matrix.multiplyFactor(2, 2, scale.getZ()); - } - COM: <s> adds a scale factor to the transformation matrix </s> - diff --git a/funcom_test/23014667.txt b/funcom_test/23014667.txt deleted file mode 100644 index a6827dc7d3498987baaff0e5b8bcbad84220df5a..0000000000000000000000000000000000000000 --- a/funcom_test/23014667.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public float calculateDistance(Vector3f v,float radius ){ - return (v.getX()-origin.getX())*normal.getX()+ - (v.getY()-origin.getY())*normal.getY()+ - (v.getZ()-origin.getZ())*normal.getZ(); - } - COM: <s> calculates the smalles distance of a vertex with this plane </s> - diff --git a/funcom_test/23014683.txt b/funcom_test/23014683.txt deleted file mode 100644 index 797427aac73c5ac1d0a6c20ee70de242fd301f57..0000000000000000000000000000000000000000 --- a/funcom_test/23014683.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public double calculateHeight(double x, double y){ - double d = origin.dotProduct(normal); - // ax + by +cz + d = 0 , normal (a,b,c) - // z = (-d - ax - by)/c; - return (d - normal.getX()*x - normal.getY()*y)/normal.getZ(); - } - COM: <s> calculates the height of this plane at the given x y coordinates </s> - diff --git a/funcom_test/23014684.txt b/funcom_test/23014684.txt deleted file mode 100644 index 7020cc98eeee2ae6b38ad690b49a0cd4302dac67..0000000000000000000000000000000000000000 --- a/funcom_test/23014684.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setAsIdentityMatrix() { - if (rows == columns) { - for (int column = 0; column < columns; column++) { - for (int row = 0; row < rows; row++) { - if (column == row) { - setFactor(row, column, 1f); - } else { - setFactor(row, column, 0f); - } - } - } - } - } - COM: <s> modifies this matrix to make it an identity matrix </s> - diff --git a/funcom_test/23014702.txt b/funcom_test/23014702.txt deleted file mode 100644 index 1f1b42030f648a6710d1299740760c565ca59ba8..0000000000000000000000000000000000000000 --- a/funcom_test/23014702.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void dirtyCrossProduct(Vector3f toMultiply, Vector3f destination) { - float rx = this.y * toMultiply.z - this.z * toMultiply.y; - float ry = this.z * toMultiply.x - this.x * toMultiply.z; - float rz = this.x * toMultiply.y - this.y * toMultiply.x; - destination.setXYZ(rx, ry, rz); - } - COM: <s> calculates the result of the crossproduct of this object with the </s> - diff --git a/funcom_test/23014704.txt b/funcom_test/23014704.txt deleted file mode 100644 index 21c5733bec796a129b68219dfe34e3e60d0dd2fe..0000000000000000000000000000000000000000 --- a/funcom_test/23014704.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setFactors(int row, float... values) { - if (row >= rows) { - return; - } - int length = values.length < columns ? values.length : columns; - int start = row * columns; - System.arraycopy(values, 0, factors, start, length); - } - COM: <s> sets all the factors of a row in the matrix </s> - diff --git a/funcom_test/23014715.txt b/funcom_test/23014715.txt deleted file mode 100644 index 2e5cc047626d96e594c71d26e3b823bddad5f0f0..0000000000000000000000000000000000000000 --- a/funcom_test/23014715.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Vector3f diff(Vector3f toSubtract) { - float rx = getX() - toSubtract.getX(); - float ry = getY() - toSubtract.getY(); - float rz = getZ() - toSubtract.getZ(); - VectorPool vp = VectorPool.getInstance(); - Vector3f v = vp.getVector(); - v.setXYZ(rx, ry, rz); - return v; - } - COM: <s> creates and returns a new vector3f object by subtracting the provided </s> - diff --git a/funcom_test/23014720.txt b/funcom_test/23014720.txt deleted file mode 100644 index 834822ba31103a2973c58b29c72d820340197bc6..0000000000000000000000000000000000000000 --- a/funcom_test/23014720.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Vector3f scale(float scale) { - float sx = getX() * scale; - float sy = getY() * scale; - float sz = getZ() * scale; - Vector3f v = VectorPool.getInstance().getVector(); - v.setXYZ(sx, sy, sz); - return v; - } - COM: <s> creates a new scaled version of this vector3f object </s> - diff --git a/funcom_test/23014722.txt b/funcom_test/23014722.txt deleted file mode 100644 index d4c440e25e0dfb230ad0df93ba34443dcea87558..0000000000000000000000000000000000000000 --- a/funcom_test/23014722.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void dirtyProjectVector(Vector3f toProject){ - float distance = normal.dotProduct(toProject); - float x = toProject.getX() - normal.getX()*distance; - float y = toProject.getY() - normal.getY()*distance; - float z = toProject.getZ() - normal.getZ()*distance; - toProject.setXYZ(x,y,z); - } - COM: <s> projects a vector on this plane and stores the result on the </s> - diff --git a/funcom_test/23014832.txt b/funcom_test/23014832.txt deleted file mode 100644 index fd3e994d34546c625dad59645dff39b403528742..0000000000000000000000000000000000000000 --- a/funcom_test/23014832.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addElement(IdElement element) { - if (element.isIdValid()) { - TargetElementWrapper parent = wrapperStack.peek(); - TargetElementWrapper tew = new TargetElementWrapper(element.getId(), element, parent); - parent.addChild(tew); - ids.put(element.getId(), tew); - wrapperStack.add(tew); - } - } - COM: <s> adds an element to the tree of id elements in this document </s> - diff --git a/funcom_test/23014849.txt b/funcom_test/23014849.txt deleted file mode 100644 index 475d6f1bea01a9ad3b73a038850e8a9333f2b379..0000000000000000000000000000000000000000 --- a/funcom_test/23014849.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void objectPopped(Object o) { - if (o instanceof TargetElement) { - TargetElement te = (TargetElement) o; - if (te.isIdValid()) { - TargetElementWrapper tew = wrapperStack.pop(); - if (tew.getTargetElement() != o) { - System.out.println("Something very wrong here!"); - } - } - } - } - COM: <s> called when an object is popped from the stack during the construction </s> - diff --git a/funcom_test/23014852.txt b/funcom_test/23014852.txt deleted file mode 100644 index abbefa0a5e982bfa8f94d9486c747d89817c8c58..0000000000000000000000000000000000000000 --- a/funcom_test/23014852.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void objectPushed(Object o) { - if (o instanceof TargetElement) { - TargetElement te = (TargetElement) o; - if (o instanceof IdElement) { - IdElement element = (IdElement) o; - this.addElement(element); - } else if (o instanceof SidElement) { - SidElement element = (SidElement) o; - this.addElement(element, true); - } - } - } - COM: <s> called when an object is pushed onto the stack during the construction </s> - diff --git a/funcom_test/23014934.txt b/funcom_test/23014934.txt deleted file mode 100644 index 11be48b66e44c5e945b387e6a43f4a4ae11962e5..0000000000000000000000000000000000000000 --- a/funcom_test/23014934.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void registerValueChannel(Class clazz, ValueChannel channel){ - - ClassValueChannelMap classChannels = classValueChannels.get(clazz.getCanonicalName()); - if (classChannels == null){ - classChannels = new ClassValueChannelMap(); - classValueChannels.put(clazz.getCanonicalName(),classChannels); - } - classChannels.registerValueChannel(channel.getSemantic(),channel); - } - COM: <s> registers a value channel object for the given clazz and semantic </s> - diff --git a/funcom_test/23014999.txt b/funcom_test/23014999.txt deleted file mode 100644 index 2d24658e29afc8f8efaeb89168677293c1f8ef27..0000000000000000000000000000000000000000 --- a/funcom_test/23014999.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: @Override public Object newInstance(Object parent, Attributes atts) { - String scount = atts.getValue("count"); - try { - int icount = Integer.parseInt(scount); - ColladaBooleanBuffer cbb = new ColladaBooleanBuffer(icount); - return cbb; - } catch (NumberFormatException ex) { - ex.printStackTrace(); - } - - return null; - } - COM: <s> overridden to be able to create a new collada float buffer element </s> - diff --git a/funcom_test/23015339.txt b/funcom_test/23015339.txt deleted file mode 100644 index 1155b48e57a60cae04546d70bc1d7d67e45de2e7..0000000000000000000000000000000000000000 --- a/funcom_test/23015339.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void increaseCurrentIndex(Object[] array) { - Integer index = this.currentIndices.get(array); - if (index == null) { - this.currentIndices.put(array, Integer.valueOf(1)); - } else { - currentIndices.put(array, Integer.valueOf(index.intValue() + 1)); - } - } - COM: <s> increases the current index for the given array </s> - diff --git a/funcom_test/23015340.txt b/funcom_test/23015340.txt deleted file mode 100644 index 34501eaf6b10e267a8fe1cc5cc850c6fd28c2fc6..0000000000000000000000000000000000000000 --- a/funcom_test/23015340.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void invokeSet(XMLContextData data){ - Object value = data.resolveURL(key); - System.out.println("looking up : " +key); - System.out.println("result : "+value); - if ( value != null){ - setter.setValue(data, parent, value); - } - } - COM: <s> the parent object of this class will have a field set to the </s> - diff --git a/funcom_test/23015346.txt b/funcom_test/23015346.txt deleted file mode 100644 index cd78b745883c1ff8b56084273f2be281dc0f5211..0000000000000000000000000000000000000000 --- a/funcom_test/23015346.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setProperty(XMLContextData data, Object toSet, String propertyName, Object value) { - if (!collection) { - FieldSetter setter = getFieldSetter(propertyName); - if (setter != null) { - setter.setValue(data, toSet, value); - } - } else { - Collection c = (Collection) toSet; - c.add(value); - } - } - COM: <s> sets a property for this elements </s> - diff --git a/funcom_test/23015349.txt b/funcom_test/23015349.txt deleted file mode 100644 index 11e15dfe3cba0772f692889c4e2db79e843aba7b..0000000000000000000000000000000000000000 --- a/funcom_test/23015349.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setKeyValue(XMLContextData data, Object toSet, String property, Object key, Object value) { - FieldSetter setter = getFieldSetter(property); - if (setter != null) { - setter.setKeyValue(data, toSet, key, value); - } - } - COM: <s> sets a key value pair on an object </s> - diff --git a/funcom_test/23015369.txt b/funcom_test/23015369.txt deleted file mode 100644 index c1f491d15dcc6b24b2921045acf8600e632b8c74..0000000000000000000000000000000000000000 --- a/funcom_test/23015369.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addCurveData(CurveData curveData) { - if (current != null) { - current.removeTableModelListener(this); - } - current = curveData; - data.add(new PlotAdapter(curveData)); - tblCurveData.setModel(curveData); - curveData.addTableModelListener(this); - updateGraph(); - } - COM: <s> adds a curve to this interpolation panel </s> - diff --git a/funcom_test/23015444.txt b/funcom_test/23015444.txt deleted file mode 100644 index b1432d3290a0f0f025a70bcc90d9d75eaf299d35..0000000000000000000000000000000000000000 --- a/funcom_test/23015444.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void notifyAttributeListeners(Object o, String attribute, String value) { - ArrayList<AttributeListener> listeners = this.attributeListener.get(attribute); - if (listeners != null) { - for (AttributeListener listener : listeners) { - listener.attributeSet(o, attribute, value); - } - } - } - COM: <s> notifies the attribute listeners that the attribute has been set </s> - diff --git a/funcom_test/23015546.txt b/funcom_test/23015546.txt deleted file mode 100644 index 9d531a773ecac70303404c03425351d3b225f178..0000000000000000000000000000000000000000 --- a/funcom_test/23015546.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void createVisualSceneInstances(ColladaScene scene,ColladaDocument document){ - VisualSceneInstance instance = document.getVisualSceneInstance(); - DAEGraphNode instanceNode = scene.createNode(instance,100,400,ColladaScene.ROOT,instance.getSid(),"Visual Scene instance",null); - createConnection(instanceNode,"current scene"); - - } - COM: <s> creates the visual scenes in this document </s> - diff --git a/funcom_test/23016687.txt b/funcom_test/23016687.txt deleted file mode 100644 index 67abc6130765ee7161083c0af8a9527814e4805d..0000000000000000000000000000000000000000 --- a/funcom_test/23016687.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void reset() { - for (int col = 0; col < columns; col++) { - for (int row = 0; row < rows; row++) { - leds[col][row].onOff = false; - leds[col][row].appearsOn = false; - leds[col][row].lastFallingEdgeTime = -eyeDelayOffClocks; - leds[col][row].lastRisingEdgeTime = 0; - } - } - repaint(); - } - COM: <s> project manager is notifying that component should reset to initial state </s> - diff --git a/funcom_test/23017207.txt b/funcom_test/23017207.txt deleted file mode 100644 index 7164e4e911f52a7f220660ef1fa45242ee5a8278..0000000000000000000000000000000000000000 --- a/funcom_test/23017207.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void add(java.awt.Component comp, Object constraints) { - super.add(comp, constraints); - ComponentListener listener = new ComponentListener() { - public void componentResized(ComponentEvent e) { // Layout the JScrollPane - getParent().getParent().validate(); - } - - public void componentMoved(ComponentEvent e) { - componentResized(e); - } - - public void componentShown(ComponentEvent e) { - } - - public void componentHidden(ComponentEvent e) { - } - }; - comp.addComponentListener(listener); - listeners.put(comp, listener); - } - COM: <s> add an internal frame to the desktop </s> - diff --git a/funcom_test/23075980.txt b/funcom_test/23075980.txt deleted file mode 100644 index 0963d7bc53e0bcccbf4b4c88c93634d58f1089a8..0000000000000000000000000000000000000000 --- a/funcom_test/23075980.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean equals(final OrderedReversePath o, final int baseDirThis, final int baseDirOth) { - final String [] othParts = o.getParts(); - int minCommonPartsThis = parts.length - baseDirThis; - int minCommonPartsOth = othParts.length - baseDirOth; - if (minCommonPartsOth == minCommonPartsThis) - return noCommonParts(o) >= minCommonPartsThis; - else - return false; - } - COM: <s> compare two paths lexicographically starting with given directory direction to file name </s> - diff --git a/funcom_test/23076026.txt b/funcom_test/23076026.txt deleted file mode 100644 index c294348b3286737598ef807ebf58d0a4a798ee1d..0000000000000000000000000000000000000000 --- a/funcom_test/23076026.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testEquals() { - System.out.println("equals"); - - assertFalse(instance1.equals(null)); - /* object of other class */ - assertFalse(instance1.equals(new Vector())); - /* list with other hash value */ - assertFalse(instance1.equals(instance2)); - /* list with the same hash value */ - assertTrue(instance1.equals(instance1Empty)); - /* the same instance */ - assertTrue(instance1.equals(instance1)); - } - COM: <s> test of equals method of class rkr gst </s> - diff --git a/funcom_test/23076032.txt b/funcom_test/23076032.txt deleted file mode 100644 index 40068e0d90536a4aa99014e7fef6c6fc4c40e291..0000000000000000000000000000000000000000 --- a/funcom_test/23076032.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testSetMarked() { - System.out.println("setMarked"); - - Match m = new Match(3, 5, 7); - LinkedListOfElementsItem instance = new LinkedListOfElementsItem(new Symbol(13), 0); - instance.refToUnmarked = new LinkedElementItem(instance); - instance.setMarked(m); - assertNull(instance.refToUnmarked); - assertEquals(m.L, instance.match.L); - assertEquals(m.p, instance.match.p); - assertEquals(m.t, instance.match.t); - } - COM: <s> test of set marked method of class rkr gst </s> - diff --git a/funcom_test/2315205.txt b/funcom_test/2315205.txt deleted file mode 100644 index 994cef687cb114efb72d902790965470db1b3132..0000000000000000000000000000000000000000 --- a/funcom_test/2315205.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void sendLine(String line) throws IOException { - if (socket == null) { - throw new IOException("SimpleFTP is not connected."); - } - try { - writer.write(line + "\r\n"); - writer.flush(); - if (DEBUG) { - System.out.println("> " + line); - } - } - catch (IOException e) { - socket = null; - throw e; - } - } - COM: <s> sends a raw command to the ftp server </s> - diff --git a/funcom_test/23185729.txt b/funcom_test/23185729.txt deleted file mode 100644 index 6c4105dba85ec1c565f7532f336707680f8f0d78..0000000000000000000000000000000000000000 --- a/funcom_test/23185729.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void textAreaKeyTyped() { - if (validateText()) { - syntaxCheckLabel.setText("Syntax OK"); - syntaxCheckLabel.setForeground(COLOR_SYNTAX_OK); - } else { - syntaxCheckLabel.setText("Syntax invalid"); - syntaxCheckLabel.setForeground(COLOR_SYNTAX_NOTOK); - } - syntaxCheckLabel.setToolTipText(getUnmatchedBracketText()); - highlightInvalidLines(); - } - COM: <s> checks the text areas text for validity </s> - diff --git a/funcom_test/23186257.txt b/funcom_test/23186257.txt deleted file mode 100644 index a77261cd108bf8640fedf784dd511d8e77e66973..0000000000000000000000000000000000000000 --- a/funcom_test/23186257.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public GenericList getList(String listname) { - for (GenericList list : lists) - if (list.getName().equalsIgnoreCase(listname)) - return list; - - GenericObject l = getChild(listname); - - if (l == null) - return null; - - if (l.allWritable.isEmpty()) // which means it could have been an empty list parsed as an object with no children - return convertToList(l); - - return null; - } - COM: <s> gets the child list with the given name </s> - diff --git a/funcom_test/23186376.txt b/funcom_test/23186376.txt deleted file mode 100644 index efa94792f6905c1026501b59a922a3cdbede2a53..0000000000000000000000000000000000000000 --- a/funcom_test/23186376.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void error(final String text) { - System.out.println(filename + ": " + text); //+" on line "+tokenizer.getLine()+", column "+tokenizer.getColumn()); - JOptionPane.showMessageDialog(null, text, "Error", JOptionPane.ERROR_MESSAGE); - numErrors++; - } - COM: <s> displays an error dialog with the given text and also prints it to </s> - diff --git a/funcom_test/23186407.txt b/funcom_test/23186407.txt deleted file mode 100644 index 384f8b9544297f408ec0a2287f8a4d5108e9dba2..0000000000000000000000000000000000000000 --- a/funcom_test/23186407.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addFileHeaderComment(String comment, boolean header) { - if (comment == null || comment.length() == 0) - return; - - final Comment c = - (header ? new HeaderComment(comment) : new InlineComment(comment)); - - final GenericObject root = getRoot(); // avoid calling recursive methods more than once - root.generalComments.add(0, c); - root.allWritable.add(0, c); - } - COM: <s> adds a comment to the beginning of the root object </s> - diff --git a/funcom_test/2319170.txt b/funcom_test/2319170.txt deleted file mode 100644 index d3fce8d9f0e50230bd382c814e4ca52fc460e7f8..0000000000000000000000000000000000000000 --- a/funcom_test/2319170.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object convertFromSubject(Object subjectValue) { - if (subjectValue == null && (format instanceof NumberFormat || format instanceof DateFormat)) { - return ""; - } - if (format instanceof MessageFormat && ! (subjectValue instanceof Object[])) { - return format.format(new Object[] {subjectValue}); - } else { - return format.format(subjectValue); - } - } - COM: <s> formats the subject value and returns a string representation </s> - diff --git a/funcom_test/2319185.txt b/funcom_test/2319185.txt deleted file mode 100644 index 78afd0374ae206cf8b19bc4761d759aaff9c74e4..0000000000000000000000000000000000000000 --- a/funcom_test/2319185.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setValue(Object value) { - try { - if (format instanceof MessageFormat) { - subject.setValue(((Object[])format.parseObject((String) value))[0]); - } else { - subject.setValue(format.parseObject((String) value)); - } - } catch (ParseException e) { - // Do not change the subject value - } - } - COM: <s> parses the given string encoding and sets it as the subjects </s> - diff --git a/funcom_test/23262300.txt b/funcom_test/23262300.txt deleted file mode 100644 index ac98a481e6d0ee597da5e67bd94f7606b4392406..0000000000000000000000000000000000000000 --- a/funcom_test/23262300.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object set(final K1 firstKey, final K2 secondKey, final V value) { - // existence check on inner map - HashMap<K2, V> innerMap = map.get(firstKey); - - if( innerMap == null ) { - // no inner map, create it - innerMap = new HashMap<K2, V>(); - map.put(firstKey, innerMap); - } - - return innerMap.put(secondKey, value); -} - COM: <s> insert a value </s> - diff --git a/funcom_test/23285849.txt b/funcom_test/23285849.txt deleted file mode 100644 index 2c133833d8295243f3384fc9959da78395e11748..0000000000000000000000000000000000000000 --- a/funcom_test/23285849.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected MyRoleType generateMyRole(final PartnerLink bpelPartnerLink) { - if (bpelPartnerLink.getMyRole() == null) - return null; - - MyRoleType myRole = PddFactory.eINSTANCE.createMyRoleType(); - myRole.setAllowedRoles(""); - myRole.setBinding(MyRoleBindingType.get(MyRoleBindingType.MSG)); - myRole.setService(generateMyRoleService(bpelPartnerLink)); - - return myRole; - } - COM: <s> detects whether partner link contains my role value and if it does </s> - diff --git a/funcom_test/23285855.txt b/funcom_test/23285855.txt deleted file mode 100644 index 494b3fb3df75e4165e8311236ee58689a7b6ec77..0000000000000000000000000000000000000000 --- a/funcom_test/23285855.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String generateMyRoleService(final PartnerLink bpelPartnerLink) { - if (hasWsdlService(bpelPartnerLink)) { - Service wsdlService = DeploymentDataProvider.findWsdlService( - bpelPartnerLink, DeploymentDataProvider - .getWsdlImportsForPartnerLinkType(moduleArtifact, - bpelPartnerLink)); - return wsdlService.getQName().getLocalPart(); - } - return "" + bpelPartnerLink.getName() + "Service"; - } - COM: <s> determine whether wsdl resource for bpel partner link has a wsdl service </s> - diff --git a/funcom_test/23286083.txt b/funcom_test/23286083.txt deleted file mode 100644 index 18c0cad4a259bad2b881d76c3c965d92b805990e..0000000000000000000000000000000000000000 --- a/funcom_test/23286083.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public EList getScopePartnerLinks(final EObject process) { - TreeIterator contents = process.eAllContents(); - EList results = new BasicEList(); - - while (contents.hasNext()) { - EObject obj = (EObject) contents.next(); - - if (obj instanceof Scope) { - results.addAll(((Scope) obj).getPartnerLinks().getChildren()); - } - } - return results; - } - COM: <s> return an code elist code containing all partner link elements defined </s> - diff --git a/funcom_test/23311713.txt b/funcom_test/23311713.txt deleted file mode 100644 index 4fe86a1cbef60fc567fa03ce1506f881e970dde1..0000000000000000000000000000000000000000 --- a/funcom_test/23311713.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean removeKnowledgeSource(String url) { - Iterator<AbstractKnowledgeSource> it = knowledgeSources.iterator(); - while(it.hasNext()) { - AbstractKnowledgeSource source = it.next(); - if((source instanceof OWLFile && ((OWLFile)source).getURL().toString().equals(url)) - || (source instanceof SparqlKnowledgeSource && ((SparqlKnowledgeSource)source).getURL().toString().equals(url)) ) { - it.remove(); - return true; - } - } - return false; - } - COM: <s> removes a knowledge source with the given url independant of its type </s> - diff --git a/funcom_test/23311950.txt b/funcom_test/23311950.txt deleted file mode 100644 index 9066f797a337597dbe341ffd4cf5c520b09dc86f..0000000000000000000000000000000000000000 --- a/funcom_test/23311950.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void fireValueChanged(T value) { - ConfigEntry<T> entry = null; - try { - entry = new ConfigEntry<T>(configOption, value); - } catch (InvalidConfigOptionValueException e) { - // TODO display a message on the status bar (where the init - // has been before) - e.printStackTrace(); - } - // notify config that a value has changed -> it decides what to do - config.applyConfigEntry(component, entry); - } - COM: <s> subclasses should call this method if a configuration option </s> - diff --git a/funcom_test/23311960.txt b/funcom_test/23311960.txt deleted file mode 100644 index 28a068215bf950901989f58783013ee59469bfdf..0000000000000000000000000000000000000000 --- a/funcom_test/23311960.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean isSpecial() { - return configOption.getName().equalsIgnoreCase("positiveExamples") - || configOption.getName().equalsIgnoreCase("negativeExamples") - || configOption.getName().equalsIgnoreCase("allowedConcepts") - || configOption.getName().equalsIgnoreCase("ignoredConcepts") - || configOption.getName().equalsIgnoreCase("allowedRoles") - || configOption.getName().equalsIgnoreCase("ignoredRoles"); - - } - COM: <s> special layout returns true if 2nd layout should used </s> - diff --git a/funcom_test/23311985.txt b/funcom_test/23311985.txt deleted file mode 100644 index 9d3112c72f9a4c77d4b9b9c5582d16613580a7e3..0000000000000000000000000000000000000000 --- a/funcom_test/23311985.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void algorithmTerminated() { - // the methods called are similar to those when the stop button is pressed - stopButton.setEnabled(false); - runButton.setEnabled(true); - startGUI.enableTabbedPane(); - -// System.out.println("TEST"); - - // enable tree button - if(((config.getLearningAlgorithm() instanceof OCEL) - && (config.getLearningProblem() instanceof PosNegLPStandard)) - || (config.getLearningAlgorithm() instanceof CELOE )) { - treeButton.setEnabled(true); - } - } - COM: <s> method is called when algorithm has terminated successfully </s> - diff --git a/funcom_test/23312109.txt b/funcom_test/23312109.txt deleted file mode 100644 index 4ed3298dbbab504e636ed442c045627727daf21f..0000000000000000000000000000000000000000 --- a/funcom_test/23312109.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void enableComponentsIfPossible() { - // 0: reasoner - // 1: problem - // 2: algorithm - // 3: run - - isEnabled[0] = mandatoryOptionsSpecified(source); - isEnabled[1] = isEnabled[0] && mandatoryOptionsSpecified(reasoner); - isEnabled[2] = isEnabled[0] && isEnabled[1] && mandatoryOptionsSpecified(lp); - isEnabled[3] = isEnabled[0] && isEnabled[1] && isEnabled[2] - && mandatoryOptionsSpecified(la); - } - COM: <s> tests whether components can be enabled </s> - diff --git a/funcom_test/23312147.txt b/funcom_test/23312147.txt deleted file mode 100644 index f5dbd3b5c81991d008758e174395b544581e9f71..0000000000000000000000000000000000000000 --- a/funcom_test/23312147.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String shortForm(IRI theIRI) { - String fragment = theIRI.getFragment(); - if( fragment != null ) { - return fragment; - } - String str = theIRI.toString(); - int lastSlashIndex = str.lastIndexOf( '/' ); - if( lastSlashIndex != -1 ) { - return str.substring( lastSlashIndex + 1, str.length() ); - } - return str; - } - COM: <s> return the short form local name for a uri identifier </s> - diff --git a/funcom_test/23312665.txt b/funcom_test/23312665.txt deleted file mode 100644 index 05d887b4d43ba6e3a2e8d5f1ecab3b8ba9b05d58..0000000000000000000000000000000000000000 --- a/funcom_test/23312665.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setIconToggled(boolean toggled) { - this.toogled = toggled; - if (this.toogled) { - advancedButton.setIcon(toggledIcon); -// learnerPanel.setPreferredSize(new Dimension(WIDTH, OPTION_HEIGHT)); -// learnerScroll.setPreferredSize(new Dimension(SCROLL_WIDTH, SCROLL_HEIGHT)); - } - if (!this.toogled) { - advancedButton.setIcon(icon); -// learnerPanel.setPreferredSize(new Dimension(WIDTH, HEIGHT)); -// learnerScroll.setPreferredSize(new Dimension(SCROLL_WIDTH, SCROLL_HEIGHT)); - } - } - COM: <s> this method sets the right icon for the advanced panel </s> - diff --git a/funcom_test/23314476.txt b/funcom_test/23314476.txt deleted file mode 100644 index 1c238f143019a00672ce2e4d8ac660fcb7f19508..0000000000000000000000000000000000000000 --- a/funcom_test/23314476.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public int queryAsCount(String sparqlQueryString) { - SparqlQuery sq = new SparqlQuery(sparqlQueryString, sparqlEndpoint); - ResultSetRewindable rsw = null; - if(cache == null) { - rsw = sq.send(); - } else { - // get JSON from cache and convert to result set - String json = cache.executeSparqlQuery(sq); - rsw = SparqlQuery.convertJSONtoResultSet(json); - } - int ret = -1; - while(rsw.hasNext()){ - QuerySolution qs = rsw.nextSolution(); - ret = qs.getLiteral("count").getInt(); - - } - return ret; - - } - COM: <s> variable must be count </s> - diff --git a/funcom_test/23314482.txt b/funcom_test/23314482.txt deleted file mode 100644 index d2987f3dcea795953c42d4c333bab480efdeb5fe..0000000000000000000000000000000000000000 --- a/funcom_test/23314482.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String query(String sparqlQueryString) { - String jsonString; - if (cache == null) { - - SparqlQuery sq = new SparqlQuery(sparqlQueryString, sparqlEndpoint); - //SimpleClock sc = new SimpleClock(); - sq.send(false); - //sc.printAndSet("querysend"); - jsonString = sq.getJson(); - - } else { - jsonString = cache.executeSparqlQuery(new SparqlQuery( - sparqlQueryString, sparqlEndpoint)); - } - return jsonString; - } - COM: <s> low level executes query returns json </s> - diff --git a/funcom_test/23315020.txt b/funcom_test/23315020.txt deleted file mode 100644 index 037468d4bf29452f65a6576fe0152519d5680249..0000000000000000000000000000000000000000 --- a/funcom_test/23315020.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toConfString(String componentName) { - if (option.getName().equalsIgnoreCase("positiveExamples")) { - return option.getValueFormatting(value); - } else if (option.getName().equalsIgnoreCase("negativeExamples")) { - return option.getValueFormatting(value); - } - return componentName.toString() + "." + option.getName() + " = " - + option.getValueFormatting(value); - } - COM: <s> get a string to save into a configuration file </s> - diff --git a/funcom_test/23315708.txt b/funcom_test/23315708.txt deleted file mode 100644 index ab75e84f8950e165927ea9b0402e5b9f910926ce..0000000000000000000000000000000000000000 --- a/funcom_test/23315708.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void registerComponent(AbstractComponent component) { - components.add(component); - Map<ConfigOption<?>, Object> emptyMap = new HashMap<ConfigOption<?>, Object>(); - lastValidConfigValue.put(component, emptyMap); - configEntryHistory.put(component, new LinkedList<ConfigEntry<?>>()); - logger.debug("Component instance " + component + " added to component pool."); - } - COM: <s> registers a component instance in the pool </s> - diff --git a/funcom_test/23315711.txt b/funcom_test/23315711.txt deleted file mode 100644 index 1bb6adfbbad54e260caec421696243f414dc7812..0000000000000000000000000000000000000000 --- a/funcom_test/23315711.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void addConfigEntry(AbstractComponent component, ConfigEntry<?> entry, boolean valid) { - configEntryHistory.get(component).add(entry); - if (valid) { - lastValidConfigValue.get(component).put(entry.getOption(), entry.getValue()); - } - logger.trace("Config entry " + entry + " has been set for component " + component + " (validity: " + valid + ")."); - } - COM: <s> add a config entry change for the specified component </s> - diff --git a/funcom_test/23316364.txt b/funcom_test/23316364.txt deleted file mode 100644 index 25cddf6f37a3092cc45198ec2c8247dc043b27d6..0000000000000000000000000000000000000000 --- a/funcom_test/23316364.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public double precision(SortedSet<String> retrieved) { - if (retrieved.size() == 0) { - return 0.0d; - } - SortedSet<String> retrievedClean = new TreeSet<String>(retrieved); - retrievedClean.removeAll(posTrain); - retrievedClean.removeAll(negTrain); - - int posAsPos = Helper.intersection(retrievedClean, getPosTest()).size(); - return ((double) posAsPos) / ((double) retrievedClean.size()); - } - COM: <s> calculates precision based on the test set removes all training data from </s> - diff --git a/funcom_test/23316479.txt b/funcom_test/23316479.txt deleted file mode 100644 index e2d7aae22a2c32f43bf6231e60cddcc86bc14178..0000000000000000000000000000000000000000 --- a/funcom_test/23316479.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeTuple(TreeTuple tuple) { - relation.remove(tuple); - - in.get(tuple.getTree2()).remove(tuple.getTree1()); - if(in.get(tuple.getTree2()).isEmpty()) - in.remove(tuple.getTree2()); - - out.get(tuple.getTree1()).remove(tuple.getTree2()); - if(out.get(tuple.getTree1()).isEmpty()) - out.remove(tuple.getTree1()); - } - COM: <s> removes a tuple from the simulation </s> - diff --git a/funcom_test/23316515.txt b/funcom_test/23316515.txt deleted file mode 100644 index 682eb93e86fc4986c4fea93571a5902b7d4efc0d..0000000000000000000000000000000000000000 --- a/funcom_test/23316515.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void addNodeToLevel(ELDescriptionNode node, int level) { - nodes.add(node); - if (level <= maxLevel) { - levelNodeMapping.get(level).add(node); - } else if (level == maxLevel + 1) { - Set<ELDescriptionNode> set = new HashSet<ELDescriptionNode>(); - set.add(node); - levelNodeMapping.put(level, set); - maxLevel++; - } else { - throw new RuntimeException("Inconsistent EL description tree structure."); - } - } - COM: <s> internal method for updating the node set and the level node mapping </s> - diff --git a/funcom_test/23317344.txt b/funcom_test/23317344.txt deleted file mode 100644 index b4578194cf26219da328900a4b7be3d50955779a..0000000000000000000000000000000000000000 --- a/funcom_test/23317344.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean minExecutionTimeReached(){ - if(minExecutionTimeShown)return true; - long needed = System.currentTimeMillis()- this.runtime; - long minMilliSeconds = minExecutionTimeInSeconds *1000 ; - if(minMilliSeconds<needed){ - logger.info("Minimum time ("+minExecutionTimeInSeconds+" seconds) reached, stopping when next solution is found"); - minExecutionTimeShown=true; - return true;} - else return false; - - } - COM: <s> true if min execution time reached </s> - diff --git a/funcom_test/23317400.txt b/funcom_test/23317400.txt deleted file mode 100644 index 592ced7fd9582a4525709d2a61d36daceb1fb72a..0000000000000000000000000000000000000000 --- a/funcom_test/23317400.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: //public void setNumberOfSelectedIndividuals(int numberOfSelectedIndividuals) { - // if (algorithmType == AlgorithmType.STEADY_STATE) - // this.numberOfSelectedIndividuals = numberOfSelectedIndividuals; - // else - // System.out.println("Warning: number of selected individuals " - // + "will be ignored in a generational algorithm"); - //} - COM: <s> this method controls how many individuals will actually be selected and </s> - diff --git a/funcom_test/23317438.txt b/funcom_test/23317438.txt deleted file mode 100644 index f5487e240b24f882c6b63036dcb85e78e890a276..0000000000000000000000000000000000000000 --- a/funcom_test/23317438.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean isTooWeak(int nrOfPositiveExamples, int nrOfPosClassifiedPositives, double noise) { - if(noise < 0 || noise > 1 || nrOfPosClassifiedPositives <= nrOfPositiveExamples || nrOfPositiveExamples < 1) { - throw new IllegalArgumentException(); - } - return (noise * nrOfPositiveExamples) < (nrOfPositiveExamples - nrOfPosClassifiedPositives); - } - COM: <s> computes whether a hypothesis is too weak i </s> - diff --git a/funcom_test/23366361.txt b/funcom_test/23366361.txt deleted file mode 100644 index b32cbfdccae1d50156f371b6faed4e3283f10fda..0000000000000000000000000000000000000000 --- a/funcom_test/23366361.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public void update() { - - super.update(); - - if (((DemonstrationParameters) getParam()).getBGroup().getSelection() - .getActionCommand().equals("Debug")) { - - BufferedReader bri = new BufferedReader(new InputStreamReader( - System.in)); - System.out.println("Press Enter to continue : "); - try { - char y = (char) (bri.read()); - } catch (IOException e) { - e.printStackTrace(); - } - } - - else - // demonstration mode - { - try { - Thread.sleep(500); - } catch (InterruptedException e) { - } - } - - } - COM: <s> updates the view after an agent action </s> - diff --git a/funcom_test/23366521.txt b/funcom_test/23366521.txt deleted file mode 100644 index eb6023148a08f20d79af526c21a673faa9b221ac..0000000000000000000000000000000000000000 --- a/funcom_test/23366521.txt +++ /dev/null @@ -1,33 +0,0 @@ -TDAT: public char randomDirection() { - int m = (int) (Math.floor(Math.random() * 8)); - switch (m) { - case (0): { - return 'N'; - } - case (1): { - return 'E'; - } - case (2): { - return 'S'; - } - case (3): { - return 'W'; - } - case (4): { - return 'A'; - } - case (5): { - return 'B'; - } - case (6): { - return 'C'; - } - case (7): { - return 'D'; - } - default: - return 'a'; - } - } - COM: <s> return a direction randomly </s> - diff --git a/funcom_test/23389428.txt b/funcom_test/23389428.txt deleted file mode 100644 index 507ba23163f5373a3899b13195e594fc0d46b2c5..0000000000000000000000000000000000000000 --- a/funcom_test/23389428.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void start() { - server.gameStarted(this); - StringBuffer playerNames = new StringBuffer(""); - for (int playerId = 0; playerId<nrOfPlayers; playerId++) { - players[playerId].gameStarted(this, playerId); - playerNames.append(LIST_DELIMITER+players[playerId].getPlayerName()); - } - //verstuur start commando en postitie startsteen - try { - sendToAllPlayers(START+DELIMITER+playerNames.substring(1)); - sendToAllPlayers(MADEMOVE+DELIMITER+STARTSTEEN+DELIMITER+STARTKLEUR+DELIMITER+start_x+DELIMITER+start_y); - doMove(); - } catch(IOException e) {handleIOException();} - } - COM: <s> starts this game on the server and in the clients </s> - diff --git a/funcom_test/23389549.txt b/funcom_test/23389549.txt deleted file mode 100644 index f17e5b69b32293092876a9b148d32581c57a85b0..0000000000000000000000000000000000000000 --- a/funcom_test/23389549.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void run() { - String msg; - try { - while (true) { - msg = in.readLine(); - if(msg==null) throw new IOException(); - System.out.println("<- "+msg); - handleMessageFromServer(msg); - } - } catch (IOException e) { - if (!exit) { - closeAll(); - client.print("ERROR: Connection to server lost. Use the connect command to reconnect."); - client.connectionClosed(); - } - } - } - COM: <s> waits for messages from the server </s> - diff --git a/funcom_test/23695781.txt b/funcom_test/23695781.txt deleted file mode 100644 index d21207106ae431f19b96e90d65fcb5817911e8ed..0000000000000000000000000000000000000000 --- a/funcom_test/23695781.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initialize() { - this.setSize(667, 448); - this.setTitle("Cancel Reservation"); - this.setContentPane(getJContentPane()); - this.addWindowListener(new java.awt.event.WindowAdapter() { - public void windowOpened(java.awt.event.WindowEvent e) { - System.out.println("windowOpened()"); // TODO Auto-generated Event stub windowOpened() - } - }); - this.setTitle("JFrame"); - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/23695784.txt b/funcom_test/23695784.txt deleted file mode 100644 index eb13bf2eb58a7242ef9b73bf946766953b62d1e6..0000000000000000000000000000000000000000 --- a/funcom_test/23695784.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - jLabelResponseMessage = new JLabel(); - jLabelResponseMessage.setBounds(new Rectangle(124, 55, 333, 28)); - jLabelResponseMessage.setText("response message here"); - jContentPane = new JPanel(); - jContentPane.setLayout(null); - jContentPane.add(getJButtonHome(), null); - jContentPane.add(jLabelResponseMessage, null); - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/23695822.txt b/funcom_test/23695822.txt deleted file mode 100644 index cf37905846c18ccf3251052392cd1a967f176bb0..0000000000000000000000000000000000000000 --- a/funcom_test/23695822.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JCheckBox getJCheckBoxDonate() { - if (jCheckBoxDonate == null) { - jCheckBoxDonate = new JCheckBox(); - jCheckBoxDonate.setBounds(new Rectangle(41, 225, 378, 24)); - jCheckBoxDonate.setSelected(true); - jCheckBoxDonate.setEnabled(false); - jCheckBoxDonate.setText("Yes, I want do donate the refund to Chalmers Airline"); - } - return jCheckBoxDonate; - } - COM: <s> this method initializes j check box donate </s> - diff --git a/funcom_test/23695828.txt b/funcom_test/23695828.txt deleted file mode 100644 index 87f6fc36b2ff7e15e3b4fe8794461af25fcf1cab..0000000000000000000000000000000000000000 --- a/funcom_test/23695828.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JTextArea getJTextAreaCancelReason() { - if (jTextAreaCancelReason == null) { - jTextAreaCancelReason = new JTextArea(); - jTextAreaCancelReason.setBounds(new Rectangle(35, 100, 569, 114)); - jTextAreaCancelReason.setWrapStyleWord(true); - jTextAreaCancelReason.setLineWrap(true); - jTextAreaCancelReason.setBackground(new Color(255, 204, 204)); - } - return jTextAreaCancelReason; - } - COM: <s> this method initializes j text area cancel reason </s> - diff --git a/funcom_test/23695979.txt b/funcom_test/23695979.txt deleted file mode 100644 index 61e1a6d06d276d7cbd6ebd90d18302b02208fe8b..0000000000000000000000000000000000000000 --- a/funcom_test/23695979.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JTextArea getJTextFieldPassengerDetails() { - if (jTextFieldPassengerDetails == null) { - jTextFieldPassengerDetails = new JTextArea(); - jTextFieldPassengerDetails.setBounds(new Rectangle(32, 78, 496, 93)); - jTextFieldPassengerDetails.setBackground(new Color(181, 211, 249)); - jTextFieldPassengerDetails.setEditable(false); - jTextFieldPassengerDetails.setText("passenger details here"); - } - return jTextFieldPassengerDetails; - } - COM: <s> this method initializes j text field passenger details </s> - diff --git a/funcom_test/23794959.txt b/funcom_test/23794959.txt deleted file mode 100644 index c5dd9c0af683ae366c200f39df4cc282bc4f89fe..0000000000000000000000000000000000000000 --- a/funcom_test/23794959.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Collectingevent getCollectingevent(String stationFieldNumber) { - - logger.info("getCollectingevent - stationFieldNumber: {}", stationFieldNumber); - - try { - return service.path("search").path("collectingevent").path(stationFieldNumber).accept(MediaType.APPLICATION_JSON).get(Collectingevent.class); - } catch (Exception ex) { - logger.error(ex.getMessage()); - return null; - } - } - COM: <s> get collectingevent method call web service get collecting event by station field number </s> - diff --git a/funcom_test/23794972.txt b/funcom_test/23794972.txt deleted file mode 100644 index f4e0b0a5388d081f443c640401dc158a06e27029..0000000000000000000000000000000000000000 --- a/funcom_test/23794972.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public DataWrapper getDeterminationByTaxon(Taxon taxon, String collectionCode) { - - logger.info("getDeterminationByTaxon"); - - return service.path("search").path("determinations").path("taxon").path(String.valueOf(taxon.getTaxonID())).path(collectionCode).accept(MediaType.APPLICATION_JSON).get(DataWrapper.class); - } - COM: <s> call web service get determinations by taxon id </s> - diff --git a/funcom_test/23795279.txt b/funcom_test/23795279.txt deleted file mode 100644 index 52e882cdc8f7507ff1b385f5458017458fddd197..0000000000000000000000000000000000000000 --- a/funcom_test/23795279.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String editlist() { - - logger.info("editlist"); - - styleBean.setDialogbox(CSSName.getInstance().DIALOGBOX_INVISIBLE); - styleBean.setDialogboxedit(CSSName.getInstance().DIALOGBOXEDIT_INVISIBLE); - styleBean.setSamplelistdiv(false); - styleBean.setSamplelisteditdiv(true); - - return NavigationHandler.getInstance().SUCCESS; - } - COM: <s> navigate to list edit page </s> - diff --git a/funcom_test/23800011.txt b/funcom_test/23800011.txt deleted file mode 100644 index ee8e1a8648b8a6f364ea7f87a7241dad04e0237f..0000000000000000000000000000000000000000 --- a/funcom_test/23800011.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Collectionobject getLastCollectionobjectByGroup(String collectionCode) { - - logger.info("getLastCollectionobjectByGroup: {}", collectionCode); - - Query query = entityManager.createNamedQuery("Collectionobject.findLastRecordByCollectionCode"); - query.setParameter("code", collectionCode); - query.setMaxResults(1); - - return (Collectionobject) query.getResultList().get(0); - } - COM: <s> get last collectionobject for collection </s> - diff --git a/funcom_test/23800017.txt b/funcom_test/23800017.txt deleted file mode 100644 index f1f7d3b46646490140acbf0af3d2eb7ac3dd8769..0000000000000000000000000000000000000000 --- a/funcom_test/23800017.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Taxon getTaxonByCollectionobject(Collectionobject object) { - - Query query = entityManager.createNamedQuery("Determination.findCurrentByCollectionobjectID"); - query.setParameter("collectionObjectId", object); - query.setParameter("isCurrent", true); - Determination determination = (Determination) query.getSingleResult(); - return (determination == null) ? null : determination.getTaxon(); - } - COM: <s> get taxon by collectionobject </s> - diff --git a/funcom_test/23800126.txt b/funcom_test/23800126.txt deleted file mode 100644 index d419e7d21c4da182c4894cbe2f077978d0ce7745..0000000000000000000000000000000000000000 --- a/funcom_test/23800126.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String getNewCatalogNumber(String catalogNumber) { - - String prefix = catalogNumber.substring(0, 7); - int number = Integer.parseInt(catalogNumber.substring(7)); - - int newNumber = 1000000000 + number + 1; - String strNumber = String.valueOf(newNumber).substring(1); - return prefix.concat(strNumber); - } - COM: <s> create new catalog number </s> - diff --git a/funcom_test/23800191.txt b/funcom_test/23800191.txt deleted file mode 100644 index 76c16a4e7551bbc2670e60a4afef8bb508162153..0000000000000000000000000000000000000000 --- a/funcom_test/23800191.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getStringByXpath(String xPathExpression) throws XPathExpressionException { - - try { - XPath xPath = xPathFactory.newXPath(); - return xPath.evaluate(xPathExpression, document); - } catch (Exception ex) { - throw new XPathExpressionException("Could not get string by xpath, expression " + xPathExpression + ", msg: " + ex.getMessage()); - } - } - COM: <s> get string by xpath </s> - diff --git a/funcom_test/23800269.txt b/funcom_test/23800269.txt deleted file mode 100644 index 284b571a93355bddbbdab03d0150a7c81f9ebcfc..0000000000000000000000000000000000000000 --- a/funcom_test/23800269.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: @Test - public void testGetViewDataMap() throws Exception { - - logger.info("testGetViewDataMap"); - - Map expResult = new HashMap(); - Map result = testInstance.getViewDataMap(); - - assertEquals(expResult, result); - assertEquals(0, result.size()); - - testInstance.createDisciplineView(viewname); - assertEquals(1, result.size()); - } - COM: <s> test of get view data map method of class view creator </s> - diff --git a/funcom_test/23801071.txt b/funcom_test/23801071.txt deleted file mode 100644 index e67831c3bb738e08acca5572cc41d73c43730c52..0000000000000000000000000000000000000000 --- a/funcom_test/23801071.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("geolocatesvcSoap".equals(portName)) { - setgeolocatesvcSoapEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/23857289.txt b/funcom_test/23857289.txt deleted file mode 100644 index b0542e58980054ef3ff66604cce3a6781e14f1c3..0000000000000000000000000000000000000000 --- a/funcom_test/23857289.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Header toHeader() { - StringBuilder builder = new StringBuilder(); - for (int i = 0; i < values.size() - 1; i++) { - builder.append(values.elementAt(i) + ", "); - } - if (values.size() > 0) { - builder.append(values.elementAt(values.size() - 1)); - } - return new Header(headerType, builder.toString()); - } - COM: <s> gets an header containing the comma separated compact representation </s> - diff --git a/funcom_test/23857488.txt b/funcom_test/23857488.txt deleted file mode 100644 index afffe7b8789715a10d7a0d0c1b5f8ff8400a2d36..0000000000000000000000000000000000000000 --- a/funcom_test/23857488.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void unregisterall() { - attempts = 0; - Message req = MessageFactory.createRegisterRequest(sip_provider, - target, target, null); - // ContactHeader contact_star=new ContactHeader(); // contact is * - // req.setContactHeader(contact_star); - req.setExpiresHeader(new ExpiresHeader(String.valueOf(0))); - printLog("Unregistering all contacts", LogLevel.HIGH); - TransactionClient t = new TransactionClient(sip_provider, req, this); - t.request(); - } - COM: <s> unregister all contacts with the registrar server </s> - diff --git a/funcom_test/23857511.txt b/funcom_test/23857511.txt deleted file mode 100644 index 75631de28841761e02f286c379c12233f5b78cbe..0000000000000000000000000000000000000000 --- a/funcom_test/23857511.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void onTransTimeout(TransactionClient transaction) { - if (transaction.getTransactionMethod().equals(SipMethods.REGISTER)) { - printLog("Registration failure: No response from server.", LogLevel.HIGH); - registered = false; - if (listener != null) { - listener.onUaRegistrationFailure(this, target, contact, "Timeout"); - } - } - } - COM: <s> callback function called when client expires timeout </s> - diff --git a/funcom_test/23857639.txt b/funcom_test/23857639.txt deleted file mode 100644 index 718877dc95d2fa2798dc04861347faca94acecea..0000000000000000000000000000000000000000 --- a/funcom_test/23857639.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void onCallModifying(Call call, String sdp, Message invite) { - printLog("onCallModifying()", LogLevel.LOW); - if (call != this.call) { - printLog("NOT the current call", LogLevel.LOW); - return; - } - printLog("RE-INVITE/MODIFY", LogLevel.HIGH); - // to be implemented. - // currently it simply accepts the session changes (see method - // onCallModifying() in CallListenerAdapter) - super.onCallModifying(call, sdp, invite); - } - COM: <s> callback function called when arriving a new re invite method </s> - diff --git a/funcom_test/23857642.txt b/funcom_test/23857642.txt deleted file mode 100644 index 6369d41d96fde88d1aa46fbb17bbf3f43af57813..0000000000000000000000000000000000000000 --- a/funcom_test/23857642.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void onCallRinging(Call call, Message resp) { - printLog("onCallRinging()", LogLevel.LOW); - if (call != this.call && call != callTransfer) { - printLog("NOT the current call", LogLevel.LOW); - return; - } - printLog("RINGING", LogLevel.HIGH); - if (listener != null) - listener.onUaCallRinging(this); - } - COM: <s> callback function that may be overloaded extended </s> - diff --git a/funcom_test/23857648.txt b/funcom_test/23857648.txt deleted file mode 100644 index d466673fdbac7ba57a0fe31cab93bbdadf68e269..0000000000000000000000000000000000000000 --- a/funcom_test/23857648.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void onCallConfirmed(Call call, String sdp, Message ack) { - printLog("onCallConfirmed()", LogLevel.LOW); - if (call != this.call) { - printLog("NOT the current call", LogLevel.LOW); - return; - } - printLog("CONFIRMED/CALL", LogLevel.HIGH); - changeStatus(UA_ONCALL); - // play "on" sound - if (userProfile.hangup_time > 0) - this.automaticHangup(userProfile.hangup_time); - } - COM: <s> callback function called when arriving an ack method call confirmed </s> - diff --git a/funcom_test/23857671.txt b/funcom_test/23857671.txt deleted file mode 100644 index 45f21f5a6e10daf670f41e659ea880055400d04b..0000000000000000000000000000000000000000 --- a/funcom_test/23857671.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void onCallTimeout(Call call) { - printLog("onCallTimeout()", LogLevel.LOW); - if (call != this.call) { - printLog("NOT the current call", LogLevel.LOW); - return; - } - printLog("NOT FOUND/TIMEOUT", LogLevel.HIGH); - changeStatus(UA_IDLE); - if (call == callTransfer) { - int code = 408; - String reason = "Request Timeout"; - this.call.notify(code, reason); - callTransfer = null; - } - if (listener != null) - listener.onUaCallFailed(this); - } - COM: <s> callback function called when the invite expires </s> - diff --git a/funcom_test/23857738.txt b/funcom_test/23857738.txt deleted file mode 100644 index d3f6afbb31496a1b7c28f764dbb5aca1f60fc271..0000000000000000000000000000000000000000 --- a/funcom_test/23857738.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int indexOfHeader(String hname) { - if (str.startsWith(hname, index)) - return index; - String[] target = { '\n' + hname, '\r' + hname }; - SipParser par = new SipParser(str, index); - // par.goTo(target); - par.goToIgnoreCase(target); - if (par.hasMore()) - par.skipChar(); - return par.getPos(); - } - COM: <s> returns the index of the begin of the first occurence of the header </s> - diff --git a/funcom_test/23857755.txt b/funcom_test/23857755.txt deleted file mode 100644 index d220336e86df13896b27adb028967ae1edf7fd26..0000000000000000000000000000000000000000 --- a/funcom_test/23857755.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Header getHeader() { - // TODO: make this work with compact headers - if (!hasMore()) - return null; - int begin = getPos(); - int end = indexOfEOH(); - String header_str = getString(end - begin); - goToNextLine(); - int colon = header_str.indexOf(':'); - if (colon < 0) - return null; - String hname = header_str.substring(0, colon).trim(); - String hvalue = header_str.substring(++colon).trim(); - return new Header(SipHeaderType.valueOf(hname), hvalue); - } - COM: <s> returns the first header and goes to the next line </s> - diff --git a/funcom_test/23857759.txt b/funcom_test/23857759.txt deleted file mode 100644 index f5664c733452d91e5d8030edc8b8b41b55f28718..0000000000000000000000000000000000000000 --- a/funcom_test/23857759.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Header getHeader(String hname) { - // TODO: make this work with compact headers - SipParser par = new SipParser(str, indexOfHeader(hname)); - if (!par.hasMore()) - return null; - par.skipN(hname.length()); - int begin = par.indexOf(':') + 1; - int end = par.indexOfEOH(); - if (begin > end) - return null; - String hvalue = str.substring(begin, end).trim(); - index = end; - return new Header(SipHeaderType.fromString(hname), hvalue); - } - COM: <s> returns the first occurence of header i hname i </s> - diff --git a/funcom_test/23857769.txt b/funcom_test/23857769.txt deleted file mode 100644 index 42f7263cd94422b49a1493338f13f5906a14dbc5..0000000000000000000000000000000000000000 --- a/funcom_test/23857769.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: /* - * public SipParser skipNameAddress() { int begin_url=indexOf("<sip:"); if - * (begin_url<0) begin_url=indexOf("sip:"); if (begin_url<0) - * index=str.length(); else { goTo(uri_separators); - * skipChars(uri_separators); } return this; } - COM: <s> skips the first name address </s> - diff --git a/funcom_test/23857770.txt b/funcom_test/23857770.txt deleted file mode 100644 index 049e849b166404c61d5f20d971706ad10d98bf6c..0000000000000000000000000000000000000000 --- a/funcom_test/23857770.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: /* - * public String parseQuotedString() { int begin=str.indexOf('\"',index); if - * (begin<0) return null; begin++; int end=str.indexOf('\"',begin); String - * quotedtext=str.substring(begin,end); index=end; return quotedtext; } - COM: <s> returns the first quoted string in the string i str i if no </s> - diff --git a/funcom_test/23857773.txt b/funcom_test/23857773.txt deleted file mode 100644 index bc3550fce76b12a09ce56ef8b41ade5a39b8fc8a..0000000000000000000000000000000000000000 --- a/funcom_test/23857773.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Date getDate() { - // DateFormat df=new - // SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'",Locale.US); - try { // Date d=df.parse(str,new ParsePosition(index)); - Date d = DateFormat.parseEEEddMMM(str, index); - index = str.indexOf("GMT", index) + 3; - return d; - } catch (Exception e) { - e.printStackTrace(); - index = str.length(); - return null; - } - } - COM: <s> returns a date object according with the sip standard date format </s> - diff --git a/funcom_test/23857997.txt b/funcom_test/23857997.txt deleted file mode 100644 index e4297b4ea3c4db821da59a0d942a2554a16e86cf..0000000000000000000000000000000000000000 --- a/funcom_test/23857997.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void onTransAckTimeout(AckTransactionServer ts) { - printLog("inside onAckSrvTimeout(ts)", LogLevel.LOW); - if (!verifyStatus(statusIs(D_ACCEPTED) || statusIs(D_ReACCEPTED) - || statusIs(D_REFUSED) || statusIs(D_ReREFUSED))) - return; - printLog("No ACK received..", LogLevel.HIGH); - changeStatus(D_CLOSE); - listener.onDlgClose(this); - } - COM: <s> when the ack transaction server goes into the terminated state caused by </s> - diff --git a/funcom_test/23858004.txt b/funcom_test/23858004.txt deleted file mode 100644 index b60f3585fc8b5069eafe34e4414e71eff5e84b34..0000000000000000000000000000000000000000 --- a/funcom_test/23858004.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void removeConnection(ConnectionIdentifier conn_id) { - if (connections.containsKey(conn_id)) { - ConnectedTransport conn = (ConnectedTransport) connections - .get(conn_id); - conn.halt(); - connections.remove(conn_id); - // DEBUG log: - printLog("active connenctions:", LogLevel.LOW); - for (Enumeration<ConnectedTransport> e = connections.elements(); e.hasMoreElements();) { - ConnectedTransport co = (ConnectedTransport) e.nextElement(); - printLog("conn " + co.toString(), LogLevel.LOW); - } - } - } - COM: <s> removes a connection </s> - diff --git a/funcom_test/23858049.txt b/funcom_test/23858049.txt deleted file mode 100644 index 118d49efc10932c563006f1bc6bffa2aa95e8858..0000000000000000000000000000000000000000 --- a/funcom_test/23858049.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void onTransportTerminated(Transport transport, Exception error) { - printLog("transport " + transport + " terminated", LogLevel.MEDIUM); - if (transport.getProtocol().equals(Protocol.TCP.informalName)) { - ConnectionIdentifier conn_id = new ConnectionIdentifier( - (ConnectedTransport) transport); - removeConnection(conn_id); - } - if (error != null) - printException(error, LogLevel.HIGH); - } - COM: <s> when transport terminates </s> - diff --git a/funcom_test/23858201.txt b/funcom_test/23858201.txt deleted file mode 100644 index 716f3e68509a0bb5d9e7a9a40d8bd0b6db6cdbe1..0000000000000000000000000000000000000000 --- a/funcom_test/23858201.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void insert(Hashtable<String, Date> table, String call_id, Date time) { - if (!invite_dates.containsKey(call_id) - && !accepted_dates.containsKey(call_id) - && !refused_dates.containsKey(call_id) - && !bye_dates.containsKey(call_id)) - ; - { - if (calls.size() >= MAX_SIZE) { - String call_0 = (String) calls.elementAt(0); - invite_dates.remove(call_0); - accepted_dates.remove(call_0); - refused_dates.remove(call_0); - bye_dates.remove(call_0); - callers.remove(call_0); - callees.remove(call_0); - calls.removeElementAt(0); - } - calls.addElement(call_id); - } - table.put(call_id, time); - } - COM: <s> insters updates a call state table </s> - diff --git a/funcom_test/23858537.txt b/funcom_test/23858537.txt deleted file mode 100644 index bb6fe85a4e2e02458b7de8b822f954fcf6ac1e4e..0000000000000000000000000000000000000000 --- a/funcom_test/23858537.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void write(byte[] b, int off, int len) throws IOException { - if (output_stream != null) { - output_stream.write(b, off, len); - len = input_stream.read(buff, 0, buff.length); - source_line.write(buff, 0, len); - } else { - source_line.write(b, off, len); - } - } - COM: <s> writes len bytes from the specified byte array starting at offset off to </s> - diff --git a/funcom_test/23858550.txt b/funcom_test/23858550.txt deleted file mode 100644 index bec4c670e15af9a175581b21db4ed7a95f594b73..0000000000000000000000000000000000000000 --- a/funcom_test/23858550.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void close() throws IOException { - for (Enumeration<SplitterLine> e = splitter_lines.elements(); e.hasMoreElements();) { - ((SplitterLine) e.nextElement()).close(); - } - for (Enumeration<MixerLine> e = mixer_lines.elements(); e.hasMoreElements();) { - ((MixerLine) e.nextElement()).close(); - } - mixer_lines = null; - splitter_lines = null; - } - COM: <s> close the mixer </s> - diff --git a/funcom_test/23858587.txt b/funcom_test/23858587.txt deleted file mode 100644 index dfe250d60c8aa9abb3aff1a5c1fe55c5596167f3..0000000000000000000000000000000000000000 --- a/funcom_test/23858587.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public int read() throws IOException { - int sum = 0; - int count = 0; - int err_code = 0; - for (Enumeration<InputStream> e = input_lines.elements(); e.hasMoreElements();) { - InputStream is = (InputStream) e.nextElement(); - if (is.available() > 0) - ; - { - int value = is.read(); - if (value > 0) { - count++; - sum += G711.ulaw2linear(value); - } else - err_code = value; - } - } - if (count > 0 || err_code == 0) - return G711.linear2ulaw(sum); - else - return err_code; - } - COM: <s> reads the next byte of data from the input stream </s> - diff --git a/funcom_test/2389188.txt b/funcom_test/2389188.txt deleted file mode 100644 index 3f859bddcaf8e7bde63a766cd999f18a91ef87f1..0000000000000000000000000000000000000000 --- a/funcom_test/2389188.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void updateRoom(Room room) { - this.room = room; - roomIdField.setText(String.valueOf(room.getID())); - roomSymbolField.setText(String.valueOf(room.getSymbol())); - textColorButton.setBackground(room.getTextColor()); - backgroundColorButton.setBackground(room.getBackgroundColor()); - } - COM: <s> facade method for setting all the information </s> - diff --git a/funcom_test/2389219.txt b/funcom_test/2389219.txt deleted file mode 100644 index a817044204c4c801893633c1363cf9c0ebe63357..0000000000000000000000000000000000000000 --- a/funcom_test/2389219.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Dimension getPreferredScrollableViewportSize(){ - //return new Dimension(500,500); - //return new Dimension(((int) maxSE.getX()) * (BOX_WIDTH_HEIGHT + BOX_SPACING) + PADDING, ((int) maxSE.getY()) * (BOX_WIDTH_HEIGHT + BOX_SPACING) + PADDING); - return getPreferredSize(); - } - COM: <s> returns the preferred size of the viewport for a view component </s> - diff --git a/funcom_test/2389624.txt b/funcom_test/2389624.txt deleted file mode 100644 index 39ab33b7a3e3e4044713a26a3c1eb6f711ffaf06..0000000000000000000000000000000000000000 --- a/funcom_test/2389624.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Point translatePoint(Point p, CoordinateOrigin mode){ - Point newPoint = new Point(p); - // get the direction's translation, then run it through the translation mode translator - Point translation = mode.getTranslation(getTranslation()); - newPoint.translate((int)translation.getX(), (int)translation.getY()); - return newPoint; - } - COM: <s> translate a point according to a direction and a translation mode </s> - diff --git a/funcom_test/23913070.txt b/funcom_test/23913070.txt deleted file mode 100644 index c37f178eeb4e2dd7ebf82e8651224c7bc464c613..0000000000000000000000000000000000000000 --- a/funcom_test/23913070.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private HtmlAnchor findFirstPhoto(HtmlPage photoPage) { - /* - * Search any photo - */ - Node divPhoto = JDOMXMLUtil.findNodeWithAttribute(photoPage, "div", "class", "photo"); - - if (divPhoto != null) { - /* - * Return the photo link - */ - return (HtmlAnchor) JDOMXMLUtil.findNode(divPhoto, "a"); - } - - return null; - } - COM: <s> return the first photo link of the gallery </s> - diff --git a/funcom_test/23990416.txt b/funcom_test/23990416.txt deleted file mode 100644 index 04170a2d6f58ce9a3222f9e20335ee95aae1f26d..0000000000000000000000000000000000000000 --- a/funcom_test/23990416.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - if (e.getActionCommand().compareTo("Copy") == 0) { - this.copy(); - } - if (e.getActionCommand().compareTo("Paste") == 0) { - this.paste(); - } - if (e.getActionCommand().compareTo("Cut") == 0) { - this.cut(); - } - } - COM: <s> this method is activated on the keystrokes we are listening to </s> - diff --git a/funcom_test/24041795.txt b/funcom_test/24041795.txt deleted file mode 100644 index eddd7f51a11dba8bca6f6f1b03dd25274f4e6d87..0000000000000000000000000000000000000000 --- a/funcom_test/24041795.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public boolean migrate(Connection connection) throws SQLException, DBException { - Statement statement = connection.createStatement(); - - SQLException e2 = null; - try { - try { - return tTicket.createTable(statement); - } catch (SQLException e) { - e2 = e; - } - - if (e2 != null) { - StringBuilder msg = new StringBuilder(); - msg.append("Table creation failed: "); - boolean first = true; - first = appendError(msg, first, e2); - throw new DBException(msg.toString()); - } - } finally { - statement.close(); - } - - return false; - } - COM: <s> migrate an existing schema of version 3 or below to schema version 4 </s> - diff --git a/funcom_test/24041999.txt b/funcom_test/24041999.txt deleted file mode 100644 index 0839f2c01de466df73a477c553ba0aa6634824be..0000000000000000000000000000000000000000 --- a/funcom_test/24041999.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean visible(Rectangle area, Bounds bounds) { - if (bounds.getX() + bounds.getWidth() <= area.x) { - return false; - } - if (bounds.getY() + bounds.getHeight() <= area.y) { - return false; - } - if (bounds.getX() >= area.x + area.width) { - return false; - } - if (bounds.getY() >= area.y + area.height) { - return false; - } - return true; - } - COM: <s> whether the given bounds are visible in the given area </s> - diff --git a/funcom_test/240602.txt b/funcom_test/240602.txt deleted file mode 100644 index 4ba1286d3b394178496f65e4d69d8268cc47de16..0000000000000000000000000000000000000000 --- a/funcom_test/240602.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getOrderStatusById(String useorder_id) { - for (appTransaction current : client.getTransactions().getTransactions()) { - if (current.getTypeID()==offer.getType()&&(((offer)current).getOrderID().equalsIgnoreCase(useorder_id))) { - return ((offer)current).getStatusString(); - } - - } - return "";// ID not found //$NON-NLS-1$ - } - COM: <s> get the status of an order by its oder id </s> - diff --git a/funcom_test/24069876.txt b/funcom_test/24069876.txt deleted file mode 100644 index 7118a6d32987cddfee9d47210a463c1991999e71..0000000000000000000000000000000000000000 --- a/funcom_test/24069876.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public V getValue(K key) { - V ret = null; - - // Search for a value on this object's level - for(KeyValue<K,V> kv : parameters) { - if(kv.getKey().equals(key)) { - ret = kv.getValue(); - } - } - - // Search for a value on a level above if no entry was found - if(ret == null) { - if(topscopeParamaters != null) { - ret = topscopeParamaters.getValue(key); - } - } - - return ret; - } - COM: <s> returns the valid value for a given key in this parameters hierarchy </s> - diff --git a/funcom_test/240835.txt b/funcom_test/240835.txt deleted file mode 100644 index 9ba85327c35fa56d27b1e0f6755f8447c851e7a0..0000000000000000000000000000000000000000 --- a/funcom_test/240835.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void syncWithWebshop() { - try { - table.removeAll(); - browser.setText(""); //$NON-NLS-1$ - new ProgressMonitorDialog(getShell()).run(true, true, - webshopimporter); - webshopimporter.fillTableWithOrderInformation(table); - browser.setText(webshopimporter.getRunResult()); - } catch (InvocationTargetException ite) { - ite.printStackTrace(); - } catch (InterruptedException ie) { - ie.printStackTrace(); - } - - } - COM: <s> synchronize the data with the web shop </s> - diff --git a/funcom_test/24096183.txt b/funcom_test/24096183.txt deleted file mode 100644 index 75aefef4980264976e3086c88ac8a42ff3157858..0000000000000000000000000000000000000000 --- a/funcom_test/24096183.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Object invoke(String filter, Object... args) throws IOException { - Object args2[] = new Object[args.length + 1]; - System.arraycopy(args, 0, args2, 1, args.length); - args2[0] = this; - Object result = wrapper.invoke(filter, args2); - return result; - } - COM: <s> a convenience method allowing invoke with the first parameter being this </s> - diff --git a/funcom_test/24096203.txt b/funcom_test/24096203.txt deleted file mode 100644 index 0f0a1a28e65e9c199a829e0e607fde2092f2e70e..0000000000000000000000000000000000000000 --- a/funcom_test/24096203.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void run() { - try { - JAviSynth w = JAviSynth.getInstance(); - PClip clip = (PClip) w.invoke("Version"); - PClip clip2 = (PClip) w.invoke("ReduceBy2", clip); - new SimpleViewer(clip2); - } catch (IOException e) { - e.printStackTrace(); - } - } - COM: <s> this example just shows the version smaller </s> - diff --git a/funcom_test/241382.txt b/funcom_test/241382.txt deleted file mode 100644 index 1f18a64fa0ad77cefa7a07d58a89ef646907e30e..0000000000000000000000000000000000000000 --- a/funcom_test/241382.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void getTransactionTypesFromDB() { - - allTypes.clear(); - List retrievals = DB.getEntityManager().createQuery("SELECT t FROM transactionType t").getResultList(); //$NON-NLS-1$ - int currentTransaction = 0; - for (Iterator iter = retrievals.iterator(); iter.hasNext();) { - transactionType currentlyRetrieved = (transactionType)iter.next(); - getInstanceByTypeIndex(currentTransaction).setType(currentlyRetrieved); - allTypes.add(currentlyRetrieved); - currentTransaction++; - } - } - COM: <s> loads the number formats the current transaction numbers etc </s> - diff --git a/funcom_test/241383.txt b/funcom_test/241383.txt deleted file mode 100644 index cfe09774523ed1b2dcb1f54e0fdfd179f29ea26e..0000000000000000000000000000000000000000 --- a/funcom_test/241383.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void getTransactionsFromDB() { - if (allTransactions==null) { - allTransactions=new Vector<appTransaction>(); - } else { - allTransactions.clear(); - - } - - - List retrievals = DB.getEntityManager().createQuery("SELECT t FROM appTransaction t").getResultList(); //$NON-NLS-1$ - int currentTransaction = 0; - for (Iterator iter = retrievals.iterator(); iter.hasNext();) { - appTransaction currentlyRetrieved = (appTransaction)iter.next(); - allTransactions.add(currentlyRetrieved); - currentTransaction++; - } - } - COM: <s> loads all performed transactions </s> - diff --git a/funcom_test/241625.txt b/funcom_test/241625.txt deleted file mode 100644 index e76d6e51638593727c7c1e82fb66056736d91fcd..0000000000000000000000000000000000000000 --- a/funcom_test/241625.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Date getCompletePeriodStart() { - Calendar cal = Calendar.getInstance(); - - Date startDate = cal.getTime(); - for (entry currentEntry : client.getEntries().getJournal(false)) { - if (currentEntry.getDate().getTime() < startDate.getTime()) { - startDate = currentEntry.getDate(); - } - } - return startDate; - } - COM: <s> returns a calendar with the date of the first entry in the journal </s> - diff --git a/funcom_test/241627.txt b/funcom_test/241627.txt deleted file mode 100644 index 68a29e26340ac21d25985cbe9cafecf95127331b..0000000000000000000000000000000000000000 --- a/funcom_test/241627.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Date getCompletePeriodEnd() { - Calendar cal = Calendar.getInstance(); - - Date endDate = cal.getTime(); - for (entry currentEntry : client.getEntries().getJournal(false)) { - if (currentEntry.getDate().getTime() > endDate.getTime()) { - endDate = currentEntry.getDate(); - } - } - return endDate; - } - COM: <s> returns a calendar with the date of the last entry in the journal </s> - diff --git a/funcom_test/241629.txt b/funcom_test/241629.txt deleted file mode 100644 index 36e1eb3655f08011ecb4b6527d3e033e387c0079..0000000000000000000000000000000000000000 --- a/funcom_test/241629.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void updateEntryInJournal(entry currentEntry) { - if (currentEntry.getDate().getTime()<firstEntry.getTime()) { - firstEntry=currentEntry.getDate(); - } - if (currentEntry.getDate().getTime()>lastEntry.getTime()) { - lastEntry=currentEntry.getDate(); - } - - journal.put(currentEntry.getID(), currentEntry); - } - COM: <s> update an existing entry in the journal or add a new one </s> - diff --git a/funcom_test/24216158.txt b/funcom_test/24216158.txt deleted file mode 100644 index c29bebaf0fb590702eed68c18a42595f84505343..0000000000000000000000000000000000000000 --- a/funcom_test/24216158.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public List search(String query, Map parameters, int maxResults) throws SwizzleException, ConfluenceException { - Object[] vector = (Object[]) call("search", query, parameters, new Integer(maxResults)); - return toList(vector, SearchResult.class); - } - COM: <s> returns a list of </s> - diff --git a/funcom_test/24243899.txt b/funcom_test/24243899.txt deleted file mode 100644 index 16e1ffa12ecbe73c7d60d80e3636dd63fca874f0..0000000000000000000000000000000000000000 --- a/funcom_test/24243899.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public float getReading(int i, RangeReadings rr, RangeMap map) { - Pose tempPose = new Pose(); - tempPose.setLocation(pose.getLocation()); - tempPose.setHeading(pose.getHeading() + rr.getAngle(i)); - return map.range(tempPose); - } - COM: <s> get a specific reading </s> - diff --git a/funcom_test/24243957.txt b/funcom_test/24243957.txt deleted file mode 100644 index cb36c7a8f90c0a649109ec60ca2e7cdbe2021e80..0000000000000000000000000000000000000000 --- a/funcom_test/24243957.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void calculateWeights(RangeReadings rr, RangeMap map) { - maxWeight = 0f; - for (int i = 0; i < numParticles; i++) { - particles[i].calculateWeight(rr, map, twoSigmaSquared); - float weight = particles[i].getWeight(); - if (weight > maxWeight) { - maxWeight = weight; - } - } - } - COM: <s> calculate the weight for each particle </s> - diff --git a/funcom_test/24244081.txt b/funcom_test/24244081.txt deleted file mode 100644 index 238890ff5fa48667ac7ad6ad9f69a260617eb79f..0000000000000000000000000000000000000000 --- a/funcom_test/24244081.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void loadEstimation(DataInputStream dis) throws IOException { - estimatedX = dis.readFloat(); - estimatedY = dis.readFloat(); - estimatedAngle = dis.readFloat(); - minX = dis.readFloat(); - maxX = dis.readFloat(); - minY = dis.readFloat(); - maxY = dis.readFloat(); - } - COM: <s> load serialized estimated pose from a data input stream </s> - diff --git a/funcom_test/24244171.txt b/funcom_test/24244171.txt deleted file mode 100644 index 931cdfae6fd912e181ef56ed82b36ccda720c26d..0000000000000000000000000000000000000000 --- a/funcom_test/24244171.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int sendData(int register, byte value) { - byte [] txData = {address, (byte) register, value}; - try { - int ret = nxtCommand.LSWrite(this.port, txData, (byte)0); - return ret; - } catch (IOException ioe) { - System.out.println(ioe.getMessage()); - return -1; - } - } - COM: <s> sets a single byte in the i2 c sensor </s> - diff --git a/funcom_test/24244174.txt b/funcom_test/24244174.txt deleted file mode 100644 index 4e47f2b69aca2b170869e2065a428084e261f628..0000000000000000000000000000000000000000 --- a/funcom_test/24244174.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int sendData(int register, byte [] data, int length) { - byte [] txData = {address, (byte) register}; - byte [] sendData = new byte[length+2]; - System.arraycopy(txData,0,sendData,0,2); - System.arraycopy(data,0,sendData,2,length); - try { - return nxtCommand.LSWrite(this.port, sendData, (byte)0); - } catch (IOException ioe) { - System.out.println(ioe.getMessage()); - return -1; - } - } - COM: <s> send data top the sensor </s> - diff --git a/funcom_test/24244188.txt b/funcom_test/24244188.txt deleted file mode 100644 index 8dc3bea22064723bdd8ca82ea1e3d8288cf73ae5..0000000000000000000000000000000000000000 --- a/funcom_test/24244188.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String fetchString(int constantEnumeration, int rxLength) { - byte [] stringBytes = new byte[rxLength]; - getData(constantEnumeration, stringBytes, rxLength); - - // Get rid of everything after 0. - int zeroPos = 0; - for(zeroPos = 0;zeroPos < rxLength;zeroPos++) { - if(stringBytes [zeroPos] == 0) break; - } - String s = new String(stringBytes).substring(0,zeroPos); - return s; - } - COM: <s> helper method for retrieving string constants using i2 c protocol </s> - diff --git a/funcom_test/24244277.txt b/funcom_test/24244277.txt deleted file mode 100644 index 291c9059b7af7bca6466ab0959cfac23adb9fc49..0000000000000000000000000000000000000000 --- a/funcom_test/24244277.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void loadAllServos(){ - int I2C_Response; - byte h_byte; - byte l_byte; - - int channel = 1023; - h_byte = (byte)0xe0; //0xe0 | (0x00 >>(byte)8); //?? - l_byte = (byte)channel; - - //High Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, h_byte); - - //Low Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, l_byte); - } - COM: <s> load all servos connected this this lsc </s> - diff --git a/funcom_test/24244280.txt b/funcom_test/24244280.txt deleted file mode 100644 index 23a49fd8f71d67e245a704e7386fbd111c1496a1..0000000000000000000000000000000000000000 --- a/funcom_test/24244280.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void unloadAllServos(){ - int I2C_Response; - byte h_byte; - byte l_byte; - - int channel = 0x00; - h_byte = (byte)0xe0; //0xe0 | (0x00 >>(byte)8); //?? - l_byte = (byte)channel; - - //High Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, h_byte); - - //Low Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, l_byte); - } - COM: <s> unload all servos connected in a lsc </s> - diff --git a/funcom_test/24244305.txt b/funcom_test/24244305.txt deleted file mode 100644 index 455f4ea53f185943ddf0c58c01b9bf9e95db4920..0000000000000000000000000000000000000000 --- a/funcom_test/24244305.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Rectangle getRectangle(int id) { - for(int i=0;i<4;i++) buf[i] = 0; - getData(0x44 + (id * 5), buf, 4); - return new Rectangle(buf[0] & 0xFF, buf[1] & 0xFF, - (buf[2] & 0xFF) - (buf[0] & 0xFF), - (buf[3] & 0xFF) - (buf[1] & 0xFF)); - } - COM: <s> get the rectangle containing a tracked object </s> - diff --git a/funcom_test/24244436.txt b/funcom_test/24244436.txt deleted file mode 100644 index 82429a6117227e4b0207fa83c623cd8462810262..0000000000000000000000000000000000000000 --- a/funcom_test/24244436.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setDelay(int delay){ - int I2C_Response; - byte h_byte; - byte l_byte; - - int motor = LSC_position; - h_byte = (byte)0xF0; - l_byte = (byte)(((motor)<<4) + delay); - - I2C_Response = this.sendData((int)this.SPI_PORT, h_byte); - I2C_Response = this.sendData((int)this.SPI_PORT, l_byte); - } - COM: <s> set a delay in a motor </s> - diff --git a/funcom_test/24244448.txt b/funcom_test/24244448.txt deleted file mode 100644 index 0ed03932fe3e55a1751bbc290b388b38d68fa40e..0000000000000000000000000000000000000000 --- a/funcom_test/24244448.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void load(){ - int I2C_Response; - byte h_byte; - byte l_byte; - - int channel = 0x00; - channel = arrMotorLoad[LSC_position]; - - h_byte = (byte)0xe0; //0xe0 | (0x00 >>(byte)8); //?? - l_byte = (byte)channel; - - //High Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, h_byte); - - //Low Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, l_byte); - } - COM: <s> load servo located in a position x </s> - diff --git a/funcom_test/24244461.txt b/funcom_test/24244461.txt deleted file mode 100644 index 9ac60bbf756ad6416bab081b9924a834ddd52fe8..0000000000000000000000000000000000000000 --- a/funcom_test/24244461.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void setPulse(int pulse){ - int I2C_Response; - byte h_byte; - byte l_byte; - - int servo = LSC_position; - h_byte = (byte)(0x80 | ((servo<<3) | (pulse >>8))); - l_byte = (byte)pulse; - - //High Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, h_byte); - - //Low Byte Write - I2C_Response = this.sendData((int)this.SPI_PORT, l_byte); - } - COM: <s> this class set the pulse over a rc servo or a dc motor </s> - diff --git a/funcom_test/24244578.txt b/funcom_test/24244578.txt deleted file mode 100644 index c481b8a2f15e4c240b0898db517bd198676bdd34..0000000000000000000000000000000000000000 --- a/funcom_test/24244578.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private byte sendRequest(byte[] request, int replyLen) throws IOException { - byte verify = 0; // default of 0 means success - if (verifyCommand) - request[0] = DIRECT_COMMAND_REPLY; - - byte[] reply = nxtComm.sendRequest(request, - (request[0] == DIRECT_COMMAND_REPLY ? replyLen : 0)); - if (request[0] == DIRECT_COMMAND_REPLY) { - verify = reply[2]; - } - return verify; - } - COM: <s> small helper method to send direct command request to nxt and return </s> - diff --git a/funcom_test/24244666.txt b/funcom_test/24244666.txt deleted file mode 100644 index b8207e54b3710984270eae73f0a5c6fd8157cd25..0000000000000000000000000000000000000000 --- a/funcom_test/24244666.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void connect() { - NXTConnector conn = new NXTConnector(); - - if (!conn.connectTo(nxtName, null, NXTCommFactory.BLUETOOTH)) { - error("NO NXT found"); - } - - System.out.println("Connected to " + nxtName); - - dis = conn.getDataIn(); - dos = conn.getDataOut(); - } - COM: <s> connect to the nxt </s> - diff --git a/funcom_test/24244733.txt b/funcom_test/24244733.txt deleted file mode 100644 index 37f0bc2a7e859136b5ad95e0ed9e1e3969151e7b..0000000000000000000000000000000000000000 --- a/funcom_test/24244733.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public int getBatteryLevel() throws IOException { - byte[] request = { DIRECT_COMMAND_REPLY, GET_BATTERY_LEVEL }; - byte[] reply = nxtComm.sendRequest(request, 5); - int batteryLevel = (0xFF & reply[3]) | ((0xFF & reply[4]) << 8); - return batteryLevel; - } - COM: <s> get the battery reading </s> - diff --git a/funcom_test/24244754.txt b/funcom_test/24244754.txt deleted file mode 100644 index 01f145e101b159d0acb228df6a3229f6685f4890..0000000000000000000000000000000000000000 --- a/funcom_test/24244754.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void boot() throws IOException { - byte[] request = {SYSTEM_COMMAND_NOREPLY, BOOT}; - request = appendString(request, "Let's dance: SAMBA"); - nxtComm.sendRequest(request, 0); - // Connection cannot be used after this command so we close it - nxtComm.close(); - open = false; - } - COM: <s> put the nxt into samba mode ready to update the firmware </s> - diff --git a/funcom_test/24244791.txt b/funcom_test/24244791.txt deleted file mode 100644 index 5ae616357998f65b3ce1105cc330f7b95568171a..0000000000000000000000000000000000000000 --- a/funcom_test/24244791.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getFriendlyName() throws IOException { - byte[] request = { SYSTEM_COMMAND_REPLY, GET_DEVICE_INFO }; - byte[] reply = nxtComm.sendRequest(request, 33); - char nameChars[] = new char[16]; - int len = 0; - - for (int i = 0; i < 15 && reply[i + 3] != 0; i++) { - nameChars[i] = (char) reply[i + 3]; - len++; - } - - return new String(nameChars, 0, len); - } - COM: <s> get the friendly name of the nxt </s> - diff --git a/funcom_test/24244807.txt b/funcom_test/24244807.txt deleted file mode 100644 index ca45198aeb0282e06a3a5d73031fda75aa2bcbab..0000000000000000000000000000000000000000 --- a/funcom_test/24244807.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public byte LSWrite(byte port, byte [] txData, byte rxDataLength) throws IOException { - byte [] request = {DIRECT_COMMAND_NOREPLY, LS_WRITE, port, (byte)txData.length, rxDataLength}; - request = appendBytes(request, txData); - return sendRequest(request, 3); - } - COM: <s> used to request data from an inter integrated circuit i2 c sensor the </s> - diff --git a/funcom_test/24244813.txt b/funcom_test/24244813.txt deleted file mode 100644 index 58813efcc2cfd907dbd61a18985e62fdad3df6dc..0000000000000000000000000000000000000000 --- a/funcom_test/24244813.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public byte playTone(int frequency, int duration) throws IOException { - byte [] request = {DIRECT_COMMAND_NOREPLY, PLAY_TONE, (byte)frequency, (byte)(frequency>>>8), (byte)duration, (byte)(duration>>>8)}; - return sendRequest(request, 3); - } - COM: <s> plays a tone on nxt speaker </s> - diff --git a/funcom_test/24244818.txt b/funcom_test/24244818.txt deleted file mode 100644 index b27d719a506a96dda28cdccf5edcda0e440ba02f..0000000000000000000000000000000000000000 --- a/funcom_test/24244818.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public byte resetMotorPosition(int port, boolean relative) throws IOException { - // !! Needs to check port to verify they are correct ranges. - // !!! I'm not sure I'm sending boolean properly - byte boolVal = 0; - if(relative) boolVal = (byte)0xFF; - byte [] request = {DIRECT_COMMAND_NOREPLY, RESET_MOTOR_POSITION, (byte)port, boolVal}; - return sendRequest(request, 3); - } - COM: <s> resets either rotation count or block tacho </s> - diff --git a/funcom_test/24244828.txt b/funcom_test/24244828.txt deleted file mode 100644 index 9340fba1bda56b12a71a57cb79f894f2bbfa543d..0000000000000000000000000000000000000000 --- a/funcom_test/24244828.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public FirmwareInfo getFirmwareVersion() throws IOException { - byte [] request = {SYSTEM_COMMAND_REPLY, GET_FIRMWARE_VERSION}; - byte [] reply = nxtComm.sendRequest(request, 7); - FirmwareInfo info = new FirmwareInfo(); - info.status = reply[2]; - if(info.status == 0) { - info.protocolVersion = reply[4] + "." + reply[3]; - info.firmwareVersion = reply[6] + "." + reply[5]; - } - return info; - } - COM: <s> get the fimrware version </s> - diff --git a/funcom_test/24244879.txt b/funcom_test/24244879.txt deleted file mode 100644 index 4a61a4bc74a0443c8f52794ac79d8c61d1bc91b4..0000000000000000000000000000000000000000 --- a/funcom_test/24244879.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void takeReading(float angle, int i) { - int rangeByte = (int) range.getRange(); - float range; - - if (rangeByte > MAX_RELIABLE_RANGE_READING) range = -1f; - else range = ((float) rangeByte); - readings.setRange(i,angle, range); - } - COM: <s> take a single range reading </s> - diff --git a/funcom_test/24244883.txt b/funcom_test/24244883.txt deleted file mode 100644 index 1233ba55f21df57a749b5594aeb1e06d4a46dc77..0000000000000000000000000000000000000000 --- a/funcom_test/24244883.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void takeReadings() { - // Take forward reading - takeReading(0f, FORWARD_READING); - - // Take left reading - pilot.rotate(-RANGE_READING_ANGLE); - takeReading(-RANGE_READING_ANGLE, 0); - - // Take right reading - pilot.rotate(2 * RANGE_READING_ANGLE); - takeReading(RANGE_READING_ANGLE, 2); - pilot.rotate(-RANGE_READING_ANGLE); - } - COM: <s> take a set of 3 readings </s> - diff --git a/funcom_test/24244939.txt b/funcom_test/24244939.txt deleted file mode 100644 index e01ef69b0337cd52d368394a2db3b46587a5c0b9..0000000000000000000000000000000000000000 --- a/funcom_test/24244939.txt +++ /dev/null @@ -1,32 +0,0 @@ -TDAT: public void run() { - // Keep running until the program should exit. - do { - // Quiesce - while (state != START && Subsumption1.main.running) { - yield(); - } - - // Execute the FSM until it stops... - do { - int toSleepFor; - - synchronized (Subsumption1.main) { - toSleepFor = actions[state].act(); - state = fsm[state]; - } - if (toSleepFor > 0) { - try { - sleep(toSleepFor); - } catch (InterruptedException ie) { - } - } - else - yield(); - } while (state != END && Subsumption1.main.running); - - // Its over, release the actuators. - release(); - } while (Subsumption1.main.running); - } - COM: <s> the thread entry point </s> - diff --git a/funcom_test/24245697.txt b/funcom_test/24245697.txt deleted file mode 100644 index 52eb426c82105e342b84b4395d7539ff6deb331f..0000000000000000000000000000000000000000 --- a/funcom_test/24245697.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int getData(int register, byte [] buf, int len) { - int ret = port.i2cStart(address, register, 1, null, len, 0); - - if (ret != 0) return ret; - - while (port.i2cBusy() != 0) { - Thread.yield(); - } - - ret = port.i2cComplete(buf, len); - return (ret < 0 ? ret : (ret == len ? 0 : -1)); - } - COM: <s> executes an i2 c read transaction and waits for the result </s> - diff --git a/funcom_test/24245700.txt b/funcom_test/24245700.txt deleted file mode 100644 index bdf9503e7616d868e72b3a2d135fe51d5e700da3..0000000000000000000000000000000000000000 --- a/funcom_test/24245700.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int sendData(int register, byte [] buf, int len) { - int ret = port.i2cStart(address, register, 1, buf, len, 1); - if (ret != 0) return ret; - - while (port.i2cBusy() != 0) { - Thread.yield(); - } - - return port.i2cComplete(null, 0); - } - COM: <s> executes an i2 c write transaction </s> - diff --git a/funcom_test/24245709.txt b/funcom_test/24245709.txt deleted file mode 100644 index 32d334a9260712d94120821dbf3a21eb9d38278c..0000000000000000000000000000000000000000 --- a/funcom_test/24245709.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected String fetchString(int register, int len) { - int ret = getData(register, byteBuff, 8); - char [] charBuff = new char[len]; - for(int i=0;i<len;i++) - charBuff[i] = (byteBuff[i] == 0 ? ' ' : (char)byteBuff[i]); - return new String(charBuff, 0, len); - } - COM: <s> internal helper function read a string from the device </s> - diff --git a/funcom_test/24246232.txt b/funcom_test/24246232.txt deleted file mode 100644 index 0ee4da8aa43b8838d767fe7a1ea0a58f1a6f71e5..0000000000000000000000000000000000000000 --- a/funcom_test/24246232.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Satellite getSatellite(int index){ - // Must be synchronized so that all 3-4 GSV sentences are read before it tries to give out data. - // TODO: Make sure all 4 of 4 sentences are read. Do quick check here. Otherwise array is temporarily filled with 0s, causes output to flicker. - // TODO: GPS notifier should only call on LAST of GSV sentences received. Ignore others in sequence until data is present. - checkRefresh(); - - return ns[index]; - } - COM: <s> return a nmea satellite object </s> - diff --git a/funcom_test/24246280.txt b/funcom_test/24246280.txt deleted file mode 100644 index 0a00d79a57724de0620cecb473b9b4fd6cff0305..0000000000000000000000000000000000000000 --- a/funcom_test/24246280.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void setup(InputStream in, OutputStream out) { - this.in = in; - this.out = out; - this.setDaemon(true); - this.start(); - - // TODO: Perhaps check if keyboard is a Freedom Universal (buggy) first before switching these? - // Freedom Universal has a bug that switches DELETE and BACKSPACE values. - // Switching back in scanCodes array (above): - scanCodes[0x71] = KeyEvent.VK_BACK_SPACE; - scanCodes[0x66] = KeyEvent.VK_DELETE; - - // Start typematic thread here: - typematicThread.setDaemon(true); - typematicThread.start(); - } - COM: <s> helper method used by both constructors </s> - diff --git a/funcom_test/24246297.txt b/funcom_test/24246297.txt deleted file mode 100644 index 134729c6baf7bb27f7f7e5832a52c88f50c2d7b3..0000000000000000000000000000000000000000 --- a/funcom_test/24246297.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void sentenceChooser(String header, String s) { - if (header.equals(GGASentence.HEADER)){ - this.ggaSentence.setSentence(s); - notifyListeners(this.ggaSentence); - }else if (header.equals(VTGSentence.HEADER)){ - this.vtgSentence.setSentence(s); - notifyListeners(this.vtgSentence); - }else if (header.equals(GSASentence.HEADER)){ - gsaSentence.setSentence(s); - notifyListeners(this.gsaSentence); - } - } - COM: <s> internal helper method to aid in the subclass architecture </s> - diff --git a/funcom_test/24246435.txt b/funcom_test/24246435.txt deleted file mode 100644 index 12cfa753298301a784fda3b74a7203c166d35100..0000000000000000000000000000000000000000 --- a/funcom_test/24246435.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void fire() { - - for (int i = 0; i < listHandler.size(); i++) { - try { - listHandler.get(i).getAndIncrementPendingFireCount(); - } catch (Exception e) { - System.err.println("erreur : " + e.getMessage()); - } - } - - - } - COM: <s> fire this instance of async event </s> - diff --git a/funcom_test/24246704.txt b/funcom_test/24246704.txt deleted file mode 100644 index 1922fa80287c41f0a6c7843dcf77bcc3711abd29..0000000000000000000000000000000000000000 --- a/funcom_test/24246704.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean equals(Object obj) { - if (obj instanceof Rectangle) { - Rectangle r = (Rectangle)obj; - return ((x == r.x) && (y == r.y) && - (width == r.width) && (height == r.height)); - } else { - return super.equals(obj); - } - } - COM: <s> test if the rectangle is equal to a given object </s> - diff --git a/funcom_test/24246737.txt b/funcom_test/24246737.txt deleted file mode 100644 index 2a26c61aee61614f11dd25838ed55c708be03631..0000000000000000000000000000000000000000 --- a/funcom_test/24246737.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Rectangle2D getBounds2D() { - float x, y, w, h; - if (x1 < x2) { - x = x1; - w = x2 - x1; - } else { - x = x2; - w = x1 - x2; - } - if (y1 < y2) { - y = y1; - h = y2 - y1; - } else { - y = y2; - h = y1 - y2; - } - return new Rectangle2D.Float(x, y, w, h); - } - COM: <s> get the bounds of the line as a rectangle2 d </s> - diff --git a/funcom_test/24246772.txt b/funcom_test/24246772.txt deleted file mode 100644 index 1d742936d987eff64a9717ebd9261c2d35270ddd..0000000000000000000000000000000000000000 --- a/funcom_test/24246772.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean intersects(double x, double y, double w, double h) { - if (isEmpty() || w <= 0 || h <= 0) return false; - double x0 = getX(); - double y0 = getY(); - return (x + w > x0 && y + h > y0 && - x < x0 + getWidth() && y < y0 + getHeight()); - } - COM: <s> test if this rectangle2 d intersects a rectangle defined by double coordinates </s> - diff --git a/funcom_test/24246994.txt b/funcom_test/24246994.txt deleted file mode 100644 index aedf3cf0113b0eb6035089453d0e8e5c592b338b..0000000000000000000000000000000000000000 --- a/funcom_test/24246994.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void close() throws IOException { - // !! Alternate implementation: If this is a new file, perhaps only - // write the file table information AFTER close() called so - // incomplete/partial files don't exist. - flush(); - File.writeTable(File.listFiles()); // Updates file size for this file. - page_pointer = file.page_location; - data_pointer = 0; // Start of first page - } - COM: <s> write the buffer to flash memory and update the file parameters in flash </s> - diff --git a/funcom_test/24247094.txt b/funcom_test/24247094.txt deleted file mode 100644 index 01f5c5446b9e81f7c561f752c31b3c419ec779e6..0000000000000000000000000000000000000000 --- a/funcom_test/24247094.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private StringBuilder appendInternal(String s) { - if (s == null) - s = "null"; - - // Reminder: compact code more important than speed - char[] sc = s.characters; - int sl = sc.length; - - int newlen = curLen + sl; - this.ensureCapacity(newlen); - - System.arraycopy (sc, 0, characters, curLen, sl); - curLen = newlen; - - return this; - } - COM: <s> appends a string with no null checking </s> - diff --git a/funcom_test/24247235.txt b/funcom_test/24247235.txt deleted file mode 100644 index 6f315a7c7d3e355cbf3a1187ac04aacf11cbde8f..0000000000000000000000000000000000000000 --- a/funcom_test/24247235.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void resetDevice(NXTInfo nxt) throws NXTCommException, IOException { - ui.message("Attempting to reboot the device."); - NXTComm nxtComm = NXTCommFactory.createNXTComm(nxt.protocol); - NXTCommand cmd = NXTCommand.getSingleton(); - if (!nxtComm.open(nxt, NXTComm.LCP)) { - throw new NXTCommException("Failed to open device in command mode."); - } - cmd.setNXTComm(nxtComm); - // Force into firmware update mode. - cmd.boot(); - cmd.close(); - } - COM: <s> attempt to restart the nxt in sam ba mode </s> - diff --git a/funcom_test/24247794.txt b/funcom_test/24247794.txt deleted file mode 100644 index eaa681f8a35c96097d206efab0406c0c934dd7a8..0000000000000000000000000000000000000000 --- a/funcom_test/24247794.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void createFilesPanel() { - filesPanel.add(tablePane, BorderLayout.CENTER); - JPanel buttonPanel = new JPanel(); - buttonPanel.add(deleteButton); - buttonPanel.add(uploadButton); - buttonPanel.add(downloadButton); - buttonPanel.add(runButton); - buttonPanel.add(soundButton); - buttonPanel.add(formatButton); - buttonPanel.setPreferredSize(filesButtonsPanelSize); - filesPanel.add(buttonPanel, BorderLayout.SOUTH); - } - COM: <s> set up the files panel </s> - diff --git a/funcom_test/24248570.txt b/funcom_test/24248570.txt deleted file mode 100644 index 3b7e622992ef82e7b43ee4a394aa9782450f1506..0000000000000000000000000000000000000000 --- a/funcom_test/24248570.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private int getHexDigit(char c) { - if (c >= '0' && c <= '9') return c - '0'; - if (c >= 'a' && c <= 'f') return c - 'a' + 10; - if (c >= 'A' && c <= 'F') return c - 'A' + 10; - return 0; - } - COM: <s> convert a character to a hex digit </s> - diff --git a/funcom_test/24248711.txt b/funcom_test/24248711.txt deleted file mode 100644 index 987d3fc95c7dacbe003ef5ba55997ca5fe1af621..0000000000000000000000000000000000000000 --- a/funcom_test/24248711.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void runFile() { - int row = table.getSelectedRow(); - if (row < 0) return; - String fileName = fm.getFile(row).fileName; - - try { - nxtCommand.startProgram(fileName); - nxtCommand.close(); - nxtCommand = null; - updateConnectionStatus(nxtTable.getSelectedRow(), nxts[row].connectionState); - clearFiles(); - } catch (IOException ioe) { - showMessage("IOException running program"); - } - } - COM: <s> run the selected file </s> - diff --git a/funcom_test/24248849.txt b/funcom_test/24248849.txt deleted file mode 100644 index b575d56cad82d8b7ef5c89e53bf3f6e8b4c14288..0000000000000000000000000000000000000000 --- a/funcom_test/24248849.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void resetTacho(JButton b) { - int motor = -1; - - for (int i = 0; i < 3; i++) { - if (b == resetButtons[i]) motor = i; - } - - if (nxtCommand == null) return; - try { - nxtCommand.resetMotorPosition(motor, false); - tachos[motor].setText(" " + nxtCommand.getTachoCount(motor)); - } catch (IOException ioe) { - showMessage("IO Exception resetting motor"); - } - } - COM: <s> reset the tachometer for a motor </s> - diff --git a/funcom_test/24327974.txt b/funcom_test/24327974.txt deleted file mode 100644 index f06f6cb63df437feaf8455278744fff0766876ba..0000000000000000000000000000000000000000 --- a/funcom_test/24327974.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean checkFormatterClass() { - String className = this.jTextFieldFormatter.getText(); - boolean classWasFound = false; - try { - Class c = Class.forName(className); - classWasFound = true; - } catch (java.lang.ClassNotFoundException e) { - logger.fine("Class for foramtter not found in classpath: '" + className + "'."); - } - return classWasFound; - } - COM: <s> checks wether the class for the formatter given in gui </s> - diff --git a/funcom_test/24329937.txt b/funcom_test/24329937.txt deleted file mode 100644 index 495e401e79a62f8852f45ea2d2dad4abdb30f9dd..0000000000000000000000000000000000000000 --- a/funcom_test/24329937.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getDownloaderConfig() { - if (this.downloadStarter == null) { - this.initDownloader(); - if (this.downloadStarter == null) { - this.logger.warning("Download timer could not be initialised."); - return ""; - } - } - DownloadTimer timer = this.downloadStarter.getTimer(); - String parameters = timer.getConfiguration(); - return parameters; - } - COM: <s> get the parameters for the downloader from the text area </s> - diff --git a/funcom_test/24330213.txt b/funcom_test/24330213.txt deleted file mode 100644 index 759a004a1dfab192ae5251db888430931657b49f..0000000000000000000000000000000000000000 --- a/funcom_test/24330213.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void save() { - // At the moment windows command files are written only - // TODO: Add other operating systems like mac and linux. - this.saveWindowsCommandFile(); - this.saveConfigFile(); - this.downloadStarter.getTimer().saveConfiguration(); - // Read the config file again to refresh the command line parameters in the comment lin - this.readConfigFile(); - } - COM: <s> save the command file and the config file </s> - diff --git a/funcom_test/24330772.txt b/funcom_test/24330772.txt deleted file mode 100644 index b7f0fe2a1a763c6228611cf7086f4c392d41b1d0..0000000000000000000000000000000000000000 --- a/funcom_test/24330772.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void receiveXPlanetFeedback() { - this.logger.fine("XPlanet was successfully executed. Receiving feedback from the GUI."); - if (this.isIsPreview()) { - this.logger.finer("In preview mode."); - this.showPreviewPanel(); - } else { - this.logger.finer("No in preview mode."); - } - } - COM: <s> receive feedback from the xplanet timer after excecution of xplanet </s> - diff --git a/funcom_test/24439870.txt b/funcom_test/24439870.txt deleted file mode 100644 index 30a645bb8ec41a84eb989cc84706fdc09e5e3e4e..0000000000000000000000000000000000000000 --- a/funcom_test/24439870.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public double getPhase () { - if (r == 0.D) { - return i<0.D ? -PI2 : i>0.D ? +PI2 : 0.D; - } - final double at = Math.atan (i/r); - return r>0.D ? at : i<0.D ? at-Math.PI : at + Math.PI; - } - COM: <s> get the phase value the complex argument value </s> - diff --git a/funcom_test/24440011.txt b/funcom_test/24440011.txt deleted file mode 100644 index de2c5ec2ea5af3d9ce91c9a1dcfed5d78d571a82..0000000000000000000000000000000000000000 --- a/funcom_test/24440011.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: final public double intersectiont(final Ray ray) { - for (int i=0; i<triangles.length; i++) { - final double t = triangles[i].intersection(ray); - if (t > 0.D && t < Double.MAX_VALUE) { - return t; - } - } - return -Double.MAX_VALUE; - } - COM: <s> test intersection with a given ray as a parameter value along the ray </s> - diff --git a/funcom_test/24447409.txt b/funcom_test/24447409.txt deleted file mode 100644 index a4fc29da5e0bf659385c87d17a77ab134e22226b..0000000000000000000000000000000000000000 --- a/funcom_test/24447409.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent ae) { - //JOptionPane.showMessageDialog(null, "CytoscapeSQL test", "CytoscapeSQL test", JOptionPane.WARNING_MESSAGE); - - // Connect to the given database - ConnectSQLite.testConnection(); - ConnectSQLite.getDataFromTable("xref"); - - // Test the postgres connection - HepatoCoreInfo hcInfo = new HepatoCoreInfo("15926"); - hcInfo.printInfo(); - - } - COM: <s> this method is called when the user selects the menu item </s> - diff --git a/funcom_test/24459253.txt b/funcom_test/24459253.txt deleted file mode 100644 index 0363524b21007390905ff37f419b66985514ca0b..0000000000000000000000000000000000000000 --- a/funcom_test/24459253.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public T addChild(T child) throws IllegalChildException { - if (!isValidAssociation(this, child, child.getSystemFile())) { - throw new IllegalChildException(); - } - - if (children.containsKey(System.identityHashCode(child))) { - return null; - } - - children.put(System.identityHashCode(child), child); - child.setParent(this); - return child; - } - COM: <s> returns the newly added child if successfully added or null if </s> - diff --git a/funcom_test/24459534.txt b/funcom_test/24459534.txt deleted file mode 100644 index 23dfd71d097c45c877593185ec6a57bab4ae7066..0000000000000000000000000000000000000000 --- a/funcom_test/24459534.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void cleanFolder(String dir){ - File folder = new File(dir); - - if(folder.exists()){ - - File[] prevFiles = folder.listFiles(); - for(int x=0;x<prevFiles.length;x++){ - log.debug(prevFiles[x].getPath()); - if(prevFiles[x].isDirectory())cleanFolder(prevFiles[x].getPath()); - - prevFiles[x].delete(); - } - } - } - COM: <s> removes the files from the specified folder </s> - diff --git a/funcom_test/24460001.txt b/funcom_test/24460001.txt deleted file mode 100644 index a87988731786ff155ff10115d1955f2d489147fb..0000000000000000000000000000000000000000 --- a/funcom_test/24460001.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void unregisterJob(String group, String name) { - String jobFullName = group + "-" + name; - Job job = jobs.get(jobFullName); - log.info("Unregistering job [group:" + job.getGroup() + ", name:" - + job.getName() + "]"); - job.setRegistered(false); - job.setStop(true); - quartzAdapter.delete(job); - } - COM: <s> unregisters the specified job from quartz it must be already been added </s> - diff --git a/funcom_test/24460603.txt b/funcom_test/24460603.txt deleted file mode 100644 index 247f015f793fb5d9d799a5ab651f64f2d1e8debe..0000000000000000000000000000000000000000 --- a/funcom_test/24460603.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String getFile(String filePath) { - - List<String> list = cache.get(filePath); - - if (list != null && list.size() == size) { - Integer index = pos.get(filePath); - if (index == null || index == size) { - index = 0; - } - - String result = list.get(index); - pos.put(filePath, index + 1); - return result; - } - - return null; - } - COM: <s> returns the files if the cache is ready </s> - diff --git a/funcom_test/24460779.txt b/funcom_test/24460779.txt deleted file mode 100644 index bf53494e8d21466cbcb9a42c1f6a67b733839e57..0000000000000000000000000000000000000000 --- a/funcom_test/24460779.txt +++ /dev/null @@ -1,32 +0,0 @@ -TDAT: public void save(String serFile) { - - FileOutputStream fos = null; - ObjectOutputStream oos = null; - - try { - - fos = new FileOutputStream(serFile); - oos = new ObjectOutputStream(fos); - - oos.writeObject(activities); - - } catch (Exception e) { - log.error("Error saving activities", e); - } finally { - if (oos != null) - try { - oos.close(); - } catch (IOException z) { - log.error("Error closing stream", z); - } - - if (fos != null) - try { - fos.close(); - } catch (IOException e) { - log.error("Error closing stream", e); - } - } - } - COM: <s> save the activities to the specified file </s> - diff --git a/funcom_test/2461094.txt b/funcom_test/2461094.txt deleted file mode 100644 index 24a6fa47a060b1092ae7d89ab002a0f0506cacc0..0000000000000000000000000000000000000000 --- a/funcom_test/2461094.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public File getSelectedFile() { - TreePath treePath = getSelectionPath(); - if (treePath == null) - return null; - - DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)treePath.getLastPathComponent(); - FileTreeNode fileTreeNode = (FileTreeNode)treeNode.getUserObject(); - return fileTreeNode.file; - } - COM: <s> returns the selected file in the tree </s> - diff --git a/funcom_test/24617556.txt b/funcom_test/24617556.txt deleted file mode 100644 index ef68517b3c07de1c7adf7777f83f2da2220eaa7a..0000000000000000000000000000000000000000 --- a/funcom_test/24617556.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void startAcceptingClient() { - AbstractThread t = new InterruptibleThread(new Runnable() { - public void run() { - while (continueListening) { - try { - na.message("Waiting for client to connect."); - new ClientHandler(serverSocket.accept(), na).startHandling(); - } catch (IOException e) { - System.out.println("Error connecting with client."); - System.out.println("Error Message: " + e.getMessage()); - } - } - } - }, "Client Listening Thread"); - - t.start(); - } - COM: <s> this method will iterate and accepts client connections until the server </s> - diff --git a/funcom_test/24617827.txt b/funcom_test/24617827.txt deleted file mode 100644 index 3b1915aae1dd9223c3984cd62637c1b82d159b74..0000000000000000000000000000000000000000 --- a/funcom_test/24617827.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void initTable() { - jTable1.getTableHeader().setReorderingAllowed(false); - jTable1.getParent().setBackground(Color.WHITE); - // rezise - int size = 20; - - jTable1.getColumnModel().getColumn(0).setPreferredWidth(size); - size = 200; - jTable1.getColumnModel().getColumn(1).setPreferredWidth(size); - size = 75; - jTable1.getColumnModel().getColumn(2).setPreferredWidth(size); - } - COM: <s> resize the table </s> - diff --git a/funcom_test/24665658.txt b/funcom_test/24665658.txt deleted file mode 100644 index 83e65eb87086b360a605a98264572294e43c62f5..0000000000000000000000000000000000000000 --- a/funcom_test/24665658.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void drawValues(Graphics2D g2, Point p) { - - g2.setColor(Color.BLACK); - g2.setFont(new Font("Courier", Font.PLAIN, this.renderRatio / 3)); - Integer theValue = (Integer) this.potentialValues.get(p); - String theString = theValue.toString(); - g2.drawString(theString, (int)p.getX() * this.renderRatio, ((int)p.getY() * this.renderRatio) + this.renderRatio); - } - COM: <s> method was used for drawing one players potential map on the field </s> - diff --git a/funcom_test/24666021.txt b/funcom_test/24666021.txt deleted file mode 100644 index d61ba2518c6daef9f5e97a85a053234214588bb3..0000000000000000000000000000000000000000 --- a/funcom_test/24666021.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private IFigure createFigureForModel() { - if (getModel() instanceof Person) { - IFigure f = new PersonFigure((Person) getModel()); - f.setOpaque(false); - return f; - } else if (getModel() instanceof Department) { - Department d = (Department) getModel(); - IFigure f = new DepartmentFigure(d); - f.setOpaque(true); - f.setBackgroundColor(ColorConstants.green); - return f; - } else { - // if Shapes gets extended the conditions above must be updated - throw new IllegalArgumentException(); - } - } - COM: <s> return a ifigure depending on the instance of the current model element </s> - diff --git a/funcom_test/24666373.txt b/funcom_test/24666373.txt deleted file mode 100644 index e2f09ce44b4cda8e6132244874dd87649417b225..0000000000000000000000000000000000000000 --- a/funcom_test/24666373.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - personEClass = createEClass(PERSON); - createEAttribute(personEClass, PERSON__FIRST_NAME); - createEAttribute(personEClass, PERSON__LAST_NAME); - createEReference(personEClass, PERSON__ADDRESS); - - addressEClass = createEClass(ADDRESS); - createEAttribute(addressEClass, ADDRESS__DETAILS); - } - COM: <s> creates the meta model objects for the package </s> - diff --git a/funcom_test/249124.txt b/funcom_test/249124.txt deleted file mode 100644 index 1a937cb85128ae6a0fbe825e1818c80d193a0da9..0000000000000000000000000000000000000000 --- a/funcom_test/249124.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String addDatastream(Object[] parameters) throws Exception { - logger.debug("entering addDatastream"); - - try { - QName fedoraType = new QName(Config.getProperty("FEDORA_DEF_API"), - "addDatastream"); - Call call = getConfiguredCall(fedoraType); - return (String) call.invoke(parameters); - } catch (Exception ex) { - logger.error("failed to Add Datastream", ex); - throw new Exception("failed to Add Datastream:" + ex.getMessage()); - } - } - COM: <s> adds a datastream to the existing object </s> - diff --git a/funcom_test/249150.txt b/funcom_test/249150.txt deleted file mode 100644 index e087bb0a3724c245f502ad9d7b45e2040a1e94e6..0000000000000000000000000000000000000000 --- a/funcom_test/249150.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void purgeDatastream(Object[] parameters) throws Exception { - logger.debug("entering purgeDatastream"); - /* - QName fedoraType = new QName(Config.getProperty("FEDORA_DEF_API"), - "PurgeDatastream"); - Call call = getConfiguredCall(fedoraType); - call.invoke(parameters); - */ //GTG - initx(); - APIM.purgeDatastream( - (String) parameters[0], - (String) parameters[1], - (String) parameters[2], - (String) parameters[3], - (String) parameters[4], - ((Boolean) parameters[5]).booleanValue()); - } - COM: <s> removes a datastream from the repository </s> - diff --git a/funcom_test/249203.txt b/funcom_test/249203.txt deleted file mode 100644 index 08e8a80a51ab68e2715e0741f6d22a30d5885629..0000000000000000000000000000000000000000 --- a/funcom_test/249203.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String addDisseminator(String itemPID, DStreamBinding binding) throws Exception{ - logger.debug("entering addDisseminator(" + itemPID + ")"); - String dissID = MaAPI.addDisseminator(itemPID, binding.getBDefPID(), - binding.getBMechPID(), binding.getLabel(), - binding.getDatastreamBindingMap(), binding.getState(), - "Added via elated"); - - logger.debug("exiting addDisseminator"); - return dissID; - } - COM: <s> adds a disseminator </s> - diff --git a/funcom_test/249206.txt b/funcom_test/249206.txt deleted file mode 100644 index 451ef607d05529735bb9a1a1188db4dec8310f0d..0000000000000000000000000000000000000000 --- a/funcom_test/249206.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void modifyDisseminator(String itemPID, DStreamBinding binding) throws Exception{ - logger.debug("entering modifyDisseminator(" + itemPID + ")"); - MaAPI.modifyDisseminator(itemPID, binding.getBMechPID(), - binding.getLabel(), binding.getDatastreamBindingMap(), - binding.getState(), "modified via elated"); - - logger.debug("exiting modifyDisseminator"); - } - COM: <s> modifies the given disseminator </s> - diff --git a/funcom_test/249207.txt b/funcom_test/249207.txt deleted file mode 100644 index c6e2691e00e114bff88962721fc54ba937729450..0000000000000000000000000000000000000000 --- a/funcom_test/249207.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void testCreateExtMetaData() throws Exception { - HashMap hm = new HashMap(); - ArrayList a = new ArrayList(); - a.add("South America"); - ArrayList b = new ArrayList(); - b.add("green"); - hm.put("habitat", a); - hm.put("tree", b); - - ArrayList keys = new ArrayList(); - keys.add("habitat"); - keys.add("tree"); - - boolean bool = MaAPI.createExtMetaData( - "demo:ext_metadata_object", hm, keys); - - assertTrue(bool); - byte[] byt = MaAPI.getDatastreamData( - "demo:ext_metadata_object", - FedoraInterface.ELATED_DATASTREAM_EXT); - assertNotNull(byt); - - String str = new String(byt); - System.out.println(str); - } - COM: <s> note need to run tomcat for this test </s> - diff --git a/funcom_test/249328.txt b/funcom_test/249328.txt deleted file mode 100644 index 8dafecb2e4457531e3a902a05146073c2cabe240..0000000000000000000000000000000000000000 --- a/funcom_test/249328.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testGetNextBufferedObjects() throws Exception{ - FedoraInterface fedI = new FedoraAPI(); - - List allItems = fedI.getBufferedObjects(5); - assertFalse(allItems.isEmpty()); - assertEquals(5, allItems.size()); - - allItems = fedI.getNextBufferedObjects(); - assertEquals(5, allItems.size()); - - allItems = fedI.getNextBufferedObjects(); - assertEquals(5, allItems.size()); - - allItems = fedI.getNextBufferedObjects(); - assertEquals(3, allItems.size()); - - allItems = fedI.getNextBufferedObjects(); - assertEquals(0, allItems.size()); - } - COM: <s> this test relies on the number of objects present in fedora </s> - diff --git a/funcom_test/249349.txt b/funcom_test/249349.txt deleted file mode 100644 index 00729f5a80d5613bba8d70a353bb3120d0225575..0000000000000000000000000000000000000000 --- a/funcom_test/249349.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testViewDublinCore() throws IOException, SAXException { - linkToViewDublinCore(); - assertNotNull(response); - assertEquals("viewItemPage", response.getTitle()); - - WebTable tbl = response.getTableStartingWith("Creator(s)"); - TableCell cell = tbl.getTableCell(1, 1); - assertEquals(" label", cell.asText()); - } - COM: <s> tests to verify that the title of the item is label </s> - diff --git a/funcom_test/249460.txt b/funcom_test/249460.txt deleted file mode 100644 index 78e0901ce96d346dd54e92707a864c102fcd0d03..0000000000000000000000000000000000000000 --- a/funcom_test/249460.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void setData() throws CustomMetaDataException { - String file = "<ExtMd><field><name>habitat</name><value>South America</value></field><field><name>tree</name><value>green</value></field></ExtMd>"; - byte[] b = file.getBytes(); - customMetaData.setXmlData(b); - } - COM: <s> sets up the object </s> - diff --git a/funcom_test/250487.txt b/funcom_test/250487.txt deleted file mode 100644 index 0ff1f591792e91cfd035aacb8b32ea15b2f5178f..0000000000000000000000000000000000000000 --- a/funcom_test/250487.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Vector getMechanisms(String bDefPID) throws InternalException{ - logger.debug("entering getMechanisms(" + bDefPID + ")"); - try{ - Map map = fedI.getBMechs(bDefPID); - Vector vector = makeVector(map); - logger.debug("exiting getMechanisms"); - return vector; - }catch(Exception e){ - logger.error("error while getting mechanisms", e); - throw new InternalException(e); - } - } - COM: <s> gets the mechanisms for the given definition </s> - diff --git a/funcom_test/250664.txt b/funcom_test/250664.txt deleted file mode 100644 index 83ffb887ec9a4666537db62c4819141fb5f0e3ee..0000000000000000000000000000000000000000 --- a/funcom_test/250664.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void removeCollection(String collectionID) throws SQLException { - logger.debug("entering removeCollection"); - - String query = "DELETE FROM collection WHERE PID='" + collectionID - + "'"; - db.executeUpdate(query); - query = "DELETE FROM collectionrole WHERE COLLECTIONPID='" - + collectionID + "'"; - db.executeUpdate(query); - /* - // @deprecated removed elated metadata feature - query = "DELETE FROM metadata WHERE COLLECTIONPID='" - + collectionID + "'"; - db.executeUpdate(query); - */ - } - COM: <s> removes the specified collection and all items in that collection from </s> - diff --git a/funcom_test/250666.txt b/funcom_test/250666.txt deleted file mode 100644 index dfd7fb10efd5b3eb5cb834b5517efbb816d12f2b..0000000000000000000000000000000000000000 --- a/funcom_test/250666.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void removeUser(String userID) throws SQLException { - logger.debug("entering removeUser"); - - String query = "UPDATE user SET isDisabled='1' WHERE userID='" + userID - + "'"; - try { - db.executeUpdate(query); - } catch (SQLException ex) { - logger.warn("unable to remove user " + ex.getMessage()); - throw new SQLException("unable to remove user " + userID); - } - } - COM: <s> changes given users is disabled field to true 1 </s> - diff --git a/funcom_test/250668.txt b/funcom_test/250668.txt deleted file mode 100644 index 6cf32eadf2d30bd34d4c186fdffd84ff89d8c5fc..0000000000000000000000000000000000000000 --- a/funcom_test/250668.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void activateUser(String userID) throws SQLException { - logger.debug("Entering activateUser"); - - String query = "UPDATE user SET isDisabled='0' WHERE userID='" + userID - + "'"; - ; - try { - db.executeUpdate(query); - } catch (SQLException ex) { - logger.warn("unable to activate user " + ex.getMessage()); - throw new SQLException("unable to activate user " + userID); - } - } - COM: <s> activates the user </s> - diff --git a/funcom_test/250689.txt b/funcom_test/250689.txt deleted file mode 100644 index 07752ddbeb8e72d3e8ec3229de60d222910159c4..0000000000000000000000000000000000000000 --- a/funcom_test/250689.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void convertBoolean(List list, String column) { - logger.debug("entering convertBoolean()"); - - for (int i = 0; i < list.size(); i++) { - HashMap hm = (HashMap) list.get(i); - if ("1".equals(hm.get(column))) { - hm.put(column, new Boolean(true)); - } else { - hm.put(column, new Boolean(false)); - } - } - } - COM: <s> convert database string values of 0 1 to their boolean form </s> - diff --git a/funcom_test/250694.txt b/funcom_test/250694.txt deleted file mode 100644 index bba6313d1953612a8b5e8750b25ae22464f963d3..0000000000000000000000000000000000000000 --- a/funcom_test/250694.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getCollaborateCollection(String userID) throws AccessException { - logger.debug("entering getCollaborateCollection()"); - String query = "SELECT collection.PID PID, collection.TITLE TITLE, " - + " collectionrole.ROLE ROLE FROM collectionrole, collection WHERE " - + " collectionrole.USERID = '" + userID + "'" - + " AND collectionrole.COLLECTIONPID = collection.PID" - + " AND collection.ROOT = '1'"; - List list = buildResult(query); - return list; - } - COM: <s> returns the list of collaborate collections for the given user id </s> - diff --git a/funcom_test/250700.txt b/funcom_test/250700.txt deleted file mode 100644 index 1e5be14ca7e458456992c0fc620f854df4c39986..0000000000000000000000000000000000000000 --- a/funcom_test/250700.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean isInReview(String pid) throws AccessException { - logger.debug("entering isInReview"); - - String query = "SELECT item.PID " - + " FROM item " - + " WHERE item.PID = '" + pid + "'" - + " AND item.ISREVIEWED = '0'"; - List list = buildResult(query); - if (list.size() > 0) { - logger.debug("isInReview: true"); - return true; - } - logger.debug("isInReview: false"); - return false; - } - COM: <s> returns true if an item is in review </s> - diff --git a/funcom_test/250704.txt b/funcom_test/250704.txt deleted file mode 100644 index 1e96fd09244fac137fcbccc29197a7ebadd7ff27..0000000000000000000000000000000000000000 --- a/funcom_test/250704.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getUserIDForItem(String itemPID) throws AccessException { - logger.debug("entering getUserIDForItem"); - - String query = "SELECT user.USERID, user.USERNAME FROM item, user " - + " WHERE PID = '" + itemPID + "'" - + " AND item.USERID = user.USERID"; - List list = buildResult(query); - - return list; - } - COM: <s> get user id associated with the item with the given pid </s> - diff --git a/funcom_test/250706.txt b/funcom_test/250706.txt deleted file mode 100644 index d625e4ee611cc384bd9e3d014dba26d9b7e2b8ff..0000000000000000000000000000000000000000 --- a/funcom_test/250706.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getOwnerForCollection(String colPID) throws AccessException { - logger.debug("entering getOwnerForCollection"); - logger.debug("CollectionPID: " + colPID); - - String query = "SELECT OWNERID FROM collection " + - " WHERE collection.PID = '" + colPID + "' "; - List list = buildResult(query); - - if (list.size() != 0) { - return (String) ((HashMap) list.get(0)).get("OWNERID"); - } else { - logger.warn("collection " + colPID + " has no owner"); - return ""; - } - } - COM: <s> returns the owner id of the owner of the given collection </s> - diff --git a/funcom_test/25072388.txt b/funcom_test/25072388.txt deleted file mode 100644 index 313faa595676fa1eaba39eef53150c94481c8c96..0000000000000000000000000000000000000000 --- a/funcom_test/25072388.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getTaskPropertyId(String aTaskPropertyName){ - Iterator<String> it = getTaskProperty().keySet().iterator(); - TaskProperty propertyObject; - String propertyId; - while (it.hasNext()){ - propertyId = (String) it.next(); - propertyObject = (TaskProperty) getTaskProperty().get(propertyId); - if (propertyObject.getName().equals(aTaskPropertyName)) - return propertyId; - } - return null; - } - COM: <s> get the id of a task property by name </s> - diff --git a/funcom_test/250724.txt b/funcom_test/250724.txt deleted file mode 100644 index 499cb3e2919f84059926efe48bf1f9b7dc3c3f66..0000000000000000000000000000000000000000 --- a/funcom_test/250724.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getAllCollaborativeCollections() throws AccessException { - logger.debug("entering getAllCollaborativeCollections"); - - String query = "SELECT collection.PID, collection.TITLE, collectionrole.ROLE, user.USERNAME" - + " FROM collectionrole, collection, user " - + " WHERE collectionrole.USERID = user.USERID " - + " AND collectionrole.COLLECTIONPID = collection.PID " - + " ORDER BY collection.TITLE, collectionrole.ROLE"; - return this.buildResult(query); - } - COM: <s> gets the list of hashmaps containing collection title collection role </s> - diff --git a/funcom_test/250726.txt b/funcom_test/250726.txt deleted file mode 100644 index 28432fd4259680048adc4b980a7c1d9259961173..0000000000000000000000000000000000000000 --- a/funcom_test/250726.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public List getAllUsers() throws AccessException { - logger.debug("entering getAllUsers"); - - String query = "SELECT user.USERID, user.USERNAME, user.ISADMIN, user.FIRSTNAME, " - + " user.LASTNAME, user.EMAIL, user.ISDISABLED " - + " FROM user" - + " ORDER BY user.USERNAME"; - - logger.debug("Executing query : " + query); - List list = this.buildResult(query); - convertBoolean(list, "ISDISABLED"); - - return list; - } - COM: <s> gets all information about all of the username and isdisabled from user </s> - diff --git a/funcom_test/250731.txt b/funcom_test/250731.txt deleted file mode 100644 index 7e7eaca3cc67a49c352b2ff90df61f3233e6d24b..0000000000000000000000000000000000000000 --- a/funcom_test/250731.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private User makeUser(Map m){ - logger.debug("entering makeUser"); - User user = new User(); - if(m != null){ - user.setUserID((String)m.get("USERID")); - user.setUserName((String) m.get("USERNAME")); - user.setPassword((String) m.get("PASSWORD")); - user.setFirstName((String) m.get("FIRSTNAME")); - user.setLastName((String) m.get("LASTNAME")); - user.setEmail((String) m.get("EMAIL")); - user.setIsDisabled(((String) m.get("ISDISABLED")).equals("1")); - user.setIsAdministrator(((String) m.get("ISADMIN")).equals("1")); - } - - logger.debug("exiting makeUser"); - return user; - } - COM: <s> makes a user object out of the specified map </s> - diff --git a/funcom_test/250739.txt b/funcom_test/250739.txt deleted file mode 100644 index ca4597da5c04667797e03e15d7fa8d33fa676e16..0000000000000000000000000000000000000000 --- a/funcom_test/250739.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean isAdmin(String userName) throws AccessException { - logger.debug("Entering isAdmin"); - String query = "SELECT ISADMIN FROM user " - + " WHERE USERNAME = '" + userName + "'"; - List list = buildResult(query); - - // if the user name is invalid - if (list.size() == 0) { - return false; - } else { - return ((String) ((HashMap) list.get(0)).get("ISADMIN")) - .equals("1"); - } - } - COM: <s> returns true if the given user is an administrator false otherwise </s> - diff --git a/funcom_test/250751.txt b/funcom_test/250751.txt deleted file mode 100644 index 33404836ec71710829299bbc90b34aef74d7f3fa..0000000000000000000000000000000000000000 --- a/funcom_test/250751.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean getFeedbackEnabled(String collectionPID) throws AccessException { - logger.debug("entering getFeedbackEnabled"); - - String query = "SELECT HASFEEDBACK FROM collection " - + " WHERE PID = '" + collectionPID + "'"; - - List list = buildResult(query); - convertBoolean(list, "HASFEEDBACK"); - if (list.size() == 0) { - return false; - } else { - if (((Boolean) ((HashMap) list.get(0)).get("HASFEEDBACK")) - .booleanValue()) { - return true; - } else { - return false; - } - } - } - COM: <s> will determine if the given collection has a feedback option </s> - diff --git a/funcom_test/25075794.txt b/funcom_test/25075794.txt deleted file mode 100644 index 6dec808b72043630477dcd7b7d975826c19ae198..0000000000000000000000000000000000000000 --- a/funcom_test/25075794.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Resource getResourceObjectById(String aResourceId) { - Iterator<String> it = getResources().keySet().iterator(); - Resource ResourceObject; - String resourceId; - while (it.hasNext()) { - resourceId = (String) it.next(); - ResourceObject = (Resource) getResources().get(resourceId); - if (ResourceObject.getId().equals(aResourceId)) - return ResourceObject; - } - return null; - } - COM: <s> get an resourceobject by its id </s> - diff --git a/funcom_test/25075906.txt b/funcom_test/25075906.txt deleted file mode 100644 index 716855736b232584bc4ac19c0229a651c551af51..0000000000000000000000000000000000000000 --- a/funcom_test/25075906.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public TaskProperty getTaskPropertyObjectById(String aTaskPropertyId) { - Iterator<String> it = getTaskProperty().keySet().iterator(); - TaskProperty PropertyObject; - String PropertyId; - while (it.hasNext()) { - PropertyId = (String) it.next(); - PropertyObject = (TaskProperty) getTaskProperty().get(PropertyId); - if (PropertyObject.getId().equals(aTaskPropertyId)) - return PropertyObject; - } - return null; - } - COM: <s> get an taskpropertyobject by its id </s> - diff --git a/funcom_test/250760.txt b/funcom_test/250760.txt deleted file mode 100644 index 36a9dd1275496dc54ec0aa3807d146a1ade000a5..0000000000000000000000000000000000000000 --- a/funcom_test/250760.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void deleteThumbnail(String pid, String dsID) { - logger.debug("entering deleteThumbnail"); - - String fname = Config.getCurrentPath() + File.separator - + Config.getProperty("DEFAULT_THUMBNAILS_DIRECTORY") - + File.separator + generateFileName(pid, dsID); - File thumbFile = new File(fname); - if (thumbFile.canRead()) { - thumbFile.delete(); - } - logger.debug("leaving deleteThumbnail"); - } - COM: <s> deletes the thumbnail for a given datastream if it exists </s> - diff --git a/funcom_test/25076025.txt b/funcom_test/25076025.txt deleted file mode 100644 index 77816f957b0383a8eb951a2f646c3b35ff74c7eb..0000000000000000000000000000000000000000 --- a/funcom_test/25076025.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Depend getDependencyObjectById(String aDependId) { - Iterator<String> it = getDependencies().keySet().iterator(); - Depend dependObject; - String dependId; - while (it.hasNext()) { - dependId = (String) it.next(); - dependObject = (Depend) getDependencies().get(dependId); - if (dependObject.getId().equals(aDependId)) - return dependObject; - } - return null; - } - COM: <s> get an dependencyobject by its id </s> - diff --git a/funcom_test/250765.txt b/funcom_test/250765.txt deleted file mode 100644 index 72a5ea243aca23e17ebdb953f1b6995cf448dd22..0000000000000000000000000000000000000000 --- a/funcom_test/250765.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isAdminMetadata(String dsID, String label){ - logger.debug("entering isAdminMetadata(" + dsID + ", " + label + ")"); - boolean result =(//FedoraInterface.ELATED_DATASTREAM_EXT.equals(dsID) - //|| "ExtMetaData".equals(label) - //|| - FedoraInterface.RELS_EXT.equals(dsID) - || "DC".equals(dsID)); - logger.debug("exiting isAdminMetadata :" + result); - return result; - } - COM: <s> todo fix the hardcoded variables </s> - diff --git a/funcom_test/250770.txt b/funcom_test/250770.txt deleted file mode 100644 index 1fa7c72c44805d72d9f370ac3b993df52d61de9c..0000000000000000000000000000000000000000 --- a/funcom_test/250770.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public String parse(byte[] b) { - logger.debug("entering ParsePDF.parse()"); - - ByteArrayInputStream is = new ByteArrayInputStream(b); - - try { - PDFParser p = new PDFParser(is); - p.parse(); - PDDocument pd = p.getPDDocument(); - PDFTextStripper ts = new PDFTextStripper(); - - String str = ts.getText(pd); - - pd.close(); - - return str; - } catch (Exception ex) { - logger.error("Error parsing pdf file", ex); - return ""; - } - } - COM: <s> returns a string that contains the text found in a pdf file represented </s> - diff --git a/funcom_test/250772.txt b/funcom_test/250772.txt deleted file mode 100644 index 83956535939e3b684ac391c625c0a3b453c4af78..0000000000000000000000000000000000000000 --- a/funcom_test/250772.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public String parse(byte[] file) { - logger.debug("entering MSPPTParser.parse"); - InputStream is = new ByteArrayInputStream(file); - POIFSReader reader = new POIFSReader(); - reader.registerListener(this); - - try { - reader.read(is); - is.close(); - - // String version of the powerpoint document is held by str - String str = new String(writer.toByteArray()); - - // filters the result for unwanted characters - String actualReturn = filterResult(str); - writer.close(); - return actualReturn; - } catch (IOException ex) { - logger.error("error parsing powerpoint document", ex); - return ""; - } - } - COM: <s> parses byte powerpoint file into string </s> - diff --git a/funcom_test/250773.txt b/funcom_test/250773.txt deleted file mode 100644 index d19a948cde98cbaac36ee511823c40f2651889e1..0000000000000000000000000000000000000000 Binary files a/funcom_test/250773.txt and /dev/null differ diff --git a/funcom_test/250780.txt b/funcom_test/250780.txt deleted file mode 100644 index cc517fef9fdfece93d81068c1942982ccbbc809d..0000000000000000000000000000000000000000 --- a/funcom_test/250780.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public String parse(byte[] file) { - - InputStream is = new ByteArrayInputStream(file); - Reader r = new BufferedReader(new InputStreamReader(is)); - - MyCallback callback = new MyCallback(); - - try { - /** - * parses the html/xml file, as pointed by the Reader, and handles - * it as specified by the callback. The ignoreCharSet equals false. - */ - new ParserDelegator().parse(r, callback, false); - } catch (IOException ex) { - logger.error("error parsing file", ex); - return ""; - } - - return callback.htmlString; - } - COM: <s> parses the byte into a string </s> - diff --git a/funcom_test/250808.txt b/funcom_test/250808.txt deleted file mode 100644 index 1e2989f323202c1e1371d425f009c3a60c7a2d33..0000000000000000000000000000000000000000 --- a/funcom_test/250808.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public List getAllCollections() { - logger.debug("Entering getAllCollections"); - try { - List returnList = dbAccess.getAllCollections(); - logger.debug("getAllCollections() - exiting - return value=" - + returnList); - return returnList; - } catch (AccessException ex) { - logger.error("getAllCollections()", ex); - - logger.error("Failed to access the database ", ex); - return new ArrayList(); - } - } - COM: <s> returns a list of hash maps of all the collections managed in the </s> - diff --git a/funcom_test/250817.txt b/funcom_test/250817.txt deleted file mode 100644 index 95f614faf865b83f0094d073e929c96e19284cca..0000000000000000000000000000000000000000 --- a/funcom_test/250817.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getUserIDFromName(String userName) throws AccessException { - logger.debug("getUserIDFromName(String userName=" + userName - + ") - entering"); - - String returnString = dbAccess.getUserIDForName(userName); - logger.debug("getUserIDFromName(String) - exiting - return value=" - + returnString); - return returnString; - } - COM: <s> returns the user id based on the user name </s> - diff --git a/funcom_test/250870.txt b/funcom_test/250870.txt deleted file mode 100644 index 064dd3e3d0d94a768ba4d8af596acc319fcdce3a..0000000000000000000000000000000000000000 --- a/funcom_test/250870.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public List getNextFedoraObjects() throws Exception{ - logger.debug("entering getNextFedoraObjects"); - List fedoraItems = fedoraInterface.getNextBufferedObjects(); - if(fedoraItems.size() == 0){ - logger.info("size 0"); - return new ArrayList(); - } - - List result = filter(fedoraItems); - - if(result.size()==0){ - logger.info("no results..."); - return getNextFedoraObjects(); - } - else{ - logger.debug("exiting getNextFedoraObjects size:" + result.size()); - return result; - } - } - COM: <s> gets next set of fedora objects </s> - diff --git a/funcom_test/250879.txt b/funcom_test/250879.txt deleted file mode 100644 index fd482b5bd59e412e499729c78229cae7b3cce8a1..0000000000000000000000000000000000000000 --- a/funcom_test/250879.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String authenticateUser(String userName, String password) throws InternalException { - logger.debug("entering isUserValid()"); - User fedoraUser = securityMgr.authenticateUser(userName, password); - if (fedoraUser.getIsDisabled()) { - logger.debug("exiting authenticateUser, user is disabled"); - return "disabled"; - } - if (!fedoraUser.isAuthenticated()) { - logger.debug("exiting authenticateUser, user is invalid"); - return "invalid"; - } - - logger.debug("user is valid"); - return "valid"; - } - COM: <s> this verifies the given username and password if the user is valid sets </s> - diff --git a/funcom_test/250884.txt b/funcom_test/250884.txt deleted file mode 100644 index d331ea3803b7f6cea4e8f5674f97ef4448f51555..0000000000000000000000000000000000000000 --- a/funcom_test/250884.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void updateDublinCore(String itemPID, Map map) throws InternalException { - - logger.debug("entering updateDublinCore " + itemPID); - try { - DublinCore dc = new DublinCore(); - dc.setFields(map); - itemMgr.updateDublinCore(itemPID, dc); - - ItemInfoBean ibean = searchMgr.searchForItem(itemPID); - if(ibean != null){ - searchMgr.indexItem(itemPID); - } - - } catch (Exception e) { - logger.error("error updating dublin core", e); - throw new InternalException(e); - } - - } - COM: <s> update the dublincore for a given item </s> - diff --git a/funcom_test/250919.txt b/funcom_test/250919.txt deleted file mode 100644 index 71d7e85633a50e0096b255646434e3ffda256333..0000000000000000000000000000000000000000 --- a/funcom_test/250919.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public DStream getDataStream(String itemPID, String dsID) throws InternalException{ - logger.debug("entering getDatastream(" + itemPID + ", " + dsID + ")"); - try { - DStream ds = itemMgr.getDataStream(itemPID, dsID); - logger.debug("exiting getDatastream"); - return ds; - } catch (Exception e) { - logger.error("cannot retrieve datastream ", e); - throw new InternalException(e); - } - } - COM: <s> gets the specified datastream </s> - diff --git a/funcom_test/250968.txt b/funcom_test/250968.txt deleted file mode 100644 index 3662e5da3267f5c053a9fca5f644aaa3ce3fcd1b..0000000000000000000000000000000000000000 --- a/funcom_test/250968.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getAllCollectionsForUser(String userID) throws InternalException { - logger.debug("getAllCollectionsForUser(" + userID + ")"); - try { - ArrayList collList = (ArrayList) dbAccess.getRootCollectionsForUser(userID); - return makeRCObjects(userID, collList); - } - catch (AccessException ex) { - logger.error("getAllCollectionsForUser(String)error - " - + "couldn't access the Database", ex); - throw new InternalException(ex); - } - } - COM: <s> returns all collections availables for user id gtg </s> - diff --git a/funcom_test/250992.txt b/funcom_test/250992.txt deleted file mode 100644 index 21b43169beba795f3ffe5fae4051288851710faa..0000000000000000000000000000000000000000 --- a/funcom_test/250992.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public User copy(){ - User user = new User(); - user.setAuthenticated(this.authenticated); - user.setEmail(new String(this.email)); - user.setFirstName(new String(this.firstName)); - user.setIsAdministrator(this.isAdministrator()); - user.setIsDisabled(this.isDisabled); - user.setLastName(new String(this.lastName)); - user.setPassword(new String(this.password)); - user.setUserID(new String(this.userID)); - user.setUserName(new String(this.userName)); - return user; - } - COM: <s> gives an exact replica of the current user </s> - diff --git a/funcom_test/251004.txt b/funcom_test/251004.txt deleted file mode 100644 index 35da24b95df8585b8369dcfa05ebcc0a5243dba7..0000000000000000000000000000000000000000 --- a/funcom_test/251004.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private int contains(List toOperateOn, String newUser) { - logger.debug("entering contains"); - for (int j = 0; j < toOperateOn.size(); j++) { - HashMap element = (HashMap) toOperateOn.get(j); - - if (newUser.equals(element.get("USERNAME"))) { - return j; - } - } - logger.info("user does not exist in the list!"); - return -1; - } - COM: <s> checks the presence of the user with the specified name in the specified </s> - diff --git a/funcom_test/251005.txt b/funcom_test/251005.txt deleted file mode 100644 index 0591680c2f9335c29050920d232f0ba0d7187665..0000000000000000000000000000000000000000 --- a/funcom_test/251005.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private HashMap getMapFromList(String userName, List sourceList) { - logger.debug("entering getUserMapFromList"); - for (int i = 0; i < sourceList.size(); i++) { - HashMap element = (HashMap) sourceList.get(i); - - if (userName.equals(element.get("USERNAME"))) { - - logger.debug("Matching map is : " + element); - return element; - } - } - logger.info("user not found, returning null"); - return null; - } - COM: <s> iterate through the list and find the matching map </s> - diff --git a/funcom_test/251041.txt b/funcom_test/251041.txt deleted file mode 100644 index 816b5d6c2ced475a21bb5b0065201558c1a705d2..0000000000000000000000000000000000000000 --- a/funcom_test/251041.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean canViewCollection(String collectionPID) { - logger.debug("entering canViewCollection: " + collectionPID); - - try{ - RepositoryCollection collection = dbAccess.getCollection(collectionPID); - boolean result = (!collection.isPrivate() - || canAddItemToCollection(collectionPID)); - logger.debug("exiting canViewCollection :" + result); - return result; - } - catch(AccessException ex){ - logger.error("error accessing ", ex); - return false; - } - } - COM: <s> returns boolean true if the given user id can view the collection </s> - diff --git a/funcom_test/251065.txt b/funcom_test/251065.txt deleted file mode 100644 index 29b02bc645e88125666553b2638bbf3b24f258c6..0000000000000000000000000000000000000000 --- a/funcom_test/251065.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean isAdminOfItem(String itemPID) throws AccessException{ - logger.debug("entering isAdminOfItem(" + itemPID +")"); - - String query = "SELECT userid FROM item WHERE userid='" - + currentUser.getUserID() + "' AND pid='" + itemPID +"'"; - try{ - List list = conn.executeQuery(query); - logger.debug("exiting isAdminOfItem"); - return !(list.isEmpty()); - } - catch(SQLException e){ - logger.error(e); - throw new AccessException("database error", e); - } - } - COM: <s> is the current user the administrator for this item </s> - diff --git a/funcom_test/251081.txt b/funcom_test/251081.txt deleted file mode 100644 index d12f058d94a4cfb3d5853ce0d129bd972ff7ed11..0000000000000000000000000000000000000000 --- a/funcom_test/251081.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public DatastreamBindingMap getDatastreamBindingMap(){ - logger.debug("entering getDatastreamBindingMap"); - - DatastreamBindingMap dsMap = new DatastreamBindingMap(); - - if(!disseminationID.equals("")) - dsMap.setDsBindMapID(disseminationID); - - dsMap.setDsBindMapLabel(label); - dsMap.setDsBindMechanismPID(bMechPID); - dsMap.setState(state); - dsMap.setDsBindings(getDatastreamBinding()); - - logger.debug("exiting getDatastreamBindingMap"); - return dsMap; - } - COM: <s> get a datastream binding map object out of this binding </s> - diff --git a/funcom_test/251133.txt b/funcom_test/251133.txt deleted file mode 100644 index 0ec2f843186606b3d9c31ee383dbb226e90b9649..0000000000000000000000000000000000000000 --- a/funcom_test/251133.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getItemsToReview() throws InternalException { - logger.debug("entering getItemsToReview"); - - try { - List list = dbAccess.getItemsToReview(sMgr.getCurrentUser().getUserID()); - logger.debug("exiting getItemsToReview"); - return list; - } catch (AccessException ex) { - logger.error("couldn't access the database", ex); - throw new InternalException(ex); - } - } - COM: <s> gets the items the admin still has to review </s> - diff --git a/funcom_test/251145.txt b/funcom_test/251145.txt deleted file mode 100644 index 3d5c09a47eb9e9b17268ec52e0df868ca7ae7fcb..0000000000000000000000000000000000000000 --- a/funcom_test/251145.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void removeItem(String itemPID) throws SecurityException, InternalException { - logger.debug("entering removeItem"); - updateClearance(itemPID); - - if(!clearance.canDelete()){ - logger.info("insufficient privilages to delete item"); - throw new SecurityException("insufficient privilages"); - } - - try{ - // remove db record - dbManage.removeItem(itemPID); - fedI.removeItem(itemPID); - searchMgr.deleteItemIndex(itemPID); - logger.info("leaving removeItem"); - }catch(Throwable e){ - logger.error(e); - throw new InternalException(e); - } - } - COM: <s> removes all traces of the item specified </s> - diff --git a/funcom_test/251166.txt b/funcom_test/251166.txt deleted file mode 100644 index 4e7df338be74dbae4d2c5d4bbe95788d5a532298..0000000000000000000000000000000000000000 --- a/funcom_test/251166.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void deleteAllDocuments() throws IOException { - logger.debug("entering deleteAllDocuments()"); - - IndexReader reader = null; - try { - reader = IndexReader.open(Config.getIndexPath()); - int numDocs = reader.numDocs(); - for (int i=0; i<numDocs; i++) { - reader.deleteDocument(i); - } - reader.close(); - logger.debug("leaving deleteAllDocuments()"); - - } catch (IOException ioe) { - logger.error ("problem deleting document from Lucene index",ioe); - throw ioe; - } - } - COM: <s> deletes all the documents from lucene index </s> - diff --git a/funcom_test/251181.txt b/funcom_test/251181.txt deleted file mode 100644 index 24f0671634934d700f71d9a94a14f7301b9ef3a6..0000000000000000000000000000000000000000 --- a/funcom_test/251181.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void deleteDoc(String itemPID) { - logger.debug("entering deleteDoc"); - - int index = search.getItemIndex(itemPID); - if (index != -1) { - try { - IndexReader reader = IndexReader.open(Config.getIndexPath()); - reader.deleteDocument(index); - reader.close(); - } catch (Exception e) { - logger.warn("error deleting document from lucene index", e); - } - } else { - logger.info("item with pid: " + itemPID + " not found"); - } - logger.debug("leaving deleteDoc"); - } - COM: <s> deletes a given item from the index </s> - diff --git a/funcom_test/25123815.txt b/funcom_test/25123815.txt deleted file mode 100644 index d3c904694a48e69a8ffee0a332549b209112b6dd..0000000000000000000000000000000000000000 --- a/funcom_test/25123815.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected Control createDialogArea(Composite parent) { - - // Local Declarations - Composite swtComposite = (Composite) super.createDialogArea(parent); - GridLayout layout = (GridLayout) swtComposite.getLayout(); - Composite comp; - - // Set the column layout to one so that everything will stack - layout.numColumns = 1; - - // Create the EntryComposite based on the Entries in the DataComponent - for (Entry i : dataComp.retrieveAllEntries()) { - entryComposites.add(new EntryComposite(swtComposite, SWT.FLAT, i)); - } - - return swtComposite; - } - COM: <s> overridden create dialog area to create the client area of the dialog </s> - diff --git a/funcom_test/25125142.txt b/funcom_test/25125142.txt deleted file mode 100644 index 2dc2e6e0a07d65c383d656057e8908e397c4d7e7..0000000000000000000000000000000000000000 --- a/funcom_test/25125142.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void initKeys() { - inputManager.addMapping("Shoot", - new KeyTrigger(KeyInput.KEY_SPACE), // trigger 1: spacebar - new MouseButtonTrigger(0)); // trigger 2: left-button click - inputManager.addListener(actionListener, "Shoot"); - } - COM: <s> declaring the shoot action and mapping to its triggers </s> - diff --git a/funcom_test/25125156.txt b/funcom_test/25125156.txt deleted file mode 100644 index 310f8fc3b927f20ebc34f0c03f4e764de852f443..0000000000000000000000000000000000000000 --- a/funcom_test/25125156.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected Geometry makeFloor() { - Box box = new Box(new Vector3f(0,-4,-5), 15,.2f,15); - Geometry floor = new Geometry("the Floor", box); - Material mat1 = new Material(assetManager, "Common/MatDefs/Misc/SolidColor.j3md"); - mat1.setColor("m_Color", ColorRGBA.Gray); - floor.setMaterial(mat1); - return floor; - } - COM: <s> a floor to show that the shot can go through several objects </s> - diff --git a/funcom_test/2514401.txt b/funcom_test/2514401.txt deleted file mode 100644 index 88d79574889f779910c8f65ea723e87567080600..0000000000000000000000000000000000000000 --- a/funcom_test/2514401.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public TagLists getCoocNames() throws Exception{ - String query_clause = "SELECT a.id1, b.name FROM "+DataDefinitions.getCoOccurrenceTableName()+" AS a " - + " INNER JOIN "+DataDefinitions.getRelTagsTableName()+" AS b ON b.id = a.id1 " - + " WHERE a.id1=a.id2 ORDER BY id1"; - return getCoocNames(query_clause); - - } - COM: <s> get name info about cooc entries </s> - diff --git a/funcom_test/2514413.txt b/funcom_test/2514413.txt deleted file mode 100644 index a8598b3078476fde43cc62e56a3dd10e76133880..0000000000000000000000000000000000000000 --- a/funcom_test/2514413.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void testConnect() throws Exception { - UPnPRemoteDeviceServer server = new UPnPRemoteDeviceServer(TESTCOMMPORT, TESTSTATUSPORT); - UPnpRemoteDeviceClient client = new UPnpRemoteDeviceClient(TESTSTATUSPORT+1); - - assertEquals(ConnectionStatus.SEARCHING,client.getConnectionStatus()); - assertEquals(ConnectionStatus.WAITING,server.getConnectionStatus()); - - server.start(); - client.connectToServer("localhost",TESTCOMMPORT); - - //wait for connection - Thread.sleep(1000L); - - assertEquals(ConnectionStatus.CONNECTED,client.getConnectionStatus()); - assertEquals(ConnectionStatus.CONNECTED,server.getConnectionStatus()); - - server.stop(); - client.stop(); - - } - COM: <s> start a server and a client and check they connect to each other </s> - diff --git a/funcom_test/2514418.txt b/funcom_test/2514418.txt deleted file mode 100644 index e15d050ce45c8de50c3fedeb8fd7b800516fdcea..0000000000000000000000000000000000000000 --- a/funcom_test/2514418.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testDeviceDiscoveryIgnoresNonMediaDevices() throws Exception { - - MockSSDPPacket discoverPacket = new MockSSDPPacket(true,true,false,true); - discoverPacket.setLocation("http://localhost:9999/nonmedia.xml"); - - List<Device> deviceList = upnpLocalDeviceServer.getDeviceList(); - assertEquals("No device should be found",0,deviceList.size()); - - controlPoint.sendNotifyRecieved(discoverPacket); - - deviceList = upnpLocalDeviceServer.getDeviceList(); - assertEquals("No device should be found",0,deviceList.size()); - - } - COM: <s> start a server send a root device discovery packet and check to see </s> - diff --git a/funcom_test/2514444.txt b/funcom_test/2514444.txt deleted file mode 100644 index cb96e857a0d826c9bca64a72e464fd6b479c451e..0000000000000000000000000000000000000000 --- a/funcom_test/2514444.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public TagLists getCoocNames(int id) throws Exception{ - String query_clause = "SELECT a.id2, b.name FROM "+DataDefinitions.getCoOccurrenceTableName()+" AS a " - + " INNER JOIN "+DataDefinitions.getRelTagsTableName()+" AS b ON b.id = a.id2 " - + " WHERE a.id1="+id+" ORDER BY id1"; - return getCoocNames(query_clause); - } - COM: <s> get name info about cooc entries for specific tag </s> - diff --git a/funcom_test/2514512.txt b/funcom_test/2514512.txt deleted file mode 100644 index 9a18dae19b254279798708be881b527496273669..0000000000000000000000000000000000000000 --- a/funcom_test/2514512.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int getGroupIdOfTag(int id){ - int group_id = -1; - try{ - String query_clause = "SELECT DISTINCT group_id FROM "+DataDefinitions.getRelTagsTableName() - +" WHERE id = "+id; - ResultSet res = query(query_clause); - if (res != null){ - res.next(); - group_id = res.getInt("group_id"); - } - res.close(); - } catch (Exception e){ DataDefinitions.logger.addLogLine(e.getMessage(),2); } - return group_id; - } - COM: <s> select the group id of a specific tag </s> - diff --git a/funcom_test/2514553.txt b/funcom_test/2514553.txt deleted file mode 100644 index 7edcd8855041eacf32ba23079afbc30669a04102..0000000000000000000000000000000000000000 --- a/funcom_test/2514553.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getCurrentMaxGroupId() throws Exception { - int group_id = 0; - String query_clause = "SELECT MAX(group_id) AS max_group_id FROM "+DataDefinitions.getRelTagsTableName(); - ResultSet res_max_group_id = query(query_clause); - res_max_group_id.next(); - group_id = res_max_group_id.getInt("max_group_id"); - DataDefinitions.logger.addLogLine("Found maximum group_id = "+group_id,2); - return group_id; - } - COM: <s> get current max </s> - diff --git a/funcom_test/2514592.txt b/funcom_test/2514592.txt deleted file mode 100644 index 587c231dc28d86660cf8498164a39ad124430a46..0000000000000000000000000000000000000000 --- a/funcom_test/2514592.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateWordnetOccurrances(int id, int nouns, int verbs, int adjectives, int adverbs) throws Exception{ - String update_stm = - "UPDATE "+DataDefinitions.getRelTagsTableName()+" SET wn_nouncount = " + nouns + - ", wn_verbcount = " + verbs + - ", wn_adverbcount = " + adverbs + - ", wn_adjectivecount = " + adjectives + - " WHERE id = "+id; - execute(update_stm); - } - COM: <s> update wordnet occurrances of a tag </s> - diff --git a/funcom_test/2515042.txt b/funcom_test/2515042.txt deleted file mode 100644 index 2ab36b29bd3f940be8bc6495d9e75143100a6e2d..0000000000000000000000000000000000000000 --- a/funcom_test/2515042.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void mapTagToId(int src_id, int tar_id, String lang){ - String update_clause = "UPDATE "+DataDefinitions.getRelTagsTableName()+" SET spchk_mapped_to = "+tar_id+ - ", tra_orig_lang = \""+lang+"\" WHERE id = "+src_id+ - " OR spchk_mapped_to = "+src_id; - try{ - execute(update_clause); - }catch (Exception e){ - DataDefinitions.logger.addLogLine(e.getMessage()+"\n"+update_clause,2); - } - } - COM: <s> map tag to another tag as result of spellchecking translating </s> - diff --git a/funcom_test/251935.txt b/funcom_test/251935.txt deleted file mode 100644 index 37218240241a6bb4d48f145530a5e86b8f88a457..0000000000000000000000000000000000000000 --- a/funcom_test/251935.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void run() { - SafeSaveDialog dlg = new SafeSaveDialog(StreamReader.getApp().getShell() - .getShell()); - dlg.setFilterNames(Constants.FILTER_NAMES); - dlg.setFilterExtensions(Constants.FILTER_EXTENSIONS); - String fileName = dlg.open(); - if (fileName != null) { - StreamReader.getApp().saveFileAs(fileName); - } - } - COM: <s> saves the file </s> - diff --git a/funcom_test/252239.txt b/funcom_test/252239.txt deleted file mode 100644 index 8ec92bd604242bc7cee5c8170870b2d409b1803b..0000000000000000000000000000000000000000 --- a/funcom_test/252239.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void updateHistory(CCombo combo, List history) { - String findString = combo.getText(); - int index= history.indexOf(findString); - if (index != 0) { - if (index != -1) { - history.remove(index); - } - history.add(0, findString); - updateCombo(combo, history); - combo.setText(findString); - //Set blinking cursor to end of text - combo.setSelection(new Point(findString.length(),findString.length())); - } - } - COM: <s> updates the combo with the history </s> - diff --git a/funcom_test/25234806.txt b/funcom_test/25234806.txt deleted file mode 100644 index 336d4316736f2d23e7d6006da468e6f8d5e8023c..0000000000000000000000000000000000000000 --- a/funcom_test/25234806.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void handleLocation(LocationPoint locationNode, Attributes attributes) { - try { - double longitude = Double.parseDouble(attributes.getValue(ATTR_LONGITUDE)); - double latitude = Double.parseDouble(attributes.getValue(ATTR_LATITUDE)); - - locationNode.setLocation(longitude, latitude); - } catch (NumberFormatException e) { - System.out.println("Parse Exception!"); - // wrong data, do nothing. - } - } - COM: <s> handles the location attributes and store them into a </s> - diff --git a/funcom_test/25243104.txt b/funcom_test/25243104.txt deleted file mode 100644 index a8d253f9ffa940707b1eafc293b4ab677bf5c049..0000000000000000000000000000000000000000 --- a/funcom_test/25243104.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JPanel getWindowContentPane() { - if (windowContentPane == null) { - BorderLayout borderLayout = new BorderLayout(); - borderLayout.setVgap(3); - borderLayout.setHgap(3); - windowContentPane = new JPanel(); - windowContentPane.setLayout(borderLayout); - windowContentPane.add(getWindowSplitPane(), BorderLayout.CENTER); - windowContentPane.add(getToolsPanel(), BorderLayout.NORTH); - } - return windowContentPane; - } - COM: <s> this method initializes window content pane </s> - diff --git a/funcom_test/25243115.txt b/funcom_test/25243115.txt deleted file mode 100644 index 3d16bdb0dd3de9102db0c07b73dd35f7f43bfe6d..0000000000000000000000000000000000000000 --- a/funcom_test/25243115.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getToolsPanel() { - if (toolsPanel == null) { - toolsPanel = new JPanel(); - toolsPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); - toolsPanel.add(getDrivesComboBox(), null); - toolsPanel.add(getIconSizeComboBox(), null); - toolsPanel.add(getRefreshButton(), null); - } - return toolsPanel; - } - COM: <s> this method initializes tools panel </s> - diff --git a/funcom_test/25256309.txt b/funcom_test/25256309.txt deleted file mode 100644 index bff5c1804c9b01cf9d4f4d3fed24ed2cfcc5a413..0000000000000000000000000000000000000000 --- a/funcom_test/25256309.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private SubjectKeyIdentifier getSubjectKeyIdentifier() { - byte[] derValue = certificate.getExtensionValue(X509Extensions.SubjectKeyIdentifier.getId()); - - if ((derValue == null) || (derValue.length == 0)) { - return null; - } - - SubjectKeyIdentifier ski = null; - - try { - ski = new SubjectKeyIdentifierStructure(derValue); - } catch (IOException e) { - return null; - } - - return ski; - } - COM: <s> get subject key identifier from signing certificate </s> - diff --git a/funcom_test/25283716.txt b/funcom_test/25283716.txt deleted file mode 100644 index d89bec400a4d1f4f7e470e3e9d22441111af2800..0000000000000000000000000000000000000000 --- a/funcom_test/25283716.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public Object invoke(URL url, Object[] arguments) throws Exception, PpException { - InvocationListenerImpl listener = new InvocationListenerImpl(); - server.invocation(url, arguments, listener); - while (true) { - try { - listener.semaphore.acquire(); - break; - } catch (InterruptedException e) { - if (debug) { - System.err.println("PadRMI invocation interrupted while waiting for result -- retrying:"); - e.printStackTrace(); - } - } - } - switch (listener.state) { - case RESULT: - return listener.result; - case ERROR: - throw listener.exception; - default: - throw new PpLocalException("Unknown state while waiting for invocation result, this should never happen."); - } - } - COM: <s> makes a call using server given on construction time interface and waits </s> - diff --git a/funcom_test/25283768.txt b/funcom_test/25283768.txt deleted file mode 100644 index 8d5f18b639b43d6537a00483e14d1905e039ed4f..0000000000000000000000000000000000000000 --- a/funcom_test/25283768.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public PpRemote createProxy(URL objectURL, Class<?> iface) throws MalformedURLException { - InvocationHandler handler = new InvocationHandlerImpl(objectURL); - URL resourceURL = new URL(objectURL, "."); - PpRemote proxy = (PpRemote) Proxy.newProxyInstance(URLClassLoaderFactory.getURLClassLoader(resourceURL), new Class[] { iface }, handler); - return proxy; - } - COM: <s> creates a proxy object implementing given interface for remote object </s> - diff --git a/funcom_test/25283769.txt b/funcom_test/25283769.txt deleted file mode 100644 index bacd229f74550d3ec76fc8f1cc0b5cb98832d9a3..0000000000000000000000000000000000000000 --- a/funcom_test/25283769.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { - try { - URL methodURL = new URL(objectURL + "/" + method.getName()); - if (method.isAnnotationPresent(Timeout.class)) { - return server.getTimeoutInvocator().invoke(methodURL, args, method.getAnnotation(Timeout.class).value()); - } else { - return server.getTimeoutInvocator().invoke(methodURL, args); - } - } catch (InvocationTargetException e) { - throw e.getTargetException(); - } - } - COM: <s> handles calls performed on proxy object and passes them to the local </s> - diff --git a/funcom_test/25284200.txt b/funcom_test/25284200.txt deleted file mode 100644 index 9a2829463e770912f9e01875a70c426c4f75dc88..0000000000000000000000000000000000000000 --- a/funcom_test/25284200.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Method findMethod(Class<? extends PpRemote> iface, String name, Object[] arguments) { - int argumentsCount = arguments == null ? 0 : arguments.length; - Method[] methods = iface.getMethods(); - for (Method method : methods) { - if (name.equals(method.getName()) && method.getParameterTypes().length == argumentsCount) { - return method; - } - } - return null; - } - COM: <s> finds first method with specified name and correct number of arguments </s> - diff --git a/funcom_test/25284249.txt b/funcom_test/25284249.txt deleted file mode 100644 index 25329087c7fd46d7582159bd5dfbeb819c3770bc..0000000000000000000000000000000000000000 --- a/funcom_test/25284249.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void run() { - while (!serverSocket.isClosed()) { - try { - try { - new Thread(new ReceiverConnection(this, AccessController.doPrivileged(new SocketAcceptAction(serverSocket)))).start(); - } catch (PrivilegedActionException e) { - throw (IOException) e.getException(); - } - } catch (SocketException e) { - continue; // socket closed now so we stop - } catch (IOException e) { - System.err.println("error receiving message:"); - e.printStackTrace(); - } - } - } - COM: <s> receives messages in new threads as long as server socket is open </s> - diff --git a/funcom_test/25284350.txt b/funcom_test/25284350.txt deleted file mode 100644 index f4b4d563078a04ff8d0adebd5b4878bd8f920cdf..0000000000000000000000000000000000000000 --- a/funcom_test/25284350.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addObject(String name, PpRemote object, Class<? extends PpRemote> iface, String username, String password) { - assert name != null; - assert object != null; - assert iface != null; - ObjectEntry entry = new ObjectEntry(name, object, iface, username, password); - objects.put(name, entry); - } - COM: <s> registers object making resource available to other servers under the </s> - diff --git a/funcom_test/25313852.txt b/funcom_test/25313852.txt deleted file mode 100644 index 3bf46cdf8bd95ef605a49fb2e40fe766abdb5af3..0000000000000000000000000000000000000000 --- a/funcom_test/25313852.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String encode(final Object value) { - final StringWriter writer = new StringWriter(); - try { - this.encoder.encode(value, writer); - writer.flush(); - return writer.getBuffer().toString(); - } - catch (final IOException e) { - throw new RuntimeException("StringWriter should not throw IOException!", e); - } - } - COM: <s> encodes an object using json notation </s> - diff --git a/funcom_test/25330348.txt b/funcom_test/25330348.txt deleted file mode 100644 index e1dbbb48950d12bc8e76c390c59aa68c537047a6..0000000000000000000000000000000000000000 --- a/funcom_test/25330348.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("FL".equals(portName)) { - setFLEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/25351434.txt b/funcom_test/25351434.txt deleted file mode 100644 index a1d7dfab1962cdd3dc9a125f3f3e765a3b11c363..0000000000000000000000000000000000000000 --- a/funcom_test/25351434.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean containsKey(String key) { - for (int i = messages.size() - 1; i >= 0; i--) { - Object messageContainer = messages.get(i); - if (messageContainer instanceof Properties && ((Properties) messageContainer).containsKey(key)) - return true; - if (messageContainer instanceof ResourceBundle && containsKey((ResourceBundle) messageContainer, key)) { - return true; - } - } - return false; - } - COM: <s> tests if the specified key is known in messages </s> - diff --git a/funcom_test/25432483.txt b/funcom_test/25432483.txt deleted file mode 100644 index af6f004b73dc55af6e287cf3d4cce8b0c707baed..0000000000000000000000000000000000000000 --- a/funcom_test/25432483.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void step() { - Block.step(blocks); - - if(BlockGenerator.shouldGenerateBlock() || BlockGenerator.shouldGenerateBlock()) { - blocks.add(BlockGenerator.generateTitleBlock()); - } - - final Iterator<Block> itr = blocks.iterator(); - while(itr.hasNext()) { - if(itr.next().getYOfTop() < 0) { - itr.remove(); - } - } - - blinkTimer = (blinkTimer + 1) % (2 * BLINK_FRAMES); - } - COM: <s> advances the title screen animation by one frame </s> - diff --git a/funcom_test/25432497.txt b/funcom_test/25432497.txt deleted file mode 100644 index 0d80cf7e45659f2258d98ccc0a859ea629d02fb7..0000000000000000000000000000000000000000 --- a/funcom_test/25432497.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void paint(Graphics g) { - g.setFont(FontAdjuster.createAdjustedFont(CONTINUE_FONT)); - - FontAdjuster.drawOutlinedString(g, CONTINUE_TEXT, ScreenSize.getWidth() / 2 - - (int)(g.getFontMetrics().getStringBounds(CONTINUE_TEXT, g).getWidth() / 2), - BOUNDARY_DISTANCE, CONTINUE_COLOR); - } - COM: <s> draws the gameover screen onto an image </s> - diff --git a/funcom_test/25432527.txt b/funcom_test/25432527.txt deleted file mode 100644 index 1047379181115017536bb1088f567aea63a2b25b..0000000000000000000000000000000000000000 --- a/funcom_test/25432527.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void reset(int playerX, int playerY) { - width = (int)(DEFAULT_WIDTH * ScreenSize.getXScale()); - height = (int)(DEFAULT_HEIGHT * ScreenSize.getYScale()); - velocity = GameType.getSetting(Mechanics.GRAVITY); - - x = playerX - width / 2; - y = playerY; - - isAlive = true; - isMoving = false; - isAirborne = false; - isFacingRight = true; - } - COM: <s> resets the location of the player horizontally centered on the x </s> - diff --git a/funcom_test/25432545.txt b/funcom_test/25432545.txt deleted file mode 100644 index f82bdb9f2a4fff76bbce7344df042cb2228ed113..0000000000000000000000000000000000000000 --- a/funcom_test/25432545.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void move(boolean isToTheRight) { - isFacingRight = isToTheRight; - isMoving = true; - - final int movement = (int)GameType.getSetting(Mechanics.MOVE_SPEED); - - if(isFacingRight) { - x = (x + movement) % ScreenSize.getWidth(); - } else { - x = (x - movement + ScreenSize.getWidth()) % ScreenSize.getWidth(); - } - } - COM: <s> moves the player horizontally </s> - diff --git a/funcom_test/254717.txt b/funcom_test/254717.txt deleted file mode 100644 index 98fc93073fbf7415117424f08dd1145c254dd43a..0000000000000000000000000000000000000000 --- a/funcom_test/254717.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addSibling(AST node) { - if(node == null) return; - TNode next = (TNode)right; - right = (TNode)node; - ((TNode)node).left = this; - TNode nodeLastSib = ((TNode)node).getLastSibling(); - nodeLastSib.right = next; - if(next != null) - next.left = nodeLastSib; - } - COM: <s> add the new node as a new sibling inserting it ahead of any </s> - diff --git a/funcom_test/25478225.txt b/funcom_test/25478225.txt deleted file mode 100644 index 9553c97c29060a74dcb94e627fca7887f2f8e763..0000000000000000000000000000000000000000 --- a/funcom_test/25478225.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected LocalDate getEasterSunday(int year, ChronologyType ct) { - LocalDate easterSunday; - if (ct == ChronologyType.JULIAN) { - easterSunday = CalendarUtil.getJulianEasterSunday(year); - } else if (ct == ChronologyType.GREGORIAN) { - easterSunday = CalendarUtil.getGregorianEasterSunday(year); - } else { - easterSunday = CalendarUtil.getEasterSunday(year); - } - return easterSunday; - } - COM: <s> p get easter sunday </s> - diff --git a/funcom_test/25480406.txt b/funcom_test/25480406.txt deleted file mode 100644 index 7f36ea4599d069c75abe3062d7c51ee459bc3cc4..0000000000000000000000000000000000000000 --- a/funcom_test/25480406.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int lockup(BufferedImage Img){ - - for (int j = 0; j < Img.getHeight(); j++) { - for (int i = 0; i < Img.getWidth(); i++) { - if(Img.getRGB(i, j)==-16777216){ - if(j==0){ - return j; - } - return j-1; - } - } - } - return 0; - } - COM: <s> this method reads the image until it reads the first black pixel </s> - diff --git a/funcom_test/25480410.txt b/funcom_test/25480410.txt deleted file mode 100644 index 45a1d7d4a8a0d1ed837c60234d300d16115b1328..0000000000000000000000000000000000000000 --- a/funcom_test/25480410.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public BufferedImage crop(BufferedImage imageToCrop) { - - int y1 = lockup(imageToCrop); - int y2 = lockdown(imageToCrop, y1); - int x1 = 0; - int x2 = imageToCrop.getWidth(); - return imageToCrop.getSubimage(x1, y1, x2 - x1, y2 - y1); - } - COM: <s> this method crop the input image and return is as a buffered image </s> - diff --git a/funcom_test/25488623.txt b/funcom_test/25488623.txt deleted file mode 100644 index b82d3c27bbb14c645787f696b7a9f120caec52b9..0000000000000000000000000000000000000000 --- a/funcom_test/25488623.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected BeanDefinition registerBeanDefinition(ParserContext parserContext, BeanDefinitionBuilder builder){ - BeanDefinitionRegistry registry = parserContext.getRegistry(); - - BeanDefinition def = builder.getBeanDefinition(); - String name = parserContext.getReaderContext().generateBeanName(def); - registry.registerBeanDefinition(name, def); - return def; - } - COM: <s> register anonymous bean </s> - diff --git a/funcom_test/25583834.txt b/funcom_test/25583834.txt deleted file mode 100644 index 9a7e70da7c6523e56ebbc7a6a9729d310a1115fc..0000000000000000000000000000000000000000 --- a/funcom_test/25583834.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void createObstacles() { - int NUM_OBSTACLES = 40; - - for (int idx = 0; idx < NUM_OBSTACLES; idx++) { - Body obstacle = new Body(this); - obstacle.setRealisationAndGeometry("BarrageBalloon"); - obstacle.restitution = 0.25; - - obstacle.setPosition( - obstacle.width - / 2 - + gameEngine.randomiser - .nextInt((int) (this.width - obstacle.width / 2)), - obstacle.height - / 2 - + gameEngine.randomiser - .nextInt((int) (this.height - obstacle.height / 2))); - this.addGameObject(obstacle); - } - } - COM: <s> create a set of barrage balloons within the layer to provide obstacles </s> - diff --git a/funcom_test/25583846.txt b/funcom_test/25583846.txt deleted file mode 100644 index 9b350aa31d22f8c3aeaab7e58c11a9b1252486b0..0000000000000000000000000000000000000000 --- a/funcom_test/25583846.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void triggerProjectileHit() { - projectileState = ProjectileState.Hit; - - setRealisation(hitAsset); - - // It is assumed that once hit a projectile stops (i.e. explodes - // and cannot interact other objects). This is not a necessary - // assumption and could be extended to support projectiles that - // can bounce off a number of different objects, etc. - velocityx = 0.0; - velocityy = 0.0; - canIntersectOtherGraphicalObjects = false; - - projectileTriggerTime = System.nanoTime(); - } - COM: <s> display the projectile hit animation </s> - diff --git a/funcom_test/25584264.txt b/funcom_test/25584264.txt deleted file mode 100644 index 7a17d6e6dd1b78d178ce1b2d5256a3fba9f29251..0000000000000000000000000000000000000000 --- a/funcom_test/25584264.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getVolume() { - int maximumVolume = -1; - - if (channels != null) { - int channelVolume; - for (int idx = 0; idx < channels.length; idx++) { - channelVolume = channels[idx].getController(7); - if (channelVolume > maximumVolume) { - maximumVolume = channelVolume; - } - } - } - - return maximumVolume; - } - COM: <s> return the current maximum playback volume across all midi channels </s> - diff --git a/funcom_test/25584279.txt b/funcom_test/25584279.txt deleted file mode 100644 index 16a728f39e9ebe04d2f2e2e833587224144530c8..0000000000000000000000000000000000000000 --- a/funcom_test/25584279.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void close() { - if (sequencer != null) { - if (sequencer.isOpen() && sequencer.isRunning()) { - sequencer.stop(); - } - sequencer.close(); - sequencer = null; - } - - if (synthesizer != null) { - if (synthesizer.isOpen()) { - synthesizer.close(); - } - synthesizer = null; - } - } - COM: <s> stop playback of the midi sequence and close the associated synthesizer </s> - diff --git a/funcom_test/25584315.txt b/funcom_test/25584315.txt deleted file mode 100644 index 9c0490216a5fc2d09fe86a1c2ce4d3df61c5d3a2..0000000000000000000000000000000000000000 --- a/funcom_test/25584315.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Asset deepClone() { - if (midiURL == null) { - throw new IllegalStateException("MidiAsset.deepClone: " + - "Object constructed without midi URL specified. " + - "Deep clone not possible."); - } - - MidiAsset clone = new MidiAsset(assetName, midiURL, continuallyPlay); - return clone; - } - COM: <s> return a deep clone of this midi asset clip </s> - diff --git a/funcom_test/25584334.txt b/funcom_test/25584334.txt deleted file mode 100644 index 4a6e0bfb66d9b69a8b94b4814992c37261f1c46c..0000000000000000000000000000000000000000 --- a/funcom_test/25584334.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Asset deepClone() { - ImageAsset clone = (ImageAsset) shallowClone(); - - clone.image = new BufferedImage( - image.getWidth(), image.getHeight(), image.getType()); - Graphics2D graphics2D = clone.image.createGraphics(); - graphics2D.drawImage(image, null, 0, 0); - graphics2D.dispose(); - - return clone; - } - COM: <s> return a deep clone of this image asset </s> - diff --git a/funcom_test/25584360.txt b/funcom_test/25584360.txt deleted file mode 100644 index 2940920d642fbbbad83b44d4ddbfb5b87772d753..0000000000000000000000000000000000000000 --- a/funcom_test/25584360.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Asset deepClone() { - if (clipURL == null) { - throw new IllegalStateException("SoundAsset.deepClone: " + - "Object constructed without clip URL specified. " + - "Deep clone not possible."); - } - - SoundAssetClip clone - = new SoundAssetClip(assetName, clipURL, continuallyPlayClip); - return clone; - } - COM: <s> return a deep clone of this sound asset clip </s> - diff --git a/funcom_test/25584478.txt b/funcom_test/25584478.txt deleted file mode 100644 index 35341d9623019a4e89e306d0acdd56e032d10439..0000000000000000000000000000000000000000 --- a/funcom_test/25584478.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void stop(int clipIdx) { - if (clipIdx < 0 || clipIdx > clipAssembly.length) { - throw new IllegalArgumentException("SoundAssetAssembly.stop: " + - "Invalid clip index specified: " + clipIdx); - } - - clipAssembly[clipIdx].stop(); - - // Update the next playback index to point to the stopped clip - nextPlaybackIdx = clipIdx; - } - COM: <s> stop playback of the specified clip index within the assembly </s> - diff --git a/funcom_test/25584545.txt b/funcom_test/25584545.txt deleted file mode 100644 index 3a4370c4cc71fcb50e63f39df4dea8fd0e216aa8..0000000000000000000000000000000000000000 --- a/funcom_test/25584545.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void ensureCapacity(int minCapacity) { - int oldCapacity = gameObjects.length; - if (minCapacity >= oldCapacity) { - Object[] oldData = gameObjects; - int newCapacity = (oldCapacity * 3) / 2 + 1; - if (newCapacity < minCapacity) { - newCapacity = minCapacity; - } - - gameObjects = Arrays.copyOf(gameObjects, newCapacity); - } - } - COM: <s> increases the capacity of this instance if necessary to ensure that </s> - diff --git a/funcom_test/25584563.txt b/funcom_test/25584563.txt deleted file mode 100644 index fe4b16a9dc6d5614f4824d40a51fdd0dd98a8025..0000000000000000000000000000000000000000 --- a/funcom_test/25584563.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int indexOf(Object o) { - if (o == null) { - for (int i = 0; i < size; i++) { - if (gameObjects[i] == null) { - return i; - } - } - } else { - for (int i = 0; i < size; i++) { - if (o.equals(gameObjects[i])) { - return i; - } - } - } - return -1; - } - COM: <s> returns the index of the first occurrence of the specified element </s> - diff --git a/funcom_test/25584587.txt b/funcom_test/25584587.txt deleted file mode 100644 index de815ba63231e94f0057bde0892b0f56c56f4a66..0000000000000000000000000000000000000000 --- a/funcom_test/25584587.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void add(int index, GameObject element) { - if (index > size || index < 0) { - throw new IndexOutOfBoundsException("Index: " + index + ", Size: " + size); - } - ensureCapacity(size + 1); // Increments modCount!! - System.arraycopy(gameObjects, index, gameObjects, index + 1, size - index); - gameObjects[index] = element; - size++; - } - COM: <s> inserts the specified element at the specified position in this </s> - diff --git a/funcom_test/25584588.txt b/funcom_test/25584588.txt deleted file mode 100644 index eb16da24102267dca7647231f8f299f6a91e1aeb..0000000000000000000000000000000000000000 --- a/funcom_test/25584588.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addMidiAsset(String assetName, boolean continuallyPlay, URL midiURL) { - /* - * In order to ensure that the MidiAsset can return a deep clone the - * loadMidiSequence method of AssetLoader is not used, instead the - * MidiAsset is permitted to load the sequence itself. - */ - MidiAsset midiAsset = new MidiAsset(assetName, midiURL, continuallyPlay); - assetStore.put(assetName, midiAsset); - } - COM: <s> create and store a midi asset containing the specified midi sequence </s> - diff --git a/funcom_test/25584592.txt b/funcom_test/25584592.txt deleted file mode 100644 index 8d80d57d1a324f0198460f60077363cba0594a03..0000000000000000000000000000000000000000 --- a/funcom_test/25584592.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public GameObject remove(int index) { - GameObject oldValue = gameObjects[index]; - - int numMoved = size - index - 1; - if (numMoved > 0) { - System.arraycopy(gameObjects, index + 1, gameObjects, index, numMoved); - } - gameObjects[--size] = null; // Let gc do its work - return oldValue; - } - COM: <s> removes the element at the specified position in this list </s> - diff --git a/funcom_test/25584614.txt b/funcom_test/25584614.txt deleted file mode 100644 index 614803751f63109db90bdd19fdccdb8bf25b8828..0000000000000000000000000000000000000000 --- a/funcom_test/25584614.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void gameRender(Graphics2D graphics2D) { - for (int layerIdx = 0; layerIdx < gameLayersDrawOrderSorted.size(); layerIdx++) { - GameLayer gameLayer = gameLayersDrawOrderSorted.get(layerIdx); - if (gameLayer.getVisibility() == GameLayer.GameLayerVisibility.VISIBLE) { - gameLayer.draw(graphics2D); - } - } - } - COM: <s> render the each visible game layer to an available graphics buffer </s> - diff --git a/funcom_test/25584617.txt b/funcom_test/25584617.txt deleted file mode 100644 index cd1d1fcdf9f2424109d4523e72df397d6d86f636..0000000000000000000000000000000000000000 --- a/funcom_test/25584617.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Asset retrieveAsset(String assetName) { - if (assetStore.containsKey(assetName) == false) { - throw new IllegalArgumentException( "AssetManager.retrieveAsset: " + - "Cannot locate " + assetName + " in asset store."); - } - - Asset asset = assetStore.get(assetName); - return asset.shallowClone(); - } - COM: <s> attempt to return a shallow clone of the specified archetype asset </s> - diff --git a/funcom_test/25584619.txt b/funcom_test/25584619.txt deleted file mode 100644 index 2c1cc069bba4a6eb279f1ecf01fe3618991b03b0..0000000000000000000000000000000000000000 --- a/funcom_test/25584619.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean addAll(Collection<GameObject> c) { - Object[] a = c.toArray(); - int numNew = a.length; - ensureCapacity(size + numNew); // Increments modCount - System.arraycopy(a, 0, gameObjects, size, numNew); - size += numNew; - return numNew != 0; - } - COM: <s> appends all of the elements in the specified collection to the end of </s> - diff --git a/funcom_test/25584627.txt b/funcom_test/25584627.txt deleted file mode 100644 index 1d7b712cdc0f83deeba8ec3485ac5f45a9b65507..0000000000000000000000000000000000000000 --- a/funcom_test/25584627.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setMass(double mass) { - if (mass <= 0.0) { - throw new IllegalArgumentException("Body.setMass: " + - "Invalid mass = " + mass); - } - this.mass = mass; - - if( mass != Body.INFINITE_MASS ) - breakingImpulseAssumedBodyMass = mass; - - updateMassAndInertiaValues(); - } - COM: <s> set the mass of the body is that specified </s> - diff --git a/funcom_test/25584630.txt b/funcom_test/25584630.txt deleted file mode 100644 index b05edca7735740a922d97082c74a61a351abcd54..0000000000000000000000000000000000000000 --- a/funcom_test/25584630.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Asset retrieveAssetClone(String assetName) { - if (assetStore.containsKey(assetName) == false) { - throw new IllegalArgumentException("AssetManager.retrieveAsset: " + - "Cannot locate " + assetName + " in asset store."); - } - - Asset asset = assetStore.get(assetName); - return asset.deepClone(); - } - COM: <s> attempt to return a deep clone of the specified archetype asset i </s> - diff --git a/funcom_test/25584632.txt b/funcom_test/25584632.txt deleted file mode 100644 index d33a052a91a04cb3b31077e3d2307087b606636f..0000000000000000000000000000000000000000 --- a/funcom_test/25584632.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void removeRange(int fromIndex, int toIndex) { - int numMoved = size - toIndex; - System.arraycopy(gameObjects, toIndex, gameObjects, fromIndex, numMoved); - - // Let gc do its work - int newSize = size - (toIndex - fromIndex); - while (size != newSize) { - gameObjects[--size] = null; - } - } - COM: <s> removes from this list all of the elements whose index is between </s> - diff --git a/funcom_test/25584641.txt b/funcom_test/25584641.txt deleted file mode 100644 index cd36304201081f8053c4fd3bfc179465784ec11e..0000000000000000000000000000000000000000 --- a/funcom_test/25584641.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getNumActiveGameObjects() { - int numActiveGameObjects = 0; - for (GameLayer gameLayer : gameEngine.gameLayers.values()) { - if (gameLayer.gameLayerActivity == GameLayer.GameLayerActivity.ACTIVE) { - numActiveGameObjects += gameLayer.gameObjects.size(); - } - } - - return numActiveGameObjects; - } - COM: <s> return the current number of active game objects i </s> - diff --git a/funcom_test/25584646.txt b/funcom_test/25584646.txt deleted file mode 100644 index e4364cfdd2fb4a7e880c72e75cd3298fb1170213..0000000000000000000000000000000000000000 --- a/funcom_test/25584646.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getNumVisibleGameObjects() { - int numVisibleGameObjects = 0; - - for (GameLayer gameLayer : gameEngine.gameLayers.values()) { - if (gameLayer.gameLayerVisibility == GameLayer.GameLayerVisibility.VISIBLE) { - numVisibleGameObjects += gameLayer.gameObjectsDrawOrderSorted.size(); - } - } - return numVisibleGameObjects; - } - COM: <s> return the current number of visible game objects i </s> - diff --git a/funcom_test/25584687.txt b/funcom_test/25584687.txt deleted file mode 100644 index f83d1432ed824dec601d99466beca86eac73e269..0000000000000000000000000000000000000000 --- a/funcom_test/25584687.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void removeAllBodiesAndJoints() { - GameObjectCollection bodies = getGameObjectCollection("Bodies"); - while (bodies.size > 0) { - removeGameObject(bodies.gameObjects[0]); - } - - GameObjectCollection joints = getGameObjectCollection("Joints"); - while (joints.size > 0) { - removeJoint((Joint) joints.gameObjects[0]); - } - - arbiters.clear(); - } - COM: <s> remove all bodies and joints from the physics simulation </s> - diff --git a/funcom_test/25584695.txt b/funcom_test/25584695.txt deleted file mode 100644 index 1ed8c65cb722da84daae5b00064aa97b5ae9e8d8..0000000000000000000000000000000000000000 --- a/funcom_test/25584695.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setDimensions(double width, double height) { - this.width = width; - this.height = height; - - // I = (1/12)M(a + b) - this.momentOfInertiaFactor = (width * width + height * height) / 12.0; - - // Define the surface factor and bound dimension - this.boundDimension = Math.sqrt(height * height + width * width); - this.surfaceArea = width * height; - } - COM: <s> set the dimensions of the box to that specified </s> - diff --git a/funcom_test/25584807.txt b/funcom_test/25584807.txt deleted file mode 100644 index 672963717d077cd3444bbea6d2cf16af795e0a47..0000000000000000000000000000000000000000 --- a/funcom_test/25584807.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void step() { - long timeNow = System.nanoTime(); - double dt = (timeNow - lastUpdateTime) / 1000000000.0; - lastUpdateTime = timeNow; - - // Ensure that the step is not less than the minimum permitted - // step duration - if (dt < MINIMUM_STEP_PERIOD) { - dt = MINIMUM_STEP_PERIOD; - } - - // Step the physics simulation - step(dt); - } - COM: <s> step the physics simulation based on the amount of time that has </s> - diff --git a/funcom_test/25613077.txt b/funcom_test/25613077.txt deleted file mode 100644 index 07293b6948de5a9c7a343fc26366309264432de5..0000000000000000000000000000000000000000 --- a/funcom_test/25613077.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public BigDecimal getRidePenaltySum(int rideNum) { - Ride ride = getRideByNum(rideNum); - BigDecimal penaltySum = BigDecimal.ZERO; - for (Iterator<Penalty> itPenalties = ride.getPenaltiesById().iterator(); itPenalties.hasNext();) { - Penalty penalty = itPenalties.next(); - penaltySum = penaltySum.add(penalty.getAmount()); - } - return penaltySum; - } - COM: <s> returns sum of participant penalties in the ride </s> - diff --git a/funcom_test/25613080.txt b/funcom_test/25613080.txt deleted file mode 100644 index 2063369180549c0986091bdb14cca1eb8e88045c..0000000000000000000000000000000000000000 --- a/funcom_test/25613080.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public BigDecimal getRideResultWithPenalties(int rideNum) { - BigDecimal sum = new BigDecimal(0); - Ride ride = getRideByNum(rideNum); - if (ride != null && ride.getResult().floatValue() > 0) { - sum = sum.add(ride.getResult()).add(getRidePenaltySum(rideNum)); - } - return sum; - } - COM: <s> returns participants result in specified ride including penalties </s> - diff --git a/funcom_test/25613128.txt b/funcom_test/25613128.txt deleted file mode 100644 index 1e464ffc654255c4c046fd5e1fab16511dea8322..0000000000000000000000000000000000000000 --- a/funcom_test/25613128.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Object getRideResult(Ride[] ridesArray, int ind) { - if (ridesArray[ind].isNv() || BigDecimal.ZERO.equals(ridesArray[ind].getResult())) { - return new NVResult(ridesArray[ind].getResult()); - } else { - return ridesArray[ind].getResult(); - } - } - COM: <s> creates and returns </s> - diff --git a/funcom_test/25613198.txt b/funcom_test/25613198.txt deleted file mode 100644 index 1b5455839dc50d9a8c798ffdcbba0135b5800897..0000000000000000000000000000000000000000 --- a/funcom_test/25613198.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String publishCurrentResultsToWeb() { - // Todo: make this URL configurable in ini file - String url = "http://avtobaby.info/results/update.php"; - - try { - // Todo: make param name configurable in ini file - HttpPostRequest.sendPostRequest(getResultsAsHtml(), url, "text"); - } catch (IOException e) { - return "Error occured: " + e.toString(); - } - - // Todo: make this URL configurable in ini file - String viewResultsURL = "http://avtobaby.info/results"; - return "Results successfully published and available at " + viewResultsURL; - } - COM: <s> publish current competition results to internet to the url </s> - diff --git a/funcom_test/25613232.txt b/funcom_test/25613232.txt deleted file mode 100644 index fe785d8616e5e4a4834da53ece28c999dad00956..0000000000000000000000000000000000000000 --- a/funcom_test/25613232.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public BigDecimal getPenaltySum() { - BigDecimal sum = new BigDecimal(0); - for (Iterator<Penalty> itPenalties = getPenaltiesById().iterator(); itPenalties.hasNext();) { - Penalty penalty = itPenalties.next(); - sum = sum.add(penalty.getAmount()); - } - return sum; - } - COM: <s> returns sum of penalties in this ride </s> - diff --git a/funcom_test/25649791.txt b/funcom_test/25649791.txt deleted file mode 100644 index de6889dcf80ec5e1f6c121d8b7412d5baede0bf1..0000000000000000000000000000000000000000 --- a/funcom_test/25649791.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void createReport() { - CampaignReportManager.getInstance().startReport(currentCampaign.getName()); - for (CampaignRun run : currentCampaign.getRuns()) { - CampaignResult result = new CampaignResult(run.getTestbed()); - result.setStatus(Status.NOT_EXECUTED); - CampaignReportManager.getInstance().putEntry(result); - } - - CampaignReportManager.getInstance().refresh(); - } - COM: <s> create a empty report </s> - diff --git a/funcom_test/25649831.txt b/funcom_test/25649831.txt deleted file mode 100644 index 989db8a04bb826c92a4be84306cd14923331123c..0000000000000000000000000000000000000000 --- a/funcom_test/25649831.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void open() throws SQLException, ClassNotFoundException { - logger.info("Using database driver: " + jdbcDriver); - Class.forName(jdbcDriver); - logger.info("Using database.url: " + jdbcURL); - // connect login/pass - con = DriverManager.getConnection(jdbcURL, user, password); - // Exception will be thrown if something went wrong - connected = true; - } - COM: <s> open a jdbc connection to the database </s> - diff --git a/funcom_test/25649833.txt b/funcom_test/25649833.txt deleted file mode 100644 index b28e395c159034e87d641b83f2670aeb75c2de5c..0000000000000000000000000000000000000000 --- a/funcom_test/25649833.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean removeNotificationListener(String mbeanName, NotificationListener listener) throws Exception { - if (isConnected()) { - ObjectName objectName = new ObjectName(mbeanName); - mbsc.removeNotificationListener(objectName, listener, null, null); - jmxc.removeConnectionNotificationListener(listener); - return true; - } else { - return false; - } - } - COM: <s> removes listener as notification and connection notification listener </s> - diff --git a/funcom_test/25649839.txt b/funcom_test/25649839.txt deleted file mode 100644 index 2c922857fb01928db37cfb00827765eaee93baa4..0000000000000000000000000000000000000000 --- a/funcom_test/25649839.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getControlScriptFileName() { - String scriptFilename = getString("control_script"); - if (scriptFilename != null && !new File(scriptFilename).isAbsolute() && !scriptFilename.startsWith(StaticConfiguration.CONTROL_SCRIPTS_DIRECTORY)) { - scriptFilename = StaticConfiguration.CONTROL_SCRIPTS_DIRECTORY + "/" + scriptFilename; - } - return scriptFilename; - } - COM: <s> return the file name of the control script or null if none </s> - diff --git a/funcom_test/25650933.txt b/funcom_test/25650933.txt deleted file mode 100644 index 42d35d5ff20dccc3a2cb04f3d9e332a1605dbe83..0000000000000000000000000000000000000000 --- a/funcom_test/25650933.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected String getManifestAttributeValue(Attributes.Name attributeName) { - try { - String value = attributes.getValue(attributeName); - return value != null ? value : "undefined"; - } catch (NullPointerException e) { - return "undefined"; - } catch (IllegalArgumentException e) { - logger.error("Invalid attribute name when reading jar manifest for reading version information: " + e.getMessage()); - return "undefined"; - } - } - COM: <s> gets the value of an attribute of the manifest </s> - diff --git a/funcom_test/25651257.txt b/funcom_test/25651257.txt deleted file mode 100644 index 5c0a6f3fde44d22b221af276118ac56269efd9bd..0000000000000000000000000000000000000000 --- a/funcom_test/25651257.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testGetInstance() { - System.out.println("getInstance"); - ComponentsLoader result = ComponentsLoader.getInstance(); - assertNotNull("instance cannot be null", result); - - ComponentsLoader result2 = ComponentsLoader.getInstance(); - - assertNotNull(result2); - - assertEquals("should get the same instance", result, result2); - } - COM: <s> test of get instance method of class components loader </s> - diff --git a/funcom_test/25651265.txt b/funcom_test/25651265.txt deleted file mode 100644 index f2a1d4fdb71f9e9aa589efa6bdf96163e99ea03b..0000000000000000000000000000000000000000 --- a/funcom_test/25651265.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testGetRegisteredComponents() { - System.out.println("getRegisteredComponents"); - - Collection<String> result = instance.getRegisteredComponents(); - - assertNotNull(result); - - assertTrue("JUNIT should be a component as it has been previously added", result.contains("JUNIT")); - } - COM: <s> test of get registered components method of class test apiimpl </s> - diff --git a/funcom_test/25651322.txt b/funcom_test/25651322.txt deleted file mode 100644 index ab8f0ba302d6441609669c0ca7368756aab5cc0b..0000000000000000000000000000000000000000 --- a/funcom_test/25651322.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void printTestAPIComponentLink(ClassDoc classDoc) { - String className = classDoc.name(); - mOut.println("<A HREF=\"components/" + className + ".html\" TARGET=\"detailsFrame\"><I>" + className + "</I></A><BR>"); - } - COM: <s> prints link to test api component html file in html format </s> - diff --git a/funcom_test/25721849.txt b/funcom_test/25721849.txt deleted file mode 100644 index 80184930e840e871bb700c7bdb1772e131d20fb2..0000000000000000000000000000000000000000 --- a/funcom_test/25721849.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void initBuckets(IField[] fields) { - buckets.clear(); // BUG #867594 - try { - boolean countStatics = getPrefs().countStaticAttributes(); - for (IField field : fields) { - if (countStatics || ((field.getFlags() & Flags.AccStatic) == 0)) { - buckets.put(field.getElementName(), new HashSet<String>()); - } - } - } catch (JavaModelException e) { - } - } - COM: <s> create a map of hash sets to store methods for each attribute </s> - diff --git a/funcom_test/25721893.txt b/funcom_test/25721893.txt deleted file mode 100644 index f5a757e3650f83634f8c111035e55fe56edafdbc..0000000000000000000000000000000000000000 --- a/funcom_test/25721893.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void buildPath(Vertex from, Vertex to, Map<Vertex, Vertex> p, List<Vertex> result) throws IllegalArgumentException { - if (from == to) { - result.add(from); - } else { - Vertex pv = p.get(to); - if (pv == null) { - throw new IllegalArgumentException("No path found"); - } - // recurse - buildPath(from, pv, p, result); - result.add(to); - } - } - COM: <s> recursively build the path from the precedence map calculated by the bfs </s> - diff --git a/funcom_test/25722012.txt b/funcom_test/25722012.txt deleted file mode 100644 index fa84a93033c4b9a7267716f11ea223e75007e04c..0000000000000000000000000000000000000000 --- a/funcom_test/25722012.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Color getDefaultForeground() { - RGB color = PreferenceConverter.getColor(MetricsPlugin.getDefault().getPreferenceStore(), "METRICS.defaultColor"); - if (lastDefaultColor == null) { - lastDefaultColor = new Color(getDisplay(), color); - } else if (!lastDefaultColor.getRGB().equals(color)) { - lastDefaultColor.dispose(); - lastDefaultColor = new Color(getDisplay(), color); - } - return lastDefaultColor; - } - COM: <s> get the default color for metrics without a max and within range </s> - diff --git a/funcom_test/25722015.txt b/funcom_test/25722015.txt deleted file mode 100644 index 48f5609645bbf4258b26b5fadbe97246a84f8a77..0000000000000000000000000000000000000000 --- a/funcom_test/25722015.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Color getInRangeForeground() { - RGB color = PreferenceConverter.getColor(MetricsPlugin.getDefault().getPreferenceStore(), "METRICS.linkedColor"); - if (lastInRangeColor == null) { - lastInRangeColor = new Color(getDisplay(), color); - } else if (!lastInRangeColor.getRGB().equals(color)) { - lastInRangeColor.dispose(); - lastInRangeColor = new Color(getDisplay(), color); - } - return lastInRangeColor; - } - COM: <s> get the in range color for metrics with a max and within range </s> - diff --git a/funcom_test/25722066.txt b/funcom_test/25722066.txt deleted file mode 100644 index 907f7dcf4dc2e96ea34828c53fe9502119d49b8c..0000000000000000000000000000000000000000 --- a/funcom_test/25722066.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void setMetrics(final AbstractMetricSource ms) { - try { - removeAll(); - // TODO: Allow for statistics for one package only - if (!(ms instanceof IGraphContributor)) { - return; - } - deps = ((IGraphContributor) ms).getEfferent(); - if (deps != null) { - external = new TreeSet<PackageStats>(); - calculateLayers(deps, external); - displayInternalPackages(deps, layers); - displayExternalPackages(external); - } - } catch (Throwable e) { - Log.logError("MetricsTable::setMetrics", e); - e.printStackTrace(); - } - } - COM: <s> update the table with new dependencies </s> - diff --git a/funcom_test/25722070.txt b/funcom_test/25722070.txt deleted file mode 100644 index 83640c9f8a4220cfd962db5902fd46d35816408c..0000000000000000000000000000000000000000 --- a/funcom_test/25722070.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void treeExpanded(TreeEvent e) { - TreeItem item = (TreeItem) e.item; - if (item.getData("source") != null) { - AbstractMetricSource source = (AbstractMetricSource) item.getData("source"); - String metric = (String) item.getData("metric"); - String per = (String) item.getData("per"); - addChildren(item, source, metric, per); - } - } - COM: <s> replaces dummy child nodes with the real children if needed </s> - diff --git a/funcom_test/25722182.txt b/funcom_test/25722182.txt deleted file mode 100644 index 6959a5e9d38c837776207711621020e38fd62210..0000000000000000000000000000000000000000 --- a/funcom_test/25722182.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void selectionChanged(IWorkbenchPart part, ISelection selection) { - if (selection instanceof IStructuredSelection) { - Object first = ((IStructuredSelection) selection).getFirstElement(); - if (first instanceof IJavaElement) { - IJavaElement jElem = (IJavaElement) first; - if (canDoMetrics(jElem)) { - setJavaElement(jElem, false); - } - } - } - } - COM: <s> react to selections elsewhere in the workbench </s> - diff --git a/funcom_test/25722214.txt b/funcom_test/25722214.txt deleted file mode 100644 index c2e439434df7511b354c7b9059b461ddd2bb450b..0000000000000000000000000000000000000000 --- a/funcom_test/25722214.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void clear(String projectName) { - try { - keys.remove(projectName); - long id = recman.getNamedObject(projectName); - if (id != 0) { - recman.delete(id); - HTree hashtable = HTree.createInstance(recman); - recman.setNamedObject(projectName, hashtable.getRecid()); - recman.commit(); - } - } catch (Throwable e) { - Log.logError("Could not clear project " + projectName, e); - } - } - COM: <s> permanently remove all metrics related to given project </s> - diff --git a/funcom_test/25722254.txt b/funcom_test/25722254.txt deleted file mode 100644 index b1f54b86f3ca79a9a39631c36935097dc72cd4de..0000000000000000000000000000000000000000 --- a/funcom_test/25722254.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setValue(Metric value) { - // System.err.println(input.getElementName()+"."+value.getName() + " = " - // + value.doubleValue()); - values.put(value.getName(), value); - if (MetricsPlugin.isWarningsEnabled() && !value.isPropagated()) { - checkRange(value); - } - } - COM: <s> used by calculators to store their result metrics </s> - diff --git a/funcom_test/25722263.txt b/funcom_test/25722263.txt deleted file mode 100644 index 1fbb3cf8fbf5f3b05cd40a92f21cb0ee165d6330..0000000000000000000000000000000000000000 --- a/funcom_test/25722263.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setAverage(Avg value) { - // System.err.println("AVG " + input.getElementName() + - // "."+value.getName() + " per " + value.getPer() + " = " + - // value.doubleValue()); - averages.put(value.getPer() + value.getName(), value); - } - COM: <s> used by propagators to store their result averages </s> - diff --git a/funcom_test/25722266.txt b/funcom_test/25722266.txt deleted file mode 100644 index 3cb5612c5d34cdd7654261603477be26d40a7d81..0000000000000000000000000000000000000000 --- a/funcom_test/25722266.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setMaximum(Max value) { - // System.err.println("MAX " + input.getElementName() + - // "."+value.getName() + " per " + value.getPer() + " = " + - // value.doubleValue()); - maxima.put(value.getPer() + value.getName(), value); - } - COM: <s> used by propagators to store their result maxima </s> - diff --git a/funcom_test/25722296.txt b/funcom_test/25722296.txt deleted file mode 100644 index 844e2167616f3e293f7ee9d30904f291e77a832e..0000000000000000000000000000000000000000 --- a/funcom_test/25722296.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void invokeCalculators() { - for (Iterator<ICalculator> i = getCalculators().iterator(); i.hasNext();) { - if (metricsInterruptus()) { - return; - } - ICalculator c = i.next(); - try { - c.calculate(this); - } catch (OutOfMemoryError m) { - throw m; - } catch (Throwable e) { - Log.logError("Error running calculators for " + getJavaElement().getHandleIdentifier(), e); - } - } - } - COM: <s> invokes calculate on all calculators </s> - diff --git a/funcom_test/25722365.txt b/funcom_test/25722365.txt deleted file mode 100644 index 6d5fe7bc3c3a3fb1024993df39ebe8420f3791cf..0000000000000000000000000000000000000000 --- a/funcom_test/25722365.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void initMetrics() { - sourcemap.put(IMethod.class, MethodMetrics.class); - sourcemap.put(IType.class, TypeMetrics.class); - sourcemap.put(IPackageFragment.class, PackageFragmentMetrics.class); - sourcemap.put(IPackageFragmentRoot.class, PackageFragmentRootMetrics.class); - sourcemap.put(ICompilationUnit.class, CompilationUnitMetrics.class); - sourcemap.put(IJavaProject.class, ProjectMetrics.class); - } - COM: <s> initialize the ijava element type to abstract metric source class map </s> - diff --git a/funcom_test/25722374.txt b/funcom_test/25722374.txt deleted file mode 100644 index 82e17b13a97de7e383f88c46093e8185d8cd7daf..0000000000000000000000000000000000000000 --- a/funcom_test/25722374.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ITypeHierarchy getHierarchy() { - if (hierarchy == null) { - IType iType = (IType) getJavaElement(); - try { - hierarchy = iType.newTypeHierarchy((IJavaProject) iType.getAncestor(IJavaElement.JAVA_PROJECT), null); - } catch (Throwable e) { - Log.logError("Could not get type hierarchy for " + getHandle(), e); - } - } - return hierarchy; - } - COM: <s> returns the hierarchy </s> - diff --git a/funcom_test/25722511.txt b/funcom_test/25722511.txt deleted file mode 100644 index 691a375f069c98ed498e60b576fdc970b67df727..0000000000000000000000000000000000000000 --- a/funcom_test/25722511.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addMetricsProgressListener(IMetricsProgressListener l) { - if ((l != null) && (!listeners.contains(l))) { - listeners.add(l); - synchronized (items) { - if (items.size() > 0) { - Log.logMessage("Catching up new metrics progress listener with " + items.size() + " items."); - // play catch up with l - l.queued(items.size()); - } - } - } - } - COM: <s> add listener l to be notified of metrics progress </s> - diff --git a/funcom_test/25722533.txt b/funcom_test/25722533.txt deleted file mode 100644 index 531a2893e933bdef6b21d0bdfc1c5daf0768663a..0000000000000000000000000000000000000000 --- a/funcom_test/25722533.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private boolean isEnabled(String id, IPackageFragmentRoot folder) { - boolean mEnabled = isEnabled(id); - if (!mEnabled) { - return false; - } - String handle = folder.getHandleIdentifier(); - try { - String val = project.getPersistentProperty(new QualifiedName(Constants.PLUGIN_ID, id + "_" + handle + ".enabled")); - if (val == null) { - return true; - } - return val.equals("true"); - } catch (CoreException e) { - return true; - } - - } - COM: <s> checks persisted project property </s> - diff --git a/funcom_test/25722567.txt b/funcom_test/25722567.txt deleted file mode 100644 index b51cd9ff4d022820b0934c530f3bc38ee2b97fdb..0000000000000000000000000000000000000000 --- a/funcom_test/25722567.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void enableItem(TableTreeItem item, boolean enable, boolean gray) { - item.setChecked(enable); - item.setGrayed(gray); - TableTreeItem[] children = item.getItems(); - for (TableTreeItem element2 : children) { - element2.setChecked(enable); - element2.setGrayed(!enable); - } - enableDependentMetrics((MetricDescriptor) item.getData("md"), enable); - } - COM: <s> enable disable an item its children and dependents elsewhere </s> - diff --git a/funcom_test/25722575.txt b/funcom_test/25722575.txt deleted file mode 100644 index 19561dbefbc2582de5d29d1916b3b9bbd7517703..0000000000000000000000000000000000000000 --- a/funcom_test/25722575.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean allowEnable(TableTreeItem item) { - MetricDescriptor md = (MetricDescriptor) item.getData("md"); - String[] requires = md.getRequiredMetricIds(); - if (requires != null && requires.length > 0) { - for (String require : requires) { - TableTreeItem reqItem = rowLookup.get(require); - if (!reqItem.getChecked()) { - return false; - } - } - } - return true; - } - COM: <s> check to see that all required metrics for item are met </s> - diff --git a/funcom_test/25722750.txt b/funcom_test/25722750.txt deleted file mode 100644 index cb8f94ee01ed18818ab1b8debda7334502f732dd..0000000000000000000000000000000000000000 --- a/funcom_test/25722750.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int removeAll(String projectHandle) { - synchronized (this) { - int count = 0; - for (Iterator<Command> i = iterator(); i.hasNext();) { - Command next = i.next(); - if (next.getHandleIdentifier().startsWith(projectHandle)) { - i.remove(); - count++; - } - } - int leftOver = size(); - // Log.logMessage("Removed " + count + ". still queued: " + - // leftOver); - sem.reset(leftOver); - return leftOver; - } - } - COM: <s> remove all command with a handle starting with the given project handle </s> - diff --git a/funcom_test/25723068.txt b/funcom_test/25723068.txt deleted file mode 100644 index efa75ffb4958a8a052935bc9227d1b243ecd0120..0000000000000000000000000000000000000000 --- a/funcom_test/25723068.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private int calculateDCD(CallData callData, List<Integer> methodsToEval) { - int dcd = 0; - ConnectivityMatrix directMatrix = - callData.getBadriDirectlyConnectedMatrix(methodsToEval); - int size = directMatrix.matrix.length; - - for (int i = 0; i < size; i++) { - for (int j = i + 1; j < size; j++) { - if (directMatrix.matrix[i][j] == ConnectivityMatrix.CONNECTED) { - dcd++; - } - } - } - return dcd; - } - COM: <s> calculates degree of cohesion direct of a class dcd </s> - diff --git a/funcom_test/25723198.txt b/funcom_test/25723198.txt deleted file mode 100644 index da79071807475ec7711437e3d62d6066d1e61cc9..0000000000000000000000000000000000000000 --- a/funcom_test/25723198.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void paintSmallTag(Graphics g, TGPanel tgPanel, int tagX, int tagY, Color backCol, Color textCol, char character) { - g.setColor(backCol); - g.fillRect(tagX, tagY, 8, 8); - g.setColor(textCol); - g.setFont(SMALL_TAG_FONT); - g.drawString("" + character, tagX + 2, tagY + 7); - } - COM: <s> paints a tag with containing a character in a small font </s> - diff --git a/funcom_test/25723430.txt b/funcom_test/25723430.txt deleted file mode 100644 index bfca1f0b5c6f1adaad0fcf7db626ba683265ff80..0000000000000000000000000000000000000000 --- a/funcom_test/25723430.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private String methodsCalledMapToString() { - StringBuffer buf = new StringBuffer("methodsCalledMap:\n"); - Set<IMethod> keySet = methodsCalledMap.keySet(); - - for (IMethod caller : keySet) { - String sCaller; - try { - sCaller = getSignature(caller); - } catch (JavaModelException e) { - sCaller = caller.toString(); - } - Set<IMethod> callees = methodsCalledMap.get(caller); - buf.append(sCaller); - buf.append(": "); - buf.append(callees.toString()); - buf.append("\n"); - } - return buf.toString(); - } - COM: <s> this provides a mechanism for generating a human readable version of the </s> - diff --git a/funcom_test/25724634.txt b/funcom_test/25724634.txt deleted file mode 100644 index de945c599cf0ef9ecb7ca91a34b117216f87a395..0000000000000000000000000000000000000000 --- a/funcom_test/25724634.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void buildPath(Vertex from, Vertex to, Map p, List result) throws IllegalArgumentException { - if (from == to) { - result.add(from); - } else { - Vertex pv = (Vertex)p.get(to); - if (pv == null) throw new IllegalArgumentException("No path found"); - // recurse - buildPath(from, pv, p, result); - result.add(to); - } - } - COM: <s> recursively build the path from the precedence map calculated </s> - diff --git a/funcom_test/25724966.txt b/funcom_test/25724966.txt deleted file mode 100644 index 06e0c621fa7e79c943b9c2c79650660716a9467e..0000000000000000000000000000000000000000 --- a/funcom_test/25724966.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected AbstractMetricSource createNewSource(IJavaElement input) { - Map metrics = getSourceMap(); - for (Iterator i = metrics.keySet().iterator(); i.hasNext();) { - Class next = (Class)i.next(); - if (next.isInstance(input)) { - try { - Class msc = (Class)metrics.get(next); - AbstractMetricSource ms = (AbstractMetricSource)msc.newInstance(); - return ms; - } catch (InstantiationException e) { - } catch (IllegalAccessException e) { - } - } - } - return null; - } - COM: <s> create a new abstract metric source subclass instance appropriate for the </s> - diff --git a/funcom_test/25725031.txt b/funcom_test/25725031.txt deleted file mode 100644 index 1867c07d4f945d706cee241909803cfee67a603d..0000000000000000000000000000000000000000 --- a/funcom_test/25725031.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public List getMetricsFromChildren(String name) { - List metrics = new ArrayList(); - for (Iterator i = getChildren().iterator(); i.hasNext();) { - AbstractMetricSource next = (AbstractMetricSource)i.next(); - Metric m = (Metric)next.getValue(name); - if (m != null) metrics.add(m); - else { - System.err.println("metric " + name + " not found in " + next.getJavaElement().getElementName()); - } - } - return metrics; - } - COM: <s> get a list of all metrics defined in this nodes children with the </s> - diff --git a/funcom_test/25725041.txt b/funcom_test/25725041.txt deleted file mode 100644 index 344f62f27d11687fc5de21e712c77054c946e1b3..0000000000000000000000000000000000000000 --- a/funcom_test/25725041.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getMaximaFromChildren(String name, String per) { - List maxes = new ArrayList(); - for (Iterator i = getChildren().iterator(); i.hasNext();) { - AbstractMetricSource next = (AbstractMetricSource)i.next(); - Max nextMax = next.getMaximum(name, per); - if (nextMax != null) { - maxes.add(nextMax); - } - } - return maxes; - } - COM: <s> calculate maximum of metrics defined in this nodes children with the </s> - diff --git a/funcom_test/257256.txt b/funcom_test/257256.txt deleted file mode 100644 index dcb319404edfc92291198cc5015012333711b35d..0000000000000000000000000000000000000000 --- a/funcom_test/257256.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void deleteProductHandlesWithNoExistingItems(net.cw.jcart.transactions.persistence.Offer offer) { - for (Iterator productHandleGroups = offer.getGroups().iterator(); productHandleGroups.hasNext();) { - deleteProductHandlesWithNoExistingItems((net.cw.jcart.transactions.persistence.ProductHandleGroup) productHandleGroups - .next()); - } - } - COM: <s> removes from given offer the positions which are connected with not existing products </s> - diff --git a/funcom_test/257270.txt b/funcom_test/257270.txt deleted file mode 100644 index f786a8e90bcafb2bda60ee31c673d2850b5b233f..0000000000000000000000000000000000000000 --- a/funcom_test/257270.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equals(Object other) { - if (other == this) { - return true; - } - if (other instanceof AbstractAttributeValue) { - final AbstractAttributeValue otherAttributeValue = (AbstractAttributeValue) other; - return new EqualsBuilder().append(getId(), otherAttributeValue.getId()) - .append(getValue(), otherAttributeValue.getValue()).isEquals(); - } - return false; - } - COM: <s> equality comparison overriden to use in composite key and collections </s> - diff --git a/funcom_test/257546.txt b/funcom_test/257546.txt deleted file mode 100644 index f01ef3498bbf7285f1903b3f90ba154e9cc5e4b4..0000000000000000000000000000000000000000 --- a/funcom_test/257546.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public Object put(Object key, int idx, Object value) { - List l; - if (super.containsKey(key)) { - l = (List) super.get(key); - } - else { - l = (List) internalCreateList(); - super.put(key, l); - } - if (idx < 0) { - throw new IndexOutOfBoundsException("index " + idx + " is out of bounds"); - } - - Object oldValue; - if (l.size() < idx) { - oldValue = null; - } - else { - oldValue = l.remove(idx); - } - l.set(idx, value); - return oldValue; - } - COM: <s> puts the specified value at the given position </s> - diff --git a/funcom_test/25755743.txt b/funcom_test/25755743.txt deleted file mode 100644 index 76114c01c2cef60d4e8c02381046b0f5fd9aa39e..0000000000000000000000000000000000000000 --- a/funcom_test/25755743.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void loadSimModel(FModel rootModel){ - cntModel = 0; - rootModelName = rootModel.getName(); - if (rootModel instanceof FAtomicModel) - { - allModels = new ArrayList(1); - allModels.add(new Tracker(rootModel, 0)); - cntModel++; - } - else - allModels = getAllModels((FCoupledModel)rootModel); - - modelColumn = (Tracker[])allModels.toArray(new Tracker[0]); - - //Initialize - timeView = new TimeView [cntModel]; - dataTimeView = new ArrayList(1); - } - COM: <s> load simulation model to construct storage to collect data from the facade layer </s> - diff --git a/funcom_test/257610.txt b/funcom_test/257610.txt deleted file mode 100644 index 78c4e309e3cd14a87c975675b431844199558e72..0000000000000000000000000000000000000000 --- a/funcom_test/257610.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Class getPersistentType() { - if (this.getType() == null) { - throw new JCartException("type was not defined"); - } - switch (this.getType().getKey()) { - case AttributeType.KEY_STRING: - return StringValue.class; - case AttributeType.KEY_TEXT: - return TextValue.class; - // DONE: throw exception in case we can't find the correct type; - default: - throw new JCartException("Persistent type not defined for type: " + this.getType()); - } - } - COM: <s> gets the persistent type attribute of the attribute object </s> - diff --git a/funcom_test/257723.txt b/funcom_test/257723.txt deleted file mode 100644 index 8197cbc80fd62b8f24c476b02f8d7a7e104a117b..0000000000000000000000000000000000000000 --- a/funcom_test/257723.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setValue(Object value) { - if (value instanceof Timestamp) { - this.value = new Date(((Timestamp) value).getTime()); - } else if (value instanceof Date) { - this.value = (Date)value; - } else if (value == null) { - this.value = null; - } else { - throw new ClassCastException("could not convert to Date: " + value.getClass()); - } - } - COM: <s> sets the value attribute of the date time value object </s> - diff --git a/funcom_test/25793135.txt b/funcom_test/25793135.txt deleted file mode 100644 index 784684ae819af0f33913a81dbdc11d588e9252e8..0000000000000000000000000000000000000000 --- a/funcom_test/25793135.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void integrate() { - calculateDerivatives(_x, _xDot1); - for (int i = 0; i < _x.length; i++) { - _x[i] += _dt * _xDot1[i]; - } - calculateDerivatives(_x, _xDot2); - for (int i = 0; i < _x.length; i++) { - _x[i] += 0.5 * _dt * (_xDot2[i] - _xDot1[i]); - } - } - COM: <s> integrates differential equations by using a second order runge kutta </s> - diff --git a/funcom_test/25796617.txt b/funcom_test/25796617.txt deleted file mode 100644 index 281a1f30809363733824e3505fb37af226900cc5..0000000000000000000000000000000000000000 --- a/funcom_test/25796617.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void loginOK() { - ChatContainerPanel chatPanel = new ChatContainerPanel(this); - client.setChat(chatPanel); - client.setGameWaitPanel(gameWaitPanel); - add(chatPanel, BorderLayout.SOUTH); - MenuPanel menuPanel = new MenuPanel(this); - client.setMenuPanel(menuPanel); - mainPanel.add(menuPanel, "menu"); - show("menu"); - } - COM: <s> when login panel succeeds this method is called </s> - diff --git a/funcom_test/25796850.txt b/funcom_test/25796850.txt deleted file mode 100644 index bc92bdbde94cb11ec244d84a773b39dcf5b53d47..0000000000000000000000000000000000000000 --- a/funcom_test/25796850.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void init() { - try { - java.awt.EventQueue.invokeAndWait(new Runnable() { - - public void run() { - initComponents(); - } - }); - } catch (Exception ex) { - ex.printStackTrace(); - } - setSize(W, H); - try { - idb = DB.load().getIdb(); - idb.generateImages(); - } catch (Exception e) { - } - - new Run().start(); - - } - COM: <s> initializes the applet bombertest </s> - diff --git a/funcom_test/25807236.txt b/funcom_test/25807236.txt deleted file mode 100644 index fecab7649c9297698efc7832577a0cab93f0d784..0000000000000000000000000000000000000000 --- a/funcom_test/25807236.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Cursor fetchBook(long rowId) throws SQLException { - - Cursor mCursor = - - mDb.query(true, DATABASE_TABLE, new String[] { KEY_ID, KEY_TITLE }, - KEY_ID + "=" + rowId, null, null, null, null, null); - if (mCursor != null) { - mCursor.moveToFirst(); - } - return mCursor; - - } - COM: <s> return a cursor positioned at the book that matches the given row id </s> - diff --git a/funcom_test/25807257.txt b/funcom_test/25807257.txt deleted file mode 100644 index fa821d12441ca74c35a32fd2c5863ad9ace5af95..0000000000000000000000000000000000000000 --- a/funcom_test/25807257.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Cursor fetchPage(long rowId) throws SQLException { - - Cursor mCursor = - - mDb.query(true, DATABASE_TABLE, new String[] { KEY_ID, KEY_TITLE, KEY_BODY }, - KEY_ID + "=" + rowId, null, null, null, null, null); - if (mCursor != null) { - mCursor.moveToFirst(); - } - return mCursor; - - } - COM: <s> return a cursor positioned at the page that matches the given row id </s> - diff --git a/funcom_test/25809664.txt b/funcom_test/25809664.txt deleted file mode 100644 index 9bb5ee53d4900743cfc62331e75c423c97493c7f..0000000000000000000000000000000000000000 --- a/funcom_test/25809664.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void send(OscPacket oscPacket) throws IOException { - - byte[] byteArray = oscPacket.getByteArray(); - - // DEBUG - // System.out.println("OscSocket about to send this packet:"); - // OscPacket.printBytes(byteArray); - - DatagramPacket packet = - new DatagramPacket( byteArray, byteArray.length, - oscPacket.getAddress(), oscPacket.getPort() ); - send(packet); - } - COM: <s> the only override to send an osc packet </s> - diff --git a/funcom_test/25809685.txt b/funcom_test/25809685.txt deleted file mode 100644 index 46132515afd724cbfd1d599672557f6e421b4476..0000000000000000000000000000000000000000 --- a/funcom_test/25809685.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getXml() { - - String xml = ""; - xml += "<OSCPACKET ADDRESS=\"" + address.getHostAddress() + - "\" PORT=\"" + port + - "\" TIME=\""+ time + "\">"; - - Enumeration m = messages.elements(); - while (m.hasMoreElements()) { - OscMessage mess = (OscMessage)m.nextElement(); - xml += mess.getXml(); - } - - xml += "</OSCPACKET>"; - return xml; - } - COM: <s> returns an xml representation of this packet suitable for </s> - diff --git a/funcom_test/258388.txt b/funcom_test/258388.txt deleted file mode 100644 index baf8df2697bbc194c62fc119af8091bb85a0b71f..0000000000000000000000000000000000000000 --- a/funcom_test/258388.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public String getLocalizedMessage(Locale currentLocale) { - Object[] arguments = {this.getFieldName(), this.getFieldValue(), this.getClazz().getName()}; - return this.getLocalizer().getFormattedErrorMessage(currentLocale, arguments); - } - COM: <s> gets the localized message attribute of the entity field value invalid exception object </s> - diff --git a/funcom_test/25842109.txt b/funcom_test/25842109.txt deleted file mode 100644 index 8de21dfe4504f54223eaa2d28e39d91aa2945b94..0000000000000000000000000000000000000000 --- a/funcom_test/25842109.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void generate(Dialect dialect) { - cfg.setProperty("hibernate.dialect", dialect.getDialectClass()); - - SchemaExport export = new SchemaExport(cfg); - export.setDelimiter(";"); - export.setOutputFile("ddl_" + dialect.name().toLowerCase() + ".sql"); - export.execute(true, false, false, false); - } - COM: <s> method that actually creates the file </s> - diff --git a/funcom_test/25910497.txt b/funcom_test/25910497.txt deleted file mode 100644 index 48baf9cf26be8a383a52e048cd4e511d5541c07e..0000000000000000000000000000000000000000 --- a/funcom_test/25910497.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private boolean startEmailActivity(Intent intent) { - PackageManager pm = getPackageManager(); - int flags = PackageManager.MATCH_DEFAULT_ONLY; - List<ResolveInfo> matches = pm.queryIntentActivities(intent, flags); - for (ResolveInfo info : matches) { - if (info.activityInfo.enabled) { - String packageName = info.activityInfo.packageName; - String className = info.activityInfo.name; - if (packageName.equals(PACKAGE_NAME_GMAIL)) { - intent.setClassName(packageName, className); - startActivity(intent); - return true; - } - } - } - return false; - } - COM: <s> starts an email </s> - diff --git a/funcom_test/25910595.txt b/funcom_test/25910595.txt deleted file mode 100644 index 9b4c733715a59883b0aeac6eae7308cd0d9e4e5e..0000000000000000000000000000000000000000 --- a/funcom_test/25910595.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void magnify() { - CharSequence image = getSpinnerValue(mSpinnerSpecies, - SpeciesColumns.IMAGE); - String name = String.valueOf(image); - if (name.length() != 0) { - Uri.Builder builder = AssetProvider.CONTENT_URI.buildUpon(); - builder.appendQueryParameter(AssetProvider.PARAM_FILE_NAME, name); - builder.appendQueryParameter(AssetProvider.PARAM_CONTENT_TYPE, - "image/jpeg"); - - Uri uri = builder.build(); - Intent intent = new Intent(Intent.ACTION_VIEW, uri); - startActivity(intent); - } - } - COM: <s> show a larger image of the selected species </s> - diff --git a/funcom_test/25934360.txt b/funcom_test/25934360.txt deleted file mode 100644 index 7b3fb0fdc187c39def16ac12027197a11b3b06bd..0000000000000000000000000000000000000000 --- a/funcom_test/25934360.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void prepare() { - if (getRequest().getMethod().equalsIgnoreCase("post")) { - // prevent failures on new - String whoId = getRequest().getParameter("who.did"); - if (whoId != null && !whoId.equals("")) { - who = whoManager.get(new Long(whoId)); - } - } - } - COM: <s> grab the entity from the database before populating with request parameters </s> - diff --git a/funcom_test/25945128.txt b/funcom_test/25945128.txt deleted file mode 100644 index 2e447c466dd1a80ef70176ea15e9a0dd7e74f07f..0000000000000000000000000000000000000000 --- a/funcom_test/25945128.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void fetchBlogs() { - if (BloggerApplication.getInstance().getBlogCollection() == null) - GetBlogCollectionTask.execute(getProgressIndicator("Getting list of blogs"), feedCallback); - else - onReceiveBlogCollection(BloggerApplication.getInstance().getBlogCollection()); - } - COM: <s> this method ensures this activity has a blog collection </s> - diff --git a/funcom_test/25993703.txt b/funcom_test/25993703.txt deleted file mode 100644 index f532cc4fdd90307764c00db81315d46d672e9c7c..0000000000000000000000000000000000000000 --- a/funcom_test/25993703.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void _UpdateBuzz() { - Log.i(getClass().getSimpleName(), "Notif!!!"); - changeTimer(Long.parseLong(config.getString("AndroBuzzUpdateInterval", String.valueOf(UPDATE_INTERVAL/1000)))*1000); - - GetNewBuzz(); - if(nbNewBuzzIds > 0) - { - if(nbClient == 0) - { - if(config.getBoolean("NotificationEta", true) == true) - { - createNotification(); - } - } - else - { - mHandler.sendEmptyMessage(REPORT_MSG); - } - } - } - COM: <s> dont forget to fire update to the ui listener </s> - diff --git a/funcom_test/25993727.txt b/funcom_test/25993727.txt deleted file mode 100644 index 9e4610e3580321f4ca68a362aa8e3eaf2581e073..0000000000000000000000000000000000000000 --- a/funcom_test/25993727.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public AndroBuzzDbAdapter open() throws SQLException { - mDbHelper = new DatabaseHelper(mCtx); - mDb = mDbHelper.getWritableDatabase(); - Log.d(TAG, "******* mDb pointer: "+ mDb); - //mDbHelper.onUpgrade(mDb, 3, 4); // Uncomment this for reinit database - - return this; - } - COM: <s> open the androbuzz database </s> - diff --git a/funcom_test/25994000.txt b/funcom_test/25994000.txt deleted file mode 100644 index b8b71c834ddf6241611528c9b0539fdb1b58002d..0000000000000000000000000000000000000000 --- a/funcom_test/25994000.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public long addToken(String token, String tokenSecret, String tokenVerifier) { - ContentValues initialValues = new ContentValues(); - - initialValues.put("token", token); - initialValues.put("token_secret", tokenSecret); - initialValues.put("token_verifier", tokenVerifier); - Log.d(TAG, "inserting Token infos into DB"); - return mDb.update(DATABASE_TABLE_PROFILES, initialValues, "selected = 1", null); - } - COM: <s> add token for current login </s> - diff --git a/funcom_test/25994127.txt b/funcom_test/25994127.txt deleted file mode 100644 index 9e9f285da3c57f0ef24d2f6d498c31654d14fcfe..0000000000000000000000000000000000000000 --- a/funcom_test/25994127.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public long addBuddy(String name, String email, String profileId) { - ContentValues initialValues = new ContentValues(); - - Log.d(TAG, "profile ID: " + profileId); - initialValues.put("name", name); - initialValues.put("email", email); - initialValues.put("profiles_id", profileId); - - Log.d(TAG, "Add new buddy <" +email+ "> to database"); - return mDb.insert(DATABASE_TABLE_BUDDIES, null, initialValues); - } - COM: <s> add new followers following into buddies list </s> - diff --git a/funcom_test/25994150.txt b/funcom_test/25994150.txt deleted file mode 100644 index d5f6f9b51e66b89159762514bc450c5c29bd82e2..0000000000000000000000000000000000000000 --- a/funcom_test/25994150.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Cursor findBuddiesByName(String profileId) { - String sql = "SELECT _id, name, email FROM " + DATABASE_TABLE_BUDDIES + " WHERE profiles_id= '" + profileId + "'"; - - Cursor mCursor = mDb.rawQuery(sql, null); - if (mCursor != null) { - mCursor.moveToFirst(); - } - return mCursor; - } - COM: <s> retrieve requested followers following for current active account </s> - diff --git a/funcom_test/26050426.txt b/funcom_test/26050426.txt deleted file mode 100644 index a74332a04084d99a1350f8857d76819758165814..0000000000000000000000000000000000000000 --- a/funcom_test/26050426.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean equalarrays(int[][] one, int[][] two) { - for (int i = 0; i < one.length; i++) { - for (int j = 0; j < one[i].length; j++) { - if (!(one[i][j] == two[i][j])) { - return false; - } - } - } - return true; - } - COM: <s> function to look if the two arrays containing </s> - diff --git a/funcom_test/26050532.txt b/funcom_test/26050532.txt deleted file mode 100644 index 9d9fab783efa14d88c4184283b56bb1ceb2a15f5..0000000000000000000000000000000000000000 --- a/funcom_test/26050532.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void fireButtonPressedEvent(int button) { - ButtonPressedEvent w = new ButtonPressedEvent(this, button); - for(int i=0; i < this.wiimotelistener.size(); i++) { - this.wiimotelistener.get(i).buttonPressReceived(w); - } - - if(w.isRecognitionInitEvent() || w.isTrainInitEvent()) { - this.resetFilters(); - } - } - COM: <s> fires a button pressed event </s> - diff --git a/funcom_test/26052559.txt b/funcom_test/26052559.txt deleted file mode 100644 index af848acb47df8aba3ec06053f3781102b40d5ec9..0000000000000000000000000000000000000000 --- a/funcom_test/26052559.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("AirlineReservationService".equals(portName)) { - setAirlineReservationServiceEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/26115173.txt b/funcom_test/26115173.txt deleted file mode 100644 index 807af6d087d63e2c0e5dd566555b78b1700b7914..0000000000000000000000000000000000000000 --- a/funcom_test/26115173.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void createLeaf() { - - if (this.allData.size() == 0) { - return; - } - // construct tree node at this place - this.children.add(new DecisionLeaf<T, K>(allData, ((double) this.numPositives) - / (this.numPositives + this.numNegatives), this.positiveLabel)); - } - COM: <s> will instantiate a leaf with either positive or negative label and assign </s> - diff --git a/funcom_test/26115189.txt b/funcom_test/26115189.txt deleted file mode 100644 index fdaa8cbaea3b887b7cfeb7ddbcc4933ea5394ad6..0000000000000000000000000000000000000000 --- a/funcom_test/26115189.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected double getEntropy(int numberOfPostives, int numerberOfNegatives) { - - if (numberOfPostives == 0 || numerberOfNegatives == 0) { - return 0; - } - - double positives = numberOfPostives; - double negatives = numerberOfNegatives; - - double total = positives + negatives; - - return -(positives / total) * (log2(positives / total)) - (negatives / total) * (log2(negatives / total)); - - } - COM: <s> implementation of entropy calculation </s> - diff --git a/funcom_test/26137991.txt b/funcom_test/26137991.txt deleted file mode 100644 index 52798bfcacb69c99af6b14fbecd356b53d86ef39..0000000000000000000000000000000000000000 --- a/funcom_test/26137991.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Path makeFollowPath(int steps) { - - // TODO Use order-2 beziers instead - Path p = new Path(); - p.moveTo(0, 0); - for (int i = 0; i < steps; i++) { - p.lineTo(i/(float) steps, 0.2f * (float) Math.pow(-1, i)); - } - return p; - } - COM: <s> makes a wiggly horizontal path </s> - diff --git a/funcom_test/26162973.txt b/funcom_test/26162973.txt deleted file mode 100644 index 0be3898f7c3abedab68d1bf8693da4de58756df2..0000000000000000000000000000000000000000 --- a/funcom_test/26162973.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Reader retrieve(Reader rd) throws LibraryException { - if (rd == null) { - String message = resourceBundleMessageSource.getMessage( - "error.reader.retrieve", null, Locale.US); - logger.error(message); - throw new LibraryException( message ); - } - return retrieveById(rd.getId()); - } - COM: <s> retrieve reader from the database </s> - diff --git a/funcom_test/26162989.txt b/funcom_test/26162989.txt deleted file mode 100644 index 43bdaf7d3664caaa0d7d81fc1c21c2267539e60a..0000000000000000000000000000000000000000 --- a/funcom_test/26162989.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSubjectString(String inString) { - StringTokenizer st = new StringTokenizer(inString,"\n"); - if (!st.hasMoreElements()) return; - subjects = null; - subjects = new ArrayList(); - - while (st.hasMoreElements()) { - Subject su = new Subject(st.nextToken()); - subjects.add(su); - } - } - COM: <s> takes string from subjects text area and fills subjects array list </s> - diff --git a/funcom_test/26163021.txt b/funcom_test/26163021.txt deleted file mode 100644 index eadea0ac2e60603ef96c44565c1c7b0bb37e72b3..0000000000000000000000000000000000000000 --- a/funcom_test/26163021.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String stripIsbnDashesBlanks(String isbn) { - - StringBuffer buf = new StringBuffer(); - - for( int i=0; i <= isbn.length() -1; i++) { - if (isbn.charAt(i) != '-' && isbn.charAt(i) != ' ' ) { - buf.append(isbn.charAt(i)); - } - } - return buf.toString(); - } - COM: <s> strip any dashes and or blanks in the isbn </s> - diff --git a/funcom_test/26163250.txt b/funcom_test/26163250.txt deleted file mode 100644 index 7a4317131a2b87320995da0687856230094dc2c7..0000000000000000000000000000000000000000 --- a/funcom_test/26163250.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void dumpErrors() { - Collection errors = (Collection) getRequest().getAttribute( - Constants.ERRORS); - Iterator iterator = errors.iterator(); - while (iterator.hasNext()) { - Exception ex = (Exception) iterator.next(); - System.out.println(ex.getMessage()); - } - } - COM: <s> dumps messages from exceptions in errors collection </s> - diff --git a/funcom_test/26163302.txt b/funcom_test/26163302.txt deleted file mode 100644 index 368660ee5a58e6338371ca1ca9ad8e2f70aba432..0000000000000000000000000000000000000000 --- a/funcom_test/26163302.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testInsertNewSubjectRecord() throws Exception { - // truly, tested through testInsert - - logger.info("insertNewSubjectRecord"); - - Subject subject = new Subject(new Random().toString()); - - SubjectDAOSpringJDBCImpl instance = - (SubjectDAOSpringJDBCImpl)context.getBean( "SubjectDAO", - SubjectDAOSpringJDBCImpl.class); - - instance.insertNewSubjectRecord(subject); - } - COM: <s> test of insert new subject record method of class org </s> - diff --git a/funcom_test/26163477.txt b/funcom_test/26163477.txt deleted file mode 100644 index fc06e0e5f04b3aaf187dd9395de878a44a34d8b4..0000000000000000000000000000000000000000 --- a/funcom_test/26163477.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testIsIsbn10Valid() { - - BookForm bf = new BookForm(); - - assertTrue(bf.isIsbn10Valid("0843610727")); - - assertTrue(bf.isIsbn10Valid("033398224X")); - - assertTrue(bf.isIsbn10Valid("0843610700")); - - assertFalse(bf.isIsbn10Valid("0843610728")); - - assertFalse(bf.isIsbn10Valid("qwertyuiop")); - } - COM: <s> test of is isbn10 valid method of class org </s> - diff --git a/funcom_test/26163595.txt b/funcom_test/26163595.txt deleted file mode 100644 index 4d4aeb593ac28db1b27fcbc3740a8d4e4048ce53..0000000000000000000000000000000000000000 --- a/funcom_test/26163595.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void clearRequestParameters() { - if (logger.isTraceEnabled()) - logger.trace("Entering"); - this.request.getParameterMap().clear(); - - // also, clear out the redirect header if it's there. - response.removeHeader("Location"); - if (logger.isTraceEnabled()) - logger.trace("Exiting"); - } - COM: <s> clears all request parameters previously set </s> - diff --git a/funcom_test/26163695.txt b/funcom_test/26163695.txt deleted file mode 100644 index b2e93c50f552e9d4c234c2140fe2974e868a6734..0000000000000000000000000000000000000000 --- a/funcom_test/26163695.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setActionServlet(ActionServlet servlet) { - if (logger.isDebugEnabled()) - logger.debug("Entering - servlet = " + servlet); - init(); - if (servlet == null) - throw new AssertionFailedError("Cannot set ActionServlet to null"); - this.actionServlet = servlet; - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - actionServletIsInitialized = false; - } - COM: <s> sets the action servlet to be used in this test execution </s> - diff --git a/funcom_test/26163757.txt b/funcom_test/26163757.txt deleted file mode 100644 index 04fe6ea6382fb276e2b45d5e1ccf2f27c8e0c726..0000000000000000000000000000000000000000 --- a/funcom_test/26163757.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setRequestPathInfo(String pathInfo) { - if (logger.isDebugEnabled()) - logger.debug("Entering - pathInfo = " + pathInfo); - init(); - this.setRequestPathInfo("",pathInfo); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> sets the request path instructing the action servlet to used a </s> - diff --git a/funcom_test/26163778.txt b/funcom_test/26163778.txt deleted file mode 100644 index 0a01a41088db7449c352f3a9ffc836253345b471..0000000000000000000000000000000000000000 --- a/funcom_test/26163778.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setInitParameter(String key, String value){ - if (logger.isDebugEnabled()) - logger.debug("Entering - key = " + key + ", value = " + value); - init(); - config.setInitParameter(key, value); - actionServletIsInitialized = false; - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> sets an initialization parameter on the </s> - diff --git a/funcom_test/26163851.txt b/funcom_test/26163851.txt deleted file mode 100644 index de1950ff5551fa1865643d6599ea699973d5ca22..0000000000000000000000000000000000000000 --- a/funcom_test/26163851.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyForward(String forwardName) throws AssertionFailedError { - if (logger.isDebugEnabled()) - logger.debug("Entering - forwardName = " + forwardName); - init(); - Common.verifyForwardPath(actionPath,forwardName,getActualForward(),false,request,config.getServletContext(),config); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> verifies if the action servlet controller used this forward </s> - diff --git a/funcom_test/26163877.txt b/funcom_test/26163877.txt deleted file mode 100644 index 05420a95978bb074e16d6c48bd840310abe73bb8..0000000000000000000000000000000000000000 --- a/funcom_test/26163877.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyInputForward() { - if (logger.isDebugEnabled()) - logger.debug("Entering"); - init(); - Common.verifyForwardPath(actionPath,null,getActualForward(),true,request,config.getServletContext(),config); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> verifies if the action servlet controller forwarded to the defined </s> - diff --git a/funcom_test/26163906.txt b/funcom_test/26163906.txt deleted file mode 100644 index 6987c4ea589d15369071d5de04901fed677d9e80..0000000000000000000000000000000000000000 --- a/funcom_test/26163906.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyInputTilesForward(String definitionName) { - if (logger.isTraceEnabled()) - logger.trace("Entering - definitionName=" + definitionName); - init(); - Common.verifyTilesForward(actionPath,null,definitionName,true,request,config.getServletContext(),config); - if (logger.isTraceEnabled()) - logger.trace("Exiting"); - } - COM: <s> verifies that the action servlet controller forwarded to the defined </s> - diff --git a/funcom_test/26163924.txt b/funcom_test/26163924.txt deleted file mode 100644 index 0723053c90d5097c4c61b74cd0f159dd4248f27e..0000000000000000000000000000000000000000 --- a/funcom_test/26163924.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyNoActionErrors() { - if (logger.isDebugEnabled()) - logger.debug("Entering"); - init(); - Common.verifyNoActionMessages(request,Globals.ERROR_KEY,"error"); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> verifies that the action servlet controller sent no error messages upon </s> - diff --git a/funcom_test/26163933.txt b/funcom_test/26163933.txt deleted file mode 100644 index 8b1ee2f80152e2c57250ac1fa94ef83891ac5707..0000000000000000000000000000000000000000 --- a/funcom_test/26163933.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyActionMessages(String[] messageNames) { - if (logger.isDebugEnabled()) - logger.debug("Entering - messageNames = " + messageNames); - init(); - Common.verifyActionMessages(request,messageNames,Globals.MESSAGE_KEY,"action"); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> verifies if the action servlet controller sent these action messages </s> - diff --git a/funcom_test/26163951.txt b/funcom_test/26163951.txt deleted file mode 100644 index e96bf9ff9b40bdd0f6391ce48e8346d03d8b3066..0000000000000000000000000000000000000000 --- a/funcom_test/26163951.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyNoActionMessages() { - if (logger.isDebugEnabled()) - logger.debug("Entering"); - init(); - Common.verifyNoActionMessages(request,Globals.MESSAGE_KEY,"action"); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> verifies that the action servlet controller sent no action messages upon </s> - diff --git a/funcom_test/26163981.txt b/funcom_test/26163981.txt deleted file mode 100644 index 321bd013f6c76610c61891c090eadfe8f4acd610..0000000000000000000000000000000000000000 --- a/funcom_test/26163981.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setActionForm(ActionForm form) { - if (logger.isDebugEnabled()) - logger.debug("Entering - form = " + form); - init(); - // make sure action servlet is intialized - getActionServlet(); - Common.setActionForm(form,request,actionPath,context); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> sets an action form instance to be used in this test </s> - diff --git a/funcom_test/26195187.txt b/funcom_test/26195187.txt deleted file mode 100644 index d676def85297f2bc9af59bf0c520af5852911f88..0000000000000000000000000000000000000000 --- a/funcom_test/26195187.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Document exportGraph(Graph g) { - Element e = new Element(GXL); - e.addContent(export(g)); - log.debug("exportGraph(g):"+e); - Document doc = new Document (e); - log.debug("exportGraph(g):"+(new XMLOutputter()).outputString(e)); - log.debug("exportGraph(g):"+(new XMLOutputter()).outputString(doc)); - return doc; - } - COM: <s> export a knowledge base i </s> - diff --git a/funcom_test/26196743.txt b/funcom_test/26196743.txt deleted file mode 100644 index 594d5d373d5b50ffe731a53ebe581f813ba72f5d..0000000000000000000000000000000000000000 --- a/funcom_test/26196743.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: /** - * jsr 268 - commented out public OrganizationBean getOrganization() { try { - * if (this.organizationVO == null) this.organizationVO = - * this.getOrganization(this.getOrganizationID()); } catch(Exception e) { - * log.error(".getOrganizationID():", e); } return this.organizationVO; } - COM: <s> jsr 268 commented out public organization bean get organization integer </s> - diff --git a/funcom_test/26196769.txt b/funcom_test/26196769.txt deleted file mode 100644 index eaee430895b5fc5edcccbac030a8f0758bda5c41..0000000000000000000000000000000000000000 --- a/funcom_test/26196769.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: // public void setOrganization(OrganizationBean obj) { - // if (obj == null) { - // this.resetOrganization(); - // return; - // } - // try { - // this.organizationVO = obj; - // this.checkLicenseViolation(this.getLicense()); - // } catch(Exception e) { - // log.error(".setOrganization():", e); - // } - // } - COM: <s> jsr 268 commented out public organization bean get organization try </s> - diff --git a/funcom_test/26199069.txt b/funcom_test/26199069.txt deleted file mode 100644 index b977b3efc3ad1db521d199612a25ea34f8204f66..0000000000000000000000000000000000000000 --- a/funcom_test/26199069.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: /* - * public void init() throws BusinessDelegateException { try { - * this.activityManagerHome = (ActivityManagerHome) - * ServiceLocatorBean.getCurrentInstance().getHome( "ejb/ActivityManager", - * ActivityManagerHome.class); this.activityManager = - * this.activityManagerHome.create(); } catch(Exception e){ throw new - * BusinessDelegateException("create:", e); } } public EJBObject - COM: <s> access to session facades </s> - diff --git a/funcom_test/26215341.txt b/funcom_test/26215341.txt deleted file mode 100644 index 1d697b7bd2b770201ca1d03c543fd28d2b128411..0000000000000000000000000000000000000000 --- a/funcom_test/26215341.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void updateGain() { - int pos=getValue(); - int value = (int) (127 * (double) (pos / 100.0)); - MidiChannel[] cs = synthesizer.getChannels(); - for(int i=0;i<cs.length;i++) { - cs[i].controlChange(7,value); - } - } - COM: <s> set the volume </s> - diff --git a/funcom_test/26277933.txt b/funcom_test/26277933.txt deleted file mode 100644 index 6e77e551b3e05130ca18c8a0ff3e12a3e6a0e3b4..0000000000000000000000000000000000000000 --- a/funcom_test/26277933.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public HarnessBootstrap getHarnessBootstrap() { - //Process params - java.util.Iterator i = bootParams.iterator(); - AntBootstrapParam a = null; - while (i.hasNext()) { - a = (AntBootstrapParam)i.next(); - harnessBootstrap.addBootstrapParam(a.getName(), a.getValue()); - } - return harnessBootstrap; - } - COM: <s> converts this ant bootstrap to a harness bootstrap </s> - diff --git a/funcom_test/26277954.txt b/funcom_test/26277954.txt deleted file mode 100644 index ae8d067ed868eaf5fac7080c954472c25e5e4604..0000000000000000000000000000000000000000 --- a/funcom_test/26277954.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Properties getPropertyFileFromClasspath(String location) { - InputStream i = getClass().getResourceAsStream(location); - Properties props = new Properties(); - if (i != null) { - try { - props.load(i); - i.close(); - } catch (IOException ex) { - return null; - } - } - return props; - } - COM: <s> this method creates a properties from the classpath to be used in tests </s> - diff --git a/funcom_test/26284058.txt b/funcom_test/26284058.txt deleted file mode 100644 index 13f81561e6f7c59182636d635415d905b7c92fd2..0000000000000000000000000000000000000000 --- a/funcom_test/26284058.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void enableContainer(Container container, boolean enable) { - Component[] compArray = container.getComponents(); - for(int i = 0; i< compArray.length;i++) { - compArray[i].setEnabled(enable); - if (compArray[i] instanceof Container) { - enableContainer((Container)compArray[i], enable); - } - } - } - COM: <s> en or disables all components on the specified container </s> - diff --git a/funcom_test/26284089.txt b/funcom_test/26284089.txt deleted file mode 100644 index 1d0b6b23faedafc49d71d76efec58fc941488fc0..0000000000000000000000000000000000000000 --- a/funcom_test/26284089.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void parse(String date) throws ParseException { - if (dateFormatter == null) - dateFormatter = new UICCalendarDateFormatter(DateFormat.SHORT, locale); - Calendar parsedDate = Calendar.getInstance(locale); - parsedDate.setTime(dateFormatter.parse(date)); - setCalendar(parsedDate); - } - COM: <s> parses the specified string as the new calendar data </s> - diff --git a/funcom_test/26284102.txt b/funcom_test/26284102.txt deleted file mode 100644 index 8a12721a846879c526414793bebaaecd42b0fb15..0000000000000000000000000000000000000000 --- a/funcom_test/26284102.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void datePickerSelectedSlot() { - //Set the bookmark before hiding - model.setBookmark(); - popup.setVisible(false); - //return focus to the button - dateButton.requestFocus(); - if (editable) - dateField.requestFocus(); - else - dateButton.requestFocus(); - firePropertyChange(PROPERTY_DATECHANGE, null, model.getCalendar()); - } - COM: <s> called when a date was selected in the date picker </s> - diff --git a/funcom_test/26284133.txt b/funcom_test/26284133.txt deleted file mode 100644 index f9adc62c71a9dff4a29bdfa26a633ae125b330ba..0000000000000000000000000000000000000000 --- a/funcom_test/26284133.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void doSetMonth(int month) { - int date = getDate(); - internalCalendar.set(Calendar.MONTH, month); - // if invalid date, change date, but don't fire event. - if (getDaysInMonth() < date) - doSetDate(getDaysInMonth()); - enforceMinMax(); - } - COM: <s> makes the actual month change </s> - diff --git a/funcom_test/26284151.txt b/funcom_test/26284151.txt deleted file mode 100644 index 3e06f059ada707959fa9b1bea80836e97a581c9f..0000000000000000000000000000000000000000 --- a/funcom_test/26284151.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void doSetYear(int year) { - int date = getDate(); - internalCalendar.set(Calendar.YEAR, year); - // if invalid date, change date, but don't fire event. - if (getDaysInMonth() < date) - doSetDate(getDaysInMonth()); - enforceMinMax(); - } - COM: <s> makes the actual year change </s> - diff --git a/funcom_test/26284207.txt b/funcom_test/26284207.txt deleted file mode 100644 index 836a718daed42a52527518431ee712823efa5a9d..0000000000000000000000000000000000000000 --- a/funcom_test/26284207.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private boolean isNextMonth(int row, int col) { - if (row > 0 && firstColDates[row] + col > model.getDaysInMonth()) - return true; - if (row > 1 && firstColDates[row] < firstColDates[row-1]) - return true; - return false; - } - COM: <s> check whether the specified cell is in the next month </s> - diff --git a/funcom_test/26284223.txt b/funcom_test/26284223.txt deleted file mode 100644 index 3f8a0ced931df88d397feed11a29d420017b0f3e..0000000000000000000000000000000000000000 --- a/funcom_test/26284223.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Calendar getCalendarForCell(int row, int col) { - Calendar calendar = model.getCalendar(); - if (isPrevMonth(row, col)) - calendar.add(Calendar.MONTH, -1); - else if (isNextMonth(row, col)) - calendar.add(Calendar.MONTH, 1); - calendar.set(Calendar.DAY_OF_MONTH, getDate(row, col)); - return calendar; - } - COM: <s> returns the represented calendar object for a specified cell </s> - diff --git a/funcom_test/26284241.txt b/funcom_test/26284241.txt deleted file mode 100644 index 78df83792e2a1ee494bbfd8e6ba7ee6836ef3463..0000000000000000000000000000000000000000 --- a/funcom_test/26284241.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private boolean isSelected(int row, int col) { - if(mouseOverDate >= 0) - return mouseOverDate == row * xDaysOffsets.length + col; - if (isPrevMonth(row, col) || isNextMonth(row, col)) - return false; - return getDate(row, col) == model.getDate(); - } - COM: <s> check whether the specified cell is selected </s> - diff --git a/funcom_test/26284322.txt b/funcom_test/26284322.txt deleted file mode 100644 index b18415c355a4b850796c6e507559de7c972a9fc5..0000000000000000000000000000000000000000 --- a/funcom_test/26284322.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: private void repaintDateCell(int row, int col) { - repaint((int)xDaysOffsets[col]-5, (int)yDaysOffsets[row]-5, (int)getDayColWidth(col)+10, (int)getDayRowHeight(row)+10); - } - COM: <s> repaints the date day cell at row col </s> - diff --git a/funcom_test/26284323.txt b/funcom_test/26284323.txt deleted file mode 100644 index 8c25da24c21034187fc3aeb467032d497ba1a745..0000000000000000000000000000000000000000 --- a/funcom_test/26284323.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void showHTMLDocument(URL url, String targetFrame, boolean reload) { - if (url != null) { - if (targetFrame == null) - targetFrame = viewer.name; - showDocument(new HistoryItem(url, targetFrame, url.getRef(), null, null), null, - reload, HTMLConstants.HISTORY_NEW, 0); - } - } - COM: <s> shows the contents of the specified code url code in the named </s> - diff --git a/funcom_test/26284359.txt b/funcom_test/26284359.txt deleted file mode 100644 index e3d0d4bb58f1c466ec67bed3d2aa51553cb93c9a..0000000000000000000000000000000000000000 --- a/funcom_test/26284359.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void showHTMLDocument(String s, String targetFrame) { - if (s != null) { - if (targetFrame == null) - targetFrame = viewer.name; - showDocument(new HistoryItem(null, targetFrame, null, null, null), s, false, HTMLConstants.HISTORY_NEW, 0); - } - } - COM: <s> formats and displays the specified string as an html document in the named </s> - diff --git a/funcom_test/26284706.txt b/funcom_test/26284706.txt deleted file mode 100644 index 888978a927568272ac57f347832060657bad17fd..0000000000000000000000000000000000000000 --- a/funcom_test/26284706.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void paintIcon(Component c, Graphics g, int x, int y) { - if (icon == null) super.paintIcon(c, g, x, y); - else icon.paintIcon(c, g, x, y); - } - COM: <s> overriden to paint the system icon </s> - diff --git a/funcom_test/26284840.txt b/funcom_test/26284840.txt deleted file mode 100644 index 955d923b10d1f4929971cacdc82a41b4c26c4c6c..0000000000000000000000000000000000000000 --- a/funcom_test/26284840.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setProgress(int newValue) { - if(newValue < progressBar.current) - throw new IllegalArgumentException("Progress dropped ("+ progressBar.current +" -> "+ newValue+")"); - Rectangle clipRect = progressBar.setCurrent(newValue); - internalWindow.repaint( clipRect.x, clipRect.y, clipRect.width, clipRect.height); - } - COM: <s> set the new progress value for the progress bar </s> - diff --git a/funcom_test/26284884.txt b/funcom_test/26284884.txt deleted file mode 100644 index a8e5727d2fd19e49417d5bb9890a636bf6f8ea34..0000000000000000000000000000000000000000 --- a/funcom_test/26284884.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public File showSaveDialog(Window parent) { - if (multipleSelection) { - throw new IllegalStateException("Save dialog cannot be shown in multiple selection state"); - } - File[] files = showFileChooser(parent, translate().i18n("Save File"), translate().i18n("&Save")); - if (files == null || files.length == 0) { - return null; - } - return files[0]; - } - COM: <s> show a save dialog from the current filechooser instance </s> - diff --git a/funcom_test/26284954.txt b/funcom_test/26284954.txt deleted file mode 100644 index 734965317d7ebbbd7ce38ed7f59fe0213620f8c3..0000000000000000000000000000000000000000 --- a/funcom_test/26284954.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void rgbSpinnerChangedSlot() { - if(!allowSignals) return; - allowSignals = false; - Color newColor = new Color( - ((Integer) redSpin.getValue()).intValue(), - ((Integer) greenSpin.getValue()).intValue(), - ((Integer) blueSpin.getValue()).intValue()); - selector.setColor(newColor); - allowSignals = true; - } - COM: <s> is called when the user changes any rgb spinner </s> - diff --git a/funcom_test/26284957.txt b/funcom_test/26284957.txt deleted file mode 100644 index f2f156844d6a6d742354328dc7fac9dad8d1f1b3..0000000000000000000000000000000000000000 --- a/funcom_test/26284957.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void hsvSpinnerChangedSlot() { - if(!allowSignals) return; - allowSignals = false; - selector.setHSVColor( - ((Integer) hueSpin.getValue()).intValue(), - ((Integer) saturationSpin.getValue()).intValue(), - ((Integer) valueSpin.getValue()).intValue()); - allowSignals = true; - } - COM: <s> is called when the user changes any hsv spinner </s> - diff --git a/funcom_test/26284959.txt b/funcom_test/26284959.txt deleted file mode 100644 index 07f54da162f33b9fb56c100e657b12e88513f45c..0000000000000000000000000000000000000000 --- a/funcom_test/26284959.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void htmlColorChangedSlot(String input) { - if(!allowSignals) return; - allowSignals = false; - if(! input.startsWith("#")) - input = "#" + input; - while(input.length() < 7) - input+="0"; - input = input.substring(0,7); - setColor(Color.decode(input)); - allowSignals = true; - } - COM: <s> is called when the user changes the html color text </s> - diff --git a/funcom_test/26285029.txt b/funcom_test/26285029.txt deleted file mode 100644 index 11164fbee8b2d1524b2862e1eaefa025dc3b7e72..0000000000000000000000000000000000000000 --- a/funcom_test/26285029.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSelectedFile(File selectedFile) { - if(fileSelectionMode == FILES_ONLY && selectedFile.isDirectory()) { - // only file selection allowed.. - return; - } - if(selectedFile.isDirectory()) { - fileName.setSelectedItem(selectedFile.getAbsolutePath()); - } else { - fileName.setSelectedItem(selectedFile.getName()); - } - } - COM: <s> select the current file from the view </s> - diff --git a/funcom_test/26285124.txt b/funcom_test/26285124.txt deleted file mode 100644 index 24ae9a4d73d4447973f67df2582f79ce64ee38cc..0000000000000000000000000000000000000000 --- a/funcom_test/26285124.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected KeyValuePair interpret(String argument) throws IllegalArgumentException { - int equals = argument.indexOf('='); - if(equals < 0) - throw new IllegalArgumentException("need a key=value pair for echo.."); - return new KeyValuePair(argument.substring(0, equals).trim(), argument.substring(equals+1).trim()); - } - COM: <s> helper method for echo overload to provide domain specific intelligence </s> - diff --git a/funcom_test/26285166.txt b/funcom_test/26285166.txt deleted file mode 100644 index fd9068d59b74123487c7ad9231d304950d447054..0000000000000000000000000000000000000000 --- a/funcom_test/26285166.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void acceptFileSlot(String text) { - if(! (fileName.getSelectedItem() instanceof File && - ((File) fileName.getSelectedItem()).toString().equals(text))) - fileName.setSelectedItem(text); - if (fileName.isPopupVisible()) { - fileName.setPopupVisible(false); - return; - } - acceptFileSlot(); - } - COM: <s> select a file and hides the dialog </s> - diff --git a/funcom_test/26285206.txt b/funcom_test/26285206.txt deleted file mode 100644 index 951334f21926bf5c0c569572ea2096289cd69d40..0000000000000000000000000000000000000000 --- a/funcom_test/26285206.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void buildVerticalPositionFromConstraints(AdvancedConstraints constraint) { - verticalPosition.setStartSeparation(constraint.getUpperRow()); - verticalPosition.setStopSeparation(constraint.getLowerRow()); - - verticalPosition.setAlignment( - getHorizontalFromVertical(constraint.getVerticalAlignment())); - - verticalPosition.setSizePolicy(constraint.getVerticalSizePolicy()); - } - COM: <s> build the vertical position from the constraints </s> - diff --git a/funcom_test/26285209.txt b/funcom_test/26285209.txt deleted file mode 100644 index e6db6d7b68d4503001d21da0e1bdc12203e79fd8..0000000000000000000000000000000000000000 --- a/funcom_test/26285209.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void buildHorizontalPositionFromConstraints(AdvancedConstraints constraint) { - horizontalPosition.setStartSeparation(constraint.getLeftColumn()); - horizontalPosition.setStopSeparation(constraint.getRightColumn()); - horizontalPosition.setAlignment(constraint.getHorizontalAlignment()); - horizontalPosition.setSizePolicy(constraint.getHorizontalSizePolicy()); - } - COM: <s> build the horizontal position from the constraints </s> - diff --git a/funcom_test/26285257.txt b/funcom_test/26285257.txt deleted file mode 100644 index e86a957868a2f66417ffb28bd7217a66cfeec3a8..0000000000000000000000000000000000000000 --- a/funcom_test/26285257.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void copy(LinearPosition otherPosition) { - alignment = otherPosition.alignment; - maximumSize = otherPosition.maximumSize; - minimumSize = otherPosition.minimumSize; - preferredSize = otherPosition.preferredSize; - resultingSize = otherPosition.resultingSize; - resultingStartPixel = otherPosition.resultingStartPixel; - sizePolicy = otherPosition.sizePolicy; - startSeparation = otherPosition.startSeparation; - stopSeparation = otherPosition.stopSeparation; - } - COM: <s> copy the parameter into this instance </s> - diff --git a/funcom_test/26285292.txt b/funcom_test/26285292.txt deleted file mode 100644 index 849d90cfcd72154929a7e9e1e0a8fd8bb52c61ed..0000000000000000000000000000000000000000 --- a/funcom_test/26285292.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Vector explode(String in, char separator) { - Vector result = new Vector(); - int index=in.indexOf(separator); - while(index >= 0) { - result.add(in.substring(0, index)); - in=in.substring(index+1); - index=in.indexOf(separator); - } - result.add(in); - return result; - } - COM: <s> take a string and return a list of strings seperated with the separator </s> - diff --git a/funcom_test/26285353.txt b/funcom_test/26285353.txt deleted file mode 100644 index 1becf72aed7bff41741c44cd7d5b889c68e9de29..0000000000000000000000000000000000000000 --- a/funcom_test/26285353.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Constraints getConstraints(Component component) { - if (component == null) - throw new NullPointerException ("Parameter component cannot be null."); - - for (int entryNr = 0; entryNr < list.size(); entryNr++) { - Entry entry = (Entry) list.get(entryNr); - - if (entry.component == component) - return entry; - } - return null; - } - COM: <s> return a mutable contraints object for argument component </s> - diff --git a/funcom_test/26285375.txt b/funcom_test/26285375.txt deleted file mode 100644 index ab55508f50d5d77b49b92357a55b4439038a577c..0000000000000000000000000000000000000000 --- a/funcom_test/26285375.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setColumnSpecs (double column[]) { - // Copy columns - columnSpec = new double[column.length]; - System.arraycopy (column, 0, columnSpec, 0, getNumColumns()); - - // Make sure columns are valid - for (int counter = 0; counter < getNumColumns(); counter++) - columnSpec[counter] = ensureCorrectSpecSize(columnSpec[counter]); - layoutIsChanged(); - } - COM: <s> adjusts the number and sizes of rows in this layout </s> - diff --git a/funcom_test/26285479.txt b/funcom_test/26285479.txt deleted file mode 100644 index 89739b17d83826ac1129032f30156b8d2cfed5c4..0000000000000000000000000000000000000000 --- a/funcom_test/26285479.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testPreferredLayoutSize() { - createSampleLayout(); - - assertEquals( - new Dimension(20, 20), - testLayout.minimumLayoutSize(container)); - assertEquals( - new Dimension(40, 40), - testLayout.preferredLayoutSize(container)); - assertEquals( - new Dimension(60, 60), - testLayout.maximumLayoutSize(container)); - } - COM: <s> test preferred layout size </s> - diff --git a/funcom_test/26285485.txt b/funcom_test/26285485.txt deleted file mode 100644 index f5c0321d65f49af1af915d8943f72780f90a064e..0000000000000000000000000000000000000000 --- a/funcom_test/26285485.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { - String description = value == null ? "" : ((javax.swing.filechooser.FileFilter)value).getDescription(); - return super.getListCellRendererComponent(list, description, index, isSelected, cellHasFocus); - } - COM: <s> override to provide the file filters description instead of its to string </s> - diff --git a/funcom_test/26285517.txt b/funcom_test/26285517.txt deleted file mode 100644 index 4d1bae93f42fc5999c16afe41264cb603b4e99c8..0000000000000000000000000000000000000000 --- a/funcom_test/26285517.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testAddLayoutComponentComponentObject1() { - testLayout = new AdvancedLayout(2, 2); - - testLayout.addLayoutComponent(component1, "0,1"); - - extractFirstPositionFromList(); - - assertEquals(0, resultingHorizontalPosition.getStartSeparation()); - assertEquals(0, resultingHorizontalPosition.getStopSeparation()); - assertEquals(1, resultingVerticalPosition.getStartSeparation()); - assertEquals(1, resultingVerticalPosition.getStopSeparation()); - } - COM: <s> class to test for void add layout component component object </s> - diff --git a/funcom_test/26285536.txt b/funcom_test/26285536.txt deleted file mode 100644 index 926197325629a8fce3e3109532e87841e8d47a39..0000000000000000000000000000000000000000 --- a/funcom_test/26285536.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void validateMaximumSize() { - testSize = insetsSize + testDimension.getTotalMaximumSize(); - testDimension.calculateSizes(offsetLeft, offsetRight, testSize); - nextSpacingStartPixel = margin + offsetLeft; - - for (int i = 0; i < componentCount; ++i) { - position = (LinearPosition) positionList.get(i); - expectedPositionDesiredLength = position.getMaximumSize(); - - verifyPosition(); - } - } - COM: <s> test the distribution of positions when the </s> - diff --git a/funcom_test/26285538.txt b/funcom_test/26285538.txt deleted file mode 100644 index 3b7964660001d1d3e823b58bb9e6e5b399bbf20f..0000000000000000000000000000000000000000 --- a/funcom_test/26285538.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Entry (Component component, Constraints constraint) { - super (constraint.col1, constraint.row1, - constraint.col2, constraint.row2, - constraint.hAlign, constraint.vAlign); - - singleCell = ((row1 == row2) && (col1 == col2)); - this.component = component; - } - COM: <s> constructs an entry that binds a component to a set of constraints </s> - diff --git a/funcom_test/26285556.txt b/funcom_test/26285556.txt deleted file mode 100644 index 00685e4a295cb3a0781553016da6cb72be665f1f..0000000000000000000000000000000000000000 --- a/funcom_test/26285556.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void createSampleLayout() { - testDimension = new LinearDimension(10); - - testPosition1.setStartSeparation(1); - testPosition1.setStopSeparation(1); - - testPosition2.setStartSeparation(3); - testPosition2.setStopSeparation(3); - - testPosition3.setStartSeparation(5); - testPosition3.setStopSeparation(7); - - testDimension.addPosition(testPosition1); - testDimension.addPosition(testPosition2); - testDimension.addPosition(testPosition3); - } - COM: <s> create sample layout </s> - diff --git a/funcom_test/26285632.txt b/funcom_test/26285632.txt deleted file mode 100644 index 2beda0678eceed818d0134ff242a18ca209fe2bf..0000000000000000000000000000000000000000 --- a/funcom_test/26285632.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetStartSpacing() { - assertEquals(testPosition.getStartSeparation(), 0); - - int newValue = 9872; - - testPosition.setStartSeparation(newValue); - assertEquals(testPosition.getStartSeparation(), newValue); - - int invalidValue = -1; - - testPosition.setStartSeparation(invalidValue); - assertEquals(testPosition.getStartSeparation(), 0); - - } - COM: <s> test get start spacing </s> - diff --git a/funcom_test/26285637.txt b/funcom_test/26285637.txt deleted file mode 100644 index b195075016b6c25a6399fce3bf2970d31caa2cca..0000000000000000000000000000000000000000 --- a/funcom_test/26285637.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetStopSpacing() { - assertEquals(testPosition.getStopSeparation(), 0); - - int newValue = 9872; - - testPosition.setStopSeparation(newValue); - assertEquals(testPosition.getStopSeparation(), newValue); - - int invalidValue = -1; - - testPosition.setStopSeparation(invalidValue); - assertEquals(testPosition.getStopSeparation(), 0); - - } - COM: <s> test get stop spacing </s> - diff --git a/funcom_test/26285656.txt b/funcom_test/26285656.txt deleted file mode 100644 index 5f6379411f3c31f9377735144ce2f0c08f1180da..0000000000000000000000000000000000000000 --- a/funcom_test/26285656.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testValidateSeparationCount() { - try { - LinearDimension.validateSeparationCount(0); - fail(); - } catch (IllegalArgumentException ex) { - // ok - } - - try { - LinearDimension.validateSeparationCount(-2); - fail(); - } catch (IllegalArgumentException ex) { - // ok - } - - LinearDimension.validateSeparationCount(1); - LinearDimension.validateSeparationCount(2988); - } - COM: <s> test validate separation count </s> - diff --git a/funcom_test/26285659.txt b/funcom_test/26285659.txt deleted file mode 100644 index 819e93436f855a54fc25cb2b47b5a23842ac5e38..0000000000000000000000000000000000000000 --- a/funcom_test/26285659.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testGetPreferredSize() { - assertEquals(testPosition.getPreferredSize(), 0); - - int newValue = 9872; - - testPosition.setPreferredSize(newValue); - assertEquals(testPosition.getPreferredSize(), newValue); - - int invalidValue = -1; - - testPosition.setPreferredSize(invalidValue); - assertEquals(testPosition.getPreferredSize(), 0); - } - COM: <s> test get preferred size </s> - diff --git a/funcom_test/26285698.txt b/funcom_test/26285698.txt deleted file mode 100644 index 552e2ba3226cd70241149c7117443760a7efc57e..0000000000000000000000000000000000000000 --- a/funcom_test/26285698.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setSeparationCount(int i) { - validateSeparationCount(i); - - int currentSeparationCount = getSeparationCount(); - - if (i > currentSeparationCount) { - // separation count too small, enlarge it to fit - enlargeSeparationCount(i); - } else if (i < currentSeparationCount) { - // separation count too large, shrink it to fit - shrinkSeparationCount(i); - } - } - COM: <s> set separation count </s> - diff --git a/funcom_test/26285743.txt b/funcom_test/26285743.txt deleted file mode 100644 index 82d53f3b30392478b5c82de0ab9723fa476c41fa..0000000000000000000000000000000000000000 --- a/funcom_test/26285743.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void insertSeparation(int i) { - if (i < 0) { - throw new IllegalArgumentException( - "Separation count must be bigger or equal to 0, current value : " - + i); - } - - if (i >= getSeparationCount()) { - enlargeSeparationCount(i + 1); - } else { - insertSingleSeparation(i); - } - } - COM: <s> insert a separation </s> - diff --git a/funcom_test/26285789.txt b/funcom_test/26285789.txt deleted file mode 100644 index d467fd984abcbfe0115cf577fae91ea095b9611a..0000000000000000000000000000000000000000 --- a/funcom_test/26285789.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void adjustMinimumAndMaximum() { - // make sure every minimum size is bigger or equal to 0 - setToMinimumArrayValue(minimumSizes, 0); - - // make sure preferred is bigger or equal to minimum - setToMaximumSizes(preferredSizes, minimumSizes); - - // make sure maximum is bigger or equal to preferred - setToMaximumSizes(maximumSizes, preferredSizes); - } - COM: <s> adjust the maximum and preferred values to make sure that </s> - diff --git a/funcom_test/26285821.txt b/funcom_test/26285821.txt deleted file mode 100644 index 7366523d9e7562f4514be847db39fe4725689957..0000000000000000000000000000000000000000 --- a/funcom_test/26285821.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void tableChanged(TableModelEvent e) { - if (e.getType() == TableModelEvent.UPDATE) {// setValueAt will fire this event, do nothing to keep current sort - fireTableChanged(e); - return; - } - if (e.getType() == TableModelEvent.DELETE) - updateDelete(e); // for delete keep current sort - else { - reallocateIndexes(); - fireTableChanged(e); - } - } - COM: <s> react on table change events </s> - diff --git a/funcom_test/26285843.txt b/funcom_test/26285843.txt deleted file mode 100644 index 25ee99c5448ae3bc146b1f21e9b7260fc783ac73..0000000000000000000000000000000000000000 --- a/funcom_test/26285843.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void sort() { - /* - * This is the general, please sort me, method. During implementation we can swift between a - * simple sorter and the shuttlesorter. If this performs poorly; we will have to check if - * the implementation of this method should not forward the sorting request to someone else. - */ - checkModel(); - - // qsort(0, indexes.length-1); - shuttlesort((int[])indexes.clone(), indexes, 0, indexes.length); - } - COM: <s> this is the general please sort me method </s> - diff --git a/funcom_test/26285863.txt b/funcom_test/26285863.txt deleted file mode 100644 index 302183939da91f3d969502d3ac681452f630448c..0000000000000000000000000000000000000000 --- a/funcom_test/26285863.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public UICActionList getActionList(String name) { - UICActionList list = (UICActionList) actionLists.get(name); - if(list == null) { // create - list = new UICActionList(name, this); - actionLists.put(name, list); - } - return list; - } - COM: <s> return the action list list of actions that are grouped by argument name </s> - diff --git a/funcom_test/26285888.txt b/funcom_test/26285888.txt deleted file mode 100644 index 6feaf7a0130fb34fe9dd6a748e6a51f383d8b727..0000000000000000000000000000000000000000 --- a/funcom_test/26285888.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void sortByColumn(int column, boolean ascending) { - this.ascending = ascending; - sortingColumns.removeAllElements(); - sortingColumns.addElement(new Integer(column)); - sort(); - - // update the renderer - renderer.setPressedColumn(getSortedColumns()); - renderer.setAscending(this.ascending); - tableView.getTableHeader().repaint(); - - fireTableChanged(new TableModelEvent(this)); - } - COM: <s> sort column in a given direction </s> - diff --git a/funcom_test/26285898.txt b/funcom_test/26285898.txt deleted file mode 100644 index 78eee3b23f2e4c513a958abd1a8a913cc0994a0d..0000000000000000000000000000000000000000 --- a/funcom_test/26285898.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addSortedColumn(int column, boolean ascending) { - this.ascending = ascending; - sortingColumns.addElement(new Integer(column)); - sort(); - - // update the renderer - renderer.setPressedColumn(getSortedColumns()); - renderer.setAscending(this.ascending); - tableView.getTableHeader().repaint(); - - fireTableChanged(new TableModelEvent(this)); - } - COM: <s> add a sorting column in a given direction </s> - diff --git a/funcom_test/26285909.txt b/funcom_test/26285909.txt deleted file mode 100644 index 5bb1cab7a93d5286816c87def3efbc80ecf8651c..0000000000000000000000000000000000000000 --- a/funcom_test/26285909.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void removeIndexInterval(int index0, int index1) { - setAnchorSelectionIndex(index0); - setLeadSelectionIndex(index1); - int max = Math.max(index0, index1); - for (int index = Math.min(index0, index1); index <= max; index++) { - selectedIndices.remove(new Integer(index)); - } - fireValueChanged(index0, index1); - } - COM: <s> remove the indices in the interval index0 index1 inclusive from the selection model </s> - diff --git a/funcom_test/26285919.txt b/funcom_test/26285919.txt deleted file mode 100644 index d9af82eebcf268ae3459a3d324543650e8ee84cd..0000000000000000000000000000000000000000 --- a/funcom_test/26285919.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void fireValueChanged(int index0, int index1) { - ListSelectionEvent event = new ListSelectionEvent(this, index0, index1, getValueIsAdjusting()); - EventListener[] listeners = listenerList.getListeners(ListSelectionListener.class); - for (int i = listeners.length-1; i>=0; i--) { - ((ListSelectionListener)listeners[i]).valueChanged(event); - } - } - COM: <s> fires the value changed event to all listeners </s> - diff --git a/funcom_test/26285995.txt b/funcom_test/26285995.txt deleted file mode 100644 index 87b17a84103d09fbaf4e3208089b5cbac819dbbd..0000000000000000000000000000000000000000 --- a/funcom_test/26285995.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void findPopups(Element root) { - popupElements = new HashMap(); - Iterator menuElements = root.getChildren("Menu").iterator(); - while(menuElements.hasNext()) { - Element entry = (Element) menuElements.next(); - popupElements.put(entry.getAttributeValue("name", ""), entry); - } - } - COM: <s> stores parts of the xml under the name of the popups </s> - diff --git a/funcom_test/26286001.txt b/funcom_test/26286001.txt deleted file mode 100644 index 9c56949a5d96d609d1cd4fd47be2a34c515d1031..0000000000000000000000000000000000000000 --- a/funcom_test/26286001.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void findToolBars(Element root) { - toolbarElements = new HashMap(); - Iterator elements = root.getChildren("ToolBar").iterator(); - while(elements.hasNext()) { - Element entry = (Element) elements.next(); - toolbarElements.put(entry.getAttributeValue("name", ""), entry); - } - } - COM: <s> stores parts of the xml under the name of the toolbars </s> - diff --git a/funcom_test/26286066.txt b/funcom_test/26286066.txt deleted file mode 100644 index b48975ad08d284d20752a17a683af129853daeb0..0000000000000000000000000000000000000000 --- a/funcom_test/26286066.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JMenuItem createMenuItem(String name, int shortCut, ActionListener listener) { - JMenuItem item = new JMenuItem(translate().getButtonText(name)); - item.setMnemonic(translate().getMnemonic(name)); - item.addActionListener(listener); - if(shortCut > 0) - item.setAccelerator(getShortcutKey(shortCut)); - return item; - } - COM: <s> helper method that instanciates a menu item that will be translated </s> - diff --git a/funcom_test/26286127.txt b/funcom_test/26286127.txt deleted file mode 100644 index 89a5fb1f1302ff0384a94372cab6775c5f2ba8ed..0000000000000000000000000000000000000000 --- a/funcom_test/26286127.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public AbstractButton addProgressBar(int maxValue, boolean allowCancelButton) { - removeProgressBar(); - progressBar = new JProgressBar(0, maxValue); - add(progressBar); - if(allowCancelButton) { - cancelButton = new ExtraWindow.CloseButton(); - add(cancelButton); - } - else - cancelButton = null; - return cancelButton; - } - COM: <s> create a progressbar on the status bar with an optional cancel button </s> - diff --git a/funcom_test/26286128.txt b/funcom_test/26286128.txt deleted file mode 100644 index 3e8872269c984853c74834fd8362246311a75719..0000000000000000000000000000000000000000 --- a/funcom_test/26286128.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void removeProgressBar() { - Runnable r = new Runnable() { - public void run() { - if(progressBar != null) { - remove(progressBar); - repaint(); - } - progressBar = null; - if(cancelButton != null) remove(cancelButton); - cancelButton = null; - } - }; - if(SwingUtilities.isEventDispatchThread()) - r.run(); - else - SwingUtilities.invokeLater(r); - } - COM: <s> remove the progress bar from the statusbar </s> - diff --git a/funcom_test/26286147.txt b/funcom_test/26286147.txt deleted file mode 100644 index 77c9bd9ad45856f0f5a11159fb7f4da2eff30830..0000000000000000000000000000000000000000 --- a/funcom_test/26286147.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Dimension getPreferredSize() { - if(isPreferredSizeSet()) - return super.getPreferredSize(); - FontMetrics fm = getFontMetrics(getFont()); - return new Dimension ((statusText==null?0:fm.stringWidth(statusText)) + 5, fm.getHeight() + 8); - } - COM: <s> overrides the size from the super </s> - diff --git a/funcom_test/26286199.txt b/funcom_test/26286199.txt deleted file mode 100644 index 193772a2715a49bd08fa54ce6b06189c9732b9bd..0000000000000000000000000000000000000000 --- a/funcom_test/26286199.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setCollapsedHeader(PreviewHeader panel) { - if(! (panel instanceof JComponent)) - throw new IllegalArgumentException ("panel should extend a JComponent"); - if(headerComponent != null) - remove(headerComponent); - headerComponent = (JComponent) panel; - headerComponent.setVisible(false); - header = panel; - add(headerComponent); - } - COM: <s> for the collapsable functionality set the header panel that shows the summary </s> - diff --git a/funcom_test/26286209.txt b/funcom_test/26286209.txt deleted file mode 100644 index 02ba8ada36b7a6309d943ca0ed2e260e06ffffcb..0000000000000000000000000000000000000000 --- a/funcom_test/26286209.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setValue(Number value) { - try { - model.setValue(value); - } catch(IllegalArgumentException e) {} - textField.setText(prefix + format.format(model.getValue(), new StringBuffer(), new FieldPosition(0)).toString() + suffix); - } - COM: <s> set the value to the model </s> - diff --git a/funcom_test/26286211.txt b/funcom_test/26286211.txt deleted file mode 100644 index 9d3d66b0fac2f946f41ef4860db6ac6aeeca1c38..0000000000000000000000000000000000000000 --- a/funcom_test/26286211.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void widgetClickedSlot(int x, int y) { - if(header == null) return; - if(getCollapsed()) - setCollapsed(!getCollapsed()); - else if(y <= getBorder().getBorderInsets(this).top) - setCollapsed(!getCollapsed()); - } - COM: <s> called from the mouse listener </s> - diff --git a/funcom_test/26286268.txt b/funcom_test/26286268.txt deleted file mode 100644 index e890b17992388e6569a03e0dd12d850c8a1a43f0..0000000000000000000000000000000000000000 --- a/funcom_test/26286268.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setTitle(String title) { - this.title = title; - if(header!=null) header.setTitle(title); - contentBorder.setTitle(title); - repaint(0, 0, 0, getWidth(), contentBorder.getBorderInsets(this).top); - } - COM: <s> sets a new title for this group box </s> - diff --git a/funcom_test/26286332.txt b/funcom_test/26286332.txt deleted file mode 100644 index a219e6ab29ce6b772f4550aa5ee8d1a4913ae70d..0000000000000000000000000000000000000000 --- a/funcom_test/26286332.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void connect(JRadioButtonMenuItem source, UICToolBar tb, int arg, boolean icons) { - new AbstractButtonAction(tb, "setShowText", - AbstractButtonAction.createArguments().addStaticArgument(arg)).add(source); - new AbstractButtonAction(tb, "setShowIcons", - AbstractButtonAction.createArguments().addStaticArgument(icons)).add(source); - } - COM: <s> connect the icon position entries to the target toolbar </s> - diff --git a/funcom_test/26286420.txt b/funcom_test/26286420.txt deleted file mode 100644 index 3347557ba3fbc38cecdf406ff3cec3b052e41eab..0000000000000000000000000000000000000000 --- a/funcom_test/26286420.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addPage (JComponent page) { -// TODO add JScrollPane around the page before it goes into the cardsPanel. - Page lastPage = firstPage; - while(lastPage.getNext(false) != null) - lastPage = lastPage.getNext(false); - lastPage.addPage(page); - cardsPanel.add(page, find(page).getUniqueName()); - } - COM: <s> add a page to the end of the list of pages </s> - diff --git a/funcom_test/26286423.txt b/funcom_test/26286423.txt deleted file mode 100644 index d5b304a9812879f357a818a11d568de914c803eb..0000000000000000000000000000000000000000 --- a/funcom_test/26286423.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void insertPage (JComponent page, int index) throws IndexOutOfBoundsException { -// TODO add JScrollPane around the page before it goes into the cardsPanel. - if(index < 0) { - addPage(page); - return; - } - getPageOn(index).addPage(page); - cardsPanel.add(page, find(page).getUniqueName()); - } - COM: <s> insert a page somewhere in the list </s> - diff --git a/funcom_test/26286461.txt b/funcom_test/26286461.txt deleted file mode 100644 index 6b446e0c9a742b5eb1af9c384bb406e622c90575..0000000000000000000000000000000000000000 --- a/funcom_test/26286461.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Dimension getPreferredSize() { - if(isPreferredSizeSet()) - return super.getPreferredSize(); - Dimension pref = super.getPreferredSize(); - pref.height = Math.max(minSize.height, pref.height); - pref.width = Math.max(minSize.width, pref.width); - return pref; - } - COM: <s> work around bug that borderlayout does not honor minimum size </s> - diff --git a/funcom_test/26286479.txt b/funcom_test/26286479.txt deleted file mode 100644 index 030987e817e19e44e1a6a629a163bc58a1b47c10..0000000000000000000000000000000000000000 --- a/funcom_test/26286479.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected Page getPageOn(int index) throws IndexOutOfBoundsException { - if(index < 0) throw new IndexOutOfBoundsException(); - Page findPage = firstPage; - while(index > 0) { - try { - findPage=findPage.getNext(false); - } catch(NullPointerException e) { - throw new IndexOutOfBoundsException(); - } - index--; - } - return findPage; - } - COM: <s> return the page that has index in the list of pages </s> - diff --git a/funcom_test/26286553.txt b/funcom_test/26286553.txt deleted file mode 100644 index a9fd63871f3958cb4ef8cb2d619c4b22ecbc98c3..0000000000000000000000000000000000000000 --- a/funcom_test/26286553.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void openContextMenuSlot(int x, int y) { - final JPopupMenu popup = new JPopupMenu("Toolbar Menu"); - if(toolbarContainer != null) toolbarContainer.addMenuEntries(popup, this); - if(popup.getComponentCount() == 0) - return; - - popup.pack(); - popup.show(this, x, y); - } - COM: <s> method shows the popup menu for this toolbar </s> - diff --git a/funcom_test/26286557.txt b/funcom_test/26286557.txt deleted file mode 100644 index 0121d07637a19afd5255b843780f1a2379f61d55..0000000000000000000000000000000000000000 --- a/funcom_test/26286557.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void add(String type, String name, String initValue) { - if(variableLines.get(type) != null) - variableLines.put(type, variableLines.get(type) + ", " + name + (initValue!=null?("="+initValue):"")); - else - variableLines.put(type, name + (initValue!=null?("="+initValue):"")); - - registerName(name); - } - COM: <s> add a variable to the global list of variables </s> - diff --git a/funcom_test/26287095.txt b/funcom_test/26287095.txt deleted file mode 100644 index 8a856197140d70629c6aa77a271755010228a56c..0000000000000000000000000000000000000000 --- a/funcom_test/26287095.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void paintButton(Graphics g, AbstractButton button) { - Graphics2D g2d = (Graphics2D)g; - g2d.setPaint(new GradientPaint(0, 0, button.getBackground().brighter(), 0, button.getHeight()-2, button.getBackground().darker(), true)); - g2d.fillRect(0,0,button.getWidth()-2, button.getHeight()-2); - } - COM: <s> paints the default non pressed button </s> - diff --git a/funcom_test/26287097.txt b/funcom_test/26287097.txt deleted file mode 100644 index 598ad94104bbcc19dd1d661ada8a159470ce93d2..0000000000000000000000000000000000000000 --- a/funcom_test/26287097.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void paintButtonPressed(Graphics g, AbstractButton button){ - Graphics2D g2d = (Graphics2D)g; - g2d.setPaint(new GradientPaint(0, 0, button.getBackground().brighter(), 0, button.getHeight(), button.getBackground())); - g2d.fillRect(0,0,button.getWidth(), button.getHeight()); - } - COM: <s> paints the focus non pressed button </s> - diff --git a/funcom_test/26287400.txt b/funcom_test/26287400.txt deleted file mode 100644 index 97287d03413101f91a7ef78acc4e834756c60da1..0000000000000000000000000000000000000000 --- a/funcom_test/26287400.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Dimension getPreferredSize(JComponent c) { - Dimension d = new Dimension(MINIMUM_SIZE, MINIMUM_SIZE); - JScrollBar sb = (JScrollBar)c; - if (sb.getOrientation() == JScrollBar.VERTICAL) - d.width = getPreferredScreenSize(d.width); - else - d.height = getPreferredScreenSize(d.height); - return d; - } - COM: <s> override the default preferred size </s> - diff --git a/funcom_test/26323664.txt b/funcom_test/26323664.txt deleted file mode 100644 index 35e5ce050ebb8c24bdebff284593f43d9f7ec8f1..0000000000000000000000000000000000000000 --- a/funcom_test/26323664.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void runInteractive() { - BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); - while (true) { - System.out.print("pynt> "); - try { - String line = in.readLine(); - if (line.trim().equals("exit")) return; - PyntObject result = engine.run(line); - if (!result.isNull()) System.out.println(result); - } catch (PyntException e) { - e.printStackTrace(); - } catch (Exception e) { - e.printStackTrace(); - } - } - } - COM: <s> reads statements from the system input and executes them one at a time </s> - diff --git a/funcom_test/26323719.txt b/funcom_test/26323719.txt deleted file mode 100644 index a9aa6a75b3dc4bcb2889587ac01e69a923c2ec80..0000000000000000000000000000000000000000 --- a/funcom_test/26323719.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private File findProjectFile(String name) throws PyntException { - for (int i = 0; i < projectPath.length; i++) { - File file = new File(projectPath[i], name + ".pynt"); - if (file.exists()) return file; - } - throw new PyntException("Project \"" + name + "\" not found"); - } - COM: <s> scans the project path look for a pynt file with the specified name </s> - diff --git a/funcom_test/26336780.txt b/funcom_test/26336780.txt deleted file mode 100644 index a6868290ef4db209861b8fda09abbf2397012683..0000000000000000000000000000000000000000 --- a/funcom_test/26336780.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private boolean isValidType(Class type) { - return (type.isPrimitive() || - (String.class == type) || - (Boolean.class == type) || - (Integer.class == type) || - (Double.class == type) || - (Byte.class == type) || - (Short.class == type) || - (Long.class == type) || - (Float.class == type) || - (Character.class == type)); - } - COM: <s> return true if the type is a primitive type primitive </s> - diff --git a/funcom_test/26336784.txt b/funcom_test/26336784.txt deleted file mode 100644 index 87ab95a3fb83c2cf7d795abb9352c43a2d2137bc..0000000000000000000000000000000000000000 --- a/funcom_test/26336784.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public ClassDescriptor getDescriptor(Class type) { - ClassDescriptor descriptor; - - descriptor = super.getDescriptor(type); - - if ((null == descriptor) && (type == _newClass)) { - if (CATEGORY.isDebugEnabled()) { - CATEGORY.debug("Creating resource class descriptor for " + type); - } - try { - descriptor = new ResourceClassDescriptorImpl(type); - addDescriptor(descriptor); - _newClass = null; - } - catch(MappingException e) { - // this should not happen - throw new RuntimeException(e.toString()); - } - } - - return descriptor; - } - COM: <s> returns the class descriptor for the specified java class </s> - diff --git a/funcom_test/26336914.txt b/funcom_test/26336914.txt deleted file mode 100644 index 7f48d50f73e876b531363b8bf2e94b638e71fc23..0000000000000000000000000000000000000000 --- a/funcom_test/26336914.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getConfigPropertySetMethodName( String configPropertyName ) { - if ( ( null == configPropertyName ) || - ( 0 == configPropertyName.length() ) ) { - throw new IllegalArgumentException( "The argument 'configPropertyName' is null or empty." ); - } - - return "set" + configPropertyName; - } - COM: <s> return the method name for setting the resource adapter </s> - diff --git a/funcom_test/26336925.txt b/funcom_test/26336925.txt deleted file mode 100644 index 3b712dcfa9c4763312aa514ff7d28db95e078068..0000000000000000000000000000000000000000 --- a/funcom_test/26336925.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getConfigPropertyGetMethodName( String configPropertyName ) { - if ( ( null == configPropertyName ) || - ( 0 == configPropertyName.length() ) ) { - throw new IllegalArgumentException( "The argument 'configPropertyName' is null or empty." ); - } - - return "get" + configPropertyName; - } - COM: <s> return the method name for getting the resource adapter </s> - diff --git a/funcom_test/26338185.txt b/funcom_test/26338185.txt deleted file mode 100644 index 71f14839c8f6a696700e1cd8fba59cbfd3cbad96..0000000000000000000000000000000000000000 --- a/funcom_test/26338185.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testIsTransaction() throws org.omg.CORBA.UserException { - stream.writeVerbose("Get the current object'"); - Current current = CurrentHelper.narrow( _orb.resolve_initial_references("TransactionCurrent") ); - - stream.writeVerbose("Commit the transaction"); - try - { - current.commit( false ); - } - catch ( NoTransaction e ) - { - return; - } - - fail("Transaction not commited"); - } - COM: <s> tc 02 commit transaction test </s> - diff --git a/funcom_test/26339238.txt b/funcom_test/26339238.txt deleted file mode 100644 index 9fe02e84d714004be5ce5be7887b3dd877364255..0000000000000000000000000000000000000000 --- a/funcom_test/26339238.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: static private void close(ArrayList entries) { - if (null != entries) { - for (int i = entries.size(); --i >= 0;) { - try { - ((Entry)entries.get(i))._xaConnection.close(); - } - catch(SQLException e) { - } - } - } - } - COM: <s> close the connections associated with the data sources </s> - diff --git a/funcom_test/26369396.txt b/funcom_test/26369396.txt deleted file mode 100644 index fd38ba1cb3274e9a94cc48c795d9cedf04cca8c2..0000000000000000000000000000000000000000 --- a/funcom_test/26369396.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addError(AuditEvent auditEvent) { - try { - String output = auditEventToString(auditEvent); - ((CheckstyleAction)listener).register(output, auditEvent); - outputWriter.println(output, listener); - } catch (java.io.IOException ioe) { - outputWriter.println(auditEventToString(auditEvent)); - } - } - COM: <s> when an audit error has been found </s> - diff --git a/funcom_test/26369399.txt b/funcom_test/26369399.txt deleted file mode 100644 index 4c3f3a126748fd07dfbd801d4cf5f267b78b7692..0000000000000000000000000000000000000000 --- a/funcom_test/26369399.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addException(AuditEvent auditEvent, Throwable throwable) { - try { - outputWriter.println("Error occurred audit - " + - auditEvent.toString() + " - exception - " + - throwable, listener); - } catch (java.io.IOException ioe) { - outputWriter.println("Error occurred audit - " + - auditEvent.toString() + " - exception - " + - throwable); - } - } - COM: <s> when an exception ccurs during processing </s> - diff --git a/funcom_test/26369409.txt b/funcom_test/26369409.txt deleted file mode 100644 index 92975ece335f8c1637715ecaa2ecc0b6e29ab829..0000000000000000000000000000000000000000 --- a/funcom_test/26369409.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Image getIcon( int type ) { - Image img; - if( type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16 ) { - img = Utilities.loadImage( "com/goulbourn/docenforcer/CheckStyleOptionsSettingsIcon.gif" ); - } - else { - img = Utilities.loadImage( "com/goulbourn/docenforcer/CheckStyleOptionsSettingsIcon.gif" ); - } - return img; - } - COM: <s> returns the icon for the property </s> - diff --git a/funcom_test/26369417.txt b/funcom_test/26369417.txt deleted file mode 100644 index b89f84164aa429a0ce2d904187afaa90db524e0d..0000000000000000000000000000000000000000 --- a/funcom_test/26369417.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void initialize() { - super.initialize(); - // If you have more complex default values which might require - // other parts of the module to already be installed, do not - // put them here; e.g. make the getter return them as a - // default if getProperty returns null. (The class might be - // initialized partway through module installation.) - // give a default file location - setCheckStylePropertyFile( new File("") ); - } - COM: <s> initialise the bean </s> - diff --git a/funcom_test/26411856.txt b/funcom_test/26411856.txt deleted file mode 100644 index 266db54086509b21635c12f19ab83dfadc1e07e5..0000000000000000000000000000000000000000 --- a/funcom_test/26411856.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int compare(Object arg0, Object arg1) { - PooledObject obj1 = (PooledObject) arg0; - PooledObject obj2 = (PooledObject) arg1; - - long diff = obj1.getLastUsedTime() - obj2.getLastUsedTime(); - - if (diff == 0L) { - return 0; - } else if (diff > 0L) { - return 1; - } else { - return -1; - } - } - COM: <s> compare last update time of two pooled objects </s> - diff --git a/funcom_test/26411969.txt b/funcom_test/26411969.txt deleted file mode 100644 index 8075d8651c125866f7ca8f0ca19e94473bbba8b7..0000000000000000000000000000000000000000 --- a/funcom_test/26411969.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected PooledObject create() throws PoolManException { - Object obj = factory.create(); - PooledObject pooledObj; - - if (createWrapper) { - pooledObj = new PooledObjectWrapper(obj); - pooledObj.setServerInfo(factory.getServerInfo(obj)); - } else { - pooledObj = (PooledObject) obj; - } - - pooledObj.setPool(this); - - if (proxyHandler != null) { - pooledObj.setProxyHandler(proxyHandler); - } - - return pooledObj; - } - COM: <s> create the pooled object </s> - diff --git a/funcom_test/26411989.txt b/funcom_test/26411989.txt deleted file mode 100644 index df93ea1b140df583b7b4faf4728d7f641537d0cd..0000000000000000000000000000000000000000 --- a/funcom_test/26411989.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void debugMetrics() { - if (logger.isDebugEnabled()) { - logger.debug("\tPool Name: " + poolInfo.getName() + " {" + " Total Objects: " + - numTotalObjects() + " Objects Available: " + numCheckedInObjects() + - " Objects In Use: " + numCheckedOutObjects() + " }"); - } - } - COM: <s> display some debug information about pool status </s> - diff --git a/funcom_test/26412118.txt b/funcom_test/26412118.txt deleted file mode 100644 index 1e3458b81fd16630e60f47d10e5036f79f2c7339..0000000000000000000000000000000000000000 --- a/funcom_test/26412118.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void connectionErrorOccurred(ConnectionEvent event) { - logger.warn("Received Connection Error event from a conection in pool " + info.getName()); - - if (info.isRemoveOnExceptions()) { - checkIn(event.getSource(), true); - logger.warn("removeOnExceptions == true, closed connection"); - } - } - COM: <s> responds to an error event </s> - diff --git a/funcom_test/26412127.txt b/funcom_test/26412127.txt deleted file mode 100644 index 54a4118e6679706750733f79aca7c5edc657e3cc..0000000000000000000000000000000000000000 --- a/funcom_test/26412127.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Object requestObject(String poolname) throws PoolManException { - ObjectPool pool = null; - - try { - pool = (ObjectPool) pools.get(poolname); - } catch (NullPointerException ne) { - } - - if (pool != null) { - return pool.requestObject(); - } else { - throw new PoolManException(PoolManException.ST_CONFIG, - "Pool " + poolname + " not exists"); - } - } - COM: <s> get pooled object from pool </s> - diff --git a/funcom_test/2644926.txt b/funcom_test/2644926.txt deleted file mode 100644 index ab296d62b8081e25047eda3a44b521d007de2d83..0000000000000000000000000000000000000000 --- a/funcom_test/2644926.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void sendNextProgramStartTimeChangedEvent(Status status) { - synchronized (dreamboxListeners) { - if (dreamboxListeners!=null) { - for (Iterator<DreamboxListener> i = dreamboxListeners.iterator();i.hasNext();) { - try { - i.next().handleNextProgramStartTimeChangedEvent(status); - } - catch (Throwable t) {t.printStackTrace();}; - } - } - } - } - COM: <s> send next program start time changed event </s> - diff --git a/funcom_test/2644930.txt b/funcom_test/2644930.txt deleted file mode 100644 index fd2d3eff924eff2197a6446e4d29a837c2fe826f..0000000000000000000000000000000000000000 --- a/funcom_test/2644930.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void sendProgramStartTimeChangedEvent(Status status) { - synchronized (dreamboxListeners) { - if (dreamboxListeners!=null) { - for (Iterator<DreamboxListener> i = dreamboxListeners.iterator();i.hasNext();) { - try { - i.next().handleProgramStartTimeChangedEvent(status); - } - catch (Throwable t) {t.printStackTrace();}; - } - } - } - } - COM: <s> send program start time changed event </s> - diff --git a/funcom_test/2644937.txt b/funcom_test/2644937.txt deleted file mode 100644 index 7469ad9b3d843abd78081044591dc16ecacc27a4..0000000000000000000000000000000000000000 --- a/funcom_test/2644937.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void sendNextProgramNameChangedEvent(Status status) { - synchronized (dreamboxListeners) { - if (dreamboxListeners!=null) { - for (Iterator<DreamboxListener> i = dreamboxListeners.iterator();i.hasNext();) { - try { - i.next().handleNextProgramNameChangedEvent(status); - } - catch (Throwable t) {t.printStackTrace();}; - } - } - } - } - COM: <s> send next program name changed event </s> - diff --git a/funcom_test/26468770.txt b/funcom_test/26468770.txt deleted file mode 100644 index 8afd98b080047544f7a6db0b0e497336f1418523..0000000000000000000000000000000000000000 --- a/funcom_test/26468770.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public InetAddress getMulticastIP(){ - String multicastIP = prefs.getProperty("MulticastIP"); - if(multicastIP != null){ - try{ - return InetAddress.getByName(multicastIP); - }catch(UnknownHostException e){ - System.out.println(e); - return null; - } - } - else return null; - } - COM: <s> gets the configured multicast ip </s> - diff --git a/funcom_test/26493505.txt b/funcom_test/26493505.txt deleted file mode 100644 index 1e2d5568783de2947c420f81eb80e999842d3fe2..0000000000000000000000000000000000000000 --- a/funcom_test/26493505.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getStackTrace(){ - if(!isThrowable()){ - throw new IllegalStateException("Internal error is not an instance of " + Throwable.class.getName()); - - } - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter(sw, true); - Throwable t = (Throwable)_msg; - t.printStackTrace(pw); - pw.close(); - return sw.toString(); - } - COM: <s> returns the stack trace of the code throwable code that this instance </s> - diff --git a/funcom_test/26493529.txt b/funcom_test/26493529.txt deleted file mode 100644 index 8237c3a92dc49f2a72059e13ab99af4fd9421824..0000000000000000000000000000000000000000 --- a/funcom_test/26493529.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List removeAnonymousErrors(){ - List toReturn = new ArrayList(); - for(int i = 0; i < _validationErrs.size(); i++){ - ValidationErr err = (ValidationErr)_validationErrs.get(i); - if(err.getId() == null){ - toReturn.add(err); - _validationErrs.remove(i--); - } - } - return toReturn; - } - COM: <s> returns the validation errors that do not have an id defined </s> - diff --git a/funcom_test/26493601.txt b/funcom_test/26493601.txt deleted file mode 100644 index 46177d95d8d62c1f28b36eb2a43e0744bf7076cd..0000000000000000000000000000000000000000 --- a/funcom_test/26493601.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testAddErrors() { - Status st = new Status(null); - List errs = new ArrayList(); - for(int i = 0; i < 5; i++){ - errs.add(new ValidationErr(""+i, "msg" + i)); - } - st.addErrors(errs); - super.assertEquals(5, st.getErrors().size()); - } - COM: <s> test of add errors method of class org </s> - diff --git a/funcom_test/26493772.txt b/funcom_test/26493772.txt deleted file mode 100644 index 67db78caa364e9c3969dc2e6af192a5ac66058b1..0000000000000000000000000000000000000000 --- a/funcom_test/26493772.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object include() throws ResourceNotFoundException, IOException, Exception{ - InputStream is = null; - try{ - Resource res = resolve(); - is = res.getInputStream(); - Object obj = doInclude(is, null); - pop(); - return obj; - }finally{ - if(is != null) - is.close(); - - } - } - COM: <s> this method resolves the stream corresponding to this instances uri and internally </s> - diff --git a/funcom_test/26493773.txt b/funcom_test/26493773.txt deleted file mode 100644 index e0572aada8e5736ab7eec2ad1a7d1601b5d28715..0000000000000000000000000000000000000000 --- a/funcom_test/26493773.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Object include(Object context) throws ResourceNotFoundException, IOException, Exception{ - InputStream is = null; - try{ - Resource res = resolve(); - is = res.getInputStream(); - Object obj = doInclude(is, context); - pop(); - return obj; - }finally{ - if(is != null) - is.close(); - } - } - COM: <s> this method takes an arbitrary application specific context object </s> - diff --git a/funcom_test/26493866.txt b/funcom_test/26493866.txt deleted file mode 100644 index 1f48913cedbdc62041f1572f511fd12da4bd36ea..0000000000000000000000000000000000000000 --- a/funcom_test/26493866.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Param getParameterFor(String aName) { - if (aName == null) { - throw new IllegalArgumentException("The name passed in is null"); - } - - Param aParam = (Param) _theParameters.get(aName); - if (aParam == null && _theParent != null) { - aParam = _theParent.getParameterFor(aName); - } - - return aParam; - } - COM: <s> returns the param associated with the param name passed in </s> - diff --git a/funcom_test/26493872.txt b/funcom_test/26493872.txt deleted file mode 100644 index 892c9b140ef8f2b6d30bd304887e46934e5db0cd..0000000000000000000000000000000000000000 --- a/funcom_test/26493872.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String resolveValue(MagnetContext aContext, String aValue) throws RenderingException { - try { - if (aValue == null) { - return null; - } else { - TemplateElementIF aTemplate = _theTemplateFactory.parse(aValue); - return aTemplate.render(aContext); - } - } catch (TemplateException te) { - throw new RenderingException("Unable to resolve the value " + aValue, te); - } - } - COM: <s> utility methods that resolve the value passed with for the given context </s> - diff --git a/funcom_test/26493873.txt b/funcom_test/26493873.txt deleted file mode 100644 index 5a25349945267459396035d74def14c1ee8c431a..0000000000000000000000000000000000000000 --- a/funcom_test/26493873.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void removeParameter(Param aParameter) { - if (aParameter == null) { - throw new IllegalArgumentException("The parameter passed in is null"); - } else if (aParameter.getName() == null) { - throw new IllegalArgumentException("The name of the parameter passed in is null"); - } - - _theParameters.remove(aParameter.getName()); - } - COM: <s> removes the param passed in from this magnet context </s> - diff --git a/funcom_test/26493878.txt b/funcom_test/26493878.txt deleted file mode 100644 index b9d293356d062b6fc00fc1e70fbe4c614a0b3693..0000000000000000000000000000000000000000 --- a/funcom_test/26493878.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[profile=").append(_theProfile). - append(" param=").append(_theParameters). - append(" parent=").append(_theParent). - append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of this magnet context </s> - diff --git a/funcom_test/26493893.txt b/funcom_test/26493893.txt deleted file mode 100644 index 5f8ef188e8adf9457de0d40ce8f3ff0855427bd0..0000000000000000000000000000000000000000 --- a/funcom_test/26493893.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setType(String aType) { - try { - _theType = aType; - _theLaunchHandler = HandlerFactory.getInstance().createLaunchHandler(aType); - _theLaunchHandler.setType(aType); - } catch (ObjectCreationException oce) { - throw new IllegalArgumentException("Unable to assign the launcher type - " + oce.getMessage()); - } - } - COM: <s> changes the type of this launcher for the value passed in </s> - diff --git a/funcom_test/26493908.txt b/funcom_test/26493908.txt deleted file mode 100644 index c7700c17fd05e64ed19bd612c5625b11653f39c5..0000000000000000000000000000000000000000 --- a/funcom_test/26493908.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[protocol=").append(_theProtocol). - append(" classname=").append(_theClassname). - append(" classpath=").append(_theClasspath). - append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of this protocol handler definition </s> - diff --git a/funcom_test/26493924.txt b/funcom_test/26493924.txt deleted file mode 100644 index ae8f05ce77654a525edc00688b49994a120b3b50..0000000000000000000000000000000000000000 --- a/funcom_test/26493924.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[magnetFile=").append(_theMagnetFile). - append("[path=").append(_thePathElement). - append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of thi extend </s> - diff --git a/funcom_test/26493940.txt b/funcom_test/26493940.txt deleted file mode 100644 index 3feb206a006a1c66b85443a8dfa75006b2590007..0000000000000000000000000000000000000000 --- a/funcom_test/26493940.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[type=").append(_theType). - append(" classname=").append(_theClassname). - append(" classpath=").append(_theClasspath). - append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of this script </s> - diff --git a/funcom_test/26493978.txt b/funcom_test/26493978.txt deleted file mode 100644 index d32e3da9f0e644e93c192c015dcc3c70e36c5e77..0000000000000000000000000000000000000000 --- a/funcom_test/26493978.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Profile findProfile(String aProfileName) { - // Validate the argument - if (aProfileName == null) { - throw new IllegalArgumentException("The profile name passed in is null"); - } - - // Search for the profile - Profile aProfile = getProfile(aProfileName); - if (aProfile == null && _theDefault != null) { - aProfile = getProfile(_theDefault); - } - - return aProfile; - } - COM: <s> searches for the profile object of this launcher identified by the profile name </s> - diff --git a/funcom_test/26494026.txt b/funcom_test/26494026.txt deleted file mode 100644 index 4ed4a8148e6d7c2ee999921393a63a8922ebf6ac..0000000000000000000000000000000000000000 --- a/funcom_test/26494026.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addProfile(Profile aProfile) { - if (aProfile == null) { - throw new IllegalArgumentException("The profile passed in is null"); - } else if (aProfile.getName() == null) { - throw new IllegalArgumentException("The name of the profile passed in is null"); - } - - _theProfiles.put(aProfile.getName(), aProfile); - } - COM: <s> adds the profile passed in to this default launch handler </s> - diff --git a/funcom_test/26494036.txt b/funcom_test/26494036.txt deleted file mode 100644 index 9371309c1d9b0663a1bf62c51f85ac72932231e1..0000000000000000000000000000000000000000 --- a/funcom_test/26494036.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeParam(Param aParam) { - if (aParam == null) { - throw new IllegalArgumentException("The parameter passed in is null"); - } else if (aParam.getName() == null) { - throw new IllegalArgumentException("The name of the parameter passed in is null"); - } - - _theParams.remove(aParam); - _theParamsByName.remove(aParam.getName()); - } - COM: <s> removes the parameter passed in from this parameters </s> - diff --git a/funcom_test/26494042.txt b/funcom_test/26494042.txt deleted file mode 100644 index 22644959140f2404e7b8c28e67ad7e29b29e56de..0000000000000000000000000000000000000000 --- a/funcom_test/26494042.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected List extractVariables(Environment anEnvironment) { - // Validate the arguments - if (anEnvironment == null) { - throw new IllegalArgumentException("The environment passed in is null"); - } - - ArrayList someVariables = new ArrayList(); - ArrayList someIdentifiers = new ArrayList(); - extractVariablesIter(anEnvironment, someVariables, someIdentifiers); - - return someVariables; - } - COM: <s> extract the variables from the environment and all its parent passed in </s> - diff --git a/funcom_test/26494083.txt b/funcom_test/26494083.txt deleted file mode 100644 index e2e446c742368e05c82b221058fa9b37b3f4dd81..0000000000000000000000000000000000000000 --- a/funcom_test/26494083.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addScript(Script aScript) { - if (aScript == null) { - throw new IllegalArgumentException("The script passed in is null"); - } - - if (aScript.getProfile() == null) { - _theScriptsByProfile.put(_theNullProfile, aScript); - } else { - _theScriptsByProfile.put(aScript.getProfile(), aScript); - } - } - COM: <s> adds the script passed in to this magnet </s> - diff --git a/funcom_test/26494086.txt b/funcom_test/26494086.txt deleted file mode 100644 index 119f9a3a15439859ab5fbff800761a28659cfcc2..0000000000000000000000000000000000000000 --- a/funcom_test/26494086.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeScript(Script aScript) { - if (aScript == null) { - throw new IllegalArgumentException("The script passed in is null"); - } - - if (aScript.getProfile() == null) { - _theScriptsByProfile.remove(_theNullProfile); - } else { - _theScriptsByProfile.remove(aScript.getProfile()); - } - } - COM: <s> removes the script passed in from this magnet </s> - diff --git a/funcom_test/26494096.txt b/funcom_test/26494096.txt deleted file mode 100644 index 227de8dea39aa7da21251d9df876efda33cc1ae3..0000000000000000000000000000000000000000 --- a/funcom_test/26494096.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeParameters(Parameters aParameters) { - if (aParameters == null) { - throw new IllegalArgumentException("The parameters passed in is null"); - } - - if (aParameters.getProfile() == null) { - _theParametersByProfile.remove(_theNullProfile); - } else { - _theParametersByProfile.remove(aParameters.getProfile()); - } - } - COM: <s> removes the parameters passed in from this magnet </s> - diff --git a/funcom_test/26494150.txt b/funcom_test/26494150.txt deleted file mode 100644 index 94f349a77969ea06bc5ce0183e044b3f3c327eee..0000000000000000000000000000000000000000 --- a/funcom_test/26494150.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[mainClass=").append(_theMainClass). - append(" arguments=").append(_theArguments). - append(" isDaemon=").append(_isDaemon). - append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of this java launcher </s> - diff --git a/funcom_test/26494375.txt b/funcom_test/26494375.txt deleted file mode 100644 index 52e280322c7bb884fe7ef4be2ee904a794c1d5fe..0000000000000000000000000000000000000000 --- a/funcom_test/26494375.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Envelope deserialize(InputStream anInput) throws ProcessingException { - Object anObject = null; - - try { - anObject = _theConfixProcessor.process(anInput); - - return (Envelope) anObject; - } catch (ClassCastException cce) { - throw new ProcessingException("The object created from the input stream is not an Envelope: " + - anObject, cce); - } - } - COM: <s> processes the input stream passed in using the confix processor and </s> - diff --git a/funcom_test/26494418.txt b/funcom_test/26494418.txt deleted file mode 100644 index 2757fe5a52c9de3d9020276c1e2e2613e0f09065..0000000000000000000000000000000000000000 --- a/funcom_test/26494418.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[faultcode=").append(_theCode).append(" faultactor=") - .append(_theActor).append(" faultstring=").append(_theString) - .append(" detail=").append(_theDetail).append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of this fault </s> - diff --git a/funcom_test/26494434.txt b/funcom_test/26494434.txt deleted file mode 100644 index 516131af5770e6f537c7a8f4f5ca5247d2b3ea1a..0000000000000000000000000000000000000000 --- a/funcom_test/26494434.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void processStatus(Status stat) { - StatusRequestListener listener; - - for (int i = 0; i < _statusListeners.size(); i++) { - SoftReference ref = (SoftReference) _statusListeners.get(i); - listener = (StatusRequestListener) ref.get(); - - if (listener == null) { - _statusListeners.remove(i); - i--; - } else { - listener.onStatus(stat); - } - } - } - COM: <s> internally goes through this clients code status request listener code </s> - diff --git a/funcom_test/26494487.txt b/funcom_test/26494487.txt deleted file mode 100644 index d061adeefc12d795a2d48dc6ee9af4a7b616ea95..0000000000000000000000000000000000000000 --- a/funcom_test/26494487.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int asInt() throws InputException { - if (_value == null) { - throw new InputException("integer expected for option '" + getName() + - "'"); - } - - try { - return Integer.parseInt(_value); - } catch (NumberFormatException e) { - throw new InputException("integer expected for option '" + getName() + - "'"); - } - } - COM: <s> returns this options value as an integer </s> - diff --git a/funcom_test/26494490.txt b/funcom_test/26494490.txt deleted file mode 100644 index ca49b2b4ec00ddf2377d1aebb5d6077c6bc4d99c..0000000000000000000000000000000000000000 --- a/funcom_test/26494490.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean asBoolean() throws InputException { - if (_value == null) { - throw new InputException( - "true/false, yes/no or on/off expected for option '" + getName() + - "'"); - } - - return _value.equals("true") || _value.equals("yes") || - _value.equals("on"); - } - COM: <s> returns this options value as a boolean </s> - diff --git a/funcom_test/26494576.txt b/funcom_test/26494576.txt deleted file mode 100644 index 986387d2cce25838273ec615b2b1c575255081dd..0000000000000000000000000000000000000000 --- a/funcom_test/26494576.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String input(String msg) throws IOException { - prompt(); - - if(msg != null && msg.length() > 0){ - print(msg + " "); - } - String input = readLine(); - if(input != null){ - _session.buffer(input); - } - if(_emptyLineAfterInput){ - println(); - } - return input; - } - COM: <s> waits for user input takes a message </s> - diff --git a/funcom_test/26494710.txt b/funcom_test/26494710.txt deleted file mode 100644 index 7c2930052bd662511e4ec5ab44069257a92140b8..0000000000000000000000000000000000000000 --- a/funcom_test/26494710.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public CmdLine filterArgs() { - List args = new ArrayList(); - - for (int i = 0; i < _elems.size(); i++) { - if (_elems.get(i) instanceof Arg) { - args.add((Arg) _elems.get(i)); - } - } - - return new CmdLine(args, _options); - } - COM: <s> this method filters out all code option code instances from its </s> - diff --git a/funcom_test/26494808.txt b/funcom_test/26494808.txt deleted file mode 100644 index 6a738938a351a2edbc8cd49699319b054ad09008..0000000000000000000000000000000000000000 --- a/funcom_test/26494808.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Advice resolve(Map defs) throws ConfigurationException { - if(_id == null) { - throw new ConfigurationException( - "'id' attribute not set on advice reference"); - } - - AdviceDef def = (AdviceDef) defs.get(_id); - - if(def == null) { - throw new ConfigurationException("No advice definitions matches ID: " - + _id); - } - - return def.getInstance(); - } - COM: <s> returns an code advice code corresponding to this instances </s> - diff --git a/funcom_test/26494825.txt b/funcom_test/26494825.txt deleted file mode 100644 index 6fd50f4fff11c1a351b6a173a608b0723b8004db..0000000000000000000000000000000000000000 --- a/funcom_test/26494825.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public List resolve(Map defs) throws ConfigurationException { - if(_id == null) { - throw new ConfigurationException( - "'id' attribute not set on advice group reference"); - } - - Group group = (Group) defs.get(_id); - - if(group == null) { - throw new ConfigurationException("No advice group matches ID: " + _id); - } - - return group.getAdvices(); - } - COM: <s> returns a list of advices contained in the group corresponding to this </s> - diff --git a/funcom_test/26494849.txt b/funcom_test/26494849.txt deleted file mode 100644 index 1e4832b8c12ddd5459f837ec90326c7887318f54..0000000000000000000000000000000000000000 --- a/funcom_test/26494849.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setImplements(String interfaces) { - String[] interfacePatterns = Utils.split(interfaces, ',', true); - _interfaces = new Pattern[interfacePatterns.length]; - - for(int i = 0; i < interfacePatterns.length; i++) { - _interfaces[i] = PathPattern.parse(interfacePatterns[i], '.', false); - } - } - COM: <s> allows to pass a comma delimited list of interfaces names or rather name </s> - diff --git a/funcom_test/26494898.txt b/funcom_test/26494898.txt deleted file mode 100644 index 83732f306eff31279481db60b14819ccbf9c1234..0000000000000000000000000000000000000000 --- a/funcom_test/26494898.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String toString() { - CmdElement elem; - StringBuffer buf = new StringBuffer(); - - for (int i = 0; i < _elems.size(); i++) { - elem = (CmdElement) _elems.get(i); - buf.append(elem.toString()); - - if (i < (_elems.size() - 1)) { - buf.append(SPACE); - } - } - - return buf.toString(); - } - COM: <s> returns this instance as a string </s> - diff --git a/funcom_test/26495455.txt b/funcom_test/26495455.txt deleted file mode 100644 index 4d86c389ef3ef95b755dc0aaddb8b122e94fb7ba..0000000000000000000000000000000000000000 --- a/funcom_test/26495455.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Property getProperty(String name) { - for(int i = 0; i < _nodes.size(); i++){ - Node n = ((NodeWrapper)_nodes.get(i)).node(); - Property prop = n.getProperty(name); - if(!prop.isNull()){ - return prop; - } - } - return new PropertyImpl(name, null); - } - COM: <s> this method internally iterates over this instances child nodes starting from the one </s> - diff --git a/funcom_test/26495463.txt b/funcom_test/26495463.txt deleted file mode 100644 index 41c7b0a8fd66b9c6dbda32969bcf8285c08440be..0000000000000000000000000000000000000000 --- a/funcom_test/26495463.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Collection getPropertyKeys() { - Set keys = new TreeSet(); - for(int i = 0; i < _nodes.size(); i++){ - Node n = ((NodeWrapper)_nodes.get(i)).node(); - keys.addAll(n.getPropertyKeys()); - } - return keys; - } - COM: <s> this method returns the property names of its child nodes </s> - diff --git a/funcom_test/26495483.txt b/funcom_test/26495483.txt deleted file mode 100644 index f1060a18b74a8fd3e0d480a592813aecb641f469..0000000000000000000000000000000000000000 --- a/funcom_test/26495483.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setMaxThroughputPerSecond(double aMaxThroughputPerSecond) { - _maxThroughputPerSecond = aMaxThroughputPerSecond; - if (aMaxThroughputPerSecond > 0) { - _minimumTaskDelayMillis = Math.round(1000.0 / aMaxThroughputPerSecond); - } else { - _minimumTaskDelayMillis = 0; - } - } - COM: <s> changes the maximum number of task executed per second </s> - diff --git a/funcom_test/26495530.txt b/funcom_test/26495530.txt deleted file mode 100644 index a5a53d75b8f4b66a8d897fa36704ac4f25e32e4f..0000000000000000000000000000000000000000 --- a/funcom_test/26495530.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Future submitThrottled(Callable aTask) { - if (!isRunning()) { - throw new IllegalArgumentException("Cannot submit a task - the executor service is not running"); - } - - long delayMillis = calculateThrottlingDelayMillis(); - if (delayMillis > 0) { - return _scheduledExecutor.schedule(aTask, delayMillis, TimeUnit.MILLISECONDS); - } else { - return _scheduledExecutor.submit(aTask); - } - } - COM: <s> submits a callable task for execution and returns a future representing that task </s> - diff --git a/funcom_test/26495559.txt b/funcom_test/26495559.txt deleted file mode 100644 index 493ef55f7593cdeae894f87825a03ba327ae872b..0000000000000000000000000000000000000000 --- a/funcom_test/26495559.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public long calculateExpirationInstant() { - if (_object != null) { - if (_object.getTimeToLiveMillis() == PerishableObject.INFINITE_TIME_TO_LIVE) { - _expirationInstant = Long.MAX_VALUE; - } else { - _expirationInstant = _creationInstant + _object.getTimeToLiveMillis(); - } - } - - return _expirationInstant; - } - COM: <s> calculates and return the expiration instant of this monitored object </s> - diff --git a/funcom_test/26495745.txt b/funcom_test/26495745.txt deleted file mode 100644 index 3c3972ad6b950545e3c9e4dbaf6f163a5fdc1444..0000000000000000000000000000000000000000 --- a/funcom_test/26495745.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Category getChildCategory(Configuration aConfig, Category aParent, String aName) { - Category child = null; - if (aParent == null && aConfig.containsCategory(aName)) { - child = aConfig.getCategory(aName); - } else if (aParent != null && aParent instanceof NestedCategory) { - child = ((NestedCategory) aParent).getCategory(aName); - } - - return child; - } - COM: <s> utility method to retrieve the child category </s> - diff --git a/funcom_test/26496672.txt b/funcom_test/26496672.txt deleted file mode 100644 index 6f5a1515fbff22ab50106a5a189fa6b8c03ef070..0000000000000000000000000000000000000000 --- a/funcom_test/26496672.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Form currentForm(int formId) throws IllegalFormException{ - Call call = _calls.peek(); - if(call == null){ - return null; - } - Form form = call.getForms().peek(); - if(form == null) return null; - if(form.getId() != formId){ - throw new IllegalFormException(""+formId); - } - return form; - } - COM: <s> this method returns the current form check that its </s> - diff --git a/funcom_test/26496756.txt b/funcom_test/26496756.txt deleted file mode 100644 index b15f3e84e5c1718db61ce86f6436364a84e856a9..0000000000000000000000000000000000000000 --- a/funcom_test/26496756.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testParse() { - String scopes = "scope"; - super.assertEquals("scope", ScopeParser.parse(scopes)[0]); - scopes = "scope1, scope2"; - super.assertEquals("scope1", ScopeParser.parse(scopes)[0]); - super.assertEquals("scope2", ScopeParser.parse(scopes)[1]); - } - COM: <s> test of parse method of class org </s> - diff --git a/funcom_test/26496799.txt b/funcom_test/26496799.txt deleted file mode 100644 index 50f67960c76bbb27b336e6cbe77475f6d1f3dd3b..0000000000000000000000000000000000000000 --- a/funcom_test/26496799.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testGetParent() { - super.assertTrue(_root.getParent() == null); - super.assertTrue(_child.getParent().getStmContext() == _root); - super.assertTrue(_anonymous.getParent().getStmContext() == _child); - } - COM: <s> test of get parent method of class org </s> - diff --git a/funcom_test/26496803.txt b/funcom_test/26496803.txt deleted file mode 100644 index 2ea08077537cf4cf7a797bc34d734222df1d1db1..0000000000000000000000000000000000000000 --- a/funcom_test/26496803.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testGetStateNames() { - Set expected = new HashSet(); - expected.add("state1"); - expected.add("state2"); - String[] names = _child.getStateNames(); - for(int i = 0; i < names.length; i++){ - super.assertTrue(expected.contains(names[i])); - } - } - COM: <s> test of get state names method of class org </s> - diff --git a/funcom_test/26496883.txt b/funcom_test/26496883.txt deleted file mode 100644 index 13ccc542bba0f277d3badc40911584bb1a257613..0000000000000000000000000000000000000000 --- a/funcom_test/26496883.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testPop() { - CallStack st = new CallStack(new IdFactory()); - super.assertTrue(st.peek() == null); - Call c = st.create(); - super.assertEquals(c, st.peek()); - st.pop(); - super.assertTrue(st.peek() == null); - } - COM: <s> test of pop method of class org </s> - diff --git a/funcom_test/26496891.txt b/funcom_test/26496891.txt deleted file mode 100644 index e0025b246ebaf6b0ea2bb46ce4d1eab8cedec7ea..0000000000000000000000000000000000000000 --- a/funcom_test/26496891.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testCancel() { - FormStack forms = new FormStack(new IdFactory()); - Form f0 = forms.create(); - Form f1 = forms.create(); - Form f2 = forms.create(); - super.assertEquals(f2, forms.peek()); - forms.cancel(f1.getId()); - super.assertEquals(f0, forms.peek()); - } - COM: <s> test of cancel method of class org </s> - diff --git a/funcom_test/26497245.txt b/funcom_test/26497245.txt deleted file mode 100644 index 77f0f035f91777975d896aaf16373a4a24e6b9cd..0000000000000000000000000000000000000000 --- a/funcom_test/26497245.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void assertObjectType(Class eType, String objectName, Object actual) throws ConfigurationException { - if (!eType.isInstance(actual)) { - throw new ConfigurationException("Invalid type for the object named '" + objectName + "' on the class" + - getClass().getName() + " : expected " + eType + " but was " + actual.getClass().getName()); - } - } - COM: <s> utility method to asserts the type of a given object </s> - diff --git a/funcom_test/26497362.txt b/funcom_test/26497362.txt deleted file mode 100644 index a00f801ed10651c301313870b6dd5c9ceb8a10bf..0000000000000000000000000000000000000000 --- a/funcom_test/26497362.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void assertState(int anExpectedState, String anErrorDescription) throws IllegalStateException { - if (_state != anExpectedState) { - String message = anErrorDescription + " - expected state is " + STATES[anExpectedState] + " but was " + STATES[_state]; - Log.error(MODULE_NAME, message); - throw new IllegalStateException(message); - } - } - COM: <s> utility method to assert the current state of this soto me container </s> - diff --git a/funcom_test/26497605.txt b/funcom_test/26497605.txt deleted file mode 100644 index eeade9c3ca510a843935fd8b69aae65b637e3624..0000000000000000000000000000000000000000 --- a/funcom_test/26497605.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void sendTextMessage(String msg) throws Exception, JMSException{ - QueueSenderRef ref = null; - try{ - ref = (QueueSenderRef)super.borrowObject(); - ref.getSender().send(ref.getSession().createTextMessage(msg)); - }finally{ - if(ref != null){ - super.returnObject(ref); - } - } - } - COM: <s> sends the given message to the queue held by this instance </s> - diff --git a/funcom_test/26497616.txt b/funcom_test/26497616.txt deleted file mode 100644 index 3f78cd26b76ba272727f2a4e9b13750fc32f074d..0000000000000000000000000000000000000000 --- a/funcom_test/26497616.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void sendTextMessage(String msg) throws Exception, JMSException{ - TopicPublisherRef ref = null; - try{ - ref = (TopicPublisherRef)super.borrowObject(); - ref.getPublisher().send(ref.getSession().createTextMessage(msg)); - }finally{ - if(ref != null){ - super.returnObject(ref); - } - } - } - COM: <s> sends the given message to the topic held by this instance </s> - diff --git a/funcom_test/26497725.txt b/funcom_test/26497725.txt deleted file mode 100644 index 3834fdb99c47a9d69fd3c1c77ffba47c692676d1..0000000000000000000000000000000000000000 --- a/funcom_test/26497725.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Attribute setName(String name){ - _name = name; - int i; - if((i = name.indexOf(':')) >= 0){ - _localName = name.substring(0, i); - _nameSpace = name.substring(i+1); - } - else{ - _localName = name; - } - return this; - } - COM: <s> sets this attributes name that should be of the </s> - diff --git a/funcom_test/26497799.txt b/funcom_test/26497799.txt deleted file mode 100644 index ae4ed286efae85e0dea2d30feb157557bd563556..0000000000000000000000000000000000000000 --- a/funcom_test/26497799.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected Object doInclude(java.io.InputStream is, Object ctx) throws java.io.IOException ,Exception { - Dom4jProcessor proc = new Dom4jProcessor(_env.getObjectFactory()); - return proc.process(Utils.replaceVars(ctx == null || !(ctx instanceof TemplateContextIF) ? - _ctx : - (TemplateContextIF)ctx, is, getUri())); - } - COM: <s> public static include include env parent env </s> - diff --git a/funcom_test/26497958.txt b/funcom_test/26497958.txt deleted file mode 100644 index 8fd01202c2c694202d07416aaba857d2e57806d6..0000000000000000000000000000000000000000 --- a/funcom_test/26497958.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addDef(Def def) throws ConfigurationException { - if(_defs.get(def.getName()) != null) { - throw new ConfigurationException("Definition already declared: " - + def.getName() + ", " + def.getClazz()); - } - - _defs.put(def.getName(), def); - } - COM: <s> adds the given definition to this instance </s> - diff --git a/funcom_test/26498066.txt b/funcom_test/26498066.txt deleted file mode 100644 index 628ecb7f75d04b0310a99d55c1c8ba20fab80232..0000000000000000000000000000000000000000 --- a/funcom_test/26498066.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testOnCreate() throws Exception{ - ListType type = new ListType(); - for(int i = 0; i < 5; i++){ - type.handleObject("", ""+i); - } - List list = (List)type.onCreate(); - for(int i = 0; i < 5; i++){ - assertEquals(""+i, list.get(i)); - } - } - COM: <s> test of on create method of class org </s> - diff --git a/funcom_test/26498103.txt b/funcom_test/26498103.txt deleted file mode 100644 index 8299a88a7afbd438317b39332ab8437fff0e22d0..0000000000000000000000000000000000000000 --- a/funcom_test/26498103.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object lookup(String id) throws NotFoundException { - //checkStarted(); - ServiceMetaData service = (ServiceMetaData) _services.get(id); - - if(service == null) { - throw new NotFoundException(id); - } - - LifeCycleManager lcm = service.getLifeCycleManager(); - return lcm.lookupService(id, service.getService()); - } - COM: <s> looks up for the object identified by the given id and returns it </s> - diff --git a/funcom_test/26498240.txt b/funcom_test/26498240.txt deleted file mode 100644 index c9ad94e717ae978d1acf078783672ee9bd0dd8fb..0000000000000000000000000000000000000000 --- a/funcom_test/26498240.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testAccepts() { - InstanceOfSelector ios = new InstanceOfSelector(TestService.class); - ServiceMetaData smd = new ServiceMetaData(new SotoContainer(), null, new TestServiceImpl()); - super.assertTrue(ios.accepts(smd)); - smd = new ServiceMetaData(new SotoContainer(), null, new TestServiceImplEx()); - super.assertTrue(ios.accepts(smd)); - } - COM: <s> test of accepts method of class org </s> - diff --git a/funcom_test/26498257.txt b/funcom_test/26498257.txt deleted file mode 100644 index 90252a2e55f48456a68fa6413ad731731ff10839..0000000000000000000000000000000000000000 --- a/funcom_test/26498257.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public SotoContainer load(File f, Map map) throws Exception { - String path = f.getAbsolutePath().trim(); - - if(path.charAt(0) == '/') { - return include("file:" + f.getAbsolutePath(), map); - } else { - return include("file:/" + f.getAbsolutePath(), map); - } - } - COM: <s> loads the soto xml descriptor whose file is given </s> - diff --git a/funcom_test/26498386.txt b/funcom_test/26498386.txt deleted file mode 100644 index b3233792f2f2b04d94896194ed32c3d998eb740c..0000000000000000000000000000000000000000 --- a/funcom_test/26498386.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void registerLifeCycleManager(String name, LifeCycleManager manager){ - if(_lifeCycleManagers.get(name) != null){ - throw new IllegalArgumentException("LifeCycleManager already registered for: " + name); - } - _lifeCycleManagers.put(name, manager); - manager.init(toEnv()); - } - COM: <s> registers the given life cycle manager with this instance </s> - diff --git a/funcom_test/26498445.txt b/funcom_test/26498445.txt deleted file mode 100644 index b159d52d7ea954e535d82a37939e7c8cf3a893f6..0000000000000000000000000000000000000000 --- a/funcom_test/26498445.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public InputStream resolveResource(String resName) { - InputStream resource = null; - if(_resourceBase != null) - resource = _resourceBase.getResourceAsStream(resName); - else if(_parent != null) - resource = _parent.resolveResource(resName); - if(resource == null) - return Thread.currentThread().getContextClassLoader() - .getResourceAsStream(resName); - - return resource; - } - COM: <s> this method uses the code class code that has been defined as the </s> - diff --git a/funcom_test/26498907.txt b/funcom_test/26498907.txt deleted file mode 100644 index e85439c903a9506fcbd7d24c7757d3e757c71f4f..0000000000000000000000000000000000000000 --- a/funcom_test/26498907.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void set(Object o){ - if(o == null){ - this.value = o; - } - else if(type.isAssignable(o)){ - this.value = o; - } - else{ - throw new IllegalArgumentException("Invalid value: " + o + " for type: " + type.getName()); - } - } - COM: <s> sets this instances value if the given object corresponds to this </s> - diff --git a/funcom_test/26499068.txt b/funcom_test/26499068.txt deleted file mode 100644 index b98834828f3a1cfdb0619769b807734ec5ac8db5..0000000000000000000000000000000000000000 --- a/funcom_test/26499068.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Registry lookup(String jndiName, Properties props) throws Exception{ - props.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName()); - InitialContext ctx = new InitialContext(props); - try{ - return new RemoteRegistryProxy((Registry)ctx.lookup(jndiName)); - }finally{ - ctx.close(); - } - } - COM: <s> this method takes ubik properties to lookup a remote registry </s> - diff --git a/funcom_test/26499084.txt b/funcom_test/26499084.txt deleted file mode 100644 index 0573695cb1bcaf5109c843fa7117beeb9e431619..0000000000000000000000000000000000000000 --- a/funcom_test/26499084.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void bind(int port) throws Exception{ - SessionInterceptor interceptor = new SessionInterceptor(_reg); - System.out.println("Binding server to port: " + port); - Hub.serverRuntime.addInterceptor(ServerPreInvokeEvent.class, interceptor); - Hub.serverRuntime.addInterceptor(ServerPostInvokeEvent.class, interceptor); - _stub = Hub.exportObject(_reg, port); - publish(System.getProperties()); - } - COM: <s> this method bind the code registry code held by this </s> - diff --git a/funcom_test/26499675.txt b/funcom_test/26499675.txt deleted file mode 100644 index f3efc41b91d86079e2007e710d6ec280122c8e89..0000000000000000000000000000000000000000 --- a/funcom_test/26499675.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Signature newSignature(String algo) throws NoSuchAlgorithmException{ - if(_provider != null){ - return Signature.getInstance(algo, _provider); - } - else if(_defaultProvider != null){ - return Signature.getInstance(algo, _provider); - } - return Signature.getInstance(algo); - } - COM: <s> creates a signature object and returns it </s> - diff --git a/funcom_test/26499694.txt b/funcom_test/26499694.txt deleted file mode 100644 index 750eb67b23067824e136e895b7ea60f965c4b158..0000000000000000000000000000000000000000 --- a/funcom_test/26499694.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public KeyPairGenerator newKeyPairGenerator(String algo) throws NoSuchAlgorithmException{ - if(_provider != null){ - return KeyPairGenerator.getInstance(algo, _provider); - } - else if(_defaultProvider != null){ - return KeyPairGenerator.getInstance(algo, _provider); - } - return KeyPairGenerator.getInstance(algo); - } - COM: <s> creates a key pair generator and returns it </s> - diff --git a/funcom_test/26499821.txt b/funcom_test/26499821.txt deleted file mode 100644 index 8c9928c50bef094416cdd2d5f4036762b4b4b95a..0000000000000000000000000000000000000000 --- a/funcom_test/26499821.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Namespace getNamespaceFor(Class aClass) { - Namespace aNamespace = null; - - for (Iterator it = _theDelegates.iterator(); - it.hasNext() && (aNamespace == null);) { - NamespaceFactoryIF aFactory = (NamespaceFactoryIF) it.next(); - aNamespace = aFactory.getNamespaceFor(aClass); - } - - return aNamespace; - } - COM: <s> returns the namespace that should be associated with the xml representation </s> - diff --git a/funcom_test/26499828.txt b/funcom_test/26499828.txt deleted file mode 100644 index 75de9331a6c91825fba3c701e062707cf823af69..0000000000000000000000000000000000000000 --- a/funcom_test/26499828.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getNamespacePrefix(String aNamespaceURI) { - LinkedList someNamespaces = (LinkedList) _theNamespaceByURI.get(aNamespaceURI); - - if (someNamespaces == null) { - return null; - } else { - NamespaceReference aNamespaceRef = (NamespaceReference) someNamespaces.getFirst(); - - return aNamespaceRef.getNamespace().getPrefix(); - } - } - COM: <s> returns the namespace prefix of the uri passed in </s> - diff --git a/funcom_test/26499873.txt b/funcom_test/26499873.txt deleted file mode 100644 index 78f7feb9de7dd166fae73f75f080e724ac5faf98..0000000000000000000000000000000000000000 --- a/funcom_test/26499873.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[namespacePrefix=").append(_theNamespacePrefix) - .append(" name=").append(_theName).append(" value=").append(_theValue) - .append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of this attribute </s> - diff --git a/funcom_test/26499915.txt b/funcom_test/26499915.txt deleted file mode 100644 index 4aae0a92439ab1d6033c809a097e85fcfe39f6a7..0000000000000000000000000000000000000000 --- a/funcom_test/26499915.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public XmlBuffer addContent(String aContent) { - if (_theStates.isEmpty()) { - throw new IllegalStateException("Could not add content [" + aContent + - "] there is no element started"); - } - - BufferState aState = (BufferState) _theStates.getFirst(); - validateStartingXmlGeneration(aState); - _theScribe.xmlEncode(aContent, aState.getContent()); - - return this; - } - COM: <s> adds the string passed in as content of the current xml element </s> - diff --git a/funcom_test/26499927.txt b/funcom_test/26499927.txt deleted file mode 100644 index db6abf336bfa9245bb9b719fd17b29c537862d49..0000000000000000000000000000000000000000 --- a/funcom_test/26499927.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ConfixProcessorIF createProcessor(ObjectFactoryIF aFactory) { - try { - Constructor aConstructor = _theProcessorClass.getConstructor(new Class[] { - ObjectFactoryIF.class - }); - - return (ConfixProcessorIF) aConstructor.newInstance(new Object[] { aFactory }); - } catch (Exception e) { - throw new CompositeRuntimeException("Unable to create a Confix processor", - e); - } - } - COM: <s> factory method that creates a new code confix processor if code instance </s> - diff --git a/funcom_test/26499956.txt b/funcom_test/26499956.txt deleted file mode 100644 index 7628834b57b8fb14cbc4be455906b59a5435603c..0000000000000000000000000000000000000000 --- a/funcom_test/26499956.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getDocumentPosition() { - StringBuffer aBuffer = new StringBuffer(); - aBuffer.append("Document position: line number=") - .append(_theLocator.getLineNumber()).append(" column number=") - .append(_theLocator.getColumnNumber()); - - return aBuffer.toString(); - } - COM: <s> returns a textual description of the current document position with the following </s> - diff --git a/funcom_test/26499966.txt b/funcom_test/26499966.txt deleted file mode 100644 index 173d6de04c368b4d1e24944e56682ddf0d2af261..0000000000000000000000000000000000000000 --- a/funcom_test/26499966.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void endPrefixMapping(String aPrefix) { - // Get the list of URI for the prefix - LinkedList aNamespaceList = (LinkedList) _theNamespaceMapping.get(aPrefix); - - if (aNamespaceList != null) { - aNamespaceList.removeFirst(); - } else { - throw new IllegalStateException( - "The prefix mapping is not found in the map."); - } - } - COM: <s> removes the current mapping of the prefix passed in </s> - diff --git a/funcom_test/26499969.txt b/funcom_test/26499969.txt deleted file mode 100644 index 494697553ab45a22bbfc7404dd33434e7920d1d8..0000000000000000000000000000000000000000 --- a/funcom_test/26499969.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getNamespaceURIFor(String aPrefix) { - String aNamespace = null; - - // Get the namespace list for the prefix - LinkedList aNamespaceList = (LinkedList) _theNamespaceMapping.get(aPrefix); - - // Get the current namespace URI, if it exists - if ((aNamespaceList != null) && !aNamespaceList.isEmpty()) { - aNamespace = (String) aNamespaceList.getFirst(); - } - - return aNamespace; - } - COM: <s> returns the current namespace uri for the passed in prefix </s> - diff --git a/funcom_test/26499986.txt b/funcom_test/26499986.txt deleted file mode 100644 index 0069b2cac29e15bc608b1959cb831f6a800a924e..0000000000000000000000000000000000000000 --- a/funcom_test/26499986.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - StringBuffer aBuffer = new StringBuffer(super.toString()); - aBuffer.append("[value='").append(_theValue).append("'") - .append(" languageCode='").append(_theLanguageCode).append("'") - .append("]"); - - return aBuffer.toString(); - } - COM: <s> returns a string representation of this dublin core object </s> - diff --git a/funcom_test/26500028.txt b/funcom_test/26500028.txt deleted file mode 100644 index f7ec837bb105b8122c22b2f852261fd4a175567f..0000000000000000000000000000000000000000 --- a/funcom_test/26500028.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String toString() { - if (_useXmlDeclaration) { - StringBuffer aBuffer = new StringBuffer(); - _theScribe.composeXmlDeclaration(_theCharacterEncoding, aBuffer); - aBuffer.append(_theBuffer.toString()); - - return aBuffer.toString(); - } else { - return _theBuffer.toString(); - } - } - COM: <s> returns the string of this xml buffer </s> - diff --git a/funcom_test/26500578.txt b/funcom_test/26500578.txt deleted file mode 100644 index 2e4b846f0f5eb21349a7d2d37335818299d2c5bd..0000000000000000000000000000000000000000 --- a/funcom_test/26500578.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addViewManager(ViewManager mgr) throws WebFlowException { - if (mgr.getType() == null) { - throw new IllegalArgumentException("View manager has no type defined"); - } - - if (_viewManagers.get(mgr.getType()) != null) { - throw new IllegalArgumentException("Duplicate view manager type"); - } - - _viewManagers.put(mgr.getType(), mgr); - } - COM: <s> adds the passed in view manager to this engine internally mapping </s> - diff --git a/funcom_test/26501094.txt b/funcom_test/26501094.txt deleted file mode 100644 index 84bff0e1e0cba2a4b70e9aa742c52cdeb72b1285..0000000000000000000000000000000000000000 --- a/funcom_test/26501094.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void unbind(Name n) throws ProcessingException{ - n = (Name)n.clone(); - if(n.count() == 0){ - return; - } - NamePart np = n.chopLast(); - try{ - lookupNode(n, false).removeValue(np); - }catch(NotFoundException e){ - // noop - } - } - COM: <s> unbinds the value under the given name </s> - diff --git a/funcom_test/26501411.txt b/funcom_test/26501411.txt deleted file mode 100644 index 9adae646d055c49c07bb711bfd1db53bb8d426bb..0000000000000000000000000000000000000000 --- a/funcom_test/26501411.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void doOutput(int lvl, Object message, Throwable t) { - System.out.print("["); - System.out.print(_taskName); - System.out.print(" - "); - System.out.print(LEVEL[lvl]); - System.out.print("]"); - System.out.println(message); - - if(t != null) { - t.printStackTrace(); - } - } - COM: <s> template method that can be overriden to log to another place than </s> - diff --git a/funcom_test/26501489.txt b/funcom_test/26501489.txt deleted file mode 100644 index 8a953d5547a581d80307fd61738aa2fa5625ead3..0000000000000000000000000000000000000000 --- a/funcom_test/26501489.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void dispatch(String type, Object data) throws IOException { - if(Log.isDebug()){ - Log.debug(getClass(), "Sending event " + type + " - " + data); - } - _broadcast.dispatch(_consumer.getDomainName().toString(), type, data); - } - COM: <s> dispatches the given data to all nodes in this instances domain </s> - diff --git a/funcom_test/26501571.txt b/funcom_test/26501571.txt deleted file mode 100644 index d42ceb843fe2bac5bcbccc640044def6f209713d..0000000000000000000000000000000000000000 --- a/funcom_test/26501571.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String toString() { - StringBuffer buf = new StringBuffer(_scheme); - - if ((_host != null) && !_host.equals(UNDEFINED_HOST)) { - buf.append(PROTO).append(_host); - - if (_port != UNDEFINED_PORT) { - buf.append(COLON).append(_port); - } - } else { - buf.append(COLON); - } - - buf.append(_query.toString()); - - return buf.toString(); - } - COM: <s> returns this instances string format </s> - diff --git a/funcom_test/26501586.txt b/funcom_test/26501586.txt deleted file mode 100644 index 7952694472495e27ce545cd2434a53e94df7fb92..0000000000000000000000000000000000000000 --- a/funcom_test/26501586.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setReadAheadBufferSize(int aSize) { - if (aSize <= 0) { - throw new IllegalArgumentException("The size is less than zero"); - } else if (_theAcceptorDaemons.size() > 0) { - throw new IllegalStateException( - "Cannot change the read ahead buffer size on a running server socket"); - } - - _theReadAheadBufferSize = aSize; - } - COM: <s> changes the size of the read ahead buffer size </s> - diff --git a/funcom_test/26501629.txt b/funcom_test/26501629.txt deleted file mode 100644 index 63d6f24daf3d951d3f25421de742c241cbcc1876..0000000000000000000000000000000000000000 --- a/funcom_test/26501629.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setAcceptorDaemonThread(int maxThread) { - if (maxThread <= 0) { - throw new IllegalArgumentException("The size is less than zero"); - } else if (_theAcceptorDaemons.size() > 0) { - throw new IllegalStateException( - "Cannot change the number of acceptor daemons on a running server socket"); - } - - _theAcceptorDaemonThread = maxThread; - } - COM: <s> changes the number of daemon threads used to accept incoming connections </s> - diff --git a/funcom_test/26501644.txt b/funcom_test/26501644.txt deleted file mode 100644 index f24465a92b16b2d0e4a0d81b597a5f1203663057..0000000000000000000000000000000000000000 --- a/funcom_test/26501644.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setSelectorDaemonThread(int maxThread) { - if (maxThread <= 0) { - throw new IllegalArgumentException("The size is less than zero"); - } else if (_theSelectorDaemons.size() > 0) { - throw new IllegalStateException( - "Cannot change the number of selector daemons on a running server socket"); - } - - _theSelectorDaemonThread = maxThread; - } - COM: <s> changes the number of daemon threads used to select connectors for incoming connections </s> - diff --git a/funcom_test/26501652.txt b/funcom_test/26501652.txt deleted file mode 100644 index be20da0e6d18b06de51300390b625c073162824b..0000000000000000000000000000000000000000 --- a/funcom_test/26501652.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Socket accept() throws IOException { - if (isClosed()) { - throw new SocketException("Socket is closed"); - } else if (!isBound()) { - throw new SocketException("Socket is not bound yet"); - } else if (_theDefaultConnector == null) { - initializeDefaultConnector(); - } - - return _theDefaultConnector.getQueue().getSocket(); - } - COM: <s> listens for a connection to be made to this socket and accepts it </s> - diff --git a/funcom_test/26501681.txt b/funcom_test/26501681.txt deleted file mode 100644 index 9223b4fead77a462040c6e4baf02350d5e67bff5..0000000000000000000000000000000000000000 --- a/funcom_test/26501681.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void mark(int mark){ - if(mark < _capacity){ - _markPos = 0; - _markOffset = mark; - } - else{ - int pos = mark/_capacity; - int offset = mark%_capacity; - if(pos >= _arrayCount){ - throw new IndexOutOfBoundsException(""+mark); - } - _markPos = pos; - _markOffset = offset; - } - } - COM: <s> internally sets the given position as a mark </s> - diff --git a/funcom_test/26501689.txt b/funcom_test/26501689.txt deleted file mode 100644 index 7db1b7092686419428c77f87222e882f6532b2e6..0000000000000000000000000000000000000000 --- a/funcom_test/26501689.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void clear(boolean freeMemory){ - _arrayPos = 0; - _markOffset = 0; - _markPos = 0; - if(freeMemory){ - _arrays = new ByteArray[_increment]; - } - else{ - for(int i = 0; i < _arrayCount; i++){ - _arrays[i]._pos = 0; - _arrays[i]._limit = 0; - } - } - _arrayCount = 0; - } - COM: <s> clears the data that this instance holds making it suitable for reuse </s> - diff --git a/funcom_test/26501718.txt b/funcom_test/26501718.txt deleted file mode 100644 index 5671b817b8d1b7241e1e6012daf197a2e89295c2..0000000000000000000000000000000000000000 --- a/funcom_test/26501718.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void read(OutputStream out) throws IOException{ - int read; - while(_arrayPos < _arrayCount){ - read = _arrays[_arrayPos].get(out); - if(read == 0){ - break; - } - if(_arrays[_arrayPos]._pos >= _arrays[_arrayPos]._limit){ - _arrayPos++; - } - } - } - COM: <s> reads this instances bytes and transfers them to the given stream </s> - diff --git a/funcom_test/26501728.txt b/funcom_test/26501728.txt deleted file mode 100644 index 32ab5096ac38244c996b1298d0e7b8fa763245f1..0000000000000000000000000000000000000000 --- a/funcom_test/26501728.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void write(byte[] b, int off, int len){ - int put = 0; - while(put < len){ - if(_arrayPos >= _arrayCount){ - increase(); - } - put = _arrays[_arrayPos].put(b, off, len); - if(put < len){ - _arrayPos++; - } - off += put; - len -= put; - put = 0; - } - } - COM: <s> writes the given bytes to this instance </s> - diff --git a/funcom_test/26501732.txt b/funcom_test/26501732.txt deleted file mode 100644 index 34f6cde0722bca40bdd3ce8c538dba977b9811e9..0000000000000000000000000000000000000000 --- a/funcom_test/26501732.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void write(ByteBuffer buf){ - while(buf.hasRemaining()){ - if(_arrayPos >= _arrayCount){ - increase(); - } - int len = buf.remaining(); - int put = _arrays[_arrayPos].put(buf); - if(put < len){ - _arrayPos++; - } - put = 0; - } - } - COM: <s> writes the bytes contained in the given buffer to this instance </s> - diff --git a/funcom_test/26501808.txt b/funcom_test/26501808.txt deleted file mode 100644 index 7aaa6062a646db37ab6fa413fdd9d945b1a11049..0000000000000000000000000000000000000000 --- a/funcom_test/26501808.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean remove(Object o) { - Ref[] refs = (Ref[]) _refs.values().toArray(new Ref[_refs.size()]); - boolean removed = false; - - for (int i = 0; i < refs.length; i++) { - if (refs[i]._obj.equals(o)) { - _refs.remove(refs[i]._oid); - removed = true; - } - } - - return removed; - } - COM: <s> removes the given object from this instance </s> - diff --git a/funcom_test/26501848.txt b/funcom_test/26501848.txt deleted file mode 100644 index efa012886561c3aa16ecaa4fd0afbcc5cf414b0d..0000000000000000000000000000000000000000 --- a/funcom_test/26501848.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void onResponses(List responses) { - Response resp; - ResponseLock lock; - - for (int i = 0; i < responses.size(); i++) { - resp = (Response) responses.get(i); - lock = (ResponseLock) _responses.get(resp.getId()); - - if (lock != null) { - lock.setResponse(resp.get()); - } - } - } - COM: <s> this method is called to notify this queue about incoming </s> - diff --git a/funcom_test/26501926.txt b/funcom_test/26501926.txt deleted file mode 100644 index a22c880e9371c92fc6645db7247e33f40664c8a9..0000000000000000000000000000000000000000 --- a/funcom_test/26501926.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void reference(VmId id, OID oid) { - if (Log.isDebug()) { - Log.debug(ServerGC.class, "referencing from: " + id + " on object: " + - oid); - } - - ClientInfo info = (ClientInfo) getClientInfo(id); - synchronized (info) { - info.reference(oid); - _gcRefPerMin.hit(); - } - } - COM: <s> increments the reference count of the given object identifier </s> - diff --git a/funcom_test/26501929.txt b/funcom_test/26501929.txt deleted file mode 100644 index 25c5c04f4f15b1fe2910d7aebb5d4171dd3385e1..0000000000000000000000000000000000000000 --- a/funcom_test/26501929.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void dereference(VmId id, OID oid) { - if (Log.isDebug()) { - Log.debug(ServerGC.class, - "dereferencing from: " + id + " on object: " + oid); - } - - ClientInfo info = (ClientInfo) getClientInfo(id); - synchronized (info) { - info.dereference(oid); - _gcDerefPerMin.hit(); - } - } - COM: <s> dereferences a given object identifier </s> - diff --git a/funcom_test/26501971.txt b/funcom_test/26501971.txt deleted file mode 100644 index 454b7e2ee1d5aaa6e1768af460cfdd57e797deb4..0000000000000000000000000000000000000000 --- a/funcom_test/26501971.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean contains(DomainName other) { - if (_segments.size() >= other.size()) { - for (int i = 0; i < other.size(); i++) { - if (!other.get(i).equals(get(i))) { - return false; - } - } - - return true; - } else { - return false; - } - } - COM: <s> returns code true code if this instance contains or includes </s> - diff --git a/funcom_test/26501979.txt b/funcom_test/26501979.txt deleted file mode 100644 index 3ec902a521510617d4f7bef73ab9f561aff0cb7b..0000000000000000000000000000000000000000 --- a/funcom_test/26501979.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String toString() { - StringBuffer s = new StringBuffer(_segments.size() * 8); - - for (int i = 0; i < _segments.size(); i++) { - s.append((String) _segments.get(i)); - - if (i < (_segments.size() - 1)) { - s.append(DELIM); - } - } - - return s.toString(); - } - COM: <s> returns a string representation of this instance or more </s> - diff --git a/funcom_test/26502134.txt b/funcom_test/26502134.txt deleted file mode 100644 index 32bdefc410a8ab89d50c3cdaf18999a7d39551e7..0000000000000000000000000000000000000000 --- a/funcom_test/26502134.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Server newServer(Properties props) throws RemoteException { - String servletUrl = props.getProperty(SERVLET_URL_KEY); - - if (servletUrl == null) { - throw new RemoteException("'" + SERVLET_URL_KEY + "' not specified"); - } - - try { - return new ServletServer(_addr = new ServletAddress(servletUrl)); - } catch (UriSyntaxException e) { - throw new RemoteException("Could not parse servlet URL property", e); - } - } - COM: <s> this method returns a code server code impl </s> - diff --git a/funcom_test/26502187.txt b/funcom_test/26502187.txt deleted file mode 100644 index f4e6e151b145d8143142bfafac9a4d344d4e7cba..0000000000000000000000000000000000000000 --- a/funcom_test/26502187.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getTime() { - long aCurrentTime = System.currentTimeMillis(); - Date aCurrentDate = new Date(aCurrentTime); - String aResult = _theFormat.format(aCurrentDate); - - System.out.println((++_theCoutner) + " - Invocation took " + - (System.currentTimeMillis() - aCurrentTime) + " ms @" + _theId); - - return aResult + " @" + _theId; - } - COM: <s> implements the time service if interface </s> - diff --git a/funcom_test/26502311.txt b/funcom_test/26502311.txt deleted file mode 100644 index 03fed1ed8a575897d92a685addbac6fce4aa1dd2..0000000000000000000000000000000000000000 --- a/funcom_test/26502311.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void dispatch(Event event) { - InterceptorInfo info = (InterceptorInfo) _interceptors.get(event.getClass()); - - if (info == null) { - return; - } - - try { - info.method.invoke(info.interceptor, new Object[] { event }); - } catch (Throwable t) { - handleError(t); - } - } - COM: <s> dispatches the given event to the interceptor that has </s> - diff --git a/funcom_test/26502391.txt b/funcom_test/26502391.txt deleted file mode 100644 index 462b8ee2130a1f695a7806b6bd2873ca23bc7def..0000000000000000000000000000000000000000 --- a/funcom_test/26502391.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testGetLocalAddress() throws Exception{ - String addr = Localhost.getLocalAddress().getHostAddress(); - super.assertTrue(!addr.equals("localhost")); - super.assertTrue(!addr.equals("127.0.0.1")); - super.assertTrue(!addr.equals("0.0.0.0")); - } - COM: <s> test of get local address method of class org </s> - diff --git a/funcom_test/26502466.txt b/funcom_test/26502466.txt deleted file mode 100644 index acdb00726e07d8ac1e6a73b33fd465ccfdf83477..0000000000000000000000000000000000000000 --- a/funcom_test/26502466.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testDoRegister() throws Exception{ - JndiNameParser parser = new JndiNameParser(new DefaultNameParser()); - Name name = parser.parse("stub"); - RemoteRefStateless ref = new RemoteRefStateless(name, "test"); - StatelessStubTable.doRegister(ref); - super.assertEquals(1, StatelessStubTable.getSiblings("test").size()); - - } - COM: <s> test of do register method of class org </s> - diff --git a/funcom_test/26503583.txt b/funcom_test/26503583.txt deleted file mode 100644 index e86cacb154ed03621632d3e29fa2e2456febb28b..0000000000000000000000000000000000000000 --- a/funcom_test/26503583.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void releaseAll(){ - for(int i = 0; i < _busyPorts.size(); i++){ - Integer busy = (Integer)_busyPorts.get(i); - if(!_availablePorts.contains(busy)){ - _availablePorts.add(busy); - } - } - _busyPorts.clear(); - } - COM: <s> releases all active ports </s> - diff --git a/funcom_test/26503708.txt b/funcom_test/26503708.txt deleted file mode 100644 index 623ab3e3eee1a8c8edbd29f0b52f3e480a5cbb58..0000000000000000000000000000000000000000 --- a/funcom_test/26503708.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void deploy(DeployOutputStream deployOutput) throws IOException{ - long length = getMetadata().getContentLength(); - InputStream is = _conn.getInputStream(); - long total = 0; - byte[] buf = new byte[BUFSZ]; - int read = 0; - while(total < length && (read = is.read(buf, 0, BUFSZ)) > 0){ - total = total + read; - deployOutput.write(buf, 0, read); - } - deployOutput.close(); - ClientCallback cb = new ClientCallback(); - cb.handleResult(this, deployOutput.getProgressQueue()); - } - COM: <s> streams the deployment data to the passed in stream </s> - diff --git a/funcom_test/26545306.txt b/funcom_test/26545306.txt deleted file mode 100644 index 4be49a97b968002c414f74238ebb048d200314a8..0000000000000000000000000000000000000000 --- a/funcom_test/26545306.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Matrix4x4 mul(Matrix4x4 m) { - float[] v = new float[16]; - int c = 0; - for (int column = 0; column < 4; column++) { - for (int row = 0; row < 4; row++) { - v[c++] = getRow(row).dot(m.getColumn(column)); - } - } - return new Matrix4x4(v); - } - COM: <s> returns the result of this matrix multiplied with m as a new matrix </s> - diff --git a/funcom_test/26546402.txt b/funcom_test/26546402.txt deleted file mode 100644 index 5e6dea65b651c0a4d6f5938e287ffab80e51a023..0000000000000000000000000000000000000000 --- a/funcom_test/26546402.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object visit(SimpleNode node, Object data) { - ListIterator<Node> i = node.getChildIterator(); - while(i.hasNext()) { - Node child = i.next(); - Node newChild = (Node)child.accept(this, data); - if(newChild == null) { - i.remove(); - } - else if(newChild != child) { - i.set(newChild); - } - } - return node; - } - COM: <s> p override this method to visit this node type </s> - diff --git a/funcom_test/26546529.txt b/funcom_test/26546529.txt deleted file mode 100644 index 51a6ab008e1b68231e86a2aef1c47c26299bc555..0000000000000000000000000000000000000000 --- a/funcom_test/26546529.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Node compositeRelativePath(List<Node> children, Object data) { - if(children.size() > 1) { - Node child0 = (Node)children.remove(0).accept(this, data); - Node child1 = children.remove(0); - return createCompositePath(child0, compositeRelativePath(children, data), child1); - } - else { - return (Node)children.remove(0).accept(this, data); - } - } - COM: <s> p recursive method to perform the translation p </s> - diff --git a/funcom_test/26615051.txt b/funcom_test/26615051.txt deleted file mode 100644 index 67b6f6998e474263ff41353cd0491d48731fe029..0000000000000000000000000000000000000000 --- a/funcom_test/26615051.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void mutate(int amount) { - int f, s, temp; - - for (int i = 0; i < amount; i++) { - f = (int) (randNum.nextDouble() * (double) (this.getLength())); - s = (int) (randNum.nextDouble() * (double) (this.getLength())); - temp = this.valList[f]; - this.valList[f] = this.valList[s]; - this.valList[s] = temp; - } - } - COM: <s> mutates a given number of elements in the permutation </s> - diff --git a/funcom_test/26615070.txt b/funcom_test/26615070.txt deleted file mode 100644 index 19ee8d15c0f3775ab4de534cee8830a4d936a914..0000000000000000000000000000000000000000 --- a/funcom_test/26615070.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void iterateAllWorlds(int reps, boolean iterateParallel) { - if (iterateParallel == true) { - for (int i = 0; i < reps; i++) { - iterateAllWorlds(); - } - } else { - for (Iterator i = getWorldIterator(); i.hasNext(); ) { - iterateWorld((World) (i.next()), reps); - } - } - } - COM: <s> tells all worlds in this genetic algorithm to iterate through multiple </s> - diff --git a/funcom_test/26615150.txt b/funcom_test/26615150.txt deleted file mode 100644 index fcaee0dcaed4cd361c2a6942781b3e0e25b91e90..0000000000000000000000000000000000000000 --- a/funcom_test/26615150.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Cell getCell(int index) { - Iterator iter = getCellIterator(); - Object o = null; - - if (index<0 || index>=this.getSize()) - throw new IndexOutOfBoundsException( - "No such element in Population: index "+index+" of "+ - this.getSize()); - - for(int i = 0; i<=index; i++) - o = iter.next(); - - return (Cell) o; - } - COM: <s> returns a code cell code from this code population code with the </s> - diff --git a/funcom_test/26615217.txt b/funcom_test/26615217.txt deleted file mode 100644 index 4c279dcf7ea836d9218edccba9139eea55dd70a8..0000000000000000000000000000000000000000 --- a/funcom_test/26615217.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String constructJavaCode(String classname) { - String code = - "import java.io.*;\n" + - "import net.openai.ai.agent.*;" + - "\n" + - "public class " + classname + " extends MigrateAndHaltAgent {\n" + - " public " + classname + "() {\n" + - " super(\"" + destHost + "\", " + destPort + ");\n" + - " }\n" + - "}\n"; - return code; - } - COM: <s> construct java source code for a new agent class </s> - diff --git a/funcom_test/26615239.txt b/funcom_test/26615239.txt deleted file mode 100644 index 35c81640bb588d47a16d0cfd223f4c1f6630942a..0000000000000000000000000000000000000000 --- a/funcom_test/26615239.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void setNetworkAlgorithms() { - - // set the architecture type for the network - network.setArchitecture(new FeedForwardArchitecture()); - - // set the error type - network.setErrorType(new MeanSquareErrorType()); - - // set the learning flag - network.setLearning(true); - - // set the training data - network.loadTrainingData("./xor.in", "./xor.out"); - - // connect the network - try { - network.connect(); - } catch (Exception e) { - db("Could not connect network."); - e.printStackTrace(); - } - } - COM: <s> this method just sets the overall network parameters </s> - diff --git a/funcom_test/26615242.txt b/funcom_test/26615242.txt deleted file mode 100644 index a343db422dcb4c0fa82abeb3d4ed89ad1316af5c..0000000000000000000000000000000000000000 --- a/funcom_test/26615242.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void xmlTrainingDataTest(){ - db("*****************************************"); - db("Marshalling training set . . ."); - db("TR(original)\n "+network.getDataSet().toString()); - Persistence.store(network.getDataSet(),"tr_data"); - - DataSet trs = (DataSet) Persistence.retrieve("tr_data",DataSet.class); - db("TR(from XML)\n "+trs.toString()); - } - COM: <s> an example of marshalling unmarshalling nn objects </s> - diff --git a/funcom_test/26615335.txt b/funcom_test/26615335.txt deleted file mode 100644 index c24acdfae0f021fb0fcdd68c22b8d1286fb57f49..0000000000000000000000000000000000000000 --- a/funcom_test/26615335.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addToolbarListener(final AIToolbarListener parent) { - listener.add(ActionListener.class, - new ActionListener() { - /** - * Method declaration - * - * - * @param e - * - * @see - */ - public void actionPerformed(ActionEvent e) { - parent.Toolbar_Clicked(e); - } - }); - } - COM: <s> adds a toolbar listener </s> - diff --git a/funcom_test/26615349.txt b/funcom_test/26615349.txt deleted file mode 100644 index ba9254629652f9f26d8b4943d8e71a07def7704b..0000000000000000000000000000000000000000 --- a/funcom_test/26615349.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void FireClickedEvent(String Text) { - Object [] listeners = listener.getListenerList(); - int i; - int max = listeners.length; - ActionEvent event; - - event = new ActionEvent(this,1,Text); - - for (i = 0; i <= max - 2; i = i + 2) { - if (listeners[i] == ActionListener.class) { - ((ActionListener) listeners[i + 1]).actionPerformed(event); - } - } - } - COM: <s> fires a action event to all toolbar and action listeners </s> - diff --git a/funcom_test/26615353.txt b/funcom_test/26615353.txt deleted file mode 100644 index 70c109462083b5a2b57315ec4c3991dda96da15c..0000000000000000000000000000000000000000 --- a/funcom_test/26615353.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void defineButton(String Name,String Tooltip) { - AIToolbarButton Button; - - if (Buttons.containsKey(Name)) { - Button = (AIToolbarButton) Buttons.get(Name); - } else { - Button = new AIToolbarButton(Name,Tooltip); - - add(Button); - } - - Button.setToolTipText(Tooltip); - Buttons.put(Name,Button); - } - COM: <s> defines and adds a button without icon </s> - diff --git a/funcom_test/26615362.txt b/funcom_test/26615362.txt deleted file mode 100644 index 85c27d43e926d31489437cc6ac20233683e47ab6..0000000000000000000000000000000000000000 --- a/funcom_test/26615362.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setDataSet(net.openai.ai.nn.data.DataSet dataSet) { - if (dataSet == null) - return; - - this.dataSet = dataSet; - cinput = dataSet.getInputCategories().size(); - coutput = dataSet.getOutputCategories().size(); - this.fireTableStructureChanged(); - } - COM: <s> setter for property data set </s> - diff --git a/funcom_test/26615382.txt b/funcom_test/26615382.txt deleted file mode 100644 index ae5a77778e546c6fc16c6e086c6d197274f01153..0000000000000000000000000000000000000000 --- a/funcom_test/26615382.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void delete(int row) { - if (row == -1) { - AIDesktop.getStatusBar().info("Can't delete, no line selected!"); - - return; - } - - AIDesktop.getStatusBar().info("Deleting line"); - dataSet.remove(row); - this.fireTableRowsDeleted(row,row); - } - COM: <s> deletes a element from the data set </s> - diff --git a/funcom_test/26615389.txt b/funcom_test/26615389.txt deleted file mode 100644 index 9d6026931c8c957434c908e0fefcd4b5bf7b4f6d..0000000000000000000000000000000000000000 --- a/funcom_test/26615389.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void delete(int [] rows) { - if (rows.length == 0) - return; - - int minindex = rows[0]; - int offset = 0; - int index; - Vector v; - - for (int i = 0; i < rows.length; i++) { - index = rows[i]; - - if (index < minindex) { - minindex = index; - delete(index); - } else { - delete(index - offset); - } - - offset++; - } - } - COM: <s> deletes multiple elements from the data set </s> - diff --git a/funcom_test/26615406.txt b/funcom_test/26615406.txt deleted file mode 100644 index 32681eb397b24f33f8b0b16dfcf176c8b1c1362a..0000000000000000000000000000000000000000 --- a/funcom_test/26615406.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean loadProject(String filename) { - AIDesktop.getStatusBar().info("Loading project",filename); - - boolean ret = false; - - try { - AIDesktop.getProjectController().loadProject(filename); - ret = true; - } catch (Exception e) { - e.printStackTrace(); - } - - if (!ret) - AIDesktop.getStatusBar().info("ERROR LOADING PROJECT!"); - - desktop.refreshTree(); - - AIDesktop.getStatusBar().clear(); - - return ret; - } - COM: <s> load a project </s> - diff --git a/funcom_test/26615407.txt b/funcom_test/26615407.txt deleted file mode 100644 index 4b04b148df0c7c5f97a16ce67189d263f3ef1b8a..0000000000000000000000000000000000000000 --- a/funcom_test/26615407.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void createNew() { - DataSet ts = new DataSet(); - - DataSet current = ttmodel.getDataSet(); - Project p = current.getParentProject(); - current.removeProjectEventListener(this); - ts.setPartName(current.getPartName()); - ts.addProjectEventListener(this); - p.putPart(ts); - - adoptNetworkStructure(); - ts.addElement(); - } - COM: <s> begin a new trainingset adopt to networkstructure and add a first element </s> - diff --git a/funcom_test/26615431.txt b/funcom_test/26615431.txt deleted file mode 100644 index 7cc1a503fce9c9901551ba63b66f8c76c6e97fae..0000000000000000000000000000000000000000 --- a/funcom_test/26615431.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void appendMenu(String parentid,Vector menuitemlist) { - JMenu menu = (JMenu) menus.get(parentid); - - if (menu == null) { - log.warn("Tried to append entries to menu [" + parentid + "] but menu not found"); - - return; - } - - appendMenu(parentid,menu.getComponentCount() - 1,menuitemlist); - } - COM: <s> add items to a existing menu </s> - diff --git a/funcom_test/26615464.txt b/funcom_test/26615464.txt deleted file mode 100644 index cb499d3057fd1d6f247704f80e44930013bc20c1..0000000000000000000000000000000000000000 --- a/funcom_test/26615464.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addMenu(String menuid,JMenu menu) { - log.debug("Adding menu [" + menuid + "]"); - menus.put(menuid,menu); - - if (getComponentCount() > 2 && menuid != MENU_HELP) - this.add(menu,this.getComponentCount() - 2); - else - add(menu); - } - COM: <s> add a new menu to the menubar </s> - diff --git a/funcom_test/26615482.txt b/funcom_test/26615482.txt deleted file mode 100644 index 0c3c268064a9975ae483e01790bb5c3d17ea20cf..0000000000000000000000000000000000000000 --- a/funcom_test/26615482.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void caretUpdate(javax.swing.event.CaretEvent caretEvent) { - if (currentFile == null) - AIDesktop.getStatusBar().info("#NEW FILE#","Line " + editpane.getCaretLine()); - else - AIDesktop.getStatusBar() - .info(currentFile.getName(),"Line " + (editpane.getCaretLine() + 1)); - } - COM: <s> handle cursor moves </s> - diff --git a/funcom_test/26615491.txt b/funcom_test/26615491.txt deleted file mode 100644 index 47ad96f1023b3659f47562daf7837837c6996e0f..0000000000000000000000000000000000000000 --- a/funcom_test/26615491.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public GUINeuron checkNeuronPosition(int posX,int posY) { - GUILayer gLayer; - GUINeuron gNeuron; - Iterator iLayers; - - iLayers = iterator(); - - while (iLayers.hasNext()) { - gLayer = (GUILayer) (iLayers.next()); - gNeuron = gLayer.checkNeuronPosition(posX,posY); - - if (gNeuron != null) { - return gNeuron; - } - } - - return null; - } - COM: <s> iterates through all neurons of the network and returns the </s> - diff --git a/funcom_test/26615505.txt b/funcom_test/26615505.txt deleted file mode 100644 index 1605e8bed41dd1345bc50a3ec4ff62c2b3c0afda..0000000000000000000000000000000000000000 --- a/funcom_test/26615505.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Vector getSelectedNeurons() { - GUILayer gLayer; - Iterator iLayers; - Vector layerneurons; - Vector neurons = new Vector(); - - iLayers = iterator(); - - while (iLayers.hasNext()) { - gLayer = (GUILayer) (iLayers.next()); - layerneurons = gLayer.getSelectedNeurons(); - - neurons.addAll(layerneurons); - } - - return neurons; - } - COM: <s> returns a vector all selected neurons within the network </s> - diff --git a/funcom_test/26615507.txt b/funcom_test/26615507.txt deleted file mode 100644 index 4be971572384855adcf20e6995d6172a1c4ba872..0000000000000000000000000000000000000000 --- a/funcom_test/26615507.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public GUINeuron checkNeuronPosition(int posX,int posY) { - GUINeuron gNeuron; - Iterator iNeurons = iterator(); - - while (iNeurons.hasNext()) { - gNeuron = (GUINeuron) (iNeurons.next()); - - if (gNeuron.contains(posX,posY)) { - return gNeuron; - } - } - - return null; - } - COM: <s> iterates through all neurons of this layer and returns the </s> - diff --git a/funcom_test/26615523.txt b/funcom_test/26615523.txt deleted file mode 100644 index b5c612b6237806b7ee3b2d910bb2afec379c3014..0000000000000000000000000000000000000000 --- a/funcom_test/26615523.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void clearSelection() { - GUILayer gLayer; - Iterator iLayers; - - iLayers = iterator(); - - while (iLayers.hasNext()) { - gLayer = (GUILayer) (iLayers.next()); - - gLayer.setSelected(false); - } - - GUIConnection gCon; - Iterator iCons = getAllConnections().iterator(); - - while (iCons.hasNext()) { - gCon = (GUIConnection) (iCons.next()); - - gCon.setSelected(false); - } - } - COM: <s> resets the selected flag of all neurons and connections </s> - diff --git a/funcom_test/26615533.txt b/funcom_test/26615533.txt deleted file mode 100644 index 00d498f5d233eb8c438ab693ba7cad77f1d3c165..0000000000000000000000000000000000000000 --- a/funcom_test/26615533.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void reconnect() { - // reconnect the neurons - GUINeuron gNeuron; - Iterator iNeurons = iterator(); - Iterator i; - GUIConnection gConn; - - while (iNeurons.hasNext()) { - gNeuron = (GUINeuron) iNeurons.next(); - i = gNeuron.getConnections().iterator(); - - while (i.hasNext()) { - gConn = (GUIConnection) (i.next()); - gConn.reconnect(); - } - } - } - COM: <s> rebuild all guiconnections within this layer </s> - diff --git a/funcom_test/26615534.txt b/funcom_test/26615534.txt deleted file mode 100644 index 183d7747e37bfe1914e0f9f9fa398b3f12c949b6..0000000000000000000000000000000000000000 --- a/funcom_test/26615534.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void selectNeurons(Drawable r) { - clearSelection(); - - Vector neurons = getAllNeurons(); - GUINeuron gNeuron; - Iterator iNeurons = neurons.iterator(); - - while (iNeurons.hasNext()) { - gNeuron = (GUINeuron) (iNeurons.next()); - - java.awt.Point scalePos = gNeuron.getScalePosition(); - - if (r.contains(scalePos.getX(),scalePos.getY())) { - gNeuron.setSelected(true); - } - } - } - COM: <s> selects all neurons within an rectangle area </s> - diff --git a/funcom_test/26615555.txt b/funcom_test/26615555.txt deleted file mode 100644 index 5599c439ca2f60a1f296f1a53ff0762589f433fa..0000000000000000000000000000000000000000 --- a/funcom_test/26615555.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void valueChanged(TreeSelectionEvent treeSelectionEvent) { - TreeNode src = getSelectedNode(); - Object data; - - if (src instanceof AITreeNode) { - data = ((AITreeNode) src).getUserObject(); - - AITreeNode nd = (AITreeNode) src; - - String path = getProjectPath(nd); - ProjectPart p = AIDesktop.getProjectRoot().getPart(path); - - if (p != null) - AIDesktop.displayProperties(p); - } - } - COM: <s> handles selection events </s> - diff --git a/funcom_test/26615610.txt b/funcom_test/26615610.txt deleted file mode 100644 index 9ac0f8ef10e10babefc1c3aeac2337c2d33ffb39..0000000000000000000000000000000000000000 --- a/funcom_test/26615610.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setNetwork(Network newnet) { - - if (newnet==network) return; - - if (network!=null) { - network.removeIterationEventListener(this); - network.removeProjectEventListener(this); - clear(); - } - if (newnet==null) return; - - log.info("Attached network ["+newnet.getPartName()+"] to error graph"); - network=newnet; - newnet.addIterationEventListener(this); - newnet.addProjectEventListener(this); - } - COM: <s> attach a network to this errorgraph </s> - diff --git a/funcom_test/26615621.txt b/funcom_test/26615621.txt deleted file mode 100644 index 34e3667ef78086765def27bba86cf1d771d7ff26..0000000000000000000000000000000000000000 --- a/funcom_test/26615621.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void repaint() { - if (errorGraph == null) - return; - - List graphData = errorGraph.getGraphData(); - - if (graphData == null) - return; - - double x = (double) graphData.size(); - graphViewer.setGraphBounds(0.0,0.0,x,1.0); - } - COM: <s> forces a repaint of the graph </s> - diff --git a/funcom_test/26615673.txt b/funcom_test/26615673.txt deleted file mode 100644 index 7c804b2327f596c028a6ca330471a6728ac4a776..0000000000000000000000000000000000000000 --- a/funcom_test/26615673.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public Object getSeletedInstance() { - if (_sl == null) - return null; - - Object o = _model.getSelectedItem(); - - if (o == null) - return null; - - String Name = o.toString(); - SelectionEntry se = _sl.getEntryFromName(Name); - - if (se == null) - return null; - - try { - return Class.forName(se.getValue()).newInstance(); - } catch (Exception e) { - } - - return null; - } - COM: <s> creates a instance of the selected class </s> - diff --git a/funcom_test/26615713.txt b/funcom_test/26615713.txt deleted file mode 100644 index 253ada9a7c0a90934936a13669eb8a183a5c7940..0000000000000000000000000000000000000000 --- a/funcom_test/26615713.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public Object getValue(Object clientObject) { - Object back; - - if (clientObject == null || bFailure) - return FAILURE; - - if (descriptor == null) - initDescriptor(clientObject.getClass()); - - if (bFailure) - return FAILURE; - - try { - back = descriptor.getReadMethod().invoke(clientObject,null); - } catch (Exception e) { - bFailure = true; - - return FAILURE; - } - - return back; - } - COM: <s> returns the value for this property </s> - diff --git a/funcom_test/26615745.txt b/funcom_test/26615745.txt deleted file mode 100644 index 3ac822ac44b63ccaf66ca93e2cffb354a7b3399d..0000000000000000000000000000000000000000 --- a/funcom_test/26615745.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Vector getCandidates(String toComplete,Vector commandList){ - - Vector matchingCommands = new Vector(); - String currentCommand; - Enumeration enum = commandList.elements(); - while (enum.hasMoreElements()){ - currentCommand = (String)enum.nextElement(); - if (currentCommand.startsWith(toComplete)) - matchingCommands.add(0, currentCommand); - } - return matchingCommands; - } - COM: <s> returns a vector containing candidates commands to command completion </s> - diff --git a/funcom_test/26615746.txt b/funcom_test/26615746.txt deleted file mode 100644 index 4711c8d45d416ff3f78ddf5f546dedb52f9618c2..0000000000000000000000000000000000000000 --- a/funcom_test/26615746.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void initConsole() { - - consoleHub = new DefaultHub(); - - consoleHub.addControllable(projectController); - - TelnetServer telnet = new TelnetServer(); - - if (!telnet.isInitialized()) { - log.fatal("Can't run telnet server"); - - return; - } - - consoleHub.addIOHandler(telnet.getIOHandler()); - - log.info("Telnet server is starting up"); - telnet.start(); - } - COM: <s> initiate the console framework and register the console frame as iohandler </s> - diff --git a/funcom_test/26615765.txt b/funcom_test/26615765.txt deleted file mode 100644 index 223c591a7461a8e01664456b28ef71ed71b4f8f7..0000000000000000000000000000000000000000 --- a/funcom_test/26615765.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void mouseReleased(MouseEvent e) { - logMouse.debug("Mouse released"); - - guinetwork.requestRefresh(); - - if (rubberband != null) { - logTools.info("Rubberband finished"); - guinetwork.selectNeurons(rubberband); - guinetwork.removeDrawableObject("rubberband"); - logTools.info("Selected neurons: " + guinetwork.getSelectedNeurons().size()); - - rubberband = null; - } - - bPressed = false; - } - COM: <s> mousebutton gets released </s> - diff --git a/funcom_test/26615781.txt b/funcom_test/26615781.txt deleted file mode 100644 index 69558252f8e113e711dda58ff63059d3faa0c780..0000000000000000000000000000000000000000 --- a/funcom_test/26615781.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String toString() { - String element = "\nDataElement:: Input:" + input.toString() + ", "; - element += "Desired: " + desired.toString() + ", "; - element += "Output: " + output.toString() + ""; - - return element; - } - COM: <s> returns a string representation of the training element </s> - diff --git a/funcom_test/26615809.txt b/funcom_test/26615809.txt deleted file mode 100644 index dc91ff4deecd87e392dc9f92f0b6a3ce99a650d2..0000000000000000000000000000000000000000 --- a/funcom_test/26615809.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void removeInputCategory() { - int index = inputCategories.size() - 1; - - if (index < 1) - return; - - inputCategories.remove(index); - - DataElement element; - - for (int i = 0; i < elements.size(); i++) { - element = (DataElement) elements.elementAt(i); - element.getInput().remove(index); - } - } - COM: <s> removes the last inputcategory </s> - diff --git a/funcom_test/26615820.txt b/funcom_test/26615820.txt deleted file mode 100644 index 09a3bb847def984937a637d26c24cd1e9bb5fe20..0000000000000000000000000000000000000000 --- a/funcom_test/26615820.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addOutputCategory(String name) { - outputCategories.add(name); - - DataElement element; - - for (int i = 0; i < elements.size(); i++) { - element = (DataElement) elements.elementAt(i); - element.getOutput().add(new Double(0.0)); - element.getDesired().add("0.0"); - } - } - COM: <s> adds a new outputcategory </s> - diff --git a/funcom_test/26615832.txt b/funcom_test/26615832.txt deleted file mode 100644 index b2c289a59889592e0c6c70ceb046dbde72e443e9..0000000000000000000000000000000000000000 --- a/funcom_test/26615832.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void removeOutputCategory() { - int index = outputCategories.size() - 1; - - if (index < 1) - return; - - outputCategories.remove(index); - - DataElement element; - - for (int i = 0; i < elements.size(); i++) { - element = (DataElement) elements.elementAt(i); - element.getOutput().remove(index); - element.getDesired().remove(index); - } - } - COM: <s> removes the last outputcategory </s> - diff --git a/funcom_test/26615893.txt b/funcom_test/26615893.txt deleted file mode 100644 index 5afcd4e802a01f3abb7f7cf96e1ff262c7cda970..0000000000000000000000000000000000000000 --- a/funcom_test/26615893.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void paint(Graphics g) { - g.setColor(Color.gray); - g.drawLine(_x,_y,_x,_y2); - g.drawLine(_x,_y2,_x2,_y2); - g.drawLine(_x2,_y2,_x2,_y); - g.drawLine(_x2,_y,_x,_y); - - //g.drawRect(x, y, width, height); - } - COM: <s> draw the object </s> - diff --git a/funcom_test/26615901.txt b/funcom_test/26615901.txt deleted file mode 100644 index 66183d34cd87845cfb3aa77e53ac3a1eef644fa2..0000000000000000000000000000000000000000 --- a/funcom_test/26615901.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void addLayer() { - // create the layer - Layer layer = new Layer(lLID); - - layer.setNetwork(this); - - - // increment the id - lLID++; - - - // add the layer to our list - layers.add(layer); - - - // send off a layer added event - fireLayerEvent(layer,LayerEvent.ADD); - - - // Delete the current learning order (rebuilds when the - // network iterates) - learningOrder = new Vector(); - } - COM: <s> adds a single layer to the network </s> - diff --git a/funcom_test/26615909.txt b/funcom_test/26615909.txt deleted file mode 100644 index b374b25c915f4852c65f5a427a31e88a4225e9b2..0000000000000000000000000000000000000000 --- a/funcom_test/26615909.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setLayerType(int layerType) { - if (layerType == Layer.INPUT_LAYER || layerType == Layer.HIDDEN_LAYER || - layerType == Layer.OUTPUT_LAYER) { - this.layerType = layerType; - } else { - db("Received an invalid type for this layer.."); - } - } - COM: <s> set the layer type </s> - diff --git a/funcom_test/26615928.txt b/funcom_test/26615928.txt deleted file mode 100644 index ad6247ad38ef8171f9e8860bce8b0fa953104557..0000000000000000000000000000000000000000 --- a/funcom_test/26615928.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String toString() { - String s = ""; - - s += "Name: " + name + "\n"; - s += "Number of neurons: " + neurons.size() + "\n"; - - for (int i = 0; i < neurons.size(); i++) { - Neuron n = (Neuron) neurons.elementAt(i); - - s += n.toString() + "\n"; - } - - return s; - } - COM: <s> returns a string representation of this layer </s> - diff --git a/funcom_test/26615983.txt b/funcom_test/26615983.txt deleted file mode 100644 index 6fd94e3d1ffd7fd2893c65b506b953db9b254f6a..0000000000000000000000000000000000000000 --- a/funcom_test/26615983.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setPartName(String partname) { - if (partname.equals(this.partname)) - return; - - if (this.partname.length() == 0) { - this.partname = partname; - - return; - } - - String oldname = this.partname; - ProjectEvent e = new ProjectEvent(this,partname,this.partname); - this.partname = partname; - fireProjectEvent(e); - } - COM: <s> sets the name for this part </s> - diff --git a/funcom_test/26616008.txt b/funcom_test/26616008.txt deleted file mode 100644 index ad3bc86d38cfeced3e204a14d132d688859ad93e..0000000000000000000000000000000000000000 --- a/funcom_test/26616008.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public ProjectPart getPart(String partpath) { - Project parent = getProjectForPart(partpath); - - if (parent == null) - return null; - - if (parent == this) { - Iterator i = parts.iterator(); - - while (i.hasNext()) { - ProjectPart element = (ProjectPart) i.next(); - - if (element.getPartName().equals(partpath)) - return element; - } - - return null; - } - - return parent.getPart(getPartName(partpath)); - } - COM: <s> returns a part by its name </s> - diff --git a/funcom_test/2696682.txt b/funcom_test/2696682.txt deleted file mode 100644 index 5aeab3280bad7970a9b15abb14a889cea3b353d7..0000000000000000000000000000000000000000 --- a/funcom_test/2696682.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public Structure getStructure(File filename) throws IOException { - - InputStreamProvider isp = new InputStreamProvider(); - - InputStream inStream = isp.getInputStream(filename); - - BufferedInputStream bis = new BufferedInputStream(inStream); - - PDBFileParser pdbpars = new PDBFileParser(); - pdbpars.setParseSecStruc(parseSecStruc); - pdbpars.setAlignSeqRes(alignSeqRes); - pdbpars.setParseCAOnly(parseCAOnly); - Structure struc = pdbpars.parsePDBFile(bis); - - - - //ra bugfix: => instream closed... - bis.close(); - inStream.close(); - - - return struc ; - - } - COM: <s> opens filename parses it and returns a structure object </s> - diff --git a/funcom_test/2696800.txt b/funcom_test/2696800.txt deleted file mode 100644 index 8002222a9e84dac7113bfbac01367476fe009df2..0000000000000000000000000000000000000000 --- a/funcom_test/2696800.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String getTimeStamp(){ - - Calendar cal = Calendar.getInstance() ; - // Get the components of the time - int hour24 = cal.get(Calendar.HOUR_OF_DAY); // 0..23 - int min = cal.get(Calendar.MINUTE); // 0..59 - int sec = cal.get(Calendar.SECOND); // 0..59 - String s = "time: "+hour24+" "+min+" "+sec; - return s ; - } - COM: <s> returns a time stamp </s> - diff --git a/funcom_test/2696845.txt b/funcom_test/2696845.txt deleted file mode 100644 index 98150381aa6e3c2201edeb16f37f1874a0492a2e..0000000000000000000000000000000000000000 --- a/funcom_test/2696845.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private Group getNewGroup(String recordName,Character aminoCode1) { - - Group group; - if ( recordName.equals("ATOM") ) { - if (aminoCode1!=null) { - - AminoAcidImpl aa = new AminoAcidImpl() ; - aa.setAminoType(aminoCode1); - group = aa ; - } else { - // it is a nucleotidee - NucleotideImpl nu = new NucleotideImpl(); - group = nu; - } - } - else { - group = new HetatomImpl(); - } - //System.out.println("new group type: "+ group.getType() ); - return group ; - } - COM: <s> initiale new group either hetatom or amino acid </s> - diff --git a/funcom_test/2697199.txt b/funcom_test/2697199.txt deleted file mode 100644 index fa0dd08810d46d23f7545d065928ceb537178955..0000000000000000000000000000000000000000 --- a/funcom_test/2697199.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Chain isKnownChain(String chainID, List<Chain> chains){ - - for (int i = 0; i< chains.size();i++){ - Chain testchain = chains.get(i); - //System.out.println("comparing chainID >"+chainID+"< against testchain " + i+" >" +testchain.getName()+"<"); - if (chainID.equals(testchain.getName())) { - //System.out.println("chain "+ chainID+" already known ..."); - return testchain; - } - } - - return null; - } - COM: <s> test if the chain is already known is in current model </s> - diff --git a/funcom_test/2707964.txt b/funcom_test/2707964.txt deleted file mode 100644 index 5f98ba6547a1c0eff4c29e08596e32d37413eb46..0000000000000000000000000000000000000000 --- a/funcom_test/2707964.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean getBoolean() { - if (type == VariantTypes.BOOLEAN) { - return ((Boolean) value).booleanValue(); - } else { - return "[true][yes][1][y][on]".indexOf("[" + value.toString().toLowerCase() + "]") != -1; - } - } - COM: <s> get boolean returns the value as a boolean </s> - diff --git a/funcom_test/2768439.txt b/funcom_test/2768439.txt deleted file mode 100644 index 6ed138a914b3faa87e65016eb7e83d643d9ffbf1..0000000000000000000000000000000000000000 --- a/funcom_test/2768439.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: private void writePackage(Package pkg) { - - File destFile = null; - - try { - if (outputFileName == null) { - destFile = createOutputFile( - destination, - pkg.getName(), - pkg.getName(), - DroolsRulesCompiler.OUTPUT_FILE_ENDING - ); - } else { - destFile = createOutputFile( - destination, - pkg.getName(), - outputFileName, - DroolsRulesCompiler.OUTPUT_FILE_ENDING - ); - } - - writePackage(destFile, pkg); - - } catch (IOException e) { - log.error(0, "class.cant.write", outputFileName, e.getMessage()); - } - } - COM: <s> emit a rules file for the given package instance </s> - diff --git a/funcom_test/2768601.txt b/funcom_test/2768601.txt deleted file mode 100644 index bcd5f9073b8cece1828f40082178e3bce34f289c..0000000000000000000000000000000000000000 --- a/funcom_test/2768601.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean equals(Geometry other) { - return (other != null) - && (this.dimension == other.dimension) - && (this.type == other.type) - && (this.srid == other.srid) - && (this.haveMeasure == other.haveMeasure) - && other.getClass().equals(this.getClass()) - && this.equalsintern(other); - } - COM: <s> geometry specific equals implementation only defined for non null </s> - diff --git a/funcom_test/2768625.txt b/funcom_test/2768625.txt deleted file mode 100644 index ef5f1c4b89f08dca80a3bc0fe9171bd9e6734ab0..0000000000000000000000000000000000000000 --- a/funcom_test/2768625.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int estimatePointArray(Point[] geom) { - // number of points - int result = 4; - - // And the amount of the points itsself, in consistent geometries - // all points have equal size. - if (geom.length > 0) { - result += geom.length * estimatePoint(geom[0]); - } - return result; - } - COM: <s> write an array of slim points without endianness and type part of </s> - diff --git a/funcom_test/27698918.txt b/funcom_test/27698918.txt deleted file mode 100644 index 9dd350b3a9f3de359641963aff64ed73a50bdc21..0000000000000000000000000000000000000000 --- a/funcom_test/27698918.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public File getAutoMoveDirectory(File directory) throws IllegalArgumentException { - directory=PathNormalizer.normalize(directory); - File f = (File)autoMoveDirs.get(directory); - if (f==null) { - f=new File(directory, DEFAULT_AUTOMOVE_DIRECTORY); - setAutoMoveDirectory0(directory, f); - } - return f; - } - COM: <s> returns the directory associated to the given controlled directory </s> - diff --git a/funcom_test/27698939.txt b/funcom_test/27698939.txt deleted file mode 100644 index d7ccbac535d997eaef942eec07626f5a33368bfc..0000000000000000000000000000000000000000 --- a/funcom_test/27698939.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setTimeBased(boolean v) { - if (v) { - if (filter != null && isTimeBased()) return; - this.filter=new TimeFilter(originalFilter); - } else { - if ( filter != null && ! isTimeBased()) return; - this.filter=originalFilter; - } - } - COM: <s> sets the usage of time based filtering besides the normal filtering </s> - diff --git a/funcom_test/27764102.txt b/funcom_test/27764102.txt deleted file mode 100644 index f5b0dc269868e72196cb90c438b6c122604b3cf1..0000000000000000000000000000000000000000 --- a/funcom_test/27764102.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getCatName() { - String name = null; - if (category.equals("new")) { - return new String("Incoming"); - } // end of if (category.equals("new")) - else if (category.equals("signed")) { - return new String("Signed"); - } // end of else if (category.equals("signed")) - else if (category.equals("drafts")) { - return new String("Drafts"); - } // end of else if (category.equals("drafts")) - else { - return new String("Watched"); - } // end of else - } - COM: <s> get the value of full category name </s> - diff --git a/funcom_test/27764268.txt b/funcom_test/27764268.txt deleted file mode 100644 index 32de911cca456869cf3f9c252b5044da5df5ff55..0000000000000000000000000000000000000000 --- a/funcom_test/27764268.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isDeletable (String byUser) { - if (byUser.equals (daid) && signedby.toString().equals("")) { - return true; - } // end of if (byUser.equals (daid) && signedby.toString().equals("")) - else { - return false; - } // end of if (byUser.equals (daid) && signedby.toString().equals("")) - } - COM: <s> the document may be deleted by its author if it is not signed </s> - diff --git a/funcom_test/27764301.txt b/funcom_test/27764301.txt deleted file mode 100644 index 491cf68556d176b43f8716fafcc8da9fa8e92e96..0000000000000000000000000000000000000000 --- a/funcom_test/27764301.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setTid(Integer v) { - this.tid = v; - try { - Context ctx = new InitialContext(); - Object o = ctx.lookup ("saeed/Task"); - TaskHome th = (TaskHome) - PortableRemoteObject.narrow (o, TaskHome.class); - tname = (th.findByPrimaryKey (v)).getTname(); - } catch (Exception e) { - e.printStackTrace (); - } // end of try-catch - - } - COM: <s> set the value of task id </s> - diff --git a/funcom_test/27764861.txt b/funcom_test/27764861.txt deleted file mode 100644 index 63740dedf8a8627037f0abcd6b9f3fe9bde8d8fe..0000000000000000000000000000000000000000 --- a/funcom_test/27764861.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void startServer() throws IOException { - /* - * I am not synchronizing the method because someone told me it is - * better style ;) - */ - - synchronized(this) { - if(serverThread == null) { - - serverSocket = new ServerSocket(port); - serverThread = new Thread(this); - serverThread.start(); - - } // end of if serverThread == null - - } // end of synchronized - - } // end of method startServer - COM: <s> starts the tcpserver with the specified port number </s> - diff --git a/funcom_test/27765945.txt b/funcom_test/27765945.txt deleted file mode 100644 index 7740f24550037af403f2c5aa9a3168a40a20a407..0000000000000000000000000000000000000000 --- a/funcom_test/27765945.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testSetGetIdentifyingName() { - String name = "foo"; - String name2 = "notFoo"; - try { - - m_alt.setIdentifyingName( name ); - - assertEquals( "foo", m_alt.getIdentifyingName() ); - assertEquals( true, ( name2 != m_alt.getIdentifyingName() ) ); - - } catch ( final Exception e) { - - fail( e.getMessage() ); - - } - } - COM: <s> test of set identifying name method of class de </s> - diff --git a/funcom_test/27766128.txt b/funcom_test/27766128.txt deleted file mode 100644 index f07ca883e44f6e95554fbb8dfb9305bc281dcff4..0000000000000000000000000000000000000000 --- a/funcom_test/27766128.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetPlaylist () { - MP3Playlist playlist = null; - ArrayList foo = null; - try { - playlist = new MP3Playlist ( m_testfile ); - foo = playlist.getPlaylist(); - } catch(Exception e) { - fail (e.getMessage ()); - } - - if ( !(foo instanceof java.util.ArrayList) ) { - fail("getPlaylist() did not return an ArrayList!!!"); - } - } - COM: <s> test of get playlist method of class de </s> - diff --git a/funcom_test/27766132.txt b/funcom_test/27766132.txt deleted file mode 100644 index 54bfe365cbae38da05dd71dcb0d26173a8b40723..0000000000000000000000000000000000000000 --- a/funcom_test/27766132.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testPutAndGet () { - - try { - SimpleConfiguration sc = SimpleConfiguration.getInstance (); - sc.put("a","value"); - String fooValue = sc.get("a"); - assertEquals("value", fooValue); - } catch ( Exception e ) { - fail ( e.getMessage () ); - } - - } - COM: <s> test of get method of class de </s> - diff --git a/funcom_test/27766133.txt b/funcom_test/27766133.txt deleted file mode 100644 index 36c163fe3bb92cf40a4ae71dcd821d6fb30f3f52..0000000000000000000000000000000000000000 --- a/funcom_test/27766133.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testIterator () { - MP3Playlist playlist = null; - Iterator foo = null; - try { - playlist = new MP3Playlist ( m_testfile ); - foo = playlist.iterator(); - } catch(Exception e) { - fail (e.getMessage ()); - } - - if ( !(foo instanceof java.util.Iterator) ) { - fail("iterator() did not return an Iterator!!!"); - } - } - COM: <s> test of iterator method of class de </s> - diff --git a/funcom_test/27766134.txt b/funcom_test/27766134.txt deleted file mode 100644 index db9841e4fc204c5e7c99449b2bb6fdac6e88dd94..0000000000000000000000000000000000000000 --- a/funcom_test/27766134.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetNext () { - MP3Playlist playlist = null; - String foo = null; - try { - playlist = new MP3Playlist ( m_testfile ); - foo = playlist.getNext(); - } catch(Exception e) { - fail (e.getMessage ()); - } - - if ( !(foo instanceof String) ) { - fail("getNext() did not return a String!!!"); - } - } - COM: <s> test of get next method of class de </s> - diff --git a/funcom_test/27766155.txt b/funcom_test/27766155.txt deleted file mode 100644 index e5c522b9acc1d84d2b86f39f7759747668a49de0..0000000000000000000000000000000000000000 --- a/funcom_test/27766155.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object create(final String listenerThreadName, final IChannel channel) throws ListenerException, ChannelException { - - if ( null == listenerThreadName && null == channel ) - throw new IllegalArgumentException( "Parameters may not be null!" ); - - m_Product = create(listenerThreadName); - - ( (IListener)m_Product ).subscribeChannel(channel); - - return m_Product; - - } - COM: <s> creates a listener thread subscribed to a channel </s> - diff --git a/funcom_test/27766161.txt b/funcom_test/27766161.txt deleted file mode 100644 index 424ad2da7a3c6384775d104b6a8dd025987515d4..0000000000000000000000000000000000000000 --- a/funcom_test/27766161.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object create(final String listenerThreadName, final IChannel channel, final ISource source) throws ListenerException, ChannelException { - - if ( null == listenerThreadName && null == channel && null == source ) - throw new IllegalArgumentException( "Parameters may not be null!" ); - - m_Product = create(listenerThreadName); - - ( (IListener)m_Product ).subscribeSource(channel,source); - - return m_Product; - - } - COM: <s> creates a listener thread subscribed to a source in a channel </s> - diff --git a/funcom_test/27766163.txt b/funcom_test/27766163.txt deleted file mode 100644 index 2ffedd6548128d815b1585b8b7410f128dd3f57a..0000000000000000000000000000000000000000 --- a/funcom_test/27766163.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void configure(final Configuration configuration) throws ConfigurationException { - - if ( null == configuration ) - throw new IllegalArgumentException( "Configuration can not be null!" ); - - m_log.debug("Starting configuration of ListenerThreadFactory"); - - // - // ToDo: - // Right now there is no special configuation for the ChannelFactory, but - // this may change... - // - - m_log.debug("Finished configuration of ListenerThreadFactory"); - } - COM: <s> configuration for the thread factory </s> - diff --git a/funcom_test/27766164.txt b/funcom_test/27766164.txt deleted file mode 100644 index a4b4a1a0e1e26c4710acc9e71ddf09ae31792f02..0000000000000000000000000000000000000000 --- a/funcom_test/27766164.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Thread createListenerThread(final String nameOfListenerThread) { - - Object fooObj = m_factory.create( nameOfListenerThread); - - IListenerThread tempListenerThread = (IListenerThread)fooObj; - - add(tempListenerThread); - - return new Thread(m_thrGrp, tempListenerThread, tempListenerThread.getThreadName()); - - } - COM: <s> will create a new listener thread with the specified name </s> - diff --git a/funcom_test/27766181.txt b/funcom_test/27766181.txt deleted file mode 100644 index 10c3709f24da3398e15e437a40ea28c745a193dc..0000000000000000000000000000000000000000 --- a/funcom_test/27766181.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Object create ( String channelThreadName, Configuration conf ) throws ConfigurationException { - - if ( null == channelThreadName && null == conf ) - throw new IllegalArgumentException( "Parameters can not be null!" ); - - // Create new channel... - Object channel = create ( channelThreadName ); - - // Apply configuration on it... - ( ( Configurable )channel ).configure ( conf ); - - return channel; - } - COM: <s> creates a channel object </s> - diff --git a/funcom_test/27766187.txt b/funcom_test/27766187.txt deleted file mode 100644 index f684981409caa102c7ddaebcd28fb29a529cec74..0000000000000000000000000000000000000000 --- a/funcom_test/27766187.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setUDPPort(int udpPort) { - - m_udp_port = udpPort; - - try { - - m_info_out = new DatagramSocket(); - m_info_out.connect(m_socket.getInetAddress(),m_udp_port); - - } catch (IOException ioe) { - m_log.error(this, ioe); - } - - } - COM: <s> set the udp port </s> - diff --git a/funcom_test/27766190.txt b/funcom_test/27766190.txt deleted file mode 100644 index 821ce3c1235ddd8d0cdc4ae59529d306ff032b3d..0000000000000000000000000000000000000000 --- a/funcom_test/27766190.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Object getListener(final String listenerName) { - - if ( null == listenerName ) - throw new IllegalArgumentException( "ListenerName can not be null!" ); - - try { - - // Defensive copy - return ( (AbstractListenerThread)m_Listeners.get(listenerName) ).clone(); - - } catch ( final CloneNotSupportedException cnse ) { - - throw new UnsupportedOperationException( "Clone is not supported! Change-bug occured!" ); - - } - } - COM: <s> returns the specified listener as an object </s> - diff --git a/funcom_test/27766198.txt b/funcom_test/27766198.txt deleted file mode 100644 index 280c434702cc0c107a7bd26bce5315d36b52f1c5..0000000000000000000000000000000000000000 --- a/funcom_test/27766198.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getListenersSubscribedTo(final ISource source) { - - // No nulls please, fail quick. - if ( null == source ) - throw new IllegalArgumentException( "Source can not be null!" ); - - // Defensive copy to protect from outside modifications. - return (List)Collections.unmodifiableList( new ArrayList( source.getSubscribedListeners() ) ); - - } - COM: <s> returns all listeners listening to the specified source immuteable </s> - diff --git a/funcom_test/27766202.txt b/funcom_test/27766202.txt deleted file mode 100644 index 478d7b5f638722fd4e82783b04d3f0bc31ff5288..0000000000000000000000000000000000000000 --- a/funcom_test/27766202.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getStats() { - - String returnString = - "Processing ["+m_Sources.size()+"] sources. | \n"; - returnString += - "Serving ["+m_Listeners.size()+"] listeners. | \n"; - returnString += - "Streamed "+(byteCount/1024)+" Kbytes so far. \n"; - - return returnString; - - } - COM: <s> returns some statistiks infos for debugging mainly </s> - diff --git a/funcom_test/27766211.txt b/funcom_test/27766211.txt deleted file mode 100644 index 8efe55197dcecb45d245bdf2e0aa89ea55995d5c..0000000000000000000000000000000000000000 --- a/funcom_test/27766211.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected ServerController () { - /** Creates the category for log4j, - * with the current instance class name - */ - m_log = Category.getInstance(this.getClass().getName()); - - m_log.debug ("Instanciated ServerController."); - - /** Creatings my factory */ - m_factory = ServerThreadFactory.getInstance(); - } - COM: <s> creates new server controller is protected </s> - diff --git a/funcom_test/27766251.txt b/funcom_test/27766251.txt deleted file mode 100644 index 7f7e27fbf08a900850629400013504419c787a78..0000000000000000000000000000000000000000 --- a/funcom_test/27766251.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object create(final Configuration conf, final IChannel aChannel) throws JCastException, ConfigurationException { - - if ( null == conf && null == aChannel) - throw new IllegalArgumentException( "Parameters can not be null!" ); - - String sourceThreadName = conf.getChild("type").getValue(); - - Object sourceThread = create(sourceThreadName, aChannel); - - ( (Configurable)sourceThread ).configure(conf); - - return sourceThread; - - } - COM: <s> creates a source thread into an existing channel </s> - diff --git a/funcom_test/27766266.txt b/funcom_test/27766266.txt deleted file mode 100644 index 13a45b79ad07a5f80bfd570f685c78338cd7832c..0000000000000000000000000000000000000000 --- a/funcom_test/27766266.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int setPlayMode (String wantedPlayMode) { - - int new_modi; - - if(wantedPlayMode.equalsIgnoreCase ("once")) { - new_modi = ONCE; - } else if(wantedPlayMode.equalsIgnoreCase ("loop")) { - new_modi = LOOP; - } else { - new_modi = ONCE; - } - - return new_modi; - } - COM: <s> sets the playmode from a string </s> - diff --git a/funcom_test/27766269.txt b/funcom_test/27766269.txt deleted file mode 100644 index 0aec9953899dd9dc6eb2dc6a254d55aafc1c847c..0000000000000000000000000000000000000000 --- a/funcom_test/27766269.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean equals(final Object obj) { - try { - if (obj instanceof ISource) { - - ISource compareSrc = (ISource)obj; - if( compareSrc.getIdentifyingName().equals( this.getIdentifyingName() ) ) { - return true; - } else { - return false; - } - - } else { - return false; - } - } catch ( final java.lang.RuntimeException e) { - - m_log.error(this, e); - return false; - - } - } - COM: <s> returns true if 2 sources have the same identifying name </s> - diff --git a/funcom_test/27766288.txt b/funcom_test/27766288.txt deleted file mode 100644 index 22672791b29fb2d59b215338d9425407d76e6531..0000000000000000000000000000000000000000 --- a/funcom_test/27766288.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public MP3Playlist (String playlist) throws IOException { - m_log.debug ("Instanciated MP3Playlist using file: " + playlist); - - BufferedReader br = new BufferedReader ( new FileReader (playlist) ); - m_playlist = MP3Playlist.getPlaylist (br); - m_itr = m_playlist.iterator (); - br.close (); - m_log.debug ("done! Playlistsize: " + m_playlist.size ()); - } - COM: <s> creates new mp3 playlist </s> - diff --git a/funcom_test/27766315.txt b/funcom_test/27766315.txt deleted file mode 100644 index 39198e0f0271a9ba7dc19b7ee23015676b15f802..0000000000000000000000000000000000000000 --- a/funcom_test/27766315.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public AbstractThread () { - /** Creates the category for log4j, - * with the current instance class name - */ - m_log = Category.getInstance(this.getClass().getName()); - - m_log.debug ("Instanciated "+this.getClass().getName()+" [AbstractThread]."); - } - COM: <s> creates new abstract thread </s> - diff --git a/funcom_test/27766325.txt b/funcom_test/27766325.txt deleted file mode 100644 index 94c8f599c7fdee48f0ad92b913a4cac56109ec94..0000000000000000000000000000000000000000 --- a/funcom_test/27766325.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void configure (Configuration configuration) throws ConfigurationException { - - try { - - /** Extracting filename for log4j */ - log4jConfigFile = configuration.getChild ("log4j").getChild ("filename").getValue (); - - /** Get configuration for log4j out of specified filename */ - PropertyConfigurator.configure (log4jConfigFile); - - - } catch (Exception re) { - throw new ConfigurationException ("Could not get log4j filename value!"); - } - - } - COM: <s> this configures a server </s> - diff --git a/funcom_test/27766384.txt b/funcom_test/27766384.txt deleted file mode 100644 index 7a0f1adcc9da24ee0997d34e5ba187cc104df664..0000000000000000000000000000000000000000 --- a/funcom_test/27766384.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean addListener(String listenerIP) { - - Enumeration myEnum = this.elements(); - String foo = null; - boolean found = false; - while(myEnum.hasMoreElements()) { - foo = (String)myEnum.nextElement(); - if(foo.equals(listenerIP)) { - found = true; - } - - } - - if(found) { - return false; - } else { - this.add(listenerIP); - return true; - } - - } - COM: <s> adds listener client ip address </s> - diff --git a/funcom_test/27766388.txt b/funcom_test/27766388.txt deleted file mode 100644 index b8605a5b1cfa9091e995211b732fd312665a8bc1..0000000000000000000000000000000000000000 --- a/funcom_test/27766388.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public String getListener(String listenerIP) { - Enumeration myEnum = this.elements(); - String foo = null; - String returnFoo = null; - boolean found = false; - while(myEnum.hasMoreElements()) { - foo = (String)myEnum.nextElement(); - if(foo.equals(listenerIP)) { - found = true; - returnFoo = foo; - - } - - } - - if(found) { - return returnFoo; - - } else { - return null; - } - - } - COM: <s> returns the ip address or null if ip address was not found </s> - diff --git a/funcom_test/27772386.txt b/funcom_test/27772386.txt deleted file mode 100644 index 4264930b2ea3805c5433f5a4851eccd36f8fa4d8..0000000000000000000000000000000000000000 --- a/funcom_test/27772386.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void startApp() { - // TextBox t = new TextBox("Note", "", 2000, 0); - - t.addCommand(newLineCommand); - t.addCommand(exitCommand); - t.addCommand(saveCommand); - t.addCommand(loadCommand); - t.setCommandListener(this); - - display.setCurrent(t); - } - COM: <s> start up the midlet by creating the text box and associating </s> - diff --git a/funcom_test/27796308.txt b/funcom_test/27796308.txt deleted file mode 100644 index 8da9f1e6275eeae945f4bd631685435d7294e4e2..0000000000000000000000000000000000000000 --- a/funcom_test/27796308.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void fireStateChanged(byte type) throws IllegalArgumentException{ - List notifyEvents = getListenerList(type); - - // Process the listeners last to first, notifying - // those that are interested in this event - for (int i = notifyEvents.size() - 1; i>=0; i--) { - ChangeListener listener = (ChangeListener) notifyEvents.get(i); - // Lazily create the event: - if (changeEvent == null) - changeEvent = new ChangeEvent(this); - listener.stateChanged(changeEvent); - } - } - COM: <s> notifies all listeners that have registered interest for </s> - diff --git a/funcom_test/27796349.txt b/funcom_test/27796349.txt deleted file mode 100644 index fdfd1e91145f2208dc64cee08e401676c79d79a6..0000000000000000000000000000000000000000 --- a/funcom_test/27796349.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addMapping(String name, Class m) throws DuplicateCalculatorNameException, IllegalArgumentException { - // verify that the class is in the mapping hierarchy - if (!ObjectMapping.class.isAssignableFrom(m)) - throw new IllegalArgumentException("Class " + m.getName() + " is not an ObjectMapper!"); - - // check for duplicate names - if (mappers.keySet().contains(name)) - throw new DuplicateCalculatorNameException("Duplicate mapper name " + name); - mappers.put(name, m); - } - COM: <s> add a mapping to the database of available mappings </s> - diff --git a/funcom_test/27796374.txt b/funcom_test/27796374.txt deleted file mode 100644 index 787f067ab59709953a2dda6a5c6f439130ac79c9..0000000000000000000000000000000000000000 --- a/funcom_test/27796374.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public VisualStyle setVisualStyle(VisualStyle vs) { - if (vs != null) { - VisualStyle tmp = visualStyle; - visualStyle = vs; - this.fireStateChanged(); - return tmp; - } else { - String s = "VisualMappingManager: Attempt to set null VisualStyle"; - logger.severe(s); - return null; - } - } - COM: <s> sets a new visual style and returns the old style </s> - diff --git a/funcom_test/27796471.txt b/funcom_test/27796471.txt deleted file mode 100644 index ce72d0f58ee9be21401f57b99f755c214b1ef45a..0000000000000000000000000000000000000000 --- a/funcom_test/27796471.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public byte calculateNodeShape(Node node, CyNetwork network) { - String canonicalName = network.getNodeAttributes().getCanonicalName(node); - Map attrBundle = network.getNodeAttributes().getAttributes(canonicalName); - Object rangeValue = super.getMapping().calculateRangeValue(attrBundle); - if(rangeValue!=null) - return ((Byte)super.getMapping().calculateRangeValue(attrBundle)).byteValue(); - else - return (byte)(-1); - } - COM: <s> it is hoped that the 1 value of a byte will not conflict </s> - diff --git a/funcom_test/27796475.txt b/funcom_test/27796475.txt deleted file mode 100644 index a6aca8fa06f5d01912c539210d5ae694a6052756..0000000000000000000000000000000000000000 --- a/funcom_test/27796475.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public float calculateEdgeFontSize(Edge edge, CyNetwork network) { - String canonicalName = network.getEdgeAttributes().getCanonicalName(edge); - Map attrBundle = network.getEdgeAttributes().getAttributes(canonicalName); - Object rangeValue = super.getMapping().calculateRangeValue(attrBundle); - if (rangeValue != null) - return ((Number) rangeValue).floatValue(); - else - return -1; - } - COM: <s> calculate edge font size returns 1 if there is no mapping </s> - diff --git a/funcom_test/27796518.txt b/funcom_test/27796518.txt deleted file mode 100644 index 3f868b2039de8de5fd1050cc4151d48e20de5902..0000000000000000000000000000000000000000 --- a/funcom_test/27796518.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double calculateNodeSize(Node node, CyNetwork network) { - String canonicalName = network.getNodeAttributes().getCanonicalName(node); - Map attrBundle = network.getNodeAttributes().getAttributes(canonicalName); - Object rangeValue = super.getMapping().calculateRangeValue(attrBundle); - if(rangeValue!=null) - return ((Number)rangeValue).doubleValue(); - else - return -1; - } - COM: <s> calculate node size returns 1 if there is no mapping </s> - diff --git a/funcom_test/27796521.txt b/funcom_test/27796521.txt deleted file mode 100644 index ad1cf409e8c0e3cd438015e0d0bd5f560dc9e96c..0000000000000000000000000000000000000000 --- a/funcom_test/27796521.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public float calculateNodeFontSize(Node node, CyNetwork network) { - String canonicalName = network.getNodeAttributes().getCanonicalName(node); - Map attrBundle = network.getNodeAttributes().getAttributes(canonicalName); - Object rangeValue = super.getMapping().calculateRangeValue(attrBundle); - if (rangeValue != null) - return ((Number) rangeValue).floatValue(); - else - return -1; - } - COM: <s> calculate node font size returns 1 if there is no mapping </s> - diff --git a/funcom_test/27796585.txt b/funcom_test/27796585.txt deleted file mode 100644 index 20d285cb61de5cb41d7262b45293cff0c9e4d1f4..0000000000000000000000000000000000000000 --- a/funcom_test/27796585.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void visualStyleChanged() { - // get current defaults - Object defaultObj = VizUIUtilities.getDefault(VMM.getVisualStyle(), this.type); - setCurrentCalculator( - VizUIUtilities.getCurrentCalculator(VMM.getVisualStyle(), this.type) ); - - if (defaultValueDisplayer == null) { // haven't initialized yet - drawDefault(defaultObj); - drawCalc(); - refreshUI(); - } - else { - defaultValueDisplayer.setObject(defaultObj); - refreshUI(); - } - } - COM: <s> alert the viz map attr tab that the relevant visual style has changed </s> - diff --git a/funcom_test/27796588.txt b/funcom_test/27796588.txt deleted file mode 100644 index 6d98b9e473dbb3b9e8542071d062afea5b7d0937..0000000000000000000000000000000000000000 --- a/funcom_test/27796588.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void refreshUI() { - if (this.calcPanel != null) { - this.calcContainer.remove(this.calcPanel); - } - if (this.currentCalculator != null) { - this.calcPanel = this.currentCalculator.getUI(this.mainUIDialog, VMM.getNetwork()); - this.calcContainer.add(this.calcPanel); - } else { - this.calcPanel = null; - } - validate(); - repaint(); - } - COM: <s> refreshes the panel that displays the ui for the currently selected calculator </s> - diff --git a/funcom_test/27796660.txt b/funcom_test/27796660.txt deleted file mode 100644 index 3d4ac5263f9e0119c19613e4d2f7b9708ce5c1ee..0000000000000000000000000000000000000000 --- a/funcom_test/27796660.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setObject(Object o) throws ClassCastException { - inputObj = o; - if (o instanceof Icon) { - setIcon((Icon) o); - } - else if (o instanceof Color) { - setBackground((Color) o); - } - else if (o instanceof Font) { - Font f = (Font) o; - setFont(f); - setText(f.getFontName()); - } - else { // anything else must be a Double, Integer, or String - setText(o.toString()); - } - //fireItemSelected(); - } - COM: <s> externally sets the object displayed </s> - diff --git a/funcom_test/27796748.txt b/funcom_test/27796748.txt deleted file mode 100644 index 0da3e0be3ec2e08f3fbfa7798289a8469dce5c53..0000000000000000000000000000000000000000 --- a/funcom_test/27796748.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Vector checkCalculatorUsage(Calculator c) { - Vector conflicts = new Vector(); - for (Iterator iter = styles.iterator(); iter.hasNext();) { - VisualStyle vs = (VisualStyle) iter.next(); - Vector styleName = vs.checkConflictingCalculator(c); - if (styleName.size() != 1) - conflicts.add(styleName); - } - return conflicts; - } - COM: <s> ensure that the calculator to be removed isnt used in other visual styles </s> - diff --git a/funcom_test/27796788.txt b/funcom_test/27796788.txt deleted file mode 100644 index ba1528196d5accfa4ff24486acda5c51d61873f6..0000000000000000000000000000000000000000 --- a/funcom_test/27796788.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void applyProperties(Properties props, String baseKey, ValueParser parser) { - String contKey = baseKey + ".controller"; - String contValue = props.getProperty(contKey); - if (contValue != null) {setControllingAttributeName(contValue, null, false);} - } - COM: <s> customize this object by applying mapping defintions described by the </s> - diff --git a/funcom_test/27796816.txt b/funcom_test/27796816.txt deleted file mode 100644 index a39def15cdd76c0d19b1e5f5a7aa126b1d155704..0000000000000000000000000000000000000000 --- a/funcom_test/27796816.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private ValueDisplayer getMapValue(Object currentMapping) { - ValueDisplayer mapValue; - if (currentMapping == null) { - // display default selection - mapValue = ValueDisplayer.getBlankDisplayFor - (parentDialog, USER_MSG, defaultObject); - } else { // display current mapping - mapValue = ValueDisplayer.getDisplayFor - (parentDialog, USER_MSG, currentMapping); - } - return mapValue; - } - COM: <s> gets the map value </s> - diff --git a/funcom_test/27796827.txt b/funcom_test/27796827.txt deleted file mode 100644 index ef0a8a74199a45cc93e457247985bca59a18c8c0..0000000000000000000000000000000000000000 --- a/funcom_test/27796827.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object clone() { - DiscreteMapping clone = new DiscreteMapping - (defaultObj, attrName, mapType); - // Copy over all listeners... - for (int i=0; i<observers.size(); i++) { - clone.addChangeListener((ChangeListener) observers.get(i)); - } - clone.putAll((TreeMap) treeMap.clone()); - return clone; - } - COM: <s> clones the object </s> - diff --git a/funcom_test/27796852.txt b/funcom_test/27796852.txt deleted file mode 100644 index 1a5d4fe2111eeaf8a73955519dc036ee35996ce2..0000000000000000000000000000000000000000 --- a/funcom_test/27796852.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void validate(ContinuousMappingPoint point) { - // Get New Data Point (After User Change) - double newValue = getNewValue(); - - // Check Previous/Next Points (if available) - checkPreviousPoint(newValue); - checkNextPoint(newValue); - - // If all goes well, update the point. - point.setValue(newValue); - } - COM: <s> validates new data field </s> - diff --git a/funcom_test/27796853.txt b/funcom_test/27796853.txt deleted file mode 100644 index 3b83018455b9349490777abd0bca63a386910216..0000000000000000000000000000000000000000 --- a/funcom_test/27796853.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private double getNewValue() { - String number = textField.getText(); - double newValue; - try { - newValue = Double.parseDouble(number); - } catch (NumberFormatException e) { - throw new IllegalArgumentException("This is not a number: " - + number + "."); - } - return newValue; - } - COM: <s> gets new value from the text box </s> - diff --git a/funcom_test/27796888.txt b/funcom_test/27796888.txt deleted file mode 100644 index 96b45ac927316eeb3a70a55b0956dcd53d50be1f..0000000000000000000000000000000000000000 --- a/funcom_test/27796888.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object calculateRangeValue(String attrName) { - if (attrBundle == null || attrName == null) { - return null; - } - if (points.size() == 0) { - return null; - } - Object attrValue = attrBundle.get(attrName); - if (!(attrValue instanceof Number)) { - return null; - } - Object object = getRangeValue((Number) attrValue); - return object; - } - COM: <s> calculates range value </s> - diff --git a/funcom_test/27797094.txt b/funcom_test/27797094.txt deleted file mode 100644 index e09495c1d80401373c2eb8086d3db7a3a254580d..0000000000000000000000000000000000000000 --- a/funcom_test/27797094.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void updateStatusLabel() { - - int nodeCount = getNodeViewCount(); - int edgeCount = getEdgeViewCount(); - int selectedNodes = getSelectedNodes().size(); - int selectedEdges = getSelectedEdges().size(); - - statusLabel.setText(" Nodes: " + nodeCount - + " ("+selectedNodes+" selected)" - + " Edges: " + edgeCount - + " ("+selectedEdges+" selected)" ); - } - COM: <s> resets the info label status bar text with the current number of </s> - diff --git a/funcom_test/27797120.txt b/funcom_test/27797120.txt deleted file mode 100644 index 764dfd6bf9f71f5a49bc85f9b890853c17a626be..0000000000000000000000000000000000000000 --- a/funcom_test/27797120.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setGraphPerspective( GraphPerspective perspective ) { - - // hide the current nodes - hideNodes( getNodeIndicesArray() ); - // hide the current edges - hideEdges( getEdgeIndicesArray() ); - - // restore the new nodes and edges - restoreNodes( perspective.getNodeIndicesArray() ); - restoreEdges( perspective.getEdgeIndicesArray() ); - - fireEvent(CyNetworkEvent.GRAPH_REPLACED); - } - COM: <s> a new network should be made instead </s> - diff --git a/funcom_test/27797174.txt b/funcom_test/27797174.txt deleted file mode 100644 index 6f8351b1396e1f2c7ac3121b2c86214cd1efa239..0000000000000000000000000000000000000000 --- a/funcom_test/27797174.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void fireEvent(int type) { - CyNetworkEvent event = new CyNetworkEvent(this, type); - for (Iterator i = listeners.iterator(); i.hasNext(); ) { - CyNetworkListener listener = (CyNetworkListener)i.next(); - listener.onCyNetworkEvent(event); - } - } - COM: <s> fires an event to all listeners registered with this object </s> - diff --git a/funcom_test/27797914.txt b/funcom_test/27797914.txt deleted file mode 100644 index 2b8faf3e76eb424aec664c7ce5524bafc81e575e..0000000000000000000000000000000000000000 --- a/funcom_test/27797914.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void applySelLayout() { - if (view == null) return; - - int[] selNodes = view.getSelectedNodeIndices(); - int[] selEdges = view.getSelectedEdgeIndices(); - GraphView selView = - GinyFactory.createGraphView(view.getRootGraph().createGraphPerspective(selNodes, selEdges)); - applyLayout(selView); - } - COM: <s> applies a layout to only the selected nodes or edges </s> - diff --git a/funcom_test/27797920.txt b/funcom_test/27797920.txt deleted file mode 100644 index 6046e63b554c0a0a620413d16a144db4c519b210..0000000000000000000000000000000000000000 --- a/funcom_test/27797920.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setVisualMapperEnabled(boolean newState) { - if (this.visualMapperEnabled != newState) { - this.visualMapperEnabled = newState; - getCyMenus().setVisualMapperItemsEnabled(newState); - if (newState == true) {redrawGraph(false, true);} - } - } - COM: <s> enables the visual mapper if the argument is true otherwise disables the </s> - diff --git a/funcom_test/27797955.txt b/funcom_test/27797955.txt deleted file mode 100644 index 2af4705ddf7a0ce9ac39879ce72af7bd5a50424f..0000000000000000000000000000000000000000 --- a/funcom_test/27797955.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void internalFrameActivated(InternalFrameEvent e) { - String network_id = ( String )componentMap.get( e.getInternalFrame() ); - - if ( network_id == null ) { - return; - } - - - - firePropertyChange( CytoscapeDesktop.NETWORK_VIEW_FOCUSED, - null, - network_id ); - } - COM: <s> for internal frames </s> - diff --git a/funcom_test/27797981.txt b/funcom_test/27797981.txt deleted file mode 100644 index 75f53c60f19f2000bd6b86ac9c742e7a85cb83d6..0000000000000000000000000000000000000000 --- a/funcom_test/27797981.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void windowGainedFocus(WindowEvent e) { - - - - String network_id = ( String )componentMap.get( e.getWindow() ); - - System.out.println( " Window Gained Focus: "+ network_id ); - - if ( network_id == null ) { - return; - } - - - - firePropertyChange( CytoscapeDesktop.NETWORK_VIEW_FOCUSED, - null, - network_id ); - - } - COM: <s> for exteernal frames </s> - diff --git a/funcom_test/27798021.txt b/funcom_test/27798021.txt deleted file mode 100644 index 311c64a7a5c1f7612810a6c46963e19174c026ee..0000000000000000000000000000000000000000 --- a/funcom_test/27798021.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void registerCommandLinePlugins() { - JarLoaderCommandLineParser parser = new JarLoaderCommandLineParser(this); - parser.parseArgs(config.getArgs()); - logger.info(parser.getMessages()); - PluginLoader pluginLoader = new PluginLoader(this); - pluginLoader.load(config.getProperties()); - logger.info(pluginLoader.getMessages()); - -} - COM: <s> loads plugins by via the plugin loading helper classes </s> - diff --git a/funcom_test/27798028.txt b/funcom_test/27798028.txt deleted file mode 100644 index fe40bf4dd0ab3afb8d32ad72ecad60219aa209db..0000000000000000000000000000000000000000 --- a/funcom_test/27798028.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean setGraphViewHandler (GraphView graph_view, GraphViewHandler gv_handler){ - if(this.graphViewToHandler.containsKey(graph_view)){ - this.graphViewToHandler.put(graph_view, gv_handler); - return true; - } - return false; - }//setGraphViewHandler - COM: <s> if the given code giny </s> - diff --git a/funcom_test/27798034.txt b/funcom_test/27798034.txt deleted file mode 100644 index fdec3cb30dd29b46787cb5328525e25c85803026..0000000000000000000000000000000000000000 --- a/funcom_test/27798034.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testLegalArgs0() throws Exception { - AllTests.standardOut ("testLegalArgs0"); - - String geometryFilename = "../data/galFiltered.gml"; - String interactionsFilename = "../data/tideker0/yeastSmall.intr"; - - String[] args = {"-g", geometryFilename, - "-i", interactionsFilename}; - - CytoscapeConfig config = new CytoscapeConfig(args); - - assertTrue(config.inputsError()); - - } // testLegalArgs0 - COM: <s> ensure that multiple sources of the input graph e </s> - diff --git a/funcom_test/27798082.txt b/funcom_test/27798082.txt deleted file mode 100644 index 3a6563d04b211c2df4717fe3ecd31f811ffe212b..0000000000000000000000000000000000000000 --- a/funcom_test/27798082.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void synchronizeVisualStyle(Color newColor) { - VisualMappingManager vmm = Cytoscape.getCurrentNetworkView().getVizMapManager(); - VisualStyle style = vmm.getVisualStyle(); - GlobalAppearanceCalculator gCalc = - style.getGlobalAppearanceCalculator(); - gCalc.setDefaultBackgroundColor(newColor); - } - COM: <s> synchronizes the new background color with the current visual style </s> - diff --git a/funcom_test/27798186.txt b/funcom_test/27798186.txt deleted file mode 100644 index e98a12328203483cc23091bf906316c4e9f42094..0000000000000000000000000000000000000000 --- a/funcom_test/27798186.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void initializeMenus() { - if (!menusInitialized) { - menusInitialized = true; - fillMenuBar(); - fillToolBar(); - nodesRequiredItemsEnabled = false; - saveButton.setEnabled(false); - saveSubMenu.setEnabled(false); - menuPrintAction.setEnabled(false); - menuExportAction.setEnabled(false); - displayNWSubMenu.setEnabled(false); - setNodesRequiredItemsEnabled(); - - } - } - COM: <s> this method should be called by the creator of this object after </s> - diff --git a/funcom_test/27798254.txt b/funcom_test/27798254.txt deleted file mode 100644 index c343e66748513bb4d4e78066f0327d16cc49be21..0000000000000000000000000000000000000000 --- a/funcom_test/27798254.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean pluginRegistryContains(String pluginName) { - synchronized (registry) { - Iterator iter; - for (iter = registry.iterator(); iter.hasNext();) { - PluginRegistryNode node = (PluginRegistryNode)iter.next(); - if (node.plugin.getName().equals(pluginName)) return true; - } - } - return false; - } - COM: <s> tests if plugin is in registry </s> - diff --git a/funcom_test/27798299.txt b/funcom_test/27798299.txt deleted file mode 100644 index f48080ea73136191cd0aa59534eff7a03605997b..0000000000000000000000000000000000000000 --- a/funcom_test/27798299.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String PathAndFilenameToClassname(String pathAndFilename) { - - String withoutExtension = pathAndFilename.replaceAll("\\.class$",""); - String[] tokens = withoutExtension.split( "/" ); - String classname = tokens[0]; - for ( int i = 1; i < tokens.length; ++i ) { - classname = classname.concat( "."+tokens[i] ); - } - return classname; - } - COM: <s> converts filenames to corresponding classnames </s> - diff --git a/funcom_test/27798424.txt b/funcom_test/27798424.txt deleted file mode 100644 index 0f3784083cdc36c2e33c6b071ad1384aaeea50ae..0000000000000000000000000000000000000000 --- a/funcom_test/27798424.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected JScrollPane createTitleScrollPane () { - if( titleField == null ) { - titleField = createTitleField(); - } - return new JScrollPane( - titleField, - ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER, - ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED - ); - } // createTitleScrollPane() - COM: <s> factory method for instantiating the title jscroll pane </s> - diff --git a/funcom_test/27798524.txt b/funcom_test/27798524.txt deleted file mode 100644 index 3c577243dbc3bd783c5e0cab436d52d75e6e02bd..0000000000000000000000000000000000000000 --- a/funcom_test/27798524.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String findNextValue(String k, String v) { - boolean foundV = false; - if (k == null) { - for (int i = nkeys; --i >= 0;) - if (keys[i] == null) - if (foundV) - return values[i]; - else if (values[i] == v) - foundV = true; - } else - for (int i = nkeys; --i >= 0;) - if (k.equalsIgnoreCase(keys[i])) - if (foundV) - return values[i]; - else if (values[i] == v) - foundV = true; - return null; - } - COM: <s> find the next value that corresponds to this key </s> - diff --git a/funcom_test/27798569.txt b/funcom_test/27798569.txt deleted file mode 100644 index 8cd1255f688708aa4929006b70e30dbfd27d7636..0000000000000000000000000000000000000000 --- a/funcom_test/27798569.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Class loadClassFromFile(String fileName) throws ClassNotFoundException { - InputStream is; - try { - byte buf[] = getByteArray(fileName); - Class c = super.defineClass(null, buf, 0, buf.length); - if (c != null) { - localResolveClass(c); - } - if (c==null) - throw new ClassNotFoundException(fileName); - return c; - } catch (Exception ex) { - debug("LoadFromFile/caught "+ex+" when loading from file "+fileName); - throw new ClassNotFoundException(fileName); - } - } - COM: <s> helper function load a class from a file </s> - diff --git a/funcom_test/27798650.txt b/funcom_test/27798650.txt deleted file mode 100644 index ac272f358a7f479061c9e6c1f90f4b2f626c571c..0000000000000000000000000000000000000000 --- a/funcom_test/27798650.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public char getResourceMnemonic ( String basename, String key ) { - String resource_string = getResourceString( basename, key ); - if( resource_string.length() == 0 ) { - return Character.MIN_VALUE; - } - return resource_string.charAt( 0 ); - } // getResourceMnemonic( String, String ) - COM: <s> get the resource string associated with a given key but just return its </s> - diff --git a/funcom_test/27798672.txt b/funcom_test/27798672.txt deleted file mode 100644 index cc6535df1efee30898f74a6671f0474a9f8a14a1..0000000000000000000000000000000000000000 --- a/funcom_test/27798672.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setTableReader ( TableReader table_reader ) { - if( table_reader == null ) { - throw new IllegalArgumentException( "The TableReader may not be null." ); - } - TableReader old_table_reader = table_reader; - tableReader = table_reader; - pcs.firePropertyChange( "tableReader", old_table_reader, table_reader ); - } // setTableReader( TableReader ) - COM: <s> the table reader may not be null </s> - diff --git a/funcom_test/27798878.txt b/funcom_test/27798878.txt deleted file mode 100644 index 57748bdcd97d9511f99064237afce9c59e052c1c..0000000000000000000000000000000000000000 --- a/funcom_test/27798878.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void resetIgnoreRows () { - if( tableData == null ) { - // TODO: Error handling - System.err.println( "WARNING: Unable to resetIgnoreRows because getTableData() is null." ); - return; - } - resetIgnoreRows( tableData.size() ); - } // resetIgnoreRows() - COM: <s> re allocate the ignore rows boolean array </s> - diff --git a/funcom_test/27798960.txt b/funcom_test/27798960.txt deleted file mode 100644 index fb58cba05b5bed9433069de6a88a1f47e1c7a55d..0000000000000000000000000000000000000000 --- a/funcom_test/27798960.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected PropertyValueProvider createPropertyValueProvider ( Object peer ) { - SimplePropertyValueProvider simple_pvp = - new SimplePropertyValueProvider( getDataType(), peer ); - if( !dataTypePropertyChangeEventSource ) { - simple_pvp.setBound( false ); - } - return simple_pvp; - } // createPropertyValueProvider( Object ) - COM: <s> factory method for instantiating objects of type property value provider for </s> - diff --git a/funcom_test/27798991.txt b/funcom_test/27798991.txt deleted file mode 100644 index b9620733f37790709025800653455fe8ca14dad6..0000000000000000000000000000000000000000 --- a/funcom_test/27798991.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Binding getOldBinding () { - if( type >= 10 ) { - if( oldBindings == null ) { - return null; - } else if( oldBindings.length == 1 ) { - return oldBindings[ 0 ]; - } else { - throw new IllegalStateException( "This BetterNamingEvent has multiple old bindings. Use getOldBindings() instead." ); - } - } - return super.getOldBinding(); - } // getOldBinding() - COM: <s> retrieves the binding of the object before the change </s> - diff --git a/funcom_test/27798996.txt b/funcom_test/27798996.txt deleted file mode 100644 index 84442f7411afad8121d5cf7ff00bd8cf8473d7a8..0000000000000000000000000000000000000000 --- a/funcom_test/27798996.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Binding getNewBinding () { - if( type >= 10 ) { - if( newBindings == null ) { - return null; - } else if( newBindings.length == 1 ) { - return newBindings[ 0 ]; - } else { - throw new IllegalStateException( "This BetterNamingEvent has multiple new bindings. Use getNewBindings() instead." ); - } - } - return super.getNewBinding(); - } // getNewBinding() - COM: <s> retrieves the binding of the object after the change </s> - diff --git a/funcom_test/27799066.txt b/funcom_test/27799066.txt deleted file mode 100644 index 3aa1477178066211c631d9821517320e8e2aaaa6..0000000000000000000000000000000000000000 --- a/funcom_test/27799066.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void resetIgnoreColumns () { - if( tableData == null ) { - // TODO: Error handling - System.err.println( "WARNING: Unable to resetIgnoreColumns because getTableData() is null." ); - return; - } - resetIgnoreColumns( TableReader.countTableColumns( tableData ) ); - } // resetIgnoreColumns() - COM: <s> re allocate the ignore colums boolean array </s> - diff --git a/funcom_test/27799079.txt b/funcom_test/27799079.txt deleted file mode 100644 index 3b39115d0238d45b92db5bcde1bb48bd2583527f..0000000000000000000000000000000000000000 --- a/funcom_test/27799079.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void resizeIgnoreColumns () { - if( tableData == null ) { - // TODO: Error handling - System.err.println( "WARNING: Unable to resetIgnoreColumns because getTableData() is null." ); - return; - } - resizeIgnoreColumns( TableReader.countTableColumns( tableData ) ); - } // resizeIgnoreColumns(..) - COM: <s> re allocate the ignore columns boolean array for the given length </s> - diff --git a/funcom_test/27799154.txt b/funcom_test/27799154.txt deleted file mode 100644 index 66a6d8b7fe3c00ab70fa2aca6613601774a397eb..0000000000000000000000000000000000000000 --- a/funcom_test/27799154.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void resetColumnTypes () { - if( tableData == null ) { - // TODO: Error handling - System.err.println( "WARNING: Unable to resetColumnTypes because getTableData() is null." ); - return; - } - resetColumnTypes( TableReader.countTableColumns( tableData ) ); - } // resetColumnTypes() - COM: <s> re allocate the column types array </s> - diff --git a/funcom_test/27799530.txt b/funcom_test/27799530.txt deleted file mode 100644 index 4576469c8ec426b4ef2ee61dcf705822b7e29046..0000000000000000000000000000000000000000 --- a/funcom_test/27799530.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected JScrollPane createContentScrollPane () { - if( contentPanel == null ) { - contentPanel = createContentPanel(); - } - return new JScrollPane( - contentPanel, - ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, - ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED - ); - } // createContentScrollPane() - COM: <s> factory method for instantiating the content jscroll pane </s> - diff --git a/funcom_test/27799549.txt b/funcom_test/27799549.txt deleted file mode 100644 index 6d7e5fabdb453fd2e345b6a35472858739058604..0000000000000000000000000000000000000000 --- a/funcom_test/27799549.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object get () { - while( true ) { - Thread t = threadVar.get(); - if( t == null ) { - return getValue(); - } - try { - t.join(); - } catch( InterruptedException e ) { - Thread.currentThread().interrupt(); // propagate - return null; - } - } - } // get() - COM: <s> return the value created by the code construct code method </s> - diff --git a/funcom_test/27799750.txt b/funcom_test/27799750.txt deleted file mode 100644 index b2c10c5666f43177fd5ae68a5960aa9303939a63..0000000000000000000000000000000000000000 --- a/funcom_test/27799750.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getDimensionUnitIndexAtPoint ( Point point ) { - if( isHorizontal() ) { - return getDimensionModel().getDimensionUnitIndexAtDistance( point.x ); - } else { - return getDimensionModel().getDimensionUnitIndexAtDistance( point.y ); - } - } // getDimensionUnitIndexAtPoint(..) - COM: <s> delegates to the dimension models </s> - diff --git a/funcom_test/27799910.txt b/funcom_test/27799910.txt deleted file mode 100644 index fb7ca3668f41caa30f5da50e88e1bbeabb701317..0000000000000000000000000000000000000000 --- a/funcom_test/27799910.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void firePropertyChange(String propertyName, int oldValue, int newValue) { - if ((changeSupport != null) && (oldValue != newValue)) { - changeSupport.firePropertyChange(propertyName, new Integer(oldValue), new Integer(newValue)); - } - } - COM: <s> reports a bound property change </s> - diff --git a/funcom_test/27799912.txt b/funcom_test/27799912.txt deleted file mode 100644 index 3a4fc854ac20528cd54befc92a5a3674ad0cb00c..0000000000000000000000000000000000000000 --- a/funcom_test/27799912.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getColumnName ( int col_i ) { - String name = ""; - - while( col_i >= 0 ) { - // TODO: Test this. - name = ( ( char )( ( char )( col_i % 26 ) + 'A' ) ) + name; - col_i = ( ( col_i / 26 ) - 1 ); - } - return name; - } // getColumnName(..) - COM: <s> return a default name for the column using spreadsheet conventions a b </s> - diff --git a/funcom_test/27800016.txt b/funcom_test/27800016.txt deleted file mode 100644 index a760e53cd1faad856f0e99d649563a12c74574d4..0000000000000000000000000000000000000000 --- a/funcom_test/27800016.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void setValueIsAdjusting ( boolean new_adjusting ) { - table.getRowModel().getSelectionModel().setValueIsAdjusting( - new_adjusting - ); - table.getColumnModel().getSelectionModel().setValueIsAdjusting( - new_adjusting - ); - } // setValueIsAdjusting(..) - COM: <s> delegates to the row models and column models selection models </s> - diff --git a/funcom_test/27800218.txt b/funcom_test/27800218.txt deleted file mode 100644 index cfd7dc53d823ab00d67f8d1ec446dc78b6b479b6..0000000000000000000000000000000000000000 --- a/funcom_test/27800218.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Dimension getMinimumSize ( JComponent component ) { - Dimension table_minimum_size = - treeTableTool.getTable().getMinimumSize(); - if( treeTableTool.isHorizontal() ) { - return new Dimension( table_minimum_size.width, prerootDepth ); - } else { - return new Dimension( prerootDepth, table_minimum_size.height ); - } - } // getMinimumSize(..) - COM: <s> return the minimum size of the tree table tool </s> - diff --git a/funcom_test/27800252.txt b/funcom_test/27800252.txt deleted file mode 100644 index 660bf3abb63bf20739d19e45654e9547e23444ba..0000000000000000000000000000000000000000 --- a/funcom_test/27800252.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Dimension getMaximumSize ( JComponent component ) { - Dimension table_maximum_size = - treeTableTool.getTable().getMaximumSize(); - if( treeTableTool.isHorizontal() ) { - return new Dimension( table_maximum_size.width, Integer.MAX_VALUE ); - } else { - return new Dimension( Integer.MAX_VALUE, table_maximum_size.height ); - } - } // getMaximumSize(..) - COM: <s> return the maximum size of the tree table tool </s> - diff --git a/funcom_test/27800734.txt b/funcom_test/27800734.txt deleted file mode 100644 index 29221eeb46fc65345b9f963cfcb8cc6682ac6b6b..0000000000000000000000000000000000000000 --- a/funcom_test/27800734.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setPassingTypes ( Class[] new_passing_types ) { - Class[] old_passing_types = passingTypes; - if( ArrayUtilities.equals( new_passing_types, old_passing_types ) ) { - return; - } - passingTypes = new_passing_types; - pcs.firePropertyChange( - "passingTypes", - old_passing_types, - new_passing_types - ); - } // setPassingTypes(..) - COM: <s> property change listeners registered for passing types will be notified if </s> - diff --git a/funcom_test/27800736.txt b/funcom_test/27800736.txt deleted file mode 100644 index be722c3fb71917b1684f8702f48c926efcc62c8d..0000000000000000000000000000000000000000 --- a/funcom_test/27800736.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setName ( String new_name ) { - if( new_name == null ) { - new_name = ""; - } - if( ( name != null ) && name.equals( new_name ) ) { - return; - } - String old_name = name; - name = new_name; - pcs.firePropertyChange( "name", old_name, new_name ); - } // setName(..) - COM: <s> property change listeners registered for name will be notified if the name </s> - diff --git a/funcom_test/27801012.txt b/funcom_test/27801012.txt deleted file mode 100644 index 345a0d8676efba81d818e7327d3be0bf9824e291..0000000000000000000000000000000000000000 --- a/funcom_test/27801012.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setType ( Class type ) { - this.type = type; - if( type == null ) { - setPassingTypes( new Class[ 0 ] ); - } else { - setPassingTypes( new Class[] { type } ); - } - setName( - "Objects of type " + - ( ( type == null ) ? - null : - type - ) - ); - } // setType(..) - COM: <s> the filter name will be set to objects of type type </s> - diff --git a/funcom_test/27801089.txt b/funcom_test/27801089.txt deleted file mode 100644 index 04ab4293aa98a199e28e245672079016b30c8e51..0000000000000000000000000000000000000000 --- a/funcom_test/27801089.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void updateName () { - setName( - "Objects for which \"" + key + "\" " + - equalityState + " " + - ( ( value instanceof String ) ? "\"" : "" ) + - value + - ( ( value instanceof String ) ? "\"" : "" ) + - " (using comparator \"" + comparator + "\")" - ); - } - COM: <s> sets the name if this key value filter to objects for which key </s> - diff --git a/funcom_test/27801119.txt b/funcom_test/27801119.txt deleted file mode 100644 index 6f39638125e0cb158381e121e19b53c437106de2..0000000000000000000000000000000000000000 --- a/funcom_test/27801119.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected boolean isFilterCyclic ( Filter filter ) { - if( customizer == null ) { - return false; - } - FilterCustomizer ancestor = - customizer.getFilterCustomizerParent(); - while( ancestor != null ) { - if( ancestor.getFilter() == filter ) { - return true; - } - ancestor = ancestor.getFilterCustomizerParent(); - } - return false; - } // isFilterCyclic(..) - COM: <s> utility method to check if a given filter is already </s> - diff --git a/funcom_test/27801486.txt b/funcom_test/27801486.txt deleted file mode 100644 index f41bdfee841449ec70121982f9e020d3a77b75de..0000000000000000000000000000000000000000 --- a/funcom_test/27801486.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setRenderer ( Class type, BetterTableCellRenderer renderer ) { - if( type == null ) { - throw new IllegalArgumentException( "The type must not be null." ); - } - if( renderer == null ) { - typeRendererMap.remove( type ); - } else { - typeRendererMap.put( type, renderer ); - } - } // setRenderer( Class, BetterTableCellRenderer ) - COM: <s> associate the given renderer with the given type </s> - diff --git a/funcom_test/27801498.txt b/funcom_test/27801498.txt deleted file mode 100644 index adbd1e6ad8103a300735a6c3f92e339f3bf3d336..0000000000000000000000000000000000000000 --- a/funcom_test/27801498.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setBinWidth ( double new_bin_width ) { - double old_bin_width = binWidth; - binWidth = new_bin_width; - pcs.firePropertyChange( - "binWidth", - new Double( old_bin_width ), - new Double( new_bin_width ) - ); - repaint(); - } // setBinWidth( double ) - COM: <s> sets the bin width and repaints </s> - diff --git a/funcom_test/27801499.txt b/funcom_test/27801499.txt deleted file mode 100644 index af0a51fcce4d30c5dd5b06caf874994709746edd..0000000000000000000000000000000000000000 --- a/funcom_test/27801499.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public BetterTableCellRenderer getRenderer ( Class type ) { - if( type == null ) { - return null; - } - Object renderer = typeRendererMap.get( type ); - if( renderer != null ) { - return ( BetterTableCellRenderer )renderer; - } - // Tail recurse to help the optimizer. - return getRenderer( type.getSuperclass() ); - } // getRenderer( Class ) - COM: <s> get the renderer associated with the given type </s> - diff --git a/funcom_test/27801531.txt b/funcom_test/27801531.txt deleted file mode 100644 index b5a1a0f89020e32eeb4a1af3ff73f17478e2c2f9..0000000000000000000000000000000000000000 --- a/funcom_test/27801531.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEditor ( Class type, BetterTableCellEditor editor ) { - if( type == null ) { - throw new IllegalArgumentException( "The type must not be null." ); - } - if( editor == null ) { - typeEditorMap.remove( type ); - } else { - typeEditorMap.put( type, editor ); - } - } // setEditor( Class, BetterTableCellEditor ) - COM: <s> associate the given editor with the given type </s> - diff --git a/funcom_test/27801551.txt b/funcom_test/27801551.txt deleted file mode 100644 index bf7567289167744b259945228aaf4e552e767679..0000000000000000000000000000000000000000 --- a/funcom_test/27801551.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public BetterTableCellEditor getEditor ( Class type ) { - if( type == null ) { - return null; - } - Object editor = typeEditorMap.get( type ); - if( editor != null ) { - return ( BetterTableCellEditor )editor; - } - // Tail recurse to help the optimizer. - return getEditor( type.getSuperclass() ); - } // getEditor( Class ) - COM: <s> get the editor associated with the given type </s> - diff --git a/funcom_test/27801576.txt b/funcom_test/27801576.txt deleted file mode 100644 index 0ae48de1775de7d6a6905206a98c4a0f323140a2..0000000000000000000000000000000000000000 --- a/funcom_test/27801576.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ZViewNode getZViewNode() { - if ( viewNode == null ) { - viewNode = new ZViewNode(this); - //System.out.print("it is null..."); - } - //System.out.println("getting the ZViewNode!"); - return viewNode; - } - COM: <s> the returned view node can be used for color changing etc </s> - diff --git a/funcom_test/27801578.txt b/funcom_test/27801578.txt deleted file mode 100644 index 0259aa4a843dc9b0e1781851f735645c0802afae..0000000000000000000000000000000000000000 --- a/funcom_test/27801578.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setShowingVerticalLines ( boolean new_showing ) { - if( showingVerticalLines == new_showing ) { - return; - } - showingVerticalLines = new_showing; - // Notify. It's bound. - firePropertyChange( - "showingVerticalLines", - !showingVerticalLines, - showingVerticalLines - ); - repaint(); - } // setShowingVerticalLines(..) - COM: <s> repaint if the value changes </s> - diff --git a/funcom_test/27801580.txt b/funcom_test/27801580.txt deleted file mode 100644 index 96cbf6b1dca2728bf0dd85eee347b8971d3a532d..0000000000000000000000000000000000000000 --- a/funcom_test/27801580.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void remove () { - //remove from model - model.remove( (GraphNode)this ); - //remove from view - model.getZGraphView().getZLayerGroup(ZGraphView.NODE_GROUP).removeChild( ((ZNode)getZViewNode().getLeaf())); - }; - COM: <s> this removes the graph node from the model </s> - diff --git a/funcom_test/27801641.txt b/funcom_test/27801641.txt deleted file mode 100644 index ebcaffb3d87977997eb23351f258e6f1fa7e96d8..0000000000000000000000000000000000000000 --- a/funcom_test/27801641.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setDestination(Point2D pt) { - destPt = pt; - srcPt.setLocation(srcBounds.getX()+(srcBounds.getWidth()/2.0),srcBounds.getY()+(srcBounds.getHeight()/2.0)); - - updateSourcePoint(); - setCoords(srcPt,destPt); - repaint(); - } - COM: <s> set the destination point used for rubberbanding </s> - diff --git a/funcom_test/27801653.txt b/funcom_test/27801653.txt deleted file mode 100644 index e2e2ea5736e19c3ab7aa317a72e3fb587cf01835..0000000000000000000000000000000000000000 --- a/funcom_test/27801653.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void remove() { - ((ZGroup)srcAncestor).removeGroupListener(this); - ((ZGroup)destAncestor).removeGroupListener(this); - ZNode top = getParents()[0].editor().getTop(); - top.getParent().removeChild(top); - srcNode = null; - destNode = null; - } - COM: <s> removes itself from the scene graph </s> - diff --git a/funcom_test/27801691.txt b/funcom_test/27801691.txt deleted file mode 100644 index d5f0e2cfb36f6ec1b00162b5e1d624d5aae831fd..0000000000000000000000000000000000000000 --- a/funcom_test/27801691.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void globalBoundsChanged(ZNodeEvent e) { - if (e.getNode() == srcNode) { - - //System.err.println("Global Bounds Changed Event noticed..."); - srcBounds = srcNode.getGlobalBounds(); - - updateSourcePoint(); - //srcPt.setLocation(srcBounds.getX(),srcBounds.getY()); - //setTranslation(srcPt); - repaint(); - } - } - COM: <s> global bounds changed event </s> - diff --git a/funcom_test/27801726.txt b/funcom_test/27801726.txt deleted file mode 100644 index 55d0246bd009a6f0202e06f439c1f0bdba9ba5c9..0000000000000000000000000000000000000000 --- a/funcom_test/27801726.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setVisible( boolean visible ) { - this.visible = visible; - if ( visible ) { - if ( !source.isVisible() ) { - source.setVisible(true); - } - if ( !target.isVisible() ) { - target.setVisible(true); - } - viewEdge.show(); - } else { - viewEdge.hide(); - } - } - COM: <s> checks to make sure that its nodes are already visible otherwise we would </s> - diff --git a/funcom_test/27801909.txt b/funcom_test/27801909.txt deleted file mode 100644 index 24467f56badcfa6464e2c9723e42476d24f91a66..0000000000000000000000000000000000000000 --- a/funcom_test/27801909.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ZLayerGroup getZLayerGroup( int layer ) { - if ( layer == NODE_GROUP ) { - if ( nodeGroup == null ) { - System.out.println("WTF????"); - } - return nodeGroup; - } else if ( layer == EDGE_GROUP ) { - return edgeGroup; - } else { - return otherGroup; - } - } - COM: <s> return the wanted layer group </s> - diff --git a/funcom_test/27802034.txt b/funcom_test/27802034.txt deleted file mode 100644 index 5a3a439c2a661363345ae0d53676da239840bbcc..0000000000000000000000000000000000000000 --- a/funcom_test/27802034.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Point2D getSourceHandlePoint() { - // If there are no points in the list, use the point opposite - // to the sourcePoint... the targetPoint. - if ( handlePointList.size() == 0 ) - return targetPoint; - - // If there are points, then use the one closest to the sourcePoint. - else - return (Point2D)handlePointList.get(0); - } - COM: <s> returns the handle point2 d closest to the source node </s> - diff --git a/funcom_test/27802039.txt b/funcom_test/27802039.txt deleted file mode 100644 index e5ebc7f026745d04e80ac7e351569bb51d8b06db..0000000000000000000000000000000000000000 --- a/funcom_test/27802039.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Point2D getTargetHandlePoint() { - - // If there are no points in the list, use the point opposite - // to the targetPoint... the sourcePoint. - if ( handlePointList.size() == 0 ) - return sourcePoint; - - // If there are points, then use the one closest to the targetPoint. - else - return (Point2D)handlePointList.get( handlePointList.size() - 1 ); - } - COM: <s> returns the handle point2 d closest to the target node </s> - diff --git a/funcom_test/27802044.txt b/funcom_test/27802044.txt deleted file mode 100644 index 29842a04f173eab9badeb91af3e67655af5a5805..0000000000000000000000000000000000000000 --- a/funcom_test/27802044.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addHandle( Point2D pt ) { - - int ind = CubicGenerator.getListIndex(pt, drawPoints, lineStyle); - PNamedHandle h = createHandle(pt); - addChild(h); - handleList.insertElementAt( h, ind ); - handlePointList.insertElementAt( pt, ind ); - - updateEdgeView(); - } - COM: <s> add a phandle to the edge at the point specified </s> - diff --git a/funcom_test/27802051.txt b/funcom_test/27802051.txt deleted file mode 100644 index f62d931035d3c0704da6a82916131a531845b21c..0000000000000000000000000000000000000000 --- a/funcom_test/27802051.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private PNamedHandle createHandle( Point2D pt ) { - return new PNamedHandle( pt.toString(), new PPointLocator( this, pt ) ) { - public void dragHandle(PDimension dim, PInputEvent aEvent) { - localToParent(dim); - ((PPointLocator)getLocator()).update( dim.getWidth(), dim.getHeight() ); - updateEdgeView(); - } - }; - } - COM: <s> creates a phandle based on the input point </s> - diff --git a/funcom_test/27802063.txt b/funcom_test/27802063.txt deleted file mode 100644 index aec263530e6913909b25aa51e5706a3f6536e088..0000000000000000000000000000000000000000 --- a/funcom_test/27802063.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean handleAlreadyExists( Point2D pt ) { - for ( int i = 0; i < handleList.size(); i++ ) { - Rectangle2D rect = new Rectangle2D.Double( pt.getX(), pt.getY(), 1.0,1.0); - if ( ((PNamedHandle)handleList.get(i)).intersects( rect ) ) - return true; - } - return false; - } - COM: <s> checks to see if a phandle already exists for the given point </s> - diff --git a/funcom_test/27802092.txt b/funcom_test/27802092.txt deleted file mode 100644 index 8355cd3bd7dde3a03fc5e6cc71ab394fc78772dd..0000000000000000000000000000000000000000 --- a/funcom_test/27802092.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void updateEdgeView () { - - targetPoint = targetLocator.locatePoint( targetPoint ); - targetPoint = target.localToGlobal( targetPoint ); - sourcePoint = sourceLocator.locatePoint( sourcePoint ); - sourcePoint = source.localToGlobal( sourcePoint ); - - updateTargetPointView(); - updateSourcePointView(); - - if ( !inLargeGraph ) { - updateTargetArrow(); - updateSourceArrow(); - } - - updateLine(); - } - COM: <s> this is the main method called to update the drawing of the edge </s> - diff --git a/funcom_test/27802160.txt b/funcom_test/27802160.txt deleted file mode 100644 index 35cb69022ee54352cf1324e9da1b88678ed93820..0000000000000000000000000000000000000000 --- a/funcom_test/27802160.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void initializeIndexMap () { - super2modelIndexMap = new OpenIntIntHashMap( PrimeFinder.nextPrime(matrix.rows() ) ); - Iterator nodes = nodesIterator(); - int modelIndex = 0; - while ( nodes.hasNext() ) { - PGraphNode node = (PGraphNode)nodes.next(); - super2modelIndexMap.put( node.getIndex(), modelIndex ); - modelIndex++; - } - } - COM: <s> initialize the index map by setting the key to the supermodel index </s> - diff --git a/funcom_test/27802170.txt b/funcom_test/27802170.txt deleted file mode 100644 index c9a6e333dfd700d76423058388da5cb306674569..0000000000000000000000000000000000000000 --- a/funcom_test/27802170.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void drawIcon( Point2D s, Point2D t ) { - - source = s; - target = t; - calcLineLen(); - calcPositions(); - float[] xs = new float[] { (float)topX, (float)botX }; - float[] ys = new float[] { (float)topY, (float)botY }; - - setPathToPolyline( xs, ys ); - } - COM: <s> draws the icon </s> - diff --git a/funcom_test/27802185.txt b/funcom_test/27802185.txt deleted file mode 100644 index 9d25180470ac7ba5502ed8bd1c7012acd9b5e6d5..0000000000000000000000000000000000000000 --- a/funcom_test/27802185.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public GraphModel createGraphModel ( List includedNodes ) { - num_models++; - System.out.println("PGraphModel: creating a new non-super graphmodel: "+num_models); - - GraphModel model = new PGraphModel( "Phoebe"+num_models, getModelSubSet( includedNodes ) ); - - getCommunity().add( model ); - - //return new PGraphModel( "Phoebe"+num_models, getModelSubSet( includedNodes ) ); - - - return model; - } - COM: <s> create a new pgraph model based on set of nodes </s> - diff --git a/funcom_test/27802202.txt b/funcom_test/27802202.txt deleted file mode 100644 index 592056e6ee5ec1167e69436d8fae60937a2820be..0000000000000000000000000000000000000000 --- a/funcom_test/27802202.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void calcPositions() { - - double x1 = target.getX(); - double y1 = target.getY(); - - double x2 = source.getX(); - double y2 = source.getY(); - - sinTheta = (y1-y2)/lineLen; - cosTheta = (x1-x2)/lineLen; - - newY = y1 - sinTheta*diameter; - newX = x1 - cosTheta*diameter; - - midY = y1 - sinTheta*diameter/2; - midX = x1 - cosTheta*diameter/2; - } - COM: <s> calculates the points needed to draw the circle </s> - diff --git a/funcom_test/27802244.txt b/funcom_test/27802244.txt deleted file mode 100644 index cfec68e181293d6f314a37dd739214bb7224a69c..0000000000000000000000000000000000000000 --- a/funcom_test/27802244.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean intersects( Point2D pt ) { - double rectSize = 20.0; - for ( int i = 0; i < drawPoints.length-1; i++ ) { - Rectangle2D rect = new Rectangle2D.Double( pt.getX()-rectSize/2, pt.getY()-rectSize/2, rectSize,rectSize); - Line2D l = new Line2D.Double( drawPoints[i], drawPoints[i+1] ); - if ( l.intersects( rect ) ) - return true; - } - return false; - } - COM: <s> a new hacky intersects </s> - diff --git a/funcom_test/27802252.txt b/funcom_test/27802252.txt deleted file mode 100644 index 5920d9c328aec10a3186d2e90a9141a9a6408281..0000000000000000000000000000000000000000 --- a/funcom_test/27802252.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void drawSelected () { - - // For each point in handlePointList, add a handle. - for ( int i = 0; i < handlePointList.size(); i++ ) { - PNamedHandle h = createHandle( (Point2D)handlePointList.get(i) ); - addChild( h ); - handleList.add( h ); - } - setStrokePaint( Color.red ); - - } - COM: <s> draws the edge as red and draws any handles previously added </s> - diff --git a/funcom_test/27802263.txt b/funcom_test/27802263.txt deleted file mode 100644 index 93bbb09d965733a49cff9973cf3b38f0931ea2e8..0000000000000000000000000000000000000000 --- a/funcom_test/27802263.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setWaitMode ( boolean wait_mode ) { - Iterator graph_views = graphViewIterator(); - //while( graph_views.hasNext() ) { - // ( ( PGraphView )graph_views.next() ).setWaitMode( wait_mode ); - //} - } // setWaitMode( boolean ) - COM: <s> set all pgraph views wait mode properties to the given value </s> - diff --git a/funcom_test/27802266.txt b/funcom_test/27802266.txt deleted file mode 100644 index 00d842ba56b4dc04c276fab4904c2d81c580b425..0000000000000000000000000000000000000000 --- a/funcom_test/27802266.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void drawUnselected() { - - // Remove each handle, but don't remove the associated point. - for ( int i = 0; i < handlePointList.size(); i++ ) - removeChild( (PNamedHandle) handleList.get(i) ); - handleList.removeAllElements(); - setStrokePaint( Color.black ); - - } - COM: <s> draws the edge as black and removes any handles from the display </s> - diff --git a/funcom_test/27802547.txt b/funcom_test/27802547.txt deleted file mode 100644 index f449ca9c050870256ebcbc371d17192a5bf6a180..0000000000000000000000000000000000000000 --- a/funcom_test/27802547.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public List allElementsList () { - IntArrayList rowList = new IntArrayList(matrix.cardinality()); - IntArrayList columnList = new IntArrayList(matrix.cardinality()); - ObjectArrayList valueList = new ObjectArrayList(matrix.cardinality()); - matrix.getNonZeros(rowList, columnList, valueList); - return valueList.toList(); - } - COM: <s> returns a list of all the bas elements in the model </s> - diff --git a/funcom_test/27802617.txt b/funcom_test/27802617.txt deleted file mode 100644 index 2cf08701d6fdf50e5753bad37c3e99c8b84a8277..0000000000000000000000000000000000000000 --- a/funcom_test/27802617.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setRowHeight ( int new_height ) { - for( int row_i = 0; row_i < getRowCount(); row_i++ ) { - getRowModel().getDimensionUnit( row_i ).setPreferredDistanceAcross( new_height ); - } - resizeAndRepaint(); - } // setRowHeight( int ) - COM: <s> set the preferred height of all rows to the given value and then </s> - diff --git a/funcom_test/27802838.txt b/funcom_test/27802838.txt deleted file mode 100644 index ddc412c15abf9ec02651864bc443389987336ba3..0000000000000000000000000000000000000000 --- a/funcom_test/27802838.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public JButton createRemoveDataSetButton ( final DataSetPanel panel ) { - return new JButton ( - new AbstractAction( "Remove" ) { - public void actionPerformed ( ActionEvent evt ) { - // Do this in the GUI Event Dispatch thread... - SwingUtilities.invokeLater( - new Runnable() { - public void run() { - removeDataSet( panel ); - } - } - ); - } - } - ); - } // createRemoveDataSetButton - COM: <s> factory method for instantiating the remove data set button </s> - diff --git a/funcom_test/27802916.txt b/funcom_test/27802916.txt deleted file mode 100644 index 2947f2fc714145f0231e7f46891cd9179d8ce07c..0000000000000000000000000000000000000000 --- a/funcom_test/27802916.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public JButton createRemoveCorrelationSetButton ( final CorrelationSetPanel panel ) { - return new JButton ( - new AbstractAction( "Remove" ) { - public void actionPerformed ( ActionEvent evt ) { - // Do this in the GUI Event Dispatch thread... - SwingUtilities.invokeLater( - new Runnable() { - public void run() { - removeCorrelationSet( panel ); - } - } - ); - } - } - ); - } // createRemoveCorrelationSetButton - COM: <s> factory method for instantiating the remove correlation set button </s> - diff --git a/funcom_test/27803187.txt b/funcom_test/27803187.txt deleted file mode 100644 index d37fbe8c2afb25afdbd636fb463e11a55da0c053..0000000000000000000000000000000000000000 --- a/funcom_test/27803187.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addRowToRowModel ( BetterTableDimensionUnit row ) { - if( row.getLabelValue() == null ) { - row.setLabelValue( - getTableModel().getRowName( row.getModelIndex() ) - ); - } - getRowModel().addDimensionUnit( row ); - } // addRowToRowModel(..) - COM: <s> add the given table row to the end of the row model </s> - diff --git a/funcom_test/27803486.txt b/funcom_test/27803486.txt deleted file mode 100644 index 75ad9d63ee9746643b5a9d50bae9e7e6494bd354..0000000000000000000000000000000000000000 --- a/funcom_test/27803486.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public String createNodeIdentifier ( y.base.Node node ) { - if( getRealizer( node ).getLabelText().equals( "" ) ) { - getRealizer( node ).setLabelText( String.valueOf( nextNodeIdentifier++ ) ); - } - return getRealizer( node ).getLabelText(); - } // createNodeIdentifier(..) - COM: <s> factory method for creating a unique identifier for a y </s> - diff --git a/funcom_test/27803502.txt b/funcom_test/27803502.txt deleted file mode 100644 index f7d684b1946866da9c56f72c55e36e8bc980509a..0000000000000000000000000000000000000000 --- a/funcom_test/27803502.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void visitAllNodesAndEdges () { - - Iterator graph_nodes = nodesIterator(); - while( graph_nodes.hasNext() ) { - graph_nodes.next(); - } - - Iterator graph_edges = edgesIterator(); - while( graph_edges.hasNext() ) { - graph_edges.next(); - } - - } // visitAllNodesAndEdges() - COM: <s> iterate through nodes and edges do nothing with them just ask for them </s> - diff --git a/funcom_test/27803690.txt b/funcom_test/27803690.txt deleted file mode 100644 index bbf8f009485309bcdb78fba8fb7d553fc4b4eb0e..0000000000000000000000000000000000000000 --- a/funcom_test/27803690.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void updateTargetPointView() { - - if ( target instanceof ArrowNode ) { - - - targetPoint.setLocation( ( ( ArrowNode )target).getInPort().getX(), - ( ( ArrowNode )target).getInPort().getY() - ); - - targetPoint = ( ( PNodeView )target).localToGlobal(targetPoint); - - } else { - - super.updateTargetPointView(); - } - - } - COM: <s> finds the exact point where the edge passes through the node surface </s> - diff --git a/funcom_test/27803934.txt b/funcom_test/27803934.txt deleted file mode 100644 index e642b5b0fb93122f0c9ff9f455aab8653c42facd..0000000000000000000000000000000000000000 --- a/funcom_test/27803934.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setUnselectedPaint ( Paint paint ) { - view.setEdgeObjectProperty( rootGraphIndex, - PGraphView.EDGE_PAINT, - paint ); - //TODO: remove? - // what happens when I set the paint of a selected node....oops. - if ( !selected ) { - super.setStrokePaint( paint ); - } - } - COM: <s> this really refers to the b stroke b </s> - diff --git a/funcom_test/27803987.txt b/funcom_test/27803987.txt deleted file mode 100644 index b5be4a4091e3a82421e040cb3339ff80d73cf557..0000000000000000000000000000000000000000 --- a/funcom_test/27803987.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setColumnWidth ( int new_width ) { - for( int column_i = 0; column_i < getColumnCount(); column_i++ ) { - getColumnModel().getDimensionUnit( column_i ).setPreferredDistanceAcross( new_width ); - } - resizeAndRepaint(); - } // setColumnWidth( int ) - COM: <s> set the preferred width of all columns to the given value and then </s> - diff --git a/funcom_test/27804221.txt b/funcom_test/27804221.txt deleted file mode 100644 index e94cbb19c2dbff4fa5e243ce75310c292fa2dab7..0000000000000000000000000000000000000000 --- a/funcom_test/27804221.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateTargetArrow () { - targetEdgeEnd.drawIcon( - bend.getTargetHandlePoint(), - targetPoint); - //targetEdgeEnd.moveToFront(); - targetPoint.setLocation( - targetEdgeEnd.getNewX(), - targetEdgeEnd.getNewY()); - } - COM: <s> draws the edge end also sets the source target points to values such </s> - diff --git a/funcom_test/27804295.txt b/funcom_test/27804295.txt deleted file mode 100644 index f7a472096b9ba9fee1dc92bca06bc755c182f323..0000000000000000000000000000000000000000 --- a/funcom_test/27804295.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setHandles( java.util.List bendPoints ) { - if ( handleList.size() > 0 ) - for ( int i = 0; i < handleList.size(); i++ ) - removeHandle(i); - else - handlePointList.removeAllElements(); - - for ( int i = 0; i < bendPoints.size(); i++ ) - addHandle( i, (Point2D)(bendPoints.get(i)) ); - } - COM: <s> given a list of points removes all existing handles handle points </s> - diff --git a/funcom_test/27804311.txt b/funcom_test/27804311.txt deleted file mode 100644 index 53aaa7ade9495071431611516edfe46789a43a62..0000000000000000000000000000000000000000 --- a/funcom_test/27804311.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void actuallyAddHandle ( int insertIndex , Point2D pt ) { - - if ( edgeView.isSelected() ) { - PNamedHandle h = createHandle(pt); - h.addInputEventListener( edgeView.getEdgeHandler() ); - edgeView.addChild(h); - handleList.insertElementAt(h, insertIndex); - } - handlePointList.insertElementAt(pt, insertIndex); - edgeView.updateEdgeView(); - } - COM: <s> actually add a phandle to the edge at the point and index specified </s> - diff --git a/funcom_test/27804335.txt b/funcom_test/27804335.txt deleted file mode 100644 index 11a585de74b266bbf051d31132a5acfa5571f077..0000000000000000000000000000000000000000 --- a/funcom_test/27804335.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void drawSelected() { - // For each point in handlePointList, add a handle. - for (int i = 0; i < handlePointList.size(); i++) { - PNamedHandle h = createHandle((Point2D) handlePointList.get(i)); - h.addInputEventListener( edgeView.getEdgeHandler() ); - edgeView.addChild(h); - handleList.add(h); - } - } - COM: <s> draws any handles previously added </s> - diff --git a/funcom_test/27804338.txt b/funcom_test/27804338.txt deleted file mode 100644 index b4e23a5c0aa214318262d981a19c0e03525fc8ea..0000000000000000000000000000000000000000 --- a/funcom_test/27804338.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void drawUnselected() { - // Remove each handle, but don't remove the associated point. - for (int i = 0; i < handlePointList.size(); i++) { - if ( i > handleList.size() ) { - continue; - } - edgeView.removeChild((PNamedHandle) handleList.get(i)); - } - handleList.removeAllElements(); - } - COM: <s> removes any handles from the display </s> - diff --git a/funcom_test/27804495.txt b/funcom_test/27804495.txt deleted file mode 100644 index 097f56f00b5c21c8205ab3d643faec4d9ef61b24..0000000000000000000000000000000000000000 --- a/funcom_test/27804495.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addColumnToColumnModel ( BetterTableDimensionUnit column ) { - if( column.getLabelValue() == null ) { - column.setLabelValue( - getTableModel().getColumnName( column.getModelIndex() ) - ); - } - getColumnModel().addDimensionUnit( column ); - } // addColumnToColumnModel(..) - COM: <s> add the given table column to the end of the column model </s> - diff --git a/funcom_test/27804558.txt b/funcom_test/27804558.txt deleted file mode 100644 index f9e6f8ffa8038acde2f5d028867382be94479d7d..0000000000000000000000000000000000000000 --- a/funcom_test/27804558.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setUberCommunity () { - if( CommunityUtilities.uberCommunity != null ) { - if( CommunityUtilities.uberCommunity == this ) { - return; - } - throw new IllegalStateException( "The uberCommunity has already been set to something else." ); - } - CommunityUtilities.uberCommunity = this; - } // setUberCommunity; - COM: <s> set the uber community to be this one </s> - diff --git a/funcom_test/27804603.txt b/funcom_test/27804603.txt deleted file mode 100644 index 61e9ca3ad1fc0a610883ff40937dbe57a58b2aba..0000000000000000000000000000000000000000 --- a/funcom_test/27804603.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean setWidth ( double width ) { - view.setNodeDoubleProperty( rootGraphIndex, - PGraphView.NODE_WIDTH, - width ); - //setBounds( getX(), getY(), width, getHeight() ); - super.setWidth( width ); - return true; - } - COM: <s> todo reconcile with border methods </s> - diff --git a/funcom_test/27804650.txt b/funcom_test/27804650.txt deleted file mode 100644 index 874178231633c032227fcda62e7a3b8d28e92391..0000000000000000000000000000000000000000 --- a/funcom_test/27804650.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setOffset(java.awt.geom.Point2D point) { - view.setNodeDoubleProperty( rootGraphIndex, - PGraphView.NODE_X_POSITION, - point.getX() ); - view.setNodeDoubleProperty( rootGraphIndex, - PGraphView.NODE_Y_POSITION, - point.getY() ); - super.setOffset(point); - // firePropertyChange("Offset", null, this); - } - COM: <s> set the location of this node </s> - diff --git a/funcom_test/27804680.txt b/funcom_test/27804680.txt deleted file mode 100644 index e3d3ba70294173a73ea72757623845d8b73f2ea1..0000000000000000000000000000000000000000 --- a/funcom_test/27804680.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void setRootGraph ( ColtRootGraph root_graph ) { - if( rootGraph != null ) { - if( rootGraph == root_graph ) { - return; - } - throw new IllegalStateException( - "Once the rootGraph is set it may not be re-set." - ); - } - rootGraph = root_graph; - rootGraph.addRootGraphChangeListener( this ); - } // setRootGraph( ColtRootGraph ) - COM: <s> setter for the root graph </s> - diff --git a/funcom_test/27804826.txt b/funcom_test/27804826.txt deleted file mode 100644 index 13aff0ad6906c50ba7f058621977aa67bdd2efac..0000000000000000000000000000000000000000 --- a/funcom_test/27804826.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void delete ( int value ) { - Entry last_entry = null; - Entry entry = first; - while( entry != null ) { - if( entry.value == value ) { - if( last_entry == null ) { - first = entry.next; - } else { - last_entry.next = entry.next; - } - size--; - return; - } - last_entry = entry; - entry = entry.next; - } - } // delete( int ) - COM: <s> delete the first element in this list that is identical to the given </s> - diff --git a/funcom_test/27804837.txt b/funcom_test/27804837.txt deleted file mode 100644 index 43b17fd8cb248807e5985376f0236143630c0233..0000000000000000000000000000000000000000 --- a/funcom_test/27804837.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Node createNode ( int node_index ) { - - if ( nodeIndexObjectMap.containsKey( node_index ) ) { - return ( Node )nodeIndexObjectMap.get( node_index ); - } else { - LunaNode node = new LunaNode( node_index, this ); - nodeIndexObjectMap.put( node_index, node ); - return node; - } - } - COM: <s> this implementation of the giny model will defer creation of node objects </s> - diff --git a/funcom_test/27804838.txt b/funcom_test/27804838.txt deleted file mode 100644 index 7df6e7ba4e77633736358e26d7718b52763c6b4d..0000000000000000000000000000000000000000 --- a/funcom_test/27804838.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Edge createEdge ( int edge_index ) { - - if ( edgeIndexObjectMap.containsKey( edge_index ) ) { - return ( Edge )edgeIndexObjectMap.get( edge_index ); - } else { - LunaEdge edge = new LunaEdge( edge_index, this ); - edgeIndexObjectMap.put( edge_index, edge ); - return edge; - } - } - COM: <s> this implementation of the giny model will defer creation of edge objects </s> - diff --git a/funcom_test/27804934.txt b/funcom_test/27804934.txt deleted file mode 100644 index 648e49156aff4f6b1ec07288bb2deae9c9947266..0000000000000000000000000000000000000000 --- a/funcom_test/27804934.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void start(boolean return_when_done) { - final SwingWorker worker = new SwingWorker() { - public Object construct() { - return new NodeDistancesTask(); - }//construct - }; - worker.start(); - if (return_when_done) { - worker.get(); // maybe use finished() instead - } - }//starts - COM: <s> calculates the apsp in a separate thread </s> - diff --git a/funcom_test/27804974.txt b/funcom_test/27804974.txt deleted file mode 100644 index d34c8f3c831536f103603aa58ad7fc2aa4ac2631..0000000000000000000000000000000000000000 --- a/funcom_test/27804974.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void initialize( Dimension size ) { - if ( currentSize != null ) { - this.currentSize = size; - } else { - // currentSize = new Dimension( graphView.getComponent().getWidth(), - // graphView.getComponent().getHeight() ); - currentSize = new Dimension( 1000, 1000 ); - } - - initialize_local(); - initializeLocations(); - - } - COM: <s> initializer calls tt intialize local tt and </s> - diff --git a/funcom_test/27804975.txt b/funcom_test/27804975.txt deleted file mode 100644 index a0719f0ab9d20301bef3db81124eb9aae60aac11..0000000000000000000000000000000000000000 --- a/funcom_test/27804975.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void initializeLocations() { - for (Iterator iter = graphView.getNodeViewsIterator(); iter.hasNext();) { - NodeView v = ( NodeView ) iter.next(); - - if ( !staticNodes.contains( v ) ) - initializeLocation( v, currentSize); - initialize_local_node_view(v); - } - } - COM: <s> this method calls tt initialize local vertex tt for </s> - diff --git a/funcom_test/27804976.txt b/funcom_test/27804976.txt deleted file mode 100644 index 965572be26173f9cc78f4e61054f05e9b88f506c..0000000000000000000000000000000000000000 --- a/funcom_test/27804976.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void initializeLocation ( NodeView v, Dimension d ) { - double x = Math.random() * d.getWidth(); - double y = Math.random() * d.getHeight(); - v.setXPosition( x, false ); - v.setYPosition( y, false ); - } - COM: <s> sets random locations for a vertex within the dimensions of the space </s> - diff --git a/funcom_test/27804988.txt b/funcom_test/27804988.txt deleted file mode 100644 index 44e990f8bef410eabfaab164ea04adeaaf2697c0..0000000000000000000000000000000000000000 --- a/funcom_test/27804988.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setDragEnabled ( boolean new_drag_enabled ) { - if( dragEnabled == new_drag_enabled ) { - return; - } - if( new_drag_enabled && GraphicsEnvironment.isHeadless() ) { - throw new HeadlessException(); - } - dragEnabled = new_drag_enabled; - } // setDragEnabled(..) - COM: <s> set the drag enabled property to indicate that drag n drop operations may </s> - diff --git a/funcom_test/27805020.txt b/funcom_test/27805020.txt deleted file mode 100644 index 1b656d98cf84f8537936659820520d0c0774a59e..0000000000000000000000000000000000000000 --- a/funcom_test/27805020.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void selectAll () { - if( isEditing() ) { - stopEditing(); - } - if( ( getRowCount() > 0 ) && ( getColumnCount() > 0 ) ) { - setRowSelectionInterval( 0, getRowCount() - 1 ); - setColumnSelectionInterval( 0, getColumnCount() - 1 ); - } - } // selectAll() - COM: <s> select all rows columns and cells in the table </s> - diff --git a/funcom_test/27805078.txt b/funcom_test/27805078.txt deleted file mode 100644 index 706961a2b26641c9153cd6453cbc5c0314ab1356..0000000000000000000000000000000000000000 --- a/funcom_test/27805078.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public JUNGSpringLayout ( GraphView g, LengthFunction f ) { - super(g); - this.lengthFunction = f; - nodeIndexToDataMap = new OpenIntObjectHashMap( PrimeFinder.nextPrime( graphView.getNodeViewCount() ) ); - edgeIndexToDataMap = new OpenIntObjectHashMap( PrimeFinder.nextPrime( graphView.getEdgeViewCount() ) ); - } - COM: <s> constructor for a spring layout for a raw graph with </s> - diff --git a/funcom_test/27806389.txt b/funcom_test/27806389.txt deleted file mode 100644 index 141b39feae742622c0be0f8cbcd5c8e7cb46111f..0000000000000000000000000000000000000000 --- a/funcom_test/27806389.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean hideEdgeView ( EdgeView ev ) { - - // get and reset the change event. - ChangeEvent event = getChangeEvent(); - event.reset(); - event.addHiddenEdgeIndex( ev.getRootGraphIndex() ); - // fire the Event - if ( event != null ) - fireGraphViewChanged( event ); - - return hideGraphObject( ev ); - } - COM: <s> hides an edge view </s> - diff --git a/funcom_test/27807361.txt b/funcom_test/27807361.txt deleted file mode 100644 index c5810959aa0d0e28fa98d2e879ee165e4bbbcfd6..0000000000000000000000000000000000000000 --- a/funcom_test/27807361.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean edgeExists ( Node from, Node to ) { - if( !coltGraphPerspectiveInitialized ) { - throw new IllegalStateException( NOT_INITIALIZED_EXCEPTION_STRING ); - } - if( ( from == null ) || ( to == null ) ) { - throw new IllegalArgumentException( "The Node arguments must not be null" ); - } - return edgeExists( getIndex( from ), getIndex( to ) ); - } // edgeExists( Node, Node ) - COM: <s> determine if there are any edges in this graph perspective from the first </s> - diff --git a/funcom_test/27807903.txt b/funcom_test/27807903.txt deleted file mode 100644 index 2df5e356344bace8a085ea1394fb2964bd205885..0000000000000000000000000000000000000000 --- a/funcom_test/27807903.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addSelectedNodeIndices ( int[] node_indices ) { - if( ( type & NODES_SELECTED_TYPE ) == 0 ) { - selectedNodeIndices = node_indices; - type |= NODES_SELECTED_TYPE; - } else { - selectedNodeIndices = node_indices; - } - }// addSelectedNodeIndices( int[] ) - COM: <s> add some nodes to the collection of newly selected nodes represented by this </s> - diff --git a/funcom_test/27808131.txt b/funcom_test/27808131.txt deleted file mode 100644 index 7a3f9929bf78227eaf97c62e7e9ae0e8d283e219..0000000000000000000000000000000000000000 --- a/funcom_test/27808131.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addSelectedEdgeIndices ( int[] edge_indices ) { - if( ( type & EDGES_SELECTED_TYPE ) == 0 ) { - selectedEdgeIndices = edge_indices; - type |= EDGES_SELECTED_TYPE; - } else { - selectedEdgeIndices = edge_indices; - } // End if this is an extension to an existing collection of selected edges. - } // addSelectedEdgeIndices( int[] ) - COM: <s> add some edges to the collection of newly selected edges represented by this </s> - diff --git a/funcom_test/27811989.txt b/funcom_test/27811989.txt deleted file mode 100644 index 217bcdcdaf99de092a764be2be605749a05cb518..0000000000000000000000000000000000000000 --- a/funcom_test/27811989.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void ensureValuesAreContiguousFrom1 ( OpenIntIntHashMap map ) { - IntArrayList keys = new IntArrayList( map.size() ); - map.keys( keys ); - // TODO: Make sure that this is threadsafe. - ContiguityEnsuringProcedure proc = getContiguityEnsuringProcedure(); - proc.map = map; - keys.forEach( contiguityEnsuringProcedure ); - proc.reset(); - } // ensureValuesAreContiguousFrom1( OpenIntIntHashMap ) - COM: <s> this handy utility method takes an int int map and alters it if </s> - diff --git a/funcom_test/27833953.txt b/funcom_test/27833953.txt deleted file mode 100644 index b5800bc4299005a0274d40cfa9fbc75cb4334529..0000000000000000000000000000000000000000 --- a/funcom_test/27833953.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setSelected(boolean newSelected) throws PropertyVetoException { - if (newSelected != selected) { - checkTransient(); - boolean oldSelected = selected; - vetoSupport.fireVetoableChange("selected", new Boolean(oldSelected), new Boolean(newSelected)); - this.selected = newSelected; - propSupport.firePropertyChange("selected", new Boolean(oldSelected), new Boolean(newSelected)); - } - } - COM: <s> changes the selection state </s> - diff --git a/funcom_test/27833960.txt b/funcom_test/27833960.txt deleted file mode 100644 index 42399ae9b9a4a1baee1c805e73fe2690efaab386..0000000000000000000000000000000000000000 --- a/funcom_test/27833960.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setName(String newName) throws PropertyVetoException { - if (!(newName.equals(name))) { - checkTransient(); - String oldName = name; - vetoSupport.fireVetoableChange("name", oldName, newName); - this.name = newName; - propSupport.firePropertyChange("name", oldName, newName); - } - } - COM: <s> changes the name of this bean </s> - diff --git a/funcom_test/27834070.txt b/funcom_test/27834070.txt deleted file mode 100644 index 08f4df01933c76d66b244d038ccb1915b0bc73ae..0000000000000000000000000000000000000000 --- a/funcom_test/27834070.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setResultType(Class type) { - if (type == Void.TYPE) { - label.setText("(no return value)"); - isVoid = true; - } else { - String name = Utility.getShortClassName(type); - label.setText("Return value (" + name + "): "); - //value.setFixedType(type); - isVoid = false; - } - invalidate(); - validate(); - } - COM: <s> designates the type of return value </s> - diff --git a/funcom_test/27834075.txt b/funcom_test/27834075.txt deleted file mode 100644 index d8046b9f8ebfd1017d34b871537e0bed7fd56e61..0000000000000000000000000000000000000000 --- a/funcom_test/27834075.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setResultValue(Object object) { - try { - if (!(isVoid && object == null)) { - if (value != null) { - remove(value); - } - value = new SmallBeanView(context, object, true, true, true); - - add("Center", value); - invalidate(); - validate(); - } - } catch (Exception err) { - cat.error("An error occurred", err); - } - } - COM: <s> sets the actual return value to be displayed </s> - diff --git a/funcom_test/27834168.txt b/funcom_test/27834168.txt deleted file mode 100644 index 72b77f63a3879d7cda98cfcf23be566fbfc48e2a..0000000000000000000000000000000000000000 --- a/funcom_test/27834168.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void executeMethod(Method method) throws Exception { - if (method != null) { - Object[] params = paramPanel.getValues(); - cat.debug("Invoking " + method + " on " + bean + " with args " + params); - Object returnValue = method.invoke(bean, params); - resultPanel.setResultValue(returnValue); - } - } - COM: <s> executes the given method now </s> - diff --git a/funcom_test/27834204.txt b/funcom_test/27834204.txt deleted file mode 100644 index 616113fd9627274e4dfeed2ae6655cef512ee563..0000000000000000000000000000000000000000 --- a/funcom_test/27834204.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private String generateUniqueName(Object object) { - String className = Utility.getShortClassName(object.getClass()); - - int counter = 1; - boolean done = false; - String name = "???"; - while (!done) { - name = className + counter; - Object otherBean = findBean(name); - if (otherBean == null) { - done = true; - } else { - ++counter; - } - } - return name; - } - COM: <s> generates a default name for the given bean while will </s> - diff --git a/funcom_test/27834302.txt b/funcom_test/27834302.txt deleted file mode 100644 index ee3cd37d502ec11085407a33d97748ae7b2b7053..0000000000000000000000000000000000000000 --- a/funcom_test/27834302.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void showClass() { - classPanel.removeAll(); - try { - Class cl = Class.forName(text.getText()); - LargeBeanView view = new LargeBeanView(context, cl); - classPanel.add("Center", view); - } catch (Exception err) { - classPanel.add("Center", new JLabel(err.toString())); - } - } - COM: <s> shows the currently select class now </s> - diff --git a/funcom_test/27834496.txt b/funcom_test/27834496.txt deleted file mode 100644 index 2cdaf2d30266d8ed82665fc38671531f416f1d3a..0000000000000000000000000000000000000000 --- a/funcom_test/27834496.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean isTypeMutable() { - Class type = getCurrentType(); - return !( - String.class.isAssignableFrom(type) || - Number.class.isAssignableFrom(type) || - Boolean.class.isAssignableFrom(type) || - Color.class.isAssignableFrom(type) || - type.isPrimitive()); - } - COM: <s> mutable classes are basically anything </s> - diff --git a/funcom_test/27834524.txt b/funcom_test/27834524.txt deleted file mode 100644 index 92a22250d1c6727747bebf5e40c39267e56ce4db..0000000000000000000000000000000000000000 --- a/funcom_test/27834524.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String getPackageName(Class _class) { - String packageName = ""; - try { - packageName = _class.getPackage().getName(); - } catch (Exception e) { - packageName = _class.getName(); - int lastDotPos = packageName.lastIndexOf('.'); - if (lastDotPos > -1) - packageName = packageName.substring(0, lastDotPos); - } - - return packageName; - } - COM: <s> get package path name for given class </s> - diff --git a/funcom_test/27867668.txt b/funcom_test/27867668.txt deleted file mode 100644 index 5605b1a74b9528f194b9423cd1e2d60b2338229c..0000000000000000000000000000000000000000 --- a/funcom_test/27867668.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setInitParameter(String key, String value){ - if (logger.isDebugEnabled()) - logger.debug("Entering - key = " + key + ", value = " + value); - this.config.setInitParameter(key, value); - this.actionServletIsInitialized = false; - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> sets an initialization parameter on the </s> - diff --git a/funcom_test/27867725.txt b/funcom_test/27867725.txt deleted file mode 100644 index 72702cfaa83284b30486e54065214d8fde734af8..0000000000000000000000000000000000000000 --- a/funcom_test/27867725.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setActionServlet(ActionServlet servlet) { - if (logger.isDebugEnabled()) - logger.debug("Entering - servlet = " + servlet); - init(); - if (servlet == null) - throw new AssertionFailedError("Cannot set ActionServlet to null"); - this.actionServlet = servlet; - actionServletIsInitialized = false; - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> sets the action servlet to be used in this test execution </s> - diff --git a/funcom_test/27867839.txt b/funcom_test/27867839.txt deleted file mode 100644 index a00be1bd2725138e1ff243d55b0ddf0146c8df32..0000000000000000000000000000000000000000 --- a/funcom_test/27867839.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyInputForward() { - if (logger.isDebugEnabled()) - logger.debug("Entering"); - init(); - Common.verifyForwardPath(request.getPathInfo(),null,getActualForward(),true,request,config.getServletContext(),config); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> verifies if the action servlet controller forwarded to the defined </s> - diff --git a/funcom_test/27867860.txt b/funcom_test/27867860.txt deleted file mode 100644 index 6f1efd77d7f65100587629305a36eb282620804e..0000000000000000000000000000000000000000 --- a/funcom_test/27867860.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void verifyInputTilesForward(String definitionName) { - if (logger.isTraceEnabled()) - logger.trace("Entering - defintionName=" + definitionName); - init(); - Common.verifyTilesForward(request.getPathInfo(),null,definitionName,true,request,config.getServletContext(),config); - if (logger.isTraceEnabled()) - logger.trace("Exiting"); - } - COM: <s> verifies that the action servlet controller forwarded to the defined </s> - diff --git a/funcom_test/27867903.txt b/funcom_test/27867903.txt deleted file mode 100644 index f3425007ba6db090ea34ae61a41ff6db35250c4a..0000000000000000000000000000000000000000 --- a/funcom_test/27867903.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ActionForm getActionForm() { - if (logger.isDebugEnabled()) - logger.debug("Entering"); - init(); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - return Common.getActionForm(request.getPathInfo(),request,config.getServletContext()); - } - COM: <s> returns the action form instance stored in either the request or session </s> - diff --git a/funcom_test/27867916.txt b/funcom_test/27867916.txt deleted file mode 100644 index 4e77add85c816fb82d599e89d66890ade66d21ca..0000000000000000000000000000000000000000 --- a/funcom_test/27867916.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setActionForm(ActionForm form) { - if (logger.isDebugEnabled()) - logger.debug("Entering - form = " + form); - init(); - // make sure ActionServlet is initialized. - Common.setActionForm(form,request,request.getPathInfo(),config.getServletContext()); - if (logger.isDebugEnabled()) - logger.debug("Exiting"); - } - COM: <s> sets an action form instance to be used in this test </s> - diff --git a/funcom_test/27867931.txt b/funcom_test/27867931.txt deleted file mode 100644 index a69499efdc79da945b070ba17f7e6f9ff643995f..0000000000000000000000000000000000000000 --- a/funcom_test/27867931.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void processRequest(boolean flag) { - if (logger.isTraceEnabled()) - logger.trace("Entering - flag=" + flag); - ((StrutsServletContextWrapper) this.config.getServletContext()).setProcessRequest(flag); - if (logger.isTraceEnabled()) - logger.trace("Exiting"); - } - COM: <s> instructs struts test case to fully process a forward request </s> - diff --git a/funcom_test/27907882.txt b/funcom_test/27907882.txt deleted file mode 100644 index 818370ba6062fa488fc30c3c194c5d0bed43fab9..0000000000000000000000000000000000000000 --- a/funcom_test/27907882.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Object put(Object key, Object value, int priority) { - - resetEnumerator(); - - if(key == null) - logger.debug("key is null"); - if(value == null) - logger.debug("value is null"); - - // Go on about putting and bagging business - Object ret = super.put(key, value); - - bags[priority - MIN_PRIORITY].put(key, value); - - objects++; - return ret; - } - COM: <s> maps the specified key to the specified value in this hashtable </s> - diff --git a/funcom_test/27907979.txt b/funcom_test/27907979.txt deleted file mode 100644 index e604403a3b2fd255ef1d41f326b5d1dec66450ac..0000000000000000000000000000000000000000 --- a/funcom_test/27907979.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private String atomToExpression(Atom atom, String name) { - - String expr = name + " = "; - - if (atom instanceof BooleanAtom) { - BooleanAtom booleanAtom = (BooleanAtom) atom; - try { - if(booleanAtom.getBooleanValue()) - expr += "'T'"; - else - expr += "'F'"; - } catch (InvalidStateException e) { - throw new Error("Thing in invalid boolean state"); - } - } - - else if (atom instanceof TextAtom) - expr += "'" + atom.getValue() + "'"; - else - expr += atom.getValue(); - - return expr; - } - COM: <s> returns the expression for inserting or selecting the atom </s> - diff --git a/funcom_test/27908023.txt b/funcom_test/27908023.txt deleted file mode 100644 index 39d4b868ac6bf872d8481ecbceddd9a9dfe291b0..0000000000000000000000000000000000000000 --- a/funcom_test/27908023.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private NodeList XPathList(String xpath, Node parent) { - - if(xpath.equals("") || (xpath.length() == 0)) - throw new Error("Empty XPath string"); - - try { - return XPathAPI.selectNodeList(parent, xpath); - } - catch (javax.xml.transform.TransformerException e) { - e.printStackTrace(); - throw new Error("Invalid XPath or document"); - } - } - COM: <s> private helper function that executes an xpath expression and </s> - diff --git a/funcom_test/27908224.txt b/funcom_test/27908224.txt deleted file mode 100644 index 7f2db7eff3a4dedee4177e2e84431cd2622a05f9..0000000000000000000000000000000000000000 --- a/funcom_test/27908224.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void parseRule(Node actionNode, Decision decision) { - - NodeList ruleList = XMLUtil.selectNodeList(actionNode, "rule"); - for(int i = 0; i < ruleList.getLength(); i++) { - Rule rule = parseRule(ruleList.item(i)); - if(rule == null) - logger.warn("Rule is NULL"); - int priority = getPriority( - XMLUtil.getTextContents("@priority", - ruleList.item(i))); - decision.addRule(rule, priority); - } - } - COM: <s> finds a rule fills it with requirements and hands it to the decision </s> - diff --git a/funcom_test/27908321.txt b/funcom_test/27908321.txt deleted file mode 100644 index 44d7297a8a416c77b459b069b88d7755a578b385..0000000000000000000000000000000000000000 --- a/funcom_test/27908321.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void updateContextThingRecursive(Context context, Thing thing) { - - logger.debug("Updating Context - Entering"); - - // Resolve upper things first - Enumeration things = thing.things(); - while(things.hasMoreElements()) - updateContextThingRecursive(context, - (Thing) things.nextElement()); - - // Now, resolve this thing's atoms - updateContextThing(context, thing); - - logger.debug("Updated Context - Leaving"); - } - COM: <s> private helper function to recurse through the things </s> - diff --git a/funcom_test/2793579.txt b/funcom_test/2793579.txt deleted file mode 100644 index cb53b8f0c377a97949bcf3b9e1b9dfbcb0af1e71..0000000000000000000000000000000000000000 --- a/funcom_test/2793579.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void renderHeader(H headerModel) { - if (isHeaderRendering()) { - defferedSetHeaderModelCallback = new DefferedSetHeaderModelCallback(headerModel); - cancelRendering(headerRenderer); - } else { - this.headerModel = headerModel; - headerTableRenderingListeners.fireOnStart(headerModel, headerRenderer); - isHeaderRendering = render(headerRenderer, headerModel, headerDeferredRendererCallback, isHeaderRendering); - if (!isHeaderRendering) { - headerTableRenderingListeners.fireOnStop(headerModel, headerRenderer); - } - } - } - COM: <s> cancels rendering if its already in process </s> - diff --git a/funcom_test/2795572.txt b/funcom_test/2795572.txt deleted file mode 100644 index 333ad8483c252abdf28d83f2ff26bdb1ef15725e..0000000000000000000000000000000000000000 --- a/funcom_test/2795572.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void pause() { - if (state.getStartTime() == null) { - LOG.debug(format(Messages - .getString("StopWatch.log.sw-paused-useless"))); //$NON-NLS-1$ - } else { - doChangeState( - Messages.getString("StopWatch.txt.pause-sw"), getTime(), null); //$NON-NLS-1$ - LOG.debug(format( - Messages.getString("StopWatch.log.sw-paused"), this)); //$NON-NLS-1$ - } - } - COM: <s> pauses the stopwatch </s> - diff --git a/funcom_test/2795576.txt b/funcom_test/2795576.txt deleted file mode 100644 index 897e39051a444d99a34e5f57e8321eb6cda8cfd0..0000000000000000000000000000000000000000 --- a/funcom_test/2795576.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void start() { - if (state.getStartTime() == null) { - String description; - if (state.getAccumulatedTime() == 0) { - description = Messages.getString("StopWatch.txt.start-sw"); //$NON-NLS-1$ - } else { - description = Messages - .getString("StopWatch.txt.continue-sw"); //$NON-NLS-1$ - } - - doChangeState(description, state.getAccumulatedTime(), - new Date()); - } - } - COM: <s> starts the stopwatch </s> - diff --git a/funcom_test/2795580.txt b/funcom_test/2795580.txt deleted file mode 100644 index 14ac79f429a94c8bce4495bad29a7a15ee671ca5..0000000000000000000000000000000000000000 --- a/funcom_test/2795580.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void stop() { - if ((state.getStartTime() == null) - && (state.getAccumulatedTime() == 0)) { - LOG.debug(format(Messages - .getString("StopWatch.txt.sw-stop-useless"), //$NON-NLS-1$ - this)); - } else { - LOG.debug(format( - Messages.getString("StopWatch.log.sw-stop"), this)); //$NON-NLS-1$ - doChangeState( - Messages.getString("StopWatch.txt.stop-sw"), 0, null); //$NON-NLS-1$ - } - } - COM: <s> stops the stopwatch and returns it to zero </s> - diff --git a/funcom_test/2795584.txt b/funcom_test/2795584.txt deleted file mode 100644 index 51e29c907a8689a57e14b64d3ea39ee9ecaa7036..0000000000000000000000000000000000000000 --- a/funcom_test/2795584.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Date getStartTime() { - /* - * Not totally sure about this. FindBugs complains Date is a mutable - * object but AFAIK it is immutable (mutating methods are all deprecated - * a long time ago). Anyway, we'll stick with this... - */ - Date returnValue; - if (startTime == null) { - returnValue = null; - } else { - returnValue = new Date(startTime.getTime()); - } - - return returnValue; - } - COM: <s> obtain the stopwatchs start time </s> - diff --git a/funcom_test/2795588.txt b/funcom_test/2795588.txt deleted file mode 100644 index 3c9e9346e1884dc412c9f43489a5b2f682545434..0000000000000000000000000000000000000000 --- a/funcom_test/2795588.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void removeListener(StopWListener listener) { - if (listener == null) { - throw new IllegalArgumentException(Messages - .getString("StopWatch.ex.ia.listener-null")); //$NON-NLS-1$ - } - - if (!listeners.remove(listener)) { - throw new IllegalArgumentException( - format( - Messages - .getString("StopWatch.ex.ia.unknown-listener"), listener)); //$NON-NLS-1$ - } - } - COM: <s> removes a listener from the stopwatch </s> - diff --git a/funcom_test/2795604.txt b/funcom_test/2795604.txt deleted file mode 100644 index 18f66878a8496389fe2413f0f7191afb62be0ebc..0000000000000000000000000000000000000000 --- a/funcom_test/2795604.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void removeListener(ELogRegistryListener listener) { - if (listener == null) { - throw new IllegalArgumentException(Messages - .getString("ELogRegistry.ex.ia.listener-null")); //$NON-NLS-1$ - } - - if (!listeners.contains(listener)) { - throw new IllegalArgumentException( - MessageFormat - .format( - Messages - .getString("ELogRegistry.ex.ia-unknown-listener"), listener)); //$NON-NLS-1$ - } - - listeners.remove(listener); - } - COM: <s> removes a previously registered listener from the registry </s> - diff --git a/funcom_test/2795607.txt b/funcom_test/2795607.txt deleted file mode 100644 index f207d7e1b4440a8f1443d10bd6a77aefb4a9fbfe..0000000000000000000000000000000000000000 --- a/funcom_test/2795607.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private EntryLocator locate(ELogEntry entry) { - assert entry != null; - - EntryLocator locator = null; - - int idx = 0; - for (Iterator<ELogEntryImpl> it = entries.iterator(); it.hasNext();) { - ELogEntryImpl curr = it.next(); - if (curr.equals(entry)) { - locator = new EntryLocator(); - locator.entry = curr; - locator.iterator = it; - locator.idx = idx; - break; - } - - idx++; - } - - return locator; - } - COM: <s> finds an entry in the list </s> - diff --git a/funcom_test/27966355.txt b/funcom_test/27966355.txt deleted file mode 100644 index 3d75d5607654551d5ed883c60a4a180fbfe0a8c3..0000000000000000000000000000000000000000 --- a/funcom_test/27966355.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equals(Object obj) { - if (this == obj) - return true; - if (!(obj instanceof PermissionsImpl)) - return false; - PermissionsImpl other = (PermissionsImpl) obj; - boolean equal = owner == other.getOwner() || (owner != null && owner.equals(other.getOwner())); - equal = equal && readersAsSet().equals(other.getReaders()); - equal = equal && writersAsSet().equals(other.getWriters()); - return equal; - } - COM: <s> used only for testing </s> - diff --git a/funcom_test/28110174.txt b/funcom_test/28110174.txt deleted file mode 100644 index 0b2c34e00c07ab4d83810936ceed4cc2ad167cc1..0000000000000000000000000000000000000000 --- a/funcom_test/28110174.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Configuration (final String propertyFileNameParam) throws PropertiesException { - - try { - Locale locale = Locale.getDefault(); - this.propertyFileName = propertyFileNameParam; - this.resourceBundle = ResourceBundle.getBundle(this.propertyFileName, locale); - } catch (final MissingResourceException mre) { - throw new PropertiesException("Unable to locate properties file at " + this.propertyFileName, mre); - } - } - COM: <s> creates an instane of the configuration class </s> - diff --git a/funcom_test/28110187.txt b/funcom_test/28110187.txt deleted file mode 100644 index 39180059c6f4d8bb0b0baaa16cf723bc8aaf26f6..0000000000000000000000000000000000000000 --- a/funcom_test/28110187.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public View (final Object startingObjectParam) throws ViewInitialisationException { - // validate parameters and initialize model - if (startingObjectParam == null) { - - View.displayUserMessage(View.romUIContainerConfiguration.getStartingObjectNullErrorMessage(), JOptionPane.ERROR_MESSAGE); - - } else { - - this.objectModel = ObjectModel.getInstance(); - this.objectModel.setRootObject(startingObjectParam); - - // initialize the frame - this.initialiseContainer(); - - super.setVisible(true); - } - } - COM: <s> constructor for view that sets the starting object and initializes the frame </s> - diff --git a/funcom_test/28110203.txt b/funcom_test/28110203.txt deleted file mode 100644 index d9ae68e388c9af90ddb3cf87386050a0dee7874c..0000000000000000000000000000000000000000 --- a/funcom_test/28110203.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getImagesDirectory() { - - if (ViewConfiguration.imageDirectoryCache == null) { - try { - ViewConfiguration.imageDirectoryCache = super.getStringProperty(ViewConfiguration.IMAGES_DIRECTORY_KEY); - } catch (final PropertiesException rjcepe) { - ViewConfiguration.log.error("A PropertiesException has been caught while attempting to read the images directory", rjcepe); - } - } - - return ViewConfiguration.imageDirectoryCache; - } - COM: <s> returns the images directory </s> - diff --git a/funcom_test/28110251.txt b/funcom_test/28110251.txt deleted file mode 100644 index f4f06efdea047edbf40790262671714f09869987..0000000000000000000000000000000000000000 --- a/funcom_test/28110251.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ObjectStructureTreeRenderer () { - // load the properties from the properties file - try { - this.objectStructureConfiguration = ObjectStructureConfiguration.getInstance(); - } catch (final PropertiesException rjcepe) { - ObjectStructureTreeRenderer.log.error("A PropertiesException has been thrown while attempting to initialize the ViewConfiguration", rjcepe); - } - } - COM: <s> this constructor is only used to load and initialize the configuration class </s> - diff --git a/funcom_test/28110281.txt b/funcom_test/28110281.txt deleted file mode 100644 index e0d947bdd6a015b1c4bebbc7c239228dbc905e0a..0000000000000000000000000000000000000000 --- a/funcom_test/28110281.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getImagesSubdirectory() { - - if (ObjectStructureConfiguration.imageSubdirectoryCache == null) { - try { - ObjectStructureConfiguration.imageSubdirectoryCache = super.getStringProperty(ObjectStructureConfiguration.IMAGES_DIRECTORY_KEY); - } catch (final PropertiesException rjcepe) { - ObjectStructureConfiguration.log.error("A PropertiesException has been caught while attempting to read the images subdirectory", rjcepe); - } - } - - return ObjectStructureConfiguration.imageSubdirectoryCache; - } - COM: <s> returns the images subdirectory </s> - diff --git a/funcom_test/28110461.txt b/funcom_test/28110461.txt deleted file mode 100644 index 5a6f77fe984c5b48b2b2ca5bd8b479422b15ccf7..0000000000000000000000000000000000000000 --- a/funcom_test/28110461.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Class getPlainClassForName(String name) throws ClassNotFoundException { - // Requires JDK 1.2+ - ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); - if (contextClassLoader != null) - return Class.forName(name, true, contextClassLoader); - else - return Class.forName(name); - } - COM: <s> delegate for bottom level implementation of class </s> - diff --git a/funcom_test/28110489.txt b/funcom_test/28110489.txt deleted file mode 100644 index 3699d63588890957a4168aca7af562696c83a4bd..0000000000000000000000000000000000000000 --- a/funcom_test/28110489.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Set getPackagesSet() { - insureInitialized(); - Set set = new HashSet(); - set.addAll(packageMap.keySet()); - - if (compPaths != null) - for (int i = 0; i < compPaths.size(); i++) - set.addAll(((BshClassPath) compPaths.get(i)).packageMap.keySet()); - return set; - } - COM: <s> get a list of all of the known packages </s> - diff --git a/funcom_test/28110519.txt b/funcom_test/28110519.txt deleted file mode 100644 index 03fadcf6a2824d2ce677f1fe0c1d39e8c0376de0..0000000000000000000000000000000000000000 --- a/funcom_test/28110519.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void classLoaderChanged() { - // clear the static caches in BshClassManager - clearCaches(); - - for (Enumeration e = listeners.elements(); e.hasMoreElements();) { - WeakReference wr = (WeakReference) e.nextElement(); - Listener l = (Listener) wr.get(); - if (l == null) // garbage collected - listeners.removeElement(wr); - else - l.classLoaderChanged(); - } - - } - COM: <s> clear global class cache and notify namespaces to clear their class caches </s> - diff --git a/funcom_test/28110549.txt b/funcom_test/28110549.txt deleted file mode 100644 index 5e7def4f6b23b52951f62f522794b4340accb9a9..0000000000000000000000000000000000000000 --- a/funcom_test/28110549.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void getAllNamesAux(Vector vec) { - Enumeration varNames = variables.keys(); - while (varNames.hasMoreElements()) - vec.addElement(varNames.nextElement()); - - Enumeration methodNames = methods.keys(); - while (methodNames.hasMoreElements()) - vec.addElement(methodNames.nextElement()); - - if (parent != null) - parent.getAllNamesAux(vec); - } - COM: <s> helper for implementing name source </s> - diff --git a/funcom_test/28110594.txt b/funcom_test/28110594.txt deleted file mode 100644 index c740f347ab93166f04f7f52a5a1e6cb01c9cda88..0000000000000000000000000000000000000000 --- a/funcom_test/28110594.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object getInterface(Class clas) throws EvalError { - if (clas.isInstance(this)) - return this; - else { - EvalError te = new EvalError("Dynamic proxy mechanism not available. " + "Cannot construct interface type: " + clas); - te.warnUserMessage = "Dynamic proxy mechanism not available. " + "Cannot construct interface type: " + clas; - te.className = clas.getName(); - throw te; - - } - } - COM: <s> get a version of the interface </s> - diff --git a/funcom_test/28110732.txt b/funcom_test/28110732.txt deleted file mode 100644 index c70c5093fd31d92cba6b53bd021c0e22766bac77..0000000000000000000000000000000000000000 --- a/funcom_test/28110732.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError { - /* - * Try to call the simpler signature I don't ilke this, but it's the price we pay for being able to eval() any - * simplenode and still limit the signature on those that only need namespace. - */ - return eval(callstack.top()); - } - COM: <s> this is the general signature for evaluation of a node </s> - diff --git a/funcom_test/28110941.txt b/funcom_test/28110941.txt deleted file mode 100644 index 27a5a2955004d1b2ac22b8cc01e2fb0c22c24505..0000000000000000000000000000000000000000 --- a/funcom_test/28110941.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected CopyAction (ROMUI frame , String name , KeyStroke keystroke , String tooltip) { - super(name); // Call super constructor - romui = frame; - if (tooltip != null) // Add tooltip text - putValue(SHORT_DESCRIPTION, tooltip); - if (keystroke != null) // Add keystroke - putValue(ACCELERATOR_KEY, keystroke); - } - COM: <s> file action object constructor </s> - diff --git a/funcom_test/28110956.txt b/funcom_test/28110956.txt deleted file mode 100644 index e626de2d36e9954a6551a24c2b0145f61fc21850..0000000000000000000000000000000000000000 --- a/funcom_test/28110956.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object source(String filename, NameSpace nameSpace) throws FileNotFoundException, IOException, EvalError { - File file = pathToFile(filename); - if (Interpreter.DEBUG) - debug("Sourcing file: " + file); - Reader sourceIn = new BufferedReader(new FileReader(file)); - try { - return eval(sourceIn, nameSpace, filename); - } finally { - sourceIn.close(); - } - } - COM: <s> read text from file name and eval it </s> - diff --git a/funcom_test/28111025.txt b/funcom_test/28111025.txt deleted file mode 100644 index 19fb0ea229f139dc70005389ef926463b81e11d6..0000000000000000000000000000000000000000 --- a/funcom_test/28111025.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Object eval(String statement, NameSpace nameSpace) throws EvalError { - - String s = (statement.endsWith(";") ? statement : statement + ";"); - return eval(new StringReader(s), nameSpace, "<Inline eval of: " + s + " >"); - } - COM: <s> evaluate the string in the specified namespace </s> - diff --git a/funcom_test/28111100.txt b/funcom_test/28111100.txt deleted file mode 100644 index 61e09a6243f44135188bac6de1b6bffa10cb615d..0000000000000000000000000000000000000000 --- a/funcom_test/28111100.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void set(String name, Object value) throws EvalError { - // map null to Primtive.NULL coming in... - if (value == null) - value = Primitive.NULL; - - CallStack callstack = new CallStack(); - LHS lhs = globalNameSpace.getNameResolver(name).toLHS(callstack, this); - lhs.assign(value); - } - COM: <s> assign the value to the name </s> - diff --git a/funcom_test/28111195.txt b/funcom_test/28111195.txt deleted file mode 100644 index f9f9de7146ce15e1cc0fc924bd50dfb867bf16e9..0000000000000000000000000000000000000000 --- a/funcom_test/28111195.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public File pathToFile(String fileName) throws IOException { - File file = new File(fileName); - - // if relative, fix up to bsh.cwd - if (!file.isAbsolute()) { - String cwd = (String) getu("bsh.cwd"); - file = new File(cwd + File.separator + fileName); - } - - return new File(file.getCanonicalPath()); - } - COM: <s> localize a path to the file name based on the bsh </s> - diff --git a/funcom_test/28111219.txt b/funcom_test/28111219.txt deleted file mode 100644 index 55cda37cb9e3ace4905da06711676398797d2261..0000000000000000000000000000000000000000 --- a/funcom_test/28111219.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void readObject(ObjectInputStream stream) throws java.io.IOException, ClassNotFoundException { - stream.defaultReadObject(); - - // set transient fields - if (console != null) { - setOut(console.getOut()); - setErr(console.getErr()); - } else { - setOut(System.out); - setErr(System.err); - } - } - COM: <s> de serialization setup </s> - diff --git a/funcom_test/28112339.txt b/funcom_test/28112339.txt deleted file mode 100644 index 2cf8edba28e82894d63210f1cba38ec692fae237..0000000000000000000000000000000000000000 --- a/funcom_test/28112339.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: protected void genHeader(String fileName) { - println("/* $ANTLR " + Tool.version + ": " + "\"" + Tool.fileMinusPath(tool.grammarFile) + "\"" + " -> " + "\"" + fileName + "\"$ */"); - } - COM: <s> generate a header that is common to all c files </s> - diff --git a/funcom_test/28604058.txt b/funcom_test/28604058.txt deleted file mode 100644 index 3cc773489af46a76c28ebd4ca2a73960c90f2f5c..0000000000000000000000000000000000000000 --- a/funcom_test/28604058.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void compose() { - - // creation of graphycal elements - _resultTable = new TaxonProxyTable(); - - _resultTable.getSelectionModel().addListSelectionListener(this); - - // addition of elements - setLayout(new BorderLayout(0, 1)); - - add(new JLabel("Query Result"), BorderLayout.NORTH); - - add(_resultTable.getContainer()); - } - COM: <s> lays out the graphical elements of the ui </s> - diff --git a/funcom_test/28604075.txt b/funcom_test/28604075.txt deleted file mode 100644 index fa6e1d87ab50aed2a8f0bdf0f1459d922f7d3b88..0000000000000000000000000000000000000000 --- a/funcom_test/28604075.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public String getLineage() { - - if (_lineage == null) { - StringBuffer lineage = new StringBuffer(); - - List<TaxonProxy> parents = getParents(); - - for (int i = 0; i < parents.size(); ++i) { - TaxonProxy parent = parents.get(i); - - lineage.append(parent.getName() + "; "); - } - - lineage.append(getName()); - - _lineage = lineage.toString(); - } - - return _lineage; - } - COM: <s> gets the lineage of this taxon including itself </s> - diff --git a/funcom_test/28604117.txt b/funcom_test/28604117.txt deleted file mode 100644 index 30af41b7e51ecb2de731f7c9204929191f92708a..0000000000000000000000000000000000000000 --- a/funcom_test/28604117.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void treeWillExpand( TreeExpansionEvent event) { - - TaxonProxyTreeNode node = (TaxonProxyTreeNode) event.getPath().getLastPathComponent(); - - Debug.ASSERT(node != null, "Null node will expand!!!"); - - // children are incarnated (in case they have not yet been added to - // the taxnomy tree) and shown - _tree.expandNode(node); - - } - COM: <s> expands the selected node </s> - diff --git a/funcom_test/28604128.txt b/funcom_test/28604128.txt deleted file mode 100644 index 57bb3e298fc257c09998d5498dd2e88a5678463f..0000000000000000000000000000000000000000 --- a/funcom_test/28604128.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void compose() { - - // UI components creation - _tree = new TaxonProxyTree(); - - _tree.addTreeSelectionListener(this); - - _tree.addTreeWillExpandListener(this); - - // addition of elements - setLayout(new java.awt.BorderLayout(0, 1)); - - add(new JLabel("Taxonomy Tree"), java.awt.BorderLayout.NORTH); - - add(_tree.getContainer()); - } - COM: <s> lays out the graphical elements of the form </s> - diff --git a/funcom_test/28604162.txt b/funcom_test/28604162.txt deleted file mode 100644 index 70bf9da41b97a47b8e1a121631809e388abd8b87..0000000000000000000000000000000000000000 --- a/funcom_test/28604162.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void actionPerformed( ActionEvent e) { - - Object source = e.getSource(); - - if ((source == _searchButton) || (source == _inputField)) { - // search button clicked or Enter key pressed in the input field - - String searchExpression = _inputField.getText(); - - SearchType searchType = (SearchType) _queryTypes.getSelectedItem(); - - _controller.search(searchExpression, searchType); - } - else { - Debug.TRACE("ERROR: Unknown event"); - } - - } - COM: <s> reacts to events from the i search i button </s> - diff --git a/funcom_test/28604168.txt b/funcom_test/28604168.txt deleted file mode 100644 index acedef01938abe0a3c3468ea10fd44ab8921b1ad..0000000000000000000000000000000000000000 --- a/funcom_test/28604168.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: private void compose() { - - // creation of graphycal elements - _searchButton = new JButton("Search!"); - - _searchButton.addActionListener(this); - - _inputField = new JTextField(); - - _inputField.addActionListener(this); - - _queryTypes = new JComboBox(SearchType.ALL); - - // add elements - add(new JLabel("Search Form"), BorderLayout.NORTH); - - _inputField.setColumns(TEXT_FIELD_LENGTH); - - add(_inputField, BorderLayout.CENTER); - - add(_searchButton, BorderLayout.CENTER); - - add(_queryTypes); - - } // operation compose - COM: <s> composes the graphical elements of this ui component </s> - diff --git a/funcom_test/28629700.txt b/funcom_test/28629700.txt deleted file mode 100644 index 605b97aaa8455e7184de87699026e6ceeb052f1a..0000000000000000000000000000000000000000 --- a/funcom_test/28629700.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JButton getButtonCancelar() { - if (buttonCancelar == null) { - buttonCancelar = new JButton(); - buttonCancelar.setText(Messages.getString("gui.NombreUsuario.7")); //$NON-NLS-1$ - buttonCancelar - .addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - dispose(); - } - }); - } - return buttonCancelar; - } - COM: <s> this method initializes button cancelar </s> - diff --git a/funcom_test/28629716.txt b/funcom_test/28629716.txt deleted file mode 100644 index 7c7ec14ac66b77ef3e6f9053a359624bebbffc99..0000000000000000000000000000000000000000 --- a/funcom_test/28629716.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JPanel getPanelSuperior() { - if (panelSuperior == null) { - panelSuperior = new JPanel(); - panelSuperior.setLayout(new FlowLayout()); - panelSuperior.setBorder(BorderFactory - .createEtchedBorder(EtchedBorder.RAISED)); - panelSuperior.add(getComboBoxImagenes(), null); - panelSuperior.add(getButtonNuevo(), null); - panelSuperior.add(getButtonEliminarEntorno(), null); - } - return panelSuperior; - } - COM: <s> this method initializes panel superior </s> - diff --git a/funcom_test/28629825.txt b/funcom_test/28629825.txt deleted file mode 100644 index 170cc51c2752de6e4c341cf54105b932f7875808..0000000000000000000000000000000000000000 --- a/funcom_test/28629825.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JTextField getTextFieldName() { - if (textFieldName == null) { - textFieldName = new JTextField(); - textFieldName.setText(user.getNombre()); - textFieldName.setPreferredSize(new Dimension(290, 25)); - textFieldName.setMinimumSize(new Dimension(200, 25)); - textFieldName.setHorizontalAlignment(JTextField.CENTER); - textFieldName.setColumns(0); - } - return textFieldName; - } - COM: <s> this method initializes text field name </s> - diff --git a/funcom_test/28629917.txt b/funcom_test/28629917.txt deleted file mode 100644 index 55fd56723c6e05df387ec79b82f91d538bd83d16..0000000000000000000000000000000000000000 --- a/funcom_test/28629917.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JButton getDesconecta() { - if (desconecta == null) { - desconecta = new JButton(); - desconecta.setText("Desconecta"); //$NON-NLS-1$ - desconecta.setEnabled(false); - desconecta.setIcon(new ImageIcon("data/icons/usbDisable.png")); //$NON-NLS-1$ - desconecta.setVisible(true); - desconecta.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - cerrarConexiones(); - } - }); - } - return desconecta; - } - COM: <s> this method initializes desconecta </s> - diff --git a/funcom_test/28630217.txt b/funcom_test/28630217.txt deleted file mode 100644 index 1fe32cf531a394f55bd8bb3d3f3bb0610ffd51e8..0000000000000000000000000000000000000000 --- a/funcom_test/28630217.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JButton getConectorButton() { - if (conectorButton == null) { - conectorButton = new JButton(); - conectorButton.setText(Messages.getString("gui.GUI.40")); //$NON-NLS-1$ - conectorButton.setIcon(new ImageIcon("data/icons/usb.png")); //$NON-NLS-1$ - conectorButton - .addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - abrirConexiones(); - } - }); - } - return conectorButton; - } - COM: <s> this method initializes conector button </s> - diff --git a/funcom_test/28630550.txt b/funcom_test/28630550.txt deleted file mode 100644 index e6d8535f781277c4bd673cc50d408f30acdebd38..0000000000000000000000000000000000000000 --- a/funcom_test/28630550.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JButton getButtonGuardar() { - if (buttonGuardar == null) { - buttonGuardar = new JButton(); - buttonGuardar.setText(Messages - .getString("gui.AdministrationUser.22")); //$NON-NLS-1$ - buttonGuardar.setIcon(new ImageIcon("data/icons/color_line.png")); - buttonGuardar - .addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - modificado = false; - } - }); - } - return buttonGuardar; - } - COM: <s> this method initializes button guardar </s> - diff --git a/funcom_test/28630553.txt b/funcom_test/28630553.txt deleted file mode 100644 index 727b0ff13cfb70ff0394747e4dc4336341f7b6c3..0000000000000000000000000000000000000000 --- a/funcom_test/28630553.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenu getMenuArchivo() { - if (menuArchivo == null) { - menuArchivo = new JMenu(); - menuArchivo.setText(Messages.getString("gui.GUI.47")); //$NON-NLS-1$ - menuArchivo.setIcon(new ImageIcon("data/icons/fileimport.png")); //$NON-NLS-1$ - menuArchivo.add(getMenuItemCargar()); - menuArchivo.add(getMenuItemGuardar()); - menuArchivo.add(getMenuItemSalir()); - } - return menuArchivo; - } - COM: <s> this method initializes menu archivo </s> - diff --git a/funcom_test/28631042.txt b/funcom_test/28631042.txt deleted file mode 100644 index 517e392c9aecd6babad0617ed61e6630e93cd43c..0000000000000000000000000000000000000000 --- a/funcom_test/28631042.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenu getMenuAdministracion() { - if (menuAdministracion == null) { - menuAdministracion = new JMenu(); - menuAdministracion.setText(Messages.getString("gui.GUI.57")); //$NON-NLS-1$ - menuAdministracion.setIcon(new ImageIcon( - "data/icons/package_system.png")); //$NON-NLS-1$ - menuAdministracion.add(getMenuItemAdminUsuarios()); - menuAdministracion.add(getMenuItemAdminResorces()); - } - return menuAdministracion; - } - COM: <s> this method initializes menu administracion </s> - diff --git a/funcom_test/28657484.txt b/funcom_test/28657484.txt deleted file mode 100644 index 74db084ad24504a4ac9f5a31586a879d73d1001a..0000000000000000000000000000000000000000 --- a/funcom_test/28657484.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private boolean checkBeforeLoad() { - boolean isPass=false; - String mptClassName = infoMap.get("mptClassName"); - boolean mptClassEnabled = Boolean.parseBoolean(infoMap.get("mptClassEnableStr")); - - if(mptClassName!=null && mptClassName.length()>0){ - if(mptClassEnabled){ - isPass=true; - } - } - if(isPass){ - log.info("ready to load "+mptClassName); - }else{ - log.info("skip to load "+mptClassName); - } - return isPass; - } - COM: <s> check if the mpt class is enabled in the ini file </s> - diff --git a/funcom_test/28667796.txt b/funcom_test/28667796.txt deleted file mode 100644 index d8718e2cfe89528b0b21ddf7e24058a88b6a28b0..0000000000000000000000000000000000000000 --- a/funcom_test/28667796.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected Map getRepositoryProviderMapping() { -// System.out.println("TeamSiteAction->getRepositoryProviderMapping"); - HashMap result = new HashMap(); - IResource[] resources = getSelectedResources(); - for (int i = 0; i < resources.length; i++) { - RepositoryProvider provider = RepositoryProvider.getProvider(resources[i].getProject()); - List list = (List) result.get(provider); - if (list == null) { - list = new ArrayList(); - result.put(provider, list); - } - list.add(resources[i]); - } - return result; - } - COM: <s> split the resources into sets associated with their project provider </s> - diff --git a/funcom_test/28667894.txt b/funcom_test/28667894.txt deleted file mode 100644 index 5e01eee6b8e01ad82fd1b7d3747caaad27e8785f..0000000000000000000000000000000000000000 --- a/funcom_test/28667894.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void makeInSync(IResource resource) throws TeamException{ - TeamSitePlugin.logInfo("TeamSiteThreeWaySubscriber->makeIncSync(IResource resource)"); - ThreeWaySynchronizer synchronizer = getSynchronizer(); - byte[] remoteBytes = synchronizer.getRemoteBytes(resource); - if(remoteBytes == null){ - if(!resource.exists()) - synchronizer.flush(resource, IResource.DEPTH_ZERO); - } else { - synchronizer.setBaseBytes(resource, remoteBytes); - } - } - COM: <s> make the resource in sync </s> - diff --git a/funcom_test/28718986.txt b/funcom_test/28718986.txt deleted file mode 100644 index b8ab4057c501cc463908ebf7a44afa5630b08c9e..0000000000000000000000000000000000000000 --- a/funcom_test/28718986.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public Texture2 getTexture(String resourceName) throws IOException { - Texture2 tex = (Texture2) table.get(resourceName); - - if (tex != null) { - return tex; - } - - tex = getTexture(resourceName, GL11.GL_TEXTURE_2D, // target - - GL11.GL_RGBA, // dst pixel format - - GL11.GL_LINEAR, // min filter (unused) - - GL11.GL_LINEAR); - - table.put(resourceName, tex); - - return tex; - } - COM: <s> load a texture </s> - diff --git a/funcom_test/28761040.txt b/funcom_test/28761040.txt deleted file mode 100644 index ce9e75a9aa5a31df4fe4c712608fa4984bca2861..0000000000000000000000000000000000000000 --- a/funcom_test/28761040.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void actionSortAdd() { - String name = Utilities.askForValue(this.getParent(), "Input name :", "", null); - if (name != null) { - CompositeComparator<Page> comparator = PageComparator.createComparator(name); - modelSort.addElement(comparator); - listSort.setSelectedIndex(modelSort.size() - 1); - } - } - COM: <s> action called when sort add button is pressed </s> - diff --git a/funcom_test/28761041.txt b/funcom_test/28761041.txt deleted file mode 100644 index fec389dca0777ca2c084ae4e864944a2e38dd210..0000000000000000000000000000000000000000 --- a/funcom_test/28761041.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void actionSortDelete() { - int selected = listSort.getSelectedIndex(); - if (selected != -1) { - modelSort.remove(selected); - if (selected < modelSort.size()) { - listSort.setSelectedIndex(selected); - } else if (selected > 0) { - listSort.setSelectedIndex(selected - 1); - } - } - } - COM: <s> action called when sort delete button is pressed </s> - diff --git a/funcom_test/28761100.txt b/funcom_test/28761100.txt deleted file mode 100644 index 708357d4d52922c33030a60f18caab015038e40e..0000000000000000000000000000000000000000 --- a/funcom_test/28761100.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setToggleButton(List<? extends JToggleButton> list, int line, boolean value) { - if (list == null) { - return; - } - if ((line < 0) || (line >= list.size())) { - return; - } - JToggleButton chk = list.get(line); - if (chk == null) { - return; - } - chk.setSelected(value); - } - COM: <s> set the toggle button for a column </s> - diff --git a/funcom_test/28761103.txt b/funcom_test/28761103.txt deleted file mode 100644 index b51ad0165a1186f91a30318b32aa4dc033e6f8df..0000000000000000000000000000000000000000 --- a/funcom_test/28761103.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setColor(List<ColorButton> list, int line, Color color) { - if (list == null) { - return; - } - if ((line < 0) || (line >= list.size())) { - return; - } - ColorButton button = list.get(line); - if (button == null) { - return; - } - button.setColor(color); - } - COM: <s> set the color of a button for a column </s> - diff --git a/funcom_test/28761112.txt b/funcom_test/28761112.txt deleted file mode 100644 index 5441bbace83f570dcca38b71efdf806e7b4763fc..0000000000000000000000000000000000000000 --- a/funcom_test/28761112.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void defaultValuesBoolean() { - for (Entry<ConfigurationValueBoolean, JCheckBox> entry : booleanValues.entrySet()) { - if ((entry.getValue() != null) && (entry.getKey() != null)) { - entry.getValue().setSelected(entry.getKey().getDefaultValue()); - } - } - } - COM: <s> restore all boolean options to their default values </s> - diff --git a/funcom_test/28761113.txt b/funcom_test/28761113.txt deleted file mode 100644 index 49a5a17af6d2a27b144499371028f17bae5cd7c9..0000000000000000000000000000000000000000 --- a/funcom_test/28761113.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void applyBoolean() { - Configuration config = Configuration.getConfiguration(); - - for (Entry<ConfigurationValueBoolean, JCheckBox> entry : booleanValues.entrySet()) { - if ((entry.getValue() != null) && (entry.getKey() != null)) { - config.setBoolean(null, entry.getKey(), entry.getValue().isSelected()); - } - } - } - COM: <s> apply new values to the boolean options </s> - diff --git a/funcom_test/28761234.txt b/funcom_test/28761234.txt deleted file mode 100644 index d0b0663aa514f5c4b5817d18aef7b4d9ff4fba8f..0000000000000000000000000000000000000000 --- a/funcom_test/28761234.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void resetAttributes() { - - // Check formatter - if (formatter == null) { - return; - } - - boolean oldState = isInInternalModification; - isInInternalModification = true; - - // First remove MediaWiki styles - String contents = getText(); - PageAnalysis pageAnalysis = new PageAnalysis(page, contents); - formatter.format(this, pageAnalysis); - - isInInternalModification = oldState; - - if (!isInInternalModification) { - undoManager.validateCurrentText(); - } - } - COM: <s> reset attributes of the document </s> - diff --git a/funcom_test/28761336.txt b/funcom_test/28761336.txt deleted file mode 100644 index 1f4255b7cc56d00e285f43a392a45f43f0d40f91..0000000000000000000000000000000000000000 --- a/funcom_test/28761336.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void displayToc() { - if (!tocIsDisplayed) { - updateTreeToc(); - updateTreeToc2(); - selectTreeToc2(); - tocIsDisplayed = true; - } - splitPane.setDividerLocation(200); - splitPane.setDividerSize(2); - splitPane.setResizeWeight(0.0); - textPane.setEditableInternal(false); - } - COM: <s> dispay table of contents </s> - diff --git a/funcom_test/28761349.txt b/funcom_test/28761349.txt deleted file mode 100644 index b14933f6dbfb34d1ae7a65b765edc66541d8f99c..0000000000000000000000000000000000000000 --- a/funcom_test/28761349.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void updateTreeToc2() { - MWPaneTitleTreeNode rootNode2 = new MWPaneTitleTreeNode(null); - MWPaneTitleTreeNode rootNode = (MWPaneTitleTreeNode) modelToc.getRoot(); - updateTreeToc2Node(rootNode2, rootNode); - modelToc2.setRoot(rootNode2); - } - COM: <s> update table of contents second tree </s> - diff --git a/funcom_test/28761521.txt b/funcom_test/28761521.txt deleted file mode 100644 index c4063e9a59fa92eb660eb3c7a2096396ee157722..0000000000000000000000000000000000000000 --- a/funcom_test/28761521.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void updatePopupSelectErrors() { - for (CheckErrorAlgorithm algorithm : allAlgorithms) { - if (algorithm != null) { - int errorNumber = algorithm.getErrorNumber(); - JMenuItem menuItem = menuItemAlgorithms.get(errorNumber); - if (menuItem != null) { - menuItem.setSelected(selectedAlgorithms.contains(algorithm)); - } - } - } - } - COM: <s> update popup menu for selecting errors </s> - diff --git a/funcom_test/28761577.txt b/funcom_test/28761577.txt deleted file mode 100644 index 7f2c131dc1691d660dfe2e043c510aa10c4e8594..0000000000000000000000000000000000000000 --- a/funcom_test/28761577.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void constructEmbeddedIn(List<Page> pages) throws APIException { - if (pageNames != null) { - List<Page> tmpPages = constructInternalPageList(); - MediaWiki mw = MediaWiki.getMediaWikiAccess(this); - pages.addAll(mw.retrieveAllEmbeddedIn(getWikipedia(), tmpPages)); - } - } - COM: <s> construct list of pages embedding the templates </s> - diff --git a/funcom_test/28761737.txt b/funcom_test/28761737.txt deleted file mode 100644 index 9895f5caecfc55630cf5f92aeca4f9d28c7ae03f..0000000000000000000000000000000000000000 --- a/funcom_test/28761737.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void actionSignature() { - Configuration config = Configuration.getConfiguration(); - try { - textNewSection.getDocument().insertString( - textNewSection.getCaretPosition(), - config.getString( - null, - ConfigurationValueString.SIGNATURE), - null); - } catch (BadLocationException e) { - // - } - } - COM: <s> action called when signature button is pressed </s> - diff --git a/funcom_test/28761838.txt b/funcom_test/28761838.txt deleted file mode 100644 index a1501c36fd8c5d3f33ab7e6bb93d3a670061e9c1..0000000000000000000000000000000000000000 --- a/funcom_test/28761838.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void actionDemo() { - int answer = displayYesNoWarning(GT._( - "Demo mode is only available for testing WikiCleaner.\n" + - "You won't be able to modify pages on Wikipedia in Demo mode.\n" + - "Do you want to continue ?")); - if (answer == JOptionPane.YES_OPTION) { - actionLoginDemo(false); - } - } - COM: <s> action called when demo button is pressed </s> - diff --git a/funcom_test/28761880.txt b/funcom_test/28761880.txt deleted file mode 100644 index 51cdb8488209c2b29031be8423b05097866c2e26..0000000000000000000000000000000000000000 --- a/funcom_test/28761880.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void waitForRetry() { - if (delayRetry <= 0) { - return; - } - long endWait = System.currentTimeMillis() + delayRetry; - for (;;) { - long currentTime = System.currentTimeMillis(); - if (currentTime >= endWait) { - return; - } - try { - Thread.sleep(endWait - currentTime); - } catch (InterruptedException e) { - // Try again - } - } - } - COM: <s> wait for retry </s> - diff --git a/funcom_test/28761886.txt b/funcom_test/28761886.txt deleted file mode 100644 index 3b7816d1717b6012755b6bb5965af6ffab7a2330..0000000000000000000000000000000000000000 --- a/funcom_test/28761886.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: synchronized public void increaseContributions(Contributions other) { - if (other == null) { - return; - } - pages += other.pages; - dabLinks += other.dabLinks; - for (int errorNumber = 0; errorNumber < checkWikiErrors.length; errorNumber++) { - checkWikiErrors[errorNumber] += other.checkWikiErrors[errorNumber]; - } - } - COM: <s> take into account last contributions </s> - diff --git a/funcom_test/28761898.txt b/funcom_test/28761898.txt deleted file mode 100644 index f7213b3e51c6fb91686953cca625a0b51d3995fa..0000000000000000000000000000000000000000 --- a/funcom_test/28761898.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void addTextPageName(JPanel panel) { - if (textPagename == null) { - textPagename = new JLabel(getPageName()); - JLabel labelPagename = Utilities.createJLabel(GT._("&Page :")); - labelPagename.setLabelFor(textPagename); - labelPagename.setHorizontalAlignment(SwingConstants.TRAILING); - panel.add(labelPagename); - panel.add(textPagename); - } - } - COM: <s> add a component for the page name </s> - diff --git a/funcom_test/28761901.txt b/funcom_test/28761901.txt deleted file mode 100644 index c74405bc88abf734ee88f4b1f35f2880fbbb8f15..0000000000000000000000000000000000000000 --- a/funcom_test/28761901.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionOptionsSystem() { - if (Utilities.isDesktopSupported()) { - EnumWikipedia wikipedia = getWikipedia(); - Utilities.browseURL(wikipedia, wikipedia.getConfigurationPage(), true); - } else { - displayUrlMessage( - GT._("You can learn how to configure WikiCleaner at the following URL:"), - URL_OTHER_WIKIPEDIA); - } - } - COM: <s> action called when system options button is pressed </s> - diff --git a/funcom_test/28762012.txt b/funcom_test/28762012.txt deleted file mode 100644 index 0c6a1ab437b1a1259798de53f07fc34adfbf2604..0000000000000000000000000000000000000000 --- a/funcom_test/28762012.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void addChkAutomaticComment(JPanel panel, GridBagConstraints constraints) { - chkAutomaticComment = createChkAutomaticComment(true, this); - panel.add(chkAutomaticComment, constraints); - constraints.gridx++; - textComment = new JTextField(getAutomaticComment(null)); - constraints.weightx = 1; - panel.add(textComment, constraints); - } - COM: <s> add a component for the automatic comment checkbox </s> - diff --git a/funcom_test/28762023.txt b/funcom_test/28762023.txt deleted file mode 100644 index 713f1514ca50759c7b84c8285b061cdf7f47aedb..0000000000000000000000000000000000000000 --- a/funcom_test/28762023.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void initEncyclopedicTalkNamespaces() { - if (encyclopedicNamespaces == null) { - encyclopedicTalkNamespaces = null; - return; - } - encyclopedicTalkNamespaces = new ArrayList<Integer>(encyclopedicNamespaces.size()); - for (Integer namespace : encyclopedicNamespaces) { - encyclopedicTalkNamespaces.add(Integer.valueOf(namespace.intValue() + 1)); - } - } - COM: <s> initialization of encyclopedic talk name spaces </s> - diff --git a/funcom_test/28762025.txt b/funcom_test/28762025.txt deleted file mode 100644 index bc4832c7a0160f7af39df40f9512102042fbf03e..0000000000000000000000000000000000000000 --- a/funcom_test/28762025.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void addChkCloseAfterSend(JPanel panel) { - Configuration config = Configuration.getConfiguration(); - chkCloseAfterSend = Utilities.createJCheckBox( - GT._("&Close after sending"), - config.getBoolean( - null, - ConfigurationValueBoolean.CLOSE_FULL)); - panel.add(chkCloseAfterSend); - } - COM: <s> add a component for the close after sending checkbox </s> - diff --git a/funcom_test/28762031.txt b/funcom_test/28762031.txt deleted file mode 100644 index 12fbc1d95f13557dc5f03b03c17f1b2516be57bb..0000000000000000000000000000000000000000 --- a/funcom_test/28762031.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void addChkEditTalkPage(JPanel panel) { - if (getTextContents() != null) { - chkEditTalkPage = Utilities.createJCheckBox( - GT._("&Add a note on talk page"), false); - getTextContents().setCheckBoxAddNote(chkEditTalkPage); - panel.add(chkEditTalkPage); - } - } - COM: <s> add a component for the edit talk page checkbox </s> - diff --git a/funcom_test/28762034.txt b/funcom_test/28762034.txt deleted file mode 100644 index c9e440ecec0d8396b190a4c8e83bc776fd4470e8..0000000000000000000000000000000000000000 --- a/funcom_test/28762034.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void addChkUpdateDabWarning(JPanel panel) { - if (getTextContents() != null) { - chkUpdateDabWarning = Utilities.createJCheckBox( - GT._("Update disambiguation warning on talk page"), - false); - getTextContents().setCheckBoxUpdateDabWarning(chkUpdateDabWarning); - panel.add(chkUpdateDabWarning); - } - } - COM: <s> add a component for the update disambiguation warning checkbox </s> - diff --git a/funcom_test/28762039.txt b/funcom_test/28762039.txt deleted file mode 100644 index 2f2fd0662cc630e14968c963d9bbf480bdd9509a..0000000000000000000000000000000000000000 --- a/funcom_test/28762039.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void addChkCreateDabWarning(JPanel panel) { - if (getTextContents() != null) { - chkCreateDabWarning = Utilities.createJCheckBox( - GT._("Create disambiguation warning on talk page"), - false); - getTextContents().setCheckBoxUpdateDabWarning(chkCreateDabWarning); - panel.add(chkCreateDabWarning); - } - } - COM: <s> add a component for the create disambiguation warning checkbox </s> - diff --git a/funcom_test/28762245.txt b/funcom_test/28762245.txt deleted file mode 100644 index 60603b7b5dce9012bb196a46e5644125db33d3b7..0000000000000000000000000000000000000000 --- a/funcom_test/28762245.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void checkAreas() { - int previousEnd = -1; - for (PageElementAreas.Area area : areas) { - if (area.beginIndex >= area.endIndex) { - System.err.println("Error " + area); - } - if (previousEnd >= area.beginIndex) { - System.err.println("Error " + area + "/" + previousEnd); - } - previousEnd = area.endIndex; - } - } - COM: <s> internal checking of the areas </s> - diff --git a/funcom_test/28762336.txt b/funcom_test/28762336.txt deleted file mode 100644 index 5cb0aec113b4d25795cdf4ecf4cd3ac9a801219f..0000000000000000000000000000000000000000 --- a/funcom_test/28762336.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String expandTemplates(EnumWikipedia wikipedia, String title, String text) throws APIException { - ApiExpandResult expandResult = new ApiXmlExpandResult(wikipedia, httpClient, connection); - ApiExpandRequest expandRequest = new ApiExpandRequest(expandResult); - return expandRequest.expandTemplates(title, text); - } - COM: <s> expand templates in a text </s> - diff --git a/funcom_test/28762466.txt b/funcom_test/28762466.txt deleted file mode 100644 index b1c351177750593e941c13919c09828a5ef76a0b..0000000000000000000000000000000000000000 --- a/funcom_test/28762466.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void countLink(Page link) { - if (link == null) { - return; - } - Integer currentCount = linkCount.get(link.getTitle()); - if (currentCount == null) { - currentCount = Integer.valueOf(1); - } else { - currentCount = Integer.valueOf(currentCount.intValue() + 1); - } - linkCount.put(link.getTitle(), currentCount); - } - COM: <s> increment the number of times a link has been found </s> - diff --git a/funcom_test/28762790.txt b/funcom_test/28762790.txt deleted file mode 100644 index a9ad5303580a287833dc97ac2fe0e88ac226d3ae..0000000000000000000000000000000000000000 --- a/funcom_test/28762790.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void remove(Page page) { - if (page == null) { - return; - } - for (int i = errors.size(); i > 0; i--) { - if (Page.areSameTitle(page.getTitle(), errors.get(i - 1).getTitle())) { - errors.remove(i - 1); - } - } - } - COM: <s> remove a page from the list of errors </s> - diff --git a/funcom_test/28762800.txt b/funcom_test/28762800.txt deleted file mode 100644 index 877b6fd3776e6bfcae2d674f48ee78f938e9a183..0000000000000000000000000000000000000000 --- a/funcom_test/28762800.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String constructListPages(Collection<Page> pages) { - StringBuilder buffer = new StringBuilder(); - for (Page page : pages) { - if (buffer.length() > 0) { - buffer.append("|"); - } - buffer.append(page.getTitle()); - } - return buffer.toString(); - } - COM: <s> construct a textual representation of a list of pages </s> - diff --git a/funcom_test/28762885.txt b/funcom_test/28762885.txt deleted file mode 100644 index 0f0665300bfb28dd515f619268197ac2bae2583d..0000000000000000000000000000000000000000 --- a/funcom_test/28762885.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void loadSiteInfo(EnumWikipedia wikipedia) throws APIException { - ApiQueryMetaSiteInfoResult siteInfoResult = new ApiXmlQueryMetaSiteInfoResult(wikipedia, httpClient, connection); - ApiQueryMetaSiteInfoRequest siteInfoRequest = new ApiQueryMetaSiteInfoRequest(siteInfoResult); - siteInfoRequest.loadSiteInformation(true, true, true, true, true); - } - COM: <s> load site information </s> - diff --git a/funcom_test/28775517.txt b/funcom_test/28775517.txt deleted file mode 100644 index 6b55cd45b10ea1543e1186b46e419cb9017986be..0000000000000000000000000000000000000000 --- a/funcom_test/28775517.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void initialize() { - this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); - this.setBounds(new Rectangle(300, 200, 400, 150)); - this.setName("StartFrame"); - this.setResizable(false); - this.setContentPane(new Pan()); - this.setTitle("MODANS GUI"); - this.setVisible(true); - try{ - image=ImageIO.read(new File("./modans/gui/images/logo.jpg")); - this.getContentPane().getGraphics().drawImage(image,0,0,400,150,this); - } - catch (IOException ex){ - ex.printStackTrace(); - } - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/28775558.txt b/funcom_test/28775558.txt deleted file mode 100644 index 03d7ab773384b390428828f591b79e28b2dd0623..0000000000000000000000000000000000000000 --- a/funcom_test/28775558.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getDeviceCounter() { - if (devCounter==null) { - devCounter=new JTextField(); - devCounter.setBounds(new Rectangle(180, 340, 16, 16)); - devCounter.setText((new Integer((ActiveSituation.getDeviceList()).size())).toString()); - devCounter.setEditable(false); - } - return devCounter; - } - COM: <s> initializes the counter for the number of active devices </s> - diff --git a/funcom_test/28775689.txt b/funcom_test/28775689.txt deleted file mode 100644 index 5a8420c046b3742b67767c6abfda4edb9180232c..0000000000000000000000000000000000000000 --- a/funcom_test/28775689.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int getLifeTime() { - String now=DateFormat.getTimeInstance(DateFormat.FULL).format(new Date()); - int h_now=0, m_now=0, s_now=0, time=0; - h_now=(new Integer(now.substring(0, 2))); - m_now=(new Integer(now.substring(3, 5))); - s_now=(new Integer(now.substring(6, 8))); - time=(s_now+(m_now)*60+(h_now*3600))-(s_birth+(m_birth)*60+(h_birth*3600)); - return time; - } - COM: <s> returns the life time of the message in seconds </s> - diff --git a/funcom_test/28775792.txt b/funcom_test/28775792.txt deleted file mode 100644 index b32be0c8ca708c91fd228a150c0b6b14e1206d25..0000000000000000000000000000000000000000 --- a/funcom_test/28775792.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void startTimeOut() { - birth=DateFormat.getTimeInstance(DateFormat.FULL).format(new Date()); - h_birth=(new Integer(birth.substring(0, 2))); - m_birth=(new Integer(birth.substring(3, 5))); - s_birth=(new Integer(birth.substring(6, 8))); - } - COM: <s> makes the counting for timeout start </s> - diff --git a/funcom_test/28775844.txt b/funcom_test/28775844.txt deleted file mode 100644 index a6ec61e0c3dadca3345c79e5312209000144b3b1..0000000000000000000000000000000000000000 --- a/funcom_test/28775844.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JButton getAddMatrix() { - if (addMatrix == null) { - addMatrix = new JButton(); - addMatrix.setBounds(new Rectangle(15, 15, 136, 16)); - addMatrix.setText(lang.get("MSG_12")); - addMatrix.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - new MatrixCreationFrame(SpaceCreationFrame.this); - } - }); - } - return addMatrix; - } - COM: <s> this method initializes add matrix </s> - diff --git a/funcom_test/28775859.txt b/funcom_test/28775859.txt deleted file mode 100644 index 79781fc01f09d5c5a172dd10f65fd48dbb7ee596..0000000000000000000000000000000000000000 --- a/funcom_test/28775859.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JButton getDeleteMatrix() { - if (deleteMatrix == null) { - deleteMatrix = new JButton(); - deleteMatrix.setBounds(new Rectangle(15, 45, 136, 16)); - deleteMatrix.setText(lang.get("MSG_13")); - deleteMatrix.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed() - } - }); - } - return deleteMatrix; - } - COM: <s> this method initializes delete matrix </s> - diff --git a/funcom_test/28775860.txt b/funcom_test/28775860.txt deleted file mode 100644 index a5cacae477447b25e22216d5f3dc387aa337e46e..0000000000000000000000000000000000000000 --- a/funcom_test/28775860.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JTextField getTxtDevName() { - if (txtDevName == null) { - txtDevName = new JTextField(); - txtDevName.setBounds(new Rectangle(15, 30, 133, 20)); - txtDevName.setText(lang.get("MSG_20")+txtWirelessID.getText()); - } - return txtDevName; - } - COM: <s> this method initializes txt dev name </s> - diff --git a/funcom_test/28775871.txt b/funcom_test/28775871.txt deleted file mode 100644 index 98a69040611cc1d446b8fc6aacb2512f64f23669..0000000000000000000000000000000000000000 --- a/funcom_test/28775871.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JButton getEditMatrix() { - if (editMatrix == null) { - editMatrix = new JButton(); - editMatrix.setBounds(new Rectangle(15, 75, 136, 16)); - editMatrix.setText(lang.get("MSG_14")); - editMatrix.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed() - } - }); - } - return editMatrix; - } - COM: <s> this method initializes edit matrix </s> - diff --git a/funcom_test/28876958.txt b/funcom_test/28876958.txt deleted file mode 100644 index 071038b00b84d9294852b46ad3404a6802cedad5..0000000000000000000000000000000000000000 --- a/funcom_test/28876958.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void append(final String text) { - if (mLogBuffer.length() > mSize / 2) { - mLogBuffer.delete(0, mSize / 2); - mLogBuffer.append("----------- buffer truncated ----------" + NL); - } - mLogBuffer.append(text); - } - COM: <s> append text to log buffer </s> - diff --git a/funcom_test/28877058.txt b/funcom_test/28877058.txt deleted file mode 100644 index 45764ac7fad20b7dfbc0e544ec8b1a54588b70ab..0000000000000000000000000000000000000000 --- a/funcom_test/28877058.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void sleep() { - synchronized (mQueueItemList) { - if (logger.isDebugEnabled()) { - if (mQueueItemList.size() > 0) { - //logger.debug("Sleeping with queue size = " + qc + "?"); - return; - } - } - try { - mQueueItemList.wait(); - } catch (InterruptedException e) { - // Eat. - } - } - } - COM: <s> let thread sleep until notified by enq method </s> - diff --git a/funcom_test/28919457.txt b/funcom_test/28919457.txt deleted file mode 100644 index 84e3f125ffbc17a383858b5ff530384ac33b7ad8..0000000000000000000000000000000000000000 --- a/funcom_test/28919457.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void drawGrid(double xTickJump, double yTickJump) { - double xMin = this.mathPainter.getXMin(); - double xRange = this.mathPainter.getXRange(); - double yMin = this.mathPainter.getYMin(); - double yRange = this.mathPainter.getYRange(); - drawGrid(xMin, yMin, xRange, yRange, xTickJump, yTickJump, ROUNDED, - ROUNDED); - } - COM: <s> draws a grid </s> - diff --git a/funcom_test/28919549.txt b/funcom_test/28919549.txt deleted file mode 100644 index c853322c9fcae5a08ee8234271cba62281c000c7..0000000000000000000000000000000000000000 --- a/funcom_test/28919549.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected MathPainter getMathPainter() { - if (offScreenImageSet) { - return mp; - } else { - waitForOnScreenPresence(); - - int width = getWidth(); - int height = getHeight(); - - offScreenImage = createVolatileImage(width, height); - offScreenImageSet = true; - mp.setRenderingArea(0, 0, width, height); - mp.setGraphics((Graphics2D) offScreenImage.getGraphics()); - - return mp; - } - } - COM: <s> obtains the code math painter code for this panel </s> - diff --git a/funcom_test/28919574.txt b/funcom_test/28919574.txt deleted file mode 100644 index 06c7e9458f4d17f04e011f11cf4901533cb1aeb3..0000000000000000000000000000000000000000 --- a/funcom_test/28919574.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setMathSpace(final double x0, final double y0, final double z0, final double xR, final double yR, final double zR) { - this.xMin=x0; - this.yMin=y0; - this.zMin=z0; - this.xRange=xR; - this.yRange=yR; - this.zRange=zR; - } - COM: <s> sets the mathematical coordinates of the code math painter3 d code </s> - diff --git a/funcom_test/28919579.txt b/funcom_test/28919579.txt deleted file mode 100644 index 001ce471d7a65ec41188186499e98659db30c9f9..0000000000000000000000000000000000000000 --- a/funcom_test/28919579.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void componentResized(ComponentEvent ce) { - offScreenImageSet = false; - waitForOnScreenPresence(); - - int width = getWidth(); - int height = getHeight(); - - clearCompletely(); - offScreenImage = createVolatileImage(width, height); - offScreenImageSet = true; - mp.setRenderingArea(0, 0, width, height); - mp.setGraphics((Graphics2D) offScreenImage.getGraphics()); - - mpp.notifyListenersOfResize(); - } - COM: <s> invoked when the components size changes </s> - diff --git a/funcom_test/28919701.txt b/funcom_test/28919701.txt deleted file mode 100644 index d42dadf3a748411d44a2363a77947b9758a39976..0000000000000000000000000000000000000000 --- a/funcom_test/28919701.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double hCoordinate(double x, double y, double z) { - double[] p = new double[3]; - p[0] = x-(xMin+xRange/2); - p[1] = y-(yMin+yRange/2); - p[2] = z-(zMin+zRange/2); - double numerator = scaprod(p, xi); - double denominator = (eyeDistanceAbsolute == Double.POSITIVE_INFINITY ? 1 : 1 - scaprod(p, eyeDirection)/eyeDistanceAbsolute); - return numerator/denominator; - } - COM: <s> calculates the projected h coordinate from the given x y and z coordinates </s> - diff --git a/funcom_test/28919705.txt b/funcom_test/28919705.txt deleted file mode 100644 index c31fc12ab53d179ff77c26ab9edae3b281dfaa9c..0000000000000000000000000000000000000000 --- a/funcom_test/28919705.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double vCoordinate(double x, double y, double z) { - double[] p = new double[3]; - p[0] = x-(xMin+xRange/2); - p[1] = y-(yMin+yRange/2); - p[2] = z-(zMin+zRange/2); - double numerator = scaprod(p, eta); - double denominator = (eyeDistanceAbsolute == Double.POSITIVE_INFINITY ? 1 : 1 - scaprod(p, eyeDirection)/eyeDistanceAbsolute); - return numerator/denominator; - } - COM: <s> calculates the projected v coordinate from the given x y and z coordinates </s> - diff --git a/funcom_test/28920040.txt b/funcom_test/28920040.txt deleted file mode 100644 index fe10c6262c8289c823a7a400aa0ba6e920c5b065..0000000000000000000000000000000000000000 --- a/funcom_test/28920040.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void drawLine(final double x1, final double y1, final double z1, final double x2, final double y2, final double z2) - { - double h1 = hCoordinate(x1, y1, z1); - double v1 = vCoordinate(x1, y1, z1); - double h2 = hCoordinate(x2, y2, z2); - double v2 = vCoordinate(x2, y2, z2); - this.graphics.drawLine(mathToUserX(h1), - mathToUserY(v1), - mathToUserX(h2), - mathToUserY(v2)); - } - COM: <s> draws a line segment between two designated points in math coordinates </s> - diff --git a/funcom_test/28920105.txt b/funcom_test/28920105.txt deleted file mode 100644 index 588b27f6cd1e832a0d999687d193b192ba1978a6..0000000000000000000000000000000000000000 --- a/funcom_test/28920105.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void drawBoxEdge(int xyz, boolean maxmin1, boolean maxmin2) { - switch (xyz) { - case X_BOX_EDGE: { - drawXBoxEdge(maxmin1, maxmin2); - } - break; - case Y_BOX_EDGE: { - drawYBoxEdge(maxmin1, maxmin2); - } - break; - default: { - drawZBoxEdge(maxmin1, maxmin2); - } - } - } - COM: <s> draw a specified box edge </s> - diff --git a/funcom_test/28920121.txt b/funcom_test/28920121.txt deleted file mode 100644 index f37bcc347fd73624fd771deb858fbbdc07c0f3ae..0000000000000000000000000000000000000000 --- a/funcom_test/28920121.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void drawBoxEdge(int xyz, double[] eyeDirection) { - switch (xyz) { - case X_BOX_EDGE: { - drawXBoxEdge(eyeDirection); - } - break; - case Y_BOX_EDGE: { - drawYBoxEdge(eyeDirection); - } - break; - default: { - drawZBoxEdge(eyeDirection); - } - } - } - COM: <s> draw a box edge chosen automatically according to the eye direction </s> - diff --git a/funcom_test/28921193.txt b/funcom_test/28921193.txt deleted file mode 100644 index 321cdc5a877d3a346261d5872434e0ef5d586ea3..0000000000000000000000000000000000000000 --- a/funcom_test/28921193.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public FenceNode getMatchingFence() { - if (this == PredefinedFence.OPEN_PARENTHESIS) { - return PredefinedFence.CLOSE_PARENTHESIS; - } else if (this == PredefinedFence.CLOSE_PARENTHESIS) { - return PredefinedFence.OPEN_PARENTHESIS; - } else if (this == PredefinedFence.OPEN_FUNCTION_ARGUMENTS_FENCE) { - return PredefinedFence.CLOSE_FUNCTION_ARGUMENTS_FENCE; - } else if (this == PredefinedFence.CLOSE_FUNCTION_ARGUMENTS_FENCE) { - return PredefinedFence.OPEN_FUNCTION_ARGUMENTS_FENCE; - } else { - // all possibilities should be covered by the if-else-ifs above - assert false; - return null; - } - } - COM: <s> gets the fence node which matches this one </s> - diff --git a/funcom_test/28921224.txt b/funcom_test/28921224.txt deleted file mode 100644 index bff634dc57068f7ab01dcab1b0d3d5b3394d198b..0000000000000000000000000000000000000000 --- a/funcom_test/28921224.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected int getIndexOfHighestPrecedenceFreeNode() { - int highestPrecedence = -1; - int highestPrecedenceTokenIndex = -1; - - for (int i = 0; i < sequence.size(); i++) { - NodeImpl n = sequence.get(i); - - if (n.getPrecedenceInSequence() > highestPrecedence && (n.isFreeNode())) { - highestPrecedence = n.getPrecedenceInSequence(); - highestPrecedenceTokenIndex = i; - } - } - - return highestPrecedenceTokenIndex; - } - COM: <s> gets the index of the highest precedence free node </s> - diff --git a/funcom_test/28921272.txt b/funcom_test/28921272.txt deleted file mode 100644 index 1642ab06f89da30339a9254fe31b0420ef2929e9..0000000000000000000000000000000000000000 --- a/funcom_test/28921272.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String covertToMetricXMLFragment(final String xmlString, final String wrappingElementNamespaceURI, final String wrappingElementTagName) { - final String wrappingElementOpenTag = "<" + - wrappingElementTagName + - " xmlns=\"" + - wrappingElementNamespaceURI + - "\">"; - final String wrappingElementCloseTag = "</" + - wrappingElementTagName + - ">"; - - return XML_DECLARATION - + wrappingElementOpenTag - + xmlString - + wrappingElementCloseTag; - } - COM: <s> wraps the xml string with an xml declaration and the specified </s> - diff --git a/funcom_test/28921303.txt b/funcom_test/28921303.txt deleted file mode 100644 index a5cc54f4e32a0995024e4166b139845f45e05a3a..0000000000000000000000000000000000000000 --- a/funcom_test/28921303.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Node translateMetricPI(final Node metricProcessingInstruction) { - final String target = metricProcessingInstruction.getNodeName(); - - if (target.equals(METRIC_PI_TARGET_INLINE_PRESENTATION_MATHML)) { - return inlinePresentationMathML(metricProcessingInstruction.getNodeValue()); - } else if (target.equals(METRIC_PI_TARGET_BLOCK_PRESENTATION_MATHML)) { - return blockPresentationMathML(metricProcessingInstruction.getNodeValue()); - } else { - return metricProcessingInstruction; - } - } - COM: <s> translate if possible the metric processing instruction </s> - diff --git a/funcom_test/28921314.txt b/funcom_test/28921314.txt deleted file mode 100644 index f3093cee8c4fe2bf231bf80a5458c3b6a1f3d2aa..0000000000000000000000000000000000000000 --- a/funcom_test/28921314.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Node inlinePresentationMathML(final String data) { - try { - ComputereseTree computereseTree = computereseParser.parse(data); - DocumentFragment docFrag = presentationMathMLTranslator.translate(computereseTree, true, MathDisplayMode.INLINE); - Node mathNode = docFrag.getFirstChild(); - - return mathNode; - } catch (ComputereseParserException cpe) { - cpe.printStackTrace(); - - return document.createCDATASection(cpe.getMessage()); - } - } - COM: <s> convert the code metric ipmml code processing instruction data to </s> - diff --git a/funcom_test/28921326.txt b/funcom_test/28921326.txt deleted file mode 100644 index 9257669d9e6942ab646c863ffffcce089b46aedf..0000000000000000000000000000000000000000 --- a/funcom_test/28921326.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Node blockPresentationMathML(final String data) { - try { - ComputereseTree computereseTree = computereseParser.parse(data); - DocumentFragment docFrag = presentationMathMLTranslator.translate(computereseTree, true, MathDisplayMode.BLOCK); - Node mathNode = docFrag.getFirstChild(); - - return mathNode; - } catch (ComputereseParserException cpe) { - cpe.printStackTrace(); - - return document.createCDATASection(cpe.getMessage()); - } - } - COM: <s> convert the code metric bpmml code processing instruction data to </s> - diff --git a/funcom_test/28921358.txt b/funcom_test/28921358.txt deleted file mode 100644 index 0c7341af25e531064b0d639caa28dae71dbab3bd..0000000000000000000000000000000000000000 --- a/funcom_test/28921358.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String serializeASCIIFence(final ComputereseTreeNode rootNode) { - NodeImpl nimpl = (NodeImpl) rootNode; - - final FenceNode openFenceNode = (FenceNode) rootNode; - final String openFence = openFenceNode.getAsciiValue(); - final String closeFence = openFenceNode.getMatchingFence().getAsciiValue(); - - final ComputereseTreeNode[] children = rootNode.getChildren(); - assert children.length == 1; - final String argument = serializeASCII(children[0]); - - return openFence - + argument - + closeFence; - } - COM: <s> serializes a computerese fence node </s> - diff --git a/funcom_test/28951864.txt b/funcom_test/28951864.txt deleted file mode 100644 index c3f21c7a64bf6f94f9d25811cf76ad87d8b86291..0000000000000000000000000000000000000000 --- a/funcom_test/28951864.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void connect() { - SSLSocket secureSocket = null; - if (description != null && description instanceof SecureConnectionDescription) - { - SecureConnectionDescription scd = (SecureConnectionDescription) description; - // Secure socket factory handles bidirectional certs. - SecureSocketFactory sslFactory = new SecureSocketFactory(scd); - secureSocket = (SSLSocket) sslFactory.createSocket(description.getHostname(), description.getPort()); - // TODO Add ATNA logging. - } - socket = secureSocket; - } - COM: <s> used by factory to start the connection </s> - diff --git a/funcom_test/28951865.txt b/funcom_test/28951865.txt deleted file mode 100644 index e4c10a64031757dc7dd3aef662bbf60302838edc..0000000000000000000000000000000000000000 --- a/funcom_test/28951865.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void connect() { - SSLServerSocket secureServerSocket = null; - if (description != null && description instanceof SecureConnectionDescription) - { - SecureConnectionDescription scd = (SecureConnectionDescription) description; - // Secure socket factory handles bidirectional certs. - SecureSocketFactory sslFactory = new SecureSocketFactory(scd); - secureServerSocket = (SSLServerSocket) sslFactory.createServerSocket(description.getPort()); - - // TODO Add ATNA logging. - } - ssocket = secureServerSocket; - } - COM: <s> used by factory to start the server connection </s> - diff --git a/funcom_test/28951881.txt b/funcom_test/28951881.txt deleted file mode 100644 index 0d6499fbb50f95d26b30a3d900ed81bc2a196830..0000000000000000000000000000000000000000 --- a/funcom_test/28951881.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getStringValue(String name) { - Field field = getField(name); - if (field == null) - return null; - else if (field.getType() == null || field.getType().equalsIgnoreCase("String")) - return (String)field.getValueObject(); - else { - logWrongTypeWarningMessage(field.getName(), "String"); - return null; - } - } - COM: <s> gets the field value as string type directly for a given field name </s> - diff --git a/funcom_test/28951888.txt b/funcom_test/28951888.txt deleted file mode 100644 index cf8b64852cb23b4225c9362f7e85df2ea84a6c11..0000000000000000000000000000000000000000 --- a/funcom_test/28951888.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Calendar getDateValue(String name) { - Field field = getField(name); - if (field == null) - return null; - else if (field.getType() != null && field.getType().equalsIgnoreCase("Date")) - return (Calendar)field.getValueObject(); - else { - logWrongTypeWarningMessage(field.getName(), "Date"); - return null; - } - } - COM: <s> gets the field value as date type directly for a given field name </s> - diff --git a/funcom_test/28951889.txt b/funcom_test/28951889.txt deleted file mode 100644 index 5b45ae88bbcd972ddffed22f067e95bc3fd983c4..0000000000000000000000000000000000000000 --- a/funcom_test/28951889.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addEntry(String stringValue, String codeValue) { - if ((stringValue != null) && (codeValue != null)) { - entries.put(stringValue, codeValue); - // Create an inverse entry if this is the first code for this string - if (!inverse.containsKey(codeValue)) - inverse.put(codeValue, stringValue); - } - } - COM: <s> add an entry to this string map </s> - diff --git a/funcom_test/28951897.txt b/funcom_test/28951897.txt deleted file mode 100644 index ef47fb5417428f8e4da2ae4e8f48ce8300f1f4bf..0000000000000000000000000000000000000000 --- a/funcom_test/28951897.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public CodeSystem getCodeValue(String name) { - Field field = getField(name); - if (field == null) - return null; - else if (field.getType() != null && field.getType().equalsIgnoreCase("Code")) - return (CodeSystem)field.getValueObject(); - else { - logWrongTypeWarningMessage(field.getName(), "Code"); - return null; - } - } - COM: <s> gets the field value as code type directly for a given field name </s> - diff --git a/funcom_test/28951903.txt b/funcom_test/28951903.txt deleted file mode 100644 index c672ffbd275a8e2d4ed86e42f241259439efe2cd..0000000000000000000000000000000000000000 --- a/funcom_test/28951903.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Measure getMeasureValue(String name) { - Field field = getField(name); - if (field == null) - return null; - else if (field.getType() != null && field.getType().equalsIgnoreCase("Measure")) - return (Measure)field.getValueObject(); - else { - logWrongTypeWarningMessage(field.getName(), "Measure"); - return null; - } - } - COM: <s> gets the field value as measure type directly for a given field name </s> - diff --git a/funcom_test/28951907.txt b/funcom_test/28951907.txt deleted file mode 100644 index 568dfd793a9b7e9953158686ee491c1c28c14ec4..0000000000000000000000000000000000000000 --- a/funcom_test/28951907.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addEntry(String code, String displayName, String codingSchemeName, String ext) { - CodeSetEntry entry = new CodeSetEntry(); - entry.value = code; - entry.displayName = displayName; - entry.codingScheme = codingSchemeName; - entry.ext = ext; - entries.put(new Pair(code, codingSchemeName), entry); - } - COM: <s> add an entry to this code set </s> - diff --git a/funcom_test/28951931.txt b/funcom_test/28951931.txt deleted file mode 100644 index cfde6934118c1dac92586158752e47901cd3ce79..0000000000000000000000000000000000000000 --- a/funcom_test/28951931.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setUniversalId(String universal) { - if (universal != null) - universalId = universal.trim(); - else - universalId = null; - - if (universalId != null) { - universalKey = universalId; - if (universalIdType != null) - universalKey = universalKey + "&" + universalIdType; - } - } - COM: <s> set the universal id for this assigning authority </s> - diff --git a/funcom_test/28951938.txt b/funcom_test/28951938.txt deleted file mode 100644 index 01e1d69ca9610d965c58fb626e4311145cf20649..0000000000000000000000000000000000000000 --- a/funcom_test/28951938.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setUniversalIdType(String universalIdType) { - if (universalIdType != null) - this.universalIdType = universalIdType.trim(); - else - this.universalIdType = null; - - if (universalId != null) { - universalKey = universalId; - if (universalIdType != null) - universalKey = universalKey + "&" + universalIdType; - } - } - COM: <s> set the type of the universal id for this assigning authority </s> - diff --git a/funcom_test/28951949.txt b/funcom_test/28951949.txt deleted file mode 100644 index e2122cb54b24b9f46776d5a8b0ec05a0239357fc..0000000000000000000000000000000000000000 --- a/funcom_test/28951949.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addPatientId(PatientID patientId, String newId) { - // Save the ID using the namespace - if (namespaceId != null) { - patientId.addId(namespaceId, newId); - } - // Save the id using the universalId and type - if (universalKey != null) { - patientId.addId(universalKey, newId); - } - } - COM: <s> add a new patient id associated with this assigning authority </s> - diff --git a/funcom_test/28951955.txt b/funcom_test/28951955.txt deleted file mode 100644 index 1ef27bfd19f38a933c485063e2d34333e24ae01e..0000000000000000000000000000000000000000 --- a/funcom_test/28951955.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getAuthorityNameString() { - StringBuffer sb = new StringBuffer(); - if (namespaceId != null) sb.append(namespaceId); - if (universalId != null) { - sb.append('&'); - sb.append(universalId); - if (universalIdType != null) { - sb.append('&'); - sb.append(universalIdType); - } - } - return sb.toString(); - } - COM: <s> get a name for this assigning authority </s> - diff --git a/funcom_test/28951960.txt b/funcom_test/28951960.txt deleted file mode 100644 index eb2030908fb3de67f47d3e9f8927597493708cd6..0000000000000000000000000000000000000000 --- a/funcom_test/28951960.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int hashCode() { - int result = 17; - if (namespaceId != null) - result = 37*result + namespaceId.hashCode(); - if (universalId != null) - result = 37*result + universalId.hashCode(); - if (universalIdType != null) - result = 37*result + universalIdType.hashCode(); - - return result; - } - COM: <s> calcualte the hash code of this identifier object </s> - diff --git a/funcom_test/28952063.txt b/funcom_test/28952063.txt deleted file mode 100644 index e5b3db1db732e3b471a9a490c86012fb4035d218..0000000000000000000000000000000000000000 --- a/funcom_test/28952063.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addCodeSet(CodeSet codingScheme) { - if (codingScheme != null) { - String schemeName = codingScheme.getCodeType(); - if (schemeName != null) { - if (codingSchemes == null) codingSchemes = new Hashtable<String, CodeSet>(); - codingSchemes.put(schemeName.toLowerCase(), codingScheme); - } else { - LOG.debug("Adding coding scheme with no name to connection: " + name); - } - } - } - COM: <s> add a new coding set to this connection description </s> - diff --git a/funcom_test/28952075.txt b/funcom_test/28952075.txt deleted file mode 100644 index af3d01d72589a37132671cac51dbfc948aebdffa..0000000000000000000000000000000000000000 --- a/funcom_test/28952075.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setProperty(String name, String value) { - if (name != null) { - if (value != null) { - if (properties == null) properties = new Hashtable<String, String>(); - properties.put(name.toLowerCase(), value); - } else { - if (properties != null) properties.remove(name.toLowerCase()); - } - } - } - COM: <s> set the value of a property for this connection </s> - diff --git a/funcom_test/28952088.txt b/funcom_test/28952088.txt deleted file mode 100644 index 444229ae79310bad89cd204208947990e0940f04..0000000000000000000000000000000000000000 --- a/funcom_test/28952088.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addPropertySet(PropertySet set) { - if (set != null) { - String setName = set.getName(); - if (setName != null) { - if (propertySets == null) propertySets = new Hashtable<String, PropertySet>(); - propertySets.put(setName.toLowerCase(), set); - } else { - LOG.debug("Adding property set with no name to connection: " + name); - } - } - } - COM: <s> add a new property set to this connection description </s> - diff --git a/funcom_test/28952097.txt b/funcom_test/28952097.txt deleted file mode 100644 index e0b1528d6d43e4a01db02857b776095f32b19cdb..0000000000000000000000000000000000000000 --- a/funcom_test/28952097.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addEnumMap(EnumMap enumMap) { - if (enumMap != null) { - Class enumClass = enumMap.getEnumClass(); - if (enumClass != null) { - if (enumMaps == null) enumMaps = new Hashtable<Class, EnumMap>(); - enumMaps.put(enumClass, enumMap); - } else { - LOG.debug("Adding enum map with no enum class to connection: " + name); - } - } - } - COM: <s> add a new enum map to this connection description </s> - diff --git a/funcom_test/28952106.txt b/funcom_test/28952106.txt deleted file mode 100644 index a0273758a4fef08dd735f20aab8511196e45fac7..0000000000000000000000000000000000000000 --- a/funcom_test/28952106.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addStringMap(StringMap stringMap) { - if (stringMap != null) { - String mapName = stringMap.getName(); - if (mapName != null) { - if (stringMaps == null) stringMaps = new Hashtable<String, StringMap>(); - stringMaps.put(mapName, stringMap); - } else { - LOG.debug("Adding string map with no name to connection: " + name); - } - } - } - COM: <s> add a new string map to this connection description </s> - diff --git a/funcom_test/28952117.txt b/funcom_test/28952117.txt deleted file mode 100644 index 77d6d966d98a4ba96f8a0458314681ece482cc37..0000000000000000000000000000000000000000 --- a/funcom_test/28952117.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addObjectMap(ObjectMap objectMap) { - if (objectMap != null) { - String mapName = objectMap.getName(); - if (mapName != null) { - if (objectMaps == null) objectMaps = new Hashtable<String, ObjectMap>(); - objectMaps.put(mapName, objectMap); - } else { - LOG.debug("Adding object map with no name to connection: " + name); - } - } - } - COM: <s> add a new object map to this connection description </s> - diff --git a/funcom_test/28952125.txt b/funcom_test/28952125.txt deleted file mode 100644 index 787babb4c3fc5607676c2c16e4dc21117d4defdd..0000000000000000000000000000000000000000 --- a/funcom_test/28952125.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addObject(ObjectEntry object) { - if (object != null) { - String mapName = object.getName(); - if (mapName != null) { - if (objects == null) objects = new Hashtable<String, ObjectEntry>(); - objects.put(mapName, object); - } else { - LOG.debug("Adding object with no name to connection: " + name); - } - } - } - COM: <s> add a new object to this connection description </s> - diff --git a/funcom_test/28952132.txt b/funcom_test/28952132.txt deleted file mode 100644 index 954593337ef064c91818bd83580b099d6af227ae..0000000000000000000000000000000000000000 --- a/funcom_test/28952132.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addObjectList(ObjectList objectList) { - if (objectList != null) { - String mapName = objectList.getName(); - if (mapName != null) { - if (objectLists == null) objectLists = new Hashtable<String, ObjectList>(); - objectLists.put(mapName, objectList); - } else { - LOG.debug("Adding object list with no name to connection: " + name); - } - } - } - COM: <s> add a new object list to this connection description </s> - diff --git a/funcom_test/28952139.txt b/funcom_test/28952139.txt deleted file mode 100644 index a8738fe6e47500e7f1da89ebbbdbfd2ce7486378..0000000000000000000000000000000000000000 --- a/funcom_test/28952139.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addIdentifier(String name, String type, Identifier authority) { - if (authority != null) { - if (name != null) { - if (identifiers == null) identifiers = new Hashtable<String, Pair>(); - identifiers.put(name.toLowerCase(), new Pair(type, authority)); - } else { - LOG.debug("Adding identifier with no name to connection: " + this.name); - } - } - } - COM: <s> add a new identifier with a given type to this connection description </s> - diff --git a/funcom_test/28952191.txt b/funcom_test/28952191.txt deleted file mode 100644 index 7582b8e6d3e92610dcf0275a78cdac37906f4da2..0000000000000000000000000000000000000000 --- a/funcom_test/28952191.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean hasLocalUniqueId(boolean allowCrossReference) { - if (localId != null) { - // If we know it, say so - return true; - } else if (allowCrossReference) { - // If we don't know it, see if we can look it up - return xrefPatientId(true, null, null); - } else { - return false; - } - } - COM: <s> check whether this patietn id includes a translation to a local unique </s> - diff --git a/funcom_test/28952215.txt b/funcom_test/28952215.txt deleted file mode 100644 index 5b95b97799cee021e51ae7f2b76c5ae592b5bbe2..0000000000000000000000000000000000000000 --- a/funcom_test/28952215.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getId() { - if (localId != null) return localId; - if (idTable.isEmpty()) return null; - Enumeration<List<String>> ids = idTable.elements(); - //Just return the next available id. - while (ids.hasMoreElements()) { - List<String> idList = ids.nextElement(); - return idList.get(idList.size()-1); - } - return null; - } - COM: <s> get i some i id for this patient if any are known </s> - diff --git a/funcom_test/28952232.txt b/funcom_test/28952232.txt deleted file mode 100644 index f1c264ff73e12b01b9b6c091ed3ae51945adee4f..0000000000000000000000000000000000000000 --- a/funcom_test/28952232.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String listToString(List<String> ids) { - String ret = ""; - if (null != ids) { - for (int i=0; i<ids.size(); i++) { - if (i != 0) - ret += ", "; - - ret += ids.get(i); - } - } - return ret; - } - COM: <s> formats the id list to a comma separated string </s> - diff --git a/funcom_test/28952649.txt b/funcom_test/28952649.txt deleted file mode 100644 index 4207998a54d84b879a8d206f9786cc085945ce11..0000000000000000000000000000000000000000 --- a/funcom_test/28952649.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addAddress(Address address) { - // Get the address type - if (address == null) return; - AddressType type = address.getAddType(); - // Remove the old entry - removeAddress(type); - // Add the new entry - if (addressList == null) addressList = new ArrayList<Address>(); - addressList.add(address); - } - COM: <s> add an address to this patient </s> - diff --git a/funcom_test/28952659.txt b/funcom_test/28952659.txt deleted file mode 100644 index 852236d7fedb13a90b17096bbeba9621d6abb9b2..0000000000000000000000000000000000000000 --- a/funcom_test/28952659.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void removeAddress(AddressType type) { - if (addressList == null) return; - // Remove the old entry for this type of address - for (int i=0; i<addressList.size(); i++) { - Address next = addressList.get(i); - AddressType nextType = next.getAddType(); - if (nextType == null) { - if (type == null) { - addressList.remove(i); - break; - } - } else if ((type != null) && nextType.equals(type)) { - addressList.remove(i); - break; - } - } - } - COM: <s> remove the address entry of this type </s> - diff --git a/funcom_test/28952718.txt b/funcom_test/28952718.txt deleted file mode 100644 index c5ff392813c2489d3ca77160353bd6daa055b8de..0000000000000000000000000000000000000000 --- a/funcom_test/28952718.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addPhoneNumber(PhoneNumber phone) { - // Get the phone number - if (phone == null) return; - PhoneType type = phone.getType(); - // Remove the old entry - removePhoneNumber(type); - // Add the new entry - if (phoneList == null) phoneList = new ArrayList<PhoneNumber>(); - phoneList.add(phone); - } - COM: <s> add a new phone number to the list for this patient </s> - diff --git a/funcom_test/28952734.txt b/funcom_test/28952734.txt deleted file mode 100644 index e9a01e124946f84ed84cf0f4ad4ae13ada608e85..0000000000000000000000000000000000000000 --- a/funcom_test/28952734.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void removePhoneNumber(PhoneType type) { - if (phoneList == null) return; - // Remove the old entry for this type of address - for (int i=0; i<phoneList.size(); i++) { - PhoneNumber next = phoneList.get(i); - PhoneType nextType = next.getType(); - if (nextType == null) { - if (type == null) { - phoneList.remove(i); - break; - } - } else if ((type != null) && nextType.equals(type)) { - phoneList.remove(i); - break; - } - } - } - COM: <s> remove a particular type of phone number from the </s> - diff --git a/funcom_test/28952790.txt b/funcom_test/28952790.txt deleted file mode 100644 index cb9f2fa593f086604d38a7e895e3ea282303d450..0000000000000000000000000000000000000000 --- a/funcom_test/28952790.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void startSslServer(int portNumber, String keyStore, String trustStore) { - server = new TestSslServer(greeting, reply, portNumber, keyStore, trustStore); - server.start(); - try { Thread.sleep(300); } catch (Exception e) { System.out.println("I woke up early: " + e); } - } - COM: <s> use to generate a secure socket server </s> - diff --git a/funcom_test/28952811.txt b/funcom_test/28952811.txt deleted file mode 100644 index 4cd1dd70db5cc9961866365a1d3a5d72956808f2..0000000000000000000000000000000000000000 --- a/funcom_test/28952811.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testSimpleConnection() { - startServer(5555); - StandardConnectionDescription description = new StandardConnectionDescription(); - description.setHostname("127.0.0.1"); - description.setPort(5555); - description.complete(); - StandardConnection sc = new StandardConnection(description); - sc.connect(); - connection = sc; - buildStreams(); - - super.assertEquals("Greeting recieved from server", readFromServer(), greeting); - writer.println("Simple client message"); - super.assertEquals("Greeting recieved from server", readFromServer(), reply); - try { - reader.close(); - writer.close(); - } catch (IOException e) { System.out.println("Error closing streams: " + e); } - } - COM: <s> try the standard connection </s> - diff --git a/funcom_test/28953001.txt b/funcom_test/28953001.txt deleted file mode 100644 index 00aaf8fc56e5e02db8b8d98fabf2bce8b494d38d..0000000000000000000000000000000000000000 --- a/funcom_test/28953001.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void submitDocument(Document document, String description, XdsContentCode contentCode) throws DocumentException { - //TODO Decide if all valid submits should be done before signalling an error - if (document == null) - throw new DocumentException("Invalid document to submit"); - - for (IDocumentConsumer consumer: consumers) { - consumer.submitDocument(document, description, contentCode); - } - } - COM: <s> submit a new ihe document to the document repository s </s> - diff --git a/funcom_test/28953024.txt b/funcom_test/28953024.txt deleted file mode 100644 index 5a31c8ebd51f23a9be29b63e287928323e6c577e..0000000000000000000000000000000000000000 --- a/funcom_test/28953024.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void submitDocuments(Collection<Document> documents, String description, XdsContentCode contentCode) throws DocumentException { - //TODO Decide if all valid submits should be done before signalling an error - if (documents == null || documents.size() == 0) - throw new DocumentException("Invalid document to submit"); - - for (IDocumentConsumer consumer: consumers) { - consumer.submitDocuments(documents, description, contentCode); - } - } - COM: <s> submit a set of new ihe documents to the document repository s </s> - diff --git a/funcom_test/28953066.txt b/funcom_test/28953066.txt deleted file mode 100644 index 0be35b558fb0215681158f0eed40408e17971c66..0000000000000000000000000000000000000000 --- a/funcom_test/28953066.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setTestPatientId(String patientId) { - for (IDocumentConsumer consumer: consumers) { - if (consumer instanceof XdsDocumentActor) { - ((XdsDocumentActor) consumer).setTestPatientId(patientId); - } - } - for (IDocumentSource source: sources) { - if (source instanceof XdsDocumentActor) { - ((XdsDocumentActor) source).setTestPatientId(patientId); - } - } - } - COM: <s> hack to allow outside apps to set test patient id in all xds </s> - diff --git a/funcom_test/28953113.txt b/funcom_test/28953113.txt deleted file mode 100644 index cc04132daddd0508ec62199a1eb7e9533bac863d..0000000000000000000000000000000000000000 --- a/funcom_test/28953113.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Identifier reconcileIdentifier(Identifier authority, IConnectionDescription connection) { - List<Identifier> identifiers = connection.getAllIdentifiersByType("domain"); - for (Identifier identifier : identifiers) { - if ( identifier.equals(authority) ) { - return identifier; - } - } - //no identifier is found, just return the orinigal authority - return authority; - } - COM: <s> reconcile authority with the connection descritpion configuration </s> - diff --git a/funcom_test/28953117.txt b/funcom_test/28953117.txt deleted file mode 100644 index 494efa4895d09e3d49c1ee44ef1bdcd6cce2136a..0000000000000000000000000000000000000000 --- a/funcom_test/28953117.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private QBP_Q21 createPdqQuery(int chunkSize) throws DataTypeException, IheConfigurationException { - String messageId = getMessageId(); - QBP_Q21 message = new QBP_Q21(); - // Add the MSH segment - HL7v25.populateMSH(message.getMSH(), "QBP", "Q22", messageId, connection); - // Add the QPD segment - populateQPD(message.getQPD(), messageId); - // Add the RCP segment - populateRCP(message.getRCP(), chunkSize); - return message; - } - COM: <s> create a new pdq query but do not populate the segments describing the </s> - diff --git a/funcom_test/28953143.txt b/funcom_test/28953143.txt deleted file mode 100644 index 7134498b97f966f1ac82af309f241c324bcd09f3..0000000000000000000000000000000000000000 --- a/funcom_test/28953143.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void populateRCP(RCP rcp, int count) throws DataTypeException { - // RCP-1 - rcp.getQueryPriority().setValue("I"); - // RCP-2 (Optional) The number of answers to return - if (count > 0) { - rcp.getQuantityLimitedRequest().getQuantity().setValue(Integer.toString(count)); - rcp.getQuantityLimitedRequest().getUnits().getIdentifier().setValue("RD"); - } - } - COM: <s> populate the rcp segment of a pdq query </s> - diff --git a/funcom_test/28953149.txt b/funcom_test/28953149.txt deleted file mode 100644 index 28b56e303744f574d0b3eac5241e71dc15f70a79..0000000000000000000000000000000000000000 --- a/funcom_test/28953149.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private QBP_Q21 createContinuationQuery(QBP_Q21 message, String continuationPointer) throws DataTypeException { - // First, update the message header - HL7v25.updateMSH(message.getMSH(), getMessageId()); - // Next, update the DSC - message.getDSC().getContinuationPointer().setValue(continuationPointer); - message.getDSC().getContinuationStyle().setValue("I"); - // Done - return message; - } - COM: <s> modify a pdq query to become a continuation query </s> - diff --git a/funcom_test/28953492.txt b/funcom_test/28953492.txt deleted file mode 100644 index e869ab2b5a5c3aa95f6513fbdbdbfa1b50fce0a8..0000000000000000000000000000000000000000 --- a/funcom_test/28953492.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public enum Severity { - Emergency(0), // System is unusable - Alert(1), // Sction must be taken immediately - Critical(2), // Critical conditions - Error(3), // Error conditions - Warning(4), // Warning conditions - Notice(5), // Normal, but significant condition - Info(6), // Informational messages - Debug(7); // Debugging messages - - Severity(int value) { this.value = value; } - private final int value; - public int value() { return value; } - } - COM: <s> severity levels used in both rfc 3164 bsd syslog and rfc 3195 rsyslog </s> - diff --git a/funcom_test/28953582.txt b/funcom_test/28953582.txt deleted file mode 100644 index 20c3404ef90cf28bb7cd79646a469ce9aa30b727..0000000000000000000000000000000000000000 --- a/funcom_test/28953582.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void applicationActivity(AuditTypeCodes message) throws JAXBException { - for (IMessageTransmitter messenger: messengers) { - AuditObjectFactory factory = new AuditObjectFactory(messenger); - factory.setEventIdType(new EventId(AuditEventIds.ApplicationActivity, message, EventActionCode.Execute, SuccessCode.Success)); - formatAndLog(messenger, factory, false, ActiveParticipantIds.Application); - } - } - COM: <s> dicom supp 95 message a </s> - diff --git a/funcom_test/28953662.txt b/funcom_test/28953662.txt deleted file mode 100644 index 75f1d89fccc8a19521e8b93b00697860d6ca6153..0000000000000000000000000000000000000000 --- a/funcom_test/28953662.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public ResponseType getResponseType(OMElement response) { - // Extract the SOAPBody, if we can - if (response == null) return ResponseType.INVALID_RESPONSE; - // See if its empty - if (!response.isComplete()) return ResponseType.INCOMPLETE_RESPONSE; - - if(response.getLocalName().equals("RegistryResponse")) { - return ResponseType.REGISTRY_RESPONSE; - } - if(response.getLocalName().equals("RetrieveDocumentSetResponse")) { - return ResponseType.RETRIEVE_DOCUMENT_SET_RESPONSE; - } - // Not a registry response - return ResponseType.UNEXPECTED_RESPONSE; - } - COM: <s> get the type of response that this soap registry repository </s> - diff --git a/funcom_test/28953663.txt b/funcom_test/28953663.txt deleted file mode 100644 index f0a33770fc89d43d7a788bdee0f668a7f87d9bb2..0000000000000000000000000000000000000000 --- a/funcom_test/28953663.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void nodeAuthenticationFailure(SuccessCode success, IConnectionDescription otherServer) { - try { - ActiveParticipant otherServerAP = new ActiveParticipant(otherServer); - otherServerAP.role = ActiveParticipantIds.Destination; - this.securityAlert(success, otherServerAP); - } catch (JAXBException e) { - LOG.error("Unable to log node authentication.", e); - } - } - COM: <s> call when the node fails to authenticate itself with another node </s> - diff --git a/funcom_test/28953664.txt b/funcom_test/28953664.txt deleted file mode 100644 index 42416e8092b3869f2b053288dacd02e6d973aae3..0000000000000000000000000000000000000000 --- a/funcom_test/28953664.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public XdsResponse extractXdsResponse(ResponseType responseType, OMElement message) { - if (message == null) return null; - // Pull out the response - if (responseType == ResponseType.REGISTRY_RESPONSE) - return registry.getRegistryResponse(message); - else if (responseType == ResponseType.RETRIEVE_DOCUMENT_SET_RESPONSE) - return registry.getRetrieveDocumentSetResponse(message); - else - return null; - } - COM: <s> extract a registry response object from a message </s> - diff --git a/funcom_test/28953672.txt b/funcom_test/28953672.txt deleted file mode 100644 index 0e9e80663b010a35b55773e58272a3d5dc44b782..0000000000000000000000000000000000000000 --- a/funcom_test/28953672.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void writeAxiomElementMessage(OMElement message) { - if (log.isInfoEnabled()) { - if (message != null) { - StreamResult result = new StreamResult(new StringWriter()); - try { - AxiomUtil.prettify(message, result); - log.info(result.getWriter().toString()); - }catch(Exception e) { - log.error("Can't write OMElement to logger", e); - } - log.info(message); - } else { - log.info("NULL"); - } - } - } - COM: <s> write out an axiom omelement message to the logger </s> - diff --git a/funcom_test/28953673.txt b/funcom_test/28953673.txt deleted file mode 100644 index 6bba76af575fe44e88d934019b7bee74c9b636dd..0000000000000000000000000000000000000000 --- a/funcom_test/28953673.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void writeHL7Message(Message message) { - if (log.isInfoEnabled()) { - if (message != null) { - // Write out the message - try { - log.info(PipeParser.encode(message, new EncodingCharacters('|', "^~\\&"))); - } catch (HL7Exception e) { - log.info("Invalid HL7 message", e); - } - } else { - log.info("NULL"); - } - } - } - COM: <s> write out an hl7 message to the logger </s> - diff --git a/funcom_test/28953674.txt b/funcom_test/28953674.txt deleted file mode 100644 index 1441c1eb1cae56355dd029aa523cc85d14e19352..0000000000000000000000000000000000000000 --- a/funcom_test/28953674.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void userLogin(SuccessCode success, ActiveParticipant user) { - try { - if (user == null) user = getUser(); - if (user != null) { - user.role = ActiveParticipantIds.Source; - user.setRequestor(true); - this.userAuthentication(user, AuditTypeCodes.Login, success); - } - } catch (JAXBException e) { - LOG.error("Unable to log user authentication.", e); - } - } - COM: <s> call when a user authenticates himself </s> - diff --git a/funcom_test/28953679.txt b/funcom_test/28953679.txt deleted file mode 100644 index 0937dbb66c754078016b563bb1e6ec67dd1f4957..0000000000000000000000000000000000000000 --- a/funcom_test/28953679.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private EndpointReference getUrl() { - String host = connection.getHostname(); - int port = connection.getPort(); - boolean isSecure = connection.isSecure(); - String url = "http://"; - if(isSecure) { - url="https://"; - //TODO: handle protocol multiple invocations - Protocol.registerProtocol("https", new Protocol("https", - new SecureSocketFactory((SecureConnectionDescription)connection), connection.getPort())); - } - - url+= host + ":" + port + connection.getUrlPath(); - return new EndpointReference(url); - } - COM: <s> get the endpoint of this soap message </s> - diff --git a/funcom_test/28953689.txt b/funcom_test/28953689.txt deleted file mode 100644 index 96b33cf05b90f2c8db6e34dcda1035ee83d5d247..0000000000000000000000000000000000000000 --- a/funcom_test/28953689.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void userLogout(SuccessCode success, ActiveParticipant user) { - try { - if (user == null) user = getUser(); - user.role = ActiveParticipantIds.Source; - this.userAuthentication(user, AuditTypeCodes.Logout, success); - } catch (JAXBException e) { - LOG.error("Unable to log user authentication.", e); - } - } - COM: <s> call when a user logs out </s> - diff --git a/funcom_test/28953712.txt b/funcom_test/28953712.txt deleted file mode 100644 index e930202e3afb268421bf98731be5f9e978fa7c81..0000000000000000000000000000000000000000 --- a/funcom_test/28953712.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void recordImported(ParticipantObject patient, String mediaDesc) { - try { - ActiveParticipant user = getUser(); - user.role = ActiveParticipantIds.Destination; - ActiveParticipant media = getMedia(ActiveParticipantIds.SourceMedia, mediaDesc); - patient.role = ParticipantObjectRoleCode.Patient; - patient.typeCode = ParticipantObjectTypeCode.Person; - - this.dataImport(user, media, patient); - } catch (JAXBException e) { - LOG.error("Unable to log record import.", e); - } - } - COM: <s> call when a record is imported from external media </s> - diff --git a/funcom_test/28953715.txt b/funcom_test/28953715.txt deleted file mode 100644 index c532fc96dd25cc242d0cbd57d0ec272ed0478394..0000000000000000000000000000000000000000 --- a/funcom_test/28953715.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private String readResponse(InputStream stream) { - BufferedReader input = new BufferedReader(new InputStreamReader(stream)); - StringBuffer sb = new StringBuffer(); - String line; - try { - line = input.readLine(); - } catch (IOException e) { - line = null; - } - while (line != null) { - if (!line.trim().equals("")) { - if (sb.length() > 0) sb.append("\n"); - sb.append(line); - } - try { - line = input.readLine(); - } catch (IOException e) { - line = null; - } - } - return sb.toString(); - } - COM: <s> read the entire response from the http post as a string </s> - diff --git a/funcom_test/28953726.txt b/funcom_test/28953726.txt deleted file mode 100644 index c82f95832da4b9366721c72404a30e0235434b21..0000000000000000000000000000000000000000 --- a/funcom_test/28953726.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void recordExported(ParticipantObject patient, String mediaDesc) { - try { - ActiveParticipant user = getUser(); - ActiveParticipant media = getMedia(ActiveParticipantIds.DestinationMedia, mediaDesc); - patient.role = ParticipantObjectRoleCode.Patient; - patient.typeCode = ParticipantObjectTypeCode.Person; - - this.dataExport(user, media, patient); - } catch (JAXBException e) { - LOG.error("Unable to log record export.", e); - } - } - COM: <s> call when a record is exported to external media </s> - diff --git a/funcom_test/28953734.txt b/funcom_test/28953734.txt deleted file mode 100644 index 80fdea8dd105fcc438a535e8709ff0e8df4dfe76..0000000000000000000000000000000000000000 --- a/funcom_test/28953734.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getNonWildcardComponent(String value) { - if (value == null) return value; - if (misysConnectWildcard == null) return value; - if (!value.contains(misysConnectWildcard)) return value; - // Okay, the string contains the character, take it out - // This method is a little stronger than just beginning and ending characters - return value.replaceAll("\\Q" + misysConnectWildcard + "\\E", ""); - } - COM: <s> extract the part of a value string that holds no misys connect wildcard </s> - diff --git a/funcom_test/28953745.txt b/funcom_test/28953745.txt deleted file mode 100644 index 0b53fe0c16e787bb683874ec020af63f95fa808b..0000000000000000000000000000000000000000 --- a/funcom_test/28953745.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public enum DocumentRelationship { - APND { public String getValue() { return "APND"; }}, - RPLC { public String getValue() { return "RPLC"; }}, - XFRM { public String getValue() { return "XFRM";}}, - XFRM_RPLC {public String getValue() { return "XFRM_RPLC";}}; - - public abstract String getValue(); - } - COM: <s> document relationship types as defined by ihe iti technical framework profile </s> - diff --git a/funcom_test/28953778.txt b/funcom_test/28953778.txt deleted file mode 100644 index 0250e64f295bfbf42c5eda87b6d1fd7067f43734..0000000000000000000000000000000000000000 --- a/funcom_test/28953778.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean addRawPdqQueryField(QBP_Q21 message, String field, String value) throws HL7Exception { - if (value == null) return false; - QPD qpd = message.getQPD(); - // Query parameters are all jammed into QPD.3 - int i = qpd.getField(3).length; - Varies rep = (Varies) qpd.getField(3,i); - // Encode the parameter - QIP qip = new QIP(message); - qip.getSegmentFieldName().setValue("@" + field); - qip.getValues().setValue(value); - rep.setData(qip); - return true; - } - COM: <s> add a formatted query parameter to the hl7 message </s> - diff --git a/funcom_test/28953798.txt b/funcom_test/28953798.txt deleted file mode 100644 index 06250aed32e60ad0f1d67c25caafc249b4cc1651..0000000000000000000000000000000000000000 --- a/funcom_test/28953798.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private Message createPixQuery(String patientId, Identifier authority) throws DataTypeException, IheConfigurationException { - String messageId = "PIX_" + MessageId++; - QBP_Q21 message = new QBP_Q21(); - HL7v25.populateMSH(message.getMSH(), "QBP", "Q23", messageId, connection); - populatePixQuery(message, messageId, patientId, authority); - return message; - } - COM: <s> create a new hl7 pix query message </s> - diff --git a/funcom_test/28953808.txt b/funcom_test/28953808.txt deleted file mode 100644 index 75b2fdde0da93fa2133a0a548f0046d0d1a3c792..0000000000000000000000000000000000000000 --- a/funcom_test/28953808.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String formatWithWildcard(String value, String prefix, String suffix) { - if ((prefix != null) && (suffix != null)) { - return prefix + value + suffix; - } else if ((prefix != null)) { - return prefix + value; - } else if ((suffix != null)) { - return value + suffix; - } else { - return value; - } - } - COM: <s> format a value with the specified wildcards </s> - diff --git a/funcom_test/28953818.txt b/funcom_test/28953818.txt deleted file mode 100644 index 72503c9b770499eba9a15fae8105685464b2bb2b..0000000000000000000000000000000000000000 --- a/funcom_test/28953818.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public XmlAdhocQueryResponse getAdhocQueryResponse(SOAPBody message) { - //pull out the query response - NodeList responses = message.getElementsByTagNameNS(XmlRegistry.XDS_QUERY_V3_NAMESPACE, "AdhocQueryResponse"); - Node response = responses.item(0); - if (response instanceof Element) { - return new XmlAdhocQueryResponse((Element) response); - } else { - return null; - } - } - COM: <s> get a new xml adhoc query response object initialized with the xml </s> - diff --git a/funcom_test/28953873.txt b/funcom_test/28953873.txt deleted file mode 100644 index e8826b4e52bfd532c15f5b8dc2b06e219cddaa2a..0000000000000000000000000000000000000000 --- a/funcom_test/28953873.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addAttribute(String name, String value, boolean isRequired) throws XdsRimException { - if (value != null) { - root.setAttribute(name, value); - } else if (isRequired) { - throw new XdsRimException("Required attribute \"" + name + "\" not supplied."); - } - } - COM: <s> add an attribute to the root of this eb rim object </s> - diff --git a/funcom_test/28953881.txt b/funcom_test/28953881.txt deleted file mode 100644 index 4baec4c138b523552ee0f30e07c9e66963bd3e4e..0000000000000000000000000000000000000000 --- a/funcom_test/28953881.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addName(String name, boolean isRequired) throws XdsRimException, SOAPException { - if (name != null) { - addRimNameElement(root, name, rimNameSpace); - } else if (isRequired) { - throw new XdsRimException("Required Name not supplied."); - } - } - COM: <s> add a name to this eb rim object </s> - diff --git a/funcom_test/28953888.txt b/funcom_test/28953888.txt deleted file mode 100644 index 41b9b82c0562eff7f3dbf752cfa24d3b2a6ea95f..0000000000000000000000000000000000000000 --- a/funcom_test/28953888.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addDescription(String comment, boolean isRequired) throws XdsRimException, SOAPException { - if (comment != null) { - addRimDescriptionElement(root, comment, rimNameSpace); - } else if (isRequired) { - throw new XdsRimException("Required Description not supplied."); - } - } - COM: <s> add a description to this eb rim object </s> - diff --git a/funcom_test/28953893.txt b/funcom_test/28953893.txt deleted file mode 100644 index 623fee04b3d4685dafc27ebce6546faacefcd867..0000000000000000000000000000000000000000 --- a/funcom_test/28953893.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addSlot(String name, String value, boolean isRequired) throws XdsRimException, SOAPException { - if (value != null) { - addRimSlotElement(root, name, value, rimNameSpace); - } else if (isRequired) { - throw new XdsRimException("Required slot \"" + name + "\" not supplied."); - } - } - COM: <s> add a single valued slot to this eb rim object </s> - diff --git a/funcom_test/28953900.txt b/funcom_test/28953900.txt deleted file mode 100644 index 750c69074a9095b37b9c32008a141b2c692e3743..0000000000000000000000000000000000000000 --- a/funcom_test/28953900.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Object getObjectInstance(Class c) throws Exception { - Object ret = null; - try { - //try new instance first - ret = c.newInstance(); - } catch (InstantiationException e) { - //try getInstance() method - Method method = c.getMethod("getInstance"); - ret = method.invoke(null); - } - return ret; - } - COM: <s> get an instance of a class </s> - diff --git a/funcom_test/28953901.txt b/funcom_test/28953901.txt deleted file mode 100644 index 04a28a03c42535c9731c47b9d1b91393f3db9dc3..0000000000000000000000000000000000000000 --- a/funcom_test/28953901.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addSlot(String name, List<String> values, boolean isRequired) throws XdsRimException, SOAPException { - if (values != null) { - addRimSlotElement(root, name, values, rimNameSpace); - } else if (isRequired) { - throw new XdsRimException("Required slot \"" + name + "\" not supplied."); - } - } - COM: <s> add a multi valued slot to this eb rim </s> - diff --git a/funcom_test/28953912.txt b/funcom_test/28953912.txt deleted file mode 100644 index febceabfed53017cbb6ecc4784a6c0638f9f22e6..0000000000000000000000000000000000000000 --- a/funcom_test/28953912.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addClassification(String codeType, Collection<String> values, String classificationScheme, boolean isRequired) throws XdsRimException, SOAPException { - if (values != null) { - for (String value: values) { - addClassification(codeType, value, classificationScheme, isRequired); - } - } else if (isRequired) { - throw new XdsRimException("Required classification \"" + codeType + "\" not supplied."); - } - } - COM: <s> add a multi valued classification to this eb rim object </s> - diff --git a/funcom_test/28953926.txt b/funcom_test/28953926.txt deleted file mode 100644 index 1ac6f31e731a8331d002b6db8d8593844fba36dd..0000000000000000000000000000000000000000 --- a/funcom_test/28953926.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addExternalIdentifier(String name, String value, String identificationScheme, boolean isRequired) throws XdsRimException, SOAPException { - if (value != null) { - addRimExternalIdentifierElement(root, value, identificationScheme, name, rimNameSpace); - } else if (isRequired) { - throw new XdsRimException("Required external identifier \"" + name + "\" not supplied."); - } - } - COM: <s> add an external identifier to this eb rim object </s> - diff --git a/funcom_test/28953964.txt b/funcom_test/28953964.txt deleted file mode 100644 index 129fffdf929b169614fdce3c4ba5091e0d002ad9..0000000000000000000000000000000000000000 --- a/funcom_test/28953964.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected CCDDocument getDocument(boolean addStyleSheet) { - CCDDocument ccdDocument = new CCDDocument(); - ccdDocument.setContent(getDocumentString( addStyleSheet ) ); - ccdDocument.setErrors( errors.toArray(new Error[errors.size()])); - processMetadata(); - ccdDocument.setMetadata( metadata ); - - return ccdDocument; - } - COM: <s> gets the ccddocument of this document </s> - diff --git a/funcom_test/28954001.txt b/funcom_test/28954001.txt deleted file mode 100644 index f8d4147094d34903670be23eeb1d720f6854729c..0000000000000000000000000000000000000000 --- a/funcom_test/28954001.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public boolean sendA04PatientFeed(PatientDescriptor patient, Identifier authority) throws IheConfigurationException, PatientException, HL7Exception, PatientIdentityException, IOException { - return sendPatientIdentityFeed(patient, "A04", new Date(), CreationReason.OUTPATIENT_REGISTER, authority, null); - } - COM: <s> send an a04 patient feed message using the supplied authority as the </s> - diff --git a/funcom_test/28954229.txt b/funcom_test/28954229.txt deleted file mode 100644 index a50945fe713b584a38d7e24de3479ef68f158404..0000000000000000000000000000000000000000 --- a/funcom_test/28954229.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String getSourcePatientId() { - //concat($patID/@extension,"^^^&", $patID/@root, "&ISO") - return selectPath("ns:recordTarget/ns:patientRole/ns:id/@extension") + "^^^&" + - selectPath("ns:recordTarget/ns:patientRole/ns:id/@root") + "&ISO"; - } - COM: <s> gets the patient id </s> - diff --git a/funcom_test/28954261.txt b/funcom_test/28954261.txt deleted file mode 100644 index 428795b30eed7b55291d6efe31b627b8919df327..0000000000000000000000000000000000000000 --- a/funcom_test/28954261.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Date getServiceStartTime() { - String start = selectPath("ns:documentationOf/ns:serviceEvent/ns:effectiveTime/ns:low/@value"); - Date date = null; - - if (StringUtil.goodString(start)) { - try { - date = BaseBuildingComponent.dfLong.parse(start); - } catch (ParseException e) { - log.error(e); - } - } - return date; - } - COM: <s> gets the start time of the service that this cda document describes </s> - diff --git a/funcom_test/28954277.txt b/funcom_test/28954277.txt deleted file mode 100644 index 78f2ce2463cfcd1ee6fdf059eaaa893d36aa0cc8..0000000000000000000000000000000000000000 --- a/funcom_test/28954277.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Date getServiceEndTime() { - String end = selectPath("ns:documentationOf/ns:serviceEvent/ns:effectiveTime/ns:high/@value"); - Date date = null; - - if (StringUtil.goodString(end)) { - try { - date = BaseBuildingComponent.dfLong.parse(end); - } catch (ParseException e) { - log.error(e); - } - } - return date; - } - COM: <s> gets the end time of the service that this cda document describes </s> - diff --git a/funcom_test/28954907.txt b/funcom_test/28954907.txt deleted file mode 100644 index c68ca1a6bc7de7ebe43c5b653239cfda1e6f8343..0000000000000000000000000000000000000000 --- a/funcom_test/28954907.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void buildId(II id, Id idData, boolean useExtension) { - if (useExtension) { - id.setExtension(idData.getExtension()); - id.setRoot(idData.getRoot()); - } else { - String root = idData.getRoot() + "." + idData.getExtension(); - id.setRoot(root); - } - } - COM: <s> builds an oid </s> - diff --git a/funcom_test/2896279.txt b/funcom_test/2896279.txt deleted file mode 100644 index 17f880ddbb0e4f55dcaf721b914bfc99bc3dd4c6..0000000000000000000000000000000000000000 --- a/funcom_test/2896279.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String print(String tab) { - if (content instanceof RegExp) { - return tab+"type = "+type+Out.NL+tab+"content :"+Out.NL+((RegExp)content).print(tab+" "); - } - else - return tab+"type = "+type+Out.NL+tab+"content :"+Out.NL+tab+" "+content; - - } - COM: <s> returns a string representation of this regular expression </s> - diff --git a/funcom_test/2896317.txt b/funcom_test/2896317.txt deleted file mode 100644 index 841f5742d3634daa852212a27c3bb2cf0655269b..0000000000000000000000000000000000000000 --- a/funcom_test/2896317.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int getAndRemoveElement() { - int i = 0; - int o = 0; - long m = 1; - - while (bits[i] == 0) i++; - - while ( (bits[i] & m) == 0 ) { - m<<= 1; - o++; - } - - bits[i]&= ~m; - - return (i << BITS) + o; - } - COM: <s> returns one element of the set and removes it </s> - diff --git a/funcom_test/2896382.txt b/funcom_test/2896382.txt deleted file mode 100644 index f6c6119d27310d5205cee2989bbdb021f18d71b4..0000000000000000000000000000000000000000 --- a/funcom_test/2896382.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equals(Object o) { - IntCharSet set = (IntCharSet) o; - if ( intervalls.size() != set.intervalls.size() ) return false; - - for (int i = 0; i < intervalls.size(); i++) { - if ( !intervalls.elementAt(i).equals( set.intervalls.elementAt(i)) ) - return false; - } - - return true; - } - COM: <s> o instanceof intervall </s> - diff --git a/funcom_test/2896433.txt b/funcom_test/2896433.txt deleted file mode 100644 index b88c9fea5aef5cf95e603167ad8d6d3bf2cd2a34..0000000000000000000000000000000000000000 --- a/funcom_test/2896433.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString() { - StringBuffer result = new StringBuffer("CharClasses:"); - - result.append(Out.NL); - - for (int i = 0; i < classes.size(); i++) - result.append("class "+i+":"+Out.NL+classes.elementAt(i)+Out.NL); - - return result.toString(); - } - COM: <s> return a string representation of the char classes </s> - diff --git a/funcom_test/2896454.txt b/funcom_test/2896454.txt deleted file mode 100644 index 5a599032304b628d7ecc22c5cf9cb58032ca25a5..0000000000000000000000000000000000000000 --- a/funcom_test/2896454.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private Action getAction(StateSet set) { - - states.reset(set); - - Action maxAction = null; - - Out.debug("Determining action of : "+set); - - while ( states.hasMoreElements() ) { - - Action currentAction = action[ states.nextElement() ]; - - if ( currentAction != null ) { - if (maxAction == null) - maxAction = currentAction; - else - maxAction = maxAction.getHigherPriority(currentAction); - } - - } - - return maxAction; - } - COM: <s> returns the action with highest priority in the specified </s> - diff --git a/funcom_test/2896471.txt b/funcom_test/2896471.txt deleted file mode 100644 index cacd8a0da3a0ece5022ccc3cd5cae395ed3464c2..0000000000000000000000000000000000000000 --- a/funcom_test/2896471.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean insert(String name, RegExp definition) { - - if (Out.DEBUG) - Out.debug("inserting macro "+name+" with definition :"+Out.NL+definition); - - used.put(name, new Boolean(false)); - return macros.put(name,definition) == null; - } - COM: <s> stores a new macro and its definition </s> - diff --git a/funcom_test/2896476.txt b/funcom_test/2896476.txt deleted file mode 100644 index ec1380660f0e96de579bf89b6fdaf68468e7916f..0000000000000000000000000000000000000000 --- a/funcom_test/2896476.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Enumeration unused() { - - Vector unUsed = new Vector(); - - Enumeration names = used.keys(); - while ( names.hasMoreElements() ) { - String name = (String) names.nextElement(); - Boolean isUsed = (Boolean) used.get( name ); - if ( !isUsed.booleanValue() ) unUsed.addElement(name); - } - - return unUsed.elements(); - } - COM: <s> returns all unused macros </s> - diff --git a/funcom_test/2896534.txt b/funcom_test/2896534.txt deleted file mode 100644 index 327212d8b532900b78cbd7fdcce330438bccdeaf..0000000000000000000000000000000000000000 --- a/funcom_test/2896534.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void write(char buf[], int off, int len) { - if (text != null) { - text.append(new String(buf,off,len)); - if ((col+=len) > 78) println(); - } - else - super.write(buf, off, len); - } - COM: <s> write a portion of an array of characters </s> - diff --git a/funcom_test/2896535.txt b/funcom_test/2896535.txt deleted file mode 100644 index dcd8c3d3748232c5ec251ce368cfe1d1a38ead8f..0000000000000000000000000000000000000000 --- a/funcom_test/2896535.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void write(String s, int off, int len) { - if (text != null) { - text.append(s.substring(off,off+len)); - if ((col+=len) > 78) println(); - } - else { - super.write(s,off,len); - flush(); - } - } - COM: <s> write a portion of a string </s> - diff --git a/funcom_test/2897190.txt b/funcom_test/2897190.txt deleted file mode 100644 index 04392d85a7d6421bf64f92de5ba70d3ea596611d..0000000000000000000000000000000000000000 --- a/funcom_test/2897190.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getIndex (String uri, String localName) { - int max = length*5; - for (int i = 0; i < max; i += 5) { - if (data[i].equals(uri) && data[i + 1].equals(localName)) { - return i/5; - } - } - return -1; - } - COM: <s> look up an attributes index by namespace name </s> - diff --git a/funcom_test/2897212.txt b/funcom_test/2897212.txt deleted file mode 100644 index d3be33cf03869311968f9d633e6370fef4d03f81..0000000000000000000000000000000000000000 --- a/funcom_test/2897212.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getType (String uri, String localName) { - int max = length*5; - for (int i = 0; i < max; i += 5) { - if (data[i].equals(uri) && data[i + 1].equals(localName)) { - return data[i + 3]; - } - } - return null; - } - COM: <s> look up an attributes type by namespace qualified name </s> - diff --git a/funcom_test/2897220.txt b/funcom_test/2897220.txt deleted file mode 100644 index d652777ba4f15443b3b29eda6d1a5044e0e3d5e9..0000000000000000000000000000000000000000 --- a/funcom_test/2897220.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getValue (String uri, String localName) { - int max = length*5; - for (int i = 0; i < max; i += 5) { - if (data[i].equals(uri) && data[i + 1].equals(localName)) { - return data[i + 4]; - } - } - return null; - } - COM: <s> look up an attributes value by namespace qualified name </s> - diff --git a/funcom_test/29065191.txt b/funcom_test/29065191.txt deleted file mode 100644 index a3fa8bcab9eb88e119bffb77ae2e147df10c93c6..0000000000000000000000000000000000000000 --- a/funcom_test/29065191.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void addPanelNorth(Container parent) { - JPanel panelNorth = new JPanel(); - panelNorth.setBorder(BorderFactory.createEmptyBorder()); - JLabel lblStrategy = new JLabel(); - lblStrategy.setText("Strategy :"); - parent.add(panelNorth, BorderLayout.NORTH); - panelNorth.add(lblStrategy); - this.cmbStrategy = new JComboBox(); - panelNorth.add(this.cmbStrategy); - - createStrategies(); - - this.cmbStrategy.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - updateStrategy(); - } - }); - } - COM: <s> add a combobox with all strategies </s> - diff --git a/funcom_test/29065235.txt b/funcom_test/29065235.txt deleted file mode 100644 index a5e941af8432b0496146a696f0d49d6db842ea33..0000000000000000000000000000000000000000 --- a/funcom_test/29065235.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void initGUI() throws Exception { - //panel to choose the strategy - addPanelNorth(this); - //splitPane with treeView on the left and JTreeMap on the right - addPanelCenter(this); - //panel to choose the color provider - addPanelSouth(this); - //panel to choose the fields for a TM3 file - addPanelEast(this); - - //update the chosen strategy - updateStrategy(); - //update the chosen color provider - updateLegendPanel(); - } - COM: <s> init the window </s> - diff --git a/funcom_test/29065343.txt b/funcom_test/29065343.txt deleted file mode 100644 index 8088519d310a9009497cd72ff726b4a6e1924227..0000000000000000000000000000000000000000 --- a/funcom_test/29065343.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean canResizeColumn(Point point){ - JTableHeader th=(JTableHeader)target; - TableColumnModel columnModel = th.getColumnModel(); - int viewColumn = columnModel.getColumnIndexAtX(point.x ); - Rectangle r=th.getHeaderRect(th.getTable().convertColumnIndexToModel(viewColumn)); - r.grow(-3, 0); // Los tres ultimos pixels son el margen para redimensionar la columna - if(!r.contains(point)) return true; - return false; - } - COM: <s> check if is a point reserved for resize the column </s> - diff --git a/funcom_test/29065823.txt b/funcom_test/29065823.txt deleted file mode 100644 index 148aa5f3ec319b7085afceb3f907ae4fe6bdec3c..0000000000000000000000000000000000000000 --- a/funcom_test/29065823.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public DefaultMutableTreeNode append(String name, DefaultMutableTreeNode parent) { - /* - Element elem = document.createElement(name); - parent.appendChild(elem); - return elem; - */ - DefaultMutableTreeNode elem = new DefaultMutableTreeNode(new RubikCellImpl(name)); - parent.add(elem); - return elem; - - } - COM: <s> utility creates an element and appends it </s> - diff --git a/funcom_test/29065855.txt b/funcom_test/29065855.txt deleted file mode 100644 index 83e8758f94f06df4a4d8e626aabf42cf37590057..0000000000000000000000000000000000000000 --- a/funcom_test/29065855.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void showFrame() { - frame.getContentPane().add(createToolBarPanel(), BorderLayout.NORTH); - frame.getContentPane().add(rootWindow, BorderLayout.CENTER); - frame.getContentPane().add(createStatusBar(), java.awt.BorderLayout.SOUTH); - frame.setJMenuBar(new MenuBar().build()); - //frame.setSize(900, 700); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - frame.setVisible(true); - } - COM: <s> initializes the frame and shows it </s> - diff --git a/funcom_test/29066349.txt b/funcom_test/29066349.txt deleted file mode 100644 index 64ed756cb7190b0439495b4fc92c70ef6f5067fd..0000000000000000000000000000000000000000 --- a/funcom_test/29066349.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public OlapModel getModel(String id){ - OlapModel olapModel=(OlapModel) models.get(id); - if(olapModel==null){ - try { - if(modeXmla){ - olapModel=createXmlaModel(); - }else{ - olapModel=createMondrianModel(); - } - olapModel.setID(id); - models.put(id, olapModel); - OlapModelManagerEvent event - =new OlapModelManagerEvent(this,olapModel); - fireModelAdded(event); - if(olapModel.getID().equals(DEFAULT_MODEL)){ - fireDefaultModelChanged(event); - } - logger.debug("create "+id+" OlapModel"); - } catch (Exception e) { - logger.error(e); - } - } - return olapModel; - - } - COM: <s> return the olap model associated to id </s> - diff --git a/funcom_test/29066788.txt b/funcom_test/29066788.txt deleted file mode 100644 index 183e461a2a09ad8ab6460ffd81d4bf0ae68dcd94..0000000000000000000000000000000000000000 --- a/funcom_test/29066788.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private Number getNumberValue(RubikCell c){ - //**** HACK AR 2004.01.10 - //String value = cell.getFormattedValue(); - Cell cell=(Cell) c.getCell(); - Object value = cell.getValue(); - - DecimalFormatSymbols dfs = new DecimalFormatSymbols(locale); - DecimalFormat formatter = new DecimalFormat(); - formatter.setDecimalFormatSymbols(dfs); - Number number = null; - try { - number = (Number)value; - //number = formatter.parse(value, new ParsePosition(0)); - } - catch (Exception e) { - number = null; - } - return number; - - } - COM: <s> jpivot code new version </s> - diff --git a/funcom_test/29069894.txt b/funcom_test/29069894.txt deleted file mode 100644 index 8ae79dc7caf8ea9e3b14283ee01268ea57ce9559..0000000000000000000000000000000000000000 --- a/funcom_test/29069894.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String newGridbean( HttpServletRequest request ) throws Exception{ - - //deskryptor jednoznacznie definiujacy typ gridbeana - String descriptor = request.getParameter("descriptor"); - Long id = mappings.getNextID(); - - WebJobContainer wjc = new WebJobContainer(new WebGridBean( descriptor ), null); - - mappings.getIdGridbeanHashMap().put( new GridbeanId( id ), wjc ); - - return id.toString(); - } - COM: <s> method creates new web job container and returns new web gridbean id </s> - diff --git a/funcom_test/29272557.txt b/funcom_test/29272557.txt deleted file mode 100644 index d6b3502ed73ba0d2e1ce206e8f65f39ab48db3e7..0000000000000000000000000000000000000000 --- a/funcom_test/29272557.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getRelationName(OntResource resource, OntResource related){ - if (resource.isClass()){ - return getRelationName(resource.asClass(), related.asClass()); - } - else if (resource.isIndividual()){ - return getRelationName(resource.asIndividual(), - related.asIndividual()); - } - else return null; - } - COM: <s> gets the name of the relationship between two ont resources </s> - diff --git a/funcom_test/29298277.txt b/funcom_test/29298277.txt deleted file mode 100644 index 9e6782de4648aba44dc4b344c64a2d662caf7938..0000000000000000000000000000000000000000 --- a/funcom_test/29298277.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void close() { - if (recordstore != null){ - String fileName; - try { - fileName = recordstore.getName(); - Logger.logInfo(this,"close","Closing Recordstore [" + fileName+"]."); - recordstore.closeRecordStore(); - } catch (RecordStoreNotOpenException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (RecordStoreException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - } - COM: <s> p close the database and remove it from persistant </s> - diff --git a/funcom_test/29318680.txt b/funcom_test/29318680.txt deleted file mode 100644 index 39a2674f2f6782bdd3eec059d4b13b3626663dda..0000000000000000000000000000000000000000 --- a/funcom_test/29318680.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void addFaultTo(SOAPHeaderElement elem) throws MalformedURIException { - if (this.faultTo == null) { - this.faultTo = new FaultTo(elem); - } else { - // If this header is duplicated, we cannot assume the previous value is valid - this.faultTo = null; - this.addrHeaderFault = new AddressingHeaderFault( - AddressingHeaderFault.INVALID_CARDINALITY, - Constants.FAULT_TO); - } - } - COM: <s> sets the fault to header element checking duplicates </s> - diff --git a/funcom_test/29318722.txt b/funcom_test/29318722.txt deleted file mode 100644 index ee1382519f6e3d5909ebed23033c72b769431e84..0000000000000000000000000000000000000000 --- a/funcom_test/29318722.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addMessageID(SOAPHeaderElement elem) throws MalformedURIException { - if (this.messageID == null) { - this.messageID = new MessageID(elem); - } else { - this.addrHeaderFault = new AddressingHeaderFault( - AddressingHeaderFault.INVALID_CARDINALITY, - Constants.MESSAGE_ID); - } - } - COM: <s> sets the message id header element checking duplicates </s> - diff --git a/funcom_test/29318839.txt b/funcom_test/29318839.txt deleted file mode 100644 index e09e1887aaa3967dcb0240c2b889eaa2fd61de83..0000000000000000000000000000000000000000 --- a/funcom_test/29318839.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addReplyTo(SOAPHeaderElement elem) throws MalformedURIException { - if (this.replyTo == null) { - this.replyTo = new ReplyTo(elem); - } else { - this.addrHeaderFault = new AddressingHeaderFault( - AddressingHeaderFault.INVALID_CARDINALITY, - Constants.REPLY_TO); - } - } - COM: <s> sets the reply to header element checking duplicates </s> - diff --git a/funcom_test/29318894.txt b/funcom_test/29318894.txt deleted file mode 100644 index f1c374d1c5043db8cef03c1a3f4c9e894e43f032..0000000000000000000000000000000000000000 --- a/funcom_test/29318894.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String getTargetServiceName(AddressingHeaders headers) throws Exception { - To toURI = headers.getTo(); - if (toURI == null) { - return null; - } - String to = toURI.getPath(); - if (to == null) { - return null; - } - // set the target service - return (to.substring(to.lastIndexOf('/') + 1)); - } - COM: <s> can be overridden by subclasses to customize how the wsa to header is </s> - diff --git a/funcom_test/29318909.txt b/funcom_test/29318909.txt deleted file mode 100644 index 99247ddc62a0b5cf92da7f87e29b1db79b0b1732..0000000000000000000000000000000000000000 --- a/funcom_test/29318909.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Element makeElementFromXmlString(String xmlString) throws Exception { - DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); - dbf.setNamespaceAware(true); - DocumentBuilder builder = dbf.newDocumentBuilder(); - ByteArrayInputStream bais = new ByteArrayInputStream(xmlString.getBytes()); - Document d = builder.parse(bais); - return d.getDocumentElement(); - } - COM: <s> converts a string into a dom element </s> - diff --git a/funcom_test/29318932.txt b/funcom_test/29318932.txt deleted file mode 100644 index d0d883b21c127602bae8cfa814e2c4b83bd059e0..0000000000000000000000000000000000000000 --- a/funcom_test/29318932.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String readLine(InputStream in) throws IOException { - StringBuffer buf = new StringBuffer(); - int ch; - while ((ch = in.read()) != -1) { - if (ch == '\r') { - in.read(); - break; - } else { - buf.append((char) ch); - } - } - return buf.toString(); - } - COM: <s> reads a single line from the stream </s> - diff --git a/funcom_test/29318949.txt b/funcom_test/29318949.txt deleted file mode 100644 index a9391d7d450dd253b0daa4f538fe208ae109bad3..0000000000000000000000000000000000000000 --- a/funcom_test/29318949.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void checkAddress(EndpointReferenceType request) throws RemoteException { - AttributedURI address = request.getAddress(); - if (address == null) { - throw new RemoteException("Expected address: " + ADDRESS); - } else if (!address.toString().equals(ADDRESS)) { - throw new RemoteException("Expected: " + ADDRESS + " but was: " + address); - } - } - COM: <s> checks that the received epr address is correct </s> - diff --git a/funcom_test/29318952.txt b/funcom_test/29318952.txt deleted file mode 100644 index 3a3d86d4eeb7f1d2d69557f181ee5797b03ad0da..0000000000000000000000000000000000000000 --- a/funcom_test/29318952.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void checkPortType(EndpointReferenceType request) throws RemoteException { - AttributedQName port = request.getPortType(); - if (port == null) { - throw new RemoteException("Expected port: " + PORT_TYPE); - } else if (!port.equals(PORT_TYPE)) { - throw new RemoteException("Expected: " + PORT_TYPE + " but was: " + port); - } - } - COM: <s> checks that the received epr port type is correct </s> - diff --git a/funcom_test/29318964.txt b/funcom_test/29318964.txt deleted file mode 100644 index 8fa0b128077f36f44a2bfb5803297000d64cac8f..0000000000000000000000000000000000000000 --- a/funcom_test/29318964.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void assertRemoveHeadersEquals(String expectedRemoveHeaders) { - Map<String, String> handlerConfig = getHandler().getHandlerConfigProperties(); - assertNotNull(handlerConfig); - assertEquals( - expectedRemoveHeaders, - handlerConfig.get(AbstractAddressingHandler.CONFIG_PROP_REMOVE_HEADERS)); - assertEquals( - new Boolean(expectedRemoveHeaders).booleanValue(), - getHandler().isRemoveHeadersEnabled()); - } - COM: <s> checks the value of remove headers flag in the handler </s> - diff --git a/funcom_test/29318969.txt b/funcom_test/29318969.txt deleted file mode 100644 index ebe708d7b1d58c1690a0e5519ca40b354f5e3aaa..0000000000000000000000000000000000000000 --- a/funcom_test/29318969.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void assertActorEquals(String expectedActor) { - Map<String, String> handlerConfig = getHandler().getHandlerConfigProperties(); - assertNotNull(handlerConfig); - assertEquals(expectedActor, - handlerConfig.get(AbstractAddressingHandler.CONFIG_PROP_ACTOR)); - assertEquals(expectedActor, getHandler().getActor()); - } - COM: <s> checks the handler actor uri </s> - diff --git a/funcom_test/29321229.txt b/funcom_test/29321229.txt deleted file mode 100644 index 60c11b2181a8d461192746b733f202146aeddeef..0000000000000000000000000000000000000000 --- a/funcom_test/29321229.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JButton getJButton() { - if (jButton == null) { - jButton = new JButton(); - jButton.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT); - jButton.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM); - jButton.setSelected(true); - jButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); - jButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); - } - return jButton; - } - COM: <s> this method initializes j button </s> - diff --git a/funcom_test/29523296.txt b/funcom_test/29523296.txt deleted file mode 100644 index 7aafd2801be41d2746d47df2ca8557957563fb37..0000000000000000000000000000000000000000 --- a/funcom_test/29523296.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Point2D getPerimeterPoint(EdgeView edge, Point2D source, Point2D p) { - if (getRenderer() instanceof MultiLinedRenderer) - return ((MultiLinedRenderer) getRenderer()).getPerimeterPoint(this, source, p); - return super.getPerimeterPoint(edge, source, p); - } - COM: <s> returns the intersection of the bounding rectangle and the straight line </s> - diff --git a/funcom_test/29572299.txt b/funcom_test/29572299.txt deleted file mode 100644 index 081f2b605ec21ee81576eb734513d0cf2adb7487..0000000000000000000000000000000000000000 --- a/funcom_test/29572299.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void listen() throws IOException { - logMessage("Server started at " + this.getHostname() + ":" + this.getPort()); - while (true) { - Socket socket = serverSocket.accept(); - logMessage(socket.getInetAddress().getCanonicalHostName() + "has made a connection !"); - logMessage("Creating new listener"); - ListenThread task = new ListenThread(socket,this); - logMessage("Adding new totemcontrolcomhandler"); - addHandlers(task); - Thread listener = new Thread(task); - logMessage("Starting new thread"); - listener.run(); - } - } - COM: <s> starts the server blocks indefinately </s> - diff --git a/funcom_test/29591729.txt b/funcom_test/29591729.txt deleted file mode 100644 index 72a42ab237f42fc9c887f51d3b33edb02e218047..0000000000000000000000000000000000000000 --- a/funcom_test/29591729.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ProjectionCT (String name, String authority, ProjectionImpl proj) { - super( name, authority, TransformType.Projection); - this.proj = proj; - - List list = proj.getAttributes(); - for (int i=0; i<list.size(); i++) { - addParameter((Attribute) list.get(i)); - } - } - COM: <s> create a projection coordinate transform </s> - diff --git a/funcom_test/29591798.txt b/funcom_test/29591798.txt deleted file mode 100644 index 56395147c44d240de2c51421fc6ebff4650f68bf..0000000000000000000000000000000000000000 --- a/funcom_test/29591798.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CoordinateAxis findCoordinateAxis(String name) { - if (name == null) return null; - for (int i=0; i<coordAxes.size(); i++) { - CoordinateAxis v = (CoordinateAxis) coordAxes.get(i); - if (name.equals(v.getName())) - return v; - } - return null; - } - COM: <s> retrieve the coordinate axis with the specified name </s> - diff --git a/funcom_test/29591805.txt b/funcom_test/29591805.txt deleted file mode 100644 index f63b44d89c8e6703f0930d2ae11cf5683e4c24d2..0000000000000000000000000000000000000000 --- a/funcom_test/29591805.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CoordinateSystem findCoordinateSystem(String name) { - if (name == null) return null; - for (int i=0; i<coordSys.size(); i++) { - CoordinateSystem v = (CoordinateSystem) coordSys.get(i); - if (name.equals(v.getName())) - return v; - } - return null; - } - COM: <s> retrieve the coordinate system with the specified name </s> - diff --git a/funcom_test/29591835.txt b/funcom_test/29591835.txt deleted file mode 100644 index 6e9745ea959898f06d7f0fef72feddbd9355b8e8..0000000000000000000000000000000000000000 --- a/funcom_test/29591835.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CoordinateTransform (String name, String authority, TransformType transformType) { - this.name = name; - this.authority = authority; - this.transformType = transformType; - //if (transformTypeS != null) - //this.transformType = TransformType.getType( transformTypeS); - // this.referenceSystem = referenceSystem; - this.params = new ArrayList(); - } - COM: <s> create a coordinate transform </s> - diff --git a/funcom_test/29591858.txt b/funcom_test/29591858.txt deleted file mode 100644 index 0642090ccc12d0fa7019eaf195fd9f04d2601c61..0000000000000000000000000000000000000000 --- a/funcom_test/29591858.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: static public String makeName( List axes) { - StringBuffer buff = new StringBuffer(); - for (int i=0; i<axes.size(); i++) { - CoordinateAxis axis = (CoordinateAxis) axes.get(i); - if (i>0) buff.append("-"); - buff.append( axis.getName()); - } - return buff.toString(); - } - COM: <s> create standard name from list of axes </s> - diff --git a/funcom_test/29591879.txt b/funcom_test/29591879.txt deleted file mode 100644 index 80c1248adda69c185027a4530b154914cc280d9f..0000000000000000000000000000000000000000 --- a/funcom_test/29591879.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CoordinateAxis addCoordinateAxis( VariableDS v) { - if (v == null) return null; - variables.remove( v); // remove by name if it exists - coordAxes.remove( v); - CoordinateAxis ca = (v instanceof CoordinateAxis) ? (CoordinateAxis) v : CoordinateAxis.factory(this, v); - variables.add( ca); - coordAxes.add( ca); - return ca; - } - COM: <s> add a coordinate axis </s> - diff --git a/funcom_test/29591899.txt b/funcom_test/29591899.txt deleted file mode 100644 index b592676b53ed0687acddb46bbe06e8a7433eb384..0000000000000000000000000000000000000000 --- a/funcom_test/29591899.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object getValue() { - if (isString()) return valString; - - // have to create an array of primitives - Object data = Array.newInstance(dataType.getPrimitiveClassType(), nvals); - for (int i=0; i<nvals; i++) { - Array.set(data, i, getNumericValue(i)); - } - return data; - } - COM: <s> retrieve the value in its most general form </s> - diff --git a/funcom_test/29591977.txt b/funcom_test/29591977.txt deleted file mode 100644 index 2789168bc3cdda8a73fffbf3916900b590861257..0000000000000000000000000000000000000000 --- a/funcom_test/29591977.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isComplete(Variable v) { - List dims = v.getDimensions(); - for (int i=0; i<dims.size(); i++) { - Dimension d = (Dimension) dims.get(i); - if (!(domain.contains(d))) return false; - } - return true; - } - COM: <s> true if all dimensions in v are in the domain of this </s> - diff --git a/funcom_test/29591994.txt b/funcom_test/29591994.txt deleted file mode 100644 index c46996b2654307efae10882920845fd41cc56669..0000000000000000000000000000000000000000 --- a/funcom_test/29591994.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getLevelName(int index) { - if ((vertZaxis == null) || (index < 0) || (index >= vertZaxis.getSize())) - throw new IllegalArgumentException("getLevelName = "+index); - - NamedAnything name = (NamedAnything) levels.get(index); - return name.getName(); - } - COM: <s> get the string name for the ith level z coordinate </s> - diff --git a/funcom_test/29591999.txt b/funcom_test/29591999.txt deleted file mode 100644 index f9168f348283a595d505e1c61b4e07e29b1c2c4c..0000000000000000000000000000000000000000 --- a/funcom_test/29591999.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getTimeName(int index) { - if ((timeTaxis == null) || (index < 0) || (index >= timeTaxis.getSize())) - throw new IllegalArgumentException("getTimeName = "+index); - - NamedAnything name = (NamedAnything) times.get(index); - return name.getName(); - } - COM: <s> get the string name for the ith time coordinate </s> - diff --git a/funcom_test/29592096.txt b/funcom_test/29592096.txt deleted file mode 100644 index 269d159243a2a2a406efff61145c19c5857680a8..0000000000000000000000000000000000000000 --- a/funcom_test/29592096.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void findCoordinateVariables(NetcdfDataset ds) { - Iterator vars = ds.getVariables().iterator(); // uses copy - while (vars.hasNext()) { - VariableDS ncvar = (VariableDS) vars.next(); - if (ncvar.isCoordinateVariable() && !(ncvar instanceof CoordinateAxis)) { - ds.addCoordinateAxis( ncvar); - } - } - } - COM: <s> find the net cdf coordinate variables </s> - diff --git a/funcom_test/29592217.txt b/funcom_test/29592217.txt deleted file mode 100644 index 172124e43318afc5a7ecb74d8f4eecabc9c937dc..0000000000000000000000000000000000000000 --- a/funcom_test/29592217.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public DODSStructure findStructure(String name) { - if (name == null) return null; - - for (int i=0; i<structures.size(); i++) { - DODSStructure v = (DODSStructure) structures.get(i); - if (name.equals(v.getName())) - return v; - if (null != (v = v.findStructure( name))) - return v; - } - - return null; - } - COM: <s> find the structure with the specified name recursively searching through </s> - diff --git a/funcom_test/29592224.txt b/funcom_test/29592224.txt deleted file mode 100644 index 96f54097dffb27a1feaec7f4fcfffd5051d040b8..0000000000000000000000000000000000000000 --- a/funcom_test/29592224.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public DODSStructure findStructureByShortName(String shortName) { - if (name == null) return null; - - for (int i=0; i<structures.size(); i++) { - DODSStructure v = (DODSStructure) structures.get(i); - if (shortName.equals(v.getNameShort())) - return v; - } - return null; - } - COM: <s> find the structure with the specified short name </s> - diff --git a/funcom_test/29592240.txt b/funcom_test/29592240.txt deleted file mode 100644 index 667ae6576a03a6c4ceb86c14bc9be6088ff1501f..0000000000000000000000000000000000000000 --- a/funcom_test/29592240.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public DODSVariable findVariableByShortName(String shortName) { - if (name == null) return null; - - for (int i=0; i<variables.size(); i++) { - DODSVariable v = (DODSVariable) variables.get(i); - if (shortName.equals(v.getNameShort())) - return v; - } - return null; - } - COM: <s> find the variable with the specified short name </s> - diff --git a/funcom_test/29592287.txt b/funcom_test/29592287.txt deleted file mode 100644 index 7ab151cb395f7753764e3998aa2eeaebdd0df9a2..0000000000000000000000000000000000000000 --- a/funcom_test/29592287.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public DODSStructure getStructure(Index index) { - DStructure ds = (DStructure) pv.getValue(index.currentElement()); - DODSStructure dataStructure = new DODSStructure(getName(), this); - extractData( dataStructure, new LinkedList(), ds); - return dataStructure; - } - COM: <s> get the structure at the specified index </s> - diff --git a/funcom_test/29592368.txt b/funcom_test/29592368.txt deleted file mode 100644 index 54aee8c407c36b47cba72feb5e532f35f8922f40..0000000000000000000000000000000000000000 --- a/funcom_test/29592368.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Array read(int [] origin, int [] shape) throws IOException, InvalidRangeException { - ucar.multiarray.MultiArray ma = ncvar.copyout(origin, shape); - Object storage = ma.getStorage(); - ArrayAbstract aa = ArrayAbstract.factory( ma.getComponentType(), ma.getLengths(), storage); - return aa; - } - COM: <s> read data subset from the netcdf file and return a memory resident array </s> - diff --git a/funcom_test/29592435.txt b/funcom_test/29592435.txt deleted file mode 100644 index 89ed169ec1647abaa90fe6cbf1525bbb7c2846f4..0000000000000000000000000000000000000000 --- a/funcom_test/29592435.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String toStringN() { - buf.setLength(0); - buf.append(" "); - getFullNameN( buf); - - ucar.netcdf.AttributeIterator iter = ncvar.getAttributes().iterator(); - while (iter.hasNext()) { - buf.append( "\n "); - iter.next().toCdl(buf); - } - buf.append("\n"); - return buf.toString(); - } - COM: <s> debugging nicely formatted string representation of underlying ucar </s> - diff --git a/funcom_test/29592455.txt b/funcom_test/29592455.txt deleted file mode 100644 index b7f747f19a3603b31ec615898c4dc67a5ac11c92..0000000000000000000000000000000000000000 --- a/funcom_test/29592455.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Dimension addDimension(String dimName, int size) { - if (!defineMode) - throw new UnsupportedOperationException("not in define mode"); - - if (size < 0) - return new Dimension( new ucar.netcdf.UnlimitedDimension( dimName)); - return new Dimension( new ucar.netcdf.Dimension( dimName, size)); - } - COM: <s> add a dimension to the file </s> - diff --git a/funcom_test/29592481.txt b/funcom_test/29592481.txt deleted file mode 100644 index 9ea43788e4a1a78abebe678c84c55ff469f902e1..0000000000000000000000000000000000000000 --- a/funcom_test/29592481.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: static public String removeWhitespace( String s) { - int len = s.length(); - StringBuffer b = new StringBuffer( len); - for (int i=0; i< len; i++) { - char c = s.charAt(i); - if (!Character.isWhitespace(c)) - b.append(c); - } - return b.toString(); - } - COM: <s> remove all whitespace in the string </s> - diff --git a/funcom_test/29592487.txt b/funcom_test/29592487.txt deleted file mode 100644 index 9159767ea82c6dd85729851127a6e95677f8a873..0000000000000000000000000000000000000000 --- a/funcom_test/29592487.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: static public String remove( String s, int c) { - if (0 > s.indexOf(c)) // none - return s; - - StringBuffer buff = new StringBuffer(s); - int i=0; - while (i<buff.length()) { - if (buff.charAt(i) == c) - buff.deleteCharAt(i); - else - i++; - } - return buff.toString(); - } - COM: <s> remove all occurrences of the character c in the string s </s> - diff --git a/funcom_test/29592491.txt b/funcom_test/29592491.txt deleted file mode 100644 index b92ffa080e7c195f8670055cd0cccb375cf7fbf6..0000000000000000000000000000000000000000 --- a/funcom_test/29592491.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: static public String substitute( String original, String match, String subst) { - String s = original; - int pos; - while (0 <= (pos = s.indexOf( match))) { - StringBuffer sb = new StringBuffer( s); - s = sb.replace( pos, pos + match.length(), subst).toString(); - } - - return s; - } - COM: <s> find all occurences of the match in original and substitute the subst string </s> - diff --git a/funcom_test/29592493.txt b/funcom_test/29592493.txt deleted file mode 100644 index 3d1cd4861019a164e7ed0a7f5aa08ad4f90015ca..0000000000000000000000000000000000000000 --- a/funcom_test/29592493.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void create() throws java.io.IOException { - if (!defineMode) - throw new UnsupportedOperationException("not in define mode"); - - ncfile = new ucar.netcdf.NetcdfFile( name, true, fill, schema); - if (ncfile == null) { // can this happen ?? - throw new java.io.IOException("createNetcdfFile failed"); - } - init(ncfile); - - defineMode = false; - } - COM: <s> after you have added all of the dimensions variables and attributes </s> - diff --git a/funcom_test/29592597.txt b/funcom_test/29592597.txt deleted file mode 100644 index ca0ac987d093a4fe8597c44d68944ca407a5a917..0000000000000000000000000000000000000000 --- a/funcom_test/29592597.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Variable findVariable(String name) { - if (name == null) return null; - - for (int i=0; i<variables.size(); i++) { - Variable v = (Variable) variables.get(i); - if (name.equals(v.getName())) - return v; - } - return null; - } - COM: <s> retrieve the variable with the specified name </s> - diff --git a/funcom_test/29593176.txt b/funcom_test/29593176.txt deleted file mode 100644 index 1c6e0a8db31932be5a54ee40efc661be56698a14..0000000000000000000000000000000000000000 --- a/funcom_test/29593176.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected int incr() { - int digit = rank-1; - while (digit >= 0) { - current[digit]++; - if (current[digit] < shape[digit]) - break; // normal exit - current[digit] = 0; // else, carry - digit--; - } - return currentElement(); - } - COM: <s> increment the current element by 1 </s> - diff --git a/funcom_test/29593652.txt b/funcom_test/29593652.txt deleted file mode 100644 index 6aab22013595a92bd9e2322e19af725ff6050f76..0000000000000000000000000000000000000000 --- a/funcom_test/29593652.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public D6 (int len0, int len1, int len2, int len3, int len4, int len5) { - super(new int [] {len0, len1, len2, len3, len4, len5}); - ix = (Index6D) indexCalc; - } - COM: <s> constructor for array of shape len0 len1 len2 len3 len4 len5 </s> - diff --git a/funcom_test/29593661.txt b/funcom_test/29593661.txt deleted file mode 100644 index de3807a7e9ae407411e4badf15a1d0dd7803f251..0000000000000000000000000000000000000000 --- a/funcom_test/29593661.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: static public void arraycopy( ArrayAbstract arraySrc, int srcPos, ArrayAbstract arrayDst, int dstPos, int len) { - System.arraycopy( arraySrc.getStorage(), srcPos, arrayDst.getStorage(), dstPos, len); - } - COM: <s> cover for system </s> - diff --git a/funcom_test/29593696.txt b/funcom_test/29593696.txt deleted file mode 100644 index a8a066f20adf0c0b6f8222e84447367d756e2c15..0000000000000000000000000000000000000000 --- a/funcom_test/29593696.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public double dot(MAVector v) { - - if (nelems != v.getNelems()) - throw new IllegalArgumentException("MAVector.dot "+nelems+" != "+ v.getNelems()); - - double sum = 0.0; - for (int k=0; k<nelems; k++) - sum += getDouble(k) * v.getDouble(k); - - return sum; - } - COM: <s> dot product of 2 vectors </s> - diff --git a/funcom_test/29594254.txt b/funcom_test/29594254.txt deleted file mode 100644 index 8cd901dd43effeb5c9cdd6d29457fb0d40101b8c..0000000000000000000000000000000000000000 --- a/funcom_test/29594254.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getString() { - int rank = getRank(); - if (rank != 1) - throw new IllegalArgumentException("ArayChar.getString rank must be 1"); - int strLen = getShape()[0]; - - int count = 0; - for (int k=0; k<strLen; k++) { - if (0 == storage[k]) - break; - count++; - } - return new String(storage, 0, count); - } - COM: <s> create a string out of this rank one array char object </s> - diff --git a/funcom_test/29594342.txt b/funcom_test/29594342.txt deleted file mode 100644 index 8d9485e00a98cd7b732da2cd28b64eac18c0877b..0000000000000000000000000000000000000000 --- a/funcom_test/29594342.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: static private long computeStrides(int [] shape, int [] stride) { - long product = 1; - for(int ii = shape.length-1; ii >= 0; ii--) { - final int thisDim = shape[ii]; - if(thisDim < 0) - throw new NegativeArraySizeException(); - stride[ii] = (int) product; - product *= thisDim; - } - return product; - } - COM: <s> compute standard strides based on arrays shape </s> - diff --git a/funcom_test/29599075.txt b/funcom_test/29599075.txt deleted file mode 100644 index d233c183eb73267a8e7d8d3f2ae85cdc2f3d5aac..0000000000000000000000000000000000000000 --- a/funcom_test/29599075.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void copy(final InterchunkWord o) { - /* Yes, we're only copying chunk, not queue as well. - * This is what the C++ code does as well. - * However, the C++ code makes this private, as it overloads the '=' operator, - * then calls this method. Java doesn't have operator overloading, so making - * this method public instead. - */ - _chunk = o._chunk; - } - COM: <s> copies the the supplied interchunk word to this one </s> - diff --git a/funcom_test/29599150.txt b/funcom_test/29599150.txt deleted file mode 100644 index efb9618370128da04388366edee6987c89022b8e..0000000000000000000000000000000000000000 --- a/funcom_test/29599150.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int cast(int c1, int c2) { - tmp.first=c1; - tmp.second=c2; - Integer res = spair.get(tmp); - if (res==null) { - int spair_size = spair.size(); - spair.put(tmp, spair_size); - spairinv.add(tmp); - // for use next time - tmp = new IntegerPair(0,0); - return spair_size; - } - return res; - } - COM: <s> get an unique code for a pair of characters </s> - diff --git a/funcom_test/29599208.txt b/funcom_test/29599208.txt deleted file mode 100644 index 75661203b56f75aef2abf6b0e31d5d78ba8e4a9c..0000000000000000000000000000000000000000 --- a/funcom_test/29599208.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean allBlanks() throws XMLStreamException { - boolean res = true; - if (!reader.hasText()) { - return true; - } - String text = reader.getText(); - for (int i = 0, limit = text.length(); i < limit; i++) { - res = res && Character.isWhitespace(text.charAt(i)); - } - return res; - } - COM: <s> true if all the elements in the current node are blanks </s> - diff --git a/funcom_test/29599228.txt b/funcom_test/29599228.txt deleted file mode 100644 index fbfe19eded5d1d5a5ed25f508c3b2a0f981e1022..0000000000000000000000000000000000000000 --- a/funcom_test/29599228.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private EntList append(EntList result, Pair<String, String> endings) { - for (int i = 0; i < result.size(); i++) { - result.get(i).first += endings.first; - result.get(i).second += endings.second; - } - return result; - } - COM: <s> append endings to a list of current transductions </s> - diff --git a/funcom_test/29599231.txt b/funcom_test/29599231.txt deleted file mode 100644 index db1d39b877fe6cb5eb2ee62fda362e58a9653434..0000000000000000000000000000000000000000 --- a/funcom_test/29599231.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String attrib(String s) { - String value = ""; - if (reader.isStartElement() || reader.getEventType() == XMLStreamConstants.ATTRIBUTE) { - value = reader.getAttributeValue(reader.getNamespaceURI(), s); - if (value == null) { - value = ""; - } - } - return value; - } - COM: <s> gets an attribute value with their name and the current context </s> - diff --git a/funcom_test/29599234.txt b/funcom_test/29599234.txt deleted file mode 100644 index fc9172b242faf4fcc37845683559ca0dc9fb3a73..0000000000000000000000000000000000000000 --- a/funcom_test/29599234.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private boolean isEmpty(XMLStreamReader reader) { - System.err.println("carefull, using the isEmpty() method, " + - "which is not really implemented yet"); - return (reader.isStartElement() && reader.isEndElement() && !reader.hasText()); - } - COM: <s> compute if the current node is emmpty </s> - diff --git a/funcom_test/29599334.txt b/funcom_test/29599334.txt deleted file mode 100644 index a5444bb69b8bfb6d98b0b89edf9b0aaa745c6fee..0000000000000000000000000000000000000000 --- a/funcom_test/29599334.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void requireAttribute(String value, String name_attr, String name_elem) { - if (value.equals("")) { - throw new RuntimeException("Error (" + reader.getLocation().getLineNumber() + - "): '" + name_elem + "' must be specified non-void '" + name_attr + "' attribute"); - } - } - COM: <s> force an attribute to be specified amd check for it </s> - diff --git a/funcom_test/29599903.txt b/funcom_test/29599903.txt deleted file mode 100644 index 52f82e9a223375c3abedc5a6491eaf6184c40907..0000000000000000000000000000000000000000 --- a/funcom_test/29599903.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void _addPattern(Integer seqId, ArrayList<Integer> seqData) { - ArrayList<ArrayList<Integer>> patternEntry = patterns.get(seqId); - if (patternEntry == null) { //Nothing stored under that key yet. - patternEntry = new ArrayList<ArrayList<Integer>>(); - patterns.put(seqId, patternEntry); - } - patternEntry.add(seqData); - } - COM: <s> private function to handle adding sequences to the patterns list </s> - diff --git a/funcom_test/29599924.txt b/funcom_test/29599924.txt deleted file mode 100644 index 29eb331a73a0fc65f7726651651591212e6a2acc..0000000000000000000000000000000000000000 --- a/funcom_test/29599924.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String get_string_tags () { - String st="{"; - - if(tags.size() > 0) { - st += array_tags.get(0); - } - for (int i=1; i < tags.size(); i++) { - st +=","; - st += array_tags.get(i); - } - st += "}"; - - return st; - } - COM: <s> get a string with the set of tags </s> - diff --git a/funcom_test/29600497.txt b/funcom_test/29600497.txt deleted file mode 100644 index c7d5fd2da4225fec2eac910cf1c9a670a18018d4..0000000000000000000000000000000000000000 --- a/funcom_test/29600497.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void calculateResidualMemory(List<AppInformation> apps,int[][] I) { - int residualMemoryTmp =memoryCapacity; - for(int i=0; i< I.length;i++) - residualMemoryTmp-=apps.get(i).getMemoryDemand()*I[i][getPosition()]; - - //TODO: What happens if residual memory < 0? - residualMemory=residualMemoryTmp; - } - COM: <s> calculates the amount of memory not assigned to any application instance </s> - diff --git a/funcom_test/29600508.txt b/funcom_test/29600508.txt deleted file mode 100644 index 8301522b628ce107ff2df8434a2efa15df724639..0000000000000000000000000000000000000000 --- a/funcom_test/29600508.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void copyTo(ServerInformation backupMachine) { - backupMachine.setServer(getServer()); - backupMachine.setPosition(getPosition()); - backupMachine.setCpuCapacity(getCpuCapacity()); - backupMachine.setMemoryCapacity(getMemoryCapacity()); - backupMachine.setResidualCPU(getResidualCPU()); - backupMachine.setResidualMemory(getResidualMemory()); - } - COM: <s> copies server information to anocher code server information code object </s> - diff --git a/funcom_test/29600598.txt b/funcom_test/29600598.txt deleted file mode 100644 index b693e66337fa4540b34d46e131b55dddc9e41e6e..0000000000000000000000000000000000000000 --- a/funcom_test/29600598.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getStringTags(int i) { - StringBuilder str = new StringBuilder(32); - for (int j=0; j<tags[i].length; j++) { - if (tags[i][j] != null) { - if (str.length()>0) - str.append("."); - str.append(tags[i][j]); - } - } - - return str.toString(); - } - COM: <s> return a string representing all not ignored tags in the i th position </s> - diff --git a/funcom_test/29600607.txt b/funcom_test/29600607.txt deleted file mode 100644 index 4f4a22e3fb08554174fed05c1bdab3d046095f6b..0000000000000000000000000000000000000000 --- a/funcom_test/29600607.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void characters(char[] c, int start, int length) { - String str = ""; - - if (length > 0) { - if (last_element.length() > 0) - str += ">"; - last_element = ""; - - for (int i = start; i < (start + length); i++) - str += c[i]; - - if (reading_e) - content_e += str; - else - out.print(str); - } - } - COM: <s> receive notification of character data inside an element </s> - diff --git a/funcom_test/29600928.txt b/funcom_test/29600928.txt deleted file mode 100644 index 0e9e6b818aa9e858661a228a426dadb45dcece14..0000000000000000000000000000000000000000 --- a/funcom_test/29600928.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void update(double measuredLoad) - { - this.predictedLoad=(1-k)*this.predictedLoad+k*measuredLoad; - //this.predictedLoad=measuredLoad; - logger.trace("Updating admission control. measured load: "+Double.toString(measuredLoad)+". Predicted load: "+Double.toString(predictedLoad)); - updateCanAccept(); - } - COM: <s> updates admission control system with the real measured load </s> - diff --git a/funcom_test/29601303.txt b/funcom_test/29601303.txt deleted file mode 100644 index 9f6848b278490c03c62b246bcf978dd5e70b3d0e..0000000000000000000000000000000000000000 --- a/funcom_test/29601303.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getSrcWord() { - if (srcWord == null) {//GEN-END:|35-getter|0|35-preInit - // write pre-init user code here - srcWord = new TextField("Word:", null, 32, TextField.ANY);//GEN-LINE:|35-getter|1|35-postInit - // write post-init user code here - }//GEN-BEGIN:|35-getter|2| - return srcWord; - } - COM: <s> returns an initiliazed instance of src word component </s> - diff --git a/funcom_test/29601334.txt b/funcom_test/29601334.txt deleted file mode 100644 index 35771628c6f468b5ab0e545f2f982eae9a976fc3..0000000000000000000000000000000000000000 --- a/funcom_test/29601334.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Font getFont() { - if (font == null) {//GEN-END:|40-getter|0|40-preInit - // write pre-init user code here - font = Font.getDefaultFont();//GEN-LINE:|40-getter|1|40-postInit - // write post-init user code here - }//GEN-BEGIN:|40-getter|2| - return font; - } - COM: <s> returns an initiliazed instance of font component </s> - diff --git a/funcom_test/29601365.txt b/funcom_test/29601365.txt deleted file mode 100644 index f2f1b15c45996b440946abc4189e4cde5dba99cb..0000000000000000000000000000000000000000 --- a/funcom_test/29601365.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Command getOkCommandLookUp() { - if (okCommandLookUp == null) {//GEN-END:|41-getter|0|41-preInit - // write pre-init user code here - okCommandLookUp = new Command("Ok", Command.OK, 0);//GEN-LINE:|41-getter|1|41-postInit - // write post-init user code here - - - }//GEN-BEGIN:|41-getter|2| - return okCommandLookUp; - } - COM: <s> returns an initiliazed instance of ok command look up component </s> - diff --git a/funcom_test/29601373.txt b/funcom_test/29601373.txt deleted file mode 100644 index 075284a9c10443aaee589fc41729c174a10268ad..0000000000000000000000000000000000000000 --- a/funcom_test/29601373.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommandLookUp() { - if (backCommandLookUp == null) {//GEN-END:|43-getter|0|43-preInit - // write pre-init user code here - backCommandLookUp = new Command("Back", Command.BACK, 0);//GEN-LINE:|43-getter|1|43-postInit - // write post-init user code here - }//GEN-BEGIN:|43-getter|2| - return backCommandLookUp; - } - COM: <s> returns an initiliazed instance of back command look up component </s> - diff --git a/funcom_test/29601417.txt b/funcom_test/29601417.txt deleted file mode 100644 index ae52ec95205abec7d0ee91998cce79c7a4151965..0000000000000000000000000000000000000000 --- a/funcom_test/29601417.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommandSelectDirection() { - if (okCommandSelectDirection == null) {//GEN-END:|53-getter|0|53-preInit - // write pre-init user code here - okCommandSelectDirection = new Command("Ok", Command.OK, 0);//GEN-LINE:|53-getter|1|53-postInit - // write post-init user code here - }//GEN-BEGIN:|53-getter|2| - return okCommandSelectDirection; - } - COM: <s> returns an initiliazed instance of ok command select direction component </s> - diff --git a/funcom_test/29601436.txt b/funcom_test/29601436.txt deleted file mode 100644 index 69b0e4fc7a30fcfee9a8d89daae40350ad037fd4..0000000000000000000000000000000000000000 --- a/funcom_test/29601436.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommandSelectDirection() { - if (backCommandSelectDirection == null) {//GEN-END:|56-getter|0|56-preInit - // write pre-init user code here - backCommandSelectDirection = new Command("Back", Command.BACK, 0);//GEN-LINE:|56-getter|1|56-postInit - // write post-init user code here - }//GEN-BEGIN:|56-getter|2| - return backCommandSelectDirection; - } - COM: <s> returns an initiliazed instance of back command select direction component </s> - diff --git a/funcom_test/29601460.txt b/funcom_test/29601460.txt deleted file mode 100644 index 396c65bc606ce2e8715c900e59577900d891b3e2..0000000000000000000000000000000000000000 --- a/funcom_test/29601460.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommandMenuList() { - if (exitCommandMenuList == null) {//GEN-END:|66-getter|0|66-preInit - // write pre-init user code here - exitCommandMenuList = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|66-getter|1|66-postInit - // write post-init user code here - }//GEN-BEGIN:|66-getter|2| - return exitCommandMenuList; - } - COM: <s> returns an initiliazed instance of exit command menu list component </s> - diff --git a/funcom_test/29601536.txt b/funcom_test/29601536.txt deleted file mode 100644 index 54515d80e57bb38eab8ead31f0f7ac25b2c19c1f..0000000000000000000000000000000000000000 --- a/funcom_test/29601536.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand2() { - if (backCommand2 == null) {//GEN-END:|92-getter|0|92-preInit - // write pre-init user code here - backCommand2 = new Command("Back", Command.BACK, 0);//GEN-LINE:|92-getter|1|92-postInit - // write post-init user code here - }//GEN-BEGIN:|92-getter|2| - return backCommand2; - } - COM: <s> returns an initiliazed instance of back command2 component </s> - diff --git a/funcom_test/29601579.txt b/funcom_test/29601579.txt deleted file mode 100644 index 240800e7377b31840182f3ae76d0fe0f20813d87..0000000000000000000000000000000000000000 --- a/funcom_test/29601579.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand2() { - if (okCommand2 == null) {//GEN-END:|94-getter|0|94-preInit - // write pre-init user code here - okCommand2 = new Command("Ok", Command.OK, 0);//GEN-LINE:|94-getter|1|94-postInit - // write post-init user code here - }//GEN-BEGIN:|94-getter|2| - return okCommand2; - } - COM: <s> returns an initiliazed instance of ok command2 component </s> - diff --git a/funcom_test/29601588.txt b/funcom_test/29601588.txt deleted file mode 100644 index 3d9458f829454b84455d542efc83dbb58a4aa3b0..0000000000000000000000000000000000000000 --- a/funcom_test/29601588.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getMostUsualSuffix(){ - Map<String,Double> profile=getAveragedProfile(); - double max=-1; - String exit=""; - for(Entry pair: profile.entrySet()){ - if(((Double)pair.getValue())>max){ - max=(Double)pair.getValue(); - exit=(String)pair.getKey(); - } - } - return exit; - } - COM: <s> most usual suffix in the paradimg </s> - diff --git a/funcom_test/29601593.txt b/funcom_test/29601593.txt deleted file mode 100644 index aa8eaacc6c7e2c519b773532ecb2293b0e701325..0000000000000000000000000000000000000000 --- a/funcom_test/29601593.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private E genMonoE(String lem, String par, String restrict) { - E e = new E(); - String stem = Guesser.stemFromPardef(lem, par); - e.lemma = lem; - I i = new I(); - i.setValue(stem); - e.children.add(i); - e.children.add(new Par(par)); - e.restriction = restrict; - return e; - } - COM: <s> generates a monodix entry stemming the lemma and adding the </s> - diff --git a/funcom_test/29601641.txt b/funcom_test/29601641.txt deleted file mode 100644 index ac2b2373339c4f702313ed4367a1358bbded24ca..0000000000000000000000000000000000000000 --- a/funcom_test/29601641.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand3() { - if (backCommand3 == null) {//GEN-END:|112-getter|0|112-preInit - // write pre-init user code here - backCommand3 = new Command("Back", Command.BACK, 0);//GEN-LINE:|112-getter|1|112-postInit - // write post-init user code here - }//GEN-BEGIN:|112-getter|2| - return backCommand3; - } - COM: <s> returns an initiliazed instance of back command3 component </s> - diff --git a/funcom_test/29601673.txt b/funcom_test/29601673.txt deleted file mode 100644 index a0ec10ca5a403e61fc7637e5cab1bb859381fa92..0000000000000000000000000000000000000000 --- a/funcom_test/29601673.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public StringItem getDicLoaderMessage() { - if (dicLoaderMessage == null) {//GEN-END:|119-getter|0|119-preInit - // write pre-init user code here - dicLoaderMessage = new StringItem(direction, "\nLoading dictionary...");//GEN-LINE:|119-getter|1|119-postInit - // write post-init user code here - }//GEN-BEGIN:|119-getter|2| - return dicLoaderMessage; - } - COM: <s> returns an initiliazed instance of dic loader message component </s> - diff --git a/funcom_test/29601685.txt b/funcom_test/29601685.txt deleted file mode 100644 index 8e42dcb42d7ec296b458cdf4d67a556a279dcc18..0000000000000000000000000000000000000000 --- a/funcom_test/29601685.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Gauge getProgressBar() { - if (progressBar == null) {//GEN-END:|120-getter|0|120-preInit - // write pre-init user code here - progressBar = new Gauge("Progress", false, 100, 50);//GEN-LINE:|120-getter|1|120-postInit - // write post-init user code here - }//GEN-BEGIN:|120-getter|2| - return progressBar; - } - COM: <s> returns an initiliazed instance of progress bar component </s> - diff --git a/funcom_test/29601696.txt b/funcom_test/29601696.txt deleted file mode 100644 index e3cbe2a69846cde239bf34d4fad4202d1688b8ee..0000000000000000000000000000000000000000 --- a/funcom_test/29601696.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Command getCancelCommandDicLoader() { - if (cancelCommandDicLoader == null) {//GEN-END:|121-getter|0|121-preInit - // write pre-init user code here - cancelCommandDicLoader = new Command("Cancel", Command.CANCEL, 0);//GEN-LINE:|121-getter|1|121-postInit - - // write post-init user code here - }//GEN-BEGIN:|121-getter|2| - return cancelCommandDicLoader; - } - COM: <s> returns an initiliazed instance of cancel command dic loader component </s> - diff --git a/funcom_test/29601719.txt b/funcom_test/29601719.txt deleted file mode 100644 index c0337b9d82926d9cb7f16aa472048271e9099c11..0000000000000000000000000000000000000000 --- a/funcom_test/29601719.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand4() { - if (backCommand4 == null) {//GEN-END:|126-getter|0|126-preInit - // write pre-init user code here - backCommand4 = new Command("Back", Command.BACK, 0);//GEN-LINE:|126-getter|1|126-postInit - // write post-init user code here - }//GEN-BEGIN:|126-getter|2| - return backCommand4; - } - COM: <s> returns an initiliazed instance of back command4 component </s> - diff --git a/funcom_test/29601732.txt b/funcom_test/29601732.txt deleted file mode 100644 index 2b2cf9221118b366ae891b4ed0947540d704f79d..0000000000000000000000000000000000000000 --- a/funcom_test/29601732.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand3() { - if (okCommand3 == null) {//GEN-END:|129-getter|0|129-preInit - // write pre-init user code here - okCommand3 = new Command("Ok", Command.OK, 0);//GEN-LINE:|129-getter|1|129-postInit - // write post-init user code here - }//GEN-BEGIN:|129-getter|2| - return okCommand3; - } - COM: <s> returns an initiliazed instance of ok command3 component </s> - diff --git a/funcom_test/29601757.txt b/funcom_test/29601757.txt deleted file mode 100644 index 13fee02e486a2345638538a28d002740d6dbf408..0000000000000000000000000000000000000000 --- a/funcom_test/29601757.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommandAboutForm() { - if (backCommandAboutForm == null) {//GEN-END:|134-getter|0|134-preInit - // write pre-init user code here - backCommandAboutForm = new Command("Back", Command.BACK, 0);//GEN-LINE:|134-getter|1|134-postInit - // write post-init user code here - }//GEN-BEGIN:|134-getter|2| - return backCommandAboutForm; - } - COM: <s> returns an initiliazed instance of back command about form component </s> - diff --git a/funcom_test/29601791.txt b/funcom_test/29601791.txt deleted file mode 100644 index 780bbf0c2d036d9d936a2cf804d227c242cf75ea..0000000000000000000000000000000000000000 --- a/funcom_test/29601791.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommandAboutForm() { - if (okCommandAboutForm == null) {//GEN-END:|136-getter|0|136-preInit - // write pre-init user code here - okCommandAboutForm = new Command("Ok", Command.OK, 0);//GEN-LINE:|136-getter|1|136-postInit - // write post-init user code here - }//GEN-BEGIN:|136-getter|2| - return okCommandAboutForm; - } - COM: <s> returns an initiliazed instance of ok command about form component </s> - diff --git a/funcom_test/29601856.txt b/funcom_test/29601856.txt deleted file mode 100644 index 823512d8d0c2749c301b9c099907eda97a8bcc2a..0000000000000000000000000000000000000000 --- a/funcom_test/29601856.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Spacer getSpacer() { - if (spacer == null) {//GEN-END:|146-getter|0|146-preInit - // write pre-init user code here - spacer = new Spacer(16, 1);//GEN-LINE:|146-getter|1|146-postInit - // write post-init user code here - }//GEN-BEGIN:|146-getter|2| - return spacer; - } - COM: <s> returns an initiliazed instance of spacer component </s> - diff --git a/funcom_test/29601900.txt b/funcom_test/29601900.txt deleted file mode 100644 index af8a7d705929fd606b9dbbc5b7b35a71f9193d1f..0000000000000000000000000000000000000000 --- a/funcom_test/29601900.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Spacer getSpacer1() { - if (spacer1 == null) {//GEN-END:|151-getter|0|151-preInit - // write pre-init user code here - spacer1 = new Spacer(16, 1);//GEN-LINE:|151-getter|1|151-postInit - // write post-init user code here - }//GEN-BEGIN:|151-getter|2| - return spacer1; - } - COM: <s> returns an initiliazed instance of spacer1 component </s> - diff --git a/funcom_test/29601931.txt b/funcom_test/29601931.txt deleted file mode 100644 index 9980528e08501e1ccc4670020d9bde437b39505f..0000000000000000000000000000000000000000 --- a/funcom_test/29601931.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommandMenuList() { - if (okCommandMenuList == null) {//GEN-END:|152-getter|0|152-preInit - // write pre-init user code here - okCommandMenuList = new Command("Ok", Command.OK, 0);//GEN-LINE:|152-getter|1|152-postInit - // write post-init user code here - }//GEN-BEGIN:|152-getter|2| - return okCommandMenuList; - } - COM: <s> returns an initiliazed instance of ok command menu list component </s> - diff --git a/funcom_test/29601956.txt b/funcom_test/29601956.txt deleted file mode 100644 index 3098f7b631e8758165eacf30da742102f06e7833..0000000000000000000000000000000000000000 --- a/funcom_test/29601956.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void removeArgs(int i, int n) { - ArrayList<String> a = new ArrayList<String>(Arrays.asList(this.arguments)); - while (n-->0) a.remove(i); - this.arguments = a.toArray(new String[a.size()]); - } - COM: <s> argument pair was removed adjust rest of args accordingly </s> - diff --git a/funcom_test/29638426.txt b/funcom_test/29638426.txt deleted file mode 100644 index 93353e1a2baf3fafdc8dd1b9d2e2f09f7832ce89..0000000000000000000000000000000000000000 --- a/funcom_test/29638426.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void drawForeground(Object objGfx, int blockLayer) throws IllegalArgumentException { - ParameterChecker.checkMinMax(blockLayer, "blockLayer", Block.FOREGROUND1, Block.FOREGROUND3); - - boolean drawForeground1 = (blockLayer == 1); - boolean drawForeground2 = (blockLayer == 2); - boolean drawForeground3 = (blockLayer == 3); - - draw(objGfx, true, false, drawForeground1, drawForeground2, drawForeground3, 0, 0, super.viewWidth, super.viewHeight); - } - COM: <s> renders a foreground layer of all the visible blocks onto the screen </s> - diff --git a/funcom_test/29638449.txt b/funcom_test/29638449.txt deleted file mode 100644 index d1c92ae08a394414dfad1b08ff3a62a1219c79b2..0000000000000000000000000000000000000000 --- a/funcom_test/29638449.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void draw(Object objGFX, boolean transparency, int x, int y, int width, int height) { - draw(objGFX, transparency, true, true, true, true, x, y, width, height); - } - COM: <s> renders a partial area of the layer using the given gfx object </s> - diff --git a/funcom_test/29638460.txt b/funcom_test/29638460.txt deleted file mode 100644 index 8d63612b6a9dc6fc85c1d317c46005d533b7dea9..0000000000000000000000000000000000000000 --- a/funcom_test/29638460.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getImageIndex(int imageLayer) throws IllegalArgumentException { - if ((imageLayer < BACKGROUND) || (imageLayer > FOREGROUND3)) - throw new IllegalArgumentException("Input parameter [imageLayer :: " + imageLayer + "] was out of bounds :: " + BACKGROUND + " >= imageLayer =< " + FOREGROUND3); - - // return image index - return (imageIndex[imageLayer]); - } - COM: <s> returns the image index of the given code block code layer </s> - diff --git a/funcom_test/29638465.txt b/funcom_test/29638465.txt deleted file mode 100644 index 41efa280a5f9a8b2113f995df34f62512dc088ea..0000000000000000000000000000000000000000 --- a/funcom_test/29638465.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getBlockIndex(int blockX, int blockY) throws IllegalArgumentException { - ParameterChecker.checkMinMax(blockX, "blockX", 0, widthInBlocks - 1); - ParameterChecker.checkMinMax(blockY, "blockY", 0, heightInBlocks - 1); - - // grab the block index from the layer data - return layerData[blockY][blockX]; - } - COM: <s> returns the code block code index at the given coordinates </s> - diff --git a/funcom_test/29638471.txt b/funcom_test/29638471.txt deleted file mode 100644 index ec2c0f0bf235fbbc3106f4e4021f0a5705d600f3..0000000000000000000000000000000000000000 --- a/funcom_test/29638471.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void draw(Object objGFX, boolean transparency, int x, int y, int width, int height) { - for (int i = 0; i < layerViewer.length; i++) { - if (layerViewer[i] != null) - layerViewer[i].draw(objGFX, transparency, x, y, width, height); - } - } - COM: <s> renders a partial area of the map using the given gfx object </s> - diff --git a/funcom_test/29638472.txt b/funcom_test/29638472.txt deleted file mode 100644 index 09b5d58e2de6d3e3a68284662a9d67131bc2efdc..0000000000000000000000000000000000000000 --- a/funcom_test/29638472.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getUserData(int index) throws IllegalArgumentException { - if ((index < MIN_USER_DATA) || (index > MAX_USER_DATA)) - throw new IllegalArgumentException("Input parameter [index :: " + index + "] was out of bounds :: " + MIN_USER_DATA + " >= index =< " + MAX_USER_DATA); - - // return User Data - return userData[index - 1]; - } - COM: <s> returns the specified user data </s> - diff --git a/funcom_test/29677451.txt b/funcom_test/29677451.txt deleted file mode 100644 index 40222003efffe9303b5a8060e9ffa544ca8fe959..0000000000000000000000000000000000000000 --- a/funcom_test/29677451.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void runWithProgress(final Runnable runnable) { - ProgressMonitorDialog progress = new ProgressMonitorDialog(window - .getShell()); - try { - progress.run(false, false, new IRunnableWithProgress() { - public void run(IProgressMonitor monitor) - throws InvocationTargetException, InterruptedException { - monitor.beginTask("Generating QB Session", - IProgressMonitor.UNKNOWN); - runnable.run(); - monitor.done(); - } - }); - } catch (Exception e) { - QuizBangUiActivator.logError(e); - } - } - COM: <s> this method provides feedback to the user while it runs the provided </s> - diff --git a/funcom_test/29678378.txt b/funcom_test/29678378.txt deleted file mode 100644 index f75d50df7a9f3d9c57ab271ee54fa6623fccdec3..0000000000000000000000000000000000000000 --- a/funcom_test/29678378.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void showEntryComponent(String sessionId, IQAEntryComponent entryComponent) { - logger.debug("showEntryComponent() - sessionId[" + sessionId + "] entering."); - - IQuizBangViewMode mode = modeMap.get(sessionId); - mode.showEntry(); - - logger.debug("showEntryComponent() - sessionId[" + sessionId + "] exiting."); - } - COM: <s> delegates to the appropriate viewer for the enclosed entry value type </s> - diff --git a/funcom_test/2971333.txt b/funcom_test/2971333.txt deleted file mode 100644 index 574d61e6b082b89ecaf1dc7ed4108bfe32c89f9e..0000000000000000000000000000000000000000 --- a/funcom_test/2971333.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void write(DataOutputStream dos) throws IOException { - dos.writeInt(id); - dos.writeUTF(surname); - dos.writeUTF(forename); - dos.writeInt(dobDay); - dos.writeInt(dobMonth); - dos.writeInt(dobYear); - dos.writeInt(sex); - dos.writeInt(colourVisionType); - dos.writeUTF(colourVisionDesc); - } - COM: <s> writes the description of the subject to the </s> - diff --git a/funcom_test/2971379.txt b/funcom_test/2971379.txt deleted file mode 100644 index e189e24c790d2e00b6d90d4c6d22a758798cd31c..0000000000000000000000000000000000000000 --- a/funcom_test/2971379.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int posnToSampleNo(int posn) { - for (int i = 0; i<sampleArr.size();i++) { - FMSample fms = (FMSample)sampleArr.get(i); - if (fms.getPosition()==posn) { - return fms.getSampleNo(); - } - } - return 0; // If we get here we haven't found the sample at the specified position. - } - COM: <s> return the sample number of the sample at position posn 1 n samples </s> - diff --git a/funcom_test/2971386.txt b/funcom_test/2971386.txt deleted file mode 100644 index 500ec4952d53c31ce7c7d66022e258248e366826..0000000000000000000000000000000000000000 --- a/funcom_test/2971386.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int changeSamplePosition(int sampleNo, int samplePosition) { - for(int i=0;i<sampleArr.size();i++) { - FMSample fms = (FMSample)sampleArr.get(i); - if (fms.getSampleNo()==sampleNo) { - fms.setPosition(samplePosition); // does this change the version in sampleArr??? - return samplePosition; - } - } - return 0; - } - COM: <s> change the position of sample number sample no to position sample position </s> - diff --git a/funcom_test/2971392.txt b/funcom_test/2971392.txt deleted file mode 100644 index c9e152b245aaca31c83617771487d17ebf24c9d4..0000000000000000000000000000000000000000 --- a/funcom_test/2971392.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int changeSampleError(int sampleNo, int error) { - for(int i=0;i<sampleArr.size();i++) { - FMSample fms = (FMSample)sampleArr.get(i); - if (fms.getSampleNo()==sampleNo) { - fms.setError(error); - return error; - } - } - return 0; - } - COM: <s> change the error score of sample number sample no to the specified value </s> - diff --git a/funcom_test/2971399.txt b/funcom_test/2971399.txt deleted file mode 100644 index 6efed99ef937051d8be8c0bfc01a9b2e5a0401c3..0000000000000000000000000000000000000000 --- a/funcom_test/2971399.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Colour setSampleColour(int sampleNo, Colour c) { - for(int i=0;i<sampleArr.size();i++) { - FMSample fms = (FMSample)sampleArr.get(i); - if (fms.getSampleNo()==sampleNo) { - fms.setColour(c); - return c; - } - } - return null; - } - COM: <s> set the colour of sample number sample no to the specified value </s> - diff --git a/funcom_test/2971405.txt b/funcom_test/2971405.txt deleted file mode 100644 index 7de71399ef2838d0d329174a39685fa9c20e891d..0000000000000000000000000000000000000000 --- a/funcom_test/2971405.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void write(DataOutputStream dos) throws IOException { - ColXYY cxyy = sampleColour.getXYY(); - dos.writeInt(sampleNumber); - dos.writeInt(samplePosition); - dos.writeInt(sampleTray); - dos.writeDouble(cxyy.x); - dos.writeDouble(cxyy.y); - dos.writeDouble(cxyy.Y); - } - COM: <s> writes the description of the sample in its current position to the </s> - diff --git a/funcom_test/2971420.txt b/funcom_test/2971420.txt deleted file mode 100644 index 4fc68b1105100115415aa26df9d54a7756b34b34..0000000000000000000000000000000000000000 --- a/funcom_test/2971420.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getTotalError() { - int totalError = 0; - calculateResults(); - for (int i=0;i<sampleArr.size();i++) { - FMSample fms = (FMSample) sampleArr.get(i); - totalError += fms.getError(); - } - return totalError; - } - COM: <s> calculate the total error score of all samples in the tray </s> - diff --git a/funcom_test/2971425.txt b/funcom_test/2971425.txt deleted file mode 100644 index 273c33963281aee29988a17b568e1cd36fb2f5b1..0000000000000000000000000000000000000000 --- a/funcom_test/2971425.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getMaxError() { - int maxError = 0; - calculateResults(); - for (int i=0;i<sampleArr.size();i++) { - FMSample fms = (FMSample) sampleArr.get(i); - if (maxError<fms.getError()) maxError = fms.getError(); - } - return maxError; - } - COM: <s> calculate the maximum error score of the samples in the tray </s> - diff --git a/funcom_test/2971426.txt b/funcom_test/2971426.txt deleted file mode 100644 index a2dbcd0022b28b3a06324f3f8ad5a8ca16774330..0000000000000000000000000000000000000000 --- a/funcom_test/2971426.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void updateResolutionTF() { - DecimalFormat df = new DecimalFormat("###.#"); - squareSizemm = Double.parseDouble(lengthTF.getText()); - double squareSizein = squareSizemm/25.4; - double resdpi = squareSizept / squareSizein; - resolutionTF.setText(df.format(resdpi)); - } - COM: <s> calculates the monitor resolution from the length of the square displayed and updates </s> - diff --git a/funcom_test/2971437.txt b/funcom_test/2971437.txt deleted file mode 100644 index 64179ce4ea53d0f6425e5c7d79048788139dfbcc..0000000000000000000000000000000000000000 --- a/funcom_test/2971437.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public FMSample getFMSampleSampleNo(int sampleNo) { - FMSample fms; - for (int i=0;i<sampleArr.size();i++) { - fms = (FMSample)sampleArr.get(i); - if (fms.getSampleNo()==sampleNo) - return fms; - } - return null; - } - COM: <s> get the fmsample object that represents sample number sample no </s> - diff --git a/funcom_test/2971442.txt b/funcom_test/2971442.txt deleted file mode 100644 index 2275a89d694630771dec817d21cbea912ad89759..0000000000000000000000000000000000000000 --- a/funcom_test/2971442.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public FMSample getFMSamplePositionNo(int posNo) { - FMSample fms; - for (int i=0;i<sampleArr.size();i++) { - fms = (FMSample)sampleArr.get(i); - if (fms.getPosition()==posNo) - return fms; - } - return null; - } - COM: <s> get the fmsample object that is stored at position pos no </s> - diff --git a/funcom_test/2971444.txt b/funcom_test/2971444.txt deleted file mode 100644 index c21adb70b5cc4bb47d7ee194624fd68d8022b807..0000000000000000000000000000000000000000 --- a/funcom_test/2971444.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getSelectedTest() { - int selRes = resultsList.getSelectedIndex(); - if (selRes==-1) { // no test selected - return -1; - } - else { - int testID = ( (TestData) testArr.get(selRes)).id; - msg("Selected index = " + selRes + " testID=" + testID); - return testID; - } - } - COM: <s> return the test id number of the first test selected from the list </s> - diff --git a/funcom_test/29726560.txt b/funcom_test/29726560.txt deleted file mode 100644 index 48e473ba596b048a1bea9d9f3552add71af803ec..0000000000000000000000000000000000000000 --- a/funcom_test/29726560.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Double doTotal(){ - double retVal = 0; - Iterator iter = MainSettings.getInstance().getDrawingPanel().getRouteList().getListIterator(); - - RouteMark first = null; - if (iter.hasNext()){ - first = (RouteMark)iter.next(); - } - while (iter.hasNext()){ - RouteMark mark = (RouteMark)iter.next(); - retVal += CalcUtils.calcDistance(first,mark); - first = mark; - } - return new Double(retVal); - } - COM: <s> do total is the engine that determines the number of pixels between </s> - diff --git a/funcom_test/29727073.txt b/funcom_test/29727073.txt deleted file mode 100644 index 043785bb86609f9def0c017e420d6245bde99572..0000000000000000000000000000000000000000 --- a/funcom_test/29727073.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ColumnClusterSnapshot prepareSnapshot () { - if (!cachedSnapshotDirty) { - return cachedSnapshot; - } - ColumnClusterSnapshot snapshot = new ColumnClusterSnapshot(); - snapshot.columnSnapshots = new LinkedList <Column.CColumnLayoutSnapshot> (); - for (Column c:columns) snapshot.columnSnapshots.add(c.createLayoutSnapshot()); - cachedSnapshot = snapshot; - cachedSnapshotDirty = false; - return snapshot; - } - COM: <s> generates a snapshot of the curent geometry blocked areas for later </s> - diff --git a/funcom_test/29727222.txt b/funcom_test/29727222.txt deleted file mode 100644 index 841c5f81eb92149c2fc0f5a241809970e98e2f99..0000000000000000000000000000000000000000 --- a/funcom_test/29727222.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addPenalty(Paragraph p, TextChunk chunk, double weight, String renderString, LayoutingContext context) { - if (context.getLayoutSpecialMode()==LayoutingContext.LAYOUT_SPECIALMODE_MAXIMUM_WIDTH) return; - if (context.getLayoutSpecialMode()==LayoutingContext.LAYOUT_SPECIALMODE_MINIMAL_WIDTH) weight = Double.NEGATIVE_INFINITY; - - Penalty penalty = new Penalty (weight, chunk); - penalty.setRenderString (renderString); - - p.add(penalty); - - } - COM: <s> adds a penalty with the given weight to the paragraph </s> - diff --git a/funcom_test/29727270.txt b/funcom_test/29727270.txt deleted file mode 100644 index d33db556d0e02790f6bc60fcfad3009d38b9ff66..0000000000000000000000000000000000000000 --- a/funcom_test/29727270.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void layoutParagraphCluster(FlowContext flowContext, ParagraphCluster cluster, LayoutingContext context) throws RegionChangedException { - Paragraph p = paragraphBuilder.buildParagraph(cluster, context); - //System.out.println ("Layout of paragraph: " + p.debugContent()); - layoutParagraph(flowContext, p, 0, context); - } - COM: <s> layouts a single paragraph </s> - diff --git a/funcom_test/29727372.txt b/funcom_test/29727372.txt deleted file mode 100644 index a9d8cd0b924e5189c73765f1ee9c8b5ce19728e7..0000000000000000000000000000000000000000 --- a/funcom_test/29727372.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public InterimFloatPlacement placeFloatsTemporarily(List<FloatAnchor> anchors, double topline, Page metricsPage) { - InterimFloatPlacement retval = new InterimFloatPlacement(); - for (FloatAnchor anchor : anchors) { - FloatPlacementData fpd = tempPlaceFloatOnCurrentPage(anchor, null, topline, metricsPage); - addToInterimFloatPlacement(anchor, fpd, retval); - } - return retval; - } - COM: <s> places floats where possible and modifies geometry but does not place </s> - diff --git a/funcom_test/29727458.txt b/funcom_test/29727458.txt deleted file mode 100644 index 710b79177821f903a8ef38b4ad9c1a1677e63d76..0000000000000000000000000000000000000000 --- a/funcom_test/29727458.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addBeforeDeferredParagraphs (Paragraph p, CLineData ld) { - if (hasDeferredParagraphs()) { - CDeferredParagraphStruct first = deferredParagraphs.get(0); - if (first.paragraph.equals(p)) - first.startWithNotch = ld.startNotch; - else - deferredParagraphs.add(0, new CDeferredParagraphStruct(p, ld.startNotch)); - } else - deferredParagraphs.add(0, new CDeferredParagraphStruct(p, ld.startNotch)); - } - COM: <s> adds the line before the the first deferred paragraph used when widowed headlines </s> - diff --git a/funcom_test/29740325.txt b/funcom_test/29740325.txt deleted file mode 100644 index b9072ac163dac455d7533546b3930589a02d64d1..0000000000000000000000000000000000000000 --- a/funcom_test/29740325.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void store(){ - try { - properties.store(new FileOutputStream(this.PROPFILE), null); - UTLogger.getInstance().info(this, "property file stored!"); - } catch (FileNotFoundException e) { - e.printStackTrace(); - UTLogger.getInstance().error(this, "property file not found!"); - } catch (IOException e) { - e.printStackTrace(); - UTLogger.getInstance().error(this, "io exception!"); - } - } - COM: <s> internal method store write properties to file </s> - diff --git a/funcom_test/29778273.txt b/funcom_test/29778273.txt deleted file mode 100644 index 90b2db996caf8cf082247fbaa875f92ccfde0a9d..0000000000000000000000000000000000000000 --- a/funcom_test/29778273.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String GetCellType(final int row, final int col) { - if (!(row >= 0 && row <= GridSize && col >= 0 && col <= GridSize)){ - throw new IllegalArgumentException("Row: " + row + " Col: " + col - + "are not valid coordinates for this board"); - } - return Board[row][col].getCellType(); - } - COM: <s> what type is at a given location </s> - diff --git a/funcom_test/29778585.txt b/funcom_test/29778585.txt deleted file mode 100644 index b3c5d485f0bb8f2966d0d9e0805849ca94305e44..0000000000000000000000000000000000000000 --- a/funcom_test/29778585.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void actionPerformed(final ActionEvent e) { - String foo = "The board appears to be valid."; - try { - // We never read it, but only care if it throws something. - final boolean isBoardValid = myBoard.IsBoardValid(); - } catch (final InvalidBoardException ibe) { - foo = ibe.getMessage(); - } finally { // Let the user know. - JOptionPane.showMessageDialog(null, foo); - } - } // End ValidateButtonHandler.actionPerformed() - COM: <s> checks for a valid state </s> - diff --git a/funcom_test/29800665.txt b/funcom_test/29800665.txt deleted file mode 100644 index 52833f041e6e5746bbe4c6f56100f2dd140c1941..0000000000000000000000000000000000000000 --- a/funcom_test/29800665.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Vector fileListJSPs(String keyName, Object o) { - Iterator i = fileList(); - Vector v = new Vector(); - while (i.hasNext()) { - JSPPage p = (JSPPage) i.next(); - if (p.getName().toLowerCase().endsWith(".jsp") - && p.getExtraData(keyName) != null - && p.getExtraData(keyName).equals(o)) { - v.add(p); - } - } - return v; - } - COM: <s> build the list of just the jsppages that are in the list which </s> - diff --git a/funcom_test/29800666.txt b/funcom_test/29800666.txt deleted file mode 100644 index 76093d108b68f8f6754c3875b20039174d0189c3..0000000000000000000000000000000000000000 --- a/funcom_test/29800666.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void addFile(String dir, String file) { - try { - FileInputStream in = new FileInputStream(dir + File.separator + file); - ZipEntry ze = new ZipEntry(file); - zipStream.putNextEntry(ze); - - int read = 0; - byte[] buf = new byte[4 * 1024]; - - while((read = in.read(buf)) != -1) { - zipStream.write(buf, 0, read); - } - - zipStream.closeEntry(); - in.close(); - } - catch(Exception e) { - e.printStackTrace(); - } - } - COM: <s> adds a file to zip archive </s> - diff --git a/funcom_test/29851560.txt b/funcom_test/29851560.txt deleted file mode 100644 index c3e4b3e6afc7ab9d7d121e5e5c9cae3fb0f15ebc..0000000000000000000000000000000000000000 --- a/funcom_test/29851560.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean parseArguments(String[] args) { - options = new MsggenOptions(); - if (!options.parseCommandLine(args)) { - return false; - } - if (options.nonOptions.length == 0) { - System.err.println(CompilerMessages.NO_INPUT_FILE.getFormat()); - return false; - } else if (options.nonOptions.length > 1) { - options.usage(); - return false; - } - - return true; - } - COM: <s> parse the argument list </s> - diff --git a/funcom_test/29851614.txt b/funcom_test/29851614.txt deleted file mode 100644 index 3ec647e7c4fe7882103983a05914df7e89bdd28b..0000000000000000000000000000000000000000 --- a/funcom_test/29851614.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean reaches(Node target) { - if (target == this) { - return true; - } else { - // depth first search the adjacency list - setVisited(true); - - for (Enumeration e = adjacency.keys(); e.hasMoreElements(); ) { - Node adj = (Node)e.nextElement(); - - if (!adj.getVisited()) { - if (adj.reaches(target)) { - return true; - } - } - } - return false; - } - } - COM: <s> checks wheter there is a path from this node to the target node </s> - diff --git a/funcom_test/29851811.txt b/funcom_test/29851811.txt deleted file mode 100644 index 928f880446d6bb5386c3ce898b401f469386187e..0000000000000000000000000000000000000000 --- a/funcom_test/29851811.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String toString() { - StringBuffer buf = new StringBuffer(20000); - - for (Enumeration ids = rules.elements(); ids.hasMoreElements(); ) { - RuleSymbol rs = (RuleSymbol)ids.nextElement(); - - if (!rs.id.equals("mnextToken")) { - buf.append(rs.getBlock().toString()); - buf.append("\n\n"); - } - } - return buf.toString(); - } - COM: <s> print out the grammar without actions </s> - diff --git a/funcom_test/29852099.txt b/funcom_test/29852099.txt deleted file mode 100644 index 026995b4bda3a1c99f396331366aaa349bfb6050..0000000000000000000000000000000000000000 --- a/funcom_test/29852099.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void subtractInPlace(BitSet a) { - if (a != null) { - // for all words of 'a', turn off corresponding bits of 'this' - for (int i = 0; i < bits.length && i < a.bits.length; i++) { - bits[i] &= ~a.bits[i]; - } - } - } - COM: <s> subtract the elements of a from this in place </s> - diff --git a/funcom_test/29852467.txt b/funcom_test/29852467.txt deleted file mode 100644 index 721ebcdaf1aab0e401e43016936bd353dbe9d0a6..0000000000000000000000000000000000000000 --- a/funcom_test/29852467.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public TableReference getTable() { - FieldNameList list = alias.getFieldNameList(); - if (list != null) { - if (fieldNameListTableReference == null) { - fieldNameListTableReference = new FieldNameListTableReference(getTokenReference(), list); - } - return fieldNameListTableReference; - } - return table; - } - COM: <s> returns a table name from an alias name or null </s> - diff --git a/funcom_test/29852582.txt b/funcom_test/29852582.txt deleted file mode 100644 index 1a55aa6c061582c7761d6a047f18769214c6a9b8..0000000000000000000000000000000000000000 --- a/funcom_test/29852582.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void genSql() throws PositionedError { - try { - SqlcPrettyPrinter spp; - - spp = new SqlcPrettyPrinter(ref.getFile()); - spp.printCUnit(elems); - spp.close(); - } catch (IOException ioe) { - ioe.printStackTrace(); - System.err.println("cannot write: " + ref.getFile()); - } - } - COM: <s> generate the code in pure java form </s> - diff --git a/funcom_test/29852660.txt b/funcom_test/29852660.txt deleted file mode 100644 index d2428f24d40c9ced7d49a71bc43dae350842beb5..0000000000000000000000000000000000000000 --- a/funcom_test/29852660.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isEquivalentTo(DatabaseColumn other, int check) { - if (! ((other instanceof DatabaseByteColumn) - ||(((check & TYPE_CHECK_NARROWING) > 0) && (other instanceof DatabaseCardinalColumn)))) { - return false; - } else { - return super.isEquivalentTo(other, check); - } - } - COM: <s> returns true if dc is equivalent with the current column </s> - diff --git a/funcom_test/29852881.txt b/funcom_test/29852881.txt deleted file mode 100644 index 02ac2a11abe79a5555c7dffc36173a1c22f0a00c..0000000000000000000000000000000000000000 --- a/funcom_test/29852881.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public JExpression toJavaExpression(TokenReference ref) { - String text = toString(); - - if (expr == null) { - // only string - return new JStringLiteral(ref, text); - } else if (text.length() > 0) { - // pending sql, add to left expression - return new JAddExpression(ref, expr, new JStringLiteral(ref, text)); - } else { - return expr; - } - } - COM: <s> returns the current string </s> - diff --git a/funcom_test/29852939.txt b/funcom_test/29852939.txt deleted file mode 100644 index 711d2a0892ef642d933b6273c65e727b1dd51c96..0000000000000000000000000000000000000000 --- a/funcom_test/29852939.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public XSqlcPrettyPrinter getSqlcPrettyPrinter() { - int sql_pos = 2; - - // must be at n*8+4 from the beginning of the line. - while(((pos + sql_pos) % 8) == 4) { - sql_pos++; - } - getSqlcPrettyPrinter(true); - - sql_pp.setPos(sql_pos); - p.setPos(pos); - sql_pp.setColumn(0); - return sql_pp; - } - COM: <s> returns the sql pretty printer </s> - diff --git a/funcom_test/29853026.txt b/funcom_test/29853026.txt deleted file mode 100644 index 3781f719a8c3b3e9ab0e6c58e1fc8598d97d636e..0000000000000000000000000000000000000000 --- a/funcom_test/29853026.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public DatabaseColumn getColumnInfo(boolean nullable) { - if ((width != -1) && (height != -1)) - new DatabaseTextColumn(nullable, - (width == -1) ? null : new Integer(width), - (height == -1) ? null : new Integer(height)); - return new DatabaseTextColumn(nullable); - } - COM: <s> returns the type for the type checking mechanism of dbi </s> - diff --git a/funcom_test/29853713.txt b/funcom_test/29853713.txt deleted file mode 100644 index 44a71a840933d358fd9dfd4bb0fd057eaeaebd01..0000000000000000000000000000000000000000 --- a/funcom_test/29853713.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Hashtable fetchTableDefinition(List v) { - Hashtable table = new Hashtable(); - - for (int i = 0; i < v.size(); i++) { - Statement stmt = (Statement)v.get(i); - if (stmt instanceof TableDefinition) { - String TableName = ((SimpleIdentExpression)((TableDefinition)stmt).getTableName()).getIdent(); - table.put(TableName, stmt); - } - } - return table; - } - COM: <s> fetch table definition </s> - diff --git a/funcom_test/29853719.txt b/funcom_test/29853719.txt deleted file mode 100644 index 553ed1af38368d8f2fe45340369d302e990f6067..0000000000000000000000000000000000000000 --- a/funcom_test/29853719.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List fetchInsertStatement(List v, String tableName) { - List inserts = new ArrayList(); - - for (int i = 0; i < v.size(); i++) { - Statement stmt = (Statement)v.get(i); - if (stmt instanceof InsertStatement) { - if ((((InsertStatement)stmt).getIdent()).equals(tableName)) { - inserts.add((InsertStatement)stmt); - } - } - } - return inserts; - } - COM: <s> fetch insert statement </s> - diff --git a/funcom_test/29853919.txt b/funcom_test/29853919.txt deleted file mode 100644 index 284e853f9d76eaae3bb8a2e5b1b35e23d8e824ab..0000000000000000000000000000000000000000 --- a/funcom_test/29853919.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void visitKey(Key self, List keyList) { - print("KEY IS "); - for (int i = 0; i < keyList.size(); i++) { - if (i != 0) { - print(", "); - } - print(keyList.get(i)); - } - } - COM: <s> prints a key constraint </s> - diff --git a/funcom_test/29854154.txt b/funcom_test/29854154.txt deleted file mode 100644 index f3df64e8174cc145f9a1e6c091bb44d4fc228316..0000000000000000000000000000000000000000 --- a/funcom_test/29854154.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String convertSql(String from) { - try { - PostgresParser parser = new PostgresParser(from); - - System.err.println("-- NATIVE SQL: "); - System.err.println(parser.getText() + ";"); - System.err.println("--"); - - return parser.getText(); - } catch (SQLException e) { - throw new DBRuntimeException(e.getMessage()); - } - } - COM: <s> transforms a sql query string from kopi syntax to the syntax </s> - diff --git a/funcom_test/29854223.txt b/funcom_test/29854223.txt deleted file mode 100644 index 52281cd74b7728df4628d528894bb3f2620c3b6d..0000000000000000000000000000000000000000 --- a/funcom_test/29854223.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: protected String convertTimestamp(int yy, int mo, int dd, int hh, int mi, int ss, int ns) { - return "TO_DATE('" + yy + "-" + mo + "-" + dd + " " + hh + ":" + mi + ":" + ss + "', 'YYYY-MM-DD HH24:MI:SS')"; - } - COM: <s> converts a timestamp into native syntax </s> - diff --git a/funcom_test/29854287.txt b/funcom_test/29854287.txt deleted file mode 100644 index 610679b93cafba7303ea2f35ee5799ac7887806d..0000000000000000000000000000000000000000 --- a/funcom_test/29854287.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void visitShortType(ShortType self, Integer min, Integer max) { - print("SHORT"); - if (min != null) { - print(" MIN " + min.intValue()); - } - if (max != null) { - print(" MAX " + max.intValue()); - } - } - COM: <s> prints a short type </s> - diff --git a/funcom_test/29854311.txt b/funcom_test/29854311.txt deleted file mode 100644 index 07466f3ea97247e2628c20c1067176c686b1ed79..0000000000000000000000000000000000000000 --- a/funcom_test/29854311.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean next() throws DBException { - checkCursorIsOpened(); - try { - traceQuery(Query.TRL_FETCH, "FETCH", null); - isFetched = rset.next(); - traceTimer(Query.TRL_FETCH, "FETCH"); - - return isFetched; - } catch (SQLException exc) { - throw conn.convertException(exc); - } - } - COM: <s> move to next row of result set </s> - diff --git a/funcom_test/29854317.txt b/funcom_test/29854317.txt deleted file mode 100644 index d2e8fa703d0e3c642d5bc9a12d6271fb510219c2..0000000000000000000000000000000000000000 --- a/funcom_test/29854317.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void executeUpdate(String sql) throws DBException { - try { - traceQuery(Query.TRL_QUERY, "UPDATE", sql); - if (stmt != null) { - stmt.executeUpdate(conn.convertSql(sql)); - } - traceTimer(Query.TRL_TIMER, "UPDATE"); - } catch (SQLException exc) { - throw conn.convertException(sql, exc); - } - } - COM: <s> update a row delete insert update </s> - diff --git a/funcom_test/29854322.txt b/funcom_test/29854322.txt deleted file mode 100644 index f71e492c1efc9718bc7475fb6e0e55188584e789..0000000000000000000000000000000000000000 --- a/funcom_test/29854322.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void close() throws SQLException { - try { - traceQuery(Query.TRL_FETCH, "CLOSE", null); - if (stmt != null) { - rset.close(); - stmt.close(); - rset = null; - stmt = null; - isFetched = false; - } - traceTimer(Query.TRL_FETCH, "CLOSE"); - } catch (SQLException exc) { - throw conn.convertException(exc); - } - } - COM: <s> close this cursor </s> - diff --git a/funcom_test/29854410.txt b/funcom_test/29854410.txt deleted file mode 100644 index 713fb8c0a7a4a5be32c49c4f3c441bd68e76d0b0..0000000000000000000000000000000000000000 --- a/funcom_test/29854410.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String format(String format, Locale locale) { - GregorianCalendar cal = new GregorianCalendar(); - - cal.set(Calendar.YEAR, getYear()); - cal.set(Calendar.MONTH, getMonth() - 1); - cal.set(Calendar.DAY_OF_MONTH, getDay()); - - return new SimpleDateFormat(format, locale).format(cal.getTime()); - } - COM: <s> formats the date according to the given format and locale </s> - diff --git a/funcom_test/29854416.txt b/funcom_test/29854416.txt deleted file mode 100644 index ed1a1e500c0cb91adb901c821be65aec70d6302e..0000000000000000000000000000000000000000 --- a/funcom_test/29854416.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String toString(java.util.Locale locale) { - StringBuffer tmp = new StringBuffer(normal.format(timestamp)); - final int nanos = timestamp.getNanos(); - - if (nanos >= 100) { - tmp.append(nanos); - } else if (nanos >= 10) { - tmp.append("0" + nanos); - } else { - tmp.append("00" + nanos); - } - - return tmp.toString(); - } - COM: <s> format the object depending on the current language </s> - diff --git a/funcom_test/29854418.txt b/funcom_test/29854418.txt deleted file mode 100644 index db1d72e8b300b49717b0194f3c4de9d2bfe6305c..0000000000000000000000000000000000000000 --- a/funcom_test/29854418.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public GregorianCalendar toCalendar() { - GregorianCalendar calendar = new GregorianCalendar(); - - calendar.clear(); - calendar.set(Calendar.YEAR, getYear()); - calendar.set(Calendar.MONTH, getMonth() - 1); - calendar.set(Calendar.DAY_OF_MONTH, getDay()); - return calendar; - } - COM: <s> create an instance of calendar to represent date </s> - diff --git a/funcom_test/29854426.txt b/funcom_test/29854426.txt deleted file mode 100644 index 897ff5562538c7a7acb6903dd61579a92ae50192..0000000000000000000000000000000000000000 --- a/funcom_test/29854426.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String format(String format, Locale locale) { - GregorianCalendar cal = new GregorianCalendar(); - - cal.set(Calendar.HOUR_OF_DAY, getHours()); - cal.set(Calendar.MINUTE, getMinutes()); - cal.set(Calendar.SECOND, getSeconds()); - return new SimpleDateFormat(format).format(cal.getTime()); - } - COM: <s> formats the time according to the given format and locale </s> - diff --git a/funcom_test/29854430.txt b/funcom_test/29854430.txt deleted file mode 100644 index 41f64f6d09f206d610c475b678ae1b66da694f9d..0000000000000000000000000000000000000000 --- a/funcom_test/29854430.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public GregorianCalendar toCalendar() { - GregorianCalendar calendar = new GregorianCalendar(); - - calendar.clear(); - calendar.set(Calendar.HOUR_OF_DAY, getHours()); - calendar.set(Calendar.MINUTE, getMinutes()); - calendar.set(Calendar.SECOND, getSeconds()); - return calendar; - } - COM: <s> create an instance of calendar to represent time </s> - diff --git a/funcom_test/29854457.txt b/funcom_test/29854457.txt deleted file mode 100644 index 6e85209417366da8e7e8523bb8976917f3d2c6b3..0000000000000000000000000000000000000000 --- a/funcom_test/29854457.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getWeekday() { - synchronized(calendar) { - int[] gregorian = julianToGregorian(this.scalar); - - calendar.set(Calendar.YEAR, gregorian[0]); - calendar.set(Calendar.MONTH, gregorian[1] - 1); - calendar.set(Calendar.DAY_OF_MONTH, gregorian[2]); - - return calendar.get(Calendar.DAY_OF_WEEK); - } - } - COM: <s> returns the day number starts at 1 ends at 7 </s> - diff --git a/funcom_test/29854498.txt b/funcom_test/29854498.txt deleted file mode 100644 index b076b03b5c21baef4e27a44694f69e96bc7994dd..0000000000000000000000000000000000000000 --- a/funcom_test/29854498.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String format(String format, Locale locale) { - GregorianCalendar cal = new GregorianCalendar(); - - cal.set(Calendar.YEAR, getYear()); - cal.set(Calendar.MONTH, getMonth() - 1); - cal.set(Calendar.DAY_OF_MONTH, 1); - - return new SimpleDateFormat(format, locale).format(cal.getTime()); - } - COM: <s> formats the month according to the given format and locale </s> - diff --git a/funcom_test/29854623.txt b/funcom_test/29854623.txt deleted file mode 100644 index 456814270478f5b8d1480eea2a3d8294d7e9edb4..0000000000000000000000000000000000000000 --- a/funcom_test/29854623.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public JExpression genConstructorCall() { - TokenReference ref = getTokenReference(); - JExpression expr = new JUnqualifiedInstanceCreation(ref, - CReferenceType.lookup("BLOCK_" + getIdent()), - JExpression.EMPTY); - JExpression left = new JFieldAccessExpression(ref, getIdent()); - - return new JAssignmentExpression(ref, left, expr); - } - COM: <s> print expression to output stream </s> - diff --git a/funcom_test/29854650.txt b/funcom_test/29854650.txt deleted file mode 100644 index d090a58a0a9cf205611cf730e80513cb193d127e..0000000000000000000000000000000000000000 --- a/funcom_test/29854650.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getIdent() { - int start = Math.max(0, - Math.max(1 + getTokenReference().getFile().lastIndexOf('/'), - 1 + getTokenReference().getFile().lastIndexOf('\\'))); - - int dot = getTokenReference().getFile().lastIndexOf('.'); - - return getTokenReference().getFile().substring(start, dot); - } - COM: <s> returns the ident of this class </s> - diff --git a/funcom_test/29854715.txt b/funcom_test/29854715.txt deleted file mode 100644 index b58ac2bbdf24b98ab87284a288db450c6b4f6578..0000000000000000000000000000000000000000 --- a/funcom_test/29854715.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public PRBlock getBlock(String name) throws PositionedError { - if (!blocks_H.containsKey(name)) { - // an unpositioned error would be better - throw new CLineError(getTokenReference(), PrintMessages.UNDEFINED_BLOCK, name); - } - - return (PRBlock)blocks_H.get(name); - } - COM: <s> return a block with a name </s> - diff --git a/funcom_test/29854739.txt b/funcom_test/29854739.txt deleted file mode 100644 index fce913f740151cbf1685e522b50c4f9b717030ef..0000000000000000000000000000000000000000 --- a/funcom_test/29854739.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void genActorDefinition(String ident, String label, String help) { - Element self; - - self = new Element("actor"); - self.setAttribute("ident", ident); - self.setAttribute("label", label); - if (help != null) { - self.setAttribute("help", help); - } - peekNode(null).addContent(self); - } - COM: <s> creates localization for an actor </s> - diff --git a/funcom_test/29854744.txt b/funcom_test/29854744.txt deleted file mode 100644 index 3641f18e539e2b0f9590d46619794803167ac61e..0000000000000000000000000000000000000000 --- a/funcom_test/29854744.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public VKTypeDefinition getFieldTypeDef(String name) { - Object obj = types.get(name); - - if (obj != null) { - return (VKTypeDefinition)obj; - } else { - for (int i = inserts.length - 1; i >= 0 && inserts[i] != null; i--) { - obj = inserts[i].getFieldTypeDef(name); - if (obj != null) { - types.put(name, obj); - return (VKTypeDefinition)obj; - } - } - return null; - } - } - COM: <s> search the field type in compilation unit </s> - diff --git a/funcom_test/29854766.txt b/funcom_test/29854766.txt deleted file mode 100644 index 4a34442557a4f67560d8ff5f403d331ea0fa5382..0000000000000000000000000000000000000000 --- a/funcom_test/29854766.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public VKCommandDefinition getCommandDef(String name) { - Object obj = commands.get(name); - - if (obj != null) { - return (VKCommandDefinition)obj; - } else { - for (int i = inserts.length - 1; i >= 0; i--) { - obj = inserts[i].getCommandDef(name); - if (obj != null) { - commands.put(name, obj); - return (VKCommandDefinition)obj; - } - } - return null; - } - } - COM: <s> search the command in compilation unit </s> - diff --git a/funcom_test/29854794.txt b/funcom_test/29854794.txt deleted file mode 100644 index 82b69e39b03464dcbd86e79aed4e3e92f0392f2b..0000000000000000000000000000000000000000 --- a/funcom_test/29854794.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public JExpression genIdents() { - TokenReference ref = getTokenReference(); - JExpression[] init = new JExpression[codes.length]; - - for (int i = 0; i < codes.length; i++) { - init[i] = new JStringLiteral(ref, codes[i].getIdent()); - } - return VKUtils.createArray(ref, CStdType.String, init); - } - COM: <s> generates the names of this type </s> - diff --git a/funcom_test/29854960.txt b/funcom_test/29854960.txt deleted file mode 100644 index 0476b7ac27c64de7e8f2672d2dc91858b691b120..0000000000000000000000000000000000000000 --- a/funcom_test/29854960.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean getBoolean() { - if (value instanceof Boolean) { - return ((Boolean)value).booleanValue(); - } - throw new InconsistencyException(); - // !!!!throw new PositionedError(getTokenReference(), "vk-not-boolean", getLabel(), value); - } - COM: <s> returns the value of this node as a boolean </s> - diff --git a/funcom_test/29854961.txt b/funcom_test/29854961.txt deleted file mode 100644 index 88102dec913f3c214239e91cf2141e169f89cc7b..0000000000000000000000000000000000000000 --- a/funcom_test/29854961.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getInteger() { - if (value instanceof Integer) { - return ((Integer)value).intValue(); - } - throw new InconsistencyException(); - // !!!throw new PositionedError(getTokenReference(), "vk-not-integer", getLabel(), value); - } - COM: <s> returns the value of this node as an integer </s> - diff --git a/funcom_test/29854964.txt b/funcom_test/29854964.txt deleted file mode 100644 index fa8f5c1bc35ae577fc2c7d5c757ff406ba4c08f2..0000000000000000000000000000000000000000 --- a/funcom_test/29854964.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Fixed getFixed() { - if (value instanceof Fixed) { - return (Fixed)value; - } - // !!! check somewhere else but not in gen code !!!throw new PositionedError(getTokenReference(), "vk-not-fixed", getLabel(), value); - throw new InconsistencyException(); - } - COM: <s> returns the value of this node as a fixed </s> - diff --git a/funcom_test/29854967.txt b/funcom_test/29854967.txt deleted file mode 100644 index 7132355710eb353b9c2bbf67b91ef32b593126be..0000000000000000000000000000000000000000 --- a/funcom_test/29854967.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getString() { - if (value instanceof String) { - return (String)value; - } - // !!! check somewhere else but not in gen code !!!throw new PositionedError(getTokenReference(), "vk-not-string", getLabel(), value); - throw new InconsistencyException(); - } - COM: <s> returns the value of this node as a string </s> - diff --git a/funcom_test/29855109.txt b/funcom_test/29855109.txt deleted file mode 100644 index a71426ae4292c155baa1f4b7df8b73f3ade40254..0000000000000000000000000000000000000000 --- a/funcom_test/29855109.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public VKFieldColumns cloneToPos(int pos) { - VKFieldColumn[] clone = new VKFieldColumn[columns.length]; - for (int i = 0; i < columns.length; i++) { - clone[i] = columns[i].cloneToPos(pos); - } - return new VKFieldColumns(getTokenReference(), clone, indices, priority); - } - COM: <s> sets the position in an array of fields </s> - diff --git a/funcom_test/29855292.txt b/funcom_test/29855292.txt deleted file mode 100644 index 4707c93f644ce1947c5f5420e2c0b2511904f16e..0000000000000000000000000000000000000000 --- a/funcom_test/29855292.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getIndex(Object object) { - if (fastIndex != -1) { - return ((Integer)object).intValue() - fastIndex; - } - - for (int i = 0; i < codes.length; i++) { - if (((Integer)object).intValue() == codes[i]) { - return i; - } - } - - return -1; - } - COM: <s> get the index of the value </s> - diff --git a/funcom_test/29855346.txt b/funcom_test/29855346.txt deleted file mode 100644 index 1b9204c22b2455e2068cc2b2abf035fb58691bae..0000000000000000000000000000000000000000 --- a/funcom_test/29855346.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void localize(FieldLocalizer parent) { - TypeLocalizer loc; - - loc = parent.getManager().getTypeLocalizer(source, type); - names = new String[idents.length]; - for (int i = 0; i < names.length; i++) { - names[i] = loc.getCodeLabel(idents[i]); - this.width = Math.max(this.width, names[i].length()); - } - } - COM: <s> localizes this field </s> - diff --git a/funcom_test/29855497.txt b/funcom_test/29855497.txt deleted file mode 100644 index 8c291eacfc7f87fddd427d86be954ef8a8765be6..0000000000000000000000000000000000000000 --- a/funcom_test/29855497.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setCommandEnabled(final VCommand command, final boolean enable) { - SwingThreadHandler.start(new Runnable () { - public void run() { - command.setEnabled(enable); - } - }); - - if (enable) { - activeCommands.addElement(command); - } else { - activeCommands.removeElement(command); - } - } - COM: <s> enables disables the actor </s> - diff --git a/funcom_test/29855505.txt b/funcom_test/29855505.txt deleted file mode 100644 index 2afc74622679b848c961b236e60cec9a254cf116..0000000000000000000000000000000000000000 --- a/funcom_test/29855505.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean isUnfolded(int level) { - for (int i = 0; i < getChildCount(); i++) { - VReportRow child = (VReportRow)getChildAt(i); - - if (child.getLevel() > level) { - if (((VGroupRow)child).isUnfolded(level)) { - return true; - } - } else { - if (child.isVisible()) { - return true; - } - } - } - - return false; - } - COM: <s> returns true iff all the child nodes of the level generation are visible </s> - diff --git a/funcom_test/29855507.txt b/funcom_test/29855507.txt deleted file mode 100644 index df7aaef2412cdda6ce8c63470616d3ff5382a7bd..0000000000000000000000000000000000000000 --- a/funcom_test/29855507.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setChildNodesVisible(int level) { - for (int i = 0; i < getChildCount(); i++) { - VReportRow child = (VReportRow)getChildAt(i); - - child.setVisible(true); - - if (getLevel() > level + 1) { - ((VGroupRow)child).setChildNodesVisible(level); - } - } - } - COM: <s> sets child node of the level generation to visible </s> - diff --git a/funcom_test/29855640.txt b/funcom_test/29855640.txt deleted file mode 100644 index 31e8b36cb47abf9a360920b928aeac11a64dd13f..0000000000000000000000000000000000000000 --- a/funcom_test/29855640.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public PrintJob createPrintJob() { - try { - PdfPrintJob printJob; - - printJob = new PdfPrintJob(format); - printJob.setDocumentType(getDocumentType()); - return startPrintIntern(printJob); - } catch (IOException e) { - throw new InconsistencyException(e); - } catch (PrintException e) { - throw new InconsistencyException(e); - } - } - COM: <s> starts a print session with a printer </s> - diff --git a/funcom_test/29855696.txt b/funcom_test/29855696.txt deleted file mode 100644 index 90ce8bf241adb3da15422c31927d38906405ba35..0000000000000000000000000000000000000000 --- a/funcom_test/29855696.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addImage(ImageIcon image) { - if (image != null) { - hasText = true; - endChunk(); - lineHeight = Math.max(lineHeight, maxImageSize(image).height + lineDescend); - commands.addElement(new ImageCommand(image, currentPos, -lineDescend)); - } - } - COM: <s> adds text to buffer </s> - diff --git a/funcom_test/29855758.txt b/funcom_test/29855758.txt deleted file mode 100644 index 51991eb47db200ee4ffc361a0fd3fc605f97637a..0000000000000000000000000000000000000000 --- a/funcom_test/29855758.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void reset(boolean firstLine) { - hasText = false; - height = 0; - lineHeight = 0; - lineDescend = 0; - this.firstLine = firstLine; - currentPhrase = null; - commands.setSize(0); - commands.addElement(blockStyle = new BlockPainter(null)); - commands.addElement(translate = new TranslateCommand()); - } - COM: <s> resets the buffer clear </s> - diff --git a/funcom_test/29855838.txt b/funcom_test/29855838.txt deleted file mode 100644 index ec0843922fe1c84137eae1c9efd653e6f41f741d..0000000000000000000000000000000000000000 --- a/funcom_test/29855838.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void localize(LocalizationManager manager) { - ActorLocalizer actorLoc; - MenuLocalizer menuLoc; - - menuLoc = manager.getMenuLocalizer(menuSource, menuIdent); - actorLoc = manager.getActorLocalizer(actorSource, actorIdent); - - menuName = menuLoc.getLabel(); - menuItem = actorLoc.getLabel(); - help = actorLoc.getHelp(); - - initAction(); - } - COM: <s> localizes this actor </s> - diff --git a/funcom_test/29855850.txt b/funcom_test/29855850.txt deleted file mode 100644 index bf1f1c3b4899ca49cf5f4d83d22439a401fad8b2..0000000000000000000000000000000000000000 --- a/funcom_test/29855850.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setWaitInfo(String message) { - if (!SwingUtilities.isEventDispatchThread()) { - System.err.println("ERROR: DFootPanel.setWaitInfo(..) calles outside of Eventdispatching Thread"); - } - - oldMessage = messagePanel.getText(); - if (message != null) { - messagePanel.setText(message, true); - } - waitPanel.setWaiting(true); - } - COM: <s> change mode to wait state </s> - diff --git a/funcom_test/29855854.txt b/funcom_test/29855854.txt deleted file mode 100644 index 297bbba7f4b67643db3944c9a5a3ffece0f8af4d..0000000000000000000000000000000000000000 --- a/funcom_test/29855854.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void unsetWaitInfo() { - if (!SwingUtilities.isEventDispatchThread()) { - System.err.println("ERROR: DFootPanel.unsetWaitInfo() calles outside of Eventdispatching Thread"); - } - - messagePanel.setText(oldMessage, false); - waitPanel.setWaiting(false); - } - COM: <s> change mode to free state </s> - diff --git a/funcom_test/29855924.txt b/funcom_test/29855924.txt deleted file mode 100644 index 4cc0447461cac51791b0eb99ec130cf59c6212a9..0000000000000000000000000000000000000000 --- a/funcom_test/29855924.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void executeVoidTrigger(int key) { - switch (key) { - case CMD_QUIT: - close(0); - break; -// case CMD_TOP: -// setURL(Application.getDefaults().getHelpURL() + "index.htm"); -// break; -// case CMD_INDEX: -// setURL(Application.getDefaults().getHelpURL() + "Index.htm"); -// break; - } - } - COM: <s> performs the appropriate action </s> - diff --git a/funcom_test/29855930.txt b/funcom_test/29855930.txt deleted file mode 100644 index f8b978e262d02921356b91ee7c507c58c09b28b6..0000000000000000000000000000000000000000 --- a/funcom_test/29855930.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void buildDependencies(Hashtable deps) { - if (! deps.containsKey(domain)) { - deps.put(domain, this.getClass().getPackage().getName() + ".Messages"); - } - if (parents != null) { - for(int i=0; i<parents.length; i++) { - parents[i].buildDependencies(deps); - } - } - } - COM: <s> builds the dependencies of this registry </s> - diff --git a/funcom_test/29856019.txt b/funcom_test/29856019.txt deleted file mode 100644 index 082d659fe8773889998da4bd748ae0fee2f14968..0000000000000000000000000000000000000000 --- a/funcom_test/29856019.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void unfoldingRow(int row, int column) { - if (root.getLevel() > 1) { - int level = displayLevels[reverseOrder[column]]; - VReportRow currentRow = visibleRows[row]; - - if (currentRow instanceof VGroupRow) { - ((VGroupRow)currentRow).setChildNodesVisible(level); - } - - updateTableModel(); - } - } - COM: <s> unfolds the specified row to specified column </s> - diff --git a/funcom_test/29856026.txt b/funcom_test/29856026.txt deleted file mode 100644 index fae47fb97839b69caa89b1f345fb964d2bf07981..0000000000000000000000000000000000000000 --- a/funcom_test/29856026.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void invoke(Runnable runnable) { - if (SwingUtilities.isEventDispatchThread()) { - try { - runnable.run(); - } catch (Throwable failure) { - // also a VException or VRuntimeException is not allowed here - sendDebugMail("invoke in awt-thread ", runnable.toString(), failure); - } - } else { - addDebugableEventToQueue(runnable); - } - } - COM: <s> starts it in the event dispatch thread </s> - diff --git a/funcom_test/29856028.txt b/funcom_test/29856028.txt deleted file mode 100644 index 3b8b4ff967a993debc64ca26b1ca840eba3ec8bb..0000000000000000000000000000000000000000 --- a/funcom_test/29856028.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Dimension getPreferredSize() { - FontMetrics fm = getGraphics().getFontMetrics(); - Dimension d = new Dimension(image.getWidth(null) + 2, - image.getHeight(null) + 2); - if (caption != null) { - d.height += fm.getHeight() + 2; - } - - return d; - } - COM: <s> get the splash screens preferred size </s> - diff --git a/funcom_test/29856031.txt b/funcom_test/29856031.txt deleted file mode 100644 index ee74c8e617f204d9d6f1a299d7fcd75dc7fb2821..0000000000000000000000000000000000000000 --- a/funcom_test/29856031.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setWaiting(boolean waiting) { - if (!SwingUtilities.isEventDispatchThread()) { - Thread.dumpStack(); - System.err.println("ERROR: DWaitPanel.setWaiting(..) calles outside of Eventdispatching Thread"); - } - - if (waiting != isIndeterminate()) { - setIndeterminate(waiting); - } - setVisible(waiting); - } - COM: <s> starts or stops the animation </s> - diff --git a/funcom_test/29856135.txt b/funcom_test/29856135.txt deleted file mode 100644 index 2c6ad7c4c96aeb0f5c9ee4093c4e0783197181e9..0000000000000000000000000000000000000000 --- a/funcom_test/29856135.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object getValueAt(int row, int column) { - Object x = null; - - try { - x = visibleRows[row].getValueAt(column); - } catch (Exception e) { - e.printStackTrace(); - } - return visibleRows[row].getLevel() < displayLevels[reverseOrder[column]] ? - null : - x; - } - COM: <s> returns an attribute value for a cell </s> - diff --git a/funcom_test/29856230.txt b/funcom_test/29856230.txt deleted file mode 100644 index 86e57bb26b0d5eabfe9eee7df6a764027a1269fb..0000000000000000000000000000000000000000 --- a/funcom_test/29856230.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void close(final int code) { - Object[] listeners = modelListener.getListenerList(); - - for (int i = listeners.length-2; i>=0; i-=2) { - if (listeners[i]==ModelCloseListener.class) { - ((ModelCloseListener)listeners[i+1]).modelClosed(code); - } - } - } - COM: <s> inform close linstener that this model was closed </s> - diff --git a/funcom_test/29856255.txt b/funcom_test/29856255.txt deleted file mode 100644 index 58fd9899ee2166026232a60f4f54d0196d2cfb70..0000000000000000000000000000000000000000 --- a/funcom_test/29856255.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setWaitDialog(String message, int maxtime) { - Object[] listeners = modelListener.getListenerList(); - - for (int i = listeners.length-2; i>=0; i-=2) { - if (listeners[i]==WaitDialogListener.class) { - ((WaitDialogListener)listeners[i+1]).setWaitDialog(message, maxtime); - } - } - } - COM: <s> set wait info </s> - diff --git a/funcom_test/29856301.txt b/funcom_test/29856301.txt deleted file mode 100644 index 73725620fd10e13477cc39ea5015b938ffd6b37a..0000000000000000000000000000000000000000 --- a/funcom_test/29856301.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void executeVoidTrigger(final int VKT_Type) throws VException { - if (VKT_Type == Constants.CMD_GOTO_SHORTCUTS) { - try { - Application.getMenu().gotoShortcuts(); - } catch (NullPointerException npe) { - throw new VExecFailedException(VlibProperties.getString("shortcuts-not-available")); - } - } - } - COM: <s> performs a void trigger </s> - diff --git a/funcom_test/29856699.txt b/funcom_test/29856699.txt deleted file mode 100644 index 0eb41848b4727dbf695a53294c8a41a6eb4c7844..0000000000000000000000000000000000000000 --- a/funcom_test/29856699.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setColor(int r, Color v) { - if (isChangedUI() || value[r] != v) { - // trails (backup) the record if necessary - trail(r); - // set value in the defined row - value[r] = v; - // inform that value has changed - setChanged(r); - } - } - COM: <s> sets the field value of given record to a date value </s> - diff --git a/funcom_test/29856702.txt b/funcom_test/29856702.txt deleted file mode 100644 index 14154c992c34bd50af796fc6423d9f72b83c8ed4..0000000000000000000000000000000000000000 --- a/funcom_test/29856702.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setTime(int r, Time v) { - if (isChangedUI() - || value[r] == null - || (value[r] != null && !value[r].equals(v))) { - // trails (backup) the record if necessary - trail(r); - // set value in the defined row - value[r] = v; - // inform that value has changed - setChanged(r); - } - } - COM: <s> sets the field value of given record to a time value </s> - diff --git a/funcom_test/29856703.txt b/funcom_test/29856703.txt deleted file mode 100644 index 970f048f6fa707c0ddf35cb0bde097ca8d3b513a..0000000000000000000000000000000000000000 --- a/funcom_test/29856703.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setObject(int r, Object v) { - if (v instanceof byte[]) { - byte[] b = (byte[])v; - setColor(r, new Color(reformat(b[0]), reformat(b[1]), reformat(b[2]))); - } else { - setColor(r, (Color)v); - } - } - COM: <s> sets the field value of given record </s> - diff --git a/funcom_test/29856736.txt b/funcom_test/29856736.txt deleted file mode 100644 index d11f130b2b0ba216705298bbdc040a5b6f40c1ec..0000000000000000000000000000000000000000 --- a/funcom_test/29856736.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void disposeAfterLostFocus(final Window window) { - SwingUtilities.invokeLater(new Runnable() { - // in the event-queue there may be some event - // which has do be done before this window can close. - // Therefore enqueue it at the end. - - public void run() { - window.setVisible(false); - window.dispose(); - } - }); - } - COM: <s> work around 2003 </s> - diff --git a/funcom_test/29856740.txt b/funcom_test/29856740.txt deleted file mode 100644 index 96558e6d3543c682c12c3b8d4df03a8ae9aa817e..0000000000000000000000000000000000000000 --- a/funcom_test/29856740.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void clipRect(int x, int y, int width, int height) { - y = swapCoord(y); - clippingRect = new Rectangle(x, y, width, height); - - stream.println("initclip"); - emitMoveto(x, y); - emitLineto(x + width, y); - emitLineto(x + width, y - height); - emitLineto(x, y - height); - stream.println("closepath eoclip newpath"); - } - COM: <s> clips to a rectangle </s> - diff --git a/funcom_test/29856823.txt b/funcom_test/29856823.txt deleted file mode 100644 index e2b4cd85338c60e48d1a3f91d7fcd711ce07890c..0000000000000000000000000000000000000000 --- a/funcom_test/29856823.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addActorsToGUI(SActor[] actorDefs) { - if (actorDefs != null) { - for (int i = 0; i < actorDefs.length; i++) { - addButton(buttonPanel, actorDefs[i]); - menuBar.addItem(actorDefs[i]); - } - } - buttonPanel.add(Box.createGlue()); - } - COM: <s> add a command in the menu bar </s> - diff --git a/funcom_test/29856850.txt b/funcom_test/29856850.txt deleted file mode 100644 index 3bf4b1060383a7b61ca97d30556921a91f74de5c..0000000000000000000000000000000000000000 --- a/funcom_test/29856850.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setModelText(String s) { - scanedtext = new StringBuffer(s); - if (s == null || s.length() == 0) { - super.setModelText(""); // Ready to read - } else { - super.setModelText(PROGRESS_BAR.substring(0,1)); // Reading - } - progress = 0; - } - COM: <s> changes the text of this document without checking </s> - diff --git a/funcom_test/29856868.txt b/funcom_test/29856868.txt deleted file mode 100644 index adb0d688d89ffd06769fa09f569fcf7678d8e0fb..0000000000000000000000000000000000000000 --- a/funcom_test/29856868.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void clearRect(int x, int y, int width, int height) { - stream.println("gsave"); - Color c = getColor(); - setColor(backClr); - doRect(x, y, width, height, true); - setColor(c); - stream.println("grestore"); - } - COM: <s> clears the specified rectangle by filling it with the current background color </s> - diff --git a/funcom_test/29856937.txt b/funcom_test/29856937.txt deleted file mode 100644 index 2f06ca578850d23525ccc5a29974372e7e27a64f..0000000000000000000000000000000000000000 --- a/funcom_test/29856937.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void verifyNotInTransaction(String message) { - if (getModel().inTransaction() && debugMessageInTransaction()) { - try { - Application.reportTrouble("DWindow", - message + " IN TRANSACTION", - this.toString(), - new RuntimeException("displayNotice in Transaction")); - } catch (Exception e) { - e.printStackTrace(); - } - } - } - COM: <s> reports iff a message is shown while in a transaction </s> - diff --git a/funcom_test/29857000.txt b/funcom_test/29857000.txt deleted file mode 100644 index 9e7720dd942c6f7a603fdeb1e9131fc75ee3308e..0000000000000000000000000000000000000000 --- a/funcom_test/29857000.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void dropImage(File file) throws VException { - - if (file == null) { - return; - } - - try { - FileInputStream is = new FileInputStream(file); - byte[] b = new byte[is.available()]; - - is.read(b); - dropImage(b); - } catch (Exception e) { - throw new VExecFailedException("bad-file", e); - } - } - COM: <s> drops the image as a file </s> - diff --git a/funcom_test/29857087.txt b/funcom_test/29857087.txt deleted file mode 100644 index c309eb213ad7f3d8a30aa4a44bf6d8ce8a48a27f..0000000000000000000000000000000000000000 --- a/funcom_test/29857087.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void leave() { - // this is the correct thread to calculate the display of the - // field NOT later in the event thread - final DField leaveMe = getDisplay(); - - if (leaveMe != null) { - SwingThreadHandler.start(new Runnable() { - public void run() { - resetCommands(); - leaveMe.leave(); - } - }); - } - } - COM: <s> leaves field on the desktop </s> - diff --git a/funcom_test/29857234.txt b/funcom_test/29857234.txt deleted file mode 100644 index 08995232007329ffedc1418f0deb68697a3f4678..0000000000000000000000000000000000000000 --- a/funcom_test/29857234.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setMonth(int r, Month v) { - if (isChangedUI() - || value[r] == null - || (value[r] != null && !value[r].equals(v))) { - // trails (backup) the record if necessary - trail(r); - // set value in the defined row - value[r] = v; - // inform that value has changed - setChanged(r); - } - } - COM: <s> sets the field value of given record to a month value </s> - diff --git a/funcom_test/29857325.txt b/funcom_test/29857325.txt deleted file mode 100644 index 50159a14be9480f6f8926c3a84de692cd3ee3c8e..0000000000000000000000000000000000000000 --- a/funcom_test/29857325.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setWeek(int r, Week v) { - if (isChangedUI() - || value[r] == null - || (value[r] != null && !value[r].equals(v))) { - // trails (backup) the record if necessary - trail(r); - // set value in the defined row - value[r] = v; - // inform that value has changed - setChanged(r); - } - } - COM: <s> sets the field value of given record to a week value </s> - diff --git a/funcom_test/29857398.txt b/funcom_test/29857398.txt deleted file mode 100644 index 8b5a774d83c1e1a41bca6a1b846aecd8c3849803..0000000000000000000000000000000000000000 --- a/funcom_test/29857398.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected String formatString(String value) { - int code = -1; // cannot be null - - for (int i = 0; code == -1 && i < codes.length; i++) { - if (value == codes[i]) { - code = i; - } - } - if (code == -1) { - throw new InconsistencyException("bad code value " + value); - } - - return formatCode(code); - } - COM: <s> returns a string representation of a int value wrt the field type </s> - diff --git a/funcom_test/29857425.txt b/funcom_test/29857425.txt deleted file mode 100644 index e9ed88725546d2b24c58b1830bd48f3e1792e4df..0000000000000000000000000000000000000000 --- a/funcom_test/29857425.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setTimestamp(int r, Timestamp v) { - if (isChangedUI() - || value[r] == null - || (value[r] != null && !value[r].equals(v))) { - // trails (backup) the record if necessary - trail(r); - // set value in the defined row - value[r] = v; - // inform that value has changed - setChanged(r); - } - } - COM: <s> sets the field value of given record to a timestamp value </s> - diff --git a/funcom_test/29857570.txt b/funcom_test/29857570.txt deleted file mode 100644 index 0ac55667d4f9cde70929375f804ee1e4b911cd18..0000000000000000000000000000000000000000 --- a/funcom_test/29857570.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setScale(int record, int scale) throws VExecFailedException { - if (scale > maxScale) { - throw new InconsistencyException(MessageCode.getMessage("VIS-00060", String.valueOf(scale), String.valueOf(maxScale))); - } - - currentScale[record] = scale; - } - COM: <s> sets the scale value for the specified record </s> - diff --git a/funcom_test/29857595.txt b/funcom_test/29857595.txt deleted file mode 100644 index 33d31fa51171a1225304980837dc3ac5adbf5188..0000000000000000000000000000000000000000 --- a/funcom_test/29857595.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void localize(LocalizationManager manager) { - FormLocalizer loc; - - loc = manager.getFormLocalizer(source); - setTitle(loc.getTitle()); - for (int i = 0; i < pages.length; i++) { - pages[i] = loc.getPage(i); - } - for (int i = 0; i < blocks.length; i++) { - blocks[i].localize(manager); - } - } - COM: <s> localizes this form </s> - diff --git a/funcom_test/29857662.txt b/funcom_test/29857662.txt deleted file mode 100644 index decd48e6f2008081e5088d60a036a0d126d489c8..0000000000000000000000000000000000000000 --- a/funcom_test/29857662.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Component getDisplay() { - Component value = null; - - if (hasListener) { - Object[] listeners = fieldListener.getListenerList(); - - for (int i = listeners.length-2; i>=0 && value == null; i-=2) { - if (listeners[i]==FieldListener.class) { - value = ((FieldListener)listeners[i+1]).getCurrentDisplay(); - } - } - } - - return value; - } - COM: <s> return the display </s> - diff --git a/funcom_test/29857686.txt b/funcom_test/29857686.txt deleted file mode 100644 index 49426539b4439de6fe718890f020f584ab0330ff..0000000000000000000000000000000000000000 --- a/funcom_test/29857686.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: static public int computeDigits(int width, int scale) { - if (scale == 0) { - return width - width/4; - } else if (width == scale || width == scale + 1) { - return scale; - } else { - // decimal = width - scale - 1 - // digits = decimal - dicimal/4 + scale - return width - 1 - (width - scale - 1)/4; - } - } - COM: <s> computes the number of digits of a fixed field fixed width scale </s> - diff --git a/funcom_test/29857689.txt b/funcom_test/29857689.txt deleted file mode 100644 index b1e43d53c91adde940a513215ca8a3129a9eea02..0000000000000000000000000000000000000000 --- a/funcom_test/29857689.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public boolean isChanged() { - if (hasTrigger(TRG_CHANGED)) { - Object res; - - try { - res = callTrigger(TRG_CHANGED); - } catch (VException e) { - throw new InconsistencyException(); - } - - return ((Boolean)res).booleanValue(); - } else { - for (int i = 0; i < blocks.length; i++) { - if (blocks[i].isChanged()) { - return true; - } - } - return false; - } - } - COM: <s> returns true iff the form contents have been changed by the user </s> - diff --git a/funcom_test/29858357.txt b/funcom_test/29858357.txt deleted file mode 100644 index fd6976debad84d8be54f680180bdfffea22f38c5..0000000000000000000000000000000000000000 --- a/funcom_test/29858357.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setThrowables(Hashtable throwables) { - if (throwables != null) { - int count = 0; - - exceptions = new CReferenceType[throwables.size()]; - for (Enumeration elems = throwables.elements(); elems.hasMoreElements(); ) { - exceptions[count++] = ((CThrowableInfo)elems.nextElement()).getThrowable(); - } - } - } - COM: <s> this method is used by initializers that knows throwables exceptions only </s> - diff --git a/funcom_test/29858632.txt b/funcom_test/29858632.txt deleted file mode 100644 index 34518dfbc6ad51258b0bd86426697787d4759090..0000000000000000000000000000000000000000 --- a/funcom_test/29858632.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void prepareInitializers(Compiler compiler, Vector classes) throws PositionedError { - cunitContext = new CCompilationUnitContext(compiler, environment, export, classes); - - for (int i = 0; i < typeDeclarations.length ; i++) { - typeDeclarations[i].prepareInitializers(cunitContext); - } - } - COM: <s> prepare the second pass </s> - diff --git a/funcom_test/29859140.txt b/funcom_test/29859140.txt deleted file mode 100644 index 5282c5221b96102038e43d95973d9910ac4291dd..0000000000000000000000000000000000000000 --- a/funcom_test/29859140.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void genAppendToStringBuffer(GenerationContext context) { - TypeFactory factory = context.getTypeFactory(); - - if (getType(factory).equals(factory.createReferenceType(TypeFactory.RFT_STRING))) { - left.genAppendToStringBuffer(context); - right.genAppendToStringBuffer(context); - } else { - super.genAppendToStringBuffer(context); - } - } - COM: <s> generates jvm bytecode which appends a string representation </s> - diff --git a/funcom_test/29859171.txt b/funcom_test/29859171.txt deleted file mode 100644 index 2115c5e82ffe26d5c81501aa2dd1c070eb8e9bb3..0000000000000000000000000000000000000000 --- a/funcom_test/29859171.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void fixChildBlockVariablePositions(int increment) throws UnpositionedError { - if (childBlocks != null) { - for (int i = 0; i < childBlocks.size(); i++) { - CBlockContext child = (CBlockContext)childBlocks.get(i); - - child.fixVariablePositions(increment); - } - } - } - COM: <s> fix the position of local variables of all child blocks of this block </s> - diff --git a/funcom_test/298592.txt b/funcom_test/298592.txt deleted file mode 100644 index f7a7fceb395a2f03d1ee988b37ebecc981430f30..0000000000000000000000000000000000000000 --- a/funcom_test/298592.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void createFilterableCategories() { - _filterableCats = new ArrayList<FilterableCategory>(); - FilterableCategory.clearAll(); - _filterableCats.add(new FilterableCategory("both")); - _filterableCats.add(new FilterableCategory("fields")); - _filterableCats.add(new FilterableCategory("methods")); - } - COM: <s> creates the categories that are allowed to be filtered </s> - diff --git a/funcom_test/29859244.txt b/funcom_test/29859244.txt deleted file mode 100644 index 3040af0f2c68e85894c6ef2c3f65b59d31ff36b5..0000000000000000000000000000000000000000 --- a/funcom_test/29859244.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private List split(String line) { - List result; - - if (line == null) { - result = new ArrayList(); - } else { - StringTokenizer tok; - - tok = new StringTokenizer(line, ","); - result = new ArrayList(tok.countTokens()); - - while(tok.hasMoreTokens()) { - result.add(tok.nextToken()); - } - } - - return result; - } - COM: <s> each token of the line is an element of the list </s> - diff --git a/funcom_test/29859267.txt b/funcom_test/29859267.txt deleted file mode 100644 index 1208b103144579b73bf565ece210f90eb12714ca..0000000000000000000000000000000000000000 --- a/funcom_test/29859267.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void close() { - try { - in.close(); - out.close(); - connection.close(); - } catch (Exception e) { - e.printStackTrace(); - System.out.println("Error while closing connection port"); - System.out.println(e.getMessage()); - } - connection = null; - } - COM: <s> disconnects from the lpd server </s> - diff --git a/funcom_test/29859435.txt b/funcom_test/29859435.txt deleted file mode 100644 index 852e2bdd51e838fb598c04dcb276bcec8fed4fa0..0000000000000000000000000000000000000000 --- a/funcom_test/29859435.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void optimizeClass(String fileName) throws UnpositionedError { - ClassInfo info; - - info = readClassFile(fileName); - optimizeClass(info, options.optimize, options.verbose); - writeClassFile(info, options.destination == null ? fileName : options.destination + File.separatorChar + com.kopiright.util.base.Utils.splitQualifiedName(info.getName())[1] + ".class"); - } - COM: <s> reads optimizes and writes a class file </s> - diff --git a/funcom_test/29859440.txt b/funcom_test/29859440.txt deleted file mode 100644 index 6c452e197ab5ef543e3c0d70624ed2b46d17f8e5..0000000000000000000000000000000000000000 --- a/funcom_test/29859440.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addLineNumberInfo(Vector lineNumberInfo) { - if (lineNumbers != null) { - for (Enumeration elems = lineNumbers.elements(); elems.hasMoreElements(); ) { - int line = ((Integer)elems.nextElement()).intValue(); - - lineNumberInfo.addElement(new LineNumberInfo((short)line, this)); - } - } - } - COM: <s> adds line number info stored for the instruction to the specified vector </s> - diff --git a/funcom_test/29859627.txt b/funcom_test/29859627.txt deleted file mode 100644 index 8d32ff27cb5730686c1f0471075d3c41ca4744f7..0000000000000000000000000000000000000000 --- a/funcom_test/29859627.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public ClassInfo loadClass(String name, boolean interfaceOnly) { - for (int i = 0; i < dirs.length; i++) { - ClassInfo info; - - info = dirs[i].loadClass(name, interfaceOnly); - if (info != null) { - if (name.equals(info.getName())) { - return info; - } else { - // we might throw an exception here - } - } - } - - return null; - } - COM: <s> loads the class with specified name </s> - diff --git a/funcom_test/29859786.txt b/funcom_test/29859786.txt deleted file mode 100644 index c2c6b09d17d72abf6220d29fb7a708835946a258..0000000000000000000000000000000000000000 --- a/funcom_test/29859786.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void attachTo(AccessorContainer container) { - if (container instanceof LineNumberInfo) { - if (lineNumbers == null) { - lineNumbers = new Vector(); - } - lineNumbers.addElement(new Integer(((LineNumberInfo)container).getLine())); - } else { - // Declares this instruction to be target of a jump, handler, ... - this.isTarget = true; - } - } - COM: <s> notifies this handle that is has been attached to the specified container </s> - diff --git a/funcom_test/298599.txt b/funcom_test/298599.txt deleted file mode 100644 index cc5ff1cbe06a43735b6fd314cd274de4a6184956..0000000000000000000000000000000000000000 --- a/funcom_test/298599.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void resetOptions() { - _conditionCombo.removeAll(); - _conditionCombo.add("that meet the following conditions: "); - _conditionCombo.add("that do not meet the following conditions: "); - _conditionCombo.select(0); - - _elementTypeCombo.removeAll(); - - for(FilterableCategory fc : _filterableCats) { - _elementTypeCombo.add(fc.getName(), fc.getIndex()); - } - _elementTypeCombo.select(0); - - _patternText.setText(".*"); - - _visHolder.reset(); - } - COM: <s> resets the controls in this dialog to their defaults </s> - diff --git a/funcom_test/29859965.txt b/funcom_test/29859965.txt deleted file mode 100644 index b7cf3dbdc3f535007b9c8597a3adcd6595582b41..0000000000000000000000000000000000000000 --- a/funcom_test/29859965.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public QInst removeLastInstruction() { - if (insts.size() == 0) { - return null; - } else { - QInst last = (QInst) insts.elementAt(insts.size() - 1); - - last.setArray(null); - insts.setSize(insts.size() - 1); - return last; - } - } - COM: <s> remove the last instruction </s> - diff --git a/funcom_test/29860118.txt b/funcom_test/29860118.txt deleted file mode 100644 index 246deaad7625e7e29ea29789e99a2146155d47a6..0000000000000000000000000000000000000000 --- a/funcom_test/29860118.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void insertUseReuse(Inst use, Inst reuse, int dist) { - UseReuse current = first1; - while (current.dist < dist) { - current = current.next; - } - UseReuse newUseReuse = new UseReuse(use, reuse, dist); - current.insertBefore(newUseReuse); - if (current == first1) { - first1 = newUseReuse; - } - } - COM: <s> insert a new pair use reuse in the list </s> - diff --git a/funcom_test/29860149.txt b/funcom_test/29860149.txt deleted file mode 100644 index 28c1c7f3a3500b9d789507ada94824e938954742..0000000000000000000000000000000000000000 --- a/funcom_test/29860149.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addPhiCatch(BasicBlock bb) { - if (phis[bb.getIndex()] == null) { - //the type is not used, the rigth type of all operands, - // will be defined when passing operands to SSA form. - QVar variable = new QVar(var, Constants.TYP_REFERENCE); - phis[bb.getIndex()] = new QPhiCatch(variable); - } - } - COM: <s> add a phi catch for a given basic block </s> - diff --git a/funcom_test/29860153.txt b/funcom_test/29860153.txt deleted file mode 100644 index 2025c5a13d62254d673099d91cb0bf86e074a28d..0000000000000000000000000000000000000000 --- a/funcom_test/29860153.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addPhiReturn(BasicBlock bb, SubRoutine s) { - if (phis[bb.getIndex()] == null) { - // the type is not used, the rigth type of all operands, - // will be defined when passing operands to SSA form. - QVar variable = new QVar(var, Constants.TYP_REFERENCE); - phis[bb.getIndex()] = new QPhiReturn(variable, s); - } - } - COM: <s> add a phi return for a given basic block </s> - diff --git a/funcom_test/29860155.txt b/funcom_test/29860155.txt deleted file mode 100644 index d3089ef5a10c269d9eeee77e83be983ef191bf9b..0000000000000000000000000000000000000000 --- a/funcom_test/29860155.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addPhiJoin(BasicBlock bb) { - if (phis[bb.getIndex()] == null) { - //the type is not used, the rigth type of all operands, - // will be defined when passing operands to SSA form. - QVar variable = new QVar(var, Constants.TYP_REFERENCE); - phis[bb.getIndex()] = new QPhiJoin(variable, bb); - } - } - COM: <s> add a phi join for a given basic block </s> - diff --git a/funcom_test/29860203.txt b/funcom_test/29860203.txt deleted file mode 100644 index 4c0373bef2a6364e3324bf45fa82e0846b28c593..0000000000000000000000000000000000000000 --- a/funcom_test/29860203.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Set getExceptionNextBlocks() { - Set set = new HashSet(); - Iterator it = getOutEdges(); - while (it.hasNext()) { - CFGEdge edge = (CFGEdge) it.next(); - if (edge.getType() == CFGEdge.EXCEPTION_EDGE) { - set.add(edge.getTarget()); - } - } - return set; - } - COM: <s> get the set of blocks that are linked with the current block </s> - diff --git a/funcom_test/29860246.txt b/funcom_test/29860246.txt deleted file mode 100644 index ff1aa9e83af8f1866c07687449b0856c54267133..0000000000000000000000000000000000000000 --- a/funcom_test/29860246.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setAccess(int value) { - assert this != form.getActiveBlock() || activeField == null : - "current block: " + form.getActiveBlock() + "; current field: " + activeField; - for (int i = 0; i < fields.length; i++) { - fields[i].setAccess(value); - } - } - COM: <s> sets visibility of block </s> - diff --git a/funcom_test/29860314.txt b/funcom_test/29860314.txt deleted file mode 100644 index 8f21041ba35a38dd0fadfd2de2fc8164cbf2ce70..0000000000000000000000000000000000000000 --- a/funcom_test/29860314.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeSuccessor(Node node) { - Iterator outEdges = getOutEdges(); - while (outEdges.hasNext()) { - Edge edge = (Edge) outEdges.next(); - if (edge.getTarget() == node) { - node.predecessors.removeElement(edge); - successors.removeElement(edge); - } - } - } - COM: <s> remove a child from this node </s> - diff --git a/funcom_test/29860331.txt b/funcom_test/29860331.txt deleted file mode 100644 index 34c4744420b38a041baceb26b90be22f98f165e4..0000000000000000000000000000000000000000 --- a/funcom_test/29860331.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private int numberBlock(short[] startblock, Instruction[] insts) { - short blockNumber = 0; - - if (startblock.length == 0) { - return 0; - } else { - startblock[0] = blockNumber; - for(int j=1;j<insts.length;j++) { - if (startblock[j] == 1) { - ++blockNumber; - } - startblock[j] = blockNumber; - } - return blockNumber + 1; - } - } - COM: <s> number blocks in the array startblock </s> - diff --git a/funcom_test/29860369.txt b/funcom_test/29860369.txt deleted file mode 100644 index 09fbdd632bc391332dce4dc153a19bfc69437776..0000000000000000000000000000000000000000 --- a/funcom_test/29860369.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addLineNumber(int line) { - String label; - - // create a unique label (syntactically illegal: cannot conflict with labels in source) - label = "'" + lineNumberId++; - try { - addLabel(label); - } catch (KsmError e) { - throw new InconsistencyException(); - } - lines.addElement(new LineNumberInfo((short)line, new LabelReference(label))); - } - COM: <s> add a line number info </s> - diff --git a/funcom_test/29860376.txt b/funcom_test/29860376.txt deleted file mode 100644 index c0bbd829b5ea418801490eee82b17258eaefe0b3..0000000000000000000000000000000000000000 --- a/funcom_test/29860376.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Instruction resolveLabel(String name) throws UnresolvableLabelException { - Integer addr = (Integer)labels.get(name); - - if (addr == null) { - throw new UnresolvableLabelException(KsmMessages.UNDEFINED_LABEL, name); - } - if (addr.intValue() >= insns.size()) { - throw new UnresolvableLabelException(KsmMessages.NO_CODE_AT_LABEL, name); - } - return (Instruction)insns.elementAt(addr.intValue()); - } - COM: <s> returns the instruction at specified label </s> - diff --git a/funcom_test/29860412.txt b/funcom_test/29860412.txt deleted file mode 100644 index a1c31cedc27147e7071e8fcd41dd1c9951acf01c..0000000000000000000000000000000000000000 --- a/funcom_test/29860412.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private MethodInfo findMethod(String name) { - MethodInfo[] methods = classInfo.getMethods(); - - if (methods == null) { - return null; - } else { - for (int i = 0; i < methods.length; i++) { - if (methods[i].getName().equals(name)) { - return methods[i]; - } - } - return null; - } - } - COM: <s> finds method with specified name </s> - diff --git a/funcom_test/29860815.txt b/funcom_test/29860815.txt deleted file mode 100644 index 8a5f567cc91057427f2228c9ecbea7d61441e4e8..0000000000000000000000000000000000000000 --- a/funcom_test/29860815.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getSearchColumns() { - String result = null; - - for (int i = 0; i < fields.length; i++) { - VField fld = fields[i]; - - if (fld.getColumnCount() > 0) { - if (result == null) { - result = ""; - } else { - result += ", "; - } - result += fld.getColumn(0).getQualifiedName(); - } - } - - return result; - } - COM: <s> returns the database columns of block </s> - diff --git a/funcom_test/29860884.txt b/funcom_test/29860884.txt deleted file mode 100644 index 467f85d1acc61ab3af6415b2451adf718f72f692..0000000000000000000000000000000000000000 --- a/funcom_test/29860884.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean hasNullableColumns(int table) { - for (int i = 0; i < fields.length; i++) { - VField fld = fields[i]; - - if (fld.fetchColumn(table) != -1 - && fld.isInternal() - && fld.getColumn(fld.fetchColumn(table)).isNullable()) { - return true; - } - } - return false; - } - COM: <s> tests whether the specified table has nullable columns </s> - diff --git a/funcom_test/29862597.txt b/funcom_test/29862597.txt deleted file mode 100644 index 36d216ec66c150976c5ac7c13811c98c5b934dfb..0000000000000000000000000000000000000000 --- a/funcom_test/29862597.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void copyRecord(int from, int to, boolean trail) { - if (trail) { - trailRecord(to); - } - recordInfo[to] = recordInfo[from]; - for (int i = 0; i < fields.length; i++) { - fields[i].copyRecord(from, to); - } - } - COM: <s> copy record in block </s> - diff --git a/funcom_test/29863076.txt b/funcom_test/29863076.txt deleted file mode 100644 index c72a81f60380eeee378e16a5c46eeeb935aac741..0000000000000000000000000000000000000000 --- a/funcom_test/29863076.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void trailRecord(int rec) { - // check if trailing needed - if (! form.inTransaction() || isRecordTrailed(rec)) { - return; - } - - // copy record to trail area - copyRecord(rec, getBufferSize() + rec, false); - setRecordTrailed(rec, true); - } - COM: <s> trails information about the record </s> - diff --git a/funcom_test/298783.txt b/funcom_test/298783.txt deleted file mode 100644 index bd004949d59ea482eafae7cf69f0f94144cbdb89..0000000000000000000000000000000000000000 --- a/funcom_test/298783.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void hideRelationshipsOfType(Class partClass) { - if (RelationshipPart.class.isAssignableFrom(partClass)) { - for (RelationshipModel rModel : getRelationshipsOfType(partClass)) { - rModel.setVisible(false); - rModel.getSourceModel().addImplicitRelationship(rModel); - rModel.getTargetModel().addImplicitRelationship(rModel); - } - } else { - GreenException.illegalOperation("Wrong type of object specified"); - } - } - COM: <s> hides all relationships of the given type </s> - diff --git a/funcom_test/298785.txt b/funcom_test/298785.txt deleted file mode 100644 index 0e9aefcc58a4e0268224683e9ac7c3475488ef05..0000000000000000000000000000000000000000 --- a/funcom_test/298785.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void showRelationshipsOfType(Class partClass) { - if (RelationshipPart.class.isAssignableFrom(partClass)) { - for (RelationshipModel rModel : getRelationshipsOfType(partClass)) { - rModel.setVisible(true); - rModel.getSourceModel().removeImplicitRelationship(rModel); - rModel.getTargetModel().removeImplicitRelationship(rModel); - } - } else { - GreenException.illegalOperation("Wrong type of object specified"); - } - } - COM: <s> shows all relationships of the given type </s> - diff --git a/funcom_test/298811.txt b/funcom_test/298811.txt deleted file mode 100644 index 29d53145f8ec50cb93b7ba12888428ff24440786..0000000000000000000000000000000000000000 --- a/funcom_test/298811.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void updateMenuDisplay(IMenuManager menu) { - AbstractModel selectedModel = _context.getModel(); - - for (IContributionItem item : menu.getItems()) { - if (item instanceof IMenuManager) { - updateMenuDisplay((IMenuManager) item); - } else if (item instanceof ActionContributionItem) { - ActionContributionItem aItem = (ActionContributionItem) item; - ContextAction action = (ContextAction) aItem.getAction(); - aItem.setVisible(action.isVisible(selectedModel)); - } - } - } - COM: <s> updates the context menus contents hiding inappropriate contents </s> - diff --git a/funcom_test/299085.txt b/funcom_test/299085.txt deleted file mode 100644 index a14d6b9c5e9cb31d813d39922f0b24cf57dbefc2..0000000000000000000000000000000000000000 --- a/funcom_test/299085.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean hasDupes(ArrayList<String> list) { - for(int a = 0; a < list.size(); a++) { - for(int b = 0; b < list.size(); b++) { - if(list.get(a).equals(list.get(b)) && a != b) { - return true; - } - } - } - return false; - } - COM: <s> checks for duplicates in an array list </s> - diff --git a/funcom_test/299113.txt b/funcom_test/299113.txt deleted file mode 100644 index 93b5e353b3673c071e7c7d460c9e43bd2090c3ee..0000000000000000000000000000000000000000 --- a/funcom_test/299113.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void toXML(XMLConverter converter) { - converter.pushHeader(XML_NOTE); - converter.writeKey(XML_NOTE_TEXT, toHTML()); - converter.writeKey(XML_NOTE_HEIGHT, "" + getSize().height); - converter.writeKey(XML_NOTE_WIDTH, "" + getSize().width); - converter.writeKey(XML_NOTE_X, "" + getLocation().x); - converter.writeKey(XML_NOTE_Y, "" + getLocation().y); - - super.toXML(converter); - converter.popHeader(); - } - COM: <s> writes the xml stored for this note to the converter </s> - diff --git a/funcom_test/299200.txt b/funcom_test/299200.txt deleted file mode 100644 index 568ce4d15109bc25061cd9413ff29fd27a0153a4..0000000000000000000000000000000000000000 --- a/funcom_test/299200.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void appendQuickFixActionsToMenu(MenuManager menu) { - List<QuickFix> fixes = getQuickFixes(); - - if (fixes.size() > 0) { - MenuManager qf = new MenuManager("Quick Fixes", DESC_OBJS_QUICK_FIX, null); - qf.setVisible(true); - menu.add(new Separator()); - menu.add(qf); - - for (QuickFix fix : fixes) { - qf.add(new QuickFixAction(fix)); - } - } - } - COM: <s> appends quick fix actions for this element to the given menu </s> - diff --git a/funcom_test/299265.txt b/funcom_test/299265.txt deleted file mode 100644 index f6b1a6bf4d73cd29322bd4249cb9be4cb3d6b3aa..0000000000000000000000000000000000000000 --- a/funcom_test/299265.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Image getImage(Object element) { - // if an image was already created, free it up (so as to not waste mem) - MemberPart part = (MemberPart) element; - MemberModel model = (MemberModel) part.getModel(); - Image image = _mapping.get(model.getMember().getHandleIdentifier()); - - if (image != null) { - image.dispose(); - } - - - image = model.getIcon(); - _mapping.put(model.getMember().getHandleIdentifier(), image); - return image; - } - COM: <s> returns an image for the given element </s> - diff --git a/funcom_test/29937799.txt b/funcom_test/29937799.txt deleted file mode 100644 index 3d6b36e0ffe80e356bac4f4d3090687dcabc1982..0000000000000000000000000000000000000000 --- a/funcom_test/29937799.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private int core_operation(int q, int a, int b, int x, int s, int t) { - return addInteger_wrappingAt32(bitwiseRotate32BitNumberLeft( - addInteger_wrappingAt32(addInteger_wrappingAt32(a, q), - addInteger_wrappingAt32(x, t)), s), b); - } - COM: <s> core operation of md5 message digest algorithm </s> - diff --git a/funcom_test/299406.txt b/funcom_test/299406.txt deleted file mode 100644 index 1cd1446aeb04d0ea0f8a6c0825db8c82ecb84887..0000000000000000000000000000000000000000 --- a/funcom_test/299406.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void updateFontHelper() { - try { - // get rid of the old font - Font font = getNameLabel().getFont(); - font.dispose(); - - boolean italic = model().isAbstract() || model().isInterface(); - - // create the new font - getNameLabel().setFont(PlugIn.getFontPreference(P_FONT, italic)); - } catch (JavaModelException e) { - e.printStackTrace(); - } - } - COM: <s> disposes the current font and creates a new one thats up to date </s> - diff --git a/funcom_test/299475.txt b/funcom_test/299475.txt deleted file mode 100644 index d361f9ec460102235744e8bb554a67de569a0c23..0000000000000000000000000000000000000000 --- a/funcom_test/299475.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: protected void updateIcon(IIconHolder figure){ - final Image image = model().getIcon(); - final Image oldImage = figure.getIcon(); - final IIconHolder figure1 = figure; - - if (Display.getCurrent() !=null){ - figure.setIcon(image); - if (oldImage !=null){ - oldImage.dispose(); - } - } else { - Display.getDefault().asyncExec(new Runnable(){ - /** - * @see java.lang.Runnable#run() - */ - public void run() { - figure1.setIcon(image); - if (oldImage != null){ - oldImage.dispose(); - } - } - }); - } - } - COM: <s> called to update the icon </s> - diff --git a/funcom_test/299762.txt b/funcom_test/299762.txt deleted file mode 100644 index af406605dbccd889fb0d04e61e446aef7d8885cf..0000000000000000000000000000000000000000 --- a/funcom_test/299762.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private String recursiveToString(int level) { - StringBuffer buf = new StringBuffer(); - for (int x = 0; x < level; x++) { - buf.append(" "); - } - buf.append(_name); - - if (!_attributes.toString().equals("{}")) { - buf.append(" " + _attributes); - } - - for (XMLNode child : _children) { - buf.append(child.recursiveToString(level + 1)); - } - - return buf.toString(); - } - COM: <s> called by to string prints the entire tree structure of the node </s> - diff --git a/funcom_test/299828.txt b/funcom_test/299828.txt deleted file mode 100644 index 2a852f1f6809f8472a8d02f6ce464b3d49bb070b..0000000000000000000000000000000000000000 --- a/funcom_test/299828.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean setRelationship(RelationshipModel rModel) { - _sourceType = rModel.getSourceType(); - _declaredTargetType = rModel.getTargetType(); - - if (needChooseTypeDialog()) { - ChooseTypeWizard wizard = new ChooseTypeWizard(getTargetType()); - WizardDialog dialog = new WizardDialog(PlugIn.getDefaultShell(), - wizard); - dialog.setMinimumPageSize(300, 500); - dialog.create(); - int res = dialog.open(); - - if (res == WizardDialog.CANCEL) { - return false; - } - - setActualTargetType(wizard.getSelectedType()); - } - - return true; - } - COM: <s> sets the model used for this generator </s> - diff --git a/funcom_test/299851.txt b/funcom_test/299851.txt deleted file mode 100644 index fa651d239d06407c27da927ed1ea040a7535c391..0000000000000000000000000000000000000000 --- a/funcom_test/299851.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public RelationshipModel getRelationshipModel(IType source, IType target, String name) { - Map<IType, Map<String, RelationshipModel>> targetMap = - _models.get(source); - if (targetMap == null) { - return null; - } - - // find the class map - Map<String, RelationshipModel> classMap = targetMap.get(target); - if (classMap == null) { - return null; - } - - // find the model - return classMap.get(name); - } - COM: <s> gets the relationship model representing the given relationship </s> - diff --git a/funcom_test/29986973.txt b/funcom_test/29986973.txt deleted file mode 100644 index d0084d34b3f3eab67fc53b0d16db2d313f0e3b32..0000000000000000000000000000000000000000 --- a/funcom_test/29986973.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public ImageData getImageData(String imageKey) { - if (imageKey.equals("Lock")) { - return getLockImageData(); - } - if (imageKey.equals("Error")) { - return getErrorImageData(); - } - if (imageKey.equals("Success")) { - return getSuccessImageData(); - } - if (imageKey.equals("Run")) { - return getRunningImageData(); - } - if (imageKey.equals("LockRunInBatch")) { - return getLockRunInBatchImageData(); - } - - return null; - } - COM: <s> get the image data depending on the key </s> - diff --git a/funcom_test/299870.txt b/funcom_test/299870.txt deleted file mode 100644 index e50b5f0d5ca67e66f29742921d7cb34b2d5b47a9..0000000000000000000000000000000000000000 --- a/funcom_test/299870.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addNode(GraphVertex vertex){ - int index = graph.vertices.indexOf(vertex); - nodes.add(new Integer(index)); - vertex.color = color; - changed = true; - - Cluster clt = writer.getCluster(indexToCltName[index]); - if(clt != null){ - clt.removeNodeByIndex(index); - } - indexToCltName[index] = name; - } - COM: <s> add the given node to the cluster </s> - diff --git a/funcom_test/299887.txt b/funcom_test/299887.txt deleted file mode 100644 index 68ab39dfa1e527c89b25b37d1b6041e138d5da59..0000000000000000000000000000000000000000 --- a/funcom_test/299887.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: protected Assignment createAssignment(String name, Expression value) { - Assignment assignment = getAST().newAssignment(); - Expression lhs; - - SimpleName field = getAST().newSimpleName(name); - - if (getParameterDeclarations().contains(name)) { - FieldAccess exp = getAST().newFieldAccess(); - ThisExpression thisExp = getAST().newThisExpression(); - exp.setExpression(thisExp); - exp.setName(field); - lhs = exp; - } else { - lhs = field; - } - - assignment.setLeftHandSide(lhs); - assignment.setRightHandSide(value); - - return assignment; - } - COM: <s> creates a new field assignment and adds a field declaration if needed </s> - diff --git a/funcom_test/29988724.txt b/funcom_test/29988724.txt deleted file mode 100644 index ef3e4b60a83d7098062ff822880f23c420b4ec80..0000000000000000000000000000000000000000 --- a/funcom_test/29988724.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void createPartControl(Composite parent) { - - PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, SQLExplorerPlugin.PLUGIN_ID + ".SQLResultsView"); - - _parent = parent; - - // set default message - if (_results == null || _results.length == 0) { - setDefaultMessage(); - } - - } - COM: <s> initialize sql result view </s> - diff --git a/funcom_test/29988731.txt b/funcom_test/29988731.txt deleted file mode 100644 index 7274eee1edc9ac0116a27d1e0bb12fc510dade02..0000000000000000000000000000000000000000 --- a/funcom_test/29988731.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setDefaultMessage() { - - clearParent(); - - // add message - String message = Messages.getString("SQLResultsView.NoResults"); - Label label = new Label(_parent, SWT.FILL); - label.setText(message); - label.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); - - _parent.layout(); - _parent.redraw(); - } - COM: <s> set a default message this method is called when no results are </s> - diff --git a/funcom_test/29989220.txt b/funcom_test/29989220.txt deleted file mode 100644 index 940d1e1cbe7b00ee144cd6355fdee6d0a5021b83..0000000000000000000000000000000000000000 --- a/funcom_test/29989220.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public Comparator getComparator() { - - return new Comparator() { - - public int compare(Object arg0, Object arg1) { - - if (arg0 == null || arg1 == null) { - return 0; - } - String name0 = ((INode) arg0).getName(); - String name1 = ((INode) arg1).getName(); - - if (name0 == null || name1 == null) { - return 0; - } - - return name0.compareTo(name1); - } - - }; - } - COM: <s> override this method to implement custom sorting of child nodes </s> - diff --git a/funcom_test/29989243.txt b/funcom_test/29989243.txt deleted file mode 100644 index 0f351c3d521545d8f2a0715c7505104358f984ce..0000000000000000000000000000000000000000 --- a/funcom_test/29989243.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void run() { - - SQLAlias alias = (SQLAlias) _selectedNodes[0].getSession().getAlias(); - alias.setNameFilterExpression(""); - alias.setFolderFilterExpression(""); - alias.setSchemaFilterExpression(""); - - _view.refreshSessionTrees(_selectedNodes[0].getSession().toString()); - } - COM: <s> refresh selected node and descendants </s> - diff --git a/funcom_test/29989288.txt b/funcom_test/29989288.txt deleted file mode 100644 index b64588fb5cd349084ac1c751c6746b41e8e8d684..0000000000000000000000000000000000000000 --- a/funcom_test/29989288.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public ISQLAlias getAliasByName(String name) { - - if (sl != null) { - - Iterator it = sl.iterator(); - while (it.hasNext()) { - - ISQLAlias alias = (ISQLAlias) it.next(); - if (alias != null && alias.toString().equals(name)) { - return alias; - } - } - } - - return null; - } - COM: <s> find a specific alias by name </s> - diff --git a/funcom_test/29989533.txt b/funcom_test/29989533.txt deleted file mode 100644 index 29b31ac412e0a335fa314fc7b3246a9d0dc65601..0000000000000000000000000000000000000000 --- a/funcom_test/29989533.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void cleanUp() { - - SQLConnection[] connections = _login.getConnections(); - for (int i = 0; i < connections.length; i++) { - if (connections[i] != null) { - try { - connections[i].close(); - } catch (Exception e) { - SQLExplorerPlugin.error("Couldn't close connection.", e); - } - } - } - - } - COM: <s> close any open connections </s> - diff --git a/funcom_test/29989584.txt b/funcom_test/29989584.txt deleted file mode 100644 index 762841aa5037551d10f67365ca6985c34418cfc9..0000000000000000000000000000000000000000 --- a/funcom_test/29989584.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean isAvailable() { - - StructuredSelection sel = (StructuredSelection) _treeViewer.getSelection(); - - if (sel.size() == 0) { - return false; - } - - Iterator it = sel.iterator(); - - while (it.hasNext()) { - - Object o = it.next(); - if (o instanceof ISQLAlias) { - return true; - } - - } - - return false; - } - COM: <s> only show action when there is at least 1 alias selected </s> - diff --git a/funcom_test/29989614.txt b/funcom_test/29989614.txt deleted file mode 100644 index b06e0c75ff8a14211362b709a01378723799d9f0..0000000000000000000000000000000000000000 --- a/funcom_test/29989614.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public boolean isAvailable() { - - StructuredSelection sel = (StructuredSelection) _treeViewer.getSelection(); - - Iterator it = sel.iterator(); - while (it.hasNext()) { - - Object o = it.next(); - - if (o instanceof SessionTreeNode) { - SessionTreeNode node = (SessionTreeNode) o; - if (!node.isAutoCommitMode()) { - return true; - } - } - - } - - return false; - } - COM: <s> action is available when there is at least one session without autocommit </s> - diff --git a/funcom_test/29989675.txt b/funcom_test/29989675.txt deleted file mode 100644 index d6ca58e9ce71419c072aea6124155f67e4968f32..0000000000000000000000000000000000000000 --- a/funcom_test/29989675.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void postWindowOpen() { - - super.postWindowOpen(); - IWorkbenchWindowConfigurer windowConfigurer = getWindowConfigurer(); - windowConfigurer.setTitle(Messages.getString("Application.SQLExplorer.WindowTitle")); - windowConfigurer.setShowCoolBar(false); - windowConfigurer.setShowPerspectiveBar(false); - windowConfigurer.setShowProgressIndicator(true); - } - COM: <s> set properties after application window is created </s> - diff --git a/funcom_test/29989720.txt b/funcom_test/29989720.txt deleted file mode 100644 index e0117e56e89724340e6081d6c95b90a61e78079b..0000000000000000000000000000000000000000 --- a/funcom_test/29989720.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void intialize() { - - _formattedTime = _dateFormatter.format(new Date(_time)); - _searchableString = (_rawSQLString + " " + _sessionName + " " + _formattedTime).toLowerCase(); - _singleLineText = TextUtil.removeLineBreaks(_rawSQLString); - } - COM: <s> initialize our search string immediately this allows for very fast </s> - diff --git a/funcom_test/29990060.txt b/funcom_test/29990060.txt deleted file mode 100644 index 46a6b01f6b78fc011863f601ad067ee72ee53bcb..0000000000000000000000000000000000000000 --- a/funcom_test/29990060.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setupDefaultViewList() { - defaultViewList = new ArrayList(7); - defaultViewList.add(SQLEXPLORER_CONNECTIONS); - defaultViewList.add(SQLEXPLORER_DBSTRUCTURE); - defaultViewList.add(SQLEXPLORER_DBDETAIL); - defaultViewList.add(SQLEXPLORER_SQLRESULT); - defaultViewList.add(SQLEXPLORER_SQLHISTORY); - } - COM: <s> sets up the list of views the user will should see by default </s> - diff --git a/funcom_test/299906.txt b/funcom_test/299906.txt deleted file mode 100644 index 0c645e9f30fac55050f30ea9b35f645ef0a1a6bd..0000000000000000000000000000000000000000 --- a/funcom_test/299906.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private float getDist(float[] pos1, float[] pos2) { - float xDiff = pos1[0] - pos2[0]; - float yDiff = pos1[1] - pos2[1]; - float zDiff = pos1[2] - pos2[2]; - return (float)Math.sqrt(xDiff*xDiff + yDiff*yDiff + zDiff*zDiff); - } - COM: <s> returns the euclidean distance between the specified positions </s> - diff --git a/funcom_test/299909.txt b/funcom_test/299909.txt deleted file mode 100644 index c1d20b08fd35c7d3c88a2dccb227fd146a215d4b..0000000000000000000000000000000000000000 --- a/funcom_test/299909.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private float getDistToBaryCenter(int i) { - float xDiff = pos[i][0] - baryCenter[0]; - float yDiff = pos[i][1] - baryCenter[1]; - float zDiff = pos[i][2] - baryCenter[2]; - return (float)Math.sqrt(xDiff*xDiff + yDiff*yDiff + zDiff*zDiff); - } - COM: <s> returns the euclidean distance between node i and the bary center </s> - diff --git a/funcom_test/29995280.txt b/funcom_test/29995280.txt deleted file mode 100644 index fa9bde1fef3b4b5127d0de84fbfdd7eb8cc74edb..0000000000000000000000000000000000000000 --- a/funcom_test/29995280.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void execute(Event event) { - if (event instanceof SimpleEvent) { - SimpleEvent e = (SimpleEvent) event; - SimpleObject so = AbstractSimKernel.getInstance().elements().get( - SimpleObject.class, e.getObject()); - String content = so.readContent(); - if (Math.random() < 0.5) { - so.emptyContent(); - } else { - so.fillContent(content + contentToBeAdded); - } - contentToBeAdded = content; - } - } - COM: <s> handle an event by this model </s> - diff --git a/funcom_test/29995305.txt b/funcom_test/29995305.txt deleted file mode 100644 index 4b18cdce906a2aa25b85b4bdb432bb868a561514..0000000000000000000000000000000000000000 --- a/funcom_test/29995305.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateMove() { - SpaceVec[] track = getTrack(); - - if (track.length > 1) { - SpaceVec[] t = new SpaceVec[track.length - 1]; - System.arraycopy(track, 1, t, 0, track.length - 1); - setTrack(t); - setMove(new LinearMove(track[0], currentTime(), track[1], - getSpeed())); - } else if (track.length == 1) { - setTrack(new SpaceVec[0]); - setMove(new LinearMove(track[0])); - } - } - COM: <s> update the actual movement </s> - diff --git a/funcom_test/29995326.txt b/funcom_test/29995326.txt deleted file mode 100644 index 3cd21901440f5b8dc46638e439b5e6936fbd32a6..0000000000000000000000000000000000000000 --- a/funcom_test/29995326.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void execute(final Event event) { - LandEvent ev = (LandEvent) event; - System.out.println(ev); - final Elements elements = AbstractSimKernel.getInstance() - .elements(); - Airport land = elements.get(Airport.class, ev.getAirport()); - Airplane plane = elements.get(Airplane.class, ev.getAirplane()); - if (plane.isFlying()) { - plane.land(land); - land.landAirplane(plane); - } else { - throw new IllegalStateException("Plane " + plane - + " is not flying!"); - } - } - COM: <s> handle the event by this event listener </s> - diff --git a/funcom_test/29995477.txt b/funcom_test/29995477.txt deleted file mode 100644 index f7289be2f0579b2ba5956fbe09b23399a776fa0d..0000000000000000000000000000000000000000 --- a/funcom_test/29995477.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private Time simulate() throws SimulationException { - Time current = startSimulation(); - try { - if (endTime.isLT(current)) { - throw new SimulationException("Requested time " + endTime - + " is smaller than current time " + current + "!"); - } - while (isRunning()) { - if (current.isGE(endTime)) { - break; // The requested end time has been reached - } - current = continueSimulation(current, endTime); - Thread.yield(); - } - } finally { - finishSimulation(); - } - return currentTime(); - } - COM: <s> increase the simulation time and execute all events with an earlier time </s> - diff --git a/funcom_test/29995537.txt b/funcom_test/29995537.txt deleted file mode 100644 index 89ecb542503ca604a1eef537700e31e2208f92b6..0000000000000000000000000000000000000000 --- a/funcom_test/29995537.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void analyze() throws TreeException { - String token = nextToken(); - - if (token.equals("(")) { - analyze(); - } else if (token.equals(")")) { - reduceLevel(); - } else if (token.length() == 0) { - return; - } else { - String next = nextToken(); - - if (next.equals("(")) { - node(CHILD, token); - } else if (next.equals(")")) { - collectValue(token); - reduceLevel(); - } - } - } - COM: <s> analyze omt string </s> - diff --git a/funcom_test/29995538.txt b/funcom_test/29995538.txt deleted file mode 100644 index 765209c6041a624217efa7f1c5a33bbea3f1140a..0000000000000000000000000000000000000000 --- a/funcom_test/29995538.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void collectValue(String token) throws TreeException { - int blank = token.indexOf(' '); - - if ((blank < 1) || (blank > (token.length() - 2))) { - throw new TreeException("Could not find a blank in '" + token - + "' !"); - } - - String key = token.substring(0, blank); - String value = token.substring(blank).trim(); - node(CHILD, key); - node(CHILD, value); - reduceLevel(); - } - COM: <s> analyze a key value pair </s> - diff --git a/funcom_test/29995560.txt b/funcom_test/29995560.txt deleted file mode 100644 index 02add2282023a39d32f51d1ac12889b5bae8c813..0000000000000000000000000000000000000000 --- a/funcom_test/29995560.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setKeys(int part, SimValue key) { - if (this.keys != null) { - if (part >= this.keys.length) { - SimValue[] keys = new SimValue[part + 1]; - System.arraycopy(this.keys, 0, keys, 0, this.keys.length); - this.keys = keys; - } - this.keys[part] = key; - } - } - COM: <s> set key of a given index </s> - diff --git a/funcom_test/29995601.txt b/funcom_test/29995601.txt deleted file mode 100644 index 631cb551dbad23e1d689d0375ebd47be1d7ea510..0000000000000000000000000000000000000000 --- a/funcom_test/29995601.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Coordinate calculate(double angle, double length) { - Latitude lt = new Latitude(Arc - .asin( - (lattitude.sin() * Math.cos(length)) - + (lattitude.cos() * Math.sin(length) * Math - .cos(angle))).length()); - if (lt.cos() == 0) { - return new Coordinate(lt, new Longitude(Longitude.GREENWICH)); - } - Arc delta = Arc.asin((Math.sin(length) * Math.sin(angle)) - / lattitude.cos()); - Longitude lg = new Longitude(longitude.add(delta).length()); - return new Coordinate(lt, lg); - } - COM: <s> calculate new coordinate moving a path from this to that coordinate </s> - diff --git a/funcom_test/29995639.txt b/funcom_test/29995639.txt deleted file mode 100644 index 2a88bf4f99cf31de816ddd19c983a6a061d5337a..0000000000000000000000000000000000000000 --- a/funcom_test/29995639.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Space readMinimumDistance(SpaceVec r) { - if (r.equals(readStart())) { - return Space.ORIGIN; - } - - SpaceVec delta = r.minus(readSpaceVec(readStartTime())); - Space alpha = delta.abs().times(delta.direction().dot(readDirection())); - double d = delta.abs().amount(Space.M); - double a = alpha.amount(Space.M); - - return Space.M.times(Math.sqrt((d * d) - (a * a))); - } - COM: <s> get the minimum distance from a given vector of a location in space </s> - diff --git a/funcom_test/29995641.txt b/funcom_test/29995641.txt deleted file mode 100644 index d4d60f016076784d93caaa7ce7fbb2f7b6afed58..0000000000000000000000000000000000000000 --- a/funcom_test/29995641.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public SpaceVec times(Time time) { - double t = time.amount(Time.S); - - return new SpaceVec(Space.M.times(vector[0].amount(Speed.M_S) * t), - Space.M.times(vector[1].amount(Speed.M_S) * t), Space.M - .times(vector[2].amount(Speed.M_S) * t)); - } - COM: <s> calculate the space vector distance which is achieved by this speed </s> - diff --git a/funcom_test/29995665.txt b/funcom_test/29995665.txt deleted file mode 100644 index 2890fbaa998c11df939709513342d2e37c0e6b16..0000000000000000000000000000000000000000 --- a/funcom_test/29995665.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Direction direction() { - if (equals(ORIGIN)) { - throw new IllegalArgumentException("No direction for " + toString()); - } - if (vector[2].equals(Space.ORIGIN)) { - return new Direction(vector[0].amount(Space.M), vector[1] - .amount(Space.M)); - } else { - return new Direction(vector[0].amount(Space.M), vector[1] - .amount(Space.M), vector[2].amount(Space.M)); - } - } - COM: <s> retrieve this space vectors unit direction to origin of space </s> - diff --git a/funcom_test/29995754.txt b/funcom_test/29995754.txt deleted file mode 100644 index 6ef5a0306c721c88cc02ff79c902dda0082f9fe8..0000000000000000000000000000000000000000 --- a/funcom_test/29995754.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int compareTo(Event event, Event e) { - int t = event.getTime().compareTo(e.getTime()); - if (t == 0) { - if (event.getPriority() < e.getPriority()) { - return 1; - } else if (event.getPriority() > e.getPriority()) { - return -1; - } else { - return event.getId().compareTo(e.getId()); - } - } else { - return t; - } - } - COM: <s> compares that object with the specified object for order </s> - diff --git a/funcom_test/299958.txt b/funcom_test/299958.txt deleted file mode 100644 index 01d5ef30ebb7b338442eabd1291402ef736eda43..0000000000000000000000000000000000000000 --- a/funcom_test/299958.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void refreshList(){ - int nbClt = parent.getNbOfCluster(); - lst.removeAll(); - for(int i = 1; i < nbClt; ++i){// begin at one to ignore default - // cluster - Cluster clt = parent.getCluster(i); - lst.add(clt.getName(), 0); - } - } - COM: <s> refresh the list that contains the clusters warning the order of the </s> - diff --git a/funcom_test/29995909.txt b/funcom_test/29995909.txt deleted file mode 100644 index fae97fe9da1790ed3cfa713d23f3acb40feae42e..0000000000000000000000000000000000000000 --- a/funcom_test/29995909.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void createSpeedTable(Simulation sim) { - System.out.println("=== Create Tables ========================"); - ConditionTree table = new ConditionTree("airtraffic.speed"); - table.addLine(new Object[] { new Float(700) }); - table.addLine(new String[] { "DA-4567" }, - new Float[] { new Float(800) }); - System.out.println("\n" + table); - sim.tables().add(table); - } - COM: <s> create condition table for the speed of airplanes </s> - diff --git a/funcom_test/29995915.txt b/funcom_test/29995915.txt deleted file mode 100644 index 769cba9da50c646f9b19bddf0013221698c6e5a4..0000000000000000000000000000000000000000 --- a/funcom_test/29995915.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void checkConversion(LinearMove l, String s) { - LinearMove a = l; - LinearMove b = new LinearMove(s); - System.out.println("new LinearMove(" + a + ")=" + b); - assertEquals("Conversion", a, b); - assertEquals("Conversion", a.toString(), b.toString()); - } - COM: <s> checking of conversion </s> - diff --git a/funcom_test/29995917.txt b/funcom_test/29995917.txt deleted file mode 100644 index 70fb3b3c6c1bd394b8ee04194471ab29b3a4eea3..0000000000000000000000000000000000000000 --- a/funcom_test/29995917.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testLocate() { - LinearMove a = new LinearMove(ORIGIN, Time.ZERO, TARGET, TIME); - SpaceVec r = a.readSpaceVec(TIME); - System.out.println("r=TARGET: " + r + "=" + TARGET); - assertEquals("Move", r, TARGET); - assertTrue("Write and read into XML", r.equals(writeAndReadXML(r))); - } - COM: <s> test calculation of actual location </s> - diff --git a/funcom_test/29995918.txt b/funcom_test/29995918.txt deleted file mode 100644 index 7c26500e1c0f09408c025049bd0abab55e5e2fad..0000000000000000000000000000000000000000 --- a/funcom_test/29995918.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testUpdate() { - LinearMove a = new LinearMove(ORIGIN, Time.ZERO, TARGET, TIME); - Time between = TIME.times(0.5); - LinearMove b = new LinearMove(a.readSpaceVec(between), between, a - .readSpaceVec(TIME), TIME); - System.out.println("a=b: " + a + "=" + b); - assertEquals("Move", a.readSpaceVec(TIME), b.readSpaceVec(TIME)); - } - COM: <s> test calculation of location update </s> - diff --git a/funcom_test/29995922.txt b/funcom_test/29995922.txt deleted file mode 100644 index 2e2eb3924b41923bad0685cfb192454445cbe08c..0000000000000000000000000000000000000000 --- a/funcom_test/29995922.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testConvert() { - SpeedVec a = new SpeedVec(base.times(2.1), base.times(-3.4), base); - SpeedVec b = new SpeedVec(a.toString()); - System.out.println("new SpeedVec(" + a + ")=" + b); - assertEquals("Equals", a, b); - } - COM: <s> test conversion between strings and space vectors </s> - diff --git a/funcom_test/29995929.txt b/funcom_test/29995929.txt deleted file mode 100644 index 9d524cc4e1433acab6a062bc4e261b2fe96cffc0..0000000000000000000000000000000000000000 --- a/funcom_test/29995929.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testMultiplying() { - double f = 1.23456789; - Arc s = base.times(f); - assertEquals("Multiplication of Arc by a factor.", f, s.amount(base), - 0.0001); - System.out.println(f + "*" + base + "=" + s); - s = base.add(Arc.CIRCLE); - assertEquals("Add 2*pi.", s.length(), base.length(), 0.0001); - System.out.println("2*pi+" + base + "=" + s); - } - COM: <s> test multiplication of times with a factor </s> - diff --git a/funcom_test/29995931.txt b/funcom_test/29995931.txt deleted file mode 100644 index 0114f9c8f6f54c0f3bfaaaa63cccf73f7b22db2c..0000000000000000000000000000000000000000 --- a/funcom_test/29995931.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testCompare() { - double f = 0.123456789; - Arc s1 = base.times(f); - Arc s2 = base.times(2.0 * f); - Arc s3 = base.times(f); - assertTrue(s1.isEQ(s3)); - assertTrue(s1.isGE(s3)); - assertTrue(s1.isLE(s3)); - assertFalse(s1.isEQ(s2)); - assertTrue(s1.isGE(s2)); - assertTrue(s2.isLE(s1)); - assertFalse(s1.isNE(s3)); - assertFalse(s2.isGT(s1)); - assertFalse(s2.isGE(s1)); - assertFalse(s1.isLT(s2)); - assertFalse(s1.isLE(s2)); - } - COM: <s> test comparing arcs </s> - diff --git a/funcom_test/29995949.txt b/funcom_test/29995949.txt deleted file mode 100644 index de77663e47f02d63a8d66df43e87f32597903645..0000000000000000000000000000000000000000 --- a/funcom_test/29995949.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testCompare() { - double f = 123456.789; - Speed s1 = base.times(f); - Speed s2 = base.times(2.0 * f); - Speed s3 = base.times(f); - assertTrue(s1.isEQ(s3)); - assertTrue(s1.isGE(s3)); - assertTrue(s1.isLE(s3)); - assertFalse(s1.isEQ(s2)); - assertFalse(s1.isGE(s2)); - assertFalse(s2.isLE(s1)); - assertFalse(s1.isNE(s3)); - assertTrue(s2.isGT(s1)); - assertTrue(s2.isGE(s1)); - assertTrue(s1.isLT(s2)); - assertTrue(s1.isLE(s2)); - } - COM: <s> test comparing speeds </s> - diff --git a/funcom_test/29995959.txt b/funcom_test/29995959.txt deleted file mode 100644 index bb68eab238ace8c6bd6dabf158b57673e9f218bd..0000000000000000000000000000000000000000 --- a/funcom_test/29995959.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testCompare() { - double f = 123456.789; - Space s1 = base.times(f); - Space s2 = base.times(2.0 * f); - Space s3 = base.times(f); - assertTrue(s1.isEQ(s3)); - assertTrue(s1.isGE(s3)); - assertTrue(s1.isLE(s3)); - assertFalse(s1.isEQ(s2)); - assertFalse(s1.isGE(s2)); - assertFalse(s2.isLE(s1)); - assertFalse(s1.isNE(s3)); - assertTrue(s2.isGT(s1)); - assertTrue(s2.isGE(s1)); - assertTrue(s1.isLT(s2)); - assertTrue(s1.isLE(s2)); - } - COM: <s> test comparing spaces </s> - diff --git a/funcom_test/29995970.txt b/funcom_test/29995970.txt deleted file mode 100644 index f7a90ec4c9bd83c36f79f98e8237b62516dfbec2..0000000000000000000000000000000000000000 --- a/funcom_test/29995970.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testCompare() { - double f = 123456.789; - Time t1 = base.times(f); - Time t2 = base.times(2.0 * f); - Time t3 = base.times(f); - assertTrue(t1.isEQ(t3)); - assertTrue(t1.isGE(t3)); - assertTrue(t1.isLE(t3)); - assertFalse(t1.isEQ(t2)); - assertFalse(t1.isGE(t2)); - assertFalse(t2.isLE(t1)); - assertFalse(t1.isNE(t3)); - assertTrue(t2.isGT(t1)); - assertTrue(t2.isGE(t1)); - assertTrue(t1.isLT(t2)); - assertTrue(t1.isLE(t2)); - } - COM: <s> test comparing times </s> - diff --git a/funcom_test/299982.txt b/funcom_test/299982.txt deleted file mode 100644 index 5dc62c344b53715c0b1165e509d98762ba029917..0000000000000000000000000000000000000000 --- a/funcom_test/299982.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void enableMinimizerOptions(boolean b){ - dim.setEnabled(b); - iter.setEnabled(b); - initLayout.setEnabled(b); - attrExp.setEnabled(b); - repuExp.setEnabled(b); - grav.setEnabled(b); - noWeight.setEnabled(b); - vertRepu.setEnabled(b); - loadInitLayout.setEnabled(b); - } - COM: <s> en disable the part concerning the minimizer </s> - diff --git a/funcom_test/299985.txt b/funcom_test/299985.txt deleted file mode 100644 index bf7eb82da294d5b0644471d88ae368027e84cf17..0000000000000000000000000000000000000000 --- a/funcom_test/299985.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean accept(IMember element) throws JavaModelException { - // see if the element type applies - if ((_type & element.getElementType()) != _type) { - return false; - } - - // see if the flags match - if ((_flags & element.getFlags()) != _flags) { - return false; - } - - // see if the text matches - if (!_pattern.matcher(element.getElementName()).matches()) { - return false; - } - - return false; - } - COM: <s> compares the given member to the filter to see if it applies </s> - diff --git a/funcom_test/299988.txt b/funcom_test/299988.txt deleted file mode 100644 index ec2110e99fb2b66c8932edac693c52bdc71d9aa9..0000000000000000000000000000000000000000 --- a/funcom_test/299988.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void enableDISPOptions(boolean b){ - hideSource.setEnabled(b); - blackCircle.setEnabled(b); - anim.setEnabled(b); - minVert.setEnabled(b); - fontSize.setEnabled(b); - scale.setEnabled(!b); - annot.setEnabled(b); - backColor.setEnabled(b); - } - COM: <s> en disable the part concerning the display </s> - diff --git a/funcom_test/299991.txt b/funcom_test/299991.txt deleted file mode 100644 index 8345a6533646da0fa287bd7aa8dd3f90a18035c3..0000000000000000000000000000000000000000 --- a/funcom_test/299991.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void enableSVGOptions(boolean b){ - hideSource.setEnabled(b); - blackCircle.setEnabled(b); - anim.setEnabled(!b); - minVert.setEnabled(b); - fontSize.setEnabled(b); - scale.setEnabled(b); - annot.setEnabled(b); - backColor.setEnabled(b); - } - COM: <s> en disable the part concerning svg and vrml format </s> - diff --git a/funcom_test/30008650.txt b/funcom_test/30008650.txt deleted file mode 100644 index 1bcc25e463ff45f2bad3f90e182d223f2bf03fe1..0000000000000000000000000000000000000000 --- a/funcom_test/30008650.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void refeed(final XMLDocumentHandler tagBalancer) { - for (final Iterator iter = entries.iterator(); iter.hasNext();) { - final LostText.Entry entry = (LostText.Entry) iter.next(); - tagBalancer.characters(entry.text_, entry.augs_); - } - // not needed anymore once it has been used -> clear to free memory - entries.clear(); - } - COM: <s> pushes the characters into the </s> - diff --git a/funcom_test/30008905.txt b/funcom_test/30008905.txt deleted file mode 100644 index 76646bdc4864c98795e41d19b22a7ded5e669cfd..0000000000000000000000000000000000000000 --- a/funcom_test/30008905.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testChangeEncodingWithReader() throws Exception { - String string = "<?xml version='1.0' encoding='UTF-8'?><html><head><title>foo</title></head>" - + "</body></html>"; - - XMLInputSource source = new XMLInputSource(null, "myTest", null, new StringReader(string), "ISO8859-1"); - HTMLConfiguration parser = new HTMLConfiguration(); - parser.parse(source); - } - COM: <s> tests handling of xml declaration when used with reader </s> - diff --git a/funcom_test/30008921.txt b/funcom_test/30008921.txt deleted file mode 100644 index 7be71d3adea403fe82056b64f1f91587821ef567..0000000000000000000000000000000000000000 --- a/funcom_test/30008921.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addElement(final Element element) { - if (size == data.length) { - Element[] newarray = new Element[size + 20]; - System.arraycopy(data, 0, newarray, 0, size); - data = newarray; - } - data[size++] = element; - } // addElement(Element) - COM: <s> adds an element to list resizing if necessary </s> - diff --git a/funcom_test/30008943.txt b/funcom_test/30008943.txt deleted file mode 100644 index b541d9df7a177e19fb45c889b659b7f3f58846e1..0000000000000000000000000000000000000000 --- a/funcom_test/30008943.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void chars() { - fInCharacters = false; - if (fStringBuffer.length == 0) { - return; - } - doCharactersAugs(); - out.print('"'); - print(fStringBuffer.toString()); - out.println(); - out.flush(); - fStringBuffer.clear(); - } // chars() - COM: <s> prints collected characters </s> - diff --git a/funcom_test/30012366.txt b/funcom_test/30012366.txt deleted file mode 100644 index da0f56e935383e6936d70db355ad50ad4844faa1..0000000000000000000000000000000000000000 --- a/funcom_test/30012366.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String removeSpaces(final String content) { - StringBuffer sb = null; - for (int i=content.length()-1; i>=0; --i) { - if (Character.isWhitespace(content.charAt(i))) { - if (sb == null) { - sb = new StringBuffer(content); - } - sb.deleteCharAt(i); - } - } - return (sb == null) ? content : sb.toString(); - } - COM: <s> removes all spaces for the string remember jdk 1 </s> - diff --git a/funcom_test/30027703.txt b/funcom_test/30027703.txt deleted file mode 100644 index d9d03e89c9296a2e0c57b6bd58ef5995841fc486..0000000000000000000000000000000000000000 --- a/funcom_test/30027703.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setActiveEditor(IEditorPart part) { - super.setActiveEditor(part); - - ITextEditor editor = null; - - if (part instanceof ITextEditor) { - editor = (ITextEditor) part; - } - - fContentAssistProposal.setAction(getAction(editor, - "ContentAssistProposal")); - fContentAssistTip.setAction(getAction(editor, "ContentAssistTip")); - } - COM: <s> sets the active editor to this contributor </s> - diff --git a/funcom_test/30160011.txt b/funcom_test/30160011.txt deleted file mode 100644 index 9d0476ece21aff25ba01ef2dfa20fcf5c724a681..0000000000000000000000000000000000000000 --- a/funcom_test/30160011.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void initialize() { - this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - this.setContentPane(getJPanel()); - this.setJMenuBar(getJJMenuBar()); - this.setSize(300, 200); - this.setTitle("Application"); - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/30160023.txt b/funcom_test/30160023.txt deleted file mode 100644 index 5bc6f83104e397bda51ccb95cb2c0b03ddd15925..0000000000000000000000000000000000000000 --- a/funcom_test/30160023.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JMenuItem getAboutMenuItem() { - if (aboutMenuItem == null) { - aboutMenuItem = new JMenuItem(); - aboutMenuItem.setText("About"); - aboutMenuItem.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - new JDialog(Main.this, "About", true).show(); - } - }); - } - return aboutMenuItem; - } - COM: <s> this method initializes j menu item </s> - diff --git a/funcom_test/30160641.txt b/funcom_test/30160641.txt deleted file mode 100644 index fec81480aa1e6c64264b7d9e76d79bf43b85d11d..0000000000000000000000000000000000000000 --- a/funcom_test/30160641.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testSteensBug() throws Exception { - Document document = getDocument("/xml/schema/personal.xsd"); - - String xpath = "/xs:schema/xs:element[@name='person']"; - assertNotNull("element is null", document.selectSingleNode(xpath)); - - Element root = document.getRootElement(); - - assertNotNull("element is null", root.selectSingleNode(xpath)); - } - COM: <s> test out steens bug </s> - diff --git a/funcom_test/30160754.txt b/funcom_test/30160754.txt deleted file mode 100644 index 0bd57dfc3857fac35b692630645fa57ca2c0a867..0000000000000000000000000000000000000000 --- a/funcom_test/30160754.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testRename() throws Exception { - Document doc = DocumentHelper.createDocument(); - Element root = doc.addElement("foo"); - - assertEquals("named correctly", "foo", root.getName()); - - root.setName("bar"); - - assertEquals("named correctly", "bar", root.getName()); - - QName xyz = root.getQName("xyz"); - - root.setQName(xyz); - - assertEquals("QNamed correctly", xyz, root.getQName()); - } - COM: <s> test the element rename functionality which was lacking as spotted by rob </s> - diff --git a/funcom_test/30160884.txt b/funcom_test/30160884.txt deleted file mode 100644 index d963b39b2704c6e36339f1dd234e2f3e920fef34..0000000000000000000000000000000000000000 --- a/funcom_test/30160884.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected List getInternalDeclarations() { - List decls = new ArrayList(); - - decls.add(new ElementDecl("greeting", "(#PCDATA)")); - - decls.add(new AttributeDecl("greeting", "foo", "ID", "#IMPLIED", null)); - - decls.add(new InternalEntityDecl("%boolean", "( true | false )")); - - return decls; - } - COM: <s> test helper method returns a </s> - diff --git a/funcom_test/30161003.txt b/funcom_test/30161003.txt deleted file mode 100644 index a36f7676758a34df6435179c20f932c20172b53c..0000000000000000000000000000000000000000 --- a/funcom_test/30161003.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void testParent(Branch parent) { - for (int i = 0, size = parent.nodeCount(); i < size; i++) { - Node node = parent.node(i); - assertTrue("Child node of root has parent of root", node - .getParent() == parent); - } - } - COM: <s> tests all the children of the branch have the correct parent </s> - diff --git a/funcom_test/30161005.txt b/funcom_test/30161005.txt deleted file mode 100644 index f3d63618797958072a84e203db872080435cb1e4..0000000000000000000000000000000000000000 --- a/funcom_test/30161005.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void testDocument(Branch branch, Document doc) { - for (int i = 0, size = branch.nodeCount(); i < size; i++) { - Node node = branch.node(i); - assertTrue("Node has correct document", node.getDocument() == doc); - } - } - COM: <s> tests all the children of the branch have the correct document </s> - diff --git a/funcom_test/30161014.txt b/funcom_test/30161014.txt deleted file mode 100644 index a996b6d5a85f815204db672eee020403fd47795a..0000000000000000000000000000000000000000 --- a/funcom_test/30161014.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void start() { - try { - demoDocument = DocumentHelper.parseText(DEMO_XML); - new XMLWriter(OutputFormat.createPrettyPrint()).write(demoDocument); - } catch (DocumentException documentEx) { - documentEx.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - - demoXPath(); - repaint(); - } - COM: <s> called after init </s> - diff --git a/funcom_test/30161261.txt b/funcom_test/30161261.txt deleted file mode 100644 index 6f9d1e7418337989b1ee652f06352a9daaa233b0..0000000000000000000000000000000000000000 --- a/funcom_test/30161261.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void removeDuplicates(List list, Map sortValues) { - // remove distinct - HashSet distinctValues = new HashSet(); - - for (Iterator iter = list.iterator(); iter.hasNext();) { - Object node = iter.next(); - Object value = sortValues.get(node); - - if (distinctValues.contains(value)) { - iter.remove(); - } else { - distinctValues.add(value); - } - } - } - COM: <s> removes items from the list which have duplicate values </s> - diff --git a/funcom_test/30162830.txt b/funcom_test/30162830.txt deleted file mode 100644 index ce6ddec6d2a05f163f030df754e99ec073e97c2d..0000000000000000000000000000000000000000 --- a/funcom_test/30162830.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public DatatypeElementFactory getElementFactory(QName elementQName) { - DatatypeElementFactory result = null; - - if (DO_INTERN_QNAME) { - elementQName = intern(elementQName); - } - - DocumentFactory factory = elementQName.getDocumentFactory(); - if (factory instanceof DatatypeElementFactory) { - result = (DatatypeElementFactory) factory; - } - - return result; - } - COM: <s> registers the given code datatype element factory code for the given </s> - diff --git a/funcom_test/30162895.txt b/funcom_test/30162895.txt deleted file mode 100644 index 095c1732a248e084e63de856630d8258cdb2cfd3..0000000000000000000000000000000000000000 --- a/funcom_test/30162895.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void onNamedSchemaComplexType(Element schemaComplexType) { - Attribute nameAttr = schemaComplexType.attribute("name"); - - if (nameAttr == null) { - return; - } - - String name = nameAttr.getText(); - QName qname = getQName(name); - - DatatypeElementFactory factory = getDatatypeElementFactory(qname); - - onSchemaComplexType(schemaComplexType, factory); - namedTypeResolver.registerComplexType(qname, factory); - } - COM: <s> processes an named xml schema lt complex typegt tag </s> - diff --git a/funcom_test/30162942.txt b/funcom_test/30162942.txt deleted file mode 100644 index 319320bab1be548ac26c66df88d9155738bd1a94..0000000000000000000000000000000000000000 --- a/funcom_test/30162942.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void onNamedSchemaSimpleType(Element schemaSimpleType) { - Attribute nameAttr = schemaSimpleType.attribute("name"); - - if (nameAttr == null) { - return; - } - - String name = nameAttr.getText(); - QName qname = getQName(name); - XSDatatype datatype = loadXSDatatypeFromSimpleType(schemaSimpleType); - namedTypeResolver.registerSimpleType(qname, datatype); - } - COM: <s> processes an named xml schema lt simple typegt tag </s> - diff --git a/funcom_test/30187017.txt b/funcom_test/30187017.txt deleted file mode 100644 index 56749a51ca1a9a318fcd905a9b3ac04d3cff0c1c..0000000000000000000000000000000000000000 --- a/funcom_test/30187017.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void createFieldEditors() { - - - addField( - new StringFieldEditor(PreferenceConstants.P_TWITTER_NAME, "Twitter user name:", getFieldEditorParent())); - addField( - new PasswordFieldEditor(PreferenceConstants.P_TWITTER_PASS, "Twitter pass:", getFieldEditorParent())); - addField( - new IntegerFieldEditor(PreferenceConstants.P_UPDATE_TIMER, "Refresh interval:", getFieldEditorParent())); - - - - - - } - COM: <s> creates the field editors </s> - diff --git a/funcom_test/30234508.txt b/funcom_test/30234508.txt deleted file mode 100644 index 07a6b3c91bab6e17aab19a38091fa96971fc1b8a..0000000000000000000000000000000000000000 --- a/funcom_test/30234508.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void launch() { - if(theExtServSocketToPass != null) { - try { - theExtServSockManager = new ExtServerSocketManager(theExtServSocketToPass, this); - getTheExtServSockManager().start(); - }catch(Exception a){a.printStackTrace();} - } - } - COM: <s> starts a client socket manager with previously set sslsocket </s> - diff --git a/funcom_test/30234580.txt b/funcom_test/30234580.txt deleted file mode 100644 index 07ff749ce3a004a968b96e6a295e17d6adb8410b..0000000000000000000000000000000000000000 --- a/funcom_test/30234580.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void closeMessageStream() { - if(messageOpen) { - try { - String xmlToSend = WSArenaClientUtils.messageEndXML(); - myOutBuffer.write(xmlToSend); - myOutBuffer.flush(); - } catch(Exception p){ - p.printStackTrace(); - System.out.println("Could not close message stream!"); - } - messageOpen = false; - } - } - COM: <s> stops a client message stream session with a ws arena server </s> - diff --git a/funcom_test/30235705.txt b/funcom_test/30235705.txt deleted file mode 100644 index 6aaec8e00ff59c8a29779da7b4b967947312d0e7..0000000000000000000000000000000000000000 --- a/funcom_test/30235705.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void performAccelerateAction(InputActionEvent evt) { - node.accelerate(evt.getTime()); - Vector3f loc = node.getLocalTranslation(); - loc.addLocal(node.getLocalRotation().getRotationColumn(2, tempVa) - .multLocal(node.getVelocity() * evt.getTime())); - node.setLocalTranslation(loc); - - } - COM: <s> the action calls the vehicles accelerate command which adjusts its </s> - diff --git a/funcom_test/30235706.txt b/funcom_test/30235706.txt deleted file mode 100644 index 331eec7c5460265dd5112fd298280be8e30fd8bc..0000000000000000000000000000000000000000 --- a/funcom_test/30235706.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void performBrakeAction(InputActionEvent evt) { - node.brake(evt.getTime()); - Vector3f loc = node.getLocalTranslation(); - loc.addLocal(node.getLocalRotation().getRotationColumn(2, tempVa) - .multLocal(node.getVelocity() * evt.getTime())); - node.setLocalTranslation(loc); - } - COM: <s> the action calls the vehicles brake command which adjusts its velocity </s> - diff --git a/funcom_test/30235708.txt b/funcom_test/30235708.txt deleted file mode 100644 index 6b52276884bb2e3aa9fd71d6fc351c21988d4827..0000000000000000000000000000000000000000 --- a/funcom_test/30235708.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void performDriftAction(InputActionEvent evt) { - node.drift(evt.getTime()); - Vector3f loc = node.getLocalTranslation(); - loc.addLocal(node.getLocalRotation().getRotationColumn(2, tempVa) - .multLocal(node.getVelocity() * evt.getTime())); - node.setLocalTranslation(loc); - } - COM: <s> the action calls the vehicles drift command which adjusts its velocity </s> - diff --git a/funcom_test/30235755.txt b/funcom_test/30235755.txt deleted file mode 100644 index 9859498d67fb3f2e1a5ebf834d22cfd2730bf701..0000000000000000000000000000000000000000 --- a/funcom_test/30235755.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setModel(Spatial model) { - this.detachChild(this.model); - this.model = model; - this.attachChild(this.model); - //obtain references to the front and back wheel - - // backwheel = ((Node)(((Node)model).getChild(0))).getChild(1); - // frontwheel = ((Node)(((Node)model).getChild(0))).getChild(5); - } - COM: <s> sets the model spatial of this vehicle </s> - diff --git a/funcom_test/308884.txt b/funcom_test/308884.txt deleted file mode 100644 index 48db09147d30c6056cb2a7caa5b90b1965fd24e7..0000000000000000000000000000000000000000 --- a/funcom_test/308884.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setMDCHostNameKey(String value) { - - if (value == null) { return; } - - value = value.trim(); - - if (value.length() == 0) { return; } - - MDC_hostname_key = value; - - // since we can't control the order of attribute calls from the framework, we'll make this - // defensive call ... in case setInitializeMDCHostNameValue() was called before this method - if (null != MDC_hostname_value) - { - setInitializeMDCHostNameValue(MDC_hostname_value); - } - } - COM: <s> sets the mdc key for the hostname </s> - diff --git a/funcom_test/308919.txt b/funcom_test/308919.txt deleted file mode 100644 index 1c9d34de71537f4196142317a01e14b165b5ddf4..0000000000000000000000000000000000000000 --- a/funcom_test/308919.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setMDCCanonicalHostNameKey(String value) { - - if (value == null) { return; } - - value = value.trim(); - - if (value.length() == 0) { return; } - - try - { - InetAddress address = InetAddress.getLocalHost(); - String nagios_canonical_hostname = "nagios_canonical_hostname"; - if (null == MDC.get(nagios_canonical_hostname)) - MDC.put(value, address.getCanonicalHostName()); - } catch (Exception e) {} - } - COM: <s> sets the mdc key for the canonical hostname which is determined programmatically </s> - diff --git a/funcom_test/31014484.txt b/funcom_test/31014484.txt deleted file mode 100644 index 36c9b6fc5ee5ce276eed83af29e10ba8b4d29395..0000000000000000000000000000000000000000 --- a/funcom_test/31014484.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addWindowListener(WindowListener wl) { - if (wl instanceof FrameAdapter) { - FrameAdapter fa = (FrameAdapter)wl; - if (isShowing()) { - // Window is already visible, hence the windowOpened() event - // will never arrive. Either post a WindowOpenedEvent or raise - // framecount by hand: - fa.setFrameCount(fa.getFrameCount()+1); // effect of the event - } - } - super.addWindowListener(wl); - } - COM: <s> adds this frame to a listener </s> - diff --git a/funcom_test/31014612.txt b/funcom_test/31014612.txt deleted file mode 100644 index 216df19fc43c07812f87597bd28b013f944cee12..0000000000000000000000000000000000000000 --- a/funcom_test/31014612.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: static public StringBuffer toLower(String str) { - StringBuffer res = new StringBuffer(str); - for (int i=0; i<str.length(); i++) { - res.setCharAt(i,Character.toLowerCase(str.charAt(i))); - } - return res; - } - COM: <s> return str lowercase </s> - diff --git a/funcom_test/31014613.txt b/funcom_test/31014613.txt deleted file mode 100644 index 1a15a875c06443f3109fa7e51f4fddd5f97b1eb0..0000000000000000000000000000000000000000 --- a/funcom_test/31014613.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: static public StringBuffer toUpper(String str) { - StringBuffer res = new StringBuffer(str); - for (int i=0; i<str.length(); i++) { - res.setCharAt(i,Character.toUpperCase(str.charAt(i))); - } - return res; - } - COM: <s> return str uppercase </s> - diff --git a/funcom_test/31014617.txt b/funcom_test/31014617.txt deleted file mode 100644 index 4047c636cb4c670ee412987ad77f17f18abcf877..0000000000000000000000000000000000000000 --- a/funcom_test/31014617.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addElement(RingElement element) { - if (isEmpty()) { - head = element; - element.next = element; - element.prev = element; - } else { - element.next = current.next; - element.prev = current; - element.next.prev = element; - current.next = element; - } - current = element; - elements++; - } - COM: <s> add the new element directly after the current one </s> - diff --git a/funcom_test/31014618.txt b/funcom_test/31014618.txt deleted file mode 100644 index cd9e87c6e7ffd3e7fd74fd80dab015d84b13109b..0000000000000000000000000000000000000000 --- a/funcom_test/31014618.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addElementAsLast(RingElement element) { - if (isEmpty()) { - head = current = element; - element.next = element; - element.prev = element; - } else { - element.prev = head.prev; - element.next = head; - element.prev.next = element; - head.prev = element; - } - elements++; - } - COM: <s> add the element just before the head i </s> - diff --git a/funcom_test/31014621.txt b/funcom_test/31014621.txt deleted file mode 100644 index 04739de3d9929f14aa1c585efebd437f9428ed86..0000000000000000000000000000000000000000 --- a/funcom_test/31014621.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public RingElement removeCurrent() { - if (isEmpty()) return null; - RingElement result = current; - if (current.prev == current) { - head = current = null; - } else { - current.prev.next = current.next; - current.next.prev = current.prev; - current = current.next; - result.prev = result.next = null; - } - elements--; - return result; - } - COM: <s> removes the current element from the ring </s> - diff --git a/funcom_test/31015138.txt b/funcom_test/31015138.txt deleted file mode 100644 index 3ee4f154406c00d48b406f0e3740541623433dcc..0000000000000000000000000000000000000000 --- a/funcom_test/31015138.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void readXYFrom(LSBReader source) throws IOException { - // support explorer - int newX = source.readShort(); - int newY = source.readShort(); - if ((newX<minDim) || (newX>maxDim) || (newY<minDim) || (newY>maxDim)) return; - - setX(newX); - setY(newY); - realPlanets++; - } - COM: <s> reads the x and y coordinate </s> - diff --git a/funcom_test/31015292.txt b/funcom_test/31015292.txt deleted file mode 100644 index a9dda27750619c166ffdc81318e0fc2d14e397ba..0000000000000000000000000000000000000000 --- a/funcom_test/31015292.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void generateAll(Universe u) { - int i,id; - Ship ship; - Vcr vcr; - for (i=1;i<=vcrcount;i++) { - try { - vcr=new Vcr(u); - vcr.readFrom(source); - u.putVcr(vcr); // universe does the necessary filtering - } catch (IOException ioe) { - crash(11, "Error while reading shipdata: "+ioe); - } - } - } - COM: <s> generates all code vcr code objects found in code pis code </s> - diff --git a/funcom_test/31015348.txt b/funcom_test/31015348.txt deleted file mode 100644 index f9f32a08fa4857845aec37c457789e3652bf683a..0000000000000000000000000000000000000000 --- a/funcom_test/31015348.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public short readShort() throws IOException { - int one,two; - one=is.read(); // simulates unsigned byte behavior; - two=is.read(); - pos+=2; - // add, then cast and return. - return (short)((two<<8)+one); - } - COM: <s> reads a code short code in an lsb fashion </s> - diff --git a/funcom_test/31015350.txt b/funcom_test/31015350.txt deleted file mode 100644 index 56cac620d8ce5dbadd70d2953e6f7af1015184ee..0000000000000000000000000000000000000000 --- a/funcom_test/31015350.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int readInt() throws IOException { - int one,two,three,four; - one=is.read(); // simulates unsigned byte behavior - two=is.read(); - three=is.read(); - four=is.read(); - pos+=4; - // add, then return (casting not necessary). - return (four<<24)+(three<<16)+(two<<8)+one; - } - COM: <s> reads an code int code in an lsb fashion </s> - diff --git a/funcom_test/31015395.txt b/funcom_test/31015395.txt deleted file mode 100644 index f89bef5a89e3b3f183dca3c477be2003c942a9c2..0000000000000000000000000000000000000000 --- a/funcom_test/31015395.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void readMessFrom(LSBReader source,int length,int player) throws IOException { - content=new StringBuffer(length); - content.setLength(length); - for (int j=0;j<length;j++) { - char c=(char)(source.readUnsignedByte()-MESSCODE); - if (c=='\015') c='\012'; - content.setCharAt(j,c); - } - } - COM: <s> read one mess message that is an outgoing message </s> - diff --git a/funcom_test/31015410.txt b/funcom_test/31015410.txt deleted file mode 100644 index 35628e7270fbb6c6800bc4899e7b4003615b2698..0000000000000000000000000000000000000000 --- a/funcom_test/31015410.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void writeMessageTo(LSBWriter sink) throws IOException { - int length=content.length(); - for (int j=0;j<length;j++) { - char c=content.charAt(j); - if (c=='\012') c='\015'; - sink.writeByte((byte)(c+MESSCODE)); - } - } - COM: <s> writes one message content that is somebody else must have </s> - diff --git a/funcom_test/31015531.txt b/funcom_test/31015531.txt deleted file mode 100644 index af740f0ba543506e03ce4d9d0ffb8c3b199b21b0..0000000000000000000000000000000000000000 --- a/funcom_test/31015531.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isAdvancedRefinery() { - Hullfunc hullfunc=game.getHullfunc(); - Vector cloakvec=(Vector)hullfunc.getFunctionVector(funcadvancedrefinery); - for (int i=cloakvec.size()-1; i>=0; i--) { - if (((Hullfunc.Allowed)cloakvec.elementAt(i)).hull==id) return true; - } - return false; - } - COM: <s> can perform advanced neutronic alchemy 1 mineral aries </s> - diff --git a/funcom_test/31015621.txt b/funcom_test/31015621.txt deleted file mode 100644 index b5ba3bb94da048f0029a3a876edf7fc56dae2a12..0000000000000000000000000000000000000000 --- a/funcom_test/31015621.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void generateAll(Game game) { - for (int i=1;i<=engines;i++) { - Engine engine=new Engine(); - try { - engine.readFrom(source); - game.engine[i]=engine; // hack... - } catch (IOException ioe) { - crash(11, "Error while reading engspec.dat: "+ioe); - } - } - } - COM: <s> generates 10 code engine code objects </s> - diff --git a/funcom_test/31015658.txt b/funcom_test/31015658.txt deleted file mode 100644 index 4e58a423323db29758d63dc48a8315c4af3a6e15..0000000000000000000000000000000000000000 --- a/funcom_test/31015658.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void readRst(RstGen rstgen, int player) throws IOException { - report("Reading RST (player "+player+", turn "+getTurnNumber()+")"); - Assert.assert(get() == RstOrTrn.RST); - rstgen.generateAll(this,player); - getPlayer(player).setStatus(Player.SELF); - } - COM: <s> reads one result already formed as an input stream </s> - diff --git a/funcom_test/31015808.txt b/funcom_test/31015808.txt deleted file mode 100644 index 4c206ace235d40c3d2b016c7e2bfc07c1def2d43..0000000000000000000000000000000000000000 --- a/funcom_test/31015808.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getNatTaxMC() { - int taxMC = 0; - if (nathappy < 30) return 0; - taxMC = (natclans * natgov * nattax + 2500) / 5000; - if (taxMC > getColClans()) taxMC = getColClans(); - if (natsort == Natives.INSECTOID) taxMC *= 2; - int taxRate = getConfig().nativeTaxRate(getOwner()); - taxMC = (taxMC * taxRate + 50) / 100; - return taxMC; - } - COM: <s> return tax collected from natives in mcs </s> - diff --git a/funcom_test/31015813.txt b/funcom_test/31015813.txt deleted file mode 100644 index 852bc373f356c9509649dbc8a0f8921a4e3e9620..0000000000000000000000000000000000000000 --- a/funcom_test/31015813.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getNatTaxMCwoCol() { - int res = 0; - if (nathappy < 30) - return 0; - res = (int)((natclans * natgov * nattax + 2500) / 5000); - if (natsort == Natives.INSECTOID) - res *= 2; - res = (int)((res * getConfig().nativeTaxRate(getOwner()) + 50) / 100); - return res; - } - COM: <s> return tax collected from natives in mcs disregarding number of colonists </s> - diff --git a/funcom_test/31016014.txt b/funcom_test/31016014.txt deleted file mode 100644 index 0e717c91f07958c26c4375a3a0547368fcad506f..0000000000000000000000000000000000000000 --- a/funcom_test/31016014.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Engine getEngine(int type) { - if (type==UNKNOWN) return null; - if (type<0) return null; // illegal type (exception?) - if (type>engines) return null; // illegal type (exception?) - if (type==0) return null; // non-existing engine - return engine[type]; - } - COM: <s> retrieve engine of the proper type </s> - diff --git a/funcom_test/31016023.txt b/funcom_test/31016023.txt deleted file mode 100644 index 3c625282ee7db07a19410fbddc29649a0e8509de..0000000000000000000000000000000000000000 --- a/funcom_test/31016023.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Torpedo getTorpedo(int type) { - if (type==UNKNOWN) return null; - if (type<0) return null; // illegal type (exception?) - if (type>torpedoes) return null; // illegal type (exception?) - if (type==0) return null; // non-existing torpedo - return torpedo[type]; - } - COM: <s> retrieve torpedo of the proper type </s> - diff --git a/funcom_test/31016474.txt b/funcom_test/31016474.txt deleted file mode 100644 index 7e623971c563468d795b967b1a27b0b675ac167f..0000000000000000000000000000000000000000 --- a/funcom_test/31016474.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Vcr getVcr(int id1,int id2,boolean isplanet) { - for (int i=0;i<vcr.size();i++) { - Vcr v=(Vcr)vcr.elementAt(i); - if ((v.combatant1.id==id1) && - (v.combatant2.id==id2) && - v.isplanet==isplanet) return v; - } - return null; - } - COM: <s> get vcr by ids of ships and isplanet </s> - diff --git a/funcom_test/31194689.txt b/funcom_test/31194689.txt deleted file mode 100644 index bef5e971fcd5a905d033c4605bd30f0b261e5f8c..0000000000000000000000000000000000000000 --- a/funcom_test/31194689.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Object executeAndQuery(DataManager aRoot, Date timestamp) throws Exception { - - if(t==null||key==null);//NOTHING. - DataObject d = aRoot.findByTypeKey(t,key); - aRoot.deleteDataObject(d,true,false);//when something is deleted, it's key is still used. if purged, the key won't be used anymore. - return null; - } - COM: <s> create an object </s> - diff --git a/funcom_test/31195465.txt b/funcom_test/31195465.txt deleted file mode 100644 index 8517f4352dd3da576ed57e80cb6c92231164ad4f..0000000000000000000000000000000000000000 --- a/funcom_test/31195465.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void refresh() { - int firstItem = pageIndex * JwizApp.MESSAGES_PER_PAGE + 1;// - int lastItem = firstItem + JwizApp.MESSAGES_PER_PAGE - 1; - if (lastItem > totalItems) { - lastItem = totalItems; - } - - genericTableModel.fireTableDataChanged(); - displayedItems = viewableList.getRows(firstItem, lastItem); - } - COM: <s> refreshes the current page </s> - diff --git a/funcom_test/31195537.txt b/funcom_test/31195537.txt deleted file mode 100644 index a04b454faf5d0aaf1dd38c818f695663e7013e44..0000000000000000000000000000000000000000 --- a/funcom_test/31195537.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void firePageIndexChanged() { - EventListener[] listeners = getEventListenerList().getListeners(PageIndexChangeListener.class); - PageIndexChangeEvent e = new PageIndexChangeEvent(getPageIndex()); - for (int i = 0; i < listeners.length; ++i) { - ((PageIndexChangeListener) listeners[i]).pageIndexChanged(e); - } - } - COM: <s> notifies code page index change listener code s that the page index </s> - diff --git a/funcom_test/31195547.txt b/funcom_test/31195547.txt deleted file mode 100644 index 4628de5b45de9451b7c7a002c61fa7b7f2756ec7..0000000000000000000000000000000000000000 --- a/funcom_test/31195547.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setPageIndex(int pageIndex) { - if (pageIndex < 0) { - pageIndex = 0; - } - if (pageIndex > 0 && pageIndex > totalPages - 1) { - pageIndex = totalPages - 1; - } - this.pageIndex = pageIndex; - pageField.setText(Integer.toString(pageIndex + 1)); - firePageIndexChanged(); - } - COM: <s> sets the current page index </s> - diff --git a/funcom_test/31202546.txt b/funcom_test/31202546.txt deleted file mode 100644 index b5d7397d7f558dea14bfd69c917580d7e2deb45f..0000000000000000000000000000000000000000 --- a/funcom_test/31202546.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private void jMenuHelpHelp_actionPerformed(ActionEvent e){ -// help.jMenuHelp(userTabbedPane.getTabCount(),userTabbedPane.getSelectedIndex()); - new Browser( "http://"+SERVER+"/index.htm", "Instructions" ).setVisible( true ); - } - COM: <s> clicked on instructions in main menu </s> - diff --git a/funcom_test/31202582.txt b/funcom_test/31202582.txt deleted file mode 100644 index f5c8e465aec92f5a4c8bd6dc508ff1d0264daf1b..0000000000000000000000000000000000000000 --- a/funcom_test/31202582.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Database setDatabase(){ - Login login = new Login(); - String conn ="jdbc:oracle:thin:@10.143.49.21:1521:ljdb01"; - db=login.setLogin(db, this - , conn,"LOGIN","LOGIN"); - - Debug.print("setDatabase",debug); - if(db.isOpen()){ - db.setAutoCommit(false); - return(db); - }else{ - db = setDatabase(); - } - db.setAutoCommit(false); - return(db); - } - COM: <s> set database and return connection obj </s> - diff --git a/funcom_test/31202607.txt b/funcom_test/31202607.txt deleted file mode 100644 index 9f14167dc5a1d17cfc77742896adf26c7e9449df..0000000000000000000000000000000000000000 --- a/funcom_test/31202607.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void launchViewer(String project_name, Connection connection){ - try { - Sound.drumroll.play(); - ProjectSeqsFrame frame = new ProjectSeqsFrame(login.username, login.password, Login.ORACLEDRIVER, Login.SEQTRACS_PRODUCTION, project_name, this); - setUpLaunchViewerFrame(frame); - } - catch (Exception ex) { - Debug.processException(ex,"lauchViewer project name"); - } - } - COM: <s> launches abi viewer </s> - diff --git a/funcom_test/31202613.txt b/funcom_test/31202613.txt deleted file mode 100644 index ed0b350e334644078e8a8cdd23ec16516402c21f..0000000000000000000000000000000000000000 --- a/funcom_test/31202613.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void launchViewer(int plate_oid, Connection connection){ - try { - Sound.drumroll.play(); - ProjectSeqsFrame frame = new ProjectSeqsFrame(login.username, login.password, Login.ORACLEDRIVER, Login.SEQTRACS_PRODUCTION, plate_oid, this); - setUpLaunchViewerFrame(frame); - } - catch (Exception ex) { - Debug.processException(ex,"lauchViewer plate oid"); - } - } - COM: <s> launch christians sequence viewer </s> - diff --git a/funcom_test/31202936.txt b/funcom_test/31202936.txt deleted file mode 100644 index 2a9c007e1053d58ef783eeca5cccca3f51a5e304..0000000000000000000000000000000000000000 --- a/funcom_test/31202936.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void ClearProject(){ - boolean debug = false; - projectNameTextField.setEditable(true); - statusTextField.setText(SeqProject.statusTENTATIVE); - projectNameTextField.setText(""); - project1.clearProject(); - - submissionTextArea.setText("Project Cleared"); - rxnTab.ClearRxn(); - - project1=SeqRxn.setDate(project1, requestDateTextField); - projectRefresh(true); - } - COM: <s> clears the selected project and refreshes tables </s> - diff --git a/funcom_test/31203019.txt b/funcom_test/31203019.txt deleted file mode 100644 index d6f2b5587db5b519468611f71d726a485c9c0cd1..0000000000000000000000000000000000000000 --- a/funcom_test/31203019.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void makeABIbut_actionPerformed(ActionEvent e) { - button_makeABI(new JFrame(), database1, selected_plate, editPlateTextArea); - button_refresh(database1,plateQDS,projPlateQDS,selected_plate,seqPlateQDS,selected_project); -// refresh_plate(plateQDS); - } - COM: <s> make abi button </s> - diff --git a/funcom_test/31203037.txt b/funcom_test/31203037.txt deleted file mode 100644 index 42880386b68e633fc205d3e11d19b06dc045a5bb..0000000000000000000000000000000000000000 --- a/funcom_test/31203037.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addToTechnicalComment( final String add_to_technical_comment ) { - if ( getTechnicalComment() != null - && getTechnicalComment().length() > 0 ) { - setTechnicalComment( getTechnicalComment() - + "\n" + add_to_technical_comment ); - } - else { - setTechnicalComment( add_to_technical_comment ); - } - } - COM: <s> adds to the technical comment about this project </s> - diff --git a/funcom_test/31203099.txt b/funcom_test/31203099.txt deleted file mode 100644 index e06abdb0755a07acece3491c6e94ba45d6dcaab4..0000000000000000000000000000000000000000 --- a/funcom_test/31203099.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setRawSeqOids( int[] raw_seq_oids ) { - - _raw_seq_oids = new ArrayList(); - - if ( raw_seq_oids == null ) { - return; - } - - for ( int i = 0; i < raw_seq_oids.length; ++i ) { - addRawSeqOid( raw_seq_oids[ i ] ); - } - - } // setBioSeqOids( int[] ) - COM: <s> this sets or replaces the raw bio sequence oids in this project </s> - diff --git a/funcom_test/31203120.txt b/funcom_test/31203120.txt deleted file mode 100644 index 86284483cfeead3b230e96f79ef4c05b07a5ae52..0000000000000000000000000000000000000000 --- a/funcom_test/31203120.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void projectRefresh(boolean reset){ - boolean debug = false; - Debug.print("Project Refreshed",debug); - reqSQL.updateProjectTable(database1, projListQDS, project1, person1, getStatus(ProjStatusjComboBox)); - submissionTextArea.setText("Projects Refreshed"); - setProject(reset); - } - COM: <s> refresh the list of projects </s> - diff --git a/funcom_test/31203138.txt b/funcom_test/31203138.txt deleted file mode 100644 index e791e0b976aa1ff1294dcede6d760ec54687a9e2..0000000000000000000000000000000000000000 --- a/funcom_test/31203138.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setAdditionalSeqsOids( int[] add_seq_oids ) { - - _add_seq_oids = new ArrayList(); - - if ( add_seq_oids == null ) { - return; - } - - for ( int i = 0; i < add_seq_oids.length; ++i ) { - addAdditionalSeqsOid( add_seq_oids[ i ] ); - } - - } // setAddSegsOids( int[] ) - COM: <s> this sets or replaces the additional sequences oids in this project </s> - diff --git a/funcom_test/31203196.txt b/funcom_test/31203196.txt deleted file mode 100644 index f8d6613937873ecc25c4ab8dd04f8e34731b3be1..0000000000000000000000000000000000000000 --- a/funcom_test/31203196.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void button_edit(Database db, int selected_plate){ - - if(selected_plate < 1){ - JOptionPane.showMessageDialog(new JFrame(),"Please Choose a Plate to Edit"); - return; - } - launchPlateArrayer(db,Plate.getName(db,selected_plate),selected_plate, Plate.canEditPlate(db,selected_plate)); - } - COM: <s> action for edit plate button </s> - diff --git a/funcom_test/31203213.txt b/funcom_test/31203213.txt deleted file mode 100644 index 40b20385ce606efb1f9a9ca9324e37322e318e7e..0000000000000000000000000000000000000000 --- a/funcom_test/31203213.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setPrimerOids( int[] primer_oids ) { - - _primer_oids = new ArrayList(); - - if ( primer_oids == null ) { - return; - } - - for ( int i = 0; i < primer_oids.length; ++i ) { - addPrimerOid( primer_oids[ i ] ); - } - - } // setPrimerOids( int[] ) - COM: <s> this sets or replaces the primer oids in this project </s> - diff --git a/funcom_test/31203261.txt b/funcom_test/31203261.txt deleted file mode 100644 index 74fe19af3d1a9601ede241638b8246515dabdcb6..0000000000000000000000000000000000000000 --- a/funcom_test/31203261.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setVectorOids( int[] vector_oids ) { - - _vector_oids = new ArrayList(); - - if ( vector_oids == null ) { - return; - } - - for ( int i = 0; i < vector_oids.length; ++i ) { - addVectorOid( vector_oids[ i ] ); - } - - } // setVectorOids( int[] ) - COM: <s> this sets or replaces the vector oids in this project </s> - diff --git a/funcom_test/31203298.txt b/funcom_test/31203298.txt deleted file mode 100644 index bdca93f7536cde0cfb0c2c15cc1e635a53be4c9e..0000000000000000000000000000000000000000 --- a/funcom_test/31203298.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setContigOids( int[] contig_oids ) { - - _contig_oids = new ArrayList(); - - if ( contig_oids == null ) { - return; - } - - for ( int i = 0; i < contig_oids.length; ++i ) { - addContigOid( contig_oids[ i ] ); - } - - } // setContigOids( int[] ) - COM: <s> this sets or replaces the contig oids in this project </s> - diff --git a/funcom_test/31203322.txt b/funcom_test/31203322.txt deleted file mode 100644 index 7bbf59bdd70c0b0b685b88758fc7744b8b228811..0000000000000000000000000000000000000000 --- a/funcom_test/31203322.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String checkBase(String base) throws IllegalArgumentException{ - if(base.length() != 1){ - throw new IllegalArgumentException("base length must equal 1"); - } - base = base.toUpperCase(); - if(!traceMap.containsKey(base)){ - throw new IllegalArgumentException("base must be one of A G C T"); - } - return(base); - } - COM: <s> check if this base is legal </s> - diff --git a/funcom_test/31203409.txt b/funcom_test/31203409.txt deleted file mode 100644 index 1be70a53f0b26b1d634792630df222c1baa653db..0000000000000000000000000000000000000000 --- a/funcom_test/31203409.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setTracePosition(String position){ - position = Pattern.compile("[^\\d]").matcher(position).replaceAll(""); - if(position.length() < 1){ - JOptionPane.showMessageDialog(new JFrame(), "That is not a number."); - return; - } - int pos = Integer.parseInt(position); - setTracePosition(pos); - } - COM: <s> accept string position as parameter </s> - diff --git a/funcom_test/31203462.txt b/funcom_test/31203462.txt deleted file mode 100644 index d11b5713fe506b56b939dc18ff1b881a38d1b42f..0000000000000000000000000000000000000000 --- a/funcom_test/31203462.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void refreshSequenceRenderer(){ - try{ - multi.clearRenderers(); - multi.addRenderer( trace_renderer ); -// multi.removeRenderer(ruler); -// multi.removeRenderer(seqRenderer); - seqRenderer = new MySymbolSequenceRenderer(lowerCaseSequence); - multi.addRenderer( seqRenderer ); - ruler = new RulerRenderer(); - multi.addRenderer( ruler ); - } - catch (Exception e){ - e.printStackTrace(); - } - } - COM: <s> renderers moved to allow on call refresh when changing the sequence </s> - diff --git a/funcom_test/31203589.txt b/funcom_test/31203589.txt deleted file mode 100644 index b09a29ec96933df9fb5822cd546a1a553a694574..0000000000000000000000000000000000000000 --- a/funcom_test/31203589.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private DirChooser getDirChooser(){ - SecurityManager backup = System.getSecurityManager(); - System.setSecurityManager( null ); - DirChooser dc = new DirChooser(); - dc.setFileSelectionMode(dc.DIRECTORIES_ONLY); - System.setSecurityManager( backup ); - dc.setDialogTitle("Select DIRECTORY to save into"); - return(dc); - } - COM: <s> set up and display the directory selection window </s> - diff --git a/funcom_test/31226384.txt b/funcom_test/31226384.txt deleted file mode 100644 index ee737f0748c054c5bba7069c1975f67d8a70c203..0000000000000000000000000000000000000000 --- a/funcom_test/31226384.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void achieveAtLeastOne(Goal[] goals){ - int result=0; - for(int i=0; i<goals.length; i++){ - try{ - achieve(goals[i]); - result++; - }catch(GoalNotAchieved gne){ - continue; - } - } - if(result == 0) - throw new GoalNotAchieved(goals[0]); - } - COM: <s> this method tries to achieve all possible goals </s> - diff --git a/funcom_test/31226391.txt b/funcom_test/31226391.txt deleted file mode 100644 index 9e0083e5ff032b6212899f4eeb0e8438a814e9af..0000000000000000000000000000000000000000 --- a/funcom_test/31226391.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addRule(Rule rule){ - if(rulesCurrent == rules.length){ - final Rule[] tmp = new Rule[rules.length+10]; - System.arraycopy(this.rules, 0, tmp, 0, this.rules.length); - this.rules = tmp; - } - this.rules[rulesCurrent++] = rule; - rule.knowledgeBase = knowledgeBase; - } - COM: <s> adds one rule to this rule base </s> - diff --git a/funcom_test/31226472.txt b/funcom_test/31226472.txt deleted file mode 100644 index 69478f96ddee679d64232ccc169ca063fc815d53..0000000000000000000000000000000000000000 --- a/funcom_test/31226472.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int hashCode() { - int result; - result = getRuleNames()[ruleIndex].hashCode(); - int noDecl = getNumberOfDeclarations()[ruleIndex]; - for (int i = 0; i < noDecl; i++) { - Object obj; - obj = this.getObject(ruleIndex, i); - result += obj.hashCode(); - } - return result; - } - COM: <s> returns a hash code for this object </s> - diff --git a/funcom_test/31226559.txt b/funcom_test/31226559.txt deleted file mode 100644 index 594d47d6b3fb4c6766865017b69cc9e422af127f..0000000000000000000000000000000000000000 --- a/funcom_test/31226559.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean insert(Object obj) { - final boolean b = this.kb.insert(obj); - - if (b) { - ClassFilterReteNode entryNode; - entryNode = getEntryPoint(obj.getClass()); - if (entryNode != null) { - entryNode.newObject(obj); - } - } - if(!this.running) { - synchronized(this){ - this.notify(); - } - } - return b; - } - COM: <s> inserts a new object in this knowledge base </s> - diff --git a/funcom_test/31226664.txt b/funcom_test/31226664.txt deleted file mode 100644 index 7dd4b59fb21ee4ba3b5c67892cd1ad8ac81e919a..0000000000000000000000000000000000000000 --- a/funcom_test/31226664.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeConflictSetListener(RuleFireListener l) { - conflictSetListeners.remove(l); - if (conflictSetListeners.size() == 0) { - debug = false; - conflictSet.removeInternalConflictSetListener(this); - isListener = false; - } else { - debug = ruleFiringListeners.size() != 0; - } - } - COM: <s> removes the specified conflict set listener so that it no longer </s> - diff --git a/funcom_test/31226681.txt b/funcom_test/31226681.txt deleted file mode 100644 index 964ea3b3cdc85b1285809cf779c3890cf52cc4a6..0000000000000000000000000000000000000000 --- a/funcom_test/31226681.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean retract(Object obj) { - boolean result = kb.retract(obj); - conflictSet.removeElementsWith(obj); - for (Iterator i = allJoinNodes.iterator(); i.hasNext(); ) { - JoinReteNode joinNode = (JoinReteNode) i.next(); - joinNode.remove(obj); - } - return result; - } - COM: <s> removes a given object from this knowledge base </s> - diff --git a/funcom_test/31226818.txt b/funcom_test/31226818.txt deleted file mode 100644 index cc29edab2b23f53ed5fe05bae381e22cec40eaea..0000000000000000000000000000000000000000 --- a/funcom_test/31226818.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void groupIteration(Game game, Group group) { - final int size = group.getGroupSize(); - - for (int i = 0; i < size; i++) { - Player p1 = (Player) group.get(i); - int j = random.nextInt(size); - while (i == j) j = random.nextInt(size); - Player p2 = (Player) group.get(j); - game.play(p1, p2); - } - } - COM: <s> performs single iteration of game playing </s> - diff --git a/funcom_test/31226837.txt b/funcom_test/31226837.txt deleted file mode 100644 index 7ef726fbe9f0309ab8d548a49091edc0397f7cb1..0000000000000000000000000000000000000000 --- a/funcom_test/31226837.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setStrategy (final Strategy strategy) { - if (this.strategyController != null) this.strategyController.die (); - this.strategy = strategy; - this.strategyController = getAgent().getGroup().getAgentLoader().newAgent (strategy); - gui.appendStatus ("Setting the strategy to: " + strategy + "\n"); - } - COM: <s> adds given strategy for this player </s> - diff --git a/funcom_test/31226940.txt b/funcom_test/31226940.txt deleted file mode 100644 index 98330e64bd02f8bcee3e76bb0db2f598a39ed4bc..0000000000000000000000000000000000000000 --- a/funcom_test/31226940.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Cards cardsLeft() { - final Cards cards = new Cards(); - final Hand hand = currentHand (); - cards.add (hand); - cards.remove (hand.get (this.commodityForCorner)); - final Iterator iter = this.bidsHash.values ().iterator (); - while ( iter.hasNext() ) { - cards.remove ( (Cards) iter.next () ); - } - return cards; - } - COM: <s> returns cards which are left in hand after cards </s> - diff --git a/funcom_test/31227092.txt b/funcom_test/31227092.txt deleted file mode 100644 index d176adb9fe996e294aee97f36068163f2caf8ad0..0000000000000000000000000000000000000000 --- a/funcom_test/31227092.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateMatrix() { - for (int i = 0; i < data.length; i++) { - for (int j = 0; j < data[i].length; j++) { - StringTokenizer st = new StringTokenizer(data[i][j]," ,;:"); - int k = 0; - while (st.hasMoreTokens()) { - int num = Integer.parseInt(st.nextToken()); - - // @TODO fix the missing code below - // m[][][]; - } - } - } - } - COM: <s> converts the string representation into </s> - diff --git a/funcom_test/31238641.txt b/funcom_test/31238641.txt deleted file mode 100644 index ede983437c9bed355426fdc774f3e3c47c7f2731..0000000000000000000000000000000000000000 --- a/funcom_test/31238641.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Set scan() { - Set setOfFixtureNamesNotInTestSuite = new TreeSet(); - setOfFixtureNamesNotInTestSuite.addAll(testFixturesFromFileSystem()); - setOfFixtureNamesNotInTestSuite.removeAll(allFixtureNamesFromTestSuite()); - setOfFixtureNamesNotInTestSuite.removeAll(excludedTests); - return setOfFixtureNamesNotInTestSuite; - } - COM: <s> scan the test suite and directories given at instance creation time </s> - diff --git a/funcom_test/31252948.txt b/funcom_test/31252948.txt deleted file mode 100644 index e09d3a8d3f0c0293a12559442d47f7f45b45793c..0000000000000000000000000000000000000000 --- a/funcom_test/31252948.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void showMessage(String newMessage, Icon icon) { - // Any change? - if (message.equals(newMessage) && messageImage == icon) - return; - - message = "<html>" + newMessage + "</html>"; - if (message == null) - message = ""; //$NON-NLS-1$ - messageImage = icon; - - if (!showingError) { - // we are not showing an error - messageLabel.setText(message); - messageImageLabel.setIcon(icon); - messageImageLabel.setVisible(messageImage != null); - messageLabel.setToolTipText(message); - } - this.getRootPane().revalidate(); - } - COM: <s> show the new message </s> - diff --git a/funcom_test/31253051.txt b/funcom_test/31253051.txt deleted file mode 100644 index cc84642cd3be692c3a61df22b5f69c496e572bc0..0000000000000000000000000000000000000000 --- a/funcom_test/31253051.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void addGroup(int index, ActionGroup actiongroup) { - if (groups.contains(actiongroup)) - return; - UpdatableMenu actionmenu = - new UpdatableMenu(source, actiongroup); - groups.add(index, actiongroup); - menuHash.put(actiongroup, actionmenu); - removeAll(); - for (int j = 0; j < index; j++) - add((UpdatableMenu) menuHash.get(groups.get(j))); - - add(actionmenu); - for (int k = index + 1; k < groups.size(); k++) - add((UpdatableMenu) menuHash.get(groups.get(k))); - } - COM: <s> inserts an code action group code top level menu into this </s> - diff --git a/funcom_test/31253055.txt b/funcom_test/31253055.txt deleted file mode 100644 index c13dfdf857ddf7fc1a119b98026e8204086f684b..0000000000000000000000000000000000000000 --- a/funcom_test/31253055.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void update(Object obj) { - boolean isPopup = isPopup(); - if (isPopup) - setEnabled(actions != null && actions.size() > 0); - else if (actions != null) { - boolean enable = false; - for (int i = 0; i < actions.size() && !enable; i++) { - Action action = (Action) actions.get(i); - if (action instanceof IUpdatableAction) { - ((IUpdatableAction) action).update(obj); - } - if (action.isEnabled()) { - enable = true; - } - } - } - } - COM: <s> this implementation of update is as follows it just judge whether </s> - diff --git a/funcom_test/31317665.txt b/funcom_test/31317665.txt deleted file mode 100644 index 78c45a58c336c94336985b946c8a2477232baba3..0000000000000000000000000000000000000000 --- a/funcom_test/31317665.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private JMenu createFileMenu() { - JMenu fileMenu = new JMenu("File"); - fileMenu.setMnemonic('f'); - - JMenuItem importFile = new JMenuItem("Import File into conference..."); - importFile.setMnemonic('i'); - fileMenu.add(importFile); - - JMenuItem saveFile = new JMenuItem("Save current document contents..."); - saveFile.setMnemonic('s'); - fileMenu.add(saveFile); - - fileMenu.add(closeAction); - - return fileMenu; - } - COM: <s> creates the file menu and all associated options to </s> - diff --git a/funcom_test/31317687.txt b/funcom_test/31317687.txt deleted file mode 100644 index 61a0ee078f800935b54572ae065a724aea688129..0000000000000000000000000000000000000000 --- a/funcom_test/31317687.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Icon getIcon(String iconFileName) { - - ImageIcon icon = new ImageIcon(ICON_SOURCE_FOLDER + "/" + iconFileName); - if(log.isWarnEnabled() && icon == null) { - log.warn("icon " + ICON_SOURCE_FOLDER + File.separator + iconFileName + " not found"); - } else { - log.info("icon " + iconFileName + " found"); - } - return icon; - } - COM: <s> loads the icon with the specified name from the default icon path </s> - diff --git a/funcom_test/31317710.txt b/funcom_test/31317710.txt deleted file mode 100644 index d3b9d8223c06e3d9fd2377b2443230547d663186..0000000000000000000000000000000000000000 --- a/funcom_test/31317710.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JScrollPane createUserList() { - userList = new UserList(); - - JScrollPane userListScrollPane = new JScrollPane(userList); - userListScrollPane.setMaximumSize(new Dimension(185, 200)); - userListScrollPane.setMinimumSize(new Dimension(185, 100)); - userListScrollPane.setPreferredSize(new Dimension(185, 150)); - - userListScrollPane.setBorder( - BorderFactory.createTitledBorder("Users:")); - return userListScrollPane; - } - COM: <s> creates the user list which is contained within the document </s> - diff --git a/funcom_test/31317826.txt b/funcom_test/31317826.txt deleted file mode 100644 index 7b75ba347b33910c3089a3c2d1354f6fa819a122..0000000000000000000000000000000000000000 --- a/funcom_test/31317826.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public User findUser(String displayName) { - User user = (User)activeUserNameToUserMap.get(displayName); - if(user == null) { - // check if they are in the inactive user list - user = (User)inactiveUserNameToUserMap.get(displayName); - } - - // if user is still null here we don't know about the user - return user; - } - COM: <s> locates and returns any known user with the specified </s> - diff --git a/funcom_test/31317855.txt b/funcom_test/31317855.txt deleted file mode 100644 index b2bc5996a0e3523fa4308310e599e84caae84c8e..0000000000000000000000000000000000000000 --- a/funcom_test/31317855.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void doBlockUpdateForLine(Line line) { - Document document = session.getDocumentModel(); - document.getAccessLock(); - - Block block = document.findBlock(line.getParentBlockID()); - JTextArea blockView = (JTextArea)blockIDToViewMap.get(line.getParentBlockID()); - - if(blockView != null) { - SwingUtilities.invokeLater(new VisualAttributeUpdater(block, blockView)); - } - - document.releaseAccessLock(); - } - COM: <s> provokes changes in the parent block of the </s> - diff --git a/funcom_test/31317894.txt b/funcom_test/31317894.txt deleted file mode 100644 index 26afb6ff493fcf04bc366d7ed073e60396c6b5c2..0000000000000000000000000000000000000000 --- a/funcom_test/31317894.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addModelListener(ModelListener listener) { - synchronized (modelListeners) { - if(dispatchingEvents) { - // in order to avoid comodification exceptions when - // iterating over the model listeners we store the - // new listener in a separate list and add it later - log.trace("iteration currently taking place, will add listener later"); - listenersToAdd.add(listener); - } else { - log.trace("adding listener"); - modelListeners.add(listener); - } - } - } - COM: <s> adds a new model listener which will receive all </s> - diff --git a/funcom_test/31317895.txt b/funcom_test/31317895.txt deleted file mode 100644 index 86bb6775c4a5b69fb372bfe5a365efeecfbf6851..0000000000000000000000000000000000000000 --- a/funcom_test/31317895.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void removeModelListener(ModelListener listener) { - synchronized (modelListeners) { - if(dispatchingEvents) { - // in order to avoid comodification exceptions when - // iterating over the model listeners we store the - // new listener in a separate list and add it later - log.trace("iteration currently taking place, will remove listener later"); - listenersToRemove.add(listener); - } else { - log.trace("removing listener"); - modelListeners.remove(listener); - } - } - } - COM: <s> removes a model listener </s> - diff --git a/funcom_test/31317901.txt b/funcom_test/31317901.txt deleted file mode 100644 index 81ee1dcee4e9930d64d2486ad9b3629988fe41ed..0000000000000000000000000000000000000000 --- a/funcom_test/31317901.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void dispatchEventToListeners(EventNotifier notifier) { - synchronized (modelListeners) { - dispatchingEvents = true; - - Iterator listenerIterator = modelListeners.iterator(); - while (listenerIterator.hasNext()) { - ModelListener listener = - (ModelListener) listenerIterator.next(); - log.trace("notifying listener " + listener); - notifier.executeEvent(listener); - } - - dispatchingEvents = false; - - log.trace("finished dispatching, applying pending listener changes"); - applyListenerChanges(); - log.trace("finished applying changes"); - } - } - COM: <s> dispatches a single event to all listeners </s> - diff --git a/funcom_test/31317923.txt b/funcom_test/31317923.txt deleted file mode 100644 index 98111f5cdb5a8f7c308876ef75abb39ea90d1c28..0000000000000000000000000000000000000000 --- a/funcom_test/31317923.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int compareTo(Object o) { - if(o instanceof NetworkTime) { - NetworkTime otherTime = (NetworkTime)o; - if(this.getJavaTime() < otherTime.getJavaTime()) { - // this time precedes the provided time - return -1; - } else if(this.getJavaTime() == otherTime.getJavaTime()) { - // this time is equal to the provided time - return 0; - } else { - // this time succeeds provided time - return 1; - } - } else { - return -1; - } - } - COM: <s> compares this network time object to the provided object </s> - diff --git a/funcom_test/31317929.txt b/funcom_test/31317929.txt deleted file mode 100644 index a814fc6d08314c3c883af42c1768ebf9210849ac..0000000000000000000000000000000000000000 --- a/funcom_test/31317929.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Line findLine(NetworkID lineID) { - assert(locked) : "attempt made to modify model when not locked"; - - log.trace("request to find line with id " + lineID); - if (lineMap.containsKey(lineID)) { - log.trace("line found"); - return (Line) lineMap.get(lineID); - } else { - log.trace("line does not exist"); - return null; - } - } - COM: <s> locates a line within the document based on its network id </s> - diff --git a/funcom_test/31317959.txt b/funcom_test/31317959.txt deleted file mode 100644 index e1fc5520cf170daf54c0f2c6962912ba9632eea0..0000000000000000000000000000000000000000 --- a/funcom_test/31317959.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private ArrayList attemptToAddOrphans() { - log.trace("attempting to add all orphans to the list"); - ArrayList addedOrphans = new ArrayList(); - int successfulAdditions; - do { - successfulAdditions = 0; - Iterator orphansIterator = orphanedLineList.iterator(); - while(orphansIterator.hasNext()) { - Line orphan = (Line)orphansIterator.next(); - if(insertLineIntoList(orphan)) { - log.trace("orphan successfully added: " + orphan); - addedOrphans.add(orphan); - orphansIterator.remove(); - successfulAdditions++; - } - } - } while(successfulAdditions != 0); - - return addedOrphans; - } - COM: <s> attempts to add all orphaned lines in the orphaned line list </s> - diff --git a/funcom_test/31317994.txt b/funcom_test/31317994.txt deleted file mode 100644 index 503494e81979ec8cff3627584ded5bbd15bcb702..0000000000000000000000000000000000000000 --- a/funcom_test/31317994.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void deleteBlock(NetworkID blockID) { - assert(locked) : "attempt made to modify model when not locked"; - log.trace("request to remove block with ID" + blockID); - - Block block = findBlock(blockID); - if (block != null) { - block.delete(); - } else { - log.error("Attempt made to delete unknown block"); - } - - eventQueue.fireEvent(new BlockDeletedNotifier(block)); - } - COM: <s> deletes a block from the document model </s> - diff --git a/funcom_test/31318011.txt b/funcom_test/31318011.txt deleted file mode 100644 index 2c3f4dc107077dd550561c3efbaa61d0aaacd41c..0000000000000000000000000000000000000000 --- a/funcom_test/31318011.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Block findBlock(NetworkID blockID) { - assert(locked) : "attempt made to modify model when not locked"; - - log.trace("request to find block with ID" + blockID); - if (blockMap.containsKey(blockID)) { - log.trace("found block"); - return (Block) blockMap.get(blockID); - } else { - log.trace("block does not exist"); - return null; - } - } - COM: <s> locates a block within the document based on its network id </s> - diff --git a/funcom_test/31318018.txt b/funcom_test/31318018.txt deleted file mode 100644 index bad2c57c6cefe386dcb737729e559dda88509d55..0000000000000000000000000000000000000000 --- a/funcom_test/31318018.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void checkIfBlockMissing(NetworkID blockID) { - log.trace("checking whether block with id " + blockID + " is missing"); - if (blockID.isNullID()) { - log.trace("this is the null network id: no need to check"); - return; - } else if (findBlock(blockID) == null) { - log.trace("adding block with id " + blockID + " to missing list"); - missingElements.addRequest(blockID); - } - } - COM: <s> checks whether the block with the specified id is missing if </s> - diff --git a/funcom_test/31318025.txt b/funcom_test/31318025.txt deleted file mode 100644 index 7e51c3692c7e8d9fae7c9b436ab646c4b7fc812c..0000000000000000000000000000000000000000 --- a/funcom_test/31318025.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public DatagramPacket getPacket() { - try { - // forces the cipher to encrypt any remaining bytes - close(); - } catch (IOException e) { - log.error("unable to flush stream to create packet!"); - } - - byte[] packetBytes = packetByteStream.toByteArray(); - return new DatagramPacket(packetBytes, packetBytes.length); - } - COM: <s> creates a new datagram packet with the encoded bytes which </s> - diff --git a/funcom_test/31318029.txt b/funcom_test/31318029.txt deleted file mode 100644 index e521c5d4b8ca0f13343aa063b0c243117fa17c91..0000000000000000000000000000000000000000 --- a/funcom_test/31318029.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void sendUpdateForID(NetworkID requestedID) { - Line l = protocolController.document.findLine(requestedID); - if(l != null) { - protocolController.sendElement(l); - } else { - Block b = protocolController.document.findBlock(requestedID); - - if(b != null) { - protocolController.sendElement(b); - } else { - log.trace("unknown element with id " + requestedID); - // it would possibly be helpful to add this element id to - // our own missing list, but it is probably already there - } - } - } - COM: <s> sends an update packet for an element identified by the </s> - diff --git a/funcom_test/31318055.txt b/funcom_test/31318055.txt deleted file mode 100644 index 48be681740d799f0a03975974ebe9b893488a0bb..0000000000000000000000000000000000000000 --- a/funcom_test/31318055.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private PacketHandler getHandlerForPacket(Packet packet) { - Integer packetType = new Integer(packet.getPacketType()); - PacketHandler handler; - - if (packetToHandlerMap.containsKey(packetType)) { - return (PacketHandler) packetToHandlerMap.get(packetType); - } else { - // If we get here, we received a supposedly valid NTE packet - // with an unknown type. - return unknownPacketHandler; - } - } - COM: <s> uses the packet to handler map to find the handler for the specified </s> - diff --git a/funcom_test/31318060.txt b/funcom_test/31318060.txt deleted file mode 100644 index 21697b5c5dc86feaf53b60772a5057b3e0f7759b..0000000000000000000000000000000000000000 --- a/funcom_test/31318060.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void handlePacket(Packet packet) { - // update the application clock with this packet - document.getAccessLock(); - - clock.updateClock(packet.getPacketTime()); - - if (packet.getSenderSourceID() == document.getLocalUser().getSourceID()) { - log.trace("received packet from self, ignoring"); - } else { - getHandlerForPacket(packet).handlePacket(packet); - } - - document.releaseAccessLock(); - - } - COM: <s> forwards the handling request on to the appropriate protocol handler </s> - diff --git a/funcom_test/31318107.txt b/funcom_test/31318107.txt deleted file mode 100644 index 42050703213f14459133c6f59948d349bccaa019..0000000000000000000000000000000000000000 --- a/funcom_test/31318107.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void sendRetransmitAdvert(short key, byte mask) { - PageChecksum checksum = new PageChecksum(controller.document); - PacketHeader header = controller.createPacketHeader(PacketConstants.RETRANSMIT_ADVERT_MESSAGE); - - RetransmitAdvertMessage advert = new RetransmitAdvertMessage(header, key, mask, controller.lastUpdateTime, checksum); - controller.networkInterface.sendPacket(advert); - } - COM: <s> sends a retransmit advert with the specified key and mask </s> - diff --git a/funcom_test/31318130.txt b/funcom_test/31318130.txt deleted file mode 100644 index e8f37b093d305421fa4a6871552dd7e4945ae6f4..0000000000000000000000000000000000000000 --- a/funcom_test/31318130.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void sendUpdatesAfter(NetworkTime time) { - document.getAccessLock(); - - SortedSet elementsAfterTime = document.getElementsUpdatedAfter(time); - Iterator elementIter = elementsAfterTime.iterator(); - - while (elementIter.hasNext()) { - ModelElement element = (ModelElement) elementIter.next(); - sendElement(element); - } - - document.releaseAccessLock(); - } - COM: <s> sends all model elements which were updated after the specified time </s> - diff --git a/funcom_test/31318139.txt b/funcom_test/31318139.txt deleted file mode 100644 index 8c2896cb465573cf779c8f1604f495ce9bac49b4..0000000000000000000000000000000000000000 --- a/funcom_test/31318139.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void handlePacket(Packet packet) { - BlockMessage blockMessage = (BlockMessage) packet; - - NetworkID blockID = blockMessage.getBlockID(); - - protocolController.updateReceived(blockMessage.getLastModified(), blockMessage.getBlockID(), PacketConstants.BLOCK_MESSAGE); - - document.getAccessLock(); - - if (document.findBlock(blockID) == null) { - addNewBlock(blockMessage); - } else { - updateBlock(blockMessage); - } - - document.releaseAccessLock(); - } - COM: <s> handles a new incoming block message packet </s> - diff --git a/funcom_test/31318149.txt b/funcom_test/31318149.txt deleted file mode 100644 index 18cb68341394f8d6aa76488c25123200c01f9595..0000000000000000000000000000000000000000 --- a/funcom_test/31318149.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: private void createNewLine(LineMessage lineMessage) { - log.trace("new line received with id " + lineMessage.getLineID()); - - User modifier = - ProtocolCommonLogic.getUserWithData( - document, - lineMessage.getModifier(), - NetworkID.NULL_NET_ID); - - Line newLine = - new Line( - lineMessage.getLineID(), - lineMessage.getBlockID(), - modifier, - lineMessage.getLastModified(), - lineMessage.getPreviousLineID(), - lineMessage.getNextLineID(), - lineMessage.getLineContents(), - lineMessage.getXPosition(), - lineMessage.getYPosition(), - lineMessage.getLineNum()); - - document.addLine(newLine); - } - COM: <s> this will add a new line to the model given the information contained </s> - diff --git a/funcom_test/31318160.txt b/funcom_test/31318160.txt deleted file mode 100644 index c7f92d82cc0e6a74bf219f2e55830a2d1c71244f..0000000000000000000000000000000000000000 --- a/funcom_test/31318160.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateClock(NetworkTime networkTime) { - if(!used) { - timeNudge = networkTime.getJavaTime() - System.currentTimeMillis(); - used = true; - } else { - NetworkTime localTime = getApplicationTime(); - long timeDiff = networkTime.getJavaTime() - localTime.getJavaTime(); - if(timeDiff > 0) { - // network time is ahead of our local time, correct the application - // clock - timeNudge += timeDiff; - } - } - } - COM: <s> gives the clock the opportunity to update itself based on a </s> - diff --git a/funcom_test/31318161.txt b/funcom_test/31318161.txt deleted file mode 100644 index 7ae1ac30e59f93b19fb9fdc4238b145f9c100415..0000000000000000000000000000000000000000 --- a/funcom_test/31318161.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void updateParentBlock(Line line) { - // apply necessary changes to parent block - Block parentBlock = document.findBlock(line.getParentBlockID()); - if (parentBlock == null) { - log.trace( - "parent block with id " - + line.getParentBlockID() - + "is unknown"); - } else { - parentBlock.setLastModified(line.getLastModified()); - parentBlock.setModifier(line.getModifier()); - document.blockModified(parentBlock); - } - } - COM: <s> updates the parent block of the line which is referenced in the </s> - diff --git a/funcom_test/31318166.txt b/funcom_test/31318166.txt deleted file mode 100644 index dee608ccf577e63ff09acea450a212a18fddf2b2..0000000000000000000000000000000000000000 --- a/funcom_test/31318166.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int queue(Packet packet, PacketDispatchListener listener) { - WaitingPacket waitingPacketInfo = new WaitingPacket(packet, nextPacketID, listener); - nextPacketID++; - - synchronized (queue) { - queue.addLast(waitingPacketInfo); - queue.notify(); - } - - return waitingPacketInfo.getPacketID(); - } - COM: <s> adds a packet to the back of the queue </s> - diff --git a/funcom_test/31318167.txt b/funcom_test/31318167.txt deleted file mode 100644 index 72401ac3337f03e4680b63f0d0098e09ac1f31d0..0000000000000000000000000000000000000000 --- a/funcom_test/31318167.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public WaitingPacket dequeue(int timeout) { - synchronized (queue) { - try { - queue.wait(timeout); - } catch (InterruptedException e) { - log.error("Interrupted while waiting for packet", e); - } - if(queue.isEmpty()) { - return null; - } else { - return (WaitingPacket) queue.removeFirst(); - } - } - } - COM: <s> removes the front element of the queue </s> - diff --git a/funcom_test/31318178.txt b/funcom_test/31318178.txt deleted file mode 100644 index 56a5dbba513e9207831e9acba3e4091f616963d3..0000000000000000000000000000000000000000 --- a/funcom_test/31318178.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void start() { - assert(packetHandler != null) : "packet handler not set yet"; - - if (!running) { - running = true; - incomingPacketListenerThread = new Thread(incomingPacketListener, - "networkListenerThread"); - incomingPacketListenerThread.start(); - - outgoingPacketSenderThread = new Thread(outgoingPacketSender, - "networkSenderThread"); - outgoingPacketSenderThread.start(); - } - } - COM: <s> starts the network interface meaning that incoming and outgoing packets </s> - diff --git a/funcom_test/31318224.txt b/funcom_test/31318224.txt deleted file mode 100644 index 4500a4b426a19abfb540b26b814a76f07c826ccd..0000000000000000000000000000000000000000 --- a/funcom_test/31318224.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getPointerTypeCode(int pointerType) { - switch(pointerType) { - case ScreenPointer.ARROW : - return ARROW_CODE; - case ScreenPointer.DELETE_BLOCK : - return DELETE_CODE; - case ScreenPointer.MOVE_BLOCK : - return MOVE_CODE; - case ScreenPointer.EDIT_BLOCK : - return EDIT_CODE; - } - - assert(false) : "unknown screen pointer type found"; - return -1; - } - COM: <s> returns the type code for the pointer type </s> - diff --git a/funcom_test/31318227.txt b/funcom_test/31318227.txt deleted file mode 100644 index 388a3fd38dcea0115840c76533a696b21e812b06..0000000000000000000000000000000000000000 --- a/funcom_test/31318227.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getPointerStyle(int pointerTypeCode) { - switch(pointerTypeCode) { - case ARROW_CODE : - return "arrow"; - case DELETE_CODE : - return "eraser"; - case MOVE_CODE : - return "hand"; - case EDIT_CODE : - return "pen"; - } - - assert (false) : "unknown screen pointer type found"; - return ""; - } - COM: <s> returns the style string for the provided type code </s> - diff --git a/funcom_test/31318314.txt b/funcom_test/31318314.txt deleted file mode 100644 index 3f14611b82f9f685df232cb7c77ab11b7c3e4d2b..0000000000000000000000000000000000000000 --- a/funcom_test/31318314.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void changeLocalUserColour(NTEColour newColour) { - documentModel.getAccessLock(); - - User localUser = documentModel.getLocalUser(); - localUser.setColour(newColour); - documentModel.userModified(localUser); - protocolController.sendUserUpdate(); - - documentModel.releaseAccessLock(); - } - COM: <s> changes the local users colour and broadcasts this change to the network </s> - diff --git a/funcom_test/31318315.txt b/funcom_test/31318315.txt deleted file mode 100644 index d4f86e650ed3b08c5e1a17abe730acd1722aa1b3..0000000000000000000000000000000000000000 --- a/funcom_test/31318315.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void changeBlockTypeFace(Block block, TypeFaceDescriptor descriptor) { - documentModel.getAccessLock(); - - block.setLastModified(applicationClock.getApplicationTime()); - block.setTypeface(descriptor); - documentModel.blockModified(block); - protocolController.sendBlockUpdate(block); - - documentModel.releaseAccessLock(); - } - COM: <s> changes the type face of the specified block and broadcasts this change </s> - diff --git a/funcom_test/31318325.txt b/funcom_test/31318325.txt deleted file mode 100644 index c998a05b0f24e0280793f4779dce3112919932f0..0000000000000000000000000000000000000000 --- a/funcom_test/31318325.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testAddThenRemoveBlock() { - document.getAccessLock(); - addElementsToDocument(); - document.deleteBlock(block.getElementID()); - Block foundBlock = document.findBlock(block.getElementID()); - assertEquals( - "Found block after deletion does not equal inserted block", - block, - foundBlock); - assertTrue(foundBlock.isDeleted()); - - Line foundLine = document.findLine(line1.getElementID()); - assertTrue(foundLine.isDeleted()); - document.releaseAccessLock(); - } - COM: <s> tests the addition of a block with a single line followed by </s> - diff --git a/funcom_test/31318336.txt b/funcom_test/31318336.txt deleted file mode 100644 index 88d601f277b01dd363af6b3834891978b7d200c0..0000000000000000000000000000000000000000 --- a/funcom_test/31318336.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testCheckNullID() { - for (int i = 0; i < 1000; i++) { - long upper32Bits = (long) ((Math.random() - 0.5) * Integer.MAX_VALUE); - long lower32Bits = 0x00000000ffffffffl; - long netid = upper32Bits << 32 | lower32Bits; - NetworkID netID = new NetworkID(netid); - - assertTrue("null network id " + Long.toHexString(netid) + " did not register as null", netID.isNullID()); - } - } - COM: <s> tests 1000 random null ids to see if they register </s> - diff --git a/funcom_test/31438246.txt b/funcom_test/31438246.txt deleted file mode 100644 index dbc8668db9453e8d097e0875ecaf6636c52f8e87..0000000000000000000000000000000000000000 --- a/funcom_test/31438246.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean equals(Object object){ - if (object == null){ - return false; - } - if (this == object){ - return true; - } - if (!(object instanceof RadiusPrincipal)){ - return false; - } - RadiusPrincipal that = (RadiusPrincipal)object; - if (this.getName().equals(that.getName())){ - return true; - } - return true; - } - COM: <s> compares the specified object with this code radius principal code </s> - diff --git a/funcom_test/31438248.txt b/funcom_test/31438248.txt deleted file mode 100644 index c613e4567f5f078231d665e8e3abea4d09cb8ca6..0000000000000000000000000000000000000000 --- a/funcom_test/31438248.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setAttribute(RadiusAttribute radiusAttribute) throws InvalidParameterException{ - if (null == radiusAttribute){ - throw new InvalidParameterException("radiusAttribute was null"); - } - validateAttribute(radiusAttribute); - synchronized(this.attributes){ - this.attributes.put(new Integer(radiusAttribute.getType()),radiusAttribute); - } - } - COM: <s> adds a radius attribute to this radius packet </s> - diff --git a/funcom_test/31438287.txt b/funcom_test/31438287.txt deleted file mode 100644 index ccfa4df01bfb9d8acab166b98527a88072ee2e28..0000000000000000000000000000000000000000 --- a/funcom_test/31438287.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean logout() throws LoginException { - this.radiusSubject.getPrincipals().remove(this.userPrincipal); - this.authenticationCommitted = false; - this.authenticationSucceeded = false; - this.userName = null; - this.radiusClient = null; - this.userPrincipal = null; - this.challengedAttempts = 0; - return true; - } - COM: <s> this method logs out a subject poss </s> - diff --git a/funcom_test/31438632.txt b/funcom_test/31438632.txt deleted file mode 100644 index ec75a237b6e9d57bce718b85d67c78c0f65f95ea..0000000000000000000000000000000000000000 --- a/funcom_test/31438632.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString(){ - StringBuffer sb = new StringBuffer("RadiusClient: HostName = "); - sb.append(this.getHostname()); - sb.append(" Port = "); - sb.append(Integer.toString(this.getAuthPort())); - sb.append(" Shared Secret = "); - sb.append(this.getSharedSecret()); - return sb.toString(); - } - COM: <s> this method returns a string representation of this </s> - diff --git a/funcom_test/31465402.txt b/funcom_test/31465402.txt deleted file mode 100644 index b676f12e696e184e6d3ca76fcfaeab2cf88d978c..0000000000000000000000000000000000000000 --- a/funcom_test/31465402.txt +++ /dev/null @@ -1,30 +0,0 @@ -TDAT: public String lookupProperty(String path) { - int offset = 0; - String key; - int i; - NestableProperties ps = this; - Object value; - while (true) { - i = path.indexOf(".", offset); - if (i > 0) { - key = path.substring(offset, i); - } else { - key = path.substring(offset); - } - offset = i + 1; - value = ps.props.get(key); - if (i > 0) { - if (value instanceof NestableProperties) - ps = (NestableProperties) value; - else - return null; - } else { - if (value instanceof String) - return (String) value; - else - return null; - } - } - } - COM: <s> looks up a property based on section name </s> - diff --git a/funcom_test/31465580.txt b/funcom_test/31465580.txt deleted file mode 100644 index 2a5101d8571d8e73559d408017a5ae398eb26183..0000000000000000000000000000000000000000 --- a/funcom_test/31465580.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public HashMap saveSetMap(java.io.OutputStream out) throws IOException { - DataOutputStream dout = new DataOutputStream(out); - HashMap rval = new HashMap(); - Tile pal[] = getTilePalette(); - dout.writeInt(pal.length); - for (int i = 0; i < pal.length; i++) { - dout.writeUTF(((ImageTile)pal[i]).getName()); - rval.put(pal[i], new Integer(i)); - } - return rval; - } - COM: <s> saves information that will allow the tile set to reconstruct </s> - diff --git a/funcom_test/31465604.txt b/funcom_test/31465604.txt deleted file mode 100644 index b23eef232583e9170eda44c0edcafed008e685bf..0000000000000000000000000000000000000000 --- a/funcom_test/31465604.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { - boolean load = ((infoflags & ABORT) != 0 || (infoflags & ALLBITS) != 0); - if (load) { - loaded = true; - if (sleeper != null) { - sleeper.interrupt(); - sleeper = null; - } - } - return !load; - } - COM: <s> image observer implementation for images drawn by this tile </s> - diff --git a/funcom_test/31465622.txt b/funcom_test/31465622.txt deleted file mode 100644 index 8b1fa5174a888e3978b5c3bbea2566190f278cc2..0000000000000000000000000000000000000000 --- a/funcom_test/31465622.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void paintComponent(Graphics g) { - if (map == null) { - g.setColor(getBackground()); - Dimension area = getSize(); - g.fillRect(0, 0, area.width, area.height); - } else { - Rectangle bounds = g.getClipBounds(); - map.drawMap(g.create(bounds.x, bounds.y, bounds.width, bounds.height), bounds); - } - } - COM: <s> draws the map </s> - diff --git a/funcom_test/31465641.txt b/funcom_test/31465641.txt deleted file mode 100644 index 2918a09c3b91a34199e4aab7b3684c59b1b42a25..0000000000000000000000000000000000000000 --- a/funcom_test/31465641.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean canClose() { - if (mapPanel == null) - return true; - if (mapPanel.isChanged()) { - int option = JOptionPane.showConfirmDialog(this, app.getString("dialog.changed.body"), app.getString("dialog.changed.title"), - JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); - if (option == JOptionPane.YES_OPTION) - saveMap(); - return option != JOptionPane.CANCEL_OPTION; - } - return true; - } - COM: <s> determines if this window is ready for closing </s> - diff --git a/funcom_test/31465655.txt b/funcom_test/31465655.txt deleted file mode 100644 index 80727ec4693d101d14738dc5f1d4e2dd1da52b2a..0000000000000000000000000000000000000000 --- a/funcom_test/31465655.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void forceClose() { - if (mapPanel != null && mapPanel.isChanged()) { - int option = JOptionPane.showConfirmDialog(this, app.getString("dialog.changed.body"), app.getString("dialog.changed.title"), - JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); - if (option == JOptionPane.YES_OPTION) - saveMap(); - } - } - COM: <s> asks the user if they want to save before this window is closed </s> - diff --git a/funcom_test/31465689.txt b/funcom_test/31465689.txt deleted file mode 100644 index 5d5a7997fb2acb468c0e1af09940bacfc5aff38d..0000000000000000000000000000000000000000 --- a/funcom_test/31465689.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addMapObjectFactory(MapObjectFactory factory) { - if (size >= factories.length) { - MapObjectFactory b[] = new MapObjectFactory[factories.length << 1]; - System.arraycopy(factories, 0, b, 0, factories.length); - factories = b; - } - factories[size++] = factory; - modcount++; - } - COM: <s> adds a map object factory to this object manager </s> - diff --git a/funcom_test/31465762.txt b/funcom_test/31465762.txt deleted file mode 100644 index 736c87135a571c11707f668952dec4a637b6d4d2..0000000000000000000000000000000000000000 --- a/funcom_test/31465762.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Dimension getPhysicalMapSize() { - if (set.getType() == TileSet.HEX_TILE) { - return new Dimension(set.getWidth() * width + set.getXOffset(), set.getYOffset() * (height - 1) + set.getHeight()); - } else - return new Dimension(set.getWidth() * width, set.getHeight() * height); - } - COM: <s> gets the physical map size the size that the map will take when </s> - diff --git a/funcom_test/31465791.txt b/funcom_test/31465791.txt deleted file mode 100644 index 61e1377ce1a946c84551ec219390a381627a342f..0000000000000000000000000000000000000000 --- a/funcom_test/31465791.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int compareTo(Object other) { - Version ver = (Version) other; - // and if the above fails, it's OK according to the Comparable interface - - // yay! - int c = major - ver.major; - if (c == 0) { - c = minor - ver.minor; - if (c == 0) { - c = patch - ver.patch; - if (c == 0) - return build - ver.build; - } - } - return c; - } - COM: <s> compares this version with another version or another object </s> - diff --git a/funcom_test/31465798.txt b/funcom_test/31465798.txt deleted file mode 100644 index ba7344f121646d55079fa550bd73763ef7e93e4e..0000000000000000000000000000000000000000 --- a/funcom_test/31465798.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void selectObject(int x, int y) { - MapObject oObj = floors[curFloor].getSelectedObject(); - floors[curFloor].selectObject(x, y); - MapObject nObj = floors[curFloor].getSelectedObject(); - if (oObj != nObj) - firePropertyChange(OBJECT_SELECTION, oObj, nObj); - } - COM: <s> selects the object at the given point or unselects all objects if </s> - diff --git a/funcom_test/31465869.txt b/funcom_test/31465869.txt deleted file mode 100644 index 2a3a1959dd1eb5be74762b9f25523bd37372da86..0000000000000000000000000000000000000000 --- a/funcom_test/31465869.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected JarFile findApplicationJAR() throws IOException { - Class clazz = getClass(); - ClassLoader loader = clazz.getClassLoader(); - URL url = loader.getResource(clazz.getName().replace('.', '/').concat(".class")); - URLConnection con = url.openConnection(); - if (con instanceof JarURLConnection) - return ((JarURLConnection)con).getJarFile(); - throw new RuntimeException("Application not loaded from JAR"); - } - COM: <s> attempts to locate the applications jar file </s> - diff --git a/funcom_test/31466009.txt b/funcom_test/31466009.txt deleted file mode 100644 index 7a3dfd4ed6bca1bf4f3a5f6e89e9f2da0972c4b4..0000000000000000000000000000000000000000 --- a/funcom_test/31466009.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void firePropertyChange(String propertyName, Object oldValue, Object newValue) { - PropertyChangeEvent event = new PropertyChangeEvent(this, propertyName, oldValue, newValue); - // we need to iterate backwards over the list - figures, don't it - for (int i = listeners.size() - 1; i >= 0; i--) - ((PropertyChangeListener) listeners.get(i)).propertyChange(event); - } - COM: <s> fires a property change event to all property change listeners </s> - diff --git a/funcom_test/31466011.txt b/funcom_test/31466011.txt deleted file mode 100644 index 69a48d070917ca14ae1af667e802742b538ce88f..0000000000000000000000000000000000000000 --- a/funcom_test/31466011.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JarEntry findEntry(JarFile file, String entryName) { - JarEntry entry; - entry = getJarEntry(file, entryName); - if (entry != null) { - //System.out.println("Original name OK."); - return entry; - } - entry = getJarEntry(file, entryName.toLowerCase()); - if (entry != null) { - //System.out.println("Lowercase name OK."); - return entry; - } - return getJarEntry(file, entryName.toUpperCase()); - } - COM: <s> due to the fact that java wants case sensitivty and windows doesnt </s> - diff --git a/funcom_test/31466025.txt b/funcom_test/31466025.txt deleted file mode 100644 index 2fb659ff3a515d99befb6fd2579e73c426f4ac3f..0000000000000000000000000000000000000000 --- a/funcom_test/31466025.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void saveMap(TileSetManager manager, java.io.OutputStream out) throws IOException { - DataOutputStream dout = new DataOutputStream(out); - dout.writeUTF("Mapper"); - dout.writeInt(3); - dout.writeInt(width); - dout.writeInt(height); - dout.writeInt(floors.length); - dout.writeInt(curFloor); - manager.saveTileset(out, set); - HashMap hmap = set.saveSetMap(out); - for (int i = 0; i < floors.length; i++) - floors[i].saveMapFloor(dout, hmap); - } - COM: <s> saves a map to an output stream </s> - diff --git a/funcom_test/31468595.txt b/funcom_test/31468595.txt deleted file mode 100644 index f5c03493fdc76dbc555940d55ae95c4b20c5bea5..0000000000000000000000000000000000000000 --- a/funcom_test/31468595.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getLength() { - - if (nodeListChanges != changes || nodeListLength == -1) { - nodeListChanges = changes; - nodeListLength = 0; - nodeListIndex = 0; - nodeListNode = firstChild; - for (NodeImpl node = firstChild; node != null; node = node.nextSibling) { - nodeListLength++; - } - } - - return nodeListLength; - - } // getLength():int - COM: <s> node list method count the immediate children of this node </s> - diff --git a/funcom_test/31468634.txt b/funcom_test/31468634.txt deleted file mode 100644 index 76893652df18d95234d172a70293295cc78bbd74..0000000000000000000000000000000000000000 --- a/funcom_test/31468634.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void synchronizeData() { - - // no need to sync in the future - syncData = false; - - // fluff data - DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument; - value = ownerDocument.getNodeValueString(fNodeIndex); - ignorableWhitespace = ownerDocument.getFirstChild(fNodeIndex) == 1; - - } // synchronizeData() - COM: <s> synchronizes the data name and value for fast nodes </s> - diff --git a/funcom_test/31468660.txt b/funcom_test/31468660.txt deleted file mode 100644 index f1a04eaeed6f3bb6c0f288e446792befa16854c9..0000000000000000000000000000000000000000 --- a/funcom_test/31468660.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Node cloneNode(boolean deep) { - - // NOTE: Cloning causing full fluffing. -Ac - DocumentImpl newdoc = new DocumentImpl(); - - if (deep) { - for(NodeImpl n = (NodeImpl)getFirstChild(); - n != null; - n = n.nextSibling) - { - newdoc.appendChild(newdoc.importNode(n,true)); - } - } - - return newdoc; - - } // cloneNode(boolean):Node - COM: <s> deep clone a document including fixing owner doc for the cloned </s> - diff --git a/funcom_test/31468735.txt b/funcom_test/31468735.txt deleted file mode 100644 index f6603b6de5eba7984e26ae3cb4c7817b8f4a1a17..0000000000000000000000000000000000000000 --- a/funcom_test/31468735.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void appendData(String data) { - - if (readOnly) { - throw new DOMExceptionImpl( - DOMException.NO_MODIFICATION_ALLOWED_ERR, - "DOM001 Modification not allowed"); - } - - if (syncData) { - synchronizeData(); - } - - // Handles mutation event generation, if any - setNodeValue(value+data); - - } // appendData(String) - COM: <s> concatenate additional characters onto the end of the data </s> - diff --git a/funcom_test/31468752.txt b/funcom_test/31468752.txt deleted file mode 100644 index c31ccb96736ca689dc6477cb87acb7dbcdf9580f..0000000000000000000000000000000000000000 --- a/funcom_test/31468752.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void synchronizeChildren() { - - // no need to synchronize again - syncChildren = false; - - // get children - DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl)this.ownerDocument; - int index = ownerDocument.getFirstChild(fNodeIndex); - while (index != -1) { - Node child = ownerDocument.getNodeObject(index); - appendChild(child); - index = ownerDocument.getNextSibling(index); - } - - } // synchronizeChildren() - COM: <s> synchronize the children </s> - diff --git a/funcom_test/31468812.txt b/funcom_test/31468812.txt deleted file mode 100644 index b9f41da5d8d99f0433c36d2b4528fabc6bd1cb91..0000000000000000000000000000000000000000 --- a/funcom_test/31468812.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getAttributeNS(String namespaceURI, String localName) { - - if (syncData) { - synchronizeData(); - } - - Attr attr = (Attr)(attributes.getNamedItemNS(namespaceURI, localName)); - return (attr == null) ? null : attr.getValue(); - - } // getAttributeNS(String,String):String - COM: <s> introduced in dom level 2 </s> - diff --git a/funcom_test/31468831.txt b/funcom_test/31468831.txt deleted file mode 100644 index 2be751162fb480f04f55930ad6e86b4631cad593..0000000000000000000000000000000000000000 --- a/funcom_test/31468831.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void putIdentifier(String idName, Element element) { - - if (element == null) { - removeIdentifier(idName); - } - - if (syncData) { - synchronizeData(); - } - - if (identifiers == null) { - identifiers = new Hashtable(); - } - - identifiers.put(idName, element); - - } // putIdentifier(String,Element) - COM: <s> registers an identifier name with a specified element node </s> - diff --git a/funcom_test/31468840.txt b/funcom_test/31468840.txt deleted file mode 100644 index 8b0dacdf67e24d872736826954baeb748cce1f93..0000000000000000000000000000000000000000 --- a/funcom_test/31468840.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getValue() { - - StringBuffer value = new StringBuffer(); - NodeImpl node = (NodeImpl)getFirstChild(); - while (node != null) { - value.append(node.getNodeValue()); - node = node.nextSibling; - } - return value.toString(); - - } // getValue():String - COM: <s> the string value of an attribute is its text representation </s> - diff --git a/funcom_test/31469080.txt b/funcom_test/31469080.txt deleted file mode 100644 index 5d7b5864b9ecbf776b09f3736f4384540a5a10ff..0000000000000000000000000000000000000000 --- a/funcom_test/31469080.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Node cloneNode(boolean deep) { - - DocumentTypeImpl newnode = (DocumentTypeImpl)super.cloneNode(deep); - - // NamedNodeMaps must be cloned explicitly, to avoid sharing them. - newnode.entities = entities.cloneMap(); - newnode.notations = notations.cloneMap(); - newnode.elements = elements.cloneMap(); - - return newnode; - - } // cloneNode(boolean):Node - COM: <s> clones the node </s> - diff --git a/funcom_test/31469095.txt b/funcom_test/31469095.txt deleted file mode 100644 index 6d599ac42515b05d79c81490c7f00f8cc30d870f..0000000000000000000000000000000000000000 --- a/funcom_test/31469095.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setReadOnly(boolean readOnly, boolean deep) { - - if (syncChildren) { - synchronizeChildren(); - } - setReadOnly(readOnly, deep); - - // set read-only property - elements.setReadOnly(readOnly, true); - entities.setReadOnly(readOnly, true); - notations.setReadOnly(readOnly, true); - - } // setReadOnly(boolean,boolean) - COM: <s> non dom subclassed to flip the entities and notations readonly switch </s> - diff --git a/funcom_test/31470890.txt b/funcom_test/31470890.txt deleted file mode 100644 index b4f54e3c80a70d8f31b4b44525aad3cad1aba20d..0000000000000000000000000000000000000000 --- a/funcom_test/31470890.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int getFirstChildElement(int nodeIndex) { - int childIndex = fDeferredDocumentImpl.getFirstChild(nodeIndex, false); - while (childIndex != -1) { - if (fDeferredDocumentImpl.getNodeType(childIndex, false) == Node.ELEMENT_NODE) { - return childIndex; - } - childIndex = fDeferredDocumentImpl.getNextSibling(childIndex, false); - } - return -1; - } - COM: <s> returns the first child element of the specified node </s> - diff --git a/funcom_test/31470909.txt b/funcom_test/31470909.txt deleted file mode 100644 index 9d0fbeddbf1529de69e0fa9db2f8dff8d394afee..0000000000000000000000000000000000000000 --- a/funcom_test/31470909.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int getNextSiblingElement(int nodeIndex) { - int siblingIndex = fDeferredDocumentImpl.getNextSibling(nodeIndex, false); - while (siblingIndex != -1) { - if (fDeferredDocumentImpl.getNodeType(siblingIndex, false) == Node.ELEMENT_NODE) { - return siblingIndex; - } - siblingIndex = fDeferredDocumentImpl.getNextSibling(siblingIndex, false); - } - return -1; - } - COM: <s> returns the next sibling element of the specified node </s> - diff --git a/funcom_test/31471226.txt b/funcom_test/31471226.txt deleted file mode 100644 index 785e0d36cf7125b577a00e8b13f985ab34b23ba8..0000000000000000000000000000000000000000 --- a/funcom_test/31471226.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void overrideDates(IceDateTime parentStartdate, IceDateTime parentStopdate) { - // cleanup this DP - if (getStartdate().before(parentStartdate)) - setStartdate(parentStartdate); - if (getStopdate().after(parentStopdate)) - setStopdate(parentStopdate); - - // cleanup all DR - Iterator it = deliveryRules.iterator(); - while (it.hasNext()) { - DeliveryRule dr = (DeliveryRule) it.next(); - dr.overrideDates(parentStartdate,parentStopdate); - } - } - COM: <s> override dates will and the start stopdate of this with the arguments </s> - diff --git a/funcom_test/31476438.txt b/funcom_test/31476438.txt deleted file mode 100644 index 7368ad7d693d0ecaecda24cfc3228fbb376fc3f8..0000000000000000000000000000000000000000 --- a/funcom_test/31476438.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void insert(DispatchScheduleItem item) - { // "producer" - synchronized (items) - { - boolean alreadyexists=false; - ListIterator it = items.listIterator(); - while (it.hasNext()) - { - DispatchScheduleItem cur = (DispatchScheduleItem)it.next(); - if (cur.equals(item)) - { - alreadyexists= true; // do not add - break; - } - if (item.getStarttime().before(cur.getStarttime())) - break; // and add - } - if (!alreadyexists) - it.add(item); - items.notifyAll(); // tell the consumer that life might have changed. - } - } - COM: <s> inserts a dispatch schedule item into this dispatch schedule </s> - diff --git a/funcom_test/31494586.txt b/funcom_test/31494586.txt deleted file mode 100644 index 12a2fb49a0174d21e3075204421ae9a2f00ff6b2..0000000000000000000000000000000000000000 --- a/funcom_test/31494586.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public Rectangle rectOfMatrixEntry(int row, int col){ - return new Rectangle(gridRect.x+(int)Math.round(col*side), gridRect.y +(int)Math.round(row*side), - (int)Math.round(side), (int)Math.round(side)); - } - COM: <s> returns a rectangle for given row col of matrix </s> - diff --git a/funcom_test/31494588.txt b/funcom_test/31494588.txt deleted file mode 100644 index 75317c944fa68c5814eaf20bb308dbb31d8c42ba..0000000000000000000000000000000000000000 --- a/funcom_test/31494588.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public GridCell gridCellOfPoint(Point point){ - GridCell cell = new GridCell(); - - int rp = point.y - gridRect.y; - if(rp < 0 || rp > gridRect.height){ - return null; - } - cell.row = (int)Math.floor(rp / side); - - int cp = point.x - gridRect.x; - if(cp < 0 || cp > gridRect.width){ - return null; - } - cell.col = (int)Math.floor(cp / side); - - return cell; - } - COM: <s> returns the grid cell corresponding to the given point in the </s> - diff --git a/funcom_test/31494605.txt b/funcom_test/31494605.txt deleted file mode 100644 index 10f8718b24b3e15c1a0b4f27984a245c86f6ef1d..0000000000000000000000000000000000000000 --- a/funcom_test/31494605.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void paintGrid(Graphics2D g, Grid grid){ - if(matrix != null){ - origTrans = ((Graphics2D)g).getTransform(); - g.translate(grid.gridRect.x, grid.gridRect.y); - drawMatrix(g, grid); - if(drawGrid){ - drawGridLines(g, grid); - } - g.translate(-grid.gridRect.x, -grid.gridRect.y); - ((Graphics2D)g).setTransform(origTrans); - }else{ - log.warn("Can't paint null matrix."); - } - } - COM: <s> paints the matrix on the given graphics </s> - diff --git a/funcom_test/31494860.txt b/funcom_test/31494860.txt deleted file mode 100644 index 445bdc786883061e2a80a0ddc15de58cff578ba7..0000000000000000000000000000000000000000 --- a/funcom_test/31494860.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected File getFileForOption(int charVal, String msg, boolean isDir){ - Object key = new Integer(charVal); - if(!cmdLineOptions.containsKey(key)){ - return null; - } - - String str = (String)cmdLineOptions.get(key); - if(str != null){ - File file = new File(str); - if((!isDir && file.isFile()) || (isDir && file.isDirectory())){ - return file; - } - } - System.err.println("Error, " + msg + " has invalid arg " + str); - usage(); - return null; - } - COM: <s> returns a regular file corresponding to the arg of </s> - diff --git a/funcom_test/31494872.txt b/funcom_test/31494872.txt deleted file mode 100644 index 4f6773b89ad2e1c66cd850ce56a584d9183e88bd..0000000000000000000000000000000000000000 --- a/funcom_test/31494872.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Album getAlbum(File dir){ - if(!dir.exists() || !dir.isDirectory()){ - System.err.println("Invalid directory specified, " + dir); - usage(); - } - log.debug("Creating album with pictureFilter " + pictureFilter + " and AlbumFilter" + albumFilter); - return new AlbumWithIncludes(dir, new BasicMediaSource(), pictureFilter, albumFilter); - } - COM: <s> tries to get an album for dir using appropriate filters </s> - diff --git a/funcom_test/31495109.txt b/funcom_test/31495109.txt deleted file mode 100644 index 13802d646717827d477f33ccce0dbe3e81156e05..0000000000000000000000000000000000000000 --- a/funcom_test/31495109.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String toString() { - if (value == null) return "Not Rated"; - else{ - double val = value.doubleValue(); - if (val == 0) return "0 -- Poor"; - if (val == 2) return "2 -- Fair"; - if (val == 5) return "5 -- Good"; - if (val == 7) return "7 -- Better"; - if (val == 10) return "10 -- Best"; - else return ""+value; - } - } - COM: <s> returns a string representing the current value of the rating </s> - diff --git a/funcom_test/31495122.txt b/funcom_test/31495122.txt deleted file mode 100644 index d4c96fc1083216b334d7f321d903ebb8f41615e2..0000000000000000000000000000000000000000 --- a/funcom_test/31495122.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected BasicAlbum(Album parent, File dir, MediaSource picSource, PictureFilter picFilter, AlbumFilter albFilter){ - this.picFilter = picFilter; - this.albumFilter = albFilter; - this.dir = dir; - this.picSource = picSource; - this.parentAlbum = parent; - - if(!dir.isDirectory()){ - throw new IllegalArgumentException("Error, can't construct BasicAlbum on non-directory: " + dir + " Check that the filename is valid."); - } - - } - COM: <s> internal constructor for making subalbums and that other </s> - diff --git a/funcom_test/31495198.txt b/funcom_test/31495198.txt deleted file mode 100644 index 8be0411d30ab170ee65903682165afdebef370fc..0000000000000000000000000000000000000000 --- a/funcom_test/31495198.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void run() { - int numPics = AlbumUtil.getNumPicsRecursive(rootAlbum); - infoStatus.setTotalNumTasks(numPics); - processAlbum(rootAlbum); - log.debug("Done processing, writing final index."); - write(); - if (keepGoing) { - infoStatus.allTasksCompleted(); - } - log.debug("Processed album with " + numPics + " pictures"); - log.debug("PictureSource now contains " + targetSource.size() + " pictures."); - - } - COM: <s> start the image processing in a new thread </s> - diff --git a/funcom_test/31495341.txt b/funcom_test/31495341.txt deleted file mode 100644 index 6e6fc90c73172bf268396e25dd88345c884f0678..0000000000000000000000000000000000000000 --- a/funcom_test/31495341.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void addProperties(String key, BProperties toBeAdded) { - Iterator iter = toBeAdded.entrySet().iterator(); - while(iter.hasNext()){ - Map.Entry entry = (Map.Entry)iter.next(); - String newKey = key +"."+ entry.getKey(); - String valueString = getObjectsString(entry.getValue()); - if(this.containsKey(newKey)){ - log.error("The this BProperty set already contains key " + newKey); - }else{ - super.setProperty(newKey, valueString); - } - } - } - COM: <s> adds all the peoperties in the bproperties to be added to the </s> - diff --git a/funcom_test/31495664.txt b/funcom_test/31495664.txt deleted file mode 100644 index 00f95b536e914957e19960e7f395c1ee4b33c4e2..0000000000000000000000000000000000000000 --- a/funcom_test/31495664.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private LinkedList removeAdjacent(LinkedList queryList){ - ListIterator iter = queryList.listIterator(); - ZOrderRange prev = null; - while(iter.hasNext()){ - ZOrderRange crnt = (ZOrderRange) iter.next(); - if(prev != null && (prev.max+1) >= crnt.min){ - int nmax = crnt.max; - iter.remove(); // remove current - prev.max = nmax; - }else{ - prev = crnt; - } - } - return queryList; - } - COM: <s> scan the list and merge adjacent queries </s> - diff --git a/funcom_test/31495695.txt b/funcom_test/31495695.txt deleted file mode 100644 index fb33a330594dc82dfdfdb986fbb3edb74124ecbf..0000000000000000000000000000000000000000 --- a/funcom_test/31495695.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void enqueue(int item, double priority){ - if(!inQueue.get(item)){ - q.enqueue(item); - inQueue.set(item); - priorities[item] = priority; - }else{ - priorities[item] = (priority > priorities[item]) ? priority : priorities[item]; - } - } - COM: <s> inserts the item at or approximately at the given priority </s> - diff --git a/funcom_test/31496645.txt b/funcom_test/31496645.txt deleted file mode 100644 index d5031bd3ae1dea9b12acb66c67e18e40fa2ef0a6..0000000000000000000000000000000000000000 --- a/funcom_test/31496645.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void fireObjectVisible(int objectNum, boolean isVisible) { - if (isVisible) { - fireEvent(new ObjectModelEvent(this, objectNum, objectNum, - ObjectModelEvent.INSERT)); - } else { - fireEvent(new ObjectModelEvent(this, objectNum, objectNum, - ObjectModelEvent.DELETE)); - } - } - COM: <s> this is just a helper method that just calls fire object insert if </s> - diff --git a/funcom_test/31496751.txt b/funcom_test/31496751.txt deleted file mode 100644 index a88802bbb694df33d4ecfc4377133f0b023eef38..0000000000000000000000000000000000000000 --- a/funcom_test/31496751.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setData(int index, String fieldKey, Object value) { - AlbumObjectDescriptionInfo info = - getAlbumObjectAtUnfilteredIndex(index).getDescriptionInfo(); - info.setData(fieldKey, value); - - if(JigsPrefs.getInt(DesqueConstants.SAVE_STYLE) == - DesqueConstants.SAVEALWAYS) info.saveFile(); - else changesMade = true; - } - COM: <s> do not use </s> - diff --git a/funcom_test/31499752.txt b/funcom_test/31499752.txt deleted file mode 100644 index 16f47c5c4624bca2209b091bfca0763529e851f1..0000000000000000000000000000000000000000 --- a/funcom_test/31499752.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public MineralIndexedIntArray minus(MineralIndexedIntArray array) { - int[] operand = array.asArray(); - int[] result = new int[Mineral.NR]; - for (int i = 0; i < Mineral.NR; i++) { - int delta = this.minerals[i]-operand[i]; - result[i]=(delta>0?delta:0); - } - - return new MineralIndexedIntArray(result); - } - COM: <s> if for some mineral the difference is negative the result is 0 </s> - diff --git a/funcom_test/31696447.txt b/funcom_test/31696447.txt deleted file mode 100644 index ba6f55bb897e020ac657d4338ed866ad28b76b65..0000000000000000000000000000000000000000 --- a/funcom_test/31696447.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testNegativeParseCases() { - verbose("--->Negative parse tests START"); - for (int i = 0; i < negativeParseTests.length; i++) { - parseFilter(negativeParseTests[i], false); - } - - // - // This used to fail until the parser was rewritten with the stack - // stuff so that it can clean up partially parsed expression trees. - checkDelete(); - - } - COM: <s> unit test 1 negative parse tests to make sure the parser detects </s> - diff --git a/funcom_test/31741255.txt b/funcom_test/31741255.txt deleted file mode 100644 index bb7b4ee7ff40665891ebc66c2188b7f16a2d516f..0000000000000000000000000000000000000000 --- a/funcom_test/31741255.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private File translateURI() throws HTTPException { - String relURI = getURI().substring(getURI().indexOf('/', 7)); - if (getURI().indexOf("..", 1) != -1) { - throw new HTTPException(HTTP.NOT_FOUND); - } - return new File(Tornado.getConfig().getDocumentRoot() + relURI); - } - COM: <s> translates the uri to a filename </s> - diff --git a/funcom_test/31741266.txt b/funcom_test/31741266.txt deleted file mode 100644 index c1e63895d2aeefce9def319c2e3696c55b7bc430..0000000000000000000000000000000000000000 --- a/funcom_test/31741266.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void startHeader(Request request) { - try { - sendStatus(HTTP.OK); - sendBasicHeaders(); - sendHeaderEntry("Content-Length: " + - request.getRequestFile().length()); - sendHeaderEntry("Last-Modified: " - + HTTP.formatDate(new Date(request.getRequestFile() - .lastModified()))); - sendHeaderEntry("Content-Type: " + request.getMimeType()); - - - } catch (IOException e) { - e.printStackTrace(); - } - } - COM: <s> sends the headers about the uri the client asked for </s> - diff --git a/funcom_test/31787964.txt b/funcom_test/31787964.txt deleted file mode 100644 index ebbe825fb37ab6a35ff10f42c5c044864174428b..0000000000000000000000000000000000000000 --- a/funcom_test/31787964.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Context getContext() throws MessagerException { - try { - Hashtable properties = new Hashtable(); - properties.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY_CLASS); - properties.put(Context.PROVIDER_URL, JNDI_PROVIDER_URL); - Context context = new InitialContext(properties); - return context; - } catch (NamingException e) { - throw new MessagerException("Could not get JNDI Context"); - } - } - COM: <s> create a jndi context for jms topic lookups </s> - diff --git a/funcom_test/31788035.txt b/funcom_test/31788035.txt deleted file mode 100644 index 142bcdf39184da13b6d151acd95e5622b52809a0..0000000000000000000000000000000000000000 --- a/funcom_test/31788035.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void removeSubscriber(Messageable node,String msgClass) { - String key=msgClass.intern(); - ArrayList al=(ArrayList)(getSubTable().get(key)); - if(al!=null) { - int index=al.indexOf(node); - if(index>=0) { - al.remove(index); } } - } - COM: <s> remove the specified node from our list of subscribers </s> - diff --git a/funcom_test/31788200.txt b/funcom_test/31788200.txt deleted file mode 100644 index 3975bdadc61c9d1d8908e05bd3546c2ed215ff98..0000000000000000000000000000000000000000 --- a/funcom_test/31788200.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Messageable getNode(String instanceName) { - if((instanceName==null)||(instanceName.equals(""))) { - return null; } - String key=instanceName.intern(); - Messageable node=(Messageable)(getDictionary().get(key)); - if(node!=null) { - return node; } - node=findNodeForName(key,getHelperNodes()); - return node; - } - COM: <s> using the dictionary and the node tree find the messageable </s> - diff --git a/funcom_test/31788225.txt b/funcom_test/31788225.txt deleted file mode 100644 index d282c33384dc7a26483b9604d4f2bdfb638b00da..0000000000000000000000000000000000000000 --- a/funcom_test/31788225.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected String getStdMBeanClassFile(SandDecl sd) { - String srcname=sd.getSourceFile().toString(); - String srcdir=srcname.substring(0,srcname.lastIndexOf(File.separator)+1); - return srcdir + getStdMBeanClass(sd.getClassDoc()) + ".java"; - } - COM: <s> return the name of the standard mbean class source file </s> - diff --git a/funcom_test/31788234.txt b/funcom_test/31788234.txt deleted file mode 100644 index f4ae202997f9f40138e27ec590215cc5caaa1ee5..0000000000000000000000000000000000000000 --- a/funcom_test/31788234.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected String getStdMBeanInterfaceFile(SandDecl sd) { - String srcname=sd.getSourceFile().toString(); - String srcdir=srcname.substring(0,srcname.lastIndexOf(File.separator)+1); - return srcdir + getStdMBeanInterface(sd.getClassDoc()) + ".java"; - } - COM: <s> return the name of the standard mbean interface source file </s> - diff --git a/funcom_test/31788502.txt b/funcom_test/31788502.txt deleted file mode 100644 index 277428e16758e3553c33730ecf3226b1c3ddaeb3..0000000000000000000000000000000000000000 --- a/funcom_test/31788502.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void dumpTables(PrintStream out,ClassDoc cd,boolean recursiveCall) { - if(!isRootStruct(cd)) { - dumpTables(out,cd.superclass(),true); } - String tablename=getMappedStructName(cd); - if(recursiveCall) { - tablename+=", "; } - out.print(tablename); - } - COM: <s> if recursive call is false then we have no trailing comma after </s> - diff --git a/funcom_test/31788590.txt b/funcom_test/31788590.txt deleted file mode 100644 index 6088e7df4b28a8f4260df4bbcd45082a8e730a47..0000000000000000000000000000000000000000 --- a/funcom_test/31788590.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void initFormManager() { - if(formManager==null) { - formManager=new StandardFormManager(); - XHTMLScreenAdaptor xsa=(XHTMLScreenAdaptor)getScreenAdaptor(); - try { - formManager.initFormAdaptor(xsa.getFormAdaptor()); - } catch(Exception e) { - debugout("initFormManager failure: " + e); - } } - } - COM: <s> initializer for form manager </s> - diff --git a/funcom_test/31788600.txt b/funcom_test/31788600.txt deleted file mode 100644 index ea7c7f19ea3283420c48171e068b5bbd4a349c02..0000000000000000000000000000000000000000 --- a/funcom_test/31788600.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected String getSandHome(File baseDir) { - String sandhome=baseDir.toString(); - sandhome=sandhome.substring(0,sandhome.lastIndexOf(File.separator)); - sandhome=sandhome.substring(0,sandhome.lastIndexOf(File.separator)); - sandhome=sandhome.substring(0,sandhome.lastIndexOf(File.separator)); - return sandhome; - } - COM: <s> return the top level sand directory with no trailing file separator </s> - diff --git a/funcom_test/31788609.txt b/funcom_test/31788609.txt deleted file mode 100644 index 99ea1715b62016e251ffa45c9a036abec124e3d0..0000000000000000000000000000000000000000 --- a/funcom_test/31788609.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void getSandProjectsRec(ArrayList al,SandProject proj) { - if(proj==null) { - return; } - al.add(proj); - SandProject[] downstream=proj.getRequiredBy(); - for(int i=0;i<downstream.length;i++) { - getSandProjectsRec(al,downstream[i]); } - } - COM: <s> recursive workhorse for get sand projects that walks the project </s> - diff --git a/funcom_test/31788623.txt b/funcom_test/31788623.txt deleted file mode 100644 index 8710787d1a50f3a0647e92e28a73c198d6fd46c4..0000000000000000000000000000000000000000 --- a/funcom_test/31788623.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected String getTitleForElem(int elemindex) { - String retval=webelems[elemindex]; - retval=retval.substring(retval.indexOf(sandhome)+ - sandhome.length()); - retval=retval.substring(0,retval.lastIndexOf(indexfile)); - if(retval.equals("")) { - retval="sand"; } - return retval; - } - COM: <s> given a web element index return the title for it </s> - diff --git a/funcom_test/31788644.txt b/funcom_test/31788644.txt deleted file mode 100644 index 26bd80c3c288c8b6c2b54b0ff631e82b85265c4d..0000000000000000000000000000000000000000 --- a/funcom_test/31788644.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected String getCoreSpec(int elemindex) { - String currloc=webelems[elemindex]; - currloc=currloc.substring(0,currloc.lastIndexOf(indexfile)); - currloc=currloc.substring(sandhome.length()); - if(currloc.equals("")) { - return currloc; } - currloc=currloc.substring(1); //kill first slash - return currloc; - } - COM: <s> returns the core specification for a webelem </s> - diff --git a/funcom_test/31788651.txt b/funcom_test/31788651.txt deleted file mode 100644 index c571e0c37682cf5cba68cf8ed7cc492309c8f566..0000000000000000000000000000000000000000 --- a/funcom_test/31788651.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected String makelink(int rootindex,int targindex,String val) { - String relroot=getRelSandHome(rootindex); - String target=getCoreSpec(targindex); - if(!target.equals("")) { - target="/" + target; } - String linkurl=relroot + target + indexfile; - return "<a href=\"" + linkurl + "\">" + val + "</a>"; - } - COM: <s> return a hyperlink for the given entry </s> - diff --git a/funcom_test/31788763.txt b/funcom_test/31788763.txt deleted file mode 100644 index 35fe3e4ddae978e3249201cd8e78b5959a51b357..0000000000000000000000000000000000000000 --- a/funcom_test/31788763.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addEnvFile(File file) { - File[] oldfiles=getEnvFiles(); - File[] newfiles=new File[oldfiles.length+1]; - System.arraycopy(oldfiles,0,newfiles,0,oldfiles.length); - newfiles[oldfiles.length]=file; - setEnvFiles(newfiles); - } - COM: <s> add a file to the list of required files </s> - diff --git a/funcom_test/31788771.txt b/funcom_test/31788771.txt deleted file mode 100644 index b6a28a41c37cf115e319d9d250cb44fb478f38e2..0000000000000000000000000000000000000000 --- a/funcom_test/31788771.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addUIDeployment(SandUIDeployment uidep) { - SandUIDeployment[] olduis=getSandUIDeployments(); - SandUIDeployment[] newuis=new SandUIDeployment[olduis.length+1]; - System.arraycopy(olduis,0,newuis,0,olduis.length); - newuis[olduis.length]=uidep; - setSandUIDeployments(newuis); - } - COM: <s> add a sand uideployment to our list of uis for this project </s> - diff --git a/funcom_test/31788809.txt b/funcom_test/31788809.txt deleted file mode 100644 index d80418467ad930f13a644431fd5814ec7ea8b398..0000000000000000000000000000000000000000 --- a/funcom_test/31788809.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public SandDeclTreeWrapper removeChild(SandDeclTreeWrapper sdtw) { - if(sdtw==null) { - return null; } - if((children==null)||(children.length==0)) { - return null; } - for(int i=0;i<children.length;i++) { - if(children[i].equals(sdtw)) { - return removeChild(i); } } - return null; - } - COM: <s> remove the given child </s> - diff --git a/funcom_test/31788838.txt b/funcom_test/31788838.txt deleted file mode 100644 index ec6128203612a38b55dd55dac31adec4eb36202f..0000000000000000000000000000000000000000 --- a/funcom_test/31788838.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void buildFinished(BuildEvent event) { - if (errorList.size() > 0 && event.getException() == null) { - event.setException(new BuildException( - "Warnings and/or errors found in build output:\n" + - getErrors())); - } - super.buildFinished(event); - } - COM: <s> fail the build if there were any warnings or errors </s> - diff --git a/funcom_test/31788842.txt b/funcom_test/31788842.txt deleted file mode 100644 index 7a1880c7b96e6552af117c176a47739ecf98a3c1..0000000000000000000000000000000000000000 --- a/funcom_test/31788842.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected String getErrors() { - StringBuffer buff = new StringBuffer(); - int size = errorList.size(); - for (int index = 0; index < size && index < 100; index++) { - buff.append((String) errorList.get(index) + "\n"); - } - return buff.toString(); - } - COM: <s> return a list of the errors warnings in the build if any </s> - diff --git a/funcom_test/31789008.txt b/funcom_test/31789008.txt deleted file mode 100644 index 98ca8f4c32ae965d5b5e3d903291242d0def2f22..0000000000000000000000000000000000000000 --- a/funcom_test/31789008.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean genJarExists() { - String filespec=getAntProject().getBaseDir().toString() + - File.separator + "env" + File.separator + - getAntProject().getName() + "_gen.jar"; - File genJar=new File(filespec); - return genJar.exists(); - } - COM: <s> return true if the generator jar file is found false otherwise </s> - diff --git a/funcom_test/31789009.txt b/funcom_test/31789009.txt deleted file mode 100644 index 4d3021e08ea0f782fdb963169ab6670fb5416231..0000000000000000000000000000000000000000 --- a/funcom_test/31789009.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setBuildRoot(SandProject newRoot) { - if((buildRoot==null)&&(newRoot!=null)&&(getBuildTrigger()==null)) { - setBuildTrigger(newRoot); } - //System.out.println("SandBuildDriver.setBuildRoot set to " + - // newRoot.getName()); - buildRoot=newRoot; - } - COM: <s> mutator for build root </s> - diff --git a/funcom_test/31789051.txt b/funcom_test/31789051.txt deleted file mode 100644 index a2373df50007f6352a9543369c588408eb295fd4..0000000000000000000000000000000000000000 --- a/funcom_test/31789051.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isEquivalent(SandMessage sm) { - if(!(sm instanceof SandAttrVal)) { - return false; } - SandAttrVal msg=(SandAttrVal)sm; - if(!(attr.equals(msg.getAttr()))) { - return false; } - if(!(val.equals(msg.getVal()))) { - return false; } - return true; - } - COM: <s> declared field equivalence check </s> - diff --git a/funcom_test/31789085.txt b/funcom_test/31789085.txt deleted file mode 100644 index c589b9ea1f6ef3bbab362fddf70b54640b53074e..0000000000000000000000000000000000000000 --- a/funcom_test/31789085.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public URL getToolsURL() { - File toolsjarFile=new File(getToolsJarName()); - URL toolsjarURL=null; - try { - toolsjarURL=toolsjarFile.toURI().toURL(); - } catch(java.net.MalformedURLException e) { - throw new BuildException("bad url: " + e); - } - return toolsjarURL; - } - COM: <s> return the tools url </s> - diff --git a/funcom_test/31789181.txt b/funcom_test/31789181.txt deleted file mode 100644 index 0e022b8a4980e84ab8416a6b412ac8e461c3a687..0000000000000000000000000000000000000000 --- a/funcom_test/31789181.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String keyToTrans(String keyVal) { - if(keyVal==null) { - return ""; } - for(int i=0;i<keyValues.length;i++) { - if(keyVal.equals(keyValues[i])) { - return transValues[i]; } } - return ""; - } - COM: <s> given a value from key values return the associated value from </s> - diff --git a/funcom_test/31789184.txt b/funcom_test/31789184.txt deleted file mode 100644 index 23297751159a13a0af09a0c1d4a2b303bcb55c72..0000000000000000000000000000000000000000 --- a/funcom_test/31789184.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String transToKey(String transVal) { - if(transVal==null) { - return ""; } - for(int i=0;i<transValues.length;i++) { - if(transVal.equals(transValues[i])) { - return keyValues[i]; } } - return ""; - } - COM: <s> given a value from trans values return the associated value from </s> - diff --git a/funcom_test/31789186.txt b/funcom_test/31789186.txt deleted file mode 100644 index 2e5b0da6faa82f01d03113e16e59384692e93509..0000000000000000000000000000000000000000 --- a/funcom_test/31789186.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected boolean nodoc() { - SandProject sp=getBuildTrigger(); - if(sp!=null) { - String nodocstr=sp.getAntProject().getProperty("nodoc"); - if((nodocstr!=null)&&(nodocstr.trim().equalsIgnoreCase("true"))) { - return true; } } - return false; - } - COM: <s> if the nodoc flag is set then return true </s> - diff --git a/funcom_test/31789204.txt b/funcom_test/31789204.txt deleted file mode 100644 index 0371fb58ab0b7ef857f099ba3062eb79ce548c64..0000000000000000000000000000000000000000 --- a/funcom_test/31789204.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void trimLastUpdate() { - if(updates==null) { - return; } - SandUpdateMessage[] sums=updates.getUpdates(); - SandUpdateMessage[] trimmed=new SandUpdateMessage[sums.length-1]; - System.arraycopy(sums,0,trimmed,0,sums.length-1); - updates.setUpdates(trimmed); - } - COM: <s> removes the last update message from the aggregate </s> - diff --git a/funcom_test/31789259.txt b/funcom_test/31789259.txt deleted file mode 100644 index 17a4ee9efba6935d2208e3e2cfdc03cfba585834..0000000000000000000000000000000000000000 --- a/funcom_test/31789259.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void dumpDependencyGraph(SandProject proj,String indent) { - log(indent + proj.getName()); - SandProject[] downstream=proj.getRequiredBy(); - for(int i=0;i<downstream.length;i++) { - dumpDependencyGraph(downstream[i],indent + " "); } - } - COM: <s> recursively dump out the given root and its downstream projects </s> - diff --git a/funcom_test/31789275.txt b/funcom_test/31789275.txt deleted file mode 100644 index 34e46ed29e658ca34928bfab0ece88a45dbdf2b8..0000000000000000000000000000000000000000 --- a/funcom_test/31789275.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setGenJarDir(File genJarDir,SandProject proj) { - proj.getAntProject().setProperty("genJarDir",genJarDir.toString()); - SandProject[] downstream=proj.getRequiredBy(); - for(int i=0;i<downstream.length;i++) { - setGenJarDir(genJarDir,downstream[i]); } - } - COM: <s> recursively walk the given project tree setting the gen jar dir </s> - diff --git a/funcom_test/31789287.txt b/funcom_test/31789287.txt deleted file mode 100644 index 3cb4dff4b61491d055bdd7c17a5a7a1804ae917e..0000000000000000000000000000000000000000 --- a/funcom_test/31789287.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setBuildTriggerDir(String buildTriggerDir,SandProject proj) { - proj.getAntProject().setProperty("buildTriggerDir",buildTriggerDir); - SandProject[] downstream=proj.getRequiredBy(); - for(int i=0;i<downstream.length;i++) { - setBuildTriggerDir(buildTriggerDir,downstream[i]); } - } - COM: <s> recursively walk the given project tree setting the build trigger dir </s> - diff --git a/funcom_test/31789333.txt b/funcom_test/31789333.txt deleted file mode 100644 index 9a4a3e09d1d1cbdbe01601136623cacb600ca03f..0000000000000000000000000000000000000000 --- a/funcom_test/31789333.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getParam(String key) { - if(getParameterMap()==null) { - return null; } - String[] vals=(String[])(getParameterMap().get(key)); - if((vals==null)||(vals.length<1)) { - return null; } - return vals[0]; - } - COM: <s> utility for retrieving single valued string parameters from our </s> - diff --git a/funcom_test/31789373.txt b/funcom_test/31789373.txt deleted file mode 100644 index 60261101533b00219ca85489623f682ef9c8220c..0000000000000000000000000000000000000000 --- a/funcom_test/31789373.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setSupportedActions(boolean[] val) { - if((val==null)||(val.length!=ACTION_HELP+1)) { - return; } //bad arg - System.arraycopy(val,0,getSupportedActions(),0,ACTION_HELP+1); - } - COM: <s> mutator for supported actions </s> - diff --git a/funcom_test/31789448.txt b/funcom_test/31789448.txt deleted file mode 100644 index aac8ed3b8be650b624eb6b73a5468ba9854a0715..0000000000000000000000000000000000000000 --- a/funcom_test/31789448.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected long specifiedUniqueID(SandAttrVal[] matches) { - long retval=0; - for(int i=0;i<matches.length;i++) { - if(matches[i].getAttr().equals("uniqueID")) { - retval=StringUtil.safeGetLongValue(matches[i].getVal()); } } - return retval; - } - COM: <s> return the unique id specified in the matches or zero if no </s> - diff --git a/funcom_test/31789560.txt b/funcom_test/31789560.txt deleted file mode 100644 index 9e4c2111d33e190567aa99d8c3a3245f2a307d77..0000000000000000000000000000000000000000 --- a/funcom_test/31789560.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getModePath() { - String retval=""; - for(int i=0;i<modeStack.length;i++) { - retval+=modeStackValueToLabel(modeStack[i]); - if(i+1<modeStack.length) { - retval+="."; } } - return retval; - } - COM: <s> returns the mode stack array as a dot separated string </s> - diff --git a/funcom_test/31789586.txt b/funcom_test/31789586.txt deleted file mode 100644 index 69a0beee42abe6a26f1bee7432e6e5a538d21b57..0000000000000000000000000000000000000000 --- a/funcom_test/31789586.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected String getSrcBase(SandDecl sd) { - String srcbase=sd.getSourceFile().toString(); - srcbase=srcbase.substring(0,srcbase.lastIndexOf(File.separator)); - srcbase=srcbase.substring(0,srcbase.lastIndexOf("structs")); - srcbase+="sandmessages" + File.separator; - return srcbase; - } - COM: <s> return the base of the filename for where the message source </s> - diff --git a/funcom_test/31789599.txt b/funcom_test/31789599.txt deleted file mode 100644 index 5a82d38f25a6a31d43bf62e0724291b5e6692745..0000000000000000000000000000000000000000 --- a/funcom_test/31789599.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected String getPackageName(ClassDoc cd) { - String retval=cd.qualifiedName(); - retval=retval.substring(0,retval.lastIndexOf(".")); //kill .classname - retval=retval.substring(0,retval.lastIndexOf(".")); //kill ".structs" - retval+=".sandmessages"; - return retval; - } - COM: <s> returns the package declaration </s> - diff --git a/funcom_test/31789640.txt b/funcom_test/31789640.txt deleted file mode 100644 index 14cd17af1ce20d3422c2f0ffd435829b8c1cb685..0000000000000000000000000000000000000000 --- a/funcom_test/31789640.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addTag(Tag tag) { - String key=tag.name().intern(); - ArrayList al=(ArrayList)getTagMap().get(key); - if(al==null) { - al=new ArrayList(); - getTagMap().put(key,al); } - al.add(tag); - } - COM: <s> add a tag to our collection </s> - diff --git a/funcom_test/31789695.txt b/funcom_test/31789695.txt deleted file mode 100644 index 4012f96625f84ad254f52462643bd36993031ea8..0000000000000000000000000000000000000000 --- a/funcom_test/31789695.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void writeSubArray(PrintStream out,String key,TreeSet ts) { - out.print(" { \"" + key + "\""); - Iterator subiter=ts.iterator(); - while(subiter.hasNext()) { - String subclass=(String)subiter.next(); - out.print(",\"" + subclass + "\""); } - out.print("}"); - } - COM: <s> given a tree set write out the array initializer corresponding </s> - diff --git a/funcom_test/31789712.txt b/funcom_test/31789712.txt deleted file mode 100644 index 51e9895ee88974b6ad7d76f5731b72de1c926ddd..0000000000000000000000000000000000000000 --- a/funcom_test/31789712.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected boolean isScreenSecured(SandUI sandui,Screen screen) { - if(screen.getSecurity()==Screen.SECURITY_SECURE) { - return true; } - if((screen.getSecurity()==Screen.SECURITY_DEFAULT)&& - (sandui.getDefaultSecurity()==SandUI.DEFAULTSECURITY_SECURE)) { - return true; } - return false; - } - COM: <s> return true if this screen is secure false otherwise </s> - diff --git a/funcom_test/31789741.txt b/funcom_test/31789741.txt deleted file mode 100644 index 9695ce53c0dbc0dcfe1e8413856fd1399b54c1d2..0000000000000000000000000000000000000000 --- a/funcom_test/31789741.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected String getValForAttr(String attr,SandAttrVal[] attrvals) { - if((attr==null)||(attrvals==null)) { - return ""; } - for(int i=0;i<attrvals.length;i++) { - if(attrvals[i].getAttr().equals(attr)) { - return attrvals[i].getVal(); } } - return ""; - } - COM: <s> looks up the specified attr in the attrvals and returns the val </s> - diff --git a/funcom_test/31789908.txt b/funcom_test/31789908.txt deleted file mode 100644 index 3d71bac5031824eb61cd45ba5dba8f7baece83b8..0000000000000000000000000000000000000000 --- a/funcom_test/31789908.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isFindCollectionView() { - if((getMode()==MODESTACK_LISTING)&& - (sizeofModeStack()>=2)&& - (getModeStack(sizeofModeStack()-2)==MODESTACK_FINDING)&& - (getFindCollection()!=null)) { - return true; } - return false; - } - COM: <s> return true if we are currently displaying a find collection </s> - diff --git a/funcom_test/31789966.txt b/funcom_test/31789966.txt deleted file mode 100644 index 5efa0acd26bd4af5ee1596824861e8c701e4128e..0000000000000000000000000000000000000000 --- a/funcom_test/31789966.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addHours(int hours) { - int days=(hours + remainderHours)/hoursPerDay; - remainderHours=(hours + remainderHours)%hoursPerDay; - for(int i=0;i<days;i++) { - skipHolidays(); - add(DAY_OF_YEAR,1); - skipHolidays(); } - } - COM: <s> add the given number of hours to the current target date </s> - diff --git a/funcom_test/31789969.txt b/funcom_test/31789969.txt deleted file mode 100644 index e4097f72782dcbb1dfcc97255139a98be70a8c6e..0000000000000000000000000000000000000000 --- a/funcom_test/31789969.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isHoliday() { - if(get(DAY_OF_WEEK)==SATURDAY) { - return true; } - if(get(DAY_OF_WEEK)==SUNDAY) { - return true; } - for(int j=0;j<holidays.length;j++) { - if(holidays[j].getTime()==getTimeInMillis()) { - return true; } } - return false; - } - COM: <s> return true if this is a holiday false otherwise </s> - diff --git a/funcom_test/31790896.txt b/funcom_test/31790896.txt deleted file mode 100644 index 65a7c152c8442263395e85f9b2f8e61f76266548..0000000000000000000000000000000000000000 --- a/funcom_test/31790896.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String normalizeDirString(String dirspec) { - if((dirspec.indexOf("/")>=0)&&(File.separator.equals("\\"))) { - dirspec=dirspec.replace('/','\\'); } - if(!dirspec.endsWith(File.separator)) { - dirspec+=File.separator; } - return dirspec; - } - COM: <s> make sure the given directory specification works for our current </s> - diff --git a/funcom_test/31897999.txt b/funcom_test/31897999.txt deleted file mode 100644 index 8026a11282d9a714f6175db2387e30bab729f5dd..0000000000000000000000000000000000000000 --- a/funcom_test/31897999.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean _retrieveDbData( String condi, String order ) { - try { - setDbDataVector(getDbGenDriver().retrieve( createDbData(), condi, order )); - - return true; - } catch ( Exception ex ) { - System.out.println( "Retrieve db data error: " + ex.getMessage()); - } - - return false; - } - COM: <s> this will retrieve data from database by sending a sql in format </s> - diff --git a/funcom_test/31898043.txt b/funcom_test/31898043.txt deleted file mode 100644 index c22233dd2048a1fbd04a79245c5728252d3f42cf..0000000000000000000000000000000000000000 --- a/funcom_test/31898043.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setDbDataVector(java.util.Vector dbDataVector) { - - java.util.Vector oldValueVector = fieldDbDataVector; - - if ( dbDataVector != null ) - fieldDbDataVector = dbDataVector; - else - fieldDbDataVector = new java.util.Vector(); - - - firePropertyChange("dbDataVector", oldValueVector, dbDataVector); - - // remove all deleted vectors - getDeletedDbDataVector().removeAllElements(); - } - COM: <s> sets the db data vector property java </s> - diff --git a/funcom_test/31898056.txt b/funcom_test/31898056.txt deleted file mode 100644 index 8d8b11d3037e765ebab06589d03a9ee84c18e339..0000000000000000000000000000000000000000 --- a/funcom_test/31898056.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setErrorHandler(Handler errorHandler) { - /* Get the old property value for fire property change event. */ - Handler oldValue = fieldErrorHandler; - - /* Set the errorHandler property (attribute) to the new value. */ - fieldErrorHandler = errorHandler; - - /* Fire (signal/notify) the errorHandler property change event. */ - firePropertyChange("errorHandler", oldValue, errorHandler); - - return; - } - COM: <s> sets the error handler property org </s> - diff --git a/funcom_test/31898083.txt b/funcom_test/31898083.txt deleted file mode 100644 index a4a8bf5ae8bf45925605c6cad3df359613779d22..0000000000000000000000000000000000000000 --- a/funcom_test/31898083.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Vector retrieve(org.dbgen.support.Data data, String condition, String order) throws SQLException { - - Vector vec = new Vector(); - ResultSet rs = query(data, condition, order); - Object obj; - - while ((obj = getNextRecord(data, rs)) != null) - { - vec.addElement(obj); - } - - return vec.size() > 0 ? vec : null; - } - COM: <s> retrieve a vector of data objects from the table </s> - diff --git a/funcom_test/31898102.txt b/funcom_test/31898102.txt deleted file mode 100644 index b7284431ae6491321bb748d1138da30c02f8556a..0000000000000000000000000000000000000000 --- a/funcom_test/31898102.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setDBA(org.dbgen.support.DbAccess DBA) { - /* Get the old property value for fire property change event. */ - org.dbgen.support.DbAccess oldValue = fieldDBA; - - /* Set the DBA property (attribute) to the new value. */ - fieldDBA = DBA; - - /* Fire (signal/notify) the DBA property change event. */ - firePropertyChange("DBA", oldValue, DBA); - - return; - } - COM: <s> sets the dba property org </s> - diff --git a/funcom_test/31898138.txt b/funcom_test/31898138.txt deleted file mode 100644 index bda63f98d69fd11b84f27bbbf1b4af2f2d7a200e..0000000000000000000000000000000000000000 --- a/funcom_test/31898138.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public JLabel getMessage() { - /* Returns the message property value. */ - if (fieldMessage == null) { - try { - fieldMessage = new JLabel(messages.getString("WELCOME_TO_WIZARD_EXPERT")); - } catch (Throwable exception) { - System.err.println("Exception creating message property."); - } - }; - - return fieldMessage; - } - COM: <s> gets the message property javax </s> - diff --git a/funcom_test/31898169.txt b/funcom_test/31898169.txt deleted file mode 100644 index 8ad12fe56093936d71ee8436cf69c58dd1f3896e..0000000000000000000000000000000000000000 --- a/funcom_test/31898169.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCurrentCard(int currentCard) { - /* Get the old property value for fire property change event. */ - int oldValue = fieldCurrentCard; - - /* Set the currentCard property (attribute) to the new value. */ - fieldCurrentCard = currentCard; - - /* Fire (signal/notify) the currentCard property change event. */ - firePropertyChange("currentCard", new Integer(oldValue), new Integer(currentCard)); - - return; - } - COM: <s> sets the current card property int value </s> - diff --git a/funcom_test/31898171.txt b/funcom_test/31898171.txt deleted file mode 100644 index 2a3bf2d64ad5ed1d6a72de53c2a8c5229f0d3d9b..0000000000000000000000000000000000000000 --- a/funcom_test/31898171.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setDone(boolean done) { - /* Get the old property value for fire property change event. */ - boolean oldValue = fieldDone; - - /* Set the done property (attribute) to the new value. */ - fieldDone = done; - - /* Fire (signal/notify) the done property change event. */ - firePropertyChange("done", null, new Boolean(done)); - - return; - } - COM: <s> sets the done property boolean value </s> - diff --git a/funcom_test/31898245.txt b/funcom_test/31898245.txt deleted file mode 100644 index 6563c0e18ad2d6428430607ca21b9c9ac0b0dba5..0000000000000000000000000000000000000000 --- a/funcom_test/31898245.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public JTextField getLengthField() { - /* Returns the lengthField property value. */ - if (fieldLengthField == null) { - try { - fieldLengthField = new JTextField(); - } catch (Throwable exception) { - System.err.println("Exception creating lengthField property."); - } - }; - - return fieldLengthField; - } - COM: <s> gets the length field property javax </s> - diff --git a/funcom_test/31898247.txt b/funcom_test/31898247.txt deleted file mode 100644 index ff90f954742e97fbf83ef452fd922bab4654e95e..0000000000000000000000000000000000000000 --- a/funcom_test/31898247.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public JTextField getNameField() { - /* Returns the nameField property value. */ - if (fieldNameField == null) { - try { - fieldNameField = new JTextField(); - } catch (Throwable exception) { - System.err.println("Exception creating nameField property."); - } - }; - - return fieldNameField; - } - COM: <s> gets the name field property javax </s> - diff --git a/funcom_test/31898249.txt b/funcom_test/31898249.txt deleted file mode 100644 index 000979dedb649847440653997c5d64991efd4ce0..0000000000000000000000000000000000000000 --- a/funcom_test/31898249.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public JTextField getScaleField() { - /* Returns the scaleField property value. */ - if (fieldScaleField == null) { - try { - fieldScaleField = new JTextField(); - } catch (Throwable exception) { - System.err.println("Exception creating scaleField property."); - } - }; - - return fieldScaleField; - } - COM: <s> gets the scale field property javax </s> - diff --git a/funcom_test/31898251.txt b/funcom_test/31898251.txt deleted file mode 100644 index 8113986b4a68baf2aa53c4201474e64d8f9c04c0..0000000000000000000000000000000000000000 --- a/funcom_test/31898251.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public JComboBox getTypeComboBox() { - /* Returns the typeComboBox property value. */ - if (fieldTypeComboBox == null) { - try { - fieldTypeComboBox = new JComboBox(); - } catch (Throwable exception) { - System.err.println("Exception creating typeComboBox property."); - } - }; - - return fieldTypeComboBox; - } - COM: <s> gets the type combo box property javax </s> - diff --git a/funcom_test/31931962.txt b/funcom_test/31931962.txt deleted file mode 100644 index 55c2bbe107e55c59d3a9143729d4cd0016326a43..0000000000000000000000000000000000000000 --- a/funcom_test/31931962.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setStatus(int status) { - cat.debug("setStatus()"); - - if (this.statusSet) - return; - - OutputStreamWriter osw = new OutputStreamWriter(this.outputStream); - try { - osw.write("HTTP/1.1 " + String.valueOf(status) + " OK" + '\n'); - osw.flush(); - this.statusSet = true; - } catch (IOException e) { - cat.error("Error setting status in NanoResponse. IO Error."); - return; - } - - } - COM: <s> set status method comment </s> - diff --git a/funcom_test/32019844.txt b/funcom_test/32019844.txt deleted file mode 100644 index 711133ac6447dc07d09b582f0f3511b598080cf5..0000000000000000000000000000000000000000 --- a/funcom_test/32019844.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - StringBuffer sb = new StringBuffer(200); - for (int i = 0; i < size(); i++) { - Message message = (Message) messagesList.get(i); - sb.append(message.toString()); - sb.append("\n"); - } - return (String) sb.toString(); - } - COM: <s> returns a string representation of this this messages contents </s> - diff --git a/funcom_test/32019849.txt b/funcom_test/32019849.txt deleted file mode 100644 index d04342e0d43b04ada5b363728ca2ca455fd553d0..0000000000000000000000000000000000000000 --- a/funcom_test/32019849.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected boolean isDuplicate(Message message) { - boolean bRet = false; - for (int i = 0; i < messagesList.size(); i++) { - Message msg = (Message) messagesList.get(i); - if (msg.equals(message)) { - bRet = true; - break; - } - } - return bRet; - } - COM: <s> checks whether a message is a duplicate message in the list </s> - diff --git a/funcom_test/32019876.txt b/funcom_test/32019876.txt deleted file mode 100644 index de3e2ece82dcd8ee7daef6499e2eb5adb1846fa3..0000000000000000000000000000000000000000 --- a/funcom_test/32019876.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void load(String resourceName) throws Exception{ - java.util.Properties props = new java.util.Properties(); - java.net.URL url = ClassLoader.getSystemResource(resourceName); //"myprops.props" - InputStream is; - props.load(is = url.openStream()); - is.close(); - System.out.println(props); - } - COM: <s> loads properties from the classpath </s> - diff --git a/funcom_test/32019953.txt b/funcom_test/32019953.txt deleted file mode 100644 index 877c36965956c03a9d496b2ee856b50aba18ef80..0000000000000000000000000000000000000000 --- a/funcom_test/32019953.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean equals(Object obj) { - boolean bRet = false; - if ((obj != null) && (obj instanceof Message)) { - String message1 = getMessage(); - String message2 = ((Message) obj).getMessage(); - if ((message1 != null) && (message2 != null)) - bRet = message1.equals(message2); - } - return bRet; - } - COM: <s> indicates whether some other object is equal to this one by compare </s> - diff --git a/funcom_test/32020507.txt b/funcom_test/32020507.txt deleted file mode 100644 index a89fb4d53c9cc8611725edcca2ea003d72977862..0000000000000000000000000000000000000000 --- a/funcom_test/32020507.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Object setRow(ResultSet rs) throws SQLException { - this.setId(rs.getInt("id")); - this.setStudentId(rs.getInt("student_id)")); - this.setClassId(rs.getString("class_id")); - return this; - } - COM: <s> create an code object code from the column values in one </s> - diff --git a/funcom_test/32020803.txt b/funcom_test/32020803.txt deleted file mode 100644 index 4c2a175df1cc1b88ac9ffa641bb21c0304cca9a1..0000000000000000000000000000000000000000 --- a/funcom_test/32020803.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setGroupMailInfo(List<SimpleMail> mails, List<String> attachments, List<File> fileList) { - bGroupMail = true; - this.mails = mails; - this.attachments = (attachments != null) ? attachments : new ArrayList<String>(); - this.fileList = (fileList != null) ? fileList : new ArrayList<File>(); - } - COM: <s> sets group mail info </s> - diff --git a/funcom_test/32020807.txt b/funcom_test/32020807.txt deleted file mode 100644 index 73654e5ce7dcecc83447f06c02ec164abaa2a323..0000000000000000000000000000000000000000 --- a/funcom_test/32020807.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setMailInfo(SimpleMail mail, List<String> attachments, List<File> fileList) { - bGroupMail = false; - this.mail = mail; - this.attachments = (attachments != null) ? attachments : new ArrayList<String>(); - this.fileList = (fileList != null) ? fileList : new ArrayList<File>(); - } - COM: <s> sets individual mail info </s> - diff --git a/funcom_test/32021601.txt b/funcom_test/32021601.txt deleted file mode 100644 index fecf2ae52f68d6a1c39231c93b41297bfd8472b9..0000000000000000000000000000000000000000 --- a/funcom_test/32021601.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object findById(Class oClass, Integer id) { - try { - return super.load(oClass, id); - } catch (Exception e) { - log.error("Error finding object type " + oClass.getName() +" with id " + id, e); - } - return null; - } - COM: <s> finds a specified class object from database by id </s> - diff --git a/funcom_test/32021980.txt b/funcom_test/32021980.txt deleted file mode 100644 index 600a97595453af28100aa90cb0bd3ed1cefb76f7..0000000000000000000000000000000000000000 --- a/funcom_test/32021980.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getResultSetCount(ResultSet rs) { - int count = 0; - try { - rs.beforeFirst(); - while (rs.next()) { - count++; - } - rs.beforeFirst(); - } catch (Exception e) { - log.error(Constants.EXCEPTION_CAUGHT, e); - } - return count; - } - COM: <s> gets result set total row counts </s> - diff --git a/funcom_test/32022245.txt b/funcom_test/32022245.txt deleted file mode 100644 index 9723ab78c88a833db8fe2fcdb669af2cf251a2cd..0000000000000000000000000000000000000000 --- a/funcom_test/32022245.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void createTrTagWithBgColor(StringBuffer sb) { - if (MathUtil.isEven(rowNumber++)) - sb.append("<tr style=\"background-color:").append(evenRowBgColor).append("\">"); - else - sb.append("<tr style=\"background-color:").append(oddRowBgColor).append("\">"); - } - COM: <s> creates tr html tag with background color </s> - diff --git a/funcom_test/32022307.txt b/funcom_test/32022307.txt deleted file mode 100644 index 783a229d24a1f299a4fdbba0ccb42dd6be7f274c..0000000000000000000000000000000000000000 --- a/funcom_test/32022307.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public IschoolSetup findCurrentSchool() { - IschoolSetup ret = null; - List<IschoolSetup> list = null; - try { - list = super.find(FIND_CURRENT_SCHOOL); - if ((list != null) && (list.size() > 0)) - ret = list.get(0); - } catch(Exception e) { - log.error("findCurrentSchool failed", e); - } - return ret; - } - COM: <s> finds the current school </s> - diff --git a/funcom_test/32022510.txt b/funcom_test/32022510.txt deleted file mode 100644 index 325b4b40ee88cdbcf5743d7fbde309b4c8e2ca56..0000000000000000000000000000000000000000 --- a/funcom_test/32022510.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List findByExample(String model, Object instance) { - Session session = null; - try { - session = getSession(); - List results = session.createCriteria(model).add(Example.create(instance)).list(); - return results; - } catch (RuntimeException re) { - log.error("findByExample failed", re); - throw re; - } finally { - close(session); - } - } - COM: <s> finds objects by example </s> - diff --git a/funcom_test/32022595.txt b/funcom_test/32022595.txt deleted file mode 100644 index 7b84077d30a440245b69439e527fbbf9ee79f3ec..0000000000000000000000000000000000000000 --- a/funcom_test/32022595.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public List find(String query) throws HibernateException { - List retList = null; - Session session = null; - try { - session = getSession(); - retList = session.createQuery(query).list(); - } catch (HibernateException e) { - log.warn(e, e); - throw new HibernateException(e); - } finally { - close(session); - } - return retList; - } - COM: <s> searches objects for a given query </s> - diff --git a/funcom_test/32022646.txt b/funcom_test/32022646.txt deleted file mode 100644 index 9249cb8f6510d31f8149452e527ac513266ff0c4..0000000000000000000000000000000000000000 --- a/funcom_test/32022646.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List find(String query, Type[] types, Object[] params) throws HibernateException { - List retList = null; - Session session = null; - try { - retList = find(getSession(), query, params, types); - } catch (HibernateException e) { - log.warn(e, e); - throw new HibernateException(e); - } finally { - close(session); - } - return retList; - } - COM: <s> searches objects for a given query and parameters </s> - diff --git a/funcom_test/32105436.txt b/funcom_test/32105436.txt deleted file mode 100644 index 208e52f10d23e1acab33fe97accd598969fd7006..0000000000000000000000000000000000000000 --- a/funcom_test/32105436.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public NodeImpl cloneNode(boolean deep) { - - ElementImpl newnode = (ElementImpl) super.cloneNode(deep); - // Replicate NamedNodeMap rather than sharing it. - if (attributes != null) { - newnode.attributes = (AttributeMap) attributes.cloneMap(newnode); - } - return newnode; - - } // cloneNode(boolean):Node - COM: <s> return a duplicate copy of this element </s> - diff --git a/funcom_test/32105803.txt b/funcom_test/32105803.txt deleted file mode 100644 index 6b95315653d9d78033beb43c34702dbc65926420..0000000000000000000000000000000000000000 --- a/funcom_test/32105803.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public NodeImpl cloneNode(boolean deep) { - - DocumentTypeImpl newnode = (DocumentTypeImpl)super.cloneNode(deep); - // NamedNodeMaps must be cloned explicitly, to avoid sharing them. - newnode.entities = entities.cloneMap(newnode); - newnode.notations = notations.cloneMap(newnode); - newnode.elements = elements.cloneMap(newnode); - - return newnode; - - } // cloneNode(boolean):Node - COM: <s> clones the node </s> - diff --git a/funcom_test/32105832.txt b/funcom_test/32105832.txt deleted file mode 100644 index f58fb8bc3de0b9ff08ecbffaaacbd237bcb1e3fa..0000000000000000000000000000000000000000 --- a/funcom_test/32105832.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public NodeImpl removeChild(Node oldChild) throws DOMException { - - super.removeChild(oldChild); - - // If remove succeeded, un-cache the kid appropriately - int type = oldChild.getNodeType(); - if(type == Node.ELEMENT_NODE) { - docElement = null; - } - else if (type == Node.DOCUMENT_TYPE_NODE) { - docType = null; - } - - return (NodeImpl)oldChild; - - } // removeChild(Node):Node - COM: <s> since insert before caches the doc element and currently doc type </s> - diff --git a/funcom_test/32120313.txt b/funcom_test/32120313.txt deleted file mode 100644 index 823fe93385e53e2cbcb5bdddbc47f94ad8c7bb74..0000000000000000000000000000000000000000 --- a/funcom_test/32120313.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void finish() throws IOException { - ensureOpen(); - if (finished) { - return; - } - if (entry != null) { - closeEntry(); - } - if (entries.size() < 1) { - throw new ZipException("ZIP file must have at least one entry"); - } - // write central directory - long off = written; - Enumeration<ZipEntry> e = entries.elements(); - while (e.hasMoreElements()) { - writeCEN(e.nextElement()); - } - writeEND(off, written - off); - finished = true; - } - COM: <s> finishes writing the contents of the zip output stream without closing </s> - diff --git a/funcom_test/32135937.txt b/funcom_test/32135937.txt deleted file mode 100644 index 537976a9aad34ff0618cf88699a58406ebbc941f..0000000000000000000000000000000000000000 --- a/funcom_test/32135937.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getMaxScore(Node current, int depth, int alpha, int beta){ - //found a terminal node go no further - if(current.getNextNodeSize() == 0 || depth <= 0) - return current.getScore(); - - //loop for the largest score - for(Node child: current.getListOfNextNodes()){ - alpha = Math.max(alpha, getMinScore(child, depth-1, alpha, beta)); - if(alpha >= beta){ - return alpha; - } - } - - return alpha; - } - COM: <s> this gets the best score from the node current and its children </s> - diff --git a/funcom_test/32163910.txt b/funcom_test/32163910.txt deleted file mode 100644 index 621e003ac9cf35070f5fcaa47a236e8503726b9e..0000000000000000000000000000000000000000 --- a/funcom_test/32163910.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void createPriority() { - // We calculate it as the difference between scores - if(owner == GameHandler.getPlayer2()) { - _priority = GameHandler.getPlayer2().getVirtualCount() - GameHandler.getPlayer1().getVirtualCount(); - } else { - _priority = GameHandler.getPlayer1().getVirtualCount() - GameHandler.getPlayer2().getVirtualCount(); - } - } - COM: <s> calculate the priority according to the owner </s> - diff --git a/funcom_test/32163928.txt b/funcom_test/32163928.txt deleted file mode 100644 index 60fb5ef17936610e9ee6e7c515cdd1d414e699b7..0000000000000000000000000000000000000000 --- a/funcom_test/32163928.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setForbiddenCells() { - // Scan the matrix - for(int i = 0; i < 9; i++) { - for(int j = 0; j < 9; j++) { - // If it's forbidden in the default, set it to the struct too - if(_defaultStructure[i][j] == FORBIDDEN) { - _struct[i][j] = _defaultStructure[i][j]; - } - } - } - } - COM: <s> sets all the forbidden cells so illegal boards wont be available </s> - diff --git a/funcom_test/32163954.txt b/funcom_test/32163954.txt deleted file mode 100644 index 0235b9fdbdfc4d16211870372ed46504c643110c..0000000000000000000000000000000000000000 --- a/funcom_test/32163954.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private byte checkMove(int x, int y) { - try { - // If everything is ok, return the coordinate - if(_cells[y][x].getPlayer() == null) { - return _cells[y][x].getCoord(); - } - } catch(IndexOutOfBoundsException ex) { - // We do nothing, because we don't care - } catch(NullPointerException ex) { - // We do nothing, because we don't care - } - return 0; - } - COM: <s> checks if the move is valid </s> - diff --git a/funcom_test/32163981.txt b/funcom_test/32163981.txt deleted file mode 100644 index 30d5b235eaf77f40cce21c2f005803d38aba4316..0000000000000000000000000000000000000000 --- a/funcom_test/32163981.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void addStateButtons() { - _states = new ButtonGroup(); // Create the group - addRadioButton("None", BoardStructure.NONE, 30, 20); - addRadioButton("Empty", BoardStructure.EMPTY, 30, 60); - addRadioButton("Player1", BoardStructure.PLAYER_1, 30, 100); - addRadioButton("Player2", BoardStructure.PLAYER_2, 30, 140); - } - COM: <s> add the radio buttons of the possible cell states </s> - diff --git a/funcom_test/32599520.txt b/funcom_test/32599520.txt deleted file mode 100644 index a3de4e5e78f9d2dbb39ece385065f88f2127edba..0000000000000000000000000000000000000000 --- a/funcom_test/32599520.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void swapEntries (int index1, int index2) { - Object listObj = listModel.getElementAt(index1); - String entryObj = entriesArray.get(index1); - listModel.setElementAt( listModel.getElementAt(index2), index1); - entriesArray.set(index1, entriesArray.get(index2)); - listModel.setElementAt(listObj, index2); - entriesArray.set(index2, entryObj); - } - COM: <s> swaps two entries in the list </s> - diff --git a/funcom_test/32599536.txt b/funcom_test/32599536.txt deleted file mode 100644 index b1c184a877a72f81f269d1eb1ad7c6bde60aa4b0..0000000000000000000000000000000000000000 --- a/funcom_test/32599536.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected boolean applyValues() { - text = new String[2]; - text[0] = segmentNameTextField.getText(); - text[1] = "segment " + segmentNameTextField.getText() + " {\n" - + advancedTextArea.getText() + "\n" - + "}\n"; - return true; - } - COM: <s> takes current textfield entry as text </s> - diff --git a/funcom_test/32773680.txt b/funcom_test/32773680.txt deleted file mode 100644 index bec4fd94aa6e3fc786e71ec73a54d7b2c2686d8a..0000000000000000000000000000000000000000 --- a/funcom_test/32773680.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void threadUpdated(SefirsThread thread) { - boolean removed = false; - synchronized(threads) { - if(threads.remove(thread)) { - if(thread.isAlive()) - threads.add(thread); - /* else, the thread died during this iteration */ - removed = true; - } - } - if(removed) - notifyListeners(new ThreadStatusUpdatedEvent(thread)); - } - COM: <s> updates the priority queue of threads with </s> - diff --git a/funcom_test/32773766.txt b/funcom_test/32773766.txt deleted file mode 100644 index 9dd6d844df7f90f6db84445b61e7ecd3ea14c0e0..0000000000000000000000000000000000000000 --- a/funcom_test/32773766.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int compareTo(TimeUnit t) throws ClassCastException { - TimeValue<DimensionlessTimeUnit> factor = null; - try { - return getConversionFactor(t.getClass()).compareTo(new IntegerTimeValue<DimensionlessTimeUnit>(new DimensionlessTimeUnit(), 1)); - } catch(TimeConversionException tce) { - throw new ClassCastException(tce.getMessage()); - } - } - COM: <s> compares this object with the specified object for </s> - diff --git a/funcom_test/32822593.txt b/funcom_test/32822593.txt deleted file mode 100644 index 5907f8a997157cef6eeead741268f20eb05f4deb..0000000000000000000000000000000000000000 --- a/funcom_test/32822593.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testSave() { - MusicEditorModel model = new MusicEditorModel(); - File testFile = new File("test/test.ly"); - model.openFile(testFile); - - String previousContents = getFileAsString(testFile); - - model.getTextArea().setText(SAVE_TEST_STRING); - model.save(); - - String fileAsString = getFileAsString(testFile); - - assertEquals(SAVE_TEST_STRING, fileAsString); - - model.getTextArea().setText(previousContents); - model.save(); - } - COM: <s> should be an idempotent test </s> - diff --git a/funcom_test/32822594.txt b/funcom_test/32822594.txt deleted file mode 100644 index 633acba1d9854d5ea627af49534acd4eff3cadc5..0000000000000000000000000000000000000000 --- a/funcom_test/32822594.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testSaveAs() { - MusicEditorModel model = new MusicEditorModel(); - File testFile = new File("test/test.ly"); - model.openFile(testFile); - - File outputFile = new File("test/save_as_test.ly"); - assertFalse(outputFile.exists()); - model.saveAs(outputFile); - - String outputFileAsString = getFileAsString(outputFile); - String testFileAsString = getFileAsString(testFile); - assertEquals(outputFileAsString, testFileAsString); - - outputFile.delete(); - assertFalse(outputFile.exists()); - } - COM: <s> writes the file out to disk then deletes it after making sure </s> - diff --git a/funcom_test/32897708.txt b/funcom_test/32897708.txt deleted file mode 100644 index 56ef0b82e70270cd35841f0a8b19b3b38c15e034..0000000000000000000000000000000000000000 --- a/funcom_test/32897708.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String getVar(String var) { - if (var.compareTo("${application.root}") == 0) { - File rootFile = Installation.getInstallDirectory(this.getClass()); - return rootFile.getAbsolutePath(); - } - if (var.compareTo("${application.global}") == 0) { - return this.get("globalpath"); - } - if (var.compareTo("${user.home}") == 0) { - return System.getProperty("user.home"); - } - else - return null; - - } - COM: <s> returns different application variables </s> - diff --git a/funcom_test/32897820.txt b/funcom_test/32897820.txt deleted file mode 100644 index 79c01b69d788e08bbc1a4bb763a686ca93509689..0000000000000000000000000000000000000000 --- a/funcom_test/32897820.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void paintRib(Graphics g, int x, int y) { - g.setColor(Color.white); - g.fillRect(x, y, 2, 2); - g.translate(-1, -1); - g.setColor(SystemColor.controlShadow); - g.fillRect(x, y, 2, 2); - g.translate(1, 1); - } - COM: <s> helper method to paint a rib a raised point </s> - diff --git a/funcom_test/32897826.txt b/funcom_test/32897826.txt deleted file mode 100644 index 87e475c8e797bcd00b72321ccb3aa124e34138cc..0000000000000000000000000000000000000000 --- a/funcom_test/32897826.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getCloseButton() { - if (closeButton == null) { - closeButton = new JButton(); - closeButton.setText("Close"); - closeButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - dispose(); - } - }); - } - return closeButton; - } - COM: <s> this method initializes j button </s> - diff --git a/funcom_test/32898258.txt b/funcom_test/32898258.txt deleted file mode 100644 index 873f0d0673e55d3359ffaa053f57960753bbe09f..0000000000000000000000000000000000000000 --- a/funcom_test/32898258.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void setForceHeavyweightPopups(Window w, boolean force) { - if (!(w instanceof HeavyweightForcer)) { - Window[] owned = w.getOwnedWindows(); - for (int i = 0; i < owned.length; i++) { - if (owned[i] instanceof HeavyweightForcer) { - owned[i].dispose(); - } - } - if (force) { - new HeavyweightForcer(w); - } - } - } - COM: <s> use this method to ensure heavyweight popups are used in </s> - diff --git a/funcom_test/32898355.txt b/funcom_test/32898355.txt deleted file mode 100644 index 70268c805086b2c8a185707e2928f477348fc650..0000000000000000000000000000000000000000 --- a/funcom_test/32898355.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void storeAlpha(Window w, byte alpha) { - if (w instanceof RootPaneContainer) { - JRootPane root = ((RootPaneContainer)w).getRootPane(); - Byte b = alpha == (byte)0xFF ? null : new Byte(alpha); - root.putClientProperty(TRANSPARENT_ALPHA, b); - } - } - COM: <s> keep track of the alpha level since we cant read it from </s> - diff --git a/funcom_test/32898373.txt b/funcom_test/32898373.txt deleted file mode 100644 index a3af945620fe17f7d99b348ddf492bdb0f98315d..0000000000000000000000000000000000000000 --- a/funcom_test/32898373.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private byte getAlpha(Window w) { - if (w instanceof RootPaneContainer) { - JRootPane root = ((RootPaneContainer)w).getRootPane(); - Byte b = (Byte)root.getClientProperty(TRANSPARENT_ALPHA); - if (b != null) { - return b.byteValue(); - } - } - return (byte)0xFF; - } - COM: <s> return the last alpha level we set on the window </s> - diff --git a/funcom_test/3311617.txt b/funcom_test/3311617.txt deleted file mode 100644 index 3098aa755ed87822be5b61407849b7c3af3e7008..0000000000000000000000000000000000000000 --- a/funcom_test/3311617.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void setThisShipsOrders(SpaceCraft sc) { - if (sc.isShip()) { - Ship ship = (Ship) sc; - if (ship.getShipDesign().getColonyModuleNumber() > 0) { - // System.out.println("colonizingstrategy=" - // +colonizingStrategy); - if (!setOrderToColonizePlanet(ship, colonizingStrategy)) { - // System.out.println("found none"); - scoutForHabitablePlanets(ship); - } - } else { - if (ship.hasInterstellarDrive()) { - scoutForHabitablePlanets(ship); - } - } - } - } - COM: <s> orders for one ship </s> - diff --git a/funcom_test/33152164.txt b/funcom_test/33152164.txt deleted file mode 100644 index dac6a9a7d793e88f8ce9aafc754fe921db123c98..0000000000000000000000000000000000000000 --- a/funcom_test/33152164.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean verifyRule(IAtomContainer mol) throws DecisionMethodException { - if (descriptor != null) { - try { - descriptor.setParameters(params); - DescriptorValue value = ((RuleOfFiveDescriptor) descriptor).calculate(mol); - IntegerResult r = (IntegerResult) value.getValue(); - return (r.intValue() == 0); //no failures - } catch (CDKException x) { - throw new DecisionMethodException(x); - } - } else throw new DRuleNotImplemented(); - } - COM: <s> returns true if all lipinski rule of five are true </s> - diff --git a/funcom_test/33153818.txt b/funcom_test/33153818.txt deleted file mode 100644 index dccba5e937e56c6a976862e05d2e927a11210285..0000000000000000000000000000000000000000 --- a/funcom_test/33153818.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testRodo996() throws Exception { - Object[][] smiles = new Object[][] { - {"CC1=CC3=C(C=C1(N))NC=2C=CC=CC=23","MR3",new Double(0.1),"MR5",new Double(0.54),"MR6",new Double(0.1)}, - }; - amineGroupSubstituent(smiles); - } - COM: <s> for this compound tox tree was not able to calculate partial mr5 </s> - diff --git a/funcom_test/33153902.txt b/funcom_test/33153902.txt deleted file mode 100644 index 90e51852c2ca0cf3cdc654da3aad413c814ee549..0000000000000000000000000000000000000000 --- a/funcom_test/33153902.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testAmmine13() throws Exception { - Object[][] smiles = new Object[][] { - {"c1cccc(N)c1c2c(N)cccc2","MR2",new Double(2.98),"MR3",new Double(0.1),"MR6",new Double(0.1)}, - }; - amineGroupSubstituent(smiles); - } - COM: <s> should be mr2 2 </s> - diff --git a/funcom_test/33153983.txt b/funcom_test/33153983.txt deleted file mode 100644 index 7e630f097354cbb23760bbc627a09013c99a9ee5..0000000000000000000000000000000000000000 --- a/funcom_test/33153983.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void test_bug3138566_coumarin_aromaticity() throws Exception { - SmilesParser p = new SmilesParser(SilentChemObjectBuilder.getInstance()); - IMolecule m = p.parseSmiles("O=C1\\C=C/c2ccccc2O1"); - MolAnalyser.analyse(m); - int aromatic = 0; - for (IAtom a : m.atoms()) { - aromatic += a.getFlag(CDKConstants.ISAROMATIC)?1:0; - } - //OK, the heteroring is not aromatic indeed - Assert.assertEquals(6,aromatic); - - } - COM: <s> coumarin heteroring is not recognized as aromatic </s> - diff --git a/funcom_test/33154175.txt b/funcom_test/33154175.txt deleted file mode 100644 index 4975793c91f01418fa15f8386a0d9ed174768f97..0000000000000000000000000000000000000000 --- a/funcom_test/33154175.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testSterimol_Rodo983() throws Exception { - Object[][] smiles = new Object[][] { - //Rodo 983 - {"CC(C)OC1=CC=C(C=C1)NC2=CC=CC=C2","LSTM1",new Double(9.5),"B5STM1",new Double(4.31)}, - }; - amineGroupSubstituent(smiles); - - } - COM: <s> in case the amino group is attached to more than one aromatic ring </s> - diff --git a/funcom_test/33156163.txt b/funcom_test/33156163.txt deleted file mode 100644 index 6f11b6d98601412b95583a13e77b72e9ff423b72..0000000000000000000000000000000000000000 --- a/funcom_test/33156163.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String formatMDLString(String s, int le) { - s = s.trim(); - if (s.length() > le) - return s.substring(0, le); - int l; - l = le - s.length(); - for (int f = 0; f < l; f++) - s += " "; - return s; - } - COM: <s> formats a string to fit into the connectiontable </s> - diff --git a/funcom_test/33177741.txt b/funcom_test/33177741.txt deleted file mode 100644 index ff4508cc46ef7eab8fc926434ca1234c47ab5507..0000000000000000000000000000000000000000 --- a/funcom_test/33177741.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void checkAndBindDistributer() { - if (parameters.getBoolean("log.server", false)) { - String bindName = this.getName(); - try { - if (Internal.traces) { - Internal.log(Internal.TRACE, - "trying to bind distributer under name '" - + bindName + "'"); - } - - java.rmi.Naming.rebind( - bindName, - java.rmi.server.UnicastRemoteObject.exportObject(this)); - } - catch (Exception e) { - if (Internal.errors) Internal.log(Internal.ERROR, e); } - } - } - COM: <s> this binds the distributer in the rmi registry if the property </s> - diff --git a/funcom_test/33177744.txt b/funcom_test/33177744.txt deleted file mode 100644 index 2ba4629285b69589ad03620b33da019d9a6556c5..0000000000000000000000000000000000000000 --- a/funcom_test/33177744.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void setupFilters(String filters, Vector expressions) { - java.util.StringTokenizer tokens = - new java.util.StringTokenizer(filters, " "); - - while (tokens.hasMoreTokens()) { - String filter = tokens.nextToken(); - - try { - RE expression = new RE(filter); - expressions.addElement(expression); - } - catch (Exception e) { - System.out.println("Log warning: bad filter '" + filter + "'"); - } - } - } - COM: <s> takes a space separated list of regular expressions and creates </s> - diff --git a/funcom_test/33177913.txt b/funcom_test/33177913.txt deleted file mode 100644 index 9072d2c70d11ff7b54f902f976f44046c2400516..0000000000000000000000000000000000000000 --- a/funcom_test/33177913.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String toString() { - if (asString == null) { - if (names != null) { - StringBuffer buffer = new StringBuffer(); - for (int i = 0; i < names.size(); ++i) { - if (i != 0) buffer.append('.'); - buffer.append(names.elementAt(i)); - } - - asString = buffer.toString(); - } - else asString = ""; - } - - return asString; - } - COM: <s> appends all of the thread groups and name together into one </s> - diff --git a/funcom_test/33178125.txt b/funcom_test/33178125.txt deleted file mode 100644 index 8e075df3e1e16d492084ad34ddeec3008d0aed9f..0000000000000000000000000000000000000000 --- a/funcom_test/33178125.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void generateFormatsByName() { - java.lang.reflect.Field[] fields = clazz.getFields(); - for (int i = 0; i < fields.length; ++i) { - try { add(new AccessorFormat(new FieldAccessor(fields[i]), null)); } - catch (java.lang.NoSuchMethodException e) {} - } - } - COM: <s> reflects and iterates through the fields of the managed class </s> - diff --git a/funcom_test/33178242.txt b/funcom_test/33178242.txt deleted file mode 100644 index d0bebb8b1a1bb5eed9af1f2e5341fba45869616c..0000000000000000000000000000000000000000 --- a/funcom_test/33178242.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void setAccessible(boolean accessible) { - try { - Class[] paramsTypes = { boolean.class }; - Method setAccessible - = Field.class.getMethod("setAccessible", paramsTypes); - - Object[] params = { new Boolean(accessible) }; - setAccessible.invoke(field, params); - } - catch (Exception e) { /* Ignore all errors */ } - } - COM: <s> this wraps the jdk1 </s> - diff --git a/funcom_test/33178349.txt b/funcom_test/33178349.txt deleted file mode 100644 index e8646fc4f38953b578a05816ecd156d38394f92b..0000000000000000000000000000000000000000 --- a/funcom_test/33178349.txt +++ /dev/null @@ -1,30 +0,0 @@ -TDAT: protected void printBlocking(String format) { - boolean inCommand = false; - for (int i = 0; i < format.length(); ++i) { - char c = format.charAt(i); - - if (inCommand) { - inCommand = false; - switch (c) { - case '%': - print(c); - break; - - case 'i': // append the indent - indent(); - break; - - default: - break; - } - } - else if (c == '%') { - inCommand = true; - } - else { - print(c); - } - } - } - COM: <s> this formats the blocking of the object that is the beginning </s> - diff --git a/funcom_test/33178451.txt b/funcom_test/33178451.txt deleted file mode 100644 index 7eca4146e341c662fbc3a90fb778a204945e04e5..0000000000000000000000000000000000000000 --- a/funcom_test/33178451.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public double speed() { - double speed = Double.MAX_VALUE; - Iterator i = ships().iterator(); - while (i.hasNext()) { - Ship ship = (Ship) i.next(); - if (ship.maxSpeed() < speed) { - speed = ship.maxSpeed(); - } - } - if (speed == Double.MAX_VALUE) speed = 0.0; - - return speed; - } - COM: <s> the slowest speed of all of the ships in this fleet </s> - diff --git a/funcom_test/33178475.txt b/funcom_test/33178475.txt deleted file mode 100644 index 7f5767379894e4597b96c460ac1ea1444835afee..0000000000000000000000000000000000000000 --- a/funcom_test/33178475.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void printWithFieldAccessors(Value parent, Vector accessors) { - beginObject(); - for (int i = 0; i < accessors.size(); ++i) { - FieldAccessor accessor = (FieldAccessor) accessors.elementAt(i); - Value child = new Value( - accessor.name, - accessor.get(parent.object), - true); - - if (i == 0) child.isFirst = true; - else if (i == accessors.size() - 1) child.isLast = true; - - printField(child); - } - endObject(); - } - COM: <s> this uses the given vector field accessor to print the fields </s> - diff --git a/funcom_test/33178671.txt b/funcom_test/33178671.txt deleted file mode 100644 index c0097b57e316db5b6cb507421caccbe737913fde..0000000000000000000000000000000000000000 --- a/funcom_test/33178671.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Offer split(double quantity) { - if (transaction != null) throw new AlreadyTransacted(); - if (quantity > this.quantity) throw new InvalidSplit(); - - Offer split = (Offer) clone(); - split.creationTime = split.container.world().time(); - split.quantity = quantity; - this.quantity -= quantity; - return split; - } - COM: <s> subtracts the given code quantity code from this offer and </s> - diff --git a/funcom_test/33178713.txt b/funcom_test/33178713.txt deleted file mode 100644 index fb81a96a6ca5b136ad65194dc34dc6a272b47cc4..0000000000000000000000000000000000000000 --- a/funcom_test/33178713.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String get(String name) { - put(privatePrefix + "name", name); - for (int i = 0; i < patterns.length; ++i) { - String fullName = substituteVariables(substitutedPatterns[i]); - String value = super.get(fullName); - if (value != null) return value; - } - - return null; - } - COM: <s> this returns a parameter </s> - diff --git a/funcom_test/33178762.txt b/funcom_test/33178762.txt deleted file mode 100644 index 34fb1361ac3bd7377644887d037d4057e3bcd36a..0000000000000000000000000000000000000000 --- a/funcom_test/33178762.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void initialiseDerivedData() { - if (leftLine == null) initialiseLeftLine(); - if (topLine == null) initialiseTopLine(); - if (rightLine == null) initialiseRightLine(); - if (bottomLine == null) initialiseBottomLine(); - if (center == null) initialiseCenter(); - } - COM: <s> establishes the lines that represent this rectangle </s> - diff --git a/funcom_test/33178793.txt b/funcom_test/33178793.txt deleted file mode 100644 index 8b814ff030e73685e2fc3c539a505d3287358b52..0000000000000000000000000000000000000000 --- a/funcom_test/33178793.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List cornerList() { - if (leftLine == null) initialiseLeftLine(); - if (rightLine == null) initialiseRightLine(); - - List corners = new java.util.Vector(); - corners.add(leftLine.begin()); - corners.add(leftLine.end()); - corners.add(rightLine.begin()); - corners.add(rightLine.end()); - return corners; - } - COM: <s> returns a list of corners as point2 ds starting with lower left and </s> - diff --git a/funcom_test/33178857.txt b/funcom_test/33178857.txt deleted file mode 100644 index 0143890f850cf068cdaf42e5f05620e6d58a8263..0000000000000000000000000000000000000000 --- a/funcom_test/33178857.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Point2D nearest(Point2D[] positions) { - Point2D closest = null; - double closestDistance = Double.MAX_VALUE; - for (int i = 0; i < positions.length; ++i) { - double distance = this.distanceTo(positions[i]); - if (closest == null || distance < closestDistance) { - closest = positions[i]; - closestDistance = distance; - } - } - - return closest; - } - COM: <s> returns the position in code positions code that is closest </s> - diff --git a/funcom_test/33178892.txt b/funcom_test/33178892.txt deleted file mode 100644 index d1a710cc35e3fabb8a569f97d18892c8dbc6f6b3..0000000000000000000000000000000000000000 --- a/funcom_test/33178892.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Collection intersections(Collection rectangles) { - java.util.Vector intersections = new java.util.Vector(); - Iterator i = rectangles.iterator(); - while (i.hasNext()) { - Intersection2D x = ((Rectangle2D) i.next()).intersection(this); - if (x != null) intersections.add(x); - } - - return intersections; - } - COM: <s> returns all of rectangles in the given set of rectangles that </s> - diff --git a/funcom_test/33178904.txt b/funcom_test/33178904.txt deleted file mode 100644 index b31e83cc2e8b2fcc047140229d1b4a26155e5d5e..0000000000000000000000000000000000000000 --- a/funcom_test/33178904.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void injectNewlines(int lineLength) { - StringBuffer newSource = new StringBuffer(source.length() + 100); - - int begin = 0; - while (begin < source.length()) { - int end = begin + lineLength; - if (end > source.length()) end = source.length(); - - newSource.append(source.substring(begin, end)); - newSource.append('\n'); - - begin = end; - } - - source = newSource.toString(); - } - COM: <s> useful if the source text should contain but doesnt </s> - diff --git a/funcom_test/33178957.txt b/funcom_test/33178957.txt deleted file mode 100644 index 3a1c5cd374522664caa1b7923edad977e5a20453..0000000000000000000000000000000000000000 --- a/funcom_test/33178957.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getToken(int maxNumWhiteSpaceChars) { - lastPosition = position; - - try { - RE expression = new RE("\\S+"); - REMatch match = expression.getMatch(source, position); - if (match.getStartIndex() <= position + maxNumWhiteSpaceChars) - { - position = match.getEndIndex(); - return match.toString(); - } - else return ""; - } - catch (Exception e) { return null; } - } - COM: <s> returns the next white space delimited token not more than </s> - diff --git a/funcom_test/33178976.txt b/funcom_test/33178976.txt deleted file mode 100644 index e58a486f4e6073082a7294ec80ce6deb10431a28..0000000000000000000000000000000000000000 --- a/funcom_test/33178976.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getNextInt() throws ParseException { - lastPosition = position; - String token = null; - - try { token = getMatch(new RE("\\d+")); } - catch (REException e) {} - - if (token == null) { - throw new java.text.ParseException( - "can't find an int", position); - } - else return Integer.parseInt(token); - } - COM: <s> parses and returns the next integer in the input skipping non </s> - diff --git a/funcom_test/33179017.txt b/funcom_test/33179017.txt deleted file mode 100644 index d4ec5a13d994de28c63c62b8354e8428f0ea37e2..0000000000000000000000000000000000000000 --- a/funcom_test/33179017.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected String toPrintable(String notPrintable) { - StringBuffer printable = new StringBuffer(notPrintable.length()); - for (int i = 0; i < notPrintable.length(); ++i) { - char c = notPrintable.charAt(i); - switch (c) { - case '\n': printable.append("\\n"); break; - case '\t': printable.append("\\t"); break; - default: printable.append(c); break; - } - } - - return printable.toString(); - } - COM: <s> utility function to convert strings that have embedded non </s> - diff --git a/funcom_test/33179021.txt b/funcom_test/33179021.txt deleted file mode 100644 index 11310d3bc7b58088e9e14108c8bd4d3a3ee93c42..0000000000000000000000000000000000000000 --- a/funcom_test/33179021.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String substituteReferences(String name, String value) { - value = substituteMultiple( - escapedHomeDirectoryRe, value, homeDirectory); - value = substituteMultiple( - escapedFileSeparatorRe, value, fileSeparator); - - if (value.indexOf(VARIABLE_PREFIX) != -1) - value = substituteVariables(name, value); - - if (value.indexOf(SHELL_PREFIX) != -1) - value = substituteShell(name, value); - - return value; - } - COM: <s> this replaces occurances of references variable shell etc </s> - diff --git a/funcom_test/33179073.txt b/funcom_test/33179073.txt deleted file mode 100644 index 5c86107341f1287f6d156d657323e3725768c0c6..0000000000000000000000000000000000000000 --- a/funcom_test/33179073.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String substituteVariables(final String name, String value) { - // - // Now iteratively substitute the values of the referenced - // variables. - // - return substituteReferenceFunctionResult(name, value, variableRe, 2, 1, - new ReferenceFunction() { - public String value(String originalName, String reference) { - return new VariableReference(Parameters.this, name, reference).value(); - } - }); - } - COM: <s> this replaces occurances of variable references in the given </s> - diff --git a/funcom_test/33179249.txt b/funcom_test/33179249.txt deleted file mode 100644 index 983d7d59eb0d676945a8d2712e60287198f3774f..0000000000000000000000000000000000000000 --- a/funcom_test/33179249.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String get(String name) { - try { - queriedNames.put(name, name); - - String value = lookup(name); - if (value == null) throw new NameNotFoundException(name); - else return substitutions(name, value); - } - catch (NameNotFoundException x) { throw x; } - catch (RuntimeException x) { - throw new grace.util.ChainedRuntimeException("name='" + name + "'", x); - } - } - COM: <s> returns the value of the parameter referred to by name or throws </s> - diff --git a/funcom_test/33179463.txt b/funcom_test/33179463.txt deleted file mode 100644 index 614a7bd5caa3c74a6bb845c53869ddb7be255793..0000000000000000000000000000000000000000 --- a/funcom_test/33179463.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String get(String[] names) throws NameNotFoundException { - String result; - for (int i = 0; i < names.length; ++i) { - try { return get(names[i]); } - catch (NameNotFoundException e) {} // eat if boy, eat it... - } - - throw new NameNotFoundException(names.length > 0 ? names[0] : "no names"); - } - COM: <s> returns a parameter by searching linearly for each name in the </s> - diff --git a/funcom_test/33179526.txt b/funcom_test/33179526.txt deleted file mode 100644 index c9dda3797a459d6414dbc2124ea91ab4edf014ea..0000000000000000000000000000000000000000 --- a/funcom_test/33179526.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String whence(String name) { - for (int i = 0; i < sources.size(); ++i) { - SourceProxy proxy = (SourceProxy) sources.elementAt(i); - String value = proxy.get(name); - if (value != null) return (String) sourceNames.get(i) + "[" + i + "]"; - } - - throw new NameNotFoundException(name); - } - COM: <s> returns the name of the source of parameters whence the given </s> - diff --git a/funcom_test/33293838.txt b/funcom_test/33293838.txt deleted file mode 100644 index ae12a62601d8a3cca437650339222fd5714add02..0000000000000000000000000000000000000000 --- a/funcom_test/33293838.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String toString() { - StringBuffer sbuf=new StringBuffer(); - int i=0; - for(Iterator iter=m_Processors.iterator();iter.hasNext();i++) { - sbuf.append(((Processor)iter.next()).getName()); - if(i<m_Processors.size()-1) { - sbuf.append(","); - } - } - return sbuf.toString(); - }//toString - COM: <s> returns this processing pipe as code string code </s> - diff --git a/funcom_test/33304016.txt b/funcom_test/33304016.txt deleted file mode 100644 index 8e17e258b14d05f44d86c0d2f548ced05c27ca29..0000000000000000000000000000000000000000 --- a/funcom_test/33304016.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Collection values() { - List l = new ArrayList(size()); - Iterator keys = super.keySet().iterator(); - Iterator vals = null; - while (keys.hasNext()) { - vals = ((Set)get(keys.next())).iterator(); - while (vals.hasNext()) { - l.add(vals.next()); - } - } - return l; - } - COM: <s> returns all values including duplicates and code null code s if </s> - diff --git a/funcom_test/33304056.txt b/funcom_test/33304056.txt deleted file mode 100644 index e66983266979b427c81097c2ea2c85f994535f54..0000000000000000000000000000000000000000 --- a/funcom_test/33304056.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getAsList(String key, String separator) { - StringBuffer sb = new StringBuffer(); - Iterator it = (Iterator)get(key); - while (it != null && it.hasNext()) { - if (sb.length() != 0) - sb.append(separator); - sb.append(it.next().toString()); - } - return sb.toString(); - } - COM: <s> returns the code string code representations of all the values </s> - diff --git a/funcom_test/33304310.txt b/funcom_test/33304310.txt deleted file mode 100644 index a1d07e102d5eca954026233b8ae8ad8fe84d01ae..0000000000000000000000000000000000000000 --- a/funcom_test/33304310.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public MultipartFileInfo getFile(String name) { - Iterator it = null; - MultipartFileInfo mfi = null; - - if (! multiPart) return null; - - it = (Iterator)files.get(name); - if (it != null && it.hasNext()) { - mfi = (MultipartFileInfo)it.next(); - } - return mfi; - } - COM: <s> returns a code multipart file info code providing access to the file </s> - diff --git a/funcom_test/33387490.txt b/funcom_test/33387490.txt deleted file mode 100644 index 8dadfd5c80cf5f9c6f348128ea8b969612a40511..0000000000000000000000000000000000000000 --- a/funcom_test/33387490.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public double getPercent() { - // If we have no range - if (maxProgress <= minProgress) { - return 0.0; - } - - // Calculate the relative progress - double percent = (curProgress - minProgress) / (maxProgress - minProgress); - return Math.max(0.0, Math.min(1.0, percent)); - } - COM: <s> get the current percent complete relative to the minimum and maximum </s> - diff --git a/funcom_test/33387504.txt b/funcom_test/33387504.txt deleted file mode 100644 index 6491ff7dc2764d4fea83c576b11011e535204863..0000000000000000000000000000000000000000 --- a/funcom_test/33387504.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void onResize(int width, int height) { - if (textVisible) { - int textWidth = DOM.getElementPropertyInt(textElement, "offsetWidth"); - int left = (width / 2) - (textWidth / 2); - DOM.setStyleAttribute(textElement, "left", left + "px"); - } - } - COM: <s> this method is called when the dimensions of the parent element change </s> - diff --git a/funcom_test/33387508.txt b/funcom_test/33387508.txt deleted file mode 100644 index 7e6787b7e8b8fb19a8658042e7a376a74bf0d70b..0000000000000000000000000000000000000000 --- a/funcom_test/33387508.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void redraw() { - if (isAttached()) { - int width = DOM.getElementPropertyInt(getElement(), "clientWidth"); - int height = DOM.getElementPropertyInt(getElement(), "clientHeight"); - onResize(width, height); - } - } - COM: <s> redraw the progress bar when something changes the layout </s> - diff --git a/funcom_test/33387548.txt b/funcom_test/33387548.txt deleted file mode 100644 index 80eff78dd6e27e8ecfe34160eee7e0e5a2f7a16f..0000000000000000000000000000000000000000 --- a/funcom_test/33387548.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setTextVisible(boolean isVisible) { - this.textVisible = isVisible; - if (this.textVisible) { - DOM.setStyleAttribute(textElement, "display", ""); - redraw(); - } else { - DOM.setStyleAttribute(textElement, "display", "none"); - } - } - COM: <s> sets whether the text is visible over the bar </s> - diff --git a/funcom_test/33483443.txt b/funcom_test/33483443.txt deleted file mode 100644 index 590a64f185efbf3b43fad5e79abdef60f3f4789c..0000000000000000000000000000000000000000 --- a/funcom_test/33483443.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private IPLocation getIPLocation(byte[] ip) { - IPLocation info = null; - long offset = locateIP(ip); - if (offset != -1) { - info = getIPLocation(offset); - } - if (info == null) { - info = new IPLocation(); - // info.country = LumaQQ.getString("unknown.country"); - // info.area = LumaQQ.getString("unknown.area"); - info.country = ""; - info.area = ""; - } - return info; - } - COM: <s> ip ip iplocation ip ip </s> - diff --git a/funcom_test/33483478.txt b/funcom_test/33483478.txt deleted file mode 100644 index 82bbb837fc6ecd0a46e2ba3162fe4af5529498a6..0000000000000000000000000000000000000000 --- a/funcom_test/33483478.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public UserOnline findUserOnlineByUserID(String userID) { - List l = this.getHibernateTemplate().find(LOAD_BY_USERID, userID); - if (l == null || l.isEmpty()) { - return null; - } - else { - return (UserOnline) l.get(0); - } - } - COM: <s> user id user online </s> - diff --git a/funcom_test/33483479.txt b/funcom_test/33483479.txt deleted file mode 100644 index 0aa822b40a8fca7f03d617d9d9f4d6e6138e27fb..0000000000000000000000000000000000000000 --- a/funcom_test/33483479.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public UserOnline findUserOnlineByUserName(String userName) { - List l = this.getHibernateTemplate().find(LOAD_BY_USERNAME, userName); - if (l == null || l.isEmpty()) { - return null; - } - else { - return (UserOnline) l.get(0); - } - } - COM: <s> user name user online </s> - diff --git a/funcom_test/33483567.txt b/funcom_test/33483567.txt deleted file mode 100644 index 9c0f634f0afe84ec3cacef1af7ab3e4d4a704af5..0000000000000000000000000000000000000000 --- a/funcom_test/33483567.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public LoginError findLoginErrorByUserID(String userID) { - List l = this.getHibernateTemplate().find(LOAD_BY_USERID, userID); - if (l == null || l.isEmpty()) { - return null; - } - else { - return (LoginError) l.get(0); - } - } - COM: <s> user id login error </s> - diff --git a/funcom_test/33483576.txt b/funcom_test/33483576.txt deleted file mode 100644 index 6b28149e699c95525f233b5190ae24b239244994..0000000000000000000000000000000000000000 --- a/funcom_test/33483576.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public BoardPermission findBoardPermissionByBidGid(long bid, int gid) { - Object[] o = {new Long(bid), new Integer(gid)}; - List l = this.getHibernateTemplate().find(LOAD_BY_BID_GID, o); - if (l == null || l.isEmpty()) { - return null; - } - else { - return (BoardPermission) l.get(0); - } - } - COM: <s> board id grouop id board permission </s> - diff --git a/funcom_test/33519719.txt b/funcom_test/33519719.txt deleted file mode 100644 index 17232ad88e75d2ebd4c3d5cae3832ada0e62d035..0000000000000000000000000000000000000000 --- a/funcom_test/33519719.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getContentAsString() throws FileNotFoundException, IOException { - - BufferedReader br; - - br = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8")); - - String line; - String content = ""; - - while ((line = br.readLine()) != null) { - content = content + line + "\n"; - } - br.close(); - - return content; - } - COM: <s> gets a content of a response as a string </s> - diff --git a/funcom_test/33519720.txt b/funcom_test/33519720.txt deleted file mode 100644 index 6c37c882026597229ebc6777cad68b0ff90cd375..0000000000000000000000000000000000000000 --- a/funcom_test/33519720.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String encode(String string) throws EncoderException { - - byte[] bytes, encoded_bytes; - String encoded_string = ""; - - try { - bytes = string.getBytes("UTF-8"); - encoded_bytes = encodeBase64(bytes); - encoded_string = new String(encoded_bytes); - - } catch (UnsupportedEncodingException ex) { - ex.printStackTrace(); - } - return encoded_string; - } - COM: <s> encodes a string using base64 encoding </s> - diff --git a/funcom_test/33519726.txt b/funcom_test/33519726.txt deleted file mode 100644 index 54a5a09dc78faf6a0880abb48053714a5ec30608..0000000000000000000000000000000000000000 --- a/funcom_test/33519726.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setBasicAuthentication(String username, String password) throws EncoderException { - Base64StringEncoder encoder = new Base64StringEncoder(); - String login = username + ":" + password; - String encoded_login = encoder.encode(login); - addRequestHeader(new Header("Authorization", "Basic " + encoded_login)); - } - COM: <s> sets basic authentication </s> - diff --git a/funcom_test/33553925.txt b/funcom_test/33553925.txt deleted file mode 100644 index 77dad6eb91f814f61293659e4561b1a22c4de989..0000000000000000000000000000000000000000 --- a/funcom_test/33553925.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void initiateSearch() { - CharSequence query = ((EditText)findViewById(R.id.searchText)).getText(); - if (query.length() > 0) { - showDialog(DIALOG_SEARCHING); - AsyncBlipApi.startSearch(query.toString(), - new AsyncBlipApi.ResultCallback() { - public void onComplete(final Bundle result) { - runOnUiThread(new Runnable() { - public void run() { - onSearchResult(result); - } - }); - } - }); - } - } - COM: <s> called when the user clicks the search button </s> - diff --git a/funcom_test/33553987.txt b/funcom_test/33553987.txt deleted file mode 100644 index 2f279c1aaa27285ef563fcb7702c7fe671486e19..0000000000000000000000000000000000000000 --- a/funcom_test/33553987.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: static ApiResult getPublic(Integer offset, Integer count) { - Uri.Builder b = new Uri.Builder() - .path(base) - .appendPath("getPublic" + FORMAT) - .appendQueryParameter("apiKey", apiKey); - if (offset != null) - b.appendQueryParameter("offset", offset.toString()); - if (count != null) - b.appendQueryParameter("count", count.toString()); - - return fetchGet(signGet(b)); - } - COM: <s> get public blips the all blips page ordered by recency </s> - diff --git a/funcom_test/33583233.txt b/funcom_test/33583233.txt deleted file mode 100644 index 3ad4de2b96071896b9b318c9eb43103929582f98..0000000000000000000000000000000000000000 --- a/funcom_test/33583233.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void refresh() { - // disable Quit menu is game is over or round is over - // it is a little odd that user can't quit when - // round is over, but else Quit will put a Move into - // BlockingQueue when the thread has terminated. - if (_game.isRunning() ) { - _quitMenuItem.setEnabled(true); - } else { - _quitMenuItem.setEnabled(false); - } - } - COM: <s> update menu status based on game progress </s> - diff --git a/funcom_test/33583240.txt b/funcom_test/33583240.txt deleted file mode 100644 index 4c0a064676798c00e3785813cdae3dcc5e896cee..0000000000000000000000000000000000000000 --- a/funcom_test/33583240.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: // private int getGapWidth() { -// -// int gapWidth = 0; -// -// int width = getWidth(); -// int size = _hand.size(); -// if (width > size * _cardWidth) { -// gapWidth = (width - size * _cardWidth) / (size + 1); -// } else { -// gapWidth = (width - size * _cardWidth) / (size - 1); -// } -// -// return gapWidth; -// } - COM: <s> returns the horizontal gap between two adjacent cards </s> - diff --git a/funcom_test/33593226.txt b/funcom_test/33593226.txt deleted file mode 100644 index 69f2ee20cd652426cbd88d94aa9c3772705ef61c..0000000000000000000000000000000000000000 --- a/funcom_test/33593226.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String selectCustomer() { - myLogger.info("customer selected with id " + selectedCustomerId); - - currentCustomer = (Customer) em.createQuery( - "select o from Customer o where o.id =:customerId") - .setParameter("customerId", selectedCustomerId) - .getSingleResult(); - - // no configuration in faces-config.xml required as the String defaults - // (and redirects) to customerDetail.xhtml - return NavigationConstants.CUSTOMER_DETAIL; - } - COM: <s> id of current customer is transferred via jsf directly </s> - diff --git a/funcom_test/33593459.txt b/funcom_test/33593459.txt deleted file mode 100644 index 5bff597bdfd37497638c2faa078fa921c2263414..0000000000000000000000000000000000000000 --- a/funcom_test/33593459.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Event execute(RequestContext requestContext) throws Exception { - - /* - * Fetches the phone number from the request parameters. - */ - String phoneNumber = requestContext.getRequestParameters().get("phoneInputForm:inputPhoneId"); - - /* - * Service call with the previously fetched phone number - */ - String exists = this.customerService.existsCustomer(phoneNumber); - return new Event(this, exists); - } - COM: <s> executes the action </s> - diff --git a/funcom_test/33611840.txt b/funcom_test/33611840.txt deleted file mode 100644 index 8b19fa8a3249b05021d2496d7b02a531ef0a1276..0000000000000000000000000000000000000000 --- a/funcom_test/33611840.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int flush() throws InterruptedException{ - int count = 0; - while(this.getReportQueue().size()!=0){ - Report report = this.getReportQueue().getFirst(); - if(this.flush(report)){ - this.getReportQueue().remove(report); - count ++; - } - } - return count; - } - COM: <s> executes all reports </s> - diff --git a/funcom_test/33624914.txt b/funcom_test/33624914.txt deleted file mode 100644 index 8e1ef0f78793b58e22b2a7a7578f142ee7a33430..0000000000000000000000000000000000000000 --- a/funcom_test/33624914.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void compactHand() { - compactedArr = new PlayingCard[GameData.YANIV_NUM_CARDS]; - int idxInComapctedArr = 0; - for (int idxInCards = 0; idxInCards < cards.length; idxInCards++) { - if (cards[idxInCards] != null) { - compactedArr[idxInComapctedArr++] = cards[idxInCards]; - } - } - this.cards = compactedArr; - this.firstFreeLocation = idxInComapctedArr; - } - COM: <s> compacting filling the first cards and leaving the blanks towards the end </s> - diff --git a/funcom_test/33625289.txt b/funcom_test/33625289.txt deleted file mode 100644 index 7a045e44528f59c48ae5648d2d4fc70cdc7661c1..0000000000000000000000000000000000000000 --- a/funcom_test/33625289.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void pickup(PickupMethod method){ - GameData gameData = GameData.getInstance(); - switch (method) { - case fromDeck: - //pickup from deck - addCard(gameData.getDeck().popTopCard()); - break; - case fromThrown: - //pickup from thrown - addCard(gameData.getThrownCards().popTopCard()); - break; - case decidePickup: - //decide and add - if (strategy!=null){ - addCard(strategy.decidePickUp()); - }else{ - addCard(gameData.getDeck().popTopCard()); - } - break; - } - } - COM: <s> hand picks up a card </s> - diff --git a/funcom_test/33630301.txt b/funcom_test/33630301.txt deleted file mode 100644 index 524b4ff0b2aaf8426e4a9c30b79fbcb4a271f274..0000000000000000000000000000000000000000 --- a/funcom_test/33630301.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void insertItem(int uid,int category,String description,String start, String end, double minBid, String name){ - String query = "INSERT INTO item " + - "VALUES (Null,'"+description+"','"+uid+"','"+start+"','"+end+"','"+minBid+"','"+category+"','"+name+"')"; - db.execute(query); - } - COM: <s> inserts a new item into the database </s> - diff --git a/funcom_test/33652878.txt b/funcom_test/33652878.txt deleted file mode 100644 index e14e9101488e69ddc17e669f2ff6bfb62635ae09..0000000000000000000000000000000000000000 --- a/funcom_test/33652878.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String getOperatingSystem() { - String name = System.getProperty("os.name"); - if (name.startsWith("Linux")) { - return "linux"; - } else if (name.startsWith("Mac OS X")) { - return "macosx"; - } else if (name.startsWith("Windows")) { - return "win32"; - } - return "unknown"; - } - COM: <s> determines and returns the operating system name as needed by eclipse </s> - diff --git a/funcom_test/33652883.txt b/funcom_test/33652883.txt deleted file mode 100644 index a8906827e43f43bb25504aa9a43938cde04ef763..0000000000000000000000000000000000000000 --- a/funcom_test/33652883.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String getWindowSystem() { - String name = System.getProperty("os.name"); - if (name.startsWith("Linux")) { - return "gtk"; - } else if (name.startsWith("Mac OS X")) { - return "carbon"; - } else if (name.startsWith("Windows")) { - return "win32"; - } - return "unknown"; - } - COM: <s> determines and returns the window system name as needed by eclipse </s> - diff --git a/funcom_test/33652915.txt b/funcom_test/33652915.txt deleted file mode 100644 index f912eb85682b4a1cf65b46fabcd62a4c19483917..0000000000000000000000000000000000000000 --- a/funcom_test/33652915.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected File getJarFile(File directory, String finalName, String classifier) { - if (classifier == null) { - classifier = ""; - } else if ((classifier.trim().length() > 0) && (!classifier.startsWith("-"))) { - classifier = "-" + classifier; - } - return new File(directory, finalName + classifier + ".jar"); - } - COM: <s> returns the jar file </s> - diff --git a/funcom_test/33652923.txt b/funcom_test/33652923.txt deleted file mode 100644 index f7f2d14f9c743f3d6ac7a0391e8b63389430d4c9..0000000000000000000000000000000000000000 --- a/funcom_test/33652923.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private File getManifestFile(File manifestDirectory) throws MojoExecutionException { - File manifestFile = new File(manifestDirectory, MANIFEST_FILE_NAME); - if (manifestFile.exists()) { - getLog().info("deleting existing manifest file!"); - manifestFile.delete(); - } - if (!manifestFile.exists()) { - try { - manifestFile.createNewFile(); - } - catch (IOException e) { - throw new MojoExecutionException("Could not create Manifest File", e); - } - } - else { - getLog().warn("PST Mojo Overwriting existing Manifest File"); - } - return manifestFile; - } - COM: <s> returns the manifest file </s> - diff --git a/funcom_test/33652948.txt b/funcom_test/33652948.txt deleted file mode 100644 index 404f2ad3162a9274eaba686f9e9abb869423252d..0000000000000000000000000000000000000000 --- a/funcom_test/33652948.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void copyFile(File sourceFile, File destinationFile) throws IOException { - FileInputStream sourceStream = new FileInputStream(sourceFile); - FileOutputStream destinationStream = new FileOutputStream(destinationFile); - IOUtil.copy(sourceStream, destinationStream); - IOUtil.close(sourceStream); - IOUtil.close(destinationStream); - } - COM: <s> copies the contents of the specified source file to the specified </s> - diff --git a/funcom_test/33652953.txt b/funcom_test/33652953.txt deleted file mode 100644 index e8cf6a6bfe1a18386ec82e46bdb2ef5c51d4e31b..0000000000000000000000000000000000000000 --- a/funcom_test/33652953.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private File copyArtifact(File file) throws MojoExecutionException { - String fileName = file.getName(); - File copy = new File(libDirectory, fileName); - if (!copy.exists()) { - try { - copy.createNewFile(); - } - catch (IOException e) { - throw new MojoExecutionException("Could not create new File " + fileName, e); - } - } - try { - copyFile(file, copy); - } - catch (IOException e) { - throw new MojoExecutionException("Error Copying file " + fileName, e); - } - return copy; - } - COM: <s> copies the artifact </s> - diff --git a/funcom_test/33652964.txt b/funcom_test/33652964.txt deleted file mode 100644 index ca4cdbcf6835117e1b696ba15bb1ed6e6d096e71..0000000000000000000000000000000000000000 --- a/funcom_test/33652964.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void dumpProperties() { - getLog().info("Properties:"); - getLog().info("-----------"); - Properties properties = project.getProperties(); - if (properties != null) { - properties.list(System.out); - } else { - getLog().info("null"); - } - } - COM: <s> dumps the properties </s> - diff --git a/funcom_test/33652966.txt b/funcom_test/33652966.txt deleted file mode 100644 index 4c78bad664844a902b0378ffe2153b674678fcd6..0000000000000000000000000000000000000000 --- a/funcom_test/33652966.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void dumpModules() { - getLog().info("Modules:"); - getLog().info("--------"); - Iterator iterator = project.getModules().iterator(); - while (iterator.hasNext()) { - getLog().info("Module: " + iterator.next()); - } - } - COM: <s> dumps the modules </s> - diff --git a/funcom_test/33652989.txt b/funcom_test/33652989.txt deleted file mode 100644 index c07dfa8b73dd7a465a06564af8c70819c70c5e08..0000000000000000000000000000000000000000 --- a/funcom_test/33652989.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private File getModifiedFileHandle() throws MojoExecutionException { - File newManifest = new File(outputDirectory, MANIFEST_FILE_NAME); - try { - if (!newManifest.exists()) { - newManifest.createNewFile(); - } - } catch (IOException e) { - throw new MojoExecutionException("Failed during updating of manifest file for testing", e); - } - return newManifest; - } - COM: <s> returns the modified file handle </s> - diff --git a/funcom_test/33652999.txt b/funcom_test/33652999.txt deleted file mode 100644 index 6a1d451225f858e6b4f905dd463272a0477e2beb..0000000000000000000000000000000000000000 --- a/funcom_test/33652999.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testMojoLookup() throws Exception { - File pluginXml = new File(getBasedir(), "src/test/resources/pom-modifier-plugin-config.xml"); - PomModifierMojo mojo = (PomModifierMojo) lookupMojo("update", pluginXml); - assertNotNull(mojo); - } - COM: <s> test to make sure that the mojo can be found </s> - diff --git a/funcom_test/33653016.txt b/funcom_test/33653016.txt deleted file mode 100644 index f201fe55116ca7e8ee6745604ca32949c1f53fd3..0000000000000000000000000000000000000000 --- a/funcom_test/33653016.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private DependencyManagement getDependenciesUsingParser(String manifestPath) throws IOException { - InputStream inputStream = getClass().getResourceAsStream(manifestPath); - Manifest manifest = new Manifest(inputStream); - ManifestParser parser = new ManifestParser(manifest); - parser.parse(); - DependencyManagement management = parser.getDependencyManagement(); - return management; - } - COM: <s> uses the manifest parser to parse out the dependencies </s> - diff --git a/funcom_test/33653067.txt b/funcom_test/33653067.txt deleted file mode 100644 index 4cf784e3374c577d4ec8555e9dd6d59cbf02e973..0000000000000000000000000000000000000000 --- a/funcom_test/33653067.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void setDefaultPrefix() { - if ((prefixes == null) || (prefixes.size() == 0)) { - if (prefixes == null) { - prefixes = new ArrayList(); - } - String artifactId = mavenProject.getArtifactId(); - String[] segments = artifactId.split("\\."); - String prefix; - if (segments.length > 1) { - prefix = segments[0] + "." + segments[1] + "."; - } else { - prefix = segments[0]; - } - getLog().info( - "Defaulting prefixes to the single prefix '" + prefix - + "'."); - prefixes.add(prefix); - } - } - COM: <s> sets the default prefix </s> - diff --git a/funcom_test/33653079.txt b/funcom_test/33653079.txt deleted file mode 100644 index bdb1f1ab5c642ac5fd525a8c4c20f80d626752d2..0000000000000000000000000000000000000000 --- a/funcom_test/33653079.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Writer getWriter(String logFileName) throws IOException { - File targetDir = new File(baseDirectory, TARGET_DIRECTORY); - File logDir = new File(targetDir, LOGS_DIRECTORY); - if (!logDir.exists()) { - logDir.mkdirs(); - } - File pomLog = new File(logDir, logFileName); - if (!pomLog.exists()) { - pomLog.createNewFile(); - } - return new FileWriter(pomLog); - } - COM: <s> creates and returns a writer for logging a pom </s> - diff --git a/funcom_test/33659741.txt b/funcom_test/33659741.txt deleted file mode 100644 index 5339d17e0ee765928d7b2c08e0081ffe68aa6130..0000000000000000000000000000000000000000 --- a/funcom_test/33659741.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void init(Context ctx, String queueName) throws NamingException, JMSException { - qconFactory = (QueueConnectionFactory) ctx.lookup(QUEUE_CONNECTION_FACTORY); - qcon = qconFactory.createQueueConnection(); - qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); - queue = (Queue) ctx.lookup(queueName); - qsender = qsession.createSender(queue); - //qcon.start(); - } - COM: <s> creates all the necessary objects for sending messages to a jms queue </s> - diff --git a/funcom_test/33692122.txt b/funcom_test/33692122.txt deleted file mode 100644 index 24fbd9f507dce92e66bc60c980fa97fef47f15d9..0000000000000000000000000000000000000000 --- a/funcom_test/33692122.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void listen() { - - log.debug( "listen", "Init..." ); - - changeStatus( UA_IDLE ); - - call = new ExtendedCall( sipProvider, userProfile.fromUrl, - userProfile.contactUrl, userProfile.username, - userProfile.realm, userProfile.passwd, this ); - - call.listen(); - } - COM: <s> waits for an incoming call acting as uas </s> - diff --git a/funcom_test/33692128.txt b/funcom_test/33692128.txt deleted file mode 100644 index 16b4a31f16d86eb1eb01962d686f9254162cd349..0000000000000000000000000000000000000000 --- a/funcom_test/33692128.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void hangup() { - - log.debug( "hangup", "Init..." ); - - if ( clip_ring != null ) { - clip_ring.stop(); - } - - closeMediaApplication(); - - if ( call != null ) { - call.hangup(); - } - - changeStatus( UA_IDLE ); - } - COM: <s> closes an ongoing incoming or pending call </s> - diff --git a/funcom_test/33692179.txt b/funcom_test/33692179.txt deleted file mode 100644 index 8ca4656bd5a6f3e069e5f3df561cd6daf4adfb23..0000000000000000000000000000000000000000 --- a/funcom_test/33692179.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void closeMediaApplication() { - - log.debug( "closeMediaApplication", "Init..." ); - - if ( audioApp != null ) { - - audioApp.stopMedia(); - audioApp = null; - } - - if ( videoApp != null ) { - - videoApp.stopMedia(); - videoApp = null; - } - } - COM: <s> close the media application </s> - diff --git a/funcom_test/33692242.txt b/funcom_test/33692242.txt deleted file mode 100644 index 6161f1431ae3bcc37556156100c91489017bb83f..0000000000000000000000000000000000000000 --- a/funcom_test/33692242.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void onCallReInviteAccepted( Call call, String sdp, Message resp ) { - - log.debug( "onCallReInviteAccepted", "Init..." ); - - if ( call != this.call ) { - log.debug( "onCallReInviteAccepted", "NOT the current call." ); - return; - } - - log.debug( "onCallReInviteAccepted", "RE-INVITE-ACCEPTED/CALL." ); - } - COM: <s> callback function called when arriving a 2xx re invite modify accepted </s> - diff --git a/funcom_test/33692326.txt b/funcom_test/33692326.txt deleted file mode 100644 index 86c4bc859ce3069312964348a4b99e58c3a72df8..0000000000000000000000000000000000000000 --- a/funcom_test/33692326.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void onCallTransferAccepted( ExtendedCall call, Message resp ) { - - log.debug( "onCallTransferAccepted", "Init..." ); - - if ( call != this.call ) { - log.debug( "onCallTransferAccepted", "NOT the current call." ); - return; - } - - log.debug( "onCallTransferAccepted", "Transfer accepted." ); - } - COM: <s> callback function called when a call transfer is accepted </s> - diff --git a/funcom_test/33692342.txt b/funcom_test/33692342.txt deleted file mode 100644 index 1dc44cf5d125be3015c43c65dc8e695ab3848ba9..0000000000000000000000000000000000000000 --- a/funcom_test/33692342.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void onCallTransferRefused( ExtendedCall call, String reason, Message resp ) { - - log.debug( "onCallTransferRefused", "Init..." ); - - if ( call != this.call ) { - log.debug( "onCallTransferRefused", "NOT the current call." ); - return; - } - - log.debug( "onCallTransferRefused", "Transfer refused." ); - } - COM: <s> callback function called when a call transfer is refused </s> - diff --git a/funcom_test/33692374.txt b/funcom_test/33692374.txt deleted file mode 100644 index a0c3bbff708bc03f8c8ff2391010e8da911fbe86..0000000000000000000000000000000000000000 --- a/funcom_test/33692374.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void onCallTransferFailure( ExtendedCall call, String reason, Message notify ) { - - log.debug( "onCallTransferFailure", "Init..." ); - - if ( call != this.call ) { - log.debug( "onCallTransferFailure", "NOT the current call." ); - return; - } - - log.debug( "onCallTransferFailure", "Transfer failed." ); - } - COM: <s> callback function called when a call transfer is not sucessfully </s> - diff --git a/funcom_test/33698338.txt b/funcom_test/33698338.txt deleted file mode 100644 index 136cb76b5db2d5ea874822975f950d7a70740819..0000000000000000000000000000000000000000 --- a/funcom_test/33698338.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void attackerReportCallback(FormInfo formInfo, BaseReportItem report) { - if(this.isCAPTCHACrackSuccessful(formInfo, report)){return;} - if(formInfo.CAPTCHACrackRetryTimes>=Configuration.MAX_RETRY_CAPTCHACRACK) - { - formInfo.CAPTCHACrackRetryTimes=Configuration.MAX_RETRY_CAPTCHACRACK;//avoid potential overflow problem. - this.doCAPTCHAAttack(formInfo, true); - } - else - { - this.doCAPTCHAAttack(formInfo, false); - } - attacker.attack(formInfo); - } - COM: <s> this method is used to invoke proper method for captcha analysis </s> - diff --git a/funcom_test/33701470.txt b/funcom_test/33701470.txt deleted file mode 100644 index b2217dfab8da62e1e8ecd6f816095534d6f7447f..0000000000000000000000000000000000000000 --- a/funcom_test/33701470.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Customer findCustomer(int aNumber, int aPin) - { - for (int i = 0; i < customers.size(); i++) - { - Customer c = (Customer)customers.get(i); - if (c.match(aNumber, aPin)) - return c; - } - return null; - } - COM: <s> finds a customer in the bank </s> - diff --git a/funcom_test/33702557.txt b/funcom_test/33702557.txt deleted file mode 100644 index acd66b754443667b16b6a0efeaae935e9b018915..0000000000000000000000000000000000000000 --- a/funcom_test/33702557.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - out.println(dataField.getText()); - String response; - try { - response = in.readLine(); - if (response == null || response.equals("")) { - System.exit(0); - } - } catch (IOException ex) { - response = "Error: " + ex; - } - messageArea.append(response + "\n"); - dataField.selectAll(); - } - COM: <s> responds to pressing the enter key in the textfield </s> - diff --git a/funcom_test/33707109.txt b/funcom_test/33707109.txt deleted file mode 100644 index 42bb7d11dd399e04e18afca3c631c840dbbf714b..0000000000000000000000000000000000000000 --- a/funcom_test/33707109.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean isAcceptedBy(Filter filter){ - if(constraintFailed(filter,"floors",this.floors)) return false; - if(constraintFailed(filter,"rooms",this.rooms)) return false; - if(constraintFailed(filter,"builtDate",this.builtDate)) return false; - - return super.isAcceptedBy(filter); - } - COM: <s> checks if this offer is apartment offer is accepted by the given filter </s> - diff --git a/funcom_test/33718414.txt b/funcom_test/33718414.txt deleted file mode 100644 index 87f9e02ff9e159c350c924b18c45ff12641ee699..0000000000000000000000000000000000000000 --- a/funcom_test/33718414.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testSetFname() { - System.out.println("setFName"); - - String f = "James"; - - - instance.setFname(f); - assertEquals(f, instance.getFname()); - //System.out.println("Success!"); - - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of set fname method of class tools </s> - diff --git a/funcom_test/33718416.txt b/funcom_test/33718416.txt deleted file mode 100644 index b470150cfee2ca9b66d59f44c616cff9ac2f61f0..0000000000000000000000000000000000000000 --- a/funcom_test/33718416.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetFname() { - System.out.println("getFName"); - - - - String expResult = "James"; - String result = instance.getFname(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of get fname method of class tools </s> - diff --git a/funcom_test/33718419.txt b/funcom_test/33718419.txt deleted file mode 100644 index 032c433bf84c4df0c61f8580c232cd6ad2fc52da..0000000000000000000000000000000000000000 --- a/funcom_test/33718419.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testSetLname() { - System.out.println("setLName"); - - String l = "Jones"; - - instance.setLname(l); - assertEquals(l, instance.getLname()); - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of set lname method of class tools </s> - diff --git a/funcom_test/33718423.txt b/funcom_test/33718423.txt deleted file mode 100644 index 872dddeaa7b37a5bad4643ec90555ab6663669e6..0000000000000000000000000000000000000000 --- a/funcom_test/33718423.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testGetLname() { - System.out.println("getLName"); - - String expResult = "Jones"; - String result = instance.getLname(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of get lname method of class tools </s> - diff --git a/funcom_test/33718431.txt b/funcom_test/33718431.txt deleted file mode 100644 index bfaa5698f5ae14bee8768ad33c489ab9109351c1..0000000000000000000000000000000000000000 --- a/funcom_test/33718431.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testGetAddr1() { - System.out.println("getAddr1"); - - - String expResult = ""; - String result = instance.getAddr1(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of get addr1 method of class tools </s> - diff --git a/funcom_test/33718438.txt b/funcom_test/33718438.txt deleted file mode 100644 index d25504c3e8f88b3c884a2b47043f938c6c71c7b6..0000000000000000000000000000000000000000 --- a/funcom_test/33718438.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testRemoveEvent() { - System.out.println("removeEvent"); - - int id = 0; - Event_StubImpl instance = new Event_StubImpl(); - - instance.removeEvent(id); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of remove event method of class tools </s> - diff --git a/funcom_test/33718441.txt b/funcom_test/33718441.txt deleted file mode 100644 index 7434ceb7b936392150a4aa12c89eb005dd7d8e85..0000000000000000000000000000000000000000 --- a/funcom_test/33718441.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAddr2() { - System.out.println("getAddr2"); - - - - String expResult = ""; - String result = instance.getAddr2(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of get addr2 method of class tools </s> - diff --git a/funcom_test/33718442.txt b/funcom_test/33718442.txt deleted file mode 100644 index a49679a14f18cff5a0047354abe3baa42a6c34b4..0000000000000000000000000000000000000000 --- a/funcom_test/33718442.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSearchEvent() { - System.out.println("searchEvent"); - - String searchString = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.searchEvent(searchString); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of search event method of class tools </s> - diff --git a/funcom_test/33718443.txt b/funcom_test/33718443.txt deleted file mode 100644 index eba774e69d5c68074ff0568409abee524c1e6831..0000000000000000000000000000000000000000 --- a/funcom_test/33718443.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetId() { - System.out.println("getId"); - - Event_StubImpl instance = new Event_StubImpl(); - - int expResult = 0; - int result = instance.getId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get id method of class tools </s> - diff --git a/funcom_test/33718445.txt b/funcom_test/33718445.txt deleted file mode 100644 index 0dbec228d2826a38164be97e9e744ba3308cbf87..0000000000000000000000000000000000000000 --- a/funcom_test/33718445.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetId() { - System.out.println("setId"); - - int id = 0; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setId(id); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set id method of class tools </s> - diff --git a/funcom_test/33718447.txt b/funcom_test/33718447.txt deleted file mode 100644 index cd9c45abf8b60d2cfe8f1271ba755d7ae108f127..0000000000000000000000000000000000000000 --- a/funcom_test/33718447.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetTitle() { - System.out.println("getTitle"); - - Event_StubImpl instance = new Event_StubImpl(); - - String expResult = ""; - String result = instance.getTitle(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get title method of class tools </s> - diff --git a/funcom_test/33718448.txt b/funcom_test/33718448.txt deleted file mode 100644 index a689efd6d22a94c84bf71e90fa392825e626ec8f..0000000000000000000000000000000000000000 --- a/funcom_test/33718448.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetCity() { - System.out.println("getCity"); - - - - String expResult = ""; - String result = instance.getCity(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of get city method of class tools </s> - diff --git a/funcom_test/33718450.txt b/funcom_test/33718450.txt deleted file mode 100644 index 14e972ba65ef20770488a1e2dbaef3ed8eb4213e..0000000000000000000000000000000000000000 --- a/funcom_test/33718450.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetTitle() { - System.out.println("setTitle"); - - String title = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setTitle(title); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set title method of class tools </s> - diff --git a/funcom_test/33718454.txt b/funcom_test/33718454.txt deleted file mode 100644 index 27abf1e05cc2a47aa1beac81e2b576489bb545f7..0000000000000000000000000000000000000000 --- a/funcom_test/33718454.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetDescription() { - System.out.println("setDescription"); - - String description = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setDescription(description); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set description method of class tools </s> - diff --git a/funcom_test/33718455.txt b/funcom_test/33718455.txt deleted file mode 100644 index c285b2d852911f16876d473268f5968047c894f6..0000000000000000000000000000000000000000 --- a/funcom_test/33718455.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetClassId() { - System.out.println("getClassId"); - - Event_StubImpl instance = new Event_StubImpl(); - - int expResult = 0; - int result = instance.getClassId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get class id method of class tools </s> - diff --git a/funcom_test/33718456.txt b/funcom_test/33718456.txt deleted file mode 100644 index 171ba6d6e1692b3674be5b6e2ae7a58fe223d66c..0000000000000000000000000000000000000000 --- a/funcom_test/33718456.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetState() { - System.out.println("getState"); - - - - String expResult = ""; - String result = instance.getState(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get state method of class tools </s> - diff --git a/funcom_test/33718458.txt b/funcom_test/33718458.txt deleted file mode 100644 index 8230f4efc00cc2733bc3c49a1128bf09233ad5b7..0000000000000000000000000000000000000000 --- a/funcom_test/33718458.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetClassId() { - System.out.println("setClassId"); - - int classId = 0; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setClassId(classId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set class id method of class tools </s> - diff --git a/funcom_test/33718459.txt b/funcom_test/33718459.txt deleted file mode 100644 index 6e1b3ce326a166884547ba9502c4d1b11fc83c01..0000000000000000000000000000000000000000 --- a/funcom_test/33718459.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetZip() { - System.out.println("getZip"); - - - - String expResult = ""; - String result = instance.getZip(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - /// fail("The test case is a prototype."); - } - COM: <s> test of get zip method of class tools </s> - diff --git a/funcom_test/33718462.txt b/funcom_test/33718462.txt deleted file mode 100644 index 985b6653835e4317cc790ae1bf838f01d0c6bf4a..0000000000000000000000000000000000000000 --- a/funcom_test/33718462.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetLocationId() { - System.out.println("getLocationId"); - - Event_StubImpl instance = new Event_StubImpl(); - - int expResult = 0; - int result = instance.getLocationId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get location id method of class tools </s> - diff --git a/funcom_test/33718465.txt b/funcom_test/33718465.txt deleted file mode 100644 index 0d0ba897ca96082c678c6e6f32e86eb76974ef6e..0000000000000000000000000000000000000000 --- a/funcom_test/33718465.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetLocationId() { - System.out.println("setLocationId"); - - int locationId = 0; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setLocationId(locationId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set location id method of class tools </s> - diff --git a/funcom_test/33718466.txt b/funcom_test/33718466.txt deleted file mode 100644 index 2509c17c2306478005e9b293b4e60f23ec456e4b..0000000000000000000000000000000000000000 --- a/funcom_test/33718466.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetPhone() { - System.out.println("getPhone"); - - - - String expResult = ""; - String result = instance.getPhone(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get phone method of class tools </s> - diff --git a/funcom_test/33718467.txt b/funcom_test/33718467.txt deleted file mode 100644 index d32925fefb4b3cab59ff27d092e61997c1ed02f4..0000000000000000000000000000000000000000 --- a/funcom_test/33718467.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupId() { - System.out.println("getGroupId"); - - Event_StubImpl instance = new Event_StubImpl(); - - int expResult = 0; - int result = instance.getGroupId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group id method of class tools </s> - diff --git a/funcom_test/33718471.txt b/funcom_test/33718471.txt deleted file mode 100644 index 43371b874a4d6b02db32ef2782e9a76ca8fa6a4c..0000000000000000000000000000000000000000 --- a/funcom_test/33718471.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupId() { - System.out.println("setGroupId"); - - int groupId = 0; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setGroupId(groupId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group id method of class tools </s> - diff --git a/funcom_test/33718473.txt b/funcom_test/33718473.txt deleted file mode 100644 index 3a4983dad393deaede1531ffd8ef02794747ffa6..0000000000000000000000000000000000000000 --- a/funcom_test/33718473.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetCreatorId() { - System.out.println("getCreatorId"); - - Event_StubImpl instance = new Event_StubImpl(); - - int expResult = 0; - int result = instance.getCreatorId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get creator id method of class tools </s> - diff --git a/funcom_test/33718474.txt b/funcom_test/33718474.txt deleted file mode 100644 index 980410dbbb55e663266b92ffe37e18adb65fe7ae..0000000000000000000000000000000000000000 --- a/funcom_test/33718474.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testGetCell() { - System.out.println("getCell"); - - - String expResult = ""; - String result = instance.getCell(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get cell method of class tools </s> - diff --git a/funcom_test/33718476.txt b/funcom_test/33718476.txt deleted file mode 100644 index eac2a1b3b19e847334213d99708e752228f83a69..0000000000000000000000000000000000000000 --- a/funcom_test/33718476.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetCreatorId() { - System.out.println("setCreatorId"); - - int creatorId = 0; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setCreatorId(creatorId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set creator id method of class tools </s> - diff --git a/funcom_test/33718479.txt b/funcom_test/33718479.txt deleted file mode 100644 index 4b47ca92e2420b2d01efffad789ded98a036b46a..0000000000000000000000000000000000000000 --- a/funcom_test/33718479.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetWarningMessage() { - System.out.println("getWarningMessage"); - - Event_StubImpl instance = new Event_StubImpl(); - - String expResult = ""; - String result = instance.getWarningMessage(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get warning message method of class tools </s> - diff --git a/funcom_test/33718481.txt b/funcom_test/33718481.txt deleted file mode 100644 index 2f2fe050aab55ca77edeaca93ff6bceaf282c7e2..0000000000000000000000000000000000000000 --- a/funcom_test/33718481.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEmail() { - System.out.println("getEmail"); - - - - String expResult = ""; - String result = instance.getEmail(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get email method of class tools </s> - diff --git a/funcom_test/33718482.txt b/funcom_test/33718482.txt deleted file mode 100644 index 45e9b01576102148e90c160116449931ad2ead1b..0000000000000000000000000000000000000000 --- a/funcom_test/33718482.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetWarningMessage() { - System.out.println("setWarningMessage"); - - String warningMessage = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setWarningMessage(warningMessage); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set warning message method of class tools </s> - diff --git a/funcom_test/33718487.txt b/funcom_test/33718487.txt deleted file mode 100644 index 258a3c7a3ad636de6fbdd3e830658badf58278f9..0000000000000000000000000000000000000000 --- a/funcom_test/33718487.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetPassword() { - System.out.println("getPassword"); - - - - String expResult = ""; - String result = instance.getPassword(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get password method of class tools </s> - diff --git a/funcom_test/33718490.txt b/funcom_test/33718490.txt deleted file mode 100644 index 4aa5dc4a34128fa6a8bcc49daebc4fce13eddab2..0000000000000000000000000000000000000000 --- a/funcom_test/33718490.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetStartTime() { - System.out.println("setStartTime"); - - String startTime = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setStartTime(startTime); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set start time method of class tools </s> - diff --git a/funcom_test/33718492.txt b/funcom_test/33718492.txt deleted file mode 100644 index 82b2e6a2ac36208127c8868abf4c53e63dcd59e5..0000000000000000000000000000000000000000 --- a/funcom_test/33718492.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetStartTime() { - System.out.println("getStartTime"); - - Event_StubImpl instance = new Event_StubImpl(); - - String expResult = ""; - String result = instance.getStartTime(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get start time method of class tools </s> - diff --git a/funcom_test/33718493.txt b/funcom_test/33718493.txt deleted file mode 100644 index 03eaa53de9f165a63f000563767916290ae8f455..0000000000000000000000000000000000000000 --- a/funcom_test/33718493.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetStatus() { - System.out.println("getStatus"); - - - - String expResult = ""; - String result = instance.getStatus(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get status method of class tools </s> - diff --git a/funcom_test/33718496.txt b/funcom_test/33718496.txt deleted file mode 100644 index 9259780a4d72b2d9d05fa753a397fdfecba4328b..0000000000000000000000000000000000000000 --- a/funcom_test/33718496.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEndTime() { - System.out.println("setEndTime"); - - String endTime = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setEndTime(endTime); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set end time method of class tools </s> - diff --git a/funcom_test/33718499.txt b/funcom_test/33718499.txt deleted file mode 100644 index f74b7ef38f9e10a73f6fa5b72207e5d7cb46ac23..0000000000000000000000000000000000000000 --- a/funcom_test/33718499.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEndTime() { - System.out.println("getEndTime"); - - Event_StubImpl instance = new Event_StubImpl(); - - String expResult = ""; - String result = instance.getEndTime(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get end time method of class tools </s> - diff --git a/funcom_test/33718500.txt b/funcom_test/33718500.txt deleted file mode 100644 index 1b17e9c800c6b2cd282c67dd71f29083ca282c48..0000000000000000000000000000000000000000 --- a/funcom_test/33718500.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetValidation() { - System.out.println("getValidation"); - - - - String expResult = ""; - String result = instance.getValidation(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get validation method of class tools </s> - diff --git a/funcom_test/33718504.txt b/funcom_test/33718504.txt deleted file mode 100644 index 3914cb09adce1aa18c3b8578655f67b81221c341..0000000000000000000000000000000000000000 --- a/funcom_test/33718504.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetStartDate() { - System.out.println("getStartDate"); - - Event_StubImpl instance = new Event_StubImpl(); - - String expResult = ""; - String result = instance.getStartDate(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get start date method of class tools </s> - diff --git a/funcom_test/33718507.txt b/funcom_test/33718507.txt deleted file mode 100644 index 8c71539c19431f9342b7536244a283255d32e703..0000000000000000000000000000000000000000 --- a/funcom_test/33718507.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetRegDate() { - System.out.println("getRegDate"); - - - - Date expResult = null; - Date result = instance.getRegDate(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get reg date method of class tools </s> - diff --git a/funcom_test/33718509.txt b/funcom_test/33718509.txt deleted file mode 100644 index 455e034057e45d66c8ac3555d6b856b3ec86cf61..0000000000000000000000000000000000000000 --- a/funcom_test/33718509.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetStartDate() { - System.out.println("setStartDate"); - - String startDate = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setStartDate(startDate); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set start date method of class tools </s> - diff --git a/funcom_test/33718511.txt b/funcom_test/33718511.txt deleted file mode 100644 index 376347e8d39414bd2b97d000976426a4f984820f..0000000000000000000000000000000000000000 --- a/funcom_test/33718511.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEndDate() { - System.out.println("getEndDate"); - - Event_StubImpl instance = new Event_StubImpl(); - - String expResult = ""; - String result = instance.getEndDate(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get end date method of class tools </s> - diff --git a/funcom_test/33718513.txt b/funcom_test/33718513.txt deleted file mode 100644 index 9b4cb72ace5c23e660aea8ad0bfb4fa691657c07..0000000000000000000000000000000000000000 --- a/funcom_test/33718513.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testGetLastVisit() { - System.out.println("getLastVisit"); - - - Date expResult = null; - Date result = instance.getLastVisit(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of get last visit method of class tools </s> - diff --git a/funcom_test/33718514.txt b/funcom_test/33718514.txt deleted file mode 100644 index 4dbd0d0d971d99213875414bce0ae7d193480bd7..0000000000000000000000000000000000000000 --- a/funcom_test/33718514.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEndDate() { - System.out.println("setEndDate"); - - String endDate = ""; - Event_StubImpl instance = new Event_StubImpl(); - - instance.setEndDate(endDate); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set end date method of class tools </s> - diff --git a/funcom_test/33718554.txt b/funcom_test/33718554.txt deleted file mode 100644 index 5470eee031891fbf636c476e8442b30279c05dad..0000000000000000000000000000000000000000 --- a/funcom_test/33718554.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testLogin() { - System.out.println("login"); - - String email = ""; - String password = ""; - - instance.login(email, password); - - // TODO review the generated test code and remove the default call to fail. - // fail("The test case is a prototype."); - } - COM: <s> test of login method of class tools </s> - diff --git a/funcom_test/33718801.txt b/funcom_test/33718801.txt deleted file mode 100644 index d8c9d65deeea58065de895047113e5669f97081a..0000000000000000000000000000000000000000 --- a/funcom_test/33718801.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean Contains(int gid){ - if (this.groupList==null){ - return false; - }else{ - Iterator itr = this.groupList.iterator(); - while(itr.hasNext()){ - AutismGroup ag = (AutismGroup)itr.next(); - if(ag.GetGroupId()==gid){ - return true; - } - } - } - return false; - } - COM: <s> verifies if group with input group id is in group list </s> - diff --git a/funcom_test/33718804.txt b/funcom_test/33718804.txt deleted file mode 100644 index 329d9d971f3701e9966110931512b07c6b5eb52b..0000000000000000000000000000000000000000 --- a/funcom_test/33718804.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String GetAutismGroupName(int gid){ - if (this.groupList==null){ - return null; - }else{ - Iterator itr = this.groupList.iterator(); - while(itr.hasNext()){ - AutismGroup ag = (AutismGroup)itr.next(); - if(ag.GetGroupId()==gid){ - return ag.GetGroupName(); - } - } - } - return null; - } - COM: <s> returns the name of the group that has input group id </s> - diff --git a/funcom_test/33718805.txt b/funcom_test/33718805.txt deleted file mode 100644 index cddae738a0a29e5d4b40783cfd6024607fda2be1..0000000000000000000000000000000000000000 --- a/funcom_test/33718805.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int GetAutismGroupId(String gname){ - if (this.groupList==null){ - return -1; - }else{ - Iterator itr = this.groupList.iterator(); - while(itr.hasNext()){ - AutismGroup ag = (AutismGroup)itr.next(); - if(ag.GetGroupName().equals(gname)){ - return ag.GetGroupId(); - } - } - } - return -1; - } - COM: <s> returns group id with given input group name </s> - diff --git a/funcom_test/33719024.txt b/funcom_test/33719024.txt deleted file mode 100644 index ad5296bd81a78988cca5cf11784da49bb638dbdb..0000000000000000000000000000000000000000 --- a/funcom_test/33719024.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public ResultSet searchEvents() { - event = (Event_DBImpl)session.getAttribute("event"); - String searchTitle = request.getParameter("title"); - String searchCity = request.getParameter("city"); - String searchState = request.getParameter("state"); - return event.searchEvent(searchTitle, searchCity, searchState); - } - COM: <s> search events method </s> - diff --git a/funcom_test/33719106.txt b/funcom_test/33719106.txt deleted file mode 100644 index aa3d67e5915a683500b8b31fce008d785da04040..0000000000000000000000000000000000000000 --- a/funcom_test/33719106.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEmail() { - System.out.println("getEmail"); - - Email_DBImpl instance = new Email_DBImpl(); - - String expResult = ""; - String result = instance.getEmail(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get email method of class com </s> - diff --git a/funcom_test/33719107.txt b/funcom_test/33719107.txt deleted file mode 100644 index 15e04622aa3fbf6d36940ed815ffda2ee0b77e16..0000000000000000000000000000000000000000 --- a/funcom_test/33719107.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEmail() { - System.out.println("setEmail"); - - String email = ""; - Email_DBImpl instance = new Email_DBImpl(); - - instance.setEmail(email); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set email method of class com </s> - diff --git a/funcom_test/33719109.txt b/funcom_test/33719109.txt deleted file mode 100644 index 50b4332998188ecf67f915bf9c6f61819c51e741..0000000000000000000000000000000000000000 --- a/funcom_test/33719109.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAllEmail() { - System.out.println("getAllEmail"); - - Email_DBImpl instance = new Email_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getAllEmail(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get all email method of class com </s> - diff --git a/funcom_test/33719112.txt b/funcom_test/33719112.txt deleted file mode 100644 index 3f579c965e3f75388960104d0d3b1b0077b458bf..0000000000000000000000000000000000000000 --- a/funcom_test/33719112.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetUpComingEventList() { - System.out.println("getUpComingEventList"); - - Email_DBImpl instance = new Email_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getUpComingEventList(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get up coming event list method of class com </s> - diff --git a/funcom_test/33719113.txt b/funcom_test/33719113.txt deleted file mode 100644 index e2933dcda5fdee151809784edd0332693887e8f2..0000000000000000000000000000000000000000 --- a/funcom_test/33719113.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEvtID() { - System.out.println("getEvtID"); - - Email_DBImpl instance = new Email_DBImpl(); - - String expResult = ""; - String result = instance.getEvtID(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get evt id method of class com </s> - diff --git a/funcom_test/33719114.txt b/funcom_test/33719114.txt deleted file mode 100644 index 61d86b8b1625f629a298f2132ac7d903998c18ae..0000000000000000000000000000000000000000 --- a/funcom_test/33719114.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEvtID() { - System.out.println("setEvtID"); - - String evtID = ""; - Email_DBImpl instance = new Email_DBImpl(); - - instance.setEvtID(evtID); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set evt id method of class com </s> - diff --git a/funcom_test/33719115.txt b/funcom_test/33719115.txt deleted file mode 100644 index 504412cff415b21d3df6224c7cb439517b80ee6c..0000000000000000000000000000000000000000 --- a/funcom_test/33719115.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetChkEvtID() { - System.out.println("getChkEvtID"); - - Email_DBImpl instance = new Email_DBImpl(); - - String expResult = ""; - String result = instance.getChkEvtID(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get chk evt id method of class com </s> - diff --git a/funcom_test/33719117.txt b/funcom_test/33719117.txt deleted file mode 100644 index 033b94b2ae4e47b1680ed3ebd4780f44dbbc6c9f..0000000000000000000000000000000000000000 --- a/funcom_test/33719117.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetChkEvtID() { - System.out.println("setChkEvtID"); - - String ChkEvtID = ""; - Email_DBImpl instance = new Email_DBImpl(); - - instance.setChkEvtID(ChkEvtID); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set chk evt id method of class com </s> - diff --git a/funcom_test/33719118.txt b/funcom_test/33719118.txt deleted file mode 100644 index 7a439fa0795304d6210573f15dd47d10125a9413..0000000000000000000000000000000000000000 --- a/funcom_test/33719118.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEvtIDs() { - System.out.println("getEvtIDs"); - - Email_DBImpl instance = new Email_DBImpl(); - - String[] expResult = null; - String[] result = instance.getEvtIDs(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get evt ids method of class com </s> - diff --git a/funcom_test/33719119.txt b/funcom_test/33719119.txt deleted file mode 100644 index 623e4a6f6544bc3d5f3a114624f6f7450125b849..0000000000000000000000000000000000000000 --- a/funcom_test/33719119.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEvtIDs() { - System.out.println("setEvtIDs"); - - String[] evtIDs = null; - Email_DBImpl instance = new Email_DBImpl(); - - instance.setEvtIDs(evtIDs); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set evt ids method of class com </s> - diff --git a/funcom_test/33719127.txt b/funcom_test/33719127.txt deleted file mode 100644 index 12a726ad38de35d7759b5fc288ccf5d814f6ddb4..0000000000000000000000000000000000000000 --- a/funcom_test/33719127.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testContains() { - System.out.println("Contains"); - - int gid = 0; - AutismGroupList instance = new AutismGroupList(); - - boolean expResult = true; - boolean result = instance.Contains(gid); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of contains method of class com </s> - diff --git a/funcom_test/33719130.txt b/funcom_test/33719130.txt deleted file mode 100644 index 067079a5db15e31c5513a1e8dbdbe1f050a5e41f..0000000000000000000000000000000000000000 --- a/funcom_test/33719130.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testGetAutismGroupId() { - System.out.println("GetAutismGroupId"); - - String gname = ""; - AutismGroupList instance = new AutismGroupList(); - - int expResult = 0; - int result = instance.GetAutismGroupId(gname); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get autism group id method of class com </s> - diff --git a/funcom_test/33719132.txt b/funcom_test/33719132.txt deleted file mode 100644 index 4cd43a579d2c14702e2b3070a10e1d8ae879068e..0000000000000000000000000000000000000000 --- a/funcom_test/33719132.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAutismGroupList() { - System.out.println("GetAutismGroupList"); - - AutismGroupList instance = new AutismGroupList(); - - TreeSet expResult = null; - TreeSet result = instance.GetAutismGroupList(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get autism group list method of class com </s> - diff --git a/funcom_test/33719137.txt b/funcom_test/33719137.txt deleted file mode 100644 index 0ff174da27997f0d5de6e034340f4d5f77c7f7a9..0000000000000000000000000000000000000000 --- a/funcom_test/33719137.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testSetGroupId() { - System.out.println("SetGroupId"); - - int gid = 0; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupId(gid); - assertEquals(gid,instance.GetGroupId()); - - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of set group id method of class com </s> - diff --git a/funcom_test/33719139.txt b/funcom_test/33719139.txt deleted file mode 100644 index b7c3b91be0b53ff5963c2cd74e213e71cc42b4af..0000000000000000000000000000000000000000 --- a/funcom_test/33719139.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupName() { - System.out.println("SetGroupName"); - - String gn = "Group01"; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupName(gn); - assertEquals(gn,instance.GetGroupName()); - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype."); - } - COM: <s> test of set group name method of class com </s> - diff --git a/funcom_test/33719142.txt b/funcom_test/33719142.txt deleted file mode 100644 index ada06a074506c9dd33ff438fe6fc0f935a2de643..0000000000000000000000000000000000000000 --- a/funcom_test/33719142.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupDescription() { - System.out.println("SetGroupDescription"); - - String gd = ""; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupDescription(gd); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group description method of class com </s> - diff --git a/funcom_test/33719144.txt b/funcom_test/33719144.txt deleted file mode 100644 index a37b5fe110ab774f60fdae68ed70346bc15de8a4..0000000000000000000000000000000000000000 --- a/funcom_test/33719144.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupValidate() { - System.out.println("SetGroupValidate"); - - boolean gv = true; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupValidate(gv); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group validate method of class com </s> - diff --git a/funcom_test/33719145.txt b/funcom_test/33719145.txt deleted file mode 100644 index 04573771346adf54428d3bfa957e1579f02e5ffa..0000000000000000000000000000000000000000 --- a/funcom_test/33719145.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupStatus() { - System.out.println("SetGroupStatus"); - - String gs = ""; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupStatus(gs); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group status method of class com </s> - diff --git a/funcom_test/33719148.txt b/funcom_test/33719148.txt deleted file mode 100644 index 16d5aecfa629a862b0aad36dcfc962b137027ed3..0000000000000000000000000000000000000000 --- a/funcom_test/33719148.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupCreator() { - System.out.println("SetGroupCreator"); - - int gc = 0; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupCreator(gc); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group creator method of class com </s> - diff --git a/funcom_test/33719154.txt b/funcom_test/33719154.txt deleted file mode 100644 index adbe9870ca0874884201959bf1947656f92a21c5..0000000000000000000000000000000000000000 --- a/funcom_test/33719154.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupMemberList() { - System.out.println("SetGroupMemberList"); - - TreeSet gml = null; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupMemberList(gml); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group member list method of class com </s> - diff --git a/funcom_test/33719156.txt b/funcom_test/33719156.txt deleted file mode 100644 index a2fa4feda0fcf4b38abb73d00f31a6e899054d20..0000000000000000000000000000000000000000 --- a/funcom_test/33719156.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupMessageList() { - System.out.println("SetGroupMessageList"); - - TreeSet gmsgl = null; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupMessageList(gmsgl); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group message list method of class com </s> - diff --git a/funcom_test/33719159.txt b/funcom_test/33719159.txt deleted file mode 100644 index c778c89680eb66bef72fe4ac47ec013790e91c2a..0000000000000000000000000000000000000000 --- a/funcom_test/33719159.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetGroupEventList() { - System.out.println("SetGroupEventList"); - - TreeSet gel = null; - AutismGroup instance = new AutismGroup(); - - instance.SetGroupEventList(gel); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set group event list method of class com </s> - diff --git a/funcom_test/33719160.txt b/funcom_test/33719160.txt deleted file mode 100644 index 8ae4c11498d989d744ce63b7a406a5e97f862eec..0000000000000000000000000000000000000000 --- a/funcom_test/33719160.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testRemoveEvent() { - System.out.println("removeEvent"); - - int id = 0; - Event_DBImpl instance = new Event_DBImpl(); - - //instance.removeEvent(id); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of remove event method of class com </s> - diff --git a/funcom_test/33719161.txt b/funcom_test/33719161.txt deleted file mode 100644 index 7244571ceb76e81066a2b4797e93c59fffa66c20..0000000000000000000000000000000000000000 --- a/funcom_test/33719161.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupId() { - System.out.println("GetGroupId"); - - AutismGroup instance = new AutismGroup(); - - int expResult = 0; - int result = instance.GetGroupId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group id method of class com </s> - diff --git a/funcom_test/33719163.txt b/funcom_test/33719163.txt deleted file mode 100644 index d6118dfd981158430681b2c0ab39345eca8c609b..0000000000000000000000000000000000000000 --- a/funcom_test/33719163.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupName() { - System.out.println("GetGroupName"); - - AutismGroup instance = new AutismGroup(); - - String expResult = ""; - String result = instance.GetGroupName(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group name method of class com </s> - diff --git a/funcom_test/33719164.txt b/funcom_test/33719164.txt deleted file mode 100644 index c3d16c07c79a17bec3bb71bfa5764aad0a3e327a..0000000000000000000000000000000000000000 --- a/funcom_test/33719164.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupDescription() { - System.out.println("GetGroupDescription"); - - AutismGroup instance = new AutismGroup(); - - String expResult = ""; - String result = instance.GetGroupDescription(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group description method of class com </s> - diff --git a/funcom_test/33719165.txt b/funcom_test/33719165.txt deleted file mode 100644 index faf7066e1f9f5c420f29ee08b476dc1fab90b3fa..0000000000000000000000000000000000000000 --- a/funcom_test/33719165.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSearchEvent() { - System.out.println("searchEvent"); - - String searchString = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.searchEvent(searchString); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of search event method of class com </s> - diff --git a/funcom_test/33719168.txt b/funcom_test/33719168.txt deleted file mode 100644 index 040b899abb581a8f57c9770b909e3f029a0b8cc1..0000000000000000000000000000000000000000 --- a/funcom_test/33719168.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupValidate() { - System.out.println("GetGroupValidate"); - - AutismGroup instance = new AutismGroup(); - - boolean expResult = true; - boolean result = instance.GetGroupValidate(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group validate method of class com </s> - diff --git a/funcom_test/33719170.txt b/funcom_test/33719170.txt deleted file mode 100644 index 54d64bc54cd4f0eed84884632b461a7225cf20af..0000000000000000000000000000000000000000 --- a/funcom_test/33719170.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupStatus() { - System.out.println("GetGroupStatus"); - - AutismGroup instance = new AutismGroup(); - - String expResult = ""; - String result = instance.GetGroupStatus(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group status method of class com </s> - diff --git a/funcom_test/33719172.txt b/funcom_test/33719172.txt deleted file mode 100644 index ac643832427113a42b6ada2633dfaf7d4c884758..0000000000000000000000000000000000000000 --- a/funcom_test/33719172.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupCreator() { - System.out.println("GetGroupCreator"); - - AutismGroup instance = new AutismGroup(); - - int expResult = 0; - int result = instance.GetGroupCreator(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group creator method of class com </s> - diff --git a/funcom_test/33719173.txt b/funcom_test/33719173.txt deleted file mode 100644 index bcd443f1bf28551190c3582c24048e5f98362955..0000000000000000000000000000000000000000 --- a/funcom_test/33719173.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testConvertDate() throws Exception { - System.out.println("convertDate"); - - String dateTime = ""; - Event_DBImpl instance = new Event_DBImpl(); - - Date expResult = null; - Date result = instance.convertDate(dateTime); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of convert date method of class com </s> - diff --git a/funcom_test/33719174.txt b/funcom_test/33719174.txt deleted file mode 100644 index e6fbc9edbf41e88f37e0f010e4c4a607f23bda8d..0000000000000000000000000000000000000000 --- a/funcom_test/33719174.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupAdminList() { - System.out.println("GetGroupAdminList"); - - AutismGroup instance = new AutismGroup(); - - TreeSet expResult = null; - TreeSet result = instance.GetGroupAdminList(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group admin list method of class com </s> - diff --git a/funcom_test/33719175.txt b/funcom_test/33719175.txt deleted file mode 100644 index 66521b3ad555ac6f1968edfd61f0b8441d4460a8..0000000000000000000000000000000000000000 --- a/funcom_test/33719175.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupMemberList() { - System.out.println("GetGroupMemberList"); - - AutismGroup instance = new AutismGroup(); - - TreeSet expResult = null; - TreeSet result = instance.GetGroupMemberList(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group member list method of class com </s> - diff --git a/funcom_test/33719178.txt b/funcom_test/33719178.txt deleted file mode 100644 index 9c7e5631ec9f0e602f365bcb1135707369feee6c..0000000000000000000000000000000000000000 --- a/funcom_test/33719178.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupMessageList() { - System.out.println("GetGroupMessageList"); - - AutismGroup instance = new AutismGroup(); - - TreeSet expResult = null; - TreeSet result = instance.GetGroupMessageList(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group message list method of class com </s> - diff --git a/funcom_test/33719179.txt b/funcom_test/33719179.txt deleted file mode 100644 index 36d8b8590685ab3076ec102db1e1173063a38b9a..0000000000000000000000000000000000000000 --- a/funcom_test/33719179.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupEventList() { - System.out.println("GetGroupEventList"); - - AutismGroup instance = new AutismGroup(); - - TreeSet expResult = null; - TreeSet result = instance.GetGroupEventList(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group event list method of class com </s> - diff --git a/funcom_test/33719180.txt b/funcom_test/33719180.txt deleted file mode 100644 index 60ac047f96fd6ca048a74a8f0b51b4beabd3f5b0..0000000000000000000000000000000000000000 --- a/funcom_test/33719180.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testConvertGregorianDate() throws Exception { - System.out.println("convertGregorianDate"); - - Date date = null; - Event_DBImpl instance = new Event_DBImpl(); - - Date expResult = null; - Date result = instance.convertGregorianDate(date); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of convert gregorian date method of class com </s> - diff --git a/funcom_test/33719187.txt b/funcom_test/33719187.txt deleted file mode 100644 index f6c6734fbaa77c520e83f985eb3f28b108e9f751..0000000000000000000000000000000000000000 --- a/funcom_test/33719187.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testEventListSize() { - System.out.println("eventListSize"); - - Event_DBImpl instance = new Event_DBImpl(); - - int expResult = 0; - int result = instance.eventListSize(); - System.out.print(result); - assertEquals(expResult, result); - } - COM: <s> test of event list size method of class com </s> - diff --git a/funcom_test/33719194.txt b/funcom_test/33719194.txt deleted file mode 100644 index a25771282a71cb8d7cf4068588d937f2f7edec51..0000000000000000000000000000000000000000 --- a/funcom_test/33719194.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetTempEvent() { - System.out.println("setTempEvent"); - - int iterator = 0; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setTempEvent(iterator); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set temp event method of class com </s> - diff --git a/funcom_test/33719199.txt b/funcom_test/33719199.txt deleted file mode 100644 index b83c87a3571a3d60382447f2878a76a32b810185..0000000000000000000000000000000000000000 --- a/funcom_test/33719199.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testNumberOfEvents() { - System.out.println("numberOfEvents"); - - Event_DBImpl instance = new Event_DBImpl(); - - int expResult = 0; - int result = instance.numberOfEvents(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of number of events method of class com </s> - diff --git a/funcom_test/33719206.txt b/funcom_test/33719206.txt deleted file mode 100644 index a6eebdc25689d4c1f6dd4fef54766c5f504b1962..0000000000000000000000000000000000000000 --- a/funcom_test/33719206.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testFocusOnEvent() { - System.out.println("focusOnEvent"); - - int id = 0; - Event_DBImpl instance = new Event_DBImpl(); - - instance.focusOnEvent(id); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of focus on event method of class com </s> - diff --git a/funcom_test/33719220.txt b/funcom_test/33719220.txt deleted file mode 100644 index 177fc541e9c51cee7c192e0ad69545af1c04c74b..0000000000000000000000000000000000000000 --- a/funcom_test/33719220.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetId() { - System.out.println("getId"); - - Event_DBImpl instance = new Event_DBImpl(); - - int expResult = 0; - int result = instance.getId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get id method of class com </s> - diff --git a/funcom_test/33719225.txt b/funcom_test/33719225.txt deleted file mode 100644 index e90fe2b630beee5b0b9677b35deb3a2a059a448a..0000000000000000000000000000000000000000 --- a/funcom_test/33719225.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testSetId() { - System.out.println("setId"); - - int id = 0; - Event_DBImpl instance = new Event_DBImpl(); - instance.setId(id); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set id method of class com </s> - diff --git a/funcom_test/33719231.txt b/funcom_test/33719231.txt deleted file mode 100644 index b6ebf31b04feeaae8b300edadadd255037f3b5f6..0000000000000000000000000000000000000000 --- a/funcom_test/33719231.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetTitle() { - System.out.println("getTitle"); - - Event_DBImpl instance = new Event_DBImpl(); - - String expResult = ""; - String result = instance.getTitle(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get title method of class com </s> - diff --git a/funcom_test/33719236.txt b/funcom_test/33719236.txt deleted file mode 100644 index 5ff4ca5d0540803cb0dba42327c5887a11e4d6e9..0000000000000000000000000000000000000000 --- a/funcom_test/33719236.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetTitle() { - System.out.println("setTitle"); - - String title = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setTitle(title); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set title method of class com </s> - diff --git a/funcom_test/33719243.txt b/funcom_test/33719243.txt deleted file mode 100644 index 8040e634e332b7c0d3fe751bc501ad35e199b847..0000000000000000000000000000000000000000 --- a/funcom_test/33719243.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetStartDate() { - System.out.println("getStartDate"); - - Event_DBImpl instance = new Event_DBImpl(); - - String expResult = ""; - String result = instance.getStartDate(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get start date method of class com </s> - diff --git a/funcom_test/33719248.txt b/funcom_test/33719248.txt deleted file mode 100644 index 536ad1f2307f68cefeafb96d82c646c86e23cb29..0000000000000000000000000000000000000000 --- a/funcom_test/33719248.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetStartDate() { - System.out.println("setStartDate"); - - String startDate = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setStartDate(startDate); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set start date method of class com </s> - diff --git a/funcom_test/33719254.txt b/funcom_test/33719254.txt deleted file mode 100644 index ab46a0d3ae49a93a3d830f0a9bf7fa7d2f330607..0000000000000000000000000000000000000000 --- a/funcom_test/33719254.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEndDate() { - System.out.println("getEndDate"); - - Event_DBImpl instance = new Event_DBImpl(); - - String expResult = ""; - String result = instance.getEndDate(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get end date method of class com </s> - diff --git a/funcom_test/33719259.txt b/funcom_test/33719259.txt deleted file mode 100644 index ba95ef191261e2709baadf9349712010eb7394e3..0000000000000000000000000000000000000000 --- a/funcom_test/33719259.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEndDate() { - System.out.println("setEndDate"); - - String endDate = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setEndDate(endDate); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set end date method of class com </s> - diff --git a/funcom_test/33719265.txt b/funcom_test/33719265.txt deleted file mode 100644 index d21db07049c78f324897d4d5fa00f6fdab387de1..0000000000000000000000000000000000000000 --- a/funcom_test/33719265.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetStartTime() { - System.out.println("getStartTime"); - - Event_DBImpl instance = new Event_DBImpl(); - - String expResult = ""; - String result = instance.getStartTime(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get start time method of class com </s> - diff --git a/funcom_test/33719271.txt b/funcom_test/33719271.txt deleted file mode 100644 index dd5985e2b0cd301262908f2fe1d685c8b39aa2ef..0000000000000000000000000000000000000000 --- a/funcom_test/33719271.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetStartTime() { - System.out.println("setStartTime"); - - String startTime = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setStartTime(startTime); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set start time method of class com </s> - diff --git a/funcom_test/33719277.txt b/funcom_test/33719277.txt deleted file mode 100644 index 635b4d067a56123fce7404ca5f10b906bdc9607c..0000000000000000000000000000000000000000 --- a/funcom_test/33719277.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEndTime() { - System.out.println("getEndTime"); - - Event_DBImpl instance = new Event_DBImpl(); - - String expResult = ""; - String result = instance.getEndTime(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get end time method of class com </s> - diff --git a/funcom_test/33719285.txt b/funcom_test/33719285.txt deleted file mode 100644 index ddd7e379207eb441f2a6f0f5c8a929be3fef3a16..0000000000000000000000000000000000000000 --- a/funcom_test/33719285.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testUpdateProfile() { - System.out.println("updateProfile"); - - String username = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - boolean expResult = true; - boolean result = instance.updateProfile(username); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of update profile method of class com </s> - diff --git a/funcom_test/33719292.txt b/funcom_test/33719292.txt deleted file mode 100644 index 76eb39f7cc05b2548b28d86555ddfeb2eb257e20..0000000000000000000000000000000000000000 --- a/funcom_test/33719292.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEndTime() { - System.out.println("setEndTime"); - - String endTime = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setEndTime(endTime); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set end time method of class com </s> - diff --git a/funcom_test/33719296.txt b/funcom_test/33719296.txt deleted file mode 100644 index da946a12529694d334b7947626db1bb74925e55e..0000000000000000000000000000000000000000 --- a/funcom_test/33719296.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testCreateProfile() { - System.out.println("createProfile"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - boolean expResult = true; - boolean result = instance.createProfile(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of create profile method of class com </s> - diff --git a/funcom_test/33719299.txt b/funcom_test/33719299.txt deleted file mode 100644 index e4ce7e6250e0de4359ae65f88e65e5d618697910..0000000000000000000000000000000000000000 --- a/funcom_test/33719299.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetDescription() { - System.out.println("getDescription"); - - Event_DBImpl instance = new Event_DBImpl(); - - String expResult = ""; - String result = instance.getDescription(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get description method of class com </s> - diff --git a/funcom_test/33719303.txt b/funcom_test/33719303.txt deleted file mode 100644 index 2c3b23b91cb780fafbc90d5474653176ec2ededb..0000000000000000000000000000000000000000 --- a/funcom_test/33719303.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetErrorMessage() { - System.out.println("getErrorMessage"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getErrorMessage(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get error message method of class com </s> - diff --git a/funcom_test/33719307.txt b/funcom_test/33719307.txt deleted file mode 100644 index 3227f10beece43ff6803024436ecd19226cbc268..0000000000000000000000000000000000000000 --- a/funcom_test/33719307.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetDescription() { - System.out.println("setDescription"); - - String description = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setDescription(description); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set description method of class com </s> - diff --git a/funcom_test/33719314.txt b/funcom_test/33719314.txt deleted file mode 100644 index eeffb77ca7dc15ef0da1530892d80f18e943eac4..0000000000000000000000000000000000000000 --- a/funcom_test/33719314.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetClassId() { - System.out.println("getClassId"); - - Event_DBImpl instance = new Event_DBImpl(); - - int expResult = 0; - int result = instance.getClassId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get class id method of class com </s> - diff --git a/funcom_test/33719321.txt b/funcom_test/33719321.txt deleted file mode 100644 index 19b6bc4ad39ed124a4e93f09990d4426c7b274f7..0000000000000000000000000000000000000000 --- a/funcom_test/33719321.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetClassId() { - System.out.println("setClassId"); - - int classId = 0; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setClassId(classId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set class id method of class com </s> - diff --git a/funcom_test/33719327.txt b/funcom_test/33719327.txt deleted file mode 100644 index 850a4eb98877a0a9bcae1491cc98c6daee4b8899..0000000000000000000000000000000000000000 --- a/funcom_test/33719327.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetFname() { - System.out.println("setFname"); - - String f = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setFname(f); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set fname method of class com </s> - diff --git a/funcom_test/33719329.txt b/funcom_test/33719329.txt deleted file mode 100644 index f7243be50ae765610213ace26cc6b3446e43fab8..0000000000000000000000000000000000000000 --- a/funcom_test/33719329.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetLocationId() { - System.out.println("getLocationId"); - - Event_DBImpl instance = new Event_DBImpl(); - - int expResult = 0; - int result = instance.getLocationId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get location id method of class com </s> - diff --git a/funcom_test/33719333.txt b/funcom_test/33719333.txt deleted file mode 100644 index 42ceb5199efc2a28ca2273bddbf41b7bf9574bba..0000000000000000000000000000000000000000 --- a/funcom_test/33719333.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetFname() { - System.out.println("getFname"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getFname(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get fname method of class com </s> - diff --git a/funcom_test/33719335.txt b/funcom_test/33719335.txt deleted file mode 100644 index 4e9fed1d36af676953cd9b33e51eec07c6205569..0000000000000000000000000000000000000000 --- a/funcom_test/33719335.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetLocationId() { - System.out.println("setLocationId"); - - int locationId = 0; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setLocationId(locationId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set location id method of class com </s> - diff --git a/funcom_test/33719340.txt b/funcom_test/33719340.txt deleted file mode 100644 index 1456ca1b978c2ce664d7bf5eb64aa1b35ac32f0a..0000000000000000000000000000000000000000 --- a/funcom_test/33719340.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetLname() { - System.out.println("setLname"); - - String l = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setLname(l); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set lname method of class com </s> - diff --git a/funcom_test/33719348.txt b/funcom_test/33719348.txt deleted file mode 100644 index edf212af10d3af84474582b8d6e361d5ce22c95a..0000000000000000000000000000000000000000 --- a/funcom_test/33719348.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetLname() { - System.out.println("getLname"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getLname(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get lname method of class com </s> - diff --git a/funcom_test/33719354.txt b/funcom_test/33719354.txt deleted file mode 100644 index 64b7d16254d91c0689b75618af6478c629c55516..0000000000000000000000000000000000000000 --- a/funcom_test/33719354.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetAddr1() { - System.out.println("setAddr1"); - - String a1 = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setAddr1(a1); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set addr1 method of class com </s> - diff --git a/funcom_test/33719357.txt b/funcom_test/33719357.txt deleted file mode 100644 index 34eac7e5b8ba3316eaef048e063899eec6337f1d..0000000000000000000000000000000000000000 --- a/funcom_test/33719357.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetCreatorId() { - System.out.println("getCreatorId"); - - Event_DBImpl instance = new Event_DBImpl(); - - int expResult = 0; - int result = instance.getCreatorId(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get creator id method of class com </s> - diff --git a/funcom_test/33719360.txt b/funcom_test/33719360.txt deleted file mode 100644 index b0cd96dfec0de478102da4af0e500a12dce4f26d..0000000000000000000000000000000000000000 --- a/funcom_test/33719360.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAddr1() { - System.out.println("getAddr1"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getAddr1(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get addr1 method of class com </s> - diff --git a/funcom_test/33719365.txt b/funcom_test/33719365.txt deleted file mode 100644 index c13a0c1a598827d7fbe8cc2208a85f287ef44cec..0000000000000000000000000000000000000000 --- a/funcom_test/33719365.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetCreatorId() { - System.out.println("setCreatorId"); - - int creatorId = 0; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setCreatorId(creatorId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set creator id method of class com </s> - diff --git a/funcom_test/33719368.txt b/funcom_test/33719368.txt deleted file mode 100644 index 4b3918da52c1963e902358c86b78ead5a0ad53e8..0000000000000000000000000000000000000000 --- a/funcom_test/33719368.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetAddr2() { - System.out.println("setAddr2"); - - String a2 = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setAddr2(a2); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set addr2 method of class com </s> - diff --git a/funcom_test/33719375.txt b/funcom_test/33719375.txt deleted file mode 100644 index 3e8027a766f72beab971ad608054e749beeca907..0000000000000000000000000000000000000000 --- a/funcom_test/33719375.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetWarningMessage() { - System.out.println("getWarningMessage"); - - Event_DBImpl instance = new Event_DBImpl(); - - String expResult = ""; - String result = instance.getWarningMessage(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get warning message method of class com </s> - diff --git a/funcom_test/33719382.txt b/funcom_test/33719382.txt deleted file mode 100644 index c91d767771b8e4ed8bf3b82e0e6248300d0d0fac..0000000000000000000000000000000000000000 --- a/funcom_test/33719382.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAddr2() { - System.out.println("getAddr2"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getAddr2(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get addr2 method of class com </s> - diff --git a/funcom_test/33719389.txt b/funcom_test/33719389.txt deleted file mode 100644 index ed3f4ea8027c9c486da35efb89e076f7bf898796..0000000000000000000000000000000000000000 --- a/funcom_test/33719389.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetWarningMessage() { - System.out.println("setWarningMessage"); - - String warningMessage = ""; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setWarningMessage(warningMessage); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set warning message method of class com </s> - diff --git a/funcom_test/33719394.txt b/funcom_test/33719394.txt deleted file mode 100644 index 38f58434f7a7ec73430966e7a70a04624cdc557b..0000000000000000000000000000000000000000 --- a/funcom_test/33719394.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetCity() { - System.out.println("setCity"); - - String c = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setCity(c); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set city method of class com </s> - diff --git a/funcom_test/33719408.txt b/funcom_test/33719408.txt deleted file mode 100644 index 2aca141861b4d9c5184f276c9d63a0b704f65e79..0000000000000000000000000000000000000000 --- a/funcom_test/33719408.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetCity() { - System.out.println("getCity"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getCity(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get city method of class com </s> - diff --git a/funcom_test/33719424.txt b/funcom_test/33719424.txt deleted file mode 100644 index 22866fa30461e08160e14559b709bda39fcbd33c..0000000000000000000000000000000000000000 --- a/funcom_test/33719424.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetState() { - System.out.println("setState"); - - String s = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setState(s); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set state method of class com </s> - diff --git a/funcom_test/33719438.txt b/funcom_test/33719438.txt deleted file mode 100644 index b32ac3fb31ba744a69485edaa243da308956ccb9..0000000000000000000000000000000000000000 --- a/funcom_test/33719438.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testSetNewId() { - System.out.println("setNewId"); - - Event_DBImpl instance = new Event_DBImpl(); - - instance.setNewId(); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set new id method of class com </s> - diff --git a/funcom_test/33719445.txt b/funcom_test/33719445.txt deleted file mode 100644 index 90a292e94a51144c562629c1a732f3e871fcd5f2..0000000000000000000000000000000000000000 --- a/funcom_test/33719445.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetState() { - System.out.println("getState"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getState(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get state method of class com </s> - diff --git a/funcom_test/33719458.txt b/funcom_test/33719458.txt deleted file mode 100644 index 70f5bbc0a4ee8df9fe94433425e96cfc9810cd7a..0000000000000000000000000000000000000000 --- a/funcom_test/33719458.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEventById() throws Exception { - System.out.println("setEventById"); - - int id = 0; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setEventById(id); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set event by id method of class com </s> - diff --git a/funcom_test/33719459.txt b/funcom_test/33719459.txt deleted file mode 100644 index 8150592ed375d25fceeb14cd5bbbff1569ee0327..0000000000000000000000000000000000000000 --- a/funcom_test/33719459.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetZip() { - System.out.println("getZip"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getZip(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get zip method of class com </s> - diff --git a/funcom_test/33719466.txt b/funcom_test/33719466.txt deleted file mode 100644 index be8a37d1349dd5c0b90f103e397729b64779eec4..0000000000000000000000000000000000000000 --- a/funcom_test/33719466.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetZip() { - System.out.println("setZip"); - - String z = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setZip(z); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set zip method of class com </s> - diff --git a/funcom_test/33719471.txt b/funcom_test/33719471.txt deleted file mode 100644 index c30d97a8ded17eb8193ea3b9bb3692b3a9a67d6f..0000000000000000000000000000000000000000 --- a/funcom_test/33719471.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetPhone() { - System.out.println("getPhone"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getPhone(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get phone method of class com </s> - diff --git a/funcom_test/33719479.txt b/funcom_test/33719479.txt deleted file mode 100644 index ce9ee641aef7a2841a4ecfd60648d4ee288b2ff5..0000000000000000000000000000000000000000 --- a/funcom_test/33719479.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetPhone() { - System.out.println("setPhone"); - - String phone = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setPhone(phone); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set phone method of class com </s> - diff --git a/funcom_test/33719482.txt b/funcom_test/33719482.txt deleted file mode 100644 index 0276bd857e1fcfd74be07ddc897da713992e5f90..0000000000000000000000000000000000000000 --- a/funcom_test/33719482.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAllEvents() { - System.out.println("getAllEvents"); - - Event_DBImpl instance = new Event_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getAllEvents(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get all events method of class com </s> - diff --git a/funcom_test/33719485.txt b/funcom_test/33719485.txt deleted file mode 100644 index a8517dc9f9b5d520d1df4a9c124d9b247b5aaf86..0000000000000000000000000000000000000000 --- a/funcom_test/33719485.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetCell() { - System.out.println("getCell"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getCell(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get cell method of class com </s> - diff --git a/funcom_test/33719490.txt b/funcom_test/33719490.txt deleted file mode 100644 index c80ca6b5c3d6ed438d5d59eafb2eb7a5ba4c2389..0000000000000000000000000000000000000000 --- a/funcom_test/33719490.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetCell() { - System.out.println("setCell"); - - String cell = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setCell(cell); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set cell method of class com </s> - diff --git a/funcom_test/33719495.txt b/funcom_test/33719495.txt deleted file mode 100644 index 67098af2d42d766575e7dd15752e1f2755b32cc6..0000000000000000000000000000000000000000 --- a/funcom_test/33719495.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetLocation() { - System.out.println("getLocation"); - - Event_DBImpl instance = new Event_DBImpl(); - - Location_DBImpl expResult = null; - Location_DBImpl result = instance.getLocation(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get location method of class com </s> - diff --git a/funcom_test/33719500.txt b/funcom_test/33719500.txt deleted file mode 100644 index b37362e11cb8ae7785ad74e70c93b5e6b259696a..0000000000000000000000000000000000000000 --- a/funcom_test/33719500.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetLocation() { - System.out.println("setLocation"); - - Location_DBImpl location = null; - Event_DBImpl instance = new Event_DBImpl(); - - instance.setLocation(location); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set location method of class com </s> - diff --git a/funcom_test/33719508.txt b/funcom_test/33719508.txt deleted file mode 100644 index f8fd1e161f74cfda58b9fc8a7cade0c406cd3b1b..0000000000000000000000000000000000000000 --- a/funcom_test/33719508.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetPassword() { - System.out.println("getPassword"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getPassword(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get password method of class com </s> - diff --git a/funcom_test/33719513.txt b/funcom_test/33719513.txt deleted file mode 100644 index 9a42b03fec2b477071914893f93ca5271d5b2ec5..0000000000000000000000000000000000000000 --- a/funcom_test/33719513.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testAddComment() { - System.out.println("addComment"); - - String comment = ""; - int userId = 0; - Event_DBImpl instance = new Event_DBImpl(); - - instance.addComment(comment, userId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of add comment method of class com </s> - diff --git a/funcom_test/33719514.txt b/funcom_test/33719514.txt deleted file mode 100644 index 3407a5b8b249bc080484a3ab7d96fc8cf3ba14b1..0000000000000000000000000000000000000000 --- a/funcom_test/33719514.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetPassword() { - System.out.println("setPassword"); - - String password = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setPassword(password); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set password method of class com </s> - diff --git a/funcom_test/33719520.txt b/funcom_test/33719520.txt deleted file mode 100644 index d27d6b3dcf5428c019c260a48e66276bcef871e8..0000000000000000000000000000000000000000 --- a/funcom_test/33719520.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetFontColor() { - System.out.println("getFontColor"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getFontColor(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get font color method of class com </s> - diff --git a/funcom_test/33719527.txt b/funcom_test/33719527.txt deleted file mode 100644 index 163a62e7e098afba9c2d84ad13938ac164c7476c..0000000000000000000000000000000000000000 --- a/funcom_test/33719527.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetFontColor() { - System.out.println("setFontColor"); - - String fontColor = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setFontColor(fontColor); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set font color method of class com </s> - diff --git a/funcom_test/33719535.txt b/funcom_test/33719535.txt deleted file mode 100644 index 3950c486c593f82976922e61cc9d4c11eb652e90..0000000000000000000000000000000000000000 --- a/funcom_test/33719535.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetStatus() { - System.out.println("getStatus"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getStatus(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get status method of class com </s> - diff --git a/funcom_test/33719544.txt b/funcom_test/33719544.txt deleted file mode 100644 index c24b64dd6c2c54e16f6b09c8b3d23f78c7d909a7..0000000000000000000000000000000000000000 --- a/funcom_test/33719544.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetStatus() { - System.out.println("setStatus"); - - String status = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setStatus(status); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set status method of class com </s> - diff --git a/funcom_test/33719551.txt b/funcom_test/33719551.txt deleted file mode 100644 index 1e3437499d08b86e5548edd81b119d0d60ae2d81..0000000000000000000000000000000000000000 --- a/funcom_test/33719551.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetValidation() { - System.out.println("getValidation"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getValidation(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get validation method of class com </s> - diff --git a/funcom_test/33719558.txt b/funcom_test/33719558.txt deleted file mode 100644 index c63a96de9bffdc2f108929c8109f9c0225581719..0000000000000000000000000000000000000000 --- a/funcom_test/33719558.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetValidation() { - System.out.println("setValidation"); - - String validation = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setValidation(validation); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set validation method of class com </s> - diff --git a/funcom_test/33719564.txt b/funcom_test/33719564.txt deleted file mode 100644 index 6f27f38300a3b169e3f88b9923b94870817b14c6..0000000000000000000000000000000000000000 --- a/funcom_test/33719564.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetRegDate() { - System.out.println("getRegDate"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - Date expResult = null; - Date result = instance.getRegDate(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get reg date method of class com </s> - diff --git a/funcom_test/33719573.txt b/funcom_test/33719573.txt deleted file mode 100644 index 4a469cb16595d74c5acb055c6a98ccacb6efb13d..0000000000000000000000000000000000000000 --- a/funcom_test/33719573.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetRegDate() { - System.out.println("setRegDate"); - - Date regDate = null; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setRegDate(regDate); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set reg date method of class com </s> - diff --git a/funcom_test/33719580.txt b/funcom_test/33719580.txt deleted file mode 100644 index e532919ccaa8cb3f522a62056f76ab0b670501fe..0000000000000000000000000000000000000000 --- a/funcom_test/33719580.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetLastVisit() { - System.out.println("getLastVisit"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - Date expResult = null; - Date result = instance.getLastVisit(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get last visit method of class com </s> - diff --git a/funcom_test/33719593.txt b/funcom_test/33719593.txt deleted file mode 100644 index 5ed7a21a52ded2328f8d890d9884ebeda4ce89a5..0000000000000000000000000000000000000000 --- a/funcom_test/33719593.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetLastVisit() { - System.out.println("setLastVisit"); - - Date lastVisit = null; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setLastVisit(lastVisit); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set last visit method of class com </s> - diff --git a/funcom_test/33719598.txt b/funcom_test/33719598.txt deleted file mode 100644 index 7c43b1f68ba6884cc77be12510bccd918b77d033..0000000000000000000000000000000000000000 --- a/funcom_test/33719598.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetDob() { - System.out.println("getDob"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getDob(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get dob method of class com </s> - diff --git a/funcom_test/33719602.txt b/funcom_test/33719602.txt deleted file mode 100644 index b82d21753a60077c2cabd442f7435f54d3e4c676..0000000000000000000000000000000000000000 --- a/funcom_test/33719602.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetDob() { - System.out.println("setDob"); - - String d = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setDob(d); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set dob method of class com </s> - diff --git a/funcom_test/33719607.txt b/funcom_test/33719607.txt deleted file mode 100644 index 6e3cabc3530e464deac5771ee7e98ccc11fdfddd..0000000000000000000000000000000000000000 --- a/funcom_test/33719607.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetClassification() { - System.out.println("getClassification"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - Set expResult = null; - Set result = instance.getClassification(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get classification method of class com </s> - diff --git a/funcom_test/33719612.txt b/funcom_test/33719612.txt deleted file mode 100644 index a1cc294582489f6f40b8c5dd5d18c0810a210e22..0000000000000000000000000000000000000000 --- a/funcom_test/33719612.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetClassification() { - System.out.println("setClassification"); - - Set c = null; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setClassification(c); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set classification method of class com </s> - diff --git a/funcom_test/33719617.txt b/funcom_test/33719617.txt deleted file mode 100644 index fd8d72bc651117d54ff51779936ff58b9d430e85..0000000000000000000000000000000000000000 --- a/funcom_test/33719617.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetGroupList() { - System.out.println("getGroupList"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - Set expResult = null; - Set result = instance.getGroupList(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get group list method of class com </s> - diff --git a/funcom_test/33719619.txt b/funcom_test/33719619.txt deleted file mode 100644 index f9b0061a8e96f62469c31d9b99b1831048eefe9e..0000000000000000000000000000000000000000 --- a/funcom_test/33719619.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testAddUser() { - System.out.println("addUser"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.addUser(); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of add user method of class com </s> - diff --git a/funcom_test/33719622.txt b/funcom_test/33719622.txt deleted file mode 100644 index 6cc3c72777de49bf9695c38e25caa1b3ef4770a0..0000000000000000000000000000000000000000 --- a/funcom_test/33719622.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testUpdateUser() { - System.out.println("updateUser"); - - int userID = 0; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.updateUser(userID); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of update user method of class com </s> - diff --git a/funcom_test/33719625.txt b/funcom_test/33719625.txt deleted file mode 100644 index e20d6935a26c7529ca3431e6c1f48c1d341faef5..0000000000000000000000000000000000000000 --- a/funcom_test/33719625.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testLogin() { - System.out.println("login"); - - String email = ""; - String password = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.login(email, password); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of login method of class com </s> - diff --git a/funcom_test/33719640.txt b/funcom_test/33719640.txt deleted file mode 100644 index 318212a5ce665e2459a0bd7c2be7f92e1c6b8989..0000000000000000000000000000000000000000 --- a/funcom_test/33719640.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetEvent() { - System.out.println("getEvent"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - Event_DBImpl expResult = null; - Event_DBImpl result = instance.getEvent(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get event method of class com </s> - diff --git a/funcom_test/33719662.txt b/funcom_test/33719662.txt deleted file mode 100644 index 577ec6f480eceedde9c35062b255e10c69f28e4e..0000000000000000000000000000000000000000 --- a/funcom_test/33719662.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetEvent() { - System.out.println("setEvent"); - - Event_DBImpl event = null; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setEvent(event); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set event method of class com </s> - diff --git a/funcom_test/33719676.txt b/funcom_test/33719676.txt deleted file mode 100644 index 8330a38c806ca7d2ec3f2fe1719ca69a03587a8b..0000000000000000000000000000000000000000 --- a/funcom_test/33719676.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetMyEvents() { - System.out.println("getMyEvents"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getMyEvents(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get my events method of class com </s> - diff --git a/funcom_test/33719692.txt b/funcom_test/33719692.txt deleted file mode 100644 index 33d869e4bd3b11b4c6939bd432e94f6bf4c7e154..0000000000000000000000000000000000000000 --- a/funcom_test/33719692.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetMyUpcomingEvents() { - System.out.println("getMyUpcomingEvents"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getMyUpcomingEvents(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get my upcoming events method of class com </s> - diff --git a/funcom_test/33719704.txt b/funcom_test/33719704.txt deleted file mode 100644 index 142de3601604ba800b7f6ff21d0791f1a9f2d62a..0000000000000000000000000000000000000000 --- a/funcom_test/33719704.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testRemoveMyEvent() { - System.out.println("removeMyEvent"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.removeMyEvent(); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of remove my event method of class com </s> - diff --git a/funcom_test/33719712.txt b/funcom_test/33719712.txt deleted file mode 100644 index 4a6120b8c3c3d2d1ee222eb74fb98deb68f40420..0000000000000000000000000000000000000000 --- a/funcom_test/33719712.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAttendingEvents() { - System.out.println("getAttendingEvents"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getAttendingEvents(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get attending events method of class com </s> - diff --git a/funcom_test/33719729.txt b/funcom_test/33719729.txt deleted file mode 100644 index 12dacfc4b8e122725ac163be85d2935dbd082501..0000000000000000000000000000000000000000 --- a/funcom_test/33719729.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAttendedEvents() { - System.out.println("getAttendedEvents"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getAttendedEvents(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get attended events method of class com </s> - diff --git a/funcom_test/33719744.txt b/funcom_test/33719744.txt deleted file mode 100644 index 40082efb8fff91676761911bf0a5d7597c4c7f8f..0000000000000000000000000000000000000000 --- a/funcom_test/33719744.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetAreaEvents() { - System.out.println("getAreaEvents"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - ResultSet expResult = null; - ResultSet result = instance.getAreaEvents(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get area events method of class com </s> - diff --git a/funcom_test/33719768.txt b/funcom_test/33719768.txt deleted file mode 100644 index 3fde358f35556a10917a42bf8c592848dc352bd5..0000000000000000000000000000000000000000 --- a/funcom_test/33719768.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testCheckCalender() { - System.out.println("checkCalender"); - - int eventId = 0; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - boolean expResult = true; - boolean result = instance.checkCalender(eventId); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of check calender method of class com </s> - diff --git a/funcom_test/33719836.txt b/funcom_test/33719836.txt deleted file mode 100644 index cbe78f8d5803d0821a3e22de99d1b1999ac62ef2..0000000000000000000000000000000000000000 --- a/funcom_test/33719836.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testAddEventToCalendar() { - System.out.println("addEventToCalendar"); - - int eventId = 0; - int creator = 0; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.addEventToCalendar(eventId, creator); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of add event to calendar method of class com </s> - diff --git a/funcom_test/33719856.txt b/funcom_test/33719856.txt deleted file mode 100644 index 826bdccc2f6dc1373d57a3e695c2dc32c30a40c3..0000000000000000000000000000000000000000 --- a/funcom_test/33719856.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetWelcomeMsg() { - System.out.println("getWelcomeMsg"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getWelcomeMsg(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get welcome msg method of class com </s> - diff --git a/funcom_test/33719869.txt b/funcom_test/33719869.txt deleted file mode 100644 index 1e24bc849d3a34e48f10d13434e8730b21dde20d..0000000000000000000000000000000000000000 --- a/funcom_test/33719869.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetWelcomeMsg() { - System.out.println("setWelcomeMsg"); - - String welcomeMsg = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setWelcomeMsg(welcomeMsg); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set welcome msg method of class com </s> - diff --git a/funcom_test/33719885.txt b/funcom_test/33719885.txt deleted file mode 100644 index 6b462fdafd9be89fb0068b33ac77f9425a60a08f..0000000000000000000000000000000000000000 --- a/funcom_test/33719885.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testGetErrmsg() { - System.out.println("getErrmsg"); - - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - String expResult = ""; - String result = instance.getErrmsg(); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of get errmsg method of class com </s> - diff --git a/funcom_test/33719898.txt b/funcom_test/33719898.txt deleted file mode 100644 index a228b568a443c2f7a6b530351ebe43e7f95e9032..0000000000000000000000000000000000000000 --- a/funcom_test/33719898.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetErrmsg() { - System.out.println("setErrmsg"); - - String errmsg = ""; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.setErrmsg(errmsg); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of set errmsg method of class com </s> - diff --git a/funcom_test/33719910.txt b/funcom_test/33719910.txt deleted file mode 100644 index 54c0c87f8a65c00a9900cf2e17c643f1912429f3..0000000000000000000000000000000000000000 --- a/funcom_test/33719910.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testRemoveEventFromCalendar() throws Exception { - System.out.println("removeEventFromCalendar"); - - int eventId = 0; - SystemClient_DBImpl instance = new SystemClient_DBImpl(); - - instance.removeEventFromCalendar(eventId); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of remove event from calendar method of class com </s> - diff --git a/funcom_test/33753270.txt b/funcom_test/33753270.txt deleted file mode 100644 index b4f27415a1191d67b065b0c5365afba9e2fa157e..0000000000000000000000000000000000000000 --- a/funcom_test/33753270.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void registerJobSDescription(JobDescription jd) - { if(idToJobDescMap.containsKey(jd.getId())) - throw new Error(String.format("Two jobs have the same id=%s",jd.getId())); - - idToJobDescMap.put(jd.getId(), jd); - } - COM: <s> keep track of job descriptions to keep job descriptions unique in deserialization </s> - diff --git a/funcom_test/33753272.txt b/funcom_test/33753272.txt deleted file mode 100644 index e4e16232e4d5723d682ffabaa826547c186ddb22..0000000000000000000000000000000000000000 --- a/funcom_test/33753272.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void registerParameter(Parameter param) - { if(idToJobParameterMap.containsKey(param.getId())) - throw new Error(String.format("Job has same parameter twice (%s)",param.getId())); - - idToJobParameterMap.put(param.getId(), param); - } - COM: <s> keep track of job parameters to keep parameter unique in deserialization </s> - diff --git a/funcom_test/33778124.txt b/funcom_test/33778124.txt deleted file mode 100644 index afbff3f7105d076b94075c5a5fe2a7f37062d196..0000000000000000000000000000000000000000 --- a/funcom_test/33778124.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void start() throws IOException { - try { - IoHandler handler = new MinaIoHandler<T>(this); - acceptor.setHandler(handler); - DefaultIoFilterChainBuilder fc = acceptor.getFilterChain(); - acceptor.setReuseAddress(true); - fc.addLast("codec", new ProtocolCodecFilter( - getProtocolCodecFactory())); - acceptor.bind(new InetSocketAddress(2400)); - getLog().info( - "Starting listener. active: " + acceptor.isActive() - + " h: " + acceptor.getHandler()); - } catch (Throwable t) { - t.printStackTrace(); - } - } - COM: <s> starts the server </s> - diff --git a/funcom_test/33778130.txt b/funcom_test/33778130.txt deleted file mode 100644 index 188e92cb324cf515cd3a58b2b37902c614a6050e..0000000000000000000000000000000000000000 --- a/funcom_test/33778130.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void shutdown(int graceSecs) { - getLog().info("Initiating shutdown"); - // Would prefer to unbind first then cleanly close active connections, - // but mina unbind seems to automatically close the active sessions - // so we must close connections then unbind, which does expose us to - // a potential race condition. - long graceMSecs = graceSecs * 1000; - // Close active sessions and handlers - closeSessions(graceMSecs); - // Unbind listener socket - acceptor.unbind(); - } - COM: <s> shuts down the server </s> - diff --git a/funcom_test/33778148.txt b/funcom_test/33778148.txt deleted file mode 100644 index fd0c485adfb4fb11f5e7efb43696e37e0015c2d1..0000000000000000000000000000000000000000 --- a/funcom_test/33778148.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean parse(ByteBuffer bb) { - if (!complete) { - int pos = indexOf(bb, '\n'); - if (pos >= 0) { - int len = pos + 1 - bb.position(); - ByteBuffer tmp = bb.slice(); - tmp.limit(len); - bb.position(pos + 1); - buf = MinaUtil.expand(buf, len, len).put(tmp); - buf.flip(); - complete = true; - } else { - buf = MinaUtil.expand(buf, bb.remaining()).put(bb); - - } - } - return complete; - } - COM: <s> parses text line bytes from remaining bytes in the specified byte buffer </s> - diff --git a/funcom_test/33793328.txt b/funcom_test/33793328.txt deleted file mode 100644 index 06993479a77debafd26a9ac9ecb85dd91d082688..0000000000000000000000000000000000000000 --- a/funcom_test/33793328.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testGetEntityManager() { - /*System.out.println("getEntityManager"); - FornecedorDAO instance = new FornecedorDAO(); - EntityManager expResult = null; - EntityManager result = instance.getEntityManager(); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype.");*/ - } - COM: <s> test of get entity manager method of class fornecedor dao </s> - diff --git a/funcom_test/33793338.txt b/funcom_test/33793338.txt deleted file mode 100644 index 130dd14fa5f184fa5999ae3d2f83424cfefaab52..0000000000000000000000000000000000000000 --- a/funcom_test/33793338.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testGetFornecedor() { - /*System.out.println("getFornecedor"); - Integer id = 151; - FornecedorDAO instance = new FornecedorDAO(); - //Fornecedor expResult = null; - Fornecedor result = instance.getFornecedor(id); - assertNotNull(result); - // TODO review the generated test code and remove the default call to fail. - //fail("The test case is a prototype.");*/ - } - COM: <s> test of get fornecedor method of class fornecedor dao </s> - diff --git a/funcom_test/33793341.txt b/funcom_test/33793341.txt deleted file mode 100644 index 0e986c26777ce23c01b5ffbd258b383f4db39ebe..0000000000000000000000000000000000000000 --- a/funcom_test/33793341.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testDeleteFornecedor() { - /*System.out.println("deleteFornecedor"); - Integer id = 151; - FornecedorDAO instance = new FornecedorDAO(); - instance.deleteFornecedor(id); - // TODO review the generated test code and remove the default call to fail. - assertNull(instance.getFornecedor(id));*/ - } - COM: <s> test of delete fornecedor method of class fornecedor dao </s> - diff --git a/funcom_test/33993830.txt b/funcom_test/33993830.txt deleted file mode 100644 index ae31f9c2ea60f8c9469c5ebb0bb02e0360690352..0000000000000000000000000000000000000000 --- a/funcom_test/33993830.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSrcPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ImageWidget_src_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ImageWidget_src_feature", "_UI_ImageWidget_type"), - UiPackage.Literals.IMAGE_WIDGET__SRC, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the src feature </s> - diff --git a/funcom_test/33993840.txt b/funcom_test/33993840.txt deleted file mode 100644 index 1f90d4a86323774760ce0ae271db46d30d1c14d8..0000000000000000000000000000000000000000 --- a/funcom_test/33993840.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLinkUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_linkWidget_linkUrl_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_linkWidget_linkUrl_feature", "_UI_linkWidget_type"), - UiPackage.Literals.LINK_WIDGET__LINK_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the link url feature </s> - diff --git a/funcom_test/33993856.txt b/funcom_test/33993856.txt deleted file mode 100644 index 6cbe6efbd84c67d01a0e4aaa68c38b2271e06ed7..0000000000000000000000000000000000000000 --- a/funcom_test/33993856.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMarginBottomPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_marginBottom_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_marginBottom_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__MARGIN_BOTTOM, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the margin bottom feature </s> - diff --git a/funcom_test/33993860.txt b/funcom_test/33993860.txt deleted file mode 100644 index 3004203e4f2bf411c1e086a440806228e3d6ed56..0000000000000000000000000000000000000000 --- a/funcom_test/33993860.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIconPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ButtonWidget_icon_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ButtonWidget_icon_feature", "_UI_ButtonWidget_type"), - UiPackage.Literals.BUTTON_WIDGET__ICON, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the icon feature </s> - diff --git a/funcom_test/33993865.txt b/funcom_test/33993865.txt deleted file mode 100644 index 0a42e21001643ac37a1cd29c4a048f0ad0c6dece..0000000000000000000000000000000000000000 --- a/funcom_test/33993865.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRowsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TextAreaWidget_rows_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TextAreaWidget_rows_feature", "_UI_TextAreaWidget_type"), - UiPackage.Literals.TEXT_AREA_WIDGET__ROWS, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the rows feature </s> - diff --git a/funcom_test/33993868.txt b/funcom_test/33993868.txt deleted file mode 100644 index 64366d68a50e8d11183175accab62effb2d921c3..0000000000000000000000000000000000000000 --- a/funcom_test/33993868.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addColsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TextAreaWidget_cols_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TextAreaWidget_cols_feature", "_UI_TextAreaWidget_type"), - UiPackage.Literals.TEXT_AREA_WIDGET__COLS, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the cols feature </s> - diff --git a/funcom_test/33993869.txt b/funcom_test/33993869.txt deleted file mode 100644 index f90ca48d3bbeaa998b9cb75ac15c094d14964eb8..0000000000000000000000000000000000000000 --- a/funcom_test/33993869.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMarginTopPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_marginTop_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_marginTop_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__MARGIN_TOP, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the margin top feature </s> - diff --git a/funcom_test/33993881.txt b/funcom_test/33993881.txt deleted file mode 100644 index 3225df2c602711531deec5c448ffdbfc2de5dec7..0000000000000000000000000000000000000000 --- a/funcom_test/33993881.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMarginLeftPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_marginLeft_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_marginLeft_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__MARGIN_LEFT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the margin left feature </s> - diff --git a/funcom_test/33993892.txt b/funcom_test/33993892.txt deleted file mode 100644 index c959e62a460f97b862b71ee44964e273324e9589..0000000000000000000000000000000000000000 --- a/funcom_test/33993892.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMarginRightPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_marginRight_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_marginRight_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__MARGIN_RIGHT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the margin right feature </s> - diff --git a/funcom_test/33993901.txt b/funcom_test/33993901.txt deleted file mode 100644 index 107baab831361ad47a6338de612ffb2c16c1dc81..0000000000000000000000000000000000000000 --- a/funcom_test/33993901.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addClosablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PortalLayoutGroup_closable_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PortalLayoutGroup_closable_feature", "_UI_PortalLayoutGroup_type"), - UiPackage.Literals.PORTAL_LAYOUT_GROUP__CLOSABLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the closable feature </s> - diff --git a/funcom_test/33993902.txt b/funcom_test/33993902.txt deleted file mode 100644 index dc0e410ab15faf4e4da47da1a05d3da8ab392b2b..0000000000000000000000000000000000000000 --- a/funcom_test/33993902.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMarginHeightPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_marginHeight_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_marginHeight_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__MARGIN_HEIGHT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the margin height feature </s> - diff --git a/funcom_test/33993904.txt b/funcom_test/33993904.txt deleted file mode 100644 index bbb12dbbe20d626e6a65a8dc4c069a9e80df2607..0000000000000000000000000000000000000000 --- a/funcom_test/33993904.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMaximizablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PortalLayoutGroup_maximizable_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PortalLayoutGroup_maximizable_feature", "_UI_PortalLayoutGroup_type"), - UiPackage.Literals.PORTAL_LAYOUT_GROUP__MAXIMIZABLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the maximizable feature </s> - diff --git a/funcom_test/33993906.txt b/funcom_test/33993906.txt deleted file mode 100644 index fa30f62d42b1b1b0cb3c64f33ec1fad58bdc657a..0000000000000000000000000000000000000000 --- a/funcom_test/33993906.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCollapsiblePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PortalLayoutGroup_collapsible_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PortalLayoutGroup_collapsible_feature", "_UI_PortalLayoutGroup_type"), - UiPackage.Literals.PORTAL_LAYOUT_GROUP__COLLAPSIBLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the collapsible feature </s> - diff --git a/funcom_test/33993916.txt b/funcom_test/33993916.txt deleted file mode 100644 index f6659db125df42f3891858a738fd0b24e1b155e1..0000000000000000000000000000000000000000 --- a/funcom_test/33993916.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMarginWidthPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_marginWidth_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_marginWidth_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__MARGIN_WIDTH, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the margin width feature </s> - diff --git a/funcom_test/33993926.txt b/funcom_test/33993926.txt deleted file mode 100644 index 74f6e64672da4d820e60598723fd006192cf5cb9..0000000000000000000000000000000000000000 --- a/funcom_test/33993926.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPageSizePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TableWidget_pageSize_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TableWidget_pageSize_feature", "_UI_TableWidget_type"), - UiPackage.Literals.TABLE_WIDGET__PAGE_SIZE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the page size feature </s> - diff --git a/funcom_test/33993929.txt b/funcom_test/33993929.txt deleted file mode 100644 index 153ef8b36ab77b6425ae39658a9e29fab81e0486..0000000000000000000000000000000000000000 --- a/funcom_test/33993929.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMoldPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_mold_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_mold_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__MOLD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the mold feature </s> - diff --git a/funcom_test/33993930.txt b/funcom_test/33993930.txt deleted file mode 100644 index 7a2755523b5f5ac4d7bda7ac7a6a9e8b5fd7a16c..0000000000000000000000000000000000000000 --- a/funcom_test/33993930.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMultiSelectionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TableWidget_multiSelection_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TableWidget_multiSelection_feature", "_UI_TableWidget_type"), - UiPackage.Literals.TABLE_WIDGET__MULTI_SELECTION, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the multi selection feature </s> - diff --git a/funcom_test/33993938.txt b/funcom_test/33993938.txt deleted file mode 100644 index 1799be5e3c16c8d44dbbb9e152f878b494624570..0000000000000000000000000000000000000000 --- a/funcom_test/33993938.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addColorPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GroupWidget_color_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GroupWidget_color_feature", "_UI_GroupWidget_type"), - UiPackage.Literals.GROUP_WIDGET__COLOR, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the color feature </s> - diff --git a/funcom_test/33993942.txt b/funcom_test/33993942.txt deleted file mode 100644 index fc4e55f15532baeafef1c9e525a830d40cc51a04..0000000000000000000000000000000000000000 --- a/funcom_test/33993942.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFieldIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TableColumn_fieldID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TableColumn_fieldID_feature", "_UI_TableColumn_type"), - UiPackage.Literals.TABLE_COLUMN__FIELD_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the field id feature </s> - diff --git a/funcom_test/33993945.txt b/funcom_test/33993945.txt deleted file mode 100644 index bf717327a6fc190bb16997fa22246afbbf0333dc..0000000000000000000000000000000000000000 --- a/funcom_test/33993945.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDisplayTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TableColumn_displayType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TableColumn_displayType_feature", "_UI_TableColumn_type"), - UiPackage.Literals.TABLE_COLUMN__DISPLAY_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the display type feature </s> - diff --git a/funcom_test/33993950.txt b/funcom_test/33993950.txt deleted file mode 100644 index 12f80049d3b12b2b3f418b68ebb942208af8f9e8..0000000000000000000000000000000000000000 --- a/funcom_test/33993950.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TableColumn_sort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TableColumn_sort_feature", "_UI_TableColumn_type"), - UiPackage.Literals.TABLE_COLUMN__SORT, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the sort feature </s> - diff --git a/funcom_test/33993959.txt b/funcom_test/33993959.txt deleted file mode 100644 index 5542dab5176bf74d5386474149fa1f99351bd7aa..0000000000000000000000000000000000000000 --- a/funcom_test/33993959.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRefPathPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ChildPanel_refPath_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ChildPanel_refPath_feature", "_UI_ChildPanel_type"), - UiPackage.Literals.CHILD_PANEL__REF_PATH, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the ref path feature </s> - diff --git a/funcom_test/33993971.txt b/funcom_test/33993971.txt deleted file mode 100644 index f90b2feafbe2fb07d1aed420463ebb57551cc172..0000000000000000000000000000000000000000 --- a/funcom_test/33993971.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSplittablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BorderLayoutGroup_splittable_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BorderLayoutGroup_splittable_feature", "_UI_BorderLayoutGroup_type"), - UiPackage.Literals.BORDER_LAYOUT_GROUP__SPLITTABLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the splittable feature </s> - diff --git a/funcom_test/33993979.txt b/funcom_test/33993979.txt deleted file mode 100644 index 771b024bf7f751bfff54211ff96183565ef0b6eb..0000000000000000000000000000000000000000 --- a/funcom_test/33993979.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOrientationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BorderLayoutGroup_orientation_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BorderLayoutGroup_orientation_feature", "_UI_BorderLayoutGroup_type"), - UiPackage.Literals.BORDER_LAYOUT_GROUP__ORIENTATION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the orientation feature </s> - diff --git a/funcom_test/33993983.txt b/funcom_test/33993983.txt deleted file mode 100644 index a818647a6363d11f084e38c6a30c04ff9658328e..0000000000000000000000000000000000000000 --- a/funcom_test/33993983.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSizePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BorderLayoutGroup_size_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BorderLayoutGroup_size_feature", "_UI_BorderLayoutGroup_type"), - UiPackage.Literals.BORDER_LAYOUT_GROUP__SIZE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the size feature </s> - diff --git a/funcom_test/33994010.txt b/funcom_test/33994010.txt deleted file mode 100644 index ea4b83ea08ab6df31e68cef5c7c42447b9c3a8a6..0000000000000000000000000000000000000000 --- a/funcom_test/33994010.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSelectedIndexPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TabsWidget_selectedIndex_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TabsWidget_selectedIndex_feature", "_UI_TabsWidget_type"), - UiPackage.Literals.TABS_WIDGET__SELECTED_INDEX, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the selected index feature </s> - diff --git a/funcom_test/33994017.txt b/funcom_test/33994017.txt deleted file mode 100644 index 1cc5aa05dca79ef169d7d224a9f64e8fb3e7f245..0000000000000000000000000000000000000000 --- a/funcom_test/33994017.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addColumnsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TableLayoutGroup_columns_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TableLayoutGroup_columns_feature", "_UI_TableLayoutGroup_type"), - UiPackage.Literals.TABLE_LAYOUT_GROUP__COLUMNS, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the columns feature </s> - diff --git a/funcom_test/33994080.txt b/funcom_test/33994080.txt deleted file mode 100644 index 2b8a464e698799d208cc2acf982072e41917e890..0000000000000000000000000000000000000000 --- a/funcom_test/33994080.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addServiceIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Panel_serviceID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Panel_serviceID_feature", "_UI_Panel_type"), - UiPackage.Literals.PANEL__SERVICE_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the service id feature </s> - diff --git a/funcom_test/33994191.txt b/funcom_test/33994191.txt deleted file mode 100644 index b96b3b675de6f826647d6278641327e11cf82e20..0000000000000000000000000000000000000000 --- a/funcom_test/33994191.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCodeTablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Widget_codeTable_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Widget_codeTable_feature", "_UI_Widget_type"), - UiPackage.Literals.WIDGET__CODE_TABLE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the code table feature </s> - diff --git a/funcom_test/33994232.txt b/funcom_test/33994232.txt deleted file mode 100644 index d7b49f84aa6ebcb44f74e33813e6878c2ad136cf..0000000000000000000000000000000000000000 --- a/funcom_test/33994232.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLayoutBackgroupPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Widget_layoutBackgroup_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Widget_layoutBackgroup_feature", "_UI_Widget_type"), - UiPackage.Literals.WIDGET__LAYOUT_BACKGROUP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the layout backgroup feature </s> - diff --git a/funcom_test/33998075.txt b/funcom_test/33998075.txt deleted file mode 100644 index 402daa26091f915aac1216ff84389151b706ccad..0000000000000000000000000000000000000000 --- a/funcom_test/33998075.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void checkUpdates() { - boolean newUpdates = false; - String[] commandLineArgs = Platform.getCommandLineArgs(); - for (int i = 0; i < commandLineArgs.length; i++) { - if (commandLineArgs[i].equalsIgnoreCase("-newUpdates")) { //$NON-NLS-1$ - newUpdates = true; - break; - } - } - - if (newUpdates) { - try { - SiteManager.handleNewChanges(); - } catch (CoreException e) { - StatusManager.getManager().handle(e, Application.PLUGIN_ID); - } - } - } - COM: <s> checks if the new updates command line argument is present and if so </s> - diff --git a/funcom_test/33998742.txt b/funcom_test/33998742.txt deleted file mode 100644 index ef561c13942824f6030ced120b22a3d269ad09e8..0000000000000000000000000000000000000000 --- a/funcom_test/33998742.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: static public Color getSystemColor(int swtId) { - Integer bigInt = new Integer(swtId); - Color clr = colorMap.get(bigInt); - if (clr == null) { - Display disp = Display.getDefault(); - clr = disp.getSystemColor(swtId); - colorMap.put(bigInt, clr); - } - return clr; -} - COM: <s> returns a system color identified by a swt constant </s> - diff --git a/funcom_test/34090221.txt b/funcom_test/34090221.txt deleted file mode 100644 index b88fda2bac6966930f3b0625fceab8c79edcc192..0000000000000000000000000000000000000000 --- a/funcom_test/34090221.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setSorterCheckBoxes() { - boolean[] chBoxSorterBooleans = MainFrame.getInstance().getSorter().getVisibleColumns(); - if(chBoxSorterBooleans.length != checkBoxSortList.size()) - return; - - for(int i = 0; i < checkBoxSortList.size(); i++){ - checkBoxSortList.get(i).setSelected(chBoxSorterBooleans[i]); - } - } - COM: <s> sets the checkboxes in the sorter panel to what is shown in </s> - diff --git a/funcom_test/34091073.txt b/funcom_test/34091073.txt deleted file mode 100644 index a59b30d58dbc0bdf64cda54c682b22a6919d66d6..0000000000000000000000000000000000000000 --- a/funcom_test/34091073.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void loadFindbugsPlugin() throws MalformedURLException { - File workingDir = new File(System.getProperty("user.dir")); - File findbugsJar = new File(workingDir.getParentFile(), - "findbugs/build/lib/findbugs.jar"); - URL[] pluginList = new URL[] { findbugsJar.toURI().toURL() }; - DetectorFactoryCollection dfc = new DetectorFactoryCollection(); - dfc.setPluginList(pluginList); - DetectorFactoryCollection.resetInstance(dfc); - } - COM: <s> loads the default detectors from findbugs </s> - diff --git a/funcom_test/34091898.txt b/funcom_test/34091898.txt deleted file mode 100644 index fc4c6de53a49db4a9973497e1b6453e749f29e15..0000000000000000000000000000000000000000 --- a/funcom_test/34091898.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void addParameterDeletesObligationDatabaseEntry(XMethod xmethod, Obligation obligation, ObligationPolicyDatabaseEntryType entryType) { - // Add a policy database entry noting that this method - // will delete one instance of the obligation type. - ObligationPolicyDatabaseEntry entry = new MatchMethodEntry( - xmethod, - ObligationPolicyDatabaseActionType.DEL, - entryType, - obligation); - database.addEntry(entry); - if (DEBUG_ANNOTATIONS) { - System.out.println("Added entry: " + entry); - } - } - COM: <s> add an appropriate policy database entry for </s> - diff --git a/funcom_test/34092076.txt b/funcom_test/34092076.txt deleted file mode 100644 index d2c6608b21a53605c97704423a8710cc7d43268d..0000000000000000000000000000000000000000 --- a/funcom_test/34092076.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void parseOption(String option) throws IOException { - int equalPos = option.indexOf("="); - if (equalPos < 0) { - throw new IOException("Bad format: invalid option format"); - } - String name = option.substring(0, equalPos); - String value = option.substring(equalPos + 1); - optionsMap.put(name, Boolean.valueOf(value)); - } - COM: <s> parse one line in the options section </s> - diff --git a/funcom_test/34092770.txt b/funcom_test/34092770.txt deleted file mode 100644 index 5761cc977979fea726913bb9452bfc8d5f4501ba..0000000000000000000000000000000000000000 --- a/funcom_test/34092770.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int compareSourceLines(BugCollection lhsCollection, BugCollection rhsCollection, SourceLineAnnotation lhs, SourceLineAnnotation rhs) { - if (lhs == null || rhs == null) { - return compareNullElements(lhs, rhs); - } - - // Classes must match fuzzily. - int cmp = compareClassesByName(lhsCollection, rhsCollection, lhs.getClassName(), rhs.getClassName()); - if (cmp != 0) - return cmp; - - return 0; - } - COM: <s> compare source line annotations </s> - diff --git a/funcom_test/34093280.txt b/funcom_test/34093280.txt deleted file mode 100644 index 51f4452dfcac8002ff57d167f4bbe1e48b4f9f0c..0000000000000000000000000000000000000000 --- a/funcom_test/34093280.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public MethodDescriptor getMethodDescriptor(@SlashedClassName String className, String name, String signature, boolean isStatic) { - if (className == null) throw new NullPointerException("className must be nonnull"); - MethodDescriptor methodDescriptor = new MethodDescriptor(className, name, signature, isStatic); - MethodDescriptor existing = methodDescriptorMap.get(methodDescriptor); - if (existing == null) { - methodDescriptorMap.put(methodDescriptor, methodDescriptor); - existing = methodDescriptor; - } - return existing; - } - COM: <s> get a method descriptor </s> - diff --git a/funcom_test/34093480.txt b/funcom_test/34093480.txt deleted file mode 100644 index f41aa0198844e1ebd8fae3cf4ac9fd544229798d..0000000000000000000000000000000000000000 --- a/funcom_test/34093480.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private URL getResource(String name) { - URL url = null; - - if (classLoader instanceof URLClassLoader) { - URLClassLoader urlClassLoader = (URLClassLoader) classLoader; - url = urlClassLoader.findResource(name); - if (url == null) - url = urlClassLoader.findResource("/" + name); - } - - if (url == null) { - url = classLoader.getResource(name); - if (url == null) - url = classLoader.getResource("/" + name); - } - - if (url != null) - return url; - return null; - } - COM: <s> get a resource using the urlclass loader class loader </s> - diff --git a/funcom_test/34093651.txt b/funcom_test/34093651.txt deleted file mode 100644 index 1bbddd14500d347e6e5f7a834f17fad934bd3836..0000000000000000000000000000000000000000 --- a/funcom_test/34093651.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void writeFilters(Properties props, String keyPrefix, Collection<String> filters) { - int counter = 0; - for (String s : filters) { - props.setProperty(keyPrefix + counter, s); - counter++; - } - // remove obsolete keys from the properties file - boolean keyFound = true; - while (keyFound) { - String key = keyPrefix + counter; - String property = props.getProperty(key); - if (property == null) { - keyFound = false; - } else { - props.remove(key); - } - } - } - COM: <s> helper method to write array of strings out of the properties file using </s> - diff --git a/funcom_test/34095118.txt b/funcom_test/34095118.txt deleted file mode 100644 index bcbbce34553e9b75c7320805e3aad0182d0e7892..0000000000000000000000000000000000000000 --- a/funcom_test/34095118.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private boolean isPEI(InstructionHandle handle) { - Instruction ins = handle.getInstruction(); - - if (!(ins instanceof ExceptionThrower)) - return false; - - if (ins instanceof NEW) return false; - // if (ins instanceof ATHROW) return false; - if (ins instanceof GETSTATIC) return false; - if (ins instanceof PUTSTATIC) return false; - if (ins instanceof ReturnInstruction) return false; - if (ins instanceof INSTANCEOF) return false; - // if (ins instanceof INVOKESTATIC) return false; - // if (ins instanceof MONITORENTER) return false; - if (ins instanceof MONITOREXIT) return false; - return true; - - } - COM: <s> return whether or not the given instruction can throw exceptions </s> - diff --git a/funcom_test/34095728.txt b/funcom_test/34095728.txt deleted file mode 100644 index c8b6ef61b2485c1ce3e6785d1dfaf2f66ff9f68a..0000000000000000000000000000000000000000 --- a/funcom_test/34095728.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public BitSet getAllDominatedBy(BasicBlock dominator) { - BitSet allDominated = new BitSet(); - for (Iterator<BasicBlock> i = cfg.blockIterator(); i.hasNext();) { - BasicBlock block = i.next(); - BitSet dominators = getResultFact(block); - if (dominators.get(dominator.getLabel())) - allDominated.set(block.getLabel()); - } - return allDominated; - } - COM: <s> get a bitset containing the unique ids of </s> - diff --git a/funcom_test/34095900.txt b/funcom_test/34095900.txt deleted file mode 100644 index 7e338d0a5e91055fb667305e2154659cde277097..0000000000000000000000000000000000000000 --- a/funcom_test/34095900.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void pushValue(Type type) { - TypeFrame frame = getFrame(); - if (type.getType() == T_LONG) { - frame.pushValue(Type.LONG); - frame.pushValue(TypeFrame.getLongExtraType()); - } else if (type.getType() == T_DOUBLE) { - frame.pushValue(Type.DOUBLE); - frame.pushValue(TypeFrame.getDoubleExtraType()); - } else - frame.pushValue(type); - } - COM: <s> work around some weirdness in bcel inherited from jvm spec 1 bcel </s> - diff --git a/funcom_test/34096032.txt b/funcom_test/34096032.txt deleted file mode 100644 index ad48803a9ce8c60ebc15f32bcce3905f63886bfc..0000000000000000000000000000000000000000 --- a/funcom_test/34096032.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void handleLoadInstruction(LoadInstruction obj) { - int numProduced = obj.produceStack(cpg); - if (numProduced == Constants.UNPREDICTABLE) - throw new InvalidBytecodeException("Unpredictable stack production"); - - if (numProduced != 1) { - super.handleLoadInstruction(obj); - return; - } - int index = obj.getIndex(); - TypeFrame frame = getFrame(); - Type value = frame.getValue(index); - boolean isExact = frame.isExact(index); - frame.pushValue(value); - if (isExact) - setTopOfStackIsExact(); - } - COM: <s> handler for all instructions which load values from a local variable and </s> - diff --git a/funcom_test/34096224.txt b/funcom_test/34096224.txt deleted file mode 100644 index d0b932a23cc7251691fb9f319bb5e6d7e474ce43..0000000000000000000000000000000000000000 --- a/funcom_test/34096224.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public IsNullValue markInformationAsComingFromReturnValueOfMethod(XMethod methodInvoked) { - int flag = RETURN_VAL; - if (methodInvoked.getName().equals("readLine") && methodInvoked.getSignature().equals("()Ljava/lang/String;")) - flag = READLINE_VAL; - if (getBaseKind() == NO_KABOOM_NN) return new IsNullValue(kind | flag, locationOfKaBoom); - return instanceByFlagsList[(getFlags() | flag) >> FLAG_SHIFT][getBaseKind()]; - } - COM: <s> convert to a value known because it was returned from a method </s> - diff --git a/funcom_test/34096522.txt b/funcom_test/34096522.txt deleted file mode 100644 index 4307370718983468240d6c92e69433f0855dc7cb..0000000000000000000000000000000000000000 --- a/funcom_test/34096522.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void configureAnalysisContext(AnalysisContext analysisContext) { - boolean max = SystemProperties.getBoolean("dataflow.max"); - - for (Knob knob : KNOB_LIST) { - boolean enable = max || SystemProperties.getBoolean(knob.systemPropertyName); - System.out.println("Setting " + knob.systemPropertyName + "=" + enable); - analysisContext.setBoolProperty(knob.analysisProperty, enable); - } - } - COM: <s> configure the analysis context </s> - diff --git a/funcom_test/34096815.txt b/funcom_test/34096815.txt deleted file mode 100644 index a9479e3f7f399a15b57181ce4f31466984616cdd..0000000000000000000000000000000000000000 --- a/funcom_test/34096815.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void deleteObligation(final Obligation obligation, int basicBlockId) throws ObligationAcquiredOrReleasedInLoopException { - Map<ObligationSet, State> updatedStateMap = new HashMap<ObligationSet, State>(); - for (Iterator<State> i = stateIterator(); i.hasNext(); ) { - State state = i.next(); - checkCircularity(state, obligation, basicBlockId); - state.getObligationSet().remove(obligation); - updatedStateMap.put(state.getObligationSet(), state); - } - replaceMap(updatedStateMap); - } - COM: <s> remove an obligation from every state in the state set </s> - diff --git a/funcom_test/34096854.txt b/funcom_test/34096854.txt deleted file mode 100644 index db8e51855d0de61185f07f9bd3f7b362bf5886aa..0000000000000000000000000000000000000000 --- a/funcom_test/34096854.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private ClassVertex addClassVertexForMissingClass(ClassDescriptor missingClassDescriptor, boolean isInterfaceEdge) { - ClassVertex missingClassVertex = ClassVertex.createMissingClassVertex(missingClassDescriptor, isInterfaceEdge); - missingClassVertex.setFinished(true); - addVertexToGraph(missingClassDescriptor, missingClassVertex); - - AnalysisContext.currentAnalysisContext().reportMissingClass(missingClassDescriptor); - - return missingClassVertex; - } - COM: <s> add a class vertex representing a missing class </s> - diff --git a/funcom_test/34097194.txt b/funcom_test/34097194.txt deleted file mode 100644 index d32f74cec940af0dc80af020b56003c0f73e125f..0000000000000000000000000000000000000000 --- a/funcom_test/34097194.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public static final SetOperation ADDED_WARNINGS = new SetOperation(){ - public SortedBugCollection perform(Set<BugInstance> result, - SortedBugCollection origCollection, SortedBugCollection newCollection) { - result.addAll(newCollection.getCollection()); - - // Get shared instances - List<BugInstance> inBoth = getSharedInstances(result, origCollection); - - // Remove the shared instances from the result - removeBugInstances(result, inBoth); - - return newCollection; - } - }; - COM: <s> get the warnings which were em added em </s> - diff --git a/funcom_test/34097293.txt b/funcom_test/34097293.txt deleted file mode 100644 index 11fe03dbb6857873fe8590e45b1123c578a4a19e..0000000000000000000000000000000000000000 --- a/funcom_test/34097293.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addClass(@DottedClassName String className, @CheckForNull String sourceFile, boolean isInterface, int size) { - String packageName; - int lastDot = className.lastIndexOf('.'); - if (lastDot < 0) - packageName = ""; - else - packageName = className.substring(0, lastDot); - PackageStats stat = getPackageStats(packageName); - stat.addClass(className, sourceFile, isInterface, size); - totalClasses++; - totalSize += size; - } - COM: <s> report that a class has been analyzed </s> - diff --git a/funcom_test/34097300.txt b/funcom_test/34097300.txt deleted file mode 100644 index d2a0204bf2dfecb9d47e4c229ebeb4707c4cca36..0000000000000000000000000000000000000000 --- a/funcom_test/34097300.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private boolean isExceptionEdge(Edge edge) { - boolean isExceptionEdge = edge.isExceptionEdge(); - if (isExceptionEdge) { - if (DEBUG) - System.out.println("Ignoring " + edge); - return true; - } - if (edge.getType() != EdgeTypes.FALL_THROUGH_EDGE) - return false; - InstructionHandle h = edge.getSource().getLastInstruction(); - if (h != null && h.getInstruction() instanceof IFNONNULL && isNullCheck(h, methodGen.getConstantPool())) - return true; - - return false; - - } - COM: <s> determine whether dataflow should be propagated on given edge </s> - diff --git a/funcom_test/34097638.txt b/funcom_test/34097638.txt deleted file mode 100644 index fa5581c616b8ac3a758905d28d1613d156324c4b..0000000000000000000000000000000000000000 --- a/funcom_test/34097638.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void createAnalysisCache() throws IOException { - analysisCache = ClassFactory.instance().createAnalysisCache(classPath, bugReporter); - - // Register the "built-in" analysis engines - registerBuiltInAnalysisEngines(analysisCache); - - // Register analysis engines in plugins - registerPluginAnalysisEngines(detectorFactoryCollection, analysisCache); - - // Install the DetectorFactoryCollection as a database - analysisCache.eagerlyPutDatabase(DetectorFactoryCollection.class, detectorFactoryCollection); - - Global.setAnalysisCacheForCurrentThread(analysisCache); - } - COM: <s> create the analysis cache object </s> - diff --git a/funcom_test/34099744.txt b/funcom_test/34099744.txt deleted file mode 100644 index bc76f42b48996cafbb5f9a3d65510bbebac7edf2..0000000000000000000000000000000000000000 --- a/funcom_test/34099744.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public BugInstance addSourceLine(ClassContext classContext, MethodGen methodGen, String sourceFile, @NonNull InstructionHandle handle) { - SourceLineAnnotation sourceLineAnnotation = - SourceLineAnnotation.fromVisitedInstruction(classContext, methodGen, sourceFile, handle); - if (sourceLineAnnotation != null) - add(sourceLineAnnotation); - return this; - } - COM: <s> add a source line annotation for the given instruction in the given method </s> - diff --git a/funcom_test/34100059.txt b/funcom_test/34100059.txt deleted file mode 100644 index 33c0156637689904c67d00c5fe34228b90551928..0000000000000000000000000000000000000000 --- a/funcom_test/34100059.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public WorkflowProcess createWorkflowProcess() { - // 从文件中读取流程定义 - try { - File f = new File( - "src/test/java/org/fireflow/pdl/fpdl20/test/service/human/HumanServiceProcess.fpdl20.xml"); - FileInputStream fIn = new FileInputStream(f); - Dom4JFPDLParser parser = new Dom4JFPDLParser(); - - WorkflowProcess process = parser.parse(fIn); - - return process; - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } - COM: <s> start activity human service end </s> - diff --git a/funcom_test/34105239.txt b/funcom_test/34105239.txt deleted file mode 100644 index 134bfab0455d6907fdeea5a7b8adb9998ad385fb..0000000000000000000000000000000000000000 --- a/funcom_test/34105239.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String makeUniqueStringForGlobalWithLength(String global, int length) { - String toReturn = ""; - do { - toReturn += super.utils.generateUnique(); - } while (toReturn.length() < length); - toReturn = toReturn.substring(toReturn.length() - length); - super.utils.setGlobal(global, toReturn); - return toReturn; - } - COM: <s> used to create a unique string of a specified length for specified global </s> - diff --git a/funcom_test/34105249.txt b/funcom_test/34105249.txt deleted file mode 100644 index eece27831f6066854b1b3943d5926418d5c3db83..0000000000000000000000000000000000000000 --- a/funcom_test/34105249.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void makeUniqueParagraphForGlobalWithLength(String global, int length) { - String paragraph = ""; - String word; - for (int x = 0; x < length; x++) { - word = makeUniqueStringForGlobalWithLength(global, (int)(Math.random() * 8) + 2); - paragraph += word + " "; - } - utils.setGlobal(global, paragraph); - } - COM: <s> used to create a paragraph of unique words with varying lengths </s> - diff --git a/funcom_test/34231561.txt b/funcom_test/34231561.txt deleted file mode 100644 index 14c94831c3330af3100eafa67b89a9f9d46ce506..0000000000000000000000000000000000000000 --- a/funcom_test/34231561.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setProgress( double value ) { - progressBar.setSelection( (int) value ); - short progress = (short)( value / (double)maximum * (double)100 ); - if( progress - previousProgress >= 1) { - progressLabel.setText("Simulation Progress: " + progress + "%"); - progressLabel.update(); - previousProgress = progress; - if( progress == 100 ) - finishButton.setEnabled( true ); - shell.update(); - } - } - COM: <s> method to set progress value </s> - diff --git a/funcom_test/34231569.txt b/funcom_test/34231569.txt deleted file mode 100644 index b98d63eb7103cbbd3afebff6aac71c587b49038e..0000000000000000000000000000000000000000 --- a/funcom_test/34231569.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void addServerTabFolder(Shell shell) { - tabs = new TabFolder(shell, SWT.TOP|SWT.NO_REDRAW_RESIZE); - tabs.setSize(650, 300); - tabs.setLocation(30,80); - tabs.addListener(100, new Listener(){ - - public void handleEvent(Event e) { - for(int i =0; i < tabs.getItemCount(); i++ ){ - tabs.getItem(i).notifyListeners(100, e); - } - } - }); - } - COM: <s> adds tab folder to hold server tabs to main window </s> - diff --git a/funcom_test/34231586.txt b/funcom_test/34231586.txt deleted file mode 100644 index 6398a0426afd9732acbebad34584ac1fdbb1f473..0000000000000000000000000000000000000000 --- a/funcom_test/34231586.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public PacketTimestamped removeFirstFlowPacket(FlowIdentifier flowId) { - PacketTimestamped tempPacket = super.removeFirstFlowPacket( flowId ); - if( tempPacket != null ) { - sizeInBytes -= tempPacket.p.getLength(); - return tempPacket; - } else { - Debug.print(Debug.INFO,"PFQQueueBytes.removeFirstFlowPacket(): last packet in Queue!!"); - return null; - } - } - COM: <s> method to remove first packet in the queue that belongs to specified </s> - diff --git a/funcom_test/34231739.txt b/funcom_test/34231739.txt deleted file mode 100644 index f04c6c69fb1dd4455deb3a70d8afea45ced37e52..0000000000000000000000000000000000000000 --- a/funcom_test/34231739.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void printAllFlows() { - System.out.println("\nThe AFL contains the following flows:"); - for (Iterator iter = protectedList.iterator(); iter.hasNext();) { - Flow element = (Flow) iter.next(); - Debug.print( element.getFlowID().toInt() + " Finish tag: " + element.getFinishTag() ); - } - } - COM: <s> displayes priopriate information of all flows currently held in pfl </s> - diff --git a/funcom_test/34302383.txt b/funcom_test/34302383.txt deleted file mode 100644 index 15d73a6ffb4f64a38616efcbeb16bfa475878618..0000000000000000000000000000000000000000 --- a/funcom_test/34302383.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void initializeAccessRules() { - Set<String> rules = new HashSet<String>(); - for (Class<?> annotatedClass: getPersistenceMapping().getSecureClasses()) { - rules.addAll(parseAllowedRoles(annotatedClass)); - rules.addAll(parsePermissions(annotatedClass)); - } - rules.remove(null); - compileRules(rules); - } - COM: <s> initializes the access rules by parsing the persistent classes </s> - diff --git a/funcom_test/34302699.txt b/funcom_test/34302699.txt deleted file mode 100644 index d4804234d20585aa6aa4395762d5cecf31f46762..0000000000000000000000000000000000000000 --- a/funcom_test/34302699.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void appendToWhereClause(JpqlSubselect subselect, JpqlWith with) { - JpqlWhere where = new JpqlCompiledStatement(subselect).getWhereClause(); - with.jjtGetParent().jjtRemoveChild(2); - Node condition = with.jjtGetChild(0); - if (where == null) { - where = createWhere(condition); - appendChildren(subselect, where); - } else { - append(where, condition); - } - } - COM: <s> removes the specified tt with tt node from its parent </s> - diff --git a/funcom_test/34302708.txt b/funcom_test/34302708.txt deleted file mode 100644 index 87dac42702418f76be27c739e012e813614a3461..0000000000000000000000000000000000000000 --- a/funcom_test/34302708.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public JpqlPath prepend(Path path, JpqlPath pathNode) { - Alias alias = path.getRootAlias(); - String[] subpathComponents = path.getSubpathComponents(); - String[] pathComponents = new String[subpathComponents.length + 1]; - pathComponents[0] = alias.getName(); - System.arraycopy(subpathComponents, 0, pathComponents, 1, subpathComponents.length); - return prepend(pathComponents, pathNode); - } - COM: <s> prepends the specified path to the specified path node </s> - diff --git a/funcom_test/34302753.txt b/funcom_test/34302753.txt deleted file mode 100644 index 77c6861d223a3796a0373b3be31a42f91ec1fb73..0000000000000000000000000000000000000000 --- a/funcom_test/34302753.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Node createIn(Path alias, JpqlCompiledStatement statement) { - JpqlIn in = new JpqlIn(JpqlParserTreeConstants.JJTIN); - Node path = createPath(alias); - path.jjtSetParent(in); - in.jjtAddChild(path, 0); - Node subselect = createSubselect(statement); - subselect.jjtSetParent(in); - in.jjtAddChild(subselect, 1); - return createBrackets(in); - } - COM: <s> creates an tt jpql in tt subtree for the specified access rule </s> - diff --git a/funcom_test/34302766.txt b/funcom_test/34302766.txt deleted file mode 100644 index 006fb12f66dfa36cb3bde6086f67b1c00981eada..0000000000000000000000000000000000000000 --- a/funcom_test/34302766.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public JpqlSelectClause createSelectClause(Path selectedPath) { - JpqlSelectExpression expression = new JpqlSelectExpression(JpqlParserTreeConstants.JJTSELECTEXPRESSION); - expression = appendChildren(expression, createPath(selectedPath)); - JpqlSelectExpressions expressions = new JpqlSelectExpressions(JpqlParserTreeConstants.JJTSELECTEXPRESSIONS); - expressions = appendChildren(expressions, expression); - return appendChildren(new JpqlSelectClause(JpqlParserTreeConstants.JJTSELECTCLAUSE), expressions); - } - COM: <s> creates a tt jpql select clause tt node to select the specified path </s> - diff --git a/funcom_test/34303829.txt b/funcom_test/34303829.txt deleted file mode 100644 index 7afdc50d9653c7bdeb2507fddef607d6b13ee11a..0000000000000000000000000000000000000000 --- a/funcom_test/34303829.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected boolean isSingleValuedRelationshipProperty(Member property) { - AnnotatedElement annotatedProperty = (AnnotatedElement)property; - return annotatedProperty.isAnnotationPresent(EmbeddedId.class) - || annotatedProperty.isAnnotationPresent(Embedded.class) - || annotatedProperty.isAnnotationPresent(ManyToOne.class) - || annotatedProperty.isAnnotationPresent(OneToOne.class); - } - COM: <s> the implementation of this method does not really conform with the jpa spec </s> - diff --git a/funcom_test/34313187.txt b/funcom_test/34313187.txt deleted file mode 100644 index 75b45bc588332627a7159d28bed87bc6dc977b39..0000000000000000000000000000000000000000 --- a/funcom_test/34313187.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void append(String str) { - String reason; - - if (str == null) { - return; - } - if ((reason = Verifier.checkCharacterData(str)) != null) { - throw new IllegalDataException(str, "character content", reason); - } - - if (str.equals(EMPTY_STRING)) - value = str; - else value += str; - } - COM: <s> this will append character content to whatever content already </s> - diff --git a/funcom_test/34313537.txt b/funcom_test/34313537.txt deleted file mode 100644 index 4d632fb4721d7d8c48f53e2117ec730f62e4f16a..0000000000000000000000000000000000000000 --- a/funcom_test/34313537.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String getNextLine(RandomAccessFile _raf) throws IOException { - String s = _raf.readLine(); - if (s==null) return null; - s = s.replace('\t', ' '); - s=s.trim(); - s=s.replaceAll("\n\r", "\n"); - while (s.indexOf(" ")>=0){ - s = s.replaceAll(" ", " "); - } - return s; - } - COM: <s> retrieve the next unread line of the passed file accessor </s> - diff --git a/funcom_test/34313555.txt b/funcom_test/34313555.txt deleted file mode 100644 index fd7fe989d3e71d62161fe8f7112fa7a5c6b4088e..0000000000000000000000000000000000000000 --- a/funcom_test/34313555.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void loadMethods(Class<? extends Object> cls) throws Exception { - Method [] methods = cls.getMethods(); - for (int i = 0; i < methods.length; i++) { - Method method = methods[i]; - nameToMethodMap.put(method.getName(), method); - } - } - COM: <s> to load all the methods in the given class by java reflection </s> - diff --git a/funcom_test/34313635.txt b/funcom_test/34313635.txt deleted file mode 100644 index a2c84204a4e5af269c9229d720bf668f503a5494..0000000000000000000000000000000000000000 --- a/funcom_test/34313635.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean add(T word){ - if (contains(word.toString())){ - T t = fastLookup.get(word.toString()); - try { - dict.put(word, dict.get(word)+1); - return true; - } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return true; - } - } else { - dict.put(word, 1); - fastLookup.put(word.toString(), word); - return false; - } - } - COM: <s> add a word to the dictionarry </s> - diff --git a/funcom_test/34313640.txt b/funcom_test/34313640.txt deleted file mode 100644 index 5d12ac88ec9c284f51755aebe73b7a9f1f2e60e1..0000000000000000000000000000000000000000 --- a/funcom_test/34313640.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void printStats(){ - final int wordlength = 20; - StringBuilder sb = new StringBuilder(); - sb.append("Statistic of the diconary").append(newline); - sb.append("Total words: ").append(dict.size()).append(newline); - for (Entry<T,Integer> entry : dict.entrySet()) { - sb.append(entry.getKey()).append(padding(entry.getKey(),wordlength)).append(":\t").append(entry.getValue()).append(newline); - } - logger.info(sb.toString()); - } - COM: <s> print the statistics of the dictonary to the logger info </s> - diff --git a/funcom_test/34413596.txt b/funcom_test/34413596.txt deleted file mode 100644 index c65ad2e99ea1bd9ef5f90af99c06de604bb7eea0..0000000000000000000000000000000000000000 --- a/funcom_test/34413596.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ListModel getFiltersListModel(Desktop desktop){ - if(_filtersProxy!=null){ - if(_filtersProxy.getDesktop().equals(desktop)){ - return _filtersProxy; - } - } - _filtersProxy = (ProxyModel)_containerEditor.getFiltersListModel(desktop); - return _filtersProxy; - } - COM: <s> returns a proxy model for the filters currently in this container </s> - diff --git a/funcom_test/34413723.txt b/funcom_test/34413723.txt deleted file mode 100644 index 34356f02b27c6cae37dc6dd954c950a060a9d04e..0000000000000000000000000000000000000000 --- a/funcom_test/34413723.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean openNewContainerWindow(String containerName, String containerDescription){ - //if name is blank, disable use default option - NewContainerImportWindow window; - if(containerName.equals("")){ - window = new NewContainerImportWindow(); - } - else{ - window = new NewContainerImportWindow(containerName,containerDescription); - } - window.setParent(OrganiserView.this); - try{ - window.doModal(); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - if(doImport){ - importer.setContainerName(window.getName()); - importer.setContainerDescription(window.getDescription()); - } - return doImport; - } - COM: <s> open a window to start the import process </s> - diff --git a/funcom_test/34413730.txt b/funcom_test/34413730.txt deleted file mode 100644 index ff2ea5832941adf8af824aa11d335adc8a1370d0..0000000000000000000000000000000000000000 --- a/funcom_test/34413730.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initialiseContextMenu(){ - //initialise the menu the listener - //NOTE: the rest of the initialisation of this class is done in the tabbox context listener class - contextMenu = new Menupopup(); - contextMenu.setId(_contextId); - contextMenu.setParent(scratchPanel); - contextListener = new TabboxContextListener(this,contextMenu); - contextMenu.addEventListener("onOpen",contextListener); - } - COM: <s> initialises the context menu for object manipulations in the tree </s> - diff --git a/funcom_test/34413764.txt b/funcom_test/34413764.txt deleted file mode 100644 index 622721cda4d192885383fd7a8dbac3da3424b649..0000000000000000000000000000000000000000 --- a/funcom_test/34413764.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean checkContainer(String containerId){ - //if name is blank, disable use default option - if(!containerId.equals(parentContainer)){ - doImport = false; - editor.returnContainerLock(OrganiserView.this, _userModule.getUserId()); - try{ - Messagebox.show("The import file does not match!", "Error!", Messagebox.OK, Messagebox.ERROR); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - } - return doImport; - } - COM: <s> checks if the container id given matches the container to be replaced </s> - diff --git a/funcom_test/34413795.txt b/funcom_test/34413795.txt deleted file mode 100644 index 2d72209a58f52333c4ebdff02e2ddafc7b941567..0000000000000000000000000000000000000000 --- a/funcom_test/34413795.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected void resizeTabbox(int height){ - //resize this - //resize all views - currentViewHeight = height-heightOffset;//202 is good - View view = null; - - //resize the views - Tabpanels tabpanels; - Enumeration<Tabbox> tabs = primaryTabMap.keys(); - while (tabs.hasMoreElements()) - { - tabpanels = tabs.nextElement().getTabpanels(); - List<?> tps = tabpanels.getChildren(); - Tabpanel tabpanel = null; - for(int i=0;i<tps.size();i++){ - tabpanel = (Tabpanel)tps.get(i); - view = (View)tabpanel.getChildren().get(0); - view.resizeView(currentViewHeight); - } - } - this.invalidate(); - } - COM: <s> resizes the tabboxs contents and in response its size </s> - diff --git a/funcom_test/34413807.txt b/funcom_test/34413807.txt deleted file mode 100644 index 428ae15167f1b6a7d984289aff6823613b20a267..0000000000000000000000000000000000000000 --- a/funcom_test/34413807.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void close(){ - Tabpanel tempPanel = null; - View tempView = null; - List<?> list; - Enumeration<Tabbox> tabs = primaryTabMap.keys(); - while (tabs.hasMoreElements()) - { - list = tabs.nextElement().getTabpanels().getChildren(); - Iterator<?> itr = list.iterator(); - while(itr.hasNext()){ - tempPanel = (Tabpanel)itr.next(); - tempView = (View)tempPanel.getChildren().get(0); - tempView.deregisterView(); - } - } - } - COM: <s> notifies all views to de register from their view controllers </s> - diff --git a/funcom_test/34413808.txt b/funcom_test/34413808.txt deleted file mode 100644 index d4fe53986becc75b168de658feb06b59b6acfa5e..0000000000000000000000000000000000000000 --- a/funcom_test/34413808.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void init() { - _innerData = Collections.synchronizedMap(new LinkedHashMap<String,Object>()); - Iterator<Entry<String,Object>> itr = _srcModel.entrySet().iterator(); - while(itr.hasNext()){ - Entry<String, Object> entry = itr.next(); - _innerData.put(entry.getKey(), entry.getValue()); - } - - _srcListener = new ListDataListener(){ - public void onChange(ListDataEvent event) { - onListDataChange(event); - } - }; - - _srcModel.addListDataListener(_srcListener); - } - COM: <s> method to handle initialisation tasks </s> - diff --git a/funcom_test/34413818.txt b/funcom_test/34413818.txt deleted file mode 100644 index cc1824fbc3bf361378288c8b0b83cb14979c4e9d..0000000000000000000000000000000000000000 --- a/funcom_test/34413818.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void onCreate(){ - Tabpanel tempPanel = null; - View tempView = null; - List<?> list; - Enumeration<Tabbox> tabs = primaryTabMap.keys(); - while (tabs.hasMoreElements()) - { - list = tabs.nextElement().getTabpanels().getChildren(); - Iterator<?> itr = list.iterator(); - while(itr.hasNext()){ - tempPanel = (Tabpanel)itr.next(); - tempView = (View)tempPanel.getChildren().get(0); - tempView.onCreate(); - } - } - } - COM: <s> called by the workbench embedded window </s> - diff --git a/funcom_test/34413832.txt b/funcom_test/34413832.txt deleted file mode 100644 index 5560d886db4c51ed01658789a80fc3400af0e2cf..0000000000000000000000000000000000000000 --- a/funcom_test/34413832.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void setCopy(){ - ProgressPair pair; - Iterator<Entry<String, ProgressPair>> itr = currentOperations.entrySet().iterator(); - int done = 0; - int total = 0; - while(itr.hasNext()){ - pair = itr.next().getValue(); - done = done + pair.getDone(); - total = total + pair.getTotal(); - } - int result = (done*100)/total; - if(result>100) result = 100; - meter.setValue(result); - setFooterLabel("Copying... ("+Integer.toString(result)+"%)"); - } - COM: <s> updates the progress bar for current active copies copies </s> - diff --git a/funcom_test/34413902.txt b/funcom_test/34413902.txt deleted file mode 100644 index 7fcab2c02cf550bb0c2189d39dd5d31bc5ea84ba..0000000000000000000000000000000000000000 --- a/funcom_test/34413902.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void openTo(String objectId){ - if (getObjectById(objectId) == null) - { - // Recurse on the parent. - String parentId = getParentObject(objectId); - if (parentId != null && parentId.length() > 0) - { - openTo(parentId); - } - } - // Open down to this level. - Treeitem t = (Treeitem) getObjectById(objectId); - while (t != null) - { - this.getChildren(t, null); - t.setOpen(true); - t = t.getParentItem(); - } - } - COM: <s> open to an object id do not select it </s> - diff --git a/funcom_test/34413905.txt b/funcom_test/34413905.txt deleted file mode 100644 index b0ff50891985ff7b3b43e5030c402ea08871e21f..0000000000000000000000000000000000000000 --- a/funcom_test/34413905.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void onGridFilterEditorClose(FilterObject object){ - //update Editor window - editing = false; - if(object!=null){ - //onOk - //change of selected object - selectedFilter = object; - } - else{ - //onCancel - if(selectedFilter==null){ - selectedFilter = _currentViewController.getCustomFilter(); - } - } - gridbox.onFilterChange(selectedFilter); - propertyTab.setDisabled(false); - gridTab.setDisabled(false); - _tabbox.setSelectionByContainer(_currentContainer.getContainerFileName()); - } - COM: <s> handles a close of the grid filter </s> - diff --git a/funcom_test/34413992.txt b/funcom_test/34413992.txt deleted file mode 100644 index e50070d413a1f059dee10fdf744e794b028845b9..0000000000000000000000000000000000000000 --- a/funcom_test/34413992.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void reportLockResult(LockException result) { - if (result.BlockerId == null) - { - showMessageBox(result.getMessage(), "Warning", Messagebox.OK, Messagebox.EXCLAMATION); - } - else - { - if (Messagebox.YES == showMessageBox(result.getMessage() + "\nShow the locked object?", "Warning", Messagebox.YES | Messagebox.NO, Messagebox.EXCLAMATION)) - { - ArrayList<String> blocker = new ArrayList<String>(); - blocker.add(result.BlockerId); - this.navigateTo(blocker, true); - } - } - } - COM: <s> displays the result of a lock operation </s> - diff --git a/funcom_test/34414017.txt b/funcom_test/34414017.txt deleted file mode 100644 index 717be65d6839f0f6fb19c0bbc2322a6012543a26..0000000000000000000000000000000000000000 --- a/funcom_test/34414017.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void addSelectedGroup(String ou){ - //to prevent the place holder item from provoking a response in the interface - if(!ou.equals("0")){ - LdapGroup movedGroup = (LdapGroup)availableGroups.remove(ou); - if(selectedGroups.containsKey("0")){ - selectedGroups.remove("0"); - } - selectedGroups.put(ou,movedGroup); - if(availableGroups.isEmpty()){ - availableGroups.put(controller.getEmptyAvailableGroup().getOU(),controller.getEmptyAvailableGroup()); - } - } - } - COM: <s> adds a selected group from the available side to the selected side </s> - diff --git a/funcom_test/34414140.txt b/funcom_test/34414140.txt deleted file mode 100644 index 2aa04ba2eca5f279fd6395bfa6f3ef1e8dd4be49..0000000000000000000000000000000000000000 --- a/funcom_test/34414140.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void goToNextStage(){ - Stage current = stagedSections.get(this.stageIndex); - current.setVisible(false); - this.stageIndex++; - current = stagedSections.get(this.stageIndex); - current.setVisible(true); - if(this.stageIndex==stagedSections.size()-1){ - //this is at max index - //do finish code ie change the next button to "Finish" - nextFinishButton.setLabel("Finish"); - nextFinishButton.setDisabled(false); - } - } - COM: <s> move to the next stage of the import </s> - diff --git a/funcom_test/34414169.txt b/funcom_test/34414169.txt deleted file mode 100644 index 5ef1a31bc55ca7512ac4d945bffc776166a7e1a7..0000000000000000000000000000000000000000 --- a/funcom_test/34414169.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void onDateChange(){ - this.setInputStatus(true); - ListModelList model = historian.getLogFileModel(datebox.getValue()); - baseModel = model; - if(checkbox.isChecked()){ - ListModelList tempModel = new ListModelList(); - Comboitem item = userbox.getSelectedItem(); - if(item!=null){ - String userId = (String)item.getAttribute(UserComboRenderer.ID); - model = filterBaseModel(userId); - } - else{ - model = tempModel; - } - } - logListbox.setModel(model); - this.setInputStatus(false); - } - COM: <s> handles a change of date selection </s> - diff --git a/funcom_test/34414172.txt b/funcom_test/34414172.txt deleted file mode 100644 index a84907536159ff05ae6d5e4d1dcaff57c516e418..0000000000000000000000000000000000000000 --- a/funcom_test/34414172.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public LockResult getLock(String locker) throws LockException{ - LockResult result = new LockResult(); - synchronized (lockingMutex) { - if(!_locked||locker.equals("system")){ - result = ((ModelContainerEditor)_containerEditor).getObjectLock(_id, locker); - //update the wrapper - _locked = true; - _locker = locker; - _lockDate = (new Date(result.LockDate)).toString(); - } else { - throw new LockException(LockException.OBJECT_LOCKED, _id); - } - } - return result; - } - COM: <s> get a lock on this object </s> - diff --git a/funcom_test/34414204.txt b/funcom_test/34414204.txt deleted file mode 100644 index 7ab9c5778e4f10f34c8a8b1ad888311b3ea050eb..0000000000000000000000000000000000000000 --- a/funcom_test/34414204.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private void doUpload(){ - files.clear(); - Iterator<String> itrt = titles.iterator(); - Iterator<String> itrm = messages.iterator(); - File tempFile; - while(itrt.hasNext()&&itrm.hasNext()){ - tempFile = uploadFile(itrm.next(), itrt.next()); - if(tempFile==null){ - completeMessage.setVisible(false); - nextFinishButton.setDisabled(true); - return; - } - else{ - files.add(tempFile); - } - } - - //on complete, set the buttons correctly - completeMessage.setVisible(true); - nextFinishButton.setDisabled(false); - uploadButton.setLabel("Restart Upload..."); - } - COM: <s> do the upload </s> - diff --git a/funcom_test/34414259.txt b/funcom_test/34414259.txt deleted file mode 100644 index a8e7e25d9d87bb5f5b8aa812b9ed88e90ff9e2e7..0000000000000000000000000000000000000000 --- a/funcom_test/34414259.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void updateObjectInformation(String name, String value) { - ModifyPropertyThread mpt = _containerEditor.modifyProperty(name, INFORMATION, value, getObjectId()+".xml", "false", "", true); - try{ - mpt.start(); - mpt.join(); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - mpt.cleanThread(); - } - COM: <s> private method to handle updating of icon name and description </s> - diff --git a/funcom_test/34414390.txt b/funcom_test/34414390.txt deleted file mode 100644 index 25f970058d8920fddf66c6f217cec57018df4314..0000000000000000000000000000000000000000 --- a/funcom_test/34414390.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void editPropertyType(String propName, String propValue, String path, String userId) { - ModifyPropertyThread mpt = _containerEditor.modifyProperty(propName+"/@valueType", path, propValue, getObjectId()+".xml", "", userId, false); - try{ - mpt.start(); - mpt.join(); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - mpt.cleanThread(); - } - COM: <s> modify the type of a property </s> - diff --git a/funcom_test/34414401.txt b/funcom_test/34414401.txt deleted file mode 100644 index 7979443af599b318be8d6200b3660eef287b0ae4..0000000000000000000000000000000000000000 --- a/funcom_test/34414401.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void editIcon(Object source, String id, String newIconPath, String userId){ - synchronized (containerOpMutex) { - String currentIcon = ""; - IViewable object = this.getObjectWrapper(id); - if(object==null){ - return; - } - currentIcon = object.getIconPath(); - //check names, rename if valid - if(newIconPath.equals(currentIcon)){ - return; - } - else{ - object.setIcon(newIconPath, userId); - sendModifyEvent(source, object.getObjectId(), userId, new Date()); - return; - } - } - } - COM: <s> modifies the icon path for the selected object </s> - diff --git a/funcom_test/34414407.txt b/funcom_test/34414407.txt deleted file mode 100644 index 1444d04ed8d0bef1c681af3c6a2d3623cc9d9879..0000000000000000000000000000000000000000 --- a/funcom_test/34414407.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean editPropertyName(Object source, String objectId, String propName, String newName, String path, String userId){ - boolean ret = false; - LibraryObject object = this.getObjectWrapper(objectId); - if(object!=null){ - ret = true; - object.renameProperty(propName, newName, path, userId); - this.sendModifyEvent(source, objectId, userId, new Date()); - } - return ret; - } - COM: <s> edits an objects property name based on the arguments provided </s> - diff --git a/funcom_test/34414411.txt b/funcom_test/34414411.txt deleted file mode 100644 index c705cac3dddfbbb1278db9bb51ba448ce501fc8f..0000000000000000000000000000000000000000 --- a/funcom_test/34414411.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void renameProperty(String propName, String propNewName, String path, String userId) { - RenamePropertyThread.RenamePropertySettings attributes = new RenamePropertyThread.RenamePropertySettings(); - attributes.DocumentName = getObjectId()+".xml"; - attributes.PropertyName = propName; - attributes.PropertyNewName = propNewName; - attributes.SourcePath = path; - attributes.UserId = userId; - RenamePropertyThread rpt = _containerEditor.renameProperty(attributes); - try{ - rpt.start(); - rpt.join(); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - rpt.cleanThread(); - } - COM: <s> modify the name of a property or an attribute of the property </s> - diff --git a/funcom_test/34414416.txt b/funcom_test/34414416.txt deleted file mode 100644 index b83b08b8559de96f775ae6f3a90c1c3e0700c6f5..0000000000000000000000000000000000000000 --- a/funcom_test/34414416.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void removeProperty(String propName, String path, String userId) { - String doc_name = _id+".xml"; - boolean system = userId.equals(""); - DeletePropertyThread dpt = _containerEditor.deleteProperty(propName, path, doc_name, userId, system); - try{ - dpt.start(); - dpt.join(); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - dpt.cleanThread(); - } - COM: <s> removes a named property from the selected path </s> - diff --git a/funcom_test/34414417.txt b/funcom_test/34414417.txt deleted file mode 100644 index f2c83aa358bf3df62de4b4550297e8fadede571a..0000000000000000000000000000000000000000 --- a/funcom_test/34414417.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean editProperty(Object source, String objectId, String propName, String newValue, String path,String userId){ - boolean ret = false; - LibraryObject object = this.getObjectWrapper(objectId); - if(object!=null){ - ret = true; - object.editPropertyValue(propName, newValue, path, userId); - this.sendModifyEvent(source, objectId, userId, new Date()); - } - return ret; - } - COM: <s> edits an objects property based on the arguments provided </s> - diff --git a/funcom_test/34414443.txt b/funcom_test/34414443.txt deleted file mode 100644 index 24eca5db9ce949c2ba2d72488ea968612276ce3a..0000000000000000000000000000000000000000 --- a/funcom_test/34414443.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void restoreObject(Object source,String objectId, String userId){ - LibraryObject object = getObjectWrapper(objectId); - String targetId = object.getPropertyValue("/Deleted/Source").split(",")[1];//orginal location (could be bugged) - restoreObject(source, objectId, targetId, userId); - } - COM: <s> restores an object to its original location </s> - diff --git a/funcom_test/34414529.txt b/funcom_test/34414529.txt deleted file mode 100644 index 700ac86d3d4b44fd0a52ca178faea411b38f4522..0000000000000000000000000000000000000000 --- a/funcom_test/34414529.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void startParser(boolean firstPass) throws SAXException{ - _firstPass = firstPass; - try { - reader.parse(_importer.getXmlFileLocation()); - } - catch (IOException ioe) { - ioe.printStackTrace(System.err); - } - catch (SAXParseException spx){ - spx.printStackTrace(System.err); - System.err.println("Error at line number: "+spx.getLineNumber()+" column number: "+spx.getColumnNumber()+"."); - System.err.println("Cause: "+spx.getCause()); - } - } - COM: <s> start the parser </s> - diff --git a/funcom_test/34414800.txt b/funcom_test/34414800.txt deleted file mode 100644 index 7ddde2ded893b19d469037dfa99d389176cdd905..0000000000000000000000000000000000000000 --- a/funcom_test/34414800.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public ContainerEditor createContainer(String containerFileName, String containerName, String containerDescription, int containerType, String creator, String clientContext){ - ContainerEditor editor = null; - editor = createContainer(containerFileName,containerName, containerDescription, containerType, "", creator, clientContext); - return editor; - } - COM: <s> creates a container </s> - diff --git a/funcom_test/34414811.txt b/funcom_test/34414811.txt deleted file mode 100644 index 343f55d9af38d80998439f92209861ffbca21dda..0000000000000000000000000000000000000000 --- a/funcom_test/34414811.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void removePermission(String userId){ - String doc_name = "policy.xml"; - String prop_name = "User[@id='"+userId+"']"; - String prop_path = "/Policy/Users"; - String user_id = ""; - boolean system = true; - DeletePropertyThread dpt = _containerEditor.deleteProperty(prop_name, prop_path, doc_name, user_id, system); - dpt.start(); - try{ - dpt.join(); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - } - COM: <s> removes a permission from the policy document in the database </s> - diff --git a/funcom_test/34414921.txt b/funcom_test/34414921.txt deleted file mode 100644 index b2664e1f85c25cb7df48ba1ab3849af561c4042a..0000000000000000000000000000000000000000 --- a/funcom_test/34414921.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void add(Object parent, int index, Object newNode) throws IndexOutOfBoundsException{ - ((TreeNode)parent).add(index, (TreeNode)newNode); - nodeMap.put(((TreeNode)newNode).getId(), (TreeNode)newNode); - fireEvent(parent,index,index,TreeDataEvent.INTERVAL_ADDED); - } - COM: <s> adds a new node at the specified index in the parent node </s> - diff --git a/funcom_test/34415043.txt b/funcom_test/34415043.txt deleted file mode 100644 index 4b66824a0501af5d6d0f02555fa7107886a43a83..0000000000000000000000000000000000000000 --- a/funcom_test/34415043.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void newLibraryContainer(Object source, String targetId, String userId, String containerName, String containerDescription){ - //container type is selected - int containerType = DbModule.LIBRARY_CONTAINER; - this.newContainer(source, targetId, userId, containerName, containerDescription, containerType); - } - COM: <s> adds a new library container at the selected location </s> - diff --git a/funcom_test/34415050.txt b/funcom_test/34415050.txt deleted file mode 100644 index d64c07365b4845e46cbc24a6f8b3adbdd423a492..0000000000000000000000000000000000000000 --- a/funcom_test/34415050.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void renameContainer(Object source, String containerId, String newName, String userId){ - ContainerEditor editor = DbModule.getInstance().getContainerEditor(containerId); - if(editor!=null){ - editor.setContainerName(source,newName,userId); - } - this.sendContainerChangeEvent(source,containerId, userId, new Date()); - } - COM: <s> renames a container </s> - diff --git a/funcom_test/34415130.txt b/funcom_test/34415130.txt deleted file mode 100644 index 4ab653358363540cc50978750a6b482b0d31f877..0000000000000000000000000000000000000000 --- a/funcom_test/34415130.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void sendAddEvent(Object source, String objectId, String parentId, String userName, Date dateTime){ - ArrayList<String> data = new ArrayList<String>(1); - data.add(objectId); - ViewEvent ve = new ViewEvent(source,"",parentId,userName,dateTime,ViewEvent.ADD_EVENT,data); - this.newViewEvent(ve); - } - COM: <s> initiates an add event and sends it to the view controller </s> - diff --git a/funcom_test/34415133.txt b/funcom_test/34415133.txt deleted file mode 100644 index 8fd931c8a47dca9a33273da077b5e3b98efcfb26..0000000000000000000000000000000000000000 --- a/funcom_test/34415133.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean clearObjectLock(String oid, String username) - { - boolean result = false; - synchronized (lockingMutex) { - String locker = lockedMap.get(oid); - if(locker==null){ - if(lockedMap.containsKey(oid)){ - lockedMap.remove(oid); - result = true; - } - } - else if(locker.equals(username)){ - lockedMap.remove(oid); - this.editObjectLock(oid, "", null); - result = true; - } - - } - //System.out.println("Unlocking: result is: "+result); - return result; - } - COM: <s> releases an object lock </s> - diff --git a/funcom_test/34415136.txt b/funcom_test/34415136.txt deleted file mode 100644 index fda32785d63c8ba5d89c66fed45a65c0f6e6a731..0000000000000000000000000000000000000000 --- a/funcom_test/34415136.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void sendAddEvent(Object source, ArrayList<String> objectIds, String parentId, String userName, Date dateTime){ - ViewEvent ve = new ViewEvent(source,"",parentId,userName,dateTime,ViewEvent.ADD_EVENT, objectIds); - this.newViewEvent(ve); - } - COM: <s> initiates a bulk add event and sends it to the view controller </s> - diff --git a/funcom_test/34415142.txt b/funcom_test/34415142.txt deleted file mode 100644 index 7f080131461bf3ac79acd4dd88a7829bdba514f0..0000000000000000000000000000000000000000 --- a/funcom_test/34415142.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void sendMoveEvent(Object source, String objectId, String newParentId, String userName, Date dateTime){ - ArrayList<String> data = new ArrayList<String>(1); - data.add(objectId); - ViewEvent ve = new ViewEvent(source,"",newParentId,userName,dateTime,ViewEvent.MOVE_EVENT,data); - this.newViewEvent(ve); - } - COM: <s> initiates a move event and sends it to the view controller </s> - diff --git a/funcom_test/34415149.txt b/funcom_test/34415149.txt deleted file mode 100644 index 06edd374e06cd54ae460056609ad53fad690ef92..0000000000000000000000000000000000000000 --- a/funcom_test/34415149.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void sendMoveEvent(Object source, ArrayList<String> objectIds, String newParentId, String userName, Date dateTime){ - ViewEvent ve = new ViewEvent(source,"",newParentId,userName,dateTime,ViewEvent.MOVE_EVENT, objectIds); - this.newViewEvent(ve); - } - COM: <s> initiates a bulk move event and sends it to the view controller </s> - diff --git a/funcom_test/34415153.txt b/funcom_test/34415153.txt deleted file mode 100644 index 14924d5a19509989517d8efbfb411edbfd558fa9..0000000000000000000000000000000000000000 --- a/funcom_test/34415153.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void sendDeleteEvent(Object source, String objectId, String userName, Date dateTime){ - HashMap<String,ArrayList<String>> data = new HashMap<String, ArrayList<String>>(1); - data.put(objectId, this.getListOfDescendants(objectId)); - ViewEvent ve = new ViewEvent(source,"","",userName,dateTime,ViewEvent.DELETE_EVENT, data); - this.newViewEvent(ve); - } - COM: <s> initiates a delete event and sends it to the view controller </s> - diff --git a/funcom_test/34415189.txt b/funcom_test/34415189.txt deleted file mode 100644 index 21f9e837a22578fb9bf5abfe96d01c75ba37b4f9..0000000000000000000000000000000000000000 --- a/funcom_test/34415189.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void sendLockEvent(Object source, String objectId, String userName, Date dateTime){ - ArrayList<String> data = new ArrayList<String>(1); - data.add(objectId); - ViewEvent ve = new ViewEvent(source,"","",userName,dateTime,ViewEvent.LOCK_EVENT, data); - this.newViewEvent(ve); - } - COM: <s> initiates a lock event and sends it to the view controller </s> - diff --git a/funcom_test/34415237.txt b/funcom_test/34415237.txt deleted file mode 100644 index 9957a7e2033ca7c3005489d2fa82d2610320ec81..0000000000000000000000000000000000000000 --- a/funcom_test/34415237.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void modifyUserAttributes(final String newSN, final String newGivenName, final String newMail, final String newTelephoneNumber, final String newRole) { - controller.modifyUserAttributes(dn, newSN, newGivenName, newMail, newTelephoneNumber, newRole); - } - COM: <s> modifies the attributes of this user </s> - diff --git a/funcom_test/34415307.txt b/funcom_test/34415307.txt deleted file mode 100644 index baec81a1f05613b578fac88ad876857719abbd97..0000000000000000000000000000000000000000 --- a/funcom_test/34415307.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void removeContainerEntry(String section, String containerId){ - DeletePropertyThread dpt = ce.deleteProperty("Container[@containerId='"+containerId+"']", "/Containers/"+section, "user.xml", "", true); - dpt.start(); - try{ - dpt.join(); - } - catch(InterruptedException ie){ - ie.printStackTrace(System.err); - } - } - COM: <s> removes a container entry </s> - diff --git a/funcom_test/34415330.txt b/funcom_test/34415330.txt deleted file mode 100644 index 1be71f8563ca8c95779683ce8c3e7e41695e4c87..0000000000000000000000000000000000000000 --- a/funcom_test/34415330.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void sendContainerChangeEvent(Object source, String containerId, String userName, Date dateTime){ - ViewEvent ve = new ViewEvent(source,containerId,"",userName,dateTime,ViewEvent.CONTAINER_CHANGE_EVENT, null); - this.newViewEvent(ve); - } - COM: <s> initiates a container change event for use by the organiser </s> - diff --git a/funcom_test/34415643.txt b/funcom_test/34415643.txt deleted file mode 100644 index 784ac75841be87e5e651aca40ee37254f3de53bd..0000000000000000000000000000000000000000 --- a/funcom_test/34415643.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addMultipleValuesToColumn(int col, ArrayList<ModelObject> objects, String path){ - Iterator<ModelObject> itr = objects.iterator(); - ModelObject tempObject; - if(itr.hasNext()){ - tempObject = itr.next(); - this.addValueToRow(tempObject.getPropertyValue(path)); - } - while(itr.hasNext()){ - tempObject = itr.next(); - this.addValueToColumn(tempObject.getPropertyValue(path), col); - } - } - COM: <s> add multiple values to a value in a column </s> - diff --git a/funcom_test/34415646.txt b/funcom_test/34415646.txt deleted file mode 100644 index 2fd78cdc757835d36b9c74eeef4d925e5b496a7b..0000000000000000000000000000000000000000 --- a/funcom_test/34415646.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getBaseObjectAug() { - String result = null; - ModelContainerEditor mace = getCompositeParent(); - if (mace == null) { - result = _baseObjectId; - } else { - // The ID of the Composite parent's base object (aug-aware). - String aug_base_id = mace.getBaseObjectAug(); - // The corresponding object. - ModelObject aug_base = getObjectWrapperAug(aug_base_id); - result = aug_base.getObjectId(); - } - return result; - } - COM: <s> gets the object id of the base node of the whole composite chain </s> - diff --git a/funcom_test/34415670.txt b/funcom_test/34415670.txt deleted file mode 100644 index 4e963727bad693e5e982a47739ccdedaab941359..0000000000000000000000000000000000000000 --- a/funcom_test/34415670.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getTrashObjectAug() { - String result = null; - ModelContainerEditor mace = getCompositeParent(); - if (mace == null) { - result = _trashObject; - } else { - // The ID of the Composite parent's base object (aug-aware). - String aug_base_id = mace.getTrashObjectAug(); - // The corresponding object. - ModelObject aug_base = getObjectWrapperAug(aug_base_id); - result = aug_base.getObjectId(); - } - return result; - } - COM: <s> gets the object id of the trash node of the whole composite chain </s> - diff --git a/funcom_test/34417612.txt b/funcom_test/34417612.txt deleted file mode 100644 index 50ba926211228bdd4247452bf023104754de6de4..0000000000000000000000000000000000000000 --- a/funcom_test/34417612.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private String getColumnTitle(int index){ - String title = ""; - if(index==0){ - title = "Name"; - } else if(index==1){ - title = "Type"; - } else { - Iterator<Entry<String, PropertyEntry>> itr = _propertyList.entrySet().iterator(); - Entry<String,PropertyEntry> entry; - index = index - 2; - if(!itr.hasNext()){ - return "None"; - } - entry = itr.next(); - int count = 0; - while(count<index&&itr.hasNext()){ - entry = itr.next(); - count++; - } - title = entry.getValue().getPath(); - } - return title; - } - COM: <s> returns the name of the column at index </s> - diff --git a/funcom_test/34425297.txt b/funcom_test/34425297.txt deleted file mode 100644 index ceffb5979ecc2df704696260eb8a1a2d87fff024..0000000000000000000000000000000000000000 --- a/funcom_test/34425297.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void startAutoUpdate(int minutes) { - if (timer != null) - return; - - timer = new Timer(minutes * 60 * 1000, // repeat every N minute - new ActionListener() { - - public void actionPerformed(ActionEvent e) { - updateMainGalaxy(); - } - }); - timer.setInitialDelay(100); - timer.start(); - } - COM: <s> helper method which starts a timer which every </s> - diff --git a/funcom_test/34425309.txt b/funcom_test/34425309.txt deleted file mode 100644 index f65281632c6e29e50f41820c942a5f10887e64a1..0000000000000000000000000000000000000000 --- a/funcom_test/34425309.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private SOAPElement newLoginChild(SOAPBodyElement sbe) throws Exception { - SOAPElement lse = newElement("Login", sbe); - addChildElement("userid", itos(getUserID()), sbe, lse); - addChildElement("md5pass", getEncryptedPassword(), sbe, lse); - return lse; - } - COM: <s> helper method that creates and returns a soap element containing the </s> - diff --git a/funcom_test/34425457.txt b/funcom_test/34425457.txt deleted file mode 100644 index 669c4734f2de3153a94fd64a2370371350eff47e..0000000000000000000000000000000000000000 --- a/funcom_test/34425457.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void backup() { - File f = file(); - if (!exists() || f.length() <= 0) - return; // nothing to backup - - synchronized (content) { - String subDir = station != null - ? subDir = station.getName() - : null; - - ZWriter.backup(f, subDir, 10); - } - } - COM: <s> makes a backup of this instance </s> - diff --git a/funcom_test/34425470.txt b/funcom_test/34425470.txt deleted file mode 100644 index 0fbcf71c82c82167d5285fc7c571a196c5ef9c84..0000000000000000000000000000000000000000 --- a/funcom_test/34425470.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String content() { - if (!exists()) return null; - - synchronized (content) { - contentRepopulate(); - if (content.isEmpty()) return ""; - if (content.size() == 1) return content.get(0); - - ZString z = new ZString(); - for (String s : content) - z.appnl(s); - - return z.sub(0, z.length() - 1); // strip EOL - } - } - COM: <s> returns the content as a string or </s> - diff --git a/funcom_test/34425491.txt b/funcom_test/34425491.txt deleted file mode 100644 index 26c747797a9c0beefce18beea36ac7224783d5f0..0000000000000000000000000000000000000000 --- a/funcom_test/34425491.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void erase(boolean instance) { - synchronized (content) { - try { - backup(); - if (instance) { - if (station != null) station.notesRemove(this); - notes.remove(this); - file().delete(); - } else - setText(""); - } catch (Throwable e) { - SWGAide.printError("SWGNotes:erase: " + file.toString(), e); - } - } - } - COM: <s> erases either the content of this instance or the instance itself </s> - diff --git a/funcom_test/34425494.txt b/funcom_test/34425494.txt deleted file mode 100644 index a4eaaaef07e5d9c874aca305db2f1aff0716cc35..0000000000000000000000000000000000000000 --- a/funcom_test/34425494.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Object readResolve() { - if (name == null) { - // XXX: remove -- introduced 0.8.11 - name = stationPath.getName(); - stationPath = null; - } - - if (this.version == null) { - // first upgrade ever - // macros <= 0.8.16 had absolute file path, now they are transient - macros = null; - } - - this.version = SWGConstants.version; - return this; - } - COM: <s> resolves this instance at deserialization and if necessary updates this </s> - diff --git a/funcom_test/34425533.txt b/funcom_test/34425533.txt deleted file mode 100644 index d0e22a2eefb5aa5605bde72d80e46ffc7d3917a0..0000000000000000000000000000000000000000 --- a/funcom_test/34425533.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public String item() { - // color string can be wherever - String i = item.replaceAll("\\\\#\\.", ""); // color default - i = i.replaceAll("\\\\#[0-9a-fA-F]{6}", ""); // color hex - return i; - } - COM: <s> returns the name or a description of the item for this auction mail </s> - diff --git a/funcom_test/34425541.txt b/funcom_test/34425541.txt deleted file mode 100644 index 2a6e3ba1695920968e7d8d12681b4e126d45ef60..0000000000000000000000000000000000000000 --- a/funcom_test/34425541.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int line(String str, int begin) { - if (exists()) { - synchronized (content) { - contentRepopulate(); - for (int i = begin; i < content.size(); ++i) - if (content.get(i).indexOf(str) >= 0) return i; - } - } - return -1; - } - COM: <s> returns the zero based line number for the specified text or 1 </s> - diff --git a/funcom_test/34425578.txt b/funcom_test/34425578.txt deleted file mode 100644 index 89a54058eb2f0b84f83fdec02a36bbe73c8eabb3..0000000000000000000000000000000000000000 --- a/funcom_test/34425578.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String setText(String str) { - if (str != null) { - synchronized (content) { - try { - File f = file(); - f.getParentFile().mkdirs(); - - ZWriter.writeExc(str, f, false); - } catch (Throwable e) { - SWGAide.printError("SWGNotes:setText: " + file, e); - return e.getMessage(); - } - } - } - return null; - } - COM: <s> sets the text of this instance to the file for this instance </s> - diff --git a/funcom_test/34425598.txt b/funcom_test/34425598.txt deleted file mode 100644 index 59fdf7eb903bfc6638a5b646efa376d33da4d91a..0000000000000000000000000000000000000000 --- a/funcom_test/34425598.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ImageIcon imageThumb(int max) { - File tf = new File(imageCache(), "thumb_" + file.getName()); - - Image image = tf.exists() - ? imageScaled(image(), max, max) - : imageThumbWrite(image(), tf, max); - - return image != null - ? new ImageIcon(image) - : null; - } - COM: <s> returns a thumb nail for this object </s> - diff --git a/funcom_test/34425621.txt b/funcom_test/34425621.txt deleted file mode 100644 index 8bf0e7f8e6dda4bc360a6d2039109b9dfb34509a..0000000000000000000000000000000000000000 --- a/funcom_test/34425621.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void focusGained(boolean gained) { - if (gained) { - if (menuItems == null) { - menuItems = new ArrayList<JComponent>(); - - menuItems.add(new JPopupMenu.Separator()); - - JMenuItem copy = macrosCopyMenuItem(); - menuItems.add(copy); - } - frame.editMenuAdd(menuItems); - } else { - frame.editMenuRemove(menuItems); - } - } - COM: <s> called when this gui component gains or looses focus </s> - diff --git a/funcom_test/34425641.txt b/funcom_test/34425641.txt deleted file mode 100644 index 5fe36bf6747bf57df759549a8482930b41f44f6d..0000000000000000000000000000000000000000 --- a/funcom_test/34425641.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public SWGMailFolder folderAdd(String name) { - /* - * If adding a method that accepts a ready-made folder, ensure the this - * box is set as its owner - */ - - if (folder(name) == null) { - synchronized (folders) { - List<SWGMailFolder> fl = folders(); - - SWGMailFolder f = new SWGMailFolder(name, this); - - fl.add(f); - Collections.sort(fl); - - return f; - } - } - return null; - } - COM: <s> creates adds and returns a new mail folder with the specified name </s> - diff --git a/funcom_test/34425645.txt b/funcom_test/34425645.txt deleted file mode 100644 index f2fde54bfb66a88eee21bdfcd57729be6bcbe639..0000000000000000000000000000000000000000 --- a/funcom_test/34425645.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void docsCopy(List<String> names, String jarPath, File targetDir) { - for (String name : names) { - if (name.endsWith("html") || name.endsWith("png")) { - InputStream in = - SWGAide.class.getResourceAsStream(jarPath + '/' + name); - File f = new File(targetDir, name); - copyFile(in, f); - } - } - } - COM: <s> helper method which copies the listed file names from swgaide </s> - diff --git a/funcom_test/34425648.txt b/funcom_test/34425648.txt deleted file mode 100644 index c71bafabb3ba7cf9c44ffe0a3e4642306cd1b488..0000000000000000000000000000000000000000 --- a/funcom_test/34425648.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void folderDelete(String name) { - synchronized (folders) { - for (SWGMailFolder fld : folders()) { - if (name.equals(fld.getName())) { - if (fld.isDefault() || !fld.isEmpty()) return; - - folders().remove(fld); - break; - } - } - } - } - COM: <s> deletes a folder with the specified name from this mailbox </s> - diff --git a/funcom_test/34425649.txt b/funcom_test/34425649.txt deleted file mode 100644 index 9acfc0f9147b9fba95ffcb2d0975394ead2d2d6f..0000000000000000000000000000000000000000 --- a/funcom_test/34425649.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void focusChanged(ChangeEvent evt) { - SWGTreeNode fn = SWGTreeNode.focusedNode(); - if (frame.getTabPane().getSelectedComponent() == this) { - frame.editMenuAdd(unhideMenuItem); - SWGTreeNode.focusTransition(fn, evt); - - } else { - frame.editMenuRemove(unhideMenuItem); - SWGTreeNode.focusTransition(null, evt); - } - } - COM: <s> called whenever this tabbed pane is de selected i </s> - diff --git a/funcom_test/34425652.txt b/funcom_test/34425652.txt deleted file mode 100644 index c9f31189368f5fd64f627178eb7b0b0eed056590..0000000000000000000000000000000000000000 --- a/funcom_test/34425652.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void docsLink(ZWriter wr, String f, String s) throws Exception { - wr.writeExc("<a href=\""); - wr.writeExc(f); - wr.writeExc("\">"); - docsWrite(wr, s); - wr.writelnExc("</a>"); - } - COM: <s> helper method which the specified arguments to the file writer as a html </s> - diff --git a/funcom_test/34425690.txt b/funcom_test/34425690.txt deleted file mode 100644 index f8a1224338ceb96b176c9a9f96f5ac0632ee4ac9..0000000000000000000000000000000000000000 --- a/funcom_test/34425690.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void unhideMenuItem() { - unhideMenuItem = new JMenuItem("Unhide...", KeyEvent.VK_U); - unhideMenuItem.setToolTipText("Unhide all hidden objects"); - unhideMenuItem.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - if (hiddenNodes.size() > 0) { - unhideNodes(); - } - } - }); - } - COM: <s> creates a menu item </s> - diff --git a/funcom_test/34425708.txt b/funcom_test/34425708.txt deleted file mode 100644 index a23ac095fadab140f7c2983c93f050c0dddf1886..0000000000000000000000000000000000000000 --- a/funcom_test/34425708.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private boolean acceptHelper(SWGKnownResource r, SWGValues g) { - if (!acceptNoStats && !g.hasAllValues(r)) - return false; - - return (isWeighted(g)) - ? acceptWeighted(r, (SWGWeights) g) - : acceptFilter(r, (SWGResourceFilter) g); - } - COM: <s> helper method for </s> - diff --git a/funcom_test/34425710.txt b/funcom_test/34425710.txt deleted file mode 100644 index 54d7e53b7b1945fa39360a289f290028756e26a5..0000000000000000000000000000000000000000 --- a/funcom_test/34425710.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void activateHelper(boolean reDeed) { - notes = null; - resource = null; - concentration = 0; - lastUpdated = 0; - several = 1; - if (reDeed) { - owner = null; - setSelfPowered(false); - storageEfficiencyLevel = 0; - maintenanceEfficiencyLevel = 0; - energyEfficiencyLevel = 0; - harvestingTechnologyLevel = 0; - harvestFair = 0; - } - } - COM: <s> resets member fields to default values </s> - diff --git a/funcom_test/34425716.txt b/funcom_test/34425716.txt deleted file mode 100644 index 25266ee0cfa19618f2a18539c7c640544b4149cd..0000000000000000000000000000000000000000 --- a/funcom_test/34425716.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void actionLoadNotes() { - enableUserActions(false); - - // set focus, otherwise it gives focus to "clear" >> scary/not wanted - multiSubmitButton.requestFocusInWindow(); - - resetSingleTextFields(); - multipleGUIList.clearSelection(); - multipleResources = loadNotesFile(); - updateMultiList(); - enableUserActions(true); - } - COM: <s> called when the user selects to load the in game notes file </s> - diff --git a/funcom_test/34425730.txt b/funcom_test/34425730.txt deleted file mode 100644 index 70d7021ccdd5130609867dd7738a81908e28a23b..0000000000000000000000000000000000000000 --- a/funcom_test/34425730.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void notes(String note) { - String n = (note == null || (n = note.trim()).isEmpty()) - ? null - : n; - this.notes = n != null && n.length() > MAX_NOTES_LENGTH - ? n.substring(0, MAX_NOTES_LENGTH) - : n; - } - COM: <s> sets the optional notes for this instance if the argument is </s> - diff --git a/funcom_test/34425756.txt b/funcom_test/34425756.txt deleted file mode 100644 index 953163640d0803770b5f6eabe816de04e6da37a7..0000000000000000000000000000000000000000 --- a/funcom_test/34425756.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void createNewGuardInit() { - cleanFields(); - alarm.setSelected(true); - allowZero.setSelected(true); - guardName.setText(null); - notesField.setText(null); - if (resourceClass != null) - resourceClassNameList.setSelectedItem(resourceClass.rcName()); - } - COM: <s> initiates the gui dialog to create a new guard </s> - diff --git a/funcom_test/34425776.txt b/funcom_test/34425776.txt deleted file mode 100644 index 6e047a7ffea5f4081643ac634bf20d710095d332..0000000000000000000000000000000000000000 --- a/funcom_test/34425776.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String getResourceName() { - String item = (String) resourceNameList.getSelectedItem(); - if (item != null) { - item = ZString.tac(item); - int i = item.indexOf(" : "); - if (i > 0) - item = item.substring(0, i); - } - return item; - } - COM: <s> helper method which returns a resource name </s> - diff --git a/funcom_test/34425806.txt b/funcom_test/34425806.txt deleted file mode 100644 index f0e46061daf5e08ae82fa25057e2a93ac1b4ada1..0000000000000000000000000000000000000000 --- a/funcom_test/34425806.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void editPrepareResource(SWGMutableResource mr) { - String planets = planetsToString(mr.availability(), true); - singlePlanetInput.setText(planets); - singleResourceNameInput.setText(mr.getName()); - singleResourceStatsTextField.setText(mr.stats().toString(false)); - singleResourceClassInput.setText(mr.rc().rcName()); - } - COM: <s> helper method which adds the content of the specified resource to the </s> - diff --git a/funcom_test/34425872.txt b/funcom_test/34425872.txt deleted file mode 100644 index c6483d038d6d3fd17a8af84a998bc73e1de5795f..0000000000000000000000000000000000000000 --- a/funcom_test/34425872.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void actionDeleteEntry(int row) { - if (isWorking) - return; - - SWGInventoryWrapper wr = wrappersFiltered().get(row); - - if (JOptionPane.OK_OPTION == showConfirmQuestion(String.format( - "Delete the entry for \"%s\"?", wr.getResource().getName()), - "Confirm deletion")) { - SWGResController.inventoryRemove(wr, recentGalaxy); - updateDisplay(); - } - } - COM: <s> called when the user selects to delete the selected entry from the </s> - diff --git a/funcom_test/34425874.txt b/funcom_test/34425874.txt deleted file mode 100644 index 7b1345d383399b6485956baad4c531e045ee924e..0000000000000000000000000000000000000000 --- a/funcom_test/34425874.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void resourceClassUpdate(boolean spaceOrRecycled) { - isGuiUpdating = true; - resourceClassNameList.removeAllItems(); - if (spaceOrRecycled) - for (SWGResourceClass rc : rcSpaceRecycled) - resourceClassNameList.addItem(rc); - else - for (SWGResourceClass rc : rcSpawnable) - resourceClassNameList.addItem(rc); - isGuiUpdating = false; - } - COM: <s> helper method which updates the list of resource classes determined by </s> - diff --git a/funcom_test/34425932.txt b/funcom_test/34425932.txt deleted file mode 100644 index 2349323749d6b8a2daeb19b8108f4667c9b8a7d3..0000000000000000000000000000000000000000 --- a/funcom_test/34425932.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Component makeClearButton() { - clearButton = new JButton(" Clear "); - clearButton.setToolTipText("Clear and reset this panel"); - - clearButton.addActionListener(new ActionListener() { - - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent e) { - actionClearAndReset(); - } - }); - - return clearButton; - } - COM: <s> helper method which creates and returns a gui button </s> - diff --git a/funcom_test/34425957.txt b/funcom_test/34425957.txt deleted file mode 100644 index 50a5b0a80df715288e6a0d34f4ceaf1759eadd23..0000000000000000000000000000000000000000 --- a/funcom_test/34425957.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionTableMouse(MouseEvent e) { - if (!isWorking && e.getButton() == MouseEvent.BUTTON3) { - int row = table.rowAtPoint(e.getPoint()); - if (row >= 0) { - table.getSelectionModel().setSelectionInterval(row, row); - row = table.convertRowIndexToModel(row); - } - tablePopup(row, e); - } - } - COM: <s> called when the user clicked the main table with the right hand mouse </s> - diff --git a/funcom_test/34425964.txt b/funcom_test/34425964.txt deleted file mode 100644 index 08bfe7a52b3d8c285a48fbee29df56fd240bb0d8..0000000000000000000000000000000000000000 --- a/funcom_test/34425964.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionTableSelect() { - if (updateViewer) { - int row = table.getSelectedRow(); - if (row >= 0) { - row = table.convertRowIndexToModel(row); - updateViewer = SWGSchemResViewer.updateDisplay( - wrappersFiltered().get(row).getResource(), this); - } - } - } - COM: <s> called when the user selects an entry at the main table </s> - diff --git a/funcom_test/34425993.txt b/funcom_test/34425993.txt deleted file mode 100644 index 80b3e567cc5c4257fde24d3ca900d385b6495495..0000000000000000000000000000000000000000 --- a/funcom_test/34425993.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionReminderLimitModified() { - String s = reminderTime.getText(); - Integer rtl = s == null || s.trim().isEmpty() - ? Integer.valueOf(24) - : Integer.valueOf(s); - reminderTimeLimit = rtl.intValue(); - - SWGFrame.getPrefsKeeper().add("resourceHarvesterReminder", rtl); - SWGResController.check(); - } - COM: <s> called when the user modifies any one of the preferences regarding </s> - diff --git a/funcom_test/34426071.txt b/funcom_test/34426071.txt deleted file mode 100644 index 63cd8ac67084d254568abaa85ad4f509ed89bbc3..0000000000000000000000000000000000000000 --- a/funcom_test/34426071.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void filterValues(SWGWeights weights) { - isWorking = true; - if (weights != null) { - for (Stat s : Stat.values()) - filterFields[s.i].setText( - ZNumber.asText(weights.value(s), false, false)); - } else - filterReset(); - isWorking = false; - } - COM: <s> helper method which updates the filter fields with the specified values </s> - diff --git a/funcom_test/34426090.txt b/funcom_test/34426090.txt deleted file mode 100644 index 0473bfa884e614b34e5afb559d39c8f7fa068851..0000000000000000000000000000000000000000 --- a/funcom_test/34426090.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String singleSubmitValidatedName() { - String name = singleResourceNameDisplay.getText(); - if (name.length() >= 3) - return ZString.tac(name); - - if (name.isEmpty()) - errorLabel.setText("No name"); - else - errorLabel.setText('\"' + name + "\" is not a valid name"); - - return null; - } - COM: <s> helper method which validates the entered name </s> - diff --git a/funcom_test/34426102.txt b/funcom_test/34426102.txt deleted file mode 100644 index 09962fcea31ebcc8161f543b4c411ce28c8d8337..0000000000000000000000000000000000000000 --- a/funcom_test/34426102.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void statsDisplayPopulate() { - if (resourceClass != null) { - ZString z = new ZString(); - for (Stat s : Stat.gameOrder()) - if (resourceClass.has(s)) z.app(s.name()).app(" "); - - singleResourceStatsDisplay.setText(z.toString()); - } else - singleResourceStatsDisplay.setText(" "); - } - COM: <s> helper method which populates the display for resource stats </s> - diff --git a/funcom_test/34426120.txt b/funcom_test/34426120.txt deleted file mode 100644 index ef25ed35dea29df6e8407143a4a36402f514cf32..0000000000000000000000000000000000000000 --- a/funcom_test/34426120.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JMenuItem makeImportMenuItem() { - JMenuItem imp = new JMenuItem("Import file..."); - imp.setToolTipText("Import harvesters and owners from file"); - imp.addActionListener(new ActionListener() { - - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent e1) { - actionImport(); - } - }); - return imp; - } - COM: <s> creates and returns a menu item for importing harvesters and owners from </s> - diff --git a/funcom_test/34426147.txt b/funcom_test/34426147.txt deleted file mode 100644 index 843644b9cd8b22588d6412c3ff3d3a137b93fc2f..0000000000000000000000000000000000000000 --- a/funcom_test/34426147.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Component makeBottomPanel() { - bottomPanel = Box.createHorizontalBox(); - - bottomPanel.add(makeAssigneeComboBox()); - bottomPanel.add(makeClearButton()); - bottomPanel.add(makeResourceClassCombo()); - bottomPanel.add(Box.createRigidArea(new Dimension(0, 0))); // size later - makeStatFilterFields(bottomPanel); - - return bottomPanel; - } - COM: <s> creates and returns the gui component for the bottom area of this tab </s> - diff --git a/funcom_test/34426156.txt b/funcom_test/34426156.txt deleted file mode 100644 index ccfcc8f13619175c2c920f2674aa2ede6be8f5d4..0000000000000000000000000000000000000000 --- a/funcom_test/34426156.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Component makeClearButton() { - JButton clearButton = new JButton("Clear"); - clearButton.setToolTipText("Clear any selection and the filter fields"); - clearButton.setMnemonic('C'); - - clearButton.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent e) { - actionResetBottomPanel(); - } - }); - return clearButton; - } - COM: <s> creates and returns a gui button which clears possible user input at the </s> - diff --git a/funcom_test/34426195.txt b/funcom_test/34426195.txt deleted file mode 100644 index 75be43e4e072bf5b160e724dc5fcb8b42f69b7a4..0000000000000000000000000000000000000000 --- a/funcom_test/34426195.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Component makeTopPanel() { - Box box = Box.createHorizontalBox(); - box.setPreferredSize(new Dimension(1000, 150)); - box.add(makeHarvesterPanel()); - box.add(makeWarningOptionsPanel()); - box.add(makeOwnersPanel()); - return box; - } - COM: <s> creates and returns the gui component for the upper section of this </s> - diff --git a/funcom_test/34426220.txt b/funcom_test/34426220.txt deleted file mode 100644 index b31e2f5885582566985dd6cf8fe5dc57e764795b..0000000000000000000000000000000000000000 --- a/funcom_test/34426220.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private SWGNotes writeNotesCheck(JButton write) { - SWGNotes notes = getNotes(); - if (notes == null) - notes = SWGNotes.getInstance( - notesFileName, getStation(), null, true); - if (notes == null || !writeNotesCheckEmpty(notes, write)) - return null; - - return notes; - } - COM: <s> helper method which determines if the notes file code notes file name </s> - diff --git a/funcom_test/34426248.txt b/funcom_test/34426248.txt deleted file mode 100644 index f88f3457e3f404157f2867ac6a31e86ea0627041..0000000000000000000000000000000000000000 --- a/funcom_test/34426248.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void inventoryAdd(SWGKnownResource resource) { - SWGCharacter toon = SWGFrame.getSelectedCharacter(); - - SWGInventoryWrapper wr = - new SWGInventoryWrapper(resource, toon.getName()); - - if (selectedGuard != null) - wr.setNotes(selectedGuard.getName()); - - SWGResourceTab.inventoryTab().dialog().showAndBegin(wr); - } - COM: <s> helper method which adds the specified resource to the currently selected </s> - diff --git a/funcom_test/34426284.txt b/funcom_test/34426284.txt deleted file mode 100644 index 8be075c361e3046fdbc11348dee267c2a48e40ba..0000000000000000000000000000000000000000 --- a/funcom_test/34426284.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void makeStatFilterFields(Container panel) { - for (Stat s : Stat.gameOrder()) { - JTextField tf = makeStatFilterField(String.format( - "%s - %s", s.name(), s.getDescription())); - filterFields[s.i] = tf; - panel.add(tf); - } - } - COM: <s> creates the stats filter input fields adds them to the specified </s> - diff --git a/funcom_test/34426327.txt b/funcom_test/34426327.txt deleted file mode 100644 index aced10685a83d6acd4b3a26133e8ad20a52b81af..0000000000000000000000000000000000000000 --- a/funcom_test/34426327.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void addInventory(JPopupMenu popup, final SWGKnownResource kr) { - JMenuItem inv = makeMenuItem("Add to Inventory...", - "Add one selected resource to inventory", - new ActionListener() { - - @SuppressWarnings("synthetic-access") - @Override - public void actionPerformed(ActionEvent e) { - actionInventory(kr); - } - }); - inv.setEnabled(kr != null); - popup.add(inv); - } - COM: <s> helper method which creates and adds an option to the specified popup </s> - diff --git a/funcom_test/34426334.txt b/funcom_test/34426334.txt deleted file mode 100644 index 8980f65ec259437ed87da44b91383843ef71815f..0000000000000000000000000000000000000000 --- a/funcom_test/34426334.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void addLimit(JPopupMenu popup) { - JMenuItem limit = makeMenuItem("Write option: Limit days...", - "Specify a limit for the written output, in days", - new ActionListener() { - - @SuppressWarnings("synthetic-access") - @Override - public void actionPerformed(ActionEvent e) { - actionLimit(); - } - }); - popup.add(limit); - } - COM: <s> helper method which creates and adds an option for limit to the specified </s> - diff --git a/funcom_test/34426341.txt b/funcom_test/34426341.txt deleted file mode 100644 index e9d74195d1c09a4437cc29290c63e33110de2738..0000000000000000000000000000000000000000 --- a/funcom_test/34426341.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String notesShaveString(String string) { - String a = string.trim(); - String b = null; - while (!a.equals(b)) { - b = a; - char c = a.charAt(0); - if (c == ',' || c == ';' || c == '.' || c == ':') - a = a.substring(1); - } - return b; - } - COM: <s> helper method which shaves leading punctuation signs off of the specified </s> - diff --git a/funcom_test/34426344.txt b/funcom_test/34426344.txt deleted file mode 100644 index fc6ac9d8bf114611743c63ced8cc6ec11ab31df1..0000000000000000000000000000000000000000 --- a/funcom_test/34426344.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void addWrite(JPopupMenu popup) { - JMenuItem write = - makeMenuItem("Write", "Write depleted resources to a file", - new ActionListener() { - - @SuppressWarnings("synthetic-access") - @Override - public void actionPerformed(ActionEvent e) { - actionWrite(); - } - }); - popup.add(write); - } - COM: <s> helper method which adds the write option to the specified popup menu </s> - diff --git a/funcom_test/34426370.txt b/funcom_test/34426370.txt deleted file mode 100644 index 038fe5dfcc92d674530bd149e9eeb94bd0a9b75d..0000000000000000000000000000000000000000 --- a/funcom_test/34426370.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void writeNotes(String sd) { - SWGStation stn = SWGFrame.getSelectedCharacter().galaxy().station(); - String fName = "depleted.txt"; - SWGNotes notes = stn.notes(fName); - if (notes == null) - notes = SWGNotes.getInstance(fName, stn, null, false); - else - notes.backup(); - - notes.setText(sd); - } - COM: <s> helper method which writes the string of depleted resources to an in game </s> - diff --git a/funcom_test/34426432.txt b/funcom_test/34426432.txt deleted file mode 100644 index b7d2ce2d0eb4b33af86c673c1803f11a28fb5db7..0000000000000000000000000000000000000000 --- a/funcom_test/34426432.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void focusSubPanels(boolean isFocus) { - controller.focusGained(isFocus); - currentResourcesTab.focusGained(isFocus); - inventoryTab().focusGained(isFocus); - harvestingTab.focusGained(isFocus); - submitResourcesTab.focusGained(isFocus); - resourceClassInfoTab.focusGained(isFocus); - depletedTab.focusGained(isFocus); - } - COM: <s> notifies the contained tabs that this tabbed pane has gained or lost </s> - diff --git a/funcom_test/34426473.txt b/funcom_test/34426473.txt deleted file mode 100644 index cfc33a779f66f58e9592355ef6fe91d9903fe4a2..0000000000000000000000000000000000000000 --- a/funcom_test/34426473.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addNotesObject() { - SWGNotesNode node = SWGNotesNode.newNode(this); - if (node == null) return; - ((DefaultTreeModel) mainTab.tree.getModel()).insertNodeInto(node, this, - this.getChildCount() - 1); - mainTab.tree.setSelectionPath(new TreePath(node.getPath())); - node.focusGained(null); - } - COM: <s> adds another notes file under this station node </s> - diff --git a/funcom_test/34426486.txt b/funcom_test/34426486.txt deleted file mode 100644 index 3599e3f2b16c7a5fd790f072bd07dea0a4ed96d2..0000000000000000000000000000000000000000 --- a/funcom_test/34426486.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void resizeComponent(Component comp, int column, int modifier) { - TableColumn c = table.getColumnModel().getColumn(column); - Dimension d = new Dimension(c.getWidth() + modifier, comp.getHeight()); - comp.setPreferredSize(d); - comp.setMinimumSize(d); - comp.setMaximumSize(d); - } - COM: <s> helper method which aligns the width of the component with the width of </s> - diff --git a/funcom_test/34426496.txt b/funcom_test/34426496.txt deleted file mode 100644 index 593f58447160300eb32d19044a4d04c056505f7c..0000000000000000000000000000000000000000 --- a/funcom_test/34426496.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void setFocusNode(SWGTreeNode n) { - // this.userObject is ONLY used while creating the tree, the node is - // invisible after that and the member should not be used - if (focusedNode() != null || this.userObject == null) return; - if (this.userObject.equals(n.getUserObject())) focusedNode(n); - } - COM: <s> helper method which determines if the specified node had focus the most </s> - diff --git a/funcom_test/34426534.txt b/funcom_test/34426534.txt deleted file mode 100644 index f862e36ffa6f8a1198be2509fd89ef6b4e53901a..0000000000000000000000000000000000000000 --- a/funcom_test/34426534.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionClear() { - isWorking = true; - checkOnlyNewCustomers.setSelected(false); - checkSinceLastTime.setSelected(false); - minCredits.setText(""); - minVisits.setText(""); - maxDays.setText(""); - isWorking = false; - actionFilterView(); - } - COM: <s> called when the user presses the clear button </s> - diff --git a/funcom_test/34426588.txt b/funcom_test/34426588.txt deleted file mode 100644 index 444de6654489c611a27da60ec35cb5953fd6712d..0000000000000000000000000000000000000000 --- a/funcom_test/34426588.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JPanel makeMetricsPanel() { - JPanel metrics = new JPanel(new BorderLayout(0, 10)); - metrics.setBorder(BorderFactory.createTitledBorder(BorderFactory - .createEtchedBorder(), "Metrics")); - metrics.add(makeMetricsView(), BorderLayout.CENTER); - Box b = makeDatePeriodPanel(); - metrics.add(b, BorderLayout.PAGE_END); - return metrics; - } - COM: <s> returns a panel for the basic metrics stuff </s> - diff --git a/funcom_test/34426706.txt b/funcom_test/34426706.txt deleted file mode 100644 index fc071c3ac949dd43159ba4b47a939e5bd9fa4764..0000000000000000000000000000000000000000 --- a/funcom_test/34426706.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void actionAlbumSelect(ListSelectionEvent e) { - if (!e.getValueIsAdjusting()) { - SWGImageSubAlbum s = (SWGImageSubAlbum) albums.getSelectedValue(); - if (s == null) return; - - currentAlbum = s; - currentAlbum.album().refresh(); - - thumbNails.getColumnModel().getColumn(0). - setHeaderValue(currentAlbum.getName()); - - this.repaint(); - thumbModel.fireTableDataChanged(); - } - } - COM: <s> called when the user selects an album swg or tc </s> - diff --git a/funcom_test/34426714.txt b/funcom_test/34426714.txt deleted file mode 100644 index 9e7b4708077b7e087eea54cdb6ce524c82dec167..0000000000000000000000000000000000000000 --- a/funcom_test/34426714.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void actionThumbSelect(ListSelectionEvent e) { - if (!e.getValueIsAdjusting()) { - int row = thumbNails.getSelectedRow(); - if (row < 0) return; - - SWGImage i = currentAlbum.get(row); - if (i == currentImage) return; - - currentImage = i; - imageScaled = true; - imageDisplay(currentImage); - imagePath.setText(currentImage.getDescription()); - } - } - COM: <s> called when the user selects a thumb nail </s> - diff --git a/funcom_test/34426725.txt b/funcom_test/34426725.txt deleted file mode 100644 index 3a87d13942bc49f1a2567cc74ffb2d5cc944d9bd..0000000000000000000000000000000000000000 --- a/funcom_test/34426725.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void lazyCreate() { - this.setLayout(new BorderLayout()); - - ed = new JEditorPane(); - ed.setEditable(false); - JScrollPane jsp = new JScrollPane(ed); - int vs = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED; - jsp.setVerticalScrollBarPolicy(vs); - this.add(jsp, BorderLayout.CENTER); - - buttons = new JPanel(); - - this.add(buttons, BorderLayout.PAGE_END); - } - COM: <s> helper method which creates the gui elements for initialization of </s> - diff --git a/funcom_test/34426727.txt b/funcom_test/34426727.txt deleted file mode 100644 index 896a3d44fae2d09fce212b389f6c2568bb0e6bce..0000000000000000000000000000000000000000 --- a/funcom_test/34426727.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void imageEnableGUI(boolean enable) { - imageProp.setEnabled(enable); - imageScale.setEnabled(enable); - if (!enable) { - frame.saveAsRemoveListener(imageSaveAs); - currentImage = null; - } else - frame.saveAsAddListener(imageSaveAs, saveImageAsTT); - } - COM: <s> helper method which enables or disables action listener and gui elements </s> - diff --git a/funcom_test/34426730.txt b/funcom_test/34426730.txt deleted file mode 100644 index 206392747f4637c641d9b99d21d1684ffc4805df..0000000000000000000000000000000000000000 --- a/funcom_test/34426730.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void imagePopupDialog(MouseEvent e) { - JPopupMenu popup = new JPopupMenu(); - - popup.add(imageResizeMenu(imageScaled - ? "Full size" - : "Scaled size")); - - popup.addSeparator(); - - popup.add(imageSaveAsMenu(currentImage)); - - popup.addSeparator(); - - popup.add(imagePropertiesMenu(currentImage)); - - popup.show(e.getComponent(), e.getX(), e.getY()); - } - COM: <s> helper method which displays a popup dialog for the image canvas </s> - diff --git a/funcom_test/34426756.txt b/funcom_test/34426756.txt deleted file mode 100644 index 3225abe9cd8788b508edf05c68f9781cf2adc5d5..0000000000000000000000000000000000000000 --- a/funcom_test/34426756.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private Component makeCenter() { - imageCanvas = new JPanel(); - imageCanvas.addMouseListener(new MouseAdapter() { - @SuppressWarnings("synthetic-access") - @Override - public void mouseClicked(MouseEvent e) { - actionImageMouse(e); - } - }); - - imageCanvas.add(new JLabel(new ImageIcon( - SWGFrame.class.getResource("images/swg.png")))); - - return new JScrollPane(imageCanvas); - } - COM: <s> helper method which creates and returns a canvas for images </s> - diff --git a/funcom_test/34426762.txt b/funcom_test/34426762.txt deleted file mode 100644 index 2fac95be2a48e2223becadbab090777a78e0e1fe..0000000000000000000000000000000000000000 --- a/funcom_test/34426762.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void scanForMails(SWGUniverse univ) { - if (univ == null) return; - - Collection<SWGStation> stations = univ.stations(); - for (SWGStation stn : stations) { - List<SWGGalaxy> galaxies = stn.galaxies(); - for (SWGGalaxy gxy : galaxies) { - List<SWGCharacter> chars = gxy.characters(); - for (SWGCharacter ch : chars) { - ch.mailBox().fetch(); - } - } - } - } - COM: <s> scans the specified universe for mails </s> - diff --git a/funcom_test/34426770.txt b/funcom_test/34426770.txt deleted file mode 100644 index 7294a1916004020c5f893ad5eab51eed780273d0..0000000000000000000000000000000000000000 --- a/funcom_test/34426770.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setHtml(String url) { - URL u = SWGAide.class.getResource(url); - if (u != null) { - try { - ed.setPage(u); - } catch (Exception e) { - SWGAide.printError("SWGInitialize:setHtml:" + url, e); - } - } else - SWGAide.printError( - "SWGInitialize:setHtml: no " + url, null); - } - COM: <s> helper method that sets the content of the specified file to the editor </s> - diff --git a/funcom_test/34426784.txt b/funcom_test/34426784.txt deleted file mode 100644 index 40cbfbf2f66b75bd7436041b662b9e7a814d6b1d..0000000000000000000000000000000000000000 --- a/funcom_test/34426784.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void thumbPopupDialog(final MouseEvent e) { - JPopupMenu pop = new JPopupMenu(); - - SWGImage img = currentAlbum.get(thumbNails.rowAtPoint(e.getPoint())); - - pop.add(imageSaveAsMenu(img)); - pop.addSeparator(); - pop.add(imagePropertiesMenu(img)); - - pop.show(e.getComponent(), e.getX(), e.getY()); - } - COM: <s> helper method which displays a popup menu for the thumb nails </s> - diff --git a/funcom_test/34426828.txt b/funcom_test/34426828.txt deleted file mode 100644 index f1cbb944a2695fd09ffcdab60069fb3fa3d71e9d..0000000000000000000000000000000000000000 --- a/funcom_test/34426828.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void checkForDirectory(String directory) { - File dir = new File(directory); - if (!dir.exists()) { - if (!dir.mkdir()) { - SWGAide.printError("SWGFrame:checkForFolder: " - + "failed creating \"" + directory + "\"", null); - } - } - } - COM: <s> check if the specified directory exists otherwise create the directory </s> - diff --git a/funcom_test/34426844.txt b/funcom_test/34426844.txt deleted file mode 100644 index abed2894eeef3d7dd61f32a10635f9bf86b4d724..0000000000000000000000000000000000000000 --- a/funcom_test/34426844.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenuItem folderAddMenuItem() { - JMenuItem folderAdd = new JMenuItem("Add folder..."); - folderAdd.setToolTipText("Add another folder"); - folderAdd.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent e) { - folderAddFolder(); - } - }); - return folderAdd; - } - COM: <s> returns a menu item for adding new folders to the list of folders </s> - diff --git a/funcom_test/34426855.txt b/funcom_test/34426855.txt deleted file mode 100644 index cfda69cec91411af86d384e48a58ea3d93630704..0000000000000000000000000000000000000000 --- a/funcom_test/34426855.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void editMenuRemove(JMenuItem menuItem) { - if (menuItem == null || menuItem.getText().equals("-=-")) - return; - editMenu.remove(menuItem); - if (editMenu.getMenuComponents().length == 0) - editMenu.setEnabled(false); - } - COM: <s> removes code menu item code from the edit menu </s> - diff --git a/funcom_test/34426871.txt b/funcom_test/34426871.txt deleted file mode 100644 index ba9c363dfca7d21f96704b2095647b0f77d15dae..0000000000000000000000000000000000000000 --- a/funcom_test/34426871.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenuItem folderRenameMenuItem() { - JMenuItem folderRename = new JMenuItem("Rename folder..."); - folderRename.setToolTipText("Rename selected folder"); - folderRename.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent e) { - folderRename(); - } - }); - return folderRename; - } - COM: <s> returns a menu item for renaming folders in the list of folders </s> - diff --git a/funcom_test/34426921.txt b/funcom_test/34426921.txt deleted file mode 100644 index eab036fb6fcb005e2c148771932c3570d76234ef..0000000000000000000000000000000000000000 --- a/funcom_test/34426921.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Component makeMiddleRow() { - JPanel panel = new JPanel(); - panel.setLayout(new FlowLayout(FlowLayout.LEFT)); - panel.setBorder(BorderFactory.createEtchedBorder()); - - panel.add(makeNewAtGalaxyList()); - panel.add(makeStatlessList()); - - panel.add(makeNotesButtonsPanel()); - - return panel; - } - COM: <s> creates and returns the middle gui component for the isdroid panel </s> - diff --git a/funcom_test/34426926.txt b/funcom_test/34426926.txt deleted file mode 100644 index 746cb9459b37741901c5fac666531cc5a6a6aa34..0000000000000000000000000000000000000000 --- a/funcom_test/34426926.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenuItem mailMoveMenuItem() { - JMenuItem mv = new JMenuItem("Move mails..."); - mv.setToolTipText("Move selected mails to another folder"); - mv.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent e) { - mailMove(); - } - }); - return mv; - } - COM: <s> returns a menu component for actions related to moving mails </s> - diff --git a/funcom_test/34426938.txt b/funcom_test/34426938.txt deleted file mode 100644 index d6c07666816c9d4e6bb369ba20419c393c9ff274..0000000000000000000000000000000000000000 --- a/funcom_test/34426938.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void initOptionsMenu(JMenuBar bar) { - optionsMenu = new JMenu("Options"); - optionsMenu.setToolTipText("Options for SWGAide"); - optionsMenu.setMnemonic(KeyEvent.VK_O); - - optionsMenu.add(optionsSWGCraftMenuItem()); - - optionsMenu.setEnabled(true); - bar.add(optionsMenu); - } - COM: <s> initiates and populates the options menu </s> - diff --git a/funcom_test/34426939.txt b/funcom_test/34426939.txt deleted file mode 100644 index 1e2433bb048a0955ca57fc98c19aa3ed07330d0a..0000000000000000000000000000000000000000 --- a/funcom_test/34426939.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenuItem mailSaveAsMenuItem() { - JMenuItem mv = new JMenuItem("Save mail as..."); - mv.setToolTipText("Save selected mail to another file"); - mv.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - public void actionPerformed(ActionEvent e) { - mailSaveAs(); - } - }); - return mv; - } - COM: <s> returns a menu component for actions related to saving mails </s> - diff --git a/funcom_test/34426962.txt b/funcom_test/34426962.txt deleted file mode 100644 index 223ae5dab83a7ea278f6ccadb1ddc48ce098034a..0000000000000000000000000000000000000000 --- a/funcom_test/34426962.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Color stockedHarvested(long inventoryAmount, SWGKnownResource res) { - if (res == null) return null; - if (inventoryAmount >= 0) - return SWGGuiUtils.statColors[0]; - if (res.rc().isSub(SWGCreatureResources.class) - && !res.rc().isHarvested()) - return SWGGuiUtils.colorNonHarvested; - - return null; - } - COM: <s> helper method which returns a background color or </s> - diff --git a/funcom_test/34426966.txt b/funcom_test/34426966.txt deleted file mode 100644 index 4c5c258029426eb7eee64b34d3221d8f9fcd6f4e..0000000000000000000000000000000000000000 --- a/funcom_test/34426966.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionAssigneeMouse(MouseEvent e) { - if (e.getButton() == MouseEvent.BUTTON3) { - JPopupMenu popup = new JPopupMenu(); - - popup.add(schemTab.assigneeMenu()); - popup.add(makeMenuFilterAll()); - - popup.show(assigneeCombo, e.getX(), e.getY()); - } - } - COM: <s> called when the user mouse clicks at the assignee chooser </s> - diff --git a/funcom_test/34426975.txt b/funcom_test/34426975.txt deleted file mode 100644 index 3b5362cd041ce355f6be8caf0fc6916cf5b5fc7c..0000000000000000000000000000000000000000 --- a/funcom_test/34426975.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private File initSWGUniverse(File f, SWGUniverse swgUniv) throws Exception { - swgUniv.swgPath(f); - - SWGUniverse tc = (SWGUniverse) getPrefsKeeper().get("swgTestCenter"); - File tf = new File(f, "testcenter"); - if (tc != null && SWGUniverse.isValidSWGPath(tf)) tc.swgPath(tf); - return f; - } - COM: <s> helper method which sets the specified file as the swg client path for </s> - diff --git a/funcom_test/34426984.txt b/funcom_test/34426984.txt deleted file mode 100644 index eda1dfa945311efc723b5bc85de7507883d1f434..0000000000000000000000000000000000000000 --- a/funcom_test/34426984.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String toolTipText(long inventoryAmount, SWGKnownResource res) { - if (res == null) return null; - - if (inventoryAmount >= 0) - return String.format("Units owned: %s", - ZNumber.asText(inventoryAmount, true, true)); - - if (res.rc().isSub(SWGCreatureResources.class) - && !res.rc().isHarvested()) - return "Not possible to harvest in the worlds"; - - return null; - } - COM: <s> helper method which returns a tool tip text or </s> - diff --git a/funcom_test/34426986.txt b/funcom_test/34426986.txt deleted file mode 100644 index e4ac65bde5fbdace4ba6c315b76411167c988fde..0000000000000000000000000000000000000000 --- a/funcom_test/34426986.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionPopulateAssignees() { - Object prv = - ((SWGListModel) assigneeCombo.getModel()).getSelectedItem(); - - List<SWGSchematicAssignee> as = SWGSchematicTab.assignees(); - as.add(SWGSchematicAssignee.DEFAULT); - ((SWGListModel) assigneeCombo.getModel()).setElements(as); - - assigneeCombo.setSelectedItem(prv); // restore, if possible - } - COM: <s> called when an event requires the assignee combo box to be populated with </s> - diff --git a/funcom_test/34426992.txt b/funcom_test/34426992.txt deleted file mode 100644 index 3c3286a18801020d80d89bd6316ba969dce85917..0000000000000000000000000000000000000000 --- a/funcom_test/34426992.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Component makeUpperRow() { - JPanel middle = new JPanel(); - middle.setLayout(new FlowLayout(FlowLayout.LEFT)); - middle.setBorder(BorderFactory.createEtchedBorder()); - - middle.add(makeUnreportedList()); - middle.add(makeDepletedList()); - - makeSubmitUnreportedAndDepletedButton(); - middle.add(submitUnreportedAndDepletedButton); - - return middle; - } - COM: <s> creates and returns the upper gui component for the isdroid panel </s> - diff --git a/funcom_test/34427053.txt b/funcom_test/34427053.txt deleted file mode 100644 index 853e4f5706565c0f80f436ace8f407e048bb9d1a..0000000000000000000000000000000000000000 --- a/funcom_test/34427053.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void saveAddListener(ActionListener listener, String toolTip) { - ActionListener[] lsts = saveMenuItem.getActionListeners(); - for (ActionListener al : lsts) { - saveMenuItem.removeActionListener(al); - } - saveMenuItem.addActionListener(listener); - saveMenuItem.setToolTipText(toolTip); - saveMenuItem.setEnabled(true); - } - COM: <s> adds a listener to the save menu item at the file menu </s> - diff --git a/funcom_test/34427057.txt b/funcom_test/34427057.txt deleted file mode 100644 index 831cd36a7fe8e0a4858b1325d56ac4c6ce1896f4..0000000000000000000000000000000000000000 --- a/funcom_test/34427057.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void saveAsAddListener(ActionListener listener, String toolTip) { - ActionListener[] lsts = saveAsMenuItem.getActionListeners(); - for (ActionListener al : lsts) { - saveAsMenuItem.removeActionListener(al); - } - saveAsMenuItem.addActionListener(listener); - saveAsMenuItem.setToolTipText(toolTip); - saveAsMenuItem.setEnabled(true); - } - COM: <s> adds a listener to the save as </s> - diff --git a/funcom_test/34427069.txt b/funcom_test/34427069.txt deleted file mode 100644 index 5dfd5502c885777bb07f9c689baf3e5c75bd8108..0000000000000000000000000000000000000000 --- a/funcom_test/34427069.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private int notesFileShowError(String errorMessage) { - String[] options = { "Abort", "Edit now", "Skip and continue" }; - return JOptionPane.showOptionDialog(submitNotesFileButton, - errorMessage, "Input error", JOptionPane.YES_NO_CANCEL_OPTION, - JOptionPane.ERROR_MESSAGE, null, options, options[1]); - } - COM: <s> helper method which shows a gui option dialog with an error message and </s> - diff --git a/funcom_test/34427071.txt b/funcom_test/34427071.txt deleted file mode 100644 index befcc1f2e66aa2b41e9f7b44bb44690fc87752c1..0000000000000000000000000000000000000000 --- a/funcom_test/34427071.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenuItem makeMenuFindSchem() { - final JMenuItem find = SWGSchematicTab.findSchematicMenu(); - find.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - @Override - public void actionPerformed(ActionEvent ee) { - findSchematic(find.getToolTipText()); - } - }); - return find; - } - COM: <s> creates and returns a menu item which if it is selected invokes </s> - diff --git a/funcom_test/34427080.txt b/funcom_test/34427080.txt deleted file mode 100644 index b22a97aa996d03718620df57e1263f71bccb25b0..0000000000000000000000000000000000000000 --- a/funcom_test/34427080.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JMenuItem makeMenuReslimit() { - JMenuItem sl = new JMenuItem("Resource amount..."); - sl.setToolTipText("Adjust the max amount of resources to display"); - sl.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - @Override - public void actionPerformed(ActionEvent e) { - actionReslimitSlider(); - } - }); - return sl; - } - COM: <s> helper method which creates and returns a menu item for adjusting the max </s> - diff --git a/funcom_test/34427129.txt b/funcom_test/34427129.txt deleted file mode 100644 index e6f6de45b53cc4a4a9b723c7eb67599f1175c3af..0000000000000000000000000000000000000000 --- a/funcom_test/34427129.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void notesFileWrite(SWGNotes notes) { - wrappers = mergeWriteResources(); - if (wrappers.size() <= 0) - return; - - if (((Boolean) SWGFrame.getPrefsKeeper().get( - "ISDroidFileContinuous", Boolean.FALSE)).booleanValue()) - notesFileWriteContinuous(notes); - else - notesFileWritePlanets(notes); - } - COM: <s> helper method which writes the list of new and stat less resources to </s> - diff --git a/funcom_test/34427194.txt b/funcom_test/34427194.txt deleted file mode 100644 index c08db71c983b3859d307e7e1e48f0de6cd6cb04b..0000000000000000000000000000000000000000 --- a/funcom_test/34427194.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void schematicSelect(SWGSchematic s, JComponent src, boolean go) { - if (!isSelectingSchem && isGuiFinished && go && s != null) { - isSelectingSchem = true; - - if (src != draftSchems) draftSchems.schemSelect(s); - if (src != laboratory) laboratory.schemSelect(s); - isSelectingSchem = false; - } - } - COM: <s> selects the specified schematic at the draft schematics and the </s> - diff --git a/funcom_test/34427201.txt b/funcom_test/34427201.txt deleted file mode 100644 index dec41385dc4e6802f84c696659c98a07370b5693..0000000000000000000000000000000000000000 --- a/funcom_test/34427201.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void actionSchematicMouse(MouseEvent e) { - int em = e.getButton(); - if (em == MouseEvent.BUTTON1) { - int row = schematicsList.getSelectedIndex(); - if (row < 0) return; - SWGSchematic s = schematicsListModel.element(row); - schemTab.schematicSelect(s, this); - } else if (em == MouseEvent.BUTTON3) { - schematicsPopup(e); - } - } - COM: <s> called when the user mouse clicks the list of schematics </s> - diff --git a/funcom_test/34427235.txt b/funcom_test/34427235.txt deleted file mode 100644 index 59cc9a1e04c8391bf74fd72e64c90d4e9fc0b540..0000000000000000000000000000000000000000 --- a/funcom_test/34427235.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void notesFileWriteResource(ZString z, SWGResource r, String s) { - z.app(r.getName()).app(", ").app(r.rc().rcName()).app(", "); - if (s != null) z.app(s); - z.nl(); - } - COM: <s> helper method which appends the specified resource as a line </s> - diff --git a/funcom_test/34427257.txt b/funcom_test/34427257.txt deleted file mode 100644 index ddcc67cbbdc7f4070c6faca3a289d43a8cb0631b..0000000000000000000000000000000000000000 --- a/funcom_test/34427257.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void populateDepletedList(SWGResourceSet known) { - depletedResources = mergeDepletedResources(known); - SwingUtilities.invokeLater(new Runnable() { - @SuppressWarnings("synthetic-access") - @Override - public void run() { - depletedListModel.clear(); - for (Wrapper wr : depletedResources) - depletedListModel.addElement(wr); - } - }); - } - COM: <s> helper method which populates the gui list for depleted resources </s> - diff --git a/funcom_test/34427273.txt b/funcom_test/34427273.txt deleted file mode 100644 index 23bebaf15deaa9d6c79ab2245729ae94eb8cc292..0000000000000000000000000000000000000000 --- a/funcom_test/34427273.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void populateNewList() { - newResources = mergeNewResources(); - SwingUtilities.invokeLater(new Runnable() { - @SuppressWarnings("synthetic-access") - @Override - public void run() { - newListModel.clear(); - for (Wrapper wr : newResources) - newListModel.addElement(wr); - } - }); - } - COM: <s> helper method which populates the gui list for resources which are new at </s> - diff --git a/funcom_test/34427293.txt b/funcom_test/34427293.txt deleted file mode 100644 index 70cc3a2e6ded4acf5b445f06cadc062b54295824..0000000000000000000000000000000000000000 --- a/funcom_test/34427293.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void populateStatlessList() { - statlessResources = mergeStatlessResources(); - SwingUtilities.invokeLater(new Runnable() { - @SuppressWarnings("synthetic-access") - @Override - public void run() { - statlessListModel.clear(); - for (Wrapper wr : statlessResources) - statlessListModel.addElement(wr); - } - }); - } - COM: <s> helper method which populates the gui list of known resources which are </s> - diff --git a/funcom_test/34427310.txt b/funcom_test/34427310.txt deleted file mode 100644 index 14fce270d2754b6b2bb94a91d5829135fa473422..0000000000000000000000000000000000000000 --- a/funcom_test/34427310.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void populateUnreportedPlanetList() { - unreportedPlanets = mergeUnreportedPlanets(); - SwingUtilities.invokeLater(new Runnable() { - @SuppressWarnings("synthetic-access") - @Override - public void run() { - unreportedListModel.clear(); - for (Wrapper wr : unreportedPlanets) - unreportedListModel.addElement(wr); - } - }); - } - COM: <s> helper method which populates the gui list of resources which can be </s> - diff --git a/funcom_test/34427338.txt b/funcom_test/34427338.txt deleted file mode 100644 index 8c58fbfffc479ffc479369b3ce092c3fcee3306d..0000000000000000000000000000000000000000 --- a/funcom_test/34427338.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JMenuItem makeMenuWriteList(boolean enable) { - JMenuItem write = new JMenuItem("Write to file"); - write.setToolTipText("Write the list of resource classes to file"); - write.setEnabled(enable); - - write.addActionListener(new ActionListener() { - @SuppressWarnings("synthetic-access") - @Override - public void actionPerformed(ActionEvent e) { - actionWriteResourceClasses(); - } - }); - - return write; - } - COM: <s> helper method which creates and returns a menu for writing resource </s> - diff --git a/funcom_test/34427347.txt b/funcom_test/34427347.txt deleted file mode 100644 index 2ed95c15ce134b71ca097095821ff7b7eb89f64f..0000000000000000000000000000000000000000 --- a/funcom_test/34427347.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void actionAssigneeDefine() { - String an = assigneeDefine.getText(); - if (an == null || an.trim().isEmpty()) return; - - ((SWGSchematicTab)parent).assigneeAdd(new SWGSchematicAssignee(an)); - updateAssignees(); - assigneeDefine.setText(null); - } - COM: <s> called when the user has defined an assignee </s> - diff --git a/funcom_test/34427352.txt b/funcom_test/34427352.txt deleted file mode 100644 index ecd34ebd53d5486789a997e6949fb8ee8b613752..0000000000000000000000000000000000000000 --- a/funcom_test/34427352.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void actionFavoriteList(MouseEvent e) { - if (e.getButton() == MouseEvent.BUTTON1 - && e.getClickCount() > 1) { // double-click - - int i = favoriteList.locationToIndex(e.getPoint()); - if (i < 0) return; - - remSfromA((SWGSchematic) favoriteList.getModel().getElementAt(i)); - } - } - COM: <s> called when the user clicks the mouse at the list of favorite schematics </s> - diff --git a/funcom_test/34427355.txt b/funcom_test/34427355.txt deleted file mode 100644 index 08fa0069da9c5bc339080d779b8feaf7106ae18c..0000000000000000000000000000000000000000 --- a/funcom_test/34427355.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void actionSchematicList(MouseEvent e) { - if (e.getButton() == MouseEvent.BUTTON1 - && e.getClickCount() > 1) { // double-click - int idx = schematicsList.locationToIndex(e.getPoint()); - if (idx < 0) return; - - addStoA((SWGSchematic) schematicsList.getModel().getElementAt(idx)); - } - } - COM: <s> called when the user clicks the mouse at the list of schematics </s> - diff --git a/funcom_test/34427356.txt b/funcom_test/34427356.txt deleted file mode 100644 index 67cfd10c7cbb84f2abd8e1e974b3edb559a0f6fd..0000000000000000000000000000000000000000 --- a/funcom_test/34427356.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addStoA(SWGSchematic s) { - SWGSchematicAssignee a = (SWGSchematicAssignee) - assigneeList.getSelectedValue(); - - if (s == null || a == null) { - alertSelectBoth(); - } else { - a.addFavorite(s); - actionAssigneeSelected(a); - ((SWGSchematicTab)parent).notifyAssigneeUsers(); - } - } - COM: <s> helper method which adds the specified schematic to a selected assignee </s> - diff --git a/funcom_test/34427363.txt b/funcom_test/34427363.txt deleted file mode 100644 index c086e15dfa10b113942f29e413a36aafcfd2540f..0000000000000000000000000000000000000000 --- a/funcom_test/34427363.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private SWGSoapStatusResponse sendNew(Wrapper wrapper) { - SWGMutableResource mr = wrapper.mutable; - SWGSoapStatusResponse resp = SWGResourceManager.sendNew(mr, false); - if (resp != null && resp.isFaultless()) { - mr.whatever = "OK new"; - updateNewList(mr); - } - - return resp; - } - COM: <s> helper method which submits the new resource to swgcraft </s> - diff --git a/funcom_test/34427396.txt b/funcom_test/34427396.txt deleted file mode 100644 index ecc6d8200e19d991b7f186b24635e4bf4306c9cf..0000000000000000000000000000000000000000 --- a/funcom_test/34427396.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void showSoapExceptionDialog() { - frame.putToStatbar("<html><font color=\"red\">ERROR</font></html>"); - JOptionPane.showMessageDialog(notesFileSaveButton, - "Communication error, check log files\nAbort", - "Error", JOptionPane.ERROR_MESSAGE); - } - COM: <s> helper method which displays a dialog about soapexception impl this error </s> - diff --git a/funcom_test/34427404.txt b/funcom_test/34427404.txt deleted file mode 100644 index e7a2ab588a79c3f142bc8c9b96f68f1ec057fdca..0000000000000000000000000000000000000000 --- a/funcom_test/34427404.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Component makeWestWeights() { - schematicWeights = new JLabel(""); - schematicWeights.setFont(SWGGuiUtils.fontPlain()); - schematicWeights.setToolTipText( - "Experimental weights for the selected schematic, or n/a"); - schematicWeights.setBorder(BorderFactory.createTitledBorder( - BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), - " Experimental weights ")); - return schematicWeights; - } - COM: <s> helper method which creates and returns a component which displays </s> - diff --git a/funcom_test/34427413.txt b/funcom_test/34427413.txt deleted file mode 100644 index dde524d8671a35b72529b859e441e78e789ce313..0000000000000000000000000000000000000000 --- a/funcom_test/34427413.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void actionFilterSchematics() { - filteredSchematics = SWGSchematicsManager.getSchematics( - selectedProfession, -1, selectedLevel.intValue()); - - isUpdatingGUI = true; - schemTreeModel.setSchematics(filteredSchematics); - - schemSelector.setSelectedIndex(-1); - schemSelectModel.fireContentChanged(); - - isUpdatingGUI = false; - actionSchematicSelected(selectedSchematic, traceForward, false); - } - COM: <s> called when the user makes a selection that triggers an update to the </s> - diff --git a/funcom_test/34427418.txt b/funcom_test/34427418.txt deleted file mode 100644 index 42218fb2df917a074b6524a87130fa47d0e6d2df..0000000000000000000000000000000000000000 --- a/funcom_test/34427418.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void remSfromA(SWGSchematic s) { - SWGSchematicAssignee a = (SWGSchematicAssignee) - assigneeList.getSelectedValue(); - - if (s == null || a == null) { - alertSelectBoth(); - } else { - a.removeFavorite(s); - actionAssigneeSelected(a); - ((SWGSchematicTab)parent).notifyAssigneeUsers(); - } - } - COM: <s> helper method which removes the specified schematic from a selected </s> - diff --git a/funcom_test/34427424.txt b/funcom_test/34427424.txt deleted file mode 100644 index 50936227584a40917d48fcb681387e066766b166..0000000000000000000000000000000000000000 --- a/funcom_test/34427424.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void actionNotes(@SuppressWarnings("unused") MouseEvent e) { - if (selectedSchematic != null) { - SWGSchematicWrapper w = SWGSchemController. - wrapperDefault(selectedSchematic); - - String n = SWGGuiUtils.dialogTextInput( - schemNotes, "Edit schematic notes", w.notes()); - - if (n != null) { - String s = n.trim(); - w.notes(s); - schemNotes.setText(s); - } - } - } - COM: <s> called when the user clicks the notes text field under the shopping list </s> - diff --git a/funcom_test/34427440.txt b/funcom_test/34427440.txt deleted file mode 100644 index 905e23ae4993e23d4d04bfee5fb8567d81b797ff..0000000000000000000000000000000000000000 --- a/funcom_test/34427440.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void updateEWAR() { - // wraps is empty if wrap == null - for (int i = 0; i < wraps.size(); ++i) { - SWGExperimentWrapper ew = wraps.get(i); - JLabel grp = (JLabel) exps.getComponent(i); - grp.setText(updateExp(ew)); - } - } - COM: <s> helper method which updates the labels for experimentation wrapper </s> - diff --git a/funcom_test/34427443.txt b/funcom_test/34427443.txt deleted file mode 100644 index 0d23e52276039b2c3a42f3e9adfd49eb1916f5fb..0000000000000000000000000000000000000000 --- a/funcom_test/34427443.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void updateExpColor(double d, ZString z) { - z.app("<font color="); - if (d < SWGGuiUtils.statLimits[1] * 1000) - z.app(BAD); - else if (d < SWGGuiUtils.statLimits[2] * 1000) - z.app(FAIR); - else - z.app("#000000"); - z.app(">"); - } - COM: <s> helper method which appends a suitable color to the string object </s> - diff --git a/funcom_test/34427507.txt b/funcom_test/34427507.txt deleted file mode 100644 index ff8314e7e909cbf067b29a691b3f68b48b509602..0000000000000000000000000000000000000000 --- a/funcom_test/34427507.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String myValue(JTable table, Object val, int row, int col) { - String s = myValue(val); - if (s != null) return s; - - s = myValue(table, row, col); - if (s != null) return s; - - s = myValue(); - return s != null - ? s - : ""; - } - COM: <s> helper method which returns a value determined by the arguments </s> - diff --git a/funcom_test/34427606.txt b/funcom_test/34427606.txt deleted file mode 100644 index a60563374573c88f7d8fa9a9279900441cbd6d4e..0000000000000000000000000000000000000000 --- a/funcom_test/34427606.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void aConstructorHelper(int[] weights, boolean validateSum) { - if (validateSum) - validate(weights); - if (validateSum && !isValid(sum(weights))) - throw new IllegalArgumentException(String.format( - "Invalid sum: %s of %s", - Integer.toString(sum(weights)), Arrays.toString(weights))); - - values = Arrays.copyOf(weights, weights.length); - } - COM: <s> helper method for the constructors of this type </s> - diff --git a/funcom_test/34427649.txt b/funcom_test/34427649.txt deleted file mode 100644 index d2eb3c234e0f00b181fe4b7964a92f79f857fed2..0000000000000000000000000000000000000000 --- a/funcom_test/34427649.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int indexOf(SWGResource o, Comparator<SWGResource> comp) { - for (int i = 0; i < storage.size(); ++i) { - SWGResource r = storage.get(i); - if (r == o || comp.compare(r, o) == 0) - return i; - } - return -1; - } - COM: <s> returns the index of the first occurrence of the specified resource in </s> - diff --git a/funcom_test/34427686.txt b/funcom_test/34427686.txt deleted file mode 100644 index 2c226b96b1d8322a9c4545a5ffab611465670d76..0000000000000000000000000000000000000000 --- a/funcom_test/34427686.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void stats(int[] values, boolean validate) { - SWGResourceStats st = new SWGResourceStats(values); - - if (validate && st.sum() > 0) { - String err = SWGResourceClass.validate(st, rc()); - if (err != null) - throw new IllegalArgumentException(err); - } - // new object is safe - super.deserialStats(st); - } - COM: <s> sets the stats for this instance </s> - diff --git a/funcom_test/34427715.txt b/funcom_test/34427715.txt deleted file mode 100644 index 5b77c7c515df11e488261d51f40b19899dc75ae1..0000000000000000000000000000000000000000 --- a/funcom_test/34427715.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addCat(SWGCategory cat) { - if (cat == this || cat.id == this.id) - throw new IllegalArgumentException("Adding self to self"); - - if (categories == null) - categories = new ArrayList<SWGCategory>(); - - if (!categories.contains(cat)) - categories.add(cat); - } - COM: <s> helper method which adds the specified category to the list of </s> - diff --git a/funcom_test/34427725.txt b/funcom_test/34427725.txt deleted file mode 100644 index 3b703df43f7ef551370d7f8ab616922c36deef96..0000000000000000000000000000000000000000 --- a/funcom_test/34427725.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void displayDraft(SWGSchematic schem) { - draftTitle.setTitle(schem.getName()); - draftCategory.setText(draftDataCategory(schem)); - draftData.setText(draftData(schem)); - draftResAndComps(schem); - draftExpGroups(schem); - draftMisc.setText(draftMisc(schem)); - draftPanel.repaint(); - } - COM: <s> helper method which updates the display for the draft details </s> - diff --git a/funcom_test/34427729.txt b/funcom_test/34427729.txt deleted file mode 100644 index 256b0b77f27b7bf9dcc6c71e438375769751d8f9..0000000000000000000000000000000000000000 --- a/funcom_test/34427729.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean contains(Object obj) { - if (obj instanceof SWGCategory) - return categories != null && categories.contains(obj); - if (obj instanceof SWGSchematic) - return schematics != null && schematics.contains(obj); - if (obj instanceof SWGSchematic) - return items != null && items.contains(obj); - return false; - } - COM: <s> determines of this category contains the specified argument </s> - diff --git a/funcom_test/34427737.txt b/funcom_test/34427737.txt deleted file mode 100644 index 73e88766d2c5d0a436e1f28ee86ff4df9ef8550d..0000000000000000000000000000000000000000 --- a/funcom_test/34427737.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public SWGResourceSet subsetBy(Comparable<SWGKnownResource> comparable) { - if (comparable == null) - throw new NullPointerException("Argument is null"); - - SWGResourceSet result = new SWGResourceSet(size()); - for (SWGKnownResource kr : storage) - if (comparable.compareTo(kr) == 0) - result.storage.add(kr); - - if (result.storage.isEmpty()) - return EMPTY; - return result; - } - COM: <s> returns from this set a subset of resources which all meets the </s> - diff --git a/funcom_test/34427755.txt b/funcom_test/34427755.txt deleted file mode 100644 index b641b255eb7e4190dbb0c092f61cf84f72e44977..0000000000000000000000000000000000000000 --- a/funcom_test/34427755.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public SWGResourceSet subsetBy(SWGResourceFilter filter, boolean all) { - SWGResourceSet result = new SWGResourceSet(size()); - for (SWGKnownResource kr : storage) { - if (filter.isBetter(kr, all)) - result.storage.add(kr); // surpass our checkpoints - } - if (result.storage.isEmpty()) - return EMPTY; - return result; - } - COM: <s> returns from this set a subset of known resources that meet the </s> - diff --git a/funcom_test/34427792.txt b/funcom_test/34427792.txt deleted file mode 100644 index 5c5eba9c29a9d9e1fde8746219ab7db530f9e2ef..0000000000000000000000000000000000000000 --- a/funcom_test/34427792.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void writeExc(List<String> ls) throws Exception { - if (ls == null || ls.isEmpty()) return; - - Iterator<String> iter = ls.iterator(); - writeExc(iter.next()); - while (iter.hasNext()) { - writeExc(ZString.EOL); - writeExc(iter.next()); - } - txt.flush(); - } - COM: <s> writes the specified list of strings to this text writer each line is </s> - diff --git a/funcom_test/34427817.txt b/funcom_test/34427817.txt deleted file mode 100644 index a127fd9e241a7ddb0a26227bb02ceacdf4fcabc0..0000000000000000000000000000000000000000 --- a/funcom_test/34427817.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void closeDialog(Color selectedColor) { - if (selectedColor != null) { - // save the selected color only when OK, preserves the old color - newColor = selectedColor; - if (blackWhite.isSelected()) - newTextColor = Color.BLACK; - else - newTextColor = Color.WHITE; - } - setVisible(false); - } - COM: <s> helper method which closes this dialog </s> - diff --git a/funcom_test/34427827.txt b/funcom_test/34427827.txt deleted file mode 100644 index 693a375eefd7d452e3ad33a684795f27984f44b0..0000000000000000000000000000000000000000 --- a/funcom_test/34427827.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void showDialog(Color backGround, Color textColor) { - newColor = backGround; - newTextColor = textColor; - - colorChooser.setColor(newColor); - - if (textColor.equals(Color.BLACK)) - blackWhite.setSelected(true); - else - blackWhite.setSelected(false); - - previewLabel.setForeground(textColor); - setVisible(true); - } - COM: <s> displays this color chooser dialog with the specified colors </s> - diff --git a/funcom_test/34427851.txt b/funcom_test/34427851.txt deleted file mode 100644 index 7a5a4e0fc79a42876227aa4ac68c7b3a16e97b69..0000000000000000000000000000000000000000 --- a/funcom_test/34427851.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected SOAPMessage sendMessage(SOAPMessage msg) throws Exception { - try { - SOAPConnection conn = soapConnectionFactory.createConnection(); - return conn.call(msg, url); - } catch (Exception e) { - if (SWGConstants.DEV_DEBUG) - SWGAide.printError("SOAPManager:sendMessage", e); - throw e; - } - } - COM: <s> sends the given message to </s> - diff --git a/funcom_test/34428343.txt b/funcom_test/34428343.txt deleted file mode 100644 index f958d70deb61c8054fc5030234b811a79c76c1a0..0000000000000000000000000000000000000000 --- a/funcom_test/34428343.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JMenuItem informationMenu(final Component comp, final String text) { - JMenuItem m = new JMenuItem("Information"); - m.addActionListener(new ActionListener() { - @Override - public void actionPerformed(ActionEvent e1) { - JOptionPane.showMessageDialog(comp, - SWGSchematicsManager.informationText(text), - "Information", JOptionPane.PLAIN_MESSAGE); - } - }); - return m; - } - COM: <s> helper method which creates and returns a menu option for information on </s> - diff --git a/funcom_test/34428682.txt b/funcom_test/34428682.txt deleted file mode 100644 index c629d1d86e2fce27c032f624bb002e7cdc189373..0000000000000000000000000000000000000000 --- a/funcom_test/34428682.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JLabel makeLabel() { - JLabel l = new JLabel(); - l.setBorder(BorderFactory.createEmptyBorder(0, 6, 0, 6)); - l.setFont(SWGGuiUtils.fontPlain()); - l.setBackground(Color.WHITE); - l.setOpaque(true); - return l; - } - COM: <s> helper method which creates and returns a text label </s> - diff --git a/funcom_test/34428701.txt b/funcom_test/34428701.txt deleted file mode 100644 index b2e1ac82e32579a064bb498ec4f7d61451f92ccb..0000000000000000000000000000000000000000 --- a/funcom_test/34428701.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private Component makeWest() { - JPanel bp = new JPanel(new BorderLayout()); - bp.add(makeWestTraceBar(), BorderLayout.PAGE_START); - bp.add(makeWestTreePanel(), BorderLayout.CENTER); - bp.add(makeWestFilterPanel(), BorderLayout.PAGE_END); - return bp; - } - COM: <s> helper method which creates and returns the west main panel of this </s> - diff --git a/funcom_test/3449527.txt b/funcom_test/3449527.txt deleted file mode 100644 index 76561f397013a00a88b511ba096b0ec811f8e0bc..0000000000000000000000000000000000000000 --- a/funcom_test/3449527.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setRoleForm(final ActionForm form) throws Exception { - - List orderBy = new ArrayList(); - orderBy.add(new Order("role", Globals.ORDER_ASC)); - List roles = EntityHelper.getEntities(null, Globals.ENTITY_ROLE, orderBy, 0, 0, principal, dbSession); - - ((RoleForm) form).setRoles(roles); - - } - COM: <s> method to set the user role into the action form </s> - diff --git a/funcom_test/3449549.txt b/funcom_test/3449549.txt deleted file mode 100644 index 7ad7042e26b0529bc19d4855402ffb4ce3f1d01f..0000000000000000000000000000000000000000 --- a/funcom_test/3449549.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setUserForm(final ActionForm form) throws Exception { - - List orderBy = new ArrayList(); - orderBy.add(new Order("username", Globals.ORDER_ASC)); - List principals = EntityHelper.getEntities(null, Globals.ENTITY_PRINCIPAL, orderBy, 0, 0, principal, dbSession); - - ((UserForm) form).setPrincipals(principals); - - } - COM: <s> method to set the user into the action form </s> - diff --git a/funcom_test/3449554.txt b/funcom_test/3449554.txt deleted file mode 100644 index cccc340ac5117eac55384893344b36c068cd0c87..0000000000000000000000000000000000000000 --- a/funcom_test/3449554.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private ReportGroup setReportGroupForm(final Integer reportGroupId, final ActionForm form) throws Exception { - - //get the group - ReportGroup reportGroup = ReportHelper.getReportGroup(reportGroupId, principal, dbSession); - - //add it to the form - ((ReportGroupsForm) form).setReportGroup(reportGroup); - return reportGroup; - } - COM: <s> method to set a report group into the action form </s> - diff --git a/funcom_test/3449627.txt b/funcom_test/3449627.txt deleted file mode 100644 index 61c2c13d765b4f0a82759854258eddd3a04b43e3..0000000000000000000000000000000000000000 --- a/funcom_test/3449627.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setTransportConfigForm(final ActionForm form) throws Exception { - - // Also, get stuff for all lists on the form - List transportTypes = EntityHelper.getEntities(null, Globals.ENTITY_TRANSPORT_TYPE, null, 0, 0, principal, dbSession); - - //add all destinations to the form - ((TransportConfigForm) form).setTransportTypes(transportTypes); - - } - COM: <s> method to place the destinations for each type of transport into the session </s> - diff --git a/funcom_test/3449629.txt b/funcom_test/3449629.txt deleted file mode 100644 index b106d77c4d880c6357ef8aed8f84ad7538c73103..0000000000000000000000000000000000000000 --- a/funcom_test/3449629.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void unSessionizeTypes(final ActionForm form) { - - List types = ((TransportConfigForm) form).getTransportTypes(); - - //repeat as many times as there are transport types - for (int i = 0; i < types.size(); i++) { - session.removeAttribute(((TransportType) types.get(i)).getSessionName()); - } - - } - COM: <s> method to remove all destination information from the session </s> - diff --git a/funcom_test/3449641.txt b/funcom_test/3449641.txt deleted file mode 100644 index 1443f0f064b9646a4550271c4691d59685788def..0000000000000000000000000000000000000000 --- a/funcom_test/3449641.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private List getSessionYears() { - List years = new ArrayList(); - - //create calendar and get year - Calendar calendar = new GregorianCalendar(); - calendar.setTime(new Date()); - int year = calendar.get(Calendar.YEAR); - - //add 4 years to list - years.add(new Integer(year)); - years.add(new Integer(year + 1)); - years.add(new Integer(year + 2)); - years.add(new Integer(year + 3)); - - return years; - } - COM: <s> simple method that creates a list of years starting with the current year </s> - diff --git a/funcom_test/3449663.txt b/funcom_test/3449663.txt deleted file mode 100644 index 7ca04d35f2d0e1f4a3019a62293407d2ce0c3fb4..0000000000000000000000000000000000000000 --- a/funcom_test/3449663.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private StaffAdvance setStaffAdvanceForm(final Integer staffYearlyId, final ActionForm form) throws Exception { - - StaffAdvance advance = StaffAdvanceHelper.getStaffAdvance(staffYearlyId, principal, dbSession); - - //add staff advance and seasonal info to form - ((StaffAdvanceForm) form).setStaffAdvance(advance); - ((StaffAdvanceForm) form).setStaffYearly(advance.getStaffYearly()); - - return advance; - } - COM: <s> method to set a staff member into the action form </s> - diff --git a/funcom_test/3449712.txt b/funcom_test/3449712.txt deleted file mode 100644 index 4e616d337a26c73812599a74aad34717c4f43af5..0000000000000000000000000000000000000000 --- a/funcom_test/3449712.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void setInstancesForm(final Integer sessionId, final ActivityTimeForm form) throws Exception { - - //get time slots - List timeSlots = ActivityTimeSlotHelper.getValidTimeSlots(globalSettings, principal, dbSession); - - //get session - Session session = SessionHelper.getSession(sessionId, principal, dbSession); - - //ensure that session has all activity time slots filled. - SessionHelper.populateEmptySessionActivityTimes(session, timeSlots, principal, dbSession); - - form.setSession(session); - - } - COM: <s> method to set the activity instances into the action form </s> - diff --git a/funcom_test/3449756.txt b/funcom_test/3449756.txt deleted file mode 100644 index 44e638820073bc7d0d416b17a84f7bb5021378e9..0000000000000000000000000000000000000000 --- a/funcom_test/3449756.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Session setCabinizeSessionForm(Integer sessionId, CabinAssignmentsForm form) throws Exception { - - Session session = SessionHelper.getSession(sessionId, principal, dbSession); - form.setSession(session); - - List assignments = CabinAssignmentHelper.getCabinAssignments(sessionId, null, principal, dbSession); - form.setAssignments(assignments); - - return session; - - } - COM: <s> method to populate action form with all cabin assignments for a given session </s> - diff --git a/funcom_test/3449950.txt b/funcom_test/3449950.txt deleted file mode 100644 index 4e640f4e04362b6a7ac9919bde3e15584b64f548..0000000000000000000000000000000000000000 --- a/funcom_test/3449950.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean equals(Object o) { - if (o == null) - return false; - - if (this == o) - return true; - - if (!(o instanceof PrincipalRole)) - return false; - PrincipalRole that = (PrincipalRole)o; - - if (this.getPrincipal().equals(that.getPrincipal()) && - this.getRole().equals(that.getRole()) ) - return true; - return false; - } - COM: <s> compares the specified object with this code principal role code </s> - diff --git a/funcom_test/34504928.txt b/funcom_test/34504928.txt deleted file mode 100644 index 6e3be631207d4e6b225c7b880e565ba21a569072..0000000000000000000000000000000000000000 --- a/funcom_test/34504928.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void handleEvent(char character, int keyCode, int stateMask) { - - if (fMode == Mode.CMD) { - handleCmdKeyEvent(character, keyCode, stateMask); - } else if (fMode == Mode.EX) { - handleExKeyEvent(character, keyCode, stateMask); - } - - } - COM: <s> handle a key event </s> - diff --git a/funcom_test/34505074.txt b/funcom_test/34505074.txt deleted file mode 100644 index 24921dafa7910cc95b026fdeb76d29592a92f7f5..0000000000000000000000000000000000000000 --- a/funcom_test/34505074.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void matchBracket() { - - String editorId = fTextEditor.getSite().getId(); - String commandId; - - if (editorId.equals(EDITORID_CDT_EDITOR)) { - commandId = CMD_MATCH_BRACKET_CDT; - } else if (editorId.equals(EDITORID_JDT_EDITOR)) { - commandId = CMD_MATCH_BRACKET_JDT; - } else { - DEBUG("Match bracket command not supported for editor id " - + editorId); - return; - } - - executeCommand(commandId); - } - COM: <s> unfortunately there is no generic match bracket command so we have </s> - diff --git a/funcom_test/34518063.txt b/funcom_test/34518063.txt deleted file mode 100644 index b0e433ef31c1e686a133cfa02c65c535b7106d12..0000000000000000000000000000000000000000 --- a/funcom_test/34518063.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getAuthServer() { - if (this.xml==null) return ""; - if (this.authserver.equals("")) { - Element tmp=(Element)this.xml.selectSingleNode("/poll/manifest/authserver"); - if (tmp==null) { //fallback to previous implementation - tmp=(Element)this.xml.selectSingleNode("/poll/manifest/authservers/authserver"); - } - this.authserver=tmp.attribute("url").getText(); - } - return this.authserver; - } - COM: <s> return the authserver url </s> - diff --git a/funcom_test/3456415.txt b/funcom_test/3456415.txt deleted file mode 100644 index f97d2eb69e996fafac3ac7fb52d8aa47304ca625..0000000000000000000000000000000000000000 --- a/funcom_test/3456415.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testLogin() { - - SessionManager manager = new SimpleSessionManager(); - String sessionId = manager.createSession( null, null); - - Session session = manager.getSession( sessionId ); - - manager.login(session, "user", "password"); - - assertEquals("user", session.getUserId()); - assertEquals("password", session.getUserPassword()); - assertTrue( session.isLoggedIn() ); - } - COM: <s> check that the user login and password are set on session </s> - diff --git a/funcom_test/3456455.txt b/funcom_test/3456455.txt deleted file mode 100644 index 2992dd5335f2d78d78c302902c956211f8b173c7..0000000000000000000000000000000000000000 --- a/funcom_test/3456455.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void testGetElementText() { - - try{ - Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); - - Element root = doc.createElement("root"); - doc.appendChild(root); - - root.appendChild(doc.createTextNode("textValue")); - - XmlHashtableMappings mapps = new XmlHashtableMappings(); - - String res = mapps.getElementText( root ); - - assertEquals( "textValue", res ); - } - catch(Exception t){ - t.printStackTrace(); - throw new RuntimeException(t); - } - } - COM: <s> test for getting the value of child text node from a element node </s> - diff --git a/funcom_test/3456678.txt b/funcom_test/3456678.txt deleted file mode 100644 index 7d6b76c38d26f17f630a0c855c853273a032d619..0000000000000000000000000000000000000000 --- a/funcom_test/3456678.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public SimpleNode simplify( int msql_type, boolean cond) { - first = (SimpleNode)first.simplify( msql_type, cond); - for( int i = 0; i < ands.size(); i++) { - term t = (term)ands.elementAt(i); - t.expr = t.expr.simplify( msql_type, cond); - } - if( ands.size() == 0) - return first; - try { - return new SimpleNodeValue( value( msql_type, cond)); - } catch( Exception e) { - return this; - } - } - COM: <s> returns a simplified node if possible usefull in expressions </s> - diff --git a/funcom_test/3456779.txt b/funcom_test/3456779.txt deleted file mode 100644 index 56ad89fedbbd5374c1a961421a79424fb7677dde..0000000000000000000000000000000000000000 --- a/funcom_test/3456779.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void sourceCode( int msql_type, StringBuffer buffer) throws Exception { - if( msql_type == mobisnap.MobisnapConstants.MSQL_ORIGINAL) { - super.sourceCode( msql_type, buffer); - return; - } - buffer.append( " "); - if( msql_type == MobisnapConstants.MSQL_STABLE_CLIENT) - buffer.append( "stable_"); - buffer.append( s1); - if( s2 != null) { - buffer.append( "."); - buffer.append( s2); - } - buffer.append( " "); - } - COM: <s> displays the source code of the node </s> - diff --git a/funcom_test/3456950.txt b/funcom_test/3456950.txt deleted file mode 100644 index 158eb1ff6b40bf3d70ee387b87697f85be2c6203..0000000000000000000000000000000000000000 --- a/funcom_test/3456950.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public ReservationUseBase getUsedReservation( String table, String column, SimpleNode where) { - where = where.simplify( MobisnapConstants.MSQL_SERVER, false); - Enumeration enum = usedRsrvs.elements(); - while( enum.hasMoreElements()) { - ReservationUseBase rsrv = (ReservationUseBase)enum.nextElement(); - if( rsrv.getRsrv().checkReservation( table, column, where)) - return rsrv; - } - return null; - } - COM: <s> returns the used reservation that backs up the given conditions </s> - diff --git a/funcom_test/3457090.txt b/funcom_test/3457090.txt deleted file mode 100644 index a81d206f069c537ddbe0c00472bd1c580671fa89..0000000000000000000000000000000000000000 --- a/funcom_test/3457090.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void createNewServerProcess( Socket socket ){ - logger.info( "Received connection on port " + getPort() + " from [" + socket.getInetAddress() + ":"+ socket.getPort() + "]."); - - Thread t = new Thread( getNewServerProcess(socket) ); - t.start(); - getServerProcesses().add( t ); - new Thread( new Monitor( t ) ).start(); - } - COM: <s> create a new socket process for a new connection </s> - diff --git a/funcom_test/3457127.txt b/funcom_test/3457127.txt deleted file mode 100644 index fbac25cadb24e5db6aa3d28468868fbf07a317c7..0000000000000000000000000000000000000000 --- a/funcom_test/3457127.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void initCommand(Command command){ - - Hashtable table = initParameters.getParameters(command.getClass().getName()); - - if( table == null || table.size() == 0 ) - return; - - Enumeration enum = table.keys(); - while( enum.hasMoreElements() ){ - String key = (String)enum.nextElement(); - BeanUtils.writeProperty( command, key, table.get(key).toString() ); - } - } - COM: <s> initialize the given command with the defined parameters if any </s> - diff --git a/funcom_test/3457130.txt b/funcom_test/3457130.txt deleted file mode 100644 index 1a5d29ff8b687af27f7298bf360f00b56ca79d3d..0000000000000000000000000000000000000000 --- a/funcom_test/3457130.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void addParameters( String className, String[] paramNames, Object[] paramValues ){ - - if( paramNames.length != paramValues.length ) - throw new IllegalArgumentException("Parameter Names and values must have the same lenght."); - - Hashtable params = (Hashtable)mappings.get(className); - - if( params == null ){ - params = new Hashtable(); - mappings.put(className, params); - } - - for (int i = 0; i < paramNames.length; i++) - params.put(paramNames[i], paramValues[i]); - } - COM: <s> adds initial parameter values for the given class </s> - diff --git a/funcom_test/3457154.txt b/funcom_test/3457154.txt deleted file mode 100644 index 3bbbd06a49895fdd6ccba1b19b92456d34515739..0000000000000000000000000000000000000000 --- a/funcom_test/3457154.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected String getElementText( Element element ){ - - String value = null; - - NodeList list = element.getChildNodes(); - - for (int i = 0; value == null || i < list.getLength(); i++) { - if( list.item(i).getNodeType() == Node.TEXT_NODE ) - value = list.item(i).getNodeValue(); - } - - return value; - } - COM: <s> util method that returns an element text value </s> - diff --git a/funcom_test/3457229.txt b/funcom_test/3457229.txt deleted file mode 100644 index 02e4ad35ac2cc29bda690727589bee24dcdf3e4a..0000000000000000000000000000000000000000 --- a/funcom_test/3457229.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected List convertViewListFromJGroups(View view) { - - List res = new Vector(); - - if( view == null ) - return res; - - List jgroupsList = view.getMembers(); - - for (Iterator iter = jgroupsList.iterator(); iter.hasNext();) { - replica.group.IpAddress addr = - convertJGroupsIpAddressToIpAddress( (IpAddress)iter.next() ); - - res.add(addr); - } - - return res; - } - COM: <s> convert a jgroups view into a non specific implementation view </s> - diff --git a/funcom_test/34599421.txt b/funcom_test/34599421.txt deleted file mode 100644 index 495b65e7eb225700c8b46ecda3be30f850aff0cf..0000000000000000000000000000000000000000 --- a/funcom_test/34599421.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setSigmaX( double newSigmaX) throws IllegalArgumentException, DimensionMismatchException { - if (this.dimension == 1) - throw new DimensionMismatchException(this.dimension + "D-Punkt hat keine X-Genauigkeit"); - if (newSigmaX>0) - this.sigmaX = newSigmaX; - else - throw new IllegalArgumentException("Standardabweichung muss groesser Null sein " + newSigmaX); - } - COM: <s> setz die standardabweichung der x komponente </s> - diff --git a/funcom_test/34599424.txt b/funcom_test/34599424.txt deleted file mode 100644 index 6185c1d38fddfe10384c8ef42548704e059c3685..0000000000000000000000000000000000000000 --- a/funcom_test/34599424.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setSigmaY( double newSigmaY) throws IllegalArgumentException, DimensionMismatchException { - if (this.dimension == 1) - throw new DimensionMismatchException(this.dimension + "D-Punkt hat keine Y-Genauigkeit"); - if (newSigmaY>0) - this.sigmaY = newSigmaY; - else - throw new IllegalArgumentException("Standardabweichung muss groesser Null sein " + newSigmaY); - } - COM: <s> setz die standardabweichung der y komponente </s> - diff --git a/funcom_test/34599426.txt b/funcom_test/34599426.txt deleted file mode 100644 index 04c372e52f55b3d0d42378487084fece2319e955..0000000000000000000000000000000000000000 --- a/funcom_test/34599426.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setSigmaZ( double newSigmaZ) throws IllegalArgumentException, DimensionMismatchException { - if (this.dimension == 2) - throw new DimensionMismatchException(this.dimension + "D-Punkt hat keine Z-Genauigkeit"); - if (newSigmaZ>0) - this.sigmaZ = newSigmaZ; - else - throw new IllegalArgumentException("Standardabweichung muss groesser Null sein " + newSigmaZ); - } - COM: <s> setz die standardabweichung der z komponente </s> - diff --git a/funcom_test/34599427.txt b/funcom_test/34599427.txt deleted file mode 100644 index 018afb9becf73af4d90e0fc27ce6f593b9f8ca4c..0000000000000000000000000000000000000000 --- a/funcom_test/34599427.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private void initModel() { - Matrix SoEs[] = this.createSystemOfEquations(true); - this.A = SoEs[0]; - this.w = SoEs[1]; - this.R = SoEs[4]; - this.r = SoEs[5]; - this.B = SoEs[2]; - this.Cll = SoEs[3]; - SoEs = null; - Matrix B = null; - if (this.B instanceof SparseMatrix) - B = DefaultMatrix.convertTo(this.B); - else - B = this.B; - try { - this.P = (B.multi(Cll.multi(B.trans()))).inv(); - if (this.v != null) - this.w = this.w.diff(B.multi(this.v)); - } catch (ArithmeticException er) { - er.printStackTrace(); - } - } - COM: <s> liefert das mathematische modell als gmm </s> - diff --git a/funcom_test/34599430.txt b/funcom_test/34599430.txt deleted file mode 100644 index 2b4bf6a7ac20a521ff5786e2de5fd4458c3b75c3..0000000000000000000000000000000000000000 --- a/funcom_test/34599430.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setSigmaRx( double newSigmaRx) throws IllegalArgumentException, DimensionMismatchException { - if (this.dimension != 6) - throw new DimensionMismatchException(this.dimension + "D-Punkt hat keine X-Drehung"); - if (newSigmaRx>0) - this.sigmaRx = newSigmaRx; - else - throw new IllegalArgumentException("Standardabweichung muss groesser Null sein " + newSigmaRx); - } - COM: <s> setz die standardabweichung der x drehung </s> - diff --git a/funcom_test/34599431.txt b/funcom_test/34599431.txt deleted file mode 100644 index d0cb80307279bb2ef5f8a4e46d99ea979625b4d5..0000000000000000000000000000000000000000 --- a/funcom_test/34599431.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setSigmaRy( double newSigmaRy) throws IllegalArgumentException, DimensionMismatchException { - if (this.dimension != 6) - throw new DimensionMismatchException(this.dimension + "D-Punkt hat keine Y-Drehung"); - if (newSigmaRy>0) - this.sigmaRy = newSigmaRy; - else - throw new IllegalArgumentException("Standardabweichung muss groesser Null sein " + newSigmaRy); - } - COM: <s> setz die standardabweichung der y drehung </s> - diff --git a/funcom_test/34599433.txt b/funcom_test/34599433.txt deleted file mode 100644 index 9cc945520e3e52c82adc5b7bbe2adcf1fc5b589c..0000000000000000000000000000000000000000 --- a/funcom_test/34599433.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setSigmaRz( double newSigmaRz) throws IllegalArgumentException, DimensionMismatchException { - if (this.dimension != 6) - throw new DimensionMismatchException(this.dimension + "D-Punkt hat keine Z-Drehung"); - if (newSigmaRz>0) - this.sigmaRz = newSigmaRz; - else - throw new IllegalArgumentException("Standardabweichung muss groesser Null sein " + newSigmaRz); - } - COM: <s> setz die standardabweichung der z drehung </s> - diff --git a/funcom_test/34604502.txt b/funcom_test/34604502.txt deleted file mode 100644 index f455c0b9c791b3726f952b59f1ea295a838218db..0000000000000000000000000000000000000000 --- a/funcom_test/34604502.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String delete() { - //identify faxovaPonuka - Ponuka faxovaPonuka=null; - for (SelectItem ponuka: getFaxovePonuky()) { - if (ponuka.getLabel().equals(getReplace())) { - faxovaPonuka=(Ponuka) ponuka.getValue(); - break; - } - } - - AuthBean.infoLog("Deleting fax offer "+getOffer()+" replacing with "+faxovaPonuka,LOG); - - //call service - ServiceLocator.getInstance().getPonukaService().delete(getOffer(), faxovaPonuka); - - return "ok"; - } - COM: <s> will delete algorithm </s> - diff --git a/funcom_test/34604973.txt b/funcom_test/34604973.txt deleted file mode 100644 index e96dcb49625fdc88b2060d88944d874065c56dbf..0000000000000000000000000000000000000000 --- a/funcom_test/34604973.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void deleteCascade(VyhladavaciAlgoritmus algorithm) { - //searcheds - getHibernateTemplate().bulkUpdate( - "DELETE Searched WHERE algorithm = ?", - new Object[] { algorithm } ); - //plans - getHibernateTemplate().bulkUpdate( - "DELETE SearchPlan WHERE algorithm = ?", - new Object[] { algorithm } ); - //prefs - getHibernateTemplate().bulkUpdate( - "DELETE SearchPrefs WHERE algorithm = ?", - new Object[] { algorithm } ); - //categories - getHibernateTemplate().bulkUpdate( - "DELETE SearchCategory WHERE algorithm = ?", - new Object[] { algorithm } ); - delete(algorithm); - } - COM: <s> will delete algorithm and also references to it cascadely in tables </s> - diff --git a/funcom_test/34605059.txt b/funcom_test/34605059.txt deleted file mode 100644 index 1262c1c69382d91554c16875f52f5c9ccb702665..0000000000000000000000000000000000000000 --- a/funcom_test/34605059.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean saveNewPonuka(Ponuka ponuka, byte[] binaryData) { - List<Ponuka> withSameAlias = getDao().findPonukaByAlias(ponuka.getAlias()); - if (!withSameAlias.isEmpty()) return false; - - BinaryObject bObject = new BinaryObject(); - bObject.setData(binaryData); - getBinaryObjectDao().save(bObject); - ponuka.setForm(bObject); - getDao().save(ponuka); - return true; - } - COM: <s> saves new faxova ponuka </s> - diff --git a/funcom_test/34605079.txt b/funcom_test/34605079.txt deleted file mode 100644 index dd8312af0cf418c65f4ea27dfc9c13d3cb90c628..0000000000000000000000000000000000000000 --- a/funcom_test/34605079.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String makeTypeString(String type) { - String result = ""; - boolean learn = true; - for (int i = 0; i < type.length(); i++) { - char ch = type.charAt(i); - if (Character.isLetter(ch)) - learn = true; - else { - if (learn) - result += "-"; - learn = false; - } - if (learn) - result += ch; - } - if (result.charAt(result.length() - 1) == '-') - result = result.substring(0, result.length() - 1); - return result.toLowerCase(); - } - COM: <s> returns type string for generating type name in url from category type </s> - diff --git a/funcom_test/34605089.txt b/funcom_test/34605089.txt deleted file mode 100644 index f49b7913d4f7411365f2a0f21d622cc6b791be14..0000000000000000000000000000000000000000 --- a/funcom_test/34605089.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String authentificate() { - UserService service = ServiceLocator.getInstance().getUserService(); - setUser( - service.authetificateUser(getUsername(), getPassword()) - ); - - if (getUser()==null) { - LOG.info("User authentification for "+getUsername()+" with pwd "+ getPassword() +" failed."); - return "failed"; - } - LOG.info("User "+getUser().getLogin()+" authentificated."); - return "ok"; - } - COM: <s> user authentification entry point </s> - diff --git a/funcom_test/34608966.txt b/funcom_test/34608966.txt deleted file mode 100644 index fb29bb9bcdb74a00170b3c8f9cdb5745eed81a67..0000000000000000000000000000000000000000 --- a/funcom_test/34608966.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int compareTo(final Object o) { - if (o == null) { - return 1; - } else { - AnalysisResult ar = (AnalysisResult) o; - if (accuracy == ar.getAccuracy()) { - return form.compareTo(ar.getForm()); - } else { - return - Double.compare(accuracy, ar.getAccuracy()); - } - } - } - COM: <s> compares this analysis result with another one </s> - diff --git a/funcom_test/34608970.txt b/funcom_test/34608970.txt deleted file mode 100644 index 428d1eacc3dd4197226595e8feabfcf7a987ed5a..0000000000000000000000000000000000000000 --- a/funcom_test/34608970.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int hashCode() { - int hash = HASH1; - hash = HASH2 * hash + (this.form != null ? this.form.hashCode() : 0); - hash = HASH2 * hash + (int) (Double.doubleToLongBits(this.accuracy) - ^ (Double.doubleToLongBits(this.accuracy) >>> HASH3)); - return hash; - } - COM: <s> return a hash code of this object </s> - diff --git a/funcom_test/34608986.txt b/funcom_test/34608986.txt deleted file mode 100644 index c019ae8182ce93600afca1f7d4466b07e51484d9..0000000000000000000000000000000000000000 --- a/funcom_test/34608986.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setSymbol(final String newSymbol) { - if (newSymbol == null) { - throw new NullPointerException("The [newSymbol] argument cannot be null."); - } - if (newSymbol.trim().length() == 0) { - throw new IllegalArgumentException("The [newSymbol] argument cannot be empty."); - } - symbol = newSymbol; - } - COM: <s> sets a new value for a symbol which represents this category </s> - diff --git a/funcom_test/34609006.txt b/funcom_test/34609006.txt deleted file mode 100644 index 15e9afccecb81ca17e5cbba9a14ff5a4cdc99b12..0000000000000000000000000000000000000000 --- a/funcom_test/34609006.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString() { - StringBuffer res = new StringBuffer(); - for (final Iterator it = list.iterator(); it.hasNext();) { - if (res.length() > 0) { - res.append(MARK_SEPARATOR); - } - res.append(it.next().toString()); - } - return res.toString(); - } - COM: <s> returns a string representation of the grammatical properties </s> - diff --git a/funcom_test/34609027.txt b/funcom_test/34609027.txt deleted file mode 100644 index 84543e712aacdd6dfc4c7fcff57be918b55b47a4..0000000000000000000000000000000000000000 --- a/funcom_test/34609027.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void write(final DataOutputStream out) throws IOException { - TagsetStreamPacker.writeString(symbol, out); - TagsetStreamPacker.writeStringsMap(names, out); - TagsetStreamPacker.writeStringsMap(descriptions, out); - TagsetStreamPacker.writeStringArrayMap(examples, out); - } - COM: <s> writes this object into the given data output stream </s> - diff --git a/funcom_test/34609041.txt b/funcom_test/34609041.txt deleted file mode 100644 index e19d1353f9b63e637317538f30d12400409a52d9..0000000000000000000000000000000000000000 --- a/funcom_test/34609041.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void writeObject(final ObjectOutputStream out) throws IOException { - out.writeShort(id); - out.writeByte((byte) list.size()); - for (final Iterator it = list.iterator(); it.hasNext();) { - GrammaticalProperties gp = (GrammaticalProperties) it.next(); - out.writeShort(gp.getId()); - } - } - COM: <s> writes this object into the given output stream </s> - diff --git a/funcom_test/34609094.txt b/funcom_test/34609094.txt deleted file mode 100644 index be57fbc96c6ebe27dd49238f26599c502615c840..0000000000000000000000000000000000000000 --- a/funcom_test/34609094.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean covers(GrammaticalProperties properties) { - for (final Iterator it = properties.getTags().iterator(); it.hasNext();) { - GrammaticalTag tag = (GrammaticalTag) it.next(); - if (!tags.containsKey(tag.getSymbol())) { - return false; - } - } - return true; - } - COM: <s> checks if this grammatical properties contains all tags represented by the given properties </s> - diff --git a/funcom_test/34609120.txt b/funcom_test/34609120.txt deleted file mode 100644 index c8d0abf9be7dc3a87ce1bd3f3ecdc067d3f4cdf6..0000000000000000000000000000000000000000 --- a/funcom_test/34609120.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getAllStemmers(final Locale locale) { - if (locale == null) { - throw new IllegalArgumentException("The 'locale' argument cannot be null."); - } - List result = (List) stemmers.get(locale); - if (result == null) { - result = Collections.EMPTY_LIST; - } - return result; - } - COM: <s> returns a list of all available stemmers for the given language </s> - diff --git a/funcom_test/34609151.txt b/funcom_test/34609151.txt deleted file mode 100644 index 33f8e808a28ab4678115caa7d2b55b49a715de95..0000000000000000000000000000000000000000 --- a/funcom_test/34609151.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Stemmer getMostAccurateStemmer(final Locale locale) throws MorphologyException { - if (locale == null) { - throw new IllegalArgumentException("The 'loc' argument cannot be null."); - } - Stemmer component = (Stemmer) mostAccurateStemmers.get(locale); - if (component == null) { - throw new MorphologyException("Cannot find stemmer for locales : " + locale.toString()); - } - return component; - } - COM: <s> returns the most accurate stemmer for the given language </s> - diff --git a/funcom_test/34609190.txt b/funcom_test/34609190.txt deleted file mode 100644 index 57a03e94c2bb7be61eeee35b60740c1a1b7fb9b8..0000000000000000000000000000000000000000 --- a/funcom_test/34609190.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getAllLemmatizers(final Locale locale) { - if (locale == null) { - throw new IllegalArgumentException("The 'locale' argument cannot be null."); - } - List result = (List) lemmatizers.get(locale); - if (result == null) { - result = Collections.EMPTY_LIST; - } - return result; - } - COM: <s> returns a list of all available lemmatizers for the given language </s> - diff --git a/funcom_test/34609211.txt b/funcom_test/34609211.txt deleted file mode 100644 index c2ce79e289abf8477cf4bd5849c1c1cf3dd20a59..0000000000000000000000000000000000000000 --- a/funcom_test/34609211.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Lemmatizer getMostAccurateLemmatizer(final Locale locale) throws MorphologyException { - if (locale == null) { - throw new IllegalArgumentException("The 'loc' argument cannot be null."); - } - Lemmatizer component = (Lemmatizer) mostAccurateLemmatizers.get(locale); - if (component == null) { - throw new MorphologyException("Cannot find lemmatizer for locales : " + locale.toString()); - } - return component; - } - COM: <s> returns the most accurate lemmatizer for the given language </s> - diff --git a/funcom_test/34609219.txt b/funcom_test/34609219.txt deleted file mode 100644 index 607f23c1fbdf86fa4e3c16597b16f6c62904a5bd..0000000000000000000000000000000000000000 --- a/funcom_test/34609219.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Lemmatizer getFastestLemmatizer(final Locale locale) throws MorphologyException { - if (locale == null) { - throw new IllegalArgumentException("The 'loc' argument cannot be null."); - } - Lemmatizer component = (Lemmatizer) fastestLemmatizers.get(locale); - if (component == null) { - throw new MorphologyException("Cannot find lemmatizer for locales : " + locale.toString()); - } - return component; - } - COM: <s> returns the fastest lemmatizer for the given language </s> - diff --git a/funcom_test/34609234.txt b/funcom_test/34609234.txt deleted file mode 100644 index 48c3d32fc9e42db4c5368e24160b1f7942b6d51b..0000000000000000000000000000000000000000 --- a/funcom_test/34609234.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void write(java.io.Writer out, String encoding) throws java.io.IOException { - out.write("<?xml version='1.0'"); // NOI18N - if (encoding != null) - out.write(" encoding='"+encoding+"'"); // NOI18N - out.write(" ?>\n"); // NOI18N - writeNode(out, "tagset", ""); // NOI18N - } - COM: <s> print this java bean to </s> - diff --git a/funcom_test/34609240.txt b/funcom_test/34609240.txt deleted file mode 100644 index 83cff873f0e1e860ac06f17d108b8147ad9024d2..0000000000000000000000000000000000000000 --- a/funcom_test/34609240.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getAllMorphologicalAnalysers(final Locale locale) { - if (locale == null) { - throw new IllegalArgumentException("The 'locale' argument cannot be null."); - } - List result = (List) analysiers.get(locale); - if (result == null) { - result = Collections.EMPTY_LIST; - } - return result; - } - COM: <s> returns a list of all available morphological analysers for the given language </s> - diff --git a/funcom_test/34609290.txt b/funcom_test/34609290.txt deleted file mode 100644 index 05e0848fefe5469253bd380fa4d5fc2d1f023950..0000000000000000000000000000000000000000 --- a/funcom_test/34609290.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testGetStem() throws Exception { - System.out.println("getStem"); - Stemmer stemmer = DefaultMorphologyFactory.getInstance().getStemmer(Locale.ENGLISH, "name", "TestStemmer"); - assertEquals("test_1", stemmer.getStem("test")); - } - COM: <s> test of get stem method of class abstract stemmer </s> - diff --git a/funcom_test/34609309.txt b/funcom_test/34609309.txt deleted file mode 100644 index 34de7e034788099da1bbac25bbf3d53206beebd7..0000000000000000000000000000000000000000 --- a/funcom_test/34609309.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetMark() { - System.out.println("getMark"); - Tagset tagset = createTagset(); - String mark = "tag_1.1:tag_3.2:tag_2.1"; - GrammaticalPropertiesImpl instance = new GrammaticalPropertiesImpl(mark, tagset); - assertEquals(mark, instance.getMark()); - } - COM: <s> test of get mark method of class grammatical properties impl </s> - diff --git a/funcom_test/34609313.txt b/funcom_test/34609313.txt deleted file mode 100644 index 6ae010e9b2cc3e6aabd76ed14dc083eebe8a4368..0000000000000000000000000000000000000000 --- a/funcom_test/34609313.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testGetForm() { - System.out.println("getForm"); - AnalysisResultImpl instance = new AnalysisResultImpl(); - String expResult = ""; - String result = instance.getForm(); - assertEquals(expResult, result); - - expResult = "test123"; - instance = new AnalysisResultImpl(expResult, 0); - result = instance.getForm(); - assertEquals(expResult, result); - - } - COM: <s> test of get form method of class analysis result impl </s> - diff --git a/funcom_test/34609324.txt b/funcom_test/34609324.txt deleted file mode 100644 index 4301980f6e219c428c59743f5f56bba22368ced3..0000000000000000000000000000000000000000 --- a/funcom_test/34609324.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public List getAllGenerators(final Locale locale) { - if (locale == null) { - throw new IllegalArgumentException("The 'locale' argument cannot be null."); - } - List result = (List) generators.get(locale); - if (result == null) { - result = Collections.EMPTY_LIST; - } - return result; - } - COM: <s> returns a list of all available generators for the given language </s> - diff --git a/funcom_test/34609342.txt b/funcom_test/34609342.txt deleted file mode 100644 index 63099617b4363b200458ddd50df224576ffeabf7..0000000000000000000000000000000000000000 --- a/funcom_test/34609342.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public WordFormGenerator getMostAccurateGenerator(final Locale locale) throws MorphologyException { - if (locale == null) { - throw new IllegalArgumentException("The 'loc' argument cannot be null."); - } - WordFormGenerator component = (WordFormGenerator) mostAccurateGenerators.get(locale); - if (component == null) { - throw new MorphologyException("Cannot find generator for locales : " + locale.toString()); - } - return component; - } - COM: <s> returns the most accurate generator for the given language </s> - diff --git a/funcom_test/34609355.txt b/funcom_test/34609355.txt deleted file mode 100644 index 48b98dc84a68d0318b58b5eaa845f16c5618cd57..0000000000000000000000000000000000000000 --- a/funcom_test/34609355.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public WordFormGenerator getFastestGenerator(final Locale locale) throws MorphologyException { - if (locale == null) { - throw new IllegalArgumentException("The 'loc' argument cannot be null."); - } - WordFormGenerator component = (WordFormGenerator) fastestGenerators.get(locale); - if (component == null) { - throw new MorphologyException("Cannot find generator for locales : " + locale.toString()); - } - return component; - } - COM: <s> returns the fastest generator for the given language </s> - diff --git a/funcom_test/34609440.txt b/funcom_test/34609440.txt deleted file mode 100644 index 9d2f7aff53a478bde51c8a90f53fa2793ef713dc..0000000000000000000000000000000000000000 --- a/funcom_test/34609440.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addChild(TreeNode child) { - if (children == null) { - children = child; - } else if (children instanceof ObjectTreeNode) { - ArrayList tmp = new ArrayList(2); - tmp.add(children); - tmp.add(child); - children = tmp; - } else { - ((List) children).add(child); - } - } - COM: <s> adds the given node to the end of a list of children nodes </s> - diff --git a/funcom_test/34609468.txt b/funcom_test/34609468.txt deleted file mode 100644 index 79262fba9cb92ccc83c3104b7527f8553385d3a2..0000000000000000000000000000000000000000 --- a/funcom_test/34609468.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void compact() { - int bitIndex = (size() - 1) * numberOfBits; - int pos = bitIndex >> INDEX_SHIFT; - pos++; - if (pos < data.length - 1) { - long[] newData = new long[pos + 1]; - System.arraycopy(data, 0, newData, 0, pos + 1); - data = newData; - } - } - COM: <s> reduces the size of a backing array to the minimum possible size </s> - diff --git a/funcom_test/34609551.txt b/funcom_test/34609551.txt deleted file mode 100644 index 77f1eecbedb14173c8ae45e6df56f1eaa66e6db1..0000000000000000000000000000000000000000 --- a/funcom_test/34609551.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected CoderResult decodeLoop(final ByteBuffer in, final CharBuffer out) { - DynamicCharset cs = (DynamicCharset) charset(); - while (in.remaining() > 0) { - if (out.remaining() == 0) { - return CoderResult.OVERFLOW; - } else { - out.put(cs.fastDecode(in.get())); - } - } - return CoderResult.UNDERFLOW; - } - COM: <s> decodes one or more bytes into one or more characters </s> - diff --git a/funcom_test/34609554.txt b/funcom_test/34609554.txt deleted file mode 100644 index 5b0987b6952e7b0ee203670c11bdd0ef19f5d3a3..0000000000000000000000000000000000000000 --- a/funcom_test/34609554.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected CoderResult encodeLoop(final CharBuffer in, final ByteBuffer out) { - DynamicCharset cs = (DynamicCharset) charset(); - while (in.remaining() > 0) { - if (out.remaining() == 0) { - return CoderResult.OVERFLOW; - } else { - out.put(cs.fastEncode(in.get())); - } - } - return CoderResult.UNDERFLOW; - } - COM: <s> encodes one or more characters into one or more bytes </s> - diff --git a/funcom_test/34609612.txt b/funcom_test/34609612.txt deleted file mode 100644 index bc8a60fe1a677b6abebebb41ad5d3e68bc6a2909..0000000000000000000000000000000000000000 --- a/funcom_test/34609612.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void getChars(final byte[] a, final int srcBegin, final int srcEnd, final char[] dst, final int dstBegin) { - int dstPos = dstBegin; - for (int i = srcBegin; i < srcEnd; i++, dstPos++) { - dst[dstPos] = this.byte2char[a[i] & TO_BYTE]; - } - } - COM: <s> decodes bytes from the given bytes array into the destination characters array </s> - diff --git a/funcom_test/34609640.txt b/funcom_test/34609640.txt deleted file mode 100644 index bfb9a0aff2ed9ff0c7ab583feea5f28b58ac3c9f..0000000000000000000000000000000000000000 --- a/funcom_test/34609640.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testNewEncoder() { - final DynamicCharset cs = new DynamicCharset("testNewEncoder", new String[0]); - cs.registerCharset(); - cs.encode("abc"); - cs.setChangable(false); - CharsetEncoder encoder = cs.newEncoder(); - assertNotNull(encoder); - assertEquals(cs, encoder.charset()); - } - COM: <s> test of new encoder method of class org </s> - diff --git a/funcom_test/34609660.txt b/funcom_test/34609660.txt deleted file mode 100644 index d1c87ec1372cff3df959da2762109b4082714ecd..0000000000000000000000000000000000000000 --- a/funcom_test/34609660.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void registerCharset() { - DynamicCharsetProvider.registerCharset(this); - // we should call these to clear the fast cache of the buggy Charset implementation - Charset.forName("US-ASCII"); - Charset.forName("ISO-8859-1"); - Charset.forName("UTF-8"); - } - COM: <s> registers this charset in the dynamic charset provider </s> - diff --git a/funcom_test/34609666.txt b/funcom_test/34609666.txt deleted file mode 100644 index fbaf89758067c54bc5fdb9bee7b742bb64012bc8..0000000000000000000000000000000000000000 --- a/funcom_test/34609666.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void unregisterCharset() { - DynamicCharsetProvider.unregisterCharset(this); - // we should call these to clear the fast cache of the buggy Charset implementation - Charset.forName("US-ASCII"); - Charset.forName("ISO-8859-1"); - Charset.forName("UTF-8"); - } - COM: <s> unregisters this charset from the dynamic charset provider </s> - diff --git a/funcom_test/34609812.txt b/funcom_test/34609812.txt deleted file mode 100644 index 192135f3b028f1867705cda4b13f52fca1fcb893..0000000000000000000000000000000000000000 --- a/funcom_test/34609812.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void readObject(final ObjectInputStream s) throws IOException, ClassNotFoundException { - s.defaultReadObject(); - final int length = s.readInt(); - // The new string will be compact. - hashLength = -1; - expand(length); - s.readFully(array, 0, length); - } - COM: <s> reads a mutable string in serialised form </s> - diff --git a/funcom_test/34609827.txt b/funcom_test/34609827.txt deleted file mode 100644 index 6ea7d5f91dc7aece5631ac4de7204898e6c3ec5b..0000000000000000000000000000000000000000 --- a/funcom_test/34609827.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean equals(final Object o) { - if (o == this) { - return true; - } else if (o == null) { - return false; - } else if (o instanceof MutableString) { - return equals((MutableString) o); - } else if (o instanceof String) { - return equals((String) o); - } else if (o instanceof CharSequence) { - return equals((CharSequence) o); - } else { - return false; - } - } - COM: <s> compares this mutable string to the specified object </s> - diff --git a/funcom_test/34610051.txt b/funcom_test/34610051.txt deleted file mode 100644 index 4b4390ad3934ae71e9c226f7f594ed6c9c9bb451..0000000000000000000000000000000000000000 --- a/funcom_test/34610051.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean startsWith(final MutableString prefix) { - final int l = prefix.length(); - if (l > length()) { - return false; - } - int i = l; - final byte[] a1 = prefix.array; - final byte[] a2 = array; - while (i-- != 0) { - if (a1[i] != a2[i]) { - return false; - } - } - return true; - } - COM: <s> returns whether this mutable string starts with the given mutable string </s> - diff --git a/funcom_test/34610109.txt b/funcom_test/34610109.txt deleted file mode 100644 index d218040ae499214ade751d003f671eb96c297ce5..0000000000000000000000000000000000000000 --- a/funcom_test/34610109.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean endsWith(final MutableString suffix) { - final int l = suffix.length(); - int length = length(); - if (l > length) { - return false; - } - int i = l; - final byte[] a1 = suffix.array; - final byte[] a2 = array; - while (i-- != 0) { - if (a1[i] != a2[--length]) { - return false; - } - } - return true; - } - COM: <s> returns whether this mutable string ends with the given mutable string </s> - diff --git a/funcom_test/34610231.txt b/funcom_test/34610231.txt deleted file mode 100644 index 441ba08a7678bc9e850a41e7bd2d78c269356e6a..0000000000000000000000000000000000000000 --- a/funcom_test/34610231.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public MutableString append(final MutableString s) { - final int l = s.length(); - if (l == 0) { - return this; - } - final int newLength = length() + l; - expand(newLength); - System.arraycopy(s.array, 0, array, newLength - l, l); - hashLength = hashLength < 0 ? -1 : newLength; - return this; - } - COM: <s> appends the given mutable string to this mutable string </s> - diff --git a/funcom_test/34610434.txt b/funcom_test/34610434.txt deleted file mode 100644 index 8fed94837aa517f897cc72efa5271ea14fd66e97..0000000000000000000000000000000000000000 --- a/funcom_test/34610434.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public MutableString insert(final int pos, final byte b) { - final int l = length(); - expand(l + 1); - System.arraycopy(array, pos, array, pos + 1, l - pos); - array[pos] = b; - hashLength = hashLength < 0 ? -1 : l + 1; - return this; - } - COM: <s> inserts the given character code to this mutable string at the given position </s> - diff --git a/funcom_test/34835908.txt b/funcom_test/34835908.txt deleted file mode 100644 index 4a69425b54c1fadc87cc285290f9ae057fcc1332..0000000000000000000000000000000000000000 --- a/funcom_test/34835908.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void characters(char[] ch, int start, int length) { - // By default tableExists will be true. When tables to import are provided - // by the user - process only when table name in available in the xml file. - // else do not proceed. - if (tableExists && tempVal != null) { - - // read the data and append it to the string buffer - tempVal.append(new String(ch, start, length)); - } - } - COM: <s> this method will be invoked by the saxparser when any data is available </s> - diff --git a/funcom_test/34835922.txt b/funcom_test/34835922.txt deleted file mode 100644 index 76f794061ffb548f45f08cd2f45b6eac79296fa9..0000000000000000000000000000000000000000 --- a/funcom_test/34835922.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean equalsIgnoreCase(Object obj) { - DbTable other = (DbTable) obj; - if (name == null || other.name == null) { - return super.equals(obj); - } - if (name.equalsIgnoreCase(other.name)) { - if (schema == null && other.schema == null) { - return true; - } - if (schema != null) { - return schema.equalsIgnoreCase(other.schema); - } - } - return false; - } - COM: <s> same as equal but ingores case </s> - diff --git a/funcom_test/34835933.txt b/funcom_test/34835933.txt deleted file mode 100644 index 2a87c269a1f3c0ec369bfb5b064ef830d417ade5..0000000000000000000000000000000000000000 --- a/funcom_test/34835933.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void endTable() { - try{ - fop.write(("</rowset>\r\n").getBytes()); - fop.write(( "</dbtable>\r\n").getBytes()); - } catch(IOException e) { - throw new RuntimeException("IOException has occured at endTable!!!!", e); - } - } - COM: <s> this dispatch is used for end table information </s> - diff --git a/funcom_test/34835936.txt b/funcom_test/34835936.txt deleted file mode 100644 index 544dfb656be759ee7766445d20bd75969c0f7fda..0000000000000000000000000000000000000000 --- a/funcom_test/34835936.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void endExport() { - try{ - fop.write(("</dbexport>\r\n").getBytes()); - //flush the entire object. - fop.flush(); - //Object is closing here. - fop.close(); - } catch(IOException e) { - throw new RuntimeException("IO Exception has occured at endExport!!!!", e); - } - } - COM: <s> this dispatch is used for end export information </s> - diff --git a/funcom_test/34835992.txt b/funcom_test/34835992.txt deleted file mode 100644 index 0388982541330dc1b000f642dc0ca30024f3c9c0..0000000000000000000000000000000000000000 --- a/funcom_test/34835992.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected String getTableString(DbTable table) { - StringBuffer str = new StringBuffer(); - if (supportsSchemaInTableName && table.getSchema() != null) { - str.append(table.getSchema()); - str.append("."); - } - str.append(table.getName()); - return str.toString(); - } - COM: <s> helper gets table name with or w o schema </s> - diff --git a/funcom_test/34836052.txt b/funcom_test/34836052.txt deleted file mode 100644 index d39d24402e1daae759dbe5b1aafff87bd17e2544..0000000000000000000000000000000000000000 --- a/funcom_test/34836052.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getColumnName(ResultSetMetaData md, int i) throws SQLException { - String colName = md.getColumnName(i); - String colLabel = md.getColumnLabel(i); - if (colLabel != null && !colLabel.equals("")) { - return colLabel; - } - return colName; - } - COM: <s> get the column name </s> - diff --git a/funcom_test/34836123.txt b/funcom_test/34836123.txt deleted file mode 100644 index 2257f72dbb7634ad01fe0dfbd6a382bfe91277e5..0000000000000000000000000000000000000000 --- a/funcom_test/34836123.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private ColDesc addColumn(TableDesc ti, Attributes atts) - { - String name = atts.getValue("name"); // get the col attributes - String type = atts.getValue("type"); - String sqltype = atts.getValue("sqltype"); - String scale = atts.getValue("scale"); - String precision= atts.getValue("precision"); - - ColDesc c = new ColDesc(name, type, sqltype, scale, precision); - ti.add(c); // add new ColDesc to ti vector - return c; - } - COM: <s> private helper to add a col desc object to table info vector </s> - diff --git a/funcom_test/34902879.txt b/funcom_test/34902879.txt deleted file mode 100644 index 0ae82e9e24890222175506ab812aa98ea8504684..0000000000000000000000000000000000000000 --- a/funcom_test/34902879.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public Object readObject() throws IOException { - if (readBoolean()) { - return null; - } - Marshaller m = null; - String name = readUTF(); - Object o = MarshallerRegistry.getInstance().getUnmarshaller(name); - if (o instanceof Marshaller) { - m = (Marshaller) o; - } else { - try { - Class clazz = Class.forName(name); - m = (Marshaller) clazz.newInstance(); - } catch (Exception e) { - throw new IOException("Don't know how to deserialize " + name); - } - } - return m.unmarshall(name, this); - } - COM: <s> reads an object from code this code stream </s> - diff --git a/funcom_test/34967853.txt b/funcom_test/34967853.txt deleted file mode 100644 index fd3cdcc5bdb6df849aee3db50502bd20541ffe8a..0000000000000000000000000000000000000000 --- a/funcom_test/34967853.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: final public T get(final int first) { - java.util.List<T> list = getList(); - if (first>=list.size()){ - growTo(first+1); // size if 0 -> add one, makes size 1 and index 0 available - } - // may be at end of generated sequence - if (first>=list.size()){ - throw new NoSuchElementException("get of "+first+" is more than the "+list.size()+" elements in the list"); - } - - return list.get(first); - } - COM: <s> makes a best effort to take this position from this list </s> - diff --git a/funcom_test/34985241.txt b/funcom_test/34985241.txt deleted file mode 100644 index 1fca0b4a4e1c5cc5ca274584c69fe4fa61015055..0000000000000000000000000000000000000000 --- a/funcom_test/34985241.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void treeLogWidgetSelected(SelectionEvent evt) { - //System.out.println("treeLog.widgetSelected, event="+evt); - if (((TreeItem)evt.item).getData() != null) { - currentSelectionURL = "" + ((TreeItem)evt.item).getData(); //$NON-NLS-1$ - } else { - currentSelectionURL = ""; //$NON-NLS-1$ - } - } - COM: <s> set the global current selection url to the uri of whatever </s> - diff --git a/funcom_test/34987704.txt b/funcom_test/34987704.txt deleted file mode 100644 index 117dc4a865771ee70690a57df688d5e46b346cef..0000000000000000000000000000000000000000 --- a/funcom_test/34987704.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void start(String pid_file_path) throws Exception { - File pidfile = new File(pid_file_path); - if (pidFileHelper.pidExists(pidfile)) {// 检查进程ID是否存在 - log.info("QuartzServer already started."); - } else { - - if (serverDaemon == null) { - init(); - } - Method method = serverDaemon.getClass().getMethod("start", - new Class[] { String.class }); - method.invoke(serverDaemon, new Object[] { pid_file_path }); - } - } - COM: <s> start the quartz server demo </s> - diff --git a/funcom_test/35009603.txt b/funcom_test/35009603.txt deleted file mode 100644 index f6e1f5816b507e0afd64735df501e9c638fbb9d8..0000000000000000000000000000000000000000 --- a/funcom_test/35009603.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public RecordIterator listRecords() throws FileNotFoundException, Exception { - List<Record> listRecords = null; - boolean writeToDisk = true; - RecordIterator rec; - - if(useHarvestFromFile) - writeToDisk = false; - - if(writeToDisk) { - listRecords = listRecords("",null,null,null); - writeOnDisk(listRecords); - while(true) { - if(hasResumptionToken) { - listRecords = listRecords(this.resumptionToken,null,null,null); - } - else - { - writeOnDisk(listRecords); - break; - } - } - } - rec = new RecordIterator(getMD5Filename(baseUrl)); - return rec; - } - COM: <s> harvest all the </s> - diff --git a/funcom_test/3501107.txt b/funcom_test/3501107.txt deleted file mode 100644 index 75aab998e3fac15923313ff89ec842a781df0371..0000000000000000000000000000000000000000 --- a/funcom_test/3501107.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testClose() throws IOException { - System.out.println("testClose"); - - cin.close(); - assertFalse("Close on in Conduit failed!", cin.isOpen()); - cout.close(); - assertFalse("Close on out Conduit failed!", cout.isOpen()); - } - COM: <s> test of close method of class com </s> - diff --git a/funcom_test/3501441.txt b/funcom_test/3501441.txt deleted file mode 100644 index 58121ad2a7654701647e5ad06e8bb53a6140e4e8..0000000000000000000000000000000000000000 --- a/funcom_test/3501441.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean gettingLock(Object lockObj) { - Thread t = Thread.currentThread(); - StackTraceElement ste = new Throwable().fillInStackTrace().getStackTrace()[1]; - logger.logp(Level.FINEST, ste.getClassName(), ste.getMethodName(), - t+" attempting to aquire lock on \"{0}\"", lockObj); - return true; - } - COM: <s> log lock aquisition attempt </s> - diff --git a/funcom_test/3501450.txt b/funcom_test/3501450.txt deleted file mode 100644 index cae549292a6227b4b5be4277378b16fae5180da9..0000000000000000000000000000000000000000 --- a/funcom_test/3501450.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean gotLock(Object lockObj) { - Thread t = Thread.currentThread(); - StackTraceElement ste = new Throwable().fillInStackTrace().getStackTrace()[1]; - logger.logp(Level.FINEST, ste.getClassName(), ste.getMethodName(), - t+" successfully aquired lock on \"{0}\"", lockObj); - return true; - } - COM: <s> log successful lock aquisition </s> - diff --git a/funcom_test/3501475.txt b/funcom_test/3501475.txt deleted file mode 100644 index 2ffb8e3ccaa4a0c9244d8910d6311b79c0f858e5..0000000000000000000000000000000000000000 --- a/funcom_test/3501475.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean releasedLock(Object lockObj) { - Thread t = Thread.currentThread(); - StackTraceElement ste = new Throwable().fillInStackTrace().getStackTrace()[1]; - logger.logp(Level.FINEST, ste.getClassName(), ste.getMethodName(), - t+" released lock on \"{0}\"", lockObj); - return true; - } - COM: <s> log lock release </s> - diff --git a/funcom_test/35033074.txt b/funcom_test/35033074.txt deleted file mode 100644 index 7522040e46024edafaf5f4a8fa183ebd02725ce2..0000000000000000000000000000000000000000 --- a/funcom_test/35033074.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void validateFile(byte[] data) throws DecryptionFailedException { - int minSize = OFFSET_HEADER + 32 + LENGTH_EOF + LENGTH_HMAC; - if (data.length < minSize || (data.length - 8) % 16 != 0 - || !"PWS3".equals(tag(data))) { - throw new DecryptionFailedException("The data is not a valid " - + "PasswordSafe v3 database"); - } - } - COM: <s> checks the data length and for the pws3 tag </s> - diff --git a/funcom_test/35059460.txt b/funcom_test/35059460.txt deleted file mode 100644 index 97c112b2d306a20feae4a267a1d7d653a803948b..0000000000000000000000000000000000000000 --- a/funcom_test/35059460.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: static public PuzzleListFilter canEditPuzzleFilter( UserInfo userInfo ) throws Exception { - PuzzleListFilter filter = new PuzzleListFilterBasic(); - filter.setType( Type.PUZZLE_ONLY ); - filter.addStatus( Status.PRIVATE ); - if( userInfo == null ) - throw new Exception( "Invalid user" ); - if( userInfo.isAdministrator() ) - return filter; - filter.setAuthorEmail( userInfo.getEmail() ); - - return filter; - } - COM: <s> creates a jdo filter to retrieve editable puzzles </s> - diff --git a/funcom_test/35059622.txt b/funcom_test/35059622.txt deleted file mode 100644 index b737c9a41398df36fd425a002d4f0b2990a4524a..0000000000000000000000000000000000000000 --- a/funcom_test/35059622.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addLink(String groupName, AutoLink link) throws Exception { - - for (Iterator<LinkGroup> iterator = linkGroups.iterator(); iterator.hasNext();) { - LinkGroup linkGroup = iterator.next(); - if( linkGroup.getName() == groupName ) { - linkGroup.addLink( link ); - setChanged(); - return; - } - } - - throw new Exception( "Group with name \"" + groupName + "\" not found!" ); - - } - COM: <s> adds a link to a specific group must call update observers </s> - diff --git a/funcom_test/35059632.txt b/funcom_test/35059632.txt deleted file mode 100644 index ef480ee63bdbb4c41f8ecd11379152df3f15749f..0000000000000000000000000000000000000000 --- a/funcom_test/35059632.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void loadCurrentUserInfo(ConnectionLock connectionLock) { - UserInfoServiceAsync userService = ServiceFactory.getUserInfoService(); - userService.loadCurrentUser( new AsyncCallbackLock<UserInfo>(connectionLock){ - @Override - public void onFailure(Throwable caught) { - caught.printStackTrace(); - super.onFailure(caught); - } - @Override - public void onSuccess(UserInfo result) { - if( result != null ) { - setUserInfo( result ); - notifyObservers(); - } - super.onSuccess(result); - } - }); - } - COM: <s> extract all the information on the currently logged in user from the server </s> - diff --git a/funcom_test/35059635.txt b/funcom_test/35059635.txt deleted file mode 100644 index f8a18dba68cd48a4c97b0c05e127a3e8ed7cb7e6..0000000000000000000000000000000000000000 --- a/funcom_test/35059635.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean isRoomAreaValid(Recti roomArea) throws Exception { - if( !isValidRect(roomArea) ) - throw new Exception( "Invalid room area" ); - - for (Iterator<Room> iterator = rooms.iterator(); iterator.hasNext();) { - Room room = iterator.next(); - if( room.getRoomArea().overlap(roomArea) ) { - return false; - } - } - - return true; - } - COM: <s> make sure the proposed room can be added to the model </s> - diff --git a/funcom_test/35059642.txt b/funcom_test/35059642.txt deleted file mode 100644 index a3d7848ea51a53b1e90848999f3bc621b9f8107c..0000000000000000000000000000000000000000 --- a/funcom_test/35059642.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private PuzzleInfo loadPuzzleForced(String puzzleInfoKey) { - final PersistenceManager pm = PMF.get().getPersistenceManager(); - PuzzleInfo puzzleInfo = null; - PuzzleInfoJdo jdo = null; - try { - jdo = pm.getObjectById(PuzzleInfoJdo.class, puzzleInfoKey); - puzzleInfo = new PuzzleInfo(); - jdo.to( puzzleInfo, true ); - } catch( Exception exception ) { - exception.printStackTrace(); - return null; - } finally { - pm.close(); - } - return puzzleInfo; - } - COM: <s> a method that loads a puzzle without checking user capabilities </s> - diff --git a/funcom_test/35059643.txt b/funcom_test/35059643.txt deleted file mode 100644 index b8c26ea0964fda605ecef842516b253246508e65..0000000000000000000000000000000000000000 --- a/funcom_test/35059643.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void modifyUser(final UserInfo userInfo, final AsyncCallback<Integer> callback) { - UserInfoServiceAsync userService = ServiceFactory.getUserInfoService(); - userService.modifyUser( userInfo, new AsyncCallback<Integer>() { - @Override - public void onFailure(Throwable caught) { - callback.onFailure(caught); - } - @Override - public void onSuccess(Integer result) { - if( result == UserInfo.ErrorFlags.SUCCESS ) { - setUserInfo( userInfo ); - notifyObservers(); - } - callback.onSuccess(result); - } }); - } - COM: <s> modify user profile in the database </s> - diff --git a/funcom_test/35059663.txt b/funcom_test/35059663.txt deleted file mode 100644 index 79b4c38be9cfed049c85ab8a1553ed4f64038b05..0000000000000000000000000000000000000000 --- a/funcom_test/35059663.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private UserInfo createUserInfo() { - - if( !checkApplyEnabled() ) return null; - - UserInfo userInfo = new UserInfo(); - userInfo.setEmail( currentUserInfo.getEmail() ); - userInfo.setNickname( nicknameField.getEntry() ); - userInfo.setFirstname( firstnameField.getEntry() ); - userInfo.setLastname( lastnameField.getEntry() ); - userInfo.setAdministrator( currentUserInfo.isAdministrator() ); - - return userInfo; - } - COM: <s> creates the user info based on the content of the text boxes </s> - diff --git a/funcom_test/35059666.txt b/funcom_test/35059666.txt deleted file mode 100644 index 5d575c434bb2b9fa9ae7a9d2a9234efc3e8c8363..0000000000000000000000000000000000000000 --- a/funcom_test/35059666.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private HistoryInfo loadHistoryForced( String historyInfoKey ) { - final PersistenceManager pm = PMF.get().getPersistenceManager(); - HistoryInfo historyInfo = null; - HistoryInfoJdo historyJdo = null; - try{ - historyJdo = pm.getObjectById(HistoryInfoJdo.class, historyInfoKey ); - historyInfo = new HistoryInfo(); - historyJdo.to( historyInfo, true ); - } - catch( Exception exception ) { - exception.printStackTrace(); - return null; - } - finally { - pm.close(); - } - - return historyInfo; - - } - COM: <s> a method that loads a history without checking user capabilities </s> - diff --git a/funcom_test/35059669.txt b/funcom_test/35059669.txt deleted file mode 100644 index 0b2126700a97409fedd728265597922fbe4e33d5..0000000000000000000000000000000000000000 --- a/funcom_test/35059669.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Room findRoomAt(Vec2i cellLoc) throws Exception { - if( !isValidCell(cellLoc) ) - throw new Exception( "Invalid cell location" ); - - for (Iterator<Room> iterator = rooms.iterator(); iterator.hasNext();) { - Room room = iterator.next(); - if( room.getRoomArea().contains(cellLoc) ) { - return room; - } - } - - return null; - } - COM: <s> identify the room containing a given cell </s> - diff --git a/funcom_test/35059739.txt b/funcom_test/35059739.txt deleted file mode 100644 index 4a76544e83042e3918922a25ea5af2907f0f0728..0000000000000000000000000000000000000000 --- a/funcom_test/35059739.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void selectTab( int tabNumber ) { - - if( selectedTab >= 0 && selectedTab < tabBar.getWidgetCount() ) - tabBar.getWidget( selectedTab ).removeStyleDependentName( "selected" ); - selectedTab = -1; - - if( tabNumber < 0 || tabNumber >= tabBar.getWidgetCount() ) - return; - - selectedTab = tabNumber; - tabBar.getWidget( selectedTab ).addStyleDependentName( "selected" ); - } - COM: <s> selects a give tab currently selected tab will be deselected </s> - diff --git a/funcom_test/35059749.txt b/funcom_test/35059749.txt deleted file mode 100644 index 934489884fd8250e1a8b92bf4e0783c606bee80f..0000000000000000000000000000000000000000 --- a/funcom_test/35059749.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void selectRow(int row) { - // When a row (other than the first one, which is used as a header) is - // selected, display its associated MailItem. - int elementIndex = startIndex + row; - - styleRow(selectedRow, false); - if( row != -1 && elementIndex < getListCount() ) { - styleRow(row, true); - selectedRow = row; - } - else - selectedRow = -1; - } - COM: <s> selects the given row relative to the current page </s> - diff --git a/funcom_test/35059756.txt b/funcom_test/35059756.txt deleted file mode 100644 index 1fc72e972aa16f9fe7c3bc01f3e38b3f4d30eb9f..0000000000000000000000000000000000000000 --- a/funcom_test/35059756.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void styleRow(int row, boolean selected) { - if (row != -1) { - if (selected) { - table.getRowFormatter().addStyleName(row + 1, getStylePrefix()+"-SelectedRow"); - } else { - table.getRowFormatter().removeStyleName(row + 1, getStylePrefix()+"-SelectedRow"); - } - } - } - COM: <s> change the style of the row to reflect a selection </s> - diff --git a/funcom_test/35059757.txt b/funcom_test/35059757.txt deleted file mode 100644 index b6c9e3d52fbfcf27e2a1a49aa712b0349931d68a..0000000000000000000000000000000000000000 --- a/funcom_test/35059757.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void deletePuzzle( int puzzleIndex ) { - PuzzleInfo puzzleInfo = puzzleList.getPuzzle( puzzleIndex ); - if( !Window.confirm( "Really delete " + puzzleInfo.getGenre() + - " puzzle \"" + puzzleInfo.getTitle() + "\"? This action cannot be undone!" ) ) - return; - - puzzleList.deletePuzzle( puzzleIndex ); - puzzleList.notifyObservers(); - } - COM: <s> performs the deletion of a specific puzzle </s> - diff --git a/funcom_test/35060076.txt b/funcom_test/35060076.txt deleted file mode 100644 index 425d12c95cde57329f933001de3b12cb18151673..0000000000000000000000000000000000000000 --- a/funcom_test/35060076.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setPuzzleKey(String puzzleKey) { - if( (puzzleKey == null && this.puzzleKey != null) || - !puzzleKey.equals( this.puzzleKey ) || - tutorial ) { - tutorial = false; - this.puzzleKey = puzzleKey; - puzzleInfo = null; - historyInfo = null; - setChanged(); - - if( puzzleKey != null ) { - PuzzleServiceAsync puzzleService = ServiceFactory.getPuzzleService(); - refreshing = true; - puzzleService.loadPuzzle( puzzleKey, puzzleInfoCallback ); - } - } - } - COM: <s> associates a puzzle key with this model </s> - diff --git a/funcom_test/35060080.txt b/funcom_test/35060080.txt deleted file mode 100644 index f7f40d8d771b02d53f7b2cb8699dcc82c58534ed..0000000000000000000000000000000000000000 --- a/funcom_test/35060080.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setTutorialPuzzleKey(String puzzleKey) { - if( (puzzleKey == null && this.puzzleKey != null ) || - !puzzleKey.equals( this.puzzleKey ) || - !tutorial ) { - tutorial = true; - this.puzzleKey = puzzleKey; - puzzleInfo = null; - setChanged(); - - if( puzzleKey != null ) { - PuzzleServiceAsync puzzleService = ServiceFactory.getPuzzleService(); - refreshing = true; - puzzleService.loadTutorial( puzzleKey, tutorialInfoCallback ); - } - } - } - COM: <s> associates a puzzle key for a tutorial with this model </s> - diff --git a/funcom_test/35060082.txt b/funcom_test/35060082.txt deleted file mode 100644 index 56989a99abb0551bb120186fa6667f6e9a214fd0..0000000000000000000000000000000000000000 --- a/funcom_test/35060082.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void reload() { - if( puzzleKey == null || puzzleInfo == null || isRefreshing() ) - return; - - puzzleInfo = null; - setChanged(); - - PuzzleServiceAsync puzzleService = ServiceFactory.getPuzzleService(); - refreshing = true; - if( tutorial ) - puzzleService.loadTutorial( puzzleKey, tutorialInfoCallback ); - else - puzzleService.loadPuzzle( puzzleKey, puzzleInfoCallback ); - } - COM: <s> forces a reload of the puzzle information </s> - diff --git a/funcom_test/35060253.txt b/funcom_test/35060253.txt deleted file mode 100644 index 5c7a169c7fadf40739b664026879b1032245b654..0000000000000000000000000000000000000000 --- a/funcom_test/35060253.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private HorizontalPanel createRatingPanel( String image, int max ) { - final HorizontalPanel panel = new HorizontalPanel(); - final RatingDisplay rating = new RatingDisplay(image); - rating.setRating( 0 ); - rating.setMax( max ); - rating.updateDisplay(); - final Label label = new Label( getRatingLabel( 0, max ) ); - - - panel.add( rating ); - panel.add( label ); - return panel; - } - COM: <s> creates a panel presenting a rating both graphically and textually </s> - diff --git a/funcom_test/35060317.txt b/funcom_test/35060317.txt deleted file mode 100644 index 8d5f584c0ae44dddf46e41ef2c0d8ce4a0df6851..0000000000000000000000000000000000000000 --- a/funcom_test/35060317.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void updateHistory(Object arg) { - - if( arg instanceof HistoryMoveAddMove ) { - HistoryMoveAddMove moveAddMove = (HistoryMoveAddMove)arg; - if( !moveAddMove.anyMoveDeleted() && moveAddMove.getTime() != MoveImpl.NO_TIME ) - addNode( moveAddMove.getPuzzleMove() ); - else - recreateAllNodes(); - updateNodesPos(); - } - else if( !(arg instanceof HistoryMoveChangeTime) ) { - recreateAllNodes(); - updateNodesPos(); - } - - super.updateHistory(arg); - } - COM: <s> called whenever history has been updated </s> - diff --git a/funcom_test/35060345.txt b/funcom_test/35060345.txt deleted file mode 100644 index cbc962c76300c22c2b8e66a986d84ceeafadca49..0000000000000000000000000000000000000000 --- a/funcom_test/35060345.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void connectToBridge(int direction, Bridge bridge) throws Exception { - if( bridge == null ) throw new Exception( "Connecting to null bridge (use disconnectFromBridge instead)" ); - checkDirection(direction); - if( bridges[direction] != null ) throw new Exception( "Bridge already present, cannot connect" ); - bridge.connectTo( this ); - bridges[direction] = bridge; - } - COM: <s> connect the island to a bridge in the specified direction </s> - diff --git a/funcom_test/35060368.txt b/funcom_test/35060368.txt deleted file mode 100644 index 5a20b8f97b509b3fd27cedc021fd16be055776bb..0000000000000000000000000000000000000000 --- a/funcom_test/35060368.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void addIsland( Vec2i loc, int value, MoveList moveList ) throws Exception { - - Island island = new Island( loc, value ); - try { - removeIsland( loc, moveList ); - } - catch( Exception exception ) {} - - assert !usageMap[loc.x][loc.y]; - - islands.put( loc, island ); - usageMap[loc.x][loc.y] = true; - moveList.addMove( new MoveAddIsland(loc,value) ); - } - COM: <s> adds an island at the specified location and appends to the move list </s> - diff --git a/funcom_test/35060375.txt b/funcom_test/35060375.txt deleted file mode 100644 index d0295bd457024040293841e3a397214a36588d69..0000000000000000000000000000000000000000 --- a/funcom_test/35060375.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void removeIsland( Vec2i loc, MoveList moveList ) throws Exception { - - Island island = islands.get(loc); - if( island == null ) throw new Exception( "Removing unexisting island" ); - removeAllBridges( island, loc, moveList ); - - islands.remove(loc); - usageMap[loc.x][loc.y] = false; - moveList.addMove( new MoveRemoveIsland(loc, island.getValue()) ); - } - COM: <s> removes an island at the specified location and appends to the move </s> - diff --git a/funcom_test/35060390.txt b/funcom_test/35060390.txt deleted file mode 100644 index 19ab5fc4ad9f0de537e9ef6624e01fa02121e3f4..0000000000000000000000000000000000000000 --- a/funcom_test/35060390.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void loadSiteInfo(final ConnectionLock connectionLock ) { - SettingsServiceAsync settingsService = ServiceFactory.getSettingsService(); - settingsService.loadSiteInfo( new AsyncCallbackLock<SiteInfo>(connectionLock){ - @Override - public void onFailure(Throwable caught) { - caught.printStackTrace(); - super.onFailure(caught); - } - @Override - public void onSuccess(SiteInfo result) { - if( result != null ) { - setSiteInfo( result ); - notifyObservers(); - } - super.onSuccess(result); - } - }); - } - COM: <s> extract all the site information from the server </s> - diff --git a/funcom_test/35060410.txt b/funcom_test/35060410.txt deleted file mode 100644 index 4a22c768379d56591483537580db0ba07a0a6eea..0000000000000000000000000000000000000000 --- a/funcom_test/35060410.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void modifySiteInfo(final SiteInfo siteInfo, final AsyncCallback<Boolean> callback) { - SettingsServiceAsync settingsService = ServiceFactory.getSettingsService(); - settingsService.modifySiteInfo( siteInfo, new AsyncCallback<Boolean>() { - @Override - public void onFailure(Throwable caught) { - callback.onFailure(caught); - } - @Override - public void onSuccess(Boolean result) { - if( result ) { - setSiteInfo( siteInfo ); - notifyObservers(); - } - callback.onSuccess(result); - } - } ); - - } - COM: <s> modify the site information </s> - diff --git a/funcom_test/35060411.txt b/funcom_test/35060411.txt deleted file mode 100644 index 56106b76b8a7e9f3d0ba5eb6cace6e74ec85929b..0000000000000000000000000000000000000000 --- a/funcom_test/35060411.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void removeBridgeNoCheck(Bridge bridge, Vec2i from, Vec2i to, MoveList moveList) throws Exception { - bridge.disconnect(); - bridges.remove( bridge ); - drawLineInUsageMap( from, to, false ); - moveList.addMove( new MoveRemoveBridge(from, to, bridge.getValue()) ); - } - COM: <s> remove a bridge but does not perform any sanity check </s> - diff --git a/funcom_test/35060421.txt b/funcom_test/35060421.txt deleted file mode 100644 index ef98ffd54353d5d93f23fc3407ef73b9efdb4b78..0000000000000000000000000000000000000000 --- a/funcom_test/35060421.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setPuzzleView( SGViewImpl puzzleView ) throws Exception { - if( this.puzzleView != null ) - throw new Exception( "Puzzle widget can only be set once" ); - - this.puzzleView = puzzleView; - puzzlePanel.add( puzzleView ); - resizePuzzleView( new Vec2i( puzzlePanel.getOffsetWidth(), puzzlePanel.getOffsetHeight()) ); - puzzleModel = puzzleView.getPuzzleModel(); - puzzleModel.addObserver(this); - } - COM: <s> adds the puzzle no waiting screen is displayed </s> - diff --git a/funcom_test/35060426.txt b/funcom_test/35060426.txt deleted file mode 100644 index 4a2aab0c488257111faa2d4155a4a9ebc93ea89c..0000000000000000000000000000000000000000 --- a/funcom_test/35060426.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void removeAllBridges(Island island, Vec2i loc, MoveList moveList) throws Exception { - for( int i=0; i<4; ++i ) { - Bridge bridge = island.getBridge(i); - if( bridge != null ) { - Island other = bridge.getOtherIsland( island ); - removeBridgeNoCheck( bridge, loc, other.getLoc(), moveList ); - } - } - } - COM: <s> removes all the bridges connected to an island and populates the move </s> - diff --git a/funcom_test/35060474.txt b/funcom_test/35060474.txt deleted file mode 100644 index d9493060ac68e68326ce179063210927a07bc389..0000000000000000000000000000000000000000 --- a/funcom_test/35060474.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private SiteInfo createSiteInfo() { - - if( !checkApplyEnabled() ) return null; - - SiteInfo siteInfo = new SiteInfo(); - siteInfo.setSiteName( siteNameField.getEntry() ); - siteInfo.setSiteDescription( siteDescriptionField.getEntry() ); - siteInfo.setWelcomeMessage( welcomeMessage.getText() ); - - return siteInfo; - } - COM: <s> creates the site info based on the content of the text boxes </s> - diff --git a/funcom_test/35060528.txt b/funcom_test/35060528.txt deleted file mode 100644 index c7298bbcd24edbcede7f97aa8d18bd2006393a77..0000000000000000000000000000000000000000 --- a/funcom_test/35060528.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setTime( int markerPosX ) { - if( markerPosX < 0 || markerPosX >= barWidth ) - return; - try { - HistoryMove move = history.setTime(convertBarPosXtoTime(markerPosX), puzzleModel); - puzzleModel.notifyObservers( move.getPuzzleMove() ); - history.notifyObservers( move ); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> set the time to an arbitrary value </s> - diff --git a/funcom_test/35060572.txt b/funcom_test/35060572.txt deleted file mode 100644 index 76e39b5c9ca0a588b127220e8a212e51943813a0..0000000000000000000000000000000000000000 --- a/funcom_test/35060572.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: static public boolean canEditPuzzle( UserInfo userInfo, PuzzleInfo puzzleInfo ) { - if( puzzleInfo.isTutorial() ) - return false; - if( userInfo == null || puzzleInfo.getStatus() != Status.PRIVATE ) - return false; - if( userInfo.isAdministrator() ) - return true; - return userInfo.getEmail().equals( puzzleInfo.getAuthorEmail() ); - } - COM: <s> check if the given puzzle can be edited by the given user </s> - diff --git a/funcom_test/35060588.txt b/funcom_test/35060588.txt deleted file mode 100644 index 9f1f2ccb24376198d6b23601e05fbeef65888dc1..0000000000000000000000000000000000000000 --- a/funcom_test/35060588.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: static public boolean canEditTutorial( UserInfo userInfo, PuzzleInfo puzzleInfo ) { - if( !puzzleInfo.isTutorial() ) - return false; - if( userInfo == null || puzzleInfo.getStatus() != Status.PRIVATE ) - return false; - if( userInfo.isAdministrator() ) - return true; - return userInfo.getEmail().equals( puzzleInfo.getAuthorEmail() ); - } - COM: <s> check if the given tutorial can be edited by the given user </s> - diff --git a/funcom_test/35060620.txt b/funcom_test/35060620.txt deleted file mode 100644 index 8c506140043647c79dd07863267231513c05febb..0000000000000000000000000000000000000000 --- a/funcom_test/35060620.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void fromSizeString(String sizeString) { - - String[] result = sizeString.split( "x" ); - if( result.length != 2 ) { - x = -1; - y = -1; - } - try { - x = Integer.parseInt(result[0]); - y = Integer.parseInt(result[1]); - } - catch( Exception e ) { - x = -1; - y = -1; - } - - } - COM: <s> updates this vec2i based on the passed size string x </s> - diff --git a/funcom_test/35060665.txt b/funcom_test/35060665.txt deleted file mode 100644 index a3854b224c3e46e9801237d0887fc3b628ad359d..0000000000000000000000000000000000000000 --- a/funcom_test/35060665.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void changeMarkerLocation() { - int posY; - float ratio = (value-minValue) / (maxValue-minValue); - if( ratio < 0 ) - ratio = 0; - else if( ratio > 1 ) - ratio = 1; - int posX = BAR_MARGIN_X - MARKER_WIDTH/2 + (int)(ratio * barWidth); - - posY = (BAR_CONTAINER_HEIGHT - MARKER_HEIGHT)/2; - barContainer.setWidgetPosition( marker, posX, posY ); - } - COM: <s> updates the marker location </s> - diff --git a/funcom_test/35060674.txt b/funcom_test/35060674.txt deleted file mode 100644 index 78d7050935fa63ac69d3f666cf3e85aa04be4971..0000000000000000000000000000000000000000 --- a/funcom_test/35060674.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void setValue(int markerPosX) { - if( markerPosX < 0 || markerPosX >= barWidth ) - return; - - float ratio = (float)markerPosX / barWidth; - float newValue = ratio * (maxValue - minValue) + minValue; - if( newValue == value ) - return; - value = newValue; - changeMarkerLocation(); - try { - observable.setFloatValue( value ); - } catch (Exception e) { - e.printStackTrace(); - } - observable.notifyObservers(); - } - COM: <s> changes the value given the new position of the marker </s> - diff --git a/funcom_test/35060705.txt b/funcom_test/35060705.txt deleted file mode 100644 index 94d5d0ba742b8ac614e8d8eb0ed55854f381c40c..0000000000000000000000000000000000000000 --- a/funcom_test/35060705.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void clearStates() { - if( gridSize == null || gridSize.x < 0 || gridSize.y < 0 ) - states = null; - else { - states = new int[gridSize.x][gridSize.y]; - for (int i = 0; i < states.length; i++) { - Arrays.fill( states[i], defaultState ); - } - } - } - COM: <s> clear all the states do not generate a move </s> - diff --git a/funcom_test/35060838.txt b/funcom_test/35060838.txt deleted file mode 100644 index 782ac7fee6ca3d08516abf7880572adc3ed7d305..0000000000000000000000000000000000000000 --- a/funcom_test/35060838.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void createStringWidget( String style ) { - AbsolutePanel topPanel = new AbsolutePanel(); - VerticalPanel panel = new VerticalPanel(); - panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); - panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); - label = new Label(); - if( style != null ) label.setStylePrimaryName( style ); - panel.add( label ); - topPanel.add( panel ); - setWidget(topPanel); - } - COM: <s> create the initial system of widget for the string </s> - diff --git a/funcom_test/35060889.txt b/funcom_test/35060889.txt deleted file mode 100644 index 6ffb9ffea48ade07e87d9f80a4a385a947150f85..0000000000000000000000000000000000000000 --- a/funcom_test/35060889.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void updateHighlight() throws Exception { - if( lastStartCorner.equals(startCorner) && - lastOppositeCorner.equals(oppositeCorner) ) - return; - - if( lastStartCorner.x != -1 ) - highlighter.unhighlightCells( lastStartCorner, lastOppositeCorner ); - - if( startCorner.x != -1 ) - highlighter.highlightCells( startCorner, oppositeCorner ); - - lastStartCorner.copy(startCorner); - lastOppositeCorner.copy(oppositeCorner); - } - COM: <s> delete old highlighted rectangle draw the newly highlighted rectangle </s> - diff --git a/funcom_test/35061399.txt b/funcom_test/35061399.txt deleted file mode 100644 index 218ee3edbb67627122332e8e30821df9ae60e7c5..0000000000000000000000000000000000000000 --- a/funcom_test/35061399.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void leaveAll( MouseEvent<? extends EventHandler> event ) { - LocInfo locInfo = new LocInfo(); - assert( !locInfo.isVertexLocValid() ); - assert( !locInfo.isVerticalEdgeLocValid() ); - assert( !locInfo.isHorizontalEdgeLocValid() ); - assert( !locInfo.isCellLocValid() ); - handleLeaveEvents( locInfo, event ); - lastLocInfo.copy( locInfo ); - } - COM: <s> generate events to leave all components vertex edge or cell </s> - diff --git a/funcom_test/35102281.txt b/funcom_test/35102281.txt deleted file mode 100644 index d6c2727cf0ca30fcfc83df7ec53215a5e63b254d..0000000000000000000000000000000000000000 --- a/funcom_test/35102281.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - - jContentPane = new JPanel(); - jContentPane.setLayout(new BorderLayout()); - jContentPane.add(manager, BorderLayout.CENTER); - jContentPane.add(getJPanel(), BorderLayout.NORTH); - - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/35102286.txt b/funcom_test/35102286.txt deleted file mode 100644 index e80fbe101d803ef312d5bbc99662bc28a94028c7..0000000000000000000000000000000000000000 --- a/funcom_test/35102286.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JPanel getJPanel() { - if (jPanel == null) { - jPanel = new JPanel(); - jPanel.setLayout(new GridBagLayout()); - jPanel.add(getJButton(), new GridBagConstraints()); - jPanel.add(getJButton1(), new GridBagConstraints()); - } - return jPanel; - } - COM: <s> this method initializes j panel </s> - diff --git a/funcom_test/35102291.txt b/funcom_test/35102291.txt deleted file mode 100644 index efec86876832da972715b412f7eacf2b0641171d..0000000000000000000000000000000000000000 --- a/funcom_test/35102291.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getJButton() { - if (jButton == null) { - jButton = new JButton(); - jButton.setText("Clear Selection"); - jButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - manager.leereAuswahl(); - } - }); - } - return jButton; - } - COM: <s> this method initializes j button </s> - diff --git a/funcom_test/35102302.txt b/funcom_test/35102302.txt deleted file mode 100644 index 9927efc7d8659bbdc88a1e39217af81832142711..0000000000000000000000000000000000000000 --- a/funcom_test/35102302.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getJButton1() { - if (jButton1 == null) { - jButton1 = new JButton(); - jButton1.setText("Select All"); - jButton1.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - manager.waehleAlleAus(); - } - }); - } - return jButton1; - } - COM: <s> this method initializes j button1 </s> - diff --git a/funcom_test/35102398.txt b/funcom_test/35102398.txt deleted file mode 100644 index 9fe7438e2e822334b92a313dbb20c75bb513be62..0000000000000000000000000000000000000000 --- a/funcom_test/35102398.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void init() { - popupCanceled = false; - - this.addPopupMenuListener(new PopupMenuListener() { - public void popupMenuCanceled(PopupMenuEvent e) { - canceled(); - } - public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { - invisible(); - } - public void popupMenuWillBecomeVisible(PopupMenuEvent e) { - visible(); - } - }); - } - COM: <s> initialisiert dieses my combo box object </s> - diff --git a/funcom_test/35102451.txt b/funcom_test/35102451.txt deleted file mode 100644 index 21ef64139d154e05d2fe69b159ff6b5c63f1ed01..0000000000000000000000000000000000000000 --- a/funcom_test/35102451.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getBSuchen() { - if (bSuchen == null) { - bSuchen = new JButton(); - bSuchen.setText("Suchen"); - bSuchen.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - hauptfenster.sucheNach(gibSuchtext(), 0); - } - }); - } - return bSuchen; - } - COM: <s> this method initializes b suchen </s> - diff --git a/funcom_test/35102490.txt b/funcom_test/35102490.txt deleted file mode 100644 index ad49da69b66e4253e7e2862230dfba3defdf7fd8..0000000000000000000000000000000000000000 --- a/funcom_test/35102490.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void close() throws java.io.IOException { - // write final boundary - out.write(PREFIX.getBytes()); - out.write(boundary.getBytes()); - out.write(PREFIX.getBytes()); - out.write(NEWLINE.getBytes()); - out.flush(); - out.close(); - } - COM: <s> closes the stream </s> - diff --git a/funcom_test/35102607.txt b/funcom_test/35102607.txt deleted file mode 100644 index b280f70de07a5b30c59c0b5675066856153c4bcd..0000000000000000000000000000000000000000 --- a/funcom_test/35102607.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getPAnzahlen() { - if (pAnzahlen == null) { - pAnzahlen = new JPanel(); - pAnzahlen.setLayout(new FlowLayout()); - pAnzahlen.add(lAnzahl, null); - pAnzahlen.add(lSlash, null); - pAnzahlen.add(lGesamtanzahl, null); - } - return pAnzahlen; - } - COM: <s> this method initializes p anzahlen </s> - diff --git a/funcom_test/35102703.txt b/funcom_test/35102703.txt deleted file mode 100644 index 38d35477facc3bbba74da9616f3489b99000d825..0000000000000000000000000000000000000000 --- a/funcom_test/35102703.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JTabbedPane getTpGroszanzeige() { - if (tpGroszanzeige == null) { - tpGroszanzeige = new JTabbedPane(); - tpGroszanzeige.setBackground(new Color(238, 238, 238)); - tpGroszanzeige - .addTab("Gro\u00dfanzeige", null, getSpGroszanzeige(), null); - tpGroszanzeige.addTab("Zusatzdetails", null, getSpZusatzdetails(), null); - } - return tpGroszanzeige; - } - COM: <s> this method initializes tp groszanzeige </s> - diff --git a/funcom_test/35102710.txt b/funcom_test/35102710.txt deleted file mode 100644 index 33d001fcdf24c964af2c19fe5088d9142285ec68..0000000000000000000000000000000000000000 --- a/funcom_test/35102710.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private void printToFile(org.w3c.dom.Document dom, String file) { - - try { - // print - OutputFormat format = new OutputFormat(dom); - format.setIndenting(true); - - // to generate output to console use this serializer - // XMLSerializer serializer = new XMLSerializer(System.out, format); - - // to generate a file output use fileoutputstream instead of - // system.out - XMLSerializer serializer = new XMLSerializer(new FileOutputStream( - new File(file)), format); - - serializer.serialize(dom); - - } catch (IOException ie) { - logger.log(Level.WARNING, - "Ablumdatei konnte nicht erstellt werden.", ie); - } - } - COM: <s> this method uses xerces specific classes prints the xml document to file </s> - diff --git a/funcom_test/35102761.txt b/funcom_test/35102761.txt deleted file mode 100644 index 8a9c2734ee2a51e35cb3dae75177af4e099bdeee..0000000000000000000000000000000000000000 --- a/funcom_test/35102761.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JScrollPane getSpGroszanzeige() { - if (spGroszanzeige == null) { - spGroszanzeige = new JScrollPane(); - spGroszanzeige - .setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER); - spGroszanzeige - .setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); - spGroszanzeige.setViewportView(getPGroszanzeige()); - } - return spGroszanzeige; - } - COM: <s> this method initializes sp groszanzeige </s> - diff --git a/funcom_test/35102851.txt b/funcom_test/35102851.txt deleted file mode 100644 index 3114429edd3ce5f68e6cd87acc34ee3522ac2427..0000000000000000000000000000000000000000 --- a/funcom_test/35102851.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenu getMDatei() { - if (mDatei == null) { - mDatei = new JMenu(); - mDatei.setText("Datei"); - mDatei.setMnemonic(KeyEvent.VK_D); - mDatei.add(getMiImport()); - mDatei.add(getMiImportDir()); - mDatei.add(getMiBeenden()); - } - return mDatei; - } - COM: <s> this method initializes m datei </s> - diff --git a/funcom_test/35102892.txt b/funcom_test/35102892.txt deleted file mode 100644 index a61772fbd400a807ffea51b35b0d7246cffd65ee..0000000000000000000000000000000000000000 --- a/funcom_test/35102892.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JSplitPane getSpAnzeige() { - if (spAnzeige == null) { - spAnzeige = new JSplitPane(); - spAnzeige.setOneTouchExpandable(true); - spAnzeige.setDividerSize(TRENNBALKEN_GROESZE); - spAnzeige.setRightComponent(getPThumbnailSteuerung()); - spAnzeige.setLeftComponent(getSpVorschauBildinfo()); - } - return spAnzeige; - } - COM: <s> this method initializes j split pane </s> - diff --git a/funcom_test/35103154.txt b/funcom_test/35103154.txt deleted file mode 100644 index ba1cdc54fd9c970a505e297dbff586379b7f6352..0000000000000000000000000000000000000000 --- a/funcom_test/35103154.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Vorschaupanel getPVorschau() { - - if (pVorschau == null) { - pVorschau = new Vorschaupanel(); - pVorschau.setLayout(new GridBagLayout()); - pVorschau.setName("pVorschau"); - pVorschau.setMinimumSize(new Dimension(10, (int) Toolkit - .getDefaultToolkit().getScreenSize().getHeight() / 4)); - } - return pVorschau; - } - COM: <s> this method initializes p vorschau </s> - diff --git a/funcom_test/35103722.txt b/funcom_test/35103722.txt deleted file mode 100644 index 7667d526a01f594c0b044185caef6f84dab38187..0000000000000000000000000000000000000000 --- a/funcom_test/35103722.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JPanel getPBildinformationen() { - if (pBildinformationen == null) { - pBildinformationen = new JPanel(); - pBildinformationen.setLayout(new BorderLayout()); - pBildinformationen.add(getPBilddetails(), BorderLayout.NORTH); - pBildinformationen.add(getSpBilddetails(), BorderLayout.CENTER); - } - return pBildinformationen; - } - COM: <s> this method initializes p bildinformationen </s> - diff --git a/funcom_test/35103754.txt b/funcom_test/35103754.txt deleted file mode 100644 index 1a7af966aec2e71489ce1d0d1a78423a41ce21ca..0000000000000000000000000000000000000000 --- a/funcom_test/35103754.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private BilddetailsPanel getPBilddetails() { - - if (pBilddetails == null) { - - pBilddetails = new BilddetailsPanel(this.getTBilddetails(), kern); - pBilddetails.addAenderungsListener(new AenderungsListener() { - public void valueChanged() { - pAlbum.refreshUI(); - } - }); - } - return pBilddetails; - } - COM: <s> this method initializes p bildinfo schluessel beschr </s> - diff --git a/funcom_test/35103835.txt b/funcom_test/35103835.txt deleted file mode 100644 index bd78482b11292e17a051b103bd635dbe6cabadb9..0000000000000000000000000000000000000000 --- a/funcom_test/35103835.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JScrollPane getSpBilddetails() { - if (spBilddetails == null) { - spBilddetails = new JScrollPane(); - spBilddetails.setBorder(BorderFactory.createTitledBorder(null, - "Bilddetails", TitledBorder.DEFAULT_JUSTIFICATION, - TitledBorder.DEFAULT_POSITION, null, null)); - spBilddetails.setViewportView(getTBilddetails()); - } - return spBilddetails; - } - COM: <s> this method initializes sp bilddetails </s> - diff --git a/funcom_test/35153125.txt b/funcom_test/35153125.txt deleted file mode 100644 index 9c77f580520568504404c7f2fe5114476a382217..0000000000000000000000000000000000000000 --- a/funcom_test/35153125.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public int read(DataInputStream is) { - init(); - if (is != null) { - in = is; - readHeader(); - if (!err()) { - readContents(); - if (frameCount < 0) { - status = STATUS_FORMAT_ERROR; - } - } - } else { - status = STATUS_OPEN_ERROR; - } - try { - is.close(); - } catch (IOException e) { - } - return status; - } - COM: <s> reads gif image from stream </s> - diff --git a/funcom_test/35153146.txt b/funcom_test/35153146.txt deleted file mode 100644 index e18cd9391e4c779c6268ef795a8968268073e2af..0000000000000000000000000000000000000000 --- a/funcom_test/35153146.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void expandNodePath(TreeNode node) { - if ((node instanceof Contact) && useGroups) { - Contact c = (Contact)node; - Protocol p = c.getProtocol(); - if (null != p) { - Group group = p.getGroupById(c.getGroupId()); - if (null != group) { - group.setExpandFlag(true); - } - } - } - } - COM: <s> build path to node int tree </s> - diff --git a/funcom_test/35153201.txt b/funcom_test/35153201.txt deleted file mode 100644 index ecf0533807deeb9aa7054f687a1f8296d523c789..0000000000000000000000000000000000000000 --- a/funcom_test/35153201.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void readHeader() { - String id = ""; - for (int i = 0; i < 6; i++) { - id += (char) read(); - } - if (!id.startsWith("GIF")) { - status = STATUS_FORMAT_ERROR; - return; - } - - readLSD(); - if (gctFlag && !err()) { - globalColorTable = readColorTable(gctSize); - bgColor = globalColorTable[bgIndex]; - } - } - COM: <s> reads gif file header information </s> - diff --git a/funcom_test/35153218.txt b/funcom_test/35153218.txt deleted file mode 100644 index 880134d18640378b985c9e058fe563aeb0ef230b..0000000000000000000000000000000000000000 --- a/funcom_test/35153218.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void readLSD() { - - // logical screen size - width = readShort(); - height = readShort(); - - // packed fields - int packed = read(); - gctFlag = (packed & 0x80) != 0; // 1 : global color table flag - // 2-4 : color resolution - // 5 : gct sort flag - gctSize = 2 << (packed & 0x07); // 6-8 : gct size - - bgIndex = read(); // background color index - pixelAspect = read(); // pixel aspect ratio - } - COM: <s> reads logical screen descriptor </s> - diff --git a/funcom_test/35228335.txt b/funcom_test/35228335.txt deleted file mode 100644 index 6fea61764e0df3d0a8a9891e3610245ec106b4c2..0000000000000000000000000000000000000000 --- a/funcom_test/35228335.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object parse(Reader reader, Map idmap) throws Exception { - Object swingui = null; - - try { - Document jdoc = saxbuilder.build(reader); // render xml file into jdom.document - swingui = parse(jdoc, idmap); - } catch (JDOMException e) { - System.err.println(e.getMessage()); - } - return swingui; - } - COM: <s> converts xml into a javax </s> - diff --git a/funcom_test/35228345.txt b/funcom_test/35228345.txt deleted file mode 100644 index e1631af8c1ace68cf64ffee59f1916d3787c28b5..0000000000000000000000000000000000000000 --- a/funcom_test/35228345.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object render(Reader xul_reader) { - root = null; - try { - root = Parser.getInstance().parse(xul_reader, idmap); - mapMembers(this); - } catch (Exception e) { - System.err.println(e.getMessage()); - e.printStackTrace(); - } - return root; - } - COM: <s> gets the parsing of the xul file started </s> - diff --git a/funcom_test/35228429.txt b/funcom_test/35228429.txt deleted file mode 100644 index 83b2533b2515821bd486069a97da2871f530a0e2..0000000000000000000000000000000000000000 --- a/funcom_test/35228429.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private Method getSetter(String name) { - if(setters == null) - populateSetters(); - - Method method = null; - Iterator it = setters.iterator(); - while (it != null && it.hasNext()) { - Method m = (Method) it.next(); - if (m.getName().equals(name)) { - method = m; - break; - } - } - return method; - } - COM: <s> returns a setter method by name </s> - diff --git a/funcom_test/35235931.txt b/funcom_test/35235931.txt deleted file mode 100644 index 14c3047954e688750bd00449b1f56d4fd217fedc..0000000000000000000000000000000000000000 --- a/funcom_test/35235931.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isIndexedmzML() { - // ToDo: find better way to check this? - // ToDo: maybe change log level in StandardXpathAccess class - // this check will log an ERROR if it is not an indexedmzML file, since we - // are trying to retrieve an entry that will not be in the XML - Iterator iter = index.getXmlStringIterator("/indexedmzML/indexList"); - return iter.hasNext(); - } - COM: <s> returns true of the mz ml file is indexed </s> - diff --git a/funcom_test/35239966.txt b/funcom_test/35239966.txt deleted file mode 100644 index f34c317a8f8146edf2bdec34b5312c391b14e549..0000000000000000000000000000000000000000 --- a/funcom_test/35239966.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void done() { - try { - File tempFile; - tempFile = new File("/", moduleName + ".done"); - tempFile.createNewFile(); - tempFile.deleteOnExit(); - } catch (Exception ex) { - java.util.logging.Logger.getLogger(Deployer.class.getName()).log(Level.SEVERE, null, ex); - } - } - COM: <s> after finish its starting send an singal to starter process </s> - diff --git a/funcom_test/35244949.txt b/funcom_test/35244949.txt deleted file mode 100644 index 435c174a47f2108edf38710242e47c4ba6de8d1d..0000000000000000000000000000000000000000 --- a/funcom_test/35244949.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void RemoveAll() { - Vector<CopyBook> vector2 = null; - try { - vector2 = getVectorCopyBookDisplay(); - } catch (SQLException ex) { - ex.printStackTrace(); - } - getVector().removeAll(vector2); - if (selectedIndex != 0) { - vectorComboBox.removeElementAt(selectedIndex); - refreshComboBox(); - } - } - COM: <s> remove all copies of book in form check in </s> - diff --git a/funcom_test/35244980.txt b/funcom_test/35244980.txt deleted file mode 100644 index a78179b5ed7022fcde7c284c53344284657ec5b4..0000000000000000000000000000000000000000 --- a/funcom_test/35244980.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ImageIcon resize(ImageIcon icon, int width, int height) { - int type = BufferedImage.TYPE_INT_ARGB; - BufferedImage dst = new BufferedImage(width, height, type); - Graphics2D g2 = dst.createGraphics(); - g2.drawImage(icon.getImage(), 0, 0, width, height, null); - g2.dispose(); - return new ImageIcon(dst); - } - COM: <s> resize image icon normal </s> - diff --git a/funcom_test/35245039.txt b/funcom_test/35245039.txt deleted file mode 100644 index fd71611ae283e0c4d4eb92e93c401115f3e5f020..0000000000000000000000000000000000000000 --- a/funcom_test/35245039.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setEmployeeSheet(Sheet sheet) { - columnName = new String[5]; - columnName[0] = "EmployeeID"; - columnName[1] = "Name"; - columnName[2] = "Address"; - columnName[3] = "Phone Number"; - columnName[4] = "Department "; - this.sheet = sheet; - } - COM: <s> set data for employee table </s> - diff --git a/funcom_test/35245167.txt b/funcom_test/35245167.txt deleted file mode 100644 index d53ff2a2e16a24a7925f3648eb335e12b206d42f..0000000000000000000000000000000000000000 --- a/funcom_test/35245167.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean deleteUser(String UserID) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call deleteUser(?)}"); - cs.setString(1, UserID); - int result = cs.executeUpdate(); - if (result != 1) { - return false; - } else { - return true; - } - } - COM: <s> delete a user on database </s> - diff --git a/funcom_test/35245225.txt b/funcom_test/35245225.txt deleted file mode 100644 index 8c333c3462025eeb0d6bf39cd5b16f5a874de413..0000000000000000000000000000000000000000 --- a/funcom_test/35245225.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberPageSearchUsers(String SearchContent) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getNumberPageSearchUsers(?)}"); - cs.setString(1, SearchContent); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberPages"); - } - return 0; - } - COM: <s> get number of pages of users </s> - diff --git a/funcom_test/35245262.txt b/funcom_test/35245262.txt deleted file mode 100644 index b38497b12643bda9dc414983d1dba1a8dfce344c..0000000000000000000000000000000000000000 --- a/funcom_test/35245262.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getNumberSearchUserResults(String searchContent) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getNumberSearchUserResults(?)}"); - cs.setString(1, searchContent); - ResultSet rs = cs.executeQuery(); - rs.next(); - return rs.getInt("NumberResults"); - } - COM: <s> get number of users after searching </s> - diff --git a/funcom_test/35245356.txt b/funcom_test/35245356.txt deleted file mode 100644 index 601341484318df09dd9d0b8e7590f5a3a03eb248..0000000000000000000000000000000000000000 --- a/funcom_test/35245356.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean deleteBook(String ISBN) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call deleteBook(?)}"); - cs.setString(1, ISBN); - int result = cs.executeUpdate(); - if (result == -1) { - return false; - } else { - return true; - } - } - COM: <s> delete a book on database </s> - diff --git a/funcom_test/35245391.txt b/funcom_test/35245391.txt deleted file mode 100644 index a77f9962c57afbde85c1099f23ea1ac663118f3c..0000000000000000000000000000000000000000 --- a/funcom_test/35245391.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean checkCallNumber() { - String CallNumbers[] = CallNumber.split("-"); - String First2AlphabetsOfTitle = title.substring(0, 2); - String First2AlphabetsOfAuthor = AuthorName.substring(0, 2); - if (!CallNumbers[0].equals(First2AlphabetsOfTitle)) { - return false; - } - if (!CallNumbers[1].equals(First2AlphabetsOfAuthor)) { - return false; - } - return true; - } - COM: <s> check the call number of book </s> - diff --git a/funcom_test/35245422.txt b/funcom_test/35245422.txt deleted file mode 100644 index 09fd41fc6e5dcc041da7a48bcc3f2f2ecc39b56c..0000000000000000000000000000000000000000 --- a/funcom_test/35245422.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setSelectedGroupBy(int SelectedGroupBy) throws SQLException { - this.SelectedGroupBy = SelectedGroupBy; - if (SelectedGroupBy == 5) { - this.OrderBy = "NumberOfLoan"; - } else { - this.OrderBy = ""; - } - refreshList(); - setSelectedGroupName(0); - } - COM: <s> set selected group by </s> - diff --git a/funcom_test/35245436.txt b/funcom_test/35245436.txt deleted file mode 100644 index 04be65ecbbb9a7f7af1f784670a45d95d8feaa7d..0000000000000000000000000000000000000000 --- a/funcom_test/35245436.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean addBook(Book book) throws SQLException { - if (this.isAdministrator()) { - if (isLogin()) { - if (book.checkData() && book.checkCallNumber()) { - boolean result = dq.addBook(book); - Book.refreshBookTable(); - return result; - } - } - } - return false; - } - COM: <s> add a book only administrator can add a book </s> - diff --git a/funcom_test/35245456.txt b/funcom_test/35245456.txt deleted file mode 100644 index 2a7900fb0a5751c62fc09d3e2be879a50ba58d2d..0000000000000000000000000000000000000000 --- a/funcom_test/35245456.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getTotalBooks() throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getTotalBooks()}"); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberResults"); - } - return 0; - } - COM: <s> get total of books </s> - diff --git a/funcom_test/35245486.txt b/funcom_test/35245486.txt deleted file mode 100644 index d81e66c6da810e1e74a4db86e12737a1f6386754..0000000000000000000000000000000000000000 --- a/funcom_test/35245486.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean deleteCopyBook(String CallNumber) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call deleteCopyBook(?)}"); - cs.setString(1, CallNumber); - int result = cs.executeUpdate(); - if (result == -1) { - return false; - } else { - return true; - } - } - COM: <s> delete a copy of book from database </s> - diff --git a/funcom_test/35245500.txt b/funcom_test/35245500.txt deleted file mode 100644 index f7678f44189686507f6cf8b56c14b6a58877b6d9..0000000000000000000000000000000000000000 --- a/funcom_test/35245500.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberPageCopiesBook(String ISBN) throws SQLException { - CallableStatement cs = conn.prepareCall("{call getNumberPageCopiesBook(?)}"); - cs.setString(1, ISBN); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberPage"); - } - return 0; - } - COM: <s> get number of page of copies book </s> - diff --git a/funcom_test/35245504.txt b/funcom_test/35245504.txt deleted file mode 100644 index a20afb8f2ec4d8b5c8672833294cf47853bad76d..0000000000000000000000000000000000000000 --- a/funcom_test/35245504.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberPageCopyBooks(String ISBN) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getNumberPageCopyBooks(?)}"); - cs.setString(1, ISBN); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberPages"); - } - return 0; - } - COM: <s> get number of pages of books copies </s> - diff --git a/funcom_test/35245516.txt b/funcom_test/35245516.txt deleted file mode 100644 index 4d3282d24cf837cebb37a7d79b2d31fab41ad50f..0000000000000000000000000000000000000000 --- a/funcom_test/35245516.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberCopyBooks(String ISBN) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getNumberCopyBooks(?)}"); - cs.setString(1, ISBN); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberCopies"); - } - return 0; - } - COM: <s> get number of books copies </s> - diff --git a/funcom_test/35245518.txt b/funcom_test/35245518.txt deleted file mode 100644 index 9ad67929899f071e6b510678267c5e9603576430..0000000000000000000000000000000000000000 --- a/funcom_test/35245518.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean deleteEmployee(String EmployeeID) throws SQLException { - CallableStatement cs = conn.prepareCall("{call deleteEmployee(?)}"); - cs.setString(1, EmployeeID); - int result = cs.executeUpdate(); - if (result != 1) { - return false; - } else { - return true; - } - } - COM: <s> delete a employee on database </s> - diff --git a/funcom_test/35245521.txt b/funcom_test/35245521.txt deleted file mode 100644 index f07e98add9926025375b7bf4114d9e47f240b809..0000000000000000000000000000000000000000 --- a/funcom_test/35245521.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getTotalCopyBooks() throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getTotalCopyBooks()}"); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberCopies"); - } - return 0; - } - COM: <s> get total of copies book </s> - diff --git a/funcom_test/35245531.txt b/funcom_test/35245531.txt deleted file mode 100644 index 274ee4b1fc61e2646fd7d9b92b87bb3d135bd38d..0000000000000000000000000000000000000000 --- a/funcom_test/35245531.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberPageSearchEmployeeByName(String SearchContent) throws SQLException { - CallableStatement cs = conn.prepareCall("{call getNumberPageSearchEmployeeByName(?)}"); - cs.setString(1, SearchContent); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberPage"); - } - return 0; - } - COM: <s> get number of page of search employee by name </s> - diff --git a/funcom_test/35245541.txt b/funcom_test/35245541.txt deleted file mode 100644 index 32a4ba9e03efb89a002867cdcb978884500155c9..0000000000000000000000000000000000000000 --- a/funcom_test/35245541.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberPageSearchEmployeeByEmployeeID(String SearchContent) throws SQLException { - CallableStatement cs = conn.prepareCall("{call getNumberPageSearchEmployeeByEmployeeID(?)}"); - cs.setString(1, SearchContent); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberPage"); - } - return 0; - } - COM: <s> get number of page of search employee by employee id </s> - diff --git a/funcom_test/35245596.txt b/funcom_test/35245596.txt deleted file mode 100644 index 97ca6d143a0461e9be4e2fccee5eccc9f6fc3156..0000000000000000000000000000000000000000 --- a/funcom_test/35245596.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberPageSearchEmployees(String searchContent) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getNumberPageSearchEmployees(?)}"); - cs.setString(1, searchContent); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberPages"); - } - return 0; - } - COM: <s> get number of page of employees after searching </s> - diff --git a/funcom_test/35245628.txt b/funcom_test/35245628.txt deleted file mode 100644 index fec319e1b1e589c8a55e68ba9ad519005f80e112..0000000000000000000000000000000000000000 --- a/funcom_test/35245628.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getNumberSearchEmployeeResults(String searchContent) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getNumberSearchEmployeeResults(?)}"); - cs.setString(1, searchContent); - ResultSet rs = cs.executeQuery(); - rs.next(); - return rs.getInt("NumberResults"); - } - COM: <s> get number of employees after searching </s> - diff --git a/funcom_test/35245662.txt b/funcom_test/35245662.txt deleted file mode 100644 index 25c2a49c79e52cf9c8d40b5607b47cc418a2e582..0000000000000000000000000000000000000000 --- a/funcom_test/35245662.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean checkInBook(String callNumber, Date returnDate) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call checkInBook(?,?)}"); - cs.setString(1, callNumber); - cs.setDate(2, returnDate); - int result = cs.executeUpdate(); - if (result != 1) { - return false; - } - return true; - } - COM: <s> check in book </s> - diff --git a/funcom_test/35245769.txt b/funcom_test/35245769.txt deleted file mode 100644 index cdaa1cf4eb32bf4980d4fc7fbff7670a8770e2ad..0000000000000000000000000000000000000000 --- a/funcom_test/35245769.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getTotalCheckedOut() throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call getTotalCheckedOut()}"); - ResultSet rs = cs.executeQuery(); - if (rs.next()) { - return rs.getInt("NumberCheckedOut"); - } - return 0; - } - COM: <s> get total of checked out copies book </s> - diff --git a/funcom_test/35245782.txt b/funcom_test/35245782.txt deleted file mode 100644 index c16cd47ae76ac8340f9a3e37f98a37a5687f1383..0000000000000000000000000000000000000000 --- a/funcom_test/35245782.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getLateFee() { - if (isCheckedOut()) { - int latedays = subtractDays(new java.util.Date(), new java.util.Date(order.getDueDate().getTime())); - if (latedays > 0) { - return order.getFeeRate() * latedays; - } - } - return 0; - } - COM: <s> get total fee must pay </s> - diff --git a/funcom_test/35245880.txt b/funcom_test/35245880.txt deleted file mode 100644 index 7dcf58a1d0f8b0679c02d726f935d194c78517a3..0000000000000000000000000000000000000000 --- a/funcom_test/35245880.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean deleteReport(int ReportID) throws SQLException { - CallableStatement cs = dc.getConnection().prepareCall("{call deleteReport(?)}"); - cs.setInt(1, ReportID); - int result = cs.executeUpdate(); - if (result != 1) { - return false; - } else { - return true; - } - } - COM: <s> delete a report on database </s> - diff --git a/funcom_test/35246132.txt b/funcom_test/35246132.txt deleted file mode 100644 index 931b6253280ec97a2d85d5ef96a9c50c6b9ec13f..0000000000000000000000000000000000000000 --- a/funcom_test/35246132.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean setResetPassword(String UserID, boolean ResetPassword) throws SQLException{ - CallableStatement cs = dc.getConnection().prepareCall("{call setResetPassword(?,?)}"); - cs.setString(1, UserID); - cs.setBoolean(2, ResetPassword); - int result = cs.executeUpdate(); - if (result != 1) { - return false; - } else { - return true; - } - } - COM: <s> set reset password </s> - diff --git a/funcom_test/35272933.txt b/funcom_test/35272933.txt deleted file mode 100644 index 10430aea50ae399f99b020b180dff0c08e847ab4..0000000000000000000000000000000000000000 --- a/funcom_test/35272933.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: @Override protected void startup() { - ImageIcon imagine; - java.net.URL imgURL = this.getClass().getResource("resources/myicons_res/jsmbscanner.png"); - imagine = new ImageIcon(imgURL); - - JSmbScannerView main = new JSmbScannerView(this); - JFrame frame = main.getFrame(); - frame.setIconImage(imagine.getImage()); - show(main); - } - COM: <s> at startup create and show the main frame of the application </s> - diff --git a/funcom_test/35542820.txt b/funcom_test/35542820.txt deleted file mode 100644 index 172faaf34d5e08ecceed91530aa66b697f8d29a8..0000000000000000000000000000000000000000 --- a/funcom_test/35542820.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void clrSiPort() { - piuLine = DBDataDesc.R4_PIUPORT_NORMAL; - cesLine = DBDataDesc.R4_PIUPORT_NORMAL; - - for (int i = 0; i < piuPort_100M.length; i++) { - piuPort_100M[i] = DBDataDesc.R4_PIUPORT_DEACT; - } - - for (int j = 0; j < piuPort_1G.length; j++) { - piuPort_1G[j] = DBDataDesc.R4_PIUPORT_DEACT; - } - } - COM: <s> clear all port in pi unit for normal state </s> - diff --git a/funcom_test/35542839.txt b/funcom_test/35542839.txt deleted file mode 100644 index 45c4f7cb26fa3e2dd240f59a71776fe6833a44d6..0000000000000000000000000000000000000000 --- a/funcom_test/35542839.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setAlarmPiuPort(int port) { - if(slotInfo.unitId == DBDataDesc.R4_UNIT_PI_100M || slotInfo.unitId == DBDataDesc.R4_UNIT_PI_HP){ - piuPort_100M[port] = DBDataDesc.R4_PIUPORT_ALARM; - } else if (slotInfo.unitId == DBDataDesc.R4_UNIT_PI_1G) { - piuPort_1G[port] = DBDataDesc.R4_PIUPORT_ALARM; - } - } - COM: <s> set alarm state of specific port in pi unit </s> - diff --git a/funcom_test/35542879.txt b/funcom_test/35542879.txt deleted file mode 100644 index f4339be2504c15bdf2c5f41203559f0ede5c2529..0000000000000000000000000000000000000000 --- a/funcom_test/35542879.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setDeactStatePiuPort(int port) { - if(slotInfo.unitId == DBDataDesc.R4_UNIT_PI_100M || slotInfo.unitId == DBDataDesc.R4_UNIT_PI_HP){ - piuPort_100M[port] = DBDataDesc.R4_PIUPORT_DEACT; - } else if (slotInfo.unitId == DBDataDesc.R4_UNIT_PI_1G){ - piuPort_1G[port] = DBDataDesc.R4_PIUPORT_DEACT; - } - } - COM: <s> set deact state of specific port in pi unit </s> - diff --git a/funcom_test/35543005.txt b/funcom_test/35543005.txt deleted file mode 100644 index e0f26b8aac9533ce7cfdfd1936a6e5f4e33b12f9..0000000000000000000000000000000000000000 --- a/funcom_test/35543005.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private int findTableRowWithVid(Vector<Vector<Object>> tblInfo, Object vid) { - - int rowInx = 0; - - for (; rowInx < tblInfo.size(); rowInx++) { - Vector<Object> row = tblInfo.get(rowInx); - if (row.get(0).equals(vid)) { - break; - } - } - if (rowInx >= tblInfo.size()) { - rowInx = -1; - } - - return rowInx; - } - COM: <s> search tbl info to locate a row with vid </s> - diff --git a/funcom_test/35543221.txt b/funcom_test/35543221.txt deleted file mode 100644 index 9c9f94536f5d6d4e7b50050a47912a4437d28772..0000000000000000000000000000000000000000 --- a/funcom_test/35543221.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setOntRingType() { - for (int i = 0; i < onuontBtn.length; i++) { - if (dbOntRingType.get(Integer.valueOf(i)) != null){ - int ringType = dbOntRingType.get(Integer.valueOf(i)).intValue(); - onuontBtn[i].setRingType(ringType); - } else { - onuontBtn[i].setRingType(DBDataDesc.RING_PRIMARY); - } - } - } - COM: <s> set new state for type state of ont </s> - diff --git a/funcom_test/35543964.txt b/funcom_test/35543964.txt deleted file mode 100644 index a9bed777a41fba580d75976113f5df02a644a02a..0000000000000000000000000000000000000000 --- a/funcom_test/35543964.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getMaxOccurs() { - -// int maxOccurs = 2; -// -// if (sMaxOccurs != null) { -// if (sMaxOccurs.equals(R4Constants.MAX_OCCURS_VALUE_UNBOUNDED)) { -// maxOccurs = Integer.MAX_VALUE; -// } else { -// maxOccurs = Integer.parseInt(sMaxOccurs); -// } -// } -// -// return maxOccurs; - return 0; - } - COM: <s> return max occurs value of msp oper ont e spring component </s> - diff --git a/funcom_test/35545310.txt b/funcom_test/35545310.txt deleted file mode 100644 index 282b1359dc90f0e6084fa987611002bbcc20ab3d..0000000000000000000000000000000000000000 --- a/funcom_test/35545310.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getMaxOccurs() { - -// int maxOccurs = 1; -// -// if (sMaxOccurs != null) { -// if (sMaxOccurs.equals(R4Constants.MAX_OCCURS_VALUE_UNBOUNDED)) { -// maxOccurs = Integer.MAX_VALUE; -// } else { -// maxOccurs = Integer.parseInt(sMaxOccurs); -// } -// } -// -// return maxOccurs; - return 0; - } - COM: <s> return max occurs value of msp interface ethernet component </s> - diff --git a/funcom_test/35546453.txt b/funcom_test/35546453.txt deleted file mode 100644 index 48df5f88a75421c6cf9095a8323b6f583b08e9ac..0000000000000000000000000000000000000000 --- a/funcom_test/35546453.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean cmdResponse(int viewId, int userId, int nodeId, int cmdCode, Object[] data, int result, String errMessage) { - - logger.fine("cmdResponse viewId: " + viewId); - if (null == data || 0 == data.length) { - - } else { - pnlVlanVlan.cmdResponse(viewId, userId, nodeId, cmdCode, data, result, errMessage); - } - return true; - } - COM: <s> the response method </s> - diff --git a/funcom_test/35548622.txt b/funcom_test/35548622.txt deleted file mode 100644 index b88d7a8fc1a30df938ccb98d531c0f1c06aba349..0000000000000000000000000000000000000000 --- a/funcom_test/35548622.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setPortId(int portId) { - if (DBDataDesc.DONTCARE == portId) { - tfPortId.setText(PortNumber.getPortName(DBDataDesc.SYSTYPE_ONT, DBDataDesc.PORT_ONT1)); - } else { - tfPortId.setText(PortNumber.getPortName(DBDataDesc.SYSTYPE_ONT, portId)); - } - } - COM: <s> set the port id </s> - diff --git a/funcom_test/35548931.txt b/funcom_test/35548931.txt deleted file mode 100644 index a52e6f86f668d9830c8751debbae93f84116e332..0000000000000000000000000000000000000000 --- a/funcom_test/35548931.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setPortState(int[] portState) { - if (null == portState) { - for (int i = 0, n = cells.length; i < n; i++) { - cells[i].setState(DBDataDesc.VLAN_NOT_USED); - } - } else { - for (int i = 0, n = cells.length; i < n; i++) { - cells[i].setState(portState[i]); - } - } - } - COM: <s> set port state information </s> - diff --git a/funcom_test/35548932.txt b/funcom_test/35548932.txt deleted file mode 100644 index 63136e3807b706e659af97debcfb6b7e11ff38ba..0000000000000000000000000000000000000000 --- a/funcom_test/35548932.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setResponseState(int[] portState) { - if (null == portState) { - for (int i = 0, n = cells.length; i < n; i++) { - cells[i].setResponseState(DBDataDesc.VLAN_NOT_USED); - - } - } else { - for (int i = 0, n = cells.length; i < n; i++) { - cells[i].setResponseState(portState[i]); - } - } - } - COM: <s> set response state information </s> - diff --git a/funcom_test/35550308.txt b/funcom_test/35550308.txt deleted file mode 100644 index ace7e63ada2d69feff84dc3d5b99cb1565797008..0000000000000000000000000000000000000000 --- a/funcom_test/35550308.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setPort(int[] port) { - if (port.length < portBtn.length) { - for (int i = 0; i < port.length; i++) { - portBtn[i].setState(port[i], true); - portBtn[i].setSelected(false); - } - } else { - for (int i = 0; i < portBtn.length; i++) { - portBtn[i].setState(port[i], true); - } - } - } - COM: <s> set the port </s> - diff --git a/funcom_test/35550325.txt b/funcom_test/35550325.txt deleted file mode 100644 index 45d6dcb355125ad9bd992e699af04df8bf3c9629..0000000000000000000000000000000000000000 --- a/funcom_test/35550325.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public String getPortString() { - String portString = ""; - - for (int i = 0; i < portBtn.length; i++) { - - switch (portBtn[i].getPortId()) { - case DBDataDesc.VLAN_TAGGED: - portString = portString.concat(firstButtonLabel); - break; - - case DBDataDesc.VLAN_UNTAGGED: - portString = portString.concat(secondButtonLabel); - break; - - case DBDataDesc.VLAN_NOT_USED: - portString = portString.concat(lastButtonLabel); - break; - } - } - - return portString; - } - COM: <s> get the port string </s> - diff --git a/funcom_test/35550425.txt b/funcom_test/35550425.txt deleted file mode 100644 index 7c3e66f6ae080a5d5b0526cc52ba5e65eb05678d..0000000000000000000000000000000000000000 --- a/funcom_test/35550425.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void notifyNoCommand() { - Object[] options = new Object[1]; - options[0] = new String(labelMenuMgr.getLabel("CONFIRM")); - - JOptionPane.showOptionDialog(this, "No Command to request, Please request View Command !!", "CMD-PRV-ONT", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, options[0]); - return; - } - COM: <s> notify the no command </s> - diff --git a/funcom_test/35550463.txt b/funcom_test/35550463.txt deleted file mode 100644 index afba65fe9da4a263e1214edc70aac09da3530e91..0000000000000000000000000000000000000000 --- a/funcom_test/35550463.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getMask() { - StringBuffer port = new StringBuffer(); - for (int i = 0; i < 8; i++) { - if (portBtn[i].getPortId() == 0) { - port.append("0"); - } else { - port.append("1"); - } - } - String mask1 = port.substring(0, 4); - String mask2 = port.substring(4); - String maskHex1 = Integer.toHexString(binaryStringToInt(mask1)); - String maskHex2 = Integer.toHexString(binaryStringToInt(mask2)); - return maskHex2 + maskHex1; - } - COM: <s> get the mask </s> - diff --git a/funcom_test/35550464.txt b/funcom_test/35550464.txt deleted file mode 100644 index bf4c2d2efde8b0799d1cb97e33d8f050ef6b5970..0000000000000000000000000000000000000000 --- a/funcom_test/35550464.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setNELocation(int _neId, int _shelfId) { - this.neId = _neId; - this.shelfId = _shelfId; - - if (tfNodeId != null) { - tfNodeId.setText(getNodeName()); - } - if (cbShelf != null) { - cbShelf.setSelectedItem(dbSupporter.getShelfName(shelfId)); - } - } - COM: <s> set the location of ne </s> - diff --git a/funcom_test/35550493.txt b/funcom_test/35550493.txt deleted file mode 100644 index 79a1a2d38560f6e81bd99341de641e90351c652f..0000000000000000000000000000000000000000 --- a/funcom_test/35550493.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void init() { - if (jbnOnt != null) { - for (int i = 0; i < jbnOnt.length; i++) { - btnGrpOnt.add(jbnOnt[i]); - } - } - if (jbnPort != null) { - for (int i = 0; i < jbnPort.length; i++) { - btnGrpOnt.add(jbnPort[i]); - } - } - } - COM: <s> initialize the button group </s> - diff --git a/funcom_test/35550687.txt b/funcom_test/35550687.txt deleted file mode 100644 index 1de45069caad8604a4f90a80b2fb076d4af55fe9..0000000000000000000000000000000000000000 --- a/funcom_test/35550687.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void clrList() { - - Integer newState = new Integer(CMD_VIEW); - for (int rowCount = 0; rowCount < modelNE.getRowCount(); rowCount++) { - modelNE.setValueAt((Object) "", rowCount, RESULT_COLUMN); - modelNE.setValueAt((Object) newState, rowCount, CMD_STATE_COLUMN); - } - modelNE.fireTableDataChanged(); - } - COM: <s> clear the list </s> - diff --git a/funcom_test/35550796.txt b/funcom_test/35550796.txt deleted file mode 100644 index f1bcecd842173d8bfaf2b5228076d7b43cdc4c70..0000000000000000000000000000000000000000 --- a/funcom_test/35550796.txt +++ /dev/null @@ -1,31 +0,0 @@ -TDAT: public String getCommand() { - String command = ""; - - if (chkVlan.isSelected()) { - command = command + "VLAN=ACT,"; - } else { - command = command + "VLAN=DEACT,"; - } - - if (chkMac.isSelected()) { - command = command + "MAC=ACT,"; - } else { - command = command + "MAC=DEACT,"; - } - - if (chkQos.isSelected()) { - command = command + "QOS=ACT,"; - } else { - command = command + "QOS=DEACT,"; - } - - if (chkFilter.isSelected()) { - command = command + "FILTER=ACT;"; - } else { - command = command + "FILTER=DEACT;"; - } - - return command; - } - COM: <s> get the command </s> - diff --git a/funcom_test/35550806.txt b/funcom_test/35550806.txt deleted file mode 100644 index efcc897983383ed4c43f0058413d36b9b6d9b4dd..0000000000000000000000000000000000000000 --- a/funcom_test/35550806.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setPort(int data) { - initPort(); - - if ((data & 1) == 1) - chkVlan.setSelected(true); - if ((data & 2) == 2) - chkMac.setSelected(true); - if ((data & (2 * 2)) == 2 * 2) - chkQos.setSelected(true); - if ((data & (2 * 2 * 2)) == 2 * 2 * 2) - chkFilter.setSelected(true); - - return; - } - COM: <s> enables the check box </s> - diff --git a/funcom_test/35551002.txt b/funcom_test/35551002.txt deleted file mode 100644 index 46c270eec8a24c1944b426b9efc79d6a7d81889c..0000000000000000000000000000000000000000 --- a/funcom_test/35551002.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setState(int state) { - nPortId = state; - if (state == DBDataDesc.EVENT_OFF) { - setText("X"); - } else if (state == DBDataDesc.EVENT_ON) { - setText("O"); - } else if (state == DBDataDesc.EVENT_DEFAULT) { - setText("-"); - } else if (state == DBDataDesc.EVENT_EMPTY) { - setText(" "); - } - } - COM: <s> set the state </s> - diff --git a/funcom_test/35553108.txt b/funcom_test/35553108.txt deleted file mode 100644 index 11af5daef443aa330952229c8e7056db1e62763d..0000000000000000000000000000000000000000 --- a/funcom_test/35553108.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void refreshOspfProtocols(NeL3IF.OspfProtocolsIF[] data, int result) { - init_tblProtocols(); - taData.setText(""); - String totalData = new String(""); - - if (data == null || result == ErrorInspect.NO_DATA) { - } else { - for (int i = 0; i < data.length; i++) { - - totalData = totalData.concat(data[i].dataStr); - totalData = totalData.concat("\n"); - } - taData.setText(totalData); - } - - } - COM: <s> refresh ospf protocols </s> - diff --git a/funcom_test/35553243.txt b/funcom_test/35553243.txt deleted file mode 100644 index 0e54ebac25ca7755e9519e151dfcf0cd60f193f3..0000000000000000000000000000000000000000 --- a/funcom_test/35553243.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public RadiusAttribute getAttribute(int attributeType) throws InvalidParameterException, RadiusException { - if ((attributeType < 0) || (attributeType > 256)) { - throw new InvalidParameterException("attributeType is out of bounds"); - } - RadiusAttribute tempRa = null; - synchronized (attributes) { - tempRa = attributes.get(new Integer(attributeType)); - } - if (null == tempRa) { - logger.warning("No attribute found for type: "); - } - return tempRa; - } - COM: <s> retrieves a radius attribute from this radius packet </s> - diff --git a/funcom_test/35553272.txt b/funcom_test/35553272.txt deleted file mode 100644 index 48a57e35204f981d79ac1add5777551f4fd520d9..0000000000000000000000000000000000000000 --- a/funcom_test/35553272.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setHostname(String hostname) throws InvalidParameterException { - if (hostname == null) { - logger.warning("Hostname can not be null!"); - } else if (hostname.trim().equals("")) { - logger.warning("Hostname can not be empty or all blanks!"); - } else { - try { - this.hostname = InetAddress.getByName(hostname); - } catch (java.net.UnknownHostException uhex) { - logger.log(Level.SEVERE, "UnknownHostException", uhex); - } - } - } - COM: <s> this method sets the host name to be used for radius authentication </s> - diff --git a/funcom_test/35553275.txt b/funcom_test/35553275.txt deleted file mode 100644 index 9e462ea48f6dd04df7d9a7b7ad2f80058cb73850..0000000000000000000000000000000000000000 --- a/funcom_test/35553275.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void raiseAlarm(int currentSeverity, int newSeverity, int recovery, int reason ){ - - if(currentSeverity == 0){ - //Raise a new alarm - raiseRadiusAlarm(newSeverity, DBDataDesc.RECOVERY_NO, reason); - } else { - if(currentSeverity != newSeverity){ - //Clear current alarm - raiseRadiusAlarm(currentSeverity, DBDataDesc.RECOVERY_YES, reason); - //Raise new alarm - raiseRadiusAlarm(newSeverity, DBDataDesc.RECOVERY_NO, reason); - } - } - } - COM: <s> raise alarm on unreachable radius server </s> - diff --git a/funcom_test/35553380.txt b/funcom_test/35553380.txt deleted file mode 100644 index d76866d48c7e7bf26b0b82f03a1d86f50a203b34..0000000000000000000000000000000000000000 --- a/funcom_test/35553380.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void getUser() { - - ClientManager clientMgr = ClientManager.getInstance(); - User user = User.getInstance(); - - CommonIF.RtrvSessionIF[] data = new CommonIF.RtrvSessionIF[1]; - data[0] = new CommonIF.RtrvSessionIF(); - - String cmdStr = new String(""); - - clientMgr.cmdRequest(getViewId(), user.getUserId(), neId, shelfId, EmsCode.CMD_RTRV_SESSION, data, cmdStr); - btnGet.setEnabled(false); - } - COM: <s> command request to getting the data </s> - diff --git a/funcom_test/35553507.txt b/funcom_test/35553507.txt deleted file mode 100644 index d663c16de703e47c05dbd393dae10696546313f6..0000000000000000000000000000000000000000 --- a/funcom_test/35553507.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private FieldPosition getPrevField(int caretLoc) { - FieldPosition fieldPosition = null; - for (int ctr = m_fieldPositions.size() - 1; ctr > -1; --ctr) { - FieldPosition chkFieldPosition = (FieldPosition) m_fieldPositions.get(ctr); - if (chkFieldPosition.getEndIndex() <= caretLoc) { - fieldPosition = chkFieldPosition; - break; - } - } - return (fieldPosition); - } - COM: <s> get previous field </s> - diff --git a/funcom_test/35553511.txt b/funcom_test/35553511.txt deleted file mode 100644 index d5f5187e7201d5dd17663f32b9d5c56500578db7..0000000000000000000000000000000000000000 --- a/funcom_test/35553511.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void refreshTreePanel() { - - root.removeAllChildren(); - - root = new DefaultMutableTreeNode("ALL"); - treeModel = new DefaultTreeModel(root); - - tree.setModel(treeModel); - tree.setBounds(new Rectangle(0, 0, 196, 443)); - tree.setLayout(null); - tree.setBackground(Color.white); - - tree.setCellRenderer(new UserIconRenderer()); - - addAllUsers(); - - TreePath treePath = tree.getPathForRow(0); - tree.fireTreeExpanded(treePath); - } - COM: <s> refresh tree panel </s> - diff --git a/funcom_test/35553791.txt b/funcom_test/35553791.txt deleted file mode 100644 index 5e96c656ba3c296f33488d7641a9bccaa9be96da..0000000000000000000000000000000000000000 --- a/funcom_test/35553791.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void createServerChooser() { - - MainMenuBar mainMenuBar = MainMenuBar.getInstance(); - - int nodeId = dbMgr.getNodeId((String) cbNE.getSelectedItem()); - - DownloadFileChooser downloadFile = new DownloadFileChooser(nodeId, DBDataDesc.SHELF_OLT1, tfFileName, tfFileNameOnly); - mainMenuBar.putCommand((Object) downloadFile); - downloadFile.setViewId(mainMenuBar.getViewId()); - downloadFile.setVisible(true); - } - COM: <s> create server file view </s> - diff --git a/funcom_test/35553811.txt b/funcom_test/35553811.txt deleted file mode 100644 index 081a4a71fb6c12340046503e6906776913bd8756..0000000000000000000000000000000000000000 --- a/funcom_test/35553811.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void checkCookieFile() { - - try { - if (DBManager.getEmsOprType() == DBManager.SINGLE_CONNECTION) { - if (!STAND_ALONE_COOKIE.exists()) { - STAND_ALONE_COOKIE.createNewFile(); - } - setStandAloneClientIP(STAND_ALONE_COOKIE); - } else { - if (!CS_COOKIE.exists()) { - CS_COOKIE.createNewFile(); - } - setClientIP(CS_COOKIE); - } - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> check cookie file </s> - diff --git a/funcom_test/35553968.txt b/funcom_test/35553968.txt deleted file mode 100644 index adced91d8083c234e58598ec222e203d5fc95e4a..0000000000000000000000000000000000000000 --- a/funcom_test/35553968.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private void refreshProfileEvent() { - - MainMenuBar mainMenuBar = MainMenuBar.getInstance(); - - Hashtable<Integer, Object> commandHash = mainMenuBar.getCommandHash(); - - Enumeration<Object> e = commandHash.elements(); - while (e.hasMoreElements()) { - - try { - Object profileManagerView = (Object) e.nextElement(); - - if (profileManagerView instanceof RefreshDeletionInfoIF) { - ((RefreshDeletionInfoIF)profileManagerView).refreshDeletionInfo(); - } - - - } catch(Exception ex) { - ex.printStackTrace(); - } - } - } - COM: <s> refresh event table </s> - diff --git a/funcom_test/35554062.txt b/funcom_test/35554062.txt deleted file mode 100644 index ce6422fd1a3af3d754f6ceef114553afabb83ebf..0000000000000000000000000000000000000000 --- a/funcom_test/35554062.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void setUserRole(String lUserName, String role) { - - AUTHENTICATION_TYPE = AUTHENTICATION_RADIUS; - - userName = lUserName; - - DBManager dbMgr = DBManager.getInstance(); - - if(role.equalsIgnoreCase("ADMIN")){ - userGrp = DBDataDesc.USER_ADMIN; - }else if(role.equalsIgnoreCase("MAINTENANCE")){ - userGrp = DBDataDesc.USER_MAINTENANCE; - }else if (role.equalsIgnoreCase("MONITOR")){ - userGrp = DBDataDesc.USER_MONITOR; - } - - userId = dbMgr.getUserId(userName); - - } - COM: <s> return authorization to user from radius server </s> - diff --git a/funcom_test/35554163.txt b/funcom_test/35554163.txt deleted file mode 100644 index aab07a74b55f1957d4559571583db3c4570f5b27..0000000000000000000000000000000000000000 --- a/funcom_test/35554163.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void createServerChooserPackage() { - - MainMenuBar mainMenuBar = MainMenuBar.getInstance(); - - downloadFile.setPackageFileNames(tfFileNamePackage, tfFileNameMcu, tfFileNameSwu, tfFileNamePiu, tfFileNameCes, tfFileNameOnt); - downloadFile.setTypeStringValue("software"); - mainMenuBar.putEquip((Object) downloadFile); - downloadFile.setViewId(mainMenuBar.getViewId()); - downloadFile.setVisible(true); - downloadFile.getDirectory(); - } - COM: <s> server package chooser </s> - diff --git a/funcom_test/35554224.txt b/funcom_test/35554224.txt deleted file mode 100644 index 73cfc5f62cfa1006fb4f596f41c6f913711f355e..0000000000000000000000000000000000000000 --- a/funcom_test/35554224.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean isValidFileName() { - - if (tfFileNameMcu.getText().equals("") || tfFileNameSwu.getText().equals("") || tfFileNamePiu.getText().equals("") || tfFileNameCes.getText().equals("") || tfFileNameOnt.getText().equals("")) { - tfFileNamePackage.setText(""); - - return false; - } - - return true; - } - COM: <s> check file name is right or not </s> - diff --git a/funcom_test/35554268.txt b/funcom_test/35554268.txt deleted file mode 100644 index 5cf599c88b0eec6bdf7e553baf82cd3b57a612e5..0000000000000000000000000000000000000000 --- a/funcom_test/35554268.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private void installAction() { - applyButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - - applyButton.setEnabled(false); - closeButton.setEnabled(false); - controller.buttonApply(); - applyButton.setEnabled(true); - closeButton.setEnabled(true); - } - }); - - closeButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - - applyButton.setEnabled(false); - closeButton.setEnabled(false); - controller.buttonCancel(); - applyButton.setEnabled(true); - closeButton.setEnabled(true); - } - }); - } - COM: <s> installation of action </s> - diff --git a/funcom_test/35554371.txt b/funcom_test/35554371.txt deleted file mode 100644 index 9b3dfdace569d72d774612e85c843adb8833261f..0000000000000000000000000000000000000000 --- a/funcom_test/35554371.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void buttonContinue() { - HistoryData historyData = getLinkedList(); - currentLogId = historyData.nextLogId; - currentPage++; - buttonApplyExecute(false); - putLinkedList(); - - // currentPage = historyQueue.size() - 1; - - processPage(); - - if (currentPage <= 1) { - btnPrev.setEnabled(false); - } else { - btnPrev.setEnabled(true); - } - - if (currentPage >= totalPage) { - btnNext.setEnabled(false); - } else { - btnNext.setEnabled(true); - } - } - COM: <s> when user click continue button this operation is called </s> - diff --git a/funcom_test/35554382.txt b/funcom_test/35554382.txt deleted file mode 100644 index 4539c896dd93953cde0f0a876ff2025cac27b147..0000000000000000000000000000000000000000 --- a/funcom_test/35554382.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void consumeAlarmAction(String actionSource) { - - MainMenuBar mainMenuBar = MainMenuBar.getInstance(); - - if (actionSource.equals("CR")) { - mainMenuBar.executeCurrentAlarmPanel(DBDataDesc.ALM_CR); - } else if (actionSource.equals("MJ")) { - mainMenuBar.executeCurrentAlarmPanel(DBDataDesc.ALM_MJ); - } else if (actionSource.equals("MN")) { - mainMenuBar.executeCurrentAlarmPanel(DBDataDesc.ALM_MN); - } - } - COM: <s> process alarm action </s> - diff --git a/funcom_test/35554423.txt b/funcom_test/35554423.txt deleted file mode 100644 index 4e9e79e76535c868ee9d83f1fb56ab48f908aa6d..0000000000000000000000000000000000000000 --- a/funcom_test/35554423.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private int getNodeId(JList myList) { - - String nodeName = myList.getSelectedValue().toString(); - - NetworkElement ne = networkMgr.getNodeNetworkElement(nodeName); - - int nodeId = 0; - - if (ne != null) { - nodeId = ne.getNodeId(); - } else { - System.err.println("AlarmHistoryController 1 : Couldn't find NetworkElement"); - } - return nodeId; - } - COM: <s> get node id from select string in jlist </s> - diff --git a/funcom_test/35554719.txt b/funcom_test/35554719.txt deleted file mode 100644 index 0e68e60a3ae3621fcb944b224e0049ead9ee337a..0000000000000000000000000000000000000000 --- a/funcom_test/35554719.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private DefaultComboBoxModel createUserList() { - - DBManager dbMgr = DBManager.getInstance(); - - int count = dbMgr.getUserCnt(); - - if (count == -1) - return null; - - String[] names = dbMgr.getUserAll(count); - - DefaultComboBoxModel typeModel = new DefaultComboBoxModel(); - - typeModel.addElement("ALL"); - - for (int i = 0; i < names.length; i++) { - typeModel.addElement(names[i]); - } - - return typeModel; - } - COM: <s> insert all of user </s> - diff --git a/funcom_test/35554743.txt b/funcom_test/35554743.txt deleted file mode 100644 index 556178911cfc2bc04933409ace0df6dcef29db4b..0000000000000000000000000000000000000000 --- a/funcom_test/35554743.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void showPort(boolean flag) { - int width = this.getX() + this.getWidth(); - int height = this.getY(); - if (portView == null) { - portView = new Ont33PortView(width, height, tfPortId); - portView.setVisible(flag); - } else { - portView.setVisible(flag); - } - - portView.setCid(cbSlot.getSelectedItem().toString()); - portView.checkPid(tfPortId.getText()); - } - COM: <s> open lid window </s> - diff --git a/funcom_test/35554794.txt b/funcom_test/35554794.txt deleted file mode 100644 index 34c3a596cff935f7cf0f4d2527150bd768dce7ed..0000000000000000000000000000000000000000 --- a/funcom_test/35554794.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void getResourceInfo() { - ClientManager clientMgr = ClientManager.getInstance(); - User user = User.getInstance(); - - CommonIF.RtrvEMSResourceInfoIF[] data = new CommonIF.RtrvEMSResourceInfoIF[1]; - data[0] = new CommonIF.RtrvEMSResourceInfoIF(); - - String cmdStr = ""; - - clientMgr.cmdRequest(getViewId(), user.getUserId(), 1, 1, EmsCode.CMD_RTRV_EMS_RESOURCE_INFO, data, cmdStr); - - } - COM: <s> get resource information </s> - diff --git a/funcom_test/35554832.txt b/funcom_test/35554832.txt deleted file mode 100644 index 40f90c08b13a11b03e88e963da02c0c3e955fb71..0000000000000000000000000000000000000000 --- a/funcom_test/35554832.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public DefaultListModel createShelfList(int nodeId) { - - DefaultListModel typeModel = new DefaultListModel(); - String[] shelfNames = (String[]) dbSupporter.getAllShelfName(nodeId); - - if (shelfNames != null) { - - for (int i = 0; i < shelfNames.length; i++) { - typeModel.addElement(shelfNames[i]); - } - } - return typeModel; - } - COM: <s> create shelf list </s> - diff --git a/funcom_test/35555032.txt b/funcom_test/35555032.txt deleted file mode 100644 index ff3ee8dcc2b9e5cd466fdc2173dd13dc28a58857..0000000000000000000000000000000000000000 --- a/funcom_test/35555032.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void executePasswordFrame() { - - String menuName = labelMenuMgr.getMenu("SCREEN_LOCK"); - - MyFrame mf = new MyFrame(menuName); - incrementViewId(); - mf.setViewId(getViewId()); - - NetworkFrame networkFrame = NetworkFrame.getInstance(); - - PasswordView passwordView = new PasswordView(networkFrame); - mainMenuBar.putCommand((Object) passwordView); - passwordView.setViewId(getViewId()); - passwordView.setVisible(true); - } - COM: <s> execute password frame </s> - diff --git a/funcom_test/35555048.txt b/funcom_test/35555048.txt deleted file mode 100644 index a9577c74bc3f9575bb0c15654bab08551cf014cb..0000000000000000000000000000000000000000 --- a/funcom_test/35555048.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private DefaultComboBoxModel createSeverityTypeList() { - - PrimitiveType type = sevType.getPrimitiveType("severitytype"); - Object[] names = type.getAllName(); - DefaultComboBoxModel typeModel = new DefaultComboBoxModel(); - - typeModel.addElement(dbSupporter.getAlarmSeverity(selectedSeverity)); - - for (int i = 0; i < names.length; i++) { - if (names[i].equals(dbSupporter.getAlarmSeverity(selectedSeverity))) - continue; - typeModel.addElement(names[i]); - } - - return typeModel; - } - COM: <s> create severity type list using properties </s> - diff --git a/funcom_test/35555183.txt b/funcom_test/35555183.txt deleted file mode 100644 index 011959c24af4d98f1f0ee67bef1fe470ec809176..0000000000000000000000000000000000000000 --- a/funcom_test/35555183.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void getAlarmStatics() { - - if (jbnDay.isSelected()) { - get1DayAlarmStatics(); - } else if (jbnMonth.isSelected()) { - get1MonthAlarmStatics(); - } else { - get1YearAlarmStatics(); - } - - if (modelAlarm.getRowCount() == 0) { - pnlResult.updateMessage(ErrorInspect.getErrorMessage(ErrorInspect.NO_DATA)); - } else { - pnlResult.updateMessage(ErrorInspect.getErrorMessage(ErrorInspect.SUCCESS)); - } - - return; - } - COM: <s> get alarm statistics 1 day 1 month 1 year </s> - diff --git a/funcom_test/35555359.txt b/funcom_test/35555359.txt deleted file mode 100644 index c16c153be3941482b05b0e386c79506ad4e5dff4..0000000000000000000000000000000000000000 --- a/funcom_test/35555359.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean isInt(float Testee) { - - boolean result; - - Testee = Testee * 10; - String Testee2 = String.valueOf(Testee); - int len = Testee2.length(); - - String first = Testee2.substring(len - 3, len - 2); - String second = Testee2.substring(len - 2, len - 1); - String third = Testee2.substring(len - 1, len); - - if (first.equals("0") && second.equals(".") && third.equals("0")) - result = true; - else - result = false; - - return result; - } - COM: <s> check is int or not </s> - diff --git a/funcom_test/35555448.txt b/funcom_test/35555448.txt deleted file mode 100644 index 93df49ba0d0096078b089686df4cb6d071ca37e9..0000000000000000000000000000000000000000 --- a/funcom_test/35555448.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void animate(boolean isConfirmed, int alarmCount) { - - if (isConfirmed) { - if (aThread != null) - return; - aThread = new Animator(); - if (DBManager.getEmsOprType() != DBManager.SERVER_CONNECTION) { - aThread.start(); - } - } else { - aThread = null; - if (alarmCount == 0) { - toggle(AlarmButton.ButtonOFF); - } else { - toggle(AlarmButton.ButtonON); - } - } - } - COM: <s> method to toggle the images in alarm button </s> - diff --git a/funcom_test/35555609.txt b/funcom_test/35555609.txt deleted file mode 100644 index 33f5edd5aae6d2bcd88b982521c3f7bf1d26b3b4..0000000000000000000000000000000000000000 --- a/funcom_test/35555609.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setParams(int cmdTag, int viewId, int userId, int nodeId, int shelfId, int cmdCode, Object[] data) { - - this.cmdTag = cmdTag; - this.viewId = viewId; - this.userId = userId; - this.nodeId = nodeId; - this.shelfId = shelfId; - this.cmdCode = cmdCode; - this.data = data; - - } - COM: <s> description set arguments to member valuables </s> - diff --git a/funcom_test/35555635.txt b/funcom_test/35555635.txt deleted file mode 100644 index 93bc83dca969c26fd5da8cd6414cfe618f64af74..0000000000000000000000000000000000000000 --- a/funcom_test/35555635.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void buttonPrevious() { - removeLinkedList(); - HistoryData historyData = getLinkedList(); - currentLogId = historyData.prevLogId; - currentPage--; - buttonApplyExecute(false); - - // currentPage = historyQueue.size() - 1; - - processPage(); - - if (currentPage <= 1) { - btnPrev.setEnabled(false); - } else { - btnPrev.setEnabled(true); - } - - if (currentPage >= totalPage) { - btnNext.setEnabled(false); - } else { - btnNext.setEnabled(true); - } - } - COM: <s> previous button is clicked this operation is called </s> - diff --git a/funcom_test/35555709.txt b/funcom_test/35555709.txt deleted file mode 100644 index fc520a79b689d76c29e0bb97ae1f8aba6a683b50..0000000000000000000000000000000000000000 --- a/funcom_test/35555709.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private PrimitiveType createDictionaryType(String[] values) { - - DictionaryType type = new DictionaryType(); - - for (int i = 0; i < values.length; i += 2) { - - String key = values[i].trim(); - String value = values[i + 1].trim(); - - if (i == 0) - type.addNameValue(key, value, true); - else - type.addNameValue(key, value); - } - return type; - } - COM: <s> create dictionary type </s> - diff --git a/funcom_test/35555737.txt b/funcom_test/35555737.txt deleted file mode 100644 index cac803bb8b0646b805769db04fbc42d86e1bda7c..0000000000000000000000000000000000000000 --- a/funcom_test/35555737.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public boolean updateOutCommandResult(int nodeId, int result) { - - boolean searchFlag = false; - - CommandEntity command; - - Enumeration<CommandEntity> cmd = outcommandTable.elements(); - - while (true) { - try { - command = (CommandEntity) cmd.nextElement(); - if ((command.getSyncFlag() == true) && (command.getNodeId() == nodeId)) { - searchFlag = true; - command.setResult(result); - } - } catch (Exception ex) { - // ex.printStackTrace(); - command = null; - break; - } - } - return searchFlag; - } - COM: <s> description find a command entity from outcommand table and then update a result </s> - diff --git a/funcom_test/35555766.txt b/funcom_test/35555766.txt deleted file mode 100644 index fe1623814711a27c327b04a2d7efde1d632e08a1..0000000000000000000000000000000000000000 --- a/funcom_test/35555766.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean updateSyncCommandResult(int nodeId, int result) { - - boolean searchFlag = false; - - Enumeration<CommandEntity> cmd = scheduleCommandTable.elements(); - - CommandEntity command; - - while (true) { - try { - command = (CommandEntity) cmd.nextElement(); - if ((command.getSyncFlag() == true) && (command.getNodeId() == nodeId)) { - searchFlag = true; - command.setResult(result); - } - } catch (Exception ex) { - command = null; - break; - } - } - return searchFlag; - } - COM: <s> description update command entity for arguments in the schedule command table </s> - diff --git a/funcom_test/35555777.txt b/funcom_test/35555777.txt deleted file mode 100644 index 76077b587ba079bffcda71540a343780b6522df7..0000000000000000000000000000000000000000 --- a/funcom_test/35555777.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setUpPassword(Connection conn) { - - Statement stmt = null; - try { - stmt = conn.createStatement(); - stmt.executeUpdate("UPDATE USER SET PASSWORD=\'root\' "); - } catch (SQLException ex) { - logger.log(Level.SEVERE, "SQL Error = " + ex.getMessage(), ex); - } finally { - try { - if (stmt != null) - stmt.close(); - } catch (SQLException ex) { - logger.log(Level.SEVERE, "SQLException", ex); - } - } - } - COM: <s> description update a password information in the user table </s> - diff --git a/funcom_test/35555782.txt b/funcom_test/35555782.txt deleted file mode 100644 index 4442de419ad69641c0a187d4ae195f7e970e656d..0000000000000000000000000000000000000000 --- a/funcom_test/35555782.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setUpFlush(Connection conn) { - Statement stmt = null; - try { - stmt = conn.createStatement(); - stmt.executeUpdate("flush privileges"); - } catch (SQLException ex) { - logger.log(Level.SEVERE, "SQL Error = " + ex.getMessage(), ex); - } finally { - try { - if (stmt != null) - stmt.close(); - } catch (SQLException ex) { - logger.log(Level.SEVERE, "SQLException", ex); - } - } - } - COM: <s> description commit the qualification to my sql database </s> - diff --git a/funcom_test/35555821.txt b/funcom_test/35555821.txt deleted file mode 100644 index 6ca6c41aa33b3ef8bc8a0199608b60ce81f58b02..0000000000000000000000000000000000000000 --- a/funcom_test/35555821.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void insertOutCommand(int cmdTag, CommandEntity command) { - - // Bug Fix for memeory leakage .. when command is execute such as download, upgrade mgr, opr backup, lpbk - if (cmdTag > 200) { - removeOutCommand(cmdTag - 200); - } else { - removeOutCommand((10000 - 200) + cmdTag); - } - - Integer iCmdTag = new Integer(cmdTag); - - try { - outcommandTable.put(iCmdTag, command); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - COM: <s> description insert a command entity in the outcommand table </s> - diff --git a/funcom_test/35555833.txt b/funcom_test/35555833.txt deleted file mode 100644 index 9946636fa2864ff3b4954ad25e5db70e351a7793..0000000000000000000000000000000000000000 --- a/funcom_test/35555833.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void updateR3SlotInfo(int nodeId, int shelfId, Object[] data) { - if( data != null) { - if( data.length != 0 ) { - if( dbManager.deleteSlotUnit(nodeId, shelfId) == true ) { - dbManager.insertSlotUnit(nodeId, (com.lgnortel.r3.r3rmi.NeOamIF.RtrvSlotIF[]) data); - } - } - } - return; - } - COM: <s> description update the database table to be related to r3 olt slot informations </s> - diff --git a/funcom_test/35555892.txt b/funcom_test/35555892.txt deleted file mode 100644 index 3aca44a1ed5b5d5de6e3502d74cc2d4e761be060..0000000000000000000000000000000000000000 --- a/funcom_test/35555892.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public NetworkElement searchSelectedNodeNetworkElement(MouseEvent ev) { - - NetworkElement searchedNode; - - // - // search NE element. - // - searchedNode = searchSelectedNeNetworkElement(ev); - if( searchedNode != null ) return searchedNode; - - // - // search Subnet element. - // - searchedNode = searchSelectedSubnetNetworkElement(ev); - if( searchedNode != null ) return searchedNode; - - // - // search Rack element. - // - searchedNode = searchSelectedRackNetworkElement(ev); - if( searchedNode != null ) return searchedNode; - - return null; - } - COM: <s> search selected node network element </s> - diff --git a/funcom_test/35556043.txt b/funcom_test/35556043.txt deleted file mode 100644 index 5a1bca3dbfe279e05ca11424000c8d0f1a659f3e..0000000000000000000000000000000000000000 --- a/funcom_test/35556043.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void setSeverityRack(int nodeId, int severity) { - - NetworkElement networkElement = getRackNetworkElement(nodeId); - - if( networkElement == null ) { - return; - } - - networkElement.setSeverity(severity); - - // - // setSeverity upper subnet .. - // - while(true) { - int parentNodeId = networkElement.getParentNodeId(); - if( parentNodeId == NetworkElement.ROOT_NODEID ) break; - - networkElement = getSubnetNetworkElement(parentNodeId); - - if( networkElement == null ) break; - - networkElement.setSeverity(severity); - } - } - COM: <s> set severity rack </s> - diff --git a/funcom_test/35556130.txt b/funcom_test/35556130.txt deleted file mode 100644 index 64fbb8ebb6cfc55e478575494f528a2238498d48..0000000000000000000000000000000000000000 --- a/funcom_test/35556130.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean logoutLocal(String userName) { - DBManager dbMgr = DBManager.getInstance(); - - DBUserHistoryIF userHistory = new DBUserHistoryIF(); - - Date currentTime = new Date(); - - userHistory.userName = new String(userName); - userHistory.logoutTime = currentTime.getTime(); - - if (dbMgr.updateUserHistory(userHistory) == false) { - logger.warning("updateUserHistory is fail"); - return false; - } else { - return true; - } - } - COM: <s> method to logout </s> - diff --git a/funcom_test/35556238.txt b/funcom_test/35556238.txt deleted file mode 100644 index d9758f4fc69f981c5873b063a12eb93fc79fc48b..0000000000000000000000000000000000000000 --- a/funcom_test/35556238.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int login(String userName, String passwd) { - - int result = ErrorInspect.LOGIN_FAIL; - - if (DBManager.getEmsOprType() == DBManager.SINGLE_CONNECTION) { - result = serverReceiver.loginLocal(userName, passwd); - } else { - try { - if (serverInterface != null) { - result = serverInterface.login(userName, passwd); - } - } catch (Exception ex) { - logger.log(Level.SEVERE, "message transmit error", ex); - } - } - return result; - } - COM: <s> process to login </s> - diff --git a/funcom_test/35556243.txt b/funcom_test/35556243.txt deleted file mode 100644 index f639252b0e453c98ece61f837821965cd3980aa3..0000000000000000000000000000000000000000 --- a/funcom_test/35556243.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean logout(String userName) { - - boolean result = false; - - if (DBManager.getEmsOprType() == DBManager.SINGLE_CONNECTION) { - result = serverReceiver.logoutLocal(userName); - } else { - try { - if (serverInterface != null) { - result = serverInterface.logout(userName); - } - } catch (Exception ex) { - logger.log(Level.SEVERE, "message transmit error", ex); - } - } - - return result; - } - COM: <s> process to logout </s> - diff --git a/funcom_test/35556248.txt b/funcom_test/35556248.txt deleted file mode 100644 index 37b84914a31ef3cb9b1fad999638cc574914df33..0000000000000000000000000000000000000000 --- a/funcom_test/35556248.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean registerClient(int userId, ClientInterface clientInterface) { - - boolean result = false; - - if (DBManager.getEmsOprType() == DBManager.SINGLE_CONNECTION) { - result = serverReceiver.registerClientLocal(userId, clientInterface); - } else { - try { - if (serverInterface != null) { - result = serverInterface.registerClient(userId, clientInterface); - } - } catch (Exception ex) { - logger.log(Level.SEVERE, "registerClient Exception", ex); - } - } - - return result; - } - COM: <s> method of registering client </s> - diff --git a/funcom_test/35556349.txt b/funcom_test/35556349.txt deleted file mode 100644 index 8768ffd3b588c6535b64add723d4ea514a7489a5..0000000000000000000000000000000000000000 --- a/funcom_test/35556349.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void processException(Connection connection, SQLException ex) { - if (ex.getMessage().indexOf("Communications link failure") >= 0) { - if (DBManager.emsOprType == DBManager.CLIENT_CONNECTION) { - JDrawCanvas jDrawCanvas = JDrawCanvas.getInstance(); - jDrawCanvas.closeConnectionByDataBase(); - } - } - return; - } - COM: <s> description process a sql exception </s> - diff --git a/funcom_test/35556585.txt b/funcom_test/35556585.txt deleted file mode 100644 index 83adc4cab0085c8bc8d4a8d74bbc986175933a1d..0000000000000000000000000000000000000000 --- a/funcom_test/35556585.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private String getLogItem(String subSystemLoggerName) { - String logItem = null; - - if ( subSystemLoggerName.contains("platform") ) - logItem = PLATFORM_LOG_FILE; - else if ( subSystemLoggerName.contains("r3") ) - logItem = R3_LOG_FILE; - else if ( subSystemLoggerName.contains("r4") ) - logItem = R4_LOG_FILE; - else if ( subSystemLoggerName.contains("network") ) - logItem = NETWORK_LOG_FILE; - else - logItem = PLATFORM_LOG_FILE; - - return logItem; - } - COM: <s> return log file name according to package name </s> - diff --git a/funcom_test/35557840.txt b/funcom_test/35557840.txt deleted file mode 100644 index 0fdd00a9613d41a34433bdccb98246e7d73b9b98..0000000000000000000000000000000000000000 --- a/funcom_test/35557840.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void changeViewState(ProfileUpdateIF complexIf, String profileName, boolean mFlag, String profileTypeName) { - try { - this.complexIf = complexIf; - this.profileName = profileName; - this.mFlag = mFlag; - this.profileTypeName = profileTypeName; - if (mFlag) { - assignmentFromManager(); - }else{ - setCellEditable(); - } - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> constructor operation of cmd system resource view </s> - diff --git a/funcom_test/35594791.txt b/funcom_test/35594791.txt deleted file mode 100644 index b22dc74459ad3f8cc977617197d0d524a2d8dc2c..0000000000000000000000000000000000000000 --- a/funcom_test/35594791.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initialize() { - GridBagConstraints gridBagConstraints = new GridBagConstraints(); - gridBagConstraints.fill = GridBagConstraints.BOTH; - gridBagConstraints.gridy = 0; - gridBagConstraints.weightx = 1.0; - gridBagConstraints.weighty = 1.0; - gridBagConstraints.gridx = 0; - this.setSize(300, 200); - this.setLayout(new GridBagLayout()); - this.add(getJTextPane(), gridBagConstraints); - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/35714195.txt b/funcom_test/35714195.txt deleted file mode 100644 index 5358581a2e9a8b3380e5960cf3035d95d9bac512..0000000000000000000000000000000000000000 --- a/funcom_test/35714195.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setText(String name, String value) { - boolean found = false; - for (int i = 0; i < fields.length && !found; ++i) { - if (fields[i].name == null) continue; - if (fields[i].name.equals(name)) { - fields[i].value = value; - found = true; - } - } - if (!found) { - throw new IllegalArgumentException("No such text field."); - } - } - COM: <s> fill in a text input </s> - diff --git a/funcom_test/35714204.txt b/funcom_test/35714204.txt deleted file mode 100644 index b56c289ae0994b39ce26b77449c03762aecd988b..0000000000000000000000000000000000000000 --- a/funcom_test/35714204.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setPassword(String password) { - boolean found = false; - for (int i = 0; i < fields.length && !found; ++i) { - if (fields[i].type.equals("password")) { - fields[i].value = password; - found = true; - } - } - if (!found) { - throw new IllegalArgumentException("No such text field."); - } - } - COM: <s> set the first field that is a password type field an input </s> - diff --git a/funcom_test/35714220.txt b/funcom_test/35714220.txt deleted file mode 100644 index d922101e201aaf5cd299e98e5b95e6e65ae09991..0000000000000000000000000000000000000000 --- a/funcom_test/35714220.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void start() { - servers = new Servers(new ServerSetup[]{smtp, pop3}); - servers.getManagers().setSmtpManager( - new MySmtpManager(servers.getManagers())); - servers.start(); - /* create user account on server */ - servers.setUser("test@localhost.com", "user", "pass"); - mailUser = servers.getManagers().getUserManager().getUser("user"); - // System.out.println("user = " + mailUser); - } - COM: <s> start the smtp and pop3 servers </s> - diff --git a/funcom_test/35799206.txt b/funcom_test/35799206.txt deleted file mode 100644 index c7f932356a3a483556fa94a450664c2b9d9f98da..0000000000000000000000000000000000000000 --- a/funcom_test/35799206.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void show( String ident ) { - if( _j < 0 ) - System.out.println( ident + ": " + getReal( ) + " - j" - + Math.abs( getImag( ) ) ); - else - System.out.println( ident + ": " + getReal( ) + " + j" + getImag( ) ); - } // show - COM: <s> print this complex number to console with an identifier before </s> - diff --git a/funcom_test/35829644.txt b/funcom_test/35829644.txt deleted file mode 100644 index 4b5b46f680a416f90a8ca5ae79bc78dd23fc6568..0000000000000000000000000000000000000000 --- a/funcom_test/35829644.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void _addBrother(int node, char chr, int newNode) { - int brother = factory.getBrother(node); - char brotherLabel = factory.getBrotherLabel(node); - - if (brother < 0 || brotherLabel > chr) { - factory.setBrother(newNode, brother, brotherLabel); - factory.setBrother(node, newNode, chr); - } else - _addBrother(brother, chr, newNode); - } - COM: <s> add an element in list of brother </s> - diff --git a/funcom_test/35829648.txt b/funcom_test/35829648.txt deleted file mode 100644 index c2ac9d2c57618da6e7987113ed68130b8fd99ce1..0000000000000000000000000000000000000000 --- a/funcom_test/35829648.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected int _lookingSubNode(int node, char chr) { - int firstSubNode = factory.getFirstSubNode(node); - char firstSubNodeLabel = factory.getFirstSubNodeLabel(node); - - if (firstSubNode >= 0 && firstSubNodeLabel <= chr) { - if (firstSubNodeLabel == chr) - return firstSubNode; - return _lookingBrother(firstSubNode, chr); - } - return -1; - } - COM: <s> looking for a sub node of node accessible with chr </s> - diff --git a/funcom_test/35829649.txt b/funcom_test/35829649.txt deleted file mode 100644 index 60a02b73e0cf8c8dbc40d245e291eec4428941cb..0000000000000000000000000000000000000000 --- a/funcom_test/35829649.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected int _lookingBrother(int node, char chr) { - int brother = factory.getBrother(node); - char brotherLabel = factory.getBrotherLabel(node); - - if (brother >= 0 && brotherLabel <= chr) { - if (brotherLabel == chr) - return brother; - return _lookingBrother(brother, chr); - } - return -1; - } - COM: <s> looking for a node accessible with chr in list of brother </s> - diff --git a/funcom_test/35829676.txt b/funcom_test/35829676.txt deleted file mode 100644 index 96a2988087d44247925aaad70e7549568ae60463..0000000000000000000000000000000000000000 --- a/funcom_test/35829676.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected double getSizeData(VisualItem item) { - if ( item.canGetString(m_sizeLabelName) ) { - try { - return (Double.parseDouble(item.getString(m_sizeLabelName)) ); - } catch (NumberFormatException e) { - return 0; // size data can't be parse (wrong number format) - } - } - return 0; // no size data available - } - COM: <s> returns the node size </s> - diff --git a/funcom_test/35878741.txt b/funcom_test/35878741.txt deleted file mode 100644 index 9ae073731b25b372b5bee31c5cbc160847c4e7d4..0000000000000000000000000000000000000000 --- a/funcom_test/35878741.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void run() { - - try { - System.out.println("trying to make my proxy instance"); - MyProxy myProxyInstance = new MyProxy(host, 7512); - System.out.println("created myproxy instance"); - cred = myProxyInstance.get(null, username, password, 3000); - //System.out.println(cred); - //System.out.println(cred.getRemainingLifetime()); - status="success"; - } - catch (Exception e) { - System.out.println(e); - e.printStackTrace(); - status = "error"; - } - } - COM: <s> attempts to log onto the myproxy server and then get the credential </s> - diff --git a/funcom_test/35878767.txt b/funcom_test/35878767.txt deleted file mode 100644 index 2ed2c98d356eaaa1545768fc18efd5c9523c0e1b..0000000000000000000000000000000000000000 --- a/funcom_test/35878767.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void run() { - - try { - - //if the file already exists, delete it - client.setPassive(); - client.setLocalActive(); - if (client.exists(remoteFileName)) { - System.out.println("deleting the file"); - client.deleteFile(remoteFileName); - } - - client.setPassive(); - client.setLocalActive(); - client.extendedPut(remoteFileName, source, null); - //client.put(localFile, remoteFileName, false); - complete = true; - } - - catch (Exception e) { - System.out.println(e); - e.printStackTrace(); - } - } - COM: <s> the actual execution of the upload </s> - diff --git a/funcom_test/35878830.txt b/funcom_test/35878830.txt deleted file mode 100644 index 46d0305922f51ffdea129270eade770801aa6693..0000000000000000000000000000000000000000 --- a/funcom_test/35878830.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String update() { - - if (infoClient == null) { - //System.out.println("in here?"); - infoClient = loginComponent.getClient(); - } - //System.out.println("die in here?"); - try { - infoClient.setPassive(); - infoClient.setLocalActive(); - System.out.println("set client active/server passive passed!"); - - return "success"; - } - catch (Exception e) { - return e.toString(); - } - } - COM: <s> updates the info client </s> - diff --git a/funcom_test/35878859.txt b/funcom_test/35878859.txt deleted file mode 100644 index 19b9e4efc8a492a7148d9f07448a6e151318dff4..0000000000000000000000000000000000000000 --- a/funcom_test/35878859.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public double getSpeed() { - - if (transferType == 0) { - if (localMonitor != null) { - speed = localMonitor.getSpeed(); - return speed; - } - else { - return -1; - } - } - else if (transferType == 1) { - if (remoteMonitor != null) { - speed = remoteMonitor.getSpeed(); - return speed; - } - else { - return -1; - } - } - else { - return -1; - } - } - COM: <s> gets the speed of the current transfer in kb s </s> - diff --git a/funcom_test/35878867.txt b/funcom_test/35878867.txt deleted file mode 100644 index 9bd6779b2c90cbc26859db2f54311e4320e1dc00..0000000000000000000000000000000000000000 --- a/funcom_test/35878867.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public double getProgress() { - if (transferType == 0) { - if (localMonitor != null) { - progress = localMonitor.getProgress(); - return progress; - } - else { - return -1; - } - } - else if (transferType == 1) { - if (remoteMonitor != null) { - progress = remoteMonitor.getProgress(); - return progress; - } - else { - return -1; - } - } - else { - return -1; - } - } - COM: <s> gets the percent complete of the current transfer </s> - diff --git a/funcom_test/35882866.txt b/funcom_test/35882866.txt deleted file mode 100644 index 63123db7855cfd0cd951472e57d03a9c78184582..0000000000000000000000000000000000000000 --- a/funcom_test/35882866.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void render(GLCanvas canvas ) - { - // - // clear the screen and depth buffer - // - GL gl = canvas.getGL(); - gl.glClearColor( 0.2f, 0.2f, 0.2f, 1 ); - gl.glClear( GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT ); - - // - // update the simulation and renderer it. the - // loop will take care of all the ugly business - // - loop.update(); - } - COM: <s> updates and renders the simulation as well </s> - diff --git a/funcom_test/35914943.txt b/funcom_test/35914943.txt deleted file mode 100644 index 35be4bb2d6b3ec011f40374bf797706db46fa502..0000000000000000000000000000000000000000 --- a/funcom_test/35914943.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addEntry(String[] data) { - DBEntry newEntry = new DBEntry(); - if (data.length == 6) { - newEntry.entryId = Long.parseLong(data[0]); - Calendar cal = Calendar.getInstance(); - cal.setTimeInMillis(Long.parseLong(data[1])); - newEntry.entryDate = cal.getTime(); - newEntry.entryAmount = Integer.parseInt(data[2]); - newEntry.entryCategory = data[3]; - newEntry.entryPerson = data[4]; - newEntry.entryNote = data[5]; - this.entries.add(newEntry); - } - } - COM: <s> this adds an entry from an array of strings </s> - diff --git a/funcom_test/35927616.txt b/funcom_test/35927616.txt deleted file mode 100644 index b6de21fdeaa812790bf07cb83bffc6018746feff..0000000000000000000000000000000000000000 --- a/funcom_test/35927616.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void setKeyWordInputFilter() { - keyWordInputFilter = new InputFilter() { - - @Override - public CharSequence filter(CharSequence source, int start, int end, - Spanned dest, int dstart, int dend) { - for(String s : keyWordList) - { - if(s.equals(source.toString())) - { - SpannableString sp = new SpannableString(source); - sp.setSpan(new ForegroundColorSpan(Color.RED), 0, sp.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); - return sp; - } - } - return source; - } - }; - } - COM: <s> setup keyword filter to highlight keyword in source </s> - diff --git a/funcom_test/35927630.txt b/funcom_test/35927630.txt deleted file mode 100644 index cdae19779618f805e8fefdd7c513e6deaab5f254..0000000000000000000000000000000000000000 --- a/funcom_test/35927630.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void setCommentInputFilter(){ - CommentInputFilter = new InputFilter() { - - @Override - public CharSequence filter(CharSequence source, int start, int end, - Spanned dest, int dstart, int dend) { - for(String s : CommentList) - { - if(s.equals(source.toString())) - { - SpannableString sp = new SpannableString(source); - sp.setSpan(new ForegroundColorSpan(Color.GREEN), 0, sp.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); - return sp; - } - } - return source; - } - }; - } - COM: <s> setup comment filter to highlight comment in source </s> - diff --git a/funcom_test/35934681.txt b/funcom_test/35934681.txt deleted file mode 100644 index 4c8cd1e1b87830d3f64376703454eca7a5479377..0000000000000000000000000000000000000000 --- a/funcom_test/35934681.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void passedInSuccession() { - SortedZone stack = getGame().getStack(); - if(!stack.isEmpty()) { - MagicObject o = stack.getCards().get(stack.size() - 1); - //this will remove the object from the stack - o.getPlayInformation().getEffect().execute(); - } else nextStep(); - } - COM: <s> does everything that happens when all players pass in succession namely </s> - diff --git a/funcom_test/35934747.txt b/funcom_test/35934747.txt deleted file mode 100644 index 2ecd89e940a929babafeea6386e5f21526869cee..0000000000000000000000000000000000000000 --- a/funcom_test/35934747.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void nextTurn() { - CompoundEdit e = new CompoundEdit(getGame(), true, "Advance to next turn"); - //Do this if the method is called "strangely" - step.setValue(0); - - if(phase.getValue().intValue() != 0) phase.setValue(0); - getGame().getTurnStructure().nextTurn(); - e.end(); - } - COM: <s> advances to the next turn </s> - diff --git a/funcom_test/35935007.txt b/funcom_test/35935007.txt deleted file mode 100644 index 71137890ef79c3af777312facae9e26c1ebe195d..0000000000000000000000000000000000000000 --- a/funcom_test/35935007.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CardPanel createCardPanel(MagicObject card) { - CharacteristicSnapshot s = card.getCharacteristics().get(0).getCharacteristics( - new CharacteristicSnapshot()); - CardTextButton p = new CardTextButton(s); - p.addActionListener(cardListener); - p.addMouseListener(cardMouseListener); - p.setPainter(new DamagePainter()); - return p; - } - COM: <s> returns a component for displaying the specified card </s> - diff --git a/funcom_test/35935082.txt b/funcom_test/35935082.txt deleted file mode 100644 index 3596bd6dc7e08b7130ae62164fca8e700cd7ac41..0000000000000000000000000000000000000000 --- a/funcom_test/35935082.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void compile() throws IOException { - templates.clear(); - - ZipHandler h = new ZipHandler(PROPS().getFile(COMPILED)); - CompileAll ca = new CompileAll(); - ca.add(new LogHandler()); - ca.add(h); - ca.compile(); - h.close(); - load(); - } - COM: <s> compiles all cards to a zip file </s> - diff --git a/funcom_test/35935905.txt b/funcom_test/35935905.txt deleted file mode 100644 index 5ac3f05ed986acbce83a4707c634cab423ef7873..0000000000000000000000000000000000000000 --- a/funcom_test/35935905.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void read(Reader r) throws IOException { - BufferedReader in; - if(r instanceof BufferedReader) in = (BufferedReader) r; - else in = new BufferedReader(r); - - List<Line> newLines = read0(in); - synchronized(this) { - lines.clear(); - lines.addAll(newLines); - } - } - COM: <s> reads the contents of the reader and replaces the current properties in this </s> - diff --git a/funcom_test/35935935.txt b/funcom_test/35935935.txt deleted file mode 100644 index b83f13a7d3ee04b7f57fa2fc03253952a29c1322..0000000000000000000000000000000000000000 --- a/funcom_test/35935935.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Configurator execute() { - for(Entry<String, Runnable> e:configurators.entrySet()) { - log.debug("Execute " + e.getKey()); - try { - e.getValue().run(); - } catch(Exception ex) { - log.warn("While running configurator " + e.getKey(), ex); - } - } - return this; - } - COM: <s> executes the configured runnables </s> - diff --git a/funcom_test/35971754.txt b/funcom_test/35971754.txt deleted file mode 100644 index 26501f375ac0c22293964675dc06bfc5c86a2e08..0000000000000000000000000000000000000000 --- a/funcom_test/35971754.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private DashBoardDefinition buildFilterDependants(DashBoardDefinition dashBoardDefinition) { - for (FilterDefinition filter : dashBoardDefinition.getFilters()) { - DataSourceDefinition dataSourceDefinition = filter.getDataSourceDefinition(); - if (dataSourceDefinition != null) { - for (String filterName : filter.getDataSourceDefinition().getDependencies()) { - dashBoardDefinition.getFilter(filterName).getDependants().add(filter.getName()); - } - } - } - return dashBoardDefinition; - } - COM: <s> build filters dependants for each filter in dashboard </s> - diff --git a/funcom_test/35971786.txt b/funcom_test/35971786.txt deleted file mode 100644 index 953fdfd2afa558f0063d5798436d54a7918c8073..0000000000000000000000000000000000000000 --- a/funcom_test/35971786.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private String getDslExpressionValue(StringTokenizer dslTokenizer) { - StringBuilder valueBuilder = new StringBuilder(); - boolean closeMethod = false; - while (dslTokenizer.hasMoreElements() && !closeMethod) { - if (valueBuilder.length() > 0) { - valueBuilder.append("."); - } - String value = dslTokenizer.nextToken(); - if (value.endsWith(")")) { - value = value.substring(0, value.length() - 1); - closeMethod = true; - } - valueBuilder.append(value); - } - return valueBuilder.toString(); - } - COM: <s> get dsl expression value from a tokenizer </s> - diff --git a/funcom_test/35973201.txt b/funcom_test/35973201.txt deleted file mode 100644 index ef7c8213bce4ccd34e96380c456c0b3f3d89016e..0000000000000000000000000000000000000000 --- a/funcom_test/35973201.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void init(FilterConfig filterConfig) { - - String param = filterConfig.getInitParameter("uploadMaxFileSize"); - - _uploadMaxFileSize = resolveSize(param, _uploadMaxFileSize); - - param = filterConfig.getInitParameter("uploadThresholdSize"); - - _uploadThresholdSize = resolveSize(param, _uploadThresholdSize); - - _uploadRepositoryPath = filterConfig.getInitParameter("uploadRepositoryPath"); - - _servletContext = filterConfig.getServletContext(); - } - COM: <s> init method for this filter </s> - diff --git a/funcom_test/35998902.txt b/funcom_test/35998902.txt deleted file mode 100644 index 3755b5d18f51309fee30b02d9e89d4cc6a43b1be..0000000000000000000000000000000000000000 --- a/funcom_test/35998902.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void readMessages() { - WebContext wctx = WebContextFactory.get(); - Util utilThis = new Util(wctx.getScriptSession()); - - // Clear the list and add in the new set of messages - utilThis.removeAllOptions("chatlog"); - utilThis.addOptions("chatlog", messageCache, "message"); - - // FIXKE: hope to solve this with client code only - utilThis.addFunctionCall("scrollToBottomOfChatDiv"); - } - COM: <s> will push messages to one session only </s> - diff --git a/funcom_test/36031586.txt b/funcom_test/36031586.txt deleted file mode 100644 index 29af538569780f7be3740cb739fd0904f3be94ba..0000000000000000000000000000000000000000 --- a/funcom_test/36031586.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getSelectCommand() { - if (selectCommand == null) {//GEN-END:|20-getter|0|20-preInit - // write pre-init user code here - selectCommand = new Command("Select", Command.OK, 0);//GEN-LINE:|20-getter|1|20-postInit - // write post-init user code here - }//GEN-BEGIN:|20-getter|2| - return selectCommand; - } - COM: <s> returns an initiliazed instance of select command component </s> - diff --git a/funcom_test/36031594.txt b/funcom_test/36031594.txt deleted file mode 100644 index 2bcb9d8fda4f76f269a35c7fa956db4d2199efb4..0000000000000000000000000000000000000000 --- a/funcom_test/36031594.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getStopCommand() { - if (stopCommand == null) {//GEN-END:|22-getter|0|22-preInit - // write pre-init user code here - stopCommand = new Command("Stop Playback", Command.OK, 1);//GEN-LINE:|22-getter|1|22-postInit - // write post-init user code here - }//GEN-BEGIN:|22-getter|2| - return stopCommand; - } - COM: <s> returns an initiliazed instance of stop command component </s> - diff --git a/funcom_test/36031598.txt b/funcom_test/36031598.txt deleted file mode 100644 index 18eaf64215072b46c689d9fe145bfbcf578105bb..0000000000000000000000000000000000000000 --- a/funcom_test/36031598.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getPreviousListCommand() { - if (previousListCommand == null) {//GEN-END:|28-getter|0|28-preInit - // write pre-init user code here - previousListCommand = new Command("Previous Folder", Command.OK, 3);//GEN-LINE:|28-getter|1|28-postInit - // write post-init user code here - }//GEN-BEGIN:|28-getter|2| - return previousListCommand; - } - COM: <s> returns an initiliazed instance of previous list command component </s> - diff --git a/funcom_test/36031694.txt b/funcom_test/36031694.txt deleted file mode 100644 index 1443945ef7748ca1ca327a3f4774f8868c8216fc..0000000000000000000000000000000000000000 --- a/funcom_test/36031694.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand1() { - if (backCommand1 == null) {//GEN-END:|82-getter|0|82-preInit - // write pre-init user code here - backCommand1 = new Command("Back", Command.BACK, 0);//GEN-LINE:|82-getter|1|82-postInit - // write post-init user code here - }//GEN-BEGIN:|82-getter|2| - return backCommand1; - } - COM: <s> returns an initiliazed instance of back command1 component </s> - diff --git a/funcom_test/36031701.txt b/funcom_test/36031701.txt deleted file mode 100644 index 05e18ff3bf289766f07589b5f9c576896e927715..0000000000000000000000000000000000000000 --- a/funcom_test/36031701.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCompletePairCommand() { - if (completePairCommand == null) {//GEN-END:|85-getter|0|85-preInit - // write pre-init user code here - completePairCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|85-getter|1|85-postInit - // write post-init user code here - }//GEN-BEGIN:|85-getter|2| - return completePairCommand; - } - COM: <s> returns an initiliazed instance of complete pair command component </s> - diff --git a/funcom_test/36031717.txt b/funcom_test/36031717.txt deleted file mode 100644 index 466f22c2678dc20e6f344eedad0398e1dafa2eff..0000000000000000000000000000000000000000 --- a/funcom_test/36031717.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getFinishPairingCommand2() { - if (finishPairingCommand2 == null) {//GEN-END:|88-getter|0|88-preInit - // write pre-init user code here - finishPairingCommand2 = new Command("Ok2", Command.OK, 0);//GEN-LINE:|88-getter|1|88-postInit - // write post-init user code here - }//GEN-BEGIN:|88-getter|2| - return finishPairingCommand2; - } - COM: <s> returns an initiliazed instance of finish pairing command2 component </s> - diff --git a/funcom_test/3608024.txt b/funcom_test/3608024.txt deleted file mode 100644 index 8bc34e471095999419ab294a86741eda55bf0c4c..0000000000000000000000000000000000000000 --- a/funcom_test/3608024.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String printGlossary() { - - String printme = ""; - - for (Iterator i = keyValues.keySet().iterator(); i.hasNext(); ) { - String key = i.next().toString(); - String value = getString(key); - printme = printme + key + " = " + value + "<br>\n"; - - } - - return printme; - } - COM: <s> prints the glossary hack job alert </s> - diff --git a/funcom_test/3608025.txt b/funcom_test/3608025.txt deleted file mode 100644 index 7e5af792e550aec8a395def7c73a772480b1ef20..0000000000000000000000000000000000000000 --- a/funcom_test/3608025.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String printGlossary(String startWithName) { - String printme = new String(); - - for (Iterator i = keyValues.keySet().iterator(); i.hasNext(); ) { - String key = i.next().toString(); - String value = getString(key); - - if (key.startsWith(startWithName)) { - printme = printme + key + " = " + value + "<br>\n"; - } - } - - return printme; - } - COM: <s> prints the glossary where key item start with specific pattern name </s> - diff --git a/funcom_test/3608181.txt b/funcom_test/3608181.txt deleted file mode 100644 index a9508bd60ee62aefecf68e66631c4b5e4fab07fb..0000000000000000000000000000000000000000 --- a/funcom_test/3608181.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCurrentActivity(String activity) { - - int junkStart = activity.indexOf(" "); - if (junkStart != -1) { - this.currentActivity = activity.substring(0, junkStart); - } else if (activity.length() > 250) { - this.currentActivity = activity.substring(0, 250); - } else { - this.currentActivity = activity; - } - - } - COM: <s> function set current activity purpose to set the query that this connection </s> - diff --git a/funcom_test/3608329.txt b/funcom_test/3608329.txt deleted file mode 100644 index 0a980bc1810f8d98fff7560f1b273f5e6790ee99..0000000000000000000000000000000000000000 --- a/funcom_test/3608329.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int doStartTag() { - parent = (PackageTag)findAncestorWithClass(this, PackageTag.class) ; - //check for null, existing row with condition to eval only 1 time - if ( (parent != null) && (!parent.getNoRows()) ) { - return EVAL_BODY_TAG; - } else { - return SKIP_BODY; - } - } - COM: <s> display the header format if got data return from the package tag </s> - diff --git a/funcom_test/3608338.txt b/funcom_test/3608338.txt deleted file mode 100644 index 9e950478b6a6b9ddc91040e0f1ca86efe0b18d88..0000000000000000000000000000000000000000 --- a/funcom_test/3608338.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int doStartTag() throws JspException { - - - parent = (PackageTag)findAncestorWithClass(this, PackageTag.class) ; - - //check for existing row - if ( (parent != null) && (parent.getNoRows()) ) { - - return EVAL_BODY_TAG; - } else { - return SKIP_BODY; - } - } - COM: <s> display the no row message if no data return from the package tag </s> - diff --git a/funcom_test/3608356.txt b/funcom_test/3608356.txt deleted file mode 100644 index 9637de3b386b298e24d031ea8ae302401591130d..0000000000000000000000000000000000000000 --- a/funcom_test/3608356.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int doStartTag() throws JspException { - PackageTag parent = - (PackageTag)findAncestorWithClass(this, PackageTag.class) ; - - if( !parent.getAction().equals("") ) { - parent.execute(); - return(EVAL_BODY_INCLUDE) ; - }else { - parent.printMessage("No packageTag Action name exist " + - parent.getAction() ); - return(SKIP_BODY) ; - } - - } - COM: <s> call package tags execute function that queries the database </s> - diff --git a/funcom_test/3608376.txt b/funcom_test/3608376.txt deleted file mode 100644 index fac09ad48afc9b2aaa0fa4f3761953f66231b426..0000000000000000000000000000000000000000 --- a/funcom_test/3608376.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int doAfterBody() throws JspException { - - BodyContent body = getBodyContent(); - try { - body.writeOut(getPreviousOut()); - parent.nextRow(); - } catch (IOException e) { - parent.printMessage("Error in IO body repeat" + e) ; - } - body.clearBody(); - - if (parent.getHasRowData()) { - return EVAL_BODY_TAG; - } else { - return SKIP_BODY; - } - - } - COM: <s> display each record from package tag glossary </s> - diff --git a/funcom_test/3608633.txt b/funcom_test/3608633.txt deleted file mode 100644 index 04331b60b4ea1c13c0e85954b12522ea8c4083a0..0000000000000000000000000000000000000000 --- a/funcom_test/3608633.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public CofaxPage getPage(String id) { - - if (cacheHash.get(id) instanceof CofaxPage) { - cacheHits++; - return (CofaxPage) cacheHash.get(id); - } else if (dirtyHash.get(id) instanceof CofaxPage) { - dirtyHits++; - return (CofaxPage) dirtyHash.get(id); - } else { - return (CofaxPage) new CofaxPage(); - } - - } - COM: <s> returns a page from the cache hash table </s> - diff --git a/funcom_test/36174189.txt b/funcom_test/36174189.txt deleted file mode 100644 index f08988ac345554f6948821d7ec60426fbb2ffa42..0000000000000000000000000000000000000000 --- a/funcom_test/36174189.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String getErrorMessage() { - switch (status) { - case STATUS_EXCEPTION: { - return exception.getMessage(); - } - case STATUS_REPORT: { - return "Report: "+reportPDU.get(0); - } - case STATUS_TIMEOUT: { - return "Request timed out."; - } - case STATUS_WRONG_ORDER: { - return "Agent did not return variable bindings in lexicographic order."; - } - default: { - return ""; - } - } - } - COM: <s> returns a textual error message for the error </s> - diff --git a/funcom_test/36174772.txt b/funcom_test/36174772.txt deleted file mode 100644 index e6f063102577cddf22ea0b8f9d2f1bb85785ebf1..0000000000000000000000000000000000000000 --- a/funcom_test/36174772.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ResponseEvent set(PDU pdu, Target target) { - pdu.setType(PDU.SET); - try { - return send(pdu, target); - } - catch (IOException ex) { - return new ResponseEvent(this, null, pdu, null, target, ex); - } - } - COM: <s> sends a set request to a target </s> - diff --git a/funcom_test/36174992.txt b/funcom_test/36174992.txt deleted file mode 100644 index 317791750595152614de1400261ca5e2cf63df9f..0000000000000000000000000000000000000000 --- a/funcom_test/36174992.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getImportIncludeReference(String fileContent, int fromIndex, String startSearchString, String endSearchString) { - int toIndex = fileContent.indexOf(endSearchString, fromIndex + startSearchString.length()); - if (toIndex > -1) { - return fileContent.substring(fromIndex, toIndex); - } - return null; - } - COM: <s> returns a schema import or include reference containing namespace and schema location </s> - diff --git a/funcom_test/36221537.txt b/funcom_test/36221537.txt deleted file mode 100644 index 9d6e42538c8e9dae680b59479f5352d163572180..0000000000000000000000000000000000000000 --- a/funcom_test/36221537.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private HTree getHashtableForHandle(String handle) { - HTree hashtable = metrics.get(handle); - if (null == hashtable) { - try { - long recid = recman.getNamedObject(handle); - if (recid != 0) { - hashtable = HTree.load(recman, recid); - } else { - hashtable = HTree.createInstance(recman); - recman.setNamedObject(handle, hashtable.getRecid()); - } - metrics.put(handle, hashtable); - } catch (Throwable e) { - logger.log(Level.SEVERE, "Counld not get cached value for " - + handle, e); - } - } - return hashtable; - } - COM: <s> get the htree related to a java element given the handle </s> - diff --git a/funcom_test/36221551.txt b/funcom_test/36221551.txt deleted file mode 100644 index 45cc05aed17d80a702984be366f1d4800b7143c8..0000000000000000000000000000000000000000 --- a/funcom_test/36221551.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void clear() { - try { - recman.close(); - File db = new File(pluginDir + DBNAME + ".db"); - db.delete(); - db = new File(pluginDir + DBNAME + ".lg"); - db.delete(); - logger.info(pluginDir + DBNAME + ".db/.lg" + " deleted...."); - initRecordManager(); - metrics.clear(); - } catch (Throwable e) { - logger.log(Level.SEVERE, "Error deleting jdbm database ", e); - } - } - COM: <s> clean out entire database and set up a new one </s> - diff --git a/funcom_test/36356719.txt b/funcom_test/36356719.txt deleted file mode 100644 index 30fa2c4fb2ed0790ab7f7e942e9e92f48047598f..0000000000000000000000000000000000000000 --- a/funcom_test/36356719.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("ProductInformationSOAP".equals(portName)) { - setProductInformationSOAPEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/36357122.txt b/funcom_test/36357122.txt deleted file mode 100644 index 66bf4ba99be89a0e3749b5a7ab94eb287160050e..0000000000000000000000000000000000000000 --- a/funcom_test/36357122.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected boolean isResponseValid(ServerResponse response) { - if (response != null) { - if (response.getErrors() == null - || response.getErrors().size() == 0) { - return true; - } else { - List<String> errors = response.getErrors(); - for (String string : errors) { - addServerErrorMessage(string); - } - } - } else { - addServerFatalMessage("ServerResponse is null."); - } - return false; - } - COM: <s> this method check whether the </s> - diff --git a/funcom_test/36375412.txt b/funcom_test/36375412.txt deleted file mode 100644 index d166183bd89fe26fc3427fad418df747f8c07927..0000000000000000000000000000000000000000 --- a/funcom_test/36375412.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Group initHelpOptions() { - this.helpOption = - optBuilder.withShortName("h").withLongName("help") - .withDescription("Prints this help message and exits.") - .create(); - - return - groupBuilder.withOption(helpOption) - .withMinimum(0).withMaximum(1).withName("Getting help:").create(); - } - COM: <s> creates the help group of options </s> - diff --git a/funcom_test/36375446.txt b/funcom_test/36375446.txt deleted file mode 100644 index 909268d66c0771c9e5dd11f94792e6df2298dadf..0000000000000000000000000000000000000000 --- a/funcom_test/36375446.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void runSingleThread() { - for (int n = in.nMin(); n <= in.nMax(); n += in.nStep()) { - for (int k = in.kMin(); k <= in.kMax(); k += in.kStep()) { - this.runSingleThreaded(n, k); - } - } - } - COM: <s> runs in single thread mode </s> - diff --git a/funcom_test/36375450.txt b/funcom_test/36375450.txt deleted file mode 100644 index 1ac8f9fed337e362521614443ba969a344ddc761..0000000000000000000000000000000000000000 --- a/funcom_test/36375450.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void initInputFileOptions() { - this.fileInputOption = - optBuilder.withShortName("f").withLongName("file") - .withDescription("Reads the input from the given file.") - .withArgument(argBuilder.withName("<file name>").withMinimum(1).create()) - .create(); - } - COM: <s> init console options for input from file </s> - diff --git a/funcom_test/36394226.txt b/funcom_test/36394226.txt deleted file mode 100644 index db4095b61d8e6442611f4ce5284001a7efea4b92..0000000000000000000000000000000000000000 --- a/funcom_test/36394226.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private String createTruncateTableStatement(TransactionMessage.TruncateTableStatement truncateTableStatement) { - String schemaName = truncateTableStatement.getTableMetadata().getSchemaName(); - String tableName = truncateTableStatement.getTableMetadata().getTableName(); - return "TRUNCATE TABLE `"+schemaName+"`.`"+tableName+"`"; - } - COM: <s> create a truncate table statement </s> - diff --git a/funcom_test/36394229.txt b/funcom_test/36394229.txt deleted file mode 100644 index 9e3cb74acd7bd9dba06739074fc69db14903ae8d..0000000000000000000000000000000000000000 --- a/funcom_test/36394229.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private String createDropTableStatement(TransactionMessage.DropTableStatement dropTableStatement) { - String schemaName = dropTableStatement.getTableMetadata().getSchemaName(); - String tableName = dropTableStatement.getTableMetadata().getTableName(); - return "DROP TABLE `"+schemaName+"`.`"+tableName+"`"; - } - COM: <s> create a drop table statement </s> - diff --git a/funcom_test/36398383.txt b/funcom_test/36398383.txt deleted file mode 100644 index 1d5c6d3411c5ab6dd454195ddaaf540806d2932f..0000000000000000000000000000000000000000 --- a/funcom_test/36398383.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean deletePreparedStatement(String name) { - if (portals.containsKey(name)) { - portals.remove(name); - } - if (statements.containsKey(name)) { - PreparedStatement pStmt = statements.get(name).getStatement(); - try { - pStmt.close(); - } catch (SQLException e) { - // do nothing - } - statements.remove(name); - return true; - } - return false; - } - COM: <s> deallocates a prepared statement </s> - diff --git a/funcom_test/36398392.txt b/funcom_test/36398392.txt deleted file mode 100644 index 15179a79232e8af1fd07c6eeeb520b1d0e2bb252..0000000000000000000000000000000000000000 --- a/funcom_test/36398392.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getInt16() throws EOFException { - if (position <= length - 2) { - byte[] b = byteBuffer; - - return ((b[position++] & 0xff) << 8) | (b[position++] & 0xff); - } - - throw new EOFException("End Of File in getInt16()"); - } - COM: <s> return two bytes from the buffer as an integer </s> - diff --git a/funcom_test/36398405.txt b/funcom_test/36398405.txt deleted file mode 100644 index f482678cace5b6da810bf4a54061f8d23243bf12..0000000000000000000000000000000000000000 --- a/funcom_test/36398405.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void putInt32(int i) { - ensureCapacity(4); - - byte[] b = byteBuffer; - b[position++] = (byte) (i >>> 24); - b[position++] = (byte) (i >>> 16); - b[position++] = (byte) (i >>> 8); - b[position++] = (byte) (i & 0xff); - - length += 4; - } - COM: <s> put a 32 bit integer in the buffer </s> - diff --git a/funcom_test/36398409.txt b/funcom_test/36398409.txt deleted file mode 100644 index 4e2a273edbb0d0184205f49cfd5836355e20ea62..0000000000000000000000000000000000000000 --- a/funcom_test/36398409.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void putStringLenEncoded(String s) { - if (s == null) { - putInt32(-1); - } else { - byte[] b = s.getBytes(); - - ensureCapacity(b.length + 4); - putInt32(b.length); - System.arraycopy(b, 0, byteBuffer, position, b.length); - position += b.length; - length += b.length; - } - } - COM: <s> put a string as a length encoded string in the buffer </s> - diff --git a/funcom_test/36398417.txt b/funcom_test/36398417.txt deleted file mode 100644 index ba07be97fb1c976d5a00a2e18d93e1bf5f796115..0000000000000000000000000000000000000000 --- a/funcom_test/36398417.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void write(OutputStream out) throws IOException { - int len = length - 1; - - byte[] b = byteBuffer; - b[1] = (byte) (len >>> 24); - b[2] = (byte) (len >>> 16); - b[3] = (byte) (len >>> 8); - b[4] = (byte) (len & 0xff); - - out.write(b, 0, position); - } - COM: <s> write the buffer to the output stream </s> - diff --git a/funcom_test/36398495.txt b/funcom_test/36398495.txt deleted file mode 100644 index 6c4ef8bc5b66ea2683b11b9cf1742082d3c33deb..0000000000000000000000000000000000000000 --- a/funcom_test/36398495.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void run() { - // run only if we have at least one configuration item - if (configuration.size() > 0) { - ExecutorService pool = Executors.newFixedThreadPool(configuration.size()); - - for (Configuration configItem : configuration) { - logger.info("Launching server thread with configuration: " + configItem.toString()); - ServerThread serverThread = new ServerThread(configItem); - pool.execute(serverThread); - } - } - } - COM: <s> for every configuration item start a server thread to listen on the port </s> - diff --git a/funcom_test/36404895.txt b/funcom_test/36404895.txt deleted file mode 100644 index 192420a9a720488073433da6796893574c68b556..0000000000000000000000000000000000000000 --- a/funcom_test/36404895.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void reset() { - files = new Vector<OutputFile>(); - content = new Vector<ContentEntry>(); - titlePageFile = null; - textFile = null; - tocFile = null; - lofFile = null; - lotFile = null; - indexFile = null; - bibliographyFile = null; - coverImageFile = null; - metaData = null; - nMasterCount = 0; - } - COM: <s> resets all data </s> - diff --git a/funcom_test/36405135.txt b/funcom_test/36405135.txt deleted file mode 100644 index c63af1cae11505d4a24775fb397245cb64c76b58..0000000000000000000000000000000000000000 --- a/funcom_test/36405135.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void applyHardCharFormatting(StyleWithProperties style, BeforeAfter ba) { - palette.getI18n().applyLanguage(style,true,false,ba); - applyFont(style,true,false,ba,new Context()); - if (!ba.isEmpty()) { ba.add(" ",""); } - } - COM: <s> p apply hard character formatting no inheritance </s> - diff --git a/funcom_test/36405150.txt b/funcom_test/36405150.txt deleted file mode 100644 index 35e72ddb732f11c022872e15800278b3cb685343..0000000000000000000000000000000000000000 --- a/funcom_test/36405150.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void applyFontEffects(StyleWithProperties style, boolean bInherit, BeforeAfter ba) { - if (style==null) { return; } - applyTextPosition(style, bInherit, ba); - applyUnderline(style, bInherit, ba); - applyCrossout(style, bInherit, ba); - applyChangeCase(style, bInherit, ba); - } - COM: <s> p apply font effects position underline crossout change case </s> - diff --git a/funcom_test/36405216.txt b/funcom_test/36405216.txt deleted file mode 100644 index 1a42d8f913a1bac2af8756ebdd44cd66fae77fca..0000000000000000000000000000000000000000 --- a/funcom_test/36405216.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void applyChangeCase(StyleWithProperties style, boolean bInherit, BeforeAfter ba) { - if (style==null) { return; } - if (bIgnoreAll) { return; } - String s = changeCase(style.getProperty(XMLString.FO_TEXT_TRANSFORM)); - if (s!=null) { ba.add(s+"{","}"); } - } - COM: <s> p apply change case </s> - diff --git a/funcom_test/36405249.txt b/funcom_test/36405249.txt deleted file mode 100644 index 5309abb6f3dcde81f8e680f3f763ddddac2c8c58..0000000000000000000000000000000000000000 --- a/funcom_test/36405249.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void handleSequenceLabel(Element node, LaTeXDocumentPortion ldp) { - String sRefName = Misc.getAttribute(node,XMLString.TEXT_REF_NAME); - if (sRefName!=null && ofr.hasSequenceRefTo(sRefName)) { - ldp.append("\\label{seq:") - .append(seqrefnames.getExportName(sRefName)) - .append("}"); - } - } - COM: <s> p create label for a sequence field text sequence tag p </s> - diff --git a/funcom_test/36405315.txt b/funcom_test/36405315.txt deleted file mode 100644 index afe4d2984c3459ece34f3eda5f0aa4fa3da1fb21..0000000000000000000000000000000000000000 --- a/funcom_test/36405315.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void applyParProperties(StyleWithProperties style, BeforeAfter ba) { - palette.getPageSc().applyPageBreak(style,true,ba); - ba.add("","\\par"); - applyLineSpacing(style,ba); - applyMargins(style,ba); - } - COM: <s> p apply all paragraph properties </s> - diff --git a/funcom_test/36405334.txt b/funcom_test/36405334.txt deleted file mode 100644 index a271bca2ba9323f013d56d2eac2268c0fe0699b0..0000000000000000000000000000000000000000 --- a/funcom_test/36405334.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void handleReferenceMarkEnd(Element node, LaTeXDocumentPortion ldp, Context oc) { - // Nothing to do, except to mark that this ends any Zotero/JabRef citation - oc.setInZoteroJabRefText(false); - if (bIncludeOriginalCitations) { // Protect space after comment - ldp.append("{}"); - } - } - COM: <s> p process a reference mark end text reference mark end tag p </s> - diff --git a/funcom_test/36405354.txt b/funcom_test/36405354.txt deleted file mode 100644 index 66de917abe2607ff39de45add6f569374bc20a6a..0000000000000000000000000000000000000000 --- a/funcom_test/36405354.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean handleDisplayEquation(Element node, LaTeXDocumentPortion ldp) { - theEquation = null; - theSequence = null; - if (parseDisplayEquation(node) && theEquation!=null) { - handleDisplayEquation(theEquation, theSequence, ldp); - return true; - } - else { - return false; - } - } - COM: <s> try to convert a paragraph as a display equation </s> - diff --git a/funcom_test/36405409.txt b/funcom_test/36405409.txt deleted file mode 100644 index 57fb56d87f4506443d040fb2b770f3df79639a99..0000000000000000000000000000000000000000 --- a/funcom_test/36405409.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl) { - if (bContainsEndnotes) { pack.append("\\usepackage{endnotes}").nl(); } - if (bContainsFootnotes) convertFootnotesConfiguration(decl); - if (bContainsEndnotes) convertEndnotesConfiguration(decl); - } - COM: <s> p append declarations needed by the code note converter code to </s> - diff --git a/funcom_test/36405422.txt b/funcom_test/36405422.txt deleted file mode 100644 index 7703b9d4f95d2dfa089c0b51671bba1fe18348a7..0000000000000000000000000000000000000000 --- a/funcom_test/36405422.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void handleNoteRef(Element node, LaTeXDocumentPortion ldp, Context oc) { - String sClass=node.getAttribute(XMLString.TEXT_NOTE_CLASS); - if (sClass.equals("footnote")) { handleFootnoteRef(node,ldp,oc); } - else if (sClass.equals("endnote")) { handleEndnoteRef(node,ldp,oc); } - } - COM: <s> p process a note reference text note ref tag oasis </s> - diff --git a/funcom_test/36405594.txt b/funcom_test/36405594.txt deleted file mode 100644 index e50d697f4923af52e6c626fb47af476da363f68b..0000000000000000000000000000000000000000 --- a/funcom_test/36405594.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void convert(Node image, Element onode, Node hnode) { - if (bSupportMathML) { - if (converter.getTextCv().isDisplayEquation()) { - onode.setAttribute("display", "block"); - } - convertAsMathML(onode,hnode); - } - else { - convertAsImageOrText(image,onode,hnode); - } - } - COM: <s> convert a formula </s> - diff --git a/funcom_test/36405641.txt b/funcom_test/36405641.txt deleted file mode 100644 index d263a81d1bb572e224ccaab511655f05880113d5..0000000000000000000000000000000000000000 --- a/funcom_test/36405641.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void applyDefaultWritingDirection(StyleInfo info) { - MasterPage masterPage = ofr.getFirstMasterPage(); - if (masterPage!=null) { - PageLayout pageLayout = ofr.getPageLayout(masterPage.getPageLayoutName()); - if (pageLayout!=null) { - applyDirection(pageLayout,info); - } - } - } - COM: <s> apply default writing direction based on first master page </s> - diff --git a/funcom_test/36405643.txt b/funcom_test/36405643.txt deleted file mode 100644 index 01e15f7b980ce096aee9cd9a32c8711dc5642239..0000000000000000000000000000000000000000 --- a/funcom_test/36405643.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void applyStyle(String sStyleName, StyleInfo info) { - MasterPage masterPage = ofr.getMasterPage(sStyleName); - if (masterPage!=null) { - String sDisplayName = masterPage.getDisplayName(); - if (ofr.isPresentation()) { - // Always generates class name - info.sClass="masterpage"+styleNames.getExportName(sDisplayName); - } - } - } - COM: <s> apply a master page style currently only for presentations </s> - diff --git a/funcom_test/36405658.txt b/funcom_test/36405658.txt deleted file mode 100644 index b349f771abffa6c060ac84e6717d1d556f642ad8..0000000000000000000000000000000000000000 --- a/funcom_test/36405658.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit) { - // Page break - getParSc().cssPageBreak(style, props, bInherit); - // Apply background - getFrameSc().cssBackground(style,props,bInherit); - // Table-specific properties - cssTable(style,props,bInherit); - } - COM: <s> convert formatting properties for a specific table style </s> - diff --git a/funcom_test/36406032.txt b/funcom_test/36406032.txt deleted file mode 100644 index 6ae4fe214255d4900f9e378209e831c0a3c68f4e..0000000000000000000000000000000000000000 --- a/funcom_test/36406032.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void copy(String sName, Map<String,String> attributes) { - if (sName!=null && sName.length()>0) { - Map<String,String> newAttributes = new HashMap<String,String>(); - for (String sAttrName : attributes.keySet()) { - newAttributes.put(sAttrName, attributes.get(sAttrName)); - } - put(sName, newAttributes); - } - } - COM: <s> define a key using a i copy i of a the provided attributes </s> - diff --git a/funcom_test/36406402.txt b/funcom_test/36406402.txt deleted file mode 100644 index 78e5382283ade8aa2142ecff63dd3bf0bd61f3ca..0000000000000000000000000000000000000000 --- a/funcom_test/36406402.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void initialize() { - try { - // Prepare registry view - Object view = getRegistryView(false); - XPropertySet xProps = (XPropertySet) - UnoRuntime.queryInterface(XPropertySet.class,view); - - // Load settings using method from subclass - loadSettings(xProps); - - // Dispose the registry view - disposeRegistryView(view); - } - catch (com.sun.star.uno.Exception e) { - // Failed to get registry view - } - } - COM: <s> initialize the dialog eg </s> - diff --git a/funcom_test/36406609.txt b/funcom_test/36406609.txt deleted file mode 100644 index 1f741eacfdac920b2ce9964948f9281401b4ec2b..0000000000000000000000000000000000000000 --- a/funcom_test/36406609.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public int execute(String sAppName, String sFileName, File workDir, Map<String,String> env, boolean bWaitFor) { - return execute(sAppName, "", sFileName, workDir, env, bWaitFor); - } - COM: <s> execute an external application </s> - diff --git a/funcom_test/36406617.txt b/funcom_test/36406617.txt deleted file mode 100644 index f2309cfa06ed2533bd07a1508d5603cb86806082..0000000000000000000000000000000000000000 --- a/funcom_test/36406617.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public String deTeXt(InputStream is) throws IOException { - // It makes no harm to assume that the stream uses ISO Latin1 - we only consider ASCII characters - mouth = new Mouth(new InputStreamReader(is,"ISO8859_1")); - token = mouth.getTokenObject(); - - packages = new HashSet<String>(); - - mouth.getToken(); - - if (parseHeader() && parsePreamble()) { - if (packages.contains("xunicode")) { - return "XeLaTeX"; - } - else { - return "LaTeX"; - } - } - - // Unknown format - return null; - - } - COM: <s> detect the format of a given stream </s> - diff --git a/funcom_test/36406644.txt b/funcom_test/36406644.txt deleted file mode 100644 index 301097bda9838bbec6fc2f5ad21784f2a5c93f1d..0000000000000000000000000000000000000000 --- a/funcom_test/36406644.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void cancel() { - // Change state to "breaking" - synchronized(this) { - if (m_nState==FILTERPROC_RUNNING) m_nState=FILTERPROC_BREAKING; - } - - // And wait until state has changed to "stopped" - while (true) { - synchronized(this) { - if (m_nState==FILTERPROC_STOPPED) - break; - } - } - } - COM: <s> cancel the filtering process </s> - diff --git a/funcom_test/3644827.txt b/funcom_test/3644827.txt deleted file mode 100644 index 5be4a103e92112d067cbe4fcbbbcbc50656522da..0000000000000000000000000000000000000000 --- a/funcom_test/3644827.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String readerToString(FileReader fr) throws IOException { - StringBuffer sb = new StringBuffer(); - char[] b = new char[8192]; - int n; - - while ((n = fr.read(b)) > 0) { - sb.append(b, 0, n); - } - - return sb.toString(); - } - COM: <s> reads a file into a string </s> - diff --git a/funcom_test/3644853.txt b/funcom_test/3644853.txt deleted file mode 100644 index 797bada3d3b4096bc13f6d3c6dd8a6aecc38a912..0000000000000000000000000000000000000000 --- a/funcom_test/3644853.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeWorker(int id) { - Worker tmp = (Worker)workersSet.get(new Integer(id)); - if (tmp != null) { - //cancel the worker's current job - if (tmp.getStatus() == Worker.WORKER_BUSY) - js.cancelJobBean(tmp.getCurrentJobBeanId()); - //actually remove the worker - workersSet.remove(new Integer(id)); - } - } - COM: <s> safely removes a worker from the set </s> - diff --git a/funcom_test/3644888.txt b/funcom_test/3644888.txt deleted file mode 100644 index bbf5a42fd79f85e736de14ddc444fb5af731e9df..0000000000000000000000000000000000000000 --- a/funcom_test/3644888.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void getImageAsJpeg(int id, int width, int height, OutputStream out) throws IOException { - Job job = (Job)allJobs.get(new Integer(id)); - if (job == null) - throw new IOException("Illegal Job"); - - job.getImageAsJpeg(out, width, height); - } - COM: <s> writes a jobs scaled image to an output stream </s> - diff --git a/funcom_test/3644916.txt b/funcom_test/3644916.txt deleted file mode 100644 index 2a1a3b2da4c4cfc667e0ecddb99b2fda073ace3c..0000000000000000000000000000000000000000 --- a/funcom_test/3644916.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void submitResults(SOAPContext ctx, int id, int results[]) { - ServletContext sc = getServletContext(ctx); - Object tmp = sc.getAttribute("noagrid.data.js"); - if (tmp != null) { - JobsSet js = (JobsSet)tmp; - js.processResults(id, results); - } - } - COM: <s> submit results is the method called when a worker wants to </s> - diff --git a/funcom_test/3644946.txt b/funcom_test/3644946.txt deleted file mode 100644 index 4752530441154251d1213e3485d4eec7862f4410..0000000000000000000000000000000000000000 --- a/funcom_test/3644946.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: synchronized public boolean hasNext() { - //check if there are returned lines - if (pending.size() > 0) - return true; - - //check if we have already prepared this round and there are lines left in it - if (thisRound.size() > 0) - return true; - - //we have not prepare the current round, prepare it and check if there is something to give - createNextRound(); - if (thisRound.size() > 0) - return true; - - return false; - } - COM: <s> checks whether there are more lines to give </s> - diff --git a/funcom_test/3644947.txt b/funcom_test/3644947.txt deleted file mode 100644 index 0b8b4f578b4fd2b75415e045ffa28f89069050b3..0000000000000000000000000000000000000000 --- a/funcom_test/3644947.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: synchronized public Object next() { - //check if there are returned lines - if (pending.size() > 0) - return (Integer)pending.remove(0); - - //check if we need to create the current round - if (thisRound.size() == 0) - createNextRound(); - - //if there is still nothing to give, the entire job is done - if (thisRound.size() == 0) - return null; - - return (Integer)thisRound.remove(0); - } - COM: <s> retrieves the next line number </s> - diff --git a/funcom_test/36513689.txt b/funcom_test/36513689.txt deleted file mode 100644 index 969bfc72c0ce724455384ae47d55eff19ecb54e9..0000000000000000000000000000000000000000 --- a/funcom_test/36513689.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setColumnsError( final String msg ) { - columnsErrorMsgLabel.setText( msg ); - jPanel2.remove( columnsScrollPane ); - jPanel2.add( columnsErrorScrollPane, java.awt.BorderLayout.CENTER ); - jPanel2.revalidate(); - columnsErrorMsgLabel.repaint(); - - //okButton.setEnabled(false); - } - COM: <s> replace the columns list with a label that contains the reason why </s> - diff --git a/funcom_test/36514830.txt b/funcom_test/36514830.txt deleted file mode 100644 index a79a1be6b8579f7883c2b48b00845f57b3a629e1..0000000000000000000000000000000000000000 --- a/funcom_test/36514830.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void fireValueChangedListenerValueChanged(ValueChangedEvent event) { - if (listenerList == null) return; - Object[] listeners = listenerList.getListenerList(); - for (int i = listeners.length-2; i>=0; i-=2) { - if (listeners[i]==ValueChangedListener.class) { - ((ValueChangedListener)listeners[i+1]).valueChanged(event); - } - } - } - COM: <s> notifies all registered listeners about the event </s> - diff --git a/funcom_test/36514862.txt b/funcom_test/36514862.txt deleted file mode 100644 index ccc5e8c333f20496ec5ca28112db72f34e70ba0e..0000000000000000000000000000000000000000 --- a/funcom_test/36514862.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setClasspath(List<String> cp) { - String classpathString = ""; - for (String path : cp) - { - classpathString += path + ";"; - } - getPreferences().put(IREPORT_CLASSPATH, classpathString); - - ((ReportClassLoader)getReportClassLoader()).rescanAdditionalClasspath(); - } - COM: <s> save the new classpath </s> - diff --git a/funcom_test/36516080.txt b/funcom_test/36516080.txt deleted file mode 100644 index 6fd850d43fa6fccfd9f34be841c7295511b7e018..0000000000000000000000000000000000000000 --- a/funcom_test/36516080.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent evt) { - JMenuItem source = (JMenuItem) evt.getSource(); - FileObject fo = (FileObject) source.getClientProperty(FO_PROP); - if (fo != null) { - - try { - DataObject.find(fo).getCookie(OpenCookie.class).open(); - } catch (Exception ex) - { - // do nothing... - } - } - } - COM: <s> opens recently closed file using open file support </s> - diff --git a/funcom_test/36634484.txt b/funcom_test/36634484.txt deleted file mode 100644 index 7401dabed5f65cbbbc1c439beeaa51533bda65e3..0000000000000000000000000000000000000000 --- a/funcom_test/36634484.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setHelpText(String text){ - helpText = text; - pixture.setOpacity(0.1); - pixture.addImage(0, pixture.getTextPicture(helpText)); - - setItemImage(2, 0, pixture.getImage(0)); - textWidth = pixture.getX(0); - setPosition(); - } - COM: <s> this function gets the help text for display </s> - diff --git a/funcom_test/36634507.txt b/funcom_test/36634507.txt deleted file mode 100644 index 34ecb5a453145c545fa837490b9f0979eca34a41..0000000000000000000000000000000000000000 --- a/funcom_test/36634507.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setLoadIcon(int index){ - if(index*16 >= 0 && index*16 < colors.length) - load.setImage(TextPix.getCutImage(cool[5], - 0, index*14, 14, 14), 20, 20); - else - load.setImage(cool[4], 20, 20); - } - COM: <s> this function sets the loading icon image </s> - diff --git a/funcom_test/36634518.txt b/funcom_test/36634518.txt deleted file mode 100644 index a6cbad4debd1f7beb32526dae22edf23687a218a..0000000000000000000000000000000000000000 --- a/funcom_test/36634518.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setColor(int index){ - index *= 16; - resetColor(); - if(index >= 0 && index < colors.length){ - addColor(new Color(160, 160, 160), new Color(colors[index+9+3])); - addColor(new Color(128, 128, 128), new Color(colors[index+9+4])); - } - } - COM: <s> this function changes the color based on the menu colors </s> - diff --git a/funcom_test/36634536.txt b/funcom_test/36634536.txt deleted file mode 100644 index f15e26ac67a6af60ce9b328fc5866dee998dbc2a..0000000000000000000000000000000000000000 --- a/funcom_test/36634536.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void updatePosition(){ - if(posx != fposx || posy != fposy){ - if(speed == 0){ - posx = fposx; - posy = fposy; - } - if(posx != fposx) - posx += (posx < fposx) ? speed : -speed; - if(posy != fposy) - posy += (posy < fposy) ? speed : -speed; - } - } - COM: <s> this function controls how fast an object will reach its destination </s> - diff --git a/funcom_test/36634605.txt b/funcom_test/36634605.txt deleted file mode 100644 index c964f515fdf75353326ba7cb0ffc086aee2f3e15..0000000000000000000000000000000000000000 --- a/funcom_test/36634605.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void updatePosition(){ - if(posx != fposx || posy != fposy){ - if(speed == 0){ - posx = fposx; - posy = fposy; - } - if(posx != fposx) - posx += (posx < fposx) ? speed : -speed; - if(posy != fposy) - posy += (posy < fposy) ? speed : -speed; - } - } - COM: <s> this controls the movement of the images </s> - diff --git a/funcom_test/36634755.txt b/funcom_test/36634755.txt deleted file mode 100644 index 40b119828011d9c6b62b8b18e7eac8cf2669e94d..0000000000000000000000000000000000000000 --- a/funcom_test/36634755.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void changePosition(int index, int position){ - if(index >= 0 && index < allItems.length){ - for(int i = 0; i < vertPart.size(); i++){ - if(vertPart.get(i) == index) - vertPos.set(i, position); - } - } - if(position > maxPos) - maxPos = position; - generate = true; - } - COM: <s> this changes the order of the menu items according to the position </s> - diff --git a/funcom_test/36634775.txt b/funcom_test/36634775.txt deleted file mode 100644 index 66705eb70d5b0320425798f8c0089b0ccdf936e8..0000000000000000000000000000000000000000 --- a/funcom_test/36634775.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setFullScreen(){ - if(SlixLibrary.isApplet()) return; - if(contain.getWidth() != 800 && contain.getHeight() != 600){ - SlixLibrary.check(); - return; - } - try { - contain.setFullscreen(!contain.isFullscreen()); - } catch (SlickException ex) { - System.err.println(ex); - } - } - COM: <s> this function toggles visibility of full screen display </s> - diff --git a/funcom_test/36634792.txt b/funcom_test/36634792.txt deleted file mode 100644 index 573e7580835613c5735189798a1414a42c7c9b2c..0000000000000000000000000000000000000000 --- a/funcom_test/36634792.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setItemImage(int index, int itemIndex, String imgPath){ - if(index >= 0 && index < allItems.length){ - if(item.getIndexExists(itemIndex)){ - sx = 0; - item = allItems[index]; - imgRef.addImage(item.refPath[itemIndex], imgPath); - allItems[index] = item; - } - } - } - COM: <s> this function sets a new image within a menu item </s> - diff --git a/funcom_test/36634793.txt b/funcom_test/36634793.txt deleted file mode 100644 index 90a9bbe26f3e6648ce58fef63941f7c5f8de1041..0000000000000000000000000000000000000000 --- a/funcom_test/36634793.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void moveDown(){ - track++; - if(track >= curList.size()) - track = 0; - for(int i = 0; i < vertPart.size(); i++){ - if(vertPos.get(i) == curList.get(track)){ - select = allItems[vertPart.get(i)].select; - return; - } - } - } - COM: <s> this function moves the track cursor one down in the list </s> - diff --git a/funcom_test/36634796.txt b/funcom_test/36634796.txt deleted file mode 100644 index dd64b8f3361fd514e1dd3cf9951fafa8269cb1a7..0000000000000000000000000000000000000000 --- a/funcom_test/36634796.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void showFull(){ - if(game == null) - game = new SlixGame(); - try{ - app = new AppGameContainer(game); - app.setDisplayMode( FULL_WIDTH, FULL_HEIGHT, true ); - app.start(); - } catch ( SlickException e ) { - System.err.println(e); - } - } - COM: <s> this function initializes and displays a slick2 d full screen </s> - diff --git a/funcom_test/36634800.txt b/funcom_test/36634800.txt deleted file mode 100644 index d66e9142332342ae92322c053eabdc9b8516c275..0000000000000000000000000000000000000000 --- a/funcom_test/36634800.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean match(){ - for(int i = 0; i < keys.length; i++){ - if(keys[i] != (KeyControl.isSlickWindow() ? - KeyControl.Keys.values()[i].slickValue() : - KeyControl.Keys.values()[i].javaValue())) - return false; - } - return true; - } - COM: <s> this function checks to see if two distinct keys match </s> - diff --git a/funcom_test/36634804.txt b/funcom_test/36634804.txt deleted file mode 100644 index 22f6144d1c1ac831d4db118d33fe0ffb75f1f9ad..0000000000000000000000000000000000000000 --- a/funcom_test/36634804.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void moveUp(){ - track--; - if(track < 0) - track = curList.size()-1; - for(int i = 0; i < vertPart.size(); i++){ - if(vertPos.get(i) == curList.get(track)){ - select = allItems[vertPart.get(i)].select; - return; - } - } - } - COM: <s> this function moves the track cursor one up in the list </s> - diff --git a/funcom_test/36634855.txt b/funcom_test/36634855.txt deleted file mode 100644 index e0ff6269080713a12a2689dfe3a18fce5c29ab46..0000000000000000000000000000000000000000 --- a/funcom_test/36634855.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void stop(){ - if(listener.isPlaying()){ - loop = false; - player.close(); - } - if(oggClip != null){ - oggClip.stop(); - oggClip.close(); - } - if(midiPlayer != null){ - if(midiPlayer.isOpen()){ - midiPlayer.stop(); - midiPlayer.close(); - } - } - ready = true; - } - COM: <s> this function forces all music to halt playback </s> - diff --git a/funcom_test/36634862.txt b/funcom_test/36634862.txt deleted file mode 100644 index d146da725420622d958aff82c8732c35a9f08334..0000000000000000000000000000000000000000 --- a/funcom_test/36634862.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void run() { - try{ - if(current.type == current.OGG) - playOGG(); - else if(current.type == current.MID) - playMidi(); - else if (current.type == current.MP3) - playMP3(); - }catch(Exception e){ - warn("Error! "+e.toString()); - } - } - COM: <s> this function runs the playback for mp3 in a separate thread </s> - diff --git a/funcom_test/36634895.txt b/funcom_test/36634895.txt deleted file mode 100644 index 5f4b951d26dfa8d723c5a99491a9b2f9fae83523..0000000000000000000000000000000000000000 --- a/funcom_test/36634895.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void swapItems(int index, int change){ - if(index >= 0 && index < allItems.length && - change >= 0 && change < allItems.length){ - MenuItem temp = allItems[index]; - allItems[index] = allItems[change]; - allItems[change] = temp; - } - } - COM: <s> this function swaps two items positions in the menu list </s> - diff --git a/funcom_test/36634911.txt b/funcom_test/36634911.txt deleted file mode 100644 index 8fd5ab69106887a6dfc03ca21a55be3208bdd8a2..0000000000000000000000000000000000000000 --- a/funcom_test/36634911.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addXMLTag(String tagText){ - if(open) closeXMLTag(); - - for(int i = 0; i < curTag.size(); i++) - data += "\t"; - data += "<"+tagText; - curTag.add(0, tagText); - open = true; - } - COM: <s> adds a regular tag with no parameters to the xml file </s> - diff --git a/funcom_test/36634915.txt b/funcom_test/36634915.txt deleted file mode 100644 index 2ccbb1795403934e91e3dbb614d6842135431ec4..0000000000000000000000000000000000000000 --- a/funcom_test/36634915.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addXMLTag(HashMap<String, String> data){ - if(data == null) return; - if(!data.isEmpty()){ - for(String key : data.keySet()){ - addXMLTag(key); - addContent(data.get(key)); - } - } - } - COM: <s> adds a regular tag with key tag and value content it closes </s> - diff --git a/funcom_test/36634924.txt b/funcom_test/36634924.txt deleted file mode 100644 index d177e6fc62d204decb8fdeb24ccc0c67554235b2..0000000000000000000000000000000000000000 --- a/funcom_test/36634924.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void mouseScroll(int mx, int my){ - if(itemMin > 0 && my > posy && my < posy+spacingY) - moveUp(); - if(itemMin+maxItems <= maxPos && my > posy+(spacingY*(maxItems+1)) && - my < posy+(spacingY*(maxItems+1))+spacingY) - moveDown(); - } - COM: <s> this function controls the scrolling the list when the mouse is </s> - diff --git a/funcom_test/36634933.txt b/funcom_test/36634933.txt deleted file mode 100644 index 9c20450193124d415bf22136a77788a2adee4052..0000000000000000000000000000000000000000 --- a/funcom_test/36634933.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void generateMenu(int change){ - for(int index: vertPart){ - super.setItemPosition(index, 0, -(change*spacingY), true); - super.setItemDraw(index, (vertPos.get(index) >= itemMin && - vertPos.get(index) < itemMin+maxItems)); - } - } - COM: <s> this function changes the look of the menu when you scroll up or </s> - diff --git a/funcom_test/36634937.txt b/funcom_test/36634937.txt deleted file mode 100644 index 827836b14f50b0ffdd8bff6fc2edab8ef8ecc01c..0000000000000000000000000000000000000000 --- a/funcom_test/36634937.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initialize(int width, int height){ - mainTitle = "JSlix Window"; - sizex = width; - sizey = height; - showRate = false; - window = new JFrame(mainTitle); - window.setBackground(Color.BLACK); - setBackground(Color.BLACK); - frameUpdate = true; - SlixLibrary.setFrame(); - } - COM: <s> this function initializes the slick and java2 d general functions </s> - diff --git a/funcom_test/36635010.txt b/funcom_test/36635010.txt deleted file mode 100644 index 1d4dc969722460ff2a28719a61b08ec514feef4a..0000000000000000000000000000000000000000 --- a/funcom_test/36635010.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public File getClassFile(String filename){ - File newFile = null; - - URL tempURL = getClass().getResource("/"+filename); - if(tempURL != null){ - try { - newFile = new File(tempURL.toURI()); - } catch (URISyntaxException ex) { - warn("File Resource Error! "+filename); - } - } - - return newFile; - } - COM: <s> this function gets a file from a url string referencing the home </s> - diff --git a/funcom_test/36635013.txt b/funcom_test/36635013.txt deleted file mode 100644 index af2f464a36653cebe07324244e7cebb00eb19389..0000000000000000000000000000000000000000 --- a/funcom_test/36635013.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void createImg(int sizex, int sizey){ - editSizeX = (sizex < 1) ? 1 : sizex; - editSizeY = (sizey < 1) ? 1 : sizey; - bimg = new BufferedImage(editSizeX, editSizeY, - BufferedImage.TYPE_INT_ARGB); - g = bimg.createGraphics(); - clearGrid(); - } - COM: <s> this function creates the buffered image to be used with the grid </s> - diff --git a/funcom_test/36635015.txt b/funcom_test/36635015.txt deleted file mode 100644 index 5cf1cbbbdcc3aba702586a5a49ab93413f8d3fb3..0000000000000000000000000000000000000000 --- a/funcom_test/36635015.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public File getResourceFile(String filename){ - File newFile = null; - - URL tempURL = Thread.currentThread().getContextClassLoader() - .getResource(filename); - if(tempURL != null){ - try { - newFile = new File(tempURL.toURI()); - } catch (URISyntaxException ex) { - warn("File Resource Error! "+filename); - } - } - - return newFile; - } - COM: <s> this function gets a file directly from the </s> - diff --git a/funcom_test/36635020.txt b/funcom_test/36635020.txt deleted file mode 100644 index 8c7308537ba08187bff41cd6c481caa2e0171a34..0000000000000000000000000000000000000000 --- a/funcom_test/36635020.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void clearGrid(){ - editgrid = new int[editSizeX][editSizeY]; - for(int i = 0; i < editSizeX; i++){ - for(int j = 0; j < editSizeY; j++) - editgrid[i][j] = transparent.getRGB(); - } - } - COM: <s> clears the grid </s> - diff --git a/funcom_test/36635028.txt b/funcom_test/36635028.txt deleted file mode 100644 index a89e2cee1b6564201db31336173232a0e0950582..0000000000000000000000000000000000000000 --- a/funcom_test/36635028.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void deleteFile(String path, String filename){ - File newFile = null; - if(!path.endsWith("/")) - path += "/"; - - newFile = new File(path+filename); - if (newFile.delete()) - log("File Deleted! "+path+filename); - else - warn("Failed to Delete File! "+path+filename); - } - COM: <s> this function is used to delete a file from the user directory </s> - diff --git a/funcom_test/36635044.txt b/funcom_test/36635044.txt deleted file mode 100644 index ffa2beef9191e639a1a0695a65e4e78bddf53733..0000000000000000000000000000000000000000 --- a/funcom_test/36635044.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void flipGridXAxis(){ - int[] change = new int[editSizeX*editSizeY]; - for(int i = 0; i < editSizeX; i++){ - for(int j = 0; j < editSizeY; j++) - change[(editSizeX-i-1)+(j*editSizeX)] = editgrid[i][j]; - } - copyArray(change); - } - COM: <s> this function flips the editing grid along the x axis </s> - diff --git a/funcom_test/36635045.txt b/funcom_test/36635045.txt deleted file mode 100644 index 7545ee2fab08ceb076b4b650b285e72152674aaa..0000000000000000000000000000000000000000 --- a/funcom_test/36635045.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void makeDirectories(String path){ - try{ - File newFile = new File(path); - - if(newFile.mkdirs()) - log("Directories Created! "+path); - else - log("Directories Failed!"+path); - } catch(AccessControlException ex){ - log("Applet Active, can't Access! "+path); - } - - } - COM: <s> this function is used for making a group of directories for the user </s> - diff --git a/funcom_test/36635055.txt b/funcom_test/36635055.txt deleted file mode 100644 index 48158dcf978e137605d9755610344d807edb519b..0000000000000000000000000000000000000000 --- a/funcom_test/36635055.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void flipGridYAxis(){ - int[] change = new int[editSizeX*editSizeY]; - for(int i = 0; i < editSizeX; i++){ - for(int j = 0; j < editSizeY; j++) - change[i+((editSizeY-j-1)*editSizeX)] = editgrid[i][j]; - } - copyArray(change); - } - COM: <s> this function flips the editing grid along the y axis </s> - diff --git a/funcom_test/36635073.txt b/funcom_test/36635073.txt deleted file mode 100644 index 43c5b2a64828bc24e59ca9714f308cdd36dec770..0000000000000000000000000000000000000000 --- a/funcom_test/36635073.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addShort(int index, int value){ - if(value < 0 || value > 65534) - value = 0; - if(index >= 0 && index < MAX_DATA-1){ - addByte(index, value/256); - addByte(index+1, value%256); - } - } - COM: <s> this function stores data into 2 bytes that will be later stored into </s> - diff --git a/funcom_test/36635083.txt b/funcom_test/36635083.txt deleted file mode 100644 index 3974c3bcf404ba6ce9f221bbca106e344060b6ac..0000000000000000000000000000000000000000 --- a/funcom_test/36635083.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addTextToGridImage(String text, int locx, int locy){ - mergeGridToImage(); - if(editOpacity < 1) - g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, - (float)editOpacity)); - g.setColor(Color.WHITE); - g.drawString(text, locx, locy); - if(editOpacity < 1) - g.setComposite(AlphaComposite.SrcOver); - } - COM: <s> this adds java2 d font text to an editing grid </s> - diff --git a/funcom_test/36635086.txt b/funcom_test/36635086.txt deleted file mode 100644 index 14726e69cc37e462415a5a2a2c982fd32e2cf7da..0000000000000000000000000000000000000000 --- a/funcom_test/36635086.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private byte getByteData(int index, int value){ - switch(index){ - case 0: - return (byte)((value & 0xFF000000) >>> 24); - case 1: - return (byte)((value & 0x00FF0000) >>> 16); - case 2: - return (byte)((value & 0x0000FF00) >>> 8); - case 3: - return (byte)((value & 0x000000FF)); - } - return 0; - } - COM: <s> this function gets bytes from a integer </s> - diff --git a/funcom_test/36635110.txt b/funcom_test/36635110.txt deleted file mode 100644 index f36fc2115541c1046add054cf366e8e83410ccf8..0000000000000000000000000000000000000000 --- a/funcom_test/36635110.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int checkData(){ - if(locItems != null){ - for(int i = 0; i < locItems.length; i++){ - if(Arrays.equals(locItems[i].getData(), tempKey.getData())) - return i; - } - } - locItems = addData(locItems, tempKey); - return locItems.length-1; - } - COM: <s> this checks the graphic data against the current data before </s> - diff --git a/funcom_test/36635122.txt b/funcom_test/36635122.txt deleted file mode 100644 index 92da1e7d865633edd41ee6fe25e8ef713c97c3dc..0000000000000000000000000000000000000000 --- a/funcom_test/36635122.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int get(String key){ - key = key.toUpperCase(); - for(int i = 0; i < list.size(); i++){ - if(key.matches(list.getData(i))) - return ref.get(list.getData(i)); - } - return (ref.containsKey(key)) ? ref.get(key) : -1; - } - COM: <s> this retrieves a value from a key </s> - diff --git a/funcom_test/36635136.txt b/funcom_test/36635136.txt deleted file mode 100644 index c6aca3e5c208a3c3bb0e728397f57a1ae45ba42c..0000000000000000000000000000000000000000 --- a/funcom_test/36635136.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getItem(HashMap<String, String> fillData) { - for(String key: fillData.keySet()){ - switch(refItems.get(key)){ - case -1: - warn("Language path key '"+key+"' not recognized!"); - break; - case LANG: - return fillData.get(key); - } - } - return ""; - } - COM: <s> this function gets the localization path of the properties file for </s> - diff --git a/funcom_test/36635138.txt b/funcom_test/36635138.txt deleted file mode 100644 index e82e30a1a54d1b5fda451db3c813466f5cccba66..0000000000000000000000000000000000000000 --- a/funcom_test/36635138.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int addNewLayer(){ - if(dataItems == null) - dataItems = addBranch(dataItems); - else if(dataItems.length == 0) - dataItems = addBranch(dataItems); - else if(dataItems[dataItems.length - 1].length > 0) - dataItems = addBranch(dataItems); - return dataItems.length-1; - } - COM: <s> this adds a new layer to add data to </s> - diff --git a/funcom_test/36635139.txt b/funcom_test/36635139.txt deleted file mode 100644 index 4b7ab76a7ba77fedf7937b2c58c321ffbdf9e091..0000000000000000000000000000000000000000 --- a/funcom_test/36635139.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int checkFile(){ - if(locItems != null){ - for(int i = 0; i < locItems.length; i++){ - if(Arrays.equals(locItems[i].getData(), tempKey.getData())) - return i; - } - } - locItems = addData(locItems, tempKey); - return locItems.length-1; - } - COM: <s> this checks the file against the current data before storing it as </s> - diff --git a/funcom_test/36635150.txt b/funcom_test/36635150.txt deleted file mode 100644 index cfbdcd3a432eafdd7f98ae0737be8f8ef9fa8cc5..0000000000000000000000000000000000000000 --- a/funcom_test/36635150.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addData(int index, int data){ - if(index < 0 || index > 31) - return; - - if(index >= max) - max = index+1; - - addCode(index); - if(index+1 >= max && !checkCode(index)) - arrayData = addData(arrayData, data); - else - arrayData = insertData(arrayData, - getCodePosition(index, arrayData[0])+1, data); - } - COM: <s> this function adds data to the array in the form of an integer </s> - diff --git a/funcom_test/36635168.txt b/funcom_test/36635168.txt deleted file mode 100644 index 9a9b0dee99ff2cff0eaa11f0dc6fe42f88374e2d..0000000000000000000000000000000000000000 --- a/funcom_test/36635168.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean checkCode(int index, int number){ - for(int i = 0; i < max; i++){ - if(i == index) - return (number >= Math.pow(2, 31-i)+INT_SIZE); - if(number >= Math.pow(2, 31-i)+INT_SIZE) - number -= Math.pow(2, 31-i); - } - return false; - } - COM: <s> this function takes the code portion of the data and checks if it </s> - diff --git a/funcom_test/36635197.txt b/funcom_test/36635197.txt deleted file mode 100644 index 7f50dfe608226921d23ed09dc24fcd47bbb30896..0000000000000000000000000000000000000000 --- a/funcom_test/36635197.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void initSecurity() { - /* - * COMMENTED OUT FOR DEBUG PROCESS - * - - // initializes the class shutter - context.setClassShutter( new ClassShutter(){ - public boolean visibleToScripts( String className ) - { - return className.startsWith( SCRIPT_API_PACKAGE ); - } - }); - - - */ - // TODO implement sandbox feature.. if neccessary - // http:codeutopia.net/blog/2009/01/02/sandboxing-rhino-in-java/ - } - COM: <s> set ups the security settings of meow engine to prevent miss using of </s> - diff --git a/funcom_test/36635232.txt b/funcom_test/36635232.txt deleted file mode 100644 index 170a41a8d92420fbebe48879c814460499caaf0a..0000000000000000000000000000000000000000 --- a/funcom_test/36635232.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void drawPermPixel(int colorInRGB, int locx, int locy){ - if(locx >= 0 && locx < editSizeX){ - if(locy >= 0 && locy < editSizeY){ - if(colorInRGB != transparent.getRGB()) - editgrid[locx][locy] = colorInRGB; - } - } - } - COM: <s> this private function fills in all the necessary variables to </s> - diff --git a/funcom_test/36635250.txt b/funcom_test/36635250.txt deleted file mode 100644 index bf0dc6fa04c0ba7b53bb423962f51012f1a6cb80..0000000000000000000000000000000000000000 --- a/funcom_test/36635250.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean sortData(int item){ - boolean pass = true; - int[] temp = getArray(item, DATA); - if(!base.equals("DFLT")) - pass = sort(temp, DataStorage.BASE, base); - if(pass && !type.equals("DFLT")) - pass = sort(temp, DataStorage.TYPE, type); - return pass; - } - COM: <s> this function checks to see if the item matches the data specified </s> - diff --git a/funcom_test/36635277.txt b/funcom_test/36635277.txt deleted file mode 100644 index 238ad1e12a108359651fe3ae5b6db42bb24f51a3..0000000000000000000000000000000000000000 --- a/funcom_test/36635277.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int matchData(int index){ - int score = 0; - int[] temp = getArray(index, DATA); - if(!base.equals("DFLT") && sort(temp, DataStorage.BASE, base)) - score += points[1]; - if(!type.equals("DFLT") && sort(temp, DataStorage.TYPE, type)) - score += points[2]; - return score; - } - COM: <s> this checks to see if the data elements match within the data storage </s> - diff --git a/funcom_test/36635344.txt b/funcom_test/36635344.txt deleted file mode 100644 index a700b58e4ffbc91f1bfe0a0dc43901d1a57a8167..0000000000000000000000000000000000000000 --- a/funcom_test/36635344.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int sizeData(int index){ - int length = 0; - int[] temp = getArray(index, DATA); - if(!sort(temp, DataStorage.BASE, "")) - length++; - if(!sort(temp, DataStorage.TYPE, "")) - length++; - return length; - } - COM: <s> this function assists the size item function by finding the amount of </s> - diff --git a/funcom_test/36635511.txt b/funcom_test/36635511.txt deleted file mode 100644 index 32c17afde0b84507ab6235e3e623ad543bafbcc7..0000000000000000000000000000000000000000 --- a/funcom_test/36635511.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setPoints(){ - points = new int[21]; - for(int i = 0; i < points.length; i++){ - if(i < 5) - points[i] = 10000; - else if(i < 9) - points[i] = 100; - else if(i < 17) - points[i] = 1; - else - points[i] = -1; - } - } - COM: <s> this function sets the point values for graphics </s> - diff --git a/funcom_test/36645770.txt b/funcom_test/36645770.txt deleted file mode 100644 index d9c53c194744a0abf790e8a98f017c68c6e8c5c2..0000000000000000000000000000000000000000 --- a/funcom_test/36645770.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int nextval(String key) { - Sequence seq = null; - - // If the sequence exists, get it; otherwise, create it with a value 0 - if (m_sequences.containsKey(key)) - seq = m_sequences.get(key); - else { - seq = new Sequence(); - m_sequences.put(key, seq); - } - - if (!seq.registered()) - System.err.println("Warning: sequence key '" + key + "' being used without registration"); - - // increment the number, then return it; the sequence begins at '1' - return seq.nextval(); - } - COM: <s> gets the next unique value in the sequence </s> - diff --git a/funcom_test/3667155.txt b/funcom_test/3667155.txt deleted file mode 100644 index 892c5275a0f0f87fd443bed81702bb63b80567c5..0000000000000000000000000000000000000000 --- a/funcom_test/3667155.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setFont(Font font) { - - // fetch the old font - Font oldFont = getFont(); - - // set the JPanel font - super.setFont(font); - - // if the font has changed, calculate font-specific parameters and - // redraw - if (!(font.equals(oldFont))) { - calculateDrawingParams(); - repaint(); - } - - } - COM: <s> sets the font for this component </s> - diff --git a/funcom_test/3667165.txt b/funcom_test/3667165.txt deleted file mode 100644 index a095bf8964a878f1a5f49cf5818fd2689223a2a3..0000000000000000000000000000000000000000 --- a/funcom_test/3667165.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setFontAntialiased(boolean fontAntialiased) { - - // store the old value - boolean oldAAF = m_antialiasedFont; - - // set the new value - m_antialiasedFont = fontAntialiased; - - // recalculate things and repaint if anything has changed - if (oldAAF != m_antialiasedFont) { - calculateDrawingParams(); - repaint(); - firePropertyChange( - PROPERTY_FONTANTIALIASED, oldAAF, m_antialiasedFont - ); - } - - } - COM: <s> sets the code font antialiased code property </s> - diff --git a/funcom_test/3667193.txt b/funcom_test/3667193.txt deleted file mode 100644 index a62f85e379f943b5f797c68cfca4d053c3748ee3..0000000000000000000000000000000000000000 --- a/funcom_test/3667193.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected void paintComponent(Graphics g) { - - super.paintComponent(g); - - Insets insets = getInsets(); - - if (m_drawXGraduations) - paintXGraduations(g, insets); - - if (m_drawYGraduations) - paintYGraduations(g, insets); - - if (m_drawHorizontalZeroLine) - paintHorizontalZeroLine(g, insets); - - if (m_drawVerticalZeroLine) - paintVerticalZeroLine(g, insets); - - } - COM: <s> paints this component </s> - diff --git a/funcom_test/3667212.txt b/funcom_test/3667212.txt deleted file mode 100644 index 46d132a5eb3a0fb166d4d5a9ccea3edb2f057587..0000000000000000000000000000000000000000 --- a/funcom_test/3667212.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Rectangle2D getRanges() { - - double minX = 0; - double maxX = m_N * m_period; - double minY = -Math.abs(m_amplitude); - double maxY = -minY; - - return new Rectangle2D.Double( - minX, minY, - (maxX-minX), (maxY-minY) - ); - - } - COM: <s> returns the minimum and maximum x horizontal axis and y vertical </s> - diff --git a/funcom_test/3667213.txt b/funcom_test/3667213.txt deleted file mode 100644 index 92fbe760e0d3ba2af940517b21aece02a13edd92..0000000000000000000000000000000000000000 --- a/funcom_test/3667213.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setTextDisplayed(boolean textDisplayed) { - boolean oldTextDisplayed = m_textDisplayed; - m_textDisplayed = textDisplayed; - if (oldTextDisplayed != m_textDisplayed) { - firePropertyChange( - PROPERTY_TEXTDISPLAYED, - new Boolean(oldTextDisplayed), - new Boolean(m_textDisplayed) - ); - } - } - COM: <s> sets whether or not the text for the marker should be displayed </s> - diff --git a/funcom_test/3667237.txt b/funcom_test/3667237.txt deleted file mode 100644 index 522d5654008ed325b9243eedc9f4169857925f04..0000000000000000000000000000000000000000 --- a/funcom_test/3667237.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setValue(double newValue) { - double value = newValue; - if (value < m_min) - value = m_min; - if ((value + m_extent) > m_max) - value = m_max - m_extent; - setRangeProperties( - value, m_extent, m_min, m_max, m_adjusting, - LinearRangeModelEvent.VALUE_ADJUSTMENT - ); - } - COM: <s> sets the models current value to code new value code if </s> - diff --git a/funcom_test/3667240.txt b/funcom_test/3667240.txt deleted file mode 100644 index 9df25392785af46eb47ecf51ba8066edc670a7d5..0000000000000000000000000000000000000000 --- a/funcom_test/3667240.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setExtent(double newExtent) { - double extent = newExtent; - if (extent < 0.0) - extent = 0.0; - if (extent > (m_max - m_value)) - extent = m_max - m_value; - setRangeProperties( - m_value, extent, m_min, m_max, m_adjusting, - LinearRangeModelEvent.GENERAL_ADJUSTMENT - ); - } - COM: <s> sets the models code extent code </s> - diff --git a/funcom_test/3667243.txt b/funcom_test/3667243.txt deleted file mode 100644 index 73d768fba91db777d5f2c6496aa90f9f053b2481..0000000000000000000000000000000000000000 --- a/funcom_test/3667243.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setMinimum(double newMinimum) { - double newMax = Math.max(newMinimum, m_max); - double newValue = Math.max(newMinimum, m_value); - double newExtent = Math.min(newMax - newValue, m_extent); - setRangeProperties( - newValue, newExtent, newMinimum, newMax, m_adjusting, - LinearRangeModelEvent.GENERAL_ADJUSTMENT - ); - } - COM: <s> sets the models minimum to new minimum </s> - diff --git a/funcom_test/3667259.txt b/funcom_test/3667259.txt deleted file mode 100644 index d67dc3738d9a87646dbaf786952347b1bf1cfca2..0000000000000000000000000000000000000000 --- a/funcom_test/3667259.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setMaximum(double newMaximum) { - double newMin = Math.min(newMaximum, m_min); - double newExtent = Math.min(newMaximum - newMin, m_extent); - double newValue = Math.min(newMaximum - newExtent, m_value); - setRangeProperties( - newValue, newExtent, newMin, newMaximum, m_adjusting, - LinearRangeModelEvent.GENERAL_ADJUSTMENT - ); - } - COM: <s> sets the models maximum to new maximum </s> - diff --git a/funcom_test/3667267.txt b/funcom_test/3667267.txt deleted file mode 100644 index 07d90d2ecba598a9b308e2376c284ac699edc4c2..0000000000000000000000000000000000000000 --- a/funcom_test/3667267.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setTrackPositionLeading(boolean trackPositionLeading) { - - // store the old value - boolean oldTrackPositionLeading = m_trackPositionLeading; - - // set the new value - m_trackPositionLeading = trackPositionLeading; - - // update things if necessary - if (oldTrackPositionLeading != m_trackPositionLeading) { - configureSubcomponents(); - firePropertyChange( - PROPERTY_TRACKPOSITIONLEADING, - oldTrackPositionLeading, m_trackPositionLeading - ); - } - - } - COM: <s> sets the code track position leading code property </s> - diff --git a/funcom_test/3667298.txt b/funcom_test/3667298.txt deleted file mode 100644 index 874e389eedb2af35fae419d25c0bf4a183638dd2..0000000000000000000000000000000000000000 --- a/funcom_test/3667298.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void updateXIncrement() { - Component components[] = m_channelPanel.getComponents(); - for (int i=0; i < components.length; i++) { - JStripChartChannel channel = (JStripChartChannel)components[i]; - JChartPlane chartPlane = channel.getChartPlane(); - chartPlane.setXIncrement(m_hScaleBar.getTickIncrement()); - } - } - COM: <s> updates the x increment ticks </s> - diff --git a/funcom_test/3667310.txt b/funcom_test/3667310.txt deleted file mode 100644 index 4d29ab18bc6cc7b7c69809223a2635afdd5c1f09..0000000000000000000000000000000000000000 --- a/funcom_test/3667310.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected double getLengthDimension() { - - Insets insets = getInsets(); - - if (m_scrollbar.getOrientation() == ORIENTATION_HORIZONTAL) { - return (double)(getWidth() - insets.left - insets.right); - } else { - return (double)(getHeight() - insets.top - insets.bottom); - } - - } - COM: <s> returns the width of the scrollbar for horizontal scrollbars or the </s> - diff --git a/funcom_test/3667312.txt b/funcom_test/3667312.txt deleted file mode 100644 index 93cff71c831862c5b8c58a7d8fc32b207397faa0..0000000000000000000000000000000000000000 --- a/funcom_test/3667312.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setTickPositionLeading(boolean tickPositionLeading) { - - // store the old value of tickPositionLeading - boolean oldTickPositionLeading = m_scale.isTickPositionLeading(); - - // set the new value of tickPositionLeading - m_scale.setTickPositionLeading(tickPositionLeading); - - // fire a PropertyChangeEvent - firePropertyChange( - PROPERTY_TICKPOSITIONLEADING, - oldTickPositionLeading, tickPositionLeading - ); - - } - COM: <s> sets the value of the code tick position leading code parameter </s> - diff --git a/funcom_test/3667317.txt b/funcom_test/3667317.txt deleted file mode 100644 index e2539e17ecd247530cc37a3bbbbe014fe70d1390..0000000000000000000000000000000000000000 --- a/funcom_test/3667317.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean containsModel(StripChartModel model) { - - // check through all the models and return true if we find the right - // one - for (int i=0; i < m_models.size(); i++) { - StripChartModel m = (StripChartModel)m_models.get(i); - if (m == model) - return true; - } - - // return false if we haven't found the model - return false; - - } - COM: <s> returns whether or not this code jchart plane code contains the </s> - diff --git a/funcom_test/3667342.txt b/funcom_test/3667342.txt deleted file mode 100644 index 0c9545f0a6d2044c8ceba5476955904bdd597f12..0000000000000000000000000000000000000000 --- a/funcom_test/3667342.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void test_constructor_String_double_boolean() { - - MarkerModel marker = new MarkerModel( - "Hello World", 42.0, true - ); - assertEquals("Hello World", marker.getText()); - assertEquals(42.0, marker.getTime(), 0.1); - assertEquals(true, marker.isTextDisplayed()); - - } - COM: <s> tests the constructor which takes a full set of parameters </s> - diff --git a/funcom_test/3667344.txt b/funcom_test/3667344.txt deleted file mode 100644 index f349355e56f7acaa35e596312fac996b1ce39445..0000000000000000000000000000000000000000 --- a/funcom_test/3667344.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void test_constructor_double() { - - MarkerModel m = new MarkerModel(56.3); - - assertEquals(null, m.getText()); - assertEquals(56.3, m.getTime(), 0.01); - assertEquals(false, m.isTextDisplayed()); - - } - COM: <s> tests the constructor which takes the time for the marker as a </s> - diff --git a/funcom_test/3667347.txt b/funcom_test/3667347.txt deleted file mode 100644 index 05652f2388b405845383d29a525d5a69f9267eae..0000000000000000000000000000000000000000 --- a/funcom_test/3667347.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void test_constructor() { - - MarkerModel m = new MarkerModel(); - - assertEquals(null, m.getText()); - assertEquals(0.0, m.getTime(), 0.01); - assertEquals(false, m.isTextDisplayed()); - - } - COM: <s> tests the default constructor </s> - diff --git a/funcom_test/3667363.txt b/funcom_test/3667363.txt deleted file mode 100644 index bc6e9398ed08af7cda837dbf2bd1d468b83c6470..0000000000000000000000000000000000000000 --- a/funcom_test/3667363.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void test_setValueIsAdjusting() { - DefaultLinearRangeModel m = new DefaultLinearRangeModel(); - m.setValueIsAdjusting(true); - assertTrue(m.getValueIsAdjusting()); - m.setValueIsAdjusting(false); - assertTrue(m.getValueIsAdjusting() == false); - } - COM: <s> tests the set value is adjusting method </s> - diff --git a/funcom_test/3667366.txt b/funcom_test/3667366.txt deleted file mode 100644 index 6fd48dd130569c5245d11bdc2cd2b04d8615bbbf..0000000000000000000000000000000000000000 --- a/funcom_test/3667366.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void test_getValueIsAdjusting() { - DefaultLinearRangeModel m = new DefaultLinearRangeModel(); - m.setValueIsAdjusting(true); - assertTrue(m.getValueIsAdjusting()); - m.setValueIsAdjusting(false); - assertTrue(m.getValueIsAdjusting() == false); - } - COM: <s> tests the get value is adjusting method </s> - diff --git a/funcom_test/3667412.txt b/funcom_test/3667412.txt deleted file mode 100644 index 2d9033c8f3159e9c8b314ab4edd74097b1e9d7fe..0000000000000000000000000000000000000000 --- a/funcom_test/3667412.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected int getComponentPixelSize() { - - // fetch the component insets - Insets insets = getInsets(); - - // return the appropriate size - if (m_orientation == ORIENTATION_HORIZONTAL) { - - // horizontal scale - return (getWidth() - insets.left - insets.right); - - } else { - - // vertical scale - return (getHeight() - insets.top - insets.bottom); - - } - - } - COM: <s> returns the size of the component </s> - diff --git a/funcom_test/3667416.txt b/funcom_test/3667416.txt deleted file mode 100644 index d3b9da13f532e57080b3b1669281940d29b4cadb..0000000000000000000000000000000000000000 --- a/funcom_test/3667416.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void updateScale() { - - double min = m_model.getValue(); - double max = min + m_model.getExtent(); - - if (m_orientation == ORIENTATION_VERTICAL) { - m_scale.setScaleValues(max, min); - } else { - m_scale.setScaleValues(min, max); - } - - } - COM: <s> updates the jscale when the parameters of the model have changed </s> - diff --git a/funcom_test/36748528.txt b/funcom_test/36748528.txt deleted file mode 100644 index 366fe27509f470418fca686fae1bf34b1317fd07..0000000000000000000000000000000000000000 --- a/funcom_test/36748528.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void printScores() { - try { - // Enumerate the records using the comparator implemented - // above to sort by game score. - RecordEnumeration re = recordStore.enumerateRecords(null, this, - true); - printScoresHelper(re); - } catch (RecordStoreException rse) { - System.out.println(rse); - rse.printStackTrace(); - } - } - COM: <s> this method prints all of the scores sorted by game score </s> - diff --git a/funcom_test/36748530.txt b/funcom_test/36748530.txt deleted file mode 100644 index 01a9b78dfebf185706cc4135172381bb9d6a78eb..0000000000000000000000000000000000000000 --- a/funcom_test/36748530.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void printScores(String playerName) { - try { - // Enumerate the records using the comparator and filter - // implemented above to sort by game score. - RecordEnumeration re = recordStore.enumerateRecords(this, this, - true); - printScoresHelper(re); - } catch (RecordStoreException rse) { - System.out.println(rse); - rse.printStackTrace(); - } - } - COM: <s> this method prints all of the scores for a given player </s> - diff --git a/funcom_test/36748561.txt b/funcom_test/36748561.txt deleted file mode 100644 index 70b8fcaceb3148af4e0bbd1136c3e8a8c5415fd2..0000000000000000000000000000000000000000 --- a/funcom_test/36748561.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void save() { - if (theCase.isDirty()) { - theCase.setTitle(caseTitleTextField.getString()); - theCase.setEven(isEvenChoiceGroup.isSelected(0)); - theCase.setMagicword(magicwordTextField.getString()); - parent.updateAfterEdit(caseTitleTextField.getString()); - } - } - COM: <s> save the modified infomation into the case instance </s> - diff --git a/funcom_test/3675937.txt b/funcom_test/3675937.txt deleted file mode 100644 index 8dc7a0adb14c5ab23241044e85cad27284eeaa36..0000000000000000000000000000000000000000 --- a/funcom_test/3675937.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void skip(int numToSkip) throws IOException { - // REVIEW - // This is horribly inefficient, but it ensures that we - // properly skip over bytes via the TarBuffer... - // - - byte[] skipBuf = new byte[8 * 1024]; - - for (int num = numToSkip; num > 0;) { - int numRead = this.read(skipBuf, 0, - (num > skipBuf.length ? skipBuf.length : num)); - - if (numRead == -1) - break; - - num -= numRead; - } - } - COM: <s> skip bytes in the input buffer </s> - diff --git a/funcom_test/36760047.txt b/funcom_test/36760047.txt deleted file mode 100644 index a8ceba9d1b7bec28154673594c5fddb79e84b172..0000000000000000000000000000000000000000 --- a/funcom_test/36760047.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public boolean compare(Predicate.Op op, Field val) { - - IntField iVal = (IntField) val; - - switch (op) { - case EQUALS: - return value == iVal.value; - - case GREATER_THAN: - return value > iVal.value; - - case GREATER_THAN_OR_EQ: - return value >= iVal.value; - - case LESS_THAN: - return value < iVal.value; - - case LESS_THAN_OR_EQ: - return value <= iVal.value; - - case LIKE: - return value == iVal.value; - } - - return false; - } - COM: <s> compare the specified field to the value of this field </s> - diff --git a/funcom_test/36760054.txt b/funcom_test/36760054.txt deleted file mode 100644 index 3008ce9e70a81a96aff8ddf9e0e049d55a8d6a09..0000000000000000000000000000000000000000 --- a/funcom_test/36760054.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int nameToId(String name) throws NoSuchElementException { - if (name == null){ - throw new NoSuchElementException(); - } - - for (int i = 0; i < this.fieldAr.length; i++) { - if (name.equals(this.fieldAr[i])) { - return i; - } - } - throw new NoSuchElementException("No field with name " + name + "."); - } - COM: <s> find the index of the field with a given name </s> - diff --git a/funcom_test/36760082.txt b/funcom_test/36760082.txt deleted file mode 100644 index dacc36be29cdc8f284381c9eec9fb121db22310f..0000000000000000000000000000000000000000 --- a/funcom_test/36760082.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString() { - String tuple=new String(); - for ( Field field : this.fields ){ - tuple = tuple + field.toString() + " "; - } - // remove the last " " - tuple = tuple.substring( 0 , tuple.length()-2 ); - tuple = tuple +"\n"; - return tuple; - } - COM: <s> returns the contents of this tuple as a string </s> - diff --git a/funcom_test/36760087.txt b/funcom_test/36760087.txt deleted file mode 100644 index 74a7df58528be3fd958d0b03d4dfa1c2fa18a9cc..0000000000000000000000000000000000000000 --- a/funcom_test/36760087.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean equals(Object o) { - if (o == null) { - return false; - } - try { - TupleDesc td = (TupleDesc) o; - if (td.numFields() != this.numFields()) { - return false; - } - for (int i = 0; i < this.numFields(); i++) { - if (!this.getType(i).equals(td.getType(i))) { - return false; - } - } - return true; - } catch (ClassCastException e) { - return false; - } - } - COM: <s> compares the specified object with this tuple desc for equality </s> - diff --git a/funcom_test/36760091.txt b/funcom_test/36760091.txt deleted file mode 100644 index b1be5336f930a9d52a24d8a05bede966b0ad9bbc..0000000000000000000000000000000000000000 --- a/funcom_test/36760091.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean equals(Object o) { - if (o==null){ - return false; - } - HeapPageId heapPageId; - try{ - heapPageId = (HeapPageId) o; - } catch (ClassCastException e) { - return false; - } - return (this.pageno() == heapPageId.pageno()) && ( this.tableid() == heapPageId.tableid() ); - } - COM: <s> compares one page id to another </s> - diff --git a/funcom_test/36760162.txt b/funcom_test/36760162.txt deleted file mode 100644 index 3740d527b779087fc4fe3e2303f4db1ecd210c9d..0000000000000000000000000000000000000000 --- a/funcom_test/36760162.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: @Test public void getType() { - int[] lengths = new int[] { 1, 2, 1000 }; - - for (int len: lengths) { - TupleDesc td = Utility.getTupleDesc(len); - for (int i = 0; i < len; ++i) - assertEquals(Type.INT_TYPE, td.getType(i)); - } - } - COM: <s> unit test for tuple desc </s> - diff --git a/funcom_test/36760523.txt b/funcom_test/36760523.txt deleted file mode 100644 index 0572104eae0466ddcd45d2c268b5c365574ad836..0000000000000000000000000000000000000000 --- a/funcom_test/36760523.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeSelf() throws IOException { - //TODO Check if transactions are active. If so abort them. - while (this.getDataDictionary().getStoredRelations().size() > 0) { - Iterator<StoredRelation> iterator = this.getDataDictionary().getStoredRelations().values().iterator(); - StoredRelation storedRelation = iterator.next(); - this.removeStoredRelation(storedRelation); - } - } - COM: <s> this method should only be called if no transactions are active </s> - diff --git a/funcom_test/36760565.txt b/funcom_test/36760565.txt deleted file mode 100644 index 136cbea6d8cb593b7891ae6671c388ccdfcaa4fa..0000000000000000000000000000000000000000 --- a/funcom_test/36760565.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void releaseExclusiveLock() { - this.lock.lock(); - try { - if (readers != 0 || writers != 1 ){ - this.throwError("There should be no readers("+readers+"), and just one writer ("+writers+")"); - } - writers--; - //wake up a writer if it is waiting; if not, wake up all the readers that are waiting, if any - if (writersWaitingCount > 0) { - writersWaiting.signal(); - } else if (readersWaitingCount > 0) { - readersWaiting.signalAll(); - } - } finally { - this.lock.unlock(); - } - } - COM: <s> releases an exclusive lock </s> - diff --git a/funcom_test/36760577.txt b/funcom_test/36760577.txt deleted file mode 100644 index b445e1ff7c608a0e4b9d9cc161aafd208225297d..0000000000000000000000000000000000000000 --- a/funcom_test/36760577.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void loadStoredRelations() throws IOException, ParseException, CrappyDBMSException { - BufferedReader inputStream = new BufferedReader(new FileReader(this.getDataDictionaryFile())); - //inputStream.readLine(); - int currentLine = 0; - DataDictionaryParser dataDictionaryParser = DataDictionaryParser.newDataDictionaryParser(this); - - //currentLine = 1; - boolean ok = true; - while (ok) { - ok = dataDictionaryParser.parseStoredRelation(inputStream, currentLine); - currentLine += 3; - } - inputStream.close(); - - } - COM: <s> load all the stored relations described in the data dictionarys file and create </s> - diff --git a/funcom_test/36765166.txt b/funcom_test/36765166.txt deleted file mode 100644 index 7d17752aea5cbb3e9d0bd2587ba0b683caee12f7..0000000000000000000000000000000000000000 --- a/funcom_test/36765166.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Timestamp getDateTimestamp(String year, String month, String day){ -// try{ -// this.ISO_DATE.p -// return (Timestamp)(this.ISO_DATE.parseObject(year+"-"+month+"-"+day)); -// } -// catch (Exception e){ -// System.out.println("ERROR: error parsing date: communityBaseForm"); -// return null; -// } - try - { - return Timestamp.valueOf(year + "-" + month + "-" + day + " 00:00:00"); - } - catch (Exception e){ - System.out.println("ERROR: error parsing date: communityBaseForm"); - return null; - } - } - COM: <s> this method creates a timestamp from the year month and day provided </s> - diff --git a/funcom_test/36772225.txt b/funcom_test/36772225.txt deleted file mode 100644 index 84630b716f895d27e01650aa2df0590f63b4f6e1..0000000000000000000000000000000000000000 --- a/funcom_test/36772225.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private MetaRule getSuggestedItemsMethodRule(TagAttribute maxItems) { - final Class[] paramList = maxItems == null ? new Class[] { String.class } - : new Class[] { String.class, Integer.class }; - - logger.info("getSuggestedItemsMethodRule: " + maxItems); - return new MethodRule(SUGGESTED_ITEMS_METHOD_ATTRIBUTE_NAME, - List.class, paramList); - } - COM: <s> returns the suggested items method rule </s> - diff --git a/funcom_test/36772940.txt b/funcom_test/36772940.txt deleted file mode 100644 index 7c8672b02643d6b73398584c5af636806161f6c5..0000000000000000000000000000000000000000 --- a/funcom_test/36772940.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected List arrayToList(Object[] array) { - List<T> result = null; - - if (array != null && array.length > 0) { - result = new ArrayList<T>(); - } - - for (int i = 0; i < array.length; ++i) { - T tmp = (T) array[i]; - result.add(tmp); - } - - return result; - } - COM: <s> converts an array to a list </s> - diff --git a/funcom_test/36772943.txt b/funcom_test/36772943.txt deleted file mode 100644 index 25b77b9bd276438e4a3ce550e2af0164a8738957..0000000000000000000000000000000000000000 --- a/funcom_test/36772943.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object getBean() { - Object result = null; - - Class[] returnTypes = new Class[] { getClass(this.returnType) }; - Object[] response = getBean(this.serviceName, returnTypes); - - if (response != null && response.length > 0) { - result = response[0]; - } - - return result; - } - COM: <s> gets a bean from a ws operation </s> - diff --git a/funcom_test/36780441.txt b/funcom_test/36780441.txt deleted file mode 100644 index 555910cbb639702e0312d738d2123edf079f21f1..0000000000000000000000000000000000000000 --- a/funcom_test/36780441.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private double faultTolerant(int m, List<Integer> genList){ - if(m == 1){ - return nthQueueWaitTime(1,genList.get(0)) - + jobRuntimeOnNthQueue(1,genList.get(0)); - }else{ - return max(faultTolerant(m-1,genList), - nthQueueWaitTime(m,genList.get(m-1))) - +jobRuntimeOnNthQueue(m,genList.get(m-1)); - } - } - COM: <s> recursive method to obtain fault tolerant wtm run time </s> - diff --git a/funcom_test/36780451.txt b/funcom_test/36780451.txt deleted file mode 100644 index 55c1f746966229528ec9a4fc6a6bea9ca1feab8f..0000000000000000000000000000000000000000 --- a/funcom_test/36780451.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getNodeValue(Node node) { - StringBuffer buf = new StringBuffer(); - NodeList children = node.getChildNodes(); - for (int i = 0; i < children.getLength(); i++) { - Node textChild = children.item(i); - if (textChild.getNodeType() != Node.TEXT_NODE) { - System.err.println("Mixed content! Skipping child element: " - + textChild.getNodeName()); - continue; - } - buf.append(textChild.getNodeValue()); - } - return buf.toString(); - } - COM: <s> get the text of a node </s> - diff --git a/funcom_test/36780474.txt b/funcom_test/36780474.txt deleted file mode 100644 index 565a4d7fa1d22829b11bda7b60a8ea4760d48314..0000000000000000000000000000000000000000 --- a/funcom_test/36780474.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int getJobSubmissionTime(String r, int submittime){ - for(int i=0; i<resources.get(r).size(); i=i+3){ - if((Integer.parseInt(resources.get(r).get(i+1))<=submittime)&& - (submittime<=Integer.parseInt(resources.get(r).get(i+2)))){ - submittime = Integer.parseInt(resources.get(r).get(i+2)); - }//System.out.println("submit time ("+r+"): "+submittime); - } - return submittime; - } - COM: <s> get job submission time </s> - diff --git a/funcom_test/36780480.txt b/funcom_test/36780480.txt deleted file mode 100644 index 92e5f3212d4cf6403420ebf96381572244d19955..0000000000000000000000000000000000000000 --- a/funcom_test/36780480.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int getQueueWaitTime(String r, int submittime, int qwt){ - for(int i=0; i<resources.get(r).size(); i=i+3){ - if((submittime<=Integer.parseInt(resources.get(r).get(i+1)))&& - (Integer.parseInt(resources.get(r).get(i+1))<=(submittime+qwt))){ - qwt = qwt + (Integer.parseInt(resources.get(r).get(i+2)) - Integer.parseInt(resources.get(r).get(i+1))); - }//System.out.println("qwt ("+r+"): "+qwt); - } - return qwt; - } - COM: <s> get job start time </s> - diff --git a/funcom_test/36780506.txt b/funcom_test/36780506.txt deleted file mode 100644 index db6d9198f61f6336058e6fc4493be73111e8c8d0..0000000000000000000000000000000000000000 --- a/funcom_test/36780506.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int convertDateToMinutes(String dateformat){ - String [] tmp = dateformat.split("[ ]|[:]|[-]"); - - int day = Integer.parseInt(tmp[0]); - int month = Integer.parseInt(tmp[1]); - int year = Integer.parseInt(tmp[2]); - int hr = Integer.parseInt(tmp[3]); - int min = Integer.parseInt(tmp[4]); - String timezone = tmp[5]; - - int mToMin = convertMonthToMinutes(month); - int dToMin = convertDaysToMinutes(day); - int tz = adjustTimeZoneHr(timezone); - - int minutes = mToMin + dToMin + ((hr+tz)*60) + min; - - return minutes; - } - COM: <s> get the amount of time minutes from the date format </s> - diff --git a/funcom_test/36780985.txt b/funcom_test/36780985.txt deleted file mode 100644 index a274804de204734a4cee247e4a2384e875757e36..0000000000000000000000000000000000000000 --- a/funcom_test/36780985.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void storeToFile(){ - FileOutputStream fos = null; - try{ - fos = new FileOutputStream(new File(accountFile)); - users.store(fos, null);//no comments written - } catch (Exception e) { - e.printStackTrace(); - } finally { - if(fos != null){ - try{ - fos.close(); - } catch (IOException e) {} - } - } - } - COM: <s> user info persistent from memory into a file </s> - diff --git a/funcom_test/36795895.txt b/funcom_test/36795895.txt deleted file mode 100644 index 59448c7c99b58542ccdcea9c94723630a4ce830f..0000000000000000000000000000000000000000 --- a/funcom_test/36795895.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public MemoryInstruction getMemoryInstruction(RegisterFile rFile) { - int address = rFile.getValueForRegister(registerAddress); - byte[] toStore = intToByteArray(rFile.getValueForRegister(registerContent)); - MemoryInstruction store = MemoryInstruction.Store(address, toStore); - store.setSubType(SubTypes.UpdateStore); - return store; - } - COM: <s> this method will return a memoryinstruction which contains the address </s> - diff --git a/funcom_test/36796027.txt b/funcom_test/36796027.txt deleted file mode 100644 index b15b8915ca4621ab6022fd7cabc4ac732cc0adaf..0000000000000000000000000000000000000000 --- a/funcom_test/36796027.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected boolean silentEvict(int address) { - T evicted = null; - for (T line: lines.values()) { - if (line.silentlyEvictable() && line.address != address) { - evicted = line; - break; - } - } - if (evicted != null) { - lines.remove(evicted.address); - return true; - } else { - return false; - } - } - COM: <s> try to find and remove an evictable line </s> - diff --git a/funcom_test/36806176.txt b/funcom_test/36806176.txt deleted file mode 100644 index b22b05b2b4101693e4447da10af51d8b479067e0..0000000000000000000000000000000000000000 --- a/funcom_test/36806176.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void run() - { - if(isCoord(instance.getMode())) - { - System.out.println("Coord mode"); - // TODO create new contact.xml ? - // I don't think we need to create contact.xml - // because we know it only has it self at this point - listenForRequest(); - } - else - { - System.out.println("Client mode"); - connectToCoord(); - contactList = ParserDriver.ReadContacts(Constants.contactXML); - - // TODO Call parser to read contact.xml and update contactList - connectToAll(); - listenForRequest(); - } - } - COM: <s> life of the request listener thread </s> - diff --git a/funcom_test/36806180.txt b/funcom_test/36806180.txt deleted file mode 100644 index cb6d771d8354f465108bb281a6fe13cac5d334b3..0000000000000000000000000000000000000000 --- a/funcom_test/36806180.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void InsertAnnotation(Annotation a) - { - int seqno = instance.askForSeqno(); - String seqnoStr = "" + seqno; - - a.setID(seqnoStr); - ParserDriver.CreateRequestFile(seqnoStr, "insert", a); - - /** - * 1. Need seqno, therefore ask for seqno - * 2. Got seqno, need to create request file - * 3. - */ - instance.broadcastRequestFile(Constants.requestLocation + seqnoStr + ".xml"); - ParserDriver.DoRequest(Constants.requestLocation + seqnoStr + ".xml"); - } - COM: <s> the controller calls insert of the parser driver to insert the </s> - diff --git a/funcom_test/36806246.txt b/funcom_test/36806246.txt deleted file mode 100644 index 7bd617728fd8dfdb6d4451a87b85c82a88eec341..0000000000000000000000000000000000000000 --- a/funcom_test/36806246.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private void printToFile(String filename){ - - try - { - //print - OutputFormat format = new OutputFormat(dom); - format.setIndenting(true); - //format.setEncoding("UTF-8"); - - //to generate output to console use this serializer - //XMLSerializer serializer = new XMLSerializer(System.out, format); - - - //to generate a file output use fileoutputstream instead of system.out - XMLSerializer serializer = new XMLSerializer( - new FileOutputStream(new File(filename)), format); - - serializer.serialize(dom); - - } catch(IOException ie) { - ie.printStackTrace(); - } - } - COM: <s> this method uses xerces specific classes </s> - diff --git a/funcom_test/36806627.txt b/funcom_test/36806627.txt deleted file mode 100644 index cfd0c947758ef5ccdc39480134bbab21adadc17f..0000000000000000000000000000000000000000 --- a/funcom_test/36806627.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public ContactItem findNextCoord(String brokenID) - { - ContactItem minContact = null; - - for(ContactItem ci : ParserDriver.ReadContacts(Constants.contactXML)) - { - if(ci.getID().equalsIgnoreCase(brokenID)) - { - continue; - } - if(minContact == null) - { - minContact = ci; - } - else if ( (Integer.valueOf(minContact.getID()) > Integer.valueOf(ci.getID())) ) - { - minContact = ci; - } - } - return minContact; - } - COM: <s> find the lowest contact item beside the broken id </s> - diff --git a/funcom_test/36865636.txt b/funcom_test/36865636.txt deleted file mode 100644 index 3433c9562366b5beb49215e54dc1e74bed7557ff..0000000000000000000000000000000000000000 --- a/funcom_test/36865636.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void toJson(Object object) throws Exception { - HttpServletResponse response = this.getResponse(); - response.setCharacterEncoding("UTF-8"); - response.setContentType("application/json;charset=UTF-8"); - JsonUtils.write(object, response.getWriter(), this.getExcludes(), - this.getDatePattern()); - } - COM: <s> object to json </s> - diff --git a/funcom_test/36869313.txt b/funcom_test/36869313.txt deleted file mode 100644 index 0aecb0bd197d1e8bfb2d29520ba66da759188553..0000000000000000000000000000000000000000 --- a/funcom_test/36869313.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void handleCheckBoxClick(int which, int checked){ - switch (which) - { - case R.id.minimap_multi_check: - Log.i("MultiSelectScene", "Minimap checkbox handler called"); - Preferences.Get().multiShowMinimap = (checked != 0); - break; - case R.id.powerups_multi_check: - Log.i("MultiSelectScene", "Power-ups checkbox handler called"); - Preferences.Get().multiPowerups = (checked != 0); - break; - default: - Log.e("MultiSelectScene", "No handler options for that message!!"); - break; - } - } - COM: <s> given which checkbox has been pressed do something </s> - diff --git a/funcom_test/36869316.txt b/funcom_test/36869316.txt deleted file mode 100644 index 06f992569d89372d2936b99f90326fe5ef576717..0000000000000000000000000000000000000000 --- a/funcom_test/36869316.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void onSurfaceCreated(GL10 gl, EGLConfig config) - { - Log.i("DagRenderer","Surface Created" ); - - //Enable blending - gl.glEnable (GL10.GL_BLEND); - - gl.glBlendFunc (GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); - - gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); - gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); - - gl.glClearColor(0.0f, 1.0f, 0.0f, 0.0f); - - - } - COM: <s> called when a opengl surface is created </s> - diff --git a/funcom_test/36869411.txt b/funcom_test/36869411.txt deleted file mode 100644 index 8cef2f5d835d339a3e9c01a3c38fff5d99a13d87..0000000000000000000000000000000000000000 --- a/funcom_test/36869411.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void DrawTexturedMap(GL10 gl) - { - - gl.glBindTexture(GL10.GL_TEXTURE_2D, this.mapTextureId); - - //Set the vertices - gl.glVertexPointer(3, GL10.GL_FLOAT, 0, this.vertexMapBuffer); - - //Set the texture coordinates - gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, this.textureMapBuffer); - - //Draw the bitmap - gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); - } - COM: <s> draws the textured map image </s> - diff --git a/funcom_test/370589.txt b/funcom_test/370589.txt deleted file mode 100644 index 65037fefadec38dbc76cbbdf6e4a7ef2cf0271b0..0000000000000000000000000000000000000000 --- a/funcom_test/370589.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public IPath getAbsoluteJarLocation() { - // The workspace root is always local to the file system. - // So getLocation is OK here. - IPath workspaceLocation= ResourcesPlugin.getWorkspace().getRoot().getLocation(); - if (!fJarLocation.isAbsolute() && workspaceLocation != null) - // prepend workspace path - return workspaceLocation.append(fJarLocation); - else - return fJarLocation; - } - COM: <s> gets the absolute location of the jar file </s> - diff --git a/funcom_test/370667.txt b/funcom_test/370667.txt deleted file mode 100644 index 58f9c598af58249cdd86e599a1f32a0cdbc15c08..0000000000000000000000000000000000000000 --- a/funcom_test/370667.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void close() throws CoreException { - if (fInputStream != null) - try { - fInputStream.close(); - } catch (IOException ex) { - String message= (ex.getLocalizedMessage() != null ? ex.getLocalizedMessage() : ""); //$NON-NLS-1$ - throw new CoreException(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, message, ex)); - } - } - COM: <s> closes this stream </s> - diff --git a/funcom_test/370751.txt b/funcom_test/370751.txt deleted file mode 100644 index 8b41e24ca8546ccbe2cde38dd28ac2e563be2c7b..0000000000000000000000000000000000000000 --- a/funcom_test/370751.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void createSealingGroup(Composite parent) { - // destination specification group - Composite sealingGroup= new Composite(parent, SWT.NONE); - GridLayout layout= new GridLayout(); - layout.numColumns= 3; - layout.horizontalSpacing += 3; - sealingGroup.setLayout(layout); - sealingGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL)); - createSealJarGroup(sealingGroup); - createSealPackagesGroup(sealingGroup); - - } - COM: <s> creates the jar sealing specification controls </s> - diff --git a/funcom_test/370805.txt b/funcom_test/370805.txt deleted file mode 100644 index 397a5f27c4b596a711fcbfcf70be73120c8ff50e..0000000000000000000000000000000000000000 --- a/funcom_test/370805.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void aboutToOpen() { - determineWhiteCheckedDescendents(fRoot); - checkNewTreeElements(getTreeChildren(fRoot)); - fCurrentTreeSelection= null; - - //select the first element in the list - Object[] elements= getTreeChildren(fRoot); - Object primary= elements.length > 0 ? elements[0] : null; - if (primary != null) { - fTreeViewer.setSelection(new StructuredSelection(primary)); - } - fTreeViewer.getControl().setFocus(); - } - COM: <s> this method must be called just before this window becomes visible </s> - diff --git a/funcom_test/370820.txt b/funcom_test/370820.txt deleted file mode 100644 index f2c701376123ac6308d9035e0ef68769de1e1488..0000000000000000000000000000000000000000 --- a/funcom_test/370820.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void checkNewTreeElements(Object[] elements) { - for (int i= 0; i < elements.length; ++i) { - Object currentElement= elements[i]; - boolean checked= fCheckedStateStore.containsKey(currentElement); - fTreeViewer.setChecked(currentElement, checked); - fTreeViewer.setGrayed( - currentElement, - checked && !fWhiteCheckedTreeItems.contains(currentElement)); - } - } - COM: <s> iterates through the passed elements which are being realized for the first </s> - diff --git a/funcom_test/370831.txt b/funcom_test/370831.txt deleted file mode 100644 index 22dc40f5d8e579f703dcce5185e20ed830d71536..0000000000000000000000000000000000000000 --- a/funcom_test/370831.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void createListViewer(Composite parent, int width, int height) { - fListViewer= CheckboxTableViewer.newCheckList(parent, SWT.BORDER); - fListViewer.setUseHashlookup(true); - GridData data= new GridData(GridData.FILL_BOTH); - data.widthHint= width; - data.heightHint= height; - fListViewer.getTable().setLayoutData(data); - fListViewer.setContentProvider(fListContentProvider); - fListViewer.setLabelProvider(fListLabelProvider); - fListViewer.addCheckStateListener(this); - } - COM: <s> creates this groups list viewer </s> - diff --git a/funcom_test/370844.txt b/funcom_test/370844.txt deleted file mode 100644 index fa69530b917f0de695b54af2ae8754cc449e9834..0000000000000000000000000000000000000000 --- a/funcom_test/370844.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void determineWhiteCheckedDescendents(Object treeElement) { - // always go through all children first since their white-checked - // statuses will be needed to determine the white-checked status for - // this tree element - Object[] children= getTreeChildren(treeElement); - for (int i= 0; i < children.length; ++i) - determineWhiteCheckedDescendents(children[i]); - - // now determine the white-checked status for this tree element - if (determineShouldBeWhiteChecked(treeElement)) - setWhiteChecked(treeElement, true); - } - COM: <s> recursively adds appropriate tree elements to the collection of </s> - diff --git a/funcom_test/370873.txt b/funcom_test/370873.txt deleted file mode 100644 index 3b7000f2e9c6fb4dc6cc3846468105b5e4d0b80c..0000000000000000000000000000000000000000 --- a/funcom_test/370873.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void grayCheckHierarchy(Object treeElement) { - - // if this tree element is already gray then its ancestors all are as well - if (fCheckedStateStore.containsKey(treeElement)) - return; // no need to proceed upwards from here - - fCheckedStateStore.put(treeElement, new ArrayList()); - if (determineShouldBeWhiteChecked(treeElement)) { - setWhiteChecked(treeElement, true); - } - Object parent= fTreeContentProvider.getParent(treeElement); - if (parent != null) - grayCheckHierarchy(parent); - } - COM: <s> logically gray check all ancestors of tree item by ensuring that they </s> - diff --git a/funcom_test/370876.txt b/funcom_test/370876.txt deleted file mode 100644 index 4be17eda4a8555f61a2aff8360a87b77c5a093ff..0000000000000000000000000000000000000000 --- a/funcom_test/370876.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void initializeJarPackage() { - IDialogSettings settings= getDialogSettings(); - if (settings != null) { - // Manifest creation - fJarPackage.setGenerateManifest(settings.getBoolean(STORE_GENERATE_MANIFEST)); - fJarPackage.setSaveManifest(settings.getBoolean(STORE_SAVE_MANIFEST)); - fJarPackage.setReuseManifest(settings.getBoolean(STORE_REUSE_MANIFEST)); - String pathStr= settings.get(STORE_MANIFEST_LOCATION); - if (pathStr == null) - pathStr= ""; //$NON-NLS-1$ - fJarPackage.setManifestLocation(new Path(pathStr)); - - // Sealing - fJarPackage.setSealJar(settings.getBoolean(STORE_SEAL_JAR)); - } - } - COM: <s> initializes the jar package from last used wizard page values </s> - diff --git a/funcom_test/370890.txt b/funcom_test/370890.txt deleted file mode 100644 index 875310b83c1f5ef60190571cf4432222dc38c2cb..0000000000000000000000000000000000000000 --- a/funcom_test/370890.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void populateListViewer(final Object treeElement) { - if (treeElement == fCurrentTreeSelection) - return; - fCurrentTreeSelection= treeElement; - fListViewer.setInput(treeElement); - List listItemsToCheck= (List) fCheckedStateStore.get(treeElement); - - if (listItemsToCheck != null) { - Iterator listItemsEnum= listItemsToCheck.iterator(); - while (listItemsEnum.hasNext()) - fListViewer.setChecked(listItemsEnum.next(), true); - } - } - COM: <s> sets the contents of the list viewer based upon the specified selected </s> - diff --git a/funcom_test/370895.txt b/funcom_test/370895.txt deleted file mode 100644 index c0bbfc8a39b4a4f689dcc506d25b621e006857c6..0000000000000000000000000000000000000000 --- a/funcom_test/370895.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void selectionChanged(final SelectionChangedEvent event) { - BusyIndicator.showWhile(getTable().getShell().getDisplay(), new Runnable() { - public void run() { - IStructuredSelection selection= (IStructuredSelection) event.getSelection(); - Object selectedElement= selection.getFirstElement(); - if (selectedElement == null) { - fCurrentTreeSelection= null; - fListViewer.setInput(fCurrentTreeSelection); - return; - } - populateListViewer(selectedElement); - } - }); - } - COM: <s> handles the selection of an item in the tree viewer </s> - diff --git a/funcom_test/370962.txt b/funcom_test/370962.txt deleted file mode 100644 index 9f6d2238d0f6950bb8869ba8c55e7d75a52f497a..0000000000000000000000000000000000000000 --- a/funcom_test/370962.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private boolean hasCompileErrors(IResource resource) throws CoreException { - IMarker[] problemMarkers= resource.findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE); - for (int i= 0; i < problemMarkers.length; i++) { - if (problemMarkers[i].getAttribute(IMarker.SEVERITY, -1) == IMarker.SEVERITY_ERROR) - return true; - } - return false; - } - COM: <s> tells whether the given resource or its children have compile errors </s> - diff --git a/funcom_test/370968.txt b/funcom_test/370968.txt deleted file mode 100644 index db755aaf69c8cf2b970ae971ef9e1c098cb501ac..0000000000000000000000000000000000000000 --- a/funcom_test/370968.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void init(IWorkbench workbench, JarPackageData jarPackage) { - Assert.isNotNull(workbench); - Assert.isNotNull(jarPackage); - fJarPackage= jarPackage; - setInitializeFromJarPackage(true); - fSelection= new StructuredSelection(fJarPackage.getElements()); - setWindowTitle(JarPackagerMessages.FatJarPackageWizard_windowTitle); - setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_JAR_PACKAGER); - setNeedsProgressMonitor(true); - } - COM: <s> initializes this wizard from the given jar package description </s> - diff --git a/funcom_test/370981.txt b/funcom_test/370981.txt deleted file mode 100644 index 2b6b91382f54b327a5e384ca626118d3ec9e60b5..0000000000000000000000000000000000000000 --- a/funcom_test/370981.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void createOptionsGroup(Composite parent) { - Composite optionsGroup= new Composite(parent, SWT.NONE); - GridLayout layout= new GridLayout(); - layout.marginHeight= 0; - optionsGroup.setLayout(layout); - - fExportStructural= new Button(optionsGroup, SWT.CHECK | SWT.LEFT); - fExportStructural.setText(JarPackagerMessages.JarRefactoringDialog_export_structural); - fExportStructural.setSelection(fData.isExportStructuralOnly()); - } - COM: <s> create the export option group </s> - diff --git a/funcom_test/371015.txt b/funcom_test/371015.txt deleted file mode 100644 index 4ce563c47487608ba492fe1d1f212693f8bd4a50..0000000000000000000000000000000000000000 --- a/funcom_test/371015.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Set getPackagesForSelectedResources(JarPackageData jarPackage) { - Set packages= new HashSet(); - int n= fJarPackage.getElements().length; - for (int i= 0; i < n; i++) { - Object element= fJarPackage.getElements()[i]; - if (element instanceof ICompilationUnit) { - packages.add(((ICompilationUnit) element).getParent()); - } - } - return packages; - } - COM: <s> returns the minimal set of packages which contain all the selected java resources </s> - diff --git a/funcom_test/371023.txt b/funcom_test/371023.txt deleted file mode 100644 index 3455fdaedf5d6b77c64938258ce26a6413d5658a..0000000000000000000000000000000000000000 --- a/funcom_test/371023.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JarPackageData readJarPackage(IFile description) throws CoreException, IOException, SAXException { - Assert.isLegal(description.isAccessible()); - Assert.isNotNull(description.getFileExtension()); - Assert.isLegal(description.getFileExtension().equals(JarPackagerUtil.DESCRIPTION_EXTENSION)); - JarPackageData jarPackage= new JarPackageData(); - try { - fReader= jarPackage.createJarDescriptionReader(description.getContents()); - fReader.read(jarPackage); - } finally { - if (fReader != null) - fReader.close(); - } - return jarPackage; - } - COM: <s> reads the jar package spec from file </s> - diff --git a/funcom_test/371122.txt b/funcom_test/371122.txt deleted file mode 100644 index 47c3ece5428f3261b4c03d1367397ac732359bf5..0000000000000000000000000000000000000000 --- a/funcom_test/371122.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void addFile(String filename) { - try { - clearMainSection(); - InputStream is = new FileInputStream(filename); - InputStreamReader isr = new InputStreamReader(is); - BufferedReader br = new BufferedReader(isr); - boolean isMainSection = true; - String line = br.readLine(); - while (line != null) { - ManifestLine ml = new ManifestLine(line); - if (ml.isEmptyLine()) - isMainSection = false; - if (isMainSection) - manifestMainSection.add(ml); - else - manifestIndividualSection.add(ml); - line = br.readLine(); - } - br.close(); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> replace manifest main section with main section from file and </s> - diff --git a/funcom_test/371167.txt b/funcom_test/371167.txt deleted file mode 100644 index f9d5e469f85d9728434fc7a3e87a8fd88791183d..0000000000000000000000000000000000000000 --- a/funcom_test/371167.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initializeDefaults() { - IPreferenceStore store = getPreferenceStore(); - store.setDefault(P_JARNAME, "<project>_fat.jar"); - store.setDefault(P_MERGEMANIFEST, true); - store.setDefault(P_REMOVESIGNERS, true); - store.setDefault(P_SCMAUTOCHECKOUT, true); - store.setDefault(P_ESCAPEUPPERCASE, false); - store.setDefault(P_CONFIGFILE, ".fatjar"); - } - COM: <s> sets the default values of the preferences </s> - diff --git a/funcom_test/37120015.txt b/funcom_test/37120015.txt deleted file mode 100644 index 593dcaea94bff7e53b2a0b38ce6995b4eba2ff29..0000000000000000000000000000000000000000 --- a/funcom_test/37120015.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void throwError(String message) throws SAXException { - - // TODO - special exception for this - must also be - // a checked exception - - if (this.locator != null) { - message = message - + " (line=" + this.locator.getLineNumber() - + ",col=" + this.locator.getColumnNumber() + ")"; - } - - throw new SAXException(message); - } - COM: <s> throws a module configuration exception </s> - diff --git a/funcom_test/37120169.txt b/funcom_test/37120169.txt deleted file mode 100644 index e77e5f3a78057f6a8611015ea810f75e8b9f10a9..0000000000000000000000000000000000000000 --- a/funcom_test/37120169.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addId(String id, Object target) { - - if ((id != null) && (id.length() > 0)) { - if (this.ids.containsKey(id)) { - throwConfigurationError("IDs must be unique"); - } else { - this.ids.put(id, target); - } - } - } - COM: <s> adds an id for the specified target </s> - diff --git a/funcom_test/37120418.txt b/funcom_test/37120418.txt deleted file mode 100644 index deebbd842a3ab15235ea08ad7cb8dfb41d6e527f..0000000000000000000000000000000000000000 --- a/funcom_test/37120418.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String apply(Vector args) throws CommandLineFormatException { - - String value = null; - - if (args.size() > 0) { - - int n = this.rules.size(); - for (int i = 0; i < n; i++) { - ParserRule rule = (ParserRule) this.rules.elementAt(i); - value = rule.apply(args); - } - - } - - return value; - } - COM: <s> applies the sub rules to the specified arguments until one </s> - diff --git a/funcom_test/37120594.txt b/funcom_test/37120594.txt deleted file mode 100644 index 0b3bc5d0bbda90a77c789794c63be2202d1eb5d6..0000000000000000000000000000000000000000 --- a/funcom_test/37120594.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void goOffline() { - - log("announcing: leaving the network"); - - this.stopping = false; - PeerAnnouncement announcement - = new PeerAnnouncement(getPeerId(), getPeerName(), - null, true); - try { - this.pipe.sendObject(announcement); - } catch (IOException ioe) { - // do nothing - we did our best - } - } - COM: <s> this should always be called from synchronized this code </s> - diff --git a/funcom_test/37120800.txt b/funcom_test/37120800.txt deleted file mode 100644 index 4ff2118fd9b73be673e0e30d8be49347a8f13258..0000000000000000000000000000000000000000 --- a/funcom_test/37120800.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected boolean isSatisfiedByRoot(final Resource resource) { - - final boolean satisfied; - final String resourceName = resource.getName(); - final Version resourceVersion = resource.getVersion(); - - if (resourceName.equals(this.resourceName)) { - satisfied - = this.resourceVersionRange.containsVersion(resourceVersion); - } else { - satisfied = false; - } - - return satisfied; - } - COM: <s> checks if a resource satisfies this requirement without checking </s> - diff --git a/funcom_test/37121022.txt b/funcom_test/37121022.txt deleted file mode 100644 index 3aaff1a9cdc0d4b56677de6a3f4b7162360ba682..0000000000000000000000000000000000000000 --- a/funcom_test/37121022.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void processPeerEvent(EventRole role, Object data) { - - if (role == Widget.ENABLED_EVENT_ROLE) { - if (hasFocus()) { - final boolean disabled = !((Boolean) data).booleanValue(); - if (disabled && (this.focusGroup != null)) { - this.focusGroup.nextFocus(); - } - } - } - - super.processPeerEvent(role, data); - } - COM: <s> processes an event from this views peer widget </s> - diff --git a/funcom_test/37121042.txt b/funcom_test/37121042.txt deleted file mode 100644 index 90feb4bfd472c2b772a38e493aab5c44da3d1097..0000000000000000000000000000000000000000 --- a/funcom_test/37121042.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected boolean scrollTextWindowTo(int newX, int newY) { - - final ConstantPoint windowOrigin = this.textWindow.getWindowOrigin(); - - return scrollTextWindow(true, newX - windowOrigin.getX()) - | scrollTextWindow(false, newY - windowOrigin.getY()); - } - COM: <s> scrolls the text such that the specified coordinates are at the </s> - diff --git a/funcom_test/37121131.txt b/funcom_test/37121131.txt deleted file mode 100644 index 4f8d5beb7bcc9b2fd30d7c3cac933caa5ec078c1..0000000000000000000000000000000000000000 --- a/funcom_test/37121131.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void cycleFrames(boolean forward) { - - final int n = this.visibleFrames.size(); - final int lastIndex = n - 1; - - // only do something if there are at least two frames - - if (n >= 2) { - final int previous = this.topFrameIndex; - this.topFrameIndex = nextVisibleFrameIndex(forward); - if (this.topFrameIndex != previous) { - render(); - setStatusText(READY_MSG); - } - } - } - COM: <s> cycle through the visible frames making the next or previous frame </s> - diff --git a/funcom_test/37121248.txt b/funcom_test/37121248.txt deleted file mode 100644 index b66ede23c494ec0e7ec56c0577c2e7d6f7baba75..0000000000000000000000000000000000000000 --- a/funcom_test/37121248.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setFillHint(Widget child, boolean expand) { - - if (containsChildWidget(child)) { - if (expand) { - this.fillHintedWidgets.addElement(child); - } else { - this.fillHintedWidgets.removeElement(child); - } - } else { - throw new - IllegalArgumentException("was not a child widget: " + child); - } - } - COM: <s> sets whether to expand the widget to fill extra space in the </s> - diff --git a/funcom_test/37121258.txt b/funcom_test/37121258.txt deleted file mode 100644 index 4150931df2d749671dc61ab97049ffb3e8f183a6..0000000000000000000000000000000000000000 --- a/funcom_test/37121258.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setText(String text) { - if (text == null) { - throw new IllegalArgumentException("null text not allowed"); - } - setPosition(0); - if (!text.equals(this.text)) { - this.text = text; - notifyEventListeners(TEXT_EVENT_ROLE, text); - } - } - COM: <s> sets the text entered into this text field </s> - diff --git a/funcom_test/37121337.txt b/funcom_test/37121337.txt deleted file mode 100644 index f512d832b03a485cd3a0f329a84e2693533bd48f..0000000000000000000000000000000000000000 --- a/funcom_test/37121337.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void initialize() { - - // perform an important internal consistency check - this is to - // catch any subtle threading bugs - we do not declare this in the - // javadoc since it should not happen - - if (initialized) { - throw new IllegalStateException("already initialized"); - } - - (new DefaultServiceConfigurationLoader()) - .loadServiceConfiguration(this); - - initialized = true; - } - COM: <s> initializes this root service context </s> - diff --git a/funcom_test/37121348.txt b/funcom_test/37121348.txt deleted file mode 100644 index 9da7d8fbd28824d4677fdf9f46142d357b93c01a..0000000000000000000000000000000000000000 --- a/funcom_test/37121348.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void init(String[] args) { - - // parse command line arguments if the parser is available - - Object service = getCommandLineParser(); - - if (service != null) { - - try { - CommandLineParser parser = (CommandLineParser) service; - if (parser != null) { - try { - parser.parseCommandLine(args); - } catch (Exception e) { - handleCommandLineException(e); - } - } - } catch (Throwable t) { - t.printStackTrace(); - } - } - } - COM: <s> initialises the application </s> - diff --git a/funcom_test/37121386.txt b/funcom_test/37121386.txt deleted file mode 100644 index 6b37e4beac7591891404c791e662d5619782b10b..0000000000000000000000000000000000000000 --- a/funcom_test/37121386.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setItemAt(int index, String item) { - requireValidIndex(index); - String oldItem = (String) this.items.elementAt(index); - if (oldItem != item) { - this.items.setElementAt(item, index); - notifyEventListeners(ITEMS_CHANGED_EVENT_ROLE, null); - } - } - COM: <s> sets the item in the list at a specified index </s> - diff --git a/funcom_test/37121606.txt b/funcom_test/37121606.txt deleted file mode 100644 index f05ba59a7bf49684dcd6be4162ff5c1912924f8b..0000000000000000000000000000000000000000 --- a/funcom_test/37121606.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void sendAscii(String string) { - - try { - this.out.write(string.getBytes("US-ASCII")); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException("ASCII text not supported!"); - } catch (IOException e) { - throw new RuntimeException("output failed!"); - } - } - COM: <s> converts a string to us ascii and sends it to the output </s> - diff --git a/funcom_test/37121613.txt b/funcom_test/37121613.txt deleted file mode 100644 index 99a8c266979403ff2b986611673bdea08339078a..0000000000000000000000000000000000000000 --- a/funcom_test/37121613.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected Object createServiceInstance(ServiceFactory factory) { - - Object service = factory.createServiceInstance(); - - // if the factory created a singleton service, the factory - // is removed to ensure no more instances can be created - - if (factory instanceof DefaultServiceFactory) { - - DefaultServiceFactory factory0 - = (DefaultServiceFactory) factory; - - ServiceMultiplicity multiplicity - = getServiceMultiplicity(factory0); - - if (multiplicity == ServiceMultiplicity.SINGLETON) { - deinstallServiceFactory(factory); - } - } - - return service; - } - COM: <s> creates a new service instance </s> - diff --git a/funcom_test/37121637.txt b/funcom_test/37121637.txt deleted file mode 100644 index 6b94ed365694656277cf5d8cc4a98ea675dd2d1f..0000000000000000000000000000000000000000 --- a/funcom_test/37121637.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void run() { - - ServiceContext context = getServiceContext(); - - if (context == null) { - throw new RuntimeException("can't run without a service context!"); - } else { - - Log log = (Log) context.getService(Log.class); - - if (log == null) { - throw new RuntimeException("can't run without a Log service!"); - } else { - log.appendEntry("Hello World (Basic)"); - } - } - } - COM: <s> gets called by the main method </s> - diff --git a/funcom_test/37121669.txt b/funcom_test/37121669.txt deleted file mode 100644 index f806b46c0681bb8715d74a0641b6bfc817e5e2da..0000000000000000000000000000000000000000 --- a/funcom_test/37121669.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setItemName(String itemName) { - - if ((itemName == null) || (itemName == "")) { - throw new IllegalArgumentException("null or empty item name"); - } - - this.itemName = itemName; - this.textArea.setText("Remove the item?\n" + itemName); - } - COM: <s> sets the name of the item to remove </s> - diff --git a/funcom_test/371454.txt b/funcom_test/371454.txt deleted file mode 100644 index 58b08016fa94a357dde1f792c196b98bd906743a..0000000000000000000000000000000000000000 --- a/funcom_test/371454.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public StringTree iterateNext() { - StringTree result = null; - if (hasChildren()) { - result = getChild(1); - } - if (result == null) { - StringTree base = this; - while (base != null) { - result = base.getNextSibling(); - if (result != null) { - break; - } - base = base.getParent(); - } - } - return result; - } - COM: <s> go to next element in tree in dfs preorder traverse </s> - diff --git a/funcom_test/371562.txt b/funcom_test/371562.txt deleted file mode 100644 index 87dff471f2bddabf6fc8f951419e6f15d25bddbc..0000000000000000000000000000000000000000 --- a/funcom_test/371562.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getMainClass() { - String result = null; - if (launchConfig != null) { - try { - result = launchConfig.getAttribute( - IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, - (String) null); - } catch (CoreException ignore) { - } - } - if (result == null) { - result = ""; - } - return result; - } - COM: <s> get mainclass set in launch configuration </s> - diff --git a/funcom_test/371573.txt b/funcom_test/371573.txt deleted file mode 100644 index 47018e5d41547fb9f716d7dd13d5ba65170d2dca..0000000000000000000000000000000000000000 --- a/funcom_test/371573.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getArguments() { - String result = null; - if (launchConfig != null) { - try { - result = launchConfig - .getAttribute( - IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, - (String) null); - } catch (CoreException ignore) { - } - } - if (result == null) { - result = ""; - } - return result; - } - COM: <s> get program arguments set in launch configuration </s> - diff --git a/funcom_test/371585.txt b/funcom_test/371585.txt deleted file mode 100644 index c7e3076d31cc5f98303fc604b47d1edfc49f8c22..0000000000000000000000000000000000000000 --- a/funcom_test/371585.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getVMArguments() { - String result = null; - if (launchConfig != null) { - try { - result = launchConfig.getAttribute( - IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, - (String) null); - } catch (CoreException ignore) { - } - } - if (result == null) { - result = ""; - } - return result; - } - COM: <s> get vm arguments set in launch configuration </s> - diff --git a/funcom_test/372177.txt b/funcom_test/372177.txt deleted file mode 100644 index cad2e093d29f9e32aa8f8ee5965132e016dd4077..0000000000000000000000000000000000000000 --- a/funcom_test/372177.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Manifest createOuterOneJar(JarPackageData jarPackage) { - Manifest manifest= createDefault("1.0"); - addNoneEmptyAttribute(manifest, "Created-By", "FAT-JAR/ONE-JAR Eclipse Plug-In"); - addNoneEmptyAttribute(manifest, Attributes.Name.MAIN_CLASS, "com.simontuffs.onejar.Boot"); - addNoneEmptyAttribute(manifest, Attributes.Name.CLASS_PATH, ojBuilder.getManifestClasspath()); - return manifest; - } - COM: <s> creates outer manifest for one jar </s> - diff --git a/funcom_test/3725051.txt b/funcom_test/3725051.txt deleted file mode 100644 index f402db3b76834907d2b967d2380c228b63888643..0000000000000000000000000000000000000000 --- a/funcom_test/3725051.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void initJobOutListeners() throws Exception { - if (m_stdoutStream != null) - return; - // job output vars - m_stdoutStream = new JobOutputStream(this); - m_stderrStream = new JobOutputStream(this); - m_jobid = String.valueOf(System.currentTimeMillis()); - - // register output listeners - m_gassServer.registerJobOutputStream("err-" + m_jobid, m_stderrStream); - m_gassServer.registerJobOutputStream("out-" + m_jobid, m_stdoutStream); - return; - } - COM: <s> init job out listeners for non batch mode jobs </s> - diff --git a/funcom_test/3725054.txt b/funcom_test/3725054.txt deleted file mode 100644 index 8439671d8ee0eae00f4b6a7fd00985d9e732393c..0000000000000000000000000000000000000000 --- a/funcom_test/3725054.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void statusChanged(GramJob job) { - try { - if (job.getStatus() == GramJob.STATUS_DONE) { - // notify waiting thread when job ready - // m_jobOutput = "Job sent, got notification status changed. url=" + job.getIDAsString(); - // if notify enabled return URL as output - synchronized (this) { - notifyAll(); - } - } - } catch (Exception ex) { - } - } - COM: <s> this method is used to notify the implementer when the status of a </s> - diff --git a/funcom_test/3725081.txt b/funcom_test/3725081.txt deleted file mode 100644 index 9f75821c61a87e5d3c894dcb11d2ef1881426f72..0000000000000000000000000000000000000000 --- a/funcom_test/3725081.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String submitJob(JobDefinition jobDef) throws SecurityException, IOException, DRMException { - - if (jobDef == null) { - logger.debug("null job definition"); - throw new NullPointerException(); - } - - Job job = null; - Queue queue = new Queue(null, contactHost, contactPort, contactTimeout); - try { - job = queue.submitJob(jobDef); - } catch (Exception e) { - throw new DRMException(2000, e.getMessage()); - } - - return (job.getJobId()); - } // End of submitJob - COM: <s> submit a job to the cluster </s> - diff --git a/funcom_test/3725313.txt b/funcom_test/3725313.txt deleted file mode 100644 index cc67c587c0286d1e86359d66d29fab4ea8ee426d..0000000000000000000000000000000000000000 --- a/funcom_test/3725313.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public GetQueueConfigParamsResponse getQueueConfigParams(GetQueueConfigParams request) throws RemoteException, QueuingFaultType { - QueuingResource resource = this.getResource(); - GetQueueConfigParamsResponse response = new GetQueueConfigParamsResponse(resource.getConfig()); - logger.debug("ready to invoke test " + resource.getConfig().getCommunityGisHandle()); - return response; - } - COM: <s> get queue configuration information </s> - diff --git a/funcom_test/37397031.txt b/funcom_test/37397031.txt deleted file mode 100644 index e30241c0843e23425492cbd4f02f0aef888ee983..0000000000000000000000000000000000000000 --- a/funcom_test/37397031.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int search(Object object) { - int i = data.size() - 1; // Current index - int n = 1; // Current distance - while (i >= 0) { - Object current = data.get(i); - if ((object == null && current == null) - || (object.equals(current))) { - return n; - } - i--; - n++; - } - return -1; - } - COM: <s> returns the one based position of the distance from the top that the </s> - diff --git a/funcom_test/37397108.txt b/funcom_test/37397108.txt deleted file mode 100644 index 4c8fc1af77dd9decbc117e647ffdccbd241d9244..0000000000000000000000000000000000000000 --- a/funcom_test/37397108.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Map initEntryMap(Serializable wrappedObject) { - Map entrySet = new HashMap(); - - List fields = initFields(wrappedObject.getClass()); - Iterator i = fields.iterator(); - while (i.hasNext()) { - Field field = (Field) i.next(); - entrySet.put(field.getName(), new FieldEntry(field)); - } - - return Collections.unmodifiableMap(entrySet); - } - COM: <s> initialize the entry map </s> - diff --git a/funcom_test/37397456.txt b/funcom_test/37397456.txt deleted file mode 100644 index e1d972eb2b0e85a3ad7fbc45b8e1078e045038f6..0000000000000000000000000000000000000000 --- a/funcom_test/37397456.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testDoEnd() throws Exception { - messageTag.setName("message1"); - messageTag.setResource("test.org.chwf.taglib.ji18n.MessageTagTest"); - messageTag.doEnd(); - MockJspWriter writer = (MockJspWriter) this.getPageContext().getOut(); - assertEquals("Message 1", writer.getString()); - } - COM: <s> see message tag test </s> - diff --git a/funcom_test/37397465.txt b/funcom_test/37397465.txt deleted file mode 100644 index 6eea5da5abfb35fb86ead744d5f362b6f8b0d453..0000000000000000000000000000000000000000 --- a/funcom_test/37397465.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testDoEnd() throws IOException { - String resource = "test.org.chwf.taglib.ji18n.ResourceTagTest"; - resourceTag.setBasename(resource); - resourceTag.doEnd(); - - MessageTag messageTag = new MessageTag(); - messageTag.setPageContext(this.getPageContext()); - assertEquals(resource, messageTag.getResource()); - } - COM: <s> see resource tag test </s> - diff --git a/funcom_test/37397474.txt b/funcom_test/37397474.txt deleted file mode 100644 index 85db15c6ea10e0f2e72f13ee690aabfb7e56ba71..0000000000000000000000000000000000000000 --- a/funcom_test/37397474.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testDoEnd() throws Exception { - includeTag.setName("test.url"); - includeTag.setResource("test.org.chwf.taglib.ji18n.IncludeTagTest"); - includeTag.doEnd(); - MockRequestDispatcher dispatcher = getRequest().getMockRequestDispatcher(); - assertEquals("/url.jsp", dispatcher.getURI()); - } - COM: <s> see include tag test </s> - diff --git a/funcom_test/37398233.txt b/funcom_test/37398233.txt deleted file mode 100644 index fec49adfa4a3ed58e53d6ec568639286a6da2e4c..0000000000000000000000000000000000000000 --- a/funcom_test/37398233.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testWhetherClassAndTestNameMatches() { - if (testedClass != null) { - String testName = this.getClass().getName(); - String className = this.testedClass.getName(); - assertEquals("test." + className + "Test", testName); - } - } - COM: <s> ensure that the test classs fully qualified name is in the form </s> - diff --git a/funcom_test/37398235.txt b/funcom_test/37398235.txt deleted file mode 100644 index fcb3b4d0877659a7eee9f0070cdb31dbb2d49098..0000000000000000000000000000000000000000 --- a/funcom_test/37398235.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Object findAttribute(String name) { - Object result = getAttribute(name); - if (result == null) { - result = getRequest().getAttribute(name); - } - if (result == null) { - result = getSession().getAttribute(name); - } - if (result == null) { - result = getServletContext().getAttribute(name); - } - return result; - } - COM: <s> find attribute by searching all scopes </s> - diff --git a/funcom_test/37398268.txt b/funcom_test/37398268.txt deleted file mode 100644 index 8b02d8e2ec3e0d2dbaaa9989a6e05132588f33a5..0000000000000000000000000000000000000000 --- a/funcom_test/37398268.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testExpansionOverflow() { - try { - Config config = ConfigFactory.getConfig(Overflow.class); - fail("Should throw ConfigurationException"); - } catch (ConfigurationException ex) { - assertEquals( - "Overflow expanding property circular.foo " - + "for resource test.org.chwf.config.ConfigTest$Overflow", - ex.getMessage()); - } - } - COM: <s> see config test overflow </s> - diff --git a/funcom_test/37398281.txt b/funcom_test/37398281.txt deleted file mode 100644 index 0e3daf98b2f83b9073d7bc988b1e3a6be9bdc87e..0000000000000000000000000000000000000000 --- a/funcom_test/37398281.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetRawConfig() { - Config config = ConfigFactory.getConfig(RawConfigClass.class); - Iterator rawKeys = ((RawConfig) config).getRawData().keySet().iterator(); - assertTrue(rawKeys.hasNext()); - assertEquals("raw.config", rawKeys.next()); - assertFalse(rawKeys.hasNext()); - } - COM: <s> see config test raw config </s> - diff --git a/funcom_test/37398396.txt b/funcom_test/37398396.txt deleted file mode 100644 index e514cc5c310df3249811ef556dc635456f50f448..0000000000000000000000000000000000000000 --- a/funcom_test/37398396.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void encodeNext(StringBuffer buffer, Iterator i) { - String key = i.next().toString(); - String value = Converter.convert(parameters.get(key)); - buffer.append(ServletUtils.encode(key)); - buffer.append("="); - buffer.append(ServletUtils.encode(value)); - } - COM: <s> encode the next parameter value </s> - diff --git a/funcom_test/37398454.txt b/funcom_test/37398454.txt deleted file mode 100644 index 1cce7d9ae8e7ef49356ca23ca106476ac91d5ea2..0000000000000000000000000000000000000000 --- a/funcom_test/37398454.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Map addInvalidParams(Map invalidParams, MultiParameterException ex) { - Iterator it = ex.getParameterNames(); - while (it.hasNext()) { - String name = (String) it.next(); - String error = ex.getMessage(name); - invalidParams = addInvalidParams(invalidParams, name, error); - } - return invalidParams; - } - COM: <s> accumulate invalid parameters </s> - diff --git a/funcom_test/37398504.txt b/funcom_test/37398504.txt deleted file mode 100644 index f715706ea1625df7494ec00c3db9014025adf70c..0000000000000000000000000000000000000000 --- a/funcom_test/37398504.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void initMatchAllPatterns() { - for (int i = 0; i < this.uriPatterns.length; i++) { - String pattern = this.uriPatterns[i]; - if (pattern.equals(WILDCARD) || pattern.equals("/*")) { - this.uriPatterns[0] = WILDCARD; - } - } - } - COM: <s> initialize patterns matching all uri </s> - diff --git a/funcom_test/37398593.txt b/funcom_test/37398593.txt deleted file mode 100644 index d17211c4c171955904317095febd3808a2d65232..0000000000000000000000000000000000000000 --- a/funcom_test/37398593.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void printLabel() throws IOException, JspException { - JspWriter out = pageContext.getOut(); - out.print("<label for='"); - out.print(getFor()); - out.print("'"); - printAttributes(); - out.print(">"); - out.print(deriveLabel()); - out.print("</label>"); - } - COM: <s> print the field label </s> - diff --git a/funcom_test/37398648.txt b/funcom_test/37398648.txt deleted file mode 100644 index e92709c7ae362776a051e84cb05ecb2da6fb21a8..0000000000000000000000000000000000000000 --- a/funcom_test/37398648.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int doStart() throws IOException, JspException { - storeDefaultObject(findObject()); - JspWriter out = pageContext.getOut(); - out.print("<form action='"); - out.print(getActionURL()); - out.print("'"); - printAttributes(); - out.print(">"); - return EVAL_BODY_INCLUDE; - } - COM: <s> initializes form data and prints open tag </s> - diff --git a/funcom_test/37398649.txt b/funcom_test/37398649.txt deleted file mode 100644 index f5007b6a833ff6869902f9d9f0a43f9c1021a2f7..0000000000000000000000000000000000000000 --- a/funcom_test/37398649.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setObject(String objectName) throws JspException { - this.objectName = objectName; - this.object = pageContext.findAttribute(objectName); - if (this.object == null) { - throw new TagException( - TagException.MESSAGE_OBJECT_NOT_FOUND, - new Object[] { objectName }); - } - } - COM: <s> the object name </s> - diff --git a/funcom_test/37398655.txt b/funcom_test/37398655.txt deleted file mode 100644 index c3bef6b5a0e1c3d8da4475d66462558dfcfc5a67..0000000000000000000000000000000000000000 --- a/funcom_test/37398655.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String getActionURL() { - String action = getAction(); - if (action.charAt(0) == '/') { - HttpServletRequest request = - (HttpServletRequest) pageContext.getRequest(); - action = request.getContextPath() + action; - } - HttpServletResponse response = - (HttpServletResponse) pageContext.getResponse(); - action = response.encodeURL(action); - return action; - } - COM: <s> derive action url by prepending context path and url rewriting </s> - diff --git a/funcom_test/37398700.txt b/funcom_test/37398700.txt deleted file mode 100644 index 43685602222dacdf59914c53d30f4dcc62e20a75..0000000000000000000000000000000000000000 --- a/funcom_test/37398700.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Map getOptionsMap() throws JspException { - if (this.options == null) { - Object attribute = getPropertyAttribute(BeanFilter.ATTRIBUTE_OPTIONS); - if ((attribute == null) || !(attribute instanceof Map)) { - throw new TagException( - JhtmlMessages.MESSAGE_SELECT_TAG_REQUIRES_OPTIONS); - } - this.options = (Map) attribute; - } - return this.options; - } - COM: <s> the option map for select lists </s> - diff --git a/funcom_test/37398714.txt b/funcom_test/37398714.txt deleted file mode 100644 index ef1515e58dbd3b5355c3cdd773121bb2cf1b8713..0000000000000000000000000000000000000000 --- a/funcom_test/37398714.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Object getObjectResult(Class expectedClass) throws JspException { - Object value = findObject(); - if (!expectedClass.isInstance(value)) { - Object[] args = { getObject(), expectedClass.getName()}; - throw new TagException(TagException.MESSAGE_OBJECT_UNEXPECTED_TYPE, args); - } - return value; - } - COM: <s> get the result from the tag object </s> - diff --git a/funcom_test/37398723.txt b/funcom_test/37398723.txt deleted file mode 100644 index 83fe4d3252861c127d1ea44fd510daceacd5f7ea..0000000000000000000000000000000000000000 --- a/funcom_test/37398723.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Object getPropertyResult(Class expectedClass) throws JspException { - Object value = BeanFilter.getProperty(findObject(), getProperty()); - if (!expectedClass.isInstance(value)) { - Object[] args = { getProperty(), getObject(), expectedClass.getName()}; - throw new TagException( - TagException.MESSAGE_PROPERTY_UNEXPECTED_TYPE, - args); - } - return value; - } - COM: <s> get the result from the tag object property </s> - diff --git a/funcom_test/37398751.txt b/funcom_test/37398751.txt deleted file mode 100644 index 2b9ceb0d1bc5b0dd62da5dc43e4779e79fb0cf80..0000000000000000000000000000000000000000 --- a/funcom_test/37398751.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Object getTagResult() throws JspException { - String el = getEl(); - String collection = getCollection(); - if (el != null) { - return ExpressionEvaluatorManager.evaluate( - "el", - el, - Object.class, - this, - pageContext); - } else if (collection != null) { - return pageContext.findAttribute(collection); - } else { - return null; - } - } - COM: <s> get tag result using either the collection attribute or el </s> - diff --git a/funcom_test/37398788.txt b/funcom_test/37398788.txt deleted file mode 100644 index 6c4cdc8c1f54940e80d09cd8bfad3dcff869ef2e..0000000000000000000000000000000000000000 --- a/funcom_test/37398788.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String get(String key) throws ConfigurationException { - String value = getRawValue(key); - if (value != null) { - return value; - } else { - Object[] arguments = { this.localizedResource, key }; - throw new ConfigurationException( - ConfigurationException.MESSAGE_PROPERTY_NOT_FOUND, - arguments); - } - } - COM: <s> gets the named property value </s> - diff --git a/funcom_test/37398789.txt b/funcom_test/37398789.txt deleted file mode 100644 index b57189aa0dab28c83540e2a4db6085c643f40bc1..0000000000000000000000000000000000000000 --- a/funcom_test/37398789.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void printLabel() throws IOException, JspException { - JspWriter out = this.pageContext.getOut(); - out.print("<label for='"); - out.print(getName()); - out.print("'>"); - out.print(deriveLabel()); - out.print("</label>"); - } - COM: <s> print label associated with field </s> - diff --git a/funcom_test/37398792.txt b/funcom_test/37398792.txt deleted file mode 100644 index 622ce039ae02be8e68a26dc61ddb019428b14287..0000000000000000000000000000000000000000 --- a/funcom_test/37398792.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void endElement(String namespaceURI, String localName, String qName) { - // Retrieve the buffer, if need: - if (textIsNeeded() && (buffer.length() > 0)) { - propertyValue = buffer.toString(); - addProperty(); - } - - // Clean up data: - propertyValue = null; - inTag = false; - - // Pop last name in path: - path.remove(path.size() - 1); - } - COM: <s> called at the end tag </s> - diff --git a/funcom_test/37398799.txt b/funcom_test/37398799.txt deleted file mode 100644 index 62f8e06e4507fddc3e655665769e65a68926a400..0000000000000000000000000000000000000000 --- a/funcom_test/37398799.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Map getFactoryClasses(String resourceClass) { - String namedFactoryKey = "factories." + resourceClass + ".*.class"; - Map map = new SequencedHashMap(config.getMap(namedFactoryKey)); - String defaultFactory = - config.get("factories." + resourceClass + ".default-factory"); - map.put(DEFAULT_FACTORY, defaultFactory); - return map; - } - COM: <s> a map with the factory names as its keys the factory class names </s> - diff --git a/funcom_test/37398801.txt b/funcom_test/37398801.txt deleted file mode 100644 index b7887e76fa9573c5ba1921bab0dd3d2c7b19c76b..0000000000000000000000000000000000000000 --- a/funcom_test/37398801.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Map getFactoryProperties(String resourceClass, String name) { - String key = null; - if (name.length() > 0) { - key = "factories." + resourceClass + "." + name + ".properties"; - } else { - key = "factories." + resourceClass + ".properties"; - } - return config.getMap(key); - } - COM: <s> a map of properties associated with the named factory </s> - diff --git a/funcom_test/37398821.txt b/funcom_test/37398821.txt deleted file mode 100644 index 4dd9507d2b71236d1a4c53f6dcf4fff3c334eef3..0000000000000000000000000000000000000000 --- a/funcom_test/37398821.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getInt(String key) throws ConfigurationException { - try { - return NumberFormat.getNumberInstance().parse(get(key)).intValue(); - } catch (ParseException ex) { - throw new ConfigurationException( - ConfigurationException.MESSAGE_PROPERTY_NOT_NUMBER, - new Object[] { this.localizedResource, key }); - } - } - COM: <s> gets the named property value as an int value </s> - diff --git a/funcom_test/37398864.txt b/funcom_test/37398864.txt deleted file mode 100644 index 24c350f1ea51b9f3234a01b8d6fb7f15826593d8..0000000000000000000000000000000000000000 --- a/funcom_test/37398864.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double getDouble(String key) throws ConfigurationException { - try { - return NumberFormat.getNumberInstance().parse(get(key)).doubleValue(); - } catch (ParseException ex) { - throw new ConfigurationException( - ConfigurationException.MESSAGE_PROPERTY_NOT_NUMBER, - new Object[] { this.localizedResource, key }); - } - } - COM: <s> gets the named property value as a double value </s> - diff --git a/funcom_test/37398889.txt b/funcom_test/37398889.txt deleted file mode 100644 index 2fe4cd0a422454cc8f66b1eb03228e636a942f40..0000000000000000000000000000000000000000 --- a/funcom_test/37398889.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void log(Class context, Object message, Throwable ex, boolean debug) { - if (!debug || this.debug) { - String msg = "[" + context.getName() + "] " + String.valueOf(message); - if (ServletData.isInitialized()) { - logToServletLog(ex, msg); - } else { - logToSystemErr(ex, msg); - } - } - } - COM: <s> log the message using the code servlet context </s> - diff --git a/funcom_test/37398925.txt b/funcom_test/37398925.txt deleted file mode 100644 index 32993779d638fa5b4eca293024d1c7f7345ef55f..0000000000000000000000000000000000000000 --- a/funcom_test/37398925.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Map getOrderedMap(String key) { - Map map = getMapInConfig(key); - if (map.isEmpty()) { - map = getParentConfig().getMapWithContext(this.resource, key); - } - if (map.isEmpty()) { - map = this.parentLocale.getMap(key); - } - return map; - } - COM: <s> p gets an ordered map consisting of all entries beginning with the </s> - diff --git a/funcom_test/37398927.txt b/funcom_test/37398927.txt deleted file mode 100644 index 73a59ecad077389b0f927fdd4f2255e736bcf5d9..0000000000000000000000000000000000000000 --- a/funcom_test/37398927.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public String getLocalizedAttribute(String name, Locale locale) { - String defaultValue = Converter.convert(this.attributes.get(name)); - String key = this.name + "." + name; - Config config = PolymorphicConfig.getConfig(beanClass, locale); - return config.get(key, defaultValue); - } - COM: <s> get the localized value of the named attribute </s> - diff --git a/funcom_test/37398955.txt b/funcom_test/37398955.txt deleted file mode 100644 index e166ad36f98f052df5dcb3d6fc160a363e48ce5e..0000000000000000000000000000000000000000 --- a/funcom_test/37398955.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getRawValue(String key) { - String value = (String) data.get(key); - if (value == null) { - value = getParentConfig().getWithContext(this.resource, key); - } - if (value == null) { - value = this.parentLocale.getRawValue(key); - } - return value; - } - COM: <s> get raw data value </s> - diff --git a/funcom_test/37398967.txt b/funcom_test/37398967.txt deleted file mode 100644 index 8682c9abd1d7132ab873e384b2cbc66eb03d91b3..0000000000000000000000000000000000000000 --- a/funcom_test/37398967.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void printTextareaTag() throws IOException, JspException { - JspWriter out = pageContext.getOut(); - out.print("<textarea name='"); - out.print(getName()); - out.print("'"); - printAttributes(); - out.print(">"); - out.print(getFieldValue()); - out.print("</textarea>"); - } - COM: <s> print textarea field </s> - diff --git a/funcom_test/37399038.txt b/funcom_test/37399038.txt deleted file mode 100644 index 47fadcb262f06c46317f4ce4e989a693a27a0cf7..0000000000000000000000000000000000000000 --- a/funcom_test/37399038.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addItem(Long itemId) throws Exception { - if (isNew()) { - throw new IllegalStateException("Cannot add line items to unsaved order."); - } - LineItem lineItem = new LineItem(this.orderId, itemId, 1); - lineItem.save(); - if (lineItems != null) { - lineItems.add(lineItem); - } - } - COM: <s> add one item to order </s> - diff --git a/funcom_test/37403681.txt b/funcom_test/37403681.txt deleted file mode 100644 index cbb9113a92ff3953c1e66da7c587cc8431fc20cf..0000000000000000000000000000000000000000 --- a/funcom_test/37403681.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void calculateState() { - try { - ByteArrayOutputStream bos; - ObjectOutputStream oos = null; - - bos = new ByteArrayOutputStream(); - oos = new ObjectOutputStream(bos); - - - // To prevent the current byteArray from being bundled in the packet: - byteArray = null; - oos.writeObject(this); - - // Now make the new bytearray. - byteArray = bos.toByteArray(); - - oos.close(); - bos.close(); - - } catch (IOException e) { - e.printStackTrace(); - } - - } - COM: <s> makes bytearray of the current serverstate </s> - diff --git a/funcom_test/37403696.txt b/funcom_test/37403696.txt deleted file mode 100644 index 32f7ec5d50c35fc2c4c181b988b5465485ad2a5b..0000000000000000000000000000000000000000 --- a/funcom_test/37403696.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void run() { - - // Initialize a new thread for every incoming TCP/IP - // connection: - try { - while (listening) - new NetworkServerLogon(logonSocket.accept(), - game).start(); - // Finalize: - logonSocket.close(); - } - catch (java.io.IOException e) - { - System.out.println("error creating logon thread for a client"); - System.exit(-1); - } - } - COM: <s> starts the listening thread </s> - diff --git a/funcom_test/37403716.txt b/funcom_test/37403716.txt deleted file mode 100644 index 6c1171a754ad2c52a741f6ab836c698d31b571fc..0000000000000000000000000000000000000000 --- a/funcom_test/37403716.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void playSound(File currentFile, double volume, double pan, double sampleRate) { - //load file - soundLoad(currentFile); - // Set Volume - setVolume(clip, volume); - // Set Pan - setPan(clip, pan); - // Set Pitch - setPitch(clip, sampleRate); - if (clip == null) return; - // Start playing - clip.start(); - } - COM: <s> method for playing a sound </s> - diff --git a/funcom_test/37560632.txt b/funcom_test/37560632.txt deleted file mode 100644 index 7efb0373356875c80611c9ad263d1012154c98e9..0000000000000000000000000000000000000000 --- a/funcom_test/37560632.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private boolean isInGrip(Point point) { - Rectangle gripRect = new Rectangle(); - int gripWidth = getGripWidth(); - int x = getComponentOrientation().isLeftToRight() ? 0 : getWidth() - gripWidth; - gripRect.setBounds(x, 0, gripWidth, getHeight()); - return gripRect.contains(point); - } - COM: <s> indicate if the specified point is located in the grip of the toolbar </s> - diff --git a/funcom_test/37561877.txt b/funcom_test/37561877.txt deleted file mode 100644 index 6e04cddd456e58ae788473efd6706906d60fd8a4..0000000000000000000000000000000000000000 --- a/funcom_test/37561877.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object nativeToJava(TransferData transferData){ - String s = (String)super.nativeToJava(transferData); - if(s.endsWith("\n")) { - s = s.substring(0, s.length() - 1); - } - if(s.endsWith("\r")) { - s = s.substring(0, s.length() - 1); - } - return new String[] {s, null}; -} - COM: <s> this implementation of code native to java code converts a platform specific </s> - diff --git a/funcom_test/37561997.txt b/funcom_test/37561997.txt deleted file mode 100644 index 9effc446f4aa8eccc4dee6355393f1df99fbe7be..0000000000000000000000000000000000000000 --- a/funcom_test/37561997.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected Object nativeToJava(TransferData transferData){ - if (!isSupportedType(transferData) || transferData.transferable == null) return null; - try { - return transferData.transferable.getTransferData(getDataFlavor()); - } catch(UnsupportedFlavorException e) { - } catch(IOException e) {} - return null; -} - COM: <s> converts a platform specific representation of data to a java representation </s> - diff --git a/funcom_test/37562175.txt b/funcom_test/37562175.txt deleted file mode 100644 index 46bfc5ed8375c7448b27b90f3dd0c7c8fb09ca6c..0000000000000000000000000000000000000000 --- a/funcom_test/37562175.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void deselect (int index) { - checkWidget (); - CCombo cCombo = (CCombo)handle; - if(index == cCombo.getSelectedIndex()) { - isAdjustingSelection = true; - cCombo.setSelectedIndex(-1); - isAdjustingSelection = false; - sendEvent (SWT.Modify); - } - // widget could be disposed at this point -} - COM: <s> deselects the item at the given zero relative index in the receivers </s> - diff --git a/funcom_test/37562186.txt b/funcom_test/37562186.txt deleted file mode 100644 index 0dd7563e5df6cf70f2fb72b7dbe810836224868b..0000000000000000000000000000000000000000 --- a/funcom_test/37562186.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Color getBackground () { - checkWidget (); - if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED); - java.awt.Color color = handle.getBackground(); - if(color == null) return parent.getBackground(); - return Color.swing_new(display, color); -} - COM: <s> returns the receivers background color </s> - diff --git a/funcom_test/37562189.txt b/funcom_test/37562189.txt deleted file mode 100644 index 141e70754d4db981b5789083617eaf3e85ff8194..0000000000000000000000000000000000000000 --- a/funcom_test/37562189.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getItem (int index) { - checkWidget (); - int count = getItemCount(); - if (!(0 <= index && index < count)) error (SWT.ERROR_CANNOT_GET_ITEM); - try { - return (String)((CCombo)handle).getItemAt(index); - } catch(Exception e) { - error (SWT.ERROR_INVALID_RANGE); - } - return ""; -} - COM: <s> returns the item at the given zero relative index in the </s> - diff --git a/funcom_test/37562212.txt b/funcom_test/37562212.txt deleted file mode 100644 index c10bab92911a1bfada9fbcde67890584ecbd6a5d..0000000000000000000000000000000000000000 --- a/funcom_test/37562212.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Point getSelection () { - checkWidget (); - if ((style & SWT.DROP_DOWN) != 0 && (style & SWT.READ_ONLY) != 0) { - return new Point (0, getText().length()); - } - CCombo cCombo = (CCombo)handle; - return new Point (cCombo.getEditorSelectionStart(), cCombo.getEditorSelectionEnd()); -} - COM: <s> returns a code point code whose x coordinate is the </s> - diff --git a/funcom_test/37562232.txt b/funcom_test/37562232.txt deleted file mode 100644 index 893823fcc73fa4d19b96e6c6bedd7ef3931e4058..0000000000000000000000000000000000000000 --- a/funcom_test/37562232.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Color getForeground () { - checkWidget (); - if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED); - java.awt.Color color = handle.getForeground(); - if(color == null) return parent.getForeground(); - return Color.swing_new(display, color); -} - COM: <s> returns the foreground color that the receiver will use to draw </s> - diff --git a/funcom_test/37562267.txt b/funcom_test/37562267.txt deleted file mode 100644 index 94e9df9178c59ea75c943f031c59c8b1568e90ad..0000000000000000000000000000000000000000 --- a/funcom_test/37562267.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void remove (int index) { - checkWidget (); - int count = getItemCount(); - if (!(0 <= index && index < count)) error (SWT.ERROR_ITEM_NOT_REMOVED); - isAdjustingSelection = true; - ((CCombo)handle).removeItemAt(index); - isAdjustingSelection = false; - sendEvent (SWT.Modify); -} - COM: <s> removes the item from the receivers list at the given </s> - diff --git a/funcom_test/37562275.txt b/funcom_test/37562275.txt deleted file mode 100644 index cd4adcaf6d53ed68ec0f5d0873cdbb8d01877ff0..0000000000000000000000000000000000000000 --- a/funcom_test/37562275.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void remove (int start, int end) { - checkWidget (); - if (start > end) return; - int count = getItemCount(); - if (!(0 <= start && start <= end && end < count)) { - error (SWT.ERROR_INVALID_RANGE); - } - isAdjustingSelection = true; - CCombo cCombo = (CCombo)handle; - for (int i=start; i<=end; i++) { - cCombo.removeItemAt(i); - } - isAdjustingSelection = false; -} - COM: <s> removes the items from the receivers list which are </s> - diff --git a/funcom_test/37562306.txt b/funcom_test/37562306.txt deleted file mode 100644 index 5e220b33de615906cc256682392ea2c7fee622c3..0000000000000000000000000000000000000000 --- a/funcom_test/37562306.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int indexOf (TreeItem item) { - //TODO - make public and add Tree.indexOf(TreeItem) and TreeItem.indexOf(TreeItem)? - checkWidget (); - if (item == null) error (SWT.ERROR_NULL_ARGUMENT); - if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); - return itemList == null? -1: itemList.indexOf(item); -} - COM: <s> searches the receivers list starting at the first item </s> - diff --git a/funcom_test/37562312.txt b/funcom_test/37562312.txt deleted file mode 100644 index 097cb3e409250568086d3258f86b065b9b652a79..0000000000000000000000000000000000000000 --- a/funcom_test/37562312.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void select (int index) { - checkWidget (); - int count = getItemCount(); - if (0 <= index && index < count) { - CCombo cCombo = (CCombo)handle; - if(index != cCombo.getSelectedIndex()) { - isAdjustingSelection = true; - cCombo.setSelectedIndex(index); - isAdjustingSelection = false; - sendEvent (SWT.Modify); - } - } -} - COM: <s> selects the item at the given zero relative index in the receivers </s> - diff --git a/funcom_test/37562335.txt b/funcom_test/37562335.txt deleted file mode 100644 index 40d48dd883b7b544db843c5342a5a6ed359efd04..0000000000000000000000000000000000000000 --- a/funcom_test/37562335.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setChecked (boolean checked) { - checkWidget (); - if ((parent.style & SWT.CHECK) == 0) return; - handle.setChecked(checked); - if ((parent.style & SWT.VIRTUAL) != 0) cached = true; - ((CTree)parent.handle).getModel().nodeChanged((TreeNode)handle); -} - COM: <s> sets the checked state of the receiver </s> - diff --git a/funcom_test/37562341.txt b/funcom_test/37562341.txt deleted file mode 100644 index dbde968e344407e9faf022992bf12fcb455b1647..0000000000000000000000000000000000000000 --- a/funcom_test/37562341.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setExpanded (boolean expanded) { - checkWidget (); - - CTree tree = ((CTree)parent.handle); - if(expanded) { - tree.expandPath(new TreePath(handle.getPath())); - } else { - tree.collapsePath(new TreePath(handle.getPath())); - } -} - COM: <s> sets the expanded state of the receiver </s> - diff --git a/funcom_test/37562345.txt b/funcom_test/37562345.txt deleted file mode 100644 index 5253d7821c33dfdf4114bb774ee3ecd595acbb24..0000000000000000000000000000000000000000 --- a/funcom_test/37562345.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setText (String string) { - checkWidget (); - if (string == null) error (SWT.ERROR_NULL_ARGUMENT); - if ((style & SWT.READ_ONLY) != 0) { - int index = indexOf (string); - if (index != -1) select (index); - return; - } - ((CCombo)handle).setEditorText(string); - sendEvent (SWT.Modify); - // widget could be disposed at this point -} - COM: <s> sets the contents of the receivers text field to the </s> - diff --git a/funcom_test/37562348.txt b/funcom_test/37562348.txt deleted file mode 100644 index 7a503944ee81c3a53bf2e0c873fff15a5a9be5aa..0000000000000000000000000000000000000000 --- a/funcom_test/37562348.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setFont (Font font){ - checkWidget (); - if (font != null && font.isDisposed ()) { - SWT.error (SWT.ERROR_INVALID_ARGUMENT); - } - handle.setFont(font == null? null: font.handle); - ((CTree)parent.handle).getModel().nodeChanged((TreeNode)handle); - parent.handle.repaint(); -} - COM: <s> sets the font that the receiver will use to paint textual information </s> - diff --git a/funcom_test/37562363.txt b/funcom_test/37562363.txt deleted file mode 100644 index 634366b766b5300be28f92280bf7e909f39be6a1..0000000000000000000000000000000000000000 --- a/funcom_test/37562363.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setForeground (Color color) { - checkWidget (); - if (color != null && color.isDisposed ()) { - SWT.error (SWT.ERROR_INVALID_ARGUMENT); - } - handle.setForeground(color == null? null: color.handle); - ((CTree)parent.handle).getModel().nodeChanged((TreeNode)handle); - parent.handle.repaint(); -} - COM: <s> sets the receivers foreground color to the color specified </s> - diff --git a/funcom_test/37562374.txt b/funcom_test/37562374.txt deleted file mode 100644 index 2851330a437652492629c4d046e081a16f369f62..0000000000000000000000000000000000000000 --- a/funcom_test/37562374.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setValues (int selection, int minimum, int maximum, int thumb, int increment, int pageIncrement) { - checkWidget(); - if (minimum < 0) return; - if (maximum < 0) return; - if (thumb < 1) return; - if (increment < 1) return; - if (pageIncrement < 1) return; - blockListener = true; - handle.setValues(selection, thumb, minimum, maximum); - blockListener = false; -} - COM: <s> sets the receivers selection minimum value maximum </s> - diff --git a/funcom_test/37562376.txt b/funcom_test/37562376.txt deleted file mode 100644 index 7aa554d336006c1d12a5a63b486bcc41b318ae9d..0000000000000000000000000000000000000000 --- a/funcom_test/37562376.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setGrayed (boolean grayed) { - checkWidget (); - if ((parent.style & SWT.CHECK) == 0) return; - handle.setGrayed(grayed); - if ((parent.style & SWT.VIRTUAL) != 0) cached = true; - ((CTree)parent.handle).getModel().nodeChanged((TreeNode)handle); -} - COM: <s> sets the grayed state of the checkbox for this item </s> - diff --git a/funcom_test/37562496.txt b/funcom_test/37562496.txt deleted file mode 100644 index 58f82659470aca500cb67c51a056b372bf66ad51..0000000000000000000000000000000000000000 --- a/funcom_test/37562496.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void deselect (int [] indices) { - checkWidget (); - if (indices == null) error (SWT.ERROR_NULL_ARGUMENT); - if (indices.length == 0) return; - DefaultListSelectionModel selectionModel = ((CTable)handle).getSelectionModel(); - isAdjustingSelection = true; - for(int i=0; i<indices.length; i++) { - int index = indices[i]; - selectionModel.removeSelectionInterval(index, index); - } - isAdjustingSelection = false; -} - COM: <s> deselects the items at the given zero relative indices in the receiver </s> - diff --git a/funcom_test/37562520.txt b/funcom_test/37562520.txt deleted file mode 100644 index 3bb130de4713203cfe0fc19372da5083da382c92..0000000000000000000000000000000000000000 --- a/funcom_test/37562520.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setMaximized (boolean maximized) { - checkWidget (); - CShell cShell = (CShell)handle; - if(maximized) { - cShell.setExtendedState(CShell.MAXIMIZED_BOTH); - } else { - cShell.setExtendedState(cShell.getExtendedState() & ~CShell.MAXIMIZED_BOTH); - } -} - COM: <s> sets the maximized state of the receiver </s> - diff --git a/funcom_test/37562546.txt b/funcom_test/37562546.txt deleted file mode 100644 index edb257b7056fbc96dd56e65f5b6dc2238e0d3007..0000000000000000000000000000000000000000 --- a/funcom_test/37562546.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public TableColumn getColumn (int index) { - checkWidget (); - if (columnList == null) error (SWT.ERROR_INVALID_RANGE); - int count = getColumnCount(); - if (!(0 <= index && index < count)) error (SWT.ERROR_INVALID_RANGE); - return (TableColumn)columnList.get(index); -} - COM: <s> returns the column at the given zero relative index in the </s> - diff --git a/funcom_test/37562566.txt b/funcom_test/37562566.txt deleted file mode 100644 index aac6ddf1421d64030c00e0f0a483fbfaf53bac54..0000000000000000000000000000000000000000 --- a/funcom_test/37562566.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setBackgroundMode (int mode) { - checkWidget (); - if(backgroundMode == mode) return; - backgroundMode = mode; - Control [] children = _getChildren (); - for (int i = 0; i < children.length; i++) { - children [i].updateBackgroundMode (); - } - handle.repaint(); -} - COM: <s> sets the background drawing mode to the argument which should </s> - diff --git a/funcom_test/37562648.txt b/funcom_test/37562648.txt deleted file mode 100644 index cce2aac825d6f50f82818d57fd6a3d916d829e6c..0000000000000000000000000000000000000000 --- a/funcom_test/37562648.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setImage (Image image) { - checkWidget (); - if ((style & SWT.SEPARATOR) != 0) return; - super.setImage (image); - ImageIcon icon = null; - if (image != null && image.handle != null) { - icon = new ImageIcon (image.handle); - } - ((AbstractButton) handle).setIcon (icon); -// parent.redraw (); -} - COM: <s> sets the image the receiver will display to the argument </s> - diff --git a/funcom_test/37562725.txt b/funcom_test/37562725.txt deleted file mode 100644 index b26a46158724e402afe844954f0055c84f0b04c6..0000000000000000000000000000000000000000 --- a/funcom_test/37562725.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getText (int index) { - checkWidget(); - if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED); - int count = Math.max (1, parent.getColumnCount ()); - if (0 > index || index > count - 1) return ""; - return handle.getTableItemObject(index).getText(); -} - COM: <s> returns the text stored at the given column index in the receiver </s> - diff --git a/funcom_test/37562742.txt b/funcom_test/37562742.txt deleted file mode 100644 index ccf318b4a28d514868a34b4ed916d904d5b52164..0000000000000000000000000000000000000000 --- a/funcom_test/37562742.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setChecked (boolean checked) { - checkWidget(); - if ((parent.style & SWT.CHECK) == 0) return; - handle.setChecked(checked); - if ((parent.style & SWT.VIRTUAL) != 0) cached = true; - // TODO: is it always 0 if columns are reordered? - ((CTable)parent.handle).getModel().fireTableCellUpdated(parent.indexOf(this), 0); -} - COM: <s> sets the checked state of the checkbox for this item </s> - diff --git a/funcom_test/37562743.txt b/funcom_test/37562743.txt deleted file mode 100644 index 1e91a11e66e3b3b216028aae55add11f54510ca8..0000000000000000000000000000000000000000 --- a/funcom_test/37562743.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public TreeItem getTopItem () { - checkWidget (); - int index = ((CTree)handle).getTopIndex(); - if(index < 0) return null; - return ((CTreeItem)((CTree)handle).getPathForRow(index).getLastPathComponent()).getTreeItem(); -} - COM: <s> returns the item which is currently at the top of the receiver </s> - diff --git a/funcom_test/37562812.txt b/funcom_test/37562812.txt deleted file mode 100644 index f31cda430bb4a63e66c4b2b0055f587709e86b79..0000000000000000000000000000000000000000 --- a/funcom_test/37562812.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getRowCount () { - checkWidget (); - Utils.notImplemented(); return 1; -// if ((style & SWT.VERTICAL) != 0) { -// return OS.SendMessage (handle, OS.TB_BUTTONCOUNT, 0, 0); -// } -// return OS.SendMessage (handle, OS.TB_GETROWS, 0, 0); -} - COM: <s> returns the number of rows in the receiver </s> - diff --git a/funcom_test/37562841.txt b/funcom_test/37562841.txt deleted file mode 100644 index c58137535487682bd9e46213e9a33a634c1246e5..0000000000000000000000000000000000000000 --- a/funcom_test/37562841.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setInsertMark (TreeItem item, boolean before) { - checkWidget (); - Utils.notImplemented(); -// int hItem = 0; -// if (item != null) { -// if (item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); -// hItem = item.handle; -// } -// OS.SendMessage (handle, OS.TVM_SETINSERTMARK, (before) ? 0 : 1, hItem); -} - COM: <s> display a mark indicating the point at which an item will be inserted </s> - diff --git a/funcom_test/37562850.txt b/funcom_test/37562850.txt deleted file mode 100644 index 3125207bcc62ea12c357b390e4b86a920b24d79c..0000000000000000000000000000000000000000 --- a/funcom_test/37562850.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void remove (int index) { - checkWidget (); - int count = getItemCount(); - if (!(0 <= index && index < count)) error (SWT.ERROR_INVALID_RANGE); - TableItem tableItem = (TableItem)itemList.get(index); - if(tableItem != null) { - tableItem.dispose(); - } else { - itemList.remove(index); - ((CTable)handle).removeItem(index); - } -} - COM: <s> removes the item from the receiver at the given </s> - diff --git a/funcom_test/37562854.txt b/funcom_test/37562854.txt deleted file mode 100644 index d550e252077feb3e7b4bc5f82eaf0e94b529c4a4..0000000000000000000000000000000000000000 --- a/funcom_test/37562854.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int indexOf (CoolItem item) { - checkWidget (); - if (item == null) error (SWT.ERROR_NULL_ARGUMENT); - if (item.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT); - Component[] components = handle.getComponents(); - for(int i=0; i<components.length; i++) { - if(components[i] == item.handle) { - return i; - } - } - return -1; -} - COM: <s> searches the receivers items in the order they are currently </s> - diff --git a/funcom_test/37562868.txt b/funcom_test/37562868.txt deleted file mode 100644 index b5d1775762162b4e79f64f68b28c62b70f84c2cf..0000000000000000000000000000000000000000 --- a/funcom_test/37562868.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setWrapIndices (int [] indices) { - checkWidget (); - if (indices == null) indices = new int [0]; - int count = getItemCount (); - for (int i=0; i<indices.length; i++) { - if (indices [i] < 0 || indices [i] >= count) { - error (SWT.ERROR_INVALID_RANGE); - } - } - setRedraw (false); - ((CCoolBar)handle).setWrappedIndices(indices); - setRedraw (true); -} - COM: <s> sets the indices of all item s in the receiver that will </s> - diff --git a/funcom_test/37562996.txt b/funcom_test/37562996.txt deleted file mode 100644 index 95bb3810c385a1e7668c4403861bdc58c1177097..0000000000000000000000000000000000000000 --- a/funcom_test/37562996.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setControl (Control control) { - checkWidget (); - if (control != null) { - if (control.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT); - if (control.parent != parent) error (SWT.ERROR_INVALID_PARENT); - } - if(this.control != null) { - handle.removeAll(); - } - this.control = control; - if(control != null) { - handle.add(control.handle); - } - handle.invalidate(); - handle.validate(); - handle.repaint(); -} - COM: <s> sets the control that is associated with the receiver </s> - diff --git a/funcom_test/37563003.txt b/funcom_test/37563003.txt deleted file mode 100644 index 910837ba0e9237959ecb5079f2bd2526f23548ff..0000000000000000000000000000000000000000 --- a/funcom_test/37563003.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setPreferredSize (int width, int height) { - checkWidget (); - if(Compatibility.IS_JAVA_5_OR_GREATER) { - handle.setPreferredSize(new Dimension(width, height)); - } else if(handle instanceof JComponent) { - ((JComponent)handle).setPreferredSize(new Dimension(width, height)); - } - handle.invalidate(); - handle.validate(); - handle.repaint(); -} - COM: <s> sets the receivers ideal size to the point specified by the arguments </s> - diff --git a/funcom_test/37563022.txt b/funcom_test/37563022.txt deleted file mode 100644 index d9a7ebe9f8236595725d726e0381688575450605..0000000000000000000000000000000000000000 --- a/funcom_test/37563022.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setMinimumSize (int width, int height) { - checkWidget (); - if(Compatibility.IS_JAVA_5_OR_GREATER) { - handle.setMinimumSize(new Dimension(width, height)); - } else if(handle instanceof JComponent) { - ((JComponent)handle).setMinimumSize(new Dimension(width, height)); - } -} - COM: <s> sets the minimum size that the cool item can be resized to </s> - diff --git a/funcom_test/37563026.txt b/funcom_test/37563026.txt deleted file mode 100644 index b46af416c58a6c22f2ae5911882728a04662b392..0000000000000000000000000000000000000000 --- a/funcom_test/37563026.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setTopItem (TreeItem item) { - checkWidget (); - if (item == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); - if (item.isDisposed ()) SWT.error (SWT.ERROR_INVALID_ARGUMENT); - int row = ((CTree)handle).getRowForPath(new TreePath(item.handle.getPath())); - if(row < 0) { - return; - } - ((CTree)handle).setTopIndex(row); -} - COM: <s> sets the item which is currently at the top of the receiver </s> - diff --git a/funcom_test/37563059.txt b/funcom_test/37563059.txt deleted file mode 100644 index 2b395819849fff70c6c58cff42d4a70b0ffab1b5..0000000000000000000000000000000000000000 --- a/funcom_test/37563059.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void showItem (TreeItem item) { - checkWidget (); - if (item == null) error (SWT.ERROR_NULL_ARGUMENT); - if (item.isDisposed ()) error(SWT.ERROR_INVALID_ARGUMENT); - int row = ((CTree)handle).getRowForPath(new TreePath(item.handle.getPath())); - if(row < 0) { - return; - } - ((CTree)handle).ensureRowVisible(row); -} - COM: <s> shows the item </s> - diff --git a/funcom_test/37563081.txt b/funcom_test/37563081.txt deleted file mode 100644 index bc132bdbdcd63e395fabd328a1577635a1937702..0000000000000000000000000000000000000000 --- a/funcom_test/37563081.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Point getCursorLocation () { - checkDevice (); - if(!Compatibility.IS_JAVA_5_OR_GREATER) { - java.awt.Point point = Utils.getTrakedMouseLocation(); - return new Point(point.x, point.y); - } - java.awt.Point point = MouseInfo.getPointerInfo().getLocation(); - return new Point(point.x, point.y); -} - COM: <s> returns the location of the on screen pointer relative </s> - diff --git a/funcom_test/37563082.txt b/funcom_test/37563082.txt deleted file mode 100644 index b06b8d1c9ab14a48f637aa3edcdcdfc3e47fe542..0000000000000000000000000000000000000000 --- a/funcom_test/37563082.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public int getBorderWidth () { - checkWidget (); - java.awt.Rectangle bounds = handle.getBounds(); - java.awt.Rectangle cBounds = ((CControl)handle).getClientArea().getBounds(); - return Math.max((bounds.width - cBounds.width + 1) / 2, (bounds.height - cBounds.height + 1) / 2); -} - COM: <s> returns the receivers border width </s> - diff --git a/funcom_test/37563083.txt b/funcom_test/37563083.txt deleted file mode 100644 index 96dd9eb802869947f73ece48f371dc6ec74d59f2..0000000000000000000000000000000000000000 --- a/funcom_test/37563083.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getWidth () { - checkWidget(); - return handle.getWidth(); -// int hwnd = parent.handle; -// int index = OS.SendMessage (hwnd, OS.TB_COMMANDTOINDEX, id, 0); -// RECT rect = new RECT (); -// OS.SendMessage (hwnd, OS.TB_GETITEMRECT, index, rect); -// return rect.right - rect.left; -} - COM: <s> gets the width of the receiver </s> - diff --git a/funcom_test/37563101.txt b/funcom_test/37563101.txt deleted file mode 100644 index a5e50a816a78379914455b57abf4c5607d173486..0000000000000000000000000000000000000000 --- a/funcom_test/37563101.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setHotImage (Image image) { - checkWidget(); - if ((style & SWT.SEPARATOR) != 0) return; - if (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); - hotImage = image; -// hotImage = Image.swing_new(getDisplay(), SWT.BITMAP, ); - ((CToolItem)handle).setRolloverIcon(image == null? null: new ImageIcon(image.handle)); -// updateImages (); -} - COM: <s> sets the receivers hot image to the argument which may be </s> - diff --git a/funcom_test/37563236.txt b/funcom_test/37563236.txt deleted file mode 100644 index d6f2006c32599234fd7615a8451c3168ba4bcaba..0000000000000000000000000000000000000000 --- a/funcom_test/37563236.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void insert (String string) { - checkWidget (); - if (string == null) error (SWT.ERROR_NULL_ARGUMENT); - CText cText = (CText)handle; -// if (hooks (SWT.Verify) || filters (SWT.Verify)) { -// string = verifyText (string, cText.getSelectionStart(), cText.getSelectionEnd(), null); -// if (string == null) return; -// } - cText.replaceSelection(string); -} - COM: <s> inserts a string </s> - diff --git a/funcom_test/37563328.txt b/funcom_test/37563328.txt deleted file mode 100644 index a0a1cca21da08aed8b7294d6af0230e5fb4276e2..0000000000000000000000000000000000000000 --- a/funcom_test/37563328.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public TextLayout (Device device) { - if (device == null) device = Device.getDevice(); - if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); - this.device = device; - wrapWidth = ascent = descent = -1; - lineSpacing = 0; - orientation = SWT.LEFT_TO_RIGHT; - styles = new StyleItem[2]; - styles[0] = new StyleItem(); - styles[1] = new StyleItem(); - text = ""; //$NON-NLS-1$ - if (device.tracking) device.new_Object(this); -} - COM: <s> constructs a new instance of this class on the given device </s> - diff --git a/funcom_test/37563332.txt b/funcom_test/37563332.txt deleted file mode 100644 index 2fcdf5e777822239451f3dc95b664a1fb2360f14..0000000000000000000000000000000000000000 --- a/funcom_test/37563332.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void add (int x, int y, int width, int height) { - if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - if (width < 0 || height < 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT); - handle.add(new Area(new java.awt.Rectangle(x, y, width, height))); -} - COM: <s> adds the given rectangle to the collection of polygons </s> - diff --git a/funcom_test/37563344.txt b/funcom_test/37563344.txt deleted file mode 100644 index 6b5b51c435ed17f7c7c663ddec1147b0d2008474..0000000000000000000000000000000000000000 --- a/funcom_test/37563344.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Point map (Control from, Control to, int x, int y) { - checkDevice (); - if (from != null && from.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT); - if (to != null && to.isDisposed()) error (SWT.ERROR_INVALID_ARGUMENT); - Rectangle r = map(from, to, x, y, 0, 0); - return new Point(r.x, r.y); -} - COM: <s> maps a point from one coordinate system to another </s> - diff --git a/funcom_test/37563349.txt b/funcom_test/37563349.txt deleted file mode 100644 index 5ec9defeba785229c82e7622cb1883b6723b0d3c..0000000000000000000000000000000000000000 --- a/funcom_test/37563349.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Rectangle getBounds() { - if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - java.awt.Rectangle bounds = handle.getBounds(); - return new Rectangle((int)bounds.getX(), (int)bounds.getY(), (int)bounds.getWidth(), (int)bounds.getHeight()); -} - COM: <s> returns a rectangle which represents the rectangular </s> - diff --git a/funcom_test/37563361.txt b/funcom_test/37563361.txt deleted file mode 100644 index 261103f247a0d040296c80cad4e88e54d07ec29e..0000000000000000000000000000000000000000 --- a/funcom_test/37563361.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void intersect (int x, int y, int width, int height) { - if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - if (width < 0 || height < 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT); - handle.intersect(new Area(new java.awt.Rectangle(x, y, width, height))); -} - COM: <s> intersects the given rectangle to the collection of polygons </s> - diff --git a/funcom_test/37563374.txt b/funcom_test/37563374.txt deleted file mode 100644 index df2474c6c806432f6561d04a820aa085bad46939..0000000000000000000000000000000000000000 --- a/funcom_test/37563374.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Transform (Device device, float m11, float m12, float m21, float m22, float dx, float dy) { - if (device == null) device = Device.getDevice(); - if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); - this.device = device; - handle = new AffineTransform(m11, m12, m21, m22, dx, dy); - if (handle == null) SWT.error(SWT.ERROR_NO_HANDLES); - if (device.tracking) device.new_Object(this); -} - COM: <s> constructs a new transform given all of the elements that represent the </s> - diff --git a/funcom_test/37563394.txt b/funcom_test/37563394.txt deleted file mode 100644 index 109d1837f877d1d7d99e67ba38c112f2a5d876d3..0000000000000000000000000000000000000000 --- a/funcom_test/37563394.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void subtract (int x, int y, int width, int height) { - if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - if (width < 0 || height < 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT); - handle.subtract(new Area(new java.awt.Rectangle(x, y, width, height))); -} - COM: <s> subtracts the given rectangle from the collection of polygons </s> - diff --git a/funcom_test/37563421.txt b/funcom_test/37563421.txt deleted file mode 100644 index 7f3085b3afaacb3e3e682e163d8fd7873839501d..0000000000000000000000000000000000000000 --- a/funcom_test/37563421.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addString(String string, float x, float y, org.eclipse.swt.graphics.Font font) { - if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - FontRenderContext frc = new FontRenderContext(null, true, true); - GlyphVector glyph = font.handle.createGlyphVector(frc, string); - LineMetrics lm = font.handle.getLineMetrics(string, frc); - handle.append(glyph.getOutline(x, y + lm.getAscent()), true); -} - COM: <s> adds to the receiver the pattern of glyphs generated by drawing </s> - diff --git a/funcom_test/37563862.txt b/funcom_test/37563862.txt deleted file mode 100644 index 1fedd8bbf8d809e5a27868cc2310035bba4bf1ff..0000000000000000000000000000000000000000 --- a/funcom_test/37563862.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void drawOval (int x, int y, int width, int height) { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - handle.drawOval(x, y, width, height); -// ensureAreaClean(x, y, width, height); -} - COM: <s> draws the outline of an oval using the foreground color </s> - diff --git a/funcom_test/37563973.txt b/funcom_test/37563973.txt deleted file mode 100644 index 2b67c92dc317aa7968865f439429fb38e463e504..0000000000000000000000000000000000000000 --- a/funcom_test/37563973.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void redraw () { - checkWidget (); - handle.repaint(); -// if (!OS.IsWindowVisible (handle)) return; -// if (OS.IsWinCE) { -// OS.InvalidateRect (handle, null, true); -// } else { -// int flags = OS.RDW_ERASE | OS.RDW_FRAME | OS.RDW_INVALIDATE; -// OS.RedrawWindow (handle, null, 0, flags); -// } -} - COM: <s> causes the entire bounds of the receiver to be marked </s> - diff --git a/funcom_test/37564219.txt b/funcom_test/37564219.txt deleted file mode 100644 index 499de3a2890ced281af47671d3ab03054f720c84..0000000000000000000000000000000000000000 --- a/funcom_test/37564219.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void drawRectangle (int x, int y, int width, int height) { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - handle.drawRect(x, y, width, height); -// ensureAreaClean(x, y, width, height); -} - COM: <s> draws the outline of the rectangle specified by the arguments </s> - diff --git a/funcom_test/37564794.txt b/funcom_test/37564794.txt deleted file mode 100644 index bc80557f2540eac53267505b3fcc299851d28dec..0000000000000000000000000000000000000000 --- a/funcom_test/37564794.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setCapture (boolean capture) { - checkWidget (); - if (capture) { - Utils.capturedControl = this; - } else { - if (Utils.capturedControl == this) { - Utils.capturedControl = null; - } - } -// if (capture) { -// OS.SetCapture (handle); -// } else { -// if (OS.GetCapture () == handle) { -// OS.ReleaseCapture (); -// } -// } -} - COM: <s> if the argument is code true code causes the receiver to have </s> - diff --git a/funcom_test/37564877.txt b/funcom_test/37564877.txt deleted file mode 100644 index bbc113b87754aaa1a0717c9bd01fe06efbf8ea9e..0000000000000000000000000000000000000000 --- a/funcom_test/37564877.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void fillRectangle (Rectangle rect) { - if (rect == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); - java.awt.Color oldColor = handle.getColor(); - handle.setColor(data.background); - fillRectangle (rect.x, rect.y, rect.width, rect.height); - handle.setColor(oldColor); -} - COM: <s> fills the interior of the specified rectangle using the receivers </s> - diff --git a/funcom_test/37565154.txt b/funcom_test/37565154.txt deleted file mode 100644 index 1f2c59710f6545c30dfc73c0611fe11138cbe48c..0000000000000000000000000000000000000000 --- a/funcom_test/37565154.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getAntialias() { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - Object value = handle.getRenderingHint(RenderingHints.KEY_ANTIALIASING); - if(value == RenderingHints.VALUE_ANTIALIAS_OFF) return SWT.OFF; - if(value == RenderingHints.VALUE_ANTIALIAS_ON) return SWT.ON; - return SWT.DEFAULT; -} - COM: <s> returns the receivers anti aliasing setting value which will be </s> - diff --git a/funcom_test/37565245.txt b/funcom_test/37565245.txt deleted file mode 100644 index 2dd975f44097426d1096e42d262046861e8bfb39..0000000000000000000000000000000000000000 --- a/funcom_test/37565245.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Color getBackground() { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - return Color.swing_new(data.device, handle.getBackground()); -// int color = OS.GetBkColor(handle); -// if (color == OS.CLR_INVALID) { -// color = OS.GetSysColor(OS.COLOR_WINDOW); -// } -// return Color.win32_new(data.device, color); -} - COM: <s> returns the background color </s> - diff --git a/funcom_test/37565852.txt b/funcom_test/37565852.txt deleted file mode 100644 index 927eaaf95a00d27ae4e71ce40bb0e32ddff02c75..0000000000000000000000000000000000000000 --- a/funcom_test/37565852.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Point toControl (int x, int y) { - checkWidget (); - java.awt.Point point = new java.awt.Point(x, y); - Container container = handle; - if(container instanceof RootPaneContainer) { - container = ((RootPaneContainer)container).getContentPane(); - } - SwingUtilities.convertPointFromScreen(point, container); - return new Point(point.x, point.y); -} - COM: <s> returns a point which is the result of converting the </s> - diff --git a/funcom_test/37566024.txt b/funcom_test/37566024.txt deleted file mode 100644 index 4f948403365ae6fa497d791c1ef5f5ff1f4c5931..0000000000000000000000000000000000000000 --- a/funcom_test/37566024.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getLineCap() { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - switch(getCurrentBasicStroke().getEndCap()) { - case BasicStroke.CAP_ROUND: - return SWT.CAP_ROUND; - case BasicStroke.CAP_SQUARE: - return SWT.CAP_SQUARE; - } - return SWT.CAP_FLAT; -} - COM: <s> returns the receivers line cap style which will be one </s> - diff --git a/funcom_test/37566059.txt b/funcom_test/37566059.txt deleted file mode 100644 index 931548764c4143ee09d62d0465d7279584e6f408..0000000000000000000000000000000000000000 --- a/funcom_test/37566059.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getLineJoin() { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - switch(getCurrentBasicStroke().getLineJoin()) { - case BasicStroke.JOIN_BEVEL: - return SWT.JOIN_BEVEL; - case BasicStroke.JOIN_ROUND: - return SWT.JOIN_ROUND; - } - return SWT.JOIN_MITER; -} - COM: <s> returns the receivers line join style which will be one </s> - diff --git a/funcom_test/37566215.txt b/funcom_test/37566215.txt deleted file mode 100644 index 5a811872eaffda1aa02c6b510921f6b249d73c4c..0000000000000000000000000000000000000000 --- a/funcom_test/37566215.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int getTextAntialias() { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - Object value = handle.getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING); - if(value == RenderingHints.VALUE_TEXT_ANTIALIAS_OFF) return SWT.OFF; - if(value == RenderingHints.VALUE_TEXT_ANTIALIAS_ON) return SWT.ON; - return SWT.DEFAULT; -} - COM: <s> returns the receivers text drawing anti aliasing setting value </s> - diff --git a/funcom_test/37569400.txt b/funcom_test/37569400.txt deleted file mode 100644 index 2ae12aa2872e1cae1a2928dc2b8c9b6e7e73106f..0000000000000000000000000000000000000000 --- a/funcom_test/37569400.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setLineWidth(int lineWidth) { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - BasicStroke stroke = getCurrentBasicStroke(); - handle.setStroke(new BasicStroke(lineWidth, stroke.getEndCap(), stroke.getLineJoin(), stroke.getMiterLimit(), stroke.getDashArray(), stroke.getDashPhase())); -} - COM: <s> sets the width that will be used when drawing lines </s> - diff --git a/funcom_test/37569567.txt b/funcom_test/37569567.txt deleted file mode 100644 index 94f3d5d6afd4a62fd2f0eee5c6a643e3f66429ba..0000000000000000000000000000000000000000 --- a/funcom_test/37569567.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setXORMode(boolean xor) { - if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); - if(xor) { - // need to check if "handle.setXORMode(getBackground().handle)" must be called any time the background color changes. - handle.setXORMode(getBackground().handle); - } else { - handle.setPaintMode(); - } - isXORMode = xor; -} - COM: <s> if the argument is code true code puts the receiver </s> - diff --git a/funcom_test/37723362.txt b/funcom_test/37723362.txt deleted file mode 100644 index fc5d8b95eba0cc0f5311faaa6af2105c1a3e5c6b..0000000000000000000000000000000000000000 --- a/funcom_test/37723362.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean isCMFMethod(Method method) { - String name = method.getName(); - if (name.startsWith("is")) { - return fields.containsKey(firstCharLower(name.substring(2))); - } else if (name.startsWith("get")) { - return fields.containsKey(firstCharLower(name.substring(3))); - } else if (name.startsWith("set")) { - return fields.containsKey(firstCharLower(name.substring(3))); - } - return false; - } - COM: <s> determines wether the method corresponds to a container managed field </s> - diff --git a/funcom_test/37723409.txt b/funcom_test/37723409.txt deleted file mode 100644 index 5af4c9f7190adca7ecb9be844627f4d5a3adf010..0000000000000000000000000000000000000000 --- a/funcom_test/37723409.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void extract(byte[] buffer, File dir, JarInputStream in) throws IOException { - JarEntry entry = null; - while ((entry = in.getNextJarEntry()) != null) { - File file = new File(dir, entry.getName()); - if (entry.isDirectory()) - file.mkdirs(); - else - writeFile(buffer, in, file); - } - } - COM: <s> extracts a jar input stream from the jar file </s> - diff --git a/funcom_test/37760449.txt b/funcom_test/37760449.txt deleted file mode 100644 index af31ae690a70fdf5dd41317f100a56a52a53328f..0000000000000000000000000000000000000000 --- a/funcom_test/37760449.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Dependency extractDependency(File referencedPom) throws Exception { - Project referencedProject = read(referencedPom); - Dependency dependency = new Dependency(); - dependency.setGroupId(referencedProject.getGroupId()); - dependency.setArtifactId(referencedProject.getArtifactId()); - dependency.setVersion(referencedProject.getCurrentVersion()); - //dependency.setArtifact(referencedPom.getParent()); - //dependency.setJar(referencedPom.getParent()); - return dependency; - } - COM: <s> return the dependency of the artifact describeed by referenced pom </s> - diff --git a/funcom_test/37760975.txt b/funcom_test/37760975.txt deleted file mode 100644 index fdf3ffe38c8b6a963656fc7000e27bc20a76d0b8..0000000000000000000000000000000000000000 --- a/funcom_test/37760975.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void writeData(byte b[]) throws IOException { - - RandomAccessFile raf; - int skip_head; - - - skip_head=(int)vox_offset; - - - // can't write random access compressed yet - if (ds_datname.endsWith(".gz")) - throw new IOException("Sorry, can't write to compressed image data file: "+ds_datname); - - - // write data blob - raf = new RandomAccessFile(ds_datname, "rwd"); - raf.seek(skip_head); - raf.write(b,0,b.length); - raf.close(); - - return; - } - COM: <s> write a byte array of data to disk starting at vox offset </s> - diff --git a/funcom_test/37762054.txt b/funcom_test/37762054.txt deleted file mode 100644 index c5eca9cd6ce8eb1bd190e866ddcf7c74606b249d..0000000000000000000000000000000000000000 --- a/funcom_test/37762054.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void addRange(TextPresentation presentation, int offset, int length, TextAttribute attr) { - if (attr != null) { - presentation.addStyleRange( - new StyleRange(offset, length, attr.getForeground(), attr.getBackground(), attr.getStyle()) - ); - } - } - COM: <s> adds style information to the given text presentation </s> - diff --git a/funcom_test/37762493.txt b/funcom_test/37762493.txt deleted file mode 100644 index ac8287157976981a60cb1d4267c395a7f35d743f..0000000000000000000000000000000000000000 --- a/funcom_test/37762493.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void moveUpTarget(int index) { - Object target= targets.get(index); - if (index == 0 || target == null) { - return; - } - targets.set(index, targets.get(index - 1)); - targets.set(index - 1, target); - log.debug("New ordering"); - for (int i = 0; i < targets.size(); i++) { - log.debug("\t" + i + targets.get(i)); - } - } - COM: <s> moves the given target up in the list of active targets </s> - diff --git a/funcom_test/37824048.txt b/funcom_test/37824048.txt deleted file mode 100644 index f3a623d2d5db341523969ada4f2715d0c706f097..0000000000000000000000000000000000000000 --- a/funcom_test/37824048.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void paint(Graphics g) { - super.paint(g); - Dimension dimension = getSize(); - g.drawImage(m_prImage, 0, 0, null); - log.log(Level.FINEST,"SplashWindow8"); - g.drawRect(0, 0, dimension.width - 1, dimension.height - 1); - } - COM: <s> gets called to paint the frame </s> - diff --git a/funcom_test/37824188.txt b/funcom_test/37824188.txt deleted file mode 100644 index 540050c4c6ca23bae75be5220e066f0767825a91..0000000000000000000000000000000000000000 --- a/funcom_test/37824188.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void notifyListeners() { - log.log(Level.FINEST,"DatabaseAbstr.notifyListeners()"); - Enumeration enum = listeners.elements(); - DatabaseListener thisListener = null; - while( enum.hasMoreElements() ) { - thisListener = (DatabaseListener)enum.nextElement(); - thisListener.databaseChanged( m_prDatabaseState ); - } - - } - COM: <s> notifies all of the objects interested in the database state </s> - diff --git a/funcom_test/37824193.txt b/funcom_test/37824193.txt deleted file mode 100644 index b4d0311b63cd7765fed4fe8108c9eee6b5e9675e..0000000000000000000000000000000000000000 --- a/funcom_test/37824193.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void setDatabaseState( int dbState ) { - log.log(Level.FINEST,"DatabaseAbstr.setDatabaseState("+new Integer(dbState).toString()+")"); - if( m_prDatabaseState != dbState ) { - m_prDatabaseState = dbState; - notifyListeners(); - } - } - COM: <s> sets the database state to the given state </s> - diff --git a/funcom_test/37824224.txt b/funcom_test/37824224.txt deleted file mode 100644 index ec0f366666d9b3d1c2ae33cb08c9f41f1d8ec94d..0000000000000000000000000000000000000000 --- a/funcom_test/37824224.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void notifyProgressListeners() { - Enumeration enum = m_prProgressListeners.elements(); - ProgressListener thisListener = null; - while( enum.hasMoreElements() ) { - thisListener = (ProgressListener)enum.nextElement(); - thisListener.progressStateChanged( m_prUpgradeProgress ); - } - } // notifyProgressListeners() - COM: <s> notify all of the progress listeners of a state change </s> - diff --git a/funcom_test/37824248.txt b/funcom_test/37824248.txt deleted file mode 100644 index 9ca16832ad805971c9376ef04e38f7847a665819..0000000000000000000000000000000000000000 --- a/funcom_test/37824248.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void quickStart() { - // Test the quick start the database. - m_prDatabase.quickStart(); - dbState = m_prDatabase.getDatabaseState(); - assertTrue("Testing database is open after quickStart.",dbState == Database.DATABASE_OPEN); - - assertTrue("Testing state retrieved from listener.",listenerDBState == Database.DATABASE_OPEN); - } - COM: <s> test the oracle database quick start functionality </s> - diff --git a/funcom_test/37824251.txt b/funcom_test/37824251.txt deleted file mode 100644 index 504c224adc34cc4f330e16954a01856b40072fa0..0000000000000000000000000000000000000000 --- a/funcom_test/37824251.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void quickStop() { - // Test the quick shutdown the database. - m_prDatabase.quickShutdown(); - dbState = m_prDatabase.getDatabaseState(); - assertTrue("Testing database is closed after quickStop.",dbState == Database.DATABASE_CLOSED); - - assertTrue("Testing state retrieved from listener.",listenerDBState == Database.DATABASE_CLOSED); - } - COM: <s> test the oracle database quick stop functionality </s> - diff --git a/funcom_test/37824254.txt b/funcom_test/37824254.txt deleted file mode 100644 index 18459bdbae793be179b428bcd1e7bd29a7b4b6b1..0000000000000000000000000000000000000000 --- a/funcom_test/37824254.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void startDatabase() { - m_prDatabase.startDatabase(); - dbState = m_prDatabase.getDatabaseState(); - assertTrue("Testing database is open after startDatabase().",dbState == Database.DATABASE_OPEN); - - assertTrue("Testing state retrieved from listener.",listenerDBState == Database.DATABASE_OPEN); - - } - COM: <s> test the oracle database start database functionality </s> - diff --git a/funcom_test/37824256.txt b/funcom_test/37824256.txt deleted file mode 100644 index 8cdeea7c17deeb151637061375224838363a879a..0000000000000000000000000000000000000000 --- a/funcom_test/37824256.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void shutdownDatabase() { - m_prDatabase.shutdownDatabase(); - dbState = m_prDatabase.getDatabaseState(); - assertTrue("Testing database is closed after shutdownDatabase().",dbState == Database.DATABASE_CLOSED); - - assertTrue("Testing state retrieved from listener.",listenerDBState == Database.DATABASE_CLOSED); - } - COM: <s> test the oracle database shutdown database functionality </s> - diff --git a/funcom_test/37824382.txt b/funcom_test/37824382.txt deleted file mode 100644 index 8e87eca54f61b6bf7f568df23fa4c583c2e2dac8..0000000000000000000000000000000000000000 --- a/funcom_test/37824382.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void deleteService() { - int dbState = whatIsTheState(); - if( dbState == DATABASE_CLOSED ) { - String output = runCommand("oradim -delete -sid famous"); // TODO: SID should be dynamic. - System.out.println("deleteServiceOutput:"+output ); - } - } - COM: <s> deletes the installed oracle service </s> - diff --git a/funcom_test/37824394.txt b/funcom_test/37824394.txt deleted file mode 100644 index c8307c8b901322f10afb68f5ded4ed8e9e0ef7d8..0000000000000000000000000000000000000000 --- a/funcom_test/37824394.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void createService() { - int dbState = whatIsTheState(); - if( dbState == DATABASE_CLOSED ) { - String output = runCommand("oradim -new -sid famous -intpwd dwarf23 -pfile d:/famousdb/database/initfamous.ora"); // TODO: dynamic - System.out.println("createServiceOutput:"+output ); - - } - } - COM: <s> creates a service for oracle to run under </s> - diff --git a/funcom_test/37824405.txt b/funcom_test/37824405.txt deleted file mode 100644 index a9d8ae0e94c154942f07c5d765b75acb30ccfbdd..0000000000000000000000000000000000000000 --- a/funcom_test/37824405.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void write64ENDCENLOC( ) throws IOException { - log.log(Level.FINEST, "Zip64OutputStream.write64ENDCENLOC()"); - // Zip64 end of central directory locator signature. (0x07064b50) - writeInt(0x7064b50L); - // Number of the disk with the start of the zip64 end of central directory. - writeInt(1); - // Relative offset of the zip64 end of central directory. - writeLong(1L); - // Total number of disks - writeInt(1); - - } - COM: <s> zip 64 end of central directory locator </s> - diff --git a/funcom_test/37849990.txt b/funcom_test/37849990.txt deleted file mode 100644 index b6edc4ae74b885a6a3ddc17df73edcafc2cd1fd6..0000000000000000000000000000000000000000 --- a/funcom_test/37849990.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Piece getPieceAt(Coord coord) { - if (coord.getX() < this.BOARD_SIDE - && coord.getY() < this.BOARD_SIDE - && coord.getX() >= 0 - && coord.getY() >= 0) { - return board[coord.getX()][coord.getY()]; - } - - /*Return a volcano if we are trying to look at a piece off the board.*/ - return new Piece(coord); - } - COM: <s> returns the piece at a given coordinate </s> - diff --git a/funcom_test/37849994.txt b/funcom_test/37849994.txt deleted file mode 100644 index cacb83247ee8c762a24ad66560893e1e468c3f77..0000000000000000000000000000000000000000 --- a/funcom_test/37849994.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void listIsClicked() { - int index = gameList.getSelectedIndex(); - gameList.clearSelection(); - try { - if (gameArray[index] != null) { - - /* Remove game from list if it's over. */ - if (!gameArray[index].shouldRemove()) { - gameArray[index].drawBoard(); - } else { - gameArray[index] = null; - } - } - - /*Don't do anything if you click outside of the list.*/ - } catch (ArrayIndexOutOfBoundsException e) { } - } - COM: <s> handles clicks on the list </s> - diff --git a/funcom_test/37850079.txt b/funcom_test/37850079.txt deleted file mode 100644 index 79f7d534f2cfcfff6adc7fc59ef13706e38d004b..0000000000000000000000000000000000000000 --- a/funcom_test/37850079.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void placeVulcanos() { - - Coord[] vulcanoList = board.getVulcanoList(); - JPanel panel; - Component[] comps; - - for (int i = 0; i < vulcanoList.length; i++) { - panel = gfxBoard[vulcanoList[i].getX()][vulcanoList[i].getY()]; - comps = panel.getComponents(); - ((JLabel) comps[0]).setIcon(generateIcon(Piece.VULCANO, true)); - board.putPiece(new Piece(vulcanoList[i])); - } - } - COM: <s> places the vulcanos on the board </s> - diff --git a/funcom_test/38184386.txt b/funcom_test/38184386.txt deleted file mode 100644 index 448ca9f2cf342817e2b7c511ba607facbfb5c17d..0000000000000000000000000000000000000000 --- a/funcom_test/38184386.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void testInitList() { - acList.add(new AircraftInfo("Cessna 152",new Speed(90,SpeedUnit.KNOTS))); - acList.add(new AircraftInfo("Cessna 172",new Speed(110,SpeedUnit.KNOTS))); - acList.add(new AircraftInfo("Boeing 747",new Speed(260,SpeedUnit.KNOTS))); - } - COM: <s> use testing data to fill the database </s> - diff --git a/funcom_test/38184409.txt b/funcom_test/38184409.txt deleted file mode 100644 index 1916e08566d6c37ff2360d4ae003648ccced011b..0000000000000000000000000000000000000000 --- a/funcom_test/38184409.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void restoreSettings() { - log.config("restoring settings"); - - wpDatabaseFileName = prefs.get(wpDatabaseFileNameKey,""); - acDatabaseFileName = prefs.get(acDatabaseFileNameKey,""); - - log.log(Level.FINE,"wpDatabaseFileName = " + wpDatabaseFileName); - log.log(Level.FINE,"acDatabaseFileName = " + acDatabaseFileName); - } - COM: <s> restore settings from the java preferences database </s> - diff --git a/funcom_test/38184451.txt b/funcom_test/38184451.txt deleted file mode 100644 index e701c86c9ffad5a2138f04c35a79eb6b9fb449c1..0000000000000000000000000000000000000000 --- a/funcom_test/38184451.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - if (EDIT.equals(e.getActionCommand())) { - //The user has clicked the cell, so - //bring up the dialog. - wpListDlg.setVisible(true); - - //Make the renderer reappear. - fireEditingStopped(); - } - else if (wpListDlg.isOkEvent(e)) { - stopCellEditing(); - } - else if (wpListDlg.isCancelEvent(e)) { - cancelCellEditing(); - } - } - COM: <s> editing action performed </s> - diff --git a/funcom_test/38184461.txt b/funcom_test/38184461.txt deleted file mode 100644 index b45657c3fcafafe7f6a3970f938d924f05626d22..0000000000000000000000000000000000000000 --- a/funcom_test/38184461.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Wind parseEditString() { - //TODO implement error checking - Wind w = new Wind(); - // extract direction - String text = edit.getText(); - String directionStr = text.substring(0,text.indexOf('/')); - String speedStr = text.substring(text.indexOf('/')+1); - double direction = Double.parseDouble(directionStr); - double speed = Double.parseDouble(speedStr); - w.setDirection(new Angle(Math.toRadians(direction))); - w.setVelocity(new Speed(speed,SpeedUnit.KNOTS)); - return w; - } - COM: <s> parse the edited wind string </s> - diff --git a/funcom_test/38184555.txt b/funcom_test/38184555.txt deleted file mode 100644 index cf66103d3b3b8d3c31f9124401a8480d064a273b..0000000000000000000000000000000000000000 --- a/funcom_test/38184555.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void wndPreferences() { - log.entering("MainWindow","wndPreferences"); - PropertiesDlg propDlg = new PropertiesDlg(this); - propDlg.setModal(true); - propDlg.setVisible(true); - log.exiting("MainWindow","wndPreferences"); - } - COM: <s> window preferences menu action </s> - diff --git a/funcom_test/38184596.txt b/funcom_test/38184596.txt deleted file mode 100644 index e4deaaf81b0942e9bc49129d9f9f8e21383b6438..0000000000000000000000000000000000000000 --- a/funcom_test/38184596.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addSegmentAt(int index,RouteSegment segment) { - if (index == 0) { - firstSegment = segment; - } else { - RouteSegment prevSeg = getSegmentAt(index-1); - RouteSegment oldNext = prevSeg.getNext(); - prevSeg.appendNext(segment); - segment.appendNext(oldNext); - } - fireRouteChanged(); - } - COM: <s> append route waypoint at the spec position </s> - diff --git a/funcom_test/38184599.txt b/funcom_test/38184599.txt deleted file mode 100644 index d5da7ed3e4dd3e3586bafd15ffa407146a428f9f..0000000000000000000000000000000000000000 --- a/funcom_test/38184599.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeSegmentAt(int index) { - if (index == 0) { - firstSegment = null; - } else { - RouteSegment prevSeg = getSegmentAt(index-1); - RouteSegment thisSeg = prevSeg.getNext(); - prevSeg.appendNext(thisSeg.getNext()); - } - fireRouteChanged(); - } - COM: <s> remove waypoint from the route </s> - diff --git a/funcom_test/38184604.txt b/funcom_test/38184604.txt deleted file mode 100644 index da826109c3f634d3d3417cde61e7be9aa6058567..0000000000000000000000000000000000000000 --- a/funcom_test/38184604.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - String res = new String(); - res = "Name:\t" + name + "\n"; - res += "Elevation:\t" + new Altitude(ele).getAltitudeFtStr() + "ft\n"; - res += "Type:\t" + type + "\n\n"; - res += "Comment:\n" + comment; - return res; - } - COM: <s> return waypoint information as a string </s> - diff --git a/funcom_test/38184633.txt b/funcom_test/38184633.txt deleted file mode 100644 index f6edc8dfd516aa37b658d2e48f39a33943590f08..0000000000000000000000000000000000000000 --- a/funcom_test/38184633.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getStringMS() { - if (getHours() > 0) { - return getHours() + ":" + timeStr(getMinutes()) + ":" + timeStr(getSeconds()); - } else { - return timeStr(getMinutes()) + ":" + timeStr(getSeconds()); - } - } - COM: <s> get time as min sec </s> - diff --git a/funcom_test/38188650.txt b/funcom_test/38188650.txt deleted file mode 100644 index e8b88a54de1c1f5157b379677c1863cb4513e932..0000000000000000000000000000000000000000 --- a/funcom_test/38188650.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void zzScanError(int errorCode) { - String message; - try { - message = ZZ_ERROR_MSG[errorCode]; - } - catch (ArrayIndexOutOfBoundsException e) { - LOG.debug(e.getMessage()); - message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; - } - - throw new Error(message); - } - COM: <s> reports an error that occured while scanning </s> - diff --git a/funcom_test/38220868.txt b/funcom_test/38220868.txt deleted file mode 100644 index a478d0b2bbb406d1dcbb6301603e38d0d507b5ee..0000000000000000000000000000000000000000 --- a/funcom_test/38220868.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - String cmd = e.getActionCommand(); - if (cmd.equals("About") || cmd.equals("ModuleAbout")) - showAboutDialog(); - else if (cmd.equals("ModuleProperties")) - showPropertyDialog(); - else System.out.println("Unsupported action: " + cmd); - } - COM: <s> performs the events from user interface and received from the main form </s> - diff --git a/funcom_test/38220934.txt b/funcom_test/38220934.txt deleted file mode 100644 index a9c22b93ff3e69f11513eba9b7da326b6806f4fb..0000000000000000000000000000000000000000 --- a/funcom_test/38220934.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void jbInit() throws Exception { - moduleLabel.setFont(new java.awt.Font("Dialog", 0, 42)); - moduleLabel.setHorizontalAlignment(SwingConstants.CENTER); - moduleLabel.setText(name); - this.setLayout(borderLayout1); - this.add(moduleLabel, BorderLayout.CENTER); - } - COM: <s> initializes gui interface of this module </s> - diff --git a/funcom_test/38220941.txt b/funcom_test/38220941.txt deleted file mode 100644 index 946bd894037850861c1337655ce5d558d4746c9b..0000000000000000000000000000000000000000 --- a/funcom_test/38220941.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void loadUrl(URL url) { - try { - loaded = true; - htmlText.setPage(url); - urlText.setText(url.toString()); - } - catch (Exception e) { - e.printStackTrace(); - CUtilities.printException(context.getMainForm(), e); - } - } - COM: <s> loads an html page by url into this html browser </s> - diff --git a/funcom_test/38220943.txt b/funcom_test/38220943.txt deleted file mode 100644 index 3f0b18f169b3d73737428b13905a1309596a6421..0000000000000000000000000000000000000000 --- a/funcom_test/38220943.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void init() { - this.setTitle("Comedia Tetris"); - CUtilities.updateStatus(this, " "); - super.init(); - this.setSize(400, 340); - CTetrisModule tetris = new CTetrisModule(); - tetris.setContext(new CDefaultModuleContext(this)); - this.showModule(tetris); - tetris.startNewGame(); - } - COM: <s> initializes the main form content </s> - diff --git a/funcom_test/38220944.txt b/funcom_test/38220944.txt deleted file mode 100644 index 8ff749c396660865c6f368beb9bccd06847bdc50..0000000000000000000000000000000000000000 --- a/funcom_test/38220944.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void saveFileAs() { - if (JFileChooser.APPROVE_OPTION == fileChooser.showSaveDialog(this)) { - try { - text.write(new FileWriter(fileChooser.getSelectedFile().getPath())); - setFileName(fileChooser.getSelectedFile().getPath()); - } - catch (Exception e) {} - } - } - COM: <s> performs an save file as command </s> - diff --git a/funcom_test/38221008.txt b/funcom_test/38221008.txt deleted file mode 100644 index 1ce988ad8558c9d7a27947994b2315b8202021a4..0000000000000000000000000000000000000000 --- a/funcom_test/38221008.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void loadModules() { - for(int i = 0; i < modules.length; i++) { - getMainForm().loadModule(null, modules[i], null); - } - CUtilities.updateStatus(getMainForm(), - CUtilities.getStringResource(getMainForm(), CControls.CFORMS_BUNDLE_NAME, - "main.allmodulesloaded", "All modules have been loaded.")); - } - COM: <s> loads all unloaded modules </s> - diff --git a/funcom_test/38221061.txt b/funcom_test/38221061.txt deleted file mode 100644 index 72612b77583c648d204dae6c6e5029108257755b..0000000000000000000000000000000000000000 --- a/funcom_test/38221061.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void addPanel(String caption, java.awt.Component panel) { - JPanel container = new JPanel(new BorderLayout()); - container.add(panel, BorderLayout.CENTER); - container.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); - tabbedPane.addTab(" " + caption + " ", container); - } - COM: <s> adds a panel under specified tab </s> - diff --git a/funcom_test/38221096.txt b/funcom_test/38221096.txt deleted file mode 100644 index 30fcb8a39d26196784263cc7147bbd9757b41a87..0000000000000000000000000000000000000000 --- a/funcom_test/38221096.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getString(String bundleName, String key, String defaultValue) { - ResourceBundle bundle = getResourceBundle(bundleName); - String value = null; - try { - if (bundle != null) value = bundle.getString(key); - } catch (Exception e) {} - return (value != null) ? value : defaultValue; - } - COM: <s> gets a resource string by specified key from the special bundle </s> - diff --git a/funcom_test/38221216.txt b/funcom_test/38221216.txt deleted file mode 100644 index 779e7e19d525b8bbc773e165d4e2b91eea940069..0000000000000000000000000000000000000000 --- a/funcom_test/38221216.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void valueChanged(TreeSelectionEvent e) { - TreePath path = e.getPath(); - DefaultMutableTreeNode selectedNode = - (DefaultMutableTreeNode) path.getPathComponent(path.getPathCount()-1); - Object obj = selectedNode.getUserObject(); - if (obj instanceof CModule) - getMainForm().showModule((CModule) obj); - } - COM: <s> performs action when node in operational tree panel is selected </s> - diff --git a/funcom_test/38221257.txt b/funcom_test/38221257.txt deleted file mode 100644 index d0ea1ed744eef6124f89b7d7dfde6bdbf27e0e5b..0000000000000000000000000000000000000000 --- a/funcom_test/38221257.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected CInternalFrame findFrameForModule(CModule module) { - JInternalFrame[] frames = desktop.getAllFrames(); - for (int i = 0; i < frames.length; i++) { - if ((frames[i] instanceof CInternalFrame) - && (((CInternalFrame) frames[i]).getModule() == module)) - return (CInternalFrame) frames[i]; - } - return null; - } - COM: <s> finds a created internal frame associated with specified module </s> - diff --git a/funcom_test/38221276.txt b/funcom_test/38221276.txt deleted file mode 100644 index c577e651f0fce883f3e678ceef54b2d12b563720..0000000000000000000000000000000000000000 --- a/funcom_test/38221276.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CToolBarElement createPrintToolBar() { - if (printToolbar != null) return printToolbar; - - printToolbar = new CToolBarElement(5); - printToolbar.add(createButton("Print", "buttons/general/Print" + iconSize - + ".gif", getString("print", "Print the contents"))); -// printToolbar.addSeparator(); - return printToolbar; - } - COM: <s> creates a print toolbar </s> - diff --git a/funcom_test/38221286.txt b/funcom_test/38221286.txt deleted file mode 100644 index 4b72e2dc5fc849da738ec93e3360e930cccfa01f..0000000000000000000000000000000000000000 --- a/funcom_test/38221286.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeControl(String type) { - CControl control = (CControl) controls.get(type); - if (control != null) { - control.unsetContext(); - controls.remove(type); - fireControlChanged(new CControlEvent(this, control, CControlEvent.REMOVED)); - } - } - COM: <s> removes control from this main form </s> - diff --git a/funcom_test/38221329.txt b/funcom_test/38221329.txt deleted file mode 100644 index b3c7fb22b8cb500409122672e1fde7ea4a692bd6..0000000000000000000000000000000000000000 --- a/funcom_test/38221329.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CToolBarElement createHelpToolBar() { - if (helpToolbar != null) return helpToolbar; - - helpToolbar = new CToolBarElement(1000); - helpToolbar.add(createButton("HelpTopics", "buttons/general/Help" + iconSize - + ".gif", getString("topics", "Help topics"))); -// helpToolbar.addSeparator(); - return helpToolbar; - } - COM: <s> creates a help toolbar </s> - diff --git a/funcom_test/38221331.txt b/funcom_test/38221331.txt deleted file mode 100644 index 2c64716e17cce32335b808da50d0705a7a95d00a..0000000000000000000000000000000000000000 --- a/funcom_test/38221331.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected char getMnemonic(String key, String defaultValue) { - String value = CUtilities.getStringResource(context.getMainForm(), - CControls.CFORMS_BUNDLE_NAME, "menu." + key + ".mnemonic", defaultValue); - if (value == null && value.length() == 0) return defaultValue.charAt(0); - return value.charAt(0); - } - COM: <s> gets a resource mnemonic string by its name </s> - diff --git a/funcom_test/38221365.txt b/funcom_test/38221365.txt deleted file mode 100644 index e7504f1a46f7ce1863ff391034bc45efcc4a168d..0000000000000000000000000000000000000000 --- a/funcom_test/38221365.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void internalFrameActivated(InternalFrameEvent e) { - parentDesktop.activeModule = module; - module.activateModule(); - ((CAbstractMainForm)parentDesktop.getMainForm()).fireModuleChanged( - new CModuleEvent(parentDesktop.getMainForm(), null, module, - CModuleEvent.ACTIVATED)); - } - COM: <s> invoked when a internal frame has been activated </s> - diff --git a/funcom_test/38221370.txt b/funcom_test/38221370.txt deleted file mode 100644 index 0072e7bc40b4c705a2dfaa27cee7f87a1a8546ca..0000000000000000000000000000000000000000 --- a/funcom_test/38221370.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void internalFrameDeactivated(InternalFrameEvent e) { - try { - if (isMaximum()) - setMaximum(false); - } catch (Exception e1) {} - - module.deactivateModule(); - ((CAbstractMainForm)parentDesktop.getMainForm()).fireModuleChanged( - new CModuleEvent(parentDesktop.getMainForm(), null, module, - CModuleEvent.DEACTIVATED)); - parentDesktop.activeModule = null; - } - COM: <s> invoked when a internal frame has been deactivated </s> - diff --git a/funcom_test/38221375.txt b/funcom_test/38221375.txt deleted file mode 100644 index 25213ccc8762bc046f2b854c6a5cee4acb717525..0000000000000000000000000000000000000000 --- a/funcom_test/38221375.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void loadConfig(Element config) throws Exception { - NodeList toolbars = config.getChildNodes(); - - for (int i = 0; i < toolbars.getLength(); i++) { - Node current = toolbars.item(i); - if (current.getNodeName().equals("toolbar-panel")) { - JToolBar toolbar = loadToolBar((Element) current); - if (toolbar != null) add(toolbar); - } - } - } - COM: <s> loads configuration of the tool bar </s> - diff --git a/funcom_test/38221404.txt b/funcom_test/38221404.txt deleted file mode 100644 index 8c8cab743b5db724a68789653826844d0df72d8a..0000000000000000000000000000000000000000 --- a/funcom_test/38221404.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void loadServices(Node config) throws Exception { - NodeList services = config.getChildNodes(); - for (int i = 0; i < services.getLength(); i++) { - Node current = services.item(i); - if (current.getNodeName().equals("service")) { - loadService(current); - } - } - } - COM: <s> loads services from the xml configuration file </s> - diff --git a/funcom_test/38221420.txt b/funcom_test/38221420.txt deleted file mode 100644 index f6acdea4fb527b5c50e74f38890a0a786330aee2..0000000000000000000000000000000000000000 --- a/funcom_test/38221420.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private Point countPoint(double radius, double min) { - return new Point((int)(-radius * Math.sin(-3.14f/30 * min)) + center.x, - (int)(-radius * Math.cos(3.14f/30 * min)) + center.y); - } - COM: <s> counts a point on the circle </s> - diff --git a/funcom_test/38221424.txt b/funcom_test/38221424.txt deleted file mode 100644 index 6ded1b35c161605fe16419a0a8d208f269bbab73..0000000000000000000000000000000000000000 --- a/funcom_test/38221424.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeService(String type) { - CService service = (CService) services.get(type); - if (service != null) { - service.unsetContext(); - services.remove(type); - fireServiceChanged(new CServiceEvent(this, service, CServiceEvent.REMOVED)); - } - } - COM: <s> removes service from this main form </s> - diff --git a/funcom_test/38221435.txt b/funcom_test/38221435.txt deleted file mode 100644 index c0129b9cf308f56ec0d1dc273830410c44ffccf9..0000000000000000000000000000000000000000 --- a/funcom_test/38221435.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void drawSecArrow(Graphics g, double min) { - Point p = countPoint(radius * 0.85, min); - g.setColor(new Color(41, 44, 49)); - g.drawLine(center.x, center.y, p.x, p.y); - } - COM: <s> draws the second arrow of this clock </s> - diff --git a/funcom_test/38221452.txt b/funcom_test/38221452.txt deleted file mode 100644 index 3bb0f8d0a51b4c70bcd85245b600104fd946d6ce..0000000000000000000000000000000000000000 --- a/funcom_test/38221452.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - if (e.getSource() instanceof JButton) { - int index = getPanelIndex(((JButton) e.getSource()).getText()); - if (currentIndex >= 0 && currentIndex != index) - sweepBar(index); - } - } - COM: <s> performs actions from user inteface and local timers </s> - diff --git a/funcom_test/38221459.txt b/funcom_test/38221459.txt deleted file mode 100644 index 6f88b3d1d41f6ce08e181ee8148f3a214744bae8..0000000000000000000000000000000000000000 --- a/funcom_test/38221459.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void paintIcon(Component c, Graphics g, int x, int y) { - if (image != null) { - if (enabled) { - g.setColor(color); - paint(g, x, y); - } else { - g.setColor(Color.white); - paint(g, x + 1, y + 1); - g.setColor(Color.gray); - paint(g, x, y); - } - } - } - COM: <s> paints the current image in the screen </s> - diff --git a/funcom_test/38221479.txt b/funcom_test/38221479.txt deleted file mode 100644 index 4fbb4e4b9b100b807e584a1963adadf23c12a912..0000000000000000000000000000000000000000 --- a/funcom_test/38221479.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getPanelIndex(String name) { - for (int i = 0; i < items.size(); i++) { - COutlookBarItem current = (COutlookBarItem) items.get(i); - if (current.getButton().getText().equals(name)) - return i; - } - return -1; - } - COM: <s> gets an index of panel with specified name </s> - diff --git a/funcom_test/38221480.txt b/funcom_test/38221480.txt deleted file mode 100644 index ef355fe9181cbbbece3bcfee3402b2e549eaedb4..0000000000000000000000000000000000000000 --- a/funcom_test/38221480.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setButtonsWidth(Container panel, int width) { - for (int i=0; i<panel.getComponentCount(); i++) { - Component component = panel.getComponent(i); - if (component instanceof JButton) { - JButton button = (JButton) component; - Dimension d = button.getPreferredSize(); - d.width = width; - button.setPreferredSize(d); - } - } - } - COM: <s> sets an equal width to all buttons at the panel </s> - diff --git a/funcom_test/38221485.txt b/funcom_test/38221485.txt deleted file mode 100644 index 8d740fbb7618499b2d27f84cf6666be6542144c7..0000000000000000000000000000000000000000 --- a/funcom_test/38221485.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void run() { - byte buf[] = new byte[512]; - int r; - try { - while ((r = in.read(buf, 0, 512)) > -1) - print(new String(buf, 0, r)); - } - catch (Exception e) {} - } - COM: <s> performs the thread functionality </s> - diff --git a/funcom_test/38221496.txt b/funcom_test/38221496.txt deleted file mode 100644 index 5150ceaff05074db465f447c096e322b2fbf75c7..0000000000000000000000000000000000000000 --- a/funcom_test/38221496.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int findFirstDay() { - int w = calendar.get(Calendar.DAY_OF_WEEK); - int d = calendar.get(Calendar.DAY_OF_MONTH); - while (true) { - if (d <= 1 && w == calendar.getFirstDayOfWeek()) break; - d--; w--; - w = (w < 1) ? 7 : w; - } - return d; - } - COM: <s> finds a location of the first day of the month </s> - diff --git a/funcom_test/38221497.txt b/funcom_test/38221497.txt deleted file mode 100644 index 1b8f805c9efc67d68dbf3c371eb69aba5419f21d..0000000000000000000000000000000000000000 --- a/funcom_test/38221497.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setButtonsHeight(Container panel, int height) { - for (int i=0; i<panel.getComponentCount(); i++) { - Component component = panel.getComponent(i); - if (component instanceof JButton) { - JButton button = (JButton) component; - Dimension d = button.getPreferredSize(); - d.height = height; - button.setPreferredSize(d); - } - } - } - COM: <s> sets an equal height to all buttons at the panel </s> - diff --git a/funcom_test/38221499.txt b/funcom_test/38221499.txt deleted file mode 100644 index f80f8639c506a8f4da5ec35f171bb805ec720d38..0000000000000000000000000000000000000000 --- a/funcom_test/38221499.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Iterator getModulesByParent(CModule parent) { - ArrayList array = new ArrayList(); - for (int i = 0; i < modules.size(); i++) { - CModuleHolder holder = (CModuleHolder) modules.get(i); - if (holder.parent == parent) - array.add(holder.module); - } - return array.iterator(); - } - COM: <s> gets all child modules for specified parent </s> - diff --git a/funcom_test/38221505.txt b/funcom_test/38221505.txt deleted file mode 100644 index 50cf285da480a7f6f164f7936246d771c89c8a3c..0000000000000000000000000000000000000000 --- a/funcom_test/38221505.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Component getPanel(String name) { - for (int i = 0; i < items.size(); i++) { - COutlookBarItem current = (COutlookBarItem) items.get(i); - if (current.getButton().getText().equals(name)) - return current.getComponent(); - } - return null; - } - COM: <s> gets a panel with specified name </s> - diff --git a/funcom_test/38221512.txt b/funcom_test/38221512.txt deleted file mode 100644 index 9e407337d63f7e19de23ed77ea88587fee417291..0000000000000000000000000000000000000000 --- a/funcom_test/38221512.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Iterator getAllModules() { - ArrayList array = new ArrayList(); - for (int i = 0; i < modules.size(); i++) { - CModuleHolder holder = (CModuleHolder) modules.get(i); - array.add(holder.module); - } - return array.iterator(); - } - COM: <s> gets all modules registered in the main form </s> - diff --git a/funcom_test/38221513.txt b/funcom_test/38221513.txt deleted file mode 100644 index c9479e1abca9a67a95d36574e1c11271d87f6633..0000000000000000000000000000000000000000 --- a/funcom_test/38221513.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addButtonsListener(Container panel) { - for (int i=0; i<panel.getComponentCount(); i++) { - Component component = panel.getComponent(i); - if (component instanceof JButton) { - JButton button = (JButton) component; - button.addActionListener(this); - button.addKeyListener(this); - } - } - } - COM: <s> assigns listeners to all buttons at the panel </s> - diff --git a/funcom_test/38221526.txt b/funcom_test/38221526.txt deleted file mode 100644 index 37af3d3a72783f2e066b87d85119b4ea26018291..0000000000000000000000000000000000000000 --- a/funcom_test/38221526.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void putModuleLater(CModule parent, CModule module, Map params) { - CModuleHolder holder = new CModuleHolder(parent, module, params); - - SwingUtilities.invokeLater(new CMainFormRunnable(this, holder) { - public void run() { - CModuleHolder holder = (CModuleHolder) obj; - mainForm.putModule(holder.parent, holder.module, (Map) holder.optional); - } - }); - } - COM: <s> puts module to this main form in the separate thread </s> - diff --git a/funcom_test/38221537.txt b/funcom_test/38221537.txt deleted file mode 100644 index 14b01bb0cf7783a2306ada778d62608bb35d7b8f..0000000000000000000000000000000000000000 --- a/funcom_test/38221537.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addDigit(char digit) { - if (digit == '0' && value.equals("0")) return; - if (value.equals("0")) value = ""; - if (update) { - value = ""; - minus = false; - comma = false; - } - update = false; - value += digit; - showValue(); - } - COM: <s> adds the digit to the indicator text editor </s> - diff --git a/funcom_test/38221572.txt b/funcom_test/38221572.txt deleted file mode 100644 index b591de8a5dd3ef354ebb97e759d86f22a17a786f..0000000000000000000000000000000000000000 --- a/funcom_test/38221572.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setLookAndFeel(String laf) { - if(currentLookAndFeel != laf) { - currentLookAndFeel = laf; - if (themesMenu != null) - themesMenu.setEnabled(laf.equals(METAL_LAF)); - ((CAbstractMainForm)getMainForm()).updateLookAndFeel(currentLookAndFeel); - } - } - COM: <s> sets new look feel for this application </s> - diff --git a/funcom_test/38221618.txt b/funcom_test/38221618.txt deleted file mode 100644 index 53e33651f26ccf97c1675c51066d6351fd3b61ce..0000000000000000000000000000000000000000 --- a/funcom_test/38221618.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void undoableEditHappened(UndoableEditEvent e) { - UndoItem undoItem = new UndoItem(this.getCaretPosition(), e.getEdit()); - for (int i = undoList.size() - 1; i > undoPosition; i--) - undoList.remove(i); - undoList.add(undoItem); - undoPosition++; - modified = true; - } - COM: <s> performs an event when text is edited </s> - diff --git a/funcom_test/38221686.txt b/funcom_test/38221686.txt deleted file mode 100644 index fcae44d3297e60318133721a550917b5d4b7a8a6..0000000000000000000000000000000000000000 --- a/funcom_test/38221686.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String formatScore(int index, int length) { - int end = players[index].length(); - if (end > length) end = length; - String result = players[index].substring(0, end); - while (result.length() <= length+1) - result += " "; - return result + scores[index]; - } - COM: <s> formats a score by specified index </s> - diff --git a/funcom_test/38221698.txt b/funcom_test/38221698.txt deleted file mode 100644 index deada42f2f1d37e5dc61c82b9ff46cc21e6a80d9..0000000000000000000000000000000000000000 --- a/funcom_test/38221698.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public int locateUnclosedComment(String text, int pos) { - int pos1 = locateUnclosedComment(text, pos, "(*", "*)"); - int pos2 = locateUnclosedComment(text, pos, "{", "}"); - return (pos1 > pos2) ? pos1 : pos2; - } - COM: <s> locates a last unclosed multiline comment before specified position </s> - diff --git a/funcom_test/38221711.txt b/funcom_test/38221711.txt deleted file mode 100644 index ed4976498dd4b8d1c704be15b6769c647cf035bf..0000000000000000000000000000000000000000 --- a/funcom_test/38221711.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void mouseDragged(MouseEvent e) { - if (e.getSource() == this) - borderMouseDragged(e); - else if (e.getSource() == label) - labelMouseDragged(e); -// System.out.println("Mouse dragged: " + e.getX() + "-" + e.getY()); - } - COM: <s> performs event when mouse is dragged over the component </s> - diff --git a/funcom_test/38221715.txt b/funcom_test/38221715.txt deleted file mode 100644 index 244e0e03fc4bc0b7f8910c563e497b8a4ab10c71..0000000000000000000000000000000000000000 --- a/funcom_test/38221715.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setLeftTable(CTableBox leftTable) { - if (this.leftTable != leftTable) { - if (this.leftTable != null) - this.leftTable.removeLink(this); - this.leftTable = leftTable; - if (leftTable != null) - leftTable.addLink(this); - updated = false; - updateShape(); - } - } - COM: <s> sets a new left related table box </s> - diff --git a/funcom_test/38221731.txt b/funcom_test/38221731.txt deleted file mode 100644 index cc31c369d31b4c0411e7b47db3fa115a9a21c8b8..0000000000000000000000000000000000000000 --- a/funcom_test/38221731.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setRightTable(CTableBox rightTable) { - if (this.rightTable != rightTable) { - if (this.rightTable != null) - this.rightTable.removeLink(this); - this.rightTable = rightTable; - if (rightTable != null) - rightTable.addLink(this); - updated = false; - updateShape(); - } - } - COM: <s> sets a new right related table box </s> - diff --git a/funcom_test/38221761.txt b/funcom_test/38221761.txt deleted file mode 100644 index 68791a62438d453182290092b9843e2c20bf1de8..0000000000000000000000000000000000000000 --- a/funcom_test/38221761.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String gotoNextToken() { - scanner.gotoNextToken(); - return scanner.getToken(); -/* - tk = ""; - do { - scanner.gotoNextToken(); - tk += scanner.getToken(); - } while (scanner.getTokenType() != scanner.EOF - && scanner.getTokenType() != scanner.COMMENT - && scanner.getNextTokenType() != scanner.COMMENT); - return tk; -*/ - } - COM: <s> goes to the next token in the buffer </s> - diff --git a/funcom_test/38221768.txt b/funcom_test/38221768.txt deleted file mode 100644 index ae31f534445d709e198620fe64ca75c6b2aab265..0000000000000000000000000000000000000000 --- a/funcom_test/38221768.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void insertExpressionValue(int pos, String value){ - StringBuffer sb = new StringBuffer(expressionText.getText()); - if (pos < 0) pos = sb.length(); - if (pos > sb.length()) pos = 0; - sb.insert(pos, value); - expressionText.setText(sb.toString()); - - setCursorPosition(pos+value.length()); - } - COM: <s> insert string value into expression text and set cursor to end inderted value </s> - diff --git a/funcom_test/38221772.txt b/funcom_test/38221772.txt deleted file mode 100644 index b4b315bbe9cca77543d8a820d3f11d72b96feb92..0000000000000000000000000000000000000000 --- a/funcom_test/38221772.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void insertExpressionFunc(int pos, String func){ - if (expressionText.getText().length() == 0 - || position == expressionText.getText().length()){ - insertExpressionValue(position, func+"()"); - setCursorPosition(position-1); - } else { - insertExpressionValue(position, func); - } - } - COM: <s> insert into expression text function and set cursor position </s> - diff --git a/funcom_test/38221797.txt b/funcom_test/38221797.txt deleted file mode 100644 index 809a84cf249aad966f22087939eb7fdd2fe4e076..0000000000000000000000000000000000000000 --- a/funcom_test/38221797.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void labelMouseDragged(MouseEvent e) { - Point pos = this.getLocation(); - pos.x += e.getPoint().x - reposPoint.x; - pos.y += e.getPoint().y - reposPoint.y; - this.setLocation(pos); - updateLinks(); - } - COM: <s> performs event when mouse is dragged over the label of this table box </s> - diff --git a/funcom_test/38221828.txt b/funcom_test/38221828.txt deleted file mode 100644 index 82b335664a6994356902fbfa1b77a92c09bb325d..0000000000000000000000000000000000000000 --- a/funcom_test/38221828.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String wrapString(String s) { - String result = "\'"; - for (int p = 0; p < s.length(); p++) { - result += s.charAt(p); - if (s.charAt(p) == '\'') - result += s.charAt(p); - } - return result + "\'"; - } - COM: <s> converts a string from ordinary into pascal like escape format </s> - diff --git a/funcom_test/38221829.txt b/funcom_test/38221829.txt deleted file mode 100644 index 832b0ec072a9524f755f13c0d82a7cdfd85c0944..0000000000000000000000000000000000000000 --- a/funcom_test/38221829.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateNewLinks() { - for (int i = 0; i < links.size(); i++) - try { - CTableLink link = ((CTableLink) links.get(i)); - if (!link.isUpdated()) - link.updateShape(); - } - catch (Exception e) {} - } - COM: <s> updates new related links </s> - diff --git a/funcom_test/38221835.txt b/funcom_test/38221835.txt deleted file mode 100644 index 0c408cb89ba69a003d10f4895f4bc18466b0a53b..0000000000000000000000000000000000000000 --- a/funcom_test/38221835.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private Point convertParentToOwn(Point point) { - if (this.getParent() != null) { - point.x -= this.getLocationOnScreen().x - - this.getParent().getLocationOnScreen().x; - point.y -= this.getLocationOnScreen().y; - } - return point; - } - COM: <s> converts coordinates from parent to own coordinates </s> - diff --git a/funcom_test/38221860.txt b/funcom_test/38221860.txt deleted file mode 100644 index ec68a5d233e7b662363957e7100950934d5324a0..0000000000000000000000000000000000000000 --- a/funcom_test/38221860.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void drawMap(Graphics g) { - int x = xInset; - int y = yInset; - - for (int r = 0; r < yCellNum; r++ ) { - for (int c = 0; c < xCellNum; c++ ) { - drawBox(g, cells[r][c], x, y); - x += cellSide; - } - y += cellSide; - x = xInset; - } - } - COM: <s> draws the game map </s> - diff --git a/funcom_test/38221862.txt b/funcom_test/38221862.txt deleted file mode 100644 index 01da2788057cd3802c4063c259f4bd5b2ef77bea..0000000000000000000000000000000000000000 --- a/funcom_test/38221862.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void extractToken() { - if ((next.token.length() != 0) && (next.tokenType != UNKNOWN)) { - // Move next token to current token - current.tokenType = next.tokenType; - current.lineNo = next.lineNo; - current.position = next.position; - current.token = next.token; - // Clear next token - next = new Lexem(); - } else - runLex(current); - } - COM: <s> extract current token or copies it from next token if it is available </s> - diff --git a/funcom_test/38221864.txt b/funcom_test/38221864.txt deleted file mode 100644 index ea696da6e6f22bff2bb83d3a8d774273626973f0..0000000000000000000000000000000000000000 --- a/funcom_test/38221864.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private CVariant functionIif(Stack stack) throws CExpressionError { - int params = getValue(stack, 0).getInt(); - checkParamCount(params, 3); - if (getValue(stack, 3).getBoolean()) - return getValue(stack, 2); - return getValue(stack, 1); - } - COM: <s> calculates function iif </s> - diff --git a/funcom_test/38221883.txt b/funcom_test/38221883.txt deleted file mode 100644 index 648870f7c62577f17c3c044707a94a8127bb08ec..0000000000000000000000000000000000000000 --- a/funcom_test/38221883.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int checkMap() { - int row = 1; - int result = 0; - - do { - int column = 0; - while (column < xCellNum) { - if (cells[row][column] == DEFAULT_BACK_COLOR) - break; - column++; - } - if (column == xCellNum) { - removeRow(row); - result++; - } - } while (++row < yCellNum); - return result; - } - COM: <s> checks the content of this map and removes filled rows </s> - diff --git a/funcom_test/38221891.txt b/funcom_test/38221891.txt deleted file mode 100644 index ae18c210b68bf7c8d49037accb06d8d3d7815cc0..0000000000000000000000000000000000000000 --- a/funcom_test/38221891.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected int innerProcLineComment(Lexem curr) { - while (bufferPos < bufferLen) { - char temp = buffer.charAt(bufferPos); - curr.token += temp; - bufferPos++; - if (temp == '\n') { - bufferLine++; - break; - } - } - return (curr.tokenType = COMMENT); - } - COM: <s> processes the rest single line comment </s> - diff --git a/funcom_test/38221933.txt b/funcom_test/38221933.txt deleted file mode 100644 index f4aa44e2a4eed4afde8c264b7bec2c72a408ca56..0000000000000000000000000000000000000000 --- a/funcom_test/38221933.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object getElement(int index) throws ArrayIndexOutOfBoundsException { - if ((type == ARRAY || type == OBJECT_ARRAY) && value != null - && ((Object[])value).length > index) - return ((Object[]) value)[index]; - if (index == 0) - return value; - throw new ArrayIndexOutOfBoundsException(); - } - COM: <s> gets an element of the stored array </s> - diff --git a/funcom_test/38221935.txt b/funcom_test/38221935.txt deleted file mode 100644 index 0d913ceaf7562d222dc4c536ea1ec16a54983093..0000000000000000000000000000000000000000 --- a/funcom_test/38221935.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setExpression(String expression) throws CParseError { - this.expression = expression; - parsedBuffer.clear(); - expressionBuffer.clear(); - lexicalAnalyze(); - syntaxAnalyze(); - if (hasMoreTokens()) - throw new CParseError("Syntax error at line " + getToken().lineNo); - } - COM: <s> sets a new expression string and parses it into internal byte code </s> - diff --git a/funcom_test/38221963.txt b/funcom_test/38221963.txt deleted file mode 100644 index e04015652d725337af5511c8c0b1fec728976189..0000000000000000000000000000000000000000 --- a/funcom_test/38221963.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private CVariant functionDeg(Stack stack) throws CExpressionError { - int params = getValue(stack, 0).getInt(); - checkParamCount(params, 1); - return new CSoftVariant(Math.toDegrees(getValue(stack, 1).getFloat())); - } - COM: <s> calculates function deg radians to degrees </s> - diff --git a/funcom_test/38221972.txt b/funcom_test/38221972.txt deleted file mode 100644 index 440ede63095fab4bab9b93c3158d6c833f5ddbc1..0000000000000000000000000000000000000000 --- a/funcom_test/38221972.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private CVariant functionRad(Stack stack) throws CExpressionError { - int params = getValue(stack, 0).getInt(); - checkParamCount(params, 1); - return new CSoftVariant(Math.toRadians(getValue(stack, 1).getFloat())); - } - COM: <s> calculates function rad degrees to radians </s> - diff --git a/funcom_test/38222007.txt b/funcom_test/38222007.txt deleted file mode 100644 index d11574c7b4e7202041cd467ed053081cdcf13e40..0000000000000000000000000000000000000000 --- a/funcom_test/38222007.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void syntaxAnalyze1() throws CParseError { - if (!hasMoreTokens()) - throw new CParseError("Unexpected and of expression."); - - CParseToken token = getToken(); - if (token.token == NOT) { - shiftToken(); - syntaxAnalyze2(); - expressionBuffer.add(token); - } else - syntaxAnalyze2(); - } - COM: <s> performs a syntax analyze at level 1 </s> - diff --git a/funcom_test/38222032.txt b/funcom_test/38222032.txt deleted file mode 100644 index cc215e581e89c3faff103cdb2013daec272fffa5..0000000000000000000000000000000000000000 --- a/funcom_test/38222032.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void syntaxAnalyze5() throws CParseError { - if (!hasMoreTokens()) - throw new CParseError("Unexpected and of expression."); - - syntaxAnalyze6(); - while (hasMoreTokens()) { - CParseToken token = getToken(); - if (token.token != POWER) break; - shiftToken(); - syntaxAnalyze6(); - expressionBuffer.add(token); - } - } - COM: <s> performs a syntax analyze at level 5 </s> - diff --git a/funcom_test/38222049.txt b/funcom_test/38222049.txt deleted file mode 100644 index bffc0d15446cc9ff683765d6802b2acc990d6cbc..0000000000000000000000000000000000000000 --- a/funcom_test/38222049.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void swapValues(Stack stack) throws CExpressionError { - Object first = stack.pop(); - Object second = stack.pop(); - if (first == null || second == null) - throw new CExpressionError("Stack is empty."); - stack.push(first); - stack.push(second); - } - COM: <s> swaps two values on the top of the stack </s> - diff --git a/funcom_test/38222110.txt b/funcom_test/38222110.txt deleted file mode 100644 index 4f5a348cb66502ebaa6e29144db0d799d18dcfc7..0000000000000000000000000000000000000000 --- a/funcom_test/38222110.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void printStackTrace(PrintStream printStream) { - synchronized (printStream) { - if (rootCause != null) { - printStream.print(this.getClass().getName() + ": "); - rootCause.printStackTrace(printStream); - } else { - super.printStackTrace(printStream); - } - } - } - COM: <s> prints the stack backtrace to the specified print stream </s> - diff --git a/funcom_test/38222111.txt b/funcom_test/38222111.txt deleted file mode 100644 index 79e8e5f83fafb47b540c392563822ae9b97d1d8f..0000000000000000000000000000000000000000 --- a/funcom_test/38222111.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void printStackTrace(PrintWriter printWriter) { - synchronized (printWriter) { - if (rootCause != null) { - printWriter.print(this.getClass().getName() + ": "); - rootCause.printStackTrace(printWriter); - } else { - super.printStackTrace(printWriter); - } - } - } - COM: <s> prints the stack backtrace to the specified print writer </s> - diff --git a/funcom_test/38222121.txt b/funcom_test/38222121.txt deleted file mode 100644 index c4d8842d3ba46fb84703078af957a78cf68d88ee..0000000000000000000000000000000000000000 --- a/funcom_test/38222121.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getIntValue() { - switch (type) { - case ModulePropertyType.TYPE_BOOLEAN: - return ((Boolean) value).booleanValue() ? 1 : 0; - case ModulePropertyType.TYPE_STRING: - try { - return new Double((String) value).intValue(); - } - catch (Exception e) { - return 0; - } - default: - return ((Number) value).intValue(); - } - } - COM: <s> gets the integer representation of the property value </s> - diff --git a/funcom_test/38222122.txt b/funcom_test/38222122.txt deleted file mode 100644 index fd2b489720e9358b76960d4253ecc8f6740ae9a6..0000000000000000000000000000000000000000 --- a/funcom_test/38222122.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public double getDoubleValue() { - switch (type) { - case ModulePropertyType.TYPE_BOOLEAN: - return ((Boolean) value).booleanValue() ? 1 : 0; - case ModulePropertyType.TYPE_STRING: - try { - return new Double((String) value).doubleValue(); - } - catch (Exception e) { - return 0; - } - default: - return ((Number) value).doubleValue(); - } - } - COM: <s> gets the double representation of the property value </s> - diff --git a/funcom_test/38222153.txt b/funcom_test/38222153.txt deleted file mode 100644 index 2e816a086ca117216bfbae5ce8d55849d58c6944..0000000000000000000000000000000000000000 --- a/funcom_test/38222153.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setArray(CVariant[] value) { - this.type = ARRAY; - if (value != null) { - this.value = new CVariant[value.length]; - System.arraycopy(value, 0, this.value, 0, value.length); - } else - this.value = null; - } - COM: <s> sets a new cvariant array to this cvariant </s> - diff --git a/funcom_test/38222160.txt b/funcom_test/38222160.txt deleted file mode 100644 index fffc3ca56ccc2e99e8a446c04e2e2f13cd96697a..0000000000000000000000000000000000000000 --- a/funcom_test/38222160.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean queryClose() { - boolean canClose = true; - try { - beginRead(); - Iterator items = new DownNodeIterator(moduleContainer.getRootNode()); - while (items.hasNext() && canClose) { - Module current = ((ModuleNode) items.next()).getModule(); - canClose &= current.unsetContextQuery(); - } - } finally { - endRead(); - } - return canClose; - } - COM: <s> asks all the modules are they ready to be unloaded </s> - diff --git a/funcom_test/38222170.txt b/funcom_test/38222170.txt deleted file mode 100644 index 1411e4410e470aa6ad5aff68b462994f55447f45..0000000000000000000000000000000000000000 --- a/funcom_test/38222170.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Collection getChildren() { - Collection result = new ArrayList(); - Iterator items = node.getChildren().iterator(); - while (items.hasNext()) { - ModuleNode current = (ModuleNode) items.next(); - result.add(new ModuleNodeProxy(current)); - } - return result; - } - COM: <s> gets a collection with all child nodes of this node </s> - diff --git a/funcom_test/38222171.txt b/funcom_test/38222171.txt deleted file mode 100644 index 5a2414b248fb90398f1c577c8ad2f294284a0911..0000000000000000000000000000000000000000 --- a/funcom_test/38222171.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void close() { - try { - beginWrite(); - Collection modules = moduleContainer.getRootNode().getChildren(); - while (modules.size() > 0) { - moduleContainer.removeModule((ModuleNode) modules.toArray()[0]); - } - } finally { - endWrite(); - } - getClassLogger().info("Application is closed."); - } - COM: <s> unloads all modules and closes this application </s> - diff --git a/funcom_test/38222179.txt b/funcom_test/38222179.txt deleted file mode 100644 index 70a730bbfa45437cfced4e0f2a30078bf07637aa..0000000000000000000000000000000000000000 --- a/funcom_test/38222179.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Collection wrapModuleNodeCollection(Collection nodes) { - Collection result = new ArrayList(); - Iterator items = nodes.iterator(); - while (items.hasNext()) { - ModuleNode current = (ModuleNode) items.next(); - result.add(wrapModuleNode(current)); - } - return Collections.unmodifiableCollection(result); - } - COM: <s> wraps a collection of module nodes </s> - diff --git a/funcom_test/38222188.txt b/funcom_test/38222188.txt deleted file mode 100644 index be134249f82f87ad8aa76be00f9c604eb41640f3..0000000000000000000000000000000000000000 --- a/funcom_test/38222188.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setObjectArray(Object[] value) { - this.type = OBJECT_ARRAY; - if (value != null) { - this.value = new Object[value.length]; - System.arraycopy(value, 0, this.value, 0, value.length); - } else - this.value = null; - } - COM: <s> sets a new object array to this cvariant </s> - diff --git a/funcom_test/38222242.txt b/funcom_test/38222242.txt deleted file mode 100644 index 4ca01a9a140ed7a86dd5a4a4124a29a4473b83ab..0000000000000000000000000000000000000000 --- a/funcom_test/38222242.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Collection exploreDamages() { - ArrayList location = (ArrayList) getLocation(); - Collection result = new ArrayList(); - Iterator items = damagedDecks.iterator(); - while (items.hasNext()) { - int index = ((Integer) items.next()).intValue(); - if (index >= 0 || index < location.size()) - result.add(location.get(index)); - } - return result; - } - COM: <s> explores damaged points of the ship </s> - diff --git a/funcom_test/38222243.txt b/funcom_test/38222243.txt deleted file mode 100644 index 06e706c953cbcac9c9730cc22f0f9d3b19894139..0000000000000000000000000000000000000000 --- a/funcom_test/38222243.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Collection getEnermiesForFleet(Object fleet) { - ArrayList result = new ArrayList(); - Iterator items = fleets.values().iterator(); - while (items.hasNext()) { - Fleet current = (Fleet) items.next(); - if (current != fleet && !current.isDestroyed()) - result.add(current); - } - return result; - } - COM: <s> get enemies for specified fleet </s> - diff --git a/funcom_test/38222285.txt b/funcom_test/38222285.txt deleted file mode 100644 index f9c76dd0876e175baea190cf960ff0e3fb77366b..0000000000000000000000000000000000000000 --- a/funcom_test/38222285.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean containsObjectOnly(Collection collection, Object obj) { - if (collection == null && collection.size() == 0) - return true; - Iterator items = collection.iterator(); - while (items.hasNext()) { - if (items.next() != obj) - return false; - } - return true; - } - COM: <s> checks if this collection contains only specified object </s> - diff --git a/funcom_test/38222292.txt b/funcom_test/38222292.txt deleted file mode 100644 index 95b46e358819c8785aaa1f190352b7cdd1ed2c43..0000000000000000000000000000000000000000 --- a/funcom_test/38222292.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Collection exploreDamages() { - Collection result = new ArrayList(); - Map ships = retrieveShips(); - try { - Iterator items = ships.values().iterator(); - while (items.hasNext()) { - Ship ship = (Ship) items.next(); - result.addAll(ship.exploreDamages()); - } - } - finally { - releaseShips(ships); - } - return result; - } - COM: <s> exploring a territory and returns a collection of damaged points </s> - diff --git a/funcom_test/38222302.txt b/funcom_test/38222302.txt deleted file mode 100644 index d661b155e8d8aec8aa8f99115d1c4e4c225c9c18..0000000000000000000000000000000000000000 --- a/funcom_test/38222302.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private ModuleExecutable getModuleExecutable() { - Iterator executables = context.getRelatedNode().getModuleDef(). - getExecutables().iterator(); - while (executables.hasNext()) { - ModuleExecutable current = (ModuleExecutable) executables.next(); - if (current.getExecType() == ExecType.EXEC_JAVA) - return current; - } - return null; - } - COM: <s> gets the module executable configuration </s> - diff --git a/funcom_test/38222310.txt b/funcom_test/38222310.txt deleted file mode 100644 index 7820e6ee09d79b13ad75b96ef42d12456fe0a8a4..0000000000000000000000000000000000000000 --- a/funcom_test/38222310.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void startDocument() throws SAXException { - super.startDocument(); - moduleNodes = null; - Map map = new HashMap(); - map.put("%Type%", "RootModule"); - map.put("Modules", new ArrayList()); - parseStack.push(map); - } - COM: <s> starts the document parsing </s> - diff --git a/funcom_test/38222313.txt b/funcom_test/38222313.txt deleted file mode 100644 index 65d4899e262948f135954ceb722722bc904c6bd6..0000000000000000000000000000000000000000 --- a/funcom_test/38222313.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void repair() { - fleetShoots.clear(); - Map ships = retrieveShips(); - try { - Iterator items = ships.values().iterator(); - while (items.hasNext()) { - Ship ship = (Ship) items.next(); - ship.repair(); - } - } - finally { - releaseShips(ships); - } - } - COM: <s> repairs all active ships of the fleet </s> - diff --git a/funcom_test/38222319.txt b/funcom_test/38222319.txt deleted file mode 100644 index 36657022ac14c5113231d02bac9730b97b6138be..0000000000000000000000000000000000000000 --- a/funcom_test/38222319.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean isDestroyed() { - Map ships = retrieveShips(); - boolean result = true; - try { - Iterator items = ships.values().iterator(); - while (items.hasNext()) { - Ship ship = (Ship) items.next(); - result &= ship.isDestroyed(); - } - } - finally { - releaseShips(ships); - } - return result; - } - COM: <s> defines if this fleet was already destroyed </s> - diff --git a/funcom_test/38222328.txt b/funcom_test/38222328.txt deleted file mode 100644 index 7718e18e17e474a7b55109ae037c4d76bdca2a7b..0000000000000000000000000000000000000000 --- a/funcom_test/38222328.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public InputSource resolveEntity(String publicId, String systemId) { - if (systemId.equals("http://comedia.sourceforge.net/dtd/cmaa_basic_config_10.dtd")) - return new InputSource(XmlLibraryLoader.class.getResourceAsStream( - "/resources/global/module/xml/cmaa_basic_config_10.dtd")); - return null; - } - COM: <s> resolves entities while xml document parsing </s> - diff --git a/funcom_test/38222333.txt b/funcom_test/38222333.txt deleted file mode 100644 index f80717c45e578916ce9a2dc81bd7dbb682e598fd..0000000000000000000000000000000000000000 --- a/funcom_test/38222333.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void assignAbsoluteId(ModuleNodeImpl node) { - node.setAbsoluteId(nextAbsoluteId++); - - // Do the same thing with child modules. - Iterator children = node.getChildren().iterator(); - while (children.hasNext()) { - ModuleNodeImpl current = (ModuleNodeImpl) children.next(); - assignAbsoluteId(current); - } - } - COM: <s> assigns the module absolute id </s> - diff --git a/funcom_test/38222337.txt b/funcom_test/38222337.txt deleted file mode 100644 index 347d63a5aa41ef78ff5b95cd44f18606bbf125b8..0000000000000000000000000000000000000000 --- a/funcom_test/38222337.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void releaseShips(Map ships) { - try { - Iterator items = ships.keySet().iterator(); - while (items.hasNext()) { - ModuleNode current = (ModuleNode) items.next(); - current.getModule().releaseInterface(ships.get(current)); - items.remove(); - } - } - catch (ModuleException me) { - getClassLogger().error(me.getMessage()); - } - } - COM: <s> releases previously requested ship interfaces </s> - diff --git a/funcom_test/38222484.txt b/funcom_test/38222484.txt deleted file mode 100644 index 2d8a6d3f73e36ec63012fb9598a3890d8572d4f0..0000000000000000000000000000000000000000 --- a/funcom_test/38222484.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void warning(SAXParseException e) throws SAXParseException { - System.out.println("** Warning, line " + e.getLineNumber() - + ", uri " + e.getSystemId()); - System.out.println(" " + e.getMessage()); - } - COM: <s> callbacks the application if some warnings were produced </s> - diff --git a/funcom_test/38222487.txt b/funcom_test/38222487.txt deleted file mode 100644 index acfde49bdad6421e7097fded8a609de3af2f230a..0000000000000000000000000000000000000000 --- a/funcom_test/38222487.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void loadFromStream(InputStream stream) throws Exception { - SAXParserFactory factory = SAXParserFactory.newInstance(); - factory.setValidating(true); - - SAXParser parser = factory.newSAXParser(); - try { - parser.parse(stream, this); - } - catch (SAXException se) { - if (se.getException() != null) - throw se.getException(); - throw se; - } - } - COM: <s> loads library configuration from specified xml stream </s> - diff --git a/funcom_test/38222490.txt b/funcom_test/38222490.txt deleted file mode 100644 index 564bfac49951b7c382630c9a0fbf0bb1152d691e..0000000000000000000000000000000000000000 --- a/funcom_test/38222490.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private boolean openResourceFile(String fileName) { - if (file == null) { - try { - URL fileUrl = getClass().getResource(fileName); - file = new RandomAccessFile(fileUrl.getFile(), "r"); - } - catch (Exception e) { -// System.out.println("Error while opening "+ fileName + " file."); -// e.printStackTrace(); - return false; - } - } - return true; - } - COM: <s> tries to open a file with the english dictionary from resource </s> - diff --git a/funcom_test/38222492.txt b/funcom_test/38222492.txt deleted file mode 100644 index d283fb70c40cc4b7f1d0bbf8756586f125a97dc4..0000000000000000000000000000000000000000 --- a/funcom_test/38222492.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean openTempFile(String fileName) { - if (file == null) { - try { - file = new RandomAccessFile(fileName, "r"); - } - catch (Exception e) { -// System.out.println("Error while opening "+ fileName + " file."); -// e.printStackTrace(); - return false; - } - } - return true; - } - COM: <s> tries to open a file with the english dictionary from temp directory </s> - diff --git a/funcom_test/38222499.txt b/funcom_test/38222499.txt deleted file mode 100644 index 646c403b39ff7b173fc0f032362923ea9ee02ab8..0000000000000000000000000000000000000000 --- a/funcom_test/38222499.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String lookupWord(String word) { - // Checks the first character. - if (word.charAt(0) < 65 || word.charAt(0) > 122 - || (word.charAt(0) > 90 && word.charAt(0) < 97)) - return null; - return readPhonemeFromFile(word); - } - COM: <s> finds word in the dictionary </s> - diff --git a/funcom_test/38269511.txt b/funcom_test/38269511.txt deleted file mode 100644 index a4236a3745540856a7c13743473728068293f3f2..0000000000000000000000000000000000000000 --- a/funcom_test/38269511.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Word createWord(Synset synset, int index, String lemma, String senseKey, int usageCnt) { - Word w = null; - if (synset.getPOS().equals(POS.VERB)) { - w = new MutableVerb(synset, index, lemma); - } else { - w = new Word(synset, index, lemma); - - } - return w; - } - COM: <s> creates a word object from </s> - diff --git a/funcom_test/38269749.txt b/funcom_test/38269749.txt deleted file mode 100644 index 581b351760ddb84e68dc411972100960bce1e3d7..0000000000000000000000000000000000000000 --- a/funcom_test/38269749.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void test() { - try { - log.info("Beginning DictionaryTester..."); - IndexWord w = Dictionary.getInstance().getIndexWord(POS.NOUN, "tank"); - testIndexWord(w); - - IndexWord v = Dictionary.getInstance().getIndexWord(POS.VERB, "complete"); - testVerb(v); - - - } catch (JWNLException e) { - e.printStackTrace(); - } - if (failures == 0) { - log.info("Testing succeeded with no failures."); - } - } - COM: <s> tests index word creation and synset functionality </s> - diff --git a/funcom_test/38435051.txt b/funcom_test/38435051.txt deleted file mode 100644 index 42992502c49c6e2ed701b996f13b386f335b90bb..0000000000000000000000000000000000000000 --- a/funcom_test/38435051.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void run(IAction action) { - /** - * log.warning(""+String.valueOf(SWT.CTRL | 'e')); - * - * log.warning(""+String.valueOf(SWT.CTRL | SWT.SHIFT | 'x')); - */ - Plasm plasm = Plasm.getInstance(); - - try { - plasm.open(); - } catch (Throwable e) { - MessageDialog.openError(window.getShell(), "Error", e.toString()); - log.warning(e.getMessage()); - e.printStackTrace(); - } - } - COM: <s> this action starts and runs the plasm process </s> - diff --git a/funcom_test/3845550.txt b/funcom_test/3845550.txt deleted file mode 100644 index be1101a72ab07412b278b4b3a223a2b2ef47ff68..0000000000000000000000000000000000000000 --- a/funcom_test/3845550.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: /*public Table findTable(String schemaName, String tblName) throws SQLException { - // find schema - System.out.println("Trying to find table " + schemaName + "." + tblName); - Schema schema = findSchema(schemaName); - if (schema == null) { - return null; - } - // find table - Table table = schema.getTable(tblName); - return table; // even if it's null - }*/ - COM: <s> finds a table in this database by its schema name </s> - diff --git a/funcom_test/3845552.txt b/funcom_test/3845552.txt deleted file mode 100644 index d25fc01cffc8622a9412177cb75d93bfea6616b0..0000000000000000000000000000000000000000 --- a/funcom_test/3845552.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: /*public Schema findSchema(String schemaName) throws SQLException { - // find schema - Schema schema = null; - Iterator iter = getSchemas().iterator(); - while (iter.hasNext()) { - Schema s = (Schema)iter.next(); - if (s.getSchemaName().equals(schemaName)) { - schema = s; - } - } - // schema is null -> return null - return schema; - }*/ - COM: <s> finds a schema in this database by its name </s> - diff --git a/funcom_test/3845644.txt b/funcom_test/3845644.txt deleted file mode 100644 index 270b43b110fc3e280db52372a4affeaab29b1762..0000000000000000000000000000000000000000 --- a/funcom_test/3845644.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean isPrimaryKey() { - PrimaryKey pk = getTable().getPrimaryKey(); - if (pk == null) { - return false; - } - Iterator iter = getTable().getPrimaryKey().getColumns().iterator(); - while (iter.hasNext()) { - Column c = (Column)iter.next(); - if (this.equals(c)) { - return true; - } - } - return false; - } - COM: <s> querries the containing table to see </s> - diff --git a/funcom_test/38469584.txt b/funcom_test/38469584.txt deleted file mode 100644 index f775b8a365e1cf17af9b3ea62facd763594abac6..0000000000000000000000000000000000000000 --- a/funcom_test/38469584.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: static public String charTrim(String str, char cc) - { - int i = 0, j = str.length(); - while((i < j) && str.charAt(i) == cc) { i++; } - while((i < j) && str.charAt(j - 1) == cc) { j--; } - - return str.substring(i,j); - } - COM: <s> trim char from a string </s> - diff --git a/funcom_test/38515848.txt b/funcom_test/38515848.txt deleted file mode 100644 index 994188bf4d8e45e3c1e04b3af42ade273d9a0d2d..0000000000000000000000000000000000000000 --- a/funcom_test/38515848.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void installDeferredBreakpoints() { - IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager() - .getBreakpoints(ParserLaunchConstants.PARSER_DEBUG_MODEL_ID); - for(int i = 0; i<breakpoints.length; i++ ) { - breakpointAdded(breakpoints[i]); - } - } - COM: <s> install breakpoints that are already registered with the breakpoint </s> - diff --git a/funcom_test/38515913.txt b/funcom_test/38515913.txt deleted file mode 100644 index 8817d91aa539f03543d70c693b738c69115d282d..0000000000000000000000000000000000000000 --- a/funcom_test/38515913.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void update() { - TreeViewer viewer = getTreeViewer(); - if (viewer != null) { - Control control = viewer.getControl(); - if (control != null && !control.isDisposed()) { - viewer.removeSelectionChangedListener(this); - control.setRedraw(false); - viewer.setInput(input); -// viewer.expandAll(); - control.setRedraw(true); - - int caret = editor.getCaretOffset(); - selectSegment(caret, true); - - viewer.addSelectionChangedListener(this); - } - } - } - COM: <s> updates the outline page </s> - diff --git a/funcom_test/38524842.txt b/funcom_test/38524842.txt deleted file mode 100644 index af289d531ce1f3e1ec0f55ac205c0f9ec182a085..0000000000000000000000000000000000000000 --- a/funcom_test/38524842.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int hashCode() { - // Note: The hashCode "required" for Map.Entry objects by the Java API - // specification is defined to be symmetric, which is not a good idea. - // It is better to violate the Java API specification here. - return Objects.hashCode(first) ^ - Objects.rotateLeft(Objects.hashCode(second), 17) ^ - "ImmutablePair".hashCode(); - } - COM: <s> p the hash code is designed to be asymmetric so that </s> - diff --git a/funcom_test/38531236.txt b/funcom_test/38531236.txt deleted file mode 100644 index f6217332e71126518531eaeba58651098f916a98..0000000000000000000000000000000000000000 --- a/funcom_test/38531236.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void init(Object context) throws javax.xml.rpc.ServiceException { - ServletEndpointContext soapContext = (ServletEndpointContext) context; - servletContext = soapContext.getServletContext(); - database = (Database) servletContext.getAttribute(databaseKey); - if (database == null){ - throw new javax.xml.rpc.ServiceException("Database not found " + - "using attribute " + databaseKey ); - } - } - COM: <s> grabs the database from the servlet context with attribute org </s> - diff --git a/funcom_test/38531298.txt b/funcom_test/38531298.txt deleted file mode 100644 index d36956152d2b5b380cace1b89d5610f25fd0d755..0000000000000000000000000000000000000000 --- a/funcom_test/38531298.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: // public void testGetConformanceLevel() throws Exception { -// System.out.println("testGetConformanceLevel"); -// -// // Add your test code below by replacing the default call to fail. -// String conformLevel = this.getProp("conformanceLevel"); -// String level = this.dbService.getConformanceLevel(); -// assertEquals("Conformance level returned unexpected result", conformLevel, level); -// -// } - COM: <s> test of get conformance level method of class gov </s> - diff --git a/funcom_test/38531316.txt b/funcom_test/38531316.txt deleted file mode 100644 index f8c8c21736474fc975fa6bf0b33cc1ebab228177..0000000000000000000000000000000000000000 --- a/funcom_test/38531316.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: // public void testGetName() throws Exception { -// System.out.println("testGetName"); -// -// // Add your test code below by replacing the default call to fail. -// String dbName = this.getProp("dbName"); -// String name = this.dbService.getName(); -// assertEquals("Returned unexpected db name", dbName, name); -// -// } - COM: <s> test of get name method of class gov </s> - diff --git a/funcom_test/38531328.txt b/funcom_test/38531328.txt deleted file mode 100644 index d5859190643cbbd7485b472dcc894987d7c29d90..0000000000000000000000000000000000000000 --- a/funcom_test/38531328.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testClose() throws Exception { - System.out.println("testClose"); - - // Add your test code below by replacing the default call to fail. - CollectionTransport transport = this.getCollection(); - this.dbService.close(transport); - - assertFalse("collection not closed", this.dbService.isOpen(transport)); - } - COM: <s> test of close method of class gov </s> - diff --git a/funcom_test/38531329.txt b/funcom_test/38531329.txt deleted file mode 100644 index f97736275c7d632b9c236b289e486987b4e3bcf5..0000000000000000000000000000000000000000 --- a/funcom_test/38531329.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testClear() throws Exception { - System.out.println("testClear"); - - // Add your test code below by replacing the default call to fail. - this.resourceSet.clear(); - assertTrue("Cleared resource set, but still has elements", this.resourceSet.getSize() == 0); - } - COM: <s> test of clear method of class gov </s> - diff --git a/funcom_test/38531334.txt b/funcom_test/38531334.txt deleted file mode 100644 index 7e8264fbe85a4d5189d8eddddaacc32e9083f6f5..0000000000000000000000000000000000000000 --- a/funcom_test/38531334.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testGetResourceType() throws Exception { - System.out.println("testGetResourceType"); - - // Add your test code below by replacing the default call to fail. - String resourceType = this.resource.getResourceType(); - assertNotNull("Request for resource type is null",resourceType); - - assertEquals("Expected resource type of 'XMLResource'","XMLResource", resourceType); - } - COM: <s> test of get resource type method of class gov </s> - diff --git a/funcom_test/38531342.txt b/funcom_test/38531342.txt deleted file mode 100644 index a6e7dca64fde92efefeaa3739bfa56cfb9a97a3a..0000000000000000000000000000000000000000 --- a/funcom_test/38531342.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetResource() throws Exception { - System.out.println("testGetResource"); - - // Add your test code below by replacing the default call to fail. - assertTrue("No resources to get", this.resourceSet.getSize() > 0); - Resource resource = this.resourceSet.getResource(0); - } - COM: <s> test of get resource method of class gov </s> - diff --git a/funcom_test/38531345.txt b/funcom_test/38531345.txt deleted file mode 100644 index abaed422461cdf2eba47419ffdcb9e0ac9e21567..0000000000000000000000000000000000000000 --- a/funcom_test/38531345.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void closeAllCollections(){ - Object[] collectionObjects = this.getAllStoredObjects(); - for (int i = 0; i < collectionObjects.length; i++){ - Collection collection = (Collection) collectionObjects[i]; - try { - collection.close(); - } catch (XMLDBException e){ - log.warn("Error closing collection on cleanup",e); - } - } - } - COM: <s> closes all known collections use for cleanup </s> - diff --git a/funcom_test/38531346.txt b/funcom_test/38531346.txt deleted file mode 100644 index 8931811b3d078a92e7ec6657cb539ab1986923f2..0000000000000000000000000000000000000000 --- a/funcom_test/38531346.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetSize() throws Exception { - System.out.println("testGetSize"); - - // Add your test code below by replacing the default call to fail. - long size = this.resourceSet.getSize(); - assertTrue("Returned size was not expected", this.numQueryResults == size); - } - COM: <s> test of get size method of class gov </s> - diff --git a/funcom_test/38531361.txt b/funcom_test/38531361.txt deleted file mode 100644 index 6493c3874964c7212457594ca08ef9db84740fbf..0000000000000000000000000000000000000000 --- a/funcom_test/38531361.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetVersion() throws Exception { - System.out.println("testGetVersion"); - - // Add your test code below by replacing the default call to fail. - String version = this.service.getVersion(); - assertNotNull("Version returned null",version); - assertEquals("Incorrect version number",this.xPathQueryServiceVersion, version); - } - COM: <s> test of get version method of class gov </s> - diff --git a/funcom_test/38531429.txt b/funcom_test/38531429.txt deleted file mode 100644 index 8df252ea15ce637f6a8107276787a880d387c33a..0000000000000000000000000000000000000000 --- a/funcom_test/38531429.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetXPathQueryService() throws Exception { - System.out.println("testGetService"); - - // Add your test code below by replacing the default call to fail. - String version = this.getProp("XPathQueryServiceVersion"); - String serviceName = "XPathQueryService"; - ServiceTransport transport = this.getService(serviceName, version); - } - COM: <s> test of get service method of class gov </s> - diff --git a/funcom_test/38531455.txt b/funcom_test/38531455.txt deleted file mode 100644 index 27a09f4596b0524be16116c97c52fa209e25c726..0000000000000000000000000000000000000000 --- a/funcom_test/38531455.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - if ("nmmrdb".equals(portName)) { - setnmmrdbEndpointAddress(address); - } - else { // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/38531514.txt b/funcom_test/38531514.txt deleted file mode 100644 index cd1d765342b95090f53242d73adf820ff6ca48ed..0000000000000000000000000000000000000000 --- a/funcom_test/38531514.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void clearNamespaces() throws org.xmldb.api.base.XMLDBException { - try { - stub.clearNamespaces(this.service); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> clears the name space </s> - diff --git a/funcom_test/38531516.txt b/funcom_test/38531516.txt deleted file mode 100644 index 89acc055c2da4b3b444f56a599e3a3d9587b5c29..0000000000000000000000000000000000000000 --- a/funcom_test/38531516.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getNamespace(String prefix) throws org.xmldb.api.base.XMLDBException { - try { - return stub.getNamespace(this.service, prefix); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> returns the namespace of this service </s> - diff --git a/funcom_test/38531519.txt b/funcom_test/38531519.txt deleted file mode 100644 index 061d3c5b652cfc7d6207d29002c73a577b86095c..0000000000000000000000000000000000000000 --- a/funcom_test/38531519.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeNamespace(String prefix) throws org.xmldb.api.base.XMLDBException { - try { - stub.removeNamespace(this.service, prefix); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> removes the namespace </s> - diff --git a/funcom_test/38531521.txt b/funcom_test/38531521.txt deleted file mode 100644 index d99b794b9b8130a14036372945f30204d0103a31..0000000000000000000000000000000000000000 --- a/funcom_test/38531521.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setNamespace(String prefix, String uri) throws org.xmldb.api.base.XMLDBException { - try { - stub.setNamespace(this.service, prefix, uri); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> sets the namespace </s> - diff --git a/funcom_test/38531533.txt b/funcom_test/38531533.txt deleted file mode 100644 index c8b60aaa828aa515183ab4efc5abbdd526b85a43..0000000000000000000000000000000000000000 --- a/funcom_test/38531533.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getDocumentId() throws org.xmldb.api.base.XMLDBException { - try { - return stub.getDocumentId(this.resourceTransport); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException( - org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e.toString()); - } - } - COM: <s> returns the id identifying this document this xmlresource is part of </s> - diff --git a/funcom_test/38531542.txt b/funcom_test/38531542.txt deleted file mode 100644 index 0a85e562406b01e18ebe9978f8b18ba7700547f5..0000000000000000000000000000000000000000 --- a/funcom_test/38531542.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void close() throws org.xmldb.api.base.XMLDBException { - try { - this.stub.close(this.collectionTransport); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - } - COM: <s> closes the this collection and releases the resources </s> - diff --git a/funcom_test/38531543.txt b/funcom_test/38531543.txt deleted file mode 100644 index 9d3eebadfef3a95a7e4c957648fc5ff9ca2c29de..0000000000000000000000000000000000000000 --- a/funcom_test/38531543.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean acceptsURI(String uri) throws org.xmldb.api.base.XMLDBException { - try { - return stub.acceptsURI(uri); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - } - COM: <s> determines if this database accepts the specified uri </s> - diff --git a/funcom_test/38531545.txt b/funcom_test/38531545.txt deleted file mode 100644 index 235adde2e43cc47c387df4eaa1692082aa4490f9..0000000000000000000000000000000000000000 --- a/funcom_test/38531545.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getConformanceLevel() throws org.xmldb.api.base.XMLDBException { - try { - return stub.getConformanceLevel(); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - } - COM: <s> returns the conformance level of the remote database interface </s> - diff --git a/funcom_test/38531549.txt b/funcom_test/38531549.txt deleted file mode 100644 index 62b0ea1c0e65e1cafe986d1c7c68330828f042d2..0000000000000000000000000000000000000000 --- a/funcom_test/38531549.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String createId() throws org.xmldb.api.base.XMLDBException { - try { - return this.stub.createId(this.collectionTransport); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> creates a new id which is used to create a resource </s> - diff --git a/funcom_test/38531551.txt b/funcom_test/38531551.txt deleted file mode 100644 index 591935747992183478fc4af3bba26877550ff85a..0000000000000000000000000000000000000000 --- a/funcom_test/38531551.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getName() throws org.xmldb.api.base.XMLDBException { - try { - return stub.getName(); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - } - COM: <s> returns the name </s> - diff --git a/funcom_test/38531557.txt b/funcom_test/38531557.txt deleted file mode 100644 index 1222b8f0ca79d93762807f035005a5ca2717fa91..0000000000000000000000000000000000000000 --- a/funcom_test/38531557.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void clear() throws org.xmldb.api.base.XMLDBException { - try { - this.stub.clear(this.resourceSet); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - } - COM: <s> clears this resrouce set of resource </s> - diff --git a/funcom_test/38531558.txt b/funcom_test/38531558.txt deleted file mode 100644 index 5e40b02246ee460a7defaa6bfe61f6ec5feaa9f0..0000000000000000000000000000000000000000 --- a/funcom_test/38531558.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public long getSize() throws org.xmldb.api.base.XMLDBException { - try { - return this.stub.getSize(this.resourceSet); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - } - COM: <s> gets the the number of resources in this set </s> - diff --git a/funcom_test/38531560.txt b/funcom_test/38531560.txt deleted file mode 100644 index d434500717f17c4f139df61bfd7cd64ce0f34dc4..0000000000000000000000000000000000000000 --- a/funcom_test/38531560.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getChildCollectionCount() throws org.xmldb.api.base.XMLDBException { - try { - return this.stub.getChildCollectionCount(this.collectionTransport); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> returns the number of child collections </s> - diff --git a/funcom_test/38531562.txt b/funcom_test/38531562.txt deleted file mode 100644 index 25ce93826384675379c50e94d26c9967b2c49161..0000000000000000000000000000000000000000 --- a/funcom_test/38531562.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeResource(long index) throws org.xmldb.api.base.XMLDBException { - try { - this.stub.removeResource(this.resourceSet, index); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> removes the resource from this resource set </s> - diff --git a/funcom_test/38531583.txt b/funcom_test/38531583.txt deleted file mode 100644 index c4bc6c147808b9703b6493b7e1177f13f7dae1f3..0000000000000000000000000000000000000000 --- a/funcom_test/38531583.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String getProperty(String str) throws org.xmldb.api.base.XMLDBException { - throw new org.xmldb.api.base.XMLDBException( - org.xmldb.api.base.ErrorCodes.NOT_IMPLEMENTED,"getProperty Not " + - "implemented in the gov.noaa.gdsg.xmldbremote.xmldbClient.XmldbClientCollection class."); - } - COM: <s> throws a not implemeted exception </s> - diff --git a/funcom_test/38531597.txt b/funcom_test/38531597.txt deleted file mode 100644 index a3646ead73d010e751e8bd6cea60cb3944680ca5..0000000000000000000000000000000000000000 --- a/funcom_test/38531597.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getResourceCount() throws org.xmldb.api.base.XMLDBException { - try { - return this.stub.getResourceCount(this.collectionTransport); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> returns the number of resource in this record set </s> - diff --git a/funcom_test/38531598.txt b/funcom_test/38531598.txt deleted file mode 100644 index df742c5fdbdc57ae4fa35e759877fc74c357c417..0000000000000000000000000000000000000000 --- a/funcom_test/38531598.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetId() throws Exception { - System.out.println("testGetId"); - - // TODO add your test code below by replacing the default call to fail. - resource.setId("id"); - assertEquals("unexpected id","id",resource.getId()); - } - COM: <s> test of get id method of class gov </s> - diff --git a/funcom_test/38531616.txt b/funcom_test/38531616.txt deleted file mode 100644 index b72ce08e53923f87a389054a3d0f921c7f817a8a..0000000000000000000000000000000000000000 --- a/funcom_test/38531616.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isOpen() throws org.xmldb.api.base.XMLDBException { - try { - return this.stub.isOpen(this.collectionTransport); - } catch (java.rmi.RemoteException e){ - throw new org.xmldb.api.base.XMLDBException(org.xmldb.api.base.ErrorCodes.VENDOR_ERROR, e); - } - - } - COM: <s> determines if this collection is open </s> - diff --git a/funcom_test/38531636.txt b/funcom_test/38531636.txt deleted file mode 100644 index 65c62ea6c052fa5e9099ee2074e8b7b1725710e6..0000000000000000000000000000000000000000 --- a/funcom_test/38531636.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testGetContentAsSAX() throws Exception { - System.out.println("testGetContentAsSAX"); - try { - resource.getContentAsSAX(null); - fail("excpetion expected"); - } catch (XMLDBException expected){ - assertEquals("expected not implemented",ErrorCodes.NOT_IMPLEMENTED,expected.errorCode); - - } - } - COM: <s> test of get content as sax method of class gov </s> - diff --git a/funcom_test/38531650.txt b/funcom_test/38531650.txt deleted file mode 100644 index 8c2dd3fcfd8f763a67a4a9bbf3226ce48bdaa390..0000000000000000000000000000000000000000 --- a/funcom_test/38531650.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testSetResourceAsNode() { - System.out.println("testSetResourceAsNode"); - - // TODO add your test code below by replacing the default call to fail. - try { - this.handler.setResourceAsNode(null); - fail("Exception expected"); - } catch (UnsupportedOperationException expected){ - //expected - } - } - COM: <s> test of set resource as node method of class gov </s> - diff --git a/funcom_test/38531652.txt b/funcom_test/38531652.txt deleted file mode 100644 index dea0f8dd3211c663cbf5c15b3eafe28750fff387..0000000000000000000000000000000000000000 --- a/funcom_test/38531652.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetContentAsDOM() throws Exception { - System.out.println("testGetContentAsDOM"); - - // TODO add your test code below by replacing the default call to fail. - Node node = resource.getContentAsDOM(); - assertNotNull("expected a valid node",node); - assertEquals("expected a document root","#document",node.getNodeName()); - } - COM: <s> test of get content as dom method of class gov </s> - diff --git a/funcom_test/38531653.txt b/funcom_test/38531653.txt deleted file mode 100644 index 59f27cae6edc4ceaf44dd7385ea4316df743a6a8..0000000000000000000000000000000000000000 --- a/funcom_test/38531653.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetResourceAsDocument() throws Exception { - System.out.println("testGetResourceAsDocument"); - - // TODO add your test code below by replacing the default call to fail. - Document doc = this.handler.getResourceAsDocument(); - assertNotNull(doc); - assertEquals("expected document name","#document",doc.getNodeName()); - } - COM: <s> test of get resource as document method of class gov </s> - diff --git a/funcom_test/38531656.txt b/funcom_test/38531656.txt deleted file mode 100644 index a56975315ebbb46c145bcf88b408679b34108080..0000000000000000000000000000000000000000 --- a/funcom_test/38531656.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetUrl() { - System.out.println("testGetUrl"); - - // TODO add your test code below by replacing the default call to fail. - URL url = this.handler.getUrl(); - assertNotNull("a url was expected",url); - assertEquals("unexpected url",testUrl,url); - } - COM: <s> test of get url method of class gov </s> - diff --git a/funcom_test/38531663.txt b/funcom_test/38531663.txt deleted file mode 100644 index 9d04df6c8f34c85366d1569b87dcfe2815e95484..0000000000000000000000000000000000000000 --- a/funcom_test/38531663.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testGetUrlString() { - System.out.println("testGetUrlString"); - - // TODO add your test code below by replacing the default call to fail. - - String urlStr = this.handler.getUrlString(); - assertNotNull("urlStr was expected",urlStr); - assertEquals("unexpected urlString",testUrl.toExternalForm(),urlStr); - } - COM: <s> test of get url string method of class gov </s> - diff --git a/funcom_test/38531670.txt b/funcom_test/38531670.txt deleted file mode 100644 index b18f21d6d969c99562e7f865ca2e6ecf929b8019..0000000000000000000000000000000000000000 --- a/funcom_test/38531670.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testSetUrlString() throws Exception { - System.out.println("testSetUrlString"); - - // TODO add your test code below by replacing the default call to fail. - UrlHandler handler = new UrlHandler(); - handler.setUrlString("http://www.eatmutton.com/index.html"); - } - COM: <s> test of set url string method of class gov </s> - diff --git a/funcom_test/38531674.txt b/funcom_test/38531674.txt deleted file mode 100644 index 2503bfdb0d044ba162059ea10c88c8c3bc636d8f..0000000000000000000000000000000000000000 --- a/funcom_test/38531674.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetTimeBetweenChecks() { - System.out.println("testGetTimeBetweenChecks"); - - // TODO add your test code below by replacing the default call to fail. - long handlerTime = handler.getMillisBetweenChecks(); - assertEquals("unexpected handler time",0,handlerTime); - } - COM: <s> test of get time between checks method of class gov </s> - diff --git a/funcom_test/38531679.txt b/funcom_test/38531679.txt deleted file mode 100644 index d14c3688841f37b88c45a41f662f25b7de6c98eb..0000000000000000000000000000000000000000 --- a/funcom_test/38531679.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testSetTimeBetweenChecks() { - System.out.println("testSetTimeBetweenChecks"); - - // TODO add your test code below by replacing the default call to fail. - handler.setMillisBetweenChecks(5); - assertEquals("Unexpected millis",5,handler.getMillisBetweenChecks()); - } - COM: <s> test of set time between checks method of class gov </s> - diff --git a/funcom_test/38531798.txt b/funcom_test/38531798.txt deleted file mode 100644 index 60bc4a37801cb94d0423e245e04bd727a48e8f04..0000000000000000000000000000000000000000 --- a/funcom_test/38531798.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Service getService(String name, String version) throws XMLDBException { - for (int i = 0; i < services.length; i++){ - if (name.equals(services[i].getName()) && version.equals(services[i].getVersion())){ - return services[i]; - } - } - throw new XMLDBException(ErrorCodes.NO_SUCH_SERVICE); - } - COM: <s> returns the available service with the specified name and version </s> - diff --git a/funcom_test/3860496.txt b/funcom_test/3860496.txt deleted file mode 100644 index 401baaed9719ef38970d5b098d96c3855b1aefcb..0000000000000000000000000000000000000000 --- a/funcom_test/3860496.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean equals(final Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PamReturnValue)) { - return false; - } - final PamReturnValue pamReturnValue = (PamReturnValue) o; - if (id != pamReturnValue.id) { - return false; - } - return true; - } - COM: <s> returns true if the supplied object is of the </s> - diff --git a/funcom_test/3860512.txt b/funcom_test/3860512.txt deleted file mode 100644 index 7bd046c869e55dd47c9749668243858d58438976..0000000000000000000000000000000000000000 --- a/funcom_test/3860512.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testUserWithEmptyCredentials() { - PamReturnValue pamReturnValue = pam.authenticate(user1Credentials, ""); - //RedHat and Mac OS X - assertTrue(pamReturnValue.equals(PamReturnValue.PAM_AUTH_ERR) - // Novell Linux Desktop 9 - || pamReturnValue.equals(PamReturnValue.PAM_USER_UNKNOWN)); - } - COM: <s> a test that empty credentials cause an authentication error but no exception or </s> - diff --git a/funcom_test/3860540.txt b/funcom_test/3860540.txt deleted file mode 100644 index d52a5e59f4b83cfa848ed384e7f2ae84067b8fca..0000000000000000000000000000000000000000 --- a/funcom_test/3860540.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testUserWithEmptyCredentials() { - Pam pam = new Pam(); - PamReturnValue pamReturnValue = pam.authenticate(user1Credentials, ""); - assertTrue(pamReturnValue.equals(PamReturnValue.PAM_USER_UNKNOWN) - || pamReturnValue.equals(PamReturnValue.PAM_AUTH_ERR)); - } - COM: <s> a test that empty credentials cause an error </s> - diff --git a/funcom_test/3860543.txt b/funcom_test/3860543.txt deleted file mode 100644 index 2e47504657b914bfcb110f32be7b0638f367ea00..0000000000000000000000000000000000000000 --- a/funcom_test/3860543.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testUserWithEmptyUsername() { - Pam pam = new Pam(); - PamReturnValue pamReturnValue = pam.authenticate(user1Name, ""); - assertTrue(pamReturnValue.equals(PamReturnValue.PAM_PERM_DENIED) - || pamReturnValue.equals(PamReturnValue.PAM_AUTH_ERR)); - } - COM: <s> the actual error depends on the pam modules involved </s> - diff --git a/funcom_test/3860554.txt b/funcom_test/3860554.txt deleted file mode 100644 index ccb6f7acc6e8a8ad81204f369e79faf0f0c0a062..0000000000000000000000000000000000000000 --- a/funcom_test/3860554.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testLoginContextBadPassword() throws LoginException { - LoginContext loginContext; - callbackCredentials = user1BadCredentials; - loginContext = new LoginContext("net-sf-jpam", new JpamCallbackHandler()); - try { - loginContext.login(); - fail(); - } catch (FailedLoginException e) { - // - } - } - COM: <s> checks what happens if a bad password is given </s> - diff --git a/funcom_test/38735825.txt b/funcom_test/38735825.txt deleted file mode 100644 index 66035de7a6bcc844c7c74b7cacae4a45474cc033..0000000000000000000000000000000000000000 --- a/funcom_test/38735825.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String encrypt(String str) { - if (str == null) return null; - try { - // Encode the string into bytes using utf-8 - byte[] utf8 = str.getBytes("UTF8"); - // Encrypt - byte[] enc = ecipher.doFinal(utf8); - // Encode bytes to base64 to get a string - return StringEncoder64.encode(enc); - } catch (Exception e) { - } - return null; - } - COM: <s> takes a single string as an argument and returns an encrypted version </s> - diff --git a/funcom_test/38735827.txt b/funcom_test/38735827.txt deleted file mode 100644 index c709b8a4daf4d922ddd40436be110d24ac977f67..0000000000000000000000000000000000000000 --- a/funcom_test/38735827.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String decrypt(String str) { - if (str == null) return null; - try { - // Decode base64 to get bytes - byte[] dec = StringEncoder64.decode(str); - // Decrypt - byte[] utf8 = dcipher.doFinal(dec); - // Decode using utf-8 - return new String(utf8, "UTF8"); - } catch (Exception e) { - } - return null; - } - COM: <s> takes a encrypted string as an argument decrypts and returns the </s> - diff --git a/funcom_test/38736046.txt b/funcom_test/38736046.txt deleted file mode 100644 index 3f6aa673e008183750fa1546173966cc0c319241..0000000000000000000000000000000000000000 --- a/funcom_test/38736046.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void signOut(User user) throws RemoteException { - //update user in the group list - if(user==null) return; - connectedClients.remove(user.getId()); - connectedClientsIPs.remove(user.getId()); - user.setStatus_id(IConstant.SIGN_OUT); - updateUserStatus(user); - } - COM: <s> method to sign out </s> - diff --git a/funcom_test/38736684.txt b/funcom_test/38736684.txt deleted file mode 100644 index 3bf75ba15cfd0e0c414839cb6d3395ec5e6a1129..0000000000000000000000000000000000000000 --- a/funcom_test/38736684.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public User createUser(User user,String authToken) throws RemoteException { - if(!this.authToken.equals(authToken)){ - throw new RemoteException("Invalid Login Token"); - } - user=userBD.createUser(user); - if(user!=null){ - passwords.put(user.getId(), serverSettingBean.getDefualtPassword()); - return user; - }else{ - return null; - } - } - COM: <s> public method to create new user used by the admin user </s> - diff --git a/funcom_test/38737384.txt b/funcom_test/38737384.txt deleted file mode 100644 index cbf8e57fb312e44924b2c8e464841cc369cb0d58..0000000000000000000000000000000000000000 --- a/funcom_test/38737384.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int setSecurityMode(int level,String authToken) throws RemoteException { - if(!this.authToken.equals(authToken)){ - throw new RemoteException("Invalid Login Token"); - } - serverSettingBean.setSecureMode(""+level); - serverSettingBean.updateSettings(); - securityMode=level; - return securityMode; - } - COM: <s> public method to set the security level </s> - diff --git a/funcom_test/38755680.txt b/funcom_test/38755680.txt deleted file mode 100644 index 8984a43db8a02f6b4800dd6d1453b18b97e1057b..0000000000000000000000000000000000000000 --- a/funcom_test/38755680.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toShortString() { - String typestring; - if ((source instanceof SpatialVertex) && (target instanceof SpatialVertex)) { - typestring = "neighbours "; - } else { - typestring = (this.type == EdgeType.CONTAINS ? "contains " : "delegates to "); - } - return (source.toString() + " " + typestring + target.toString()); - } - COM: <s> converts to a natural language string without the preconditions </s> - diff --git a/funcom_test/38755877.txt b/funcom_test/38755877.txt deleted file mode 100644 index 38e8591074f5523363bed00921ac8a1f144a57ec..0000000000000000000000000000000000000000 --- a/funcom_test/38755877.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean containsTerm(Term target) { - for (Iterator iter = getSubformulas().iterator(); iter.hasNext(); ) { - if (((Formula) iter.next()).containsTerm(target)) { - return true; - } - } - - for (Iterator iter = getTopLevelTerms().iterator(); iter.hasNext(); ) { - if (((Term) iter.next()).containsTerm(target)) { - return true; - } - } - - return false; - } - COM: <s> returns true if this formula contains the given term </s> - diff --git a/funcom_test/38755898.txt b/funcom_test/38755898.txt deleted file mode 100644 index 7db5997c4277f16f3fb64e0d33ab9bcc8bb91fde..0000000000000000000000000000000000000000 --- a/funcom_test/38755898.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void partialAttack(EdgeManager edgeManager, VertexManager vertexManager, List<Edge> selected) { - findPartialAttack.run(edgeManager, vertexManager, generateFullGraph.getBaseConditions(), selected, maxAttacks, noLoop, memo); - } - COM: <s> start the find a partial attack algorithm </s> - diff --git a/funcom_test/38755918.txt b/funcom_test/38755918.txt deleted file mode 100644 index e3c943adb67232653408a2ebc81b785b8845c8c8..0000000000000000000000000000000000000000 --- a/funcom_test/38755918.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Edge createEdge(Vertex source, Vertex target, EdgeType type, int iteration, HashMap<Vertex, Set<Edge>> preconditions) { - if (type == EdgeType.CONTAINS) { - source.addChild(target); - target.addParent(source); - } else { - target.addOrigin(source); - source.addDelegatee(target); - } - return this.edges.store(source, target, type, iteration, preconditions); - } - COM: <s> create a new edge </s> - diff --git a/funcom_test/38755926.txt b/funcom_test/38755926.txt deleted file mode 100644 index e8c641a0ad81f471f89afbf687e0085687526068..0000000000000000000000000000000000000000 --- a/funcom_test/38755926.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeEdge(Edge edge) { - this.edges.remove(edge); - - if (edge.isDelegation()) { - edge.getSource().removeDelegatee(edge.getTarget()); - edge.getTarget().removeOrigin(edge.getSource()); - } else { - edge.getSource().removeChild(edge.getTarget()); - edge.getTarget().removeParent(edge.getSource()); - } - } - COM: <s> remove an edge from the model </s> - diff --git a/funcom_test/38756046.txt b/funcom_test/38756046.txt deleted file mode 100644 index 9438c412b2a51bb24e0c9be83a290c6bd3f80ffc..0000000000000000000000000000000000000000 --- a/funcom_test/38756046.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getCurrentActionLog() { - String res =""; - for(LogEntry l : this.currentLog){ - if (l.getAttackAction()==this.current.get(this.currentAction)){ - res+=l.toShortString()+" | "; - } - } - return res; - } - COM: <s> get a string representation of the log entry or entries caused by </s> - diff --git a/funcom_test/38756063.txt b/funcom_test/38756063.txt deleted file mode 100644 index b37259b68eb323dbefd50a5e254091c7ea42d451..0000000000000000000000000000000000000000 --- a/funcom_test/38756063.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void firstAction() { - if (current != null && currentAction != 0) { - for (int i = currentAction; i > 0; i--) { - if (!previousAction()) - break; - } - currentAction = 0; - getPortunesController().notifyObservers(Message.ACTION_CHANGED); - } - } - COM: <s> go to the first action </s> - diff --git a/funcom_test/38756064.txt b/funcom_test/38756064.txt deleted file mode 100644 index 8ccbb013221b205f13768d3f0c0893cc049b87b9..0000000000000000000000000000000000000000 --- a/funcom_test/38756064.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void lastAction() { - if (current != null && currentAction != current.size() - 1) { - for (int i = currentAction; i < current.size() - 1; i++) { - if (!nextAction()) - break; - } - currentAction = current.size() - 1; - getPortunesController().notifyObservers(Message.ACTION_CHANGED); - } - } - COM: <s> go to the last action </s> - diff --git a/funcom_test/38756065.txt b/funcom_test/38756065.txt deleted file mode 100644 index 1314ac51527250ff343df7183db910ba521a0cc5..0000000000000000000000000000000000000000 --- a/funcom_test/38756065.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void clear() { - this.attacks = null; - this.current = null; - this.currentAction = 0; - //for(Vertex v : oldVertices.keySet()){ - // getPortunesController().getVertexController().swapVertex(v, oldVertices.get(v)); - //} - getPortunesController().notifyObservers(Message.ATTACK_CLEARED); - } - COM: <s> clear the attacks </s> - diff --git a/funcom_test/38756081.txt b/funcom_test/38756081.txt deleted file mode 100644 index 287d5ebd85d89f1356151b0f78b01be71fa80851..0000000000000000000000000000000000000000 --- a/funcom_test/38756081.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void addVertex(GuiVertex vertex) { - if (this.vertices.put(vertex.getVertex(), vertex) != null) { - this.log.debug("Vertex with same name added to the graph: "); - this.log.debug(vertex.getVertex().getName()); - } - this.getPortunesController().getJGraphController().addVertex(vertex); - } - COM: <s> add a vertex to the map </s> - diff --git a/funcom_test/38756090.txt b/funcom_test/38756090.txt deleted file mode 100644 index 19e7f8b344e915a2e7afb4e53552be2e46537e40..0000000000000000000000000000000000000000 --- a/funcom_test/38756090.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void createPolicy(Vertex vertex, PolicyType type, Vertex identity, Vertex location, List<Vertex> credentials, boolean isLogged, int maintainanceCost, int deploymentCost) { - this.policyManager.createPolicy(vertex, type, identity, location, credentials, isLogged, maintainanceCost, deploymentCost); - } - COM: <s> create a new policy </s> - diff --git a/funcom_test/38756178.txt b/funcom_test/38756178.txt deleted file mode 100644 index 561aa4567bd5190457410a942b7ccb3ecb3b04d0..0000000000000000000000000000000000000000 --- a/funcom_test/38756178.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void createUpdateAndShowPanel() { - this.addTab("Show", this.showPolicyPanel); - this.addTab("Add", this.addPolicyPanel); - this.addTab("Edit", this.editPolicyPanel); - this.setEnabledAt(1, false); - this.setEnabledAt(2, false); - } - COM: <s> create and show the panel </s> - diff --git a/funcom_test/38817248.txt b/funcom_test/38817248.txt deleted file mode 100644 index 435b4f4b0ff9fa4f10e31dea227c3b3081794333..0000000000000000000000000000000000000000 --- a/funcom_test/38817248.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void run(){ - while(run){ - this.oldTimeStamp = this.curTimeStamp; - this.curTimeStamp = System.nanoTime(); - this.appLoopSpeed = this.curTimeStamp - this.oldTimeStamp; - long appSpeedDiff = this.prefSpeed - this.appLoopSpeed; - if(appSpeedDiff>0){ - try { - Thread.sleep(appSpeedDiff/1000000); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - } - } - COM: <s> this method is the main application loop </s> - diff --git a/funcom_test/38817324.txt b/funcom_test/38817324.txt deleted file mode 100644 index de5c4404aef547ce817ceb7782b936399395f699..0000000000000000000000000000000000000000 --- a/funcom_test/38817324.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean delete(BaseDataObject dataObject){ - try { - Statement stmt = ConnectionJDBC.getConnection().getConn().createStatement(); - String SQL = SQLDefinition.SQLDELETE + " " + SQLDefinition.SQLFROM + " " + dataObject.getSourceTable(); - SQL += " " + SQLDefinition.SQLWHERE + " " + "ID=" + dataObject.getId(); - stmt.execute(SQL); - return true; - } catch (SQLException e) { - e.printStackTrace(); - return false; - } - } - COM: <s> this method deletes a record permanently from the database </s> - diff --git a/funcom_test/38817390.txt b/funcom_test/38817390.txt deleted file mode 100644 index eb00cbe42e6ca3c4350a77694e2aff102dd51d12..0000000000000000000000000000000000000000 --- a/funcom_test/38817390.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void sort(){ - if(this.def.isAscending()){ - java.util.Collections.sort(this.showValues); - } else { - //fiddling around to have the empty value at the top but descending order in general - this.showValues.remove(""); - java.util.Collections.sort(this.showValues, java.util.Collections.reverseOrder()); - ArrayList<String> newVal = new ArrayList<String>(); - newVal.add(""); - for (String string : this.showValues) { - newVal.add(string); - } - this.showValues = newVal; - } - } - COM: <s> this method sorts the filter based on the contained frontend show values </s> - diff --git a/funcom_test/38817445.txt b/funcom_test/38817445.txt deleted file mode 100644 index 0e5c8f0c8d2e63a1d3a2f168013d0ccaf823442c..0000000000000000000000000000000000000000 --- a/funcom_test/38817445.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void createMenuItem(JMenu menu, String itemLabel, EnumMenuItemAction action, int mnemonic){ - JMenuItem menuItem = new JMenuItem(DataObjectFactory.getInstance().getLanguageContent(AppController.getInstance().getActiveLanguage(), itemLabel)); - menuItem.setMnemonic(mnemonic); - menuItem.addActionListener(new Action(action)); - menu.add(menuItem); - } - COM: <s> create a menu item in the handed in i jmenu i </s> - diff --git a/funcom_test/38846744.txt b/funcom_test/38846744.txt deleted file mode 100644 index f1854a6356e24211031ff851dee2da2cc2c55973..0000000000000000000000000000000000000000 --- a/funcom_test/38846744.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addCommands(PDFPage page, AffineTransform extra) { - synchronized (commands) { - addPush(); - if (extra!=null) { - addXform(extra); - } - //addXform(page.getInitialTransform()); - commands.addAll(page.getCommands()); - addPop(); - } - - // notify any outstanding images - updateImages(); - } - COM: <s> add a collection of commands to the page list </s> - diff --git a/funcom_test/38847026.txt b/funcom_test/38847026.txt deleted file mode 100644 index 5f8fa11de52c9b1769d1d07c35b52ad54e1d26ff..0000000000000000000000000000000000000000 --- a/funcom_test/38847026.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: @Override public Object clone() { - ParserState newState = new ParserState(); - - // no need to clone color spaces, since they are immutable - newState.fillCS = fillCS; - newState.strokeCS = strokeCS; - - // we do need to clone the textFormat - newState.textFormat = (PDFTextFormat) textFormat.clone(); - - return newState; - } - COM: <s> clone the render state </s> - diff --git a/funcom_test/38884612.txt b/funcom_test/38884612.txt deleted file mode 100644 index 8a2dc6959d9d1d37916a15db858a00757729adb9..0000000000000000000000000000000000000000 --- a/funcom_test/38884612.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean epsilonEquals(ITransform3D t1, double epsilon) { - double diff; - - for (int i = 0; i < 16; i++) { - diff = mat[i] - t1.getMatrix()[i]; - if ((diff < 0 ? -diff : diff) > epsilon) { - return false; - } - } - return true; - } - COM: <s> returns true if the l infinite distance between this matrix and matrix m1 </s> - diff --git a/funcom_test/38891720.txt b/funcom_test/38891720.txt deleted file mode 100644 index 2b31d6437f7eec402dd42a99ca42c1e62748cac5..0000000000000000000000000000000000000000 --- a/funcom_test/38891720.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int read(byte[] b, int off, int len) throws IOException { - int got = 0; - int ch; - - while (got < len) { - if ((ch = read()) == -1) { - return (got == 0) ? (-1) : got; - } - - b[off + (got++)] = (byte) (ch & 0xFF); - } - - return got; - } - COM: <s> read n bytes of data from the current part </s> - diff --git a/funcom_test/38892315.txt b/funcom_test/38892315.txt deleted file mode 100644 index fc3391c9e29aa56004d3a9c00ea483ee200b16c8..0000000000000000000000000000000000000000 --- a/funcom_test/38892315.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void commit() { - // XML element from PASSIVE - kXMLElement newActiveConf = PASSIVE.outputToXML(); - - // stop this session if started - if (user.initialized) { - user.stopUser(); - } - - // update ACTIVE from XML element 'newActiveConf' - ACTIVE.inputFromXML(newActiveConf); - - if (DEBUG) { - System.out.println(ACTIVE.outputToXML()); - } - - // start this session - user.init(ACTIVE); - } - COM: <s> commit the configuration </s> - diff --git a/funcom_test/38892362.txt b/funcom_test/38892362.txt deleted file mode 100644 index 2b1d65e91c407795bd76688de460f3e6d0a0dbe6..0000000000000000000000000000000000000000 --- a/funcom_test/38892362.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Vector addDNPElements(Vector v, DNPElement[] DNPElements) { - if (DNPElements == null) { - return v; - } - - v.setSize(Math - .max(v.size(), DNPElements[DNPElements.length - 1].Id + 1)); - - for (int i = 0; i < DNPElements.length; i++) { - v.setElementAt(DNPElements[i], DNPElements[i].Id); - } - - return v; - } - COM: <s> add each dnpelement of data map to dnpelements from id </s> - diff --git a/funcom_test/38892386.txt b/funcom_test/38892386.txt deleted file mode 100644 index 692ba343a3495aa0aa1d574910564898d97a95b3..0000000000000000000000000000000000000000 --- a/funcom_test/38892386.txt +++ /dev/null @@ -1,37 +0,0 @@ -TDAT: public int getIndexMax(byte group) { - int indexMax = 0; - - switch (DataObject.getObjectType(group)) { - case BIN_IN: - indexMax = binaryInputs[binaryInputs.length - 1].index; - - break; - - case BIN_OUT: - indexMax = binaryOutputs[binaryOutputs.length - 1].index; - - break; - - case COUNTER: - indexMax = counters[counters.length - 1].index; - - break; - - case ANA_IN: - indexMax = analogInputs[analogInputs.length - 1].index; - - break; - - case ANA_OUT: - indexMax = analogOutputs[analogOutputs.length - 1].index; - - break; - - case TIME: - indexMax = dateAndTime[analogOutputs.length - 1].index; - } - - return indexMax; - } - COM: <s> get the upper index of a data type </s> - diff --git a/funcom_test/38892394.txt b/funcom_test/38892394.txt deleted file mode 100644 index fbed630a3935f1612ec5e12f26f6efc86dd8bd9e..0000000000000000000000000000000000000000 --- a/funcom_test/38892394.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void setElementsToInvalid() { - if (DEBUG) { - System.out.println("setElementsToInvalid"); - } - - if (binaryInputs != null) { - setInvalid(binaryInputs); - } - - if (binaryOutputs != null) { - setInvalid(binaryOutputs); - } - - if (counters != null) { - setInvalid(counters); - } - - if (analogInputs != null) { - setInvalid(analogInputs); - } - - if (analogOutputs != null) { - setInvalid(analogOutputs); - } - } - COM: <s> set all elements of database with invalid flag raised </s> - diff --git a/funcom_test/38892564.txt b/funcom_test/38892564.txt deleted file mode 100644 index 58d8d4cc2989919aff3e33409f8ca15bdd121c15..0000000000000000000000000000000000000000 --- a/funcom_test/38892564.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void incrOffset(int length) { - if (length > size) { - if (DEBUG) { - System.out.println("[Buffer] WARNING : incrOffset too large"); - } - } - - if (length > length()) { - if (DEBUG) { - System.out.println("[Buffer] ERROR : incrOffset -> offset overflow"); - } - } - - offset = (offset + length) % size; - } - COM: <s> increment the offset pointer to skip the reading of some bytes </s> - diff --git a/funcom_test/38892569.txt b/funcom_test/38892569.txt deleted file mode 100644 index f49e44a51d1d55370d592748b0bdae2cc2c4c475..0000000000000000000000000000000000000000 --- a/funcom_test/38892569.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void incrMarker(int length) { - if (length > size) { - throw new ArrayIndexOutOfBoundsException( - "[Buffer] ERROR : incrMarker too large"); - } - - if (length > (size - length())) { - throw new ArrayIndexOutOfBoundsException( - "[Buffer] ERROR : incrMarker -> marker overflow"); - } - - marker = (marker + length) % size; - } - COM: <s> increment the marker pointer to skip the writing of some bytes </s> - diff --git a/funcom_test/38892570.txt b/funcom_test/38892570.txt deleted file mode 100644 index 12aa473099eea9c25e3401409a1d97579bb04690..0000000000000000000000000000000000000000 --- a/funcom_test/38892570.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void decrMarker(int length) { - if (length > size) { - throw new ArrayIndexOutOfBoundsException( - "[Buffer] ERROR : decrMarker too large"); - } - - if (length > length()) { - throw new ArrayIndexOutOfBoundsException( - "[Buffer] ERROR : decrMarker -> marker overflow"); - } - - marker = (marker - length) % size; - marker += ((marker < 0) ? size : 0); - } - COM: <s> decrement the marker pointer to recover previous bytes </s> - diff --git a/funcom_test/38892619.txt b/funcom_test/38892619.txt deleted file mode 100644 index db12b9e92a3c3fc10a73f3286fdaf57af05b5c0c..0000000000000000000000000000000000000000 --- a/funcom_test/38892619.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void ensureCapacityHelper(int minCapacity) { - int oldCapacity = elementData.length; - Object[] oldData = elementData; - int newCapacity = oldCapacity << 1; - - if (newCapacity < minCapacity) { - newCapacity = minCapacity; - } - - elementData = new Object[newCapacity]; - System.arraycopy(oldData, 0, elementData, 0, elementCount); - } - COM: <s> this implements the unsynchronized semantics of ensure capacity </s> - diff --git a/funcom_test/38892622.txt b/funcom_test/38892622.txt deleted file mode 100644 index 1cd4b09d323801eefb1e5e2f64b36f10858bdbd9..0000000000000000000000000000000000000000 --- a/funcom_test/38892622.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSize(int newSize) { - if ((newSize > elementCount) && (newSize > elementData.length)) { - ensureCapacityHelper(newSize); - } else { - for (int i = newSize; i < elementCount; i++) { - elementData[i] = null; - } - } - - elementCount = newSize; - } - COM: <s> sets the size of this vector </s> - diff --git a/funcom_test/38892640.txt b/funcom_test/38892640.txt deleted file mode 100644 index 4e65c413581c297cae0dd4e893dc36a0a78f25b3..0000000000000000000000000000000000000000 --- a/funcom_test/38892640.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void open() throws IOException { - switch (status) { - case STATUS_UNREADY: // Initialize the modem - case STATUS_READY: // Wait for the CONNECT - - try { - init(); - } catch (Exception e) { - if (DEBUG) { - log("Init failed due to: " + e); - } - - throw new IOException(); - } - - break; - - case STATUS_DATA: // Already open, discard - break; - } - } - COM: <s> if this modem is not initialized try to initialize it </s> - diff --git a/funcom_test/38892665.txt b/funcom_test/38892665.txt deleted file mode 100644 index bed866d536c60c668675d664fb9630036b3b7b3d..0000000000000000000000000000000000000000 --- a/funcom_test/38892665.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void close() { - if (!enabled) { - return; - } - - if (this.status != STATUS_DATA) { - // We are not connected... - return; - } - - try { - sendCommand(ModemCommand.HANG_UP); - setStatus(STATUS_READY); - } catch (ModemException dle) { - if (DEBUG) { - log("Hang up failed due to: " + dle); - } - - setStatus(STATUS_UNREADY); - } - } - COM: <s> close the connection established by this modem immediately </s> - diff --git a/funcom_test/38892689.txt b/funcom_test/38892689.txt deleted file mode 100644 index 3e1afa077b82941fc720c6b6470abebe283cd2f0..0000000000000000000000000000000000000000 --- a/funcom_test/38892689.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeElementAt(int index) { - int j = elementCount - index - 1; - - if (j > 0) { - System.arraycopy(elementData, index + 1, elementData, index, j); - } - - elementCount--; - elementData[elementCount] = null; /* to let gc do its work */ - } - COM: <s> deletes the component at the specified index </s> - diff --git a/funcom_test/38892694.txt b/funcom_test/38892694.txt deleted file mode 100644 index 5154eaab4071598681a526b7d74ae1c411b50ac6..0000000000000000000000000000000000000000 --- a/funcom_test/38892694.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void insertElementAt(Object obj, int index) { - int newcount = elementCount + 1; - - if (newcount > elementData.length) { - ensureCapacityHelper(newcount); - } - - System.arraycopy( - elementData, index, elementData, index + 1, elementCount - index); - elementData[index] = obj; - elementCount++; - } - COM: <s> inserts the specified object as a component in this vector at the </s> - diff --git a/funcom_test/38892719.txt b/funcom_test/38892719.txt deleted file mode 100644 index 62a22ac3f38fcdbe6376b645456d9cb7590885e2..0000000000000000000000000000000000000000 --- a/funcom_test/38892719.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private RecordStore openRS() { - if (DEBUG) { - log("Open RecordStore"); - } - - if (rms == null) { - try { - rms = RecordStore.openRecordStore(RECORD_STORE_NAME, true); - } catch (RecordStoreException e) { - if (DEBUG) { - log(e); - } - } - } - - return rms; - } - COM: <s> ensure that the record store is open </s> - diff --git a/funcom_test/38892986.txt b/funcom_test/38892986.txt deleted file mode 100644 index 4721f14f7b23d4dc0004ad11c357f12559d45490..0000000000000000000000000000000000000000 --- a/funcom_test/38892986.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void registerListeningInActiveDatabase() { - for (int i = 0; i < 8; ++i) { - DataElement elem = DatabaseApp.ACTIVE.getDataElement(databaseIDs[i]); - - if ((elem != null) && (elem instanceof DigitalInput)) { - // We want to be the owner of this digital input - elem.setDataRequestListener(this); - } - } - } - COM: <s> register us as </s> - diff --git a/funcom_test/38893091.txt b/funcom_test/38893091.txt deleted file mode 100644 index 5ab7928d706ae488fc8e05269c761257a24e7ee0..0000000000000000000000000000000000000000 --- a/funcom_test/38893091.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected void stopAllThreads() { - if (pollThread != null) { - try { - pollThread.halt(); - pollThread.join(); - } catch (Exception e) { - // Discard silently - } - - pollThread = null; - } - - if (eventThread != null) { - try { - eventThread.halt(); - eventThread.join(); - } catch (Exception e) { - } - - eventThread = null; - } - } - COM: <s> stop all threads that are running and wait for them to die </s> - diff --git a/funcom_test/38893197.txt b/funcom_test/38893197.txt deleted file mode 100644 index f020443594f5fd92de5b8c079df86c215c2429e4..0000000000000000000000000000000000000000 --- a/funcom_test/38893197.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void modemEvent(int event) { - if (ACTIVE.modem) // Don't care if we don't use a modem - { - halt(); // Ensure that the pass thru is not already running - - if (event == MODEM_UP) { - if (DEBUG) { - log("MODEM_UP"); - } - - start(); // Start the pass thru - } else if (DEBUG) { - log("MODEM_DOWN"); - } - } - } - COM: <s> receive an event from the modem </s> - diff --git a/funcom_test/38893321.txt b/funcom_test/38893321.txt deleted file mode 100644 index 6940a8faa67d2a701fead6773d9bcbb38ac4d41c..0000000000000000000000000000000000000000 --- a/funcom_test/38893321.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void init() { - authenticationProtocol = PPP_PAP; - characterMap = 0; - compressAddress = false; - compressProtocol = false; - ioFailed = false; - ipUp = false; - lcpUp = false; - magicNumber = RandomUtils.random().nextInt(); - packetID = 1; - papUp = false; - password = null; - rxOff = 0; - tempOff = 0; - txOff = 0; - username = null; - } - COM: <s> reset all attributes to their original values </s> - diff --git a/funcom_test/38893338.txt b/funcom_test/38893338.txt deleted file mode 100644 index 35c4e4da2457ff0ccee3847190fe9c85cbbeaddf..0000000000000000000000000000000000000000 --- a/funcom_test/38893338.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public int read(byte[] b, int off, int len) throws IOException { - if (pendLen == 0) { - pend = readRecord(); - - if (pend == null) { - return -1; - } - - pendStart = 0; - pendLen = pend.length; - } - - int ret = (len < pendLen) ? len : pendLen; - System.arraycopy(pend, pendStart, b, off, ret); - pendLen -= ret; - pendStart += ret; - - return ret; - } - COM: <s> read and decrypt bytes from this input stream and store some decrypted </s> - diff --git a/funcom_test/38893360.txt b/funcom_test/38893360.txt deleted file mode 100644 index 823349cb1787e1134c160580199f7d500e489015..0000000000000000000000000000000000000000 --- a/funcom_test/38893360.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void dump() { - System.out.println("PPP Packet"); - System.out.println("- protocol 0x" + Integer.toHexString(this.protocol)); - System.out.println("- length " + this.len); - System.out.println("- data"); - ArrayUtils.output(this.data, this.off, this.len); - } - COM: <s> print this packet on stdout </s> - diff --git a/funcom_test/38893372.txt b/funcom_test/38893372.txt deleted file mode 100644 index d67f6dd627e78cf43c1e4e7962064c5e2390f446..0000000000000000000000000000000000000000 --- a/funcom_test/38893372.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void pppEvent(int event) { - if (DEBUG) { - try { - log("Rcv event " + PPP_EVENT_NAME[event]); - } catch (ArrayIndexOutOfBoundsException aioobe) { - aioobe.printStackTrace(); - } - } - - // Transmit the event to the ppp server - ppp.pppEvent(event); - } - COM: <s> receive a ppp event from the channel </s> - diff --git a/funcom_test/38893411.txt b/funcom_test/38893411.txt deleted file mode 100644 index a087400d15c157402388091158950ea48c2f13c4..0000000000000000000000000000000000000000 --- a/funcom_test/38893411.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void nextFrame() throws java.io.IOException { - // If we reached the end of frame with the read() method, don't skip the - // next frame... - if (frameEnded) { - // ... But next time we will. - frameEnded = false; - - return; - } - - // Skip bytes until we find a framing character. - while (raw.read() != 0xc0) { - ; - } - } - COM: <s> reach the next frame </s> - diff --git a/funcom_test/38893463.txt b/funcom_test/38893463.txt deleted file mode 100644 index 5f77524242f2a3293a4535810df5648c42e7c61b..0000000000000000000000000000000000000000 --- a/funcom_test/38893463.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void sendChunk(byte[] b, int off, int len) throws IOException { - out.write(Integer.toHexString(len).getBytes()); - out.write(CRLF); - out.write(b, off, len); - out.write(CRLF); - } - COM: <s> send a chunk </s> - diff --git a/funcom_test/38893498.txt b/funcom_test/38893498.txt deleted file mode 100644 index c8062b771e49ff60c4986d16fab076ce9726c156..0000000000000000000000000000000000000000 --- a/funcom_test/38893498.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void write(int b) { - ensureOpen(); - - int newcount = count + 1; - - if (newcount > buf.length) { - byte[] newbuf = new byte[Math.max(buf.length << 1, newcount)]; - System.arraycopy(buf, 0, newbuf, 0, count); - buf = newbuf; - } - - buf[count] = (byte) b; - count = newcount; - } - COM: <s> writes the specified byte to this byte array output stream </s> - diff --git a/funcom_test/38894123.txt b/funcom_test/38894123.txt deleted file mode 100644 index 92d25ce385d1976a595c136385f50a23b4da8db4..0000000000000000000000000000000000000000 --- a/funcom_test/38894123.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void run() { - try { - while (running) { - synchronized (this) { - wait(); - if (!running) - continue; - } - while (!octets.isEmpty()) { - count++; - Short octet = check(((Short) octets.dequeue()).shortValue()); - if (octet != null) { - frame.enqueue(octet); - } - if (valid) { - reset(); - layer.read(frame); - } - } - } - } catch (InterruptedException e) { - CodeProperties.log("Controller error: " + e); - } - CodeProperties.log("Exit Controller"); - } - COM: <s> inherited method from thread super class </s> - diff --git a/funcom_test/38894295.txt b/funcom_test/38894295.txt deleted file mode 100644 index 3a77d66a5feccd50fb8eb68236bc2e38468b2cd7..0000000000000000000000000000000000000000 --- a/funcom_test/38894295.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String scanIdentifier(char[] input, int offset, int end) { - int begin = offset; - - while ((offset < end) && (isIdentifierChar(input[offset]))) { - offset++; - } - - if ((offset == end) || (offset == begin)) { - return null; - } else { - return new String(input, begin, offset - begin); - } - } - COM: <s> scans an identifier </s> - diff --git a/funcom_test/38894407.txt b/funcom_test/38894407.txt deleted file mode 100644 index e827b36304d8cf73544ebd52d2e7685915943faf..0000000000000000000000000000000000000000 --- a/funcom_test/38894407.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected Protocol inputProtocol(KXMLElement node) { - return new Protocol(node.getProperty(TIMEOUT, 1), node.getProperty( - RETRIES, 1), node.getProperty(CAA, 1), node.getProperty( - POLLING, 5), node.getProperty(NBTOPOLL, 1), node.getProperty( - SYNCHRO, 0), node.getProperty(GI, 0)); - } - COM: <s> instanciate a protocol for general application settings from a </s> - diff --git a/funcom_test/38894424.txt b/funcom_test/38894424.txt deleted file mode 100644 index 8b38a173dc3e287a255af94b3445e905157bb1f6..0000000000000000000000000000000000000000 --- a/funcom_test/38894424.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected KXMLElement outputProtocol(Protocol protocol) { - KXMLElement node = new KXMLElement(); - node.setTagName(PROTOCOL); - node.addProperty(CAA, protocol.caa); - node.addProperty(TIMEOUT, protocol.timeout); - node.addProperty(RETRIES, protocol.retries); - node.addProperty(POLLING, protocol.polling); - node.addProperty(NBTOPOLL, protocol.nbToPoll); - node.addProperty(SYNCHRO, protocol.synchro); - node.addProperty(GI, protocol.gi); - return node; - } - COM: <s> instanciate kxmlelement from an instance of protocol </s> - diff --git a/funcom_test/39120256.txt b/funcom_test/39120256.txt deleted file mode 100644 index a2d2f32ea0bf6eabf694c036ea57ed2f64e3f973..0000000000000000000000000000000000000000 --- a/funcom_test/39120256.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String getMessage() { - String nl = System.getProperty("line.separator"); - StringBuffer sb = new StringBuffer(); - sb.append(desc); - if (index >= 0) { - sb.append(" near index "); - sb.append(index); - } - sb.append(nl); - sb.append(pattern); - if (index >= 0) { - sb.append(nl); - for (int i = 0; i < index; i++) sb.append(' '); - sb.append('^'); - } - return sb.toString(); - } - COM: <s> returns a multi line string containing the description of the syntax </s> - diff --git a/funcom_test/39120306.txt b/funcom_test/39120306.txt deleted file mode 100644 index a2a8061633fd651bb4b6c661ea452c703e9b878d..0000000000000000000000000000000000000000 --- a/funcom_test/39120306.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String replaceFirst(String replacement) { - if (replacement == null) - throw new NullPointerException("replacement"); - StringBuffer sb = new StringBuffer(); - reset(); - if (find()) - appendReplacement(sb, replacement); - appendTail(sb); - return sb.toString(); - } - COM: <s> replaces the first subsequence of the input sequence that matches the </s> - diff --git a/funcom_test/39120328.txt b/funcom_test/39120328.txt deleted file mode 100644 index 606982eb4d9cf699df47f0c94ec801fa668b14b4..0000000000000000000000000000000000000000 --- a/funcom_test/39120328.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String toString() { - StringBuffer sb = new StringBuffer(); - sb.append("java.util.regex.Matcher"); - sb.append("[pattern=" + pattern()); - sb.append(" region="); - sb.append(regionStart() + "," + regionEnd()); - sb.append(" lastmatch="); - if ((first >= 0) && (group() != null)) { - sb.append(group()); - } - sb.append("]"); - return sb.toString(); - } - COM: <s> p returns the string representation of this matcher </s> - diff --git a/funcom_test/39120374.txt b/funcom_test/39120374.txt deleted file mode 100644 index de2bf4865453906fed74f3715d26bfa6f6b34e0a..0000000000000000000000000000000000000000 --- a/funcom_test/39120374.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String composeOneStep(String input) { - int len = countChars(input, 0, 2); - String firstTwoCharacters = input.substring(0, len); - String result = Normalizer.compose(firstTwoCharacters, false, 0); - - if (result.equals(firstTwoCharacters)) - return null; - else { - String remainder = input.substring(len); - return result + remainder; - } - } - COM: <s> attempts to compose input by combining the first character </s> - diff --git a/funcom_test/39121012.txt b/funcom_test/39121012.txt deleted file mode 100644 index 23232774436212d1a198e25cd8b49160e9f80ea0..0000000000000000000000000000000000000000 --- a/funcom_test/39121012.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private Node expr(Node end) { - Node prev = null; - for (;;) { - Node node = sequence(end); - if (prev == null) { - prev = node; - } else { - prev = new Branch(prev, node); - } - if (peek() != '|') { - return prev; - } - next(); - } - } - COM: <s> the expression is parsed with branch nodes added for alternations </s> - diff --git a/funcom_test/39121476.txt b/funcom_test/39121476.txt deleted file mode 100644 index ddb08f4a0386fd02028a79e0e0fce37c0694a21a..0000000000000000000000000000000000000000 --- a/funcom_test/39121476.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private Node family(boolean not, boolean singleLetter) { - next(); - String name; - - if (singleLetter) { - int c = temp[cursor]; - if (!Character.isSupplementaryCodePoint(c)) { - name = String.valueOf((char)c); - } else { - name = new String(temp, cursor, 1); - } - name = name.intern(); - read(); - } else { - int i = cursor; - mark('}'); - while(read() != '}') { - } - COM: <s> parses a unicode character family and returns its representative node </s> - diff --git a/funcom_test/39121916.txt b/funcom_test/39121916.txt deleted file mode 100644 index ed5139908643a3bf5af25099c13b98105687f226..0000000000000000000000000000000000000000 --- a/funcom_test/39121916.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int x() { - int n = read(); - if (ASCII.isHexDigit(n)) { - int m = read(); - if (ASCII.isHexDigit(m)) { - return ASCII.toDigit(n) * 16 + ASCII.toDigit(m); - } - } - error("Illegal hexadecimal escape sequence"); - return -1; - } - COM: <s> utility method for parsing hexadecimal escape sequences </s> - diff --git a/funcom_test/39122011.txt b/funcom_test/39122011.txt deleted file mode 100644 index fd82c3d4668fcf9d625a9c74128b81dc042c5cbe..0000000000000000000000000000000000000000 --- a/funcom_test/39122011.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int u() { - int n = 0; - for (int i = 0; i < 4; i++) { - int ch = read(); - if (!ASCII.isHexDigit(ch)) { - error("Illegal Unicode escape sequence"); - } - n = n * 16 + ASCII.toDigit(ch); - } - return n; - } - COM: <s> utility method for parsing unicode escape sequences </s> - diff --git a/funcom_test/39122102.txt b/funcom_test/39122102.txt deleted file mode 100644 index 86eaddd8cc3062427ba12652a99903b610ed6a6a..0000000000000000000000000000000000000000 --- a/funcom_test/39122102.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Node newSingle(int ch) { - int f = flags; - if ((f & (CASE_INSENSITIVE|UNICODE_CASE)) == 0) { - return new Single(ch); - } - if ((f & UNICODE_CASE) == 0) { - return new SingleA(ch); - } - return new SingleU(ch); - } - COM: <s> utility method for creating a single character matcher </s> - diff --git a/funcom_test/39215677.txt b/funcom_test/39215677.txt deleted file mode 100644 index b67a5a1f685d9513338dffbafed53de6ec601bbb..0000000000000000000000000000000000000000 --- a/funcom_test/39215677.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private boolean iamNear(Actor defender) { - short xDiff = (short) (defender.getXpos() - getXpos()); - short yDiff = (short) (defender.getYpos() - getYpos()); - if (xDiff > 1 || yDiff > 1 || xDiff < -1 || yDiff < -1) { - return false; - } - return true; - } - COM: <s> check if a player is next to another actor </s> - diff --git a/funcom_test/39233176.txt b/funcom_test/39233176.txt deleted file mode 100644 index 678a46c7cfbf66becc0d378bed2da785fccbf564..0000000000000000000000000000000000000000 --- a/funcom_test/39233176.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setBaudRate(long baudRate) throws FTD2xxException { - - // check the upper bound because the native API expects 32 bit values. - if (baudRate > 0xFFFFFFFFL) - throw new IllegalArgumentException(Localizer.getLocalizedMessage( - Port.class, "error.invalidBaudRate", baudRate)); - - setBaudRate(device.getHandle(), baudRate); - } - COM: <s> sets the baud rate of the device owning this </s> - diff --git a/funcom_test/39233183.txt b/funcom_test/39233183.txt deleted file mode 100644 index 9f35128ca2a7ccf77eaa2866ac5103c9f1157b98..0000000000000000000000000000000000000000 --- a/funcom_test/39233183.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setFlowControl(FlowControl flowControl) throws FTD2xxException { - - if (flowControl == FlowControl.XON_XOFF) - throw new IllegalArgumentException(Localizer.getLocalizedMessage( - Port.class, "error.setFlowControl1.invalidUsage")); - - setFlowControl(device.getHandle(), flowControl.value, (char) 0, - (char) 0); - } - COM: <s> sets the flow control mode for this port </s> - diff --git a/funcom_test/39233246.txt b/funcom_test/39233246.txt deleted file mode 100644 index 59b72dd0af0e5719cafa10b0565ca9f693a21d37..0000000000000000000000000000000000000000 --- a/funcom_test/39233246.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JToolBar getJToolBar() { - - if (jToolBar == null) { - jToolBar = new JToolBar(); - jToolBar.setFloatable(false); - jToolBar - .setComponentOrientation(java.awt.ComponentOrientation.RIGHT_TO_LEFT); - jToolBar.setBorderPainted(false); - jToolBar.setMargin(new java.awt.Insets(4, 0, 0, 0)); - jToolBar.setPreferredSize(new java.awt.Dimension(20, 30)); - jToolBar.add(getRefreshButton()); - } - return jToolBar; - } - COM: <s> this method initializes j tool bar </s> - diff --git a/funcom_test/39233258.txt b/funcom_test/39233258.txt deleted file mode 100644 index f35149a315f3413129e8c1131ae4ac4469245ffe..0000000000000000000000000000000000000000 --- a/funcom_test/39233258.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JSplitPane getJSplitPane() { - - if (jSplitPane == null) { - jSplitPane = new JSplitPane(); - - DevicesTreePanel p = new DevicesTreePanel(); - p.addSelectionChangeListener(this); - jSplitPane.setLeftComponent(p); - jSplitPane.setRightComponent(getJTabbedPane()); - - jSplitPane.setDividerSize(5); - jSplitPane.setDividerLocation(200); - } - return jSplitPane; - } - COM: <s> this method initializes j split pane </s> - diff --git a/funcom_test/39233260.txt b/funcom_test/39233260.txt deleted file mode 100644 index 8925d201011e42acb9388eeca8762fe0874526db..0000000000000000000000000000000000000000 --- a/funcom_test/39233260.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JTabbedPane getJTabbedPane() { - - if (jTabbedPane == null) { - jTabbedPane = new JTabbedPane(); - jTabbedPane.setTabPlacement(SwingConstants.BOTTOM); - - jTabbedPane.addTab("Descriptor", null, getDeviceDescriptorViewer(), - "Device descriptor information"); - jTabbedPane.addTab("EEPROM", null, getEEPROMViewer(), - "EEPROM User Area contents"); - - } - return jTabbedPane; - } - COM: <s> this method initializes j tabbed pane </s> - diff --git a/funcom_test/39233866.txt b/funcom_test/39233866.txt deleted file mode 100644 index b43bd2766fdf3ceeb9f8f25127f1973b8c59ff05..0000000000000000000000000000000000000000 --- a/funcom_test/39233866.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testInvoke() throws Exception { - transport.setRemoteService("TravelProcess"); - - call.setOperation("initiate"); - call.addParameter("x", XMLType.XSD_STRING, ParameterMode.IN); - call.setReturnType(XMLType.XSD_STRING); - - String result = (String) call.invoke(new Object[] { "anything" }); - - assertEquals(DUMMY_RESULT, result); - } - COM: <s> test if we can invoke a given service </s> - diff --git a/funcom_test/39233879.txt b/funcom_test/39233879.txt deleted file mode 100644 index a0162ce9fd38c02abe88e3c60ecd08e92a218ba5..0000000000000000000000000000000000000000 --- a/funcom_test/39233879.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testInvokeTooLittleParameters() throws Exception { - - transport.setRemoteService("ServiceOne"); - - call.setOperation("myOperation"); - call.setReturnType(XMLType.XSD_STRING); - - try { - call.invoke(new Object[] {}); - // if no exception is thrown, this test fails - fail("Call with too little params must throw an Exception"); - } catch (AxisFault e) { - // if we get to here, the test succeeded - } - } - COM: <s> test if a call to a operation with too little parameters throws an </s> - diff --git a/funcom_test/39233994.txt b/funcom_test/39233994.txt deleted file mode 100644 index 1053303d1e60b11d55f7f11ea03c60af92e4bb42..0000000000000000000000000000000000000000 --- a/funcom_test/39233994.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testSetProperty() { - assertNull(BexeeProperties.getProperty(PROP_KEY_3)); - BexeeProperties.setProperty(PROP_KEY_3, PROP_VAL_3); - assertEquals(PROP_VAL_3, BexeeProperties.getProperty(PROP_KEY_3)); - } - COM: <s> test if we are able to set new properties </s> - diff --git a/funcom_test/39234000.txt b/funcom_test/39234000.txt deleted file mode 100644 index aec8cd690fddac684859021981a56393f16394ed..0000000000000000000000000000000000000000 --- a/funcom_test/39234000.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testDispatchSynchronous() throws Exception { - - // create process context - ProcessContext ctx = new ProcessContext(); - - // create synchronous BPEL process - BPELProcess process = new BPELProcessImpl(); - process.setSynchronous(true); - - // create mock dispatcher with process context BPEL process - MockDispatcher dispatcher = new MockDispatcher(ctx, process); - - // get result - Object result = dispatcher.dispatch(); - - // check - assertEquals(SYNC_RESULT, result); - } - COM: <s> test if synchronous dispatching works </s> - diff --git a/funcom_test/39234003.txt b/funcom_test/39234003.txt deleted file mode 100644 index a52e67793e261d24936707e81817f77cef9bf061..0000000000000000000000000000000000000000 --- a/funcom_test/39234003.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testDispatchAsynchronous() throws Exception { - - // create process context - ProcessContext ctx = new ProcessContext(); - - // create asynchronous BPEL process - BPELProcess process = new BPELProcessImpl(); - process.setSynchronous(false); - - // create mock dispatcher with process context BPEL process - MockDispatcher dispatcher = new MockDispatcher(ctx, process); - - // get result - Object result = dispatcher.dispatch(); - - // check - assertEquals(Dispatcher.ASYNC_RESULT, result); - } - COM: <s> test if asynchronous dispatching works </s> - diff --git a/funcom_test/39234072.txt b/funcom_test/39234072.txt deleted file mode 100644 index ed8e89c7891023da6e96b7100af2ba68ee4f08e5..0000000000000000000000000000000000000000 --- a/funcom_test/39234072.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object createObject(Attributes attributes) throws Exception { - - String partnerLink = attributes.getValue(PARTNER_LINK); - String portType = attributes.getValue(PORT_TYPE); - String operation = attributes.getValue(OPERATION); - String variable = attributes.getValue(VARIABLE); - String faultName = attributes.getValue(FAULT_NAME); - - return getElementFactory().createReply( - getStandardAttributes(attributes), partnerLink, portType, - operation, variable, faultName); - } - COM: <s> prepare reply activity values and delegate object creation to the </s> - diff --git a/funcom_test/39234088.txt b/funcom_test/39234088.txt deleted file mode 100644 index f9780f22493bb1656c50c925768081b01853f291..0000000000000000000000000000000000000000 --- a/funcom_test/39234088.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object createObject(Attributes attributes) throws Exception { - - String partnerLinkName = attributes.getValue(NAME); - String partnerLinkType = attributes.getValue(PARTNER_LINK_TYPE); - String myRole = attributes.getValue(MY_ROLE); - String partnerRole = attributes.getValue(PARTNER_ROLE); - - return getElementFactory().createPartnerLink(partnerLinkName, - partnerLinkType, myRole, partnerRole); - } - COM: <s> create a code partner link impl code instance using delegation to a </s> - diff --git a/funcom_test/39234090.txt b/funcom_test/39234090.txt deleted file mode 100644 index f132f64fed07e1977e3b09a47310869d68157d06..0000000000000000000000000000000000000000 --- a/funcom_test/39234090.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object createObject(Attributes attributes) throws Exception { - - String variable = attributes.getValue(VARIABLE); - String part = attributes.getValue(PART); - String partnerLink = attributes.getValue(PARTNER_LINK); - String property = attributes.getValue(PROPERTY); - - return getElementFactory().createTo(variable, part, property, - partnerLink); - } - COM: <s> create a code to impl code instance using delegation to a </s> - diff --git a/funcom_test/39234098.txt b/funcom_test/39234098.txt deleted file mode 100644 index 6b2b09753b19b89ed97eed3362c52682179140f9..0000000000000000000000000000000000000000 --- a/funcom_test/39234098.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object createObject(Attributes attributes) throws Exception { - - String partnerLink = attributes.getValue(PARTNER_LINK); - String portType = attributes.getValue(PORT_TYPE); - String operation = attributes.getValue(OPERATION); - String variable = attributes.getValue(VARIABLE); - String createInstance = attributes.getValue(CREATE_INSTANCE); - - return getElementFactory().createReceive( - getStandardAttributes(attributes), partnerLink, portType, - operation, variable, createInstance); - } - COM: <s> create a code receive impl code activity instance using delegation to </s> - diff --git a/funcom_test/39234142.txt b/funcom_test/39234142.txt deleted file mode 100644 index 66cd7df130f427003bf1cdc61cb7db10962ac40d..0000000000000000000000000000000000000000 --- a/funcom_test/39234142.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Object createCorrelation(String set, String initiate, String pattern) { - Correlation correlation = new CorrelationImpl(); - correlation.setSet(set); - correlation.setInitiate(BooleanUtils.yesNoToBoolean(initiate)); - if (StringUtils.isNullOrEmpty(pattern)) { - correlation.setPattern(createCorrelationPattern(pattern)); - } - return correlation; - } - COM: <s> create a correlation with all parameters </s> - diff --git a/funcom_test/39234524.txt b/funcom_test/39234524.txt deleted file mode 100644 index 1733c374ba7d9c917650f9ad3e2c0f3018b095e5..0000000000000000000000000000000000000000 --- a/funcom_test/39234524.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected BPELProcess getBPELProcess(BexeeMessage message) { - - BPELProcess process = null; - String name = message.getService(); - - DAOFactory factory = DAOFactory.getInstance(); - BPELProcessDAO bpelDAO = factory.createBPELProcessDAO(); - - try { - process = bpelDAO.find(name); - } catch (DAOException e) { - log.info("Error trying to find process", e); - } - - return process; - } - COM: <s> gets the code bpelprocess code belonging to the incoming message </s> - diff --git a/funcom_test/39254457.txt b/funcom_test/39254457.txt deleted file mode 100644 index ebf95cc8073c0523f996fd9019e694cb38b7ba56..0000000000000000000000000000000000000000 --- a/funcom_test/39254457.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void save(String location) { - File f = new File(location); - - if (f.isDirectory()) { - for (String table : tables) { - String curf = f.getPath() + File.separator + table + extension; - System.out.println("Saving to " + curf); - saveFile(table, curf); - System.out.println("\t...done."); - } - } - else { - System.err.println("Save location must be a directory!"); - } - } - COM: <s> save the database to the given location </s> - diff --git a/funcom_test/39254578.txt b/funcom_test/39254578.txt deleted file mode 100644 index 0b065186827326e58d1e7e9c796f73d152d93c19..0000000000000000000000000000000000000000 --- a/funcom_test/39254578.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean stopCellEditing() { - if (textField.isEditValid()) { - try { - textField.commitEdit(); - } - catch (java.text.ParseException exc) { } - } - else { - textField.setBorder(new LineBorder(Color.red)); - return false; - } - return super.stopCellEditing(); - } - COM: <s> if there was a problem with the input try commiting it </s> - diff --git a/funcom_test/39254631.txt b/funcom_test/39254631.txt deleted file mode 100644 index 4109633ab53c6c149fd48e7b21da98fd05f3b0b9..0000000000000000000000000000000000000000 --- a/funcom_test/39254631.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public JScrollPane getSparseButtonPane(ArrayList<JRadioButton> buttons) { - JPanel pane = new JPanel(); - pane.setLayout(new BoxLayout(pane, BoxLayout.PAGE_AXIS)); - ButtonGroup group = new ButtonGroup(); - for (int i = 0; i < buttons.size(); i++) { - group.add(buttons.get(i)); - pane.add(buttons.get(i)); - } - JScrollPane scrollPane = new JScrollPane(pane); - return scrollPane; - } - COM: <s> gets the list of grouped sparse radio buttons in a scrollable pane </s> - diff --git a/funcom_test/39254662.txt b/funcom_test/39254662.txt deleted file mode 100644 index c2226be70e72c1dcd8e089171642dbe9334b75e3..0000000000000000000000000000000000000000 --- a/funcom_test/39254662.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Object construct() { - MainFrame.db = db; - MainFrame mf = null; - int cID = -1; - try { - cID = aggregator.createAggregateTimeSeries("aggregated",collections, - progressBar, mf); - return new Integer(cID); - } catch (InterruptedException e) { - e.printStackTrace(); - errors.add(new AssertionFailedError("Aggregation interrupted")); - } catch (AggregationException e) { - e.printStackTrace(); - errors.add(new AssertionFailedError("Aggregation failed.")); - } - - return new Integer(cID); - } - COM: <s> run the aggregation sending errors back if they occur </s> - diff --git a/funcom_test/39254678.txt b/funcom_test/39254678.txt deleted file mode 100644 index c94dd05883fb5b5aef15383262fa2fb26f5ffd1c..0000000000000000000000000000000000000000 --- a/funcom_test/39254678.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void finished() { - try { - System.out.println("Performing aggregation tests..."); - test.run(((Integer)getValue()).intValue()); - System.out.println("... done performing tests."); - } - catch (SQLException e) { - errors.add(new AssertionFailedError(e.getMessage())); - e.printStackTrace(); - } - catch (AssertionFailedError e) { - errors.add(e); - } - finally { - db.closeConnection(); - progressBar.disposeThis(); - done = true; - - synchronized (this) { - notifyAll(); - } - } - } - COM: <s> run the tests when the aggregation is finished </s> - diff --git a/funcom_test/39254940.txt b/funcom_test/39254940.txt deleted file mode 100644 index 0ca79e425a4120ce51e1509ff94637d74d327583..0000000000000000000000000000000000000000 --- a/funcom_test/39254940.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public int divide() { - final SwingWorker worker = new SwingWorker() { - public Object construct() { - int returnThis = innerDivide(true); - return returnThis; - } - }; - - errorUpdate = new JDialog((JFrame)container,"Clustering",true); - errorLabel = new JLabel("Clusters stabilize when change in error = 0"); - errorLabel.setSize(100,250); - errorUpdate.add(errorLabel); - errorUpdate.pack(); - errorUpdate.validate(); - // XXX: still a race condition! Not a really bad one, though. System.out.println("HERE"); - worker.start(); - errorUpdate.setVisible(true); - - return returnThis; - } - COM: <s> divide refines the centroids if needed and calls the clustering method </s> - diff --git a/funcom_test/39254959.txt b/funcom_test/39254959.txt deleted file mode 100644 index 45282cc33825b7a8199a9c0c50ebb6e468f1a992..0000000000000000000000000000000000000000 --- a/funcom_test/39254959.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void add(int location, float area) { - assert !(peaks.containsKey(location)== true && peaks.get(location)== null) : "null peak is present in list"; - Float tempArea = peaks.get(location); - if (tempArea != null) - { - peaks.put(location, tempArea + area); - } else { - peaks.put(location, area); - } - } - COM: <s> this is just like add float float except that it is assumed that </s> - diff --git a/funcom_test/39255031.txt b/funcom_test/39255031.txt deleted file mode 100644 index ec44711a558f620ede69c3394188eaf595ac05aa..0000000000000000000000000000000000000000 --- a/funcom_test/39255031.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public int divide() { - if (preClustered) { - numInitialClusters = db.getImmediateSubCollections(collection).size(); - } - else { - numInitialClusters = db.getCollectionSize(collectionID); - } - progressBar = new ProgressBarWrapper(container, "Hierarchical Clustering", numInitialClusters); - progressBar.constructThis(); - progressBar.setIndeterminate(true); - - final SwingWorker worker = new SwingWorker() { - public Object construct() { - int returnThis = innerDivide(true); - return returnThis; - } - }; - - worker.start(); - - return returnThis; - } - COM: <s> calls the clustering method </s> - diff --git a/funcom_test/39255072.txt b/funcom_test/39255072.txt deleted file mode 100644 index 47c53e5cb26ad1197eb8deb8f8648994c39a755a..0000000000000000000000000000000000000000 --- a/funcom_test/39255072.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected boolean putInSubCollection(int atomID, int target) - { - if (db.checkAtomParent(atomID,collection.getCollectionID())) - return db.moveAtom(atomID, collection.getCollectionID(), subCollectionIDs.get(target-1).intValue()); - else - return db.addAtom(atomID,subCollectionIDs.get(target-1).intValue()); - } - COM: <s> takes an atom and puts it in the identified subcollection </s> - diff --git a/funcom_test/39255123.txt b/funcom_test/39255123.txt deleted file mode 100644 index dff96b18d0f17dad4d2a44a7bb97d08e3f9b2f0b..0000000000000000000000000000000000000000 --- a/funcom_test/39255123.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setPreClustered() { - preClustered = true; - // this is a bit of a hack... - // if we're preclustered, we don't want to make another collection - // to hold the results in--jtbigwoo - if (preClustered) { - db.removeEmptyCollection(db.getCollection(newHostID)); - newHostID = collectionID; - db.renameCollection(db.getCollection(newHostID), "Hierarchical, Clusters Ward\'s" + folderName); - } - } - COM: <s> tells us whether we have preclustered the data already </s> - diff --git a/funcom_test/39255133.txt b/funcom_test/39255133.txt deleted file mode 100644 index 0e468bab61691e4a94381b1222be02f342a14664..0000000000000000000000000000000000000000 --- a/funcom_test/39255133.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean sameContents(CFNode nodeToCompare) { - boolean same = true; - int i = 0; - for (i = 0; i < cfs.size(); i++) { - if(nodeToCompare.getCFs().size()<=i || !nodeToCompare.getCFs().get(i).isEqual((cfs.get(i)))) { - same = false; - break; - } - } - if(i > nodeToCompare.getCFs().size()) - { - same = false; - } - return same; - } - COM: <s> returns true if they contain all the same cluster features </s> - diff --git a/funcom_test/39255274.txt b/funcom_test/39255274.txt deleted file mode 100644 index bd2f443281a1e327a22bdb1badb8ad653fdacd5b..0000000000000000000000000000000000000000 --- a/funcom_test/39255274.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void assignLeavesRecurse(CFNode curNode) { - if (curNode.isLeaf()) { - checkForMerge(curNode); - curNode.prevLeaf = prev; - curNode.nextLeaf = null; - if (prev != null) - prev.nextLeaf = curNode; - else - firstLeaf = curNode; - prev = curNode; - } - else { - curNode.prevLeaf = null; - curNode.nextLeaf = null; - for (int i = 0; i < curNode.getSize(); i++) - assignLeavesRecurse(curNode.getCFs().get(i).child); - } - } - COM: <s> recursive call for assigning the leaves </s> - diff --git a/funcom_test/39255314.txt b/funcom_test/39255314.txt deleted file mode 100644 index 1754d7bc5150a74d9416080fcdc132ece45a5993..0000000000000000000000000000000000000000 --- a/funcom_test/39255314.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void setUp() { - try { - Database.rebuildDatabase("TestDB"); - } catch (SQLException e2) { - // TODO Auto-generated catch block - e2.printStackTrace(); - JOptionPane.showMessageDialog(null, - "Could not rebuild the database." + - " Close any other programs that may be accessing the database and try again."); - } - db = Database.getDatabase("TestDB"); - assertTrue(db.openConnection("TestDB")); - - curRow = 0; - deleteFiles = new Vector<String>(); - table = new AMSTableModel(); - dataLoaded = false; - } - COM: <s> note does not load any data into the database </s> - diff --git a/funcom_test/39255326.txt b/funcom_test/39255326.txt deleted file mode 100644 index 32aa7f281f33fe002152fa55763b066713afffc8..0000000000000000000000000000000000000000 --- a/funcom_test/39255326.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void loadData() { - dataLoaded = true; - mf = new JFrame(); - pbar = new ProgressBarWrapper(mf, "Importing Test AMS Data", 100); - importer = new AMSDataSetImporter(table, mf, db, pbar); - - try { - importer.errorCheck(); - } catch (DisplayException ex) { - ex.printStackTrace(); - fail("Error in inserting AMS table data"); - } - - try { - importer.collectTableInfo(); - } catch (Exception ex) { - ex.printStackTrace(); - fail("Error in importing test AMS data"); - } - } - COM: <s> load data from the tablemodel and import it </s> - diff --git a/funcom_test/39255328.txt b/funcom_test/39255328.txt deleted file mode 100644 index 556af82fae00fb89577384a37e3e09c946614772..0000000000000000000000000000000000000000 --- a/funcom_test/39255328.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public String getName(){ - String s = "SPASS file"; - Character c1 = '.'; - Character c2 = '\\'; - - if (!(datasetName == null)){ - int begin = 0; - int end = datasetName.length() - 1; - for (int i = (datasetName.length()-1); i >= 0; i--) { - Character c3 = datasetName.charAt(i); - if (c1.equals(c3)) - end = i; - if (c2.equals(c3)){ - begin = i+1; - return datasetName.substring(begin,end); - } - } - return datasetName;//datasetName had no extension etc. - } - //For some reason datasetName doesn't exist - return "SPASS data"; - } - COM: <s> removes the file extension and directory information </s> - diff --git a/funcom_test/39255335.txt b/funcom_test/39255335.txt deleted file mode 100644 index 3e079e960a0792f06fdf7e5c127f9c8b2161826e..0000000000000000000000000000000000000000 --- a/funcom_test/39255335.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void printLeaves(CFNode node) { - if (node == null) - return; - assert (node.isLeaf()) : " node is not leaf!"; - System.out.println("PREV: " + node.prevLeaf + " CUR: " + node + - " NEXT: " + node.nextLeaf); - if (node.nextLeaf != null) - printLeaves(node.nextLeaf); - } - COM: <s> prints the leaf pointers </s> - diff --git a/funcom_test/39255412.txt b/funcom_test/39255412.txt deleted file mode 100644 index 34afb8db0b0637a41c77c2657709a2a90bc167b5..0000000000000000000000000000000000000000 --- a/funcom_test/39255412.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void processFile(String filename) throws InterruptedException, DisplayException{ - spassFilename = filename; - spassFile = new File(filename); - //Loops through each dataset and creates each collection. - if(progressBar.wasTerminated()){ - throw new InterruptedException(); - } - try { - - createNewCollection(); - readFileAndCreateParticles(); - } catch (NumberFormatException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - throw new DisplayException("message"); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - throw new DisplayException("message"); - } - - - particleNumber++; - - } - COM: <s> loops through each row collects the information and processes the </s> - diff --git a/funcom_test/39255457.txt b/funcom_test/39255457.txt deleted file mode 100644 index f1dc72628bb5a841b8bb78bd8a23d0d15ace15db..0000000000000000000000000000000000000000 --- a/funcom_test/39255457.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void findTreeMemory(CFNode current, boolean firstPass) { - if (firstPass) - memory=0; - memory+=current.getMemory(); - for (int i = 0; i < current.getCFs().size(); i++) - if(current.getCFs().get(i).child != null) - findTreeMemory(current.getCFs().get(i).child,false); - } - COM: <s> test code shouldnt be used in actual implementation </s> - diff --git a/funcom_test/39255487.txt b/funcom_test/39255487.txt deleted file mode 100644 index 5eeb078cc4f5edbc700315e29ba4e10aedefdf14..0000000000000000000000000000000000000000 --- a/funcom_test/39255487.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean setupRightWindowForSynchronization(Collection collection) { - Component rightWindow = mainSplitPane.getBottomComponent(); - - if (rightWindow instanceof SyncAnalyzePanel) { - SyncAnalyzePanel sap = (SyncAnalyzePanel) rightWindow; - - if (sap.containsCollection(collection)) { - sap.selectCollection(collection); - return false; - } - } - - mainSplitPane.setBottomComponent(new SyncAnalyzePanel(this, db, synchronizedPane, collection)); - return true; - } - COM: <s> display time series information </s> - diff --git a/funcom_test/39255516.txt b/funcom_test/39255516.txt deleted file mode 100644 index e3a04431a4911b7a0819f1d6d79a1fb3e4702adf..0000000000000000000000000000000000000000 --- a/funcom_test/39255516.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void notdone() { - StackTraceElement sti = null; - try { - throw new Exception(); - } - catch (Exception ex) { - sti = ex.getStackTrace()[1]; - } - - String message = "Not done: "; - message += sti.getClassName() + "." + sti.getMethodName(); - message += "(" + sti.getFileName() + ":" + sti.getLineNumber() + ")"; - System.err.println(message); - } - COM: <s> use to indicate that a method isnt complete </s> - diff --git a/funcom_test/39255540.txt b/funcom_test/39255540.txt deleted file mode 100644 index 2a02fc1cf829e14c00a271230e2b20ba76e94210..0000000000000000000000000000000000000000 --- a/funcom_test/39255540.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: protected void createAxes() { - super.createAxes(); - this.xAxis.setLabeller( - new AxisLabeller() { - private SimpleDateFormat dateFormat = - new SimpleDateFormat("M/dd/yy"); - private SimpleDateFormat timeFormat = - new SimpleDateFormat("HH:mm:ss"); - // a default labeller, which reports the value rounded to the 100s place. - public String[] label(double value) { - Date date = new Date(); - date.setTime((long)value); - String[] label = new String[2]; - label[0] = dateFormat.format(date); - label[1] = timeFormat.format(date); - return label; - } - } - ); - - } - COM: <s> update axes tests for the axes not existing yet so this method actually </s> - diff --git a/funcom_test/39255579.txt b/funcom_test/39255579.txt deleted file mode 100644 index e7f76063bac7eb760f744be6da6bfd45b2c7d45e..0000000000000000000000000000000000000000 --- a/funcom_test/39255579.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setAxisBounds(double xmin, double xmax, double ymin, double ymax) throws IllegalArgumentException { - //check for errors - if(xmin >= xmax) throw new IllegalArgumentException("Xmin >= Xmax."); - else if(ymin >= ymax) throw new IllegalArgumentException("Ymin >= Ymax."); - xAxis.setRange(xmin, xmax); - yAxis.setRange(ymin, ymax); - - repaint(); - } - COM: <s> sets new boundaries for the axes and displayed data </s> - diff --git a/funcom_test/39255745.txt b/funcom_test/39255745.txt deleted file mode 100644 index 1fea4426fab8838672932a6ed6960949a64f2e90..0000000000000000000000000000000000000000 --- a/funcom_test/39255745.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Rectangle getDataAreaBounds() { - Dimension size = getSize(); - Insets insets = getInsets(); - - int xStart = V_AXIS_PADDING + V_TITLE_PADDING + insets.left; - int yStart = TOP_PADDING + insets.top; - int width = size.width - xStart - RIGHT_PADDING - insets.right; - int height = size.height - yStart - H_AXIS_PADDING - H_TITLE_PADDING - insets.bottom; - - return new Rectangle(xStart, yStart, width, height); - } - COM: <s> indicates the portion of the chart value in which data is displayed </s> - diff --git a/funcom_test/39255758.txt b/funcom_test/39255758.txt deleted file mode 100644 index db763537479c3ba522fbc296809e5e06e241ad20..0000000000000000000000000000000000000000 --- a/funcom_test/39255758.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void paintComponent(Graphics g) { - Graphics2D g2d = (Graphics2D)g.create(); - - g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); - - // remember not to put any drawing before drawing the Background. - drawBackground((Graphics2D) g2d.create()); - updateAxes(); - drawAxes((Graphics2D) g2d.create()); - drawTickLabels((Graphics2D) g2d.create()); - drawAxisTitles((Graphics2D) g2d.create()); - - Graphics2D dataG = (Graphics2D) g2d.create(); - dataG.clip(getDataAreaBounds()); - drawData(dataG); - drawTitle((Graphics2D) g2d.create()); - - g2d.dispose(); - } - COM: <s> draws the graph </s> - diff --git a/funcom_test/39255783.txt b/funcom_test/39255783.txt deleted file mode 100644 index 8d1b90a0261fe867330294f387609e2869ac9245..0000000000000000000000000000000000000000 --- a/funcom_test/39255783.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Point getAxisTitlePointY() { - Rectangle dataArea = getDataAreaBounds(); - if(seriesNumber==1) - return new Point(dataArea.x - (int)(1.35*V_AXIS_PADDING), - dataArea.y + (dataArea.height / 2)); - if(seriesNumber==2) - return new Point(dataArea.x + dataArea.width + (int)(1.35*V_AXIS_PADDING), - dataArea.y + (dataArea.height / 2)); - System.err.println("Invalid Series Number for a ChartArea."); - return null; - } - COM: <s> used by update axes to position the label on the y axis </s> - diff --git a/funcom_test/39255899.txt b/funcom_test/39255899.txt deleted file mode 100644 index e97de432427da50f19973ef9728f0be0b4fa2637..0000000000000000000000000000000000000000 --- a/funcom_test/39255899.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void increment(int index) { - // changed semantics: When you add something past the end of a list, - // just add enough "0" elements for it to work. - try { - list.set(index, (list.get(index) + 1)); - } catch (IndexOutOfBoundsException e) { - while(list.size() < index) { - // the above condition is right because size = max index + 1. - list.add(0); - } - list.add(index,1); - assert(get(index) == 1); - } - } - COM: <s> add 1 to the specified index of the array list </s> - diff --git a/funcom_test/39258105.txt b/funcom_test/39258105.txt deleted file mode 100644 index 3457534b14966314b09c177fbd2a249aed819f51..0000000000000000000000000000000000000000 --- a/funcom_test/39258105.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean createIndex(String dataType, String fieldSpec) { - String table = getDynamicTableName(DynamicTable.AtomInfoDense, dataType); - - String indexName = "index_" + fieldSpec.replaceAll("[^A-Za-z0-9]",""); - String s = "CREATE INDEX " + indexName + " ON " + table - + " (" + fieldSpec + ")"; - - try { - Statement stmt = con.createStatement(); - boolean ret = stmt.execute(s); - stmt.close(); - return true; - } catch (SQLException e) { - System.err.println(e.toString()); - return false; - } - } - COM: <s> create an index on some part of atom info dense for a datatype </s> - diff --git a/funcom_test/39258327.txt b/funcom_test/39258327.txt deleted file mode 100644 index bf8a43b0fe07887f2d032502c499ceaa6b3a9296..0000000000000000000000000000000000000000 --- a/funcom_test/39258327.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getCollectionName(int collectionID) { - String name = ""; - try { - Statement stmt = con.createStatement(); - ResultSet rs = stmt.executeQuery("SELECT Name\n" + - "FROM Collections\n" + - "WHERE CollectionID = " + - collectionID); - rs.next(); - name = rs.getString("Name"); - stmt.close(); - } catch (SQLException e) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(),"Error retrieving the collection name for collectionID "+collectionID); - System.err.println("Exception grabbing the collection name:"); - System.err.println(e); - } - return name; - } - COM: <s> gets the collection name </s> - diff --git a/funcom_test/39259702.txt b/funcom_test/39259702.txt deleted file mode 100644 index 651e7bb6c3379c945234d03dfe64cd55a264d819..0000000000000000000000000000000000000000 --- a/funcom_test/39259702.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean renameCollection(Collection collection, String newName) { - try { - String query = "UPDATE Collections SET Name = ? WHERE CollectionID = ?"; - PreparedStatement stmt = con.prepareStatement(query); - stmt.setString(1, newName); - stmt.setInt(2, collection.getCollectionID()); - stmt.executeUpdate(); - stmt.close(); - return true; - } - catch (SQLException ex) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(),"Error renaming collection."); - System.err.println("Error renaming collection"); - ex.printStackTrace(); - return false; - } - } - COM: <s> renames a collection </s> - diff --git a/funcom_test/39260293.txt b/funcom_test/39260293.txt deleted file mode 100644 index 6f3517e59f7c43312adff382545dcf8c868bc42f..0000000000000000000000000000000000000000 --- a/funcom_test/39260293.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean addCenterAtom(int atomID, int collID){ - boolean success = false; - try { - Statement stmt = con.createStatement(); - String query = "INSERT INTO CenterAtoms \n" + - "VALUES ("+ atomID + ", " + collID + ")"; - stmt.execute(query); - stmt.close(); - success = true; - } catch (SQLException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - return success; - } - COM: <s> associates a cluster center with the collection of atoms it represents </s> - diff --git a/funcom_test/39261900.txt b/funcom_test/39261900.txt deleted file mode 100644 index f64932dd878499bdf547869a91dfc6f15c231726..0000000000000000000000000000000000000000 --- a/funcom_test/39261900.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getCollectionComment(int collectionID) { - String comment = ""; - try { - Statement stmt = con.createStatement(); - ResultSet rs = stmt.executeQuery("SELECT Comment\n" + - "FROM Collections\n" + - "WHERE CollectionID = " + - collectionID); - rs.next(); - comment = rs.getString("Comment"); - stmt.close(); - } catch (SQLException e) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(),"Error retrieving the collection comment for collectionID "+collectionID); - System.err.println("Exception grabbing the collection comment:"); - System.err.println(e); - } - return comment; - } - COM: <s> gets the collection comment </s> - diff --git a/funcom_test/39262248.txt b/funcom_test/39262248.txt deleted file mode 100644 index d645d36d394f34d1da5ad79ee23cf3d93c882981..0000000000000000000000000000000000000000 --- a/funcom_test/39262248.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getCollectionDatatype (int collectionID){ - String datatype = ""; - try{ - Statement stmt = con.createStatement(); - ResultSet rs = stmt.executeQuery( - "SELECT Datatype \n" + - "FROM Collections \n" + - "WHERE CollectionID = " + collectionID); - rs.next(); - datatype = rs.getString("Datatype"); - stmt.close(); - } catch (SQLException e){ - ErrorLogger.writeExceptionToLogAndPrompt(getName(), "Error retrieving the collection's datatype for collection " + collectionID); - System.err.println("Error retrieving Collection Datatype."); - e.printStackTrace(); - } - return datatype; - } - COM: <s> gets the collections datatype </s> - diff --git a/funcom_test/39263674.txt b/funcom_test/39263674.txt deleted file mode 100644 index 367406fa05c35a6a99ffa758d9d4ef6968a9ced6..0000000000000000000000000000000000000000 --- a/funcom_test/39263674.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean addBackupFile(String name, String path) { - boolean success = false; - try { - name = removeReservedCharacters(name); - String query = "EXEC sp_addumpdevice \'disk\', \'" + name + "\', \'" + path + "\'"; - con.createStatement().execute(query); - - success = true; - } - catch (SQLException ex) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(), "Error adding backup file"); - System.err.println("Error adding backup file - executing sp_adddumpdevice"); - ex.printStackTrace(); - } - - return success; - } - COM: <s> add a database backup location as a file </s> - diff --git a/funcom_test/39263756.txt b/funcom_test/39263756.txt deleted file mode 100644 index 66eaab6932749ae1a225d087d20c8fdd39ba6b17..0000000000000000000000000000000000000000 --- a/funcom_test/39263756.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean removeBackupFile(String name, boolean delfile) { - boolean success = false; - try { - name = removeReservedCharacters(name); - String query = "EXEC sp_dropdevice \'" + name + "\'"; - if (delfile) - query += ", \'DELFILE\'"; - con.createStatement().execute(query); - - success = true; - } - catch (SQLException ex) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(), "Error removing backup file"); - System.err.println("Error removing backup file - executing sp_dropdevice"); - ex.printStackTrace(); - } - - return success; - } - COM: <s> remove a database backup location </s> - diff --git a/funcom_test/39264053.txt b/funcom_test/39264053.txt deleted file mode 100644 index db94f79875672b49b070fe672af91b56828d7ce6..0000000000000000000000000000000000000000 --- a/funcom_test/39264053.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getDynamicTableName(DynamicTable table, String datatype) { - assert (!datatype.equals("root")) : "root isn't a datatype."; - - if (table == DynamicTable.DataSetInfo) - return datatype + "DataSetInfo"; - if (table == DynamicTable.AtomInfoDense) - return datatype + "AtomInfoDense"; - if (table == DynamicTable.AtomInfoSparse) - return datatype + "AtomInfoSparse"; - else return null; - } - COM: <s> gets the dynamic table name according to the datatype and the table </s> - diff --git a/funcom_test/39264284.txt b/funcom_test/39264284.txt deleted file mode 100644 index 9683b31545eb0dc062b222de10210251b7ba4038..0000000000000000000000000000000000000000 --- a/funcom_test/39264284.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public int getNextID() { - try { - Statement stmt = con.createStatement(); - - ResultSet rs = stmt.executeQuery("SELECT MAX(AtomID) FROM AtomMembership"); - - int nextID; - if(rs.next()) - nextID = rs.getInt(1) + 1; - else - nextID = 0; - stmt.close(); - return nextID; - - } catch (SQLException e) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(),"SQL Exception finding the maximum atomID."); - System.err.println("Exception finding max atom id."); - e.printStackTrace(); - } - - return -1; - } - COM: <s> get next id returns the next possible id for an atom </s> - diff --git a/funcom_test/39268883.txt b/funcom_test/39268883.txt deleted file mode 100644 index 43e2419d1f727234915fa92321cb8310f6805d9f..0000000000000000000000000000000000000000 --- a/funcom_test/39268883.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void seedRandom(int seed) { - try { - Statement stmt = con.createStatement(); - stmt.executeQuery("SELECT RAND(" + seed + ")\n"); - stmt.close(); - } catch (SQLException e) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(),"SQL Exception seeding the random number generator."); - System.err.println("Error in seeding random number generator."); - e.printStackTrace(); - } - } - COM: <s> seeds the random number generator </s> - diff --git a/funcom_test/39268940.txt b/funcom_test/39268940.txt deleted file mode 100644 index 0dcf7ae4f6b7ff45b9bc92f6f966fff38ad74dde..0000000000000000000000000000000000000000 --- a/funcom_test/39268940.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public double getNumber() { - double num = -1; - try { - Statement stmt = con.createStatement(); - ResultSet rs = stmt.executeQuery("SELECT RAND()"); - rs.next(); - num = rs.getDouble(1); - System.out.println(num); - stmt.close(); - } catch (SQLException e) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(),"SQL Exception testing the random number seeding."); - System.err.println("Error in generating single number."); - e.printStackTrace(); - } - return num; - } - COM: <s> used for testing random number seeding </s> - diff --git a/funcom_test/39269336.txt b/funcom_test/39269336.txt deleted file mode 100644 index ac2c155dff4a410c8d29a4f288dc70210e8c35b6..0000000000000000000000000000000000000000 --- a/funcom_test/39269336.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void deleteTempAggregateBasis() { - try { - Statement stmt = con.createStatement(); - stmt.execute("DROP TABLE #TimeBins;\n"); - stmt.close(); - } catch (SQLException e) { - ErrorLogger.writeExceptionToLogAndPrompt(getName(),"SQL exception deleting aggregate basis temp table"); - System.err.println("SQL exception deleting aggregate basis temp table"); - e.printStackTrace(); - } - } - COM: <s> deletes the most recent temp aggregate basis table </s> - diff --git a/funcom_test/39269793.txt b/funcom_test/39269793.txt deleted file mode 100644 index fe918e77e5494ed7d7025172c8aee18c8f15f216..0000000000000000000000000000000000000000 --- a/funcom_test/39269793.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public String getATOFMSFileName(int atomID){ - String fileName = ""; - Statement stmt; - try { - stmt = con.createStatement(); - ResultSet rs = stmt.executeQuery("SELECT OrigFilename FROM ATOFMSAtomInfoDense" - + " WHERE AtomID = " + atomID); - rs.next(); - fileName = rs.getString(1); - //System.out.println("FILENAME " + fileName); //DEBUGGING - stmt.close(); - } catch (SQLException e) { - // TODO Auto-generated catch block - System.err.println("Could not retrieve filename"); - e.printStackTrace(); - } - - - return fileName; - } - COM: <s> gets the atomss original filename for display purposes </s> - diff --git a/funcom_test/39270431.txt b/funcom_test/39270431.txt deleted file mode 100644 index a8b75ee3285873cbf9ba4a4a7eedc9b4b4edd295..0000000000000000000000000000000000000000 --- a/funcom_test/39270431.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public int getRepresentedCluster(int atomID){ - int collectionID = -1; - - try{ - Statement stmt = con.createStatement(); - ResultSet rs = stmt.executeQuery("SELECT CollectionID FROM CenterAtoms" - + " WHERE AtomID = " + atomID); - if (rs.next()){ - collectionID = rs.getInt("CollectionID"); - } - - assert !rs.next() : "Atom " + atomID + " should not be the center of multiple clusters."; - stmt.close(); - } catch (SQLException e){ - //TODO: figure out the error-logging procedures - e.printStackTrace(); - } - - return collectionID; - } - COM: <s> determines if the atom in question represents a cluster center and if so </s> - diff --git a/funcom_test/39271791.txt b/funcom_test/39271791.txt deleted file mode 100644 index 66165cbeb3cb07b47f857702582ea298d31039bc..0000000000000000000000000000000000000000 --- a/funcom_test/39271791.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setList(String s) { - if (s == null || s.length() <= 0) - throw new IllegalArgumentException(this.getClass().getName() - + " : Cannot perform public void setList(String s), parameter s is null."); - this.sList = new String(s); - parse(); - } // end public void setList(String s) - COM: <s> this is the mutator for property list </s> - diff --git a/funcom_test/39271832.txt b/funcom_test/39271832.txt deleted file mode 100644 index 03c431a627e9e2d16fb50f85abe81e0385bd090e..0000000000000000000000000000000000000000 --- a/funcom_test/39271832.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void parse() { - StringTokenizer listToken = - new StringTokenizer(this.sList, getDelimiters()); - String token = null; - while (listToken.hasMoreTokens()) { - token = listToken.nextToken(); - if ((token != null) && (token.length() > 0)) - oListVector.addElement(new String(token)); - } - } // end public void parse() - COM: <s> this method parses the string list into individual tokens using the </s> - diff --git a/funcom_test/39272680.txt b/funcom_test/39272680.txt deleted file mode 100644 index bdf413948ba09ed54a80022ab098b36ca169a2db..0000000000000000000000000000000000000000 --- a/funcom_test/39272680.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setLoggingEventClass(String string) { - loggingEventClass = string; - try { - loggingEventWrapperImplementationClass = Class.forName(loggingEventClass); - } catch (ClassNotFoundException cnfe) { - this.errorHandler.error("Invalid LoggingEvent class " + string, cnfe, ErrorCode.GENERIC_FAILURE); - } - } - COM: <s> sets the name of class implementing the </s> - diff --git a/funcom_test/39297883.txt b/funcom_test/39297883.txt deleted file mode 100644 index d820378ce29b0c590030cf3ef9436f3ff84e672d..0000000000000000000000000000000000000000 --- a/funcom_test/39297883.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void drawOutMessage(Graphics2D g) { - Vector<Module> modules = agv.getAllModules(); - for(Module module: modules){ - if(module instanceof CommunicationModule){ - CommunicationModule commod = (CommunicationModule)module; - if(!commod.getCommunicationNode().getOutbox().isEmpty()){ - g.setColor(Color.RED); - g.drawOval(0, (int)c.scale(-size), (int)c.scale(size), (int)c.scale(size)); - } - } - } - } - COM: <s> draw when the agv sends a message </s> - diff --git a/funcom_test/39298129.txt b/funcom_test/39298129.txt deleted file mode 100644 index 44f8fc2e6a5e69a803d59a2fce878d143a628d2b..0000000000000000000000000000000000000000 --- a/funcom_test/39298129.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object getPropertyValue(Object id) { - if(ID.equals(id)) - return getID(); - else if(BEGIN_POSITION.equals(id)) - return getPointADelegate(); - else if(END_POSITION.equals(id)) - return getPointBDelegate(); - else if(DIRECTION.equals(id)) - return getDirection().toString(); - else return super.getPropertyValue(id); - } - COM: <s> returns the line style as string for the property sheet </s> - diff --git a/funcom_test/39298136.txt b/funcom_test/39298136.txt deleted file mode 100644 index 7de406be153285364d53c2264f1f0e87ed213956..0000000000000000000000000000000000000000 --- a/funcom_test/39298136.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void reconnect(PositionDelegate newSource, PositionDelegate newTarget) { - if (newSource == null || newTarget == null || newSource == newTarget) { - throw new IllegalArgumentException(); - } - disconnect(); - this.pointADelegate = newSource; - this.pointBDelegate = newTarget; - reconnect(); - } - COM: <s> reconnect to a different source and or target shape </s> - diff --git a/funcom_test/39298320.txt b/funcom_test/39298320.txt deleted file mode 100644 index e63ebade166712fb3e958d76e94f50ae2d84a569..0000000000000000000000000000000000000000 --- a/funcom_test/39298320.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private LocationSubGroupTreeEditPart getChargeLocationGroup() { - if(chargeLocationGroup == null) { - setChargeLocationGroup((LocationSubGroupTreeEditPart)createChild(new LocationSubGroupDelegate("ChargeLocations"))); - addChild(getChargeLocationGroup(), -1); - } - return this.chargeLocationGroup; - } - COM: <s> returns the charge location group </s> - diff --git a/funcom_test/39298324.txt b/funcom_test/39298324.txt deleted file mode 100644 index e85fdfd1003bfc646faf04ea5fcddb85f25c3350..0000000000000000000000000000000000000000 --- a/funcom_test/39298324.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private LocationSubGroupTreeEditPart getParkingLocationGroup() { - if(parkingLocationGroup == null) { - setParkingLocationGroup((LocationSubGroupTreeEditPart)createChild(new LocationSubGroupDelegate("ParkingLocations"))); - addChild(getParkingLocationGroup(), -1); - } - return this.parkingLocationGroup; - } - COM: <s> returns the parking location group </s> - diff --git a/funcom_test/39298332.txt b/funcom_test/39298332.txt deleted file mode 100644 index 446a59bce9fe630c547871f858fd6bd4539ae52a..0000000000000000000000000000000000000000 --- a/funcom_test/39298332.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private LocationSubGroupTreeEditPart getStorageLocationGroup() { - if(storageLocationGroup == null) { - setStorageLocationGroup((LocationSubGroupTreeEditPart)createChild(new LocationSubGroupDelegate("StorageLocations"))); - addChild(getStorageLocationGroup(), -1); - } - return this.storageLocationGroup; - } - COM: <s> returns the storage location group </s> - diff --git a/funcom_test/39298661.txt b/funcom_test/39298661.txt deleted file mode 100644 index bbeabe93b43f5dbd37e0fd91c1150b6a2da1b010..0000000000000000000000000000000000000000 --- a/funcom_test/39298661.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void initializeGraphicalViewer() { - System.out.println("testinit"); - super.initializeGraphicalViewer(); - GraphicalViewer viewer = getGraphicalViewer(); - viewer.setContents(getEnvironmentDelegate()); // set the contents of this editor - - // listen for dropped parts - viewer.addDropTargetListener(createTransferDropTargetListener()); - } - COM: <s> set up the editors inital content after creation </s> - diff --git a/funcom_test/39298760.txt b/funcom_test/39298760.txt deleted file mode 100644 index 381b65a2b408cd500e4c23ad53883df2f50475d9..0000000000000000000000000000000000000000 --- a/funcom_test/39298760.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void layout() { - if (getSourceAnchor() != null && getTargetAnchor() != null) - getConnectionRouter().route(this); - - Rectangle oldBounds = bounds; - super.layout(); - bounds = null; - - if (!getBounds().contains(oldBounds)) { - getParent().translateToParent(oldBounds); - getUpdateManager().addDirtyRegion(getParent(), oldBounds); - } - - repaint(); - fireMoved(); - } - COM: <s> layouts this polyline </s> - diff --git a/funcom_test/39298784.txt b/funcom_test/39298784.txt deleted file mode 100644 index c048cdf854b49d1af5767f40282c268feee8f1fb..0000000000000000000000000000000000000000 --- a/funcom_test/39298784.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setConnectionRouter(ConnectionRouter cr) { - if (cr == null) - cr = ConnectionRouter.NULL; - if (connectionRouter != cr) { - connectionRouter.remove(this); - Object old = connectionRouter; - connectionRouter = cr; - firePropertyChange(Connection.PROPERTY_CONNECTION_ROUTER, old, cr); - revalidate(); - } - } - COM: <s> sets the connection router which handles the layout of this polyline </s> - diff --git a/funcom_test/39298952.txt b/funcom_test/39298952.txt deleted file mode 100644 index 37d9cbd22c13418228b2f17bf582c0f161d43d2c..0000000000000000000000000000000000000000 --- a/funcom_test/39298952.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Activity apply(Influence inf, EnvironmentState env, Collection activities) throws LawNotApplicableException { - if(inf == null || env == null) { - throw new IllegalArgumentException(); - } - if(! isApplicableTo(inf)) { - throw new LawNotApplicableException(); - } - return applyLaw(inf,env,activities); - } - COM: <s> generates an activity for a given influence and environment </s> - diff --git a/funcom_test/39298970.txt b/funcom_test/39298970.txt deleted file mode 100644 index 1648b21c2360b3a074a27a453e9a19025da59072..0000000000000000000000000000000000000000 --- a/funcom_test/39298970.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public InfluenceLaw getApplicableLaw(Influence inf) { - if (inf == null) { - throw new IllegalArgumentException(); - } - for (Iterator iter = influenceLaws.iterator(); iter.hasNext();) { - InfluenceLaw infLaw = (InfluenceLaw) iter.next(); - if(infLaw.isApplicableTo(inf)) { - return infLaw; - } - } - return null; - } - COM: <s> selects the influence law which is applicable to a given influence </s> - diff --git a/funcom_test/39298976.txt b/funcom_test/39298976.txt deleted file mode 100644 index b83e31610603d0b5b294d12b4b3df0962b3a6506..0000000000000000000000000000000000000000 --- a/funcom_test/39298976.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getNbOfApplicableLaws(Influence inf) { - if (inf == null) { - throw new IllegalArgumentException(); - } - int result = 0; - for (Iterator iter = influenceLaws.iterator(); iter.hasNext();) { - InfluenceLaw infLaw = (InfluenceLaw) iter.next(); - if(infLaw.isApplicableTo(inf)) { - result++; - } - } - return result; - } - COM: <s> returns the number of laws applicable to a given influence </s> - diff --git a/funcom_test/39298982.txt b/funcom_test/39298982.txt deleted file mode 100644 index 45c2748d278976b77ff48b2455f9aaaf50c76377..0000000000000000000000000000000000000000 --- a/funcom_test/39298982.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void setTimeInterval(TimeInterval timeInterval) { - if(timeInterval == null) { - throw new IllegalArgumentException(); - } - if(! timeInterval.isOpenTimeInterval()) { - throw new IllegalArgumentException("the agentwise.simulator.dynamics.time interval of an activity must be an OPEN interval"); - } - this.timeInterval = timeInterval; - } - COM: <s> changes the agentwise </s> - diff --git a/funcom_test/39299032.txt b/funcom_test/39299032.txt deleted file mode 100644 index 2d8f780e106ede9d7fac3981ea6538993e1913eb..0000000000000000000000000000000000000000 --- a/funcom_test/39299032.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean before(TimeInterval other) { - if (other == null) { - throw new IllegalArgumentException(); - } - return this.getEnd().before(other.getBegin()) || - ( (this.getEnd().equals(other.getBegin())) && ( ! (this.containsEnd() && other.containsBegin()) ) ); - } - COM: <s> checks whether this agentwise </s> - diff --git a/funcom_test/39299270.txt b/funcom_test/39299270.txt deleted file mode 100644 index 3c6e7a15c33151bd94272c7a921966d48b53c005..0000000000000000000000000000000000000000 --- a/funcom_test/39299270.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void turnAngleTowards(Angle angleGoal, double nbDegrees) { - Angle newAngle = new Angle(degrees - angleGoal.getDegrees(), false); - if (newAngle.getDegrees() > 180.0) { - setDegrees(getDegrees() + nbDegrees); - } else { - setDegrees(getDegrees() - nbDegrees); - } - } - COM: <s> adjusts the value of this angle to turn a given number of degrees </s> - diff --git a/funcom_test/39299287.txt b/funcom_test/39299287.txt deleted file mode 100644 index 9ef9e8c007612455b9909d4d2f9286bbc9ea630c..0000000000000000000000000000000000000000 --- a/funcom_test/39299287.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean equals(Object other) { - if(other == null) return false; - else if(!(other instanceof Position2D)) return false; - else { - Position2D theOther = (Position2D) other; - return getX().equals(theOther.getX()) && getY().equals(theOther.getY()); - } - } - COM: <s> return whether this position equals another one </s> - diff --git a/funcom_test/39299300.txt b/funcom_test/39299300.txt deleted file mode 100644 index deaef87b035bba00383a9c6cb4cfc28df84578f6..0000000000000000000000000000000000000000 --- a/funcom_test/39299300.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean contains(TimePoint p) { - if (p == null) { - throw new IllegalArgumentException(); - } - return ((containsBegin() && p.equals(getBegin())) || - (containsEnd() && p.equals(getEnd())) || - (containsAsIntermediatePoint(p))); - } - COM: <s> checks whether a given agentwise </s> - diff --git a/funcom_test/39299305.txt b/funcom_test/39299305.txt deleted file mode 100644 index 285d3b23e0f687d5f33994927890d2f3bb677ac9..0000000000000000000000000000000000000000 --- a/funcom_test/39299305.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Position2D getCoordinate1() { - ValueWithUnit<Meter> newX1 = new ValueWithUnit<Meter>(getX1(), UnitsPool.getDistanceUnitMeter()); - ValueWithUnit<Meter> newY1 = new ValueWithUnit<Meter>(getY1(), UnitsPool.getDistanceUnitMeter()); - return new Position2D(newX1, newY1); - } - COM: <s> returns a coordinate instance representing </s> - diff --git a/funcom_test/39299322.txt b/funcom_test/39299322.txt deleted file mode 100644 index b6e0ab2c68e7e143653f3feae7a6973362d053b7..0000000000000000000000000000000000000000 --- a/funcom_test/39299322.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean intersectsWith(Rectangle other) { - if (other==null) return false; - boolean result = false; - if (other.intersectsWith(getLine12())) result = true; - if (other.intersectsWith(getLine23())) result = true; - if (other.intersectsWith(getLine34())) result = true; - if (other.intersectsWith(getLine41())) result = true; - return result; - } - COM: <s> checks if a given rectangle intersects with </s> - diff --git a/funcom_test/39299326.txt b/funcom_test/39299326.txt deleted file mode 100644 index 676df3640629ec309da15bacc6cdad86192b2902..0000000000000000000000000000000000000000 --- a/funcom_test/39299326.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean intersectsWith(Line line) { - if (line==null) return false; - boolean result = false; - if (line.intersectsLine(getLine12())) result = true; - if (line.intersectsLine(getLine23())) result = true; - if (line.intersectsLine(getLine34())) result = true; - if (line.intersectsLine(getLine41())) result = true; - return result; - } - COM: <s> checks if the given line intersects with </s> - diff --git a/funcom_test/39299415.txt b/funcom_test/39299415.txt deleted file mode 100644 index d18b9c494d1a43d09ad172f4b5aba15671273f44..0000000000000000000000000000000000000000 --- a/funcom_test/39299415.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean containsPoint(Position pos) { - if(liesOnLine(pos.getX().getValue(), pos.getY().getValue())){ - if(liesBetween(x1, x2, pos.getX().getValue()) - && liesBetween(y1, y2, pos.getY().getValue())) - return true; - } - - return false; - - } - COM: <s> returns wether a given point belongs to this line </s> - diff --git a/funcom_test/39299425.txt b/funcom_test/39299425.txt deleted file mode 100644 index fd126b93b26b54ba26599eeb07de64a8231cc737..0000000000000000000000000000000000000000 --- a/funcom_test/39299425.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Segment getSegment(ID segmentID) { - //return getSegments().get(segmentID); - if(! getSegments().containsKey(segmentID)) throw new IllegalArgumentException("The given segment ID("+segmentID+") is not valid"); - return getSegments().get(segmentID); - } - COM: <s> returns the segment in the layout with the given id </s> - diff --git a/funcom_test/39299426.txt b/funcom_test/39299426.txt deleted file mode 100644 index 92e6b5709b9a6dd6fb3f3b8689abf9a446a5be5b..0000000000000000000000000000000000000000 --- a/funcom_test/39299426.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean liesBetween(double x1, double x2, double x3) { - if((x1 <= x2) - && (x3 >= x1 - ACCURACY && x3 <= x2 + ACCURACY)) - return true; - if((x1 >= x2) - && (x3 >= x2 - ACCURACY && x3 <= x1 + ACCURACY)) - return true; - - return false; - - } - COM: <s> check if a value lies between 2 other values </s> - diff --git a/funcom_test/39299435.txt b/funcom_test/39299435.txt deleted file mode 100644 index b5ae37f9b53534d6b583e3fc5997cf0fbe6ed1ef..0000000000000000000000000000000000000000 --- a/funcom_test/39299435.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void charge(AGVRobot agv, ValueWithUnit<? extends EnergyUnit> amount) { - if(getStation().getAGVRobot() == agv) { - Battery battery = (Battery)agv.getModulesWithKey(getBatteryModuleKey()).get(0); - battery.changeCurrentEnergyLevel(amount); - } - else - throw new IllegalArgumentException("The given agv is not present on this charge location"); - } - COM: <s> charges the batteries of the given agvrobot if its on the locations station </s> - diff --git a/funcom_test/39299459.txt b/funcom_test/39299459.txt deleted file mode 100644 index ea7f5645504ca298d0da59bd2de659e04e5337f8..0000000000000000000000000000000000000000 --- a/funcom_test/39299459.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public boolean isValidSize(ValueWithUnit<? extends DistanceUnit> width, ValueWithUnit<? extends DistanceUnit> height) { - return (width != null) && (height != null) && - (width.getValue() >= 0) && (height.getValue() >= 0); - } - COM: <s> checks whether the given width and height are valid for a layout </s> - diff --git a/funcom_test/39299547.txt b/funcom_test/39299547.txt deleted file mode 100644 index 64edd4ba30156921c7a6b384244283c9613a0528..0000000000000000000000000000000000000000 --- a/funcom_test/39299547.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void setEntity(IDObject entity) { - if(this.entity != null) throw new IllegalStateException("entity cannot be changed for this communication node"); - if(entity == null)throw new IllegalArgumentException("entity cannot be null"); - this.entity = entity; - setID(entity.getID()); - } - COM: <s> sets the physical entity </s> - diff --git a/funcom_test/39299611.txt b/funcom_test/39299611.txt deleted file mode 100644 index dcebed2784494414455a57baa973583f88f36f99..0000000000000000000000000000000000000000 --- a/funcom_test/39299611.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void setMaxEnergyLevel(ValueWithUnit<? extends EnergyUnit> maxEnergyLevel) { - if (maxEnergyLevel.getValue() < 0) - throw new IllegalArgumentException("Illegal energy level"); - this.maxEnergyLevel = new ValueWithUnit<Joule>(UnitConverter.convertUnitToBasicUnit(maxEnergyLevel), - UnitsPool.getEnergyUnitJoule()); - } - COM: <s> sets the max energy level </s> - diff --git a/funcom_test/39300100.txt b/funcom_test/39300100.txt deleted file mode 100644 index 07861338e16e58c2d9390f3980134a751ca33102..0000000000000000000000000000000000000000 --- a/funcom_test/39300100.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void doStep() { - try { - - //if not waiting for the result of a previously - //performed action - if(!isWaitingForActionResult()){ - - if(strategy == null) - throw new NoStrategyException("The action controller must have a strategy to follow"); - - //get action to perform - currentStrategyAction = strategy.getAction(currentSituation); - - setWaitingForActionResult(true); - } - - - //perform (or continue performing) action - currentStrategyAction.perform(); - - } catch (Exception e) { - e.printStackTrace(); - } - - } - COM: <s> performs the appropriate action for the </s> - diff --git a/funcom_test/39300379.txt b/funcom_test/39300379.txt deleted file mode 100644 index 64c4cb2838f74b1f94d4f9243b2873908db301b0..0000000000000000000000000000000000000000 --- a/funcom_test/39300379.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected Activity applyLaw(Influence inf, EnvironmentState env,Collection activities) { - SenseBatteryLevelInfluence senseInf = (SenseBatteryLevelInfluence) inf; - AGVRobot agv = senseInf.getInfluenceAuthor().getAgvRobot(); - return new SenseBatteryLevelActivity(new ActivitySubject(agv), getTimeInterval(senseInf), senseInf.getPerceptionResult()); - } - COM: <s> generates a sense battery level activity for a given influence and environment state </s> - diff --git a/funcom_test/39300381.txt b/funcom_test/39300381.txt deleted file mode 100644 index 66b5ea99e657bf6a0cbc238252d29a9322b627a8..0000000000000000000000000000000000000000 --- a/funcom_test/39300381.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected Activity applyLaw(Influence inf, EnvironmentState env,Collection activities) { - SensePositionInfluence senseInf = (SensePositionInfluence) inf; - AGVRobot agv = senseInf.getInfluenceAuthor().getAgvRobot(); - return new SensePositionActivity(new ActivitySubject(agv), getTimeInterval(senseInf), senseInf.getPerceptionResult()); - } - COM: <s> generates a sense position activity for a given influence and environment state </s> - diff --git a/funcom_test/39300396.txt b/funcom_test/39300396.txt deleted file mode 100644 index 7fb2dbbcf9428305829520313a502cbc0ce6870c..0000000000000000000000000000000000000000 --- a/funcom_test/39300396.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected Activity applyLaw(Influence inf, EnvironmentState env,Collection activities) { - SenseStationInfluence senseInf = (SenseStationInfluence) inf; - AGVRobot agv = senseInf.getInfluenceAuthor().getAgvRobot(); - return new SenseStationActivity(new ActivitySubject(agv), getTimeInterval(senseInf), senseInf.getPerceptionResult()); - } - COM: <s> generates a sense station activity for a given influence and environment state </s> - diff --git a/funcom_test/39300415.txt b/funcom_test/39300415.txt deleted file mode 100644 index 1ef3bda9d2fd231d2bb90e3e586a49822da40b9c..0000000000000000000000000000000000000000 --- a/funcom_test/39300415.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected Activity applyLaw(Influence inf, EnvironmentState env,Collection activities) { - SenseNeighbouringStationsInfluence senseInf = (SenseNeighbouringStationsInfluence) inf; - AGVRobot agv = senseInf.getInfluenceAuthor().getAgvRobot(); - return new SenseNeighbouringStationsActivity(new ActivitySubject(agv), getTimeInterval(senseInf), senseInf.getPerceptionResult()); - } - COM: <s> generates a sense neighbouring stations activity for a given influence and environment state </s> - diff --git a/funcom_test/39300431.txt b/funcom_test/39300431.txt deleted file mode 100644 index df77368d45d72d3476ed6b5b77727c4a18597888..0000000000000000000000000000000000000000 --- a/funcom_test/39300431.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected SenseCarryLoadActivity applyLaw(Influence inf, EnvironmentState env,Collection activities) { - SenseCarryLoadInfluence senseInf = (SenseCarryLoadInfluence) inf; - AGVRobot agv = senseInf.getInfluenceAuthor().getAgvRobot(); - return new SenseCarryLoadActivity(new ActivitySubject(agv), getTimeInterval(senseInf), senseInf.getPerceptionResult()); - } - COM: <s> generates a sense carry load activity for a given influence and environment state </s> - diff --git a/funcom_test/39300482.txt b/funcom_test/39300482.txt deleted file mode 100644 index 730b5b58fe4102d83c5c01addedbf890934bcf3d..0000000000000000000000000000000000000000 --- a/funcom_test/39300482.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void apply(EnvironmentState env) { - - Load load = getStorageLocation().deliver(getAgv()); - - // remove load from environment - ((Environment)env).removeEntity(load); - - Logger.getLogger("actionmodel.effect").info("Effect applied: "+this); - - getAgv().getAgent().setExecutionStatus(new Status(Status.SUCCEEDED)); - } - COM: <s> apply this effect </s> - diff --git a/funcom_test/39300572.txt b/funcom_test/39300572.txt deleted file mode 100644 index 21fc76f6733e344b52007cc02b6186b8bf56676c..0000000000000000000000000000000000000000 --- a/funcom_test/39300572.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equals(Object other) { - try { - ChargeBatteryActivity act = (ChargeBatteryActivity) other; - return (getChargeLocation().equals(act.getChargeLocation()) - && getTimeInterval().equals(act.getTimeInterval()) - && getActivitySubject().equals(act.getActivitySubject())); - } - catch (ClassCastException e) { - return false; - } - } - COM: <s> return wheterh this charge battery actvity equals another object </s> - diff --git a/funcom_test/39300760.txt b/funcom_test/39300760.txt deleted file mode 100644 index 8d348fb6c7e739b2afe5e5dc23425891d42390c8..0000000000000000000000000000000000000000 --- a/funcom_test/39300760.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public CircleSegmentPart createCircleSegment(Position2D positionA, Position2D positionB, Position2D center, RotationDirection direction, Access accesiblePositionA, Access accesiblePositionB) { - return new CircleSegmentPart(positionA, positionB, center, direction,accesiblePositionA,accesiblePositionB); - } - COM: <s> creates a new circle segment segment part </s> - diff --git a/funcom_test/39300789.txt b/funcom_test/39300789.txt deleted file mode 100644 index 557981017abcf829a41f7ac46a17e940ea2cfa38..0000000000000000000000000000000000000000 --- a/funcom_test/39300789.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public AGVRobot buildAGVRobot() { - checkBuilderState(); - BoundingBox box = buildBoundingBox(); - AGVRobot theAGVRobot = new AGVRobot(getId(),getPosition(), box); - theAGVRobot.setSpeedPerTimeUnit(getSpeedPerTimeUnit()); - for (Module module : getModules()) { - theAGVRobot.addModule(module); - } - reset(); - return theAGVRobot; - } - COM: <s> creates a new agvrobot builder </s> - diff --git a/funcom_test/39323934.txt b/funcom_test/39323934.txt deleted file mode 100644 index 9f0b8637fe9cb78a65ffdd9b6edd47e946ab9c2c..0000000000000000000000000000000000000000 --- a/funcom_test/39323934.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void GetWindowState(Environment env) { - final int[] R = env.getCpu().R; - final MemoryMap memoryMap = env.getMemoryMap(); - final int windowHandle = memoryMap.getWord(R[1]); - final Window window = getWindowState(windowHandle); - windowStateFromWindow(window, memoryMap.getByteArray(R[1] + 4, WINDOW_STATE_SIZE, false)); - } - COM: <s> this call reads a windows visible state </s> - diff --git a/funcom_test/39323950.txt b/funcom_test/39323950.txt deleted file mode 100644 index 616a9639a65c7884c934d722c93aadc50044614f..0000000000000000000000000000000000000000 --- a/funcom_test/39323950.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void OpenFile(Environment env) { - final int[] R = env.getCpu().R; - final MemoryMap memoryMap = env.getMemoryMap(); - final int handle = openFile(memoryMap.getString0(R[1])).getHandle(); - memoryMap.storeWord(R[0], handle); - } - COM: <s> this swi opens a message file </s> - diff --git a/funcom_test/39323986.txt b/funcom_test/39323986.txt deleted file mode 100644 index b77295d07ee7b574615591c3c05980a97bb92205..0000000000000000000000000000000000000000 --- a/funcom_test/39323986.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void SetExtent(Environment env) { - final int[] R = env.getCpu().R; - final MemoryMap memoryMap = env.getMemoryMap(); - final Window window = Window.find(R[0]); - final Rectangle extent = env.getMemoryMap().getRectangle(R[1]); - setExtent(window, extent); - } - COM: <s> visible workarea must be wholly within new workarea extent </s> - diff --git a/funcom_test/39324044.txt b/funcom_test/39324044.txt deleted file mode 100644 index 3031b05518817098d67f95d9964f2d627271db8d..0000000000000000000000000000000000000000 --- a/funcom_test/39324044.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Argument getVarArg(int offset) { - final int Rn = registerOffset + offset; - if (Rn > MAX_REGISTER) { - // Fetch from memory - return new Argument(memoryMap.getWord(memoryBase + (Rn - NUM_REGISTER_ARGUMENTS) * 4)); - } else { - return new Argument(cpu.R[Rn]); - } - } - COM: <s> get the specified argument from the variable argument list </s> - diff --git a/funcom_test/39324211.txt b/funcom_test/39324211.txt deleted file mode 100644 index 474d0be355822d21266c3d2cb6570928397e1658..0000000000000000000000000000000000000000 --- a/funcom_test/39324211.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void deleteIcon(int iconHandle) { - if (iconHandle < windowBlock.getNumberOfIcons() - 1) { - // Mark it as deleted instead of removing it - Icon icon = windowBlock.getIcon(iconHandle); - icon.setIconFlags(icon.getIconFlags() | Icon.DELETED); - } else { - windowBlock.removeIcon(iconHandle); - } - } - COM: <s> remove the given icon from the window and its definition from window block </s> - diff --git a/funcom_test/39324393.txt b/funcom_test/39324393.txt deleted file mode 100644 index 883fc72db5e48de0535f1254b12d92ef48bacf43..0000000000000000000000000000000000000000 --- a/funcom_test/39324393.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void setEnvironment() { - OS.getInstance().setVarVal("Dissi$Dir", - "$.Volumes.Personal.Acorn.Programming.ARM.Utilities.!Dissi", 0); - OSExt.getInstance().writeEnv("!RunImage", new Date()); - } - COM: <s> write the programs environment here </s> - diff --git a/funcom_test/39324453.txt b/funcom_test/39324453.txt deleted file mode 100644 index 1488f36e659b10b2e3540529ce839afff15870bc..0000000000000000000000000000000000000000 --- a/funcom_test/39324453.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public DynamicArea findDynamicArea(int areaNumber) { - for (Iterator iterator = dynamicAreas.iterator(); iterator.hasNext();) { - DynamicArea dynamicArea = (DynamicArea) iterator.next(); - if (dynamicArea.getAreaNumber() == areaNumber) { - return dynamicArea; - } - } - return null; - } - COM: <s> find a previously created dyanmic area given its number </s> - diff --git a/funcom_test/3932674.txt b/funcom_test/3932674.txt deleted file mode 100644 index beab836b06e9c337296f1da615b10d2b5936f753..0000000000000000000000000000000000000000 --- a/funcom_test/3932674.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setFolder(File folder) { - if (folder != null) { - removeListeners(); - - DirectoryTreeNode parent = new DirectoryTreeNode(folder, null); - ((DefaultTreeModel) getTree().getModel()).setRoot(parent); - loadDocuments(parent, FILE_SYSTEM_VIEW.getFiles(folder, false)); - } - - nodeChanged(getRoot()); - } - COM: <s> sets the documents as found in the document category </s> - diff --git a/funcom_test/3932684.txt b/funcom_test/3932684.txt deleted file mode 100644 index a6fe7781ef18f58094471ea77498782f68b8d729..0000000000000000000000000000000000000000 --- a/funcom_test/3932684.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setForeground(Color foreground) { - copyrightField.setForeground(foreground); - statusField.setForeground(foreground); - - progressBar.setForeground(foreground); - progressField.setBorder(new CompoundBorder(new EmptyBorder(4, 0, 4, 10), new LineBorder(foreground, 1))); - productPanel.setBackground(foreground); - cancelButton.setForeground(foreground); - cancelButton.setBorder(new CompoundBorder(new LineBorder(foreground, 1), new EmptyBorder(0, 10, 0, 10))); - cancelButton.setPressedBackground(foreground); - } - COM: <s> sets the foreground color of the splash screen </s> - diff --git a/funcom_test/3932693.txt b/funcom_test/3932693.txt deleted file mode 100644 index a011303f2db246689e0534869c874bfa5d2f9678..0000000000000000000000000000000000000000 --- a/funcom_test/3932693.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void start() { - if (DEBUG) - System.out.println("Splash.start()"); - - SwingUtilities.invokeLater(new SplashRunner(this) { - public void run() { - Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); - - int width = getSplash().getSize().width; - int height = getSplash().getSize().height; - - getSplash().setLocation((d.width - width) / 2, (d.height - height) / 2); - getSplash().setVisible(true); - } - }); - } - COM: <s> shows the splash screen </s> - diff --git a/funcom_test/3932920.txt b/funcom_test/3932920.txt deleted file mode 100644 index b8bbe8f81391439c8b6fc3a1db3143b2d9d1efee..0000000000000000000000000000000000000000 --- a/funcom_test/3932920.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void actionPerformed( ActionEvent event) { - if (DEBUG) System.out.println( "FormatAction.actionPerformed( "+event+")"); - - try { - editor.format(); - } catch ( SAXParseException e) { - editor.setStatus( e.getLineNumber(), e.getMessage()); - } catch ( final IOException e) { - editor.setStatus( 0, "ERROR: "+e.getMessage()); - } catch ( Exception e) { - e.printStackTrace(); - } - - } - COM: <s> the implementation of the format action called </s> - diff --git a/funcom_test/3932962.txt b/funcom_test/3932962.txt deleted file mode 100644 index 1b8d53c63591e901e77739e68e57bc9bc99fedc0..0000000000000000000000000000000000000000 --- a/funcom_test/3932962.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void addSearch(String search) { - if (search != null && search.length() > 0) { - int index = -1; - - for (int i = 0; (i < searches.size()) && (index == -1); i++) { - if (searches.get(i).equals(search)) { - index = i; - } - } - - if (index != -1) { - searches.remove(index); - } - - searches.add(0, search); - - if (searches.size() > MAX_SEARCHES) { - searches.remove(MAX_SEARCHES); - } - } - } - COM: <s> adds a search string to the editor </s> - diff --git a/funcom_test/3933033.txt b/funcom_test/3933033.txt deleted file mode 100644 index 6985eb432b3c4f754f5cab576988f946b276cf45..0000000000000000000000000000000000000000 --- a/funcom_test/3933033.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void validateXml() throws SAXParseException, IOException { - try { - InputSource source = new InputSource(new StringReader(editor.getText(0, editor.getDocument().getLength()))); - source.setSystemId(document.getDocumentURI()); - - DocumentUtilities.readDocument(source, isValidate()); - } catch (BadLocationException e) { - e.printStackTrace(); - } - } - COM: <s> validates the xml in this editor </s> - diff --git a/funcom_test/3933125.txt b/funcom_test/3933125.txt deleted file mode 100644 index fb3605c16f72bfd21fc8ac5d19a564f0c8fa99ed..0000000000000000000000000000000000000000 --- a/funcom_test/3933125.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void caretUpdate(CaretEvent e) { - Element root = editor.getDocument().getDefaultRootElement(); - int line = root.getElementIndex(e.getDot()); - int col = e.getDot() - root.getElement(line).getStartOffset(); - - positionLabel.setText("Ln " + (line + 1) + " Col " + (col + 1)); - } - COM: <s> messaged when the selection in the editor has changed </s> - diff --git a/funcom_test/3933266.txt b/funcom_test/3933266.txt deleted file mode 100644 index 97ca460ec1df6196823319cd8a7c4d9eb0c649f6..0000000000000000000000000000000000000000 --- a/funcom_test/3933266.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void add(Service service) { - for (Service serv : services) { - if (serv.getIdentifier().equals(service.getIdentifier())) { - System.out.println("Service with identifier: " + serv.getIdentifier() + " already added."); - return; - } - } - - System.out.println("ServiceContextManager ADDING Service (" + service.getClass().getName() + ")"); - - services.add(service); - - fireServicesChanged(service, ServicesChangedEvent.Type.ADDED); - } - COM: <s> adds a service to the manager </s> - diff --git a/funcom_test/3933269.txt b/funcom_test/3933269.txt deleted file mode 100644 index ad8bc562f9b2a9ec112fe386b3e6d8cd74e56602..0000000000000000000000000000000000000000 --- a/funcom_test/3933269.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void add(Action action) { - for (Action act : actions) { - if (act.getIdentifier().equals(action.getIdentifier())) { - System.out.println("Action with identifier: " + act.getIdentifier() + " already added."); - return; - } - } - - System.out.println("ServiceContextManager ADDING Action (" + action.getClass().getName() + ")"); - - actions.add(action); - - fireActionsChanged(action, ActionsChangedEvent.Type.ADDED); - } - COM: <s> adds an action to the manager </s> - diff --git a/funcom_test/3933270.txt b/funcom_test/3933270.txt deleted file mode 100644 index 20a86c4db46f142a4a1d7bc3ec867a1d81553b31..0000000000000000000000000000000000000000 --- a/funcom_test/3933270.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void add(Marker marker) { - for (Marker mark : markers) { - if (mark.getIdentifier().equals(marker.getIdentifier())) { - System.out.println("Marker with identifier: " + mark.getIdentifier() + " already added."); - return; - } - } - - System.out.println("ServiceContextManager ADDING Marker (" + marker.getClass().getName() + ")"); - - markers.add(marker); - - fireMarkersChanged(marker, MarkersChangedEvent.Type.ADDED); - } - COM: <s> adds a marker to the manager </s> - diff --git a/funcom_test/3933468.txt b/funcom_test/3933468.txt deleted file mode 100644 index dccddf2906c4d708f7a6eadc3c02679dd8e83b84..0000000000000000000000000000000000000000 --- a/funcom_test/3933468.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public SquiggleInputHandler getInputHandler(ParsedURL purl) throws IOException { - Iterator<SquiggleInputHandler> iter = getHandlers().iterator(); - SquiggleInputHandler handler = null; - - while (iter.hasNext()) { - SquiggleInputHandler curHandler = (SquiggleInputHandler) iter.next(); - if (curHandler.accept(purl)) { - handler = curHandler; - break; - } - } - - // No handler found, use the default one. - if (handler == null) { - handler = defaultHandler; - } - - return handler; - } - COM: <s> returns the input handler for the given uri </s> - diff --git a/funcom_test/3934822.txt b/funcom_test/3934822.txt deleted file mode 100644 index 5faf9dfd2d01edc6394a445683830837a7ca2940..0000000000000000000000000000000000000000 --- a/funcom_test/3934822.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void documentLoadingCompleted(SVGDocumentLoaderEvent e) { - if (debug) { - System.out.print("Document load completed in "); - System.out.println((System.currentTimeMillis() - time) + " ms"); - } - - setSVGDocument(e.getSVGDocument(), e.getSVGDocument().getURL(), e.getSVGDocument().getTitle()); - } - COM: <s> called when the loading of a document was completed </s> - diff --git a/funcom_test/3935491.txt b/funcom_test/3935491.txt deleted file mode 100644 index 29e6c6ce006bcb67f4a6add33205c0312207317c..0000000000000000000000000000000000000000 --- a/funcom_test/3935491.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void gvtRenderingCompleted(GVTTreeRendererEvent e) { - if (debug) { - System.out.print("GVT rendering completed in "); - System.out.println((System.currentTimeMillis() - time) + " ms"); - } - statusBar.setMainMessage(""); - statusBar.setMessage(resources.getString("Message.done")); - if (!svgCanvas.isDynamic() || managerStopped) { - stopAction.setEnabled(false); - } - svgCanvas.setCursor(DEFAULT_CURSOR); - - transformHistory.update(svgCanvas.getRenderingTransform()); - previousTransformAction.update(); - nextTransformAction.update(); - } - COM: <s> called when a rendering was completed </s> - diff --git a/funcom_test/3935606.txt b/funcom_test/3935606.txt deleted file mode 100644 index 1c9d3f372717710d2a87f89c60af770bfd5d64cb..0000000000000000000000000000000000000000 --- a/funcom_test/3935606.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void linkActivated(LinkActivationEvent e) { - String s = e.getReferencedURI(); - if (svgDocument != null) { - ParsedURL docURL = new ParsedURL(svgDocument.getURL()); - ParsedURL url = new ParsedURL(docURL, s); - if (!url.sameFile(docURL)) { - return; - } - - if (s.indexOf("#") != -1) { - localHistory.update(s); - // application.addVisitedURI(s); - backAction.update(); - forwardAction.update(); - - transformHistory = new TransformHistory(); - previousTransformAction.update(); - nextTransformAction.update(); - } - } - } - COM: <s> called when a link was activated </s> - diff --git a/funcom_test/39363011.txt b/funcom_test/39363011.txt deleted file mode 100644 index bf9f2a5c9cab711bfdf452ca1c6a4d08edeac3dc..0000000000000000000000000000000000000000 --- a/funcom_test/39363011.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void getConnection() { - try { - Class.forName("org.hsqldb.jdbcDriver"); - String url = "jdbc:hsqldb:c:\\lsj\\user"; - conn = DriverManager.getConnection(url, "sa", ""); - stmt = conn.createStatement(); - System.out.println("Connection OK!"); - } catch (Exception e) { - closeAll(); - } - } - COM: <s> get database connection create statment </s> - diff --git a/funcom_test/39363017.txt b/funcom_test/39363017.txt deleted file mode 100644 index dc07e853423fdc15d3f28a3674c4f4c545917b81..0000000000000000000000000000000000000000 --- a/funcom_test/39363017.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void doInit() { - getConnection(); - dropTable(); - createTable(); - closeAll(); - out.println("Init Successful!"); - out.println("<br><a href=\"./web/control/user.jsp\">User Control</a>"); - - } - COM: <s> initialize user table database </s> - diff --git a/funcom_test/39363028.txt b/funcom_test/39363028.txt deleted file mode 100644 index 44bce0da76b9a595cce70b0d13c1afd7ccbd63d7..0000000000000000000000000000000000000000 --- a/funcom_test/39363028.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void doAdd(String title, String content) { - getConnection(); - //createTable(); - insertTable(title, content); - closeAll(); - out.println("Add Successful!"); - out.println("<br><a href=\"./web/control/news.jsp\">News Control</a>"); - } - COM: <s> add a news </s> - diff --git a/funcom_test/39363037.txt b/funcom_test/39363037.txt deleted file mode 100644 index 176bbad53ef1da4f325a0e5a7f9ee8c958293bd3..0000000000000000000000000000000000000000 --- a/funcom_test/39363037.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void createTable() { - String sql = - "CREATE TABLE news_table ( id INTEGER IDENTITY, title VARCHAR(20), content VARCHAR(100))"; - try { - stmt.executeUpdate(sql); - System.out.println("CreateTable OK!"); - } catch (Exception e) { - - //do nothing - } - } - COM: <s> create news table </s> - diff --git a/funcom_test/39363069.txt b/funcom_test/39363069.txt deleted file mode 100644 index 001756ae9dee7739b322602e2b3d18ab8e2c875f..0000000000000000000000000000000000000000 --- a/funcom_test/39363069.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setStartIndex(int start) { - int newStart = start; - - if (start < 0) { - newStart = 0; - } else if (start > getSourceLength() - 1) { - newStart = getSourceLength() - 1; - } - - startIndex = newStart; - if (newStart + length > getSourceLength()) { - setLength(getSourceLength() - startIndex); - } - } - COM: <s> sets a new value for field code start index code </s> - diff --git a/funcom_test/3937987.txt b/funcom_test/3937987.txt deleted file mode 100644 index b15b0156cccf5ccf59d17dcd3607cde5ece85ebd..0000000000000000000000000000000000000000 --- a/funcom_test/3937987.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void fireGun(int clientID, int shipID, int x, int y) throws RemoteException - { - GamePlayer player = getPlayer(clientID); - Logger.logDebug("BattleShipGame::fireGun - Received fireGun request from " + player.getName()); - validateTurn(player); - player.getFleet().fireGun(new Integer(shipID),x,y); - endTurn(clientID); - } - COM: <s> fire the specified ships gun </s> - diff --git a/funcom_test/39430642.txt b/funcom_test/39430642.txt deleted file mode 100644 index 7c6586fa594d998419f292746a440bff9b046916..0000000000000000000000000000000000000000 --- a/funcom_test/39430642.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public boolean isResolvable(PicoContainer container, ComponentAdapter adapter, Class expectedType) { - final Class collectionType = getCollectionType(expectedType); - final Class valueType = getValueType(expectedType); - return collectionType != null && (emptyCollection || getMatchingComponentAdapters(container, adapter, componentKeyType, valueType).size() > 0); - } - COM: <s> check for a successful dependency resolution of the parameter for the expected type </s> - diff --git a/funcom_test/39431978.txt b/funcom_test/39431978.txt deleted file mode 100644 index 165faa59f0d33f854565ba7f1f60b547eb7a8bb8..0000000000000000000000000000000000000000 --- a/funcom_test/39431978.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int read() throws IOException { - int c = in.read(); - if (c >= 0) callback.setProgress(++nread); - if (callback.getWork().isCanceled()) { - InterruptedIOException exc = new InterruptedIOException("progress"); - exc.bytesTransferred = nread; - throw exc; - } - return c; - } - COM: <s> overrides code filter input stream </s> - diff --git a/funcom_test/39432326.txt b/funcom_test/39432326.txt deleted file mode 100644 index 81eace5086884c33cddd545477415c4a489d18bf..0000000000000000000000000000000000000000 --- a/funcom_test/39432326.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void makeDirs() { - File file = new File(getConfPath()); - file.mkdirs(); - file = new File(getLogPath()); - file.mkdirs(); - file = new File(getCachePath()); - file.mkdirs(); - file = new File(getPluginPath()); - file.mkdirs(); - file = new File(getDebugPath()); - file.mkdirs(); - } - COM: <s> creates the necessary directories for the application lifycycle </s> - diff --git a/funcom_test/39434669.txt b/funcom_test/39434669.txt deleted file mode 100644 index 31b22e1e98aef289cc528bd281646e5249b5fcc0..0000000000000000000000000000000000000000 --- a/funcom_test/39434669.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public View create(Element elem) { - Document doc = elem.getDocument(); - Object i18nFlag = doc.getProperty("i18n"/*AbstractDocument.I18NProperty*/); - if ((i18nFlag != null) && i18nFlag.equals(Boolean.TRUE)) { - // build a view that support bidi - return createI18N(elem); - } else { - return new PlainView(elem); - } - } - COM: <s> creates a view from the given structural element of a </s> - diff --git a/funcom_test/39441235.txt b/funcom_test/39441235.txt deleted file mode 100644 index 0a86bd4e0b670b4f90b692fc3a38e0e2bd1052c3..0000000000000000000000000000000000000000 --- a/funcom_test/39441235.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void MouseButtonClicked(java.awt.event.MouseEvent evt) { - String evtName = evt.getComponent().getName(); - System.out.println("evtName = " + evtName); - if (evt.getButton() == java.awt.event.MouseEvent.BUTTON1) { - if (evtName.equals("jGetFlickr")) { - runRpcClient(); - } - } - } - COM: <s> select click event to process </s> - diff --git a/funcom_test/39441279.txt b/funcom_test/39441279.txt deleted file mode 100644 index 61f6da0a449f8cf1777478f669ff295f8ae95b6b..0000000000000000000000000000000000000000 --- a/funcom_test/39441279.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ColorPixel getJpegImageAverage() throws Exception{ - - BufferedImage bufferedImage = JpegImageUtility.loadImage(image); - int width = bufferedImage.getWidth(); - int height = bufferedImage.getHeight(); - System.out.println("width = " + width + " height = " + height); - - return getAreaAverage(bufferedImage, 0, 0, width, height);//(long)(average/(width*height)); - } - COM: <s> find the avg rbg values of a jpeg image </s> - diff --git a/funcom_test/39441402.txt b/funcom_test/39441402.txt deleted file mode 100644 index 27ef3d451fc4912df54dcadaed8dc3aa11028294..0000000000000000000000000000000000000000 --- a/funcom_test/39441402.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void findClipDir() { - FileChooser dc = new FileChooser(new javax.swing.JFrame(), true, System - .getProperty("user.dir") - + File.separator + "*"); - //dc.show(); - dc.setVisible(true); - clipDir = dc.getFilePath(); - System.out.println("clipDir = " + clipDir); - } - COM: <s> select directory of source images </s> - diff --git a/funcom_test/39441436.txt b/funcom_test/39441436.txt deleted file mode 100644 index ca403d0a774b2b5caf4b1c03da333481eca17af3..0000000000000000000000000000000000000000 --- a/funcom_test/39441436.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void sourceName() { - FileChooser dc = new FileChooser(new javax.swing.JFrame(), true, - "open", "jpg", "JPEG files", System.getProperty("user.dir")); - //dc.show(); - dc.setVisible(true); - sourceImage = dc.getFilePath(); - System.out.println("sourceImage = " + sourceImage); - } - COM: <s> select the name of the source image </s> - diff --git a/funcom_test/39454171.txt b/funcom_test/39454171.txt deleted file mode 100644 index 844b85ae2fca219d23e0e200216e10d25c279dec..0000000000000000000000000000000000000000 --- a/funcom_test/39454171.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int getIndex(final double retentionTime, final double intensity) { - - int index = -1; - for (int i = 0; - index < 0 && i < processedScans; - i++) { - - if (Math.abs(retentionTime - rtValues[i]) < EPSILON && - Math.abs(intensity - intensityValues[i]) < EPSILON) { - - index = i; - } - } - - return index; - } - COM: <s> returns index of data point which exactly matches given x and y values </s> - diff --git a/funcom_test/39454240.txt b/funcom_test/39454240.txt deleted file mode 100644 index f1b5cb850865b0e605f2c95d69156e3cfc2d90d2..0000000000000000000000000000000000000000 --- a/funcom_test/39454240.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void load2DStructure(URL url) { - - JComponent newComponent; - try { - String structure2D = InetUtils.retrieveData(url); - if (structure2D.length() < 10) { - loading2Dlabel.setText("2D structure not available"); - return; - } - newComponent = new Structure2DComponent(structure2D); - } catch (Exception e) { - String errorMessage = "Could not load 2D structure\n" - + "Exception: " + ExceptionUtils.exceptionToString(e); - newComponent = new MultiLineLabel(errorMessage); - } - splitPane.setLeftComponent(newComponent); - splitPane.setDividerLocation(500); - } - COM: <s> load the structure passed as parameter in jchem viewer </s> - diff --git a/funcom_test/39454538.txt b/funcom_test/39454538.txt deleted file mode 100644 index adf6f8a6842a887b29fde30c92c217fe9058d951..0000000000000000000000000000000000000000 --- a/funcom_test/39454538.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public PeakListRow getRow(double valueX, double valueY) { - - for (int i = 0; i < displayedRows.length; i++) { - if ((Math.abs(valueX - getXValue(0, i)) < 0.0000001) - && (Math.abs(valueY - getYValue(0, i)) < 0.0000001)) - return displayedRows[i]; - } - return null; - } - COM: <s> returns the peak list row which exactly matches given x and y values </s> - diff --git a/funcom_test/39454551.txt b/funcom_test/39454551.txt deleted file mode 100644 index 013abaa2370cf7e7e2272edc52ba2c28eab86041..0000000000000000000000000000000000000000 --- a/funcom_test/39454551.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton createDoneButton() { - - final JButton button = new JButton("Done"); - button.addActionListener(new ActionListener() { - @Override - public void actionPerformed(final ActionEvent e) { - setVisible(false); - } - }); - button.setAlignmentX(Component.CENTER_ALIGNMENT); - return button; - } - COM: <s> a button to close the dialog </s> - diff --git a/funcom_test/39454552.txt b/funcom_test/39454552.txt deleted file mode 100644 index 3708e78f26894e47093e9745c9182391da018ac0..0000000000000000000000000000000000000000 --- a/funcom_test/39454552.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private ScalarMap findMapByType(final DisplayRealType type) { - - ScalarMap scalarMap = null; - for (Iterator<?> iterator = display.getMapVector().iterator(); - scalarMap == null && iterator.hasNext(); ) { - final ScalarMap map = (ScalarMap) iterator.next(); - if (type.equals(map.getDisplayScalar())) { - scalarMap = map; - } - } - return scalarMap; - } - COM: <s> find a map of a given display type </s> - diff --git a/funcom_test/39454572.txt b/funcom_test/39454572.txt deleted file mode 100644 index ab225953d79c8a056900c53c0295ad954042232f..0000000000000000000000000000000000000000 --- a/funcom_test/39454572.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setMaximumIntensity(final double max) { - try { - display.setIntensityRange(0.0, max); - } - catch (VisADException e) { - LOG.log(Level.WARNING, "Couldn't set intensity range.", e); - } - catch (RemoteException e) { - LOG.log(Level.WARNING, "Couldn't set intensity range.", e); - } - } - COM: <s> sets the intensity maximum </s> - diff --git a/funcom_test/39455143.txt b/funcom_test/39455143.txt deleted file mode 100644 index a22c2d20a434cca9123b60091a61b7e36422bc2f..0000000000000000000000000000000000000000 --- a/funcom_test/39455143.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addFragmentInfo(PeakListRow mainRow, PeakListRow fragmentRow) { - FragmentIdentity newIdentity = new FragmentIdentity(mainRow); - fragmentRow.addPeakIdentity(newIdentity, false); - - // Notify the GUI about the change in the project - MZmineCore.getCurrentProject().notifyObjectChanged(fragmentRow, false); - - } - COM: <s> add new identity to the fragment row </s> - diff --git a/funcom_test/39455191.txt b/funcom_test/39455191.txt deleted file mode 100644 index c40b94fe1f1f4d69fcdf9cedbb9bf4da5c275621..0000000000000000000000000000000000000000 --- a/funcom_test/39455191.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private double newError(List<AlignStructMol> data) throws Exception { - - double numT = 1; - for (int i = 0; i < data.size(); i++) { - if (data.get(i).ransacAlsoInLiers || data.get(i).ransacMaybeInLiers) { - numT++; - } - } - return 1 / numT; - - } - COM: <s> calculate the error in the model </s> - diff --git a/funcom_test/39455567.txt b/funcom_test/39455567.txt deleted file mode 100644 index 57a1c366c9b73d63fd4b123fd1c32411f782c981..0000000000000000000000000000000000000000 --- a/funcom_test/39455567.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private double cwtMEXHATreal(double x, double a, double b) { - /* c = 2 / ( sqrt(3) * pi^(1/4) ) */ - double c = 0.8673250705840776; - double TINY = 1E-200; - double x2; - - if (a == 0.0) - a = TINY; - x = (x - b) / a; - x2 = x * x; - return c * (1.0 - x2) * Math.exp(-x2 / 2); - } - COM: <s> this function calculates the waveletss coefficients in time domain </s> - diff --git a/funcom_test/39455740.txt b/funcom_test/39455740.txt deleted file mode 100644 index 700c1773ee74cb2e2f1d2050c5f0956d4560ff19..0000000000000000000000000000000000000000 --- a/funcom_test/39455740.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getTextOfElement() { - String text = charBuffer.toString(); - text = text.replaceAll("[\n\r\t]+", ""); - text = text.replaceAll("^\\s+", ""); - charBuffer.delete(0, charBuffer.length()); - return text; - } - COM: <s> return a string without tab an eof characters </s> - diff --git a/funcom_test/39455913.txt b/funcom_test/39455913.txt deleted file mode 100644 index bf5e157b8c54fc8c28cb3c949764de8d7b1b3602..0000000000000000000000000000000000000000 --- a/funcom_test/39455913.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public URL getURLFromID(ID iden) throws MalformedURLException { - - String id = iden.id; - if (id == null) { - return null; - } - String tmp = null; - try { - tmp = (String) lookup.get(id); - URL back = new URL(tmp); - return back; - } catch (MissingResourceException e) { - return null; - } - } - COM: <s> gets the url that corresponds to a given id in the map </s> - diff --git a/funcom_test/39456176.txt b/funcom_test/39456176.txt deleted file mode 100644 index dfa9b713db7f39455838ab7821dfc6e644cfad9b..0000000000000000000000000000000000000000 --- a/funcom_test/39456176.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void addParameter(UserParameter parameter) { - // Initialize with default value - Object[] values = new Object[dataFiles.length]; - for (int dataFileIndex = 0; dataFileIndex < dataFiles.length; dataFileIndex++) - values[dataFileIndex] = parameter.getValue(); - - // Add this newly created parameter to hashtable and reset table - parameterValues.put(parameter, values); - setupTableModel(); - } - COM: <s> adds a new parameter to the table of the dialog not mzmine project </s> - diff --git a/funcom_test/39456336.txt b/funcom_test/39456336.txt deleted file mode 100644 index 35faa2a5911d2e2962af319315d3c5b29487555f..0000000000000000000000000000000000000000 --- a/funcom_test/39456336.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public boolean conforms(PeakListRow row) { - switch (type) { - case NAME: - PeakIdentity identity = row.getPreferredPeakIdentity(); - if (identity == null) - return false; - String name = identity.getName(); - - if (isEmpty(nameRegex.toString()) || isEmpty(name)) { - return false; - } - - Matcher matcher = nameRegex.matcher(name); - return matcher.find(); - - case MASS: - return range.contains(row.getAverageMZ()); - - case RT: - return range.contains(row.getAverageRT()); - - } - return false; - } - COM: <s> checks whether given peak list row conforms to this search condition </s> - diff --git a/funcom_test/39456423.txt b/funcom_test/39456423.txt deleted file mode 100644 index 8a2558b3204fa6c0fdbfbeebbbebd42fa425ea2e..0000000000000000000000000000000000000000 --- a/funcom_test/39456423.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void closeDialog(ExitCode exitCode) { - if (exitCode == ExitCode.OK) { - // commit the changes to the parameter set - updateParameterSetFromComponents(); - - ArrayList<String> messages = new ArrayList<String>(); - boolean allParametersOK = parameterSet - .checkUserParameterValues(messages); - - if (!allParametersOK) { - StringBuilder message = new StringBuilder( - "Please check the parameter settings:\n\n"); - for (String m : messages) { - message.append(m); - message.append("\n"); - } - MZmineCore.getDesktop().displayMessage(message.toString()); - return; - } - } - this.exitCode = exitCode; - dispose(); - - } - COM: <s> this method may be called by some of the dialog components for example </s> - diff --git a/funcom_test/39456699.txt b/funcom_test/39456699.txt deleted file mode 100644 index 54c85b299f6665ff0a7496b0b79ec3f1d852eb1d..0000000000000000000000000000000000000000 --- a/funcom_test/39456699.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void initModule() { - - taskQueue = new TaskQueue(); - - runningThreads = new Vector<WorkerThread>(); - - // Create a low-priority thread that will manage the queue and start - // worker threads for tasks - taskControllerThread = new Thread(this, "Task controller thread"); - taskControllerThread.setPriority(Thread.MIN_PRIORITY); - taskControllerThread.start(); - - // Create the task progress window - taskWindow = new TaskProgressWindow(); - } - COM: <s> initialize the task controller </s> - diff --git a/funcom_test/39570453.txt b/funcom_test/39570453.txt deleted file mode 100644 index 0c82fd2124372d5917efa712b8da9027e397995c..0000000000000000000000000000000000000000 --- a/funcom_test/39570453.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private String process_br(String line) { - line = line.substring(1 + line.lastIndexOf('\r')); - - String line2; - do { - line2 = line; - line = line2.replaceAll("[^\b]\b", ""); - - } while ( !line.equals(line2) ) ; - - // drop out isolated \b - line = line.replaceAll("\b", ""); - - if ( line.indexOf('\r') >= 0 || line.indexOf('\b') >= 0 ) - throw new RuntimeException(line); - - return line; - } - COM: <s> b and r processing </s> - diff --git a/funcom_test/39570714.txt b/funcom_test/39570714.txt deleted file mode 100644 index 469e8d1f89ec495f89902f03bd8f485a4a606c2c..0000000000000000000000000000000000000000 --- a/funcom_test/39570714.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected Container _getNodeContainer(Node n, Object o) { - Container container = (Container) o; - - assert container == null; - - container = new JPanel(); - - if ( container instanceof JPanel ) { - JPanel jpanel = (JPanel) container; - _setLayout(jpanel, "left"); - _setLabel(jpanel, n); - //_setBorder(jpanel, n); - } - - if ( container instanceof JComponent ) { - ((JComponent) container).setAlignmentX(0); - } - - _setTip((JComponent) container, n); - _setBorder(container, n); - return container; - } - COM: <s> gets the container for the given token node </s> - diff --git a/funcom_test/39840471.txt b/funcom_test/39840471.txt deleted file mode 100644 index deb8f24feb962e23440599bf082f4733642df55c..0000000000000000000000000000000000000000 --- a/funcom_test/39840471.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testCookieGreaterThan() throws ServletException, JspException { - GreaterThanTag gt = new GreaterThanTag(); - gt.setPageContext(pageContext); - gt.setCookie(COOKIE_KEY); - gt.setValue(LESSER_VAL); - - assertTrue( - "Cookie Value (" + GREATER_VAL + ") is greater than value (" + LESSER_VAL + ")", - gt.condition()); - } - COM: <s> verify the value stored in a cookie using code greater than tag code </s> - diff --git a/funcom_test/39840474.txt b/funcom_test/39840474.txt deleted file mode 100644 index 4f55540416351a068393c4f96c913dad5040d3ba..0000000000000000000000000000000000000000 --- a/funcom_test/39840474.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testHeaderGreaterThan() throws ServletException, JspException { - GreaterThanTag gt = new GreaterThanTag(); - gt.setPageContext(pageContext); - gt.setHeader(HEADER_KEY); - gt.setValue(LESSER_VAL); - - assertTrue( - "Header Value (" + GREATER_VAL + ") is greater than value (" + LESSER_VAL + ")", - gt.condition()); - } - COM: <s> verify the value stored in header using code greater than tag code </s> - diff --git a/funcom_test/39840475.txt b/funcom_test/39840475.txt deleted file mode 100644 index 285fb87814b7bbc7174585c08c0a92eb2c1e4b31..0000000000000000000000000000000000000000 --- a/funcom_test/39840475.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testParameterGreaterThan() throws ServletException, JspException { - GreaterThanTag gt = new GreaterThanTag(); - gt.setPageContext(pageContext); - gt.setParameter(PARAMETER_KEY); - gt.setValue(LESSER_VAL); - - assertTrue( - "Parameter Value (" + GREATER_VAL + ") is greater than value (" + LESSER_VAL + ")", - gt.condition()); - } - COM: <s> verify the value stored in parameter using code greater than tag code </s> - diff --git a/funcom_test/39840526.txt b/funcom_test/39840526.txt deleted file mode 100644 index f7e7120de8b3616daf17b243e75598df1ce2dd1e..0000000000000000000000000000000000000000 --- a/funcom_test/39840526.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testParameterLessThan() throws ServletException, JspException { - LessThanTag ge = new LessThanTag(); - ge.setPageContext(pageContext); - ge.setParameter(PARAMETER_KEY); - ge.setValue(COMPARE_TO_VAL); - - assertTrue( - "Parameter Value (" + COMPARE_VAL + ") is less than value (" + COMPARE_TO_VAL + ")", - ge.condition()); - } - COM: <s> verify the value stored in parameter using code less than tag code </s> - diff --git a/funcom_test/39840551.txt b/funcom_test/39840551.txt deleted file mode 100644 index 75614f87991fec599c7068e5091ef4cbd28d09ba..0000000000000000000000000000000000000000 --- a/funcom_test/39840551.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testCookieGreaterEqual() throws ServletException, JspException { - GreaterEqualTag ge = new GreaterEqualTag(); - ge.setPageContext(pageContext); - ge.setCookie(COOKIE_KEY); - ge.setValue(LESSER_VAL); - - assertTrue( - "Cookie Value (" + GREATER_VAL + ") is greater than or equal to value (" + LESSER_VAL + ")", - ge.condition()); - } - COM: <s> verify the value stored in a cookie using code greater equal tag code </s> - diff --git a/funcom_test/39840555.txt b/funcom_test/39840555.txt deleted file mode 100644 index e51da80d0fd0ca4b90866679040cf4beb77d0b99..0000000000000000000000000000000000000000 --- a/funcom_test/39840555.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testHeaderGreaterEqual() throws ServletException, JspException { - GreaterEqualTag ge = new GreaterEqualTag(); - ge.setPageContext(pageContext); - ge.setHeader(HEADER_KEY); - ge.setValue(LESSER_VAL); - - assertTrue( - "Header Value (" + GREATER_VAL + ") is greater than or equal to value (" + LESSER_VAL + ")", - ge.condition()); - } - COM: <s> verify the value stored in header using code greater equal tag code </s> - diff --git a/funcom_test/39840558.txt b/funcom_test/39840558.txt deleted file mode 100644 index b8769d1746732d1c1201acc54bb73d2872bc9432..0000000000000000000000000000000000000000 --- a/funcom_test/39840558.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testParameterGreaterEqual() throws ServletException, JspException { - GreaterEqualTag ge = new GreaterEqualTag(); - ge.setPageContext(pageContext); - ge.setParameter(PARAMETER_KEY); - ge.setValue(LESSER_VAL); - - assertTrue( - "Parameter Value (" + GREATER_VAL + ") is greater than or equal to value (" + LESSER_VAL + ")", - ge.condition()); - } - COM: <s> verify the value stored in parameter using code greater equal tag code </s> - diff --git a/funcom_test/39840570.txt b/funcom_test/39840570.txt deleted file mode 100644 index 17878acda42fbbdda5fd774701a37c2046a406a3..0000000000000000000000000000000000000000 --- a/funcom_test/39840570.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testParameterLessEqual() throws ServletException, JspException { - LessEqualTag ge = new LessEqualTag(); - ge.setPageContext(pageContext); - ge.setParameter(PARAMETER_KEY); - ge.setValue(LESSER_VAL); - - assertTrue( - "Parameter Value (" + GREATER_VAL + ") is less than or equal to value (" + LESSER_VAL + ")", - ge.condition()); - } - COM: <s> verify the value stored in parameter using code less equal tag code </s> - diff --git a/funcom_test/39841679.txt b/funcom_test/39841679.txt deleted file mode 100644 index 335f322b8328eac6f143c01732bf4e8730dc40d7..0000000000000000000000000000000000000000 --- a/funcom_test/39841679.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testGetIndexedArguments() { - - try { - dynaForm.get("intArray", -1); - fail("Should throw IndexOutOfBoundsException"); - } catch (IndexOutOfBoundsException e) { - ; // Expected response - } catch (Throwable t) { - fail("Threw " + t + " instead of IndexOutOfBoundsException"); - } - - - } - COM: <s> corner cases on get indexed property invalid arguments </s> - diff --git a/funcom_test/39841733.txt b/funcom_test/39841733.txt deleted file mode 100644 index bcee433d63016a784fe0e1830dc319d3df505101..0000000000000000000000000000000000000000 --- a/funcom_test/39841733.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testGetSimpleBoolean() { - - try { - Object value = dynaForm.get("booleanProperty"); - assertNotNull("Got a value", value); - assertTrue("Got correct type", (value instanceof Boolean)); - assertTrue("Got correct value", - ((Boolean) value).booleanValue() == true); - } catch (Throwable e) { - fail("Exception: " + e); - } - - } - COM: <s> test get simple property on a boolean property </s> - diff --git a/funcom_test/39841782.txt b/funcom_test/39841782.txt deleted file mode 100644 index 075db42f71ad08c92250a174532377433c18859f..0000000000000000000000000000000000000000 --- a/funcom_test/39841782.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetSimpleInt() { - - try { - Object value = dynaForm.get("intProperty"); - assertNotNull("Got a value", value); - assertTrue("Got correct type", (value instanceof Integer)); - assertEquals("Got correct value", - ((Integer) value).intValue(), - (int) 123); - } catch (Throwable t) { - fail("Exception: " + t); - } - - } - COM: <s> test get simple property on a int property </s> - diff --git a/funcom_test/39841795.txt b/funcom_test/39841795.txt deleted file mode 100644 index 71dfcd63a8e8a2655b14b18e76f2d6de60b90753..0000000000000000000000000000000000000000 --- a/funcom_test/39841795.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetSimpleLong() { - - try { - Object value = dynaForm.get("longProperty"); - assertNotNull("Got a value", value); - assertTrue("Got correct type", (value instanceof Long)); - assertEquals("Got correct value", - ((Long) value).longValue(), - (long) 321); - } catch (Throwable t) { - fail("Exception: " + t); - } - - } - COM: <s> test get simple property on a long property </s> - diff --git a/funcom_test/39841808.txt b/funcom_test/39841808.txt deleted file mode 100644 index ad7926249e32a52b640a3b1d90bf9d0d4e9ad95b..0000000000000000000000000000000000000000 --- a/funcom_test/39841808.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testGetSimpleShort() { - - try { - Object value = dynaForm.get("shortProperty"); - assertNotNull("Got a value", value); - assertTrue("Got correct type", (value instanceof Short)); - assertEquals("Got correct value", - ((Short) value).shortValue(), - (short) 987); - } catch (Throwable t) { - fail("Exception: " + t); - } - - } - COM: <s> test get simple property on a short property </s> - diff --git a/funcom_test/39841857.txt b/funcom_test/39841857.txt deleted file mode 100644 index 5c69bfd0bcea609740cd6b06afdcc4221bfcefa2..0000000000000000000000000000000000000000 --- a/funcom_test/39841857.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testSetIndexedArguments() { - - try { - dynaForm.set("intArray", -1, new Integer(0)); - fail("Should throw IndexOutOfBoundsException"); - } catch (IndexOutOfBoundsException e) { - ; // Expected response - } catch (Throwable t) { - fail("Threw " + t + " instead of IndexOutOfBoundsException"); - } - - } - COM: <s> corner cases on set indexed property invalid arguments </s> - diff --git a/funcom_test/39842002.txt b/funcom_test/39842002.txt deleted file mode 100644 index 729e98a5a74b3b637f6be110837af06f4213eeef..0000000000000000000000000000000000000000 --- a/funcom_test/39842002.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testSetSimpleString() { - - try { - String oldValue = (String) dynaForm.get("stringProperty"); - String newValue = oldValue + " Extra Value"; - dynaForm.set("stringProperty", newValue); - assertEquals("Matched new value", - newValue, - (String) dynaForm.get("stringProperty")); - } catch (Throwable e) { - fail("Exception: " + e); - } - - } - COM: <s> test set simple property on a string property </s> - diff --git a/funcom_test/39842032.txt b/funcom_test/39842032.txt deleted file mode 100644 index 7319baada2a6f51a396c55c133775179361049ca..0000000000000000000000000000000000000000 --- a/funcom_test/39842032.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void testGetDescriptorBase(String name, Class type) { - - try { - DynaProperty descriptor = - dynaForm.getDynaClass().getDynaProperty(name); - assertNotNull("Got descriptor", descriptor); - assertEquals("Got correct type", type, descriptor.getType()); - } catch (Throwable t) { - fail("Threw an exception: " + t); - } - - } - COM: <s> base for test get descriptor xxxxx series of tests </s> - diff --git a/funcom_test/39842049.txt b/funcom_test/39842049.txt deleted file mode 100644 index d2d92d46f60954dbabbde34bd897ae022efcb6ea..0000000000000000000000000000000000000000 --- a/funcom_test/39842049.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int doEndTag() throws JspException { - if (processed && footer != null && footer.length() > 0) { - String footerMessage = RequestUtils.message(pageContext, bundle, - locale, footer); - if (footerMessage != null) { - // Print the results to our output writer - ResponseUtils.write(pageContext, footerMessage); - } - } - // Continue processing this page - return (EVAL_PAGE); - } - COM: <s> clean up after processing this enumeration </s> - diff --git a/funcom_test/39842101.txt b/funcom_test/39842101.txt deleted file mode 100644 index a4bcc1a44be5eaa1b9401d44718846672a2f0112..0000000000000000000000000000000000000000 --- a/funcom_test/39842101.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int doEndTag() throws JspException { - - // Prepare the textual content and ending element of this hyperlink - StringBuffer results = new StringBuffer(); - if (text != null) - results.append(text); - results.append("</a>"); - - // Render the remainder to the output stream - ResponseUtils.write(pageContext, results.toString()); - - // Evaluate the remainder of this page - return (EVAL_PAGE); - - } - COM: <s> render the end of the hyperlink </s> - diff --git a/funcom_test/39842355.txt b/funcom_test/39842355.txt deleted file mode 100644 index d4f56239a625f2ac9a45bae1522dfea8554b63bb..0000000000000000000000000000000000000000 --- a/funcom_test/39842355.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected Locale getCurrentLocale() { - - Locale userLocale = RequestUtils.retrieveUserLocale(pageContext, Globals.LOCALE_KEY); - - // Store a new current Locale, if requested - if (this.locale) { - HttpSession session = ((HttpServletRequest) this.pageContext.getRequest()).getSession(); - session.setAttribute(Globals.LOCALE_KEY, userLocale); - } - - return userLocale; - } - COM: <s> return the current locale for this request </s> - diff --git a/funcom_test/39842722.txt b/funcom_test/39842722.txt deleted file mode 100644 index 3af87d11074f130cc39feb2d47515179f5f48402..0000000000000000000000000000000000000000 --- a/funcom_test/39842722.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void prepareTextEvents(StringBuffer handlers) { - - if (onselect != null) { - handlers.append(" onselect=\""); - handlers.append(getOnselect()); - handlers.append("\""); - } - - if (onchange != null) { - handlers.append(" onchange=\""); - handlers.append(getOnchange()); - handlers.append("\""); - } - } - COM: <s> prepares the text event handlers appending them to the the given </s> - diff --git a/funcom_test/39842919.txt b/funcom_test/39842919.txt deleted file mode 100644 index 776581fab722e0ec2537feb876854c3130300388..0000000000000000000000000000000000000000 --- a/funcom_test/39842919.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int doEndTag() throws JspException { - /* reset the reference */ - HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); - - if (originalNesting == null) { - NestedPropertyHelper.deleteReference(request); - } else { - NestedPropertyHelper.setName(request, originalNestingName); - NestedPropertyHelper.setProperty(request, "nestOne"); - } - this.name = originalName; - - return (EVAL_PAGE); - } - COM: <s> evaluate the rest of the page </s> - diff --git a/funcom_test/39843030.txt b/funcom_test/39843030.txt deleted file mode 100644 index 19caff49c3dfaf3f34e95c43874550767f02fbdb..0000000000000000000000000000000000000000 --- a/funcom_test/39843030.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void processNestedTag(PutTag nestedTag) throws JspException { - // Check role - String role = nestedTag.getRole(); - if (role != null - && !((HttpServletRequest) pageContext.getRequest()).isUserInRole( - role)) { // not allowed : skip attribute - return; - } - - putAttribute(nestedTag.getName(), nestedTag.getRealValue()); - } - COM: <s> process nested lg put gt tag </s> - diff --git a/funcom_test/39843063.txt b/funcom_test/39843063.txt deleted file mode 100644 index 4559551e1223aaec94d8ae7e48f58d04cecf260a..0000000000000000000000000000000000000000 --- a/funcom_test/39843063.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void putAttribute(PutListTag nestedTag) throws JspException { - // Check role - String role = nestedTag.getRole(); - if (role != null - && !((HttpServletRequest) pageContext.getRequest()).isUserInRole( - role)) { // not allowed : skip attribute - return; - } - - putAttribute(nestedTag.getName(), nestedTag.getList()); - } - COM: <s> method calls by nested lg put list gt tags </s> - diff --git a/funcom_test/39843184.txt b/funcom_test/39843184.txt deleted file mode 100644 index 05133f7c133f5f7f13702fdfb80c06fd1441e405..0000000000000000000000000000000000000000 --- a/funcom_test/39843184.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void doInclude(String page) throws ServletException, IOException { - /* - TilesUtil.doInclude( page, - (HttpServletRequest)pageContext.getRequest(), - (HttpServletResponse)pageContext.getResponse(), - pageContext.getServletContext()); - */ - TilesUtil.doInclude( page, pageContext ); - - } - COM: <s> do an include of specified page </s> - diff --git a/funcom_test/39843198.txt b/funcom_test/39843198.txt deleted file mode 100644 index dc12717a51b90454c1abf34e0ce1e3d273e79dd3..0000000000000000000000000000000000000000 --- a/funcom_test/39843198.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int doStartTag() throws JspException { - // Check role - if (role != null - && !((HttpServletRequest) pageContext.getRequest()).isUserInRole( - role)) { - return SKIP_BODY; - } - - // save current context - this.currentContext = getCurrentContext(); - return EVAL_BODY_INCLUDE; - } - COM: <s> create a new empty context </s> - diff --git a/funcom_test/39843667.txt b/funcom_test/39843667.txt deleted file mode 100644 index 67ed49fce83faceb8a62a9ea7bf4deabfc28897f..0000000000000000000000000000000000000000 --- a/funcom_test/39843667.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void add(String property, ActionMessage message) { - - ActionMessageItem item = (ActionMessageItem) messages.get(property); - List list = null; - - if (item == null) { - list = new ArrayList(); - item = new ActionMessageItem(list, iCount++); - - messages.put(property, item); - } else { - list = item.getList(); - } - - list.add(message); - - } - COM: <s> add a message to the set of messages for the specified property </s> - diff --git a/funcom_test/39844119.txt b/funcom_test/39844119.txt deleted file mode 100644 index 0f5b6883b691a7e38c2faaf6de3c77ea11720fd5..0000000000000000000000000000000000000000 --- a/funcom_test/39844119.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void initInternal() throws Exception { - - try { - internal = MessageResources.getMessageResources(internalName); - } catch (MissingResourceException e) { - log("Cannot load internal resources from '" + internalName + "'", e); - throw new UnavailableException - ("Cannot load internal resources from '" + internalName + "'"); - } - } - COM: <s> initialize our internal message resources bundle </s> - diff --git a/funcom_test/39844156.txt b/funcom_test/39844156.txt deleted file mode 100644 index 05948d8a9da6f643c454b0736c5ab474f14e9ac2..0000000000000000000000000000000000000000 --- a/funcom_test/39844156.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addRegistration( Registration registration ) { - - String key = registration.getPath(); - ArrayList beanList = (ArrayList)registrations.get( key ); - if( beanList == null ) { - beanList = new ArrayList(); - registrations.put( key, beanList ); - } - beanList.add( registration ); - } - COM: <s> adds bean registrationto be used in action processing </s> - diff --git a/funcom_test/39844379.txt b/funcom_test/39844379.txt deleted file mode 100644 index 73072085a644c2c429c61fec612f701a4e4f9737..0000000000000000000000000000000000000000 --- a/funcom_test/39844379.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void overrideProperties(UIComponent component) { - - super.overrideProperties(component); - if ((name != null) && - (component.getAttribute("name") == null)) { - component.setAttribute("name", name); - } - if ((page != null) && - (component.getAttribute("page") == null)) { - component.setAttribute("page", page); - } - - } - COM: <s> p override attributes set on this tag instance </s> - diff --git a/funcom_test/39844455.txt b/funcom_test/39844455.txt deleted file mode 100644 index 972db0434a135b0b804fe55b41229601a6f833c8..0000000000000000000000000000000000000000 --- a/funcom_test/39844455.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int doAfterBody() throws JspException { - if (getBodyContent() != null) { - String value = getBodyContent().getString().trim(); - if (value != null) { - ((UIOutput) getComponent()).setValue(value); - } - } - return (getDoAfterBodyValue()); - } - COM: <s> p set the local value of this component to reflect the nested </s> - diff --git a/funcom_test/39844536.txt b/funcom_test/39844536.txt deleted file mode 100644 index 08e53d051596e548bd0cb38d6d437bfd2f52a20b..0000000000000000000000000000000000000000 --- a/funcom_test/39844536.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String action(FacesContext context, UIComponent component) { - - String treeId = context.getTree().getTreeId(); - StringBuffer sb = new StringBuffer - (context.getExternalContext().getRequestContextPath()); - sb.append("/faces"); - sb.append(treeId); - return (context.getExternalContext().encodeURL(sb.toString())); - - } - COM: <s> p calculate and return the value to be specifed for the </s> - diff --git a/funcom_test/39844941.txt b/funcom_test/39844941.txt deleted file mode 100644 index 28b0b7f82d9b81092cb8d31cd268f136c8125063..0000000000000000000000000000000000000000 --- a/funcom_test/39844941.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void evaluateExpressions() throws JspException { - Boolean bool = null; - - if ((bool = EvalHelper.evalBoolean("locale", getLocaleExpr(), - this, pageContext)) != null) - setLocale(bool.booleanValue()); - - if ((bool = EvalHelper.evalBoolean("xhtml", getXhtmlExpr(), - this, pageContext)) != null) - setXhtml(bool.booleanValue()); - } - COM: <s> processes all attribute values which use the jstl expression evaluation </s> - diff --git a/funcom_test/39844980.txt b/funcom_test/39844980.txt deleted file mode 100644 index ece74f9ab50ef8f6a9a5879138aa09bb5e706e64..0000000000000000000000000000000000000000 --- a/funcom_test/39844980.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void log(String message, Throwable throwable) { - - if (logWriter != null) { - logWriter.print("GenericDataSource["); - logWriter.print(description); - logWriter.print("]: "); - logWriter.println(message); - throwable.printStackTrace(logWriter); - } - - } - COM: <s> log the specified message and exception to our log writer if we </s> - diff --git a/funcom_test/39846251.txt b/funcom_test/39846251.txt deleted file mode 100644 index a57fdeab6d780661294c66344c50b8bf96c2a66d..0000000000000000000000000000000000000000 --- a/funcom_test/39846251.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected boolean condition(boolean desired) throws JspException { - boolean result = false; - if (getExprValue() != null) { - result = - ELMatchSupport.condition(desired, getExprValue(), value, - location, messages, pageContext); - } - else { - result = super.condition(desired); - } - return (result); - } - COM: <s> evaluates the condition that is being tested by this particular tag </s> - diff --git a/funcom_test/39860439.txt b/funcom_test/39860439.txt deleted file mode 100644 index aebc26393a445495aa35ef1ee3850023d15c15e8..0000000000000000000000000000000000000000 --- a/funcom_test/39860439.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object getNextReturnObject( Object key ) { - if (key == null) { - key = Null.NULL; - } - ReturnObjectList returnObjectList = (ReturnObjectList)returnObjectLists.get(key); - AssertMo.assertNotNull(name + " does not contain " + key.toString(), returnObjectList); - return returnObjectList.nextReturnObject(); - } - COM: <s> returns the next object in the return object list for a given key </s> - diff --git a/funcom_test/3986263.txt b/funcom_test/3986263.txt deleted file mode 100644 index 11ba5720df32936d585ee3cdf5751c2f1c154d7a..0000000000000000000000000000000000000000 --- a/funcom_test/3986263.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public void load(InputStream is) { - String line; - String[] prop = new String[2]; - int i; - InputStreamReader isr = new InputStreamReader(is); - BufferedReader br = new BufferedReader(isr); - try { - while ((line = br.readLine()) != null) { - i = 0; - String[] tokens = line.split("\\s"); - for(String token : tokens) { - if(!token.equals("")) { - prop[i] = token; - i++; - if(i == 2) { - break; - } - } - } - this.put(prop[0],prop[1]); - } - br.close(); - isr.close(); - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } - COM: <s> reads properties and stores them in the hashtable </s> - diff --git a/funcom_test/3986264.txt b/funcom_test/3986264.txt deleted file mode 100644 index e999356b63370f36435ca5f86be20ceeff86ba12..0000000000000000000000000000000000000000 --- a/funcom_test/3986264.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void create(File file) { - char[] data = new char[1024]; - String s = ""; - int read; - try { - FileReader fr = new FileReader(file); - while ((read = fr.read(data)) != -1) { - s += new String(data, 0, read); - } - fr.close(); - this.create(s); - } catch (FileNotFoundException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - } - COM: <s> creates a finger print by analysing the content of the given file </s> - diff --git a/funcom_test/3986266.txt b/funcom_test/3986266.txt deleted file mode 100644 index cfe2e325c99328123699471c9b44877a08602ce7..0000000000000000000000000000000000000000 --- a/funcom_test/3986266.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void create(String text) { - this.clear(); - this.computeNGrams(1, 5, text); - if (this.containsKey("_")) { - int blanksScore = this.remove("_"); - this.put("_", blanksScore / 2); - } - - entries = new TreeSet<Entry<String, Integer>>( - new NGramEntryComparator()); - entries.addAll(this.entrySet()); - } - COM: <s> fills the finger print with all the ngrams and their numer of occurences </s> - diff --git a/funcom_test/3986269.txt b/funcom_test/3986269.txt deleted file mode 100644 index ffced94158edc53676c87b9ea7b9fbea29d022fd..0000000000000000000000000000000000000000 --- a/funcom_test/3986269.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int getDistance(FingerPrint category) { - int distance = 0; - int count = 0; - for (Entry<String, Integer> entry : this.entries) { - String ngram = entry.getKey(); - count++; - if (count > 1000) { - break; - } - if (!category.containsKey(ngram)) { - distance += category.size(); - continue; - } - distance += Math.abs(this.getPosition(ngram) - - category.getPosition(ngram)); - } - return distance; - } - COM: <s> computes and returns the distance of this finger print to the finger print </s> - diff --git a/funcom_test/3986270.txt b/funcom_test/3986270.txt deleted file mode 100644 index 223611012e984578f6d089c5b0a6db8456c2529b..0000000000000000000000000000000000000000 --- a/funcom_test/3986270.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void loadFingerPrintFromInputStream(InputStream is) { - entries = new TreeSet<Entry<String, Integer>>( - new NGramEntryComparator()); - MyProperties properties = new MyProperties(); - properties.load(is); - for (Entry<String, String> entry : properties.entrySet()) { - this.put(entry.getKey(), Integer.parseInt(entry.getValue())); - } - entries.addAll(this.entrySet()); - } - COM: <s> reads a finger print from the passed input stream </s> - diff --git a/funcom_test/3986273.txt b/funcom_test/3986273.txt deleted file mode 100644 index 82406536989214c277c7da4097f820ab712531d3..0000000000000000000000000000000000000000 --- a/funcom_test/3986273.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getPosition(String key) { - int pos = 1; - - int value = this.entries.first().getValue(); - for (Entry<String, Integer> entry : this.entries) { - if (value != entry.getValue()) { - value = entry.getValue(); - pos++; - } - if (entry.getKey().equals(key)) { - return pos; - } - } - return -1; - } - COM: <s> gets the position of the ngram passed to method in the finger print </s> - diff --git a/funcom_test/3986275.txt b/funcom_test/3986275.txt deleted file mode 100644 index 8c91dce6dbdd8e66ee8436a5312aafd1df1ca8d3..0000000000000000000000000000000000000000 --- a/funcom_test/3986275.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void save() { - File file = new File(this.getCategory() + ".lm"); - try { - if (file.createNewFile()) { - FileOutputStream fos = new FileOutputStream(file); - fos.write(this.toString().getBytes()); - fos.close(); - } - } catch (FileNotFoundException fnfe) { - fnfe.printStackTrace(); - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } - COM: <s> saves the fingerprint to a file named categoryname </s> - diff --git a/funcom_test/3989328.txt b/funcom_test/3989328.txt deleted file mode 100644 index ebe49388d27002dc59673df2357392defbfe4d8f..0000000000000000000000000000000000000000 --- a/funcom_test/3989328.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getErrorText() { - StringBuffer buffer = new StringBuffer(); - - for (int i = 0; i < errors.size(); i++) { - if (i > 0) { - buffer.append("\n\n"); - } - buffer.append(errors.get(i)); - } - return buffer.toString(); - } - COM: <s> returns the complete error text </s> - diff --git a/funcom_test/3989345.txt b/funcom_test/3989345.txt deleted file mode 100644 index d6d8b7d99c40c554e4ea75df5b8c56e7ea830baa..0000000000000000000000000000000000000000 --- a/funcom_test/3989345.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private ProcedureException createException(Throwable e) { - if (e instanceof ProcedureException) { - return (ProcedureException) e; - } else if (e instanceof WrappedException) { - return createException(((WrappedException) e).getWrappedException()); - } else { - LOG.log(Level.WARNING, "Caught unhandled exception", e); - return new ProcedureException("Caught unhandled exception", e); - } - } - COM: <s> creates a procedure exception from any exception type </s> - diff --git a/funcom_test/3989397.txt b/funcom_test/3989397.txt deleted file mode 100644 index cb727466ae2168ff04d2ee8c9fb5d966598e60e3..0000000000000000000000000000000000000000 --- a/funcom_test/3989397.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public AdapterConnection reserveConnection() throws AdapterException { - if (pool == null) { - return adapter.createConnection(params); - } else { - try { - return (AdapterConnection) pool.borrowObject(); - } catch (AdapterException e) { - throw e; - } catch (Exception e) { - throw new AdapterException(e.getMessage()); - } - } - } - COM: <s> reserves a connection from this pool </s> - diff --git a/funcom_test/3989442.txt b/funcom_test/3989442.txt deleted file mode 100644 index 55d49f1e4437e3538f501b6a9f9ee11b052c9bd8..0000000000000000000000000000000000000000 --- a/funcom_test/3989442.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addBuiltIn(Procedure proc) throws ProcedureException { - if (builtIns.containsKey(proc.getName())) { - throw new ProcedureException("a procedure with name '" + - proc.getName() + - "' already exists"); - } - builtIns.put(proc.getName(), proc); - } - COM: <s> adds a new built in procedure to the library </s> - diff --git a/funcom_test/3989453.txt b/funcom_test/3989453.txt deleted file mode 100644 index a74dbc4673c3ed5c6621444ad73382599d1600eb..0000000000000000000000000000000000000000 --- a/funcom_test/3989453.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Procedure storeProcedure(Data data) throws ProcedureException { - AddOnProcedure proc; - String msg; - - proc = createProcedure(data); - try { - store.writeData(PROC_TYPE, proc.getName(), proc.getData()); - } catch (DataStoreException e) { - msg = "failed to write procedure data: " + e.getMessage(); - throw new ProcedureException(msg); - } - return proc; - } - COM: <s> stores a procedure to the data store </s> - diff --git a/funcom_test/3989483.txt b/funcom_test/3989483.txt deleted file mode 100644 index 90e770e2ff2712624a9e7f314f91a8e4c5c97413..0000000000000000000000000000000000000000 --- a/funcom_test/3989483.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private LinkedHashSet getNames(LinkedHashSet set) { - Data bind; - - if (parent != null) { - parent.getNames(set); - } - for (int i = 0; i < data.arraySize(); i++) { - bind = data.getData(i); - set.add(bind.getString("name", null)); - } - return set; - } - COM: <s> sets all binding names in the hierarchy to a set </s> - diff --git a/funcom_test/3989493.txt b/funcom_test/3989493.txt deleted file mode 100644 index b9080fa7a7c6066ee74f88ba86b6bc3b3aae3e33..0000000000000000000000000000000000000000 --- a/funcom_test/3989493.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean isMatching(Class type, Object obj) { - if (type == Boolean.TYPE) { - return obj instanceof Boolean; - } else if (type == Integer.TYPE ) { - return obj instanceof Integer; - } else if (!type.isPrimitive() && obj == null) { - return true; - } else { - return type.isInstance(obj); - } - } - COM: <s> checks if an object matches the specified type </s> - diff --git a/funcom_test/3989508.txt b/funcom_test/3989508.txt deleted file mode 100644 index 99423fbf93dcfb0c7014f51629d8bb4ff8f5ebb3..0000000000000000000000000000000000000000 --- a/funcom_test/3989508.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Data find(String name) throws ProcedureException { - int index = findLocal(name); - - if (index >= 0) { - return data.getData(index); - } else if (parent != null) { - return parent.find(name); - } else { - throw new ProcedureException("no binding for '" + name + "' found"); - } - } - COM: <s> searches for a binding with the specified name </s> - diff --git a/funcom_test/3989511.txt b/funcom_test/3989511.txt deleted file mode 100644 index b9129e578c04c4fddbc82e8a56c997628d6c2c92..0000000000000000000000000000000000000000 --- a/funcom_test/3989511.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int findLocal(String name) { - Data bind; - - for (int i = 0; i < data.arraySize(); i++) { - bind = data.getData(i); - if (name.equals(bind.getString("name", null))) { - return i; - } - } - return -1; - } - COM: <s> searches for a local binding with the specified name </s> - diff --git a/funcom_test/3989515.txt b/funcom_test/3989515.txt deleted file mode 100644 index 1b79d6fa9faac54dff49d6243f428e5a13908c3a..0000000000000000000000000000000000000000 --- a/funcom_test/3989515.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private int compareValues(Object o1, Object o2) throws ClassCastException { - Comparable c1 = (Comparable) o1; - Comparable c2 = (Comparable) o2; - - if (c1 == null && c2 == null) { - return 0; - } else if (c1 == null) { - return -1; - } else if (c2 == null) { - return 1; - } else { - return c1.compareTo(c2); - } - } - COM: <s> compares two values according to generic comparison rules </s> - diff --git a/funcom_test/3989719.txt b/funcom_test/3989719.txt deleted file mode 100644 index 8c058329ed145d38e61f45d7feae7cad15c9a569..0000000000000000000000000000000000000000 --- a/funcom_test/3989719.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Data getEnvironmentData(Environment env) { - Data res; - - if (env != null) { - res = new Data(); - res.set("name", env.getName()); - res.set("description", env.getDescription()); - return res; - } else { - return null; - } - } - COM: <s> returns a data object for an environment </s> - diff --git a/funcom_test/3989724.txt b/funcom_test/3989724.txt deleted file mode 100644 index 7281f0deb6d571e26094a25fe3306223e9439fc8..0000000000000000000000000000000000000000 --- a/funcom_test/3989724.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void commitStaticHeaders(long lastModified) { - if (!response.containsHeader("Cache-Control")) { - response.setHeader("Cache-Control", "public"); - } - if (lastModified > 0) { - response.setDateHeader("Last-Modified", lastModified); - } else { - response.setDateHeader("Last-Modified", - System.currentTimeMillis()); - } - } - COM: <s> sets the static http response headers </s> - diff --git a/funcom_test/3989743.txt b/funcom_test/3989743.txt deleted file mode 100644 index 83340cb4003a9865b0396f1620126b5044a0e4a3..0000000000000000000000000000000000000000 --- a/funcom_test/3989743.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void remove(int index) throws UnsupportedOperationException { - if (this.sealed) { - String msg = "cannot modify sealed data object"; - throw new UnsupportedOperationException(msg); - } - if (this.list != null && index < this.list.size()) { - this.list.remove(index); - } - } - COM: <s> deletes the specified array index and its value </s> - diff --git a/funcom_test/3989773.txt b/funcom_test/3989773.txt deleted file mode 100644 index 7785107d9f198a239821de8a437b8185999391a3..0000000000000000000000000000000000000000 --- a/funcom_test/3989773.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Data readData(String type, String id) throws DataStoreException { - Iterator iter = this.stores.values().iterator(); - DataStore store; - Data data; - - while (iter.hasNext()) { - store = (DataStore) iter.next(); - data = store.readData(type, id); - if (data != null) { - return data; - } - } - return this.defaultStore.readData(type, id); - } - COM: <s> reads an identified data object of a certain type </s> - diff --git a/funcom_test/3989803.txt b/funcom_test/3989803.txt deleted file mode 100644 index 38190d411908c8933fac4ebc8c8094f210470fa8..0000000000000000000000000000000000000000 --- a/funcom_test/3989803.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void activate() throws AdapterException { - String msg; - - if (sqlPing != null) { - executeQuery(sqlPing); - } else { - try { - if (con.isClosed()) { - msg = "failed to activate, connection already closed"; - throw new AdapterException(msg); - } - } catch (SQLException e) { - msg = "failed to activate: " + e.getMessage(); - throw new AdapterException(msg); - } - } - } - COM: <s> activates the connection </s> - diff --git a/funcom_test/3989830.txt b/funcom_test/3989830.txt deleted file mode 100644 index 2fb6bbdbe61a905a3ae0c4a2d088c285091f4cf2..0000000000000000000000000000000000000000 --- a/funcom_test/3989830.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public CallContext findContext(int threadId) { - Iterator iter; - Object obj; - - synchronized (threadContext) { - iter = threadContext.keySet().iterator(); - while (iter.hasNext()) { - obj = iter.next(); - if (obj.hashCode() == threadId) { - return (CallContext) threadContext.get(obj); - } - } - } - return null; - } - COM: <s> finds the currently active call context for a thread id </s> - diff --git a/funcom_test/3989869.txt b/funcom_test/3989869.txt deleted file mode 100644 index 8af00cc5212caa4d8aa2033e593e34b5eb5b96e4..0000000000000000000000000000000000000000 --- a/funcom_test/3989869.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected boolean hasFlag(String flags, String flag, boolean defaultValue) { - if (flags == null || flag == null) { - return defaultValue; - } else if (flags.indexOf("no-" + flag) >= 0) { - return false; - } else if (flags.indexOf(flag) >= 0) { - return true; - } else { - return defaultValue; - } - } - COM: <s> checks if a specified flag is either set or unset </s> - diff --git a/funcom_test/3989880.txt b/funcom_test/3989880.txt deleted file mode 100644 index 7c9a1b3be6b586a5b9e5314308f959fb5e9dea17..0000000000000000000000000000000000000000 --- a/funcom_test/3989880.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String literal(Object obj) { - if (obj == null) { - return "NULL"; - } else if (obj instanceof String) { - return literal((String) obj); - } else if (obj instanceof Number) { - return literal((Number) obj); - } else { - return literal(obj.toString()); - } - } - COM: <s> returns an sql literal for a string number or list value </s> - diff --git a/funcom_test/3989894.txt b/funcom_test/3989894.txt deleted file mode 100644 index d0b1910a9b997b6cdd82cc956088eb8bd35b8899..0000000000000000000000000000000000000000 --- a/funcom_test/3989894.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String literal(Data list) { - StringBuffer buffer = new StringBuffer(); - - buffer.append("("); - for (int i = 0; i < list.arraySize(); i++) { - if (i > 0) { - buffer.append(","); - } - buffer.append(literal(list.get(i))); - } - buffer.append(")"); - return buffer.toString(); - } - COM: <s> returns an sql parenthesized list of literal values </s> - diff --git a/funcom_test/39913333.txt b/funcom_test/39913333.txt deleted file mode 100644 index 88bfc132a693fbdbf9aee14d27212e095c6e429c..0000000000000000000000000000000000000000 --- a/funcom_test/39913333.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void doInsert(String insertionPattern, int deltaIfEmpty) { - int initialSelectionCount = mContentText.getSelectionCount(); - mContentText.insert(String.format(insertionPattern, mContentText.getSelectionText())); - - if (initialSelectionCount == 0) { - mContentText.setSelection(mContentText.getSelection().x - deltaIfEmpty); - } - } - COM: <s> insert a pattern in the editor </s> - diff --git a/funcom_test/39924474.txt b/funcom_test/39924474.txt deleted file mode 100644 index c7a7f716c6420334031a23ff6d83d80851416634..0000000000000000000000000000000000000000 --- a/funcom_test/39924474.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void end() { - containerLayer.getRootPane().setGlassPane(savedGlassPane); - containerLayer.getRootPane().getGlassPane().setVisible(false); - animationLayer.setVisible(false); - containerLayer.setVisible(true); - containerLayer.repaint(); - animator = null; - transitionTarget.transitionComplete(); - } - COM: <s> override of code timing target </s> - diff --git a/funcom_test/39936499.txt b/funcom_test/39936499.txt deleted file mode 100644 index a4a2ab95425044834bb393e6735e32cb4ab503eb..0000000000000000000000000000000000000000 --- a/funcom_test/39936499.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - abstractBasicModelEClass = createEClass(ABSTRACT_BASIC_MODEL); - createEAttribute(abstractBasicModelEClass, ABSTRACT_BASIC_MODEL__SCHEDULER); - createEAttribute(abstractBasicModelEClass, ABSTRACT_BASIC_MODEL__ID); - createEAttribute(abstractBasicModelEClass, ABSTRACT_BASIC_MODEL__WCET); - createEAttribute(abstractBasicModelEClass, ABSTRACT_BASIC_MODEL__PERIOD); - createEAttribute(abstractBasicModelEClass, ABSTRACT_BASIC_MODEL__DEADLINE); - } - COM: <s> creates the meta model objects for the package </s> - diff --git a/funcom_test/39936511.txt b/funcom_test/39936511.txt deleted file mode 100644 index 209975d4e362a8ed31edcfb86e04a375d0c96466..0000000000000000000000000000000000000000 --- a/funcom_test/39936511.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSchedulerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractBasicModel_scheduler_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractBasicModel_scheduler_feature", "_UI_AbstractBasicModel_type"), - AbstractBasicModelPackage.Literals.ABSTRACT_BASIC_MODEL__SCHEDULER, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the scheduler feature </s> - diff --git a/funcom_test/39936516.txt b/funcom_test/39936516.txt deleted file mode 100644 index a5548da3cc2b57005cd7111bd3a1ff73fa12dca4..0000000000000000000000000000000000000000 --- a/funcom_test/39936516.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractBasicModel_id_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractBasicModel_id_feature", "_UI_AbstractBasicModel_type"), - AbstractBasicModelPackage.Literals.ABSTRACT_BASIC_MODEL__ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the id feature </s> - diff --git a/funcom_test/39936520.txt b/funcom_test/39936520.txt deleted file mode 100644 index bb2f0d01d639965e15baa5e52e0959b4c1246553..0000000000000000000000000000000000000000 --- a/funcom_test/39936520.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addWcetPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractBasicModel_wcet_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractBasicModel_wcet_feature", "_UI_AbstractBasicModel_type"), - AbstractBasicModelPackage.Literals.ABSTRACT_BASIC_MODEL__WCET, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the wcet feature </s> - diff --git a/funcom_test/39936522.txt b/funcom_test/39936522.txt deleted file mode 100644 index 30b49dd6d62ed313700cf207bba7faec0e50e145..0000000000000000000000000000000000000000 --- a/funcom_test/39936522.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPeriodPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractBasicModel_period_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractBasicModel_period_feature", "_UI_AbstractBasicModel_type"), - AbstractBasicModelPackage.Literals.ABSTRACT_BASIC_MODEL__PERIOD, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the period feature </s> - diff --git a/funcom_test/39936526.txt b/funcom_test/39936526.txt deleted file mode 100644 index 2f7443bee5bfe43d2516490eb8d3a15fa7f97533..0000000000000000000000000000000000000000 --- a/funcom_test/39936526.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDeadlinePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractBasicModel_deadline_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractBasicModel_deadline_feature", "_UI_AbstractBasicModel_type"), - AbstractBasicModelPackage.Literals.ABSTRACT_BASIC_MODEL__DEADLINE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the deadline feature </s> - diff --git a/funcom_test/39936602.txt b/funcom_test/39936602.txt deleted file mode 100644 index 1378e9b73b44101631241f51afab2a8d82f39c5a..0000000000000000000000000000000000000000 --- a/funcom_test/39936602.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPUPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TechnicRMLL73_pU_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TechnicRMLL73_pU_feature", "_UI_TechnicRMLL73_type"), - TechnicRMLL73Package.Literals.TECHNIC_RMLL73__PU, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the pu feature </s> - diff --git a/funcom_test/39936603.txt b/funcom_test/39936603.txt deleted file mode 100644 index b96784a933dcd053136d032f84695f36e9920d22..0000000000000000000000000000000000000000 --- a/funcom_test/39936603.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addBoundLL73PropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TechnicRMLL73_boundLL73_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TechnicRMLL73_boundLL73_feature", "_UI_TechnicRMLL73_type"), - TechnicRMLL73Package.Literals.TECHNIC_RMLL73__BOUND_LL73, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the bound ll73 feature </s> - diff --git a/funcom_test/39936605.txt b/funcom_test/39936605.txt deleted file mode 100644 index 4a336f74d356bc87907f73174b7e1df2dcd02d3b..0000000000000000000000000000000000000000 --- a/funcom_test/39936605.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSchedulablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TechnicRMLL73_schedulable_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TechnicRMLL73_schedulable_feature", "_UI_TechnicRMLL73_type"), - TechnicRMLL73Package.Literals.TECHNIC_RMLL73__SCHEDULABLE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the schedulable feature </s> - diff --git a/funcom_test/39936753.txt b/funcom_test/39936753.txt deleted file mode 100644 index 33158b816e22f3a0b397a482b8faab3c786966b6..0000000000000000000000000000000000000000 --- a/funcom_test/39936753.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addWcrtPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskResult_wcrt_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskResult_wcrt_feature", "_UI_TaskResult_type"), - Technic_RM_ResponseTimeNBPackage.Literals.TASK_RESULT__WCRT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the wcrt feature </s> - diff --git a/funcom_test/39936755.txt b/funcom_test/39936755.txt deleted file mode 100644 index e5e644c4fa98ac17d1f7792ae25fb6be07a5e1a6..0000000000000000000000000000000000000000 --- a/funcom_test/39936755.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSchedulingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskResult_scheduling_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskResult_scheduling_feature", "_UI_TaskResult_type"), - Technic_RM_ResponseTimeNBPackage.Literals.TASK_RESULT__SCHEDULING, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the scheduling feature </s> - diff --git a/funcom_test/39936967.txt b/funcom_test/39936967.txt deleted file mode 100644 index 343ac4cae764c30ed9ca911a9442e0524e2d0ab0..0000000000000000000000000000000000000000 --- a/funcom_test/39936967.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ProcessorUtilisationNB_u_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ProcessorUtilisationNB_u_feature", "_UI_ProcessorUtilisationNB_type"), - ProcessorUtilizationNBPackage.Literals.PROCESSOR_UTILISATION_NB__U, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the u feature </s> - diff --git a/funcom_test/39937110.txt b/funcom_test/39937110.txt deleted file mode 100644 index 0ad207243a12f0aba550d9a391104989e0ac8ae9..0000000000000000000000000000000000000000 --- a/funcom_test/39937110.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BoundRMLL73_value_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BoundRMLL73_value_feature", "_UI_BoundRMLL73_type"), - BoundRMLL73Package.Literals.BOUND_RMLL73__VALUE, - true, - false, - false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the value feature </s> - diff --git a/funcom_test/39937113.txt b/funcom_test/39937113.txt deleted file mode 100644 index 137b7bf20f6193157faf01a225a79f5f5d38f0c7..0000000000000000000000000000000000000000 --- a/funcom_test/39937113.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNb_TasksPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BoundRMLL73_nb_Tasks_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_BoundRMLL73_nb_Tasks_feature", "_UI_BoundRMLL73_type"), - BoundRMLL73Package.Literals.BOUND_RMLL73__NB_TASKS, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the nb tasks feature </s> - diff --git a/funcom_test/39937674.txt b/funcom_test/39937674.txt deleted file mode 100644 index 77e37cace5fc4c61fca6d50631044c8aa20e5661..0000000000000000000000000000000000000000 --- a/funcom_test/39937674.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPreviousPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComputeBox_previous_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComputeBox_previous_feature", "_UI_ComputeBox_type"), - GeneralArchitecturePackage.Literals.COMPUTE_BOX__PREVIOUS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the previous feature </s> - diff --git a/funcom_test/39937677.txt b/funcom_test/39937677.txt deleted file mode 100644 index aa6d8ae03f2390c41bf9d8fa391cf16fe01d1ed1..0000000000000000000000000000000000000000 --- a/funcom_test/39937677.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComputeBox_next_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComputeBox_next_feature", "_UI_ComputeBox_type"), - GeneralArchitecturePackage.Literals.COMPUTE_BOX__NEXT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the next feature </s> - diff --git a/funcom_test/39937680.txt b/funcom_test/39937680.txt deleted file mode 100644 index 38480920bfda52766f394ce761dc53a2510c1f54..0000000000000000000000000000000000000000 --- a/funcom_test/39937680.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRootPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ComputeBox_root_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ComputeBox_root_feature", "_UI_ComputeBox_type"), - GeneralArchitecturePackage.Literals.COMPUTE_BOX__ROOT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the root feature </s> - diff --git a/funcom_test/39937943.txt b/funcom_test/39937943.txt deleted file mode 100644 index 7d6a5dce0265da9393d49c8f2f31bd767613ad97..0000000000000000000000000000000000000000 --- a/funcom_test/39937943.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDatasPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SubTask_datas_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SubTask_datas_feature", "_UI_SubTask_type"), - GeneralModelPackage.Literals.SUB_TASK__DATAS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the datas feature </s> - diff --git a/funcom_test/39937945.txt b/funcom_test/39937945.txt deleted file mode 100644 index b4067a37b75919a36ff3d61d409f563c91e1c217..0000000000000000000000000000000000000000 --- a/funcom_test/39937945.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCpuPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SubTask_cpu_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SubTask_cpu_feature", "_UI_SubTask_type"), - GeneralModelPackage.Literals.SUB_TASK__CPU, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the cpu feature </s> - diff --git a/funcom_test/39937947.txt b/funcom_test/39937947.txt deleted file mode 100644 index 4e1fe2c90802a859c9082bea942b9ab9673c8722..0000000000000000000000000000000000000000 --- a/funcom_test/39937947.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSubIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SubTask_subId_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SubTask_subId_feature", "_UI_SubTask_type"), - GeneralModelPackage.Literals.SUB_TASK__SUB_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the sub id feature </s> - diff --git a/funcom_test/39937951.txt b/funcom_test/39937951.txt deleted file mode 100644 index 36f6d05ac640d651757e24630d1f040d5d59aa34..0000000000000000000000000000000000000000 --- a/funcom_test/39937951.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPriorityPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SubTask_priority_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SubTask_priority_feature", "_UI_SubTask_type"), - GeneralModelPackage.Literals.SUB_TASK__PRIORITY, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the priority feature </s> - diff --git a/funcom_test/39937954.txt b/funcom_test/39937954.txt deleted file mode 100644 index ef2be8ac54e7269e0ec469c613d5e803a08005e6..0000000000000000000000000000000000000000 --- a/funcom_test/39937954.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAtomicPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SubTask_atomic_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SubTask_atomic_feature", "_UI_SubTask_type"), - GeneralModelPackage.Literals.SUB_TASK__ATOMIC, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the atomic feature </s> - diff --git a/funcom_test/39937990.txt b/funcom_test/39937990.txt deleted file mode 100644 index eafadad0deef67b92cdc955d6fc3cdbcd9039774..0000000000000000000000000000000000000000 --- a/funcom_test/39937990.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addReleaseTimePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Task_releaseTime_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Task_releaseTime_feature", "_UI_Task_type"), - GeneralModelPackage.Literals.TASK__RELEASE_TIME, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the release time feature </s> - diff --git a/funcom_test/39938145.txt b/funcom_test/39938145.txt deleted file mode 100644 index a1636c571eae07944c9fdd44b081cad5feabb7c3..0000000000000000000000000000000000000000 --- a/funcom_test/39938145.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNode1PropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AbstractTask_node1_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AbstractTask_node1_feature", "_UI_AbstractTask_type"), - Node1Package.Literals.ABSTRACT_TASK__NODE1, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the node1 feature </s> - diff --git a/funcom_test/39938601.txt b/funcom_test/39938601.txt deleted file mode 100644 index 4e82b676ff4bc3925957ae557c7d6c740495d66b..0000000000000000000000000000000000000000 --- a/funcom_test/39938601.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSubTasksPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CPU_subTasks_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_CPU_subTasks_feature", "_UI_CPU_type"), - MSPackage.Literals.CPU__SUB_TASKS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the sub tasks feature </s> - diff --git a/funcom_test/39939571.txt b/funcom_test/39939571.txt deleted file mode 100644 index 4807c498b3f4e6ba915f13747db50074d0ae9494..0000000000000000000000000000000000000000 --- a/funcom_test/39939571.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addResultPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SchedulingResult_result_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SchedulingResult_result_feature", "_UI_SchedulingResult_type"), - ResultPackage.Literals.SCHEDULING_RESULT__RESULT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the result feature </s> - diff --git a/funcom_test/39971178.txt b/funcom_test/39971178.txt deleted file mode 100644 index 002cee328c08438306f3c74c656029bd5ae084f8..0000000000000000000000000000000000000000 --- a/funcom_test/39971178.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JTextField getJTextFieldNomVille() { - if (jTextFieldNomVille == null) { - jTextFieldNomVille = new JTextField(); - jTextFieldNomVille.setPreferredSize(new Dimension(200, 20)); - jTextFieldNomVille.setBounds(new Rectangle(97, 19, 118, 21)); - } - return jTextFieldNomVille; - } - COM: <s> this method initializes j text field nom ville </s> - diff --git a/funcom_test/39971207.txt b/funcom_test/39971207.txt deleted file mode 100644 index f70cedce24f6e8b725d49ffcb209cc4bb2bb62f6..0000000000000000000000000000000000000000 --- a/funcom_test/39971207.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JRadioButton getJRadioButtonTouristiqueOui() { - if (jRadioButtonTouristiqueOui == null) { - jRadioButtonTouristiqueOui = new JRadioButton(); - jRadioButtonTouristiqueOui.setBounds(new Rectangle(96, 76, 42, 24)); - jRadioButtonTouristiqueOui.setText("oui"); - jRadioButtonTouristiqueOui.setBackground(new Color(209, 209, 240)); - bgroupTouriste.add(jRadioButtonTouristiqueOui); - jRadioButtonTouristiqueOui.setSelected(true); - } - return jRadioButtonTouristiqueOui; - } - COM: <s> this method initializes j radio button touristique oui </s> - diff --git a/funcom_test/39971211.txt b/funcom_test/39971211.txt deleted file mode 100644 index b316dbca16cd8535808ca64764b7e2461c9182ab..0000000000000000000000000000000000000000 --- a/funcom_test/39971211.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JRadioButton getJRadioButtonTouristiqueNon() { - if (jRadioButtonTouristiqueNon == null) { - jRadioButtonTouristiqueNon = new JRadioButton(); - jRadioButtonTouristiqueNon.setText("non"); - jRadioButtonTouristiqueNon.setSize(new Dimension(46, 24)); - jRadioButtonTouristiqueNon.setLocation(new Point(153, 76)); - jRadioButtonTouristiqueNon.setBackground(new Color(209, 209, 240)); - bgroupTouriste.add(jRadioButtonTouristiqueNon); - } - return jRadioButtonTouristiqueNon; - } - COM: <s> this method initializes j radio button touristique non </s> - diff --git a/funcom_test/39971220.txt b/funcom_test/39971220.txt deleted file mode 100644 index b211c1de1d3f5de3281d82f6a284f4ffc73b5989..0000000000000000000000000000000000000000 --- a/funcom_test/39971220.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JRadioButton getJRadioButtonOuverteNon() { - if (jRadioButtonOuverteNon == null) { - jRadioButtonOuverteNon = new JRadioButton(); - jRadioButtonOuverteNon.setText("non"); - jRadioButtonOuverteNon.setSize(new Dimension(46, 24)); - jRadioButtonOuverteNon.setLocation(new Point(153, 104)); - jRadioButtonOuverteNon.setBackground(new Color(209, 209, 240)); - bgroupOuverte.add(jRadioButtonOuverteNon); - } - return jRadioButtonOuverteNon; - } - COM: <s> this method initializes j radio button ouverte non </s> - diff --git a/funcom_test/39984871.txt b/funcom_test/39984871.txt deleted file mode 100644 index b995adf5d4c2eebe53c848b3a86c719f1a44fbfd..0000000000000000000000000000000000000000 --- a/funcom_test/39984871.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void reloadTasks() - {//GEN-END:|87-entry|0|88-preAction - // write pre-action user code here - doReloadTasks((Project)projects.elementAt(projectList.getSelectedIndex())); - switchDisplayable(null, taskList);//GEN-LINE:|87-entry|1|88-postAction - // write post-action user code here - }//GEN-BEGIN:|87-entry|2| - COM: <s> performs an action assigned to the reload tasks entry point </s> - diff --git a/funcom_test/40018864.txt b/funcom_test/40018864.txt deleted file mode 100644 index 3734eb960b2f898fb3275c5c2fd1e2bc6d6eb711..0000000000000000000000000000000000000000 --- a/funcom_test/40018864.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void setTargetVelocity(int i) { - Vector resultV = new Vector(0, 0); - Particle p = (Particle) ((Gui) parent).getTargets().get(i); - resultV = new Vector(p.loc); - resultV.sub(loc); - resultV.normalize(); - vel.add(resultV); - vel.normalize(); - } - COM: <s> add a velocity where the target find target </s> - diff --git a/funcom_test/40018888.txt b/funcom_test/40018888.txt deleted file mode 100644 index 3956d1e5af105dd284a7fdb788bceaae75465f1f..0000000000000000000000000000000000000000 --- a/funcom_test/40018888.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void avoid() { - for (Particle p : ((Gui) parent).getPredators()) { - if (!p.dead) { - setAvoid(p); - } - } - for (Particle p : ((Gui) parent).getTargets()) { - if (!p.dead) { - setAvoid(p); - } - } - for (Particle p : ((Gui) parent).getObstacles()) { - setAvoid(p); - } - } - COM: <s> avoid all kinds of objects </s> - diff --git a/funcom_test/40091711.txt b/funcom_test/40091711.txt deleted file mode 100644 index 3673f320e072c909c129c8cdb7d28443a416708b..0000000000000000000000000000000000000000 --- a/funcom_test/40091711.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void injectDependencies() throws Exception { - if (isPopulateProtectedVariables()) { - if (this.managedVariableNames == null) { - initManagedVariableNames(); - } - populateProtectedVariables(); - } - else if (getAutowireMode() != AUTOWIRE_NO) { - getApplicationContext().getBeanFactory().autowireBeanProperties( - this, getAutowireMode(), isDependencyCheck()); - } - } - COM: <s> inject dependencies into this instance that is this test instance </s> - diff --git a/funcom_test/40091773.txt b/funcom_test/40091773.txt deleted file mode 100644 index 3e170b26cce07707850b5971046bd64456dbdc59..0000000000000000000000000000000000000000 --- a/funcom_test/40091773.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: static public void assertEquals(String message, String expected, String actual) { - if((expected == null) && (actual == null)) { - return; - } - if((expected != null) && expected.equals(actual)) { - return; - } - throw new AssertionError(format(message, expected, actual)); - } - COM: <s> asserts that two strings are equal </s> - diff --git a/funcom_test/40091843.txt b/funcom_test/40091843.txt deleted file mode 100644 index cbc24c9d3049b73129782e9595fd12d964ac6120..0000000000000000000000000000000000000000 --- a/funcom_test/40091843.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void startResultSummaryTable(String style) { - tableStart(style); - m_out.println("<tr><th>Class</th>" - + "<th>Method</th><th># of<br/>Scenarios</th><th>Time<br/>(Msecs)</th></tr>"); - m_row = 0; - } - COM: <s> starts and defines columns result summary table </s> - diff --git a/funcom_test/40091923.txt b/funcom_test/40091923.txt deleted file mode 100644 index 898c3d8ed40b46c6d743029192adc3f86b526148..0000000000000000000000000000000000000000 --- a/funcom_test/40091923.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void runInParallelTestMode() { - List<Runnable> tasks= Lists.newArrayList(m_testRunners.size()); - for(TestRunner tr: m_testRunners) { - tasks.add(new SuiteWorker(tr)); - } - - ThreadUtil.execute(tasks, m_suite.getThreadCount(), - m_suite.getTimeOut(XmlTest.DEFAULT_TIMEOUT_MS), false); - } - COM: <s> implement suite parallel tests </s> - diff --git a/funcom_test/40091943.txt b/funcom_test/40091943.txt deleted file mode 100644 index 22616b1c8ff8a56ebbef6da1b0318da407413dac..0000000000000000000000000000000000000000 --- a/funcom_test/40091943.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void push(String tagName, String schema, Properties attributes) { - XMLUtils.xmlOpen(m_buffer, m_currentIndent, tagName + schema, attributes); - m_tagStack.push(new Tag(m_currentIndent, tagName)); - m_currentIndent += DEFAULT_INDENT_INCREMENT; - } - COM: <s> push a new tag </s> - diff --git a/funcom_test/40092001.txt b/funcom_test/40092001.txt deleted file mode 100644 index 44698e724cac4a96710eab6f7cc61d501911fec3..0000000000000000000000000000000000000000 --- a/funcom_test/40092001.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Object newReporterInstance() { - Object result = null; - Class reporterClass = ClassHelper.forName(m_className); - if (reporterClass != null) { - result = ClassHelper.newInstance(reporterClass); - for (ReporterConfig.Property property : m_properties) { - PropertyUtils.setProperty(result, property.getName(), property.getValue()); - } - } - return result; - } - COM: <s> creates a reporter based on the current configuration </s> - diff --git a/funcom_test/40092046.txt b/funcom_test/40092046.txt deleted file mode 100644 index 6883c3af18969c32cf88373ab600aed18d3b4c45..0000000000000000000000000000000000000000 --- a/funcom_test/40092046.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int compare(Object o1, Object o2) { - int r = ((T) o1).getTestClass().getName().compareTo(((T) o2).getTestClass().getName()); - if (r == 0) { - r = ((T) o1).getMethodName().compareTo(((T) o2).getMethodName()); - } - return r; - } - COM: <s> arranges methods by classname and method name </s> - diff --git a/funcom_test/40092062.txt b/funcom_test/40092062.txt deleted file mode 100644 index 3ec8a9a171c4af050f35fc269a53b0dc75130769..0000000000000000000000000000000000000000 --- a/funcom_test/40092062.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: static public void assertDirectory(File tstvalue, String message) { - boolean condition=false; - try { - condition=tstvalue.isDirectory(); - } catch(SecurityException e) { - failSecurity(e,tstvalue,fileType(tstvalue),"Directory", message); - } - if(!condition) { - failFile(tstvalue,fileType(tstvalue),"Directory", message); - } - } - COM: <s> asserts that a </s> - diff --git a/funcom_test/40092175.txt b/funcom_test/40092175.txt deleted file mode 100644 index 996016a7aa7344de00d4779854ee9123c614f390..0000000000000000000000000000000000000000 --- a/funcom_test/40092175.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public TestResult start(Class testCase) { - try { - Test suite = getTest(testCase); - - if(null != suite) { - return doRun(suite); - } - else { - runFailed(testCase, "could not create/run JUnit test suite"); - } - } - catch (Exception e) { - runFailed(testCase, "could not create/run JUnit test suite: " + e.getMessage()); - } - - return null; - } - COM: <s> starts a test run </s> - diff --git a/funcom_test/40092192.txt b/funcom_test/40092192.txt deleted file mode 100644 index 3432241bf4650a569b9787062b6699260409d26c..0000000000000000000000000000000000000000 --- a/funcom_test/40092192.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void initMetaGroups(XmlTest xmlTest) { - Map<String, List<String>> metaGroups = xmlTest.getMetaGroups(); - - for (Map.Entry<String, List<String>> entry : metaGroups.entrySet()) { - addMetaGroup(entry.getKey(), entry.getValue()); - } - } - COM: <s> initialize meta groups </s> - diff --git a/funcom_test/40092264.txt b/funcom_test/40092264.txt deleted file mode 100644 index 057e3e6a6a8fcf5d954f94544a33e8ca795e41f9..0000000000000000000000000000000000000000 --- a/funcom_test/40092264.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setStatus(T node, Status status) { - removeNode(node); - switch(status) { - case READY: m_nodesReady.add(node); break; - case RUNNING: m_nodesRunning.add(node); break; - case FINISHED: m_nodesFinished.add(node); break; - default: throw new IllegalArgumentException(); - } - } - COM: <s> set the status for a node </s> - diff --git a/funcom_test/40092441.txt b/funcom_test/40092441.txt deleted file mode 100644 index 4eb1c0893c058be535900003edc74ffbc73c7230..0000000000000000000000000000000000000000 --- a/funcom_test/40092441.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private boolean isAlwaysRun(IConfigurationAnnotation configurationAnnotation) { - if(null == configurationAnnotation) { - return false; - } - - boolean alwaysRun= false; - if ((configurationAnnotation.getAfterSuite() - || configurationAnnotation.getAfterTest() - || configurationAnnotation.getAfterTestClass() - || configurationAnnotation.getAfterTestMethod()) - && configurationAnnotation.getAlwaysRun()) - { - alwaysRun= true; - } - - return alwaysRun; - } - COM: <s> is the code iconfiguration code marked as always run </s> - diff --git a/funcom_test/40092612.txt b/funcom_test/40092612.txt deleted file mode 100644 index 8b27d02ccb7ba11e877fb41a3fb82cdf3c93cb79..0000000000000000000000000000000000000000 --- a/funcom_test/40092612.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void shutdown() { - Utils.log(getClass().getName(), 3, "Shutting down poolservice " + this + " terminated:" - + m_service.isTerminated()); - // if (m_service.isTerminated()) { - m_service.shutdown(); - // } - } - COM: <s> shut down the service </s> - diff --git a/funcom_test/40092613.txt b/funcom_test/40092613.txt deleted file mode 100644 index 243e5e457745ef9743570cb9f8fc114fb80e44ad..0000000000000000000000000000000000000000 --- a/funcom_test/40092613.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: static public void assertEquals(Set actual, Set expected) { - if(actual == expected) return; - - if (actual == null || expected == null) { - fail("Sets not equal: expected: " + expected + " and actual: " + actual); - } - - if (!actual.equals(expected)) { - fail("Sets differ: expected " + expected + " but got " + actual); - } - } - COM: <s> asserts that two sets are equal </s> - diff --git a/funcom_test/40092627.txt b/funcom_test/40092627.txt deleted file mode 100644 index 2d58c6a337731ed61d972c8524a3adcb524deff7..0000000000000000000000000000000000000000 --- a/funcom_test/40092627.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: static public void assertEquals(Map actual, Map expected) { - if(actual == expected) return; - - if (actual == null || expected == null) { - fail("Maps not equal: expected: " + expected + " and actual: " + actual); - } - - if (!actual.equals(expected)) { - fail("Maps differ: expected " + expected + " but got " + actual); - } - } - COM: <s> asserts that two maps are equal </s> - diff --git a/funcom_test/40092927.txt b/funcom_test/40092927.txt deleted file mode 100644 index 1e0754d102a632ff6290fb7aef5f0c3ac73fe580..0000000000000000000000000000000000000000 --- a/funcom_test/40092927.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private boolean messageRegExpMatches(String messageRegExp, Throwable ite) { - if (".*".equals(messageRegExp)) { - return true; - } else { - if (ite.getMessage() == null) return false; - else return Pattern.matches(messageRegExp, ite.getMessage()); - } - } - COM: <s> message reg ex </s> - diff --git a/funcom_test/40093092.txt b/funcom_test/40093092.txt deleted file mode 100644 index 5f0300d5895bb69befede7465e08028a7a4adb50..0000000000000000000000000000000000000000 --- a/funcom_test/40093092.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void saveSuiteContent(final File file, final XMLStringBuffer content) { - - try { - FileWriter fw = new FileWriter(file); - try { - fw.write(content.getStringBuffer().toString()); - } - finally { - fw.close(); - } - } - catch (IOException ioe) { - // TODO CQ is this normal to swallow exception here - LOGGER.error("IO Exception", ioe); - } - } - COM: <s> saves the content of the string buffer to the specified file </s> - diff --git a/funcom_test/40093181.txt b/funcom_test/40093181.txt deleted file mode 100644 index ccc3b89f6126f1de62824de09a67d23fd770549b..0000000000000000000000000000000000000000 --- a/funcom_test/40093181.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void xmlMethodSelectors(boolean start, Attributes attributes) { - if (start) { - m_currentSelectors = new ArrayList<XmlMethodSelector>(); - } - else { - if (m_inTest) { - m_currentTest.setMethodSelectors(m_currentSelectors); - } - else { - m_currentSuite.setMethodSelectors(m_currentSelectors); - } - - m_currentSelectors = null; - } - } - COM: <s> parse method selectors </s> - diff --git a/funcom_test/40093185.txt b/funcom_test/40093185.txt deleted file mode 100644 index b3e3a9303ae87706018d5f9523a9d5691be1965b..0000000000000000000000000000000000000000 --- a/funcom_test/40093185.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void xmlSelectorClass(boolean start, Attributes attributes) { - if (start) { - m_currentSelector.setName(attributes.getValue("name")); - String priority = attributes.getValue("priority"); - if (priority == null) { - priority = "0"; - } - m_currentSelector.setPriority(new Integer(priority)); - } - else { - // do nothing - } - } - COM: <s> parse selector class </s> - diff --git a/funcom_test/40099556.txt b/funcom_test/40099556.txt deleted file mode 100644 index 6edc4bd20e9f80fd91ba349dab42f33f73f4b8ac..0000000000000000000000000000000000000000 --- a/funcom_test/40099556.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void removeSelection(IEntity selection) { - - // Assertions. - if (selection == null) { - String msg = "Argument 'selection' cannot be null."; - throw new IllegalArgumentException(msg); - } - - entitySel.remove(selection.getEntityId()); - if(selection.getType().equals(EntityType.MEMBER)){ - memberCount--; - }else{ - groupCount--; - } - - } - COM: <s> removes the given entity from the basket </s> - diff --git a/funcom_test/40099910.txt b/funcom_test/40099910.txt deleted file mode 100644 index acc90ac89745095fff6bad7a8a5cf6c5e5616eaf..0000000000000000000000000000000000000000 --- a/funcom_test/40099910.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int compare(Object o1, Object o2) { - try { - Priority p1 = ((IMessage)o1).getPriority(); - Priority p2 = ((IMessage)o2).getPriority(); - return p2.compareTo(p1); - } catch (MercuryException e) { - throw new RuntimeException("PriorityDescComparator: Error in getting message priority. ", e); - } - } - COM: <s> inverted descending compare </s> - diff --git a/funcom_test/40100071.txt b/funcom_test/40100071.txt deleted file mode 100644 index 35ff283ff41a14427ef194aa75953e3a02200272..0000000000000000000000000000000000000000 --- a/funcom_test/40100071.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int getUnreadCount() throws MercuryException { - int rslt = -1; - - // EA: for POP3, getUnreadMessageCount() is effectively the same as - // getMessages().length - try { - ensureOpen(Folder.READ_ONLY); - rslt = folder.getUnreadMessageCount(); - } catch (MessagingException me) { - throw new JavaMailException("getUnreadMessageCount() failed", me); - } - - return rslt; - } - COM: <s> get the number of unread messages in the folder </s> - diff --git a/funcom_test/40100126.txt b/funcom_test/40100126.txt deleted file mode 100644 index 2aeeb36f53356f37ea7ff551df329c37c4fc0b0f..0000000000000000000000000000000000000000 --- a/funcom_test/40100126.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getAbstract() throws MercuryException { - // XXX: Provide the first sentence/line from the content? - // -- Not any cheaper to do, but meets the requirements. - String rslt = getBody(); - if (rslt != null && rslt.length() > 50) - rslt = rslt.substring(0, 50); - - return rslt; - } - COM: <s> retrieve an abstract of the message body </s> - diff --git a/funcom_test/40100139.txt b/funcom_test/40100139.txt deleted file mode 100644 index eb0e7b9a7646272eb2f91255b1b98a29b034dc80..0000000000000000000000000000000000000000 --- a/funcom_test/40100139.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getBody() throws MercuryException { - /* - * TODO: This should probably return an IAttachment instead, to associate - * it with a Mimetype so we know how to format it (html versus plain text) - */ - if (!contentDone) - handleContent(); - // There may not be a body (attachments only, if that). - return (body == null ? "" : body.getText()); - } - COM: <s> retrieve the message body </s> - diff --git a/funcom_test/40100635.txt b/funcom_test/40100635.txt deleted file mode 100644 index 97652e45e33f02079f931d398a4a6d976430aea5..0000000000000000000000000000000000000000 --- a/funcom_test/40100635.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void commonQueries(StringBuffer rslt) throws WarlockException { - rslt.append("<status>"); - queryStatus(rslt); - rslt.append("</status>"); - - rslt.append("<navigation>"); - queryNavigation(rslt); - rslt.append("</navigation>"); - - rslt.append("<current>"); - querySelections(rslt); - rslt.append("</current>"); - } - COM: <s> append a common across permissions portlet set of queries to the </s> - diff --git a/funcom_test/40101161.txt b/funcom_test/40101161.txt deleted file mode 100644 index bc109e49aceef584fd59e85f0a9e22677fc4fa67..0000000000000000000000000000000000000000 --- a/funcom_test/40101161.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void commonQueries(StringBuffer rslt) throws WarlockException { - rslt.append("<status>"); - queryStatus(rslt); - rslt.append("</status>"); - - rslt.append("<settings>"); - querySettings(rslt); - rslt.append("</settings>"); - - rslt.append("<navigation>"); - queryNavigation(rslt); - rslt.append("</navigation>"); - - rslt.append("<current>"); - querySelections(rslt); - rslt.append("</current>"); - } - COM: <s> append a common across messaging portlet set of queries to the </s> - diff --git a/funcom_test/40101172.txt b/funcom_test/40101172.txt deleted file mode 100644 index 2a95afe2128a0459484ab8a74dfc7332d335df8d..0000000000000000000000000000000000000000 --- a/funcom_test/40101172.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void querySettings(StringBuffer rslt) throws WarlockException { - rslt.append("<upload-limit>") - .append(simpleFormatSize(muc.getAppContext().getUploadLimit())) - .append("</upload-limit>"); - if (muc.getAppContext().allowXHTML()) - rslt.append("<xhtml value=\"allowed\" />"); - } - COM: <s> append any global settings to the provided string buffer </s> - diff --git a/funcom_test/40101478.txt b/funcom_test/40101478.txt deleted file mode 100644 index 2e6ea9ed9b830ee282e033e592d10c94e486f6b4..0000000000000000000000000000000000000000 --- a/funcom_test/40101478.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getDateAsFormat(String format) { - if (format == null) { - return null; - } - - SimpleDateFormat sdf = null; - Date trackbackDate = new Date(_trackbackDateLong); - try { - sdf = new SimpleDateFormat(format); - return sdf.format(trackbackDate); - } catch (IllegalArgumentException e) { - return trackbackDate.toString(); - } - } - COM: <s> return the trackback date formatted with a specified date format </s> - diff --git a/funcom_test/40101481.txt b/funcom_test/40101481.txt deleted file mode 100644 index 7380792aa3e917b72c1d3d8642698ccaa0b47e98..0000000000000000000000000000000000000000 --- a/funcom_test/40101481.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getAuthorizedUserEmail(String username) { - if (_authorization.containsKey(username)) { - String[] parsedPasswordAndEmail = BlojsomUtils.parseLastComma((String)_authorization.get(username)); - if (parsedPasswordAndEmail.length < 2) { - return getBlogOwnerEmail(); - } else { - return parsedPasswordAndEmail[1]; - } - } - - return null; - } - COM: <s> return the e mail address of an authorized user from this blog </s> - diff --git a/funcom_test/40101516.txt b/funcom_test/40101516.txt deleted file mode 100644 index 148f26f25eaa9dde331dbf5a27a47405d75afaa3..0000000000000000000000000000000000000000 --- a/funcom_test/40101516.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getDateAsFormat(String format) { - if (_commentDate == null || format == null) { - return null; - } - - SimpleDateFormat sdf = null; - try { - sdf = new SimpleDateFormat(format); - return sdf.format(_commentDate); - } catch (IllegalArgumentException e) { - return _commentDate.toString(); - } - } - COM: <s> return the comment date formatted with a specified date format </s> - diff --git a/funcom_test/40101591.txt b/funcom_test/40101591.txt deleted file mode 100644 index 4302c12d38439dadb3bcf57b7bacbe77bdeb0837..0000000000000000000000000000000000000000 --- a/funcom_test/40101591.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void init(ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomFetcherException { - String ignoreFlavors = blojsomConfiguration.getBlojsomPropertyAsString(IGNORE_FLAVORS_PARAM); - if (!BlojsomUtils.checkNullOrBlank(ignoreFlavors)) { - _ignoreFlavors = ignoreFlavors; - } - _logger.debug("Ignoring flavors: " + _ignoreFlavors); - - _logger.debug("Initialized standard fetcher"); - } - COM: <s> initialize this fetcher </s> - diff --git a/funcom_test/40101739.txt b/funcom_test/40101739.txt deleted file mode 100644 index 54bd1398d75d5ce5a7c8aebb9c3aa9ab31b2ffb3..0000000000000000000000000000000000000000 --- a/funcom_test/40101739.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void run() { - synchronized (_cache) { - String[] filter = null; - BlogEntry[] entries = getEntriesAllCategories(_user, filter, -1, _blogDirectoryDepth); - _cache.flushEntry(_user.getId()); - _cache.putInCache(_user.getId(), entries); - } - - return; - } - COM: <s> if this thread was constructed using a separate </s> - diff --git a/funcom_test/40101955.txt b/funcom_test/40101955.txt deleted file mode 100644 index d54e8377668fd622de4cc8bcbbf86c4261dae4cd..0000000000000000000000000000000000000000 --- a/funcom_test/40101955.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String getValueOfTag(String tag) { - String result = null; - NodeList nodeList = _document.getElementsByTagName(tag); - if (nodeList != null) { - Node tempNode = nodeList.item(0); - Node value = tempNode.getFirstChild(); - if (value != null) { - result = value.getNodeValue(); - } - } - - return result; - } - COM: <s> get contents of a tag in the weather data </s> - diff --git a/funcom_test/40102085.txt b/funcom_test/40102085.txt deleted file mode 100644 index c43bb3a04d3c940ed665f24ec7ee0e6258c40139..0000000000000000000000000000000000000000 --- a/funcom_test/40102085.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void sendTrackbackEmail(String emailPrefix, String title, String trackback, Map context, String author, Blog blog) { - String recipientEmail = blog.getAuthorizedUserEmail(author); - - EmailUtils.notifyBlogAuthor(emailPrefix + title, trackback, context, recipientEmail); - } - COM: <s> send the trackback e mail to the blog author </s> - diff --git a/funcom_test/40102128.txt b/funcom_test/40102128.txt deleted file mode 100644 index 676b9c96af21e4d1dca28a634f8111d4ffb4eea6..0000000000000000000000000000000000000000 --- a/funcom_test/40102128.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Map readPermissionsForBlog(Map context, String blogID) { - Map permissions = new TreeMap(); - try { - Properties permissionsProperties = readPermissionsConfiguration(blogID); - permissions = new TreeMap(BlojsomUtils.blojsomPropertiesToMap(permissionsProperties)); - } catch (IOException e) { - _logger.error(e); - addOperationResultMessage(context, "Unable to read permissions for blog: " + blogID); - } - - return permissions; - } - COM: <s> read the permissions file for a given blog </s> - diff --git a/funcom_test/40102142.txt b/funcom_test/40102142.txt deleted file mode 100644 index a21bad27a00834e3a07a29d3076790502878cfa6..0000000000000000000000000000000000000000 --- a/funcom_test/40102142.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean checkPermission(BlogUser blogUser, Map permissionContext, String username, String permission) { - try { - _authorizationProvider.checkPermission(blogUser, permissionContext, username, permission); - } catch (BlojsomException e) { - _logger.error(e); - return false; - } - - return true; - } - COM: <s> check the permission for a given username and permission </s> - diff --git a/funcom_test/40102236.txt b/funcom_test/40102236.txt deleted file mode 100644 index d064af2d25b5111284082186db9c3ce6fb951bdc..0000000000000000000000000000000000000000 --- a/funcom_test/40102236.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void sendCommentEmail(String emailPrefix, String title, String comment, Map context, String author, Blog blog) { - String recipientEmail = blog.getAuthorizedUserEmail(author); - - EmailUtils.notifyBlogAuthor(emailPrefix + title, comment, context, recipientEmail); - } - COM: <s> send the comment e mail to the blog author </s> - diff --git a/funcom_test/4012465.txt b/funcom_test/4012465.txt deleted file mode 100644 index 0eee9ff19054d1060291eb961d52959ae0131b1e..0000000000000000000000000000000000000000 --- a/funcom_test/4012465.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String createUser(String firstName, String lastName, String homePhone, String workPhone, - String cellPhone, String email, String picture) throws MissingAtributeException, UserAlreadyRegisteredException { - UserBlms user = userDBManagement.createUser(firstName, lastName, homePhone, workPhone, cellPhone, email, picture); - return userDBManagement.getUserID( user ); - } - COM: <s> create a new user </s> - diff --git a/funcom_test/4012725.txt b/funcom_test/4012725.txt deleted file mode 100644 index ecb168d5394fde51421c95a90708ea38d17f8c04..0000000000000000000000000000000000000000 --- a/funcom_test/4012725.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void addHandicapHistory(Integer userId, Integer leagueId, Date changeDate, Integer handicap, String handicapExpression, String changeType) { - BLMSHandicapHistory history = new BLMSHandicapHistory(userId, leagueId, changeDate, handicap, handicapExpression, changeType); - ServiceLocator.singleton().getService().save(history); - } - COM: <s> add a handicap history </s> - diff --git a/funcom_test/4012733.txt b/funcom_test/4012733.txt deleted file mode 100644 index 503df6ce93927be5a2a9b26a7507eda9e051a560..0000000000000000000000000000000000000000 --- a/funcom_test/4012733.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void changeLeagueAttribute(String id, String attribute, String attributeValue) throws UnknownAttributeException, MissingAttributeException, InvalidUserException, InvalidLeagueNameException { - - BLMSLeague league = getLeague(id); - - ValidateAttribute.attributeValid(attribute); - - ValidateAttribute.emptyAttributeValue(attribute, attributeValue); - - String attributeInSetFormat = ReflectionUtil.prepareAttributeName(attribute); - - ReflectionUtil.setAttribute(league, attributeInSetFormat, getAttributeValue(attribute, attributeValue), "league"); - - ValidateAttribute.leagueUniqueName(league); - - updateLeague(league); - } - COM: <s> set the league attribute </s> - diff --git a/funcom_test/4012751.txt b/funcom_test/4012751.txt deleted file mode 100644 index 8e666ff06f7dc69a9889612b198fc7e64a6e357b..0000000000000000000000000000000000000000 --- a/funcom_test/4012751.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public String getPlayerHandicap(String id, String leagueId) throws UnknownAttributeException, InvalidUserException, InvalidLeagueException, InvalidLeagueMemberException, MissingAttributeException, InvalidPlayerException { - ValidateAttribute.handicapEmptyAttributes(id, leagueId); - return getUserLeagueAttribute(id, leagueId, "currentHandicap"); - } - COM: <s> retrieve the player handicap </s> - diff --git a/funcom_test/4012756.txt b/funcom_test/4012756.txt deleted file mode 100644 index 3fc10988bdc2d52f1c4f294aee157feae2251fad..0000000000000000000000000000000000000000 --- a/funcom_test/4012756.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void incrementPlayerHandicap(String userId, String leagueId, Integer incrementValue) { - try { - BLMSPlayer player = getUserLeague(userId, leagueId); - Integer newValue = player.getCurrentHandicap()+ incrementValue; - newValue = newValue < 0 ? 0 : newValue; - player.setCurrentHandicap(newValue); - ServiceLocator.singleton().getService().update(player); - } catch (InvalidPlayerException e) { - } - } - COM: <s> increment the player current handicap with the value increment value </s> - diff --git a/funcom_test/4012779.txt b/funcom_test/4012779.txt deleted file mode 100644 index edd0e85d6102209eda12b5898e6ac2dd85389a49..0000000000000000000000000000000000000000 --- a/funcom_test/4012779.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void defineHandicapExpression(String leagueId, String expression) throws InvalidSyntaxException, InvalidVariablesException, InvalidLeagueException, MissingAttributeException { - ValidateAttribute.handicapExpressionEmptyAttributes(leagueId, expression); - validateExpressionHandicapSyntax(expression); - validateHandicapVariables(expression); - BLMSLeague league = getLeague(leagueId); - updateLeagueHandicap(league, expression); - } - COM: <s> define an expression to define the player handicap in a league </s> - diff --git a/funcom_test/4012785.txt b/funcom_test/4012785.txt deleted file mode 100644 index 39d4e848b7f62b020f0d9ee6d3376db7c34ac3cb..0000000000000000000000000000000000000000 --- a/funcom_test/4012785.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String matchup(String firstHandicap, String secondHandicap, String tableHeader) throws MissingAttributeException, InvalidAtributeException { - ValidateAttribute.matchupByHandicapEmptyAttributes(firstHandicap, secondHandicap, tableHeader); - validateTableHeader(tableHeader); - return searchValueByHandicaps(firstHandicap, secondHandicap, tableHeader); - } - COM: <s> retrieve the points the weaker player needs to win </s> - diff --git a/funcom_test/4012792.txt b/funcom_test/4012792.txt deleted file mode 100644 index 1d610c8eadca22f2257379a25d5f91ad945722cc..0000000000000000000000000000000000000000 --- a/funcom_test/4012792.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public String getNumberOfMatches(String leagueId) throws InvalidLeagueException { - ValidateAttribute.validateLeagueId(leagueId); - return (ServiceLocator.singleton().getService().selectObjectsByField(new BLMSMatch(),"leagueId", new Integer(leagueId),"date" , "id").size()) + ""; - } - COM: <s> retrieve the league number of matches </s> - diff --git a/funcom_test/4012795.txt b/funcom_test/4012795.txt deleted file mode 100644 index 58e185cb8a2c959adcd71313442dd212d1a6d791..0000000000000000000000000000000000000000 --- a/funcom_test/4012795.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void changeUserAttribute(String id, String attribute, String attributeValue) throws UnknownAttributeException, MissingAttributeException, InvalidEmailException { - - BLMSUser user = getUser(id); - ValidateAttribute.attributeValid(attribute); - String attributeInSetFormat = ReflectionUtil.prepareAttributeName(attribute); - ReflectionUtil.setAttribute(user, attributeInSetFormat, attributeValue, "user"); - ValidateAttribute.userEmptyAttributes(user); - ValidateAttribute.userUniqueEmail(user); - updateUser(user); - } - COM: <s> set the user attribute </s> - diff --git a/funcom_test/4012805.txt b/funcom_test/4012805.txt deleted file mode 100644 index 141c4d71b8142425f334a09c268267c5ed37d49c..0000000000000000000000000000000000000000 --- a/funcom_test/4012805.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public String getMatchDate(String matchId){ - Date date = ((BLMSMatch)(ServiceLocator.singleton().getService().selectObjectsByField(new BLMSMatch(), "id", new Integer(matchId),"date" , "id").get(0))).getDate(); - return DateUtil.getDateFormated(getFormat(), date); - } - COM: <s> retrieve the macth date </s> - diff --git a/funcom_test/4012808.txt b/funcom_test/4012808.txt deleted file mode 100644 index ade4ff8e79a3f1533da28dfa3f6d8342cf1a0477..0000000000000000000000000000000000000000 --- a/funcom_test/4012808.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public String getMatchWinner(String matchId) throws InvalidMatchException{ - ValidateAttribute.validateMatch(matchId); - return ((BLMSMatch)(ServiceLocator.singleton().getService().selectObjectsByField(new BLMSMatch(), "id", new Integer(matchId),"date" , "id").get(0))).getWinnerId().toString(); - } - COM: <s> retrieve the macth loser </s> - diff --git a/funcom_test/4012811.txt b/funcom_test/4012811.txt deleted file mode 100644 index bb4d7f0f2a9d8ec352312461ca7b49ae5446ebbe..0000000000000000000000000000000000000000 --- a/funcom_test/4012811.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String getMatchLength(String matchId) throws InvalidMatchException { - ValidateAttribute.validateMatch(matchId); - Integer matchLength = ((BLMSMatch)(ServiceLocator.singleton().getService().selectObjectsByField(new BLMSMatch(), "id", new Integer(matchId),"date" , "id").get(0))).getLength(); - return matchLength == null ? "" : matchLength.toString(); - } - COM: <s> retrieve the macth length </s> - diff --git a/funcom_test/4012814.txt b/funcom_test/4012814.txt deleted file mode 100644 index d7b101a082d0a620e84101542790de9a38ae1fae..0000000000000000000000000000000000000000 --- a/funcom_test/4012814.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String getMatchScore(String matchId) throws InvalidMatchException { - ValidateAttribute.validateMatch(matchId); - Integer matchScore = ((BLMSMatch)(ServiceLocator.singleton().getService().selectObjectsByField(new BLMSMatch(), "id", new Integer(matchId),"date" , "id").get(0))).getScore(); - return matchScore == null ? "" : matchScore.toString(); - } - COM: <s> retrieve the macth score </s> - diff --git a/funcom_test/4012828.txt b/funcom_test/4012828.txt deleted file mode 100644 index f640069fc77cfb4d25618d634f95ac435aacd239..0000000000000000000000000000000000000000 --- a/funcom_test/4012828.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public String getPlayerStanding(String id, String leagueId) throws NumberFormatException, InvalidUserException, InvalidLeagueException, InvalidSyntaxException, DivisionByZeroException { - return LeaguesManager.getInstance().calculateStanding(Integer.parseInt(getNumberOfWins(id, leagueId)), Integer.parseInt(getNumberOfLosses(id, leagueId)), leagueId); - } - COM: <s> retrieve the user standing in a league </s> - diff --git a/funcom_test/4012831.txt b/funcom_test/4012831.txt deleted file mode 100644 index d3b356a83a40140e72d73dd9615b5a73cc02ee4a..0000000000000000000000000000000000000000 --- a/funcom_test/4012831.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String getNumberOfWins(String userId, String leagueId) throws InvalidUserException, InvalidLeagueException { - ValidateAttribute.validateUserId(userId); - ValidateAttribute.validateLeagueId(leagueId); - return (ServiceLocator.singleton().getService().selectObjectsByFields(new BLMSMatch(), "winnerId", "leagueId", new Integer(userId), new Integer(leagueId)).size()) + ""; - } - COM: <s> retrieve the user number of wins </s> - diff --git a/funcom_test/4012833.txt b/funcom_test/4012833.txt deleted file mode 100644 index 8125c94b5b0b8223bf538fcace5074d2d1e3f9d4..0000000000000000000000000000000000000000 --- a/funcom_test/4012833.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String getNumberOfLosses(String userId, String leagueId) throws InvalidUserException, InvalidLeagueException { - ValidateAttribute.validateUserId(userId); - ValidateAttribute.validateLeagueId(leagueId); - return (ServiceLocator.singleton().getService().selectObjectsByFields(new BLMSMatch(), "loserId", "leagueId", new Integer(userId), new Integer(leagueId)).size()) + ""; - } - COM: <s> retrieve the user number of losses </s> - diff --git a/funcom_test/4012847.txt b/funcom_test/4012847.txt deleted file mode 100644 index 147c3ee809365a6f4ff1c5009631946621ba7fb3..0000000000000000000000000000000000000000 --- a/funcom_test/4012847.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void inicializeUsersAndLeagues(HttpServletRequest req) { - List allLeaguesList = BLMSFacadeSingleton.getInstance().getAllLeagues(); - req.setAttribute("leaguesList", allLeaguesList); - List allUsersList = BLMSFacadeSingleton.getInstance().getAllUsers(); - req.setAttribute("leaguesUsersList", allUsersList); - } - COM: <s> inicialize users and leagues </s> - diff --git a/funcom_test/4012888.txt b/funcom_test/4012888.txt deleted file mode 100644 index d340975e75a35c9c904e68163be1d7b3fc96ae96..0000000000000000000000000000000000000000 --- a/funcom_test/4012888.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public String addMatchResult(String leagueId, String date, String winner, String loser) throws ParseException, InvalidUserException, InvalidLeagueException, MissingAttributeException, InvalidAtributeException, InvalidSyntaxException, DivisionByZeroException, InvalidPlayerException, UnknownAttributeException, InvalidLeagueMemberException { - return matchesManager.addMatchResult(leagueId, date, winner, loser); - } - COM: <s> register a match result </s> - diff --git a/funcom_test/4012940.txt b/funcom_test/4012940.txt deleted file mode 100644 index 95d7945c71bec00a9991991c30e62d1c2870c83f..0000000000000000000000000000000000000000 --- a/funcom_test/4012940.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public String getMatchByDate(String leagueId, String startDate, String endDate, String index) throws ParseException, InvalidLeagueException, MissingAttributeException, InvalidAtributeException { - return matchesManager.getMatchByDate(leagueId, startDate, endDate, index); - } - COM: <s> retrieve match by id between the attribute start date and attribute end date </s> - diff --git a/funcom_test/4013026.txt b/funcom_test/4013026.txt deleted file mode 100644 index ee01f4aa737844699d5e603ed1845ebaffe53edc..0000000000000000000000000000000000000000 --- a/funcom_test/4013026.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void changeHandicap(String operatorId, String userId, String leagueId, String newHandicap) throws InvalidPlayerException, MissingAttributeException, InvalidLeagueException, InvalidLeagueOperatorException, InvalidUserException, InvalidHandcapException{ - playersManager.changeHandicap(operatorId, userId, leagueId, newHandicap); - } - COM: <s> change the player handicap </s> - diff --git a/funcom_test/4013181.txt b/funcom_test/4013181.txt deleted file mode 100644 index 09e5bcc076ac8113dc30371a7336a4e486b3e95b..0000000000000000000000000000000000000000 --- a/funcom_test/4013181.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void add(int position, Disc movie) { - if(discs.contains(movie)){ - discs.remove(movie); - } - if (position >= 1 && position <= this.discs.size()) { - discs.add(position - 1, movie); - } else if (position < 1 ) { - FlurryAgent.onError("outOfBounds", - "Add: The provided Position was too low", "NetFlixQueue"); - } else if ( position == 500){ - //;eddie was lazy, moze to the end.(for new move to bootom feature) - discs.add(movie); - } - } - COM: <s> adds new disc to queue position specified </s> - diff --git a/funcom_test/40166765.txt b/funcom_test/40166765.txt deleted file mode 100644 index c2d26cb61c864e23e724fa4e5ae816ddb0757bcd..0000000000000000000000000000000000000000 --- a/funcom_test/40166765.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void buildGraph(URL modelURL, URL instanceURL) throws ModelToGraphException, GraphToModelException { - graph = modeltograph.buildGraph(modelURL, instanceURL); - graphTransformer.setGraph(graph); - origGraph = new ListGraph(graph); - - //if system is in debug mode, output graph as dot file - if (debugmode) try { - outputdot(graph, graph); - } catch(IOException e) { - throw new GraphToModelException(e.getMessage()); - } - - //Construct the object diagram representation of the new graph - objectdisplay = graphtomodel.generateDisplayObjects(graph); - } - COM: <s> build the graph </s> - diff --git a/funcom_test/40166796.txt b/funcom_test/40166796.txt deleted file mode 100644 index 9922907c8a9f77c5585b3664c997a444bb4bf748..0000000000000000000000000000000000000000 --- a/funcom_test/40166796.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private ListGraph loadRuleGraph(Element element) { - - ListGraph graph = new ListGraph(); - - Elements children = element.getChildElements(); - for(int i = 0; i < children.size(); i++) { - String from = children.get(i).getAttributeValue("from"); - String label = children.get(i).getAttributeValue("label"); - String to = children.get(i).getAttributeValue("to"); - graph.addEdge(from, label, to); - } - - return graph; - } - COM: <s> constructs a graph </s> - diff --git a/funcom_test/40166853.txt b/funcom_test/40166853.txt deleted file mode 100644 index ee4cfca47fa00c33946c340330bc19ee659845ed..0000000000000000000000000000000000000000 --- a/funcom_test/40166853.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void createRuntimePart() { - String actorname = "a1"; - graph.addIEdge(actorname, "Actor"); - graph.addIEdge(actorname+"behaviorExecution", "BehaviorExecution"); - graph.addEdge(actorname, "execution", actorname+"behaviorExecution"); - graph.addEdge(actorname+"behaviorExecution", "host", actorname); - } - COM: <s> create the edges needed for the runtime part of the graph </s> - diff --git a/funcom_test/40166939.txt b/funcom_test/40166939.txt deleted file mode 100644 index e9bac843e6fac3ca4215a9a51f1fd959ccaafc64..0000000000000000000000000000000000000000 --- a/funcom_test/40166939.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void update() { - contents.removeAll(); - - ObjectDisplay objdisplay = model.getObjectDisplay(); - - //if a model is not currently loaded then don't continue - if (objdisplay==null) return; - - if (firstLoaded) { - addNavControls(); - firstLoaded = false; - } - if (model.getUndosRemaining()>0) undo.setEnabled(true); - else undo.setEnabled(false); - if (model.getRedosRemaining()>0) redo.setEnabled(true); - else redo.setEnabled(false); - undo.repaint(); - redo.repaint(); - - contentDrawer.draw(objdisplay); - - contents.revalidate(); - } - COM: <s> draws new contents </s> - diff --git a/funcom_test/40166946.txt b/funcom_test/40166946.txt deleted file mode 100644 index d504afc8f4ff44bc70b9ad818b4aa4afc4324b0f..0000000000000000000000000000000000000000 --- a/funcom_test/40166946.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Menu createPopupMenu(Point menupos) { - menupos.x *= contents.getScale(); - menupos.y *= contents.getScale(); - menupos = parent.toDisplay(menupos); - Menu menu = new Menu (parent.getShell(), SWT.POP_UP); - menu.setLocation(menupos); - menu.setVisible (true); - return menu; - } - COM: <s> create menu at the specified location </s> - diff --git a/funcom_test/40314135.txt b/funcom_test/40314135.txt deleted file mode 100644 index 9c199caae6f8ee36a9bf6ba272a021ce689fca46..0000000000000000000000000000000000000000 --- a/funcom_test/40314135.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void listElement(final Element e, final String indent) { - _log.debug(indent + "*Element, name:" + - e.getName() + ", text:" + - e.getText().trim()); - - //List all attributes - List<Attribute> as = e.getAttributes(); - listAttributes(as, indent + " "); - - //List all children - List<Element> c = e.getChildren(); - listElements(c, indent + " "); - } - COM: <s> list elements by recursively traversing the xml document </s> - diff --git a/funcom_test/40314148.txt b/funcom_test/40314148.txt deleted file mode 100644 index 4d72c8072d89a52693ac34bd9c4d177840013d1f..0000000000000000000000000000000000000000 --- a/funcom_test/40314148.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addNcIsoMetadata(final Element groupElem) { - // Add date stamp for metadata creation - Date dateStamp = Calendar.getInstance().getTime(); - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); - String metadata_creation_date = sdf.format(dateStamp); - addElem(groupElem,"metadata_creation", metadata_creation_date); - } - COM: <s> update the ncml document by adding nc iso specific metadata </s> - diff --git a/funcom_test/40314263.txt b/funcom_test/40314263.txt deleted file mode 100644 index ec18195e0f52c62f4cd31f029702d6dd19bf44c5..0000000000000000000000000000000000000000 --- a/funcom_test/40314263.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: static public String resolve(InvDataset ds, String href) { - InvCatalog cat = ds.getParentCatalog(); - if (cat != null) { - try { - java.net.URI uri = cat.resolveUri(href); - href = uri.toString(); - } catch (java.net.URISyntaxException e) { - System.err.println("InvDatasetImpl.writeHtml: error parsing URL= " + href); - } - } - return href; - } - COM: <s> resolve reletive urls against the catalog url </s> - diff --git a/funcom_test/40318208.txt b/funcom_test/40318208.txt deleted file mode 100644 index e21d8ecbc6f3b822420389faa649956609e3e594..0000000000000000000000000000000000000000 --- a/funcom_test/40318208.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String createStringField(Object object) throws TextFlowException { - String result ; - assert (object instanceof String); - - result = this.createString(object); - if (length!=null || result.length()< length) { - // DEVO FORMATTARE LA STRINGA - if (Alignment.LEFT.equals(align)) { - result = StringUtils.leftPad(result, length, paddingChar); - } else if (Alignment.RIGHT.equals(align)) { - result = StringUtils.rightPad(result, length, paddingChar); - } - } - - return result; - } - COM: <s> performs the marshalling of the single field </s> - diff --git a/funcom_test/40384567.txt b/funcom_test/40384567.txt deleted file mode 100644 index b880c8553eaa12db22f24950d7064f1e63efdd28..0000000000000000000000000000000000000000 --- a/funcom_test/40384567.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void add(TComponent comp) { - if (comp.getContainer() != null) { - throw new IllegalStateException(comp - + " already reside in another container!!!"); - } - - comp.setContainer(this); - - this.childs = (TComponent[]) Utility.expand(this.childs, 1, false); - this.childs[0] = comp; - this.childCount++; - - this.frame.setFrameWork(comp); // set child component frame work - - this.sortComponents(); - this.latestInserted = comp; - } - COM: <s> appends the specified component to the end of this container </s> - diff --git a/funcom_test/40384607.txt b/funcom_test/40384607.txt deleted file mode 100644 index 183c18cbcb8db38a5b6c5de2c2de6ce49600cf8f..0000000000000000000000000000000000000000 --- a/funcom_test/40384607.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void transferFocus(TComponent component) { - for (int i = 0; i < this.childCount; i++) { - if (component == this.childs[i]) { - int j = i; - do { - if (--i < 0) { - i = this.childCount - 1; - } - if (i == j) { - return; - } - } while (!this.childs[i].requestFocus()); - - break; - } - } - } - COM: <s> transfers the specified child component focus forward </s> - diff --git a/funcom_test/40384608.txt b/funcom_test/40384608.txt deleted file mode 100644 index 9cba68a27713e76f7aa270d7920c65b12fc0fbb9..0000000000000000000000000000000000000000 --- a/funcom_test/40384608.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void render(Graphics2D g) { - if (!this.visible) { - return; - } - - try { - if (this.customRendering) { - this.renderCustomUI(g, this.screenX, this.screenY, this.width, - this.height); - - } - else { - this.renderer.renderUI(g, this.screenX, this.screenY, this, - this.ui); - - } - } - catch (Exception e) { - System.out.println("error rendering = " + this); - e.printStackTrace(); - System.exit(0); - } - } - COM: <s> renders component to specified graphics context </s> - diff --git a/funcom_test/40384609.txt b/funcom_test/40384609.txt deleted file mode 100644 index e1a0c003c22ce18c6cdb18998d734ccd3c98e109..0000000000000000000000000000000000000000 --- a/funcom_test/40384609.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void transferFocusBackward(TComponent component) { - for (int i = 0; i < this.childCount; i++) { - if (component == this.childs[i]) { - int j = i; - do { - if (++i >= this.childCount) { - i = 0; - } - if (i == j) { - return; - } - } while (!this.childs[i].requestFocus()); - - break; - } - } - } - COM: <s> transfers the specified child component focus backward </s> - diff --git a/funcom_test/40384615.txt b/funcom_test/40384615.txt deleted file mode 100644 index 32e57c08ccc5b96daecb44cb970e2b332c58b071..0000000000000000000000000000000000000000 --- a/funcom_test/40384615.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean intersects(TComponent comp) { - return (this.visible) - && (comp.isVisible()) - && (this.screenX + this.width >= comp.screenX - && this.screenX <= comp.screenX + comp.width - && this.screenY + this.height >= comp.screenY && this.screenY <= comp.screenY - + comp.height); - } - COM: <s> tests whether this component intersects with specified component </s> - diff --git a/funcom_test/40384767.txt b/funcom_test/40384767.txt deleted file mode 100644 index f27f51c8ae397a1524c06cd9ec65d1d02cc2db31..0000000000000000000000000000000000000000 --- a/funcom_test/40384767.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setIcon(boolean b) { - if (this.icon == b) { - return; - } - - this.icon = b; - - int w = this.getWidth(), h = this.titleBar.getHeight(); - if (!this.icon) { - h += this.contentPane.getHeight() + this.distance; - } - - this.setSize(w, h); - - this.titleBar.getIconifiedButton().setToolTipText( - (this.icon) ? "Restore" : "Minimize"); - } - COM: <s> iconifies or de iconifies this float panel </s> - diff --git a/funcom_test/40385522.txt b/funcom_test/40385522.txt deleted file mode 100644 index 05dd499f8f0896f4d442a89d31e03e1ed6c664f0..0000000000000000000000000000000000000000 --- a/funcom_test/40385522.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void update(long elapsedTime,double gravity, double wind) { - for (int i = 0; i < this.size; i++) { - if (this.sprites[i].isActive()) { - this.sprites[i].update(elapsedTime); - if(gravity!=0) - this.sprites[i].correctGravity(gravity); - if(wind!=0) - this.sprites[i].correctWind(wind); - } - } - - if (this.scanFrequence.action(elapsedTime)) { - // remove all inactive sprites - this.removeInactiveSprites(); - } - } - COM: <s> updates all active sprites in this group and check the schedule for </s> - diff --git a/funcom_test/40385570.txt b/funcom_test/40385570.txt deleted file mode 100644 index 8cbc9bd700fb868d56cb4ee15d1a2b80cdefc699..0000000000000000000000000000000000000000 --- a/funcom_test/40385570.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void correctWind(double windpower) { - if(getFixedposition()==false){ - double velocity=this.getHorizontalVelocity(); - if (velocity != 0) { - this.setX (this.getX() + velocity); - } else { - velocity = 0; - } - if(this.getOnground() == false) { - velocity += windpower; - }else{ - velocity = 0; - } - this.setHorizontalVelocity(velocity); - } - } - COM: <s> takes given wind power constant into account and corrects x axis position </s> - diff --git a/funcom_test/40385822.txt b/funcom_test/40385822.txt deleted file mode 100644 index aa2c77fbec23b292c9aaa51760bbaf005c226541..0000000000000000000000000000000000000000 --- a/funcom_test/40385822.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Texture getTexture(BufferedImage image) { - Texture texture = (Texture) this.table.get(image); - - if (texture == null) { - texture = this.getTexture(image, GL.GL_TEXTURE_2D, // target - GL.GL_RGBA, // dst pixel format - GL.GL_LINEAR, // min filter (unused) - GL.GL_LINEAR); - - this.table.put(image, texture); - } - - return texture; - } - COM: <s> loads a texture </s> - diff --git a/funcom_test/40385836.txt b/funcom_test/40385836.txt deleted file mode 100644 index cce6bc9d3909ef6743965588cbea3376c8e908e4..0000000000000000000000000000000000000000 --- a/funcom_test/40385836.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private BufferedImage loadImage(String ref) throws IOException { - URL url = TextureLoader.class.getClassLoader().getResource(ref); - - if (url == null) { - throw new IOException("Cannot find: " + ref); - } - - BufferedImage bufferedImage = ImageIO.read(new BufferedInputStream(this - .getClass().getClassLoader().getResourceAsStream(ref))); - - return bufferedImage; - } - COM: <s> load a given resource as a buffered image </s> - diff --git a/funcom_test/40385866.txt b/funcom_test/40385866.txt deleted file mode 100644 index b1a98c9c4815ad84e008ac5a133458a42473268b..0000000000000000000000000000000000000000 --- a/funcom_test/40385866.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Texture getTexture(BufferedImage image) { - Texture texture = (Texture) this.table.get(image); - - if (texture == null) { - texture = this.getTexture(image, GL11.GL_TEXTURE_2D, // target - GL11.GL_RGBA, // dst pixel format - GL11.GL_LINEAR, // min filter (unused) - GL11.GL_LINEAR); - - this.table.put(image, texture); - } - - return texture; - } - COM: <s> load a texture </s> - diff --git a/funcom_test/40443968.txt b/funcom_test/40443968.txt deleted file mode 100644 index a570c09c4021a31c0ca32dde981f134ae81ffa4d..0000000000000000000000000000000000000000 --- a/funcom_test/40443968.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Integer getPatternInstanceCount(String ps, int size) { - int res = GraphStorage.indexMan.getPatternCount(ps, size); - if (res == -1) - return null; - else - return res; - // try { - // Statement stm = conn.createStatement(); - // ResultSet rs = stm.executeQuery("SELECT CNT FROM PATTERN WHERE P = '" + ps + "'"); - - // return rs.getInt(1); - // } catch (SQLException e) { - // return null; - // } - } - COM: <s> get the number of instances according with the given pattern by encoded string </s> - diff --git a/funcom_test/40463264.txt b/funcom_test/40463264.txt deleted file mode 100644 index 4b24a0c7ebd5ce1d826effe307b1c297d4b5e20f..0000000000000000000000000000000000000000 --- a/funcom_test/40463264.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Short getAverage() { - if (time == 0 && last == null) { - /* no data */ - return null; - } else if (time == 0) { - /* only one point */ - return last.getCadence(); - } else { - /* many points */ - return (short) Math.round(sum / time); - } - } - COM: <s> returns average cadence </s> - diff --git a/funcom_test/40467552.txt b/funcom_test/40467552.txt deleted file mode 100644 index eb5a7b203063794348f2b48e7d7719f4b58bff33..0000000000000000000000000000000000000000 --- a/funcom_test/40467552.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addEventHandler(Object obj, String methodName){ - try{ - eventHandlerObject = obj; - eventHandlerMethodName = methodName; - eventHandlerMethod = obj.getClass().getMethod(methodName, new Class[] { GOption.class, GOption.class } ); - } catch (Exception e) { - GMessenger.message(NONEXISTANT, this, new Object[] {methodName, new Class[] { this.getClass() } } ); - eventHandlerObject = null; - eventHandlerMethodName = ""; - } - } - COM: <s> attempt to create the default event handler for the component class </s> - diff --git a/funcom_test/40467553.txt b/funcom_test/40467553.txt deleted file mode 100644 index e4e341a035290bfa5b2bb72f1b3594b666ca6027..0000000000000000000000000000000000000000 --- a/funcom_test/40467553.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setFont(String fontname, int fontsize){ - int tw = textWidth; - int fs = (int) localFont.getFont().getSize(); - localFont = GFont.getFont(winApp, fontname, fontsize); - if(fontsize != fs) - height += (fontsize - fs); - setText(text); - if(textWidth > tw) - width += (textWidth - tw); - } - COM: <s> set the font size for the checkbox changing the height </s> - diff --git a/funcom_test/40467557.txt b/funcom_test/40467557.txt deleted file mode 100644 index 0c1ba8010f6d27fb0386a1402c090faf67de2427..0000000000000000000000000000000000000000 --- a/funcom_test/40467557.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void fireEvent(){ - if(eventHandlerMethod != null){ - if(eventHandlerMethod != null){ - try { - eventHandlerMethod.invoke(eventHandlerObject, - new Object[] { this, ownerGroup.deselectedOption() } ); - } catch (Exception e) { - GMessenger.message(EXCP_IN_HANDLER, eventHandlerObject, - new Object[] {eventHandlerMethodName, e } ); - } - } - } - } - COM: <s> fire an event for this component which has a reference to the </s> - diff --git a/funcom_test/40467563.txt b/funcom_test/40467563.txt deleted file mode 100644 index 95c0e89ba929e9f34872a0c4ef2c289c42804196..0000000000000000000000000000000000000000 --- a/funcom_test/40467563.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isOver(int ax, int ay){ - Point p = new Point(0,0); - calcAbsPosition(p); - if(ax >= p.x && ax <= p.x + width && ay >= p.y + thumbPos - thumbSize/2 && ay <= p.y + thumbPos + thumbSize/2){ - offset = ay - (p.y + thumbPos); - return true; - } - else - return false; - } - COM: <s> determines whether the position ax ay is over the thumb </s> - diff --git a/funcom_test/40467566.txt b/funcom_test/40467566.txt deleted file mode 100644 index df8c61148a46311d980da869f7bb57ca8eaf4f5d..0000000000000000000000000000000000000000 --- a/funcom_test/40467566.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setFont(String fontname, int fontsize){ - int tw = textWidth; - int fs = (int) localFont.getFont().getSize(); - localFont = GFont.getFont(winApp, fontname, fontsize); - if(fontsize != fs){ - height += (fontsize - fs); - height = Math.max(height, imgSelected.height); - } - setText(text); - if(textWidth != tw) - width += (textWidth - tw); - } - COM: <s> set the font size for the option button changing the height </s> - diff --git a/funcom_test/40467567.txt b/funcom_test/40467567.txt deleted file mode 100644 index 3fa6b3bc6aee1e8c4b02e0242a23c7c5ebd93cb5..0000000000000000000000000000000000000000 --- a/funcom_test/40467567.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void initThumbColor() { - thumbCol[0] = localColor.acbFirst; - thumbCol[NBR_THUMBS-1] = localColor.acbLast; - for(int i = 1; i < NBR_THUMBS - 1; i++) - thumbCol[i]= PApplet.lerpColor(thumbCol[0], thumbCol[NBR_THUMBS-1], ((float)i)/(NBR_THUMBS-1), PApplet.HSB); - } - COM: <s> initialise the thumb colors </s> - diff --git a/funcom_test/40467585.txt b/funcom_test/40467585.txt deleted file mode 100644 index 58af689314c6c28d55f8dfc457d10aacff41915f..0000000000000000000000000000000000000000 --- a/funcom_test/40467585.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setLimits(float init, float min, float max){ - minValue = Math.min(min, max); - maxValue = Math.max(min, max); - this.init = PApplet.constrain(init, minValue, maxValue); - - thumbTargetPos = thumbPos; - // Set the value immediately ignoring inertia - setValue(this.init, true); - _valueType = INTEGER; - } - COM: <s> sets the limits of the slider as float values </s> - diff --git a/funcom_test/40467600.txt b/funcom_test/40467600.txt deleted file mode 100644 index 36c7ccd075e0bd8f993582123ad2d54e3d4a8fd6..0000000000000000000000000000000000000000 --- a/funcom_test/40467600.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setValueToTickNumber(int tickNo){ - if(_stickToTicks){ - tickNo = PApplet.constrain(tickNo, 0, _numTicks); - float newValue = PApplet.map((float)tickNo, 0.0f, (float)_numTicks, minValue, maxValue); - _stickToTickByValue(newValue); - } - } - COM: <s> sets the target value of the slider according to the tick number </s> - diff --git a/funcom_test/40467607.txt b/funcom_test/40467607.txt deleted file mode 100644 index b2b74e0c129ad1a265828ab9b109998c22f2358e..0000000000000000000000000000000000000000 --- a/funcom_test/40467607.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected int getAngleFromUser(Point p){ - int degs = 0; - switch(mode){ - case CTRL_ANGULAR: - degs = Math.round(PApplet.degrees(calcRealAngleFromXY(p, winApp.mouseX, winApp.mouseY))); - break; - case CTRL_HORIZONTAL: - degs = (int) (sensitivity * (winApp.mouseX - p.x - startMouseX)); - break; - case CTRL_VERTICAL: - degs = (int) (sensitivity * (winApp.mouseY - p.y - startMouseY)); - break; - } - return degs; - } - COM: <s> calculates the angle from the current mouse position based on the type </s> - diff --git a/funcom_test/40467653.txt b/funcom_test/40467653.txt deleted file mode 100644 index 8b692421772b9d14c08b46bfad392fa8954899b0..0000000000000000000000000000000000000000 --- a/funcom_test/40467653.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void backspaceChar() { - if(startSelect != endSelect) { // if a bunch of text is selected - deleteSubstring(startSelect, endSelect); // delete substring function with range of selected text - } else if(cursorPos > 0){ // no selection and can't be at the beginning of the text - deleteSubstring(cursorPos - 1, cursorPos); // delete one character to the left of cursor - } - } - COM: <s> deletes either the character directly to the left of the insertion point </s> - diff --git a/funcom_test/40467663.txt b/funcom_test/40467663.txt deleted file mode 100644 index bd5b473ea08738bf5bf72469c14ea0e799830bde..0000000000000000000000000000000000000000 --- a/funcom_test/40467663.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void deleteChar() { - if(startSelect != endSelect) { // if a bunch of text is selected - deleteSubstring(startSelect, endSelect); // delete substring function with range of selected text - } else if(cursorPos < text.length()){ // no selection and can't be at the end of the text - deleteSubstring(cursorPos, cursorPos + 1); // delete one character to right of cursor - } - } - COM: <s> delete a single character </s> - diff --git a/funcom_test/40467691.txt b/funcom_test/40467691.txt deleted file mode 100644 index fff74e5e095e0b8142fb2a4dc98e292ae88c0295..0000000000000000000000000000000000000000 --- a/funcom_test/40467691.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void copySubstring(int start, int end) { - int s = Math.min(start, end); //make sure start is less than end - int e = Math.max(start, end); // make sure end is greater than start - GClip.copy(text.substring(s, e)); // copy selected text to clipboard - } - COM: <s> copy string to clipboard </s> - diff --git a/funcom_test/40467706.txt b/funcom_test/40467706.txt deleted file mode 100644 index 6c16876041e925f5d94f0cbb6debb1cb4ef8e804..0000000000000000000000000000000000000000 --- a/funcom_test/40467706.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected int getAngleFromValue(float value){ - int angle; - if(clockwiseValues) - angle = (int) PApplet.map(value, valueStart, valueEnd, aLow, aHigh); - else - angle = (int) PApplet.map(-value, -valueStart, -valueEnd, aLow, aHigh); - return angle; - } - COM: <s> calculate the equivalent needle angle for a given value </s> - diff --git a/funcom_test/40467712.txt b/funcom_test/40467712.txt deleted file mode 100644 index 5c7e7e260bde2af2e231b98c8ae1b4d0943b0a4a..0000000000000000000000000000000000000000 --- a/funcom_test/40467712.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean add(GComponent component){ - if(component == null || children.contains(component)){ - if(G4P.messages) - System.out.println("Either the component doesn't exist or has already been added to this component"); - return false; - } else { - component.parent = this; - children.add(component); - component.setZ(z); - winApp.unregisterDraw(component); - component.regDraw = false; - if(localColor.getAlpha() < 255) - component.setAlpha(localColor.getAlpha()); - return true; - } - } - COM: <s> add a gui component to this gcomponent at the position specified by </s> - diff --git a/funcom_test/40467719.txt b/funcom_test/40467719.txt deleted file mode 100644 index 3248435f5154f872930e407ab384ded717e4fec0..0000000000000000000000000000000000000000 --- a/funcom_test/40467719.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setImages(String[] imgFiles){ - if(imgFiles != null && imgFiles.length > 1){ - setImages(imgFiles[0], imgFiles[1 % imgFiles.length], imgFiles[2 % imgFiles.length]); - getMaxButtonImageWidth(); - if(useImages && imageAlign == GAlign.CENTER && text.length() > 0) - imageAlign = GAlign.LEFT; - } - } - COM: <s> specify the 3 images files to be used to display the buttons state </s> - diff --git a/funcom_test/40467750.txt b/funcom_test/40467750.txt deleted file mode 100644 index c67f8da921558001a36c300aff954976d16fe014..0000000000000000000000000000000000000000 --- a/funcom_test/40467750.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setText(String text) { - if(text != null && text != ""){ - if(useImages && imageAlign == GAlign.CENTER) - setImageAlign(GAlign.LEFT); - this.text = text; - winApp.textFont(localFont, localFont.getFont().getSize()); - textWidth = Math.round(winApp.textWidth(text)); - calcAlignX(); - calcAlignY(); - } - } - COM: <s> set the text to appear on the button </s> - diff --git a/funcom_test/40467761.txt b/funcom_test/40467761.txt deleted file mode 100644 index 202a1426cc12cb5979c6435ea54d840331467346..0000000000000000000000000000000000000000 --- a/funcom_test/40467761.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setFont(String fontname, int fontsize, boolean resize){ - int tw = textWidth; - int fs = (int) localFont.getFont().getSize(); - localFont = GFont.getFont(winApp, fontname, fontsize); - if(resize){ - if(fontsize > fs) - height += (fontsize - fs); - setText(text); - if(textWidth > tw) - width += (textWidth - tw); - } - calcAlignX(); - calcAlignY(); - } - COM: <s> set the font and size for the button </s> - diff --git a/funcom_test/40467765.txt b/funcom_test/40467765.txt deleted file mode 100644 index 9946441ca80406c093b5d017eb0e6c7099a4d168..0000000000000000000000000000000000000000 --- a/funcom_test/40467765.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void setImageAlign(int imgAlign){ - if(useImages){ - switch(imgAlign){ - case GAlign.LEFT: - imageAlign = imgAlign; - imgAlignX = PADH; - break; - case GAlign.RIGHT: - imageAlign = imgAlign; - imgAlignX = width - btnImgWidth - PADH; - break; - case GAlign.CENTER: - if(text.length() == 0){ - imageAlign = imgAlign; - imgAlignX = (width - btnImgWidth)/2; - } - else { - imageAlign = GAlign.LEFT; - imgAlignX = PADH; - } - break; - } - } - calcAlignX(); - } - COM: <s> sets the position of the image in relation to the button text </s> - diff --git a/funcom_test/40467772.txt b/funcom_test/40467772.txt deleted file mode 100644 index 09cff07c9e9f63abb513a49a61c69146034cbbc5..0000000000000000000000000000000000000000 --- a/funcom_test/40467772.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: protected void calcAlignX(){ - int areaWidth = width; - int imgX = 0; - if(useImages){ - areaWidth -= btnImgWidth; - if(imageAlign == GAlign.LEFT) - imgX = btnImgWidth; - } - switch(textAlignHorz){ - case GAlign.LEFT: - alignX = imgX + border+ PADH; - break; - case GAlign.RIGHT: - alignX = imgX + areaWidth - textWidth - border - PADH; - break; - case GAlign.CENTER: - alignX = imgX + border + PADH + (areaWidth - textWidth)/2; - break; - } - } - COM: <s> calculate text and image x alignment position </s> - diff --git a/funcom_test/40467782.txt b/funcom_test/40467782.txt deleted file mode 100644 index eb7a9bd60b0a8b7307a1a910541e9292a1f0e013..0000000000000000000000000000000000000000 --- a/funcom_test/40467782.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void makeClipboardObject(){ - SecurityManager security = System.getSecurityManager(); - if (security != null) { - try { - security.checkSystemClipboardAccess(); - clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); - } catch (SecurityException e) { - clipboard = new Clipboard("Application Clipboard"); - } - } else { - try { - clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); - } catch (Exception e) { - // THIS IS DUMB - true but is there another way - I think not - } - } - } - COM: <s> if security permits use the system clipboard otherwise create </s> - diff --git a/funcom_test/40467789.txt b/funcom_test/40467789.txt deleted file mode 100644 index db44f93ce905e64b33bb65baadb768130b0bb81d..0000000000000000000000000000000000000000 --- a/funcom_test/40467789.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void createEventHandler(Object obj, String methodName){ - try{ - this.eventHandler = obj.getClass().getMethod(methodName, new Class[0] ); - eventHandlerObject = obj; - } catch (Exception e) { - eventHandlerObject = null; - System.out.println("The class " + obj.getClass().getSimpleName() + " does not have a method called " + methodName); - } - } - COM: <s> see if obj has a parameterless method called method name and </s> - diff --git a/funcom_test/40467808.txt b/funcom_test/40467808.txt deleted file mode 100644 index 7edadb7e7a927bb10e46006a848e63292acf7484..0000000000000000000000000000000000000000 --- a/funcom_test/40467808.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setFont(String fontname, int fontsize){ - int tw = textWidth; - int fs = (int) localFont.getFont().getSize(); - localFont = GFont.getFont(winApp, fontname, fontsize); - if(fontsize != fs) - height += (fontsize - fs); - setText(text); - if(textWidth != tw) - width += (textWidth - tw); - calcAlignX(); - calcAlignY(); - - } - COM: <s> set the font size for the label changing the height </s> - diff --git a/funcom_test/40467844.txt b/funcom_test/40467844.txt deleted file mode 100644 index 5f8f3c28003ceefa55fa647e6daaa9f5f6463ea2..0000000000000000000000000000000000000000 --- a/funcom_test/40467844.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void createSlider(){ - slider = new GVertSlider(winApp, width - 10, height, 10, maxRows * height); - slider.setBorder(1); - slider.setVisible(false); - slider.setLimits(0, 0, maxRows - 1); - slider.addEventHandler(this, "processSliderMotion", new Class[] { GVertSlider.class } ); - add(slider); - } - COM: <s> create the vertical slider for the drop down list </s> - diff --git a/funcom_test/40467847.txt b/funcom_test/40467847.txt deleted file mode 100644 index 742590aaa61af453c38fcc9b82cd189f0e1baaab..0000000000000000000000000000000000000000 --- a/funcom_test/40467847.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void createOptions(String[] optTexts){ - optGroup = new GOptionGroup(); - GOption option; - for(int i = 0; i < optTexts.length; i++){ - option = makeOption(optTexts[i]); - if(option != null){ - optGroup.addOption(option); - add(option); - } - } - optGroup.setSelected(0); - text = optGroup.selectedText(); - nbrRowsToShow = Math.min(optTexts.length, maxRows); - } - COM: <s> create initial options based on string array </s> - diff --git a/funcom_test/40467851.txt b/funcom_test/40467851.txt deleted file mode 100644 index 5124c46c0340b7d18d9be127d23b6f92eda8b241..0000000000000000000000000000000000000000 --- a/funcom_test/40467851.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public GOption makeOption(String optText){ - GOption opt = null; - if(optText != null && !optText.equals("")){ - opt = new GOption(winApp, optText, 0, 0, width - 10); - opt.addEventHandler(this, "processOptionSelection"); - opt.setVisible(false); - opt.setOpaque(true); - opt.setBorder(0); - } - return opt; - } - COM: <s> make a new option for the text opt text </s> - diff --git a/funcom_test/40467879.txt b/funcom_test/40467879.txt deleted file mode 100644 index ec9ae2b6d3f46c4156e33d01fad4ced4af3b51a3..0000000000000000000000000000000000000000 --- a/funcom_test/40467879.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setTextAlign(int align){ - int ha = align & GAlign.H_ALIGN; - int va = align & GAlign.V_ALIGN; - if(ha == GAlign.LEFT || ha == GAlign.CENTER || ha == GAlign.RIGHT){ - textAlignHorz = ha; - calcAlignX(); - } - if(va == GAlign.TOP || va == GAlign.MIDDLE || va == GAlign.BOTTOM){ - textAlignVert = va; - calcAlignY(); - } - } - COM: <s> set the text alignment inside the box </s> - diff --git a/funcom_test/40467896.txt b/funcom_test/40467896.txt deleted file mode 100644 index 5aa07b1d74391683aa08de92517c3a71458f7cd8..0000000000000000000000000000000000000000 --- a/funcom_test/40467896.txt +++ /dev/null @@ -1,31 +0,0 @@ -TDAT: public void setActionOnClose(int action){ - switch(action){ - case KEEP_OPEN: - removeWindowListener(winAdapt); - winAdapt = null; - actionOnClose = action; - break; - case CLOSE_WINDOW: - case EXIT_APP: - if(winAdapt == null){ - winAdapt = new WindowAdapter() { - public void windowClosing(WindowEvent evt) { - switch(actionOnClose){ - case CLOSE_WINDOW: - removeFromG4P(); - dispose(); // close this frame - break; - case EXIT_APP: - System.exit(0); - break; - } - } - }; - addWindowListener(winAdapt); - } // end if - actionOnClose = action; - break; - } // end switch - } - COM: <s> this sets what happens when the users attempts to close the window </s> - diff --git a/funcom_test/40467907.txt b/funcom_test/40467907.txt deleted file mode 100644 index 4d76e0d5542f12c10d9b9c509db0a2a14b94fba4..0000000000000000000000000000000000000000 --- a/funcom_test/40467907.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void draw(){ - if(visible){ - Point pos = new Point(0,0); - calcAbsPosition(pos); - app.noStroke(); - app.fill(localColor.sdrBackground); - app.rect(pos.x, pos.y, width, height); - app.fill(localColor.sdrThumb); - app.rect(pos.x, pos.y + thumbPos - thumbSize/2, width, thumbSize); - if(border != 0){ - app.strokeWeight(border); - app.noFill(); - app.stroke(localColor.sdrBorder); - app.rect(pos.x, pos.y, width, height); - } - } - } - COM: <s> draw the slider </s> - diff --git a/funcom_test/40467937.txt b/funcom_test/40467937.txt deleted file mode 100644 index 81b24f1054ec83e3334931b1f8dbb1eca72acbff..0000000000000000000000000000000000000000 --- a/funcom_test/40467937.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addDrawHandler(Object obj, String methodName){ - try{ - drawHandlerMethod = obj.getClass().getMethod(methodName, new Class[] {GWinApplet.class, GWinData.class } ); - drawHandlerObject = obj; - drawHandlerMethodName = methodName; - } catch (Exception e) { - GMessenger.message(NONEXISTANT, this, new Object[] {methodName, new Class[] { GWinApplet.class, GWinData.class } } ); - } - } - COM: <s> attempt to add the draw handler method </s> - diff --git a/funcom_test/40490409.txt b/funcom_test/40490409.txt deleted file mode 100644 index 6fbc3fcbfd92c2ecdf4948bedeac93387e575bba..0000000000000000000000000000000000000000 --- a/funcom_test/40490409.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void dataRecieved(SocketEvent e) { - if (e.getData() == null) { - System.out.println("null data"); - return; - } - //tokenize the command - String[] commands = Util.separateString(e.getData()); - log("RSHServer receive: " + Util.arraytoString(commands)); - notifyListeners(commands); - } - COM: <s> sends command data to relevant listeners by looking at first arg </s> - diff --git a/funcom_test/40490646.txt b/funcom_test/40490646.txt deleted file mode 100644 index 15c7f0e6b1e52233a3f49231f00a83fdb704ab99..0000000000000000000000000000000000000000 --- a/funcom_test/40490646.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void executeCommand(Command c) { - CommandArray ca = (CommandArray) c; - if (!(c instanceof CommandArray)) { - System.err.println("Send "); - return; - } -// led.setOn(ca.getValue(POWER) == ON); - led.setRGB((int) ca.getValue(RED), (int) ca.getValue(GREEN), (int) ca.getValue(BLUE)); - - } - COM: <s> actuates a spotled with power red value green value blue value </s> - diff --git a/funcom_test/40490691.txt b/funcom_test/40490691.txt deleted file mode 100644 index 2a9e356d3a2d2486e00236e3a48308666cd7ac71..0000000000000000000000000000000000000000 --- a/funcom_test/40490691.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void startBlinkLoop() { - blinking = true; - new Thread() { - - public void run() { - while (blinking) { - blinkonBlack();//sends commands that will take 50ms to run - //sleep 1 BLINK_TIME for the on, sleep 1 BLINK_TIME for off. - Util.sleep(BLINK_TIME * 2); - } - } - }.start(); - } - COM: <s> start blinking until code stop blink loop code called </s> - diff --git a/funcom_test/40490726.txt b/funcom_test/40490726.txt deleted file mode 100644 index 8a62608adaef585277a4138c7f283b87126b589e..0000000000000000000000000000000000000000 --- a/funcom_test/40490726.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void calibrate(){ -// zeroV = getVelocity(); - - //Find the average velocity over NUM_POLLS x POLL_TIME ms. - final int NUM_POLLS = 100; - final int POLL_TIME = 50; - double sum = 0; - for(int i = 0; i < NUM_POLLS; i++) { - sum += getVelocity(); - Util.sleep(POLL_TIME); - } - sum /= NUM_POLLS; - zeroV = sum; - - } - COM: <s> finds the zero rate output of the gyro </s> - diff --git a/funcom_test/40490733.txt b/funcom_test/40490733.txt deleted file mode 100644 index c5d1a795e5a4a02e08a5b3d040564303e70620d3..0000000000000000000000000000000000000000 --- a/funcom_test/40490733.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public double getVelocity() { - try { - return (((rate110.getVoltage() - vref.getVoltage()) * MV_PER_VOLT) / MV_PER_DEG_PER_SEC) - zeroV ; - } catch (IOException ex) { - ex.printStackTrace(); - return -1;//TODO errors - } - } - COM: <s> calculates the velocity reported by the gyro </s> - diff --git a/funcom_test/40490736.txt b/funcom_test/40490736.txt deleted file mode 100644 index 891a25c744ee21f31dba2231d2476e2af28910d8..0000000000000000000000000000000000000000 --- a/funcom_test/40490736.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public double getAngle() { - double prevV = velocity; - double prevTime = time; - velocity = getVelocity(); - time = System.currentTimeMillis(); - //trapazoid rule: multiply difference in time to the average of current and past reading. - return angle += .5 * ((time - prevTime) * S_PER_MS) * (prevV + velocity); - } - COM: <s> reads velocity and integrates it with accumulated angle </s> - diff --git a/funcom_test/40491588.txt b/funcom_test/40491588.txt deleted file mode 100644 index 59a4eae2a293eab2d620c5bbc8003db3f8947bcf..0000000000000000000000000000000000000000 --- a/funcom_test/40491588.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void setState(int key, double value) { - if (data.length <= key) { - // increase length of data by making it a copy of itself with - // increased length - // data = Arrays.copy(data, 0, key + 1, 0, data.length) - // System.a - data = new double[key + 1]; - } - // notify self on state change - if (value != data[key]) { - sensorStateChanged(key, data[key], value); - } - // save new data - data[key] = value; - - } - COM: <s> sets sensor state from a hardware call and notifies self on detected </s> - diff --git a/funcom_test/40491645.txt b/funcom_test/40491645.txt deleted file mode 100644 index 02c5478b102a945f689afdb63125122462447397..0000000000000000000000000000000000000000 --- a/funcom_test/40491645.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean simulationContinues() { - for (PhysicalObject o : env.getObjects()) { - if (o.getClass().toString().equals(Beacon.class.toString()) - && Math.abs(o.getX() - x) < 5 && Math.abs(o.getY() - y) < 5) { - Simulator.out.println("GAME OVER"); - return false; - } - } - return true; - } - COM: <s> simulation ends when </s> - diff --git a/funcom_test/40491682.txt b/funcom_test/40491682.txt deleted file mode 100644 index e4856c07ace775a679fd95301ff4560ea92afb08..0000000000000000000000000000000000000000 --- a/funcom_test/40491682.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void drive() { - double vX = convertControl(getPercent(x)); - double vY = convertControl(getPercent(y)); - log("Drive: " + (vY - vX) + "\t " + vY + vX); - base.percentDrive(vY - vX, vY + vX); - } - COM: <s> converts gravity vectors on spot axes to arcade style drive </s> - diff --git a/funcom_test/40491690.txt b/funcom_test/40491690.txt deleted file mode 100644 index bf1f019b87027488fac5ea1b2fa206c2aa291e51..0000000000000000000000000000000000000000 --- a/funcom_test/40491690.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void velocityDrive(int left, int right) { - if (create != null) { - int x = limit(-MAX_VELOCITY, MAX_VELOCITY, left); - int y = limit(-MAX_VELOCITY, MAX_VELOCITY, right); - log("Drive:" + x + "\t" + y); - create.driveDirect( - x, - y); - } - } - COM: <s> drive by commanding each wheels motorspeed </s> - diff --git a/funcom_test/40491755.txt b/funcom_test/40491755.txt deleted file mode 100644 index 3f94dffe6565776a1ae444d0e2a83c6609ff8a96..0000000000000000000000000000000000000000 --- a/funcom_test/40491755.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void startSensors() { - log("Initializing joystick..."); - joy = new DemoJoystick(); - joy.addSensorChangeListener(this); - joy.start(); - log("Joystick initialization success!"); - - log("Initializing Telemetry Server"); - server = new TelemetryServer(joy, JOYSTICK_PORT); - server.start(); - log("Telemetry server initialization success!"); - - } - COM: <s> initialize and start sensors </s> - diff --git a/funcom_test/40504402.txt b/funcom_test/40504402.txt deleted file mode 100644 index 26c441c1bdf25d33c761566a8aab4ce206dd78c9..0000000000000000000000000000000000000000 --- a/funcom_test/40504402.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private File findDefaultsFile() { - String defaultsPath = "/defaults/users.defaults.xml"; - String xmlDir = server.getServerProperties().get(XML_DIR_KEY); - return (xmlDir == null) ? new File(System.getProperty("user.dir") + "/xml" + defaultsPath) - : new File(xmlDir + defaultsPath); - } - COM: <s> checks server properties for the xml dir property </s> - diff --git a/funcom_test/40504655.txt b/funcom_test/40504655.txt deleted file mode 100644 index 064af0f847af97d824979b03530e258fd65f4c8c..0000000000000000000000000000000000000000 --- a/funcom_test/40504655.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void createTables() throws SQLException { - Connection conn = null; - Statement s = null; - try { - conn = DriverManager.getConnection(connectionURL); - s = conn.createStatement(); - s.execute(createUserTableStatement); - s.close(); - } - finally { - s.close(); - conn.close(); - } - } - COM: <s> initialize the database by creating tables for each resource type </s> - diff --git a/funcom_test/40511991.txt b/funcom_test/40511991.txt deleted file mode 100644 index 9a81dd055df9849af355ca9cea25d6c4515c956e..0000000000000000000000000000000000000000 --- a/funcom_test/40511991.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Row getRow(int pos) { - for(int i = 0; i < _cache.size(); i++) { - Rows rows = (Rows)_cache.get(i); - if(rows.inside(pos)) return (Row)rows.getRow(pos - rows.getBegin()); - } - return null; - } - COM: <s> returns the row at the given position if any </s> - diff --git a/funcom_test/40515332.txt b/funcom_test/40515332.txt deleted file mode 100644 index 8623dab188edcaabe3551247250acd6bb5235214..0000000000000000000000000000000000000000 --- a/funcom_test/40515332.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void setRangeMarkers(){ - String rangeMarkerParam = ""; - int i = 0; - for ( Iterator it = rangeMarkers.iterator(); it.hasNext(); ) - { - RangeMarker marker = (RangeMarker)it.next(); - rangeMarkerParam += (i++ > 0 ) ? "|" + marker.toString() : marker.toString(); - } - if (rangeMarkers.size() > 0){ - addParameter(MARKER_PARAM, rangeMarkerParam); - } - } - COM: <s> internal method to set the range markers </s> - diff --git a/funcom_test/40628242.txt b/funcom_test/40628242.txt deleted file mode 100644 index fd44dfa6d22b3bcf0c3329d4d9ae416cca91e5b1..0000000000000000000000000000000000000000 --- a/funcom_test/40628242.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void save() { - Cookies.setCookie(COOKIE_NAME, container.toString(), new Date(System - .currentTimeMillis() - + 1000L * 60 * 60 * 24 * 365), null, null, false); - - System.out.println(Cookies.getCookie(COOKIE_NAME)); - } - COM: <s> save the configuration into the applications cookie </s> - diff --git a/funcom_test/40653205.txt b/funcom_test/40653205.txt deleted file mode 100644 index 2ae41ccccfdb7d8fd574523a2ff3cf2a9186e47c..0000000000000000000000000000000000000000 --- a/funcom_test/40653205.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public boolean remove(Object o) { - if (o!=null) { - for (Entry e = header.next; e != header; e = e.next) { - if (e.element==null) { - remove(e); - return true; - } - } - } else { - for (Entry e = header.next; e != header; e = e.next) { - if (o.equals(e.element)) { - remove(e); - return true; - } - else if (e == header && o == header) - { - remove(e); - return true; - } - } - } - return false; - } - COM: <s> removes the first occurrence of the specified element in this list </s> - diff --git a/funcom_test/40653220.txt b/funcom_test/40653220.txt deleted file mode 100644 index 5128ce136ab4fc3ffa2f14bdbeba1ffe2fde92a5..0000000000000000000000000000000000000000 --- a/funcom_test/40653220.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean addAll(int index, Collection c) { - int numNew = c.size(); - if (numNew==0) - return false; - modCount++; - - Entry successor = (index==size ? header : entry(index)); - Entry predecessor = successor.previous; - Iterator it = c.iterator(); - for (int i=0; i<numNew; i++) { - Entry e = new Entry(it.next(), successor, predecessor); - predecessor.next = e; - predecessor = e; - } - successor.previous = predecessor; - - return true; - } - COM: <s> inserts all of the elements in the specified collection into this </s> - diff --git a/funcom_test/40653260.txt b/funcom_test/40653260.txt deleted file mode 100644 index c8976d6f2edf4743c418fb1190d696e328696ad7..0000000000000000000000000000000000000000 --- a/funcom_test/40653260.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Entry entry(int index) { - if (index < 0 || index >= size) - throw new IndexOutOfBoundsException("Index: "+index+ - ", Size: "+size); - Entry e = header; - if (index < size/2) { - for (int i = 0; i <= index; i++) - e = e.next; - } else { - for (int i = size-1; i > index; i--) - e = e.previous; - } - return e; - } - COM: <s> return the indexed entry </s> - diff --git a/funcom_test/40674001.txt b/funcom_test/40674001.txt deleted file mode 100644 index 7ed719cdee0e90949b561f9017d4b2b8da85b262..0000000000000000000000000000000000000000 --- a/funcom_test/40674001.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private InputStream lookupConfig() throws Exception { - InputStream ins = null; - // check explicit context-param['logging-config'] - String param = servletContext.getInitParameter(LOGGING_CONTEXT_PARAM); - if (param != null) { - ins = servletContext.getResourceAsStream(param); - } - // check /WEB-INF/logging.properties - if (ins == null) { - ins = servletContext.getResourceAsStream("/WEB-INF/logging.properties"); - } - // check classpath: logging.properties - if (ins == null) { - ClassLoader cl = Thread.currentThread().getContextClassLoader(); - ins = cl.getResourceAsStream("logging.properties"); - } - return ins; - } - COM: <s> read the logging from the location in following order 1 </s> - diff --git a/funcom_test/40686588.txt b/funcom_test/40686588.txt deleted file mode 100644 index f2b58f9e07d4b83ecd2e6ea1cf76991037fbbdba..0000000000000000000000000000000000000000 --- a/funcom_test/40686588.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testExtract() throws Exception { - System.out.println("extract"); - - File sourceRoot = null; - - List<ClassNode> expResult = null; - List<ClassNode> result = CoreExtractorAST.extract(sourceRoot); - assertEquals(expResult, result); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of extract method of class com </s> - diff --git a/funcom_test/40686658.txt b/funcom_test/40686658.txt deleted file mode 100644 index a6675bb0bd72909b09d7f1db2d85eab41979794f..0000000000000000000000000000000000000000 --- a/funcom_test/40686658.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String read() { - if (inputBuffer == null) - return "E1" + E_INPUT_BUFF_NULL; - else if (inputBuffer.size() == 0) - return "E2" + "There are no strings terminated by zero in the input buffer"; - else { - String result = (String) inputBuffer.get(0); - inputBuffer.remove(0); - return "0" + result; - } - } - COM: <s> interface method for java script returns received string </s> - diff --git a/funcom_test/40686665.txt b/funcom_test/40686665.txt deleted file mode 100644 index 98cde14f661fd7a6740fb975f7830bb2840e72b6..0000000000000000000000000000000000000000 --- a/funcom_test/40686665.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void initImplementation(int id) { - String appletName = "javaApp_" + id; - - javaTag = new HTML(); - javaTag.setHTML(TAG.replaceAll("[{][0][}]", appletName).replaceAll("[{][1][}]", String.valueOf(id))); - - RootPanel.get().add(javaTag); - } - COM: <s> adds java applet to the page </s> - diff --git a/funcom_test/40686671.txt b/funcom_test/40686671.txt deleted file mode 100644 index 9b438a5468993cdf2b2ec85b053662c7958266aa..0000000000000000000000000000000000000000 --- a/funcom_test/40686671.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void closeImpl() { - System.out.println("Closing connection"); - - try { - if (in != null) - in.close(); - if (out != null) - out.close(); - if (socket != null) { - socket.close(); - socket = null; - manuallyClosed = true; - } - } - catch (IOException e) { - e.printStackTrace(); - } - } - COM: <s> closes socket and input output threads </s> - diff --git a/funcom_test/40686704.txt b/funcom_test/40686704.txt deleted file mode 100644 index d74430f296332a2069464693eff4ed1e75d54d26..0000000000000000000000000000000000000000 --- a/funcom_test/40686704.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void fireData(final int loadedBytes) { - DeferredCommand.addCommand(new Command() { - public void execute() { - for (Iterator it = iterator(); it.hasNext();) { - SocketListener listener = (SocketListener) it.next(); - listener.onData(loadedBytes); - } - } - }); - } - COM: <s> fires a data event to all listeners </s> - diff --git a/funcom_test/40686706.txt b/funcom_test/40686706.txt deleted file mode 100644 index 50ec3054194210ff7cfd219b7467d3344e480553..0000000000000000000000000000000000000000 --- a/funcom_test/40686706.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void fireSecurityError(final String message) { - DeferredCommand.addCommand(new Command() { - public void execute() { - for (Iterator it = iterator(); it.hasNext();) { - SocketListener listener = (SocketListener) it.next(); - listener.onSecurityError(message); - } - } - }); - } - COM: <s> fires a security error event to all listeners </s> - diff --git a/funcom_test/40686708.txt b/funcom_test/40686708.txt deleted file mode 100644 index 5e96b3f1532c03b85f5445798e05efa18f9f8716..0000000000000000000000000000000000000000 --- a/funcom_test/40686708.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void fireIOError(final String message) { - DeferredCommand.addCommand(new Command() { - public void execute() { - for (Iterator it = iterator(); it.hasNext();) { - SocketListener listener = (SocketListener) it.next(); - listener.onIOError(message); - } - } - }); - } - COM: <s> fires an input output error event to all listeners </s> - diff --git a/funcom_test/40686811.txt b/funcom_test/40686811.txt deleted file mode 100644 index 216cff66b7e2b6e08922be3adac054ce372ca70a..0000000000000000000000000000000000000000 --- a/funcom_test/40686811.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void initSocket() { - try { - in = new InputStreamReader(socket.getInputStream(), "UTF-8"); - out = socket.getOutputStream(); - } - catch (IOException e) { - e.printStackTrace(); - } - new Thread(new Runnable() { - public void run() { - reading(); - } - }).start(); - } - COM: <s> gets in out streams and begins reading data from an input stream </s> - diff --git a/funcom_test/40710704.txt b/funcom_test/40710704.txt deleted file mode 100644 index a00f80cfab0f2cb2afe882d2d6b6f9f314486843..0000000000000000000000000000000000000000 --- a/funcom_test/40710704.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Token scanNextToken() { - int currentChar = tokenizer.readNextChar(); - - if(currentChar <=0 || tokenizer.isAtEOF()) { - // Either the EOF was reached or some error so don't bother - // dispatching... just return the token. - return tokenizer.captureToken(); - } else { - return dispatch((char)currentChar); - } - } - COM: <s> scans and returns the next token in the tokenizer </s> - diff --git a/funcom_test/4074417.txt b/funcom_test/4074417.txt deleted file mode 100644 index a261609bdbd16ccff2e5beff9b978dd8f4b83369..0000000000000000000000000000000000000000 --- a/funcom_test/4074417.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void go() { - float temp; - for (int i = 0; i < 4; ++i) { - String s; - pilot.reset(); - - pilot.travel(10f); - s = "Distance: " + pilot.getTravelDistance(); - RConsole.println(s); - LCD.drawString(s, 0, 2 * i); - - pilot.rotate(90f); - temp = pilot.getAngle(); - if (temp < 0) - temp += 360; - s = "Angle: " + temp; - RConsole.println(s); - LCD.drawString(s, 0, 2 * i + 1); - } - } - COM: <s> moves robot in a square </s> - diff --git a/funcom_test/40776207.txt b/funcom_test/40776207.txt deleted file mode 100644 index fda7fbbe50a8228874032dc05e2fcf2b83664ee3..0000000000000000000000000000000000000000 --- a/funcom_test/40776207.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void process(WorkerIsReadyMessageHandle handle, ServiceManager serviceManager) { - WorkerIsReadyProcessorRequestTO to = new WorkerIsReadyProcessorRequestTO(); - ServiceID workerID = serviceManager.getSenderServiceID(); - - to.setWorkerAddress(workerID.toString()); - to.setWorkerContainerID(workerID.getContainerID().toString()); - - OurGridRequestControl.getInstance().execute(to, serviceManager); - } - COM: <s> notifies the client that the worker is ready to receive calls to other </s> - diff --git a/funcom_test/40776466.txt b/funcom_test/40776466.txt deleted file mode 100644 index e929f51c9d92c37f6fd08f051c971789c9f90206..0000000000000000000000000000000000000000 --- a/funcom_test/40776466.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addJDLJob(String jdl, boolean addToHistory) throws CompilerException { - assert jdl != null: "Null must not be passed by the GUI"; - - List<JobSpec> jobs = DescriptionFileCompile.compileJDL( jdl ); - - for ( JobSpec jobSpec : jobs ) { - getManager().addJob(getManagerClient(), jobSpec); - - if (addToHistory) - getModel().addJobToHistory(jdl); - } - - } - COM: <s> submits a new jdl job to the broker </s> - diff --git a/funcom_test/40776610.txt b/funcom_test/40776610.txt deleted file mode 100644 index 7d5f1a0bc200c60ca1bad4bafd235f0b3ff80890..0000000000000000000000000000000000000000 --- a/funcom_test/40776610.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void cancelJobActionPerformed( int jobId ) { - - int option = JOptionPane.showConfirmDialog( this, "Really Cancel Job " + jobId + "?", "Confirm Cancel Job", - JOptionPane.YES_NO_OPTION ); - System.out.println("Cancel job Action"); - if ( option == JOptionPane.YES_OPTION ) { - new Thread( new UIManagerCancelJobContacter( jobId ) ).start(); - } - } - COM: <s> when cancel job button is clicked </s> - diff --git a/funcom_test/40776651.txt b/funcom_test/40776651.txt deleted file mode 100644 index c80d6df16132c850b66fe7b2e10d8bcdf000f5b2..0000000000000000000000000000000000000000 --- a/funcom_test/40776651.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void writeWorkerInTextArea( WorkerSpec workerSpec ) { - String expression = workerSpec.getExpression(); - if(expression != null){ - try { - propertiesArea.setText( new JobAd( expression ).toString( true, true ) ); - } catch ( Exception e ) { - propertiesArea.setText( "Error parsing JobAd: " + e.getMessage() ); - } - }else{ - propertiesArea.setText( formatMap( workerSpec.getAttributes() ) ); - } - } - COM: <s> writes formated worker properties in a text area </s> - diff --git a/funcom_test/40776669.txt b/funcom_test/40776669.txt deleted file mode 100644 index 4d4f963ec2386eaea7318e88e7ce5bb20195dd79..0000000000000000000000000000000000000000 --- a/funcom_test/40776669.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String formatMap( Map<String,String> map ) { - StringBuilder sb = new StringBuilder("[\n"); - Set<Entry<String,String>> entrySet = map.entrySet(); - for ( Entry<String,String> entry : entrySet ) { - sb.append( "\t" + entry.getKey() + ": " + entry.getValue() + "\n" ); - } - return sb.append( "]\n" ).toString(); - } - COM: <s> format a map of properties to a single </s> - diff --git a/funcom_test/40777106.txt b/funcom_test/40777106.txt deleted file mode 100644 index b289c0b21d9ba0b39cb31c732a1887768d21eab8..0000000000000000000000000000000000000000 --- a/funcom_test/40777106.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getXML(long handleId, String localFileName, String description, String id){ - - StringBuffer buffer = new StringBuffer(); - - buffer.append("<START_TRANSFER "); - buffer.append("handleId='" + handleId + "' "); - buffer.append("localFileName='" + localFileName + "' "); - buffer.append("description='" + description + "' "); - buffer.append("id='" + id + "' "); - buffer.append("/>"); - - return buffer.toString(); - } - COM: <s> start transfer handle id long local file name string destination file name string </s> - diff --git a/funcom_test/40777611.txt b/funcom_test/40777611.txt deleted file mode 100644 index f382a8892c96825201a832faceeede101579292a..0000000000000000000000000000000000000000 --- a/funcom_test/40777611.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int getJobIdToCancel() { - System.out.println("Get job id"); - DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); - - if ( node == null ) - return -1; - - String nodeInfo = (String) node.getUserObject(); - - if ( !nodeInfo.startsWith( "Job" ) || nodeInfo.startsWith( "Jobs" ) ) - return -1; - - return getJobId( nodeInfo ); - } - COM: <s> returns the job id of the selected job in tree </s> - diff --git a/funcom_test/40777631.txt b/funcom_test/40777631.txt deleted file mode 100644 index 34317a4ec44c76eb58fa5ffab499820c9867ff73..0000000000000000000000000000000000000000 --- a/funcom_test/40777631.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void removeUser(@MonitoredBy(Module.CONTROL_OBJECT_NAME) PeerControlClient peerControlClient, String login) { - - RemoveUserRequestTO to = new RemoveUserRequestTO(); - - //Request the remore operation to the peer user information - PeerLocalOperation.removePeerUser(login); - - to.setLogin(login); - to.setClientAddress(getServiceManager().getStubDeploymentID( - peerControlClient).getServiceID().toString()); - - OurGridRequestControl.getInstance().execute(to, getServiceManager()); - - } - COM: <s> remove a user for this peer </s> - diff --git a/funcom_test/40777743.txt b/funcom_test/40777743.txt deleted file mode 100644 index a76ca23bec5fc7598f74c982eeb44faac21d521a..0000000000000000000000000000000000000000 --- a/funcom_test/40777743.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Priority getPriority(List<IResponseTO> responses,String peerPublicKey) { - - List<TrustyCommunity> filteredCommunities = - filterByPresence(peerPublicKey, getTrustyCommunities(responses)); - - if(filteredCommunities.isEmpty()) { - return Priority.UNKNOWN_PEER; - } - - Collections.sort(filteredCommunities); - int greatestPriority = filteredCommunities.get(filteredCommunities.size() - 1).getPriority(); - - return new Priority(Priority.Range.ALLOC_FOR_TRUST_COMMUNITY, greatestPriority); - } - COM: <s> gets the greatest </s> - diff --git a/funcom_test/40777843.txt b/funcom_test/40777843.txt deleted file mode 100644 index 95048a72d53958a5716119b773aada30b4731293..0000000000000000000000000000000000000000 --- a/funcom_test/40777843.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void peerStopped() { - actionsPanel.peerStopped(); - - xmppConfigurationPanel.enableFieldEdition(); - peerConfigurationPanel.enableFieldEdition(); - workersPanel.peerStopped(); - peerUserTablePanel.peerStopped(); - communityPanel.peerStopped(); - - getContentPane().setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); - } - COM: <s> define the status of this frame when the peer </s> - diff --git a/funcom_test/40777973.txt b/funcom_test/40777973.txt deleted file mode 100644 index 074b34c987d02feb42cac1f8e92ef8837a58bbff..0000000000000000000000000000000000000000 --- a/funcom_test/40777973.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void saveFieldInputs() throws IOException { - basicPeerConfigurationPanel.saveProperties(); - discoveryServiceSettingsPanel.saveProperties(); - communePanel.saveFieldInputs(); - fdPanel.saveFieldInputs(); - cACertificatePanel.saveFieldInputs(); - vomsAuthPanel.saveFieldInputs(); - advancedPeerSettingsPanel.saveProperties(); - if (logSettingsPanel != null) { - logSettingsPanel.saveProperties(); - } - tagsPeerConfigurationPanel.saveProperties(); - saveProperties(); - } - COM: <s> save the values of the internal panels field inputs </s> - diff --git a/funcom_test/40778768.txt b/funcom_test/40778768.txt deleted file mode 100644 index 9867b174479e32d274ae39893ea0aba54f68ca79..0000000000000000000000000000000000000000 --- a/funcom_test/40778768.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void configBalanceRanking(List<IResponseTO> responses, String filePath) { - - PeerDAOFactory.getInstance().getAccountingDAO().loadBalancesRanking(filePath); - long frequence = AccountingConstants.RANKING_SAVING_FREQ; - - ScheduleActionWithFixedDelayResponseTO to = new ScheduleActionWithFixedDelayResponseTO(); - to.setActionName(PeerConstants.SAVE_ACCOUNTING_ACTION_NAME); - to.setDelay(frequence); - to.setTimeUnit(TimeUnit.SECONDS); - - responses.add(to); - } - COM: <s> load balances from the ranking file and configure the timer to save </s> - diff --git a/funcom_test/40778973.txt b/funcom_test/40778973.txt deleted file mode 100644 index 970709c905a9cdc8ba95d292bc3fa1c496533cf6..0000000000000000000000000000000000000000 --- a/funcom_test/40778973.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void redistributeDeliveredWorker(List<IResponseTO> responses, LocalAllocableWorker allocableWorker, LocalWorker localWorker) { - - Request suitableRequestForWorker = DefaultAllocator.getInstance().getRequestForWorkerSpec( - allocableWorker.getWorkerSpec()); - - if(suitableRequestForWorker == null){ - StopWorkingResponseTO to = new StopWorkingResponseTO(); - to.setWmAddress(allocableWorker.getWorkerAddress()); - - responses.add(to); - return; - } - - allocateRequestToIdleWorker(responses, allocableWorker, suitableRequestForWorker, localWorker); - } - COM: <s> redistributes a local worker </s> - diff --git a/funcom_test/40779196.txt b/funcom_test/40779196.txt deleted file mode 100644 index 9ebe6503073a2abcfe714732c3fec725866034c6..0000000000000000000000000000000000000000 --- a/funcom_test/40779196.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void process(RemoteExecuteMessageHandle handle, ServiceManager serviceManager) { - - RemoteExecuteProcessorRequestTO to = new RemoteExecuteProcessorRequestTO(); - to.setHandle(handle); - to.setSenderPublicKey(serviceManager.getSenderPublicKey()); - to.setExecutionClientDeployed(isExecutionClientDeployed(serviceManager)); - - OurGridRequestControl.getInstance().execute(to, serviceManager); - } - COM: <s> request the execution of a remote command </s> - diff --git a/funcom_test/40781408.txt b/funcom_test/40781408.txt deleted file mode 100644 index 3ec69a7c6f3108e3d7709e4c182169d057aa222a..0000000000000000000000000000000000000000 --- a/funcom_test/40781408.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void inserRecordAttribute(String name, String value) { - ClassAdSyntacticalAnalyzerStream.changeSystemErrToStream(); - RecordExpr expr = (RecordExpr) new ClassAdParser(value).parse(); - String errorMessage = ClassAdSyntacticalAnalyzerStream.getErrorMessage(); - if(errorMessage.length() > 0){ - throw new IllegalArgumentException("Mal formed attribute "+name+" "+errorMessage); - } - this.record.insertAttribute(name, expr); - ClassAdSyntacticalAnalyzerStream.resetSystemErr(); - } - COM: <s> this method inserts a new attribute in the classad expression </s> - diff --git a/funcom_test/40781450.txt b/funcom_test/40781450.txt deleted file mode 100644 index 43908cafed60e03a2d8dae92feaac5b530fb3952..0000000000000000000000000000000000000000 --- a/funcom_test/40781450.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public ExecutorResult getResult( ExecutorHandle handle ) throws ExecutorException { - - ExecutorResult result = null; - Process processToWait = null; - - try { - - /* Get the reference to the process will return ther result */ - processToWait = this.getProcess( handle ); - - /* get the process output */ - result = this.catchOutput( processToWait ); - - removeFromProcesses( handle ); - - } catch ( InterruptedException e ) { - throw new ExecutorException( "Cannot get the result of command execution.", e ); - } - - return result; - - } - COM: <s> yet to be implemented </s> - diff --git a/funcom_test/40781459.txt b/funcom_test/40781459.txt deleted file mode 100644 index 02f8c2626c7d1c58f0e7f04fa7a2780a8f117041..0000000000000000000000000000000000000000 --- a/funcom_test/40781459.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: private Constant parsePrimitiveValue( String value ) { - - if(value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false")){ - boolean booleanValue = Boolean.valueOf(value); - return Constant.getInstance(booleanValue); - } - - try{ - Integer intValue = Integer.valueOf(value); - return Constant.getInstance(intValue); - }catch(Exception e){ - } - - try{ - Long longValue = Long.valueOf(value); - return Constant.getInstance(longValue); - }catch(Exception e){ - } - - try{ - Double d = Double.valueOf(value); - return Constant.getInstance(d); - }catch(Exception e){ - } - return null; - } - COM: <s> this method verifies a certain attribute value is from a primitive </s> - diff --git a/funcom_test/40781540.txt b/funcom_test/40781540.txt deleted file mode 100644 index cef31c39434f798e27233c357e8aea45b275af96..0000000000000000000000000000000000000000 --- a/funcom_test/40781540.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void allocate( WorkerEntry chosenWorker ) { - - if ( !GridProcessState.UNSTARTED.equals( this.state ) ) { - throw new IllegalResultException( "This replica is already running or has already finished execution", - replicaHandle ); - } - - this.workerEntry = chosenWorker; - this.replicaAccounting = new GridProcessAccounting(workerEntry.getRequestSpec(), - getWorkerEntry().getWorkerID(), getWorkerEntry().getWorkerPublicKey(), workerEntry.getWorkerSpec()); - } - COM: <s> marks this code grid process code as running in other words this </s> - diff --git a/funcom_test/40783112.txt b/funcom_test/40783112.txt deleted file mode 100644 index 1181bf1e93e6707f9b6187fbcee9a5294def3d04..0000000000000000000000000000000000000000 --- a/funcom_test/40783112.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void changeStatusAllocatedForPeer(DeploymentID remoteWorkerID, PeerComponent peerComponent) { -// AcceptanceTestUtil.notifyRecovery(application, workerID); - - //Get bound object - WorkerManagementClient workerManagementClient = getWorkerManagementClient(); - - //Change status of worker - AcceptanceTestUtil.setExecutionContext(peerComponent, getWorkerManagementClientDeployment(), remoteWorkerID); - workerManagementClient.statusChangedAllocatedForPeer(remoteWorkerID == null ? null : remoteWorkerID.getServiceID()); - } - COM: <s> changes a workers status to allocated for peer without verifying logger </s> - diff --git a/funcom_test/40783146.txt b/funcom_test/40783146.txt deleted file mode 100644 index 65f6ac8ed231844000cd16eea541febc7c7997ac..0000000000000000000000000000000000000000 --- a/funcom_test/40783146.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public DeploymentID login(Module application, XMPPAccount user, String brokerPublicKey) { - AccountingAggregator peerAccounting = getAccountingAggregator(); - return login(application, user.getUsername(), user.getServerAddress(), user.getUserpassword(), brokerPublicKey, - null, peerAccounting, false); - } - COM: <s> expects an user to successfully login at the peer </s> - diff --git a/funcom_test/40783157.txt b/funcom_test/40783157.txt deleted file mode 100644 index 8b21783c0f0d9b12e625a0224046d82e27a0498a..0000000000000000000000000000000000000000 --- a/funcom_test/40783157.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setWorkers(PeerComponent component, String sdfFilePath, ModuleContext context) throws Exception { - - /*PeerSyncApplicationClient componentClient = new PeerSyncApplicationClient(context); - componentClient.putOnQueue(new ControlOperationResult()); - - componentClient.setWorkers(DescriptionFileCompile.compileSDF(TEST_FILES_PATH + sdfFilePath));*/ - - setWorkers(component, DescriptionFileCompile.compileSDF(TEST_FILES_PATH + sdfFilePath)); - } - COM: <s> sets workers in a peer according to a sdf file </s> - diff --git a/funcom_test/40788163.txt b/funcom_test/40788163.txt deleted file mode 100644 index fd1fd2af8d865f75c654020e782e57314a65fb08..0000000000000000000000000000000000000000 --- a/funcom_test/40788163.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected XMPPConnection createConnection() { - // Create the configuration for this new connection - ConnectionConfiguration config = new ConnectionConfiguration(host, port); - config.setCompressionEnabled(Boolean.getBoolean("test.compressionEnabled")); - config.setSendPresence(sendInitialPresence()); - if (getSocketFactory() == null) { - config.setSocketFactory(getSocketFactory()); - } - return new XMPPConnection(config); - } - COM: <s> creates a new xmppconnection using the connection preferences </s> - diff --git a/funcom_test/40788446.txt b/funcom_test/40788446.txt deleted file mode 100644 index 7c382b6c15ce7093d2ad086c8088b43394fcda2c..0000000000000000000000000000000000000000 --- a/funcom_test/40788446.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addAudioPayloadTypes(final List<PayloadType> pts) { - synchronized (payloads) { - Iterator ptIter = pts.iterator(); - while (ptIter.hasNext()) { - PayloadType.Audio pt = (PayloadType.Audio) ptIter.next(); - addPayloadType(new PayloadType.Audio(pt)); - } - } - } - COM: <s> adds a list of payloads to the packet </s> - diff --git a/funcom_test/40788680.txt b/funcom_test/40788680.txt deleted file mode 100644 index cfdeaa2fbe264f649669e234a11eea65f4ba0b8c..0000000000000000000000000000000000000000 --- a/funcom_test/40788680.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean isFullyEstablished() { - boolean result = true; - - MediaNegotiator mediaNeg = getMediaNegotiator(); - if ((mediaNeg == null) || (!mediaNeg.isFullyEstablished())) { - result = false; - } - - TransportNegotiator transNeg = getTransportNegotiator(); - if ((transNeg == null) || (!transNeg.isFullyEstablished())) { - result = false; - } - - return result; - } - COM: <s> return true if the transport and content negotiators have finished </s> - diff --git a/funcom_test/40788770.txt b/funcom_test/40788770.txt deleted file mode 100644 index f217cad7c57e12e9d6e72b99c8df11a35854e622..0000000000000000000000000000000000000000 --- a/funcom_test/40788770.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public TransportCandidate getPreferredCandidate() { - TransportCandidate result = null; - - ArrayList cands = (ArrayList) getCandidatesList(); - if (cands.size() > 0) { - Collections.sort(cands); - // Return the last candidate - result = (TransportCandidate) cands.get(cands.size() - 1); - LOGGER.debug("Result: " + result.getIp()); - } - - return result; - } - COM: <s> get the candididate with the highest preference </s> - diff --git a/funcom_test/40788778.txt b/funcom_test/40788778.txt deleted file mode 100644 index ecfe3403836399e90f553c38695ebd9fcf902e6d..0000000000000000000000000000000000000000 --- a/funcom_test/40788778.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void initializeAndWait() throws XMPPException { - this.initialize(); - try { - LOGGER.debug("Initializing transport resolver..."); - while (!this.isInitialized()) { - LOGGER.debug("Resolver init still pending"); - Thread.sleep(1000); - } - LOGGER.debug("Transport resolved\n"); - } - catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> initialize transport resolver and wait until it is complete unitialized </s> - diff --git a/funcom_test/40788826.txt b/funcom_test/40788826.txt deleted file mode 100644 index 99c7f7e06ba20a404824d58b211883e1cd8ef801..0000000000000000000000000000000000000000 --- a/funcom_test/40788826.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addValidRemoteCandidate(TransportCandidate remoteCandidate) { - // Add the candidate to the list - if (remoteCandidate != null) { - synchronized (validRemoteCandidates) { - LOGGER.debug("Added valid candidate: " + remoteCandidate.getIp() + ":" + remoteCandidate.getPort()); - validRemoteCandidates.add(remoteCandidate); - } - } - } - COM: <s> add a valid remote candidate to the list </s> - diff --git a/funcom_test/40788939.txt b/funcom_test/40788939.txt deleted file mode 100644 index 000ea287d84c75d68ab1274ce16a56dfcc79fbcc..0000000000000000000000000000000000000000 --- a/funcom_test/40788939.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: // private Jingle createAcceptMessage() { -// Jingle jout = null; -// -// // If we have a common best codec, send an accept right now... -// jout = new Jingle(JingleActionEnum.CONTENT_ACCEPT); -// JingleContent content = new JingleContent(parentNegotiator.getCreator(), parentNegotiator.getName()); -// content.setDescription(new JingleDescription.Audio(bestCommonAudioPt)); -// jout.addContent(content); -// -// return jout; -// } - COM: <s> create an iq accept message </s> - diff --git a/funcom_test/40788945.txt b/funcom_test/40788945.txt deleted file mode 100644 index bc5d9cf90cf20761a1fdc78ac0564450d04ba077..0000000000000000000000000000000000000000 --- a/funcom_test/40788945.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public TransportCandidate getBestRemoteCandidate() { - // Hopefully, we only have one validRemoteCandidate - ArrayList cands = getValidRemoteCandidatesList(); - if (!cands.isEmpty()) { - LOGGER.debug("RAW CAND"); - return (TransportCandidate) cands.get(0); - } else { - LOGGER.debug("No Remote Candidate"); - return null; - } - } - COM: <s> obtain the best common transport candidate obtained in the </s> - diff --git a/funcom_test/40788986.txt b/funcom_test/40788986.txt deleted file mode 100644 index 9eca94f2399b844872465bda214395b8997c4e35..0000000000000000000000000000000000000000 --- a/funcom_test/40788986.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public PayloadType parsePayload(final XmlPullParser parser) throws Exception { - PayloadType pte = super.parsePayload(parser); - PayloadType.Audio pt = new PayloadType.Audio(pte); - int ptClockRate = 0; - - try { - ptClockRate = Integer.parseInt(parser.getAttributeValue("", "clockrate")); - } catch (Exception e) { - } - pt.setClockRate(ptClockRate); - - return pt; - } - COM: <s> parse an audio payload type </s> - diff --git a/funcom_test/40789178.txt b/funcom_test/40789178.txt deleted file mode 100644 index eecd6d6665100464f32ed48a168b8dd904bd1f4d..0000000000000000000000000000000000000000 --- a/funcom_test/40789178.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public JingleSession createIncomingJingleSession(JingleSessionRequest request) throws XMPPException { - if (request == null) { - throw new NullPointerException("Received request cannot be null"); - } - - JingleSession session = new JingleSession(connection, request, request.getFrom(), connection.getUser(), jingleMediaManagers); - - triggerSessionCreated(session); - - return session; - } - COM: <s> when the session request is acceptable this method should be invoked </s> - diff --git a/funcom_test/40789667.txt b/funcom_test/40789667.txt deleted file mode 100644 index 315d4ce2bbb2408c616d40ecde64b19b52825a85..0000000000000000000000000000000000000000 --- a/funcom_test/40789667.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: // protected void triggerSessionRedirect(String arg) { - // List<JingleListener> listeners = getListenersList(); - // for (JingleListener li : listeners) { - // if (li instanceof JingleSessionListener) { - // JingleSessionListener sli = (JingleSessionListener) li; - // sli.sessionRedirected(arg, this); - // } - // } - // } - COM: <s> trigger a session redirect event </s> - diff --git a/funcom_test/40789708.txt b/funcom_test/40789708.txt deleted file mode 100644 index 3bd3d1193a574cdf7b9b96dbc9a8bc317bc5434d..0000000000000000000000000000000000000000 --- a/funcom_test/40789708.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void terminate(String reason) throws XMPPException { - if (isClosed()) - return; - LOGGER.debug("Terminate " + reason); - Jingle jout = new Jingle(JingleActionEnum.SESSION_TERMINATE); - jout.setType(IQ.Type.SET); - sendPacket(jout); - triggerSessionClosed(reason); - } - COM: <s> terminates the session with a custom reason </s> - diff --git a/funcom_test/40838756.txt b/funcom_test/40838756.txt deleted file mode 100644 index 0f798abe2b6d3f79a72c0010efd6a860e6812384..0000000000000000000000000000000000000000 --- a/funcom_test/40838756.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void clearUserMetadata() { - // Copy keys into array to avoid concurrent modification exceptions - // if any PropertyChangeListeners should modify user metadata during - // clear operation. - final Object[] keys = userMetadata.keySet().toArray(); - for(int i = keys.length - 1;i >= 0;i--) { - final Object old = userMetadata.remove(keys[i]); - if(old != null) { - firePropertyChange((String)keys[i], old, null); - } - } - } - COM: <s> clears all custom metadata associated with this property </s> - diff --git a/funcom_test/40844755.txt b/funcom_test/40844755.txt deleted file mode 100644 index 31d483d98732734cff4aeb59ff21397b2b3e58c6..0000000000000000000000000000000000000000 --- a/funcom_test/40844755.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private int findAndUpdate(int[] array, int target) { - - if(array==null) - return -1; - - lastReturn = array[0]; - if (lastReturn >= target) - return 1; - - for (int i = 1; i < current_size; i++) { - lastReturn += array[i]; - - if (lastReturn >= target) - return (i + 1) % BATCH_SIZE; - } - return -1; - - } - COM: <s> find the element in the set and update parameters </s> - diff --git a/funcom_test/40864436.txt b/funcom_test/40864436.txt deleted file mode 100644 index 79c1e8894e5fc5351af346321cab8ca909a55664..0000000000000000000000000000000000000000 --- a/funcom_test/40864436.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public TextField getTextField3() { - if (textField3 == null) {//GEN-END:|25-getter|0|25-preInit - // write pre-init user code here - textField3 = new TextField("Quincena que Abarca:", "1", 32, TextField.DECIMAL);//GEN-LINE:|25-getter|1|25-postInit - // write post-init user code here - - - - - }//GEN-BEGIN:|25-getter|2| - return textField3; - } - COM: <s> returns an initiliazed instance of text field3 component </s> - diff --git a/funcom_test/40864441.txt b/funcom_test/40864441.txt deleted file mode 100644 index a14ba1fa534836969990ef98e1897522435b91d1..0000000000000000000000000000000000000000 --- a/funcom_test/40864441.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField4() { - if (textField4 == null) {//GEN-END:|26-getter|0|26-preInit - // write pre-init user code here - textField4 = new TextField("Percepciones:", null, 32, TextField.DECIMAL);//GEN-LINE:|26-getter|1|26-postInit - // write post-init user code here - }//GEN-BEGIN:|26-getter|2| - return textField4; - } - COM: <s> returns an initiliazed instance of text field4 component </s> - diff --git a/funcom_test/40864447.txt b/funcom_test/40864447.txt deleted file mode 100644 index 5ed681bb13494a49af4d167c646bcd664018b70d..0000000000000000000000000000000000000000 --- a/funcom_test/40864447.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField5() { - if (textField5 == null) {//GEN-END:|27-getter|0|27-preInit - // write pre-init user code here - textField5 = new TextField("L\u00EDquido:", null, 32, TextField.DECIMAL);//GEN-LINE:|27-getter|1|27-postInit - // write post-init user code here - }//GEN-BEGIN:|27-getter|2| - return textField5; - } - COM: <s> returns an initiliazed instance of text field5 component </s> - diff --git a/funcom_test/40864452.txt b/funcom_test/40864452.txt deleted file mode 100644 index 279ede39dc7c7db58482408ca11dba60b4937071..0000000000000000000000000000000000000000 --- a/funcom_test/40864452.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField6() { - if (textField6 == null) {//GEN-END:|28-getter|0|28-preInit - // write pre-init user code here - textField6 = new TextField("Descuento KD REF:", null, 32, TextField.DECIMAL);//GEN-LINE:|28-getter|1|28-postInit - // write post-init user code here - }//GEN-BEGIN:|28-getter|2| - return textField6; - } - COM: <s> returns an initiliazed instance of text field6 component </s> - diff --git a/funcom_test/40864458.txt b/funcom_test/40864458.txt deleted file mode 100644 index 6da3174b4c6c400419fa16a231df4351c2d90867..0000000000000000000000000000000000000000 --- a/funcom_test/40864458.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField7() { - if (textField7 == null) {//GEN-END:|29-getter|0|29-preInit - // write pre-init user code here - textField7 = new TextField("Descuento KD No REF:", null, 32, TextField.DECIMAL);//GEN-LINE:|29-getter|1|29-postInit - // write post-init user code here - }//GEN-BEGIN:|29-getter|2| - return textField7; - } - COM: <s> returns an initiliazed instance of text field7 component </s> - diff --git a/funcom_test/40864470.txt b/funcom_test/40864470.txt deleted file mode 100644 index 2e01ad955520600591b1a102368dd853c8d2169e..0000000000000000000000000000000000000000 --- a/funcom_test/40864470.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField9() { - if (textField9 == null) {//GEN-END:|31-getter|0|31-preInit - // write pre-init user code here - textField9 = new TextField("Bono 1:", null, 32, TextField.DECIMAL);//GEN-LINE:|31-getter|1|31-postInit - // write post-init user code here - }//GEN-BEGIN:|31-getter|2| - return textField9; - } - COM: <s> returns an initiliazed instance of text field9 component </s> - diff --git a/funcom_test/40864476.txt b/funcom_test/40864476.txt deleted file mode 100644 index fc6f52df1a4be6a992eee169ca22729495308fc4..0000000000000000000000000000000000000000 --- a/funcom_test/40864476.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField10() { - if (textField10 == null) {//GEN-END:|32-getter|0|32-preInit - // write pre-init user code here - textField10 = new TextField("Bono 2:", null, 32, TextField.DECIMAL);//GEN-LINE:|32-getter|1|32-postInit - // write post-init user code here - }//GEN-BEGIN:|32-getter|2| - return textField10; - } - COM: <s> returns an initiliazed instance of text field10 component </s> - diff --git a/funcom_test/40864485.txt b/funcom_test/40864485.txt deleted file mode 100644 index 76f4975bdcb55b4834ec072e93595330dbcd9821..0000000000000000000000000000000000000000 --- a/funcom_test/40864485.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField11() { - if (textField11 == null) {//GEN-END:|33-getter|0|33-preInit - // write pre-init user code here - textField11 = new TextField("Bono 3:", null, 32, TextField.DECIMAL);//GEN-LINE:|33-getter|1|33-postInit - // write post-init user code here - }//GEN-BEGIN:|33-getter|2| - return textField11; - } - COM: <s> returns an initiliazed instance of text field11 component </s> - diff --git a/funcom_test/40864490.txt b/funcom_test/40864490.txt deleted file mode 100644 index a94f53622c436c5964f259ec2ec7310f91b4ed34..0000000000000000000000000000000000000000 --- a/funcom_test/40864490.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField12() { - if (textField12 == null) {//GEN-END:|34-getter|0|34-preInit - // write pre-init user code here - textField12 = new TextField("Bono 4:", null, 32, TextField.DECIMAL);//GEN-LINE:|34-getter|1|34-postInit - // write post-init user code here - }//GEN-BEGIN:|34-getter|2| - return textField12; - } - COM: <s> returns an initiliazed instance of text field12 component </s> - diff --git a/funcom_test/40864506.txt b/funcom_test/40864506.txt deleted file mode 100644 index 31abda2d023dd4dccf854514b050ca1ee6e49b61..0000000000000000000000000000000000000000 --- a/funcom_test/40864506.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand1() { - if (okCommand1 == null) {//GEN-END:|49-getter|0|49-preInit - // write pre-init user code here - okCommand1 = new Command("Ok", Command.OK, 0);//GEN-LINE:|49-getter|1|49-postInit - // write post-init user code here - }//GEN-BEGIN:|49-getter|2| - return okCommand1; - } - COM: <s> returns an initiliazed instance of ok command1 component </s> - diff --git a/funcom_test/40864539.txt b/funcom_test/40864539.txt deleted file mode 100644 index 1b0bb4376318008791405ab1759828d9bbbf1e86..0000000000000000000000000000000000000000 --- a/funcom_test/40864539.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand() { - if (backCommand == null) {//GEN-END:|74-getter|0|74-preInit - // write pre-init user code here - backCommand = new Command("OK", Command.BACK, 0);//GEN-LINE:|74-getter|1|74-postInit - // write post-init user code here - }//GEN-BEGIN:|74-getter|2| - return backCommand; - } - COM: <s> returns an initiliazed instance of back command component </s> - diff --git a/funcom_test/40864558.txt b/funcom_test/40864558.txt deleted file mode 100644 index fcbd53767e3e14dfe418e48f46c97e4acb68f90d..0000000000000000000000000000000000000000 --- a/funcom_test/40864558.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand2() { - if (okCommand2 == null) {//GEN-END:|76-getter|0|76-preInit - // write pre-init user code here - okCommand2 = new Command("CALCULAR", Command.OK, 0);//GEN-LINE:|76-getter|1|76-postInit - // write post-init user code here - }//GEN-BEGIN:|76-getter|2| - return okCommand2; - } - COM: <s> returns an initiliazed instance of ok command2 component </s> - diff --git a/funcom_test/40864779.txt b/funcom_test/40864779.txt deleted file mode 100644 index 877cc0ced49d1c68167dc6bc0cc07ea2e7030828..0000000000000000000000000000000000000000 --- a/funcom_test/40864779.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Command getScreenCommand() { - if (screenCommand == null) {//GEN-END:|94-getter|0|94-preInit - - // write pre-init user code here - screenCommand = new Command("", Command.SCREEN, 0);//GEN-LINE:|94-getter|1|94-postInit - // write post-init user code here - }//GEN-BEGIN:|94-getter|2| - return screenCommand; - } - COM: <s> returns an initiliazed instance of screen command component </s> - diff --git a/funcom_test/40865150.txt b/funcom_test/40865150.txt deleted file mode 100644 index fda6f1dbce19360131b5938285fdb1a86d2baa2e..0000000000000000000000000000000000000000 --- a/funcom_test/40865150.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand2() { - if (exitCommand2 == null) {//GEN-END:|213-getter|0|213-preInit - // write pre-init user code here - exitCommand2 = new Command("ATRAS", Command.EXIT, 0);//GEN-LINE:|213-getter|1|213-postInit - // write post-init user code here - }//GEN-BEGIN:|213-getter|2| - return exitCommand2; - } - COM: <s> returns an initiliazed instance of exit command2 component </s> - diff --git a/funcom_test/40865190.txt b/funcom_test/40865190.txt deleted file mode 100644 index 75fa26e5147d3052114a5ce2b1eda6958a898354..0000000000000000000000000000000000000000 --- a/funcom_test/40865190.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand1() { - if (backCommand1 == null) {//GEN-END:|217-getter|0|217-preInit - // write pre-init user code here - backCommand1 = new Command("OK", Command.BACK, 0);//GEN-LINE:|217-getter|1|217-postInit - // write post-init user code here - }//GEN-BEGIN:|217-getter|2| - return backCommand1; - } - COM: <s> returns an initiliazed instance of back command1 component </s> - diff --git a/funcom_test/40865212.txt b/funcom_test/40865212.txt deleted file mode 100644 index 80807bdded6e147412053e55ec1ceabb522a3d81..0000000000000000000000000000000000000000 --- a/funcom_test/40865212.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand2() { - if (backCommand2 == null) {//GEN-END:|233-getter|0|233-preInit - // write pre-init user code here - backCommand2 = new Command("OK", Command.BACK, 0);//GEN-LINE:|233-getter|1|233-postInit - // write post-init user code here - }//GEN-BEGIN:|233-getter|2| - return backCommand2; - } - COM: <s> returns an initiliazed instance of back command2 component </s> - diff --git a/funcom_test/40865239.txt b/funcom_test/40865239.txt deleted file mode 100644 index b3996c6f26019883f16072144347a80a7a3dd6f9..0000000000000000000000000000000000000000 --- a/funcom_test/40865239.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand3() { - if (backCommand3 == null) {//GEN-END:|236-getter|0|236-preInit - // write pre-init user code here - backCommand3 = new Command("OK", Command.BACK, 0);//GEN-LINE:|236-getter|1|236-postInit - // write post-init user code here - }//GEN-BEGIN:|236-getter|2| - return backCommand3; - } - COM: <s> returns an initiliazed instance of back command3 component </s> - diff --git a/funcom_test/40865265.txt b/funcom_test/40865265.txt deleted file mode 100644 index f7573971cf36d6c94b21f2ab5cbf072175d7c539..0000000000000000000000000000000000000000 --- a/funcom_test/40865265.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand4() { - if (backCommand4 == null) {//GEN-END:|239-getter|0|239-preInit - // write pre-init user code here - backCommand4 = new Command("OK", Command.BACK, 0);//GEN-LINE:|239-getter|1|239-postInit - // write post-init user code here - }//GEN-BEGIN:|239-getter|2| - return backCommand4; - } - COM: <s> returns an initiliazed instance of back command4 component </s> - diff --git a/funcom_test/40865280.txt b/funcom_test/40865280.txt deleted file mode 100644 index c4379c92d4d3aa992fabc3d6c525d67db7ebdfcb..0000000000000000000000000000000000000000 --- a/funcom_test/40865280.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand5() { - if (backCommand5 == null) {//GEN-END:|242-getter|0|242-preInit - // write pre-init user code here - backCommand5 = new Command("OK", Command.BACK, 0);//GEN-LINE:|242-getter|1|242-postInit - // write post-init user code here - }//GEN-BEGIN:|242-getter|2| - return backCommand5; - } - COM: <s> returns an initiliazed instance of back command5 component </s> - diff --git a/funcom_test/40865294.txt b/funcom_test/40865294.txt deleted file mode 100644 index 657b6378208f7d307fa9813b8d178e3f5da3cc5d..0000000000000000000000000000000000000000 --- a/funcom_test/40865294.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand6() { - if (backCommand6 == null) {//GEN-END:|245-getter|0|245-preInit - // write pre-init user code here - backCommand6 = new Command("OK", Command.BACK, 0);//GEN-LINE:|245-getter|1|245-postInit - // write post-init user code here - }//GEN-BEGIN:|245-getter|2| - return backCommand6; - } - COM: <s> returns an initiliazed instance of back command6 component </s> - diff --git a/funcom_test/40865306.txt b/funcom_test/40865306.txt deleted file mode 100644 index f0db4f99965f30af04d86aada5ad11d1c4f085bd..0000000000000000000000000000000000000000 --- a/funcom_test/40865306.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand7() { - if (backCommand7 == null) {//GEN-END:|248-getter|0|248-preInit - // write pre-init user code here - backCommand7 = new Command("OK", Command.BACK, 0);//GEN-LINE:|248-getter|1|248-postInit - // write post-init user code here - }//GEN-BEGIN:|248-getter|2| - return backCommand7; - } - COM: <s> returns an initiliazed instance of back command7 component </s> - diff --git a/funcom_test/40865319.txt b/funcom_test/40865319.txt deleted file mode 100644 index 8a356690f36a30c51e00b2c07c70c63ff161f14f..0000000000000000000000000000000000000000 --- a/funcom_test/40865319.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand8() { - if (backCommand8 == null) {//GEN-END:|251-getter|0|251-preInit - // write pre-init user code here - backCommand8 = new Command("OK", Command.BACK, 0);//GEN-LINE:|251-getter|1|251-postInit - // write post-init user code here - }//GEN-BEGIN:|251-getter|2| - return backCommand8; - } - COM: <s> returns an initiliazed instance of back command8 component </s> - diff --git a/funcom_test/40865333.txt b/funcom_test/40865333.txt deleted file mode 100644 index 5a062cbd517844357b61187c14a1dd4a3638d6e3..0000000000000000000000000000000000000000 --- a/funcom_test/40865333.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand9() { - if (backCommand9 == null) {//GEN-END:|254-getter|0|254-preInit - // write pre-init user code here - backCommand9 = new Command("OK", Command.BACK, 0);//GEN-LINE:|254-getter|1|254-postInit - // write post-init user code here - }//GEN-BEGIN:|254-getter|2| - return backCommand9; - } - COM: <s> returns an initiliazed instance of back command9 component </s> - diff --git a/funcom_test/40865347.txt b/funcom_test/40865347.txt deleted file mode 100644 index e1f027b0805652dafe4219c70a596915294c0bfe..0000000000000000000000000000000000000000 --- a/funcom_test/40865347.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand10() { - if (backCommand10 == null) {//GEN-END:|258-getter|0|258-preInit - // write pre-init user code here - backCommand10 = new Command("OK", Command.BACK, 0);//GEN-LINE:|258-getter|1|258-postInit - // write post-init user code here - }//GEN-BEGIN:|258-getter|2| - return backCommand10; - } - COM: <s> returns an initiliazed instance of back command10 component </s> - diff --git a/funcom_test/40865360.txt b/funcom_test/40865360.txt deleted file mode 100644 index 21d4475e77555ca2ad0fea917e3a5b85e4b91664..0000000000000000000000000000000000000000 --- a/funcom_test/40865360.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand11() { - if (backCommand11 == null) {//GEN-END:|261-getter|0|261-preInit - // write pre-init user code here - backCommand11 = new Command("OK", Command.BACK, 0);//GEN-LINE:|261-getter|1|261-postInit - // write post-init user code here - }//GEN-BEGIN:|261-getter|2| - return backCommand11; - } - COM: <s> returns an initiliazed instance of back command11 component </s> - diff --git a/funcom_test/40865383.txt b/funcom_test/40865383.txt deleted file mode 100644 index cb7aca521b03c620a24f912379f14b428346fb4d..0000000000000000000000000000000000000000 --- a/funcom_test/40865383.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand12() { - if (backCommand12 == null) {//GEN-END:|264-getter|0|264-preInit - // write pre-init user code here - backCommand12 = new Command("OK", Command.BACK, 0);//GEN-LINE:|264-getter|1|264-postInit - // write post-init user code here - }//GEN-BEGIN:|264-getter|2| - return backCommand12; - } - COM: <s> returns an initiliazed instance of back command12 component </s> - diff --git a/funcom_test/40865455.txt b/funcom_test/40865455.txt deleted file mode 100644 index 8695cc28abb35f010b6b1182d1ee2ddd6def7294..0000000000000000000000000000000000000000 --- a/funcom_test/40865455.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand13() { - if (backCommand13 == null) {//GEN-END:|267-getter|0|267-preInit - // write pre-init user code here - backCommand13 = new Command("OK", Command.BACK, 0);//GEN-LINE:|267-getter|1|267-postInit - // write post-init user code here - }//GEN-BEGIN:|267-getter|2| - return backCommand13; - } - COM: <s> returns an initiliazed instance of back command13 component </s> - diff --git a/funcom_test/40865490.txt b/funcom_test/40865490.txt deleted file mode 100644 index 163d32cb04eb6533f199832278614410684ca5af..0000000000000000000000000000000000000000 --- a/funcom_test/40865490.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand14() { - if (backCommand14 == null) {//GEN-END:|270-getter|0|270-preInit - // write pre-init user code here - backCommand14 = new Command("OK", Command.BACK, 0);//GEN-LINE:|270-getter|1|270-postInit - // write post-init user code here - }//GEN-BEGIN:|270-getter|2| - return backCommand14; - } - COM: <s> returns an initiliazed instance of back command14 component </s> - diff --git a/funcom_test/40865517.txt b/funcom_test/40865517.txt deleted file mode 100644 index 94325f03c53f3fcd90f2410b0bcbb84fa0db48ad..0000000000000000000000000000000000000000 --- a/funcom_test/40865517.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand15() { - if (backCommand15 == null) {//GEN-END:|273-getter|0|273-preInit - // write pre-init user code here - backCommand15 = new Command("OK", Command.BACK, 0);//GEN-LINE:|273-getter|1|273-postInit - // write post-init user code here - }//GEN-BEGIN:|273-getter|2| - return backCommand15; - } - COM: <s> returns an initiliazed instance of back command15 component </s> - diff --git a/funcom_test/40865563.txt b/funcom_test/40865563.txt deleted file mode 100644 index fb9cc5b3b86b5a6ea8fa74c091e339b4956cbead..0000000000000000000000000000000000000000 --- a/funcom_test/40865563.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand16() { - if (backCommand16 == null) {//GEN-END:|275-getter|0|275-preInit - // write pre-init user code here - backCommand16 = new Command("OK", Command.BACK, 0);//GEN-LINE:|275-getter|1|275-postInit - // write post-init user code here - }//GEN-BEGIN:|275-getter|2| - return backCommand16; - } - COM: <s> returns an initiliazed instance of back command16 component </s> - diff --git a/funcom_test/4086559.txt b/funcom_test/4086559.txt deleted file mode 100644 index a20e484d0effe76ca8cf3a149bfa0cfd6b722337..0000000000000000000000000000000000000000 --- a/funcom_test/4086559.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void setFuncion(String v) { - if (Adjetivo_Type.featOkTst && ((Adjetivo_Type)jcasType).casFeat_Funcion == null) - jcasType.jcas.throwFeatMissing("Funcion", "org.idtem.component.freeling.Adjetivo"); - jcasType.ll_cas.ll_setStringValue(addr, ((Adjetivo_Type)jcasType).casFeatCode_Funcion, v);} - COM: <s> setter for funcion sets </s> - diff --git a/funcom_test/40865681.txt b/funcom_test/40865681.txt deleted file mode 100644 index 081d6390fe7ba53d970f8ba8fb742dec281820de..0000000000000000000000000000000000000000 --- a/funcom_test/40865681.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand3() { - if (okCommand3 == null) {//GEN-END:|291-getter|0|291-preInit - // write pre-init user code here - okCommand3 = new Command("Ok", Command.OK, 0);//GEN-LINE:|291-getter|1|291-postInit - // write post-init user code here - }//GEN-BEGIN:|291-getter|2| - return okCommand3; - } - COM: <s> returns an initiliazed instance of ok command3 component </s> - diff --git a/funcom_test/40865789.txt b/funcom_test/40865789.txt deleted file mode 100644 index 5a5d28b61e521a5c3f4a93d571e4bd41d977d093..0000000000000000000000000000000000000000 --- a/funcom_test/40865789.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getItemCommand() { - if (itemCommand == null) {//GEN-END:|295-getter|0|295-preInit - // write pre-init user code here - itemCommand = new Command("NOMINA UNO", Command.OK, 0);//GEN-LINE:|295-getter|1|295-postInit - // write post-init user code here - }//GEN-BEGIN:|295-getter|2| - return itemCommand; - } - COM: <s> returns an initiliazed instance of item command component </s> - diff --git a/funcom_test/40865930.txt b/funcom_test/40865930.txt deleted file mode 100644 index f6fc4e81d3ef9d8bb07718e75ac9351ac64ffe0d..0000000000000000000000000000000000000000 --- a/funcom_test/40865930.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand4() { - if (okCommand4 == null) {//GEN-END:|303-getter|0|303-preInit - // write pre-init user code here - okCommand4 = new Command("Ok", Command.OK, 0);//GEN-LINE:|303-getter|1|303-postInit - // write post-init user code here - }//GEN-BEGIN:|303-getter|2| - return okCommand4; - } - COM: <s> returns an initiliazed instance of ok command4 component </s> - diff --git a/funcom_test/40866051.txt b/funcom_test/40866051.txt deleted file mode 100644 index dcf7e4fc12c3581fb432e910bb1fff7de40f64dc..0000000000000000000000000000000000000000 --- a/funcom_test/40866051.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand5() { - if (okCommand5 == null) {//GEN-END:|318-getter|0|318-preInit - // write pre-init user code here - okCommand5 = new Command("Ok", Command.OK, 0);//GEN-LINE:|318-getter|1|318-postInit - // write post-init user code here - }//GEN-BEGIN:|318-getter|2| - return okCommand5; - } - COM: <s> returns an initiliazed instance of ok command5 component </s> - diff --git a/funcom_test/40866137.txt b/funcom_test/40866137.txt deleted file mode 100644 index 640f287886abfa1eb3319d9d078bad32e87c90e5..0000000000000000000000000000000000000000 --- a/funcom_test/40866137.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand6() { - if (okCommand6 == null) {//GEN-END:|321-getter|0|321-preInit - // write pre-init user code here - okCommand6 = new Command("Ok", Command.OK, 0);//GEN-LINE:|321-getter|1|321-postInit - // write post-init user code here - }//GEN-BEGIN:|321-getter|2| - return okCommand6; - } - COM: <s> returns an initiliazed instance of ok command6 component </s> - diff --git a/funcom_test/40866195.txt b/funcom_test/40866195.txt deleted file mode 100644 index 8bf72272f58ea0f81f66407f8227e9bb2f7ab85e..0000000000000000000000000000000000000000 --- a/funcom_test/40866195.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand7() { - if (okCommand7 == null) {//GEN-END:|324-getter|0|324-preInit - // write pre-init user code here - okCommand7 = new Command("Ok", Command.OK, 0);//GEN-LINE:|324-getter|1|324-postInit - // write post-init user code here - }//GEN-BEGIN:|324-getter|2| - return okCommand7; - } - COM: <s> returns an initiliazed instance of ok command7 component </s> - diff --git a/funcom_test/40866359.txt b/funcom_test/40866359.txt deleted file mode 100644 index a44b1399b8207477009066cd8602cc923486d506..0000000000000000000000000000000000000000 --- a/funcom_test/40866359.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getItemCommand1() { - if (itemCommand1 == null) {//GEN-END:|342-getter|0|342-preInit - // write pre-init user code here - itemCommand1 = new Command("Item", Command.ITEM, 0);//GEN-LINE:|342-getter|1|342-postInit - // write post-init user code here - }//GEN-BEGIN:|342-getter|2| - return itemCommand1; - } - COM: <s> returns an initiliazed instance of item command1 component </s> - diff --git a/funcom_test/40866402.txt b/funcom_test/40866402.txt deleted file mode 100644 index f8e7b1288d9e35374cdfa157fa418af94f59a414..0000000000000000000000000000000000000000 --- a/funcom_test/40866402.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Ticker getTicker() { - if (ticker == null) {//GEN-END:|344-getter|0|344-preInit - // write pre-init user code here - ticker = new Ticker("");//GEN-LINE:|344-getter|1|344-postInit - // write post-init user code here - }//GEN-BEGIN:|344-getter|2| - return ticker; - } - COM: <s> returns an initiliazed instance of ticker component </s> - diff --git a/funcom_test/40866481.txt b/funcom_test/40866481.txt deleted file mode 100644 index 869e2ffb5ddba6c2ccc1cf50b1aa1d794d1f9637..0000000000000000000000000000000000000000 --- a/funcom_test/40866481.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand3() { - if (exitCommand3 == null) {//GEN-END:|352-getter|0|352-preInit - // write pre-init user code here - exitCommand3 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|352-getter|1|352-postInit - // write post-init user code here - }//GEN-BEGIN:|352-getter|2| - return exitCommand3; - } - COM: <s> returns an initiliazed instance of exit command3 component </s> - diff --git a/funcom_test/40866588.txt b/funcom_test/40866588.txt deleted file mode 100644 index 07a76d2eb03cfcbe03acf44f13aefe2654f90985..0000000000000000000000000000000000000000 --- a/funcom_test/40866588.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand8() { - if (okCommand8 == null) {//GEN-END:|354-getter|0|354-preInit - // write pre-init user code here - okCommand8 = new Command("Ok", Command.OK, 0);//GEN-LINE:|354-getter|1|354-postInit - // write post-init user code here - }//GEN-BEGIN:|354-getter|2| - return okCommand8; - } - COM: <s> returns an initiliazed instance of ok command8 component </s> - diff --git a/funcom_test/40866647.txt b/funcom_test/40866647.txt deleted file mode 100644 index 8ed21758cdeda7913c308e14a209af71046ccd5b..0000000000000000000000000000000000000000 --- a/funcom_test/40866647.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Font getFont() { - if (font == null) {//GEN-END:|357-getter|0|357-preInit - // write pre-init user code here - font = Font.getDefaultFont();//GEN-LINE:|357-getter|1|357-postInit - // write post-init user code here - }//GEN-BEGIN:|357-getter|2| - return font; - } - COM: <s> returns an initiliazed instance of font component </s> - diff --git a/funcom_test/40866748.txt b/funcom_test/40866748.txt deleted file mode 100644 index f9333075f5ea916d3f0cbeb41766998814e85ee9..0000000000000000000000000000000000000000 --- a/funcom_test/40866748.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand4() { - if (exitCommand4 == null) {//GEN-END:|368-getter|0|368-preInit - // write pre-init user code here - exitCommand4 = new Command("SALIR", Command.EXIT, 0);//GEN-LINE:|368-getter|1|368-postInit - // write post-init user code here - }//GEN-BEGIN:|368-getter|2| - return exitCommand4; - } - COM: <s> returns an initiliazed instance of exit command4 component </s> - diff --git a/funcom_test/40867016.txt b/funcom_test/40867016.txt deleted file mode 100644 index 3ac60b59863645758d4c2d9d2a19c3a1e71be2e8..0000000000000000000000000000000000000000 --- a/funcom_test/40867016.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField19() { - if (textField19 == null) {//GEN-END:|373-getter|0|373-preInit - // write pre-init user code here - textField19 = new TextField("Percepciones:", null, 32, TextField.DECIMAL);//GEN-LINE:|373-getter|1|373-postInit - // write post-init user code here - }//GEN-BEGIN:|373-getter|2| - return textField19; - } - COM: <s> returns an initiliazed instance of text field19 component </s> - diff --git a/funcom_test/40867133.txt b/funcom_test/40867133.txt deleted file mode 100644 index 51f94869c43ad85575e1af66fd13a078b132cf98..0000000000000000000000000000000000000000 --- a/funcom_test/40867133.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField21() { - if (textField21 == null) {//GEN-END:|374-getter|0|374-preInit - // write pre-init user code here - textField21 = new TextField("L\u00EDquido:", null, 32, TextField.DECIMAL);//GEN-LINE:|374-getter|1|374-postInit - // write post-init user code here - }//GEN-BEGIN:|374-getter|2| - return textField21; - } - COM: <s> returns an initiliazed instance of text field21 component </s> - diff --git a/funcom_test/40867275.txt b/funcom_test/40867275.txt deleted file mode 100644 index 249df9c42875df8fa3d62080fb48c6d248fe713e..0000000000000000000000000000000000000000 --- a/funcom_test/40867275.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand9() { - if (okCommand9 == null) {//GEN-END:|398-getter|0|398-preInit - // write pre-init user code here - okCommand9 = new Command("Ok", Command.OK, 0);//GEN-LINE:|398-getter|1|398-postInit - // write post-init user code here - }//GEN-BEGIN:|398-getter|2| - return okCommand9; - } - COM: <s> returns an initiliazed instance of ok command9 component </s> - diff --git a/funcom_test/40867405.txt b/funcom_test/40867405.txt deleted file mode 100644 index 65006fecd73e9286f6a9e3bf511374c770c0aded..0000000000000000000000000000000000000000 --- a/funcom_test/40867405.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getScreenCommand1() { - if (screenCommand1 == null) {//GEN-END:|407-getter|0|407-preInit - // write pre-init user code here - screenCommand1 = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|407-getter|1|407-postInit - // write post-init user code here - }//GEN-BEGIN:|407-getter|2| - return screenCommand1; - } - COM: <s> returns an initiliazed instance of screen command1 component </s> - diff --git a/funcom_test/40867601.txt b/funcom_test/40867601.txt deleted file mode 100644 index 39c110dd0ebdd34f9c8be47d2c344d1c338d8d01..0000000000000000000000000000000000000000 --- a/funcom_test/40867601.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getScreenCommand3() { - if (screenCommand3 == null) {//GEN-END:|416-getter|0|416-preInit - // write pre-init user code here - screenCommand3 = new Command("NOMINA 2", Command.SCREEN, 0);//GEN-LINE:|416-getter|1|416-postInit - // write post-init user code here - }//GEN-BEGIN:|416-getter|2| - return screenCommand3; - } - COM: <s> returns an initiliazed instance of screen command3 component </s> - diff --git a/funcom_test/40867726.txt b/funcom_test/40867726.txt deleted file mode 100644 index b150c50fe416a41368304c7a618a0b71326ca8ad..0000000000000000000000000000000000000000 --- a/funcom_test/40867726.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Spacer getSpacer() { - if (spacer == null) {//GEN-END:|421-getter|0|421-preInit - // write pre-init user code here - spacer = new Spacer(16, 1);//GEN-LINE:|421-getter|1|421-postInit - // write post-init user code here - }//GEN-BEGIN:|421-getter|2| - return spacer; - } - COM: <s> returns an initiliazed instance of spacer component </s> - diff --git a/funcom_test/40867805.txt b/funcom_test/40867805.txt deleted file mode 100644 index e7223411dc7b6e50b4134a36e7d18b0700cc8f01..0000000000000000000000000000000000000000 --- a/funcom_test/40867805.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField2() { - if (textField2 == null) {//GEN-END:|422-getter|0|422-preInit - // write pre-init user code here - textField2 = new TextField("Descuento KD REF:", null, 32, TextField.ANY);//GEN-LINE:|422-getter|1|422-postInit - // write post-init user code here - }//GEN-BEGIN:|422-getter|2| - return textField2; - } - COM: <s> returns an initiliazed instance of text field2 component </s> - diff --git a/funcom_test/40867839.txt b/funcom_test/40867839.txt deleted file mode 100644 index d9ba6937bc681ac55c126338e4057b8ab12e7288..0000000000000000000000000000000000000000 --- a/funcom_test/40867839.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField13() { - if (textField13 == null) {//GEN-END:|423-getter|0|423-preInit - // write pre-init user code here - textField13 = new TextField("Descuento KD No REF:", null, 32, TextField.ANY);//GEN-LINE:|423-getter|1|423-postInit - // write post-init user code here - }//GEN-BEGIN:|423-getter|2| - return textField13; - } - COM: <s> returns an initiliazed instance of text field13 component </s> - diff --git a/funcom_test/40867891.txt b/funcom_test/40867891.txt deleted file mode 100644 index 02493fd81a7e3f6426eb33ae78aa4cfc561a0ac9..0000000000000000000000000000000000000000 --- a/funcom_test/40867891.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField22() { - if (textField22 == null) {//GEN-END:|425-getter|0|425-preInit - // write pre-init user code here - textField22 = new TextField("Bono 1:", null, 32, TextField.ANY);//GEN-LINE:|425-getter|1|425-postInit - // write post-init user code here - }//GEN-BEGIN:|425-getter|2| - return textField22; - } - COM: <s> returns an initiliazed instance of text field22 component </s> - diff --git a/funcom_test/40867921.txt b/funcom_test/40867921.txt deleted file mode 100644 index 5e1e6362b7516f933a3fc2dd7bce0e62daa1f5ba..0000000000000000000000000000000000000000 --- a/funcom_test/40867921.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField23() { - if (textField23 == null) {//GEN-END:|426-getter|0|426-preInit - // write pre-init user code here - textField23 = new TextField("Bono 2:", null, 32, TextField.ANY);//GEN-LINE:|426-getter|1|426-postInit - // write post-init user code here - }//GEN-BEGIN:|426-getter|2| - return textField23; - } - COM: <s> returns an initiliazed instance of text field23 component </s> - diff --git a/funcom_test/40867940.txt b/funcom_test/40867940.txt deleted file mode 100644 index b6d9270eb2b39b44d5e64338401b5704e0dab555..0000000000000000000000000000000000000000 --- a/funcom_test/40867940.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField24() { - if (textField24 == null) {//GEN-END:|427-getter|0|427-preInit - // write pre-init user code here - textField24 = new TextField("Bono 3:", null, 32, TextField.ANY);//GEN-LINE:|427-getter|1|427-postInit - // write post-init user code here - }//GEN-BEGIN:|427-getter|2| - return textField24; - } - COM: <s> returns an initiliazed instance of text field24 component </s> - diff --git a/funcom_test/40867966.txt b/funcom_test/40867966.txt deleted file mode 100644 index 9718f8cf91dd8f7e5d416deeae3697faf1b5e5f4..0000000000000000000000000000000000000000 --- a/funcom_test/40867966.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField25() { - if (textField25 == null) {//GEN-END:|428-getter|0|428-preInit - // write pre-init user code here - textField25 = new TextField("Bono 4:", null, 32, TextField.ANY);//GEN-LINE:|428-getter|1|428-postInit - // write post-init user code here - }//GEN-BEGIN:|428-getter|2| - return textField25; - } - COM: <s> returns an initiliazed instance of text field25 component </s> - diff --git a/funcom_test/40867987.txt b/funcom_test/40867987.txt deleted file mode 100644 index 81f3b43b088989a83a5b032d1a1784c420cfd11a..0000000000000000000000000000000000000000 --- a/funcom_test/40867987.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand10() { - if (okCommand10 == null) {//GEN-END:|433-getter|0|433-preInit - // write pre-init user code here - okCommand10 = new Command("Ok", Command.OK, 0);//GEN-LINE:|433-getter|1|433-postInit - // write post-init user code here - }//GEN-BEGIN:|433-getter|2| - return okCommand10; - } - COM: <s> returns an initiliazed instance of ok command10 component </s> - diff --git a/funcom_test/40868037.txt b/funcom_test/40868037.txt deleted file mode 100644 index f70a97b60bd7d21859592962990363ccd5f63f59..0000000000000000000000000000000000000000 --- a/funcom_test/40868037.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField() { - if (textField == null) {//GEN-END:|438-getter|0|438-preInit - // write pre-init user code here - textField = new TextField("Descuento Cr\u00E9dito que Solicita:", null, 32, TextField.DECIMAL);//GEN-LINE:|438-getter|1|438-postInit - // write post-init user code here - }//GEN-BEGIN:|438-getter|2| - return textField; - } - COM: <s> returns an initiliazed instance of text field component </s> - diff --git a/funcom_test/40868077.txt b/funcom_test/40868077.txt deleted file mode 100644 index ff1078acd59a6ff603ec76810b5941692d358406..0000000000000000000000000000000000000000 --- a/funcom_test/40868077.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand5() { - if (exitCommand5 == null) {//GEN-END:|441-getter|0|441-preInit - // write pre-init user code here - exitCommand5 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|441-getter|1|441-postInit - // write post-init user code here - }//GEN-BEGIN:|441-getter|2| - return exitCommand5; - } - COM: <s> returns an initiliazed instance of exit command5 component </s> - diff --git a/funcom_test/40868126.txt b/funcom_test/40868126.txt deleted file mode 100644 index e43720cf61a13aada61615ea5e8d8b22a8d591f5..0000000000000000000000000000000000000000 --- a/funcom_test/40868126.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public StringItem getStringItem1() { - if (stringItem1 == null) {//GEN-END:|444-getter|0|444-preInit - // write pre-init user code here - stringItem1 = new StringItem("N\u00F3minas a capturar:", null);//GEN-LINE:|444-getter|1|444-postInit - // write post-init user code here - }//GEN-BEGIN:|444-getter|2| - return stringItem1; - } - COM: <s> returns an initiliazed instance of string item1 component </s> - diff --git a/funcom_test/40868391.txt b/funcom_test/40868391.txt deleted file mode 100644 index eed84e9367aa39f5763a4d6c9387d6154ecae544..0000000000000000000000000000000000000000 --- a/funcom_test/40868391.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand6() { - if (exitCommand6 == null) {//GEN-END:|452-getter|0|452-preInit - // write pre-init user code here - exitCommand6 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|452-getter|1|452-postInit - // write post-init user code here - }//GEN-BEGIN:|452-getter|2| - return exitCommand6; - } - COM: <s> returns an initiliazed instance of exit command6 component </s> - diff --git a/funcom_test/40868483.txt b/funcom_test/40868483.txt deleted file mode 100644 index 7eb08c0959b883f63cbafe09a25446291a45f49e..0000000000000000000000000000000000000000 --- a/funcom_test/40868483.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand17() { - if (backCommand17 == null) {//GEN-END:|456-getter|0|456-preInit - // write pre-init user code here - backCommand17 = new Command("Back", Command.BACK, 0);//GEN-LINE:|456-getter|1|456-postInit - // write post-init user code here - }//GEN-BEGIN:|456-getter|2| - return backCommand17; - } - COM: <s> returns an initiliazed instance of back command17 component </s> - diff --git a/funcom_test/40868850.txt b/funcom_test/40868850.txt deleted file mode 100644 index 796eca34eadc3fbaf373fe2b73b92b7a4baf43ee..0000000000000000000000000000000000000000 --- a/funcom_test/40868850.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getScreenCommand4() { - if (screenCommand4 == null) {//GEN-END:|467-getter|0|467-preInit - // write pre-init user code here - screenCommand4 = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|467-getter|1|467-postInit - // write post-init user code here - }//GEN-BEGIN:|467-getter|2| - return screenCommand4; - } - COM: <s> returns an initiliazed instance of screen command4 component </s> - diff --git a/funcom_test/40868958.txt b/funcom_test/40868958.txt deleted file mode 100644 index 0a383741f666e606647587aa8a3448518368b6b4..0000000000000000000000000000000000000000 --- a/funcom_test/40868958.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand11() { - if (okCommand11 == null) {//GEN-END:|470-getter|0|470-preInit - // write pre-init user code here - okCommand11 = new Command("Ok", Command.OK, 0);//GEN-LINE:|470-getter|1|470-postInit - // write post-init user code here - }//GEN-BEGIN:|470-getter|2| - return okCommand11; - } - COM: <s> returns an initiliazed instance of ok command11 component </s> - diff --git a/funcom_test/40868990.txt b/funcom_test/40868990.txt deleted file mode 100644 index dc1189d44114fa72ba053752af631060f246670a..0000000000000000000000000000000000000000 --- a/funcom_test/40868990.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getScreenCommand5() { - if (screenCommand5 == null) {//GEN-END:|473-getter|0|473-preInit - // write pre-init user code here - screenCommand5 = new Command("DICTAMEN", Command.SCREEN, 0);//GEN-LINE:|473-getter|1|473-postInit - // write post-init user code here - }//GEN-BEGIN:|473-getter|2| - return screenCommand5; - } - COM: <s> returns an initiliazed instance of screen command5 component </s> - diff --git a/funcom_test/40869047.txt b/funcom_test/40869047.txt deleted file mode 100644 index 9e41ea466d3e237364f8a784bcd32383fcd421e5..0000000000000000000000000000000000000000 --- a/funcom_test/40869047.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand7() { - if (exitCommand7 == null) {//GEN-END:|479-getter|0|479-preInit - // write pre-init user code here - exitCommand7 = new Command("SALIR", Command.EXIT, 0);//GEN-LINE:|479-getter|1|479-postInit - // write post-init user code here - }//GEN-BEGIN:|479-getter|2| - return exitCommand7; - } - COM: <s> returns an initiliazed instance of exit command7 component </s> - diff --git a/funcom_test/40869081.txt b/funcom_test/40869081.txt deleted file mode 100644 index a1739fc7a856c19925667d7d627dc0ebb81c1d5b..0000000000000000000000000000000000000000 --- a/funcom_test/40869081.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand18() { - if (backCommand18 == null) {//GEN-END:|487-getter|0|487-preInit - // write pre-init user code here - backCommand18 = new Command("Back", Command.BACK, 0);//GEN-LINE:|487-getter|1|487-postInit - // write post-init user code here - }//GEN-BEGIN:|487-getter|2| - return backCommand18; - } - COM: <s> returns an initiliazed instance of back command18 component </s> - diff --git a/funcom_test/40869554.txt b/funcom_test/40869554.txt deleted file mode 100644 index 7c1f4dd26180f2224ac1a1e59fe6b961205597c8..0000000000000000000000000000000000000000 --- a/funcom_test/40869554.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand19() { - if (backCommand19 == null) {//GEN-END:|518-getter|0|518-preInit - // write pre-init user code here - backCommand19 = new Command("Back", Command.BACK, 0);//GEN-LINE:|518-getter|1|518-postInit - // write post-init user code here - }//GEN-BEGIN:|518-getter|2| - return backCommand19; - } - COM: <s> returns an initiliazed instance of back command19 component </s> - diff --git a/funcom_test/40869580.txt b/funcom_test/40869580.txt deleted file mode 100644 index e3d30595d27671c8c2561e2b1c414559cb710277..0000000000000000000000000000000000000000 --- a/funcom_test/40869580.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand20() { - if (backCommand20 == null) {//GEN-END:|520-getter|0|520-preInit - // write pre-init user code here - backCommand20 = new Command("Back", Command.BACK, 0);//GEN-LINE:|520-getter|1|520-postInit - // write post-init user code here - }//GEN-BEGIN:|520-getter|2| - return backCommand20; - } - COM: <s> returns an initiliazed instance of back command20 component </s> - diff --git a/funcom_test/40869590.txt b/funcom_test/40869590.txt deleted file mode 100644 index 935bfa38b59e132b9d3f0d989a1ce82340429d72..0000000000000000000000000000000000000000 --- a/funcom_test/40869590.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand21() { - if (backCommand21 == null) {//GEN-END:|522-getter|0|522-preInit - // write pre-init user code here - backCommand21 = new Command("Back", Command.BACK, 0);//GEN-LINE:|522-getter|1|522-postInit - // write post-init user code here - }//GEN-BEGIN:|522-getter|2| - return backCommand21; - } - COM: <s> returns an initiliazed instance of back command21 component </s> - diff --git a/funcom_test/40869595.txt b/funcom_test/40869595.txt deleted file mode 100644 index cc72d185bb4e232faabe67cea1fac91e8b1cfe90..0000000000000000000000000000000000000000 --- a/funcom_test/40869595.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand22() { - if (backCommand22 == null) {//GEN-END:|529-getter|0|529-preInit - // write pre-init user code here - backCommand22 = new Command("Back", Command.BACK, 0);//GEN-LINE:|529-getter|1|529-postInit - // write post-init user code here - }//GEN-BEGIN:|529-getter|2| - return backCommand22; - } - COM: <s> returns an initiliazed instance of back command22 component </s> - diff --git a/funcom_test/40871952.txt b/funcom_test/40871952.txt deleted file mode 100644 index b480cf85fac55283c9385846178ece38a6f5b9f6..0000000000000000000000000000000000000000 --- a/funcom_test/40871952.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand13() { - if (okCommand13 == null) {//GEN-END:|536-getter|0|536-preInit - // write pre-init user code here - okCommand13 = new Command("MEN\u00DA N\u00D3MINAS", Command.OK, 0);//GEN-LINE:|536-getter|1|536-postInit - // write post-init user code here - }//GEN-BEGIN:|536-getter|2| - return okCommand13; - } - COM: <s> returns an initiliazed instance of ok command13 component </s> - diff --git a/funcom_test/40872111.txt b/funcom_test/40872111.txt deleted file mode 100644 index 3bfb21b24e8b5a26e0d869d237f6e416e7d0534b..0000000000000000000000000000000000000000 --- a/funcom_test/40872111.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand8() { - if (exitCommand8 == null) {//GEN-END:|544-getter|0|544-preInit - // write pre-init user code here - exitCommand8 = new Command("SALIR", Command.EXIT, 0);//GEN-LINE:|544-getter|1|544-postInit - // write post-init user code here - }//GEN-BEGIN:|544-getter|2| - return exitCommand8; - } - COM: <s> returns an initiliazed instance of exit command8 component </s> - diff --git a/funcom_test/40872511.txt b/funcom_test/40872511.txt deleted file mode 100644 index f0b2759c62071d86384eb1828cf1859741b95ad7..0000000000000000000000000000000000000000 --- a/funcom_test/40872511.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand14() { - if (okCommand14 == null) {//GEN-END:|554-getter|0|554-preInit - // write pre-init user code here - okCommand14 = new Command("Ok", Command.OK, 0);//GEN-LINE:|554-getter|1|554-postInit - // write post-init user code here - }//GEN-BEGIN:|554-getter|2| - return okCommand14; - } - COM: <s> returns an initiliazed instance of ok command14 component </s> - diff --git a/funcom_test/40872748.txt b/funcom_test/40872748.txt deleted file mode 100644 index d76386c23205328811362ad9bebe4d3235cf56df..0000000000000000000000000000000000000000 --- a/funcom_test/40872748.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand9() { - if (exitCommand9 == null) {//GEN-END:|559-getter|0|559-preInit - // write pre-init user code here - exitCommand9 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|559-getter|1|559-postInit - // write post-init user code here - }//GEN-BEGIN:|559-getter|2| - return exitCommand9; - } - COM: <s> returns an initiliazed instance of exit command9 component </s> - diff --git a/funcom_test/40873055.txt b/funcom_test/40873055.txt deleted file mode 100644 index cd1b0fbd88bfd60169339ab734aa1ab71f9ff62d..0000000000000000000000000000000000000000 --- a/funcom_test/40873055.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand15() { - if (okCommand15 == null) {//GEN-END:|567-getter|0|567-preInit - // write pre-init user code here - okCommand15 = new Command("Ok", Command.OK, 0);//GEN-LINE:|567-getter|1|567-postInit - // write post-init user code here - }//GEN-BEGIN:|567-getter|2| - return okCommand15; - } - COM: <s> returns an initiliazed instance of ok command15 component </s> - diff --git a/funcom_test/40873672.txt b/funcom_test/40873672.txt deleted file mode 100644 index de0cf78866c87b21920b8a9cce59807beabcf864..0000000000000000000000000000000000000000 --- a/funcom_test/40873672.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand23() { - if (backCommand23 == null) {//GEN-END:|584-getter|0|584-preInit - // write pre-init user code here - backCommand23 = new Command("OK", Command.BACK, 0);//GEN-LINE:|584-getter|1|584-postInit - // write post-init user code here - }//GEN-BEGIN:|584-getter|2| - return backCommand23; - } - COM: <s> returns an initiliazed instance of back command23 component </s> - diff --git a/funcom_test/40873791.txt b/funcom_test/40873791.txt deleted file mode 100644 index 0cd6e9b2a0584225607d244cf41b4a7caf6c3062..0000000000000000000000000000000000000000 --- a/funcom_test/40873791.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand24() { - if (backCommand24 == null) {//GEN-END:|587-getter|0|587-preInit - // write pre-init user code here - backCommand24 = new Command("OK", Command.BACK, 0);//GEN-LINE:|587-getter|1|587-postInit - // write post-init user code here - }//GEN-BEGIN:|587-getter|2| - return backCommand24; - } - COM: <s> returns an initiliazed instance of back command24 component </s> - diff --git a/funcom_test/40873940.txt b/funcom_test/40873940.txt deleted file mode 100644 index f79d4c7e19828f149e4b4b2be86e2359ee2d3ed7..0000000000000000000000000000000000000000 --- a/funcom_test/40873940.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Command getOkCommand16() { - if (okCommand16 == null) {//GEN-END:|592-getter|0|592-preInit - if(nomina == 2) - okCommand16 = new Command("LIQUIDEZ", Command.OK, 0);//GEN-LINE:|592-getter|1|592-postInit - else - okCommand16 = new Command("NOMINA 3", Command.OK, 0); - }//GEN-BEGIN:|592-getter|2| - return okCommand16; - } - COM: <s> returns an initiliazed instance of ok command16 component </s> - diff --git a/funcom_test/40874697.txt b/funcom_test/40874697.txt deleted file mode 100644 index 19249bd2c1bca674235925e4dd674cb70a552d66..0000000000000000000000000000000000000000 --- a/funcom_test/40874697.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand17() { - if (okCommand17 == null) {//GEN-END:|603-getter|0|603-preInit - // write pre-init user code here - okCommand17 = new Command("Ok", Command.OK, 0);//GEN-LINE:|603-getter|1|603-postInit - // write post-init user code here - }//GEN-BEGIN:|603-getter|2| - return okCommand17; - } - COM: <s> returns an initiliazed instance of ok command17 component </s> - diff --git a/funcom_test/40875321.txt b/funcom_test/40875321.txt deleted file mode 100644 index 7dffa16ded538d916614f1af79171738ad81f9eb..0000000000000000000000000000000000000000 --- a/funcom_test/40875321.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getScreenCommand6() { - if (screenCommand6 == null) {//GEN-END:|609-getter|0|609-preInit - // write pre-init user code here - screenCommand6 = new Command("DICTAMEN", Command.SCREEN, 0);//GEN-LINE:|609-getter|1|609-postInit - // write post-init user code here - }//GEN-BEGIN:|609-getter|2| - return screenCommand6; - } - COM: <s> returns an initiliazed instance of screen command6 component </s> - diff --git a/funcom_test/40875567.txt b/funcom_test/40875567.txt deleted file mode 100644 index d8577c5d93cc40cbb4bf3199ff69c2d7283cd83f..0000000000000000000000000000000000000000 --- a/funcom_test/40875567.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand25() { - if (backCommand25 == null) {//GEN-END:|618-getter|0|618-preInit - // write pre-init user code here - backCommand25 = new Command("Back", Command.BACK, 0);//GEN-LINE:|618-getter|1|618-postInit - // write post-init user code here - }//GEN-BEGIN:|618-getter|2| - return backCommand25; - } - COM: <s> returns an initiliazed instance of back command25 component </s> - diff --git a/funcom_test/40875601.txt b/funcom_test/40875601.txt deleted file mode 100644 index 38491b38dd4793943814ec469483366d9d5c354c..0000000000000000000000000000000000000000 --- a/funcom_test/40875601.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand26() { - if (backCommand26 == null) {//GEN-END:|622-getter|0|622-preInit - // write pre-init user code here - backCommand26 = new Command("Back", Command.BACK, 0);//GEN-LINE:|622-getter|1|622-postInit - // write post-init user code here - }//GEN-BEGIN:|622-getter|2| - return backCommand26; - } - COM: <s> returns an initiliazed instance of back command26 component </s> - diff --git a/funcom_test/40876100.txt b/funcom_test/40876100.txt deleted file mode 100644 index 00ffaf0fa79c706d1357a718244f84b5d2a01f90..0000000000000000000000000000000000000000 --- a/funcom_test/40876100.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField38() { - if (textField38 == null) {//GEN-END:|627-getter|0|627-preInit - // write pre-init user code here - textField38 = new TextField("Percepciones:", null, 32, TextField.DECIMAL);//GEN-LINE:|627-getter|1|627-postInit - // write post-init user code here - }//GEN-BEGIN:|627-getter|2| - return textField38; - } - COM: <s> returns an initiliazed instance of text field38 component </s> - diff --git a/funcom_test/40876164.txt b/funcom_test/40876164.txt deleted file mode 100644 index d2a6f9f2153c5e921c07a67b76524e93525db2cc..0000000000000000000000000000000000000000 --- a/funcom_test/40876164.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField39() { - if (textField39 == null) {//GEN-END:|628-getter|0|628-preInit - // write pre-init user code here - textField39 = new TextField("L\u00EDquido:", null, 32, TextField.DECIMAL);//GEN-LINE:|628-getter|1|628-postInit - // write post-init user code here - }//GEN-BEGIN:|628-getter|2| - return textField39; - } - COM: <s> returns an initiliazed instance of text field39 component </s> - diff --git a/funcom_test/40876261.txt b/funcom_test/40876261.txt deleted file mode 100644 index d92776d3c21550080a65de84dfda6cf5ff9c23bc..0000000000000000000000000000000000000000 --- a/funcom_test/40876261.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField40() { - if (textField40 == null) {//GEN-END:|629-getter|0|629-preInit - // write pre-init user code here - textField40 = new TextField("Descuento KD REF:", null, 32, TextField.DECIMAL);//GEN-LINE:|629-getter|1|629-postInit - // write post-init user code here - }//GEN-BEGIN:|629-getter|2| - return textField40; - } - COM: <s> returns an initiliazed instance of text field40 component </s> - diff --git a/funcom_test/40876302.txt b/funcom_test/40876302.txt deleted file mode 100644 index 076d55ce21ed7d94e7fe32189a97834f14eeeccf..0000000000000000000000000000000000000000 --- a/funcom_test/40876302.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField41() { - if (textField41 == null) {//GEN-END:|630-getter|0|630-preInit - // write pre-init user code here - textField41 = new TextField("Descuento KD No REF:", null, 32, TextField.DECIMAL);//GEN-LINE:|630-getter|1|630-postInit - // write post-init user code here - }//GEN-BEGIN:|630-getter|2| - return textField41; - } - COM: <s> returns an initiliazed instance of text field41 component </s> - diff --git a/funcom_test/40876460.txt b/funcom_test/40876460.txt deleted file mode 100644 index 3260a088381b9f88beff463a34e7130492a9f07b..0000000000000000000000000000000000000000 --- a/funcom_test/40876460.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField43() { - if (textField43 == null) {//GEN-END:|632-getter|0|632-preInit - // write pre-init user code here - textField43 = new TextField("Bono 1:", null, 32, TextField.DECIMAL);//GEN-LINE:|632-getter|1|632-postInit - // write post-init user code here - }//GEN-BEGIN:|632-getter|2| - return textField43; - } - COM: <s> returns an initiliazed instance of text field43 component </s> - diff --git a/funcom_test/40876568.txt b/funcom_test/40876568.txt deleted file mode 100644 index 308eb748e19e1b666d0a05b665b8e444c6743bc3..0000000000000000000000000000000000000000 --- a/funcom_test/40876568.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField44() { - if (textField44 == null) {//GEN-END:|633-getter|0|633-preInit - // write pre-init user code here - textField44 = new TextField("Bono 2:", null, 32, TextField.DECIMAL);//GEN-LINE:|633-getter|1|633-postInit - // write post-init user code here - }//GEN-BEGIN:|633-getter|2| - return textField44; - } - COM: <s> returns an initiliazed instance of text field44 component </s> - diff --git a/funcom_test/40876746.txt b/funcom_test/40876746.txt deleted file mode 100644 index 86a501ae54704206a84986e1992e595d2cee7d27..0000000000000000000000000000000000000000 --- a/funcom_test/40876746.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField45() { - if (textField45 == null) {//GEN-END:|634-getter|0|634-preInit - // write pre-init user code here - textField45 = new TextField("Bono 3:", null, 32, TextField.DECIMAL);//GEN-LINE:|634-getter|1|634-postInit - // write post-init user code here - }//GEN-BEGIN:|634-getter|2| - return textField45; - } - COM: <s> returns an initiliazed instance of text field45 component </s> - diff --git a/funcom_test/40876911.txt b/funcom_test/40876911.txt deleted file mode 100644 index 9178f1fe53d8d50e0f21f91b9c98869759907ee8..0000000000000000000000000000000000000000 --- a/funcom_test/40876911.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public TextField getTextField46() { - if (textField46 == null) {//GEN-END:|635-getter|0|635-preInit - // write pre-init user code here - textField46 = new TextField("Bono 4:", null, 32, TextField.DECIMAL);//GEN-LINE:|635-getter|1|635-postInit - // write post-init user code here - }//GEN-BEGIN:|635-getter|2| - return textField46; - } - COM: <s> returns an initiliazed instance of text field46 component </s> - diff --git a/funcom_test/40877023.txt b/funcom_test/40877023.txt deleted file mode 100644 index 38372554aefdefe234b6d4f4299208f1c2dbb486..0000000000000000000000000000000000000000 --- a/funcom_test/40877023.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand10() { - if (exitCommand10 == null) {//GEN-END:|646-getter|0|646-preInit - // write pre-init user code here - exitCommand10 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|646-getter|1|646-postInit - // write post-init user code here - }//GEN-BEGIN:|646-getter|2| - return exitCommand10; - } - COM: <s> returns an initiliazed instance of exit command10 component </s> - diff --git a/funcom_test/40877376.txt b/funcom_test/40877376.txt deleted file mode 100644 index 42bfea5af3094e4a2fb07b08c2be1b3edd550fe1..0000000000000000000000000000000000000000 --- a/funcom_test/40877376.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand27() { - if (backCommand27 == null) {//GEN-END:|656-getter|0|656-preInit - // write pre-init user code here - backCommand27 = new Command("OK", Command.BACK, 0);//GEN-LINE:|656-getter|1|656-postInit - // write post-init user code here - }//GEN-BEGIN:|656-getter|2| - return backCommand27; - } - COM: <s> returns an initiliazed instance of back command27 component </s> - diff --git a/funcom_test/40877685.txt b/funcom_test/40877685.txt deleted file mode 100644 index 3465e62886ba84e59cf7b3ec8e36e858ccdf9c77..0000000000000000000000000000000000000000 --- a/funcom_test/40877685.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand28() { - if (backCommand28 == null) {//GEN-END:|665-getter|0|665-preInit - // write pre-init user code here - backCommand28 = new Command("OK", Command.BACK, 0);//GEN-LINE:|665-getter|1|665-postInit - // write post-init user code here - }//GEN-BEGIN:|665-getter|2| - return backCommand28; - } - COM: <s> returns an initiliazed instance of back command28 component </s> - diff --git a/funcom_test/4087778.txt b/funcom_test/4087778.txt deleted file mode 100644 index db89ba53d994b672b89bf9d06dfdf8fd6fec71a4..0000000000000000000000000000000000000000 --- a/funcom_test/4087778.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void setWord(String v) { - if (Freeling2_Type.featOkTst && ((Freeling2_Type)jcasType).casFeat_word == null) - jcasType.jcas.throwFeatMissing("word", "org.idtem.component.freeling.Freeling2"); - jcasType.ll_cas.ll_setStringValue(addr, ((Freeling2_Type)jcasType).casFeatCode_word, v);} - COM: <s> setter for word sets </s> - diff --git a/funcom_test/40877798.txt b/funcom_test/40877798.txt deleted file mode 100644 index 3e7e1233697d55953829a51ecdd71e6643a7eb4a..0000000000000000000000000000000000000000 --- a/funcom_test/40877798.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand29() { - if (backCommand29 == null) {//GEN-END:|674-getter|0|674-preInit - // write pre-init user code here - backCommand29 = new Command("OK", Command.BACK, 0);//GEN-LINE:|674-getter|1|674-postInit - // write post-init user code here - }//GEN-BEGIN:|674-getter|2| - return backCommand29; - } - COM: <s> returns an initiliazed instance of back command29 component </s> - diff --git a/funcom_test/40878084.txt b/funcom_test/40878084.txt deleted file mode 100644 index 6b939afbedea96e02de9192ceef1ebb4734f1b5e..0000000000000000000000000000000000000000 --- a/funcom_test/40878084.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand30() { - if (backCommand30 == null) {//GEN-END:|683-getter|0|683-preInit - // write pre-init user code here - backCommand30 = new Command("OK", Command.BACK, 0);//GEN-LINE:|683-getter|1|683-postInit - // write post-init user code here - }//GEN-BEGIN:|683-getter|2| - return backCommand30; - } - COM: <s> returns an initiliazed instance of back command30 component </s> - diff --git a/funcom_test/40878203.txt b/funcom_test/40878203.txt deleted file mode 100644 index 0b9e9b6091cf9ed64106d33a9f258b00fb0ada7d..0000000000000000000000000000000000000000 --- a/funcom_test/40878203.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand31() { - if (backCommand31 == null) {//GEN-END:|692-getter|0|692-preInit - // write pre-init user code here - backCommand31 = new Command("OK", Command.BACK, 0);//GEN-LINE:|692-getter|1|692-postInit - // write post-init user code here - }//GEN-BEGIN:|692-getter|2| - return backCommand31; - } - COM: <s> returns an initiliazed instance of back command31 component </s> - diff --git a/funcom_test/40878341.txt b/funcom_test/40878341.txt deleted file mode 100644 index 7a4c34261c79c0e79e38cf0243c88d8f49a0f670..0000000000000000000000000000000000000000 --- a/funcom_test/40878341.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand32() { - if (backCommand32 == null) {//GEN-END:|701-getter|0|701-preInit - // write pre-init user code here - backCommand32 = new Command("OK", Command.BACK, 0);//GEN-LINE:|701-getter|1|701-postInit - // write post-init user code here - }//GEN-BEGIN:|701-getter|2| - return backCommand32; - } - COM: <s> returns an initiliazed instance of back command32 component </s> - diff --git a/funcom_test/40878705.txt b/funcom_test/40878705.txt deleted file mode 100644 index 7d34741b641c02dae84a9b4757878493ce1cba41..0000000000000000000000000000000000000000 --- a/funcom_test/40878705.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand33() { - if (backCommand33 == null) {//GEN-END:|714-getter|0|714-preInit - // write pre-init user code here - backCommand33 = new Command("OK", Command.BACK, 0);//GEN-LINE:|714-getter|1|714-postInit - // write post-init user code here - }//GEN-BEGIN:|714-getter|2| - return backCommand33; - } - COM: <s> returns an initiliazed instance of back command33 component </s> - diff --git a/funcom_test/40878931.txt b/funcom_test/40878931.txt deleted file mode 100644 index f140406bcc9af39ffe068f1702bceddd712e0ea6..0000000000000000000000000000000000000000 --- a/funcom_test/40878931.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand34() { - if (backCommand34 == null) {//GEN-END:|719-getter|0|719-preInit - // write pre-init user code here - backCommand34 = new Command("OK", Command.BACK, 0);//GEN-LINE:|719-getter|1|719-postInit - // write post-init user code here - }//GEN-BEGIN:|719-getter|2| - return backCommand34; - } - COM: <s> returns an initiliazed instance of back command34 component </s> - diff --git a/funcom_test/40879350.txt b/funcom_test/40879350.txt deleted file mode 100644 index 1831d39564c19a512d5bbd1219dd886e7595c9b9..0000000000000000000000000000000000000000 --- a/funcom_test/40879350.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand18() { - if (okCommand18 == null) {//GEN-END:|728-getter|0|728-preInit - // write pre-init user code here - okCommand18 = new Command("LIQUIDEZ", Command.OK, 0);//GEN-LINE:|728-getter|1|728-postInit - // write post-init user code here - }//GEN-BEGIN:|728-getter|2| - return okCommand18; - } - COM: <s> returns an initiliazed instance of ok command18 component </s> - diff --git a/funcom_test/40879522.txt b/funcom_test/40879522.txt deleted file mode 100644 index f0a253f1e55995b02e8211286f50cd7cf22fe320..0000000000000000000000000000000000000000 --- a/funcom_test/40879522.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand11() { - if (exitCommand11 == null) {//GEN-END:|730-getter|0|730-preInit - // write pre-init user code here - exitCommand11 = new Command("SALIR", Command.EXIT, 0);//GEN-LINE:|730-getter|1|730-postInit - // write post-init user code here - }//GEN-BEGIN:|730-getter|2| - return exitCommand11; - } - COM: <s> returns an initiliazed instance of exit command11 component </s> - diff --git a/funcom_test/40910773.txt b/funcom_test/40910773.txt deleted file mode 100644 index 482c1f6a740ab5593475d9917aad091da9de84a2..0000000000000000000000000000000000000000 --- a/funcom_test/40910773.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getExternalJavadocExpr() throws JspException { - ClassDisplay cd = (ClassDisplay) pageContext. - getAttribute("classDisplay", PageContext.REQUEST_SCOPE); - Admin admin = Admin.getAdminInstance(); - String expr = admin.getExternalJavadocExpr(cd.getBuildName(), - cd.getPackageName()); - String url = (String) ExpressionUtil.evalNotNull( - "UtilTag", "externalJavadoc", expr, - String.class, this, pageContext); - return url; - } - COM: <s> retrieve the class package name from the request object </s> - diff --git a/funcom_test/40910951.txt b/funcom_test/40910951.txt deleted file mode 100644 index b72aa203a9f7b5cd6065bab9c27e05b303bee6f7..0000000000000000000000000000000000000000 --- a/funcom_test/40910951.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: private void ptab0(Pref.Tab tab, String url, boolean tabAvail) throws JspException { - String title = tab.getTitle(); - String name = tab.getName(); - String target = tabsetTarget; - - if (url == null) { - p("<li id=\"current\">"); - } else { - p("<li>"); - } - if (url == null || !tabAvail) { - p("<strong>"); - p(title); - p("</strong>"); - } else { - p("<a href=\""); - p(url); - p("\" target=\""); - p(target); - p("\">"); - p(title); - p("</a>"); - } - p("</li>"); - } - COM: <s> display a tab in a tabset </s> - diff --git a/funcom_test/40911830.txt b/funcom_test/40911830.txt deleted file mode 100644 index 4e419af5933c8e14131a85dfed9c7907c9e9294e..0000000000000000000000000000000000000000 --- a/funcom_test/40911830.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getTypeParameterString(AST c) { - AST typeparam = c.getFirstChild(); - StringBuilder sb = new StringBuilder(); - sb.append("<"); - sb.append(typeparam.getFirstChild().getText()); - typeparam = typeparam.getNextSibling(); - while(typeparam != null) { - sb.append(", "); - sb.append(typeparam.getFirstChild().getText()); - typeparam = typeparam.getNextSibling(); - } - sb.append(">"); - return sb.toString(); - } - COM: <s> cycle through type parameters and generate a string </s> - diff --git a/funcom_test/40936549.txt b/funcom_test/40936549.txt deleted file mode 100644 index 26c5d4a0e8b0e5c803bb1c9a3aa6d4ab97c43a6d..0000000000000000000000000000000000000000 --- a/funcom_test/40936549.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public double getAlphaE() { - final double epsilon = Math.sqrt(1 - ex * ex - ey * ey); - final double cosAlphaV = Math.cos(alphaV); - final double sinAlphaV = Math.sin(alphaV); - return alphaV + 2 * Math.atan((ey * cosAlphaV - ex * sinAlphaV) / - (epsilon + 1 + ex * cosAlphaV + ey * sinAlphaV)); - } - COM: <s> get the eccentric longitude argument </s> - diff --git a/funcom_test/40936756.txt b/funcom_test/40936756.txt deleted file mode 100644 index 14273c5ab06aafa8d563f801eaef80c664ebe919..0000000000000000000000000000000000000000 --- a/funcom_test/40936756.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected boolean selectBracketingEntries(final AbsoluteDate date) { - try { - // select the bracketing elements - next = (TimeStampedEntry) (eop.tailSet(date).first()); - previous = (TimeStampedEntry) (eop.headSet(next).last()); - return true; - } catch (NoSuchElementException nsee) { - previous = null; - next = null; - return false; - } - } - COM: <s> select the entries bracketing a specified date </s> - diff --git a/funcom_test/40936762.txt b/funcom_test/40936762.txt deleted file mode 100644 index 0ca873561c303b461f1a825148ceb5230d13fec5..0000000000000000000000000000000000000000 --- a/funcom_test/40936762.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public PoleCorrection getPoleCorrection(final AbsoluteDate date) { - final PoleCorrection eop = eopHistory.getPoleCorrection(date); - if (tidalCorrection == null) { - return eop; - } else { - final PoleCorrection tidal = tidalCorrection.getPoleCorrection(date); - return new PoleCorrection(eop.getXp() + tidal.getXp(), - eop.getYp() + tidal.getYp()); - } - } - COM: <s> get the pole correction </s> - diff --git a/funcom_test/40937183.txt b/funcom_test/40937183.txt deleted file mode 100644 index 7f35c557eb705281677d6cd0fecf5c5921d54365..0000000000000000000000000000000000000000 --- a/funcom_test/40937183.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public double getThreeHourlyKP(AbsoluteDate date) { - - double ap = getAp(date); - int i = 0; - for ( i= 0; ap>=apTab[i]; i++) { - if(i==apTab.length-1) { - i++; - break; - } - } - return kpTab[i-1]; - } - COM: <s> the 3 h kp is derived from the ap index </s> - diff --git a/funcom_test/41068176.txt b/funcom_test/41068176.txt deleted file mode 100644 index a6f27716b4714daa9c2077171211a33c10b24601..0000000000000000000000000000000000000000 --- a/funcom_test/41068176.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void replaceConstruct(int amount) { - - Matcher m = pConstruct.matcher(current); - StringBuffer sb = new StringBuffer(); - while (m.find()) { - String variablename = m.group(1); - // System.out.println(variablename); - StringBuffer b = new StringBuffer(); - for (int i = 0; i < amount; i++) { - b.append(" ?"); - b.append(variablename); - b.append(i); - } - - m.appendReplacement(sb, b.toString()); - } - m.appendTail(sb); - // System.out.println(sb); - - current = sb.toString(); - } - COM: <s> intersection becomes intersection0 intersection1 </s> - diff --git a/funcom_test/41069179.txt b/funcom_test/41069179.txt deleted file mode 100644 index 059eeb1cf87212f6aca02ac8f3c253b488a50c50..0000000000000000000000000000000000000000 --- a/funcom_test/41069179.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public XComponentContext connect(String host, int port) throws BootstrapException { - - // host and port - String hostAndPort = "host="+host+",port="+port; - - // accept option - String oooAcceptOption = "-accept=socket,"+hostAndPort+";urp;"; - - // connection string - String unoConnectString = "uno:socket,"+hostAndPort+";urp;StarOffice.ComponentContext"; - - return connect(oooAcceptOption, unoConnectString); - } - COM: <s> connects to an ooo server using the specified host and port for the </s> - diff --git a/funcom_test/41069185.txt b/funcom_test/41069185.txt deleted file mode 100644 index 1277256a6c8669612ecf6add95084709886d1263..0000000000000000000000000000000000000000 --- a/funcom_test/41069185.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public XComponentContext connect(String pipeName) throws BootstrapException { - - // accept option - String oooAcceptOption = "-accept=pipe,name=" + pipeName + ";urp;"; - - // connection string - String unoConnectString = "uno:pipe,name=" + pipeName + ";urp;StarOffice.ComponentContext"; - - return connect(oooAcceptOption, unoConnectString); - } - COM: <s> connects to an ooo server using the specified pipe name and returns a </s> - diff --git a/funcom_test/41069190.txt b/funcom_test/41069190.txt deleted file mode 100644 index 2f5500934c8da543b51c2692a1840a21a5e4ef65..0000000000000000000000000000000000000000 --- a/funcom_test/41069190.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private XComponentContext getRemoteContext(XUnoUrlResolver xUrlResolver) throws BootstrapException, ConnectionSetupException, IllegalArgumentException, NoConnectException { - - Object context = xUrlResolver.resolve(oooConnectionString); - XComponentContext xContext = (XComponentContext) UnoRuntime.queryInterface(XComponentContext.class, context); - if (xContext == null) { - throw new BootstrapException("no component context!"); - } - return xContext; - } - COM: <s> try to connect to office </s> - diff --git a/funcom_test/41103163.txt b/funcom_test/41103163.txt deleted file mode 100644 index 49d6f85610a58bb1bc3dda103ddd5d6f6f325384..0000000000000000000000000000000000000000 --- a/funcom_test/41103163.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String getRmiRegistryLine(String _serviceName) { - InetSocketAddress isa = null; - try { - isa = new InetSocketAddress(InetAddress.getLocalHost().getHostAddress(), this.portRmiRegistry); - } catch (java.net.UnknownHostException e) { - e.printStackTrace(); - } - - return this.getRmiRegistryLine(isa, _serviceName); - } - COM: <s> construct rmi registry uri for service name given using local host address </s> - diff --git a/funcom_test/41103167.txt b/funcom_test/41103167.txt deleted file mode 100644 index 1737a9b7d93141912c72b8b91ab37b2ffb3dc6ff..0000000000000000000000000000000000000000 --- a/funcom_test/41103167.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: protected String getRmiRegistryLine(InetSocketAddress _isa, String _serviceName) { - assert (_isa != null) : "getRmiRegistryLine InetSocketAddress _isa is NULL!"; - return "//" + _isa.getAddress().getHostAddress() + ":" + _isa.getPort() + "/" + _serviceName; - } - COM: <s> construct rmi registry uri for given service address and name </s> - diff --git a/funcom_test/41103180.txt b/funcom_test/41103180.txt deleted file mode 100644 index 58dc1965f6d8256e26c610592266ce891e5aedd7..0000000000000000000000000000000000000000 --- a/funcom_test/41103180.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private boolean isRegistryRunning() { - try { - Remote lookup = Naming.lookup(this.getRmiRegistryLine(this.serviceName)); - if (lookup != null) { - return true; - } - } catch (ConnectException _ex) { - return false; - } catch (NotBoundException _ex) { - return true; - } catch (RemoteException _ex) { - _ex.printStackTrace(); - } catch (MalformedURLException _ex) { - _ex.printStackTrace(); - } - return false; - } - COM: <s> checks if local registry is running </s> - diff --git a/funcom_test/41103222.txt b/funcom_test/41103222.txt deleted file mode 100644 index e7e86ddfd5afe4a7e1d57a3b9375b599c6337525..0000000000000000000000000000000000000000 --- a/funcom_test/41103222.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void startAppServerProcess(String _name, RegistryContainer _regCont) throws RegistryException { - try { - ((AppServerProcess) _regCont.getModule()).moduleStart(); - _regCont.releaseModule(); - } catch (Exception _ex) { - throw new RegistryException("Exception thrown during startup in module " + _name + ": " + _ex.getMessage()); - } - } - COM: <s> start app server process </s> - diff --git a/funcom_test/41103244.txt b/funcom_test/41103244.txt deleted file mode 100644 index cafb3a014d043bcaff93ac04636f39cb9e694d00..0000000000000000000000000000000000000000 --- a/funcom_test/41103244.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean checkModuleName(String _name, Object _module) throws RegistryException { - if (getRegCont(_name) == null) { - String errMessage = "Module name " + _name + " doesn't exist."; - throw new RegistryException(errMessage); - } - - boolean ret = (getRegCont(_name).getModule() == _module); - getRegCont(_name).releaseModule(); - return ret; - } - COM: <s> checks whether instance name corresponds to given object </s> - diff --git a/funcom_test/4110525.txt b/funcom_test/4110525.txt deleted file mode 100644 index 662474230cf20a8fbb7c010903fb006dc4890c54..0000000000000000000000000000000000000000 --- a/funcom_test/4110525.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public StringItem getStringItem() { - if (stringItem == null) {//GEN-END:|15-getter|0|15-preInit - // write pre-init user code here - stringItem = new StringItem("", "Bienvenue sur iQuizz");//GEN-LINE:|15-getter|1|15-postInit - // write post-init user code here - }//GEN-BEGIN:|15-getter|2| - return stringItem; - } - COM: <s> returns an initiliazed instance of string item component </s> - diff --git a/funcom_test/4110539.txt b/funcom_test/4110539.txt deleted file mode 100644 index b8d322a74f726579d5dd0372de1bb25ce9e870af..0000000000000000000000000000000000000000 --- a/funcom_test/4110539.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand1() { - if (okCommand1 == null) {//GEN-END:|35-getter|0|35-preInit - // write pre-init user code here - okCommand1 = new Command("Ok", Command.OK, 0);//GEN-LINE:|35-getter|1|35-postInit - // write post-init user code here - }//GEN-BEGIN:|35-getter|2| - return okCommand1; - } - COM: <s> returns an initiliazed instance of ok command1 component </s> - diff --git a/funcom_test/4110547.txt b/funcom_test/4110547.txt deleted file mode 100644 index 937b7b4160fc53d9b12eae9407c8342a6cd8f098..0000000000000000000000000000000000000000 --- a/funcom_test/4110547.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public StringItem getStringItem2() { - if (stringItem2 == null) {//GEN-END:|46-getter|0|46-preInit - // write pre-init user code here - stringItem2 = new StringItem("", "Appuyez sur ok pour se connecter");//GEN-LINE:|46-getter|1|46-postInit - // write post-init user code here - }//GEN-BEGIN:|46-getter|2| - return stringItem2; - } - COM: <s> returns an initiliazed instance of string item2 component </s> - diff --git a/funcom_test/4110607.txt b/funcom_test/4110607.txt deleted file mode 100644 index 008379c63a6660489f9f82016ba40b72d3ac1674..0000000000000000000000000000000000000000 --- a/funcom_test/4110607.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand3() { - if (okCommand3 == null) {//GEN-END:|76-getter|0|76-preInit - // write pre-init user code here - okCommand3 = new Command("Ok", Command.OK, 0);//GEN-LINE:|76-getter|1|76-postInit - - }//GEN-BEGIN:|76-getter|2| - return okCommand3; -} - COM: <s> returns an initiliazed instance of ok command3 component </s> - diff --git a/funcom_test/4113566.txt b/funcom_test/4113566.txt deleted file mode 100644 index d557716c7de3d71f12c7abc7e28440582c5e5d7c..0000000000000000000000000000000000000000 --- a/funcom_test/4113566.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void monitor(final Server server, final InterruptableInputHandler handler) { - Thread thread = new Thread("JettyStopMonitor") { - public void run() { - try { - listenForStop(handler, server); - } catch (Exception e) { - logger.error("[jetty-monitor] Unable to monitor Jetty for stop requests: " + e.getMessage()); - } - } - }; - - thread.setDaemon(true); - thread.start(); - } - COM: <s> montiors the server instance given and will interrupt the thread given </s> - diff --git a/funcom_test/4113841.txt b/funcom_test/4113841.txt deleted file mode 100644 index 52a39d03da2b451ca6554721dd29e467b5ec2994..0000000000000000000000000000000000000000 --- a/funcom_test/4113841.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected String getDescription() { - if (helpDocument != null) { - List pEls = helpDocument.getRoot().getChild("body").getChildren("p"); - - return (pEls.size() == 0) ? null : ((Element)pEls.iterator().next()).getText(); - } - - return null; - } - COM: <s> by default returns the first paragraph of the help document </s> - diff --git a/funcom_test/4114383.txt b/funcom_test/4114383.txt deleted file mode 100644 index 432ecca01bdbf9af76c912389bbecaa8c15425ec..0000000000000000000000000000000000000000 --- a/funcom_test/4114383.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean add(Date date) { - if (dates.contains(date)) - return false; - - boolean added = false; - for (int i=0; i < dates.size() && !added; i++) { - Date nextDate = dates.get(i); - if (date.before(nextDate)) { - dates.add(i, date); - added = true; - } - } - if (!added) { - dates.add(date); - } - return true; - } - COM: <s> adds a date to the list keeping the list sorted </s> - diff --git a/funcom_test/4114401.txt b/funcom_test/4114401.txt deleted file mode 100644 index db3bf6254123ea2789e667dd3ac9a2eb59dd3ce6..0000000000000000000000000000000000000000 --- a/funcom_test/4114401.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void addDays(int n) { - if (n < 0) - throw new IllegalArgumentException("Negative argument."); - - while (day + n > maxDaysIn(year, month)) { - int restOfMonth = maxDaysIn(year, month) - day; - n -= restOfMonth; - day = 1; - if (month == DECEMBER) { - month = JANUARY; - year++; - } else { - month++; - } - } - day += n; - } - COM: <s> add n days to this date </s> - diff --git a/funcom_test/4121895.txt b/funcom_test/4121895.txt deleted file mode 100644 index 8337f86e0bd071262275409175221ca99a022110..0000000000000000000000000000000000000000 --- a/funcom_test/4121895.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void init() throws ServletException { - baseDir=getInitParameter("baseDir"); - debug=(new Boolean(getInitParameter("debug"))).booleanValue(); - if(baseDir==null) - baseDir="/UserFiles/"; - String realBaseDir=getServletContext().getRealPath(baseDir); - File baseFile=new File(realBaseDir); - if(!baseFile.exists()){ - baseFile.mkdir(); - } - } - COM: <s> initialize the servlet </s> - diff --git a/funcom_test/41246317.txt b/funcom_test/41246317.txt deleted file mode 100644 index 0062c2af69e989bf536653d4ad25002755f751d8..0000000000000000000000000000000000000000 --- a/funcom_test/41246317.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void writeXrefs() { - xrefStart = offset; - println("xref"); - print(0+""); - print(" "); - print("" + (xrefs.size() + 1)); - print("\n"); - // "fake" entry at 0, always 0, -1, f(free). - printXref(0, 65535, 'f'); - // Remaining xref entries are for real objects. - for (int i=0; i<xrefs.size(); i++) { - Long lo = (Long)xrefs.get(i); - long l = lo.longValue(); - printXref(l, 0, 'n'); - } - - } - COM: <s> write all the xrefs using the format above </s> - diff --git a/funcom_test/41252553.txt b/funcom_test/41252553.txt deleted file mode 100644 index 92caf61415b7e0e9749dcbe2d765dd7423bfb538..0000000000000000000000000000000000000000 --- a/funcom_test/41252553.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getLabel(){ - List<Property> orderedProps = new ArrayList<Property>(properties.values()); - Collections.sort(orderedProps,new PropertyOrderComparator()); - - StringBuffer label = new StringBuffer(); - for (Property property : orderedProps) { - if (property.getPropertyDefinition().isMandatory()){ - if (label.length()>0){ - label.append(" "); - } - label.append(property.getValue().toString()); - } - } - if (label.length()==0) label.append(this.getUri()); - return label.toString(); - } - COM: <s> label is created appending mandatory property values </s> - diff --git a/funcom_test/41253437.txt b/funcom_test/41253437.txt deleted file mode 100644 index d8b65319cf6759a465dde8705a393eb4cec44c3c..0000000000000000000000000000000000000000 --- a/funcom_test/41253437.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public ClassAdjectiveAggregate makeClassAdjectiveAggregate(URI senseURI, String lemmaWrittenForm) { - Sense sense = factory.makeSense(senseURI); - ClassAdjectiveAggregate classAdjRep = new ClassAdjectiveAggregate(sense, factory, uriMethod); - classAdjRep.getLemma().setWrittenForm(lemmaWrittenForm); - - return classAdjRep; - } - COM: <s> make a class adjective aggregate </s> - diff --git a/funcom_test/41253480.txt b/funcom_test/41253480.txt deleted file mode 100644 index d6bc97c92bc58f95d2d7c9d35002365a24df9673..0000000000000000000000000000000000000000 --- a/funcom_test/41253480.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public ProperNounAggregate makeProperNounAggregate(URI individualURI, String lemmaWrittenForm) { - Sense sense = factory.makeSense(individualURI); - ProperNounAggregate nameAggregate = new ProperNounAggregate(sense, factory, uriMethod); - nameAggregate.getLemma().setWrittenForm(lemmaWrittenForm); - - return nameAggregate; - } - COM: <s> make a proper noun aggregate </s> - diff --git a/funcom_test/41253506.txt b/funcom_test/41253506.txt deleted file mode 100644 index 90013ec014acabba7cb5ec09177d61157472abf7..0000000000000000000000000000000000000000 --- a/funcom_test/41253506.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addToLexicon(Lexicon lexicon) { - if(getSubcategorizationFrame() != null) - lexicon.addHasSubcatFrame(getSubcategorizationFrame()); - if(getSemanticPredicate() != null) - lexicon.addHasPredicate(getSemanticPredicate()); - if(getLexicalEntry() != null) - lexicon.addHasLexicalEntry(getLexicalEntry()); - } - COM: <s> add this to a lexicon </s> - diff --git a/funcom_test/41253511.txt b/funcom_test/41253511.txt deleted file mode 100644 index 8427ae356432cf92fdfaca138d0596f7ad9693ac..0000000000000000000000000000000000000000 --- a/funcom_test/41253511.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void removeFromLexicon(Lexicon lexicon) { - if(getSubcategorizationFrame() != null) - lexicon.getHasSubcatFrame().remove(getSubcategorizationFrame()); - if(getSemanticPredicate() != null) - lexicon.getHasPredicate().remove(getSemanticPredicate()); - if(getLexicalEntry() != null) - lexicon.getHasLexicalEntry().remove(getLexicalEntry()); - } - COM: <s> remove this from a lexicon </s> - diff --git a/funcom_test/41253592.txt b/funcom_test/41253592.txt deleted file mode 100644 index 10bf4aad95fa0dc4692a276e52724758787aa5fc..0000000000000000000000000000000000000000 --- a/funcom_test/41253592.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String lexicalize(List<Aggregate> aggregates, Map<String, LexicalEntry> arguments) { - AggRulePair arp = selectBestRule(aggregates, arguments.keySet()); - if (arp == null || arp.agg == null || arp.rule == null) { - return null; - } - return arp.rule.lexicalize(arp.agg, arguments); - } - COM: <s> lexicalize a sense that can be represented by a number of aggregates </s> - diff --git a/funcom_test/41253961.txt b/funcom_test/41253961.txt deleted file mode 100644 index ae3f7ddb797fba2056d560b79313d16fd4bac9ca..0000000000000000000000000000000000000000 --- a/funcom_test/41253961.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private double computeWeight(int occurrence_cnt) { - Double weight = 0.0; - if (occurrence_cnt!=0) { - // compute weight - if (occurrence_cnt>THRESHOLDS.get(3)) { - weight=1.0; - } else if (occurrence_cnt>THRESHOLDS.get(2)) { - weight=.75; - } else if (occurrence_cnt>THRESHOLDS.get(1)) { - weight=.5; - } else { - weight=.25; - } - } - return weight; - } - COM: <s> computes a weight in 0 1 from the number of occurences </s> - diff --git a/funcom_test/41253985.txt b/funcom_test/41253985.txt deleted file mode 100644 index d192a0477f6eebdbbe477002c6b9bdcc61c1ceb7..0000000000000000000000000000000000000000 --- a/funcom_test/41253985.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void initPOSTagger(POSTaggerResource posTaggerResource) throws Exception { - POS_TAGGER tagger = posTaggerResource.getPOSTaggerType(); - String modelFilePath = posTaggerResource.getPOSModelPath(); - posManager = new POSManager(tagger, modelFilePath, posTaggerResource.getTagSetFile()); - } - COM: <s> public onto nlpmanager resources resources label extraction policy label extraction policy </s> - diff --git a/funcom_test/41253997.txt b/funcom_test/41253997.txt deleted file mode 100644 index 1e15b503433d7babc3854678cae730baa7178ea5..0000000000000000000000000000000000000000 --- a/funcom_test/41253997.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public IWord getIWordFromLemmaAndPOS(String lemma, POS pos) throws NoSuchIndexWordException { - IIndexWord indexWord = dict.getIndexWord(lemma, pos); - if (indexWord==null) { - throw new NoSuchIndexWordException(); - } else { - IWordID wordID = indexWord.getWordIDs().get(0); // 1st meaning - return dict.getWord(wordID); - } - } - COM: <s> return the first meaning of a lemma and pos as iword </s> - diff --git a/funcom_test/41254025.txt b/funcom_test/41254025.txt deleted file mode 100644 index bb9d071abd8c5d239594da059750f8584defe420..0000000000000000000000000000000000000000 --- a/funcom_test/41254025.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean containsOnlyStopWordTokens(Object[] tokens,HashSet h) { - boolean notStopwordTokens = true; // assume all tokens are stopwords - for (int i = 0; i < tokens.length; i++) { - if (!h.contains(tokens[i])) { - notStopwordTokens=false; // at least one token is not a stopword - } - } - return notStopwordTokens; - } - COM: <s> returns true if all tokens are stopwords </s> - diff --git a/funcom_test/41286960.txt b/funcom_test/41286960.txt deleted file mode 100644 index c4f228729ae3392c890392b893119e48c9badb0b..0000000000000000000000000000000000000000 --- a/funcom_test/41286960.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removePin(Pin local){ - Point p = local.getGlobalLocation(); - GridObject go = grid.get(p); - if(go instanceof ConnectionPoint){ - ((ConnectionPoint) go).removeConnection(local); - if(!((ConnectionPoint) go).isConnected()){ - grid.remove(p); - } - } - } - COM: <s> remove the specified pin from the grid </s> - diff --git a/funcom_test/41286972.txt b/funcom_test/41286972.txt deleted file mode 100644 index e19e0ff1c0d0c7bfad7c5538167b1cbecf27cbcf..0000000000000000000000000000000000000000 --- a/funcom_test/41286972.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected int noOfDifferentConnections() { - LinkedList<SelectableComponent> found = new LinkedList<SelectableComponent>(); - for(Pin p: connections){ - if(!found.contains(p.getParent())){ - found.add(p.getParent()); - } - } return found.size(); - } - COM: <s> how many different components are connected here </s> - diff --git a/funcom_test/41286988.txt b/funcom_test/41286988.txt deleted file mode 100644 index 59a33c922e53f44e48902912f7550fbb0e660cc1..0000000000000000000000000000000000000000 --- a/funcom_test/41286988.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void draw(Graphics2D g2){ - g2.setColor(UIConstants.CONNECTION_POINT_COLOUR); - - Rectangle extClip = g2.getClipBounds().getBounds(); - extClip.grow(5, 5); - for(GridObject p: grid.values()){ - if(extClip.contains(p)){ - p.draw(g2); - } - } - } - COM: <s> draw the grid </s> - diff --git a/funcom_test/41287216.txt b/funcom_test/41287216.txt deleted file mode 100644 index 61fb0f307721745f453be2469f8f39f9e94c37ae..0000000000000000000000000000000000000000 --- a/funcom_test/41287216.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Command copy() { - try { - return (Command) this.clone(); - } - catch (CloneNotSupportedException e) { - ui.error.ErrorHandler.newError(new ui.error.Error( - "Cannot Clone Command",this.getClass().getSimpleName() + - "\nThis command cannot be copied.")); - return null; - } - } - COM: <s> make an independent copy of an unperformed command </s> - diff --git a/funcom_test/41287366.txt b/funcom_test/41287366.txt deleted file mode 100644 index d9ebf6bb18a37d148933478d131b0d1920c04c10..0000000000000000000000000000000000000000 --- a/funcom_test/41287366.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected Rectangle rotate(Rectangle src){ - Rectangle retval; - AffineTransform rotationTransformation = new AffineTransform(); - rotationTransformation.rotate(rotation, getOrigin().x + getCentre().x, - getOrigin().y+ getCentre().y); - retval = rotationTransformation.createTransformedShape( - new Rectangle(src)).getBounds(); - return retval; - } - COM: <s> helper method to calculate the rotation of rectangle src about the centre point </s> - diff --git a/funcom_test/41287398.txt b/funcom_test/41287398.txt deleted file mode 100644 index 6ccf3fc069c6bf25b92d66972230d2b1ba19653b..0000000000000000000000000000000000000000 --- a/funcom_test/41287398.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setProperties(Properties properties) { - if(this.properties != null) { - this.properties.removeAttributesListener(this); - } - this.properties = properties; - if(logicalComponent != null){ - this.logicalComponent.setProperties(properties); - } - if(this.properties != null){ - this.properties.addAttributesListener(this); - } - } - COM: <s> change the properties of this component </s> - diff --git a/funcom_test/41287491.txt b/funcom_test/41287491.txt deleted file mode 100644 index 0851dec6918900633bea80328d7e586831b17e86..0000000000000000000000000000000000000000 --- a/funcom_test/41287491.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setSimulatorSpeed(int value) { - if(value >= 0 && value <= 10){ - if(timerRunning){ - stopTimer(); - simulatorSpeed = value; - startTimer(); - } - else{ - simulatorSpeed = value; - } - /** - * Finally update the listeners to let them know that the speed has changed. - */ - for(SimulatorStateListener stateListener : stateListeners) { - stateListener.SimulationRateChanged(value); - } - } - } - COM: <s> this method allows the gui to set the simulation speed </s> - diff --git a/funcom_test/41287521.txt b/funcom_test/41287521.txt deleted file mode 100644 index 8cbdb461746de20aea3634a5aaf86d824e6d00c5..0000000000000000000000000000000000000000 --- a/funcom_test/41287521.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected OutputPin createOutputPin(String name) { - //A pin object is created using the name provided. - OutputPin pin = new OutputPin(this, name); - //The pin added to the map, using the name as the key. - outputPins.put(name, pin); - //We then return a reference to the newly created pin to the subclass that created it. - return pin; - } - COM: <s> component subclasses use this and the next method to create pins for themselves </s> - diff --git a/funcom_test/41287526.txt b/funcom_test/41287526.txt deleted file mode 100644 index 015a8475a132d5ea3c4f968a0fee4189dd4ff30f..0000000000000000000000000000000000000000 --- a/funcom_test/41287526.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void initialize(){ - for(OutputPin pin: outputPins.values()){ - pin.setValue(LogicState.FLOATING); - } - for(InputPin pin: inputPins.values()){ - if(pin.getConnectedTo() == null) pin.setValue(LogicState.FLOATING); - } - } - COM: <s> a basic initiazation method for all components called when a simulation is started </s> - diff --git a/funcom_test/41287529.txt b/funcom_test/41287529.txt deleted file mode 100644 index 6dcf5d4710a2549152e2759d4d4711d34c806516..0000000000000000000000000000000000000000 --- a/funcom_test/41287529.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void play(){ - if(currentState == SimulatorState.STOPPED){ - setSimulationTime(0); - simItem.initialize(); - startTimer(); - setState(SimulatorState.PLAYING); - } - else if(currentState == SimulatorState.PAUSED){ - startTimer(); - setState(SimulatorState.PLAYING); - } - } - COM: <s> start running the simulation from either a stopped or paused state </s> - diff --git a/funcom_test/41287624.txt b/funcom_test/41287624.txt deleted file mode 100644 index 047d4f4ac011d01ffc1aff377e58faebc7946de7..0000000000000000000000000000000000000000 --- a/funcom_test/41287624.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void saveAs(String filename) { - setFilename(filename); - FileCreator.write(this, drawnComponents); - CircuitFrame frame = getParentFrame(); - frame.setTitle(filename); - cmdHist.setIsDirty(false); - - if(isSubcircuit()){ - subcircuitParent.updateSubcircuits(this); - } - } - COM: <s> save this circuit to disk required to access hidden component list </s> - diff --git a/funcom_test/41288449.txt b/funcom_test/41288449.txt deleted file mode 100644 index a4e6bde54633c4c66f6a256d968b5a648b3864a9..0000000000000000000000000000000000000000 --- a/funcom_test/41288449.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean isValidComponent(String key){ - //Remove "Components." from begining - if(key.length() > 11 && key.subSequence(0, 11).equals("Components.")){ - key = key.substring(11); - } - - // Check Logical Component mappings - for(Netlist nl: netlists){ - if(nl.containsKey(key)){ - return true; - } - } - return false; - } - COM: <s> checks whether a the key identifies either a valid implementation of a selectable </s> - diff --git a/funcom_test/41323165.txt b/funcom_test/41323165.txt deleted file mode 100644 index 8a3055b7debc3b3d92bded273f6655d77c74708e..0000000000000000000000000000000000000000 --- a/funcom_test/41323165.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void initMainCanvas() { - itsMainCanvas = new PCanvasWithHelper(LessonMapper2.getInstance() - .getLangComment("mainCanvas")); - itsMainCanvas.setBackground(ITSDarkSandColor); - itsMainCanvas.setBorder(new LineBorder(Color.black)); - itsMainCanvas.setPreferredSize(new Dimension(700, 700)); - itsMainCanvas.setDropTarget(new ExternalDropManager(itsMainCanvas)); - } - COM: <s> this method init the main canvas </s> - diff --git a/funcom_test/41323175.txt b/funcom_test/41323175.txt deleted file mode 100644 index a47eac2b4da380e7fbcebc5e074cc5c5f80bdee7..0000000000000000000000000000000000000000 --- a/funcom_test/41323175.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void resetMainCanvas() { - for (int i = 0; i < itsMainCanvas.getCamera().getLayerCount(); i++) { - itsMainCanvas.getCamera().removeLayer(i); - } - if (LessonMapper2.getInstance().getActiveProject() != null) - itsMainCanvas.getCamera().addLayer( - LessonMapper2.getInstance().getUpperActivity()); - } - COM: <s> reset main canvas </s> - diff --git a/funcom_test/41323206.txt b/funcom_test/41323206.txt deleted file mode 100644 index 813c6a498793ebe5dae8ff5e615578b8740496e7..0000000000000000000000000000000000000000 --- a/funcom_test/41323206.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void valueChanged(TreeSelectionEvent aE) { - itsSelectedAttributes.clear(); - for (int i = 0; i < itsTree.getSelectionPaths().length; i++) { - TreePath thePath = itsTree.getSelectionPaths()[i]; - Object theComponent = thePath.getLastPathComponent(); - if (theComponent instanceof AttributeTreeNode) - itsSelectedAttributes.add(((AttributeTreeNode) theComponent) - .getAttribute()); - } - updateAttributePanel(); - } - COM: <s> when the tree selection is changed the displayed attributes are changed </s> - diff --git a/funcom_test/41323208.txt b/funcom_test/41323208.txt deleted file mode 100644 index cefaddf9e76a2c338a3377ea80f26f8b1833ed35..0000000000000000000000000000000000000000 --- a/funcom_test/41323208.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void resetPreviewCanvas() { - PCamera theCamera = itsPreviewCanvas.getCamera(); - for (int i = 0; i < theCamera.getLayerCount(); i++) { - if (theCamera.getLayer(i) != itsPreviewLocalizatorLayer) - theCamera.removeLayer(i); - } - if (LessonMapper2.getInstance().getActiveProject() != null) - theCamera.addLayer(0, LessonMapper2.getInstance() - .getUpperActivity()); - } - COM: <s> reset preview canvas </s> - diff --git a/funcom_test/41323230.txt b/funcom_test/41323230.txt deleted file mode 100644 index 5b013f7401ba6eeb1f078bff9513770a6a72dce9..0000000000000000000000000000000000000000 --- a/funcom_test/41323230.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setLomvalue(String aString) { - String theCurrentText = getText(); - if (theCurrentText == null || "".equals(theCurrentText)) - setText(aString); - else - setText(theCurrentText + ", " + aString); - if (SuggestionCloudTest.ISACTIVE) { - SuggestionCloudTest.getInstance().endDragEvent(itsLOMAttribute); - } - } - COM: <s> add a string to the current value </s> - diff --git a/funcom_test/41323263.txt b/funcom_test/41323263.txt deleted file mode 100644 index cd01ac13428bb98b11056a7b1f1e49f8382058ab..0000000000000000000000000000000000000000 --- a/funcom_test/41323263.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setLomvalue(String aString) { - LOMVocabularyElement theElement = itsLOMVocabulary - .getVocabularyElement(aString); - // if (theElement.getName().equals("")) System.out.println(aString - // +" is not regular vocabulary for "+itsLOMAttribute.getName()); - // else - setSelectedItem(theElement); - if (SuggestionCloudTest.ISACTIVE) { - SuggestionCloudTest.getInstance().endDragEvent(itsLOMAttribute); - } - } - COM: <s> set the selection to the vocabulary element corresponding to the </s> - diff --git a/funcom_test/41323359.txt b/funcom_test/41323359.txt deleted file mode 100644 index b64dec351b99293ce8ba3beefa3c13d894b1892a..0000000000000000000000000000000000000000 --- a/funcom_test/41323359.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setRectangleShape() { - setPathTo(new RoundRectangle2D.Double(0, 0, ITSDefaultWidth, - ITSDefaultHeight, 5, 5)); - // setPathToRectangle(0, 0, ITSDefaultWidth, ITSDefaultHeight); - if (itsThumb != null) { - itsThumb.setVisible(true); - // itsTextNode.setVisible(false); - } else { - // itsTextNode.setVisible(true); - } - } - COM: <s> sets the rectangle shape </s> - diff --git a/funcom_test/41323456.txt b/funcom_test/41323456.txt deleted file mode 100644 index 7b87773fd872b9937959ed2705a8732eb7558784..0000000000000000000000000000000000000000 --- a/funcom_test/41323456.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void initStroke() { - float theScaleFactor = 1 / (float) itsCamera.getViewScale(); - float[] dash = { DASH_WIDTH * theScaleFactor, - DASH_WIDTH * theScaleFactor }; - strokes = new Stroke[NUM_STROKES]; - for (int i = 0; i < NUM_STROKES; i++) { - strokes[i] = new BasicStroke(1 * theScaleFactor, - BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 1, dash, i); - } - } - COM: <s> inits the stroke </s> - diff --git a/funcom_test/41323464.txt b/funcom_test/41323464.txt deleted file mode 100644 index e51c49370c2b6496b0ae4828ef5f628497e8ce1b..0000000000000000000000000000000000000000 --- a/funcom_test/41323464.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void initActivityState() { - itsActivityState = Box.createHorizontalBox(); - - JProgressBar theProgressBar = new JProgressBar(); - theProgressBar.setIndeterminate(true); - itsActivityState.add(theProgressBar); - // JLabel theStateLabel = new - // JLabel(LessonMapper2.getInstance().getLangComment("activityState")); - // theStateLabel.setBackground(Color.WHITE); - // itsActivityState.add(theStateLabel); - } - COM: <s> inits the activity state </s> - diff --git a/funcom_test/41323522.txt b/funcom_test/41323522.txt deleted file mode 100644 index c11bb77443e5c7d3974f06a113e24fad5ca19d57..0000000000000000000000000000000000000000 --- a/funcom_test/41323522.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void goUpperLayer() { - if (!itsPreviousActiveLayers.isEmpty()) { - ContainerNode theContainerNode = itsActiveLayer; - itsActiveLayer.setActive(false); - itsActiveLayer = itsPreviousActiveLayers.pop(); - updateActiveLayer(); - LessonMapper2.getInstance().getSelectionHandler().unselectAll(); - LessonMapper2.getInstance().getSelectionHandler().select(theContainerNode); - - } - // if theActiveLayer is not a container node it means that it reached - // the upperlevel is activeLayer - else - return; - } - COM: <s> go upper layer </s> - diff --git a/funcom_test/41323537.txt b/funcom_test/41323537.txt deleted file mode 100644 index b84ccf61bddf7cbdaa255f7393a061e438cf96aa..0000000000000000000000000000000000000000 --- a/funcom_test/41323537.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setArchivePath(String aArchivePath) { - if (!itsArchivePath.equals(aArchivePath)) - itsOldArchivePath = itsArchivePath; - itsArchivePath = aArchivePath; - // launch checking of material and thumb location - isArchivePathChanging = true; - if (itsUpperActivity != null) - itsUpperActivity.setLMProject(this); - isArchivePathChanging = false; - isDefaultArchivePath=false; - itsOldArchivePath = null; - } - COM: <s> method for changing the archive path of a lmproject </s> - diff --git a/funcom_test/41323632.txt b/funcom_test/41323632.txt deleted file mode 100644 index d0866e3b0493bd50d123e5d359c18693fa22ffea..0000000000000000000000000000000000000000 --- a/funcom_test/41323632.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void modifyMaterial() { - setLOM(new LOM(itsLOM, true, true)); - updateParentRelation(); - for (Iterator iter = getChildrenIterator(); iter.hasNext();) { - PNode element = (PNode) iter.next(); - if (element instanceof SelectionableLOM) { - // TODO manage relations !!!!! - // ((SelectionableLOM) element).detach(); - ((SelectionableLOM) element).modifyMaterial(); - - } - } - } - COM: <s> change the id of the associated material basically set the current </s> - diff --git a/funcom_test/41323715.txt b/funcom_test/41323715.txt deleted file mode 100644 index 54579fa659e892e9519a95257487996fadb7db2c..0000000000000000000000000000000000000000 --- a/funcom_test/41323715.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public PBounds getUnionOfChildrenBounds(PBounds dstBounds) { - if (dstBounds == null) { - dstBounds = new PBounds(); - } else { - dstBounds.resetToZero(); - } - - int count = getChildrenCount(); - for (int i = 0; i < count; i++) { - PNode each = (PNode) getChildrenReference().get(i); - if (each != itsTitleNode) - dstBounds.add(each.getFullBoundsReference()); - } - - return dstBounds; - } - COM: <s> override the computation of the union of children in order to exclude the </s> - diff --git a/funcom_test/41323773.txt b/funcom_test/41323773.txt deleted file mode 100644 index a29d0aa17c3fa50d1d7c3c1def694e672836690a..0000000000000000000000000000000000000000 --- a/funcom_test/41323773.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Set<LOM> updateRestrictionFor(LOM aLOM) { - Set<LOM> theListOfUpdates = new LinkedHashSet<LOM>(); - for (LOMAttribute aAttribute : LOMAttribute.getRegisteredAttribute()) { - Set<LOM> theUpdates = updateRestrictionFor(aLOM, aAttribute, false); - if (theUpdates != null) - theListOfUpdates.addAll(theUpdates); - } - return theListOfUpdates; - } - - /** - * - COM: <s> update restrictions for a lom on all the a attribute registered in </s> - diff --git a/funcom_test/41323900.txt b/funcom_test/41323900.txt deleted file mode 100644 index 9cfa21f3eee92bec6de96187c989c0a87ff83f70..0000000000000000000000000000000000000000 --- a/funcom_test/41323900.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean hasRestrictions(MetadataSetAttribute aAttribute) { - Hashtable<MetadataSetRelationType, Set<Class>> theRelationTable = itsHashtable - .get(aAttribute); - if (theRelationTable == null || theRelationTable.isEmpty()) - return false; - for (Set<Class> theHeuristics : theRelationTable.values()) { - if (theHeuristics.isEmpty()) - continue; - for (Class o : theHeuristics) { - if (LOMRestrictionHeuristic.class.isAssignableFrom(o)) - return true; - } - } - return false; - } - COM: <s> return true if there are some restrictions registered for a attribute </s> - diff --git a/funcom_test/41323931.txt b/funcom_test/41323931.txt deleted file mode 100644 index 645eaef785089aa474679c9c10575daf1ed4e3c7..0000000000000000000000000000000000000000 --- a/funcom_test/41323931.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void removeSelection() { - SelectionHandler theHandler = getSelectionHandler(); - if (theHandler != null) { - for (Iterator iter = theHandler.getSelection().iterator(); iter - .hasNext();) { - Object element = (Object) iter.next(); - if (element instanceof SelectionableNode) { - SelectionableNode theSelection = (SelectionableNode) element; - theSelection.detach(); - } - } - theHandler.unselectAll(); - } - } - COM: <s> removes the selection </s> - diff --git a/funcom_test/41324004.txt b/funcom_test/41324004.txt deleted file mode 100644 index 440fe4cbe7ac50b59d72a0146e4496f62c2d0478..0000000000000000000000000000000000000000 --- a/funcom_test/41324004.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void paste() { - Set<PNode> theNodes = itsClipboard.getContent(); - for (PNode theNode : theNodes) { - getActiveLayer().addChild(theNode); - } - // init the relations - for (PNode theNode : theNodes) { - if (theNode instanceof LOMRelationUI) { - LOMRelationUI theUI = (LOMRelationUI) theNode; - theUI.init(); - } - } - } - COM: <s> paste the content of the clipboard in the active layer </s> - diff --git a/funcom_test/41324091.txt b/funcom_test/41324091.txt deleted file mode 100644 index 074babec3b6454cbe67b8b4876f35ec9b9157559..0000000000000000000000000000000000000000 --- a/funcom_test/41324091.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean containsValueIn(LOM aLOM, String aString) { - LOMValue theValue = getValueIn(aLOM); - if (theValue instanceof LOMValueInt) { - return theValue.contains(new LOMValueInt(aString, this)); - } else if (theValue instanceof LOMValueVocabularySet) - return theValue.contains(new LOMValueVocabularySet(aString, this)); - else - return theValue.contains(new LOMValueSet(aString, this)); - } - COM: <s> check if a string is contained in this attribute for a lom </s> - diff --git a/funcom_test/41324133.txt b/funcom_test/41324133.txt deleted file mode 100644 index aa9f2c821d2366286d5f73ba39d3716666a38eb6..0000000000000000000000000000000000000000 --- a/funcom_test/41324133.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: static public Element makeXMLElement(LOMValue aLOMValue) { - if (aLOMValue instanceof LOMValueInt) - return LOMValueInt.makeXMLElement((LOMValueInt) aLOMValue); - if (aLOMValue instanceof LOMValueSet) - return LOMValueSet.makeXMLElement((LOMValueSet) aLOMValue); - if (aLOMValue instanceof LOMValueVocabularySet) - return LOMValueVocabularySet - .makeXMLElement((LOMValueVocabularySet) aLOMValue); - return null; - } - COM: <s> return a element based on the values of a lomvalue </s> - diff --git a/funcom_test/41324146.txt b/funcom_test/41324146.txt deleted file mode 100644 index 5241fe0ee96ad493241b1461e52b84c71ca0987f..0000000000000000000000000000000000000000 --- a/funcom_test/41324146.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean isCameraLayer(PNode node) { - if (node instanceof PLayer) { - for (Iterator i = selectableParents.iterator(); i.hasNext();) { - PNode parent = (PNode) i.next(); - if (parent instanceof PCamera) { - if (((PCamera) parent).indexOfLayer((PLayer) node) != -1) { - return true; - } - } - } - } - return false; - } - COM: <s> checks if is camera layer </s> - diff --git a/funcom_test/41324900.txt b/funcom_test/41324900.txt deleted file mode 100644 index a4c9e6df52db36598c6c1adcd5bd7b3898c8b7ff..0000000000000000000000000000000000000000 --- a/funcom_test/41324900.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public double getScoreFor(C aC) { - try { - if (isEmpty()) return 0; - int theScore; - if (itsObjectToRankMap.containsKey(aC)) { - theScore = itsSortedRankToScoreMap.get(itsObjectToRankMap - .get(aC)); - } else - theScore = nextScore(itsSortedScoreToObjectMap.lastKey()); - return getDoubleScore(theScore); - } catch (Exception e) { - System.out.println("*****************WARNING**************"); - return 0; - } - } - COM: <s> return the score for a c </s> - diff --git a/funcom_test/41324941.txt b/funcom_test/41324941.txt deleted file mode 100644 index 1685bdc965c64ff1d9131edf486d1c8ff49fbc34..0000000000000000000000000000000000000000 --- a/funcom_test/41324941.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public double unNormalizedScore(double aScore){ - double theMin = getMinimumScore(); - double theMax = getMaximumScore(); - double theNormalizedMin,theNormalizedMax ; - if (isNaturalOrder) { - theNormalizedMin = 0.02; - theNormalizedMax = 1; - } else { - theNormalizedMin = 0.01; - theNormalizedMax = 0.99; - } - double theScore = aScore * (theMax + (theNormalizedMin - theMin)) / theNormalizedMax; - theScore = theScore + theMin - theNormalizedMin; - return theScore; - } - COM: <s> return the un normalized score for a score </s> - diff --git a/funcom_test/41388155.txt b/funcom_test/41388155.txt deleted file mode 100644 index 7438f431ad091fabc4e61325b63c2ad91348c6a6..0000000000000000000000000000000000000000 --- a/funcom_test/41388155.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Object createSession() throws Exception{ -// Session session = (Session)currentSession.get(); - Session session = currentSession; - System.out.println(session); - if(session == null){ - System.out.println("No Session Found - Create and give the identity"); - - session = getSessionFactory().openSession(); -// currentSession.set(session); - currentSession = session; - return trueOwner; - } - System.out.println("Session Found - Give a Fake identity"); - return fakeOwner; - } - COM: <s> get the hibernate session and set it on the thread local </s> - diff --git a/funcom_test/4150280.txt b/funcom_test/4150280.txt deleted file mode 100644 index 826bca3d3c2d931a185f8c0e6ede51602c0207e2..0000000000000000000000000000000000000000 --- a/funcom_test/4150280.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Boolean isValueIn(String[][] theCategory) { - for (int i = 0; i < theCategory.length; i++) { - for (int j = 0; j < theCategory[i].length; j++) { - if (!theCategory[i][j].isEmpty()) { - return true; - } - } - } - return false; - } - COM: <s> this is used for all the values from a matrix array string </s> - diff --git a/funcom_test/41566093.txt b/funcom_test/41566093.txt deleted file mode 100644 index 89e6d3d1f9030b70b918f468f100f59c20e66bfa..0000000000000000000000000000000000000000 --- a/funcom_test/41566093.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected LWJGLSWTCanvas createCanvas() { - HashMap<String, Object> props = new HashMap<String, Object>(); - props.put(LWJGLSWTConstants.PARENT, this); - props.put(LWJGLSWTConstants.STYLE, SWT.NONE); - props.put(LWJGLSWTConstants.DEPTH_BITS, 8); - return (LWJGLSWTCanvas) DisplaySystem.getDisplaySystem().createCanvas( - 640, 480, "SWT", props); - } - COM: <s> create the canvas </s> - diff --git a/funcom_test/41597700.txt b/funcom_test/41597700.txt deleted file mode 100644 index 115d77f199a291aa9465c6515953debbad508b01..0000000000000000000000000000000000000000 --- a/funcom_test/41597700.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Ticker getTicker() { - if (ticker == null) {//GEN-END:|24-getter|0|24-preInit - // write pre-init user code here - ticker = new Ticker("");//GEN-LINE:|24-getter|1|24-postInit - // write post-init user code here - }//GEN-BEGIN:|24-getter|2| - return ticker; -} - COM: <s> returns an initiliazed instance of ticker component </s> - diff --git a/funcom_test/41597701.txt b/funcom_test/41597701.txt deleted file mode 100644 index 35ac068fdbc5f37e9dd36bb3099ba21ead3261af..0000000000000000000000000000000000000000 --- a/funcom_test/41597701.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getOkCommand() { - if (okCommand == null) {//GEN-END:|35-getter|0|35-preInit - // write pre-init user code here - okCommand = new Command("Ok", "Ok", Command.OK, 0);//GEN-LINE:|35-getter|1|35-postInit - // write post-init user code here - }//GEN-BEGIN:|35-getter|2| - return okCommand; -} - COM: <s> returns an initiliazed instance of ok command component </s> - diff --git a/funcom_test/41709095.txt b/funcom_test/41709095.txt deleted file mode 100644 index 3ee848234936f86883dd292c65677b4a0c1eae01..0000000000000000000000000000000000000000 --- a/funcom_test/41709095.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean setupPathFind(int x,int y, int z) { - PathNode pn=createPathNode(x,y,z,getHeuristicFunction().defaultDirection(x, y, z)); - - float h=getHeuristicFunction().calcHeuristic(x, y, z); - pn.heuristic=h; - if (h<=0) { - found=pn; - return false; - } - - addNode(pn); - return true; - } - COM: <s> sets up the initial path seach </s> - diff --git a/funcom_test/41709139.txt b/funcom_test/41709139.txt deleted file mode 100644 index 06ce10a2e805668b2bd99a5d47576b447d1654a5..0000000000000000000000000000000000000000 --- a/funcom_test/41709139.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String toString() { - StringBuilder sb=new StringBuilder(); - - int s=size(); - for (int i=0; i<s; i++) { - if (i>0) { - if ((i&15)==0) { - sb.append('\n'); - } else { - sb.append(' '); - } - } - int b=data[i]; - sb.append(TextUtils.toHexChar(b>>4)); - sb.append(TextUtils.toHexChar(b)); - } - - return sb.toString(); - } - COM: <s> converts the data to a hex string representation </s> - diff --git a/funcom_test/41709456.txt b/funcom_test/41709456.txt deleted file mode 100644 index aca179ecaed6ab1391d9f41d0f494c605df04517..0000000000000000000000000000000000000000 --- a/funcom_test/41709456.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Text deleteRange(int start, int end) { - if (start>=end) return this; - if ((start<=0)&&(end>=count)) return Text.EMPTY_TEXT; - if (start<=0) return subText(end,count); - if (end>=count) return subText(0,start); - return concat(subText(0,start),subText(end,count)); - } - COM: <s> deletes a block of text </s> - diff --git a/funcom_test/41711908.txt b/funcom_test/41711908.txt deleted file mode 100644 index 5a84d7ebdd9d5283048a35884f140d15ef4d99ca..0000000000000000000000000000000000000000 --- a/funcom_test/41711908.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void addStep(String instructions) { - int step = instructionsPanel.getComponentCount() + 1; - InstructionPanel instructionPanel = new InstructionPanel(instructions); - instructionPanel.addPanelRemovedEventListener(this); - instructionPanel.setStep(step); - instructionsPanel.add(instructionPanel); - instructionsPanel.revalidate(); - instructionsPanel.repaint(); - } - COM: <s> dynamically add a step in the recipes instructions </s> - diff --git a/funcom_test/41728455.txt b/funcom_test/41728455.txt deleted file mode 100644 index 25b5ebd1874fa90047cfb6d6078313e6576cf181..0000000000000000000000000000000000000000 --- a/funcom_test/41728455.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void bindFcNotification(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException,IllegalLifeCycleException { - - Logger.println(LogReflex.info, "ReflexBindingMixin.bindFcNotification " + clientItfName); - Logger.println(LogReflex.debug, myName()); - - // calls the overriden bindFc method - super.bindFc(clientItfName, serverItf); - } - COM: <s> calls the overriden bind fc method </s> - diff --git a/funcom_test/41728472.txt b/funcom_test/41728472.txt deleted file mode 100644 index b637479a1ca4e759f7fe7200e0cd4226619d5fd6..0000000000000000000000000000000000000000 --- a/funcom_test/41728472.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void unbindFcNotification(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { - - Logger.println(LogReflex.info, "ReflexBindingMixin.unbindFcNotification " + clientItfName); - Logger.println(LogReflex.debug, myName()); - - // calls the overriden unbindFc method - super.unbindFc(clientItfName); - } - COM: <s> calls the overriden unbind fc method </s> - diff --git a/funcom_test/41760965.txt b/funcom_test/41760965.txt deleted file mode 100644 index e1e1b87aa1ae4887c686726029896e89c5ea426a..0000000000000000000000000000000000000000 --- a/funcom_test/41760965.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean match(Token.TokenType expected) { - if (token.getType() == expected) { - if (scanner.hasMoreTokens()) { - token = scanner.getNextToken(); - } - return true; - } else { - String errorMsg = syntaxError("Unexpected token -> ") - + token.print(); - errorArray.add(new ParseError(errorMsg, token.getLineNumber())); - } - return false; - } - COM: <s> checks the current token of the parser against an expected token type </s> - diff --git a/funcom_test/41761014.txt b/funcom_test/41761014.txt deleted file mode 100644 index 2edb6a4f03eb7cf7cd7de57d85b453a08b43cff8..0000000000000000000000000000000000000000 --- a/funcom_test/41761014.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public TreeNode createNewNode() { - TreeNode t = SyntaxTree.makeNewNode(token); - if ((t != null)) { - if (token.getType() == Token.TokenType.BEGIN) { - beginFirst = false; - } else if (token.getType() == Token.TokenType.END) { - endFirst = false; - } - } - tryMatch(token.getType()); - return t; - } - COM: <s> creates a new tree node based on the current token </s> - diff --git a/funcom_test/41761072.txt b/funcom_test/41761072.txt deleted file mode 100644 index 9c94e5de23d53ece8d4179811ca6caae6ae31655..0000000000000000000000000000000000000000 --- a/funcom_test/41761072.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private TreeNode parseExpressionList() { - TreeNode t = parseExpression(); - TreeNode p = t; - - while (token.getType() != Token.TokenType.RPARENS) { - TreeNode q; - tryMatch(Token.TokenType.SEP); - q = parseExpression(); - if (q != null) { - if (t == null) { - t = p = q; - } else { - p.setSibling(q); - p = q; - } - } else { - break; - } - } - - return t; - } - COM: <s> parses a list of expressions </s> - diff --git a/funcom_test/41761107.txt b/funcom_test/41761107.txt deleted file mode 100644 index eff1f7d806baf1d3c7a9308f2fcf05d0345738fb..0000000000000000000000000000000000000000 --- a/funcom_test/41761107.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private TreeNode parseSimpleExpression() { - TreeNode t = parseTerm(); - while ((token.getType() == Token.TokenType.PLUS) - || token.getType() == Token.TokenType.MINUS) { - TreeNode p = SyntaxTree.makeNewNode(token); - if (p != null) { - p.setChild(0, t); - // t.setToken(token); - - t = p; - tryMatch(token.getType()); - - t.setChild(1, parseTerm()); - } - } - return t; - } - COM: <s> parses any addition subtraction in an expression </s> - diff --git a/funcom_test/41761114.txt b/funcom_test/41761114.txt deleted file mode 100644 index c0f84bfff4dcf7faa8d0fa4bcd43ad3a7c2034b4..0000000000000000000000000000000000000000 --- a/funcom_test/41761114.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private TreeNode parseTerm() { - TreeNode t = parseFactor(); - while ((token.getType() == Token.TokenType.MULT)) { - TreeNode p = SyntaxTree.makeNewNode(token); - if (p != null) { - p.setChild(0, t); - p.setToken(token); - t = p; - tryMatch(token.getType()); - p.setChild(1, parseFactor()); - } - } - return t; - } - COM: <s> parses any multiplications </s> - diff --git a/funcom_test/41761118.txt b/funcom_test/41761118.txt deleted file mode 100644 index 53148396af1af20964523c93d16695a62fa199f9..0000000000000000000000000000000000000000 --- a/funcom_test/41761118.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private TreeNode parseFactor() { - TreeNode t = parseBasicNumber(); - while ((token.getType() == Token.TokenType.EXP)) { - TreeNode p = SyntaxTree.makeNewNode(token); - if (p != null) { - p.setChild(0, t); - p.setToken(token); - t = p; - tryMatch(token.getType()); - p.setChild(1, parseBasicNumber()); - } - } - return t; - } - COM: <s> parses any exponentionals in the expression </s> - diff --git a/funcom_test/41761120.txt b/funcom_test/41761120.txt deleted file mode 100644 index f523dbfe45c117d35f07909b495d4ba6ed0441ca..0000000000000000000000000000000000000000 --- a/funcom_test/41761120.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: private TreeNode parseBasicNumber() { - TreeNode t = null; - switch (token.getType()) { - case INTNUM: - case ID: - t = createNewNode(); - break; - case LPARENS: - tryMatch(Token.TokenType.LPARENS); - t = parseExpression(); - tryMatch(Token.TokenType.RPARENS); - break; - default: - String errorMsg = syntaxError("Unexpected token -> ") - + token.print(); - errorArray.add(new ParseError(errorMsg, token.getLineNumber())); - - if (scanner.hasMoreTokens()) { - token = scanner.getNextToken(); - } - break; - } - return t; - } - COM: <s> parses a nuimber </s> - diff --git a/funcom_test/41779193.txt b/funcom_test/41779193.txt deleted file mode 100644 index f8bfe4e8b236ecf22da6e66b213b6f9aa3bb3cdb..0000000000000000000000000000000000000000 --- a/funcom_test/41779193.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdConfirm() { - if (cmdConfirm == null) {//GEN-END:|31-getter|0|31-preInit - // write pre-init user code here - cmdConfirm = new Command("Conferma", Command.OK, 0);//GEN-LINE:|31-getter|1|31-postInit - // write post-init user code here - }//GEN-BEGIN:|31-getter|2| - return cmdConfirm; - } - COM: <s> returns an initiliazed instance of cmd confirm component </s> - diff --git a/funcom_test/41779215.txt b/funcom_test/41779215.txt deleted file mode 100644 index 4d62fb39808bc7937c246024601ab247985e4479..0000000000000000000000000000000000000000 --- a/funcom_test/41779215.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdAbout1() { - if (cmdAbout1 == null) {//GEN-END:|35-getter|0|35-preInit - // write pre-init user code here - cmdAbout1 = new Command("ABOUT", Command.SCREEN, 0);//GEN-LINE:|35-getter|1|35-postInit - // write post-init user code here - }//GEN-BEGIN:|35-getter|2| - return cmdAbout1; - } - COM: <s> returns an initiliazed instance of cmd about1 component </s> - diff --git a/funcom_test/41779397.txt b/funcom_test/41779397.txt deleted file mode 100644 index 4c4acde49e1389baa6a0804c85e721d3ec6a9243..0000000000000000000000000000000000000000 --- a/funcom_test/41779397.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public ChoiceGroup getLstCanale() { - if (lstCanale == null) {//GEN-END:|49-getter|0|49-preInit - lstCanale = new ChoiceGroup("Canale", Choice.POPUP);//GEN-BEGIN:|49-getter|1|49-postInit - lstCanale.setSelectedFlags(new boolean[] { });//GEN-END:|49-getter|1|49-postInit - }//GEN-BEGIN:|49-getter|2| - return lstCanale; - } - COM: <s> returns an initiliazed instance of lst canale component </s> - diff --git a/funcom_test/41779427.txt b/funcom_test/41779427.txt deleted file mode 100644 index 1dee09de2e47e2df4694a2305ecce3eb238b25ea..0000000000000000000000000000000000000000 --- a/funcom_test/41779427.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdAbout() { - if (cmdAbout == null) {//GEN-END:|65-getter|0|65-preInit - // write pre-init user code here - cmdAbout = new Command("About", Command.SCREEN, 0);//GEN-LINE:|65-getter|1|65-postInit - // write post-init user code here - }//GEN-BEGIN:|65-getter|2| - return cmdAbout; - } - COM: <s> returns an initiliazed instance of cmd about component </s> - diff --git a/funcom_test/41779496.txt b/funcom_test/41779496.txt deleted file mode 100644 index c532e4940356826b6b36da5851a1c9db7563e78d..0000000000000000000000000000000000000000 --- a/funcom_test/41779496.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdSend() { - if (cmdSend == null) {//GEN-END:|77-getter|0|77-preInit - // write pre-init user code here - cmdSend = new Command("Invia", Command.OK, 0);//GEN-LINE:|77-getter|1|77-postInit - // write post-init user code here - }//GEN-BEGIN:|77-getter|2| - return cmdSend; - } - COM: <s> returns an initiliazed instance of cmd send component </s> - diff --git a/funcom_test/41779519.txt b/funcom_test/41779519.txt deleted file mode 100644 index 8bcd8b05c82383a67e9c49a858c3bddaeded4209..0000000000000000000000000000000000000000 --- a/funcom_test/41779519.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdRipeti() { - if (cmdRipeti == null) {//GEN-END:|82-getter|0|82-preInit - // write pre-init user code here - cmdRipeti = new Command("Inserimento dati", Command.SCREEN, 0);//GEN-LINE:|82-getter|1|82-postInit - // write post-init user code here - }//GEN-BEGIN:|82-getter|2| - return cmdRipeti; - } - COM: <s> returns an initiliazed instance of cmd ripeti component </s> - diff --git a/funcom_test/41779534.txt b/funcom_test/41779534.txt deleted file mode 100644 index 73b1d9320ff7ea997b7f73414b8551367825af1f..0000000000000000000000000000000000000000 --- a/funcom_test/41779534.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getExitCommand1() { - if (exitCommand1 == null) {//GEN-END:|84-getter|0|84-preInit - // write pre-init user code here - exitCommand1 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|84-getter|1|84-postInit - // write post-init user code here - }//GEN-BEGIN:|84-getter|2| - return exitCommand1; - } - COM: <s> returns an initiliazed instance of exit command1 component </s> - diff --git a/funcom_test/41779670.txt b/funcom_test/41779670.txt deleted file mode 100644 index 1e8af9268aa901dd26ff2f2099eb648b6055ed6f..0000000000000000000000000000000000000000 --- a/funcom_test/41779670.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdCorreggi() { - if (cmdCorreggi == null) {//GEN-END:|92-getter|0|92-preInit - // write pre-init user code here - cmdCorreggi = new Command("Modifica dati", Command.SCREEN, 0);//GEN-LINE:|92-getter|1|92-postInit - // write post-init user code here - }//GEN-BEGIN:|92-getter|2| - return cmdCorreggi; - } - COM: <s> returns an initiliazed instance of cmd correggi component </s> - diff --git a/funcom_test/41779718.txt b/funcom_test/41779718.txt deleted file mode 100644 index fb0a8e20f423cb08f1dcc15ce80b0bcc79157f3f..0000000000000000000000000000000000000000 --- a/funcom_test/41779718.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdTV() { - if (cmdTV == null) {//GEN-END:|101-getter|0|101-preInit - // write pre-init user code here - cmdTV = new Command("TV", Command.OK, 0);//GEN-LINE:|101-getter|1|101-postInit - // write post-init user code here - }//GEN-BEGIN:|101-getter|2| - return cmdTV; - } - COM: <s> returns an initiliazed instance of cmd tv component </s> - diff --git a/funcom_test/41779742.txt b/funcom_test/41779742.txt deleted file mode 100644 index 1b2c052471ae8460bc3bbdb7cf22f4b65aa80c14..0000000000000000000000000000000000000000 --- a/funcom_test/41779742.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdRADIO() { - if (cmdRADIO == null) {//GEN-END:|104-getter|0|104-preInit - // write pre-init user code here - cmdRADIO = new Command("Radio", Command.OK, 0);//GEN-LINE:|104-getter|1|104-postInit - // write post-init user code here - }//GEN-BEGIN:|104-getter|2| - return cmdRADIO; - } - COM: <s> returns an initiliazed instance of cmd radio component </s> - diff --git a/funcom_test/41779827.txt b/funcom_test/41779827.txt deleted file mode 100644 index d915289843a093fc7f843994dd1779ae956bbd6a..0000000000000000000000000000000000000000 --- a/funcom_test/41779827.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdRetrieve() { - if (cmdRetrieve == null) {//GEN-END:|108-getter|0|108-preInit - // write pre-init user code here - cmdRetrieve = new Command("Mostra programmazioni", Command.SCREEN, 0);//GEN-LINE:|108-getter|1|108-postInit - // write post-init user code here - }//GEN-BEGIN:|108-getter|2| - return cmdRetrieve; - } - COM: <s> returns an initiliazed instance of cmd retrieve component </s> - diff --git a/funcom_test/41779840.txt b/funcom_test/41779840.txt deleted file mode 100644 index 4e4e00aa902caea3035a3ce319994b562cf55463..0000000000000000000000000000000000000000 --- a/funcom_test/41779840.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getCmdLogin() { - if (cmdLogin == null) {//GEN-END:|113-getter|0|113-preInit - // write pre-init user code here - cmdLogin = new Command("Login", Command.SCREEN, 0);//GEN-LINE:|113-getter|1|113-postInit - // write post-init user code here - }//GEN-BEGIN:|113-getter|2| - return cmdLogin; - } - COM: <s> returns an initiliazed instance of cmd login component </s> - diff --git a/funcom_test/41779847.txt b/funcom_test/41779847.txt deleted file mode 100644 index 94057e4d559c096e6781131098898336a5866e82..0000000000000000000000000000000000000000 --- a/funcom_test/41779847.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getBackCommand() { - if (backCommand == null) {//GEN-END:|116-getter|0|116-preInit - // write pre-init user code here - backCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|116-getter|1|116-postInit - // write post-init user code here - }//GEN-BEGIN:|116-getter|2| - return backCommand; - } - COM: <s> returns an initiliazed instance of back command component </s> - diff --git a/funcom_test/41779884.txt b/funcom_test/41779884.txt deleted file mode 100644 index 7dd4372f7c2d8d305d02483d679cc1c7bece5e2a..0000000000000000000000000000000000000000 --- a/funcom_test/41779884.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Command getScreenCommand() { - if (screenCommand == null) {//GEN-END:|129-getter|0|129-preInit - // write pre-init user code here - screenCommand = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|129-getter|1|129-postInit - // write post-init user code here - }//GEN-BEGIN:|129-getter|2| - return screenCommand; - } - COM: <s> returns an initiliazed instance of screen command component </s> - diff --git a/funcom_test/41782470.txt b/funcom_test/41782470.txt deleted file mode 100644 index 0e8563b590ecd74a66eb3ec8d185351234dfb262..0000000000000000000000000000000000000000 --- a/funcom_test/41782470.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void enter() { - Display display = context.getDisplay(); - Displayable displayable = getDisplayable(); - Command[] commands = getCommands(); - for(int ii = 0; ii < commands.length; ii++) - displayable.addCommand(commands[ii]); - displayable.setCommandListener(this); - displayable.setTitle(getTitle() ); - display.setCurrent(displayable ); - } - COM: <s> make this screen visible on the display and register the </s> - diff --git a/funcom_test/41782527.txt b/funcom_test/41782527.txt deleted file mode 100644 index 49adb69fc6819c22a63605ed619a4493dab66e1b..0000000000000000000000000000000000000000 --- a/funcom_test/41782527.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void meetingScheduled(Range timeRange, String title) { - System.out.println("Meeting scheduled "+ timeRange+ title); - Date startDate = new Date(timeRange.getLeft()); - Date endDate = new Date(timeRange.getRight()); - currentScreen.switchScreen(new MeetingScheduledScreen(this,startDate,endDate,title)); - } - COM: <s> event fired by the scheduler host when a successful meeting has been scheduled </s> - diff --git a/funcom_test/41782568.txt b/funcom_test/41782568.txt deleted file mode 100644 index c8e1ca8c38cb045c5e7cc85ca4f26581e6787383..0000000000000000000000000000000000000000 --- a/funcom_test/41782568.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public RangeSet union(RangeSet other) { - RangeSet result = new RangeSet(); - for (int ii = 0; ii < ranges.size(); ii++) - result.addRange((Range) ranges.elementAt(ii)); - Vector otherRanges = other.getRanges(); - for (int ii = 0; ii < otherRanges.size(); ii++) - result.addRange((Range) otherRanges.elementAt(ii)); - - return result; - } - COM: <s> unions this range set with another </s> - diff --git a/funcom_test/41798938.txt b/funcom_test/41798938.txt deleted file mode 100644 index 34f2c03223b3437bfafb9dcad8822ef92cd3b4f7..0000000000000000000000000000000000000000 --- a/funcom_test/41798938.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void stopService() { - if (smsconn != null) { - try { - Log.info("[OTAService] Closing"); - smsconn.close(); - Log.info("[OTAService] Closed"); - } catch (IOException ioe) { - ioe.printStackTrace(); - Log.error("[OTAService] IOException closing smsConnection"); - } - } - } - COM: <s> stop the service </s> - diff --git a/funcom_test/41798941.txt b/funcom_test/41798941.txt deleted file mode 100644 index 256e63ac285ce85e322feabdca8e6bb07d9436eb..0000000000000000000000000000000000000000 --- a/funcom_test/41798941.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void notifyIncomingMessage(MessageConnection messageConnection) { - Log.info("[OTAMessagesListener] notifyIncomingMessage invoked"); - Log.info("[OTAMessagesListener] smsHandling: " + smsHandling); - - pending++; - smsHandling = true; - if(!startViaOTA){ - syncViaSMS = true; - }else{ - startViaOTA = false; - } - threadPool.startThread(this); - } - COM: <s> callback method invoked when an sms is received on a specific port </s> - diff --git a/funcom_test/41798946.txt b/funcom_test/41798946.txt deleted file mode 100644 index 6073c1dba71bf782fe8376653d82d042ef0c33df..0000000000000000000000000000000000000000 --- a/funcom_test/41798946.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void run() { - // We were monitoring an operation whose idx is nextTimed - // check if it terminated - if (terminated == false) { - // The operation did not terminate - // We force an exception to wake up the thread - Log.error("[CTPService] An IO operation did not complete before" - + " maximum allowed time. Restart the CTPService"); - closeConnection(); - } - } - COM: <s> this method is invoked when the alarm expires </s> - diff --git a/funcom_test/41799005.txt b/funcom_test/41799005.txt deleted file mode 100644 index 95073b677764a921c00b11ea11fab87cff1667e8..0000000000000000000000000000000000000000 --- a/funcom_test/41799005.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void initLogFile() { - - try { - sc = (SocketConnection) Connector.open(serverUrl); - sc.setSocketOption(SocketConnection.LINGER, 5); - - os = sc.openOutputStream(); - } catch (Exception e) { - System.out.println("Cannot open socket at: " + serverUrl); - e.printStackTrace(); - } - } - COM: <s> console appender doesnt implement this method </s> - diff --git a/funcom_test/41799030.txt b/funcom_test/41799030.txt deleted file mode 100644 index 86bca61c32b53594c2958c299105ffdfd930db12..0000000000000000000000000000000000000000 --- a/funcom_test/41799030.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getNextString(String sep) { - if (isEmpty()) { - return null; - } - String ret = null; - int idx = buf.indexOf(sep, start); - if (idx == -1 || idx > end) { - ret = buf.substring(start, end); - start = end; - } else { - ret = buf.substring(start, idx); - start = idx+sep.length(); - } - return ret; - } - COM: <s> gets the next chunk using the given separator as a plain string </s> - diff --git a/funcom_test/41799033.txt b/funcom_test/41799033.txt deleted file mode 100644 index 1512c2e195041fa4330eaffcf2e473c3b6026442..0000000000000000000000000000000000000000 --- a/funcom_test/41799033.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void deleteLogFile(){ - try { - //Delete Log RecordStore - RecordStore.deleteRecordStore(dbName); - System.out.println("Log File deleted"); - } catch (RecordStoreNotFoundException ex) { - System.out.println("Log file not found."); - } catch (RecordStoreException ex) { - System.out.println("RecordStoreException: " + ex); - } - } - COM: <s> resets ds log store and catch all possible exception </s> - diff --git a/funcom_test/41799064.txt b/funcom_test/41799064.txt deleted file mode 100644 index 0d4ee6f1935c75e9a71096848cf36bcbb91498f7..0000000000000000000000000000000000000000 --- a/funcom_test/41799064.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getDaysSince(Date date) { - long millisecs = date.getTime(); - Date d = cal.getTime(); - long time = d.getTime(); - long daysMillisecs = time - millisecs; - int days = (int)((((daysMillisecs / 1000)/60)/60)/24); - return days; - } - COM: <s> get the days passed from the specified date up to the date provided </s> - diff --git a/funcom_test/41799095.txt b/funcom_test/41799095.txt deleted file mode 100644 index 0403e25e9aaf585cc39507db544e72764053665f..0000000000000000000000000000000000000000 --- a/funcom_test/41799095.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean create(String name) throws RecordStoreException, IOException { - // If the record store was actually opened, - if(objs.create(name)){ - // and it was already created - if(objs.size() > 0) { - // get the map - objmap.load(); - } - else { - // otherwise initialize it - objmap.init(); - } - return true; - } - return false; - } - COM: <s> creates a new record store or open an existing one </s> - diff --git a/funcom_test/41799114.txt b/funcom_test/41799114.txt deleted file mode 100644 index 4b097ee3dbfb815e2c2a39a146bb574e28c4b8a8..0000000000000000000000000000000000000000 --- a/funcom_test/41799114.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testThreadPool() throws AssertionFailedException { - - for (int i=0; i<TEST_NUM_THREADS; i++) { - Log.debug("Request starting thread n. " + i); - threadPool.startThread(new MyRunnableClass()); - } - - // assertion not really useful due to threads usage - assertTrue(true); - } - COM: <s> try to start concurrently 10 threads while the max </s> - diff --git a/funcom_test/41799122.txt b/funcom_test/41799122.txt deleted file mode 100644 index e1e061a007a0ba975d9790812dd7504f3c0b2f56..0000000000000000000000000000000000000000 --- a/funcom_test/41799122.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int size() { - int ret = 0; - try { - if(rs != null) { - ret = rs.getNumRecords(); - } else { - return -1; - } - } catch (RecordStoreNotOpenException ex) { - Log.error("Can't get size of ObjectStore: recordstore not open."); - ret = -1; - } - return ret; - } - COM: <s> return the number of records in this object store </s> - diff --git a/funcom_test/41799140.txt b/funcom_test/41799140.txt deleted file mode 100644 index db81ccab40b3ccfdb16a6c4ef707c5e32a1f3fcc..0000000000000000000000000000000000000000 --- a/funcom_test/41799140.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int store(Serializable obj) throws RecordStoreException, IOException { - ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); - DataOutputStream out = new DataOutputStream(byteStream); - - obj.serialize(out); - - byte[] data = byteStream.toByteArray(); - int ret = rs.addRecord(data, 0, data.length); - obj = null; - data = null; - byteStream = null; - out = null; - return ret; - } - COM: <s> store the serializable object in a new record </s> - diff --git a/funcom_test/41799146.txt b/funcom_test/41799146.txt deleted file mode 100644 index e0bedca46fa44e2573cc11914040145cba0639ae..0000000000000000000000000000000000000000 --- a/funcom_test/41799146.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void testWriteLogFileAfterRotation() throws Exception { - LogViewer lv = new LogViewer(); - String[] actualLog = lv.getLogEntries(lv.RMSLOG); - RecordStore rs = RecordStore.openRecordStore(RMSAppender.LOGDBNAME, true); - assertTrue(rs.getNumRecords()!=0); - assertTrue(rs.getNumRecords() == actualLog.length); - - } - COM: <s> test if the last log messages have been correctly rotated </s> - diff --git a/funcom_test/41799149.txt b/funcom_test/41799149.txt deleted file mode 100644 index e9e1b75dafb456e442039dd990bdb20c87d9da76..0000000000000000000000000000000000000000 --- a/funcom_test/41799149.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testparseRfc2822Date() throws AssertionFailedException { - Log.debug("parseRfc2822Date"); - System.out.println("\nTESTING parseRfc2822Date()"); - - String d = rfc2822; - Date expectedResultDate = dateobject; - Date resultDate = MailDateFormatter.parseRfc2822Date(d); - String expectedResult = expectedResultDate.toString(); - String result = resultDate.toString(); - - assertEquals(expectedResult, result); - } - COM: <s> test of parse rfc2822 date method of class </s> - diff --git a/funcom_test/41799151.txt b/funcom_test/41799151.txt deleted file mode 100644 index fe299b42e5f01f9aad618336c0afc7c57140daf8..0000000000000000000000000000000000000000 --- a/funcom_test/41799151.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testparseUTCDate() throws AssertionFailedException { - Log.debug("parseUTCDate"); - System.out.println("\nTESTING parseUTCDate()"); - - String utc = this.utc; - Date expectedResultDate = dateobject; - Date resultDate = MailDateFormatter.parseUTCDate(utc); - String expectedResult = expectedResultDate.toString(); - String result = resultDate.toString(); - - assertEquals(expectedResult, result); - } - COM: <s> test of parse utcdate method of class com </s> - diff --git a/funcom_test/41799177.txt b/funcom_test/41799177.txt deleted file mode 100644 index 88e76085f3625f107548275076e4dde1cefd7d74..0000000000000000000000000000000000000000 --- a/funcom_test/41799177.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void test(int testNumber) throws Throwable { - - switch(testNumber) { - case 0: testCreate(); break; - case 1: testOpen(); break; - case 2: testStore(); break; - case 3: testRetrieveExistent(); break; - case 4: testRetrieveNotExistent(); break; - case 5: testStoreVector(); break; - case 6: testRetrieveVector(); break; - default: break; - } - } - COM: <s> run the tests </s> - diff --git a/funcom_test/41799204.txt b/funcom_test/41799204.txt deleted file mode 100644 index 2f94c224a29ad36d3a34757170de03f73078a45d..0000000000000000000000000000000000000000 --- a/funcom_test/41799204.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initialize() { - storedClass = new TestClass("storedHt"); - storedContainer = new TestContainer(storedClass); - objs = new ObjectStore(); - try { - objs.create(STORENAME); - } catch (RecordStoreException ex) { - ex.printStackTrace(); - } - getDisplay().setCurrent(get_mainForm()); - } - COM: <s> this method initializes the application </s> - diff --git a/funcom_test/41799236.txt b/funcom_test/41799236.txt deleted file mode 100644 index 35b98c5e8f64c4f671a3c3c9cae0b5eaf7d7aa27..0000000000000000000000000000000000000000 --- a/funcom_test/41799236.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void writeObjsRecord(ObjectStore objs) { - try { - objs.open(STORENAME); - objs.store(storedClass); - objs.store(storedContainer); - objs.close(); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (RecordStoreException ex) { - ex.printStackTrace(); - } - } - COM: <s> writes some record to the given recordstore </s> - diff --git a/funcom_test/41799278.txt b/funcom_test/41799278.txt deleted file mode 100644 index 5f1fa70f826287787926df270e35b4bc0c4f37c1..0000000000000000000000000000000000000000 --- a/funcom_test/41799278.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void serialize( DataOutputStream out ) throws IOException { - out.writeInt(objmap.size()); - for(Enumeration e = objmap.keys(); e.hasMoreElements(); ){ - String key = (String) e.nextElement(); - int val = ((Integer)objmap.get(key)).intValue(); - - out.writeUTF(key); - out.writeInt(val); - } - } - COM: <s> write object fields to the output stream </s> - diff --git a/funcom_test/41799288.txt b/funcom_test/41799288.txt deleted file mode 100644 index 7f003bac9410b5bf94ead7433348e1500e01f934..0000000000000000000000000000000000000000 --- a/funcom_test/41799288.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void closeConnection() { - try { - if (os != null) { - os.close(); - } - if (is != null) { - is.close(); - } - if (sc != null) { - sc.close(); - } - } catch (IOException e) { - Log.error("[CTPService] Cannot force socket closure"); - } finally { - os = null; - is = null; - sc = null; - } - } - COM: <s> close the connection forcing exceptions if there are pending network io </s> - diff --git a/funcom_test/41799291.txt b/funcom_test/41799291.txt deleted file mode 100644 index da0422551a8979e3d37dd993b73fb9c7d90c8bad..0000000000000000000000000000000000000000 --- a/funcom_test/41799291.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void deserialize( DataInputStream in ) throws IOException { - objmap.clear(); - int size = in.readInt(); - - for(int i=0; i<size; i++ ){ - String key = in.readUTF(); - Integer val = new Integer(in.readInt()); - objmap.put(key, val); - } - } - COM: <s> read object field from the input stream </s> - diff --git a/funcom_test/41799564.txt b/funcom_test/41799564.txt deleted file mode 100644 index bacf33f84e12d1f15d1081869a6e795b292a84ad..0000000000000000000000000000000000000000 --- a/funcom_test/41799564.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String byteArrayToString(byte[] array) { - StringBuffer res = new StringBuffer(); - for (int i=0;i<array.length;++i) { - String hexString = Integer.toHexString(array[i] & 0xFF); - res.append(hexString + " "); - } - return res.toString(); - } - COM: <s> this method is for debugging purpose only </s> - diff --git a/funcom_test/41813630.txt b/funcom_test/41813630.txt deleted file mode 100644 index 20fed716841e76a046093b543cd4d525fa3785c7..0000000000000000000000000000000000000000 --- a/funcom_test/41813630.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected ImageIcon createImageIcon(String path) { - // java.net.URL imgURL = TabbedPaneDemo.class.getResource(path); - // if (imgURL != null) { - // return new ImageIcon(imgURL); - // } else { - // System.err.println("Couldn't find file: " + path); - // return null; - // } - return null; - } - COM: <s> returns an image icon or null if the path was invalid </s> - diff --git a/funcom_test/41813631.txt b/funcom_test/41813631.txt deleted file mode 100644 index f2835a1947cd46bc42fa828e391da0160d9e9c53..0000000000000000000000000000000000000000 --- a/funcom_test/41813631.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void valueChanged(TreeSelectionEvent e) { - DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree - .getLastSelectedPathComponent(); - - if (node == null) - return; - - Object nodeInfo = node.getUserObject(); - if (node.isLeaf()) { - BookInfo book = (BookInfo) nodeInfo; - displayURL(book.bookURL); - if (DEBUG) { - logger.info(book.bookURL + ": \n "); - } - } else { - displayURL(helpURL); - } - if (DEBUG) { - logger.info(nodeInfo.toString()); - } - } - COM: <s> required by tree selection listener interface </s> - diff --git a/funcom_test/41830764.txt b/funcom_test/41830764.txt deleted file mode 100644 index cad248b6b19b0209a82a84e8f56c5d1d06c66cbf..0000000000000000000000000000000000000000 --- a/funcom_test/41830764.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected Dialog onCreateDialog(int id) { - AlertDialog.Builder b; - switch (id) { - case CONTEXTMENU: - b = new AlertDialog.Builder(this.getContext()); - b.setTitle(contextMenu.getTitle()); - b.setItems(contextMenu.getMenuEntries(), - new DialogInterface.OnClickListener() { - public void onClick(DialogInterface dialog, int which) { - dialog.dismiss(); - ViewWithContextAndDialog.this - .onContextMenuItemClicked(contextMenu - .getID(which)); - } - }); - return b.create(); - } - return null; - } - COM: <s> is called when a dialog with id id should be shown </s> - diff --git a/funcom_test/41830810.txt b/funcom_test/41830810.txt deleted file mode 100644 index 8d71c6630647cf1b6c25d5fc830e50d18449e533..0000000000000000000000000000000000000000 --- a/funcom_test/41830810.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void insertLogin(String host, String username, String password) { - - Log.d(DT, "Saving PW: "+password); - - db.execSQL("INSERT OR REPLACE INTO " + LOGIN_TABLE + " (" + HOST + ", " - + USERNAME + ", " + PASSWORD + ") VALUES ('" + host + "','" - + username + "','" + password + "')"); - } - COM: <s> inserts username and password for a host </s> - diff --git a/funcom_test/41830982.txt b/funcom_test/41830982.txt deleted file mode 100644 index e61d2108c79ab7c9fb884db46ea3f535075d094d..0000000000000000000000000000000000000000 --- a/funcom_test/41830982.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int addGeoRSS(GeoRSSFeed feed) { - int ret = -1; - Cursor c = db.query(GEORSS_TABLE, new String[] { ID }, GEORSS_URL - + "='" + feed.url + "'", null, null, null, null); - - if (c.moveToFirst()) { - ret = c.getInt(0); - } else { - db.insert(GEORSS_TABLE, null, getContentValues(feed)); - c.requery(); - c.moveToFirst(); - ret = c.getInt(0); - } - c.close(); - return ret; - } - COM: <s> adds a new geo rssfeed to the database </s> - diff --git a/funcom_test/41831019.txt b/funcom_test/41831019.txt deleted file mode 100644 index e25b5ca21b8f1b8e1862842a0f4f8cff828a9268..0000000000000000000000000000000000000000 --- a/funcom_test/41831019.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean isGeoRSSEntryRead(int entryID) { - boolean ret = false; - Cursor c = db.query(ENTRIES_TABLE, new String[] { ENTRIES_READ }, ID - + "=" + entryID, null, null, null, null); - if (c.moveToFirst()) { - ret = c.getInt(0) == TRUE; - } - - c.close(); - return ret; - } - COM: <s> is a specific entry marked as read </s> - diff --git a/funcom_test/41831032.txt b/funcom_test/41831032.txt deleted file mode 100644 index c0ebc6e726ce1df360bc6b51fd537dd6c095e635..0000000000000000000000000000000000000000 --- a/funcom_test/41831032.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getLayerData(int layerID, String column) { - Cursor c = db.query(LAYER_TABLE, new String[] { column }, ID + "=" - + layerID, null, null, null, null); - String ret = null; - - if (c.moveToFirst()) { - ret = c.getString(0); - } - c.close(); - return ret; - } - COM: <s> get data of a layer as string </s> - diff --git a/funcom_test/41831036.txt b/funcom_test/41831036.txt deleted file mode 100644 index a743fa963c0cf4cb72f5e0f31094d935f35c02f9..0000000000000000000000000000000000000000 --- a/funcom_test/41831036.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getUnreadEntryCount(int geoRSSID) { - Cursor c = db.rawQuery("SELECT COUNT(" + ID + ") FROM " + ENTRIES_TABLE - + " WHERE " + ENTRIES_READ + "=" + FALSE + " AND " - + ENTRIES_GEORSS + "=" + geoRSSID, null); - c.moveToFirst(); - int ret = c.getInt(0); - c.close(); - return ret; - } - COM: <s> get the count of all unread entries in a specific geo rssfeed </s> - diff --git a/funcom_test/41831038.txt b/funcom_test/41831038.txt deleted file mode 100644 index 1c20e2e11d6f1e86b3a4908e76f8cc5d91d74d80..0000000000000000000000000000000000000000 --- a/funcom_test/41831038.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getSRSforVisibleLayers(int wmsID) { - - String ret = null; - - Cursor c = db.rawQuery(selectSRSforVisibleLayers, new String[] { - "" + wmsID, "" + wmsID }); - - if (c.moveToFirst()) { - ret = c.getString(0); - if (c.moveToNext()) { - ret = ""; - } - } else { - ret = ""; - } - c.close(); - return ret; - } - COM: <s> get all srs for the visible layers </s> - diff --git a/funcom_test/41831052.txt b/funcom_test/41831052.txt deleted file mode 100644 index 5f71da5f4012002e27699e5fbaad9e7880d0dad8..0000000000000000000000000000000000000000 --- a/funcom_test/41831052.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getWMSData(int wmsID, String column) { - Cursor c = db.query(WMS_TABLE, new String[] { column }, ID + "=" - + wmsID, null, null, null, null); - String ret = null; - - if (c.moveToFirst()) { - ret = c.getString(0); - } - c.close(); - return ret; - } - COM: <s> get data of a wms as string </s> - diff --git a/funcom_test/41831163.txt b/funcom_test/41831163.txt deleted file mode 100644 index ad4889783a76b652bfef3348485dca2ab3293a12..0000000000000000000000000000000000000000 --- a/funcom_test/41831163.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int getContainingLayerCount(int layerID) { - Cursor c = db.query(LAYER_TABLE, new String[] { ID }, LAYER_rootLayer - + "=" + layerID, null, null, null, null); - int ret = 0; - if (c.moveToFirst()) { - do { - ret += getContainingLayerCount(c.getInt(0)) + 1; - } while (c.moveToNext()); - } - c.close(); - return ret; - } - COM: <s> get the count of layers in a root layer </s> - diff --git a/funcom_test/41831406.txt b/funcom_test/41831406.txt deleted file mode 100644 index 0e05ad27af9e0ee584ca7295757c3db8ab5995da..0000000000000000000000000000000000000000 --- a/funcom_test/41831406.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void deleteSOS(int sosID) { - Cursor c = db.query(Offering_TABLE, new String[] { ID }, Offering_sos - + "=" + sosID, null, null, null, null); - if (c.moveToFirst()) { - do { - deleteOffering(c.getInt(0)); - } while (c.moveToNext()); - } - c.close(); - - db.delete(SOS_TABLE, ID + "=" + sosID, null); - } - COM: <s> delete a sos from the database </s> - diff --git a/funcom_test/41831420.txt b/funcom_test/41831420.txt deleted file mode 100644 index d52fd3e46b23a8ea21a897738c5bc24ad00f371c..0000000000000000000000000000000000000000 --- a/funcom_test/41831420.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getColor(int sosID) { - Cursor c = db.query(SOS_TABLE, new String[] { SOS_color }, ID + "=" - + sosID, null, null, null, null); - int ret = -1; - if (c.moveToFirst()) { - ret = c.getInt(0); - } - c.close(); - return ret; - - } - COM: <s> get the color of a sensor observation service </s> - diff --git a/funcom_test/41831430.txt b/funcom_test/41831430.txt deleted file mode 100644 index fb0c5e7e2278097764dbd50d323c05453783f0b6..0000000000000000000000000000000000000000 --- a/funcom_test/41831430.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getFeature(int featureID) { - Cursor c = db.query(Feature_TABLE, new String[] { Feature_feature }, ID - + "=" + featureID, null, null, null, null); - - String ret = null; - if (c.moveToFirst()) { - ret = c.getString(0); - } - c.close(); - return ret; - } - COM: <s> get a feature </s> - diff --git a/funcom_test/41831547.txt b/funcom_test/41831547.txt deleted file mode 100644 index 62e2bedba7f5f4e98d328932f3461b4fbb9bad6e..0000000000000000000000000000000000000000 --- a/funcom_test/41831547.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getOfferingName(int offeringID) { - Cursor c = db.query(Offering_TABLE, new String[] { Offering_name }, ID - + "=" + offeringID, null, null, null, null); - - String ret = null; - - if (c.moveToFirst()) { - ret = c.getString(0); - } - c.close(); - return ret; - } - COM: <s> get the name of an offering </s> - diff --git a/funcom_test/41831554.txt b/funcom_test/41831554.txt deleted file mode 100644 index 33965418785f19fb45f81aa5da3c8475f012923f..0000000000000000000000000000000000000000 --- a/funcom_test/41831554.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getProperty(int propertyID) { - Cursor c = db.query(Property_TABLE, new String[] { Property_property }, - ID + "=" + propertyID, null, null, null, null); - String ret = null; - if (c.moveToFirst()) { - ret = c.getString(0); - } - c.close(); - return ret; - } - COM: <s> get the property for a database id of the property </s> - diff --git a/funcom_test/41831584.txt b/funcom_test/41831584.txt deleted file mode 100644 index f7d3a2057c1450cc64d4bc0516334711c3abaaac..0000000000000000000000000000000000000000 --- a/funcom_test/41831584.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int getSelectedOffering(int sosID) { - Cursor c = db.query(SOS_TABLE, new String[] { SOS_selectedOffering }, - ID + "=" + sosID, null, null, null, null); - int ret = -1; - if (c.moveToFirst()) { - ret = c.getInt(0); - } - c.close(); - return ret; - } - COM: <s> get the database id of the selected offering in a sos </s> - diff --git a/funcom_test/41831692.txt b/funcom_test/41831692.txt deleted file mode 100644 index 6d239e0425c5cb044a67b692ce6aac5183810662..0000000000000000000000000000000000000000 --- a/funcom_test/41831692.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Date getYoungestMeasurementTime(int measurementID) { - Date ret = null; - Cursor c = db.rawQuery("SELECT max(" + Measure_time + ") FROM " - + Measure_TABLE + " WHERE " + Measure_measurement + "=" - + measurementID, null); - if (c.moveToFirst()) { - ret = new Date(c.getLong(0)); - } - c.close(); - return ret; - } - COM: <s> get youngest greatest time value of a measurement </s> - diff --git a/funcom_test/41831754.txt b/funcom_test/41831754.txt deleted file mode 100644 index 51714705e6f86bd703e0c64b1a912e51e2d66347..0000000000000000000000000000000000000000 --- a/funcom_test/41831754.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public float getYoungestMeasurementValue(int measurementID) { - float ret = Float.NaN; - Cursor c = db.rawQuery( - "SELECT " + Measure_value + " FROM " + Measure_TABLE - + " WHERE " + Measure_measurement + "=" + measurementID - + " ORDER BY " + Measure_time + " DESC LIMIT 1", null); - if (c.moveToFirst()) { - ret = c.getFloat(0); - } - c.close(); - return ret; - } - COM: <s> get the youngest value of a measurement </s> - diff --git a/funcom_test/41831762.txt b/funcom_test/41831762.txt deleted file mode 100644 index fb499d593a699723c8d83e11f2021888afc80c3e..0000000000000000000000000000000000000000 --- a/funcom_test/41831762.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isVisible(int sosID) { - Cursor c = db.query(SOS_TABLE, new String[] { SOS_visible }, ID + "=" - + sosID, null, null, null, null); - boolean ret = false; - if (c.moveToFirst()) { - ret = c.getInt(0) == TRUE; - } - c.close(); - return ret; - } - COM: <s> get the visibility of a sos </s> - diff --git a/funcom_test/41832074.txt b/funcom_test/41832074.txt deleted file mode 100644 index 6cfa8e2b6a4b43eb0a7393328ae9560ea88e8c98..0000000000000000000000000000000000000000 --- a/funcom_test/41832074.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private int getMeasurementID(int propertyID, int featureID) { - Cursor c = db.query(Measures_TABLE, new String[] { ID }, - Measures_property + "=" + propertyID + " AND " - + Measures_feature + "=" + featureID, null, null, null, - null); - int ret = -1; - if (c.moveToFirst()) { - ret = c.getInt(0); - } - c.close(); - return ret; - } - COM: <s> returns the database id of a measurement </s> - diff --git a/funcom_test/41856129.txt b/funcom_test/41856129.txt deleted file mode 100644 index d92d73865e4ac6864fb67a68e69e3149f297be41..0000000000000000000000000000000000000000 --- a/funcom_test/41856129.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void commitWriteSession() throws SVNException { - if ( writeEditor != null ) { - try { - if ( writeAttempted && writeSuccessful ) { - writeEditor.closeDir(); - writeEditor.closeEdit(); - } else { - writeEditor.abortEdit(); - } - } finally { - writeEditor = null; - writeOptions = null; - addedEntries = null; - } - } - } - COM: <s> commits the current write session </s> - diff --git a/funcom_test/41954265.txt b/funcom_test/41954265.txt deleted file mode 100644 index b82c33b6d5a99e9a5768724cc990f4b25b14ae17..0000000000000000000000000000000000000000 --- a/funcom_test/41954265.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: @Test - public void testBind() { - PagedResultDataModel<Bean> pageResult = new PagedResultDataModel<Bean>(); - PagedResult<Bean> pg = new PagedResult<Bean>(new Page(50), 1000l, list); - pageResult.bind(pg); - - assertEquals(new Integer(50), pageResult.getPage().getMaxResults()); - assertEquals(1000l, pageResult.getRowCount()); - assertEquals(list, pageResult.getWrappedData()); - } - COM: <s> test method for </s> - diff --git a/funcom_test/41954284.txt b/funcom_test/41954284.txt deleted file mode 100644 index f55f877ecdb14c1f2179d1b27283a14c7942e6d4..0000000000000000000000000000000000000000 --- a/funcom_test/41954284.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private Field getFieldByName(A object, String name) throws PersistenceJDBCException { - - if (object == null || name == null) - return null; - - try { - Field[] fields = object.getClass().getDeclaredFields(); - for (Field field : fields) - if (field.getName().equalsIgnoreCase(name)) - return field; - } catch (SecurityException e) { - throw new PersistenceJDBCException( - "Security exception occurred when retrieving a field by its name", e); - } - - return null; - } - COM: <s> retrieves a field of a table attribute of an object by its name </s> - diff --git a/funcom_test/41954301.txt b/funcom_test/41954301.txt deleted file mode 100644 index 947866c34f72d2bd0de8b79963d62d0fa16cc52f..0000000000000000000000000000000000000000 --- a/funcom_test/41954301.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void putConnectionContext(Connection connection) { - if (connection != null) { - JDBCTransactionResource resource = new JDBCTransactionResource(connection); - ITransactionContext transactionContext = ContextLocator.getInstance().getTransactionContext(); - if (transactionContext != null) { - - if (transactionContext.hasResource()) - throw new PersistenceJDBCException("Transaction context contain a invalid resource."); - - transactionContext.setResource(resource); - } - } else { - log.debug("Connection is null..."); - } - } - COM: <s> sets the connection as a resource of transaction context </s> - diff --git a/funcom_test/41954312.txt b/funcom_test/41954312.txt deleted file mode 100644 index 1c9bf1ac64a1db356820209cc47331e515802d29..0000000000000000000000000000000000000000 --- a/funcom_test/41954312.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public void configure() { - log.debug("Hibernate starting configuration..."); - - if (configuration == null) { - log.debug("Hibernate mapping..."); - configuration = new AnnotationConfiguration(); - } - - if (!configured) { - try { - configuration.configure(); - log.debug("Hibernate configured."); - } catch (HibernateException e) { - throw new PersistenceHibernateException( - "Error on configure hibernate.", e); - } - try { - sessionFactory = configuration.buildSessionFactory(); - log.debug("Session Factory created."); - } catch (HibernateException e) { - throw new PersistenceHibernateException( - "Error on build hibernate session factory.", e); - } - configured = true; - } - - } - COM: <s> initialize hibernate configuration </s> - diff --git a/funcom_test/41954318.txt b/funcom_test/41954318.txt deleted file mode 100644 index 3d555a9bf7fc602ac35a9324c479b38128a54885..0000000000000000000000000000000000000000 --- a/funcom_test/41954318.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: private Session getSessionFromTransactionContext() { - ITransactionResource resource = null; - HibernateTransactionResource hibernateResource = null; - - Session result = null; - - if (transactionContext == null) - throw new PersistenceHibernateException( - "Without Transaction Context."); - - if (transactionContext.hasResource()) { - resource = transactionContext.getResource(); - - if (resource instanceof HibernateTransactionResource) { - hibernateResource = (HibernateTransactionResource) resource; - - result = hibernateResource.getSession(); - } else { - throw new PersistenceHibernateException( - "Transaction context NOT contain a HibernateTransactionResource resource."); - } - } - - return result; - - } - COM: <s> seek hibernate session on the itransaction context resource </s> - diff --git a/funcom_test/41954330.txt b/funcom_test/41954330.txt deleted file mode 100644 index bef88aee1ef375b13c1fb232c62fa79574b085a0..0000000000000000000000000000000000000000 --- a/funcom_test/41954330.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void commit() throws PersistenceHibernateException { - log.debug("Hibernate commit invoked..."); - Session session = getSession(false); - if (session != null) { - Transaction tx = getTransaction(); - try { - if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) { - tx.commit(); - log.debug("Hibernate transaction commited - OK!"); - } - } catch (HibernateException e) { - rollback(); - throw new PersistenceHibernateException( - "Error on hibernate commit database.", e); - } finally { - closeSession(); - } - } - } - COM: <s> commit all modify on persistent objects </s> - diff --git a/funcom_test/41954336.txt b/funcom_test/41954336.txt deleted file mode 100644 index 6a2f0688d4adbb04c1d1b85706cbedfed61633f4..0000000000000000000000000000000000000000 --- a/funcom_test/41954336.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void rollback() throws PersistenceHibernateException { - log.debug("Hibernate rollback invoked..."); - if (getSession(false) != null) { - Transaction tx = getTransaction(); - try { - if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) { - tx.rollback(); - log.debug("Hibernate rollback - OK!"); - } - } catch (HibernateException e) { - throw new PersistenceHibernateException( - "Error on hibernate rollback.", e); - } finally { - closeSession(); - } - } - } - COM: <s> rollback all modify on persistent objects </s> - diff --git a/funcom_test/41954367.txt b/funcom_test/41954367.txt deleted file mode 100644 index ce94220c1ae6f7813d2338731f797ee2bc2a8833..0000000000000000000000000000000000000000 --- a/funcom_test/41954367.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public EntityManagerFactory getEntityManagerFactory(String persistenceUnit) { - - if (emfs.containsKey(persistenceUnit)) { - return emfs.get(persistenceUnit); - - } else { - log.debug("Creating entity manager factory for persistence unit \"" + persistenceUnit + "\""); - - EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnit); - emfs.put(persistenceUnit, emf); - - return emf; - } - } - COM: <s> returns an entity manager factory for the specified persistence unit name </s> - diff --git a/funcom_test/41954392.txt b/funcom_test/41954392.txt deleted file mode 100644 index 011da52bd7dfd405fa471359074283f0433a0873..0000000000000000000000000000000000000000 --- a/funcom_test/41954392.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Object insert(A pojo) { - Object result = null; - - if (pojo == null) - throw new PersistenceHibernateException( - "Parameter pojo in insert is null."); - - try { - Session session = this.getSession(); - if (session != null) - result = (Object) session.save(pojo); - } catch (HibernateException ex) { - throw new PersistenceHibernateException("Error on insert pojo " - + pojo.getClass() + ": " + pojo.toString(), ex); - } - - return result; - } - COM: <s> make the pojo persistent and insert on fisic repository </s> - diff --git a/funcom_test/41957102.txt b/funcom_test/41957102.txt deleted file mode 100644 index 96070415b2199078c8822a1319c037df8ce47078..0000000000000000000000000000000000000000 --- a/funcom_test/41957102.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Options getOptions(AnnotatedPluginDocument... documents) { - Options options = new Options(getClass()); - options.addFileSelectionOption(CODE_EXE, "The backtranambig executable", ""); - options.addComboBoxOption(CODE_GEN_CODE, "Genetic code to use", GENETIC_CODES, GENETIC_CODES[0]); - return options; - } - COM: <s> options for backtranambig allow the user to select the executable with </s> - diff --git a/funcom_test/41985621.txt b/funcom_test/41985621.txt deleted file mode 100644 index fc58e03d6996ceff15a55aa37a9d5665fe87f063..0000000000000000000000000000000000000000 --- a/funcom_test/41985621.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void PrintCurrentPos() { - System.out.print("Current pos = {"); - System.out.print(positions[0] + ","); - System.out.print(positions[1] + ","); - System.out.println(positions[2] + "}"); - } - COM: <s> prints the position vector </s> - diff --git a/funcom_test/41985781.txt b/funcom_test/41985781.txt deleted file mode 100644 index 6e10ef245ca09b2d33d7683073103b17cf328263..0000000000000000000000000000000000000000 --- a/funcom_test/41985781.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String ReadSensors(ArrayList<String> SensorsOn) { - String result = ""; - Integer sensor_res; - for (String name : SensorsOn){ - sensor_res = readSensor(name); - result += "<" + name + "=" + sensor_res.toString() + ">"; - } - return result; - }; - COM: <s> read more than one sensor </s> - diff --git a/funcom_test/41985801.txt b/funcom_test/41985801.txt deleted file mode 100644 index 29871a39a7939880e2084a42b7c1c6dd1622cac9..0000000000000000000000000000000000000000 --- a/funcom_test/41985801.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int GetDistance() { - byte[] data = new byte[2]; - data[0]= (byte)142; - data[1]= (byte) 19; - // send request - iRobotBAM.Write(data); - // get answer - byte[] sensor = new byte[2]; - iRobotBAM.Read(sensor); - int res = (int)(sensor[0] << 8) + (int)(sensor[1]&0x00FF); - return res; - } - COM: <s> get the distance in mm since we asked for it </s> - diff --git a/funcom_test/41985817.txt b/funcom_test/41985817.txt deleted file mode 100644 index 56e99b7119c8c75148f352e94430e8622abf66c7..0000000000000000000000000000000000000000 --- a/funcom_test/41985817.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int GetAngle() { - byte[] data = new byte[2]; - data[0]= (byte)142; - data[1]= (byte) 20; - // send request - iRobotBAM.Write(data); - // get answer - byte[] sensor = new byte[2]; - iRobotBAM.Read(sensor); - int res = (int)(sensor[0] << 8) + (int)(sensor[1]&0x00FF); - return res; - } - COM: <s> get the angle in degrees since we asked for it </s> - diff --git a/funcom_test/41985945.txt b/funcom_test/41985945.txt deleted file mode 100644 index 9b9604de77977e1950be8bb5f6478fc1adec2589..0000000000000000000000000000000000000000 --- a/funcom_test/41985945.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void printDistanceMatrix(){ - int size = interestingpoints.size(); - for (int i = 0; i < size; i++){ - for (int j = 0; j < size; j++){ - System.out.print((int)dist_table[i][j]+"\t"); - } - System.out.println(); - } - } - COM: <s> prints the distance matrix to the screen </s> - diff --git a/funcom_test/42017793.txt b/funcom_test/42017793.txt deleted file mode 100644 index 74c6b9976c2e9a72257c4503910b13bb34855013..0000000000000000000000000000000000000000 --- a/funcom_test/42017793.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean checkScores(){ - log.info("checkScores"); - for (Score score : scores){ - if (score.getStrokes()==null){ - FacesMessages.instance().add("Missing value for hole="+score.getHole().getNumber()); - this.holeCheck="Missing value for hole="+score.getHole().getNumber(); - return false; - } - }return true; - } - COM: <s> for now just using a basic validation that the holes are entered </s> - diff --git a/funcom_test/42048340.txt b/funcom_test/42048340.txt deleted file mode 100644 index b662e497629f5921f6a8601025b29abf5021f192..0000000000000000000000000000000000000000 --- a/funcom_test/42048340.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void fire(){ - if(counter != 0){ - counter++; - counter = counter%reloadtime; - } - if(firing && counter == 0) - if(bullets > 0){ - bullets--; - counter++; - bulletList.add(new Bullet(getMuzzleX(), getMuzzleY(), angle, 6)); - } - } - COM: <s> if there are bullets left fire one </s> - diff --git a/funcom_test/42048354.txt b/funcom_test/42048354.txt deleted file mode 100644 index 3ea2030bace5b9bd6c80a22fdcbbe92ef6522fa1..0000000000000000000000000000000000000000 --- a/funcom_test/42048354.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void draw(GL gl){ - gl.glColor3f(.01f, .2f, .01f); - gl.glPushMatrix(); - { - gl.glTranslated(x,y-bodyHieght+mountradius,0); - drawTurret(gl); - drawBody(gl); - } - gl.glPopMatrix(); - } - COM: <s> draw the tank using jogl </s> - diff --git a/funcom_test/42048609.txt b/funcom_test/42048609.txt deleted file mode 100644 index c5e01d56ea705062ff97ada15e815ebe0b77f914..0000000000000000000000000000000000000000 --- a/funcom_test/42048609.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setBorderLocation() { - for (int i = 0; i < X_GRID; i++) { - map[i][0] = itemCodes.WALL; - map[0][i] = itemCodes.WALL; - map[i][Y_GRID - 1] = itemCodes.WALL; - map[X_GRID - 1][i] = itemCodes.WALL; - } - } - COM: <s> sets all of the border locations to walls </s> - diff --git a/funcom_test/42048968.txt b/funcom_test/42048968.txt deleted file mode 100644 index df2e4f85da49fe305a66b8902752f176becaaa06..0000000000000000000000000000000000000000 --- a/funcom_test/42048968.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void foundCode() { - try { - status = "You coded the " + c.getPages().get(codeFound).getName() + " page!"; - } catch (Exception e) { - //they might give us less than the 6 pages we have hidden. - status = "You made more improvements to your website!"; - } - codeFound++; - updateHealth(25); - } - COM: <s> called when the user codes or finds the pieces of code or pages </s> - diff --git a/funcom_test/42049218.txt b/funcom_test/42049218.txt deleted file mode 100644 index 00f45c7fa77fc4bc061e0ea63d6ec96fef313ce6..0000000000000000000000000000000000000000 --- a/funcom_test/42049218.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void playBackgroundMusic() { - try { - // From URL - sequence = MidiSystem.getSequence(new URL("http://elvis.rowan.edu/~varout61/ffmusic/ff7_cc88.mid")); - - - // Create a sequencer for the sequence - sequencer.open(); - sequencer.setSequence(sequence); - - // Start playing - sequencer.start(); - } catch (MalformedURLException e) { - } catch (IOException e) { - } catch (MidiUnavailableException e) { - } catch (InvalidMidiDataException e) { - } - - } - COM: <s> plays background music while the player walks around </s> - diff --git a/funcom_test/42113362.txt b/funcom_test/42113362.txt deleted file mode 100644 index 6c72f5c7b68b6d8b75b0cf378f90d7a20ed2f7c7..0000000000000000000000000000000000000000 --- a/funcom_test/42113362.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void render(float tpf) { - super.render(tpf); - - Iterator<MenuItem> it = menuItems.values().iterator(); - while(it.hasNext()) { - DisplaySystem.getDisplaySystem().getRenderer().draw(it.next()); - } - - it = otherItems.values().iterator(); - while(it.hasNext()) { - DisplaySystem.getDisplaySystem().getRenderer().draw(it.next()); - } - - Iterator<TextItem> i = textItems.values().iterator(); - while(i.hasNext()) { - DisplaySystem.getDisplaySystem().getRenderer().draw(i.next()); - } - } - COM: <s> draws the root node </s> - diff --git a/funcom_test/42113457.txt b/funcom_test/42113457.txt deleted file mode 100644 index 4bd4e37b172dc68c35c1b2ac09e0b1db731fc791..0000000000000000000000000000000000000000 --- a/funcom_test/42113457.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void fireBullet(Person person, Vector3f location, Vector3f direction, boolean fromClient) { - - Weapon.fireBullet(person, location, direction, NewBulletMessage.KNIFE, 2f, - Knife.TOPTHIRD_DAMAGE, Knife.MIDDLETHIRD_DAMAGE, Knife.BOTTOMTHIRD_DAMAGE, - Knife.TOPTHIRD_DAMAGE, Knife.MIDDLETHIRD_DAMAGE, Knife.BOTTOMTHIRD_DAMAGE, - 10, false, false); - } - COM: <s> only the server will call this </s> - diff --git a/funcom_test/42113601.txt b/funcom_test/42113601.txt deleted file mode 100644 index 5d971be0b9349ae931fc9cf829e3511c7958967c..0000000000000000000000000000000000000000 --- a/funcom_test/42113601.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Quad createHUDQuad(String name, String texture, float width, float height, Vector3f location) { - Quad quad = new Quad(name, width, height); - quad.setRenderQueueMode(Renderer.QUEUE_ORTHO); - - quad.setLocalTranslation(location); - - quad.setRenderState(TextureCache.getInstance().getTexture(texture)); - - quad.setRenderState(bs); - - quad.setLightCombineMode(Spatial.LightCombineMode.Off); - quad.updateRenderState(); - - return quad; - } - COM: <s> creates a quad on the hud with the given texture and a blendstate </s> - diff --git a/funcom_test/42114050.txt b/funcom_test/42114050.txt deleted file mode 100644 index 34d1fe719378d2f6799535ae0a4157eff9574693..0000000000000000000000000000000000000000 --- a/funcom_test/42114050.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void redraw() { - //Texture - infoTex = Game.getGame().getDisplay().getRenderer().createTextureState(); - texture = TextureManager.loadTexture(getBufferedImage(), - Texture.MinificationFilter.BilinearNearestMipMap , - Texture.MagnificationFilter.Bilinear, - false); - - infoTex.setTexture(texture); - infoTex.setEnabled(true); - - stat.setRenderState(infoTex); - stat.updateRenderState(); - } - COM: <s> redraw the texture </s> - diff --git a/funcom_test/42114076.txt b/funcom_test/42114076.txt deleted file mode 100644 index 7e21777943f3234fd048dcd76ac87b051b3d17e5..0000000000000000000000000000000000000000 --- a/funcom_test/42114076.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Vector3f getCameraPosition() { - if(hasVehicle()) { - return getVehicle().getCameraLocation(); - } - - if(animation.isDucking()) { - return new Vector3f(this.getLocalTranslation().x, - this.getLocalTranslation().y + .7f, - this.getLocalTranslation().z); - } - - return new Vector3f(this.getLocalTranslation().x, - this.getLocalTranslation().y + 1.3f, - this.getLocalTranslation().z).subtract(Game.getGame().getCamera().getDirection().mult(0.5f)); - } - COM: <s> get the camera position </s> - diff --git a/funcom_test/42114080.txt b/funcom_test/42114080.txt deleted file mode 100644 index 03336f6c544389b1b55b18310305240b9a42d23e..0000000000000000000000000000000000000000 --- a/funcom_test/42114080.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void refillAmmo() { - super.refillAmmo(); - - if(Game.getGame().getSettings().isSFX() && (System.currentTimeMillis() - lastAmmo) > 1000) { - Sound.getInstance().getAudioTrack("sounds/reload.wav").setWorldPosition(this.getWorldTranslation()); - Sound.getInstance().getAudioTrack("sounds/reload.wav").play(); - lastAmmo = System.currentTimeMillis(); - } - updateAmmoText(); - } - COM: <s> refill the ammo </s> - diff --git a/funcom_test/42114084.txt b/funcom_test/42114084.txt deleted file mode 100644 index 20a67c1bb28b9ce6931e5442d99e0643f3297d9a..0000000000000000000000000000000000000000 --- a/funcom_test/42114084.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean increaseHealth() { - if(super.increaseHealth()) { - - if(Game.getGame().getSettings().isSFX()) { - Sound.getInstance().getAudioTrack("sounds/harp.wav").setWorldPosition(this.getWorldTranslation()); - Sound.getInstance().getAudioTrack("sounds/harp.wav").play(); - } - - updateHealthText(); - return true; - } - return false; - } - COM: <s> increase the health play sound and update text </s> - diff --git a/funcom_test/42114096.txt b/funcom_test/42114096.txt deleted file mode 100644 index 545ea3d89ecbc91b994a1327dc4c50dd8c99359d..0000000000000000000000000000000000000000 --- a/funcom_test/42114096.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void killedOpponent(String oppName) { - super.killedOpponent(oppName); - TextCache.getInstance().getTextfield("score").setText("Score: "+getScore()); - - ((RotwGameState)GameStateManager.getInstance().getChild("gameState")).addChatMessage("You killed "+oppName); - } - COM: <s> player killed a opponent </s> - diff --git a/funcom_test/42114099.txt b/funcom_test/42114099.txt deleted file mode 100644 index 11f48bb843d2a06c8bba5d47f97c80e3cb1c9edb..0000000000000000000000000000000000000000 --- a/funcom_test/42114099.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void fallDamage(float distance) { - super.fallDamage(distance); - - // Only play Sound if you didnt die - if(distance <= 25 && Game.getGame().getSettings().isSFX()) { - Sound.getInstance().getAudioTrack("sounds/falldamage.wav").setWorldPosition(this.getWorldTranslation()); - Sound.getInstance().getAudioTrack("sounds/falldamage.wav").play(); - } - updateHealthText(); - } - COM: <s> damage done by falling </s> - diff --git a/funcom_test/42114159.txt b/funcom_test/42114159.txt deleted file mode 100644 index baa1c9c7958be53b847d4619012d9ef4f65d4b8c..0000000000000000000000000000000000000000 --- a/funcom_test/42114159.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void hit(Person player, int damage) { - if(isDead()) return ; - if(isGodMode()) return ; - - if(getArmor() > 0) { - armor -= damage; - if(armor < 0) armor = 0; - }else{ - health -= damage; - } - - if(player != null && health <= 0) { - player.killedOpponent(this.getPlayerName()); - died(player.getPlayerName(), player.getCameraPosition()); - } - } - COM: <s> the player got hit </s> - diff --git a/funcom_test/42114261.txt b/funcom_test/42114261.txt deleted file mode 100644 index ee6939b96eb52b53172f08dbc7d11d4234c5f7bc..0000000000000000000000000000000000000000 --- a/funcom_test/42114261.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateWeaponIcon() { - if(player.getCurrentWeapon() != null) { - hud.setWeaponIcon(player.getCurrentWeapon().getIcon()); - - weaponNode.detachAllChildren(); - if(player.getCurrentWeapon().getWeaponModel() != null) - weaponNode.attachChild(player.getCurrentWeapon().getWeaponModel()); - } - } - COM: <s> updates the weapon icon on the hud </s> - diff --git a/funcom_test/42114334.txt b/funcom_test/42114334.txt deleted file mode 100644 index e154379d6509491bc4ad5f4c3c8e2d326ac0bb48..0000000000000000000000000000000000000000 --- a/funcom_test/42114334.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void updateScore() { - if(((RotwGameState)GameStateManager.getInstance().getChild("gameState")).isServer()) { - BasicSyncManager syncManager = - ((RotwGameState)GameStateManager.getInstance().getChild("gameState")).getSyncManager(); - ((Server)syncManager).updateScore(); - } - } - COM: <s> updates the score if this is a server </s> - diff --git a/funcom_test/42160553.txt b/funcom_test/42160553.txt deleted file mode 100644 index 56950eb6d869373d8d453e26e30993768eaacd25..0000000000000000000000000000000000000000 --- a/funcom_test/42160553.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void stop(boolean flush) throws AudioException { - if (player != null) { - player.stop(); - if (flush) { - player.flush(); - ((Clip) player).close(); - player = null; - } - } - if (recordThread != null) - recordThread.stop(); - stopAudioTracker(); - } - COM: <s> stops recording if were recording </s> - diff --git a/funcom_test/42163778.txt b/funcom_test/42163778.txt deleted file mode 100644 index 6ccdaf864fa8837e02e77c62bfa2162486cdcbb4..0000000000000000000000000000000000000000 --- a/funcom_test/42163778.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void fireLabelEvent(final LabelProviderChangedEvent event) { - // We need to get the thread of execution to fire the label provider - // changed event , else WSWB complains of thread exception. - PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { - public void run() { - fireLabelProviderChanged(event); - } - }); - } - COM: <s> fire a label change event so that the label decorators are automatically refreshed </s> - diff --git a/funcom_test/42163855.txt b/funcom_test/42163855.txt deleted file mode 100644 index a2613004c44db48942faf266d284d6c309983c81..0000000000000000000000000000000000000000 --- a/funcom_test/42163855.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ImageData getImageData(String imageKey) { - if (imageKey.equals("NotPersisted")) { - return getNotPersistedImageData(); - } - if (imageKey.equals("Dirty")) { - return getDirtyImageData(); - } - if (imageKey.equals("Synched")) { - return getSynchedImageData(); - } - - return null; - } - COM: <s> get the image data depending on the key </s> - diff --git a/funcom_test/42164047.txt b/funcom_test/42164047.txt deleted file mode 100644 index c78825e8edeced60e6040573bc44f0ad5d36fcd1..0000000000000000000000000000000000000000 --- a/funcom_test/42164047.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected IStatus computeDeleteStatus() { - if (resources == null || resources.length == 0) { - markInvalid(); - return getErrorStatus(UndoMessages.AbstractResourcesOperation_NotEnoughInfo); - } - if (!resourcesExist()) { - markInvalid(); - return getErrorStatus(UndoMessages.AbstractResourcesOperation_ResourcesDoNotExist); - } - return checkReadOnlyResources(resources); - } - COM: <s> compute the status for deleting resources </s> - diff --git a/funcom_test/42164275.txt b/funcom_test/42164275.txt deleted file mode 100644 index c5e84289d98ac9bcb9242d3f7034cffc1c5ffd42..0000000000000000000000000000000000000000 --- a/funcom_test/42164275.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected IStatus getErrorStatus(String message) { - String statusMessage = message; - if (statusMessage == null) { - statusMessage = NLS.bind(UndoMessages.AbstractWorkspaceOperation_ErrorInvalidMessage, - getLabel()); - } - return new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH, - OperationStatus.OPERATION_INVALID, statusMessage, null); - } - COM: <s> return an error status describing an invalid operation using the provided message </s> - diff --git a/funcom_test/42164286.txt b/funcom_test/42164286.txt deleted file mode 100644 index 383bed858b4672dbf0ab251a38cc85f68ee8988f..0000000000000000000000000000000000000000 --- a/funcom_test/42164286.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected IStatus getWarningStatus(String message, int code) { - String statusMessage = message; - if (statusMessage == null) { - statusMessage = NLS.bind(UndoMessages.AbstractWorkspaceOperation_GenericWarningMessage, - getLabel()); - } - return new Status(IStatus.WARNING, IDEWorkbenchPlugin.IDE_WORKBENCH, code, statusMessage, null); - } - COM: <s> return a warning status describing the warning state of an operation using the </s> - diff --git a/funcom_test/42165103.txt b/funcom_test/42165103.txt deleted file mode 100644 index fefe3ba74c95f22c34fd7d2566da45b89bc78512..0000000000000000000000000000000000000000 --- a/funcom_test/42165103.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void DoEnable(boolean enable) { - Iterator references = getSemanticHosts().iterator(); - while( references.hasNext() ) { - WeakReference wr = (WeakReference)references.next(); - EObject semanticHost = (EObject)wr.get(); - if (semanticHost != null) { - List ceps = CanonicalEditPolicy.getRegisteredEditPolicies(semanticHost); - for ( int i = 0; i < ceps.size(); i++ ) { - CanonicalEditPolicy cep = (CanonicalEditPolicy)ceps.get(i); - cep.enableRefresh(enable); - } - } - } - } - COM: <s> enables the canonical editpolicies listening of the list of </s> - diff --git a/funcom_test/42166216.txt b/funcom_test/42166216.txt deleted file mode 100644 index 01d2f4d41e6bb188907662c82efb929d2f16086c..0000000000000000000000000000000000000000 --- a/funcom_test/42166216.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected boolean provides(CreateViewForKindOperation op) { - if (op.getViewKind() == Node.class) - return getNodeViewClass(op.getSemanticAdapter(), op - .getContainerView(), op.getSemanticHint()) != null; - if (op.getViewKind() == Edge.class) - return getEdgeViewClass(op.getSemanticAdapter(), op - .getContainerView(), op.getSemanticHint()) != null; - return true; - } - COM: <s> determines whether this provider can provide for the specified view </s> - diff --git a/funcom_test/42166334.txt b/funcom_test/42166334.txt deleted file mode 100644 index dbe4fbbe3eb53b5fed68819a3b8070fb035f096f..0000000000000000000000000000000000000000 --- a/funcom_test/42166334.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected EClass getSemanticEClass(IAdaptable semanticAdapter) { - if (semanticAdapter == null) - return null; - EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class); - if (eObject != null) - return EMFCoreUtil.getProxyClass(eObject); - IElementType type = (IElementType) semanticAdapter - .getAdapter(IElementType.class); - if (type != null) - return type.getEClass(); - return null; - } - COM: <s> returns the eclass associated with the semantic adapter </s> - diff --git a/funcom_test/42166343.txt b/funcom_test/42166343.txt deleted file mode 100644 index 623340cbd09c54bb21217d6e74b5ec8fab6b8805..0000000000000000000000000000000000000000 --- a/funcom_test/42166343.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected EObject getSemanticElement(IAdaptable semanticAdapter) { - if (semanticAdapter == null)// TODO which MEditingDomain to use? - return null; - EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class); - if (eObject != null) - return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject); - return null; - } - COM: <s> returns the semantic element associated with the semantic adapter </s> - diff --git a/funcom_test/42167481.txt b/funcom_test/42167481.txt deleted file mode 100644 index 6161665fdb11f032d9363ab75a26e0bc97a6cb6b..0000000000000000000000000000000000000000 --- a/funcom_test/42167481.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void addMessages(final Collection<Message> messages) { - _editor.getSite().getShell().getDisplay().asyncExec(new Runnable() { - - public void run() { - Iterator iter = messages.iterator(); - while (iter.hasNext()) { - Message message = (Message) iter.next(); - _editor.addMessage(message); - } - } - }); - } - COM: <s> called to add messages to the message tab </s> - diff --git a/funcom_test/42168017.txt b/funcom_test/42168017.txt deleted file mode 100644 index 757ded151c26e17f0b900bb5e297ff80d59de26c..0000000000000000000000000000000000000000 --- a/funcom_test/42168017.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSession(Session session) { - if (session == this.session) - return; - - // If we already have a session and we're changing to a different one, close the - // current one - if (getSession() != null && session != this.session) - this.session.close(); - this.session = session; - _logger.severe("Session set to " + session); - } - COM: <s> sets the session to use for executing queries </s> - diff --git a/funcom_test/42168936.txt b/funcom_test/42168936.txt deleted file mode 100644 index 0052fb074a38f33dc035be5a080911b200ab4aef..0000000000000000000000000000000000000000 --- a/funcom_test/42168936.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void printTree() { - System.out.println(""); //$NON-NLS-1$ - if (rootNode == null) { - System.out.println("tree is empty"); //$NON-NLS-1$ - return; - } - System.out.println("Here's the entire tree structure:"); //$NON-NLS-1$ - printNodeRecursion(rootNode); - } - COM: <s> prints entire tree structure to standard output beginning with the root node and </s> - diff --git a/funcom_test/42168999.txt b/funcom_test/42168999.txt deleted file mode 100644 index 8307a5fd6cc9fbc2ff7bc31cd8f809917bc59490..0000000000000000000000000000000000000000 --- a/funcom_test/42168999.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void clearResults() { - if (tabFolder.isDisposed()) - return; - synchronized (this) { - CTabItem[] tabItems = tabFolder.getItems(); - for (CTabItem tabItem : tabItems) - if (tabItem != messagesTab) - closeTab(tabItem); - messagesTable.removeAll(); - } - } - COM: <s> closes all result tabs and signals all associated abstract sqlexecutions to stop if </s> - diff --git a/funcom_test/42169591.txt b/funcom_test/42169591.txt deleted file mode 100644 index ce9678d7cbe3e19e0835771691d984833676b19e..0000000000000000000000000000000000000000 --- a/funcom_test/42169591.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - productIdentifiableEClass = createEClass(PRODUCT_IDENTIFIABLE); - createEAttribute(productIdentifiableEClass, PRODUCT_IDENTIFIABLE__PRODUCT_ID); - - threadSensitiveEClass = createEClass(THREAD_SENSITIVE); - - platformDispositionEClass = createEClass(PLATFORM_DISPOSITION); - createEAttribute(platformDispositionEClass, PLATFORM_DISPOSITION__PLATFORM_ID); - createEAttribute(platformDispositionEClass, PLATFORM_DISPOSITION__PLATFORM_DEPENDANT); - } - COM: <s> creates the meta model objects for the package </s> - diff --git a/funcom_test/42170888.txt b/funcom_test/42170888.txt deleted file mode 100644 index 4ecfe68e4ef41f42725f41e5ab8d837be07e8f21..0000000000000000000000000000000000000000 --- a/funcom_test/42170888.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TimeItem_description_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TimeItem_description_feature", "_UI_TimeItem_type"), - TimeBasedRoutingPackage.Literals.TIME_ITEM__DESCRIPTION, - false, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the description feature </s> - diff --git a/funcom_test/42170895.txt b/funcom_test/42170895.txt deleted file mode 100644 index ba4c4c9837f939d085a37c339218d1bf7a4d7db6..0000000000000000000000000000000000000000 --- a/funcom_test/42170895.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TimeBasedRouting_value_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TimeBasedRouting_value_feature", "_UI_TimeBasedRouting_type"), - TimeBasedRoutingPackage.Literals.TIME_BASED_ROUTING__VALUE, - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the value feature </s> - diff --git a/funcom_test/42170905.txt b/funcom_test/42170905.txt deleted file mode 100644 index b627c0398bd251432243a69ac010ce01ba2bfb50..0000000000000000000000000000000000000000 --- a/funcom_test/42170905.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSkipWeeksPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WeeklyOccursModel_skipWeeks_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeeklyOccursModel_skipWeeks_feature", "_UI_WeeklyOccursModel_type"), - TimeBasedRoutingPackage.Literals.WEEKLY_OCCURS_MODEL__SKIP_WEEKS, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the skip weeks feature </s> - diff --git a/funcom_test/42170906.txt b/funcom_test/42170906.txt deleted file mode 100644 index 3e2882eb96dbcaf42d0788c98405858218f53661..0000000000000000000000000000000000000000 --- a/funcom_test/42170906.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDaysPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WeeklyOccursModel_days_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeeklyOccursModel_days_feature", "_UI_WeeklyOccursModel_type"), - TimeBasedRoutingPackage.Literals.WEEKLY_OCCURS_MODEL__DAYS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the days feature </s> - diff --git a/funcom_test/42170907.txt b/funcom_test/42170907.txt deleted file mode 100644 index 0d8bed7def11c9cebbb2a27d6f72f67e9fc4a2a5..0000000000000000000000000000000000000000 --- a/funcom_test/42170907.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStartDatePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WeeklyOccursModel_startDate_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeeklyOccursModel_startDate_feature", "_UI_WeeklyOccursModel_type"), - TimeBasedRoutingPackage.Literals.WEEKLY_OCCURS_MODEL__START_DATE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the start date feature </s> - diff --git a/funcom_test/42170911.txt b/funcom_test/42170911.txt deleted file mode 100644 index 38611acf49f0d461be1831cfd3800c68e0176f71..0000000000000000000000000000000000000000 --- a/funcom_test/42170911.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSkipDaysPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DailyOccursModel_skipDays_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DailyOccursModel_skipDays_feature", "_UI_DailyOccursModel_type"), - TimeBasedRoutingPackage.Literals.DAILY_OCCURS_MODEL__SKIP_DAYS, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the skip days feature </s> - diff --git a/funcom_test/42170923.txt b/funcom_test/42170923.txt deleted file mode 100644 index 2d01b83d5372d7b71ca935761bb003b5e9518cb1..0000000000000000000000000000000000000000 --- a/funcom_test/42170923.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addModePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OccursModel_mode_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_OccursModel_mode_feature", "_UI_OccursModel_type"), - TimeBasedRoutingPackage.Literals.OCCURS_MODEL__MODE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the mode feature </s> - diff --git a/funcom_test/42170937.txt b/funcom_test/42170937.txt deleted file mode 100644 index c5faa184c85dcfd157ef02a3c66f33d6be0dc6cf..0000000000000000000000000000000000000000 --- a/funcom_test/42170937.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addByIndexPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MonthlyOccursModel_byIndex_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MonthlyOccursModel_byIndex_feature", "_UI_MonthlyOccursModel_type"), - TimeBasedRoutingPackage.Literals.MONTHLY_OCCURS_MODEL__BY_INDEX, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the by index feature </s> - diff --git a/funcom_test/42170939.txt b/funcom_test/42170939.txt deleted file mode 100644 index ad15d68e838099d214a8d4e94e8443ed954aafc8..0000000000000000000000000000000000000000 --- a/funcom_test/42170939.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSkipMonthsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MonthlyOccursModel_skipMonths_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MonthlyOccursModel_skipMonths_feature", "_UI_MonthlyOccursModel_type"), - TimeBasedRoutingPackage.Literals.MONTHLY_OCCURS_MODEL__SKIP_MONTHS, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the skip months feature </s> - diff --git a/funcom_test/42170941.txt b/funcom_test/42170941.txt deleted file mode 100644 index c493cab365c230d6721193481b97f9546412697a..0000000000000000000000000000000000000000 --- a/funcom_test/42170941.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDayIndexPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MonthlyOccursModel_dayIndex_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MonthlyOccursModel_dayIndex_feature", "_UI_MonthlyOccursModel_type"), - TimeBasedRoutingPackage.Literals.MONTHLY_OCCURS_MODEL__DAY_INDEX, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the day index feature </s> - diff --git a/funcom_test/42170943.txt b/funcom_test/42170943.txt deleted file mode 100644 index 3f70861c6a74d2a6c95f7d06cd3d5be903efc8f3..0000000000000000000000000000000000000000 --- a/funcom_test/42170943.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDayOccurencePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MonthlyOccursModel_dayOccurence_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MonthlyOccursModel_dayOccurence_feature", "_UI_MonthlyOccursModel_type"), - TimeBasedRoutingPackage.Literals.MONTHLY_OCCURS_MODEL__DAY_OCCURENCE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the day occurence feature </s> - diff --git a/funcom_test/42170946.txt b/funcom_test/42170946.txt deleted file mode 100644 index ce3bd53298fe695e102e5fa7226d7d71f70f8531..0000000000000000000000000000000000000000 --- a/funcom_test/42170946.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDayPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MonthlyOccursModel_day_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MonthlyOccursModel_day_feature", "_UI_MonthlyOccursModel_type"), - TimeBasedRoutingPackage.Literals.MONTHLY_OCCURS_MODEL__DAY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the day feature </s> - diff --git a/funcom_test/42170965.txt b/funcom_test/42170965.txt deleted file mode 100644 index 295d22e78201b05a32327473517e447b84b53f76..0000000000000000000000000000000000000000 --- a/funcom_test/42170965.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TimeRange_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TimeRange_name_feature", "_UI_TimeRange_type"), - TimeBasedRoutingPackage.Literals.TIME_RANGE__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the name feature </s> - diff --git a/funcom_test/42170967.txt b/funcom_test/42170967.txt deleted file mode 100644 index 0efecf944a760c587964da6d0b090c1b3da4ce5a..0000000000000000000000000000000000000000 --- a/funcom_test/42170967.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStartRangePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TimeRange_startRange_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TimeRange_startRange_feature", "_UI_TimeRange_type"), - TimeBasedRoutingPackage.Literals.TIME_RANGE__START_RANGE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the start range feature </s> - diff --git a/funcom_test/42170968.txt b/funcom_test/42170968.txt deleted file mode 100644 index 42738ba1a50dcb35bf2f439e6da34895d6b5e5fb..0000000000000000000000000000000000000000 --- a/funcom_test/42170968.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEndRangePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TimeRange_endRange_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TimeRange_endRange_feature", "_UI_TimeRange_type"), - TimeBasedRoutingPackage.Literals.TIME_RANGE__END_RANGE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the end range feature </s> - diff --git a/funcom_test/42171383.txt b/funcom_test/42171383.txt deleted file mode 100644 index 8bd055d35a0f891cb419de93731c7f8a093d1f28..0000000000000000000000000000000000000000 --- a/funcom_test/42171383.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPlatformIDPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PlatformDisposition_platformID_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PlatformDisposition_platformID_feature", "_UI_PlatformDisposition_type"), - CorePackage.Literals.PLATFORM_DISPOSITION__PLATFORM_ID, - false, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the platform id feature </s> - diff --git a/funcom_test/42171386.txt b/funcom_test/42171386.txt deleted file mode 100644 index 9f865c824651ce6c0399d13b2d579ec2fab403e4..0000000000000000000000000000000000000000 --- a/funcom_test/42171386.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPlatformDependantPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PlatformDisposition_platformDependant_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PlatformDisposition_platformDependant_feature", "_UI_PlatformDisposition_type"), - CorePackage.Literals.PLATFORM_DISPOSITION__PLATFORM_DEPENDANT, - false, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the platform dependant feature </s> - diff --git a/funcom_test/42171387.txt b/funcom_test/42171387.txt deleted file mode 100644 index 69694b73c32a8f7e6a4baa298aac9ae9ed30d558..0000000000000000000000000000000000000000 --- a/funcom_test/42171387.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUuidPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafiCall_uuid_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafiCall_uuid_feature", "_UI_SafiCall_type"), - CallPackage.Literals.SAFI_CALL__UUID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the uuid feature </s> - diff --git a/funcom_test/42171418.txt b/funcom_test/42171418.txt deleted file mode 100644 index 619e24d4de070d7a8c3549863dfc6833f38a7122..0000000000000000000000000000000000000000 --- a/funcom_test/42171418.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSharedSafletScriptPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletScriptEnvironment_sharedSafletScript_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletScriptEnvironment_sharedSafletScript_feature", "_UI_SafletScriptEnvironment_type"), - ScriptingPackage.Literals.SAFLET_SCRIPT_ENVIRONMENT__SHARED_SAFLET_SCRIPT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the shared saflet script feature </s> - diff --git a/funcom_test/42171422.txt b/funcom_test/42171422.txt deleted file mode 100644 index f1e267115c0a39420a1c3db9661b1d90b7e74463..0000000000000000000000000000000000000000 --- a/funcom_test/42171422.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSharedScriptScopePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletScriptEnvironment_sharedScriptScope_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletScriptEnvironment_sharedScriptScope_feature", "_UI_SafletScriptEnvironment_type"), - ScriptingPackage.Literals.SAFLET_SCRIPT_ENVIRONMENT__SHARED_SCRIPT_SCOPE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the shared script scope feature </s> - diff --git a/funcom_test/42171425.txt b/funcom_test/42171425.txt deleted file mode 100644 index b4a2c1efd482d9a1129010d228ba2023e3c80594..0000000000000000000000000000000000000000 --- a/funcom_test/42171425.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSafletScriptFactoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletScriptEnvironment_safletScriptFactory_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletScriptEnvironment_safletScriptFactory_feature", "_UI_SafletScriptEnvironment_type"), - ScriptingPackage.Literals.SAFLET_SCRIPT_ENVIRONMENT__SAFLET_SCRIPT_FACTORY, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the saflet script factory feature </s> - diff --git a/funcom_test/42171427.txt b/funcom_test/42171427.txt deleted file mode 100644 index 9c2ee564576ccf8d01c63831dbe1f11b6ae0ed65..0000000000000000000000000000000000000000 --- a/funcom_test/42171427.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addScriptScopeFactoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletScriptEnvironment_scriptScopeFactory_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletScriptEnvironment_scriptScopeFactory_feature", "_UI_SafletScriptEnvironment_type"), - ScriptingPackage.Literals.SAFLET_SCRIPT_ENVIRONMENT__SCRIPT_SCOPE_FACTORY, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the script scope factory feature </s> - diff --git a/funcom_test/42171431.txt b/funcom_test/42171431.txt deleted file mode 100644 index 9e75516ae93a819d1fed34eaf59683c7e0b814f7..0000000000000000000000000000000000000000 --- a/funcom_test/42171431.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addScriptTextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletScript_scriptText_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletScript_scriptText_feature", "_UI_SafletScript_type"), - ScriptingPackage.Literals.SAFLET_SCRIPT__SCRIPT_TEXT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the script text feature </s> - diff --git a/funcom_test/42171453.txt b/funcom_test/42171453.txt deleted file mode 100644 index 5c3afd22da36cb7e45bd5e87b92c71922df6f08b..0000000000000000000000000000000000000000 --- a/funcom_test/42171453.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRhinoScriptPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RhinoSafletScript_rhinoScript_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RhinoSafletScript_rhinoScript_feature", "_UI_RhinoSafletScript_type"), - ScriptingPackage.Literals.RHINO_SAFLET_SCRIPT__RHINO_SCRIPT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the rhino script feature </s> - diff --git a/funcom_test/42171463.txt b/funcom_test/42171463.txt deleted file mode 100644 index ee5002744fcdb473710bc47fe3fcb184998af3cd..0000000000000000000000000000000000000000 --- a/funcom_test/42171463.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addScopeObjectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScriptScope_scopeObject_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScriptScope_scopeObject_feature", "_UI_ScriptScope_type"), - ScriptingPackage.Literals.SCRIPT_SCOPE__SCOPE_OBJECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the scope object feature </s> - diff --git a/funcom_test/42171472.txt b/funcom_test/42171472.txt deleted file mode 100644 index 67b2edf3ff81a369b798f656a38e514dc20607fa..0000000000000000000000000000000000000000 --- a/funcom_test/42171472.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSafletScriptPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletScriptFactory_safletScript_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletScriptFactory_safletScript_feature", "_UI_SafletScriptFactory_type"), - ScriptingPackage.Literals.SAFLET_SCRIPT_FACTORY__SAFLET_SCRIPT, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the saflet script feature </s> - diff --git a/funcom_test/42171480.txt b/funcom_test/42171480.txt deleted file mode 100644 index 28e7f377e456c2137b27d7c6fa2b37d0874492b4..0000000000000000000000000000000000000000 --- a/funcom_test/42171480.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addScriptScopePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScriptScopeFactory_scriptScope_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScriptScopeFactory_scriptScope_feature", "_UI_ScriptScopeFactory_type"), - ScriptingPackage.Literals.SCRIPT_SCOPE_FACTORY__SCRIPT_SCOPE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the script scope feature </s> - diff --git a/funcom_test/42171481.txt b/funcom_test/42171481.txt deleted file mode 100644 index c807a086c111edd0bd4ef7726a18415283610183..0000000000000000000000000000000000000000 --- a/funcom_test/42171481.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGlobalScriptScopePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScriptScopeFactory_globalScriptScope_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScriptScopeFactory_globalScriptScope_feature", "_UI_ScriptScopeFactory_type"), - ScriptingPackage.Literals.SCRIPT_SCOPE_FACTORY__GLOBAL_SCRIPT_SCOPE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the global script scope feature </s> - diff --git a/funcom_test/42171493.txt b/funcom_test/42171493.txt deleted file mode 100644 index 774edcb124e9644f6db66b311705f92bad37524b..0000000000000000000000000000000000000000 --- a/funcom_test/42171493.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addConnectionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_connection_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_connection_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_Connection(), - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the connection feature </s> - diff --git a/funcom_test/42171497.txt b/funcom_test/42171497.txt deleted file mode 100644 index 9b6d196e00f41dc755a0cc791dc0eeb8687ab4bf..0000000000000000000000000000000000000000 --- a/funcom_test/42171497.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addQueryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_query_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_query_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_Query(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the query feature </s> - diff --git a/funcom_test/42171499.txt b/funcom_test/42171499.txt deleted file mode 100644 index 9682a1b215cb8146fef14ec71589f975f4d8461a..0000000000000000000000000000000000000000 --- a/funcom_test/42171499.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addResultSetNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_resultSetName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_resultSetName_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_ResultSetName(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the result set name feature </s> - diff --git a/funcom_test/42171501.txt b/funcom_test/42171501.txt deleted file mode 100644 index 20572945ef85b8a2b10eae76990a6dccd97500ca..0000000000000000000000000000000000000000 --- a/funcom_test/42171501.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addScrollablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_scrollable_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_scrollable_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_Scrollable(), - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the scrollable feature </s> - diff --git a/funcom_test/42171504.txt b/funcom_test/42171504.txt deleted file mode 100644 index 32912a93e33ebb1feeaf61fcf8418a3951771f52..0000000000000000000000000000000000000000 --- a/funcom_test/42171504.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInputsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ParameterizedActionstep_inputs_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ParameterizedActionstep_inputs_feature", "_UI_ParameterizedActionstep_type"), - ActionStepPackage.eINSTANCE.getParameterizedActionstep_Inputs(), - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the inputs feature </s> - diff --git a/funcom_test/42171507.txt b/funcom_test/42171507.txt deleted file mode 100644 index e0c1041e3c48130cf61a5a667378dfd9733d624a..0000000000000000000000000000000000000000 --- a/funcom_test/42171507.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOutputParametersPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ParameterizedActionstep_outputParameters_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ParameterizedActionstep_outputParameters_feature", "_UI_ParameterizedActionstep_type"), - ActionStepPackage.eINSTANCE.getParameterizedActionstep_OutputParameters(), - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the output parameters feature </s> - diff --git a/funcom_test/42171508.txt b/funcom_test/42171508.txt deleted file mode 100644 index 95e1bf18ea7cd9d9f23e98ec6350ea7f36b4fded..0000000000000000000000000000000000000000 --- a/funcom_test/42171508.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addReadOnlyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_readOnly_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_readOnly_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_ReadOnly(), - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the read only feature </s> - diff --git a/funcom_test/42171512.txt b/funcom_test/42171512.txt deleted file mode 100644 index e8920c26e79f8a456844cbaa793e4315ab5e3c2c..0000000000000000000000000000000000000000 --- a/funcom_test/42171512.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addResultSetPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_resultSet_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_resultSet_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_ResultSet(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the result set feature </s> - diff --git a/funcom_test/42171518.txt b/funcom_test/42171518.txt deleted file mode 100644 index bb035abb9309a8b6ed04ebae7f32a9a496b49b06..0000000000000000000000000000000000000000 --- a/funcom_test/42171518.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRowsUpdatedVarPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_rowsUpdatedVar_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_rowsUpdatedVar_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_RowsUpdatedVar(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the rows updated var feature </s> - diff --git a/funcom_test/42171523.txt b/funcom_test/42171523.txt deleted file mode 100644 index af1efc1ab749f140fdbae9eb1213f98e1665b950..0000000000000000000000000000000000000000 --- a/funcom_test/42171523.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSqlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RunQuery_sql_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RunQuery_sql_feature", "_UI_RunQuery_type"), - ActionStepPackage.eINSTANCE.getRunQuery_Sql(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the sql feature </s> - diff --git a/funcom_test/42171540.txt b/funcom_test/42171540.txt deleted file mode 100644 index c52c67e6638b0c3faed6752add3d6e3e30c52e56..0000000000000000000000000000000000000000 --- a/funcom_test/42171540.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLabelTextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InvokeSaflet_labelText_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InvokeSaflet_labelText_feature", "_UI_InvokeSaflet_type"), - ActionStepPackage.eINSTANCE.getInvokeSaflet_LabelText(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the label text feature </s> - diff --git a/funcom_test/42171551.txt b/funcom_test/42171551.txt deleted file mode 100644 index f4d58489d1618ef1b87e2c64eda2d10567af009e..0000000000000000000000000000000000000000 --- a/funcom_test/42171551.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRowNumPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MoveToRow_rowNum_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MoveToRow_rowNum_feature", "_UI_MoveToRow_type"), - ActionStepPackage.eINSTANCE.getMoveToRow_RowNum(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the row num feature </s> - diff --git a/funcom_test/42171557.txt b/funcom_test/42171557.txt deleted file mode 100644 index c5bddacc501af80438f645fc0b637dae82ee9037..0000000000000000000000000000000000000000 --- a/funcom_test/42171557.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBQueryParamId_id_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBQueryParamId_id_feature", "_UI_DBQueryParamId_type"), - ActionStepPackage.eINSTANCE.getDBQueryParamId_Id(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the id feature </s> - diff --git a/funcom_test/42171559.txt b/funcom_test/42171559.txt deleted file mode 100644 index cde31d21ad45764da8ee9dc98bef9cdb68df7546..0000000000000000000000000000000000000000 --- a/funcom_test/42171559.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIndexPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBQueryParamId_index_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBQueryParamId_index_feature", "_UI_DBQueryParamId_type"), - ActionStepPackage.eINSTANCE.getDBQueryParamId_Index(), - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the index feature </s> - diff --git a/funcom_test/42171572.txt b/funcom_test/42171572.txt deleted file mode 100644 index a0f5a1bc425442b807c326e3a56f812223199c68..0000000000000000000000000000000000000000 --- a/funcom_test/42171572.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOutputTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Output_outputType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Output_outputType_feature", "_UI_Output_type"), - ActionStepPackage.eINSTANCE.getOutput_OutputType(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the output type feature </s> - diff --git a/funcom_test/42171603.txt b/funcom_test/42171603.txt deleted file mode 100644 index 0012793e8dae4d50011ffe51c12546c5e02bdffc..0000000000000000000000000000000000000000 --- a/funcom_test/42171603.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addJdbcConnectionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnectionId_jdbcConnection_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnectionId_jdbcConnection_feature", "_UI_DBConnectionId_type"), - ActionStepPackage.eINSTANCE.getDBConnectionId_JdbcConnection(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the jdbc connection feature </s> - diff --git a/funcom_test/42171605.txt b/funcom_test/42171605.txt deleted file mode 100644 index 5422d37f10c06b71adcf27258b244c940bdca8c9..0000000000000000000000000000000000000000 --- a/funcom_test/42171605.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addColumnPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SetColMapping_column_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SetColMapping_column_feature", "_UI_SetColMapping_type"), - ActionStepPackage.eINSTANCE.getSetColMapping_Column(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the column feature </s> - diff --git a/funcom_test/42171607.txt b/funcom_test/42171607.txt deleted file mode 100644 index 70edd0f61bc78b28abb96d9a4cc6a896f6790cef..0000000000000000000000000000000000000000 --- a/funcom_test/42171607.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSetAsDatatypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SetColMapping_setAsDatatype_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SetColMapping_setAsDatatype_feature", "_UI_SetColMapping_type"), - ActionStepPackage.eINSTANCE.getSetColMapping_SetAsDatatype(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the set as datatype feature </s> - diff --git a/funcom_test/42171612.txt b/funcom_test/42171612.txt deleted file mode 100644 index 3196d4db94407454ad7aeee0fe79e71ad90369ec..0000000000000000000000000000000000000000 --- a/funcom_test/42171612.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DynamicValue_text_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DynamicValue_text_feature", "_UI_DynamicValue_type"), - ActionStepPackage.eINSTANCE.getDynamicValue_Text(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the text feature </s> - diff --git a/funcom_test/42171620.txt b/funcom_test/42171620.txt deleted file mode 100644 index 3211b3f322cac0f9972c8f7f0a4e39ce7d501f4e..0000000000000000000000000000000000000000 --- a/funcom_test/42171620.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DynamicValue_type_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DynamicValue_type_feature", "_UI_DynamicValue_type"), - ActionStepPackage.eINSTANCE.getDynamicValue_Type(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the type feature </s> - diff --git a/funcom_test/42171692.txt b/funcom_test/42171692.txt deleted file mode 100644 index e9193ea4d727a05acf0270af7aea7065d10806ad..0000000000000000000000000000000000000000 --- a/funcom_test/42171692.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMessagePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DebugLog_message_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DebugLog_message_feature", "_UI_DebugLog_type"), - ActionStepPackage.eINSTANCE.getDebugLog_Message(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the message feature </s> - diff --git a/funcom_test/42171694.txt b/funcom_test/42171694.txt deleted file mode 100644 index 60a66f086529405a2ebf59b7016273785faeca5d..0000000000000000000000000000000000000000 --- a/funcom_test/42171694.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDebugLevelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DebugLog_debugLevel_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DebugLog_debugLevel_feature", "_UI_DebugLog_type"), - ActionStepPackage.eINSTANCE.getDebugLog_DebugLevel(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the debug level feature </s> - diff --git a/funcom_test/42171714.txt b/funcom_test/42171714.txt deleted file mode 100644 index 007dd00495010ad48366f0fd1486413425510edc..0000000000000000000000000000000000000000 --- a/funcom_test/42171714.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addBooleanExpressionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IfThen_booleanExpression_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IfThen_booleanExpression_feature", "_UI_IfThen_type"), - ActionStepPackage.eINSTANCE.getIfThen_BooleanExpression(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the boolean expression feature </s> - diff --git a/funcom_test/42171729.txt b/funcom_test/42171729.txt deleted file mode 100644 index 5ed52f18f5e0b7c915b78dee1517cfa93f8593c3..0000000000000000000000000000000000000000 --- a/funcom_test/42171729.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addParameterNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InputItem_parameterName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InputItem_parameterName_feature", "_UI_InputItem_type"), - ActionStepPackage.eINSTANCE.getInputItem_ParameterName(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the parameter name feature </s> - diff --git a/funcom_test/42171732.txt b/funcom_test/42171732.txt deleted file mode 100644 index e3cf5c9baaec74db5419ba61ff402167acc7fdc6..0000000000000000000000000000000000000000 --- a/funcom_test/42171732.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRequiredPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InputItem_required_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InputItem_required_feature", "_UI_InputItem_type"), - ActionStepPackage.eINSTANCE.getInputItem_Required(), - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the required feature </s> - diff --git a/funcom_test/42171766.txt b/funcom_test/42171766.txt deleted file mode 100644 index 7cb9a40f958cbe5d3ffd08763dcf649b152ba708..0000000000000000000000000000000000000000 --- a/funcom_test/42171766.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addJdbcStatementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBQueryId_jdbcStatement_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBQueryId_jdbcStatement_feature", "_UI_DBQueryId_type"), - ActionStepPackage.eINSTANCE.getDBQueryId_JdbcStatement(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the jdbc statement feature </s> - diff --git a/funcom_test/42171782.txt b/funcom_test/42171782.txt deleted file mode 100644 index acec16583fb0010eb264e677eebca0d7111b345a..0000000000000000000000000000000000000000 --- a/funcom_test/42171782.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addVariableNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GetColMapping_variableName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GetColMapping_variableName_feature", "_UI_GetColMapping_type"), - ActionStepPackage.eINSTANCE.getGetColMapping_VariableName(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the variable name feature </s> - diff --git a/funcom_test/42171784.txt b/funcom_test/42171784.txt deleted file mode 100644 index eb0aded625c666bd17187704005b20be17b2f93e..0000000000000000000000000000000000000000 --- a/funcom_test/42171784.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGetAsDatatypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GetColMapping_getAsDatatype_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_GetColMapping_getAsDatatype_feature", "_UI_GetColMapping_type"), - ActionStepPackage.eINSTANCE.getGetColMapping_GetAsDatatype(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the get as datatype feature </s> - diff --git a/funcom_test/42171814.txt b/funcom_test/42171814.txt deleted file mode 100644 index 696d671800e4cb420920566992a4563ec9b8de3f..0000000000000000000000000000000000000000 --- a/funcom_test/42171814.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addParameterPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SetQueryParam_parameter_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SetQueryParam_parameter_feature", "_UI_SetQueryParam_type"), - ActionStepPackage.eINSTANCE.getSetQueryParam_Parameter(), - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the parameter feature </s> - diff --git a/funcom_test/42171815.txt b/funcom_test/42171815.txt deleted file mode 100644 index 4a6048d2780726f10b8185a61ada1fdcd56abe7a..0000000000000000000000000000000000000000 --- a/funcom_test/42171815.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addParamDatatypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SetQueryParam_paramDatatype_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SetQueryParam_paramDatatype_feature", "_UI_SetQueryParam_type"), - ActionStepPackage.eINSTANCE.getSetQueryParam_ParamDatatype(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the param datatype feature </s> - diff --git a/funcom_test/42171835.txt b/funcom_test/42171835.txt deleted file mode 100644 index 7e4fe95ac3130b93c4341e70ebc5d7f01f76a890..0000000000000000000000000000000000000000 --- a/funcom_test/42171835.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUseCachePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OpenQuery_useCache_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_OpenQuery_useCache_feature", "_UI_OpenQuery_type"), - ActionStepPackage.eINSTANCE.getOpenQuery_UseCache(), - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the use cache feature </s> - diff --git a/funcom_test/42171846.txt b/funcom_test/42171846.txt deleted file mode 100644 index 318af6469d94d7cc88c080763b5e4ba2a3a93d83..0000000000000000000000000000000000000000 --- a/funcom_test/42171846.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addScrollModePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OpenQuery_scrollMode_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_OpenQuery_scrollMode_feature", "_UI_OpenQuery_type"), - ActionStepPackage.eINSTANCE.getOpenQuery_ScrollMode(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the scroll mode feature </s> - diff --git a/funcom_test/42171851.txt b/funcom_test/42171851.txt deleted file mode 100644 index 44523bf35d8b0b592b8834d3e3827f3c6de9f9e1..0000000000000000000000000000000000000000 --- a/funcom_test/42171851.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addHoldabilityModePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OpenQuery_holdabilityMode_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_OpenQuery_holdabilityMode_feature", "_UI_OpenQuery_type"), - ActionStepPackage.eINSTANCE.getOpenQuery_HoldabilityMode(), - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the holdability mode feature </s> - diff --git a/funcom_test/42171874.txt b/funcom_test/42171874.txt deleted file mode 100644 index c8c661f0e352c8eb8fc69bac456a2028af283418..0000000000000000000000000000000000000000 --- a/funcom_test/42171874.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addQueryParamPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_QueryParamMapping_queryParam_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_QueryParamMapping_queryParam_feature", "_UI_QueryParamMapping_type"), - ActionStepPackage.eINSTANCE.getQueryParamMapping_QueryParam(), - true, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the query param feature </s> - diff --git a/funcom_test/42171894.txt b/funcom_test/42171894.txt deleted file mode 100644 index 63057e889f99891b97cabb4694700a4d3d7c3508..0000000000000000000000000000000000000000 --- a/funcom_test/42171894.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addExceptionsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletContext_exceptions_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletContext_exceptions_feature", "_UI_SafletContext_type"), - SafletPackage.Literals.SAFLET_CONTEXT__EXCEPTIONS, - false, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the exceptions feature </s> - diff --git a/funcom_test/42171899.txt b/funcom_test/42171899.txt deleted file mode 100644 index 917b1b104865b5beb3acad129d845d0d9aa29467..0000000000000000000000000000000000000000 --- a/funcom_test/42171899.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addParentSafletPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletContext_parentSaflet_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletContext_parentSaflet_feature", "_UI_SafletContext_type"), - SafletPackage.Literals.SAFLET_CONTEXT__PARENT_SAFLET, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the parent saflet feature </s> - diff --git a/funcom_test/42171903.txt b/funcom_test/42171903.txt deleted file mode 100644 index 084ff8b8a63d2930115ac6b6deccd0a151dff645..0000000000000000000000000000000000000000 --- a/funcom_test/42171903.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSessionVariablesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletContext_sessionVariables_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletContext_sessionVariables_feature", "_UI_SafletContext_type"), - SafletPackage.Literals.SAFLET_CONTEXT__SESSION_VARIABLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the session variables feature </s> - diff --git a/funcom_test/42171958.txt b/funcom_test/42171958.txt deleted file mode 100644 index 534e58b1361ebc2e55868172b48297a1981b08f4..0000000000000000000000000000000000000000 --- a/funcom_test/42171958.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addNewCall1PropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CallSource1_newCall1_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_CallSource1_newCall1_feature", "_UI_CallSource1_type"), - CallPackage.Literals.CALL_SOURCE1__NEW_CALL1, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the new call1 feature </s> - diff --git a/funcom_test/42171960.txt b/funcom_test/42171960.txt deleted file mode 100644 index a7eb75ffb549aa6c2a96872c299318e0cdcdffaf..0000000000000000000000000000000000000000 --- a/funcom_test/42171960.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTargetSafletPathPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScheduleSaflet_targetSafletPath_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScheduleSaflet_targetSafletPath_feature", "_UI_ScheduleSaflet_type"), - Actionpak1Package.Literals.SCHEDULE_SAFLET__TARGET_SAFLET_PATH, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the target saflet path feature </s> - diff --git a/funcom_test/42171961.txt b/funcom_test/42171961.txt deleted file mode 100644 index 7e3191d8b66bdc144b1e8b221d62d9635defbfcc..0000000000000000000000000000000000000000 --- a/funcom_test/42171961.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCallNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_IncomingCall2_callName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_IncomingCall2_callName_feature", "_UI_IncomingCall2_type"), - Actionpak1Package.Literals.INCOMING_CALL2__CALL_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the call name feature </s> - diff --git a/funcom_test/42171968.txt b/funcom_test/42171968.txt deleted file mode 100644 index dec70c479eb6e7c592069c307f0e9d919fc81aad..0000000000000000000000000000000000000000 --- a/funcom_test/42171968.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addJobNamePrefixPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScheduleSaflet_jobNamePrefix_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScheduleSaflet_jobNamePrefix_feature", "_UI_ScheduleSaflet_type"), - Actionpak1Package.Literals.SCHEDULE_SAFLET__JOB_NAME_PREFIX, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the job name prefix feature </s> - diff --git a/funcom_test/42171974.txt b/funcom_test/42171974.txt deleted file mode 100644 index 9b52d481d45be4d734b2b64ab86d7b07282fb1bb..0000000000000000000000000000000000000000 --- a/funcom_test/42171974.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCronExpressionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScheduleSaflet_cronExpression_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScheduleSaflet_cronExpression_feature", "_UI_ScheduleSaflet_type"), - Actionpak1Package.Literals.SCHEDULE_SAFLET__CRON_EXPRESSION, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the cron expression feature </s> - diff --git a/funcom_test/42171982.txt b/funcom_test/42171982.txt deleted file mode 100644 index d01fec9a68d36c0b3004aade7080b1c9be11379f..0000000000000000000000000000000000000000 --- a/funcom_test/42171982.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStartDateTimePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScheduleSaflet_startDateTime_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScheduleSaflet_startDateTime_feature", "_UI_ScheduleSaflet_type"), - Actionpak1Package.Literals.SCHEDULE_SAFLET__START_DATE_TIME, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the start date time feature </s> - diff --git a/funcom_test/42171991.txt b/funcom_test/42171991.txt deleted file mode 100644 index b9da466f3f808b74426c2400a228e566e91f0a61..0000000000000000000000000000000000000000 --- a/funcom_test/42171991.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEndDateTimePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScheduleSaflet_endDateTime_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScheduleSaflet_endDateTime_feature", "_UI_ScheduleSaflet_type"), - Actionpak1Package.Literals.SCHEDULE_SAFLET__END_DATE_TIME, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the end date time feature </s> - diff --git a/funcom_test/42172000.txt b/funcom_test/42172000.txt deleted file mode 100644 index 01260e292b74e7172385f66d9f05ae56132f8202..0000000000000000000000000000000000000000 --- a/funcom_test/42172000.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCalendarNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ScheduleSaflet_calendarName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ScheduleSaflet_calendarName_feature", "_UI_ScheduleSaflet_type"), - Actionpak1Package.Literals.SCHEDULE_SAFLET__CALENDAR_NAME, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the calendar name feature </s> - diff --git a/funcom_test/42172003.txt b/funcom_test/42172003.txt deleted file mode 100644 index ab6912289bb7a6b0ab43809f4cd1137681afa578..0000000000000000000000000000000000000000 --- a/funcom_test/42172003.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addJobNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UnscheduleSaflet_jobName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_UnscheduleSaflet_jobName_feature", "_UI_UnscheduleSaflet_type"), - Actionpak1Package.Literals.UNSCHEDULE_SAFLET__JOB_NAME, - false, - false, - false, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the job name feature </s> - diff --git a/funcom_test/42172327.txt b/funcom_test/42172327.txt deleted file mode 100644 index 76087b3b3d87a775a034e0259a036a542426e892..0000000000000000000000000000000000000000 --- a/funcom_test/42172327.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) { - switch (getVisualID(req)) { - case OutputTargetEditPart.VISUAL_ID: - return getGEFWrapper(new OutputTargetReorientCommand(req)); - case CaseItemTargetToolstepEditPart.VISUAL_ID: - return getGEFWrapper(new CaseItemTargetToolstepReorientCommand(req)); - } - return super.getReorientReferenceRelationshipCommand(req); - } - COM: <s> returns command to reorient ereference based link </s> - diff --git a/funcom_test/42172539.txt b/funcom_test/42172539.txt deleted file mode 100644 index 666aba1572291aa83713b8e547555392d9240205..0000000000000000000000000000000000000000 --- a/funcom_test/42172539.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Point getPreferredLocation(IFigure borderItem) { - return getPreferredLocation(PositionConstants.EAST, borderItem); -// Point constraintLocation = getConstraint().getLocation(); -// Point ptAbsoluteLocation = this.getAbsoluteToBorder(constraintLocation); -// -// if (constraintLocation.x == 0 || constraintLocation.y == 0) { -// return getPreferredLocation(getPreferredSideOfParent(), borderItem); -// } else { -// return ptAbsoluteLocation; -// } - } - COM: <s> get the preferred location </s> - diff --git a/funcom_test/42172543.txt b/funcom_test/42172543.txt deleted file mode 100644 index 9eaf794a0683feda1de80a1223d7a5c214ef8f64..0000000000000000000000000000000000000000 --- a/funcom_test/42172543.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLastModifiedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ServerResource_lastModified_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ServerResource_lastModified_feature", "_UI_ServerResource_type"), - ConfigPackage.Literals.SERVER_RESOURCE__LAST_MODIFIED, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the last modified feature </s> - diff --git a/funcom_test/42172546.txt b/funcom_test/42172546.txt deleted file mode 100644 index 145b50d011c9286683b413f8b1c2fa02e3ce2ee0..0000000000000000000000000000000000000000 --- a/funcom_test/42172546.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLastUpdatedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ServerResource_lastUpdated_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ServerResource_lastUpdated_feature", "_UI_ServerResource_type"), - ConfigPackage.Literals.SERVER_RESOURCE__LAST_UPDATED, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the last updated feature </s> - diff --git a/funcom_test/42172551.txt b/funcom_test/42172551.txt deleted file mode 100644 index 7073807755bef0f8810ddc43200e5d79a97bc172..0000000000000000000000000000000000000000 --- a/funcom_test/42172551.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCreatedByPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ServerResource_createdBy_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ServerResource_createdBy_feature", "_UI_ServerResource_type"), - ConfigPackage.Literals.SERVER_RESOURCE__CREATED_BY, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the created by feature </s> - diff --git a/funcom_test/42172555.txt b/funcom_test/42172555.txt deleted file mode 100644 index 05c035be8701593ba04affb1b850d57243fa9712..0000000000000000000000000000000000000000 --- a/funcom_test/42172555.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addModifiedByPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ServerResource_modifiedBy_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ServerResource_modifiedBy_feature", "_UI_ServerResource_type"), - ConfigPackage.Literals.SERVER_RESOURCE__MODIFIED_BY, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the modified by feature </s> - diff --git a/funcom_test/42172564.txt b/funcom_test/42172564.txt deleted file mode 100644 index ac7e8da5b17757206ed2f09d0f63163e5407caa5..0000000000000000000000000000000000000000 --- a/funcom_test/42172564.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addEnabledPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafletProject_enabled_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafletProject_enabled_feature", "_UI_SafletProject_type"), - ConfigPackage.Literals.SAFLET_PROJECT__ENABLED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the enabled feature </s> - diff --git a/funcom_test/42172586.txt b/funcom_test/42172586.txt deleted file mode 100644 index 216bac823667341b662c4f5d66454f589dfcccf8..0000000000000000000000000000000000000000 --- a/funcom_test/42172586.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addBindIPPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafiServer_bindIP_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafiServer_bindIP_feature", "_UI_SafiServer_type"), - ConfigPackage.Literals.SAFI_SERVER__BIND_IP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the bind ip feature </s> - diff --git a/funcom_test/42172591.txt b/funcom_test/42172591.txt deleted file mode 100644 index 425f9636375e89dbe9162cc39dd147dd9eaa1455..0000000000000000000000000000000000000000 --- a/funcom_test/42172591.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSubsystemIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Saflet_subsystemId_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Saflet_subsystemId_feature", "_UI_Saflet_type"), - ConfigPackage.Literals.SAFLET__SUBSYSTEM_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the subsystem id feature </s> - diff --git a/funcom_test/42172592.txt b/funcom_test/42172592.txt deleted file mode 100644 index 64cae5b95eb4ecea8f370ae58fafb9d9429cd51b..0000000000000000000000000000000000000000 --- a/funcom_test/42172592.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addManagementPortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafiServer_managementPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafiServer_managementPort_feature", "_UI_SafiServer_type"), - ConfigPackage.Literals.SAFI_SERVER__MANAGEMENT_PORT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the management port feature </s> - diff --git a/funcom_test/42172598.txt b/funcom_test/42172598.txt deleted file mode 100644 index a89250e6ad5fb3a3ef0c226522b3151072d1c2e6..0000000000000000000000000000000000000000 --- a/funcom_test/42172598.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRunningPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafiServer_running_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafiServer_running_feature", "_UI_SafiServer_type"), - ConfigPackage.Literals.SAFI_SERVER__RUNNING, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the running feature </s> - diff --git a/funcom_test/42172601.txt b/funcom_test/42172601.txt deleted file mode 100644 index 8f12d4ca88eab1996357379348d8e432ca3ef5fa..0000000000000000000000000000000000000000 --- a/funcom_test/42172601.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addHostnamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_hostname_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_hostname_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__HOSTNAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the hostname feature </s> - diff --git a/funcom_test/42172603.txt b/funcom_test/42172603.txt deleted file mode 100644 index 4c7b70c5ca902fa8c15ec775b04bff38999d3276..0000000000000000000000000000000000000000 --- a/funcom_test/42172603.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDebugPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafiServer_debug_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafiServer_debug_feature", "_UI_SafiServer_type"), - ConfigPackage.Literals.SAFI_SERVER__DEBUG, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the debug feature </s> - diff --git a/funcom_test/42172609.txt b/funcom_test/42172609.txt deleted file mode 100644 index 490f1602181396951005aef64699ec14aca34753..0000000000000000000000000000000000000000 --- a/funcom_test/42172609.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDbPortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_SafiServer_dbPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_SafiServer_dbPort_feature", "_UI_SafiServer_type"), - ConfigPackage.Literals.SAFI_SERVER__DB_PORT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the db port feature </s> - diff --git a/funcom_test/42172610.txt b/funcom_test/42172610.txt deleted file mode 100644 index 046f75f3d8384f485aaa75f22735c80db82898a6..0000000000000000000000000000000000000000 --- a/funcom_test/42172610.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addQueryTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Query_queryType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Query_queryType_feature", "_UI_Query_type"), - DbPackage.Literals.QUERY__QUERY_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the query type feature </s> - diff --git a/funcom_test/42172611.txt b/funcom_test/42172611.txt deleted file mode 100644 index 36a2e6834791fdcf52dbe7f6e8ddc082bc98023f..0000000000000000000000000000000000000000 --- a/funcom_test/42172611.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addQuerySqlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Query_querySql_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Query_querySql_feature", "_UI_Query_type"), - DbPackage.Literals.QUERY__QUERY_SQL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the query sql feature </s> - diff --git a/funcom_test/42172615.txt b/funcom_test/42172615.txt deleted file mode 100644 index 3aac1600605d4837fb67c428f16618ef2267efce..0000000000000000000000000000000000000000 --- a/funcom_test/42172615.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSafiServerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_safiServer_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_safiServer_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__SAFI_SERVER, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the safi server feature </s> - diff --git a/funcom_test/42172619.txt b/funcom_test/42172619.txt deleted file mode 100644 index 2aaf1dbd1a7f9f5c8fb7b147566d09a8d0059126..0000000000000000000000000000000000000000 --- a/funcom_test/42172619.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPrivatePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_private_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_private_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__PRIVATE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the private feature </s> - diff --git a/funcom_test/42172625.txt b/funcom_test/42172625.txt deleted file mode 100644 index d0faa18b1b98567ba43e1068d237602e847c27f9..0000000000000000000000000000000000000000 --- a/funcom_test/42172625.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addVisibleSafiServerIPPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_visibleSafiServerIP_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_visibleSafiServerIP_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__VISIBLE_SAFI_SERVER_IP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the visible safi server ip feature </s> - diff --git a/funcom_test/42172637.txt b/funcom_test/42172637.txt deleted file mode 100644 index edf71f160a25f49751cb7b3c871b1f2f356bc747..0000000000000000000000000000000000000000 --- a/funcom_test/42172637.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addManagerNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_managerName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_managerName_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__MANAGER_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the manager name feature </s> - diff --git a/funcom_test/42172643.txt b/funcom_test/42172643.txt deleted file mode 100644 index 0c4e2fdb1a138387a8dd7256a9140eb635d11eb9..0000000000000000000000000000000000000000 --- a/funcom_test/42172643.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDriverClassNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_driverClassName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_driverClassName_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__DRIVER_CLASS_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the driver class name feature </s> - diff --git a/funcom_test/42172644.txt b/funcom_test/42172644.txt deleted file mode 100644 index 4c1c29f445bf7def7106b8f86516ec411a405130..0000000000000000000000000000000000000000 --- a/funcom_test/42172644.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDefaultValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Variable_defaultValue_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Variable_defaultValue_feature", "_UI_Variable_type"), - DbPackage.Literals.VARIABLE__DEFAULT_VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the default value feature </s> - diff --git a/funcom_test/42172646.txt b/funcom_test/42172646.txt deleted file mode 100644 index cc9ba7eb5faf9f9277eca4451ad41e9eb729fb87..0000000000000000000000000000000000000000 --- a/funcom_test/42172646.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addManagerPasswordPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_managerPassword_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_managerPassword_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__MANAGER_PASSWORD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the manager password feature </s> - diff --git a/funcom_test/42172651.txt b/funcom_test/42172651.txt deleted file mode 100644 index b437d2a7b6a53181255e0ffe1227623e7cef00b0..0000000000000000000000000000000000000000 --- a/funcom_test/42172651.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPoolingPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_pooling_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_pooling_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__POOLING, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the pooling feature </s> - diff --git a/funcom_test/42172656.txt b/funcom_test/42172656.txt deleted file mode 100644 index 6315aa922a4e81322b4a37a08fd6ba43fa3f6e78..0000000000000000000000000000000000000000 --- a/funcom_test/42172656.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addManagerPortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_managerPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_managerPort_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__MANAGER_PORT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the manager port feature </s> - diff --git a/funcom_test/42172657.txt b/funcom_test/42172657.txt deleted file mode 100644 index f846aeb02419838f6dc874bd566a3ea8452e9e06..0000000000000000000000000000000000000000 --- a/funcom_test/42172657.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addExampleUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_exampleUrl_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_exampleUrl_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__EXAMPLE_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the example url feature </s> - diff --git a/funcom_test/42172662.txt b/funcom_test/42172662.txt deleted file mode 100644 index 86188a93a3c3f1dbd30e6eca61c708bcc9ce847f..0000000000000000000000000000000000000000 --- a/funcom_test/42172662.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addJarsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_jars_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_jars_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__JARS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the jars feature </s> - diff --git a/funcom_test/42172663.txt b/funcom_test/42172663.txt deleted file mode 100644 index 35a9216c43ac20a2ded85b67f1bbdfc5ea34398e..0000000000000000000000000000000000000000 --- a/funcom_test/42172663.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addVersionIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_versionId_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_versionId_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__VERSION_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the version id feature </s> - diff --git a/funcom_test/42172667.txt b/funcom_test/42172667.txt deleted file mode 100644 index 7cd930493b905615dd9bf961c61fcd965a6059af..0000000000000000000000000000000000000000 --- a/funcom_test/42172667.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDefaultPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_default_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_default_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__DEFAULT, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the default feature </s> - diff --git a/funcom_test/42172668.txt b/funcom_test/42172668.txt deleted file mode 100644 index 63c53019150c71204f9ef417acbc3df81c5a6f85..0000000000000000000000000000000000000000 --- a/funcom_test/42172668.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPromptDirectoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TelephonySubsystem_promptDirectory_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TelephonySubsystem_promptDirectory_feature", "_UI_TelephonySubsystem_type"), - ConfigPackage.Literals.TELEPHONY_SUBSYSTEM__PROMPT_DIRECTORY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the prompt directory feature </s> - diff --git a/funcom_test/42172671.txt b/funcom_test/42172671.txt deleted file mode 100644 index fc149ea2279dd39215fcb71b764efb60d939e0e2..0000000000000000000000000000000000000000 --- a/funcom_test/42172671.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGuideUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_guideUrl_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_guideUrl_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__GUIDE_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the guide url feature </s> - diff --git a/funcom_test/42172678.txt b/funcom_test/42172678.txt deleted file mode 100644 index 24fed786d288bd695ce3db8203cf2be01510ceb4..0000000000000000000000000000000000000000 --- a/funcom_test/42172678.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addWebsiteUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_websiteUrl_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_websiteUrl_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__WEBSITE_URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the website url feature </s> - diff --git a/funcom_test/42172682.txt b/funcom_test/42172682.txt deleted file mode 100644 index 20dc6559df4424cb4156d2d962cef0225af84678..0000000000000000000000000000000000000000 --- a/funcom_test/42172682.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDefaultPortPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_defaultPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_defaultPort_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__DEFAULT_PORT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the default port feature </s> - diff --git a/funcom_test/42172687.txt b/funcom_test/42172687.txt deleted file mode 100644 index 48f43ec44424f23798282328469b68e75197f94d..0000000000000000000000000000000000000000 --- a/funcom_test/42172687.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUrlRegexPatternPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBDriver_urlRegexPattern_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBDriver_urlRegexPattern_feature", "_UI_DBDriver_type"), - DbPackage.Literals.DB_DRIVER__URL_REGEX_PATTERN, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the url regex pattern feature </s> - diff --git a/funcom_test/42172689.txt b/funcom_test/42172689.txt deleted file mode 100644 index 80695b76504e70a0e03150a5dbb3c37a8fa402f9..0000000000000000000000000000000000000000 --- a/funcom_test/42172689.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDataTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_QueryParameter_dataType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_QueryParameter_dataType_feature", "_UI_QueryParameter_type"), - DbPackage.Literals.QUERY_PARAMETER__DATA_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the data type feature </s> - diff --git a/funcom_test/42172713.txt b/funcom_test/42172713.txt deleted file mode 100644 index 3fddacb7bfabc67e78efb3fd95eba2a01142548d..0000000000000000000000000000000000000000 --- a/funcom_test/42172713.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUrlPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_url_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_url_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__URL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the url feature </s> - diff --git a/funcom_test/42172719.txt b/funcom_test/42172719.txt deleted file mode 100644 index 95356452fa53b75098600dd352bac9f900356ce7..0000000000000000000000000000000000000000 --- a/funcom_test/42172719.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUserPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_user_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_user_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__USER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the user feature </s> - diff --git a/funcom_test/42172724.txt b/funcom_test/42172724.txt deleted file mode 100644 index 7736d748d81e849ec8982c5862da5c75069c955a..0000000000000000000000000000000000000000 --- a/funcom_test/42172724.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addLoginTimeoutPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_loginTimeout_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_loginTimeout_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__LOGIN_TIMEOUT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the login timeout feature </s> - diff --git a/funcom_test/42172725.txt b/funcom_test/42172725.txt deleted file mode 100644 index fde4ae415daba145536cf0ff7ddd89c66f33d996..0000000000000000000000000000000000000000 --- a/funcom_test/42172725.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPropertiesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_properties_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_properties_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__PROPERTIES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the properties feature </s> - diff --git a/funcom_test/42172731.txt b/funcom_test/42172731.txt deleted file mode 100644 index 5890922421f32c69b3c1e22952b9e2b466d0cbd5..0000000000000000000000000000000000000000 --- a/funcom_test/42172731.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTransactionModePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_transactionMode_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_transactionMode_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__TRANSACTION_MODE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the transaction mode feature </s> - diff --git a/funcom_test/42172735.txt b/funcom_test/42172735.txt deleted file mode 100644 index 65d730470c8177bb7f917429cb875f5d7060062f..0000000000000000000000000000000000000000 --- a/funcom_test/42172735.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMinPoolSizePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_minPoolSize_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_minPoolSize_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__MIN_POOL_SIZE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the min pool size feature </s> - diff --git a/funcom_test/42172736.txt b/funcom_test/42172736.txt deleted file mode 100644 index 4c59e47af6690c4302b2f37ab2b6e9116a1ba0a7..0000000000000000000000000000000000000000 --- a/funcom_test/42172736.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMaxPoolSizePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_maxPoolSize_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_maxPoolSize_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__MAX_POOL_SIZE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the max pool size feature </s> - diff --git a/funcom_test/42172737.txt b/funcom_test/42172737.txt deleted file mode 100644 index ee63c156893475f0c0495f55c9674f0b512098aa..0000000000000000000000000000000000000000 --- a/funcom_test/42172737.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAcquireIncrementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_acquireIncrement_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_acquireIncrement_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__ACQUIRE_INCREMENT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the acquire increment feature </s> - diff --git a/funcom_test/42172743.txt b/funcom_test/42172743.txt deleted file mode 100644 index aa86b93b76baa2ecfad0e3bb28904d1a85c09de7..0000000000000000000000000000000000000000 --- a/funcom_test/42172743.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMaxIdleTimePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DBConnection_maxIdleTime_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DBConnection_maxIdleTime_feature", "_UI_DBConnection_type"), - DbPackage.Literals.DB_CONNECTION__MAX_IDLE_TIME, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the max idle time feature </s> - diff --git a/funcom_test/42176473.txt b/funcom_test/42176473.txt deleted file mode 100644 index 9617d7e268b13229e361065f23c13675e5bb70e7..0000000000000000000000000000000000000000 --- a/funcom_test/42176473.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void createMetaPropertyAnnotations() { - String source = "MetaProperty"; - addAnnotation - (getAssignment_VariableName(), - source, - new String[] { - "displayText", "Variable" - }); - addAnnotation - (getExecuteUpdate_RowsUpdatedVar(), - source, - new String[] { - "displayText", "Update Count Variable" - }); - } - COM: <s> initializes the annotations for b meta property b </s> - diff --git a/funcom_test/42178755.txt b/funcom_test/42178755.txt deleted file mode 100644 index 4daec99496ba1decc75a144ec28b8c0bb92f1f4d..0000000000000000000000000000000000000000 --- a/funcom_test/42178755.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Command getDragCommand(ChangeBoundsRequest request) { - return null; -// ChangeBoundsRequest req = new ChangeBoundsRequest(REQ_ORPHAN); -// req.setEditParts(request.getEditParts()); -// req.setMoveDelta(request.getMoveDelta()); -// req.setSizeDelta(request.getSizeDelta()); -// req.setLocation(request.getLocation()); -// req.setResizeDirection(request.getResizeDirection()); -// return getHost().getCommand(req); - } - COM: <s> gets a drag command </s> - diff --git a/funcom_test/4218894.txt b/funcom_test/4218894.txt deleted file mode 100644 index b046ac3a82f6f9546ebd1c7c0d7d4056f0c49055..0000000000000000000000000000000000000000 --- a/funcom_test/4218894.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void destroyGL(GL gl) { - landscape.destroyGL(gl); - sky.destroyGL(gl); - plugins.destroyGL(gl); - light.destroyGL(gl); - - // Destroy Ptolemy3D OpenGL datas - if (ptolemy.fontTextRenderer != null) { - ptolemy.fontTextRenderer.destroyGL(gl); - ptolemy.fontTextRenderer = null; - } - if (ptolemy.fontNumericRenderer != null) { - ptolemy.fontNumericRenderer.destroyGL(gl); - ptolemy.fontNumericRenderer = null; - } - - ptolemy.textureManager.destroyGL(gl); - } - COM: <s> destroy open gl data of the scene </s> - diff --git a/funcom_test/42292201.txt b/funcom_test/42292201.txt deleted file mode 100644 index c04f71dd17849a7de959992aaab3239808b33fe2..0000000000000000000000000000000000000000 --- a/funcom_test/42292201.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean removeVertex(int v) { - - if(this.containsVertex(v)) { - Vertex tmp; - for(Iterator<Vertex> i = vertexList.iterator(); i.hasNext(); ) { - tmp = i.next(); - if(tmp.getId() == v) - i.remove(); - - if(tmp.hasPre(v)) - tmp.removePre(v); - - if(tmp.hasSuc(v)) - tmp.removeSuc(v); - } - return true; - } - else { - return false; - } - - } - COM: <s> removes vertex with id v from graph </s> - diff --git a/funcom_test/42292223.txt b/funcom_test/42292223.txt deleted file mode 100644 index b8fa2a2dc30f142dec3139a000574546f0f0ee95..0000000000000000000000000000000000000000 --- a/funcom_test/42292223.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean removeVertex(Vertex v) { - - if(this.containsVertex(v)) { - Vertex tmp; - for(Iterator<Vertex> i = vertexList.iterator(); i.hasNext(); ) { - tmp = i.next(); - if(tmp.getId() == v.getId()) - i.remove(); - - if(tmp.hasPre(v.getId())) - tmp.removePre(v.getId()); - - if(tmp.hasSuc(v.getId())) - tmp.removeSuc(v.getId()); - } - return true; - } - else { - return false; - } - - } - COM: <s> boolean remove vertex vertex v </s> - diff --git a/funcom_test/42332844.txt b/funcom_test/42332844.txt deleted file mode 100644 index fd8ce4c14b7b6a878cff02c9b3ee4ff06bb4c99f..0000000000000000000000000000000000000000 --- a/funcom_test/42332844.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void run ( ) { - try { - String focus = null; - while ( true ) { - focus = queue.take(); // blocked - try { - if ( s == null ) { - s = new Socket( ip , port ); - } - if ( bw == null ) { - bw = new BufferedWriter(new OutputStreamWriter(s.getOutputStream())); - } - bw.write( focus ); - } catch ( Exception e ) { - //todo implement retry meganism.. - //queue.offer( focus ); - s = null; - focus = null; - } - } - } catch ( Exception e ) { - - } - } - COM: <s> the run method for this object </s> - diff --git a/funcom_test/42332903.txt b/funcom_test/42332903.txt deleted file mode 100644 index 6bc9eae122977fc362a7fc653a121b064570b3cf..0000000000000000000000000000000000000000 --- a/funcom_test/42332903.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void updateAnalog(long interval) { - if (interval <= 0 || interval > Integer.MAX_VALUE) { - throw new IllegalArgumentException("Illegal interval"); - } - if ( aau == null ) { - aau = new AutoAnalogUpdater((int) interval); - } else { - if ( interval != aau.getInterval() ) { - interruptAutoUpdate(); - updateAnalog(interval); - } - } - } - COM: <s> start the autoupdater </s> - diff --git a/funcom_test/42332959.txt b/funcom_test/42332959.txt deleted file mode 100644 index e9a219cb989c32340f62142923f9a108ee98f5fe..0000000000000000000000000000000000000000 --- a/funcom_test/42332959.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void kill ( ) { - try { - if ( _s != null ) { - if ( ! _s.isClosed() ) { - _s.close(); - } - _s = null; - } - } catch ( IOException io ) { - io.printStackTrace(); // TODO: remove - RemoteManagementServer.debug.println( "IOException occured while client " + _id + " tried to disconnect" ); - } - me.interrupt(); - RemoteManagementServer.debug.println( "Client " + _id + " killed" ); - } - COM: <s> kill this client </s> - diff --git a/funcom_test/42413184.txt b/funcom_test/42413184.txt deleted file mode 100644 index 8bdd92dda6754d0f8600b354ec16a346c325e0bf..0000000000000000000000000000000000000000 --- a/funcom_test/42413184.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void managePackageName(String juiFile, List<String> juicCommand) { - if (derivePackageName != null && derivePackageName.booleanValue()) { - String pkgName = getPackageForJuiFile(juiFile); - if (pkgName.trim().length() > 0) { - juicCommand.add("-p"); - juicCommand.add(pkgName); - } - } - } - COM: <s> checks whether the package attribute for command invocation should be </s> - diff --git a/funcom_test/42491188.txt b/funcom_test/42491188.txt deleted file mode 100644 index cb2506a8896d9e83a41434e8f2684f6282615ad3..0000000000000000000000000000000000000000 --- a/funcom_test/42491188.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void removeFromWorld(FoldEntity e) { - synchronized (e) { - e.cancelAutomations(); - e.murderChildren(); - - synchronized (myAutomator) { - removeTopLevelAnchor(e.getAnchor(), e.getAbsoluteDepth()); - - FoldEntity parent = e.getParent(); - - if (parent != null) { - parent.removeAnchoredEntity(e); - } - - e.setIsAlive(false); - } - } - } - COM: <s> p removes code e code from this code fold world code along with </s> - diff --git a/funcom_test/42515004.txt b/funcom_test/42515004.txt deleted file mode 100644 index 53c71eb9cba24998454431c8d0a7b6f495f82ab9..0000000000000000000000000000000000000000 --- a/funcom_test/42515004.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String restrictionToString(List<PlayerRestriction> lista){ - if (lista.isEmpty()) return ""; - - StringBuilder sb = new StringBuilder(10); - - for (PlayerRestriction restric : lista){ - sb.append(restric.generateStringRestriction()).append(','); - } - //remove last ',' - - sb.deleteCharAt(sb.lastIndexOf(",")); - return sb.toString(); - } - COM: <s> p generates a string representing all restrictions passed as parameters </s> - diff --git a/funcom_test/42515147.txt b/funcom_test/42515147.txt deleted file mode 100644 index 18f944507177fa2f01f7f3c0eb2a214f29776d05..0000000000000000000000000000000000000000 --- a/funcom_test/42515147.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void removeRange(int fromIndex, int toIndex) { - if (fromIndex > toIndex) { - throw new IllegalArgumentException("fromIndex must be <= toIndex"); - } - for(int i = toIndex; i >= fromIndex; i--) { - delegate.remove(i); - } - fireIntervalRemoved(this, fromIndex, toIndex); - } - COM: <s> deletes the components at the specified range of indexes </s> - diff --git a/funcom_test/42515205.txt b/funcom_test/42515205.txt deleted file mode 100644 index cd9d04777054a9e09b2f612c1dde2fca35b2736f..0000000000000000000000000000000000000000 --- a/funcom_test/42515205.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void changeTreeFont(Container jcomp, Font f){ - //jcomp.setFont(f); - for (Component c : jcomp.getComponents()){ - c.setFont(f); - if (c instanceof Container){ - changeTreeFont((Container) c,f); - } - if (c instanceof JMenu){ - changeTreeFont(((JMenu)c).getPopupMenu(),f); - } - } - } - COM: <s> changes the font of the component and all his subcomponents </s> - diff --git a/funcom_test/42517390.txt b/funcom_test/42517390.txt deleted file mode 100644 index 1a13cfd60be4c005b6c8df3726fd7bb41574d655..0000000000000000000000000000000000000000 --- a/funcom_test/42517390.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void makePluginsMenu(JMenu menu){ - int i; - Plugger plug = (Plugger) ServiceSetter.getServiceSetter().getServiceByName(Plugger.class.getName()); - List<Plugin> list = plug.getPlugins(); - for (Plugin pl : list){ - checkPluginMenu(pl.getMenuPath(), menu, pl); - } - } - COM: <s> creates the plugin menu </s> - diff --git a/funcom_test/42585783.txt b/funcom_test/42585783.txt deleted file mode 100644 index 367dadb843c3a9a478cd2f835b58341fcae43b25..0000000000000000000000000000000000000000 --- a/funcom_test/42585783.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Room create(Hotel hotel, RoomType rt, int maxOccupancy,String desc, boolean enabled, RoomStatusEnum status){ - Room room = new Room(hotel); - room.setMaxOccupancy(maxOccupancy); - room.setDescription(desc); - room.setEnabled(enabled); - room.setStatus(status); - return roomDAO.save(room); - } - COM: <s> method for create one room </s> - diff --git a/funcom_test/4262730.txt b/funcom_test/4262730.txt deleted file mode 100644 index 27b52b0267d394a39eb51099d23b80f8d308879c..0000000000000000000000000000000000000000 --- a/funcom_test/4262730.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void draw() { - background(bgColor); - - /* Log FPS data */ - clickFrameTimer(); - - if (keyPressed) console.println("Frame rate: "+averagedFPS); - if (mousePressed) console.setVisible(true); - else console.setVisible(false); - - /* Pass off control based on game state */ - switch(gameState) { - case INTRO: - setGameState(GameState.LEVELPLAY); - break; - case LEVELPLAY: - break; - case ABOUT: - setGameState(GameState.LEVELPLAY); - break; - } - - /* Draw any debugging information to the screen */ - console.draw(); - } - COM: <s> called every frame </s> - diff --git a/funcom_test/4263083.txt b/funcom_test/4263083.txt deleted file mode 100644 index 3091aa5e4824f1e57ac1ebec894edb667467ef0f..0000000000000000000000000000000000000000 --- a/funcom_test/4263083.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initSpringLengths() { - for (int i = 0; i < numParticles - 1; i++) { - for (int j = i + 1; j < numParticles; j++) { - int k = getSpringIndex(i, j); - springList[k] = new Spring(particle[i], particle[j], - pose.targetSpring[k], springStrength, springDamping); - } - } - } - COM: <s> this method creates springs to connect each com </s> - diff --git a/funcom_test/42697879.txt b/funcom_test/42697879.txt deleted file mode 100644 index 6072e8cb9f1d5505c299ddc38011ad6f7ec524e2..0000000000000000000000000000000000000000 --- a/funcom_test/42697879.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void initialize() { - this.setSize(540, 101); - Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); - this.setLocation( - ( screenSize.width - this.getWidth() ) / 2, - ( screenSize.height - this.getHeight() ) / 2 - ); - this.setContentPane(getJContentPane()); - - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/42697881.txt b/funcom_test/42697881.txt deleted file mode 100644 index 0b1719c406d3b38b6a3a4388330e4b2d4632311d..0000000000000000000000000000000000000000 --- a/funcom_test/42697881.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - current = new JLabel(); - current.setText("lade..."); - current.setSize(new Dimension(453, 16)); - current.setLocation(new Point(29, 13)); - jContentPane = new JPanel(); - jContentPane.setLayout(null); - jContentPane.add(getProgress(), null); - jContentPane.add(current, null); - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/42757406.txt b/funcom_test/42757406.txt deleted file mode 100644 index 08de7eba7084c1da840068e77a19546c05c71121..0000000000000000000000000000000000000000 --- a/funcom_test/42757406.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String stackTraceToString(StackTraceElement[] elements) { - if (elements == null) { - return ""; - } - - StringBuilder strBuilder = new StringBuilder(); - for (StackTraceElement element : elements) { - strBuilder.append(element.toString()); - strBuilder.append("\n"); - } - - if (strBuilder.length() != 0) { - strBuilder.delete(strBuilder.length() - 1, strBuilder.length()); - } - - return strBuilder.toString(); - } - COM: <s> returns a string representation of the stack trace </s> - diff --git a/funcom_test/42757424.txt b/funcom_test/42757424.txt deleted file mode 100644 index 8a8620e6e07bf98c3087bfb2d496c9aab41adee8..0000000000000000000000000000000000000000 --- a/funcom_test/42757424.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getAgentId(MBeanServer mBeanServer) { - Assert.notNull(mBeanServer, "Parameter mBeanServer must be non null"); - try { - return (String) mBeanServer.getAttribute(new ObjectName( - "JMImplementation:type=MBeanServerDelegate"), - "MBeanServerId"); - } catch (Exception exception) { - throw new JmxException( - "Error occured during trying to get agentId of mBeanServer", - exception); - } - } - COM: <s> returns the agent id of the passed mbean server </s> - diff --git a/funcom_test/42757677.txt b/funcom_test/42757677.txt deleted file mode 100644 index 90978ca9112cb6aba04f2eb0d1adcad1090443fc..0000000000000000000000000000000000000000 --- a/funcom_test/42757677.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private ASTInterpreter constructInterpreter(String input) throws Exception { - Environment environment = new Environment(null); - environment.setExecutionPhase(TargetMethodExecutionPhase.INVOCATION); - environment.setTargetMethod(Object.class.getMethods()[0]); - environment.setTargetObject(new Object()); - - List<IPlaceholderResolver> resolverList = new ArrayList<IPlaceholderResolver>(); - resolverList.add(new ThreadIdPlaceholderResolver()); - resolverList.add(new SumPlaceholderResolver()); - - PlaceholderScriptParser parser = new PlaceholderScriptParser(input); - ScriptNode scriptNode = parser.parse(); - - return new ASTInterpreter(scriptNode, resolverList, environment); - - } - COM: <s> constructs an astinterpreter for the given placeholder script </s> - diff --git a/funcom_test/42757848.txt b/funcom_test/42757848.txt deleted file mode 100644 index da72a27730d7f2248c46216c7c7a48b52520c73b..0000000000000000000000000000000000000000 --- a/funcom_test/42757848.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setPropertyNameValueMap(Map<String, Object> propertyNameValueMap) { - if (propertyNameValueMap == null) { - this.propertyNameValueMap = null; - } else { - this.propertyNameValueMap = new HashMap<String, Object>(); - this.propertyNameValueMap.putAll(propertyNameValueMap); - this.propertyNameValueMap.remove(null); - } - } - COM: <s> sets a map of property name property value mappings </s> - diff --git a/funcom_test/42757931.txt b/funcom_test/42757931.txt deleted file mode 100644 index 8e70a81967368bc25af237ef6c5fea3cc988e672..0000000000000000000000000000000000000000 --- a/funcom_test/42757931.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addChildNode(ASTNode childNode) throws IllegalArgumentException { - Assert.notNull(childNode, "Parameter childNode must be non null!"); - Assert.isTrue((childNode != this), - "Can not add this as a child node of this."); - if (!childNodeList.contains(childNode)) { - childNode.setParentNode(this); - childNodeList.add(childNode); - } - } - COM: <s> adds the given node as a child node of this node </s> - diff --git a/funcom_test/42758077.txt b/funcom_test/42758077.txt deleted file mode 100644 index c9bad1a582169ef5475fa1e70e78375eea3f9d80..0000000000000000000000000000000000000000 --- a/funcom_test/42758077.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public int compareTo(LockInformation other) { - if (other == null) { - return 1; - } - - int diff = (int) Math.signum(lockOrderNumber - - other.getLockOrderNumber()); - if (diff == 0) { - CompareToHelper helper = null; - SingletonPool pool = SingletonPool.getSharedInstance(); - try { - helper = pool.retrieveSingleton(CompareToHelper.class); - return helper.compareTo(lockKey, other.getLockKey()); - } catch (ReflectionException exception) { - throw new RuntimeException(exception); - } - } - return diff; - } - COM: <s> compares two lock informations with each other </s> - diff --git a/funcom_test/42759620.txt b/funcom_test/42759620.txt deleted file mode 100644 index a5082e5831841730963f0025f2bf11e1a484ea22..0000000000000000000000000000000000000000 --- a/funcom_test/42759620.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void removeComponentFactories(List<ComponentFactory> componentFactories, Class<? extends ComponentFactory>... classes) { - for (Iterator<ComponentFactory> iterator = componentFactories.iterator(); iterator - .hasNext();) { - ComponentFactory componentFactory = (ComponentFactory) iterator - .next(); - if (isAssignableToAny(componentFactory, classes)) { - iterator.remove(); - } - } - } - COM: <s> allows the subclass to remove any built in factories </s> - diff --git a/funcom_test/42759786.txt b/funcom_test/42759786.txt deleted file mode 100644 index 6173a1d9bdc0e8370c89575f003c11d97eae560b..0000000000000000000000000000000000000000 --- a/funcom_test/42759786.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ScalarModel getPropertyModel(PropertyMemento pm) { - ScalarModel scalarModel = propertyScalarModels.get(pm); - if (scalarModel == null) { - scalarModel = new ScalarModel(getObjectAdapterMemento(), pm); - if (isViewMode()) { - scalarModel.toViewMode(); - } else { - scalarModel.toEditMode(); - } - propertyScalarModels.put(pm, scalarModel); - } - return scalarModel; - - } - COM: <s> lazily populates with the current value of each property </s> - diff --git a/funcom_test/42760486.txt b/funcom_test/42760486.txt deleted file mode 100644 index aafb4b1beaa40a7ac0161bf869ce07f041529ad4..0000000000000000000000000000000000000000 --- a/funcom_test/42760486.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException { - - if (doc instanceof StyledDocument) { - // PENDING(prinz) this needs to be fixed to - // insert to the given position. - ANSIReader rdr = new ANSIReader((StyledDocument) doc); - rdr.readFromStream(in); - } else { - // treat as text/plain - super.read(in, doc, pos); - } - } - COM: <s> insert content from the given stream which is expected </s> - diff --git a/funcom_test/4278756.txt b/funcom_test/4278756.txt deleted file mode 100644 index 4d79ba34260c4bdcc9c889764891c8e904d33876..0000000000000000000000000000000000000000 --- a/funcom_test/4278756.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void autoRegisterType(String type, String extension) { - if (extension == null) { - return; - } - - try { - getFactory().getType(type); - } catch (Exception e) { - getFactory().registerType(new RepoType(type, "Automatically registered type", extension)); - } - } - COM: <s> automatically registers unkown types discovered when listing </s> - diff --git a/funcom_test/4279171.txt b/funcom_test/4279171.txt deleted file mode 100644 index 613b4fede78894514e495cf55d4259799c648dbd..0000000000000000000000000000000000000000 --- a/funcom_test/4279171.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String formatPaths(Collection paths, boolean onlyConflicted) { - StringBuffer sb = new StringBuffer(); - - for (Iterator i = paths.iterator(); i.hasNext();) { - ResolvedPath path = (ResolvedPath)i.next(); - sb.append(formatPath(path, onlyConflicted)); - } - - return sb.toString(); - } - COM: <s> returns the paths formatted as a tree </s> - diff --git a/funcom_test/4279678.txt b/funcom_test/4279678.txt deleted file mode 100644 index b507344fb03d9f109f1e85240192f78b3a56023a..0000000000000000000000000000000000000000 --- a/funcom_test/4279678.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object invoke(Object object, String name, Object[] parameters) { - Class[] parameterTypes = new Class[parameters.length]; - - for (int i = 0; i < parameters.length; i++) { - Object parameter = parameters[i]; - parameterTypes[i] = parameter.getClass(); - } - - Method method = getMethod(object.getClass(), name, parameterTypes); - - return invoke(method, object, parameters); - } - COM: <s> invokes a method on an object with the parameters provided </s> - diff --git a/funcom_test/4279681.txt b/funcom_test/4279681.txt deleted file mode 100644 index 0268d363532feef2ae918c79429302aa6ca1d001..0000000000000000000000000000000000000000 --- a/funcom_test/4279681.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Object invoke(Method method, Object object, Object[] parameters) { - try { - return method.invoke(object, parameters); - } catch (InvocationTargetException e) { - if (e.getTargetException() instanceof RuntimeException) { - throw (RuntimeException)e.getTargetException(); - } - - throw new BuildException(e.getTargetException()); - } catch (Exception e) { - throw new BuildException(e); - } - } - COM: <s> invokes a method on an a method object with the parameters provided </s> - diff --git a/funcom_test/4279695.txt b/funcom_test/4279695.txt deleted file mode 100644 index 72daea0a5ddf39af7e69c1cad57e95b0b094963a..0000000000000000000000000000000000000000 --- a/funcom_test/4279695.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Object construct(Class clazz) { - Constructor constructor; - - try { - constructor = clazz.getDeclaredConstructor(new Class[] { }); - } catch (NoSuchMethodException e) { - throw new BuildException("A no-arg constructor must be provided", e); - } - - constructor.setAccessible(true); - - try { - return constructor.newInstance(new Object[] { }); - } catch (Exception e) { - throw new BuildException(e); - } - } - COM: <s> constructs an object using its no args constructor softening any exceptions </s> - diff --git a/funcom_test/4279755.txt b/funcom_test/4279755.txt deleted file mode 100644 index db1c7979421ff04ec34fe17c84e7aa1cefbdd118..0000000000000000000000000000000000000000 --- a/funcom_test/4279755.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void copyStream(final URL url, final File file) { - new VoidExceptionHandler() { - public void run() throws Exception { - InputStream inputStream = url.openStream(); - Assert.isTrue(inputStream != null, "Cannot open stream from url: " + url); - copyStream(inputStream, file); - } - }; - } - COM: <s> copies the stream from an url to a file </s> - diff --git a/funcom_test/4279814.txt b/funcom_test/4279814.txt deleted file mode 100644 index 1fe623d9915a4e3e321abec5ede13933b7e3ba0a..0000000000000000000000000000000000000000 --- a/funcom_test/4279814.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String toHex(byte[] fileDigest) { - StringBuffer hex = new StringBuffer(); - - for (int i = 0; i < fileDigest.length; i++) { - String hexStr = Integer.toHexString(0x00ff & fileDigest[i]); - - if (hexStr.length() < 2) { - hex.append("0"); - } - - hex.append(hexStr); - } - - return hex.toString(); - } - COM: <s> converts the bytes given to a hex string representation </s> - diff --git a/funcom_test/4279890.txt b/funcom_test/4279890.txt deleted file mode 100644 index 29c9270357aa30aaf56359e26a0827c3a7b5cbc5..0000000000000000000000000000000000000000 --- a/funcom_test/4279890.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public boolean equalsExcludingPaths(RepoOverride other) { - return nsEquals(group, other.group) && nsEquals(name, other.name) && nsEquals(type, other.type) - && nsEquals(version, other.version) && nsEquals(withVersion, other.withVersion) - && nsEquals(withPathSpecs, other.withPathSpecs); - } - COM: <s> returns true if all attributes are equal ignoring paths </s> - diff --git a/funcom_test/4279948.txt b/funcom_test/4279948.txt deleted file mode 100644 index facbbd2a416b97df51cf450c89d64177b2471ebb..0000000000000000000000000000000000000000 --- a/funcom_test/4279948.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public boolean matches(RepoArtifactId id) { - return ((id.group == null) || id.group.equals(group)) && ((id.name == null) || id.name.equals(name)) - && ((id.type == null) || id.type.equals(type)) && ((id.version == null) || id.version.equals(version)); - } - COM: <s> returns true if this id matches the one given </s> - diff --git a/funcom_test/4279956.txt b/funcom_test/4279956.txt deleted file mode 100644 index 87ccba13fb10387fd4ee929635e594fd486283fa..0000000000000000000000000000000000000000 --- a/funcom_test/4279956.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void validate() { - Assert.isTrue((kind != null) - && ( - kind.equals(RENAMED) || kind.equals(RENAMED_RESET) || kind.equals(EQUIVALENT) || kind.equals(ALIAS) - || kind.equals(BUNDLED) - ), "Invalid kind for conflict: " + kind); - } - COM: <s> ensures the object is valid </s> - diff --git a/funcom_test/4280026.txt b/funcom_test/4280026.txt deleted file mode 100644 index e81a2e2b891069b8cfabfa0940c60aad4987b390..0000000000000000000000000000000000000000 --- a/funcom_test/4280026.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private boolean checkCombineLines(String line) { - int bsCount = 0; - - for (int idx = line.length() - 1; (idx >= 0) && (line.charAt(idx) == '\\'); idx--) { - bsCount++; - } - - return (bsCount % 2) == 1; - } - COM: <s> checks if the passed in line should be combined with the following </s> - diff --git a/funcom_test/4280061.txt b/funcom_test/4280061.txt deleted file mode 100644 index b2585beee8ec1140bbe3a7dbb2a30e711454a991..0000000000000000000000000000000000000000 --- a/funcom_test/4280061.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String toShortString(Object object) { - if (object == null) { - return "null"; - } - - if (object instanceof ShortString) { - return (((ShortString)object).toShortString()); - } else { - Generator generator = getGenerator(object.getClass()); - StringBuffer sb = new StringBuffer(); - generator.toString(sb, object, this); - - return sb.toString(); - } - } - COM: <s> returns a shortened string representation for an object </s> - diff --git a/funcom_test/4280064.txt b/funcom_test/4280064.txt deleted file mode 100644 index 6bac5ad8cde1b7f153d929e1b24a6abe61ee977b..0000000000000000000000000000000000000000 --- a/funcom_test/4280064.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Writer toXml(Object object, final Writer writer, String rootElementName, String publicId, String systemId) { - Converter converter = getConverter(object.getClass()); - Document document = Document.create(); - document.addRootElement(rootElementName); - converter.toXml(object, document.getRoot()); - document.toXML(writer, false, publicId, systemId); - - return writer; - } - COM: <s> converts and object to xml writing it to the writer provided </s> - diff --git a/funcom_test/4280397.txt b/funcom_test/4280397.txt deleted file mode 100644 index 4e8fb32e544e5404790eb1487a33baebd67c6d10..0000000000000000000000000000000000000000 --- a/funcom_test/4280397.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void set(Object target, String[] attributes) { - IntrospectionHelper helper = IntrospectionHelper.getHelper(target.getClass()); - verifyAttributes(helper, attributes); - - for (int i = 0; i < attributes.length; i++) { - setAttribute(helper, target, attributes[i], attributes[i]); - } - } - COM: <s> sets the attributes on the target with values from the properties file </s> - diff --git a/funcom_test/4280405.txt b/funcom_test/4280405.txt deleted file mode 100644 index 948839c4276d1af648ae29b3ac622474db622bf3..0000000000000000000000000000000000000000 --- a/funcom_test/4280405.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List getFiles(FileSet fileSet) { - List files = new ArrayList(); - String[] names = fileSet.getDirectoryScanner(project).getIncludedFiles(); - - for (int i = 0; i < names.length; i++) { - String name = names[i]; - files.add(new File(fileSet.getDir(project), name)); - } - - return files; - } - COM: <s> returns the files represented by the given fileset </s> - diff --git a/funcom_test/4280443.txt b/funcom_test/4280443.txt deleted file mode 100644 index 660ade62880a543d2008c6dda86ef44f2aa389c6..0000000000000000000000000000000000000000 --- a/funcom_test/4280443.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void initialise() { - projectProperties = PropertiesUtil.getProperties(resources.getProject()); - - if (resources.getPrefix() != null) { - properties = createProperties(resources.getPrefix() + "."); - } - - globalProperties = createProperties("q.project."); - - typedProjectProperties = new TypedProperties("", projectProperties, resources.getProject()); - - logger = resources.getLogger(); - utils = new AntUtils(getProject()); - } - COM: <s> initialises various properties and utilities </s> - diff --git a/funcom_test/42843931.txt b/funcom_test/42843931.txt deleted file mode 100644 index ab82b16939b464975991394312a36645add60fc0..0000000000000000000000000000000000000000 --- a/funcom_test/42843931.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public FieldContent put(Item item){ - FieldContent old_field = this.content; - - if (item.getUid() == this.content.getItem().getUid()) { - if (content.getItem().isStackable()){ - this.content = new InventoryStack(content.getItem(), content.getCount()+1); - return null; - } else {this.content = new InventoryItem(item); return old_field;} - } else { - this.content = new InventoryItem(item); return old_field; - } - } - COM: <s> puts an item into this field </s> - diff --git a/funcom_test/42843933.txt b/funcom_test/42843933.txt deleted file mode 100644 index b76bae4e0831057bca387cb2deee1080816ff3ff..0000000000000000000000000000000000000000 --- a/funcom_test/42843933.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public FieldContent put(FieldContent item){ - FieldContent old_field = this.content; - - if (item.getItem().getUid() == this.content.getItem().getUid()) { - if (content.getItem().isStackable()){ - this.content = new InventoryStack(content.getItem(), content.getCount()+1); - return null; - } else {this.content = item; return old_field;} - } else { - this.content = item; return old_field; - } - } - COM: <s> puts intern content into this field </s> - diff --git a/funcom_test/42843959.txt b/funcom_test/42843959.txt deleted file mode 100644 index affd9eb3b210e31fbc66cd875d03bd8bf18e5115..0000000000000000000000000000000000000000 --- a/funcom_test/42843959.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean addItem(Item item){ - - Point freeField; - - if (item.isStackable()) {freeField = getPossibleField(item);} else freeField = getFreeField(); - - - if (freeField == null) { - return false; - } else { - if (fields[freeField.x][freeField.y] != null){ - fields[freeField.x][freeField.y].put(item); - } else { - fields[freeField.x][freeField.y] = new InventoryField(new InventoryItem(item)); - } - return true; - } - - } - COM: <s> adds the item to the the inventory </s> - diff --git a/funcom_test/42843960.txt b/funcom_test/42843960.txt deleted file mode 100644 index 4c5eef870b3a981174ae9bf351ed3aeb76c6e06f..0000000000000000000000000000000000000000 --- a/funcom_test/42843960.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Point getPossibleField(Item item){ - for (int j = 0; j < invHeight; j++){ - for (int i = 0; i < invWidth; i++){ - if (fields[i][j]!=null){ - if (fields[i][j].getItem().getUid() == item.getUid()) - if (!fields[i][j].isFull()) return new Point(i, j); - } - } - } - - return getFreeField(); - } - COM: <s> tries to find a stack which is not full yet </s> - diff --git a/funcom_test/42855167.txt b/funcom_test/42855167.txt deleted file mode 100644 index 4e97b0e375af107ebe81f0de35afb53b22035f91..0000000000000000000000000000000000000000 --- a/funcom_test/42855167.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected T find(final Long id, Class domainClass) { - try { - EntityManagerUtil.getInstance().beginTransaction(); - - D metricTimeRecord = (D) EntityManagerUtil.getInstance().findByPropertyValue( - domainClass, "id", id); - T dto = (T) ViewManager.getInstance().assemble(metricTimeRecord, - domainClass); - - EntityManagerUtil.getInstance().commit(); - return dto; - } catch (Exception e) { - Logger.error(e); - EntityManagerUtil.getInstance().rollback(); - throw new RuntimeException(e); - } - } - COM: <s> returns the entity for the specified id </s> - diff --git a/funcom_test/42855973.txt b/funcom_test/42855973.txt deleted file mode 100644 index 1deece0527f66f5ba7a5b33b90e922d32c690a5b..0000000000000000000000000000000000000000 --- a/funcom_test/42855973.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ExcelMapping getMapping(final String className) { - ExcelMapping mapping = null; - for (Iterator iter = this.getMappings().iterator(); iter.hasNext();) { - ExcelMapping listMapping = (ExcelMapping) iter.next(); - if (listMapping.getClassName().equalsIgnoreCase(className)) { - mapping = listMapping; - break; - } - } - return mapping; - } - COM: <s> returns an class mapping for the specified class name </s> - diff --git a/funcom_test/42855976.txt b/funcom_test/42855976.txt deleted file mode 100644 index 1051cdb1732a2fae2a863f2cbeceb59c69253081..0000000000000000000000000000000000000000 --- a/funcom_test/42855976.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ExcelDefinition getDefinition(final String definitionName) { - Validate.notNull(this.definitions); - - ExcelDefinition definition = null; - for (Iterator i = this.definitions.iterator(); i.hasNext();) { - ExcelDefinition iteratedDefinition = (ExcelDefinition) i.next(); - if (definitionName.equalsIgnoreCase(iteratedDefinition.getName())) { - definition = iteratedDefinition; - return definition; - } - } - throw new RuntimeException("Invalid Excel definition name received."); - - } - COM: <s> returns the definition for the specified definition name </s> - diff --git a/funcom_test/42954555.txt b/funcom_test/42954555.txt deleted file mode 100644 index de36dfb274676f3131accdda8879e346a5681ec6..0000000000000000000000000000000000000000 --- a/funcom_test/42954555.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean deleteVillage(int posX, int posY) throws RemoteException { - if(posX>=this.size || posX<0 || posY>=this.size || posY<0) { - return false; - } else { - if(this.platform[posX][posY] instanceof Village) { - this.nbVillages -= 1; - this.platform[posX][posY] = new Field(posX, posY); - return true; - } else { - return false; - } - } - } - COM: <s> delete a village from the map and replace it with a field </s> - diff --git a/funcom_test/42954570.txt b/funcom_test/42954570.txt deleted file mode 100644 index 1ef2cfedda5b47c8d13c15ddd5969d59f5074037..0000000000000000000000000000000000000000 --- a/funcom_test/42954570.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Village getVillage(int posX, int posY) throws RemoteException{ - if(posX>=this.size || posX<0 || posY>=this.size || posY<0) { - return null; - } else { - if(this.platform[posX][posY] instanceof Village) { - return (Village)this.platform[posX][posY]; - } else { - return null; - } - } - } - COM: <s> get the village of the given name </s> - diff --git a/funcom_test/42954578.txt b/funcom_test/42954578.txt deleted file mode 100644 index d0bb034a6c0547b124a88e8cb611f677aec539e3..0000000000000000000000000000000000000000 --- a/funcom_test/42954578.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Field getField(int posX, int posY) throws RemoteException { - if(posX>=this.size || posX<0 || posY>=this.size || posY<0) { - return null; - } else { - if(this.platform[posX][posY] instanceof Field) { - return (Field)this.platform[posX][posY]; - } else { - return null; - } - } - } - COM: <s> get the field at the given position </s> - diff --git a/funcom_test/42956622.txt b/funcom_test/42956622.txt deleted file mode 100644 index 20dfe8be23eb3f783172b4308917ed12672004d0..0000000000000000000000000000000000000000 --- a/funcom_test/42956622.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void initButtons() { - this.playButton = createButton(BUTTON_FILE_NAME_PREFIX + PLAY_BUTTON_FILE_NAME, PLAY_BUTTON_TOOLTIP); - this.pauseButton = createButton(BUTTON_FILE_NAME_PREFIX + PAUSE_BUTTON_FILE_NAME, PAUSE_BUTTON_TOOLTIP); - this.exitButton = createButton(BUTTON_FILE_NAME_PREFIX + EXIT_BUTTON_FILE_NAME, EXIT_BUTTON_TOOLTIP); - } - COM: <s> inits the buttons on the screen </s> - diff --git a/funcom_test/42956626.txt b/funcom_test/42956626.txt deleted file mode 100644 index b465d2c4ef2a4acf7cd35d13133784cd4a954009..0000000000000000000000000000000000000000 --- a/funcom_test/42956626.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void update(long elapsedTime) { - for (int i = MAX_BLOCKS_HEIGHT - 1; i >= 0; i--) { - for (int j = MAX_BLOCKS_WIDTH - 1; j >= 0; j--) { - if (blocks[i][j] != null) blocks[i][j].update(elapsedTime); - } - } - } - COM: <s> updates all blocks </s> - diff --git a/funcom_test/42956658.txt b/funcom_test/42956658.txt deleted file mode 100644 index 347346e944760fb26e5eb0facb3b9581c06b9da8..0000000000000000000000000000000000000000 --- a/funcom_test/42956658.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void rotate() { - - int w = blocks[0].getWidth(); - int h = blocks[0].getHeight(); - - float offsetX = 0; - float offsetY = 0; - - int index = orientation % relativeCoordinates.length; - - offsetX = this.rotationOffsets[index][0] * w; - offsetY = this.rotationOffsets[index][1] * h; - - orientation++; - - setX(offsetX + blocks[0].getX()); - setY(offsetY + blocks[0].getY()); - } - COM: <s> rotates the tetraminoe </s> - diff --git a/funcom_test/42956676.txt b/funcom_test/42956676.txt deleted file mode 100644 index 857661d87287c6d6227a05aed5d03cebecbc1db7..0000000000000000000000000000000000000000 --- a/funcom_test/42956676.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setRelativeMouseMode(boolean mode) { - if (mode == isRelativeMouseMode()) { - return; - } - - if (mode) { - try { - robot = new Robot(); - recenterMouse(); - } catch (AWTException e) { - if (Development.DEBUG_ENABLED) - System.out.println(Development.DEBUG_LABEL + "InputManager.setRelativeMouseMode() " + e); - robot = null; - } - } else { - robot = null; - } - } - COM: <s> sets whether relative mouse mode is on or not </s> - diff --git a/funcom_test/42956683.txt b/funcom_test/42956683.txt deleted file mode 100644 index 8b45f9ed4605423a0a32f08a5827a077c048499d..0000000000000000000000000000000000000000 --- a/funcom_test/42956683.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void setPaused(boolean paused) { - if (Development.DEBUG_ENABLED) System.out.println( Development.DEBUG_LABEL + "GameScreen.setPaused() " + paused); - - this.playPauseButtonSpace.removeAll(); - - this.isPaused = paused; - - if (paused) { - playPauseButtonSpace.add(this.playButton); - } else { - playPauseButtonSpace.add(this.pauseButton); - } - - } - COM: <s> sets the game paused </s> - diff --git a/funcom_test/42959481.txt b/funcom_test/42959481.txt deleted file mode 100644 index 44bcbef8417dacc01d1882710d59872a87b5bbd2..0000000000000000000000000000000000000000 --- a/funcom_test/42959481.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ActionForward preCambio(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception { - try { - - logger.debug("pantala previa de cambio de clave"); - - } catch (Exception e) { - e.printStackTrace(); - request.setAttribute("msgError", e.getMessage()); - } - return mapping.findForward("clave"); - } - COM: <s> action para el resetero de clave </s> - diff --git a/funcom_test/42965947.txt b/funcom_test/42965947.txt deleted file mode 100644 index 40d96791901a39b7cbd05dc2226f3ee765c63c5a..0000000000000000000000000000000000000000 --- a/funcom_test/42965947.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean add(EquippableItem e) { - Slot slot = e.getSlot(); - if (this.gear.containsKey(slot)) { - if (owner.canReceiveItem()) { - EquippableItem old = gear.remove(slot); - owner.receiveItem(old); - owner.removeStatEffects(old.getEffects()); - gear.put(slot, e); - owner.addStatEffects(e.getEffects()); - return true; - } else { - return false; - } - } else { - gear.put(slot, e); - owner.addStatEffects(e.getEffects()); - return true; - } - } - COM: <s> adds an equippable item to this equipment </s> - diff --git a/funcom_test/42973964.txt b/funcom_test/42973964.txt deleted file mode 100644 index f657c9796e1e0080b9748be73e95834c0c193797..0000000000000000000000000000000000000000 --- a/funcom_test/42973964.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setHeaders(HttpURLConnection connection, boolean authenticated) { - if (authenticated) { - if (basic == null) { - throw new IllegalStateException( - "user ID/password combination not supplied"); - } - connection.addRequestProperty("Authorization", this.basic); - } - for (String key : requestHeaders.keySet()) { - connection.addRequestProperty(key, requestHeaders.get(key)); - } - } - COM: <s> sets http headers </s> - diff --git a/funcom_test/42974051.txt b/funcom_test/42974051.txt deleted file mode 100644 index fe7b66791d2da7748d1f07fc6dbbefb497ede042..0000000000000000000000000000000000000000 --- a/funcom_test/42974051.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String parse() { - String result = templateString(); - Set<String> keys = variables().keySet(); - - for( String key : keys ) { - Object value = variables().get( key ); - - if( value != null ) { - result = USStringUtilities.replace( result, "${" + key + "}", value.toString() ); - } - else { - result = USStringUtilities.replace( result, "${" + key + "}", "" ); - } - } - - return result; - } - COM: <s> replaces all occurancies of template variables with the desired values </s> - diff --git a/funcom_test/42974052.txt b/funcom_test/42974052.txt deleted file mode 100644 index 53520cfb73b2926ad0ed608b3917aaa56765601b..0000000000000000000000000000000000000000 --- a/funcom_test/42974052.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void saveFile( InputStream inStream, String fileName ) throws IOException { - File file = new File( fileName ); - OutputStream out = new FileOutputStream( file ); - byte buf[] = new byte[8192]; - int len; - while( (len = inStream.read( buf )) > 0 ) { - out.write( buf, 0, len ); - } - out.close(); - } - COM: <s> saves a stream to a physical file </s> - diff --git a/funcom_test/42974066.txt b/funcom_test/42974066.txt deleted file mode 100644 index 37ad2823363e74e6d6bc0853076e0c130b8ea41c..0000000000000000000000000000000000000000 --- a/funcom_test/42974066.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Date nextWorkDay( Date date ) { - date = normalizeToMidnight( date ); - date = date( year( date ), monthOfYear( date ), dayOfMonth( date ) + 1 ); - - while( !isWorkday( date ) ) { - date = date( year( date ), monthOfYear( date ), dayOfMonth( date ) + 1 ); - } - - return date; - } - COM: <s> returns the next work day after the date in the given date </s> - diff --git a/funcom_test/42974101.txt b/funcom_test/42974101.txt deleted file mode 100644 index 6fd952a7c2b23a311cab65ee0791a95be5ccfd33..0000000000000000000000000000000000000000 --- a/funcom_test/42974101.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void destroyStatusAsync(long statusId) { - getDispatcher().invokeLater(new AsyncTask(DESTROY_STATUS, new TwitterAdapter(), new Long[]{statusId}) { - public void invoke(TwitterListener listener, Object[] args) throws TwitterException { - listener.destroyedStatus(destroyStatus(((Long) args[0]))); - } - }); - } - COM: <s> destroys the status specified by the required id parameter </s> - diff --git a/funcom_test/42974118.txt b/funcom_test/42974118.txt deleted file mode 100644 index b058f4fddcf3a974f34a4038c59299bb3c6c0a67..0000000000000000000000000000000000000000 --- a/funcom_test/42974118.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Status update(String status) throws TwitterException { - if (status.length() > 160) { - status = status.substring(0, 160); - } - return new Status(http.post(baseURL + "statuses/update.xml", - new PostParameter[]{new PostParameter("status", status), new PostParameter("source", source)}, true).asDocument().getDocumentElement(), this); - } - COM: <s> updates the users status </s> - diff --git a/funcom_test/42984784.txt b/funcom_test/42984784.txt deleted file mode 100644 index 8bf1e3cfa4e2f6a8937d599ee9cfe35b1f046416..0000000000000000000000000000000000000000 --- a/funcom_test/42984784.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void onModuleLoad() { - - DecoratedTabPanel tp = new DecoratedTabPanel(); - tp.setWidth("800px"); - tp.setHeight("600px"); - - - - - // Add image and button to the RootPanel - RootPanel.get().add(tp); - - TradeViewTab tvp = new TradeViewTab(); - - - - tp.add(tvp,"Trade View"); - tp.selectTab(0); - - - - - } - COM: <s> this is the entry point method </s> - diff --git a/funcom_test/42985072.txt b/funcom_test/42985072.txt deleted file mode 100644 index 53a9921389256420788f5f3eb2bd8cca419f47cd..0000000000000000000000000000000000000000 --- a/funcom_test/42985072.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void createPartControl(Composite parent) { - tradeviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); - tradeviewer.setContentProvider(new TradeListContentProvider()); - tradeviewer.setLabelProvider(new TradeListLabelProvider("*")); - tradeviewer.setSorter(new NameSorter()); - tradeviewer.setInput(getViewSite()); - - - hookDoubleClickAction(); - contributeActions(); - getSite().setSelectionProvider(tradeviewer); - - - } - COM: <s> this is a callback that will allow us </s> - diff --git a/funcom_test/43014026.txt b/funcom_test/43014026.txt deleted file mode 100644 index 899d70f3f98359a3cb7a8071f4e78d72f4d4b654..0000000000000000000000000000000000000000 --- a/funcom_test/43014026.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void analysePathLength(int numMessages) { - // TODO Auto-generated method stub - Random rand = new Random(); - ArrayList<Integer> pathLengthVector = new ArrayList<Integer>((int)numMessages); - - for (int i = 0; i < pathLengthVector.size(); i++) { - network.get(rand.nextInt()) - new Message(network.get(rand.nextInt(numNode) - } - } - COM: <s> sends code num messages code in this network </s> - diff --git a/funcom_test/43014705.txt b/funcom_test/43014705.txt deleted file mode 100644 index d8d9d0cb5614469b203dc497dcd836d0f574afb4..0000000000000000000000000000000000000000 --- a/funcom_test/43014705.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void fillHBComboFromData() { - - String[] hbs = new String[getEditedCanvas()._current.hitBoxes.size()]; - for(int i= 0;i< getEditedCanvas()._current.hitBoxes.size();i++){ - hbs[i]=getEditedCanvas()._current.hitBoxes.get(i).name; - System.out.println(hbs[i]); - } - - currentHitboxCombo.setItems(hbs); - } - COM: <s> copies info from current edited anim frame canvas </s> - diff --git a/funcom_test/43022440.txt b/funcom_test/43022440.txt deleted file mode 100644 index b342bbb1851c66c3df738a4a2a72d7d318bacd65..0000000000000000000000000000000000000000 --- a/funcom_test/43022440.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void init() { - try { - if (createTable()) { - rowCount = 0; - prepareSQL(); - } - else { - prepareSQL(); - restorePacketStore(); - countRow(); - } - } - catch (Exception e) { - e.printStackTrace(); - //this.context.log("StackMVCdb exception during setUp.", e); - } - } - COM: <s> set up the program </s> - diff --git a/funcom_test/43022445.txt b/funcom_test/43022445.txt deleted file mode 100644 index a5dec99b46e291c26b2c05ed8835fc1f5470689c..0000000000000000000000000000000000000000 --- a/funcom_test/43022445.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void countRow() throws SQLException { - ResultSet result = null; - try { - result = countRowSQL.executeQuery(); - result.next(); - rowCount = result.getInt(1); - //result.close(); - } - catch (Exception e) { - e.printStackTrace(); - this.context.log("DerbyPacketStore exception during countRow.", e); - } - finally { - result.close(); - } - } - COM: <s> counts the number of rows of the stack table </s> - diff --git a/funcom_test/43039623.txt b/funcom_test/43039623.txt deleted file mode 100644 index f3d83728c61eb3a9ed473aab4c60d97fca59ba90..0000000000000000000000000000000000000000 --- a/funcom_test/43039623.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public JInternalFrame showWindow(String title, JPanel content) { - JInternalFrame frame = new JInternalFrame(title, true, true, true); - frame.setLayout(new BorderLayout()); - frame.add(content, BorderLayout.CENTER); - desk.add(frame); - frame.pack(); - frame.setVisible(true); - frames.put(content, frame); - return frame; - } - COM: <s> displays the given panel inside a </s> - diff --git a/funcom_test/43039657.txt b/funcom_test/43039657.txt deleted file mode 100644 index eca0caa5d83a1ceeaf7d41961ef768c8b84b7d5d..0000000000000000000000000000000000000000 --- a/funcom_test/43039657.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private JPanel createButtonPanel() { - final JPanel p = new JPanel(new FlowLayout(FlowLayout.RIGHT)); - final SaveAction save = new SaveAction(); - getMapping().createStatusDependentBinding(IBeanStatus.BEAN_STRUCTURE_STATUS, save); - p.add(new JButton(save)); - return p; - } - COM: <s> creates the button panel </s> - diff --git a/funcom_test/43039663.txt b/funcom_test/43039663.txt deleted file mode 100644 index 23b8469b72d6df559482dd72ef5bb446d17e7b37..0000000000000000000000000000000000000000 --- a/funcom_test/43039663.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addTextField(String attribute, String label, GridBagConstraints c) { - c.gridx = 0; - add(getMapping().createStatusDependentBinding(attribute, new StatusLabel(label)), c); - c.gridx++; - final JTextField field = new JTextField(10); - field.setMinimumSize(field.getPreferredSize()); - add(attribute, field, c); - } - COM: <s> adds a textfield </s> - diff --git a/funcom_test/43039703.txt b/funcom_test/43039703.txt deleted file mode 100644 index f2cbc3bd183bd0626ce329925fc334cf7080d38f..0000000000000000000000000000000000000000 --- a/funcom_test/43039703.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addDataListener(IDataListener l, Class type) { - CopyOnWriteArrayList<IDataListener> listeners = concrete.get(type); - if (listeners == null) { - concrete.putIfAbsent(type, new CopyOnWriteArrayList<IDataListener>()); - listeners = concrete.get(type); - } - listeners.addIfAbsent(l); - } - COM: <s> registers the given listener on the specified type </s> - diff --git a/funcom_test/43039713.txt b/funcom_test/43039713.txt deleted file mode 100644 index 96f791d6eb276275d1a36911ec9ee3980a838d69..0000000000000000000000000000000000000000 --- a/funcom_test/43039713.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void definePackage(final String name) { - int p = name.lastIndexOf('.'); - if (p < 0) - return; - final String pack = name.substring(0, p); - if (getPackage(pack) != null) - return; - definePackage(pack, null, null, null, null, null, null, null); - } - COM: <s> defines the package for the given class name </s> - diff --git a/funcom_test/43039745.txt b/funcom_test/43039745.txt deleted file mode 100644 index 3c11716ac7237457f0dc37ca3a2c0b3871cdceae..0000000000000000000000000000000000000000 --- a/funcom_test/43039745.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void registerChild(final Object oldValue, final Object newValue, final String property) { - if (oldValue instanceof StatusInformationInternal) - ((StatusInformationInternal) oldValue)._getBeanStatus().unregisterOwner(this); - if (newValue instanceof StatusInformationInternal) - ((StatusInformationInternal) newValue)._getBeanStatus().registerOwner(this, property); - } - COM: <s> registers the given child as structure child and unregisters the old one </s> - diff --git a/funcom_test/43039749.txt b/funcom_test/43039749.txt deleted file mode 100644 index 53d5725b32f065f4d58cc4bf77fdbdfe2e354cf4..0000000000000000000000000000000000000000 --- a/funcom_test/43039749.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setUpListeners() { - final Object base = getBase(source); - // don't care about inexistent beans - if (base == null) - return; - if (!(base instanceof StatusInformationInternal)) - throw new IllegalArgumentException("Only classes containing statusinformations are accepted!"); - beanState = ((StatusInformationInternal) base)._getBeanStatus(); - beanState.addStatusChangeListener(property, this); - } - COM: <s> attaches the listeners </s> - diff --git a/funcom_test/43039756.txt b/funcom_test/43039756.txt deleted file mode 100644 index f4bf4cf76cb4324c1e6d7feb52942afe2db1a134..0000000000000000000000000000000000000000 --- a/funcom_test/43039756.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void updateProperty(final Object newValue) { - final Object oldValue = cachedValue; - if (oldValue == null || newValue == null || !oldValue.equals(newValue)) { - cachedValue = newValue; - firePropertyStateChange(new PropertyStateEvent(StatusProperty.this, source, true, oldValue, newValue, false, false)); - } - } - COM: <s> updates the property value if necessary </s> - diff --git a/funcom_test/43039910.txt b/funcom_test/43039910.txt deleted file mode 100644 index b4acbda16da6a5ec1221a8ca887baa0b02008ec6..0000000000000000000000000000000000000000 --- a/funcom_test/43039910.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private void assertState(BeanStatusFlag bean, BeanStatusFlag structure, IBeanStatus status) { - assertSame("Not expected bean state for " + status.getOwner(), bean, status.getStatus().getFlag()); - assertSame("Not expected structure state for " + status.getOwner(), structure, status.getStructureStatus().getFlag()); - } - COM: <s> asserts the specified states </s> - diff --git a/funcom_test/43039983.txt b/funcom_test/43039983.txt deleted file mode 100644 index 1de05f840253fd8a8005a66fe1e09c2175edcbf5..0000000000000000000000000000000000000000 --- a/funcom_test/43039983.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void showPopup(MouseEvent e) { - if (!e.isPopupTrigger()) - return; - final JPopupMenu popup = popupManager.getMenu(mapping.getSelectedRows()); - if (popup.getComponentCount() > 0) - popup.show(e.getComponent(), e.getX(), e.getY()); - } - COM: <s> shows the popup menu if the popup trigger is set </s> - diff --git a/funcom_test/43039993.txt b/funcom_test/43039993.txt deleted file mode 100644 index 15663fa6bd7ac1f75117d0eee8e017e1665b8b4c..0000000000000000000000000000000000000000 --- a/funcom_test/43039993.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public ColumnBindingInfos addComboBoxColumn(final String label, final String path, String el, Class<?> type, Object subType, Map settings) { - return mapping.addComboBoxColumn(label, path, el, type, subType, settings, showStatus); - } - COM: <s> adds a column binding with a </s> - diff --git a/funcom_test/43040028.txt b/funcom_test/43040028.txt deleted file mode 100644 index 7a1c1aea7f6da51fcc0c3e8025c94c2d495f4352..0000000000000000000000000000000000000000 --- a/funcom_test/43040028.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setModel(final T model) { - // first unbind the current model - if (this.model != null) - removeModel(); - this.model = model; - this.status = TrackedBeanUtils.getBeanStatus(model); - // only rebind if a model was passed - if (model != null) - bind(); - } - COM: <s> sets the given model </s> - diff --git a/funcom_test/43040050.txt b/funcom_test/43040050.txt deleted file mode 100644 index 86024015051445b694c51ed4e03927086f650aa8..0000000000000000000000000000000000000000 --- a/funcom_test/43040050.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void addSelectionBinding(final String name, final Binding b) { - if (selectionBindings == null) - selectionBindings = new HashMap<String, Binding>(); - final Binding old = selectionBindings.put(name, b); - if (old != null) - old.unbind(); - b.bind(); - } - COM: <s> adds the given binding as selection binding </s> - diff --git a/funcom_test/43040065.txt b/funcom_test/43040065.txt deleted file mode 100644 index 9679de049db6e811e50e3d69405e24fcf22d5a79..0000000000000000000000000000000000000000 --- a/funcom_test/43040065.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setModel(T model) { - // unregister old model - if (this.model != null) { - for (Listener l : properties) - l.unsetModel(this.model); - } - this.model = model; - // register new model - if (this.model != null) - for (Listener l : properties) - l.setModel(this.model); - } - COM: <s> sets the model to observe </s> - diff --git a/funcom_test/43040077.txt b/funcom_test/43040077.txt deleted file mode 100644 index 3f93355214352a84688789bd26f01d5e04c9f54f..0000000000000000000000000000000000000000 --- a/funcom_test/43040077.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void refresh(boolean forceLoad) { - // TODO async call - list = DataManager.getList(type, subType, settings, forceLoad); - if (comparator != null) - Collections.sort(list, comparator); - fireContentsChanged(this, -1, -1); - } - COM: <s> refreshes the list </s> - diff --git a/funcom_test/43040089.txt b/funcom_test/43040089.txt deleted file mode 100644 index 9593e41a02c01abd447194ae85b69a602324fba4..0000000000000000000000000000000000000000 --- a/funcom_test/43040089.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void unbind(Collection<? extends Binding> bindings) { - for (final Binding b : bindings) { - if (b.isBound()) - b.unbind(); - final Object target = b.getTargetObject(); - if (target instanceof ICleanUp) - b.getTargetProperty().setValue(target, null); - b.setSourceObject(null); - } - } - COM: <s> unbinds the given bindings </s> - diff --git a/funcom_test/43040107.txt b/funcom_test/43040107.txt deleted file mode 100644 index 5afbcd1406f9333b18edece51b26c4330f5dbeb8..0000000000000000000000000000000000000000 --- a/funcom_test/43040107.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void validateAllProperties() { - if (model == null) - return; - for (Binding b : grp.getBindings()) { - // ignore StatusProperies (otherwise you get a StackOverflow...) - if (b.getSourceProperty() instanceof StatusProperty) - continue; - validateProperty0(bindingInfos.get(b).getPath()); - } - } - COM: <s> validates all bound properties </s> - diff --git a/funcom_test/43040133.txt b/funcom_test/43040133.txt deleted file mode 100644 index 2b7e31e9e6d3356e6c139c47c2064721fd1f9b09..0000000000000000000000000000000000000000 --- a/funcom_test/43040133.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean removeColumnBinding(final int col) { - if (model != null) - throw new IllegalStateException("Can't remove a column if the table is already bound"); - if (col >= table.getColumnCount()) - return false; - final JTableBinding<T, List<T>, JTable>.ColumnBinding bn = binding.removeColumnBinding(col); - bindingInfos.remove(bn); - return true; - } - COM: <s> removes the binding for the column with the given index </s> - diff --git a/funcom_test/43040139.txt b/funcom_test/43040139.txt deleted file mode 100644 index 906abdc1b74e437d9b65ded48122b755b5e586d4..0000000000000000000000000000000000000000 --- a/funcom_test/43040139.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean removeLocalAction(ISelectionAction action) { - for (int i = 0, cnt = localActions.size(); i < cnt; i++) { - if (localActions.get(i).getAction() != action) - continue; - localActions.remove(i); - return true; - } - return false; - } - COM: <s> removes the given local action </s> - diff --git a/funcom_test/43040165.txt b/funcom_test/43040165.txt deleted file mode 100644 index dd091eb5696d8a1e59019aeba415b869ed307f51..0000000000000000000000000000000000000000 --- a/funcom_test/43040165.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public MenuPath get() { - final MenuPathSegment[] res = new MenuPathSegment[stackPointer]; - for (int i = 0; i < res.length; i++) - res[i] = menus[i].toSegment(); - return new MenuPath(res, menus[stackPointer].group, menus[stackPointer].groupOrder); - } - COM: <s> returns the previously built path </s> - diff --git a/funcom_test/43040168.txt b/funcom_test/43040168.txt deleted file mode 100644 index 58194a28573766a93f440168b628e7536be259fd..0000000000000000000000000000000000000000 --- a/funcom_test/43040168.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addNext() { - if (++stackPointer < menus.length) { - menus[stackPointer].reset(); - return; - } - final Segment[] old = menus; - menus = new Segment[menus.length + 1]; - System.arraycopy(old, 0, menus, 0, old.length); - menus[stackPointer] = new Segment(); - } - COM: <s> adds an empty entry to the path </s> - diff --git a/funcom_test/43040177.txt b/funcom_test/43040177.txt deleted file mode 100644 index e83f3af79bd4cedead733637c84bc9328e95719a..0000000000000000000000000000000000000000 --- a/funcom_test/43040177.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getFirstEntriesGroup() { - final MenuPath path = entries.get(0).getPath(); - final MenuPathSegment[] pathElements = path.getPath(); - if (pathElements.length > 0) - return pathElements[0].getGroup(); - return path.getLastGroup(); - } - COM: <s> returns the group of the first </s> - diff --git a/funcom_test/43040191.txt b/funcom_test/43040191.txt deleted file mode 100644 index 3716d416b9498fd8bfabb0715995083b11ba883a..0000000000000000000000000000000000000000 --- a/funcom_test/43040191.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean addAccessorMapping(String key, Class type, IValueAccessor accessor, boolean override) { - final Object pk = buildKey(key, type); - if (!override && properties.containsKey(pk)) - return false; - properties.put(pk, accessor); - return true; - } - COM: <s> adds a mapping from the given key to the specified property </s> - diff --git a/funcom_test/43040209.txt b/funcom_test/43040209.txt deleted file mode 100644 index af7915ef401286c8cef6fb17c13ca7b1c6299c0f..0000000000000000000000000000000000000000 --- a/funcom_test/43040209.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void addErrors(String el, IErrorDescription... error) { - final IErrorDescription[] msg = errors.get(el); - // we expect that the main scenario is to add only once errors per property... - errors.put(el, msg == null ? error : merge(msg, error)); - } - COM: <s> adds the given error for the given property </s> - diff --git a/funcom_test/43040224.txt b/funcom_test/43040224.txt deleted file mode 100644 index eb5483b1786e60843568be534a570bcf83f5d49a..0000000000000000000000000000000000000000 --- a/funcom_test/43040224.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean addDeepValidation(String property, String message) { - final IValueAccessor read = ValueAccessorManager.getPropertyAccessor(type, property); - if (!read.isReadable()) - return false; - depthValidationProperties.add(new DepthValidator(property, message, read)); - return true; - } - COM: <s> adds a property for deep validation </s> - diff --git a/funcom_test/43040234.txt b/funcom_test/43040234.txt deleted file mode 100644 index 3375fd3e17c1e8452acecaa7ef6548eba8fbc0b6..0000000000000000000000000000000000000000 --- a/funcom_test/43040234.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean registerSimpleProperty(String property) { - if (getters.containsKey(property)) - return true; - final IValueAccessor acc = ValueAccessorManager.getPropertyAccessor(type, property); - if (!acc.isReadable()) - return false; - getters.put(property, acc); - simpleProperties.add(property); - return true; - } - COM: <s> registers the given property as property to validate </s> - diff --git a/funcom_test/43040247.txt b/funcom_test/43040247.txt deleted file mode 100644 index d08123fecb437206b4243c22e440c16ef27b91d0..0000000000000000000000000000000000000000 --- a/funcom_test/43040247.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected String getResultingPath(String element) { - final StringBuilder path = new StringBuilder(currentPath); - // the first step down shouldn't have a '.' before the name - if (path.length() > 0) - path.append('.'); - return path.append(element).toString(); - } - COM: <s> appends the given element to </s> - diff --git a/funcom_test/43040266.txt b/funcom_test/43040266.txt deleted file mode 100644 index 83dd3c1613efe28cfe792a2a4a91eeac30de5cbd..0000000000000000000000000000000000000000 --- a/funcom_test/43040266.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void appendParentValidations() { - final Class<?> parent = type.getSuperclass(); - // object and interfaces have not parents - if (parent == null) - return; - final IValidator val = ValidatorManager.getValidator(parent); - if (val.doesSomething() && val instanceof Validator) - validator.appendValidatorInformation((Validator) val); - } - COM: <s> appends the validation information from the parent class </s> - diff --git a/funcom_test/43040271.txt b/funcom_test/43040271.txt deleted file mode 100644 index 6a025c92dc37f618bd3483c20db13991b70ace69..0000000000000000000000000000000000000000 --- a/funcom_test/43040271.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Object getValue(String property, Object bean) throws TechnicalException { - try { - final IValueAccessor<?> get = getters.get(property); - if (get == null) - return NO_GETTER; - return get.getValue(bean, null); - } catch (Exception e) { - throw new TechnicalException("Error while reading " + property + " from " + bean, e); - } - } - COM: <s> returns the value of the given property </s> - diff --git a/funcom_test/43040281.txt b/funcom_test/43040281.txt deleted file mode 100644 index 670dd002e8a4aad41ea3fd220332278d01a08917..0000000000000000000000000000000000000000 --- a/funcom_test/43040281.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void copy(Annotation a, Configuration cfg) throws ExternalConfigurationException { - try { - cfg.addEntry(dstParam, srcParam.invoke(a)); - } catch (InvocationTargetException e) { - throw new ExternalConfigurationException(e); - } catch (IllegalAccessException e) { - throw new ExternalConfigurationException(e); - } - } - COM: <s> copies the parameter from the given annotation into the passed configuration </s> - diff --git a/funcom_test/43040311.txt b/funcom_test/43040311.txt deleted file mode 100644 index 1d1b0255d3f1124d8e57880d11796da013f92088..0000000000000000000000000000000000000000 --- a/funcom_test/43040311.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void configureTable() { - final TableColumnModel cols = table.getColumnModel(); - for (final JTableBinding<T, List<T>, JTable>.ColumnBinding b : binding.getColumnBindings()) { - final ColumnBindingInfos info = bindingInfos.get(b); - if (info != null) - configureColumn(cols.getColumn(b.getColumn()), info); - } - } - COM: <s> configures the table </s> - diff --git a/funcom_test/43040353.txt b/funcom_test/43040353.txt deleted file mode 100644 index 2f3acb8ee4228534083f121560a7882004aefc3b..0000000000000000000000000000000000000000 --- a/funcom_test/43040353.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected Collection convert(Object src) { - if (src instanceof Collection) - return (Collection) src; - if (src instanceof Object[]) - return Arrays.asList((Object[]) src); - throw new IllegalArgumentException("The source type " + src.getClass().getName() + " is not supported!"); - } - COM: <s> converts the given source to a collection </s> - diff --git a/funcom_test/43040371.txt b/funcom_test/43040371.txt deleted file mode 100644 index 58544e5956471d125f641b18cbe114406336ed3c..0000000000000000000000000000000000000000 --- a/funcom_test/43040371.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void inspectAnnotations(String name, AnnotatedElement el) throws InstantiationException, IllegalAccessException { - inspectMappingValidation(name, el); - addDeepValidation(name, el); - for (Annotation a : el.getAnnotations()) { - final IPropertyValidator val = createValidator(a); - if (val != null) - validator.addPropertyValidation(name, val); - } - } - COM: <s> inspects the annotations of the given element and registers the declared validators </s> - diff --git a/funcom_test/43040383.txt b/funcom_test/43040383.txt deleted file mode 100644 index 729f082d243fbacac337ddb977202d2b7e8dc005..0000000000000000000000000000000000000000 --- a/funcom_test/43040383.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void addMappedProperties(Class bean, Class base, boolean includeInherited, boolean override) { - for (IMappingHolder h : BeanMapperManager.getMapper(bean).getMappingHolders(base, includeInherited)) - addAccessorMapping(h.getSourceAccessor().getPath(), bean, h.getDestinationAccessor(), override); - } - COM: <s> adds all mappings from the bean type to the given base class </s> - diff --git a/funcom_test/43040396.txt b/funcom_test/43040396.txt deleted file mode 100644 index 35558fb0d36d73dba6e21f5afd3aafbccb18c2b1..0000000000000000000000000000000000000000 --- a/funcom_test/43040396.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Entry lookup(final String name, final Entry entry) { - final String[] nameParts = name.split("/"); - // try first to look up the entry - Entry res = lookup(name, nameParts, 0, entry); - if (res != null) - return res; - // the lookup failed, so we will search the entry - res = searchEntry(name, entry); - // if the entry was found by the search, then we add it into the lookup tree - if (res != null) - mergeNodePath(nameParts, 0, res.parent); - return res; - } - COM: <s> looks up the file with the given name br </s> - diff --git a/funcom_test/43040433.txt b/funcom_test/43040433.txt deleted file mode 100644 index 479c2713bee8fb0a5519cf9cb85275e9b87f171d..0000000000000000000000000000000000000000 --- a/funcom_test/43040433.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String getClassName() { - final StringBuilder str = new StringBuilder(); - str.append(propName); - str.append("Keys"); - str.setCharAt(0, Character.toUpperCase(propName.charAt(0))); - return str.toString(); - } - COM: <s> returns the class name for the class to create </s> - diff --git a/funcom_test/43040436.txt b/funcom_test/43040436.txt deleted file mode 100644 index 6a8f1fff1c400344261d976d83799b9bfd431992..0000000000000000000000000000000000000000 --- a/funcom_test/43040436.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void init() throws CoreException { - final String name = getClassName(); - final IPackageFragment pkg = getPackage(); - final ICompilationUnit unit = pkg.createCompilationUnit(name + ".java", "", true, null); - setUp(unit); - createMainType(PUBLIC_KEYWORD, pkg.getElementName(), getClassName()); - } - COM: <s> initializes the class </s> - diff --git a/funcom_test/43040449.txt b/funcom_test/43040449.txt deleted file mode 100644 index 4922c64a381c683d54270fd67799ffa5773ab651..0000000000000000000000000000000000000000 --- a/funcom_test/43040449.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void inspectMappingValidation(String property, AnnotatedElement el) { - if (ignoreInheritedMappingValidation(property, el)) - return; - final PathMapping path = el.getAnnotation(PathMapping.class); - if (path != null) - addPathMapping(property, path); - final SimpleMapping simple = el.getAnnotation(SimpleMapping.class); - if (simple != null) - addSimpleMapping(property, simple); - } - COM: <s> inspects mapping annotation and extracts validation relevant information </s> - diff --git a/funcom_test/43040471.txt b/funcom_test/43040471.txt deleted file mode 100644 index 33f72122570e3ac9e9c62073285dc746fff3f0a3..0000000000000000000000000000000000000000 --- a/funcom_test/43040471.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addPropertyFor(MethodDeclaration m) { - final String name = m.getName().getFullyQualifiedName(); - if (name.length() < 4) - return; - final int argCnt = m.parameters().size(); - final boolean get = name.startsWith("get"); - final boolean is = name.startsWith("is"); - if (argCnt == 0 && (get || is) || argCnt == 1 && name.startsWith("set")) - buildProperty(Introspector.decapitalize(name.substring(is ? 2 : 3)), m, get | is); - } - COM: <s> adds the property represented by the given method if any </s> - diff --git a/funcom_test/43040476.txt b/funcom_test/43040476.txt deleted file mode 100644 index 59e19c17b4848b7121ae097b44ae0aa7bf5f1849..0000000000000000000000000000000000000000 --- a/funcom_test/43040476.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void addSimpleMapping(String srcProperty, SimpleMapping simple) { - noDefaultMappingValidation.add(srcProperty); - final Class<?> srcClass = simple.srcClass(); - final Class<?> type = srcClass != void.class ? srcClass : mappedBaseType; - if (type != null) - inheritValidators(srcProperty, type, simple.value()); - } - COM: <s> adds the necessary validators for the given property name based on the defined </s> - diff --git a/funcom_test/43040493.txt b/funcom_test/43040493.txt deleted file mode 100644 index 3fdfe8f1f241b5c9607f33dacb9b3c0de51ad1fa..0000000000000000000000000000000000000000 --- a/funcom_test/43040493.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void addPathMapping(String property, PathMapping mapping) { - noDefaultMappingValidation.add(property); - final Class<?> lastType = mapping.lastPathType(); - if (lastType != Object.class) - inheritValidators(property, lastType, ELHelper.getLastProperty(mapping.path())); - } - COM: <s> adds the necessary validators for the given </s> - diff --git a/funcom_test/43040517.txt b/funcom_test/43040517.txt deleted file mode 100644 index 20b00f406376b1eb03cbda6058930529122ade74..0000000000000000000000000000000000000000 --- a/funcom_test/43040517.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public FieldDeclaration createField(String type, String name, Expression initializer, ModifierKeyword... modifiers) { - final VariableDeclarationFragment vars = ast.newVariableDeclarationFragment(); - vars.setName(ast.newSimpleName(name)); - vars.setInitializer(initializer); - final FieldDeclaration var = ast.newFieldDeclaration(vars); - var.setType(ast.newSimpleType(ast.newName(type))); - setModifiers(var.modifiers(), modifiers); - return var; - } - COM: <s> creates a field </s> - diff --git a/funcom_test/43040990.txt b/funcom_test/43040990.txt deleted file mode 100644 index 762dbc297c9fdeb876c58c06e719bec2dda66216..0000000000000000000000000000000000000000 --- a/funcom_test/43040990.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public BeanMapperConfigurator addPathMapping(Class<?> srcType, String property, Class src, String path, boolean readOnly, String profile) { - return addPathMapping(srcType, property, src, path, (IPropertyConverter) null, readOnly, profile); - } - COM: <s> adds a path mapping </s> - diff --git a/funcom_test/43061450.txt b/funcom_test/43061450.txt deleted file mode 100644 index fed45a35552791a3bc9dd913142afc3a07ba62ce..0000000000000000000000000000000000000000 --- a/funcom_test/43061450.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void sizeChange(int x, int y, int w, int h) { - //resets the bounds of the Jlabel - Img.setBounds(x, y, w, h); - //Sets up the image with the new scale - setUp((ImageIcon)Img.getIcon()); - } - COM: <s> this is a faulty method because the pixels blink as it changes changes </s> - diff --git a/funcom_test/43061525.txt b/funcom_test/43061525.txt deleted file mode 100644 index 763fedbb326c70fafd4f5fbf052269178b952d25..0000000000000000000000000000000000000000 --- a/funcom_test/43061525.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public MusicNote getNote(int index) { - - // If the index passed in is greater than the size of the list, there's - // a problem. - if(index > compSize ) { - return null; - } - else { - // Return the note at the given index - return (MusicNote)myNotes.get(index); - } - } - COM: <s> this method returns a note given its index in the list </s> - diff --git a/funcom_test/43061534.txt b/funcom_test/43061534.txt deleted file mode 100644 index 6b1a6cc66edf618b84db4864d580a6dc9fb817d8..0000000000000000000000000000000000000000 --- a/funcom_test/43061534.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String toString() { - - // Instantiate a new string - String myString = new String(); - - // Loop though all the notes - for( int i = 0, x = myNotes.size(); i < x ; i++ ) { - // Append this notes string form to the total string - myString = myString + ((MusicNote)myNotes.get(i)).toString(); - } - - // Return the string - return myString; - } - COM: <s> this method prints all the info for every note in the compostion </s> - diff --git a/funcom_test/43061703.txt b/funcom_test/43061703.txt deleted file mode 100644 index 497c1e947f53835d63fe0e8880c1a35f656b0724..0000000000000000000000000000000000000000 --- a/funcom_test/43061703.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void playNote(int channel, int pitch, int velocity, int duration) { - //create a play midi note thread - playMidiNote p = new playMidiNote(channel, pitch, velocity, duration); - //start the thread - new Thread(p).start(); - } - COM: <s> use the orchestra to play a midi note </s> - diff --git a/funcom_test/43061883.txt b/funcom_test/43061883.txt deleted file mode 100644 index cd381436023a24495e31fb7f38b5324222167997..0000000000000000000000000000000000000000 --- a/funcom_test/43061883.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void MoveDown(int vertex, int amount) { - if (vertex == -1) { - for (int i = 0; i < npoints; i++) { - intypoints[i] += amount; - ypoints[i] = (int) intypoints[i]; - } - } else if (vertex < npoints) { - intypoints[vertex] += amount; - ypoints[vertex] = (int) intypoints[vertex]; - } - invalidate(); - } - COM: <s> moves the selected vertex edge down </s> - diff --git a/funcom_test/43061890.txt b/funcom_test/43061890.txt deleted file mode 100644 index fd2a2913cf339203ad3e82aa7aa24fa7c92597a9..0000000000000000000000000000000000000000 --- a/funcom_test/43061890.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void MoveLeft(int vertex, int amount) { - if (vertex == -1) { - for (int i = 0; i < npoints; i++) { - intxpoints[i] -= amount; - xpoints[i] = (int) intxpoints[i]; - } - } else if (vertex < npoints) { - intxpoints[vertex] -= amount; - xpoints[vertex] = (int) intxpoints[vertex]; - } - invalidate(); - } - COM: <s> moves the selected vertex edge up </s> - diff --git a/funcom_test/43061896.txt b/funcom_test/43061896.txt deleted file mode 100644 index aead08b1025e4eb29e449ebe7575a67fd34d222b..0000000000000000000000000000000000000000 --- a/funcom_test/43061896.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void MoveRight(int vertex, int amount) { - if (vertex == -1) { - for (int i = 0; i < npoints; i++) { - intxpoints[i] += amount; - xpoints[i] = (int) intxpoints[i]; - } - } else if (vertex < npoints) { - intxpoints[vertex] += amount; - xpoints[vertex] = (int) intxpoints[vertex]; - } - invalidate(); - } - COM: <s> moves the selected vertex edge right </s> - diff --git a/funcom_test/43063597.txt b/funcom_test/43063597.txt deleted file mode 100644 index d7d0adcfcecb6579f0983fb70cc907e0002b81f7..0000000000000000000000000000000000000000 --- a/funcom_test/43063597.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void redirectOutput() { - try { - FileOutputStream fileOut = new FileOutputStream("Output.txt", true); - PrintStream thePrintStream = new PrintStream(fileOut); - System.setOut(thePrintStream); - System.setErr(thePrintStream); - } - catch (java.io.IOException ex) { - Code.failed(ex); - } - } - COM: <s> redirects both standard out system </s> - diff --git a/funcom_test/43063724.txt b/funcom_test/43063724.txt deleted file mode 100644 index 0a1d89da0157b54c9d9f515ea9764a6378c85746..0000000000000000000000000000000000000000 --- a/funcom_test/43063724.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void activate() { - moveToFront(); - try { - setSelected(true); - } catch (PropertyVetoException e) { - Code.debug(e.getMessage()); - e.printStackTrace(); - } - m_editor.activate(); - - if (m_app.getDesktopManager().active() != this) { - m_app.getDesktopManager().activateFrame(this); - } - } - COM: <s> activates this frame and makes sure the editor gets focused along with </s> - diff --git a/funcom_test/4307419.txt b/funcom_test/4307419.txt deleted file mode 100644 index f8411890fa9d32812ac2cca35cf8990a1f1a673d..0000000000000000000000000000000000000000 --- a/funcom_test/4307419.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public HitSet lookupScores(int queryId) throws IOException { - // find the block number that the query is in - int blockNumber = getBlockNumber(queryId); - // - int id = getRelativeQueryId(queryId); - if (blockNumber!=cachedBlockNumber) { - HitSet[] hitSet = (HitSet[]) IOUtils.loadObject(savedDataPath + - SetupUtils.FS + blockNumber + ".dat"); - this.cachedBlock = hitSet; - this.cachedBlockNumber = blockNumber; - } - return cachedBlock[id]; - } - COM: <s> retrieve the saved exact score for a query </s> - diff --git a/funcom_test/4307504.txt b/funcom_test/4307504.txt deleted file mode 100644 index 7280285a593df0fd6be22ca3f8be0cd64fe554cb..0000000000000000000000000000000000000000 --- a/funcom_test/4307504.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void openFile() throws IOException { - if (this.file == null) { - file = new File(indexDir + - System.getProperty("file.separator") + filename); - if (!file.exists()) { - throw new FileNotFoundException("Index file \"" + - file.getCanonicalPath() + " \" was not found."); - } - } - if (this.handle == null) { - this.handle = new RandomAccessFile(this.file, "r"); - } - } - COM: <s> checks if the index file has been opened and if not opens it </s> - diff --git a/funcom_test/4307533.txt b/funcom_test/4307533.txt deleted file mode 100644 index 7727698d5938d637807a5dcc982a21cceeba4d73..0000000000000000000000000000000000000000 --- a/funcom_test/4307533.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void instantiateThreadPool() { - /* The number of threads created is equal to the lesser of the - * following two numbers: - * 1) the number of available processor cores - * 2) the number of index shards - */ - this.threadCount = Math.min( - Runtime.getRuntime().availableProcessors(), - this.shards.length); - // Create a thread pool that keeps idle threads alive - this.threadPool = new ThreadPoolExecutor(threadCount, threadCount, - Long.MAX_VALUE, TimeUnit.MILLISECONDS, - new LinkedBlockingQueue<Runnable>()); - } - COM: <s> instantiates the thread pool </s> - diff --git a/funcom_test/43103087.txt b/funcom_test/43103087.txt deleted file mode 100644 index a5a68df75676e6af2d9222e9319ebcd410168eda..0000000000000000000000000000000000000000 --- a/funcom_test/43103087.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean propertiesRenovated(int type) { - for (int i = 0; i < properties_.size(); i++) { - if (properties_.get(i).getTypeInt() == type - && properties_.get(i).getState().getLevel() != 0) { - return true; - } - } - - return false; - } - COM: <s> properties renovated is used to determine whether the player owns any properties of </s> - diff --git a/funcom_test/4311377.txt b/funcom_test/4311377.txt deleted file mode 100644 index 6ab4bd4a7696d8cc484c0698e227ff32144bf24f..0000000000000000000000000000000000000000 --- a/funcom_test/4311377.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Method getMethodInstance(String nsevent) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, ClassNotFoundException - { - String methodName = nsevent.substring(nsevent.indexOf(Const.DELIMITER)+1); - return get(nsevent).getHandlerClassInstance().getClass().getDeclaredMethod( methodName , new Class[]{ServletContext.class , Query.class , Reply.class } ); - } - COM: <s> get instance of method handler </s> - diff --git a/funcom_test/4311378.txt b/funcom_test/4311378.txt deleted file mode 100644 index 133f0c2c3e997ea279132fc19033e1942dd65574..0000000000000000000000000000000000000000 --- a/funcom_test/4311378.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public Method getDefaultMethodInstance(String nsevent) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, ClassNotFoundException - { - return get(nsevent).getHandlerClassInstance().getClass().getDeclaredMethod( Const.DEFAULMETHOD , new Class[]{ServletContext.class , HttpServletRequest.class , HttpServletResponse.class } ); - } - COM: <s> get instance of default process method </s> - diff --git a/funcom_test/4311395.txt b/funcom_test/4311395.txt deleted file mode 100644 index 244107686fc6a244fa6b9ff5cdfe25ef546201a0..0000000000000000000000000000000000000000 --- a/funcom_test/4311395.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getAttribute(Element el , String tag , int index , String attribute){ - String val= null; - NodeList nl = el.getElementsByTagName(tag); - if(nl!=null && nl.getLength()>0){ - NamedNodeMap attrs = nl.item(index).getAttributes(); - for(int i = 0; i < attrs.getLength(); i++) { - if( attrs.item(i).getNodeName().equals(attribute)) - val = attrs.item(i).getNodeValue(); - } - } - return val; - } - COM: <s> get attribute of element </s> - diff --git a/funcom_test/43135903.txt b/funcom_test/43135903.txt deleted file mode 100644 index 6ae44a12135046e3fe58ed5fd619e799185cec63..0000000000000000000000000000000000000000 --- a/funcom_test/43135903.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: final public void setPosition(Position pos) { - boolean doInvalidate = false; - if (anim.paused = true) { - anim.paused = false; - doInvalidate = true; - } - if (!this.pos.equals(pos)) { - this.pos = new Position(pos); - doInvalidate = true; - } - if (doInvalidate) - invalidate(); - } - COM: <s> set the board to a given state </s> - diff --git a/funcom_test/43136064.txt b/funcom_test/43136064.txt deleted file mode 100644 index 742bf72181f76ebde181756ee2eab14ba106481d..0000000000000000000000000000000000000000 --- a/funcom_test/43136064.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void checkValid(Position pos, Move move) { - assertTrue(move != null); - ArrayList<Move> moveList = new MoveGen().pseudoLegalMoves(pos); - moveList = MoveGen.removeIllegal(pos, moveList); - assertTrue(moveList.contains(move)); - } - COM: <s> check that move is a legal move in position pos </s> - diff --git a/funcom_test/43137003.txt b/funcom_test/43137003.txt deleted file mode 100644 index 9dd3b852ff8d4f6f48e7c0563b8dd019d9116973..0000000000000000000000000000000000000000 --- a/funcom_test/43137003.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getNAGString (boolean allNumeric) { - if (nags == null) return null; - - StringBuilder sb = new StringBuilder(); - String suff = null; - int count = 0; - - for (int i=0; i<nags.length; i++) { - suff = NAG.numberToString(nags[i], allNumeric); - - if (suff != null) { - if (count++ > 0) - sb.append(" "); - sb.append(suff); - } - } - return sb.toString(); - } - COM: <s> returns the array of nags as a string delimited by space </s> - diff --git a/funcom_test/43137024.txt b/funcom_test/43137024.txt deleted file mode 100644 index af3c9a4fcf5232c9cb828a85e1f8833b98924294..0000000000000000000000000000000000000000 --- a/funcom_test/43137024.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String dump () { - StringBuilder sb = new StringBuilder(); - - sb.append("comment: ") - .append(comment) - .append(" nags: "); - if (nags != null) - for (int i=0; i < nags.length; i++) { - sb.append(nags[i]).append(" "); - } - return sb.toString(); - } - COM: <s> used for diagnostics only </s> - diff --git a/funcom_test/43261145.txt b/funcom_test/43261145.txt deleted file mode 100644 index e5c081461dc94cdecf548afb76ee33ab479001b8..0000000000000000000000000000000000000000 --- a/funcom_test/43261145.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void runAntdepoSetup() throws ExecutionException { - final String fwkNode = framework.getFrameworkNodeName(); - final Setup setup = new Setup(); - final String[] args = new String[]{ - "-n", fwkNode - }; - try { - setup.execute(args); - } catch (Setup.SetupException e) { - throw new ExecutionException("setup execution failed", e); - } - } - COM: <s> wrapper around the </s> - diff --git a/funcom_test/43261997.txt b/funcom_test/43261997.txt deleted file mode 100644 index 4e95d768361a5ace5ea635c38d0f56badadd5dc5..0000000000000000000000000000000000000000 --- a/funcom_test/43261997.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ActionResult perform() { - updateDeploymentsFile(); - final Task task = ProxyDispatcherFactory.createActionProxyDispatcherTask(context, project, depotMgr.getFramework()); - final BaseActionResult result = BaseActionResult.create(resultParams); - try { - task.execute(); - result.setSuccessful(true); - } catch (BuildException e) { - result.setBuildException(e); - } - return result; - } - COM: <s> executes the action </s> - diff --git a/funcom_test/43262318.txt b/funcom_test/43262318.txt deleted file mode 100644 index cd7bd9ce49a8d9be0261eaa3e130f3dc31946f95..0000000000000000000000000000000000000000 --- a/funcom_test/43262318.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String setKey() { - - key = getRole() + "+" + getContextDepot() + "+" + getContextType() + "+" + getContextName() + "+" + - getModule() + "+" + getCommand() + "+" + getTimeanddayExp().toString(); - - return key; - - } - COM: <s> set the key to be referenced in an acl map </s> - diff --git a/funcom_test/43262395.txt b/funcom_test/43262395.txt deleted file mode 100644 index ef39ad83acfc6d43810a5cb0c107b9f23e5cdeab..0000000000000000000000000000000000000000 --- a/funcom_test/43262395.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected Map toMap() { - final Map map = new HashMap(); - map.put("entityName", entityName); - map.put("entityType", getEntityType()); - map.put("isObjectContext", Boolean.toString(isObjectContext())); - return map; - } - COM: <s> returns fields as a map of key value pairs </s> - diff --git a/funcom_test/43262545.txt b/funcom_test/43262545.txt deleted file mode 100644 index a8d291633d8a6cb3fc945c1846edb20c36c360fb..0000000000000000000000000000000000000000 --- a/funcom_test/43262545.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean isLocal() { - final String hostname; - if (containsUserName()) { - hostname = extractHostname(); - } else { - hostname = nodename; - } - final String fwkNodeHostname; - if (containsUserName(fwkNode)) { - fwkNodeHostname = extractHostname(fwkNode); - } else { - fwkNodeHostname = fwkNode; - } - return fwkNodeHostname.equals(hostname); - } - COM: <s> checks if node is local by comparing </s> - diff --git a/funcom_test/43262575.txt b/funcom_test/43262575.txt deleted file mode 100644 index 1e070cc05044bc7af1e2ffb7dc81f5128ff021e4..0000000000000000000000000000000000000000 --- a/funcom_test/43262575.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public IFrameworkResource getChild(final String name) { - if(childCouldBeLoaded(name)) { - IFrameworkResource o = loadChild(name); - if(null!=o){ - return o; - } - } - throw new NoSuchResourceException("child resource not found: " + name - + ". parent resource: " + this.getName(), this); - } - COM: <s> gets requested child framework resource </s> - diff --git a/funcom_test/43262610.txt b/funcom_test/43262610.txt deleted file mode 100644 index 903e30dec469cc5a48b82c960dcb7ba5f0515608..0000000000000000000000000000000000000000 --- a/funcom_test/43262610.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected NodeDescList asNodeDescs(final String[] nodes) { - final NodeDescList out = new NodeDescList(); - for (int i = 0; i < nodes.length; i++) { - out.add(NodeDesc.create(nodes[i],framework.getFrameworkNodeName())); - } - return out; - } - COM: <s> given an array of string values generates a corresponding node descs object containing </s> - diff --git a/funcom_test/43262615.txt b/funcom_test/43262615.txt deleted file mode 100644 index 2a81b974a1ad3e4f32f2ba4b086619154ffc4c35..0000000000000000000000000000000000000000 --- a/funcom_test/43262615.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private Properties loadProperties(final File file) { - final Properties p = new Properties(); - try { - FileInputStream fis = new FileInputStream(file); - try { - p.load(fis); - } finally { - if (null != fis) { - fis.close(); - } - } - } catch (IOException e) { - throw new AntdepoException("failed loading property file: " - + e.getMessage(), e); - } - return p; - } - COM: <s> reads the property file </s> - diff --git a/funcom_test/43300031.txt b/funcom_test/43300031.txt deleted file mode 100644 index e179c61d74fbdc4526a54d62d5a2150570ca336d..0000000000000000000000000000000000000000 --- a/funcom_test/43300031.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testGetApplicationNames() { - ArrayList<String> activeNames = new ArrayList<String>(); - ArrayList<String> popularNames = new ArrayList<String>(); - int counter = 0; - - testScraper.jumpToThisHTML(sampleHTML); - activeNames = testScraper.getApplicationNames("most_active"); - popularNames = testScraper.getApplicationNames("most_downloaded"); - - for (String appName : activeNames) { - counter++; - } - - assertEquals(counter, 3); - assertEquals(popularNames.get(0), "Download 1"); - } - COM: <s> make sure that the get application names method works against test data </s> - diff --git a/funcom_test/43300032.txt b/funcom_test/43300032.txt deleted file mode 100644 index c9b103e9e33dee890ec944b02e529141f1a00687..0000000000000000000000000000000000000000 --- a/funcom_test/43300032.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testPrinting() { - testScraper.jumpToThisHTML(sampleHTML); - testScraper.printMostActive(); - testScraper.printMostPopular(); - - assertTrue(testScraper.out().getHistory().contains("P1")); - assertTrue(testScraper.out().getHistory().contains("P2")); - assertTrue(testScraper.out().getHistory().contains("P3")); - assertTrue(testScraper.out().getHistory().contains("Download 1")); - } - COM: <s> this method will test the printing functionality of the bot </s> - diff --git a/funcom_test/43300759.txt b/funcom_test/43300759.txt deleted file mode 100644 index 8e6970ea6219f5a9c7fefecc44f083da60722b78..0000000000000000000000000000000000000000 --- a/funcom_test/43300759.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void delay(int ms) { - if (eventMode == EM_ROBOT) { - while (ms > MAX_DELAY) { - robot.delay(MAX_DELAY); - ms -= MAX_DELAY; - } - robot.delay(ms); - } - else { - try { Thread.sleep(ms); } catch(InterruptedException ie) { } - } - } - COM: <s> sleep the given duration of ms </s> - diff --git a/funcom_test/43302305.txt b/funcom_test/43302305.txt deleted file mode 100644 index 042891c9e70db5a225c4aca0724d59681a1df4ae..0000000000000000000000000000000000000000 --- a/funcom_test/43302305.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected boolean isReadyForInput(Component c) { - if (eventMode == EM_AWT) - return c.isShowing(); - Window w = AWT.getWindow(c); - if (w == null) { - throw new ActionFailedException("Component '" + toString(c) - + "' has no Window ancestor"); - } - return c.isShowing() - && tracker.isWindowReady(w); - } - COM: <s> is the given component ready for robot input </s> - diff --git a/funcom_test/43303607.txt b/funcom_test/43303607.txt deleted file mode 100644 index 6b8f389193f8d5c38140b7e623444e10b690447f..0000000000000000000000000000000000000000 --- a/funcom_test/43303607.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void iconify(final Frame frame) { - Point loc = getIconifyLocation(frame); - if (loc != null) { - mouseMove(frame, loc.x, loc.y); - } - invokeLater(frame, new Runnable() { - public void run() { - frame.setState(Frame.ICONIFIED); - } - }); - } - COM: <s> iconify the given frame </s> - diff --git a/funcom_test/43309439.txt b/funcom_test/43309439.txt deleted file mode 100644 index d2b9090ac374e52951a7d9c1b0f9c6e772d65321..0000000000000000000000000000000000000000 --- a/funcom_test/43309439.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void mouseEntered(MouseEvent e) { - if (mouseEnteredHook != null) { - Object[] args = { new GPoint(e.getX(), e.getY()) }; - try { - mouseEnteredHook.invoke(myProgram, args); - } catch (Exception ex) { - throw new ErrorException(ex); - } - } - } - COM: <s> called by the event handling system when the mouse enters the component </s> - diff --git a/funcom_test/43309454.txt b/funcom_test/43309454.txt deleted file mode 100644 index 244517e31c0aabdd782e69b2d45c91f9251dff52..0000000000000000000000000000000000000000 --- a/funcom_test/43309454.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void mouseExited(MouseEvent e) { - if (mouseExitedHook != null) { - Object[] args = { new GPoint(e.getX(), e.getY()) }; - try { - mouseExitedHook.invoke(myProgram, args); - } catch (Exception ex) { - throw new ErrorException(ex); - } - } - } - COM: <s> called by the event handling system when the mouse leaves the component </s> - diff --git a/funcom_test/43310565.txt b/funcom_test/43310565.txt deleted file mode 100644 index 2ffb0b4890e73e0b965757e07b3ff5910058e8a4..0000000000000000000000000000000000000000 --- a/funcom_test/43310565.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public WOComponentDefinition _componentDefinition(String s, NSArray nsarray) { - if(ERXProperties.booleanForKeyWithDefault("er.extensions.ERXApplication.fixCachingEnabled", true)) { - // _expectedLanguages already contains all the languages in all projects, so - // there is no need to check for the ones that come in... - return super._componentDefinition(s, _expectedLanguages()); - } - return super._componentDefinition(s, nsarray); - } - COM: <s> bugfix for wo component loading </s> - diff --git a/funcom_test/43373007.txt b/funcom_test/43373007.txt deleted file mode 100644 index 96199db9b643d936813510f46cd1fb244c444090..0000000000000000000000000000000000000000 --- a/funcom_test/43373007.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean filterOut(String name, int index) { - if (filterPool.isEmpty()) return true; - if (!filterPool.containsKey(name)) return false; - List<Period> list = filterPool.get(name); - for (Period p : list) { - if (p.isValid(index) == 0) return true; - } - return false; - } - COM: <s> filter a position </s> - diff --git a/funcom_test/43373011.txt b/funcom_test/43373011.txt deleted file mode 100644 index dee01704bda23d741667c66d90c65f07b6bedba2..0000000000000000000000000000000000000000 --- a/funcom_test/43373011.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean filterOut(String name, int start, int end) { - if (filterPool.isEmpty()) return true; - if (!filterPool.containsKey(name)) return false; - List<Period> list = filterPool.get(name); - for (Period p : list) { - if (p.isOverLapped(start, end)) return true; - } - return false; - } - COM: <s> filter a chunk of position </s> - diff --git a/funcom_test/43373075.txt b/funcom_test/43373075.txt deleted file mode 100644 index b9968ad0667c3252664fadb38b83d88089e5c54e..0000000000000000000000000000000000000000 --- a/funcom_test/43373075.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private double getWeightedErrorEstimate() { - double sum = 0; - double weight = 1; - double sub = 0; - for (byte c : sortedScore.getBytes()) { - sum += (c - 33) * weight; - sub += weight; - weight *= 0.85; - } - return getPhred(sum / sub); - } - COM: <s> return weighted estimated error </s> - diff --git a/funcom_test/43373093.txt b/funcom_test/43373093.txt deleted file mode 100644 index fd663389e27fedf447a0e7cfb7374e4eccbd259d..0000000000000000000000000000000000000000 --- a/funcom_test/43373093.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void countBase() { - for (int i = 0; i < sortedSeq.length(); i++) { - char c = sortedSeq.charAt(i); - int index = getBaseIndex(c); - if (index == -1) continue; - baseCount[index]++; - scoreCount[index] += sortedScore.charAt(i); - } - } - COM: <s> count base and score </s> - diff --git a/funcom_test/43373121.txt b/funcom_test/43373121.txt deleted file mode 100644 index c63cf6b8dbac23b54f5e0637473e26b395aac452..0000000000000000000000000000000000000000 --- a/funcom_test/43373121.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String printCount() { - if (isNull()) return ""; - String countBase = ""; - for (int aCount : baseCount) { - countBase += aCount + "\t"; - } - return chromosome + "\t" + index + "\t" + ref + "\t" + countBase + indel; - } - COM: <s> print count information </s> - diff --git a/funcom_test/43373152.txt b/funcom_test/43373152.txt deleted file mode 100644 index 2c201847d23ade4cf23b9032bd50d000df440342..0000000000000000000000000000000000000000 --- a/funcom_test/43373152.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public char getMostBase() { - int n = 0; - int most = 0; - for (int i = 0; i < baseCount.length / 2; i++) { - if (baseCount[i] + baseCount[i + 4] > n) { - n = baseCount[i] + baseCount[i + 4]; - most = i; - } - } - if (bases[most] < indel) return 0; - return bases[most]; - } - COM: <s> get the mose base including ref if indel is most return 0 </s> - diff --git a/funcom_test/43373166.txt b/funcom_test/43373166.txt deleted file mode 100644 index 63a95a985cde1b72f9c0aaf60ff9f7b4c37a9671..0000000000000000000000000000000000000000 --- a/funcom_test/43373166.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int getForwardBaseNum(char base) { - switch (base) { - case 'A': - case 'a': - return baseCount[0]; - case 'C': - case 'c': - return baseCount[1]; - case 'G': - case 'g': - return baseCount[2]; - case 'T': - case 't': - return baseCount[3]; - default: - return 0; - } - } - COM: <s> get the base count from forward sequence </s> - diff --git a/funcom_test/43373168.txt b/funcom_test/43373168.txt deleted file mode 100644 index d4d2b1695d1ff645defbd9c8d6dc57f25a9a4e42..0000000000000000000000000000000000000000 --- a/funcom_test/43373168.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int getReverseBaseNum(char base) { - switch (base) { - case 'A': - case 'a': - return baseCount[4]; - case 'C': - case 'c': - return baseCount[5]; - case 'G': - case 'g': - return baseCount[6]; - case 'T': - case 't': - return baseCount[7]; - default: - return 0; - } - } - COM: <s> get the base count from reverse sequence </s> - diff --git a/funcom_test/43377335.txt b/funcom_test/43377335.txt deleted file mode 100644 index a489fb064fb0876836ead2373d657c1d231fbdec..0000000000000000000000000000000000000000 --- a/funcom_test/43377335.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addPROCParam(PROCParam ce) { - ce.setParent(this); - //Set an inital location for this - ce.setX(this.getX()); - ce.setY(this.getY()); - - if(ce instanceof VAR){ - ((VAR) ce).setIsPROCParam(true); - } - - params.add(ce); - } - COM: <s> adds a channel to this process this does not assign it just defines </s> - diff --git a/funcom_test/43377600.txt b/funcom_test/43377600.txt deleted file mode 100644 index e8c7e873f14180a2fb777bea299c6335dc0803d2..0000000000000000000000000000000000000000 --- a/funcom_test/43377600.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addBlock(CodeBlock toAdd) { - blocks.add(toAdd); -// toAdd.setCanvas(this); - toAdd.addedToCanvas(this); - - //This is a sneaky hack to get things to be the right size and lay out - //correctly before they are actually drawn - BufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB); - toAdd.draw(image.getGraphics()); - - pack(); - repaint(); - } - COM: <s> adds a code block well any drawable to the canvas </s> - diff --git a/funcom_test/43378084.txt b/funcom_test/43378084.txt deleted file mode 100644 index 242deb3dc9453bb14799855dc376af23c6dc98d9..0000000000000000000000000000000000000000 --- a/funcom_test/43378084.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected DynaBean clone(Class[] face) { - Class[] iFace = injectDynamicInterface(face); - // return a new dynamic proxy - Map state = _getState(); - DynaBeanImpl copy = newInstance(); - copy._setState(state); - copy._setInterface(iFace); - Object proxy = Proxy.newProxyInstance(getClass().getClassLoader(), - iFace, copy); - copy._setProxy(proxy); - return (DynaBean) proxy; - } - COM: <s> returns a copy of the bean that implements the specified interface with </s> - diff --git a/funcom_test/43378099.txt b/funcom_test/43378099.txt deleted file mode 100644 index 0bf145ff4bb005f1496e993d22810214aa743771..0000000000000000000000000000000000000000 --- a/funcom_test/43378099.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private RdfBean doGet(URI resource) throws Exception { - RdfBean bean = null; - // does the resource even exist? - if (helper.resourceExists(resource, this.data)) { - // load schema - URI type = typeMapper.resolveType(resource, this.data); - Schema schema = getSchema(type); - // load bean - bean = loader.getBean(this.data, resource, schema, this.nodeMapper); - } - return bean; - } - COM: <s> performs the get operation </s> - diff --git a/funcom_test/43378127.txt b/funcom_test/43378127.txt deleted file mode 100644 index 0fd3ffcd0fe0e59133515a5186c266874aaf5ac0..0000000000000000000000000000000000000000 --- a/funcom_test/43378127.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void doDelete(URI resource) throws Exception { - // does the resource even exist? - ClosableIterator<Triple> iter = null; - try { - // HAQQ! - cannot read and delete from same store concurrently! - Set<Triple> statements = new HashSet<Triple>(); - iter = helper.getResource(resource, this.data); - while (iter.hasNext()) { - statements.add(iter.next()); - } - this.data.remove(statements.iterator()); - - // iter = helper.getResource(resource, this.data); - // this.data.remove(iter); - } finally { - iter.close(); - } - } - COM: <s> performs the delete operation </s> - diff --git a/funcom_test/43378150.txt b/funcom_test/43378150.txt deleted file mode 100644 index 0226d5ccfedd75ebd8536745b9916bf50e2c5c40..0000000000000000000000000000000000000000 --- a/funcom_test/43378150.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Graph getGraph(RdfBean bean) throws Exception { - URI uri = bean._getResource(); - URI type = bean._getRdfType(); - Map state = bean._getState(); - // RDF type may be inferred by interace in some cases... - if (type == null) { - type = typeMapper.guessRdfType(bean, this.schema); - } - Schema schema = getSchema(type); - Graph graph = stateMapper.mapState(state, uri, schema); - return graph; - } - COM: <s> returns the subgraph for the bean resource </s> - diff --git a/funcom_test/43378157.txt b/funcom_test/43378157.txt deleted file mode 100644 index 441ffa5641013f3f2be24a36a1f13274e0704ac5..0000000000000000000000000000000000000000 --- a/funcom_test/43378157.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void addData(Graph graph) throws GraphException { - ClosableIterator<Triple> iter = null; - try { - GraphElementFactory factory = this.data.getElementFactory(); - TripleFactory tripleFactory = this.data.getTripleFactory(); - iter = graph.find(ANY_SUBJECT_NODE, ANY_PREDICATE_NODE, - ANY_OBJECT_NODE); - Iterator<Triple> translator = new TripleIteratorTranslator(iter, - factory, tripleFactory); - this.data.add(translator); - } finally { - if (iter != null) { - iter.close(); - } - } - } - COM: <s> adds all the statements in the graph to the data graph </s> - diff --git a/funcom_test/43418004.txt b/funcom_test/43418004.txt deleted file mode 100644 index 0ef61cce880dfae39fefd9b5e10b57d817efc559..0000000000000000000000000000000000000000 --- a/funcom_test/43418004.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setSimulationCycleStartTimeStamp() { - - long cycleTimeNow = System.currentTimeMillis(); - if (this.cycleTimeStart != 0) { - long cycleTime = cycleTimeNow - this.cycleTimeStart; - this.cycleTimeVector.addElement(cycleTime); - if (this.cycleTimeVector.size() > this.cycleTimeVectorMaxSize) { - this.cycleTimeVector.removeElementAt(0); - } - } - this.cycleTimeStart = cycleTimeNow; - } - COM: <s> method to calculate the cycle frequency of the simulation </s> - diff --git a/funcom_test/43418006.txt b/funcom_test/43418006.txt deleted file mode 100644 index 9e7d0e318bb493772f8f21b82b74daf592ac4ef7..0000000000000000000000000000000000000000 --- a/funcom_test/43418006.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public double getAvgCycleTime() { - - if (this.cycleTimeVector.size()==0) { - return 0; - } - - long cycleTimeSum = 0; - Long[] currentCycleTimeArray = new Long[cycleTimeVector.size()]; - currentCycleTimeArray = cycleTimeVector.toArray(currentCycleTimeArray); - for (int i = 0; i < currentCycleTimeArray.length; i++) { - cycleTimeSum += currentCycleTimeArray[i]; - } - return (double)cycleTimeSum/(double)currentCycleTimeArray.length; - } - COM: <s> method to get the current cycle frequency in average </s> - diff --git a/funcom_test/43418020.txt b/funcom_test/43418020.txt deleted file mode 100644 index 5733f530a108d1a1f689ec4adab6554732f37fa6..0000000000000000000000000000000000000000 --- a/funcom_test/43418020.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void outputCpu() throws SigarException { - // --- setting cpu-Information -------------------- - cpuInfos = this.sigar.getCpuInfoList(); - CpuInfo info = cpuInfos[0]; - setVendor(info.getVendor()); - setModel(info.getModel()); - setMhz(info.getMhz()); - setTotalCpu(info.getTotalCores()); - } - COM: <s> will set up the cpu information </s> - diff --git a/funcom_test/43418037.txt b/funcom_test/43418037.txt deleted file mode 100644 index 69c2ef0368f87f713f2f96986aff756161f04b38..0000000000000000000000000000000000000000 --- a/funcom_test/43418037.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JProgressBar getJLoadCPU() { - if (jLoadCPU == null) { - jLoadCPU = new JProgressBar(); - jLoadCPU.setPreferredSize(new Dimension(150, 18)); - jLoadCPU.setFont(new Font("Dialog", Font.PLAIN, 12)); - jLoadCPU.setStringPainted(true); - jLoadCPU.setToolTipText("CPU-Load of the System"); - } - return jLoadCPU; - } - COM: <s> this method initializes j load cpu </s> - diff --git a/funcom_test/43418040.txt b/funcom_test/43418040.txt deleted file mode 100644 index 3b6fb590308b82964afed7b721ec32299542eb97..0000000000000000000000000000000000000000 --- a/funcom_test/43418040.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JProgressBar getJLoadMemory() { - if (jLoadMemory == null) { - jLoadMemory = new JProgressBar(); - jLoadMemory.setPreferredSize(new Dimension(150, 18)); - jLoadMemory.setStringPainted(true); - jLoadMemory.setFont(new Font("Dialog", Font.PLAIN, 12)); - jLoadMemory.setToolTipText("Memory-Load of the System"); - } - return jLoadMemory; - } - COM: <s> this method initializes j load memory </s> - diff --git a/funcom_test/43418044.txt b/funcom_test/43418044.txt deleted file mode 100644 index f344cdd31b04a3aecc8d61c6040fa87cd2b70ce5..0000000000000000000000000000000000000000 --- a/funcom_test/43418044.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JProgressBar getJLoadJVM() { - if (jLoadJVM == null) { - jLoadJVM = new JProgressBar(); - jLoadJVM.setPreferredSize(new Dimension(150, 18)); - jLoadJVM.setStringPainted(true); - jLoadJVM.setFont(new Font("Dialog", Font.PLAIN, 12)); - jLoadJVM.setToolTipText("Memory Heap JVM"); - } - return jLoadJVM; - } - COM: <s> this method initializes j load jvm </s> - diff --git a/funcom_test/43418142.txt b/funcom_test/43418142.txt deleted file mode 100644 index 3bd9ee6aaeb1a8c7491a9b81198b4af1ab812a4b..0000000000000000000000000000000000000000 --- a/funcom_test/43418142.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void put2AgentsAtContainer(String containerName, AID_Container cAID) { - AID_Container_List agentList = agentsAtContainer.get(containerName); - if (agentList==null) { - agentList = new AID_Container_List(); - } - if (cAID!=null) { - agentList.put(cAID.getAID().getLocalName(), cAID); - } - agentsAtContainer.put(containerName, agentList); - } - COM: <s> this method stores the information which agents are in which container </s> - diff --git a/funcom_test/43418289.txt b/funcom_test/43418289.txt deleted file mode 100644 index 8622f1822da74899e135068eca23670fcdea6f7c..0000000000000000000000000000000000000000 --- a/funcom_test/43418289.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void refreshCountingsAndLists() { - - noMachines = loadMachines4Balancing.size(); - noAgents = loadContainerAgentMap.noAgentsAtPlatform; - - machineArray = new String[loadMachines4Balancing.size()]; - new Vector<String>(loadMachines4Balancing.keySet()).toArray(machineArray); - - machinesBenchmarkSummation = 0; - for (int i = 0; i<noMachines; i++) { - machinesBenchmarkSummation += loadMachines4Balancing.get(machineArray[i]).getBenchmarkValue(); - } - } - COM: <s> here some important counting will be done by default </s> - diff --git a/funcom_test/43418293.txt b/funcom_test/43418293.txt deleted file mode 100644 index 7cff25ba39ce6b4667d0ac97e93b721a2e51916a..0000000000000000000000000000000000000000 --- a/funcom_test/43418293.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void notifySensors(final EnvironmentModel currEnvironmentModel, final boolean aSynchron) { - - Runnable notifier = new Runnable() { - @Override - public void run() { - Object[] arrLocal = serviceSensors.toArray(); - for (int i = arrLocal.length-1; i>=0; i--) { - ((ServiceSensor)arrLocal[i]).putEnvironmentModel(currEnvironmentModel, aSynchron); - } - } - }; - notifier.run(); - } - COM: <s> this method informs all sensors about the new environment model </s> - diff --git a/funcom_test/43418309.txt b/funcom_test/43418309.txt deleted file mode 100644 index 4cc6ebdf55d4322162021305ce8a07b764559453..0000000000000000000000000000000000000000 --- a/funcom_test/43418309.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void startAgentsFromCurrAgentList() { - - for (Iterator<AgentClassElement4SimStart> iterator = currAgentList.iterator(); iterator.hasNext();) { - AgentClassElement4SimStart agent2Start = iterator.next(); - // --- Check for start arguments ------------------------- - Object[] startArgs = this.getStartArguments(agent2Start); - // --- Start the agent ----------------------------------- - this.startAgent(agent2Start.getStartAsName(), agent2Start.getAgentClassReference(), startArgs); - } - } - COM: <s> this method will start all agents defined in the agent list </s> - diff --git a/funcom_test/43418325.txt b/funcom_test/43418325.txt deleted file mode 100644 index 56a0153f7c9fd3872a102f71bd48e5e09ea623af..0000000000000000000000000000000000000000 --- a/funcom_test/43418325.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void putMigration() { - - // --- Fill InMovement-list with Sensors from the 'migrationStore' ---- - while (this.migrationListInMovement.size() < this.migrationsParallelMax) { - - if (migrationList.size()==0) { - break; - } - migrationListInMovement.addElement(migrationList.get(0)); - migrationList.get(0).sensor.putMigrationLocation(migrationList.get(0).getSensorAgentsNewLocation()); - migrationList.remove(0); - } - } - COM: <s> provide the migration information to the first agents bounded to </s> - diff --git a/funcom_test/43418390.txt b/funcom_test/43418390.txt deleted file mode 100644 index 01476ae592c94a2ae3ffb56851fe6f46b4561289..0000000000000000000000000000000000000000 --- a/funcom_test/43418390.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private boolean sendReply(ACLMessage msg, Concept agentAction) { - - // --- Define a new action ------------------------ - Action act = new Action(); - act.setActor(getAID()); - act.setAction(agentAction); - - try { - // --- ... send ------------------------------- - getContentManager().fillContent(msg, act); - send(msg); - return true; - } catch (CodecException e) { - e.printStackTrace(); - return false; - } catch (OntologyException e) { - e.printStackTrace(); - return false; - } - - } - COM: <s> sends a reply acl message with a specified agent action </s> - diff --git a/funcom_test/43418461.txt b/funcom_test/43418461.txt deleted file mode 100644 index 376df7529eae017a970ee88c529119cc06538d63..0000000000000000000000000000000000000000 --- a/funcom_test/43418461.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Physical2DObject getPhysical2DObject(Physical2DEnvironment world, String id) { - ArrayList list=(ArrayList) world.getRootPlayground().getChildObjects(); - for(int i=0;i<list.size();i++) { - Physical2DObject playGround =(Physical2DObject) list.get(i); - if(playGround.getId().equals(id)) { - return playGround; - } - } - return null; - } - COM: <s> returns the physical2 dobject of the specified identifier </s> - diff --git a/funcom_test/43418465.txt b/funcom_test/43418465.txt deleted file mode 100644 index bbf9579d410f53d226b16da985f2753d86826fff..0000000000000000000000000000000000000000 --- a/funcom_test/43418465.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void fordwardToVisualation(HashMap<AID,PositionUpdate> positionUpdates) throws Exception { - - if (envHelper==null) { - throw new Exception("The EnvironmentProviderService is currently not running !"); - } - - Set<AID> keys = positionUpdates.keySet(); - Object[] newKeys = keys.toArray(); - - for(int i=0;i<newKeys.length;i++) { - AID key=(AID) newKeys[i]; - envHelper.stepModel(key, positionUpdates.get(key)); - } - } - COM: <s> write the answer into the transaction list of the environment service </s> - diff --git a/funcom_test/43418481.txt b/funcom_test/43418481.txt deleted file mode 100644 index 6967db0dbfb91a4ae4c57ec79164117f1f7f8324..0000000000000000000000000000000000000000 --- a/funcom_test/43418481.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void checkAndActOnEnvironmentChanges() { - // --- Has the EnvironmentModel changed? ---------------- - try { - SimulationServiceHelper simHelper = (SimulationServiceHelper) getHelper(SimulationService.NAME); - EnvironmentModel tmpEnvMode = simHelper.getEnvironmentModel(); - if (tmpEnvMode!=null) { - if (tmpEnvMode.equals(myEnvironmentModel)==false) { - this.onEnvironmentStimulus(); - } - } - } catch (ServiceException e) { - e.printStackTrace(); - } - } - COM: <s> this method checks if the environment changed in the meantime </s> - diff --git a/funcom_test/43418654.txt b/funcom_test/43418654.txt deleted file mode 100644 index a80ae1a8187537927e705e1a296282b39fa2ea31..0000000000000000000000000000000000000000 --- a/funcom_test/43418654.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private String getHeaderLine() { - - StringBuilder sb = new StringBuilder(); - - // --- Add Date / Millisecond - Header ------------ - sb.append("Time").append(monitorDatasetDelimiter); - sb.append("Millis").append(monitorDatasetDelimiter); - - // --- Build complete dataset --------------------- - Iterator<String> it = loadContainer2Display.iterator(); - while (it.hasNext()) { - String containerName = it.next(); - sb.append(monitorDatasetPartsHeader.get(containerName)); - } - return sb.toString(); - } - COM: <s> this method returns the header line for the main monitoring file </s> - diff --git a/funcom_test/43418755.txt b/funcom_test/43418755.txt deleted file mode 100644 index 20a9c4bf35853677a16c823f23515921b435d18d..0000000000000000000000000000000000000000 --- a/funcom_test/43418755.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void destroyVisualizationGUI() { - - this.netModel = null; - if (this.myGraphEnvironmentController!=null) { - this.myGraphEnvironmentController.getEnvironmentPanel().setVisible(false); - } - if (this.useFrame != null) { - this.useFrame.dispose(); - this.useFrame = null; - } - if (this.usePanel != null) { - this.usePanel.removeAll(); - this.usePanel.repaint(); - this.usePanel = null; - } - } - COM: <s> destroys the visualization gui </s> - diff --git a/funcom_test/43418757.txt b/funcom_test/43418757.txt deleted file mode 100644 index 6c0e87d685909f9bdc5451247e6086071272620a..0000000000000000000000000000000000000000 --- a/funcom_test/43418757.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public GraphNode getCopy() { - - GraphNode nodeCopy = new GraphNode(); - - String newID = new String (this.getId()); - Point2D newPos = new Point2D.Double(0.0, 0.0); - newPos.setLocation(this.position.getX(), this.position.getY()); - - nodeCopy.setId(newID); - nodeCopy.setPosition(newPos); - nodeCopy.setEncodedOntologyRepresentation(this.encodedOntologyRepresentation); - return nodeCopy; - } - COM: <s> gets the copy of the current instance </s> - diff --git a/funcom_test/43418770.txt b/funcom_test/43418770.txt deleted file mode 100644 index ff9fb232992e84c6cec9ccc6eeca6313895666dd..0000000000000000000000000000000000000000 --- a/funcom_test/43418770.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private EnvironmentModel grabEnvironmentModelFromSimulationService(){ - EnvironmentModel envModel = null; - try { - SimulationServiceHelper simHelper = (SimulationServiceHelper) getHelper(SimulationService.NAME); - envModel = simHelper.getEnvironmentModel(); - } catch (ServiceException e) { - System.err.println(getLocalName() + " - Error: Could not retrieve SimulationServiceHelper, shutting down!"); - this.doDelete(); - } - return envModel; - } - COM: <s> grab the environment model from the simulation service </s> - diff --git a/funcom_test/43418807.txt b/funcom_test/43418807.txt deleted file mode 100644 index 8f1c510f1017fb4be12981b9983a7d52c5c0a0f8..0000000000000000000000000000000000000000 --- a/funcom_test/43418807.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getNetworkComponentCount(GraphNode node){ - // Get the components from the controllers GridModel - Iterator<NetworkComponent> components = this.getNetworkComponents().values().iterator(); - int count = 0; - while(components.hasNext()){ // iterating through all network components - NetworkComponent comp = components.next(); - // check if the component contains the current node - if(comp.getGraphElementIDs().contains(node.getId())){ - count++; - } - } - return count; - } - COM: <s> returns the number of network components which have the given node </s> - diff --git a/funcom_test/43418825.txt b/funcom_test/43418825.txt deleted file mode 100644 index c8cc068b2b74324cc3702fd5bc8535d31584b371..0000000000000000000000000000000000000000 --- a/funcom_test/43418825.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String nextNetworkComponentID() { - //Finds the current maximum network component ID and returns the next one to it. - HashMap<String, NetworkComponent> networkComponents = null; - networkComponents = getNetworkComponents(); - Iterator<NetworkComponent> components = networkComponents.values().iterator(); - int max = -1; - while(components.hasNext()){ - NetworkComponent component = components.next(); - int num = Integer.parseInt(component.getId().substring(1)); - if(num>max) - max = num; - } - return "n"+(max+1); - } - COM: <s> generates the next unique network component id in the series n1 n2 n3 </s> - diff --git a/funcom_test/43418956.txt b/funcom_test/43418956.txt deleted file mode 100644 index 5af6ece4e9407dbb8c7534030a97558f35b950b1..0000000000000000000000000000000000000000 --- a/funcom_test/43418956.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setNodesMoved2EndPosition() { - this.removeAllTemporaryNodes(myGUI.getGraphEnvironmentController().getNetworkModel().getGraph()); - for (int i = 0; i < this.nodesMoved.size(); i++) { - GraphNode node = this.nodesMoved.get(i); - vv.getGraphLayout().setLocation(node, node.getPosition()); - } - this.nodesMoved.removeAllElements(); - } - COM: <s> sets the nodes moved2 end position </s> - diff --git a/funcom_test/43418993.txt b/funcom_test/43418993.txt deleted file mode 100644 index 2aba966b6301b8b520432a20156792000d9e8461..0000000000000000000000000000000000000000 --- a/funcom_test/43418993.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void refreshNetworkModel() { - // --- Network model is updated/refreshed ----- - this.getGraphGUI().repaintGraph(this.getGraphController().getNetworkModel().getGraph()); - // --- Rebuilding the component table --------- - this.rebuildTblComponents(); - this.showNumberOfComponents(); - this.getGraphGUI().clearPickedObjects(); - } - COM: <s> refresh network model </s> - diff --git a/funcom_test/43419013.txt b/funcom_test/43419013.txt deleted file mode 100644 index 7e3fc8721695c961e9612521aeff6a4f2c51e585..0000000000000000000000000000000000000000 --- a/funcom_test/43419013.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JTextField getJTextFieldSearch() { - if (jTextFieldSearch == null) { - jTextFieldSearch = new JTextField(); - jTextFieldSearch.setPreferredSize(new Dimension(100, 20)); - jTextFieldSearch.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyReleased(java.awt.event.KeyEvent e) { - //Calling the table row filter for searching the components - tblFilter(); - } - }); - } - return jTextFieldSearch; - } - COM: <s> this method initializes j text field search </s> - diff --git a/funcom_test/43419026.txt b/funcom_test/43419026.txt deleted file mode 100644 index 93ead73c4ac6cd4c17668c89e4e5282b0e608f30..0000000000000000000000000000000000000000 --- a/funcom_test/43419026.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JButton getBtnOK() { - if (jButtonOK == null) { - jButtonOK = new JButton(); - jButtonOK.setText("OK"); - jButtonOK.setPreferredSize(new Dimension(80, 26)); - jButtonOK.setForeground(new Color(0, 153, 0)); - jButtonOK.setFont(new Font("Dialog", Font.BOLD, 12)); - jButtonOK.addActionListener(this); - } - return jButtonOK; - } - COM: <s> this method initializes btn ok </s> - diff --git a/funcom_test/43419042.txt b/funcom_test/43419042.txt deleted file mode 100644 index d7aa73512332f39d3683c4f8d3c49e84832693c7..0000000000000000000000000000000000000000 --- a/funcom_test/43419042.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JButton getBtnCancel() { - if (jButtonCancel == null) { - jButtonCancel = new JButton(); - jButtonCancel.setText("Cancel"); - jButtonCancel.setPreferredSize(new Dimension(80, 26)); - jButtonCancel.setFont(new Font("Dialog", Font.BOLD, 12)); - jButtonCancel.setForeground(new Color(153, 0, 0)); - jButtonCancel.addActionListener(this); - } - return jButtonCancel; - } - COM: <s> this method initializes btn cancel </s> - diff --git a/funcom_test/43419063.txt b/funcom_test/43419063.txt deleted file mode 100644 index 2e805e708e3673f9cecf40a9fa1737f472f77489..0000000000000000000000000000000000000000 --- a/funcom_test/43419063.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JButton getBtnZoomIn() { - if (btnZoomIn == null) { - btnZoomIn = new JButton(); - btnZoomIn.setPreferredSize(new Dimension(45, 26)); - btnZoomIn.setIcon(new ImageIcon(getClass().getResource(PathImage + "ListPlus.png"))); - btnZoomIn.setToolTipText("Zoom in"); - btnZoomIn.addActionListener(canvas.new ZoomAction(1.2)); - } - return btnZoomIn; - } - COM: <s> this method initializes btn zoom in </s> - diff --git a/funcom_test/43419067.txt b/funcom_test/43419067.txt deleted file mode 100644 index bba59b1313ca482575feeae964693fe65d37850a..0000000000000000000000000000000000000000 --- a/funcom_test/43419067.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JButton getBtnZoomOut() { - if (btnZoomOut == null) { - btnZoomOut = new JButton(); - btnZoomOut.setPreferredSize(new Dimension(45, 26)); - btnZoomOut.setIcon(new ImageIcon(getClass().getResource(PathImage + "ListMinus.png"))); - btnZoomOut.setToolTipText("Zoom out"); - btnZoomOut.addActionListener(canvas.new ZoomAction(0.8333333333)); - } - return btnZoomOut; - } - COM: <s> this method initializes btn zoom out </s> - diff --git a/funcom_test/43419071.txt b/funcom_test/43419071.txt deleted file mode 100644 index 72818c2626b00c93ed265309f1bc0cbfb2476693..0000000000000000000000000000000000000000 --- a/funcom_test/43419071.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JButton getBtnZoomReset() { - if (btnZoomReset == null) { - btnZoomReset = new JButton(); - btnZoomReset.setPreferredSize(new Dimension(45, 26)); - btnZoomReset.setIcon(new ImageIcon(getClass().getResource(PathImage + "Refresh.png"))); - btnZoomReset.setToolTipText("Reset to 100%"); - btnZoomReset.addActionListener(canvas.new ResetTransformAction()); - } - return btnZoomReset; - } - COM: <s> this method initializes btn zoom reset </s> - diff --git a/funcom_test/43419090.txt b/funcom_test/43419090.txt deleted file mode 100644 index cb3fc5f84caa07c09c352b5858f032b6ab2abd5a..0000000000000000000000000000000000000000 --- a/funcom_test/43419090.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JPanel getJPanelDummy() { - if (jPanelDummy == null) { - GridBagConstraints gridBagConstraints4 = new GridBagConstraints(); - gridBagConstraints4.fill = GridBagConstraints.VERTICAL; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.weightx = 1.0; - gridBagConstraints4.gridx = 0; - jPanelDummy = new JPanel(); - jPanelDummy.setLayout(new GridBagLayout()); - jPanelDummy.setPreferredSize(new Dimension(45, 20)); - } - return jPanelDummy; - } - COM: <s> this method initializes j panel dummy </s> - diff --git a/funcom_test/43419106.txt b/funcom_test/43419106.txt deleted file mode 100644 index d91e4b78af9309b78ae981d5c30ab6d2b2fc2a36..0000000000000000000000000000000000000000 --- a/funcom_test/43419106.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JSplitPane getJSplitPaneControlls() { - if (jSplitPaneControlls == null) { - jSplitPaneControlls = new JSplitPane(); - jSplitPaneControlls.setOrientation(JSplitPane.VERTICAL_SPLIT); - JScrollPane scpTree = new JScrollPane(); - scpTree.setViewportView(getTreeEnvironment()); - jSplitPaneControlls.setTopComponent(scpTree); - jSplitPaneControlls.setBottomComponent(getTpSettings()); - jSplitPaneControlls.setDividerLocation(150); - } - return jSplitPaneControlls; - } - COM: <s> this method initializes sp controlls </s> - diff --git a/funcom_test/43419111.txt b/funcom_test/43419111.txt deleted file mode 100644 index fe6f0c39098fcbe9d99602450b930a89b9a48176..0000000000000000000000000000000000000000 --- a/funcom_test/43419111.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JButton getJButtonPlay() { - if (jButtonPlay == null) { - jButtonPlay = new JButton(); - jButtonPlay.setPreferredSize(new Dimension(45, 26)); - jButtonPlay.setIcon(new ImageIcon(getClass().getResource("/agentgui/core/gui/img/MBLoadPlay.png"))); - - } - return jButtonPlay; - } - COM: <s> this method initializes j button play </s> - diff --git a/funcom_test/43419133.txt b/funcom_test/43419133.txt deleted file mode 100644 index 1e769b9e7f6d57b67fab9ca2b364da0d20632e9b..0000000000000000000000000000000000000000 --- a/funcom_test/43419133.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void rebuildTree(){ - if(this.getP2DController().getEnvironmentModel() != null){ - DefaultMutableTreeNode rootNode = getPlaygroundNode(this.getP2DController().getEnvironmentModel().getRootPlayground()); - getTreeEnvironment().setModel(new DefaultTreeModel(rootNode)); - }else{ - DefaultMutableTreeNode dummyNode = new DefaultMutableTreeNode(Language.translate("Keine Umgebung definiert")); - getTreeEnvironment().setModel(new DefaultTreeModel(dummyNode)); - } - } - COM: <s> rebuilding tree environments tree model </s> - diff --git a/funcom_test/43419157.txt b/funcom_test/43419157.txt deleted file mode 100644 index 0394bf86847a73ce4a9bd9557510acb7b522929e..0000000000000000000000000000000000000000 --- a/funcom_test/43419157.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JTabbedPane getTpSettings() { - if (tpSettings == null) { - tpSettings = new JTabbedPane(); - this.environmentSettings = new Physical2DEnvironmentSettingsPanel(this); - this.objectSettings = new Physical2DObjectSettingsPanel(this); - tpSettings.addTab(Language.translate("Umgebung"), environmentSettings); - tpSettings.addTab(Language.translate("Objekt"), objectSettings); - } - return tpSettings; - } - COM: <s> this method initializes tp settings </s> - diff --git a/funcom_test/43419233.txt b/funcom_test/43419233.txt deleted file mode 100644 index 7784dc6bc5e3275991bf03e840b766eef280702b..0000000000000000000000000000000000000000 --- a/funcom_test/43419233.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void rebuildLists(){ - - objectysById = new HashMap<String, Physical2DObject>(); - agents = new Vector<ActiveObject>(); - obstacles = new Vector<StaticObject>(); - payloads = new Vector<PassiveObject>(); - playgrounds = new Vector<PlaygroundObject>(); - this.objectysById.put(this.environment.getRootPlayground().getId(), this.environment.getRootPlayground()); - if(this.environment != null){ - scanObjectsByPlayground(this.environment.getRootPlayground()); - } - } - COM: <s> rebuilding hash map and vectors </s> - diff --git a/funcom_test/43419240.txt b/funcom_test/43419240.txt deleted file mode 100644 index c57ba828b4324eb32de5ae4391b9af2e39ccb8e2..0000000000000000000000000000000000000000 --- a/funcom_test/43419240.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addObject(Physical2DObject object){ - environment.getRootPlayground().addChildObjects(object); - objectysById.put(object.getId(), object); - if(object instanceof ActiveObject){ - agents.add((ActiveObject) object); - }else if(object instanceof StaticObject){ - obstacles.add((StaticObject) object); - }else if(object instanceof PassiveObject){ - payloads.add((PassiveObject) object); - }else if(object instanceof PlaygroundObject){ - playgrounds.add((PlaygroundObject) object); - } - } - COM: <s> adding a physical2 dobject to the wrapped environment </s> - diff --git a/funcom_test/43419244.txt b/funcom_test/43419244.txt deleted file mode 100644 index 841788eb91d23bfb211b08454b2be260072121f8..0000000000000000000000000000000000000000 --- a/funcom_test/43419244.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void setEnvironment(Physical2DEnvironment environment){ - if(environment != null){ - this.environment = environment; - this.envWrap = new EnvironmentWrapper(environment); - this.currentlyMovingAgents = new HashSet<ActiveObject>(); - this.currentlyMovingObjects = new HashSet<Physical2DObject>(); - this.masterNode = true; - }else{ - this.environment = null; - this.envWrap = null; - this.currentlyMovingAgents = null; - this.currentlyMovingObjects = null; - this.masterNode = false; - } - } - COM: <s> initializes the physical2 denvironment </s> - diff --git a/funcom_test/43419342.txt b/funcom_test/43419342.txt deleted file mode 100644 index fa4e9008c7b29dd9ee799bf2c1ed0b9ea0226296..0000000000000000000000000000000000000000 --- a/funcom_test/43419342.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void printVersionInfo() { - System.out.println(this.getFullVersionInfo(true, " ")); - if (debug==true) { - System.out.println("Version.Mayor " + this.getVersionMajor()); - System.out.println("Version.Minor " + this.getVersionMinor()); - System.out.println("Version.Build " + this.getVersionBuild()); - System.out.println("Version.Date " + this.getVersionDate().toString()); - } - } - COM: <s> prints out the current version and build information </s> - diff --git a/funcom_test/43419350.txt b/funcom_test/43419350.txt deleted file mode 100644 index 15ffa15721ccf0e9b2ce53f741190dc619d43512..0000000000000000000000000000000000000000 --- a/funcom_test/43419350.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private Document getSVGDoc(){ - Document doc = null; - if(masterNode){ - doc = this.svgDoc; - }else{ - try { - EnvironmentProviderSlice mainSlice = (EnvironmentProviderSlice) getSlice(getMasterSlice()); - doc = mainSlice.getSVGDoc(); - } catch (ServiceException e) { - e.printStackTrace(); - } catch (IMTPException e) { - e.printStackTrace(); - } - } - if(doc != null){ - return (Document) doc.cloneNode(true); - }else{ - return null; - } - } - COM: <s> gets the s vg doc </s> - diff --git a/funcom_test/43419367.txt b/funcom_test/43419367.txt deleted file mode 100644 index 0849dd884b54aa31995d87ed2d13f447a9dca53c..0000000000000000000000000000000000000000 --- a/funcom_test/43419367.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setDefaultComment() { - - String defaultComment = ""; - defaultComment = defaultComment + " Configuration of " + global.getApplicationTitle() + " (Version: " + version.getFullVersionInfo(false, " ") + ")\n"; - defaultComment = defaultComment + " by Christian Derksen - DAWIS - ICB - University Duisburg-Essen\n"; - defaultComment = defaultComment + " Email: christian.derksen@icb.uni-due.de\n"; - configFileDefaultComment = defaultComment; - } - COM: <s> this method will set the default comments to the property file </s> - diff --git a/funcom_test/43419370.txt b/funcom_test/43419370.txt deleted file mode 100644 index 45de3c54de7c008422d9e80b5549488d75f1e248..0000000000000000000000000000000000000000 --- a/funcom_test/43419370.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void save() { - // --- getting the current values of the mandantory variables --- - this.setGlobal2Config(); - // --- Save the config-file ------------------------------------- - try { - this.store(new FileOutputStream( configFile ), configFileDefaultComment); - } catch (FileNotFoundException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - } - COM: <s> this method saves the current settings to the property file </s> - diff --git a/funcom_test/43419484.txt b/funcom_test/43419484.txt deleted file mode 100644 index 105cd27d755ec7c7380111bc3e36e08b6c033240..0000000000000000000000000000000000000000 --- a/funcom_test/43419484.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private EnvironmentModel encodeComplexEnvironmentModel(EnvironmentModel envModel) { - - String complexEnvironmentBase64 = null; - try { - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - ObjectOutputStream out = new ObjectOutputStream(bos); - out.writeObject(envModel); - out.flush(); - - complexEnvironmentBase64 = new String(Base64.encodeBase64(bos.toByteArray())); - - } catch(IOException ex) { - ex.printStackTrace(); - } - - EnvironmentModel newEnvMod = new EnvironmentModel(); - newEnvMod.setComplexEnvironment(true); - newEnvMod.setComplexEnvironmentBase64(complexEnvironmentBase64); - return newEnvMod; - } - COM: <s> encodes a more complex environment model by binarize the model using the </s> - diff --git a/funcom_test/43419496.txt b/funcom_test/43419496.txt deleted file mode 100644 index 931213563c50689c5775488fa1c674265a684d27..0000000000000000000000000000000000000000 --- a/funcom_test/43419496.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private PlatformLoad measureLoad() { - PlatformLoad pl = new PlatformLoad(); - pl.setLoadCPU(LoadMeasureThread.getLoadCPU()); - pl.setLoadMemorySystem(LoadMeasureThread.getLoadMemorySystem()); - pl.setLoadMemoryJVM(LoadMeasureThread.getLoadMemoryJVM()); - pl.setLoadNoThreads(LoadMeasureThread.getLoadNoThreads()); - pl.setLoadExceeded(LoadMeasureThread.getThresholdLevelExceeded()); - return pl; - } - COM: <s> measures the local system load </s> - diff --git a/funcom_test/43419611.txt b/funcom_test/43419611.txt deleted file mode 100644 index 1ff00fab66962990533cedc05d447c84cc6a8941..0000000000000000000000000000000000000000 --- a/funcom_test/43419611.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void saveCRCReply(ClientRemoteContainerReply crcReply) { - - LoadService.currentlyWritingFile = true; - String mySavingPath = LoadService.SERVICE_NODE_DESCRIPTION_FILE; - try { - ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(mySavingPath)); - out.writeObject(crcReply); - out.flush(); - out.close(); - - } catch (FileNotFoundException e1) { - e1.printStackTrace(); - } catch (IOException e1) { - e1.printStackTrace(); - } - LoadService.currentlyWritingFile = false; - } - COM: <s> here the local container description will be stored on disk </s> - diff --git a/funcom_test/43419905.txt b/funcom_test/43419905.txt deleted file mode 100644 index e4563a51b16f23af85fed90ceecddf75928d2b66..0000000000000000000000000000000000000000 --- a/funcom_test/43419905.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JTextField getClassName() { - if (ClassName == null) { - ClassName = new JTextField(); - ClassName.setPreferredSize(new Dimension(120, 26)); - ClassName.setEditable(false); - ClassName.setFont(new Font("Dialog", Font.BOLD, 12)); - ClassName.setText( CurrOntoObject.getClassReference() ); - } - return ClassName; - } - COM: <s> this method initializes class name </s> - diff --git a/funcom_test/43419950.txt b/funcom_test/43419950.txt deleted file mode 100644 index bc1aa91d6e95b01a65133044314e215debf5b908..0000000000000000000000000000000000000000 --- a/funcom_test/43419950.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public JTabbedPane getJTabbedPane() { - if (jTabbedPaneIntern == null) { - jTabbedPaneIntern = new JTabbedPane(); - jTabbedPaneIntern.setFont(new Font("Dialog", Font.BOLD, 12)); - jTabbedPaneIntern.addMouseListener(currProject.projectWindow.getTabMouseListener()); - jTabbedPaneIntern.addChangeListener(currProject.projectWindow.getTabSelectionListener()); - } - return jTabbedPaneIntern; - } - COM: <s> this method initializes j tabbed pane sim setup </s> - diff --git a/funcom_test/43420106.txt b/funcom_test/43420106.txt deleted file mode 100644 index ea6daa75a76d652de29387e915d74cba20b320fc..0000000000000000000000000000000000000000 --- a/funcom_test/43420106.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JSplitPane getProjectViewSplit() { - if (jSplitPaneProjectView == null) { - jSplitPaneProjectView = new JSplitPane(); - jSplitPaneProjectView.setOneTouchExpandable(true); - jSplitPaneProjectView.setDividerLocation(210); - jSplitPaneProjectView.setDividerSize(10); - jSplitPaneProjectView.setLeftComponent(getJScrollPane()); - jSplitPaneProjectView.setRightComponent( getProjectViewRightTabs() ); - } - return jSplitPaneProjectView; - } - COM: <s> this method initializes project view split </s> - diff --git a/funcom_test/43420215.txt b/funcom_test/43420215.txt deleted file mode 100644 index 252e0ea2628ff7ef5762af2505e8b7c9f371f02b..0000000000000000000000000000000000000000 --- a/funcom_test/43420215.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public boolean isFreePort(int port) { - - ServerSocket ss = null; - DatagramSocket ds = null; - try { - ss = new ServerSocket(port); - ss.setReuseAddress(true); - ds = new DatagramSocket(port); - ds.setReuseAddress(true); - return true; - } catch (IOException e) { - } finally { - if (ds != null) { - ds.close(); - } - - if (ss != null) { - try { - ss.close(); - } catch (IOException e) { - /* should not be thrown */ - } - } - } - return false; - } - COM: <s> checks if a port is available free </s> - diff --git a/funcom_test/43420247.txt b/funcom_test/43420247.txt deleted file mode 100644 index 65325d444afcf4ea3dc733869507c7a29de418d6..0000000000000000000000000000000000000000 --- a/funcom_test/43420247.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private OntologyInstanceViewer getOntologyInstanceViewer() { - if(oiv==null) { - if (currAgentReference!=null && oiv==null) { - oiv = new OntologyInstanceViewer(currProject, currAgentReference); - oiv.setAllowViewEnlargement(false); - } - if (ontologyClassReference!=null && oiv==null) { - oiv = new OntologyInstanceViewer(currProject, ontologyClassReference); - oiv.setAllowViewEnlargement(false); - } - } - return oiv; - } - COM: <s> gets the ontology instance viewer </s> - diff --git a/funcom_test/43420272.txt b/funcom_test/43420272.txt deleted file mode 100644 index c673346a91e04498db0758e421211a915041d9f0..0000000000000000000000000000000000000000 --- a/funcom_test/43420272.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getJButtonOK() { - if (jButtonOK == null) { - jButtonOK = new JButton(); - jButtonOK.setPreferredSize(new Dimension(120, 26)); - jButtonOK.setFont(new Font("Dialog", Font.BOLD, 12)); - jButtonOK.setForeground(new Color(0, 153, 0)); - jButtonOK.setText("OK"); - jButtonOK.setText(Language.translate(jButtonOK.getText())); - jButtonOK.addActionListener(this); - } - return jButtonOK; - } - COM: <s> this method initialises j button ok </s> - diff --git a/funcom_test/43420281.txt b/funcom_test/43420281.txt deleted file mode 100644 index 88a0504833174be3ff426d66c708105958b18cb4..0000000000000000000000000000000000000000 --- a/funcom_test/43420281.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getJButtonCancel() { - if (jButtonCancel == null) { - jButtonCancel = new JButton(); - jButtonCancel.setPreferredSize(new Dimension(120, 26)); - jButtonCancel.setFont(new Font("Dialog", Font.BOLD, 12)); - jButtonCancel.setForeground(new Color(153, 0, 0)); - jButtonCancel.setText("Abbruch"); - jButtonCancel.setText(Language.translate(jButtonCancel.getText())); - jButtonCancel.addActionListener(this); - } - return jButtonCancel; - } - COM: <s> this method initialises j button cancel </s> - diff --git a/funcom_test/43420284.txt b/funcom_test/43420284.txt deleted file mode 100644 index 41493088c4b3fd099f5b0ceb6b78bf9378c897bb..0000000000000000000000000000000000000000 --- a/funcom_test/43420284.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void addChangeListener(JTabbedPane pane) { - - boolean listenerFound = false; - ChangeListener[] listener = pane.getChangeListeners(); - for (int i = 0; i < listener.length; i++) { - ChangeListener cl = listener[i]; - if (cl==this.getTabSelectionListener()) { - listenerFound = true; - } - } - - if (listenerFound==false) { - pane.addChangeListener(this.getTabSelectionListener()); - } - } - COM: <s> adds the local change listener named tab selection listener </s> - diff --git a/funcom_test/43420308.txt b/funcom_test/43420308.txt deleted file mode 100644 index 23ccc82dd4917cdf3705377e3e185d20f0a472e4..0000000000000000000000000000000000000000 --- a/funcom_test/43420308.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void remove(ProjectWindowTab projectWindowTab) { - - DefaultMutableTreeNode node = this.getTreeNode(projectWindowTab.getTitle()); - if (node!=null) { - DefaultMutableTreeNode pareNode = (DefaultMutableTreeNode) node.getParent(); - pareNode.remove(node); - } - - JComponent component = projectWindowTab.getComponent(); - Container container = component.getParent(); - if (container!=null) { - container.remove(component); - } - this.tabVector.remove(projectWindowTab); - - this.projectTreeModel.reload(); - this.projectTreeExpand2Level(3, true); - } - COM: <s> this removes a given project window tab from this project window </s> - diff --git a/funcom_test/43420487.txt b/funcom_test/43420487.txt deleted file mode 100644 index f2ca4d2737f440f5ca738d13c127c00d2839aaf9..0000000000000000000000000000000000000000 --- a/funcom_test/43420487.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public void stopSearch(Integer searchOf) { - - if (searchOf==null) { - csAgents.stopSearch(); - csOntologies.stopSearch(); - csBaseService.stopSearch(); - - } else { - - switch (searchOf) { - case RESTART_AGENT_SEARCH: - // --- Start search for Agent --------------------- - csAgents.stopSearch(); - break; - - case RESTART_ONTOLOGY_SEARCH: - // --- Start search for Ontology ------------------ - csOntologies.stopSearch(); - break; - - case RESTART_BASESERVICE_SEARCH: - // --- Start search for BaseService --------------- - csBaseService.stopSearch(); - break; - } - } - } - COM: <s> stops all search process or the specified one </s> - diff --git a/funcom_test/43420558.txt b/funcom_test/43420558.txt deleted file mode 100644 index dc4418d335f470f7b8c2ae4b22ab7608f47d4acd..0000000000000000000000000000000000000000 --- a/funcom_test/43420558.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void reNumberAgents2Start() { - - Integer counter = 1; - AgentClassElement4SimStart ac4s = null; - - for (int i=0; i<this.agents2Start.size(); i++) { - ac4s = (AgentClassElement4SimStart) this.agents2Start.getElementAt(i); - ac4s.setPostionNo(counter); - counter++; - //this.agents2Start.setElementAt(ac4s, i); - } - } - COM: <s> renumber the list of agents to start </s> - diff --git a/funcom_test/43420572.txt b/funcom_test/43420572.txt deleted file mode 100644 index b280b96c9284a3ae2e01914e70502a08c61a92e2..0000000000000000000000000000000000000000 --- a/funcom_test/43420572.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public EnvironmentType getEnvironmentTypeByKey(String key) { - - for (Iterator<EnvironmentType> it = this.iterator(); it.hasNext();) { - EnvironmentType envTyp = it.next(); - if (envTyp.getInternalKey().equals(key)) { - return envTyp; - } - } - return this.get(0); // --- the default value --- - } - COM: <s> this method returns the environment type instance searched by its key </s> - diff --git a/funcom_test/43420748.txt b/funcom_test/43420748.txt deleted file mode 100644 index bc0a0d118e39950ab998863d119ca22e2fb1fb0d..0000000000000000000000000000000000000000 --- a/funcom_test/43420748.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void removeLines(DocumentEvent e) { - // The root Element of the Document will tell us the total number - // of line in the Document. - - Document document = e.getDocument(); - Element root = document.getDefaultRootElement(); - System.out.println("=> " + root.getElementCount() + " <="); - - while (root.getElementCount() > maximumLines) { - if (isRemoveFromStart) { - removeFromStart(document, root); - } else { - removeFromEnd(document, root); - } - } - } - COM: <s> remove lines from the document when necessary </s> - diff --git a/funcom_test/43420752.txt b/funcom_test/43420752.txt deleted file mode 100644 index 9734a8760dfbb788f773280bce90ca96e492ce2a..0000000000000000000000000000000000000000 --- a/funcom_test/43420752.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void removeFromEnd(Document document, Element root) { - // We use start minus 1 to make sure we remove the newline - // character of the previous line - - Element line = root.getElement(root.getElementCount() - 1); - int start = line.getStartOffset(); - int end = line.getEndOffset(); - - try { - document.remove(start - 1, end - start); - - } catch(BadLocationException ble) { - System.out.println(ble); - } - } - COM: <s> remove lines from the end of the document </s> - diff --git a/funcom_test/43420847.txt b/funcom_test/43420847.txt deleted file mode 100644 index 9c89f9eab26c1b628c4d5c747fb25be46e799c6f..0000000000000000000000000000000000000000 --- a/funcom_test/43420847.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void addFolderToZip(String path, String srcFolder, ZipOutputStream zip) { - File folder = new File(srcFolder); - String listOfFiles[] = folder.list(); - try { - for (int i = 0; i < listOfFiles.length; i++) { - this.addToZip(path + File.separator + folder.getName(), srcFolder + File.separator + listOfFiles[i], zip); - } - } catch (Exception ex) { - ex.printStackTrace(); - } - } - COM: <s> adds a complete folder to the zip file </s> - diff --git a/funcom_test/43450096.txt b/funcom_test/43450096.txt deleted file mode 100644 index 56dd338c7dcd295fd252b677ddce8f0f5ca61d90..0000000000000000000000000000000000000000 --- a/funcom_test/43450096.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("contactdb".equals(portName)) { - setcontactdbEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/43450680.txt b/funcom_test/43450680.txt deleted file mode 100644 index 87260d046b33ff1ae8df99d72d51b4f1613b2f55..0000000000000000000000000000000000000000 --- a/funcom_test/43450680.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void startTimer(URI messageId, long timeoutms, String serviceRef) { - Timer timer = new Timer(); - Date executionDate = new Date(System.currentTimeMillis() + timeoutms); - Timeout task = new Timeout( - messageId, - timeoutms, - serviceRef, - this, - executionDate.getTime()); - timer.schedule(task,executionDate); - timers.put(messageId, timer); - // TODO persist the task using soapServer.getStorageFactory().getStorage(); - } - COM: <s> starts a timer </s> - diff --git a/funcom_test/43450768.txt b/funcom_test/43450768.txt deleted file mode 100644 index 499d67f085c1fde5c6a7b384e2c562ee27bda7c2..0000000000000000000000000000000000000000 --- a/funcom_test/43450768.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setProperty(String name, Object value) { - // OPERATION_STYLE always DOCUMENT for now - // ENCODING_STYLE_URI always "" (LITERAL) for now - if (!Call.OPERATION_STYLE_PROPERTY.equals(name) && !Call.ENCODING_STYLE_URI_PROPERTY.equals(name)) { - super.setProperty(name, value); - } - } - COM: <s> overriden to suppress changes of style document and encoding literal </s> - diff --git a/funcom_test/43450854.txt b/funcom_test/43450854.txt deleted file mode 100644 index cc20434b5c02e5196cc67541cc0c2ccda97164ed..0000000000000000000000000000000000000000 --- a/funcom_test/43450854.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object invoke() throws SOAPException { - prepareInvocation(); // sets newMessageIdNeeded to false - Object result = super.invoke(); - // if the call succeeds without exception, generate a new message id for the next call - // if an exception is thrown, the flags stays false so that the message id can be reused for a retry - newMessageIdNeeded = true; - return result; - } - COM: <s> overriden in order to call </s> - diff --git a/funcom_test/43450960.txt b/funcom_test/43450960.txt deleted file mode 100644 index dcc3cbbc414ea72ef549eaf82a023b748d420198..0000000000000000000000000000000000000000 --- a/funcom_test/43450960.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void startApp() { - initialize(); - try { - SOAPServer soapServer = MainTemperatureService.setup(); - soapServer.getServiceRegistry().registerPreProcessingService(this); - soapServer.getServiceRegistry().registerPostProcessingService(this); - MainTemperatureService.startHTTPServer(soapServer); - - }catch (Exception e) { - e.printStackTrace(); - textItem.setText(e.toString()); - } - } - COM: <s> start the midlet </s> - diff --git a/funcom_test/4353183.txt b/funcom_test/4353183.txt deleted file mode 100644 index a28aee96a5fa76bc7d1acd041c8d9b6e35a13d17..0000000000000000000000000000000000000000 --- a/funcom_test/4353183.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void storeDayDetails() { - Calendar calendar = Calendar.getInstance(); - calendar.setTime(getCurrentDate()); - ((HashMap) items[calendar.get(Calendar.DAY_OF_MONTH) - 1].getData()) - .put("shortDescription", getCurrentShortDescription()); - ((HashMap) items[calendar.get(Calendar.DAY_OF_MONTH) - 1].getData()) - .put("description", getCurrentDescription()); - } - COM: <s> storing changes action </s> - diff --git a/funcom_test/43550950.txt b/funcom_test/43550950.txt deleted file mode 100644 index 3ac16acf22da744317a9961b39c0a60c78f36deb..0000000000000000000000000000000000000000 --- a/funcom_test/43550950.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public RevenueSourceBO create() throws Exception{ - String id = GUID.generate(); - SvcRepairBO bo = new SvcRepairBO(id); - bo.setType("repair"); - Cache c = Cache.getInstance(); - c.put(bo.getRevSrcID(), bo); - return bo; - } - COM: <s> creates a new svc repair bo object with a newly generated guid </s> - diff --git a/funcom_test/43550953.txt b/funcom_test/43550953.txt deleted file mode 100644 index c5f3e40dbc1cf7a6aea6284536caf6c67f6fa8aa..0000000000000000000000000000000000000000 --- a/funcom_test/43550953.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public MembershipBO create() throws Exception{ - String id = GUID.generate(); - MembershipBO bo = new MembershipBO(id); - bo.setMembPwd("password"); //hardcoded the membership password for the first iteration - Cache c = Cache.getInstance(); - c.put(bo.getMembershipID(), bo); - - return bo; - } - COM: <s> creates a new membership bo object with a newly generated guid </s> - diff --git a/funcom_test/43551033.txt b/funcom_test/43551033.txt deleted file mode 100644 index ade3eeb54527a1936ab3ffef306763fa658ced74..0000000000000000000000000000000000000000 --- a/funcom_test/43551033.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public EmployeeBO getManager(){ - EmployeeBO emp = null; - try { - emp = EmployeeDAO.getInstance().read(this.getManagerID()); - } catch (DataException ex) { - ex.printStackTrace(); - } catch (ConnectionPoolException ex) { - ex.printStackTrace(); - } - return emp; - } - COM: <s> returns the manager for the current store </s> - diff --git a/funcom_test/43551157.txt b/funcom_test/43551157.txt deleted file mode 100644 index d4aaf0fa0c968e3c1665a4bd7253028dfea099c8..0000000000000000000000000000000000000000 --- a/funcom_test/43551157.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public BusinessObject create() throws Exception{ - System.out.println("CREATING PHOTOSET"); - String id = GUID.generate(); - BusinessObject bo = new PhotoSetBO(id); - Cache c = Cache.getInstance(); - c.put(bo.getId(), bo); - return bo; - } - COM: <s> creates a photo set </s> - diff --git a/funcom_test/43551258.txt b/funcom_test/43551258.txt deleted file mode 100644 index 8d2d201ba5b33bcaa1392266692d598f8632713b..0000000000000000000000000000000000000000 --- a/funcom_test/43551258.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void calcSubTotal(){ - this.transSubTotal = 0.0; - //if there is content in the list, calculate the subtotal - if(this.TxLineList != null){ - for(int i=0; i< this.TxLineList.size(); i++){ - this.transSubTotal += this.TxLineList.get(i).getLineAmount(); - - } - } - } - COM: <s> calculates the sub total or the total amount of the transaction including </s> - diff --git a/funcom_test/43551327.txt b/funcom_test/43551327.txt deleted file mode 100644 index 623e1214b26050780de6b5b8739cdd71293e772a..0000000000000000000000000000000000000000 --- a/funcom_test/43551327.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public RevenueSourceBO create() throws Exception{ - String id = GUID.generate(); - BackupBO bo = new BackupBO(id); - Cache c = Cache.getInstance(); - bo.setType("backup"); - c.put(bo.getRevSrcID(), bo); - - return bo; - } - COM: <s> creates a new backup bo object with a newly generated guid </s> - diff --git a/funcom_test/43551480.txt b/funcom_test/43551480.txt deleted file mode 100644 index 785f4d7334390d8da6903ac3955db9c281d1dc8c..0000000000000000000000000000000000000000 --- a/funcom_test/43551480.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public RevenueSourceBO create() throws Exception{ - String id = GUID.generate(); - ConversionBO bo = new ConversionBO(id); - bo.setType("sale"); - Cache c = Cache.getInstance(); - c.put(bo.getRevSrcID(), bo); - return bo; - } - COM: <s> create an instance of conversion bo </s> - diff --git a/funcom_test/43551573.txt b/funcom_test/43551573.txt deleted file mode 100644 index d35893882a2d33bda688d2cc96ba3af96ab17e16..0000000000000000000000000000000000000000 --- a/funcom_test/43551573.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int getMonthDifference(String dt1, String dt2){ - int diff = 0; - int dt1Month = Integer.parseInt(dt1.substring(5,7)); - int dt2Month = Integer.parseInt(dt2.substring(5,7)); - if(dt1Month < dt2Month){ - diff = ((12 - dt2Month) + dt1Month) * 30; - }else{ - diff = (dt1Month - dt2Month) * 30; - } - return diff; - } - COM: <s> calculates the difference in days between two dates by the month </s> - diff --git a/funcom_test/43551575.txt b/funcom_test/43551575.txt deleted file mode 100644 index 88b70503d4c72cf0ee0668ad5d8acf68b445509c..0000000000000000000000000000000000000000 --- a/funcom_test/43551575.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private int getDayDifference(String dt1, String dt2){ - int diff = 0; - int dt1Day = Integer.parseInt(dt1.substring(8,10)); - -// System.out.println("months: " + months); -// System.out.println("add years: " + addYears); - int dt2Day = Integer.parseInt(dt2.substring(8,10)); - - if(dt1Day < dt2Day){ - diff = (30 - dt2Day) + dt1Day; - }else{ - diff = dt1Day - dt2Day; - } - return diff; - } - COM: <s> calculates the difference in days between two days </s> - diff --git a/funcom_test/43551585.txt b/funcom_test/43551585.txt deleted file mode 100644 index 6612732d28c17e48c2b60d9af1c65c3d06713e8b..0000000000000000000000000000000000000000 --- a/funcom_test/43551585.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void makePhotoSet(String description, int numberinset) throws Exception { - PhotoSetDAO psDAO = (PhotoSetDAO)PhotoSetDAO.getInstance(); - PhotoSetBO psBO = (PhotoSetBO)psDAO.create(); - psBO.setNuminSet(numberinset); - psBO.setDescription(description); - psDAO.save(psBO); - - } - COM: <s> makes a photo set </s> - diff --git a/funcom_test/43551590.txt b/funcom_test/43551590.txt deleted file mode 100644 index 4e11dc011e51793ed579945caa333c281b005653..0000000000000000000000000000000000000000 --- a/funcom_test/43551590.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void editPhotoSet(String guid, String description, int numberinset) throws Exception { - PhotoSetDAO psDAO = (PhotoSetDAO)PhotoSetDAO.getInstance(); - PhotoSetBO psBO = (PhotoSetBO)psDAO.read(guid); - psBO.setNuminSet(numberinset); - psBO.setDescription(description); - psDAO.save(psBO); - - } - COM: <s> edits a photo set </s> - diff --git a/funcom_test/43551607.txt b/funcom_test/43551607.txt deleted file mode 100644 index fa121fb2eeb9f3c3fabd84a2a931947c0127d8f1..0000000000000000000000000000000000000000 --- a/funcom_test/43551607.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String printDate(){ - String date; - date = Integer.toString(month); - date = date.concat("/"); - date = date.concat(Integer.toString(day)); - date = date.concat("/"); - date = date.concat(Integer.toString(year)); - return date; - } - COM: <s> prints out the date in the format mm dd yyyy </s> - diff --git a/funcom_test/43551617.txt b/funcom_test/43551617.txt deleted file mode 100644 index f5fd606d4fe1f9549487c10ae4764280f0dd92cf..0000000000000000000000000000000000000000 --- a/funcom_test/43551617.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean isLessThan(MyDate md){ - boolean tf = true; - if(year > md.year){ - tf = false; - }else if(year == md.year){ - if(month > md.month){ - tf = false; - }else if(month == md.month){ - if(day >= md.day){ - tf = false; - } - } - } - return tf; - } - COM: <s> compares two dates to determine if the indicated date is less than </s> - diff --git a/funcom_test/43555691.txt b/funcom_test/43555691.txt deleted file mode 100644 index 2fb7f4352dc0cb1f614cafa44eff80f05557f7d2..0000000000000000000000000000000000000000 --- a/funcom_test/43555691.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean check(String input) { - - Iterator<TurkicWordParse> it = parser.parseIterator(input); - while (it.hasNext()) { - // check if input is formatted correctly. - if (wordFormatter.format(input, it.next()).equals(input)) - return true; - } - return false; - } - COM: <s> returns true if input is spelled correctly </s> - diff --git a/funcom_test/43556123.txt b/funcom_test/43556123.txt deleted file mode 100644 index 428ace3c904f855a08f2f7ca3e2550066bda9ba6..0000000000000000000000000000000000000000 --- a/funcom_test/43556123.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public TurkicLetter lastVowel() { - for (int i = size - 1; i >= 0; i--) { - if (letters[i].isVowel()) - return letters[i]; - } - throw new IllegalStateException("There is no wovel in the sequence:" + Arrays.toString(letters)); - } - COM: <s> returns the last vowel </s> - diff --git a/funcom_test/43556299.txt b/funcom_test/43556299.txt deleted file mode 100644 index d26a446866195ed8940c8f45a912d0355039e341..0000000000000000000000000000000000000000 --- a/funcom_test/43556299.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public SuffixFormSet copy(SuffixData allSuccessors) { - SuffixFormSet copy = new SuffixFormSet( - id, - suffix, - generation, - terminationType - ); - - for (SuffixFormSet successor : allSuccessors) { - if (directSuccessors.contains(successor)) - copy.directSuccessors.add(successor); - else - copy.successors.add(successor); - } - return copy; - } - COM: <s> generates a copy of this suffix set </s> - diff --git a/funcom_test/43564612.txt b/funcom_test/43564612.txt deleted file mode 100644 index b269466af3da5dcd670bb2ea02eb38b0f82f4226..0000000000000000000000000000000000000000 --- a/funcom_test/43564612.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void push(Submission submission) { - if (submission == null) { - throw new NullPointerException("submission should not be null"); - } - JudgingQueue.JudgingQueueNode node = new JudgingQueueNode(); - JudgingQueue.JudgingQueueNode last = this.tail.getAndSet(node); - last.next = node; - last.submission = submission; - } - COM: <s> adds a new submission </s> - diff --git a/funcom_test/43565345.txt b/funcom_test/43565345.txt deleted file mode 100644 index 3d00cdc9dbdba236fc1dff706eb80eae372c283a..0000000000000000000000000000000000000000 --- a/funcom_test/43565345.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public UserSecurity getUserSecurity() throws PersistenceException { - Object obj = this.request.getSession().getAttribute(ContextAdapter.SECURITY_SESSION_KEY); - if (obj instanceof UserSecurity) { - return (UserSecurity) obj; - } else { - this.setUserSecurity(this.getDefaultUserSecurity()); - return this.getDefaultUserSecurity(); - } - } - COM: <s> get the user security instance cached in session </s> - diff --git a/funcom_test/43565656.txt b/funcom_test/43565656.txt deleted file mode 100644 index e41a2bf1bba1147d4747f3123f7db221a226c8a1..0000000000000000000000000000000000000000 --- a/funcom_test/43565656.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetAllCountries() throws Exception { - List countries = persistence.getAllCountries(); - assertTrue("wrong size", countries.size() > 0); - for (Iterator it = countries.iterator(); it.hasNext();) { - Country country = (Country) it.next(); - assertNotNull("wrong name", country.getName()); - } - } - COM: <s> tests get all countries method </s> - diff --git a/funcom_test/43565769.txt b/funcom_test/43565769.txt deleted file mode 100644 index 0bad110a5008319bf3421d1e83eb53994c2da335..0000000000000000000000000000000000000000 --- a/funcom_test/43565769.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Problem newProblem(long id, long contestId, Limit limit) { - Problem problem = new Problem(); - problem.setId(id); - problem.setContestId(contestId); - problem.setCode("code" + id); - problem.setAuthor("author" + id); - problem.setChecker(id % 2 == 1); - problem.setContest("contest" + id); - problem.setLimit(limit); - problem.setRevision((int) id * 10); - problem.setSource("source" + id); - problem.setTitle("title" + id); - return problem; - } - COM: <s> creates a new problem </s> - diff --git a/funcom_test/43565777.txt b/funcom_test/43565777.txt deleted file mode 100644 index 4d685ca84dd11742ce356c3cdb2a1cc88eb00ad0..0000000000000000000000000000000000000000 --- a/funcom_test/43565777.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Contest newContest(long id, long forumId, Limit limit, List languages) { - Contest contest = new Contest(); - contest.setId(id); - contest.setDescription("desc" + id); - contest.setLimit(limit); - contest.setLanguages(languages); - contest.setTitle("title" + id); - contest.setForumId(forumId); - contest.setStartTime(new Date(id * 1000)); - contest.setEndTime(new Date(id * 2000)); - return contest; - } - COM: <s> creates a new contest </s> - diff --git a/funcom_test/43565819.txt b/funcom_test/43565819.txt deleted file mode 100644 index 7e33f5e41fa08cf25e1e77d06763d4abc7e62bb3..0000000000000000000000000000000000000000 --- a/funcom_test/43565819.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void checkLanguages(List languages1, List languages2) { - if (languages1 == null && languages2 == null) { - return; - } - if (languages1 == null) { - assertEquals("wrong size", 0, languages2.size()); - } else { - assertEquals("wrong size", languages1.size(), languages1.size()); - Iterator it1 = languages1.iterator(); - Iterator it2 = languages2.iterator(); - while (it1.hasNext()) { - checkLanguage((Language) it1.next(), (Language) it2.next()); - } - } - } - COM: <s> checks whether the two language instances are same </s> - diff --git a/funcom_test/43565931.txt b/funcom_test/43565931.txt deleted file mode 100644 index 30470d188525cdecc6b1bca6e2c1949bc11a92af..0000000000000000000000000000000000000000 --- a/funcom_test/43565931.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void checkForum(Forum forum1, Forum forum2) { - - assertEquals("wrong id", forum1.getId(), forum2.getId()); - assertEquals("wrong Name", forum1.getName(), forum2.getName()); - assertEquals("wrong Description", forum1.getDescription(), forum2.getDescription()); - - } - COM: <s> checks whether the two forum instances are same </s> - diff --git a/funcom_test/43565935.txt b/funcom_test/43565935.txt deleted file mode 100644 index f0e07778cd5e0eb205230050c8b572770c17fd75..0000000000000000000000000000000000000000 --- a/funcom_test/43565935.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void checkThread(Thread thread1, Thread thread2) { - - assertEquals("wrong id", thread1.getId(), thread2.getId()); - assertEquals("wrong forum id", thread1.getForumId(), thread2.getForumId()); - assertEquals("wrong usre id", thread1.getUserProfileId(), thread2.getUserProfileId()); - assertEquals("wrong usre title", thread1.getTitle(), thread2.getTitle()); - } - COM: <s> checks whether the two thread instances are same </s> - diff --git a/funcom_test/43565940.txt b/funcom_test/43565940.txt deleted file mode 100644 index 4fb267b5a4b680ff49983d0e98aa9e1de49c68eb..0000000000000000000000000000000000000000 --- a/funcom_test/43565940.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void checkPost(Post post1, Post post2) { - - assertEquals("wrong id", post1.getId(), post2.getId()); - assertEquals("wrong thread id", post1.getThreadId(), post2.getThreadId()); - assertEquals("wrong content", post1.getContent(), post2.getContent()); - } - COM: <s> checks whether the two post instances are same </s> - diff --git a/funcom_test/43565953.txt b/funcom_test/43565953.txt deleted file mode 100644 index 2f995e44a43e60c6a4f6f2d2b0e2219a87428ed1..0000000000000000000000000000000000000000 --- a/funcom_test/43565953.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void checkPostList(List posts1, int offset1, List posts2, int offset2, int count) { - - for (int i = 0; i < count; ++i) { - Post post1 = (Post) posts1.get(offset1 + i); - Post post2 = (Post) posts2.get(offset2 + i); - checkPost(post1, post2); - } - } - COM: <s> checks whether the two lists are same </s> - diff --git a/funcom_test/43654238.txt b/funcom_test/43654238.txt deleted file mode 100644 index 67bce0ffb650087f7bded930b0990710d2b840e9..0000000000000000000000000000000000000000 --- a/funcom_test/43654238.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public RuleFileParser (String rflFilePath) { - m_rflFilePath = rflFilePath; - try { - DocumentBuilderFactory documentBuilderFactory = - DocumentBuilderFactory.newInstance(); - DocumentBuilder documentBuilder = - documentBuilderFactory.newDocumentBuilder(); - File xmlFile = new File(m_rflFilePath); - m_document = documentBuilder.parse(xmlFile); - - } catch (ParserConfigurationException e) { - e.printStackTrace(); - - } catch (SAXException e) { - e.printStackTrace(); - - } catch (IOException e) { - e.printStackTrace(); - } - } - COM: <s> constructs using a rfl file path </s> - diff --git a/funcom_test/43654263.txt b/funcom_test/43654263.txt deleted file mode 100644 index 955fd670a313a7b3f153f610ddd5d1b2961dc256..0000000000000000000000000000000000000000 --- a/funcom_test/43654263.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getNamespaceURI(String prefix) { - if (prefix == null) { - throw new IllegalArgumentException(getClass().getPackage().getName() - + "." + getClass().getName() + ".getNamespaceURI(null)"); - } - - final String uri = namespaces.get(prefix); - - if (uri == null) { - return XMLConstants.NULL_NS_URI; - } - - return uri; - } - COM: <s> returnes namespace uri that corresponds to the specified prefix </s> - diff --git a/funcom_test/43654326.txt b/funcom_test/43654326.txt deleted file mode 100644 index 9a61290f923f41d7c9dcaea65f5148ad340f960f..0000000000000000000000000000000000000000 --- a/funcom_test/43654326.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testEvaluateXPath_1() throws Exception { - Document validXML = loadDocument("valid.xml"); - - NodeList elements = xmlUtilities.evaluateXPath( - "ns:properties/ns:property", - validXML, - nsCtx); - - assertEquals( - 2, - elements.getLength()); - } - COM: <s> demonstrates xpath evaluation with namespaces </s> - diff --git a/funcom_test/43654328.txt b/funcom_test/43654328.txt deleted file mode 100644 index 66310cf44c105e9e5573a80006cb237a6d6410de..0000000000000000000000000000000000000000 --- a/funcom_test/43654328.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testTransformation() throws Exception { - Source validXML = XMLTools.documentToDOMSource(loadDocument("valid.xml")); - Source style = XMLTools.documentToDOMSource(loadDocument("style.xsl")); - - String result = xmlUtilities.transformToString( - style, - validXML); - - System.err.println("Transformed properties: " + result); - - assertNotNull(result); - } - COM: <s> demonstrates xsl transformation </s> - diff --git a/funcom_test/43654890.txt b/funcom_test/43654890.txt deleted file mode 100644 index afb542e5af0a163728e93dba87a38e89b1cfbd77..0000000000000000000000000000000000000000 --- a/funcom_test/43654890.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String randomWord(int maxLength){ - String out=""; - int length=new Double(Math.sqrt(Math.random()*Math.pow((maxLength+1),2)-1)).intValue(); - for(int i=0;i<length;i++){ - out+=o.getAlphabet().get(new Double(Math.random()*o.getAlphabet().size()).intValue()); - } - return out; - } - COM: <s> returns a random word over the alphabet </s> - diff --git a/funcom_test/43820431.txt b/funcom_test/43820431.txt deleted file mode 100644 index 37c774fbdd6fd139ebc9c2b9109f0dfd26b1680d..0000000000000000000000000000000000000000 --- a/funcom_test/43820431.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void update_userInfo_login(Long userid,String ip) throws IdEmptyException { - UserInfo ui = findUserInfoById(userid); - if(ui != null) { - ui.setLast_login_ip_address(ip); - ui.setLast_login_date(new Date()); - userInfoDao.update(ui); - } - } - COM: <s> user info id </s> - diff --git a/funcom_test/43845892.txt b/funcom_test/43845892.txt deleted file mode 100644 index 7cb66b011993b842dff3a6f13acc6cd438d392d1..0000000000000000000000000000000000000000 --- a/funcom_test/43845892.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public ByteCodeHelper strBuilderToString(int pos) { - mv.visitVarInsn(Opcodes.ALOAD, pos); - mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "toString", "()Ljava/lang/String;"); - mv.visitInsn(Opcodes.POP); - return this; - } - COM: <s> string builder to string </s> - diff --git a/funcom_test/43845994.txt b/funcom_test/43845994.txt deleted file mode 100644 index 9052cb1f8532d10c6eb40a08de332fc79eda7d99..0000000000000000000000000000000000000000 --- a/funcom_test/43845994.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: // public void testLastInsertId() { -// System.out.println("lastInsertId"); -// ZDOMySQL instance = null; -// String expResult = ""; -// String result = instance.lastInsertId(); -// assertEquals(expResult, result); -// // TODO review the generated test code and remove the default call to fail. -// fail("The test case is a prototype."); -// } - COM: <s> test of last insert id method of class zdomy sql </s> - diff --git a/funcom_test/4388912.txt b/funcom_test/4388912.txt deleted file mode 100644 index e5b0f25363347a21cf22b6d5a74fbea19063e2c3..0000000000000000000000000000000000000000 --- a/funcom_test/4388912.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public QueryResponse getJob(String jobId) throws PsiscoreException, InvalidArgumentException, JobStillRunningException { - try{ - return getService().getJob(jobId); - }catch (javax.xml.ws.soap.SOAPFaultException e){ - throw new PsiscoreException("Cannot connect to server.", new PsiscoreFault(), e); - } - } - COM: <s> get a certain scoring job from the server </s> - diff --git a/funcom_test/4388913.txt b/funcom_test/4388913.txt deleted file mode 100644 index b9e2589825944543cdffe6f58325689e7be77c31..0000000000000000000000000000000000000000 --- a/funcom_test/4388913.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getJobStatus(String jobId) throws PsiscoreException, InvalidArgumentException { - try{ - return getService().getJobStatus(jobId); - }catch (javax.xml.ws.soap.SOAPFaultException e){ - throw new PsiscoreException("Cannot connect to server.", new PsiscoreFault(), e); - } - } - COM: <s> get the status of a scoring job </s> - diff --git a/funcom_test/4388921.txt b/funcom_test/4388921.txt deleted file mode 100644 index 75b330052fb74dba04de50ad487374e0c9b1df1f..0000000000000000000000000000000000000000 --- a/funcom_test/4388921.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private boolean validateInput(java.util.List<org.hupo.psi.mi.psiscore.AlgorithmDescriptor> algorithmDescriptor, org.hupo.psi.mi.psiscore.ResultSet inputData) throws PsiscoreClientException, PsiscoreException, InvalidArgumentException{ - EntrySet rs = PsiTools.getInstance().getEntrySetFromInput(inputData); - rs = null; - return true; - } - COM: <s> check if the input is valid </s> - diff --git a/funcom_test/4388944.txt b/funcom_test/4388944.txt deleted file mode 100644 index 33ab80b5dfc29ed80950a456f721a3732828608e..0000000000000000000000000000000000000000 --- a/funcom_test/4388944.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getVersion(String clientId) throws PsiscoreException, InvalidArgumentException{ - if (!psiscoreServerClients.containsKey(clientId)){ - throw new InvalidArgumentException("There is no client with this ID", new PsiscoreFault()); - } - String version = psiscoreServerClients.get(clientId).getVersion(); - //System.out.println("Version: " + version); - return version; - } - COM: <s> get the version form all scoring servers </s> - diff --git a/funcom_test/4388952.txt b/funcom_test/4388952.txt deleted file mode 100644 index 96017b98f97cec133bd7cfb98ef49f575d5aea8b..0000000000000000000000000000000000000000 --- a/funcom_test/4388952.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public QueryResponse getJob(String serverId, String jobId) throws PsiscoreException, InvalidArgumentException, JobStillRunningException{ - - QueryResponse queryResponse = null; - - if (!psiscoreServerClients.containsKey(serverId)){ - throw new InvalidArgumentException("There is no job with this id", new PsiscoreFault()); - } - SimplePsiscoreClient client = psiscoreServerClients.get(serverId); - queryResponse = client.getJob(jobId); - - return queryResponse; - } - COM: <s> get a single job from a single server </s> - diff --git a/funcom_test/4388961.txt b/funcom_test/4388961.txt deleted file mode 100644 index 253e2fd8b9d8b92d46bdf1e724aa19e03f672b7e..0000000000000000000000000000000000000000 --- a/funcom_test/4388961.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String getUniqueId(){ - Random random = new Random(); - String token = Long.toString(Math.abs(random.nextLong()), 36); - if (uniqueIds == null){ - uniqueIds= new HashSet<String>(); - } - if (uniqueIds.contains(token)){ - return getUniqueId(); - }else{ - uniqueIds.add(token); - return token; - } - } - COM: <s> generate and return an id unique for this server </s> - diff --git a/funcom_test/4388989.txt b/funcom_test/4388989.txt deleted file mode 100644 index 4c73edf69c503855929306cc9714ca6a12d67c9a..0000000000000000000000000000000000000000 --- a/funcom_test/4388989.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public EntrySet getEntrySet() throws PsiscoreException { - if (inputData.xmlUsed()){ - return inputData.getXmlEntySet(); - }else if (inputData.mitabUsed() ){ - convertedMitab = true; - this.inputData.setXmlEntySet(PsiTools.getInstance().getEntrySetFromBinaryInteractions(inputData.getMitabInteractions())); - return inputData.getXmlEntySet(); - }else{ - throw new PsiscoreException("No valid input detected.", new PsiscoreFault()); - } - } - COM: <s> return the entry set representation of the input data </s> - diff --git a/funcom_test/4389025.txt b/funcom_test/4389025.txt deleted file mode 100644 index a84e32917d0d34c7da643ac113267c47f9b9308b..0000000000000000000000000000000000000000 --- a/funcom_test/4389025.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initThreadPool(){ - if (this.threadPool != null){ - this.threadPool.shutdownNow(); - } - this.threadPool = Executors.newFixedThreadPool(threadPoolSize); - //this.threadPool = Executors.newSingleThreadExecutor(); - this.threadFutures = new HashMap<String, Set<Future>>(); - this.uniqueIds = new HashSet<String>(); - this.finishedJobs = new HashSet<String>(); - this.runningJobs = new HashSet<String>(); - } - COM: <s> start the thread pool that will manage scoring server access </s> - diff --git a/funcom_test/4389096.txt b/funcom_test/4389096.txt deleted file mode 100644 index ac0af6ff8a310f5e5a7c7c339cbf2f9e43f761cc..0000000000000000000000000000000000000000 --- a/funcom_test/4389096.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean sameConfidenceXmlXml(Confidence xmlConfidenceA, Confidence xmlConfidenceB){ - if (xmlConfidenceA.getValue().equals(xmlConfidenceB.getValue()) - && xmlConfidenceA.getUnit().equals(xmlConfidenceB.getUnit())){ - return true; - }else{ - return false; - } - } - COM: <s> compare two confidences to see if they refer to the same entity </s> - diff --git a/funcom_test/43942202.txt b/funcom_test/43942202.txt deleted file mode 100644 index 03a40baa21dd1d150dfeb6b8d3c94be44113254e..0000000000000000000000000000000000000000 --- a/funcom_test/43942202.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void close(ZipItemNode node) { - if (((DefaultMutableTreeNode) node.getParent()).isRoot()) { - // Cancel all running tasks. - for (SwingWorker<?, ?> task : taskMap.get(node)) { - task.cancel(true); - } - taskMap.remove(node); - getModel().removeNodeFromParent(node); - } - } - COM: <s> removes the specified </s> - diff --git a/funcom_test/43942203.txt b/funcom_test/43942203.txt deleted file mode 100644 index 64c1c1f27a649b2ead300de95b0ac4a983c5b361..0000000000000000000000000000000000000000 --- a/funcom_test/43942203.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void closeAll() { - for (Entry<ZipItemNode, CopyOnWriteArrayList<SwingWorker<?, ?>>> entry - : taskMap.entrySet()) { - for (SwingWorker<?, ?> task : entry.getValue()) { - task.cancel(true); - } - } - taskMap.clear(); - setModel(new DefaultTreeModel(new DefaultMutableTreeNode())); - } - COM: <s> removes all children of the hidden node </s> - diff --git a/funcom_test/43942586.txt b/funcom_test/43942586.txt deleted file mode 100644 index 6d8af795b484dd8afd8bf621205cbc381939c410..0000000000000000000000000000000000000000 --- a/funcom_test/43942586.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int itemCount() throws IOException { - if (isZipFile()) { - try (ZipFile zip = new ZipFile(relativePath, charset)) { - return zip.size(); - } - } else { - try (ZipInputStream zin = new ZipInputStream(openStream(), charset)) { - int count = 0; - while (zin.getNextEntry() != null) { - count++; - } - return count; - } - } - } - COM: <s> returns the number of items stored in the zip system </s> - diff --git a/funcom_test/44002128.txt b/funcom_test/44002128.txt deleted file mode 100644 index 9b373c204c6c90d4c1b8bb5b5f071b2e7e36a888..0000000000000000000000000000000000000000 --- a/funcom_test/44002128.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected UserSession getUserSession(HttpServletRequest request) { - HttpSession session = (HttpSession) request.getSession(); - if (session == null) { - throw new RuntimeException("Couldn't get a reference to the Session"); - } - UserSession userSession = (UserSession) session.getAttribute(WebGlobals.USER_SESSION_KEY); - if (userSession == null) { - throw new RuntimeException("Couldn't retrieve UserSession attribute from Session"); - } - return userSession; - } - COM: <s> return the user session from the session </s> - diff --git a/funcom_test/44002180.txt b/funcom_test/44002180.txt deleted file mode 100644 index b4cf812df5a27b1b577d68a07960e21ce765851b..0000000000000000000000000000000000000000 --- a/funcom_test/44002180.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public XmlBuilder openTag(final String name) { - checkBody(); - tagStack.push(name); - ident++; - if (body.length() > 0) { - beautifyNewLine(); - } - body.append('<').append(name); - tagIsPendingTermination = true; - beautified = false; - return this; - } - COM: <s> opens a new xml tag </s> - diff --git a/funcom_test/44002185.txt b/funcom_test/44002185.txt deleted file mode 100644 index 89ec5977f741f62048fa0cc190ddb1d800ccf849..0000000000000000000000000000000000000000 --- a/funcom_test/44002185.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public XmlBuilder withAttribute(final String name, final Object value) { - if (!tagIsPendingTermination) { - throw new XmlZenException("Can't add attribute now, " + - "call openTag() first!"); - } - body.append(' ').append(name).append("=\"") - .append(value).append('"'); - return this; - } - COM: <s> adds an attribute to an open tag </s> - diff --git a/funcom_test/44002197.txt b/funcom_test/44002197.txt deleted file mode 100644 index 1daf046221726e3bcb9ff7377f1a3fd8601292a2..0000000000000000000000000000000000000000 --- a/funcom_test/44002197.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public XmlBuilder withCDATA(final Object value) { - if (!tagIsPendingTermination) { - throw new XmlZenException("Call openTag before setting CDATA!"); - } - checkBody(); - body.append("<![CDATA["); - body.append(value); - body.append("]]>"); - return this; - } - COM: <s> sets tag cdata value </s> - diff --git a/funcom_test/44002211.txt b/funcom_test/44002211.txt deleted file mode 100644 index 6b36c53618199ce8646388a92a047adc3423a6fd..0000000000000000000000000000000000000000 --- a/funcom_test/44002211.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void beautifyNewLine() { - if (!beautiful) { - return; - } - if (ident > 0) { - if (beautified) { - body.append(TAB); - } else { - body.append('\n'); - for (int i = 0; i < ident - 1; i++) { - body.append(TAB); - } - } - } - } - COM: <s> creates beautiful new line if its needed </s> - diff --git a/funcom_test/44118675.txt b/funcom_test/44118675.txt deleted file mode 100644 index aa2c909ab65384a9791d9b2260a1130d5a63f6b4..0000000000000000000000000000000000000000 --- a/funcom_test/44118675.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Point getSnappedPoint(Point point) { - if (!isSnapOn()) // ten sam punkt jak nie zmienia - return new Point(point); - - Point result = new Point( - (((point.x + offset) / snapIncrement) * snapIncrement), - (((point.y + offset) / snapIncrement) * snapIncrement)); - - return result; - } - COM: <s> returns a new point with coordinates of given point snapped to grid </s> - diff --git a/funcom_test/44118809.txt b/funcom_test/44118809.txt deleted file mode 100644 index beacbdbb17eeab37bdcbdba4c6da4797825ba835..0000000000000000000000000000000000000000 --- a/funcom_test/44118809.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void remove() { - // FIXME (magda) wlaciwie to powinna byc tez metoda mapy/jakiegos - // nadrzednego obiektu tego przejscia, ktora usunie je z mapy. choc - // jakbysmy trzymali parenta, to nie byloby problemu, bo w tej metodzie - // obiekt by sie odczepial od kolekcji parenta i gc() bo go usunelo - } - COM: <s> removes a whole passage from the map </s> - diff --git a/funcom_test/44118880.txt b/funcom_test/44118880.txt deleted file mode 100644 index 64eb7b0de5689de45e637913e148f04a5a108a6f..0000000000000000000000000000000000000000 --- a/funcom_test/44118880.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void paint(Graphics g, Object obj) { - Graphics2D g2d = (Graphics2D)g; - - if (obj instanceof PointVertex) { - paintPointVertex(g2d, (PointVertex) obj); - } - - if (obj instanceof Edge) { - paintEdge(g2d, (Edge) obj); - } - - if (obj instanceof SimplifiedVertex) { - paintSimplifiedVertex(g2d, (SimplifiedVertex) obj); - } - - if (obj instanceof Link) { - paintLink(g2d, (Link) obj); - - } - - if (obj instanceof Route) { - paintRoute(g2d, (Route) obj); - - } - } - COM: <s> paints one object on canvas </s> - diff --git a/funcom_test/44119108.txt b/funcom_test/44119108.txt deleted file mode 100644 index 8a51ce55927d11c5f4562f91cdc6a42e949dc434..0000000000000000000000000000000000000000 --- a/funcom_test/44119108.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setMainObject(SpaceFiller mainObject) { - Rectangle oldMapRect = getShape().getPolygon().getBounds(); - Rectangle mainObjRect = mainObject.getShape().getPolygon().getBounds(); - // the smallest rectangle containing both bounding boxes - Rectangle union = oldMapRect.union(mainObjRect); - setShape(new Shape(union)); - this.mainObject = mainObject; - - } - COM: <s> setter main object </s> - diff --git a/funcom_test/44122375.txt b/funcom_test/44122375.txt deleted file mode 100644 index eaf633156d71b1e5e8d20e1a0abb833d2c46faad..0000000000000000000000000000000000000000 --- a/funcom_test/44122375.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Map getEditorMap() { - if (editorMap != null) return editorMap; - editorMap = new LinkedHashMap(); - - - editorMap.put("id", getIdEditor()); - editorMap.put("name", getNameEditor()); - editorMap.put("value", getValueEditor()); - editorMap.put("boat", getBoatEditor()); - - return editorMap; - } - COM: <s> returns a linked map of editor widgets keyed by property name </s> - diff --git a/funcom_test/44123440.txt b/funcom_test/44123440.txt deleted file mode 100644 index 1ba2a4d5e2c621ed8b7ee87011ee702ad50eaa1a..0000000000000000000000000000000000000000 --- a/funcom_test/44123440.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setRegatta(Regatta regatta) { - - - if (regatta != null && regatta.getId() != null) { - Framework.onlyInstance().getPreferences().setRegattaId(regatta.getId()); - Framework.onlyInstance().savePreferences(); - } - setRegattaValue( regatta); - } - COM: <s> setter for property regatta </s> - diff --git a/funcom_test/44124116.txt b/funcom_test/44124116.txt deleted file mode 100644 index 8ba65a5899a056fe9d036754c6b8f815330023bb..0000000000000000000000000000000000000000 --- a/funcom_test/44124116.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setAllItems(ListModel _allItems) { - if (visItems.size() > 0) { - this.fireIntervalRemoved(this, 0, visItems.size()-1); - } - this.allItems = _allItems; - visItems = new ArrayList(); - visItems.add("bogus item"); // so first equals() comparison against an empty list is false. - this.currText = null; - } - COM: <s> setter for property all items </s> - diff --git a/funcom_test/44124170.txt b/funcom_test/44124170.txt deleted file mode 100644 index e2e9df58a2f8aad696192a9c8651fba3b2649d92..0000000000000000000000000000000000000000 --- a/funcom_test/44124170.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JLayeredPane getLayeredPane() { - if (layeredPane != null) return layeredPane; - Container c = this.getParent(); - while (c != null) { - if (c instanceof RootPaneContainer) { - layeredPane = ((RootPaneContainer)c).getLayeredPane(); - return layeredPane; - } - c = c.getParent(); - } - return null; - } - COM: <s> return a reference to the layered pane in whatever </s> - diff --git a/funcom_test/4417878.txt b/funcom_test/4417878.txt deleted file mode 100644 index 0507d0c2d6b59c884591ab17ecf6e7a7d4f63a82..0000000000000000000000000000000000000000 --- a/funcom_test/4417878.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void paint(Graphics g){ -// FontMetrics fm = g.getFontMetrics(f); -// g.setFont(f); -// int h = fm.getAscent()/2; -// -// for(int i = 0; i < pts.npoints; i++) { -// String s = Integer.toString(i); -// int w = fm.stringWidth(s)/2; -// g.drawString(Integer.toString(i),pts.xpoints[i]-w,pts.ypoints[i]+h); -// } - } - COM: <s> paint this curve into g </s> - diff --git a/funcom_test/4419597.txt b/funcom_test/4419597.txt deleted file mode 100644 index 69fc1dcdab5a211dc79e4174f7d6235dc9e5d3df..0000000000000000000000000000000000000000 --- a/funcom_test/4419597.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void deleteMessage(Map<String, Object> map, boolean sent) { - - Information info = (Information) map.get("msg"); - String peer = (String) map.get("peer"); - String remotePeer = (String) map.get("remotePeer"); - - ContextPoint cp = getPrivateMessagesCP(peer, remotePeer, sent); - - if(cp != null){ - cp.removeInformation(info); - } - } - COM: <s> deletes a message from the shark kb </s> - diff --git a/funcom_test/4420235.txt b/funcom_test/4420235.txt deleted file mode 100644 index aceeb0ab77d609cd745447ea91ab7d595b8e1b99..0000000000000000000000000000000000000000 --- a/funcom_test/4420235.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String getAnchorSection(HttpServletRequest request) { - StringBuilder sb = new StringBuilder(); - sb.append("<section>"); - sb.append("<anchors>"); - sb.append(this.printAnchorPoints(request)); - sb.append("</anchors>"); - sb.append("</section>"); - return sb.toString(); - } - COM: <s> print the complete anchor section for a page </s> - diff --git a/funcom_test/4420270.txt b/funcom_test/4420270.txt deleted file mode 100644 index 3cdf2fdefafbdd97cc01f6becd59c32b0564c9c1..0000000000000000000000000000000000000000 --- a/funcom_test/4420270.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String printAllTagFromIteratorToTable(Iterator it) { - StringBuilder sb = new StringBuilder(); - - while(it.hasNext()) { - HierarchicalSemanticTag tag = (HierarchicalSemanticTag) it.next(); - sb.append("<td>"); - sb.append(tag.getName()); - sb.append("</td>"); - } - return sb.toString(); - } - COM: <s> print tds with the topics names from the iterator passed </s> - diff --git a/funcom_test/4420401.txt b/funcom_test/4420401.txt deleted file mode 100644 index b4a47a3751b05e8ff0ab8ff75cb205e56249b196..0000000000000000000000000000000000000000 --- a/funcom_test/4420401.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected StreamStub createTCPStreamStub(RequestHandler handler, int port) throws SharkProtocolNotSupportedException { - try { - return new TCPStreamStub(handler, port); - } - catch(IOException ioe) { - ioe.printStackTrace(); - throw new SharkProtocolNotSupportedException(ioe.getMessage()); - } - } - COM: <s> implement the locally supported protocols </s> - diff --git a/funcom_test/4420611.txt b/funcom_test/4420611.txt deleted file mode 100644 index 49f5d46d048da1c7ac9e4a3a368fa762db6e253a..0000000000000000000000000000000000000000 --- a/funcom_test/4420611.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void persist() throws IOException { - L.d("persist KB now", this); - File storage = new File(pathToKb + File.separator + kbFilename); - - // Remove old file if existing - if (storage.exists()) { - storage.delete(); - } - - // Create file - storage.createNewFile(); - - // Open a stream to write into that file - FileOutputStream fos = new FileOutputStream(storage); - - // Store the local kb - this.writeToStream(fos); - - } - COM: <s> persist the current state of the knowledgebase to a file </s> - diff --git a/funcom_test/4420920.txt b/funcom_test/4420920.txt deleted file mode 100644 index 726e08cd8e97f14e103190770610c5bb7e9e0475..0000000000000000000000000000000000000000 --- a/funcom_test/4420920.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void sendMessage(String msg) throws IOException { - byte[] bytes = new String(msg).getBytes(); - int len = bytes.length; - - OutputStream out = this.getOutputStream(); // make sure there is a stream - out.write(len); // length first - out.write(bytes); // then the message itself - } - COM: <s> send a message over the connection </s> - diff --git a/funcom_test/4420922.txt b/funcom_test/4420922.txt deleted file mode 100644 index c4d24379fbade1239790509ae630abaef34aa0f8..0000000000000000000000000000000000000000 --- a/funcom_test/4420922.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void close() { - try { - - if(this.is != null){ this.is.close(); } - if(this.os != null){ this.os.close(); } - - if(this.conn != null) { this.conn.close(); } - - } catch (IOException ex) { - System.out.println(ex.getMessage()); - ex.printStackTrace(); - } - } - COM: <s> close the javax </s> - diff --git a/funcom_test/4421050.txt b/funcom_test/4421050.txt deleted file mode 100644 index 32ebc1fc6393c0c8fc707672f49f935d50ad4076..0000000000000000000000000000000000000000 --- a/funcom_test/4421050.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private int headerLen() { - int len = 0; - - len += 4; // int value of the id-length - len += this.id.length(); // id itself - len += 4; // int value of the package Number length (int = 4 byte) - len += 1; // boolean = one byte - - return len; - } - COM: <s> return the length of the header in bytes </s> - diff --git a/funcom_test/4421061.txt b/funcom_test/4421061.txt deleted file mode 100644 index 9e88d819b6d5aea7c5604a4dcadb43103bde202e..0000000000000000000000000000000000000000 --- a/funcom_test/4421061.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String printNDigitId(int id) { - String threeDigitId = String.valueOf(id); - int length = threeDigitId.length(); - int fillUp = ID_DIGITS - length; - for(int i = 0; i < fillUp; i++) { - threeDigitId = "0" + threeDigitId; - } - - return threeDigitId; - } - COM: <s> fill up the remaining digits with 0 before returning the </s> - diff --git a/funcom_test/4421116.txt b/funcom_test/4421116.txt deleted file mode 100644 index d173c6f732e4007833ca2e17437cbb4e1aef7f3f..0000000000000000000000000000000000000000 --- a/funcom_test/4421116.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void refreshInterest() { - if(this.anchorset != null && this.fp != null) { - // all variables initialized to create interest - Interest _interest = this.kb.createInterest(anchorset, this.fp); - this.interest = _interest; - } else { - L.d("Can't refresh interest w/o anchorset and fragmentation parameter!", this); - } - } - COM: <s> p when the underlying </s> - diff --git a/funcom_test/4421236.txt b/funcom_test/4421236.txt deleted file mode 100644 index 1bdaca3dae51e77474a18188fefe6a30cd3a224d..0000000000000000000000000000000000000000 --- a/funcom_test/4421236.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean isOKP() { - try { - STSet io = this.interest.getSTSet(ContextSpace.DIM_DIRECTION); - SemanticTag out = io.getSemanticTagBySi(ContextSpace.OUTSI); - if (out != null) { - return true; - } - } catch (SharkKBException ex) { - L.e(ex.getMessage(), this); - } - return false; - } - COM: <s> return whether the </s> - diff --git a/funcom_test/4421273.txt b/funcom_test/4421273.txt deleted file mode 100644 index f34b1dc78d4d0d94840cafb6375fbce2790e4824..0000000000000000000000000000000000000000 --- a/funcom_test/4421273.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean vectorContainsTag(Vector v, ROSemanticTag tag) { - Enumeration vEnum = v.elements(); - while(vEnum.hasMoreElements()) { - ROSemanticTag vTag = (ROSemanticTag) vEnum.nextElement(); - if(Util.sameEntity(tag.getSI(), vTag.getSI())) { - return true; - } - } - return false; - } - COM: <s> check every element of the vector which must only contain rosemantic tags </s> - diff --git a/funcom_test/4421337.txt b/funcom_test/4421337.txt deleted file mode 100644 index 99906317cf601fac7311a3856856f2a511f99c0d..0000000000000000000000000000000000000000 --- a/funcom_test/4421337.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void addPeerSemanticTag(PeerAssociatedSemanticTag pst) throws SharkKBException{ - PeerSemanticTag tag = this.createPeerSemanticTag(pst.getName(), pst.getSI(), pst.getAddresses()); - Util.copyPropertiesFromPropertyHolderToPropertyHolder(pst, tag); - } - COM: <s> like calling code kb </s> - diff --git a/funcom_test/4421338.txt b/funcom_test/4421338.txt deleted file mode 100644 index 3ab67343f679dd3d6eeb5d23e9e3e66e6bd90e2c..0000000000000000000000000000000000000000 --- a/funcom_test/4421338.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public InternalROSTSet findWay(ROSemanticTag to, ROSemanticTag from, FragmentationParameter otp) { - try { - return this.findWay((AssociatedSemanticTag) to, (AssociatedSemanticTag) from, otp, null, null); - } catch (SharkKBException ex) { - return null; - } - } - COM: <s> calls the correctly typed method inside this class which allows more parameters </s> - diff --git a/funcom_test/4421381.txt b/funcom_test/4421381.txt deleted file mode 100644 index a8b5a9fbbb578e5c53b59b6ed6a89095ffdb5cfa..0000000000000000000000000000000000000000 --- a/funcom_test/4421381.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void addPeerHierarchicalSemanticTag(PeerHierarchicalSemanticTag tag) { - PeerSemanticTag copy = this.createPeerSemanticTag(tag.getName(), tag.getSI(), tag.getAddresses()); - Util.copyPropertiesFromPropertyHolderToPropertyHolder(tag, copy); - } - COM: <s> add a peer hierarchical semantic tag to this peer stset </s> - diff --git a/funcom_test/4421469.txt b/funcom_test/4421469.txt deleted file mode 100644 index b827b6e6bf348cc8b740ec6433943aa52a13dd5c..0000000000000000000000000000000000000000 --- a/funcom_test/4421469.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public PeerSemanticTag createAnyPeerSemanticTag() { - if (this.anyPeer == null) { - this.anyPeer = new InMemoPeerAssociatedSemanticTag("-1", ContextSpace.ANY, ContextSpace.ANYSI, new String[]{}); - } - return this.anyPeer; - } - COM: <s> creates any any tag for the peer dimensions </s> - diff --git a/funcom_test/4421537.txt b/funcom_test/4421537.txt deleted file mode 100644 index f718b7aa56f1d65e823546446b7d5158162fd817..0000000000000000000000000000000000000000 --- a/funcom_test/4421537.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removePredicate(String type, AssociatedSemanticTag concept) { - if(this.assocs == null) return; - - Vector/*<InMemoNetConcept>*/ v = (Vector/*<InMemoNetConcept>*/) this.assocs.get(type); - - if(v == null) return; - - v.remove(concept); - this.notifyPredicateRemoved(this, type, concept); - } - COM: <s> remove a tag from the vector of associated tags for the given type </s> - diff --git a/funcom_test/4421661.txt b/funcom_test/4421661.txt deleted file mode 100644 index 6ff2be91c1a129a60e810f886cfae2e2a604e015..0000000000000000000000000000000000000000 --- a/funcom_test/4421661.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String serialize(int type) throws SharkNotSupportedException { - switch(type) { - case KEPMessage.RDF: - case KEPMessage.XML: - try { - return new XMLSerializer().serializeContextSpace(this); - } catch (SharkKBException ex) { - throw new RuntimeException(ex.getMessage()); - } - default: throw new SharkNotSupportedException("ContextMap.serialize: format not supported " + type); - } - } - COM: <s> this way of serializing is no longer supported </s> - diff --git a/funcom_test/4421739.txt b/funcom_test/4421739.txt deleted file mode 100644 index 260727ad63759b17f417e4759b14e3f911add96d..0000000000000000000000000000000000000000 --- a/funcom_test/4421739.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public InternalROSTSet findWay(ROSemanticTag to, ROSemanticTag from, FragmentationParameter fp){ - try { - return (InternalROSTSet) this.findWay((AssociatedSemanticTag) to, (AssociatedSemanticTag) from, fp, null, null); - } catch (SharkKBException ex) { - throw new RuntimeException(ex.getMessage()); - } - } - COM: <s> implements method from rostset while casting it for associated stset </s> - diff --git a/funcom_test/4421866.txt b/funcom_test/4421866.txt deleted file mode 100644 index c945caec2d99817b0372b0204efdbddf8bef4dd4..0000000000000000000000000000000000000000 --- a/funcom_test/4421866.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void merge(STSet remoteSTSet) { - if(!(remoteSTSet instanceof TimeSTSet)) { - // Can't treat non-TimeSTSets here - L.e("Trying to merge a non-TimeSTSet with a TimeSTSet.", this); - return; - } - - this.merge(remoteSTSet); - } - COM: <s> merge two time stsets into one </s> - diff --git a/funcom_test/4421962.txt b/funcom_test/4421962.txt deleted file mode 100644 index a9b50abe3ce18cbe85151ef240715ed8daafba88..0000000000000000000000000000000000000000 --- a/funcom_test/4421962.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: final synchronized protected boolean callListener(KEPRequest msg) { - Enumeration lenum = listener.elements(); - boolean handled = false; - while (lenum.hasMoreElements()) { - KEPHandler l = (KEPHandler) lenum.nextElement(); - if (l.handleMessage(msg)) { - handled = true; - } - } - - // that it - bye - msg.finished(); - -// L.d("Having " + this.listener.size() + " listeners.", this); - - return handled; - } - COM: <s> central method in which all listeners are called </s> - diff --git a/funcom_test/4422101.txt b/funcom_test/4422101.txt deleted file mode 100644 index d286d3f73ae46a90cc240fcaa8dcc8739819c1c4..0000000000000000000000000000000000000000 --- a/funcom_test/4422101.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String serializeContextCoordinates(ContextCoordinates co) throws SharkKBException, SharkNotSupportedException { - - // store serialized stsets - Hashtable table = new Hashtable(); - - for (int dim = 0; dim < ContextSpace.MAXDIMENSIONS; dim++) { - String serializedSTSet = this.serializeROSTSet((InternalROSTSet) co.getSTSet(dim)); - table.put(new Integer(dim), serializedSTSet); - } - - return this.encodeSimpleContextCoordinates(table); - } - COM: <s> serialize context coordinates to a string representation </s> - diff --git a/funcom_test/4431408.txt b/funcom_test/4431408.txt deleted file mode 100644 index 47896b21cc92b11b776322b2a44913b31642b93b..0000000000000000000000000000000000000000 --- a/funcom_test/4431408.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean reverseCorrectIt() { - log.info("reverseCorrectIt - " + toString()); - // Before reverseCorrect - m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_REVERSECORRECT); - if (m_processMsg != null) - return false; - - // After reverseCorrect - m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_REVERSECORRECT); - if (m_processMsg != null) - return false; - - return voidIt(); - } // reverseCorrectionIt - COM: <s> reverse correction same void </s> - diff --git a/funcom_test/4431410.txt b/funcom_test/4431410.txt deleted file mode 100644 index 3c7604d2779882b0389d452a236cb3172b9d8d81..0000000000000000000000000000000000000000 --- a/funcom_test/4431410.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean reverseAccrualIt() { - log.info("reverseAccrualIt - " + toString()); - // Before reverseAccrual - m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_REVERSEACCRUAL); - if (m_processMsg != null) - return false; - - // After reverseAccrual - m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_REVERSEACCRUAL); - if (m_processMsg != null) - return false; - - return false; - } // reverseAccrualIt - COM: <s> reverse accrual none </s> - diff --git a/funcom_test/44336272.txt b/funcom_test/44336272.txt deleted file mode 100644 index 5533043d5b7a1e37aaa55eacb55309505744d00b..0000000000000000000000000000000000000000 --- a/funcom_test/44336272.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int perform(Population generation, Population nextGeneration) { - int ret = 0; - Individual[] parents = generation.getRandomIndividualPair(); - Individual[] childs = perform(parents); - try { - ret = nextGeneration.addIndividuals(childs); - } catch( PopulationFullException e) { - ret = -1; - } // try - return ret; - } // perform - COM: <s> siehe auch code perform population population </s> - diff --git a/funcom_test/44336292.txt b/funcom_test/44336292.txt deleted file mode 100644 index 0293d36e18821a0996f16765ebf225bc6256a6c7..0000000000000000000000000000000000000000 --- a/funcom_test/44336292.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void paintBackground(Graphics g) { - Rectangle pageBounds = graph.getBounds(); - - if (getTspGraph().getBackgroundImage() != null) { - // Use clip and pageBounds - double s = graph.getScale(); - Graphics2D g2 = (Graphics2D) g; - AffineTransform tmp = g2.getTransform(); - g2.scale(s, s); - g.drawImage(getTspGraph().getBackgroundImage(), 0, 0, graph); - g2.setTransform(tmp); - } - } - COM: <s> paint the background of this graph </s> - diff --git a/funcom_test/44407808.txt b/funcom_test/44407808.txt deleted file mode 100644 index c58fbdb68441ce34d5b791d8bc73223b86bc5ec3..0000000000000000000000000000000000000000 --- a/funcom_test/44407808.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public FieldPoint getSpeed(MobileObject mObj) { - int time = this.getTimeStamp() - mObj.getTimeStamp(); - FieldPoint speedVector = new FieldPoint((mObj.getPosition().getX() - this.getPosition().getX()) / time, - (mObj.getPosition().getY() - this.getPosition().getY()) / time); - return speedVector; - } - COM: <s> gets the speed attribute of the mobile object object </s> - diff --git a/funcom_test/44519945.txt b/funcom_test/44519945.txt deleted file mode 100644 index 320162d4279d95b2d192f5372d9e8354bb029864..0000000000000000000000000000000000000000 --- a/funcom_test/44519945.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString(){ - StringBuffer str = new StringBuffer(); - str.append("PDB ID: "+pdbID+"\tDomain Origin: "+domainOrigin+"\tDomain ID: "+domainID+"\n"); - for(Iterator i = subDomainDefinitions.iterator(); i.hasNext();){ - str.append( ((SubChain)i.next()).toString()+"\n" ); - } - - return str.toString(); - } - COM: <s> returns a string that represents the domain definition </s> - diff --git a/funcom_test/44519954.txt b/funcom_test/44519954.txt deleted file mode 100644 index 8460b6f09df29b6bcc50f698634f731d78d90928..0000000000000000000000000000000000000000 --- a/funcom_test/44519954.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void transfHulls(int method){ - if(method==1){ - hullA = transfHull(hullAo,hullAo.getCenter()); - hullB = transfHull(hullBo,hullBo.getCenter()); - }else{ - hullA = transfHull(hullAo); - hullB = transfHull(hullBo); - } - //print2File(hullA,"TransA"); - //print2File(hullB,"TransB"); - } - COM: <s> tranform both convex hulls by swelling them </s> - diff --git a/funcom_test/44519984.txt b/funcom_test/44519984.txt deleted file mode 100644 index 578c23ce5982bdfe208c36eb4ff86c20828f87a5..0000000000000000000000000000000000000000 --- a/funcom_test/44519984.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public Vertex getCenter(){ - List vertices = new ArrayList(); - vertices.addAll(hullA.getVertices()); - vertices.addAll(hullB.getVertices()); - - int size = vertices.size(); - double[] c = {0.0,0.0,0.0}; - - for (Iterator v = vertices.iterator();v.hasNext();){ - double[] x = ((Vertex)v.next()).getCoords(); - c[0]+=x[0]; - c[1]+=x[1]; - c[2]+=x[2]; - } - c[0]=c[0]/size; - c[1]=c[1]/size; - c[2]=c[2]/size; - - return new Vertex(c[0],c[1],c[2]); - } - COM: <s> finds the center of the surface </s> - diff --git a/funcom_test/44520007.txt b/funcom_test/44520007.txt deleted file mode 100644 index 14638e571db727707c128c8e010693da07f4cfa6..0000000000000000000000000000000000000000 --- a/funcom_test/44520007.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Domain getDomain(DomainDefinition domainDefinition){ - List subDomainDef = domainDefinition.getSubDomainDefinitions(); - List domainResidues = new ArrayList(); - - for( Iterator li = subDomainDef.iterator(); li.hasNext(); ) { - SubChain sc = (SubChain)li.next(); - domainResidues.addAll(getResidues(sc)); - } - - return new Domain(domainDefinition.getDomainID(),domainResidues); - } - COM: <s> get protein domain as a list of residues given a domain definition </s> - diff --git a/funcom_test/44520015.txt b/funcom_test/44520015.txt deleted file mode 100644 index ce5e1994fe53a2c0712b46decf4c43120e3dc4d8..0000000000000000000000000000000000000000 --- a/funcom_test/44520015.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void setDomainProperties(){ - - String chain = ((Atom)atoms.get(0)).getChainID(); - - for (Iterator i = atoms.iterator(); i.hasNext();){ - Atom atom = (Atom)i.next(); - - if(atom.isHetAtom()) - hetAtomsNo++; - - if(atom.isWater()) - waterNo++; - - if(chain.equalsIgnoreCase(atom.getChainID())) - chainNo++; - } - } - COM: <s> set atom properties </s> - diff --git a/funcom_test/44520016.txt b/funcom_test/44520016.txt deleted file mode 100644 index 2051f737449743cf0cf240dae39cb77fad645e2f..0000000000000000000000000000000000000000 --- a/funcom_test/44520016.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Domain getSCADomain(DomainDefinition domainDefinition){ - List subDomainDef = domainDefinition.getSubDomainDefinitions(); - Vector domainAtoms = new Vector(); - - for( Iterator li = subDomainDef.listIterator(); li.hasNext(); ) { - SubChain sc = (SubChain)li.next(); - domainAtoms.addAll(getSCAtoms(sc)); - } - - domainAtoms.trimToSize(); - return new Domain(domainDefinition.getDomainID(),domainAtoms,true); - } - COM: <s> get protein sca domain given a domain definition </s> - diff --git a/funcom_test/44520037.txt b/funcom_test/44520037.txt deleted file mode 100644 index d0a86ab6e201e84cc4fa8bd961d4ad0557c44239..0000000000000000000000000000000000000000 --- a/funcom_test/44520037.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getDescription(Superfamily sf){ - String query = "select description from des where des.id='"+sf.getID()+"'"; - try { - Statement s = con.createStatement(); - ResultSet rs = s.executeQuery(query); - rs.next(); - return rs.getString(1); - }catch (SQLException e) { - System.out.println("Exception at Scop.getDescription(sf)"); - System.out.println(e.getErrorCode()); - System.out.println(e.getSQLState()); - System.out.println(e.getMessage()); - System.out.println(e); - return null; - } - } - COM: <s> get the discription of a superfamily </s> - diff --git a/funcom_test/44520039.txt b/funcom_test/44520039.txt deleted file mode 100644 index ec56cb9281ebc2ce34856c78649880fe2992d3d3..0000000000000000000000000000000000000000 --- a/funcom_test/44520039.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getSCCS(Superfamily sf){ - String query = "select sccs from des where des.id='"+sf.getID()+"'"; - try { - Statement s = con.createStatement(); - ResultSet rs = s.executeQuery(query); - rs.next(); - return rs.getString(1); - }catch (SQLException e) { - System.out.println("Exception at Scop.getSCCS"); - System.out.println(e.getErrorCode()); - System.out.println(e.getSQLState()); - System.out.println(e.getMessage()); - System.out.println(e); - return null; - } - } - COM: <s> get the sccs key of a superfamily </s> - diff --git a/funcom_test/44520042.txt b/funcom_test/44520042.txt deleted file mode 100644 index 63478a5bff179d001bc7b9dce7c1656aaeb066ef..0000000000000000000000000000000000000000 --- a/funcom_test/44520042.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getID(Superfamily sf){ - String query = "select id from des where des.sccs='"+sf.getSCCS()+"'"; - try { - Statement s = con.createStatement(); - ResultSet rs = s.executeQuery(query); - rs.next(); - return rs.getString(1); - }catch (SQLException e) { - System.out.println("Exception at Scop.getID"); - System.out.println(e.getErrorCode()); - System.out.println(e.getSQLState()); - System.out.println(e.getMessage()); - System.out.println(e); - return null; - } - } - COM: <s> get the sf key of a superfamily </s> - diff --git a/funcom_test/44520043.txt b/funcom_test/44520043.txt deleted file mode 100644 index 94a461bedfd42205509a02af1be23562bbb596cf..0000000000000000000000000000000000000000 --- a/funcom_test/44520043.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean interacts_ConvexHullPair(Domain dom){ - - ConvexHullPair calc = new ConvexHullPair("null",this,dom); - System.out.println(calc.getIntersectionAtomsA()+" "+calc.getIntersectionAtomsB()); - if(calc.getIntersectionAtomsA()>=Threshold.NumberOfResiduePairs||calc.getIntersectionAtomsB()>=Threshold.NumberOfResiduePairs) - return true; - else - return false; - } - COM: <s> protein alphabet whether two domains interact using convex hull pair computation </s> - diff --git a/funcom_test/44520044.txt b/funcom_test/44520044.txt deleted file mode 100644 index 1b8e9ea8b37f3d67fef52a714e8304cf5e0fd5ee..0000000000000000000000000000000000000000 --- a/funcom_test/44520044.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public List getID(String geneName){ - List results = new ArrayList(); - String query = "select sf from cache where cache.gene='"+geneName+"'"; - try { - Statement s = con.createStatement(); - ResultSet rs = s.executeQuery(query); - while(rs.next()){ - results.add(rs.getString(1)); - } - return results; - }catch (SQLException e) { - System.out.println(e.getErrorCode()); - System.out.println(e.getSQLState()); - System.out.println(e.getMessage()); - System.out.println(e); - return null; - } - } - COM: <s> get a list of superfamily ids for a gene name </s> - diff --git a/funcom_test/44520046.txt b/funcom_test/44520046.txt deleted file mode 100644 index a2a077ae54530bdeb47295b40dcd45e472dacfe2..0000000000000000000000000000000000000000 --- a/funcom_test/44520046.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean interacts(Domain dom){ - - AllToAllInteraction calc = new AllToAllInteraction("null",this,dom); - System.out.println(calc.getIntersectionAtomsA()+" "+calc.getIntersectionAtomsB()); - if(calc.getIntersectionAtomsA()>=Threshold.NumberOfResiduePairs||calc.getIntersectionAtomsB()>=Threshold.NumberOfResiduePairs) - return true; - else - return false; - } - COM: <s> protein alphabet whether two domains interact using all to all interactions </s> - diff --git a/funcom_test/44520047.txt b/funcom_test/44520047.txt deleted file mode 100644 index a7ab42dba8db6024fa65e7074ab91be2fc74fb2f..0000000000000000000000000000000000000000 --- a/funcom_test/44520047.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public List getGeneName(Superfamily sf){ - List results = new ArrayList(); - String query = "select gene from cache where cache.sf='"+sf.getID()+"'"; - try { - Statement s = con.createStatement(); - ResultSet rs = s.executeQuery(query); - while(rs.next()){ - results.add(rs.getString(1)); - } - return results; - }catch (SQLException e) { - System.out.println(e.getErrorCode()); - System.out.println(e.getSQLState()); - System.out.println(e.getMessage()); - System.out.println(e); - return null; - } - } - COM: <s> get a list of gene names that belongs to the given superfamily </s> - diff --git a/funcom_test/44520051.txt b/funcom_test/44520051.txt deleted file mode 100644 index 2136b034e9ded4580098f083b9ca00c2935c11b1..0000000000000000000000000000000000000000 --- a/funcom_test/44520051.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean setGeneName(String geneName){ - String query = "INSERT INTO `cache` ( `sf` , `evalue` ,`gene` ) VALUES ('', '', '"+geneName+"');"; - try { - Statement s = con.createStatement(); - s.executeUpdate(query); - return true; - }catch (SQLException e) { - System.out.println(e.getErrorCode()); - System.out.println(e.getSQLState()); - System.out.println(e.getMessage()); - System.out.println(e); - return false; - } - } - COM: <s> cach the no sugnificant superfamily hit for the given gene name </s> - diff --git a/funcom_test/44520074.txt b/funcom_test/44520074.txt deleted file mode 100644 index c283d90346ada30925e8eb472f408a2396d214ad..0000000000000000000000000000000000000000 --- a/funcom_test/44520074.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void print2File(){ - try{ - PrintWriter fileOut = new PrintWriter(new FileWriter(pdbID+".txt")); - fileOut.println("Pdb ID: "+pdbID+", Number of Atoms: "+atoms.size()); - for (Iterator i = atoms.iterator(); i.hasNext();) - fileOut.println(i.next().toString()); - fileOut.close(); - }catch(IOException e){System.out.println(e);} - } - COM: <s> write protein to txt file </s> - diff --git a/funcom_test/44520110.txt b/funcom_test/44520110.txt deleted file mode 100644 index 3d3cf2216d9baa011ae99ce12ab22f154a069d0c..0000000000000000000000000000000000000000 --- a/funcom_test/44520110.txt +++ /dev/null @@ -1,32 +0,0 @@ -TDAT: public void setDerivedFields(){ - distance = 0; - distance2 = 0; - AtomContact atomContact; - interacting_atom_contacts_size = 0; - interaction = false; - - for(Iterator i = atomContacts.iterator(); i.hasNext();){ - atomContact = (AtomContact)i.next(); - distance2 += atomContact.getDistance(); - if(atomContact.isInteracting()){ - if(atomContact.isPure()){ - interaction = true; - interacting_atom_contacts_size++; - distance += atomContact.getDistance(); - } - } - } - - if(isInteracting()) - distance /= interacting_atom_contacts_size; - else{ - distance2 /= atomContacts.size(); - } - - setStrength(); - setType(); - setAbsoluteInvolvement(); - setPercentanceInvolvement(); - } - COM: <s> set derived fields </s> - diff --git a/funcom_test/44520112.txt b/funcom_test/44520112.txt deleted file mode 100644 index 9a9008f80a60432b8d171f774df4139fffbf88b7..0000000000000000000000000000000000000000 --- a/funcom_test/44520112.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void setStrength(){ - AtomContact atomContact; - strength = 0; - - if(isInteracting()){ - - for(Iterator i = atomContacts.iterator(); i.hasNext();){ - atomContact = (AtomContact)i.next(); - if(atomContact.isInteracting()){ - if(atomContact.isPure()) - strength += atomContact.getStrength(); - } - } - - }else{ - - for(Iterator i = atomContacts.iterator(); i.hasNext();){ - atomContact = (AtomContact)i.next(); - strength += atomContact.getStrength(); - } - - } - } - COM: <s> set residue contact strength as the sum of the strength of the individual </s> - diff --git a/funcom_test/44520117.txt b/funcom_test/44520117.txt deleted file mode 100644 index 0945e051bf822ff365b9eabe0aad9b3a376c28e1..0000000000000000000000000000000000000000 --- a/funcom_test/44520117.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public List interSetFaces(List s1, List s2){ - List faces = getFaces(); - List xFaces = new ArrayList(); - - for (Iterator e = faces.iterator();e.hasNext();){ - Triangle t = (Triangle)e.next(); - List v = t.getVertices(); - Vertex v1 = (Vertex)v.get(0); - Vertex v2 = (Vertex)v.get(1); - Vertex v3 = (Vertex)v.get(v.size()-1); - if ((s1.contains(v1) || s1.contains(v2) || s1.contains(v3)) && - (s2.contains(v1) || s2.contains(v2) || s2.contains(v3))) - { - xFaces.add(t); - } - } - return xFaces; - } - COM: <s> determine the hull faces that have vertices in each of two sets </s> - diff --git a/funcom_test/44520119.txt b/funcom_test/44520119.txt deleted file mode 100644 index 5308dced6473048deea5db829d0f54624017f416..0000000000000000000000000000000000000000 --- a/funcom_test/44520119.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void triToTet(Polygon face, Vertex vertex, int vol){ - List v = face.getVertices(); - Vertex v1 = (Vertex)v.get(0); - Vertex v2 = (Vertex)v.get(1); - Vertex v3 = (Vertex)v.get(2); - - // Store the vertices in CCW order - if (vol < 0 ){ - v.set(0, v3); - v.set(2, v1); - Vertex tv = v1; - v1 = v3; - v3 = tv; - } - addFace(new Triangle(v3, v2, vertex)); - addFace(new Triangle(v2, v1, vertex)); - addFace(new Triangle(v1, v3, vertex)); - } - COM: <s> form a tetrahedron from vertex and the existing triangular hull </s> - diff --git a/funcom_test/44520120.txt b/funcom_test/44520120.txt deleted file mode 100644 index 2d66f6bcdf617a0bcde3dd690e3f27fd02ad66c0..0000000000000000000000000000000000000000 --- a/funcom_test/44520120.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean interacts(Residue residue){ - if(Vertex.distance(backBoneCoord,residue.backBoneCoord)<=Threshold.InteractingDistance) - return true; - else if(Vertex.distance(sideChainCoord,residue.backBoneCoord)<=Threshold.InteractingDistance) - return true; - else if(Vertex.distance(backBoneCoord,residue.sideChainCoord)<=Threshold.InteractingDistance) - return true; - else if(Vertex.distance(sideChainCoord,residue.sideChainCoord)<=Threshold.InteractingDistance) - return true; - else - return false; - } - COM: <s> define whether interacts with residue in a residue level </s> - diff --git a/funcom_test/44520128.txt b/funcom_test/44520128.txt deleted file mode 100644 index 5db84e3ed1df63bd786a86962a0fab80184afa4c..0000000000000000000000000000000000000000 --- a/funcom_test/44520128.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void updateVisibleEdges(Edge e, List visibleEdges){ - Iterator f; - boolean same = false; - - for (f = visibleEdges.iterator();f.hasNext();){ - Edge edge = (Edge)f.next(); - if (Edge.sameEdge(e, edge)){ - same = true; - e = edge; - break; - } - } - if (same) - visibleEdges.remove(e); - else - visibleEdges.add(e); - } - COM: <s> update the visible edge list </s> - diff --git a/funcom_test/44520142.txt b/funcom_test/44520142.txt deleted file mode 100644 index 2320b4c17e27dd74d58ebaacbf44cb86bcb05e62..0000000000000000000000000000000000000000 --- a/funcom_test/44520142.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public List getVertices(){ - List vertices = new ArrayList(); - - for (Iterator e = faces.iterator(); e.hasNext();){ - List face_verts = ((Polygon)e.next()).getVertices(); - for (Iterator f = face_verts.iterator();f.hasNext();){ - Vertex vertex = (Vertex)f.next(); - if (vertices.indexOf(vertex) == -1) - vertices.add(vertex); - } - } - return vertices; - } - COM: <s> get the vertices of a surface </s> - diff --git a/funcom_test/44520198.txt b/funcom_test/44520198.txt deleted file mode 100644 index 42d90a350b47eb5098ebe57a041cdac7f9fbe505..0000000000000000000000000000000000000000 --- a/funcom_test/44520198.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setTaskComputationSize(int n, ArrayList listParameters){ - long taskSize = 0; - int nd, index; - - for(Iterator i = listParameters.iterator();i.hasNext();){ - index = pdbIdList.indexOf((String)i.next()); - nd = Integer.parseInt((String)pdbNoDom.get(index)); - taskSize += nd*(nd-1)*Long.parseLong((String)pdbSizeList.get(index)); - } - - taskComputationSize[n] = ((double)taskSize/(double)totalComputationSize); - } - COM: <s> set the computation size of the task this is proposional to the sum </s> - diff --git a/funcom_test/44520281.txt b/funcom_test/44520281.txt deleted file mode 100644 index 4910454f1ddcf6515a0156c53b6dcb1160c170f8..0000000000000000000000000000000000000000 --- a/funcom_test/44520281.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public String toString() { - return ("("+atomSerialNumber+","+residueSerialNumber+","+chainID+","+name+","+residueSymbol+","+super.x+","+super.y+","+super.z+")"); - } - COM: <s> returns a string that describes a vertex </s> - diff --git a/funcom_test/44520401.txt b/funcom_test/44520401.txt deleted file mode 100644 index 7f30b4b63631916fcdd9ebd2473eaca659189028..0000000000000000000000000000000000000000 --- a/funcom_test/44520401.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void setResiduesNum(){ - residuesNumA = 0; - residuesNumB = 0; - - Hashtable residues = domainA.getResidues(); - for(Enumeration e = residues.elements(); e.hasMoreElements();){ - Residue residue = (Residue)e.nextElement(); - if(residue.isInteracting()) - residuesNumA++; - } - - residues = domainB.getResidues(); - for(Enumeration e = residues.elements(); e.hasMoreElements();){ - Residue residue = (Residue)e.nextElement(); - if(residue.isInteracting()) - residuesNumB++; - } - } - COM: <s> set the number of interacting residues </s> - diff --git a/funcom_test/44520749.txt b/funcom_test/44520749.txt deleted file mode 100644 index 4c7bd13f8d6b1ed895ca183085484a391102b530..0000000000000000000000000000000000000000 --- a/funcom_test/44520749.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void shiftAllNodes(double x, double y){ - Node n; - for (int j=0;j<nnodes;j++){ - n = nodes[j]; - n.x += x; - n.y += y; - - if (n.x < -Node.maxxysize) {n.x = -Node.maxxysize;} - else if (n.x > Node.maxxysize){n.x = Node.maxxysize;} - if (n.y < -Node.maxxysize){n.y = -Node.maxxysize;} - else if (n.y > Node.maxxysize){n.y = Node.maxxysize;} - } - } - COM: <s> shift all nodes within the components by x and y </s> - diff --git a/funcom_test/44520835.txt b/funcom_test/44520835.txt deleted file mode 100644 index cd2211f28e72593a71555fb87cedba4b0d505833..0000000000000000000000000000000000000000 --- a/funcom_test/44520835.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setSingle(Node n, boolean value){ - if(value){ // set single true - if(n!=singleSelectedNode){ // single sel was not true before - if (singleSelectedNode!=null){ // there was another single sel before - setSingle(singleSelectedNode,false); - } - n.setSingle(true); - singleSelectedNode = n; - setSingle(n.component,true); - setMulti(n,true); - } - } else { // singleSel = false - if (n==singleSelectedNode){ // n was true before - n.setSingle(false); - singleSelectedNode = null; - } - } - } - COM: <s> set single selection for node n </s> - diff --git a/funcom_test/44520840.txt b/funcom_test/44520840.txt deleted file mode 100644 index 6e855f918fca662f064e5aaad2f4a897fe5137fd..0000000000000000000000000000000000000000 --- a/funcom_test/44520840.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addEdgebyLabel(String from, String to, int len) { - from = from.trim(); - to = to.trim(); - Node fromNode = findNodebyLabel(from,true); - // loops are not added - if (!from.equals(to)){ - Node toNode = findNodebyLabel(to,true); - Edge e = new Edge(); - e.from = fromNode; - e.to = toNode; - e.len = len; - fromNode.adjEdges.add(e); - toNode.adjEdges.add(e); - edges[nedges++] = e; - } - } - COM: <s> add an edge to the graph </s> - diff --git a/funcom_test/44520949.txt b/funcom_test/44520949.txt deleted file mode 100644 index 64a998fa987c8c7c0eff83e6fad5b2709e8a97ea..0000000000000000000000000000000000000000 --- a/funcom_test/44520949.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void add(String reason, Modifier mod) { - Modifier[] mods = (Modifier[]) get(reason); - if (mods == null) { - set(reason, new Modifier[]{mod}); - return; - } - Modifier[] nmods = new Modifier[mods.length + 1]; - System.arraycopy(mods, 0, nmods, 0, mods.length); - nmods[mods.length] = mod; - set(reason, nmods); - } - COM: <s> add a modifier to a reason property </s> - diff --git a/funcom_test/44520951.txt b/funcom_test/44520951.txt deleted file mode 100644 index 9daad4a1041c7535304e2c93474512f19aac0d09..0000000000000000000000000000000000000000 --- a/funcom_test/44520951.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void initCoord(double local, double global){ - Node n; - double offsetx = global*(1-.5*Math.random()); - double offsety = global*(1-.5*Math.random()); - for (int i=0;i<nnodes;i++){ - n = nodes[i]; - n.x = offsetx + local*(1-.5*Math.random()); - n.y = offsety + local*(1-.5*Math.random()); - if (n.x < -Node.maxxysize) {n.x = -Node.maxxysize+100;} - else if (n.x > Node.maxxysize){n.x = Node.maxxysize-100;} - if (n.y < -Node.maxxysize){n.y = -Node.maxxysize+100;} - else if (n.y > Node.maxxysize){n.y = Node.maxxysize-100;} - } - } - COM: <s> initialise nodes coordinates randomly using a </s> - diff --git a/funcom_test/44520954.txt b/funcom_test/44520954.txt deleted file mode 100644 index 3482ccb31610c5ea27b5c4567f39d921077eb961..0000000000000000000000000000000000000000 --- a/funcom_test/44520954.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean set(String key, Object value) { - boolean didSet = realSet(key, value); - if(GET_SET_DEBUG&&SET_OUTPUT_DEBUG) { - System.out.println("set: " + key + " value: " + value + " didSet " + didSet); - } - return didSet; - } - COM: <s> sets a property value </s> - diff --git a/funcom_test/44520980.txt b/funcom_test/44520980.txt deleted file mode 100644 index 016effecf8187740308d651486f6c34e65ce6b90..0000000000000000000000000000000000000000 --- a/funcom_test/44520980.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public int removeItems(String name, int num) { - int c=0; - for (int i=0; i<invcount; i++) { - Thing t=inv[i]; - if (name.equals(t.name())) { - int snum=t.getStat("Number"); - if (snum>=num) { - c+=num; - t.remove(num); - break; - } - t.remove(); - num-=snum; - c+=snum; - i--; // step back one since stack is removed - } - } - return c; - } - COM: <s> removes a number of items from the thing up to a specified </s> - diff --git a/funcom_test/44521073.txt b/funcom_test/44521073.txt deleted file mode 100644 index 4f52ccc193a6caac3473e61f9f03e2fe7f70069a..0000000000000000000000000000000000000000 --- a/funcom_test/44521073.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void distToAll(Node n){ - int[] indirConn = new int[nnodes]; - for(int i=0;i<nnodes;i++){ - nodes[i].dist=-1; - indirConn[i]=0; - } - n.dist=0; - BFSdist(n,new Vector(),indirConn); - int upTo = nnodes; - for(int i=1;i<nnodes;i++){ - if (indirConn[i]<1){upTo=i; break;} - } - n.indirConn = new int[upTo]; - for(int i=1;i<upTo;i++){ - n.indirConn[i]=indirConn[i]; - } - } - COM: <s> compute graph theoretic distance from this node to all other </s> - diff --git a/funcom_test/44521080.txt b/funcom_test/44521080.txt deleted file mode 100644 index e6669174aa9bc33589e9a395a5e81b4ee8349573..0000000000000000000000000000000000000000 --- a/funcom_test/44521080.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void BFSdist(Node n, Vector ToDo, int[] indirConn){ - Node n2 = null; - for (Enumeration es = n.adjEdges.elements() ; es.hasMoreElements() ;) { - n2 = n.adjNode((Edge)es.nextElement()); - if (n2.dist<0){ - n2.dist=n.dist+1; - indirConn[n2.dist]++; - - // important add adds to the end of the list - ToDo.add(n2); - } - } - if (!ToDo.isEmpty()){ - n2 = (Node) ToDo.remove(0); - BFSdist(n2,ToDo,indirConn); - } - } - COM: <s> traverses the graph breadth first and updates the distance </s> - diff --git a/funcom_test/44521150.txt b/funcom_test/44521150.txt deleted file mode 100644 index 18fbab37c4b2215ea16df5d8aa696bcd33c8c477..0000000000000000000000000000000000000000 --- a/funcom_test/44521150.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public boolean isBlank(int x1, int y1, int x2, int y2) { - // get right order for co-ordinates - if (x1 > x2) { - int t = x1; - x1 = x2; - x2 = t; - } - if (y1 > y2) { - int t = y1; - y1 = y2; - y2 = t; - } - - for (int x = x1; x <= x2; x++) - for (int y = y1; y <= y2; y++) { - if (getTile(x, y) != 0) - return false; - } - return true; - } - COM: <s> check if area is completely empty </s> - diff --git a/funcom_test/44521198.txt b/funcom_test/44521198.txt deleted file mode 100644 index f76f6975edabf6ab913c784cca5f99829b6c751c..0000000000000000000000000000000000000000 --- a/funcom_test/44521198.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int countTiles(int x1, int y1, int x2, int y2, int c) { - int count = 0; - for (int x = x1; x <= x2; x++) - for (int y = y1; y <= y2; y++) { - if (getTile(x, y) == c) - count++; - } - return count; - } - COM: <s> count tiles of particular type in rectangular area </s> - diff --git a/funcom_test/44521209.txt b/funcom_test/44521209.txt deleted file mode 100644 index 0a5fb73099e5ef88a3419c3fae842d3510979acc..0000000000000000000000000000000000000000 --- a/funcom_test/44521209.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void fillArea(int x1, int y1, int x2, int y2, int c) { - if (x1 > x2) { - int t = x1; - x1 = x2; - x2 = t; - } - if (y1 > y2) { - int t = y1; - y1 = y2; - y2 = t; - } - for (int x = x1; x <= x2; x++) { - for (int y = y1; y <= y2; y++) { - setTile(x, y, c); - } - } - } - COM: <s> fills rectangular map area with specified tile </s> - diff --git a/funcom_test/44521319.txt b/funcom_test/44521319.txt deleted file mode 100644 index b42fd3720d90d3b6561d09775a5d65683c55af93..0000000000000000000000000000000000000000 --- a/funcom_test/44521319.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void mapPropertyTest(Map m) { - // test all map properties here - assertTrue(m!=null); - assertTrue("Map ["+m.name()+"] has Level<=0",m.getLevel()>=1); - assertTrue("Map ["+m.name()+"] has Level>50",m.getLevel()<=50); - assertTrue("Map ["+m.name()+"] has no Description!",m.getString("Description")!=null); - } - COM: <s> test all properties of the map </s> - diff --git a/funcom_test/44521375.txt b/funcom_test/44521375.txt deleted file mode 100644 index 7243fb87358b49f44a55ebf5d7d6b9ea18ba6e8f..0000000000000000000000000000000000000000 --- a/funcom_test/44521375.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void completeArea(int x1, int y1, int x2, int y2, int c) { - if (x1 > x2) { - int t = x1; - x1 = x2; - x2 = t; - } - if (y1 > y2) { - int t = y1; - x1 = y2; - y2 = t; - } - for (int x = x1; x <= x2; x++) { - for (int y = y1; y <= y2; y++) { - if (getTile(x, y) == 0) - setTile(x, y, c); - } - } - } - COM: <s> fill all blank squares in area with specified tile </s> - diff --git a/funcom_test/44521494.txt b/funcom_test/44521494.txt deleted file mode 100644 index cbc40d0d52c75b9baa04a5508ec846cc8ee71212..0000000000000000000000000000000000000000 --- a/funcom_test/44521494.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Thing find(String name, int x1, int y1, int x2, int y2) { - for (int y = y1; y <= y2; y++) { - for (int x = x1; x <= x2; x++) { - Thing tracker = objects[x+y*width]; - while (tracker != null) { - if (tracker.name().equals(name)) { - return tracker; - } - tracker = tracker.next; - } - } - } - return null; - } - COM: <s> finds the first instance of a named thing in a given area </s> - diff --git a/funcom_test/44521514.txt b/funcom_test/44521514.txt deleted file mode 100644 index 815879b075ea2575adc7501bbdd9d5fe8309783b..0000000000000000000000000000000000000000 --- a/funcom_test/44521514.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String getPropertyType(Object value) { - if (value==null) return null; - if (value instanceof String) return "String"; - if (value instanceof Integer) return "Integer"; - if (value instanceof Modifier[]) return "Modifier[]"; - if (value instanceof Modifier) return "Modifier"; - if (value instanceof Script) return "Script"; - return "Object"; - } - COM: <s> helper function to work out the type of property </s> - diff --git a/funcom_test/44521826.txt b/funcom_test/44521826.txt deleted file mode 100644 index bc0265b343356f274a6c26866407fc8f6c9cbde4..0000000000000000000000000000000000000000 --- a/funcom_test/44521826.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isWielded(Thing item) { - boolean result=false; - for (int i = 0; i < invcount; i++) { - Thing t = inv[i]; - if (t.getFlag("IsItem")&&(t.y > 0) && t==item ) { - return true; - } - } - return result; - } - COM: <s> checks if a thing is wielded </s> - diff --git a/funcom_test/44521854.txt b/funcom_test/44521854.txt deleted file mode 100644 index ef1634964ea3e74db943163ad150cb4b1d8958d0..0000000000000000000000000000000000000000 --- a/funcom_test/44521854.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Thing getNamedObject(int x, int y, String name) { - int i = x + width * y; - if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) - return null; - Thing t = objects[i]; - while (t != null) { - if (name.equals(t.get("Name"))) return t; - t = t.next; - } - return null; - } - COM: <s> get object with specified name </s> - diff --git a/funcom_test/44521874.txt b/funcom_test/44521874.txt deleted file mode 100644 index 1964873c09e896b82c61f075163e39d1463d4fdc..0000000000000000000000000000000000000000 --- a/funcom_test/44521874.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int countNearby(String flag,int x, int y, int r) { - int count = 0; - for (int lx = x - r; lx <= x + r; lx++) - for (int ly = y - r; ly <= y + r; ly++) { - if (getFlaggedObject(lx, ly,flag) != null) - count++; - } - return count; - } - COM: <s> functions to detect return obvious nearby mobiles </s> - diff --git a/funcom_test/44521921.txt b/funcom_test/44521921.txt deleted file mode 100644 index d519c426882379f4982188642ee9da072f6fd823..0000000000000000000000000000000000000000 --- a/funcom_test/44521921.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Thing sortZGetFirst(Thing top) { - if (top.next == null) - return top; - top.next = sortZGetFirst(top.next); - - if (top.getZ() <= top.next.getZ()) { - return top; - } - Thing t = top.next; - top.next = t.next; - t.next = sortZGetFirst(top); - return t; - } - COM: <s> utility function for sort z </s> - diff --git a/funcom_test/4452454.txt b/funcom_test/4452454.txt deleted file mode 100644 index e1308b17b83df755d556698d0238f0ead248e0d4..0000000000000000000000000000000000000000 --- a/funcom_test/4452454.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addStatusListener(PropertyChangeListener l) { - Validate.notNull(l, "PropertyChangeListener for Status can not be null"); - try { - _boundPropertiesLock.lock(); - - _boundProperties.addPropertyChangeListener(PropertyNames.Status.toString(), l); - } - finally { - _boundPropertiesLock.unlock(); - } -} - COM: <s> property change event </s> - diff --git a/funcom_test/4452461.txt b/funcom_test/4452461.txt deleted file mode 100644 index 37fc7f0e0e4e84e551608cab0793bdffb3061b4f..0000000000000000000000000000000000000000 --- a/funcom_test/4452461.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void _assertNoSwingWorkerCurrentlyActive() throws TaskException { - Future worker = getSwingWorker(); - - if (worker == null || worker.isDone() || worker.isCancelled()) { - getUIHook().resetCancelFlag(); - } - else { - throw TaskException.newConcurrentSwingWorkerCreationAttempt( - "This task already has one underlying SwingWorker executing. It can't have more than one active concurrently.", - this); - } - -} - COM: <s> makes sure that an existing swing worker is not already in flight </s> - diff --git a/funcom_test/4452478.txt b/funcom_test/4452478.txt deleted file mode 100644 index fe2401a9057e0a710afedcbb9ff72d65c468501b..0000000000000000000000000000000000000000 --- a/funcom_test/4452478.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateSendStatusInUI(int progress, int total) { - _boundProperties.firePropertyChange( - PropertyList.Send.toString(), - Integer.toString(ProgressMonitorUtils.getProgressPercent(progress, total)), - ProgressMonitorUtils.generateProgressMessage(ProgressMonitorUtils.Type.Send, - getProgressMessage(), - progress, total) - ); -} - COM: <s> this is called in edt in your code </s> - diff --git a/funcom_test/4452559.txt b/funcom_test/4452559.txt deleted file mode 100644 index 288d20364385341a40c902a5d0e7577994955cdc..0000000000000000000000000000000000000000 --- a/funcom_test/4452559.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void shutdownAll() { - for (AbstractTask task : _taskList) { - task.shutdown(); - _fireTaskListChange(new TaskListChangeEvent(TaskListChangeEvent.Type.Shutdown, task)); - } - - _removeStoppedTasksFromList(); - - // remove all soft TaskListChangeListeners from the TaskManager... - pruneSoftListeners(); -} - COM: <s> stops all tasks that are registered with this manager </s> - diff --git a/funcom_test/4452562.txt b/funcom_test/4452562.txt deleted file mode 100644 index fbf3cb70293a669d4ff6a18a0b5ba7e187ab6193..0000000000000000000000000000000000000000 --- a/funcom_test/4452562.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void autoShutdownOn(AutoShutdownSignals stopOnThis) { - - for (AbstractTask task : _taskList) { - if (task.hasAutoShutdownPolicy(stopOnThis)) { - task.shutdown(); - _fireTaskListChange(new TaskListChangeEvent(TaskListChangeEvent.Type.Shutdown, task)); - } - } - - _removeStoppedTasksFromList(); - -} - COM: <s> stops any registered tasks that have an </s> - diff --git a/funcom_test/4452573.txt b/funcom_test/4452573.txt deleted file mode 100644 index e2e5e27a08b78b01b91f39c094c28b642c6555e8..0000000000000000000000000000000000000000 --- a/funcom_test/4452573.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void _removeStoppedTasksFromList() { - ArrayList<AbstractTask> isStoppedList = new ArrayList<AbstractTask>(); - - for (AbstractTask task : _taskList) { - if (task.isShutdown()) { - isStoppedList.add(task); - _fireTaskListChange(new TaskListChangeEvent(TaskListChangeEvent.Type.Unregister, task)); - } - } - - _taskList.removeAll(isStoppedList); -} - COM: <s> clears out all the tasks that have been stopped </s> - diff --git a/funcom_test/4453280.txt b/funcom_test/4453280.txt deleted file mode 100644 index 1507e8c7bdf61e146c9cc13302a45149458b695c..0000000000000000000000000000000000000000 --- a/funcom_test/4453280.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { - if (oldValue != null && newValue != null && oldValue.equals(newValue)) { - return; - } - pcs.firePropertyChange(propertyName, oldValue, newValue); - } - COM: <s> called whenever the value of a bound property is set </s> - diff --git a/funcom_test/4453291.txt b/funcom_test/4453291.txt deleted file mode 100644 index fc3fb1ca14912fef6d5bf638951619e81a334185..0000000000000000000000000000000000000000 --- a/funcom_test/4453291.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void exit(EventObject event) { - for (ExitListener listener : exitListeners) { - if (!listener.canExit(event)) { - return; - } - } - try { - for (ExitListener listener : exitListeners) { - try { - listener.willExit(event); - } - catch (Exception e) { - logger.log(Level.WARNING, "ExitListener.willExit() failed", e); - } - } - shutdown(); - } - catch (Exception e) { - logger.log(Level.WARNING, "unexpected error in Application.shutdown()", e); - } - finally { - end(); - } - } - COM: <s> gracefully shutdown the application </s> - diff --git a/funcom_test/4453376.txt b/funcom_test/4453376.txt deleted file mode 100644 index 018d8491057de910c0e8f51a3fbb0e57bd3951be..0000000000000000000000000000000000000000 --- a/funcom_test/4453376.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setFrame(JFrame frame) { - if (frame == null) { - throw new IllegalArgumentException("null JFrame"); - } - if (this.frame != null) { - logger.warning( "main frame is already set. operation will be ignored!"); - //throw new IllegalStateException("frame already set"); - return; - } - this.frame = frame; - firePropertyChange("frame", null, this.frame); - } - COM: <s> sets the jframe use to show this view </s> - diff --git a/funcom_test/4453379.txt b/funcom_test/4453379.txt deleted file mode 100644 index c47a26dd10fd7eae9273dc622d885d60a9fd0de3..0000000000000000000000000000000000000000 --- a/funcom_test/4453379.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setForegroundTask(Task foregroundTask) { - final Task oldTask = this.foregroundTask; - if (oldTask != null) { - oldTask.removePropertyChangeListener(taskPCL); - } - this.foregroundTask = foregroundTask; - Task newTask = this.foregroundTask; - if (newTask != null) { - newTask.addPropertyChangeListener(taskPCL); - } - firePropertyChange("foregroundTask", oldTask, newTask); - } - COM: <s> the task monitors property change listeners are fired each time </s> - diff --git a/funcom_test/4453447.txt b/funcom_test/4453447.txt deleted file mode 100644 index 579a3f81fda3c0d7017581a8b924ec7b1b2b166f..0000000000000000000000000000000000000000 --- a/funcom_test/4453447.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void save(Component root, String fileName) throws IOException { - checkSaveRestoreArgs(root, fileName); - Map<String, Object> stateMap = new HashMap<String, Object>(); - saveTree(Collections.singletonList(root), stateMap); - LocalStorage lst = getContext().getLocalStorage(); - lst.save(stateMap, fileName); - } - COM: <s> saves the state of each named component in the specified hierarchy to </s> - diff --git a/funcom_test/4453454.txt b/funcom_test/4453454.txt deleted file mode 100644 index f950f784ffcb0cb3d34a676ca9b3635088a1661d..0000000000000000000000000000000000000000 --- a/funcom_test/4453454.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void restore(Component root, String fileName) throws IOException { - checkSaveRestoreArgs(root, fileName); - LocalStorage lst = getContext().getLocalStorage(); - Map<String, Object> stateMap = (Map<String, Object>)(lst.load(fileName)); - if (stateMap != null) { - restoreTree(Collections.singletonList(root), stateMap); - } - } - COM: <s> restores each named component in the specified hierarchy </s> - diff --git a/funcom_test/4454132.txt b/funcom_test/4454132.txt deleted file mode 100644 index b6afd3e53c455c157d0f1bd873bee3848516daad..0000000000000000000000000000000000000000 --- a/funcom_test/4454132.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Object parse(Document jdoc, Container container) throws Exception { - this.jdoc = jdoc; - this.lbl_map.clear(); - this.mac_map.clear(); - - Object result = getSwing(processCustomAttributes(jdoc.getDocumentElement()), container); - - linkLabels(); - supportMacOS(); - - this.lbl_map.clear(); - this.mac_map.clear(); - - return result; - } - COM: <s> converts xml into a javax </s> - diff --git a/funcom_test/4454150.txt b/funcom_test/4454150.txt deleted file mode 100644 index b16e96f0010bd35d3725e21e2844ebe953e5b70f..0000000000000000000000000000000000000000 --- a/funcom_test/4454150.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void supportMacOS() { - if (SwingEngine.isMacOSXSupported() && SwingEngine.isMacOSX()) { - try { - Application.getInstance().getMacApp().update(mac_map); - } catch (Throwable t) { - // intentionally empty - if( logger.isLoggable(Level.FINE)) - logger.log( Level.WARNING, "supportMacOS invocation error", t ); - } - - } - } - COM: <s> link actions with the mac os system menu bar </s> - diff --git a/funcom_test/4459721.txt b/funcom_test/4459721.txt deleted file mode 100644 index e15b3551a42e6b76428233c9fd04e223ddbde179..0000000000000000000000000000000000000000 --- a/funcom_test/4459721.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void loadFile(String path) { - if (System.getProperty("os.name").toLowerCase().startsWith("win")) { - path = path.replace('\\', '/'); - } - sendCommand("loadfile " + path + " 0"); - timer = new Timer(); - timer.scheduleAtFixedRate(getPercentTask, 0, 1000); - } - COM: <s> this method will play an audio file </s> - diff --git a/funcom_test/44729721.txt b/funcom_test/44729721.txt deleted file mode 100644 index 65aab0b33b9d1d37002332f04f3daf049e4caf2b..0000000000000000000000000000000000000000 --- a/funcom_test/44729721.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void actionSelect(String fileName) { - NavigationElement element = null; - for (int i = 0; i < contentNames.length && null == element; i++) { - if (contentNames[i].getName().equals(fileName)) { - element = contentNames[i]; - } - } - - if (null != element) { - model.setCurrentElement(element); - } else { - // try to find the file "somewhere else" - model.openEntryByName(fileName); - } - } - COM: <s> handles selection of a file </s> - diff --git a/funcom_test/44729786.txt b/funcom_test/44729786.txt deleted file mode 100644 index 0ae6c78fc9968f123af7860b6d52aaa64aa36061..0000000000000000000000000000000000000000 --- a/funcom_test/44729786.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void build(File rootPath) { - - for (Iterator itGroups = getChilds().iterator(); itGroups.hasNext();) { - Group group = (Group) itGroups.next(); - group.loadComments(rootPath); - - for (Iterator itProjects = group.getChilds().iterator(); itProjects.hasNext();) { - Project project = (Project) itProjects.next(); - project.loadComments(rootPath); - - buildFolders(rootPath, project); - - } - - } - - } - COM: <s> build the full workspace by scanning all pathes for relevant </s> - diff --git a/funcom_test/44729842.txt b/funcom_test/44729842.txt deleted file mode 100644 index 76283f2f0706d3ed1a1683ec88acb011a5459911..0000000000000000000000000000000000000000 --- a/funcom_test/44729842.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void loadComments(File rootPath) { - if (commentFile != null && commentFile.length() != 0) { - File file = new File(rootPath, commentFile); - if (file.exists()) { - try { - comment = FilesContentReader.getBodyContent(file); - } catch (Exception e) { - log.error("Error loading comment", e); - comment = "Error loading comment: " + e; - } - } else { - log.warn("commentFile not found: " + file.getAbsolutePath()); - } - } - - } - COM: <s> load the comment from the file into the comment property </s> - diff --git a/funcom_test/44730203.txt b/funcom_test/44730203.txt deleted file mode 100644 index 8a601575d858bbe8c9482f8a166e07a5df07a213..0000000000000000000000000000000000000000 --- a/funcom_test/44730203.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void destroy() { - - application.preDestroy(); - if (state != STATE_DESTROYED) { - fireEvent(new SessionEvent(null), SESSION_STOPPED ); - state = STATE_DESTROYED; - for (Iterator<Control> it = controls.values().iterator(); it.hasNext(); ) { - Control control = it.next(); - it.remove(); - control.destroy(); - } - } - JWicRuntime.getJWicRuntime().sessionDestroyed(this); - application.postDestroy(); - - } - COM: <s> remove all controls in the context and destroy them </s> - diff --git a/funcom_test/44730265.txt b/funcom_test/44730265.txt deleted file mode 100644 index 5e506628d666d53826033d5962d967fdc1ff72af..0000000000000000000000000000000000000000 --- a/funcom_test/44730265.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void popTopControl() { - Control frameControl = getTopControl(); - stkTopControls.pop(); - if (!stkTopControls.empty()) { - Control fctrl = stkTopControls.lastElement(); - strTopControlID = fctrl.getControlID(); - if (frameControl instanceof Page && fctrl instanceof Page) { - ((Page)frameControl).setClientSettings((Page)fctrl); - } - } else { - strTopControlID = null; - } - setRequireRedraw(true); - } - COM: <s> remove the top control from the stack of visible controls </s> - diff --git a/funcom_test/44730329.txt b/funcom_test/44730329.txt deleted file mode 100644 index e028304cfd782004cc921e091659697ba98c6a4d..0000000000000000000000000000000000000000 --- a/funcom_test/44730329.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public SessionContainer create(String clientID, String applicationID) { - - Map<String, SessionContainer> sessionMap = getSessionMap(clientID); - - - long idNum = idCount++; - String id = idNum + "-" + System.currentTimeMillis(); - - SessionContainer store = new SessionContainer(id, clientID); - store.setApplicationId(applicationID); - - sessionMap.put(id, store); - - return store; - } - COM: <s> create a new session store object </s> - diff --git a/funcom_test/44730334.txt b/funcom_test/44730334.txt deleted file mode 100644 index 9a35c683259c7eb92713f96825f644b4c423ea30..0000000000000000000000000000000000000000 --- a/funcom_test/44730334.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public SessionContainer getByAppID(String clientID, String applicationID) { - Map<String, SessionContainer> sessionMap = getSessionMap(clientID); - - // iterate through the sessions to find one with the specified appId - for (Iterator<SessionContainer> it = sessionMap.values().iterator(); it.hasNext(); ) { - SessionContainer store = it.next(); - if (applicationID.equals(store.getApplicationId())) { - return store; - } - } - - return null; - } - COM: <s> returns the session store for the specified application id </s> - diff --git a/funcom_test/44730401.txt b/funcom_test/44730401.txt deleted file mode 100644 index f65c96f346225bb80c09200de7bf52d9fb99dbf6..0000000000000000000000000000000000000000 --- a/funcom_test/44730401.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected VelocityContext createContext(Control control) { - VelocityContext vCtx = new VelocityContext(); - vCtx.put("jwic", new JWicTools(control.getSessionContext().getLocale(), control.getSessionContext().getTimeZone())); - vCtx.put("escape", new StringEscapeUtils()); - return vCtx; - } - COM: <s> creates a new velocity context and adds standard objects </s> - diff --git a/funcom_test/44730415.txt b/funcom_test/44730415.txt deleted file mode 100644 index b7e9457f05b9711393cbbddc047a6f187ec7bc35..0000000000000000000000000000000000000000 --- a/funcom_test/44730415.txt +++ /dev/null @@ -1,35 +0,0 @@ -TDAT: public String formatInp(String text) { - - if (text == null) { - return ""; - } - - StringBuffer sbHTML = new StringBuffer(""); - //boolean newline = true; - - for(int i=0; i < text.length(); i++) - { - char c = text.charAt(i); - switch (c) { - case 34 : - sbHTML.append("""); - break; - case 60 : - sbHTML.append("<"); - break; - case 62 : - sbHTML.append(">"); - break; - case 38 : - sbHTML.append("&"); - break; - default : - sbHTML.append(c); - } - - } - - return sbHTML.toString(); - } - COM: <s> transforms html code into code that can </s> - diff --git a/funcom_test/44730583.txt b/funcom_test/44730583.txt deleted file mode 100644 index 781fa4a14d1e9ad3c179dae8519ae2433b36784a..0000000000000000000000000000000000000000 --- a/funcom_test/44730583.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void handleAuthentication(SessionContext sc, HttpServletRequest req, HttpServletResponse res) throws NotAuthenticatedException { - - if (sc.getProperty(SessionContext.PROP_AUTHENTICATION, "false").equals("true")) { - if (authenticator == null || !authenticator.isAuthenticated(req)) { - // redirect to login page - throw new NotAuthenticatedException(); - } - } - - } - COM: <s> checks module session authentication </s> - diff --git a/funcom_test/44730684.txt b/funcom_test/44730684.txt deleted file mode 100644 index 1c7b1f20637a0098befce4e0e1e61cec848d21a8..0000000000000000000000000000000000000000 --- a/funcom_test/44730684.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void notifyMessage(String message, String cssClazz, double duration, double delay) { - queueScriptCall("JWic.ui.Notify.display('" + StringEscapeUtils.escapeJavaScript(message) + "', '" + cssClazz + "', " + duration + ", " + delay + ");"); - } - COM: <s> displays a notification message with a custom css clazz and a custom delay </s> - diff --git a/funcom_test/44730786.txt b/funcom_test/44730786.txt deleted file mode 100644 index 93ddd3444d48f270bed88bf1f3b802a8bf569502..0000000000000000000000000000000000000000 --- a/funcom_test/44730786.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setMonitor(IProgressMonitor monitor) { - if (this.monitor != null) { - this.monitor.removeValueChangedListener(changeListener); - } - this.monitor = monitor; - // remove to prevent double registration when a monitor is set twice. - if (monitor != null) { - monitor.removeValueChangedListener(changeListener); - monitor.addValueChangedListener(changeListener); - } - requireRedraw(); - } - COM: <s> set the progress monitor </s> - diff --git a/funcom_test/44730795.txt b/funcom_test/44730795.txt deleted file mode 100644 index a09be9b1d1688cca85d0b2a20e7093cd3f9b8ca4..0000000000000000000000000000000000000000 --- a/funcom_test/44730795.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setColumnCount(int cols) { - if (cols < 1) { - throw new IllegalArgumentException("Argument wrong: Set column amount not 0 and not negative!"); - } - this.columnCount = cols; - cells = null; - if (colWidths == null) { - colWidths = new int[cols]; - } else { - int[] newCols = new int[cols]; - System.arraycopy(colWidths, 0, newCols, 0, colWidths.length > cols ? cols : colWidths.length); - colWidths = newCols; - } - requireRedraw(); - } - COM: <s> sets the amount of available columns of the grid layout container </s> - diff --git a/funcom_test/44730799.txt b/funcom_test/44730799.txt deleted file mode 100644 index 794d0caa508dfee63db13dee40e5fe873173eb45..0000000000000000000000000000000000000000 --- a/funcom_test/44730799.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getPercent() { - double total = monitor.getMaximum() - monitor.getMinimum(); - double value = monitor.getValue() - monitor.getMinimum(); - if (total == 0) { - return 0; // avoid div 0 - } - int proz = (int)(value / total * 100); - return proz > 100 ? 100 : proz < 0 ? 0 : proz; - } - COM: <s> returns the current percent value as int </s> - diff --git a/funcom_test/44730818.txt b/funcom_test/44730818.txt deleted file mode 100644 index 67998dc452c5023818cbf91f66b99485657d12df..0000000000000000000000000000000000000000 --- a/funcom_test/44730818.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setLayoutData(Control control, TableData layoutData) { - - if (control.getContainer() != this) { - throw new IllegalArgumentException("The specified control is not member of this container."); - } - - if (control instanceof TableLayoutContainer) { - allLayoutInfos.put(control.getName(), null); - } - else { - allLayoutInfos.put(control.getName(), layoutData != null ? layoutData : new TableData()); - } - requireRedraw(); - cells = null; - } - COM: <s> set the layout of a control inside of this container </s> - diff --git a/funcom_test/44731062.txt b/funcom_test/44731062.txt deleted file mode 100644 index 39b85bf939f38bd400d6caa8a48055c22081b7d2..0000000000000000000000000000000000000000 --- a/funcom_test/44731062.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public String createImageURL() { - return getSessionContext().getCallBackURL() + "&_resreq=1&controlId=" + ImageControl.this.getControlID() + (createUniqueURL ? "&time=" + System.currentTimeMillis() + "&" : "&") + getFilename(); - } - COM: <s> create a url to this image </s> - diff --git a/funcom_test/44731256.txt b/funcom_test/44731256.txt deleted file mode 100644 index c25b033d3a5360c138b5e65e4a787d964d7b312f..0000000000000000000000000000000000000000 --- a/funcom_test/44731256.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void loadChilds() { - childs = new ArrayList<FileTreeNode>(); - if (file.isDirectory()) { - File[] subdirs = file.listFiles(new FileFilter () { - public boolean accept(File pathname) { - return pathname.isDirectory(); - } - }); - if (subdirs != null) { - for (int i = 0; i < subdirs.length; i++) { - childs.add(new FileTreeNode(this, subdirs[i])); - } - } - } - } - COM: <s> load the list of subdirectories </s> - diff --git a/funcom_test/44731399.txt b/funcom_test/44731399.txt deleted file mode 100644 index a90eeac1dc5dfbca15c18b205eabd60301cda7bd..0000000000000000000000000000000000000000 --- a/funcom_test/44731399.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void loadFolderList() { - List<Folder> folders = new ArrayList<Folder>(); - if (file.isDirectory()) { - File[] files = file.listFiles(new FileFilter() { - /* (non-Javadoc) - * @see java.io.FileFilter#accept(java.io.File) - */ - public boolean accept(File f) { - return f.isDirectory(); - } - }); - for (File f : files) { - folders.add(new Folder(f)); - } - } - this.subFolders = folders; - } - COM: <s> initialize the folder list </s> - diff --git a/funcom_test/44731541.txt b/funcom_test/44731541.txt deleted file mode 100644 index be5c7133ff75f37ff1781a6d88b1a1f3d67350d2..0000000000000000000000000000000000000000 --- a/funcom_test/44731541.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testCreateRead() { - - - String clientID = "client1"; - String appID = "testapp"; - - SessionContainer store = manager.create(clientID, appID); - assertNotNull(store); - System.out.println("Storage created: " + store.getId()); - - String id = store.getId(); - store = manager.get(clientID, id); - assertNotNull(store); - assertEquals(id, store.getId()); - - - } - COM: <s> simply create a storage </s> - diff --git a/funcom_test/44731552.txt b/funcom_test/44731552.txt deleted file mode 100644 index e19428b00340ecb9073282c0a8514ce5f031e9da..0000000000000000000000000000000000000000 --- a/funcom_test/44731552.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void testActionInvoke() { - - ControlContainer root = (ControlContainer)control; - ActionTestControl atc = new ActionTestControl(root, "atc"); - - sendAction(atc, "test", ""); - assertTrue(atc.invoked); - - atc.invoked = false; - sendAction(atc, "Test", ""); - assertTrue(atc.invoked); - - try { - atc.invoked = false; - sendAction(atc, "TEST", ""); - fail("No error raised on call of unknown method."); - - } catch (IllegalArgumentException iae) { - // that was expected. - } - - } - COM: <s> test the automatic action invocation </s> - diff --git a/funcom_test/44731607.txt b/funcom_test/44731607.txt deleted file mode 100644 index 9c47b2894b8a441b5a8b4cddc72b059e95717caa..0000000000000000000000000000000000000000 --- a/funcom_test/44731607.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testAdd() { - - Button btOpen = new Button(actionBar); - Button btSave = new Button(actionBar); - Button btExit = new Button(actionBar); - - assertEquals(3, actionBar.getElements().size()); - Iterator<?> it = actionBar.getElements().iterator(); - - assertSame(btOpen, it.next()); - assertSame(btSave, it.next()); - assertSame(btExit, it.next()); - - } - COM: <s> adding controls in the right order </s> - diff --git a/funcom_test/44731610.txt b/funcom_test/44731610.txt deleted file mode 100644 index 122dac85ac1fd5b808bc346d1d88c37603b13372..0000000000000000000000000000000000000000 --- a/funcom_test/44731610.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testRemove() { - - Button btOpen = new Button(actionBar); - Button btSave = new Button(actionBar); - Button btExit = new Button(actionBar); - - assertEquals(3, actionBar.getElements().size()); - - btSave.destroy(); // remove - assertEquals(2, actionBar.getElements().size()); - - Iterator<?> it = actionBar.getElements().iterator(); - - assertSame(btOpen, it.next()); - assertSame(btExit, it.next()); - - } - COM: <s> removing controls from the action bar </s> - diff --git a/funcom_test/44731657.txt b/funcom_test/44731657.txt deleted file mode 100644 index 3782ed3b0079a9351f43a9f3a9b953402e076583..0000000000000000000000000000000000000000 --- a/funcom_test/44731657.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void expandAll(String nodeID) { - // expand all its parents - String parentID = null; - for (Enumeration<?> en = new StringTokenizer(nodeID, "-"); en.hasMoreElements();) { - String token = (String)en.nextElement(); - if (parentID != null) { - parentID += "-" + token; - } else { - parentID = token; - } - // expand parent - expand(parentID); - } - } - COM: <s> expands the node and all its parents </s> - diff --git a/funcom_test/44731695.txt b/funcom_test/44731695.txt deleted file mode 100644 index d8ca12ceaca39c4118d8291f53854f32d1e8611b..0000000000000000000000000000000000000000 --- a/funcom_test/44731695.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addColumn(TableColumn column, int index) { - - columns.add(index, column); - column.setIndex(index); - -//RPF: This IF causes trouble, when adding columns to the model after others with indexes before the end -//Then the tableviewer column resize does not work properly. a reindexcolumns is always necessary! -// if (index == columns.size() - 1) { - reindexColumns(); -// } - - } - COM: <s> add a column to the list at given index </s> - diff --git a/funcom_test/44731811.txt b/funcom_test/44731811.txt deleted file mode 100644 index 0f8962d6c0122d51d79c01dfee5bafa6f4dafd17..0000000000000000000000000000000000000000 --- a/funcom_test/44731811.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void fireSelectionEvent(String selectedElement, boolean dblClick) { - ElementSelectedEvent event = new ElementSelectedEvent(this, selectedElement, dblClick); - Object[] list = selectionListeners.toArray(); - for (int i = 0; i < list.length; i++) { - ElementSelectedListener listener = (ElementSelectedListener)list[i]; - listener.elementSelected(event); - } - } - COM: <s> notify element selected listeners </s> - diff --git a/funcom_test/44732250.txt b/funcom_test/44732250.txt deleted file mode 100644 index 91123de0dce6fa695d9226e04aa9192ad4133fa0..0000000000000000000000000000000000000000 --- a/funcom_test/44732250.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected void updateOrder() { - - if (!inAddMode) { - StringTokenizer stk = new StringTokenizer(fldOrder.getValue(), ";"); - int idx = 0; - while (stk.hasMoreTokens()) { - Integer id = Integer.parseInt(stk.nextToken()); - ColumnStub col = idColumnMap.get(id); - if (col != null) { - col.setSortIndex(idx); - } - idx++; - } - - Collections.sort(columns); - fireEvent(EventType.COLUMN_UPDATED, new ColumnSelectorEvent(this)); - } - - } - COM: <s> re order the columns as from the list </s> - diff --git a/funcom_test/44732487.txt b/funcom_test/44732487.txt deleted file mode 100644 index dda40830766305d3a8c3f755d1fd8c6f1813f648..0000000000000000000000000000000000000000 --- a/funcom_test/44732487.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void doSetTime() { - String input = ibcDisplay.getText(); - Date date = null; - //Parse - try { - date = timePicker.getDateFormatter().parse(input); - Date tpTime = timePicker.getTime(); - if (!tpTime.equals(date)) { - timePicker.setTime(date); - } - } catch (ParseException e) { - errCtrl.setText("Unable to parse input as date."); - errCtrl.setVisible(true); - } - } - COM: <s> allows user to manually input a time that will update </s> - diff --git a/funcom_test/44769645.txt b/funcom_test/44769645.txt deleted file mode 100644 index 7cc21641ba7a3c0e1bbd04bd60e7dc7a25f33b00..0000000000000000000000000000000000000000 --- a/funcom_test/44769645.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void removePlugin(ComponentListener component) { - ArrayList<DEdge<ComponentListener, ListenableComponent>> c = getAssociations(component); - - try { - //Notify listeners - component.shutdown(); - - //Remove associations - for (DEdge<ComponentListener, ListenableComponent> e : c) - { - delAssociation(e.getHead(), e.getTail()); - } - - components.delNode(component); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> removes a plugin from the graph </s> - diff --git a/funcom_test/44769647.txt b/funcom_test/44769647.txt deleted file mode 100644 index c1959534a8621de36930af8f66ffddd23b48324f..0000000000000000000000000000000000000000 --- a/funcom_test/44769647.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void addAssociation(ComponentListener component, ListenableComponent target) { - if ( component != null && target != null && component != target) - { - if (!components.containsNode(component)) - components.addNode(component); - - if (!components.containsNode(target)) - components.addNode(target); - - DEdge<ComponentListener, ListenableComponent> association = new DEdge<ComponentListener, ListenableComponent>(component, target); - if (!components.containsEdge(association)) - { - components.addEdge(association); - target.addComponentListener(component); - } - } - } - COM: <s> create an association between two components </s> - diff --git a/funcom_test/44769655.txt b/funcom_test/44769655.txt deleted file mode 100644 index 2138981165c4e244f1dea4ad2cc9228f46579386..0000000000000000000000000000000000000000 --- a/funcom_test/44769655.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public boolean associationExists(ComponentListener component, ListenableComponent target) { - return !(component == null || target == null || components.containsNode(component) || components.containsNode(target)) - && (components.containsEdge(new DEdge<ComponentListener, ListenableComponent>(component, target))); - } - COM: <s> see if a particular association exists given a direction </s> - diff --git a/funcom_test/4479137.txt b/funcom_test/4479137.txt deleted file mode 100644 index 887480aa9923828d4d0b795d4b88294b0a54c19f..0000000000000000000000000000000000000000 --- a/funcom_test/4479137.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetX() { - assertTrue(pawn.getX() == 1); - assertTrue(pawn1.getX() == 1); - assertTrue(pawn2.getX() == 3); - assertTrue(pawn3.getX() == 4); - assertTrue(pawn4.getX() == 6); - assertTrue(pawn5.getX() == 6); - } - COM: <s> tests the get x accessor in pawn class </s> - diff --git a/funcom_test/4479139.txt b/funcom_test/4479139.txt deleted file mode 100644 index 6bfc01e787caa0ba3d086b49f41b0ebecaeaa1f2..0000000000000000000000000000000000000000 --- a/funcom_test/4479139.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetY() { - assertTrue(pawn.getY() == 2); - assertTrue(pawn1.getY() == 4); - assertTrue(pawn2.getY() == 2); - assertTrue(pawn3.getY() == 4); - assertTrue(pawn4.getY() == 1); - assertTrue(pawn5.getY() == 6); - } - COM: <s> tests the get y accessor in pawn class </s> - diff --git a/funcom_test/4479146.txt b/funcom_test/4479146.txt deleted file mode 100644 index 70888dfaacc219de64a1a6a5808e08db04441075..0000000000000000000000000000000000000000 --- a/funcom_test/4479146.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testSetType() { - pawn.setType("Green"); //sets the type of pawn to "Green" - assertTrue(pawn.getType().equals("Green")); //checks whether the type of pawn has been changed or not - pawn.setType(" Pawn "); //sets back the type of the pawn - } - COM: <s> tests the set type mutator in pawn class </s> - diff --git a/funcom_test/4479152.txt b/funcom_test/4479152.txt deleted file mode 100644 index 0db05df4a9c3f88017c3c98791f3e843d2d20e58..0000000000000000000000000000000000000000 --- a/funcom_test/4479152.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testChangePosition() { - int dest = 7; - pawn.changePosition(dest,dest); //changes the position of the pawn - assertTrue((pawn.getX() == dest) && (pawn.getY() == dest)); //confirms that the position has been changed - - pawn.changePosition(1,2); //puts the pawn back to its origin - } - COM: <s> tests the change position mutator in pawn class </s> - diff --git a/funcom_test/4479155.txt b/funcom_test/4479155.txt deleted file mode 100644 index 3a62e8e7883bebd7cbe52a117f7e684ec9f2418d..0000000000000000000000000000000000000000 --- a/funcom_test/4479155.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void setUp() throws Exception { - Knight knight = new Knight(5, 5, board, "White"); - board.add(knight); - Pawn pawn1 = new Pawn(3, 4, board, "White"); - board.add(pawn1); - Pawn pawn2 = new Pawn(4,5,board, "White"); - board.add(pawn2); - Pawn pawn3 = new Pawn(7,5,board, "Black"); - board.add(pawn3); - King king = new King(4,7,board, "Black"); - board.add(king); - King king2 = new King(5,3,board, "White"); - board.add(king2); - board.print(); - super.setUp(); - } - COM: <s> set up the board to test the upcoming methods </s> - diff --git a/funcom_test/4479158.txt b/funcom_test/4479158.txt deleted file mode 100644 index 14bbf1c0e5b629ea56f84bf3be7ff0862e94c978..0000000000000000000000000000000000000000 --- a/funcom_test/4479158.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetX() { - assertTrue(bishop.getX() == 2); - assertTrue(bishop1.getX() == 5); - assertTrue(bishop2.getX() == 2); - assertTrue(bishop3.getX() == 5); - assertTrue(bishop4.getX() == 2); - assertTrue(bishop5.getX() == 5); - } - COM: <s> tests the get x accessor in bishop class </s> - diff --git a/funcom_test/4479160.txt b/funcom_test/4479160.txt deleted file mode 100644 index ee67919cae6e71809d8d216d456b07dab6f5da9c..0000000000000000000000000000000000000000 --- a/funcom_test/4479160.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetY() { - assertTrue(bishop.getY() == 0); - assertTrue(bishop1.getY() == 0); - assertTrue(bishop2.getY() == 3); - assertTrue(bishop3.getY() == 4); - assertTrue(bishop4.getY() == 7); - assertTrue(bishop5.getY() == 7); - } - COM: <s> tests the get y accessor in bishop class </s> - diff --git a/funcom_test/4479164.txt b/funcom_test/4479164.txt deleted file mode 100644 index 50321053179d4fef26e8805ca91b14235e72d3fe..0000000000000000000000000000000000000000 --- a/funcom_test/4479164.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testIsEqual() { - Knight knight = new Knight(5, 5, board, "White"); - King king = new King(4,7,board, "Black"); - assertTrue(knight.isEqual(knight)); //should be equal since they are same pieces. - assertFalse(knight.isEqual(king)); //shoulden't be equal since they are different pieces. - } - COM: <s> test id two pieces are equal </s> - diff --git a/funcom_test/4479165.txt b/funcom_test/4479165.txt deleted file mode 100644 index f424360a5c05f1d238ab5df086dd4b7b6db4648a..0000000000000000000000000000000000000000 --- a/funcom_test/4479165.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetType() { - assertTrue(bishop.getType() == " Bishop "); - assertTrue(bishop1.getType() == " Bishop "); - assertTrue(bishop2.getType() == "BK-Bishop"); - assertTrue(bishop3.getType() == " Bishop "); - assertTrue(bishop4.getType() == "BK-Bishop"); - assertTrue(bishop5.getType() == "BK-Bishop"); - } - COM: <s> tests the get type accessor in bishop class </s> - diff --git a/funcom_test/4479167.txt b/funcom_test/4479167.txt deleted file mode 100644 index d8f8b4438a29348d1e4a794c46baa559d0670d9c..0000000000000000000000000000000000000000 --- a/funcom_test/4479167.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testGetSide() { - assertTrue(bishop.getSide() == "White"); - assertTrue(bishop1.getSide() == "White"); - assertTrue(bishop2.getSide() == "Black"); - assertTrue(bishop3.getSide() == "White"); - assertTrue(bishop4.getSide() == "Black"); - assertTrue(bishop5.getSide() == "Black"); - } - COM: <s> tests the get side accessor in bishop class </s> - diff --git a/funcom_test/4479169.txt b/funcom_test/4479169.txt deleted file mode 100644 index 4ff5b6a1fd00c8a7f327c7c1675f130d92acc3bd..0000000000000000000000000000000000000000 --- a/funcom_test/4479169.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void testRook() { - Rook testingRook8 = new Rook(2,5, testingBoard, "White"); - assertEquals(testingRook8.getX(), 2); - assertEquals(testingRook8.getY(), 5); - assertTrue(testingRook8.board.equals(testingBoard)); - assertFalse(testingRook8.getClass().equals(NullPiece.class)); - assertEquals(testingRook8.getType(), " Rook "); - assertEquals(testingRook8.getSide(), "White"); - - } - COM: <s> test method for </s> - diff --git a/funcom_test/4479175.txt b/funcom_test/4479175.txt deleted file mode 100644 index 7f8ff0899f60932085ba4baa1f073eb3d435bedc..0000000000000000000000000000000000000000 --- a/funcom_test/4479175.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testChangePosition() { - //Point newP = new Point(7,7); - int dest = 7; - bishop.changePosition(dest, dest); //changes the position of the bishop - assertTrue(bishop.getX() == 7 && bishop.getY() == 7); //confirms that the position has been changed - - bishop.changePosition(2,0); //puts the bishop back to its origin - } - COM: <s> tests the change position mutator in bishop class </s> - diff --git a/funcom_test/44800050.txt b/funcom_test/44800050.txt deleted file mode 100644 index 567314cafe707c3b91b96fd4327b68f09ba28200..0000000000000000000000000000000000000000 --- a/funcom_test/44800050.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean isActiveNow() throws AuthorizationException { - - long now = System.currentTimeMillis(); - long start = mAuth.getEffectiveDate().getTime(); - long end = mAuth.getExpirationDate().getTime(); - - if (start<=now && end >= now) { - return true; - } - else { - return false; - } - } - COM: <s> return true if this authorization is effective false otherise </s> - diff --git a/funcom_test/44800092.txt b/funcom_test/44800092.txt deleted file mode 100644 index f3e177a35ce41a7a6b0953e1115089379ab918ff..0000000000000000000000000000000000000000 --- a/funcom_test/44800092.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testAssignOsidContext() { - System.out.println("testAssignOsidContext"); - - // TODO add your test code below by replacing the default call to fail. - try { - OsidContext oc = new OsidContext(); - azMgr.assignOsidContext(oc); - System.out.println("Empty context assigned"); - } catch (OsidException oe) { - fail("OsidException: "+oe.getMessage()); - } - - -} - COM: <s> test of assign osid context method of class edu </s> - diff --git a/funcom_test/44800098.txt b/funcom_test/44800098.txt deleted file mode 100644 index 8862df020aedec8ee3b40f31da9386ee958bd7b7..0000000000000000000000000000000000000000 --- a/funcom_test/44800098.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testAssignConfiguration() { - System.out.println("testAssignConfiguration"); - - try { - Properties p = new Properties(); - azMgr.assignConfiguration(p); - System.out.println("Empty config assigned"); - } catch (OsidException oe) { - fail("OsidException: "+oe.getMessage()); - } - - -} - COM: <s> test of assign configuration method of class edu </s> - diff --git a/funcom_test/44800176.txt b/funcom_test/44800176.txt deleted file mode 100644 index 3a50610b25e83f6e85169c85417f23ee48aaedd6..0000000000000000000000000000000000000000 --- a/funcom_test/44800176.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testSupportsMaintenance() { - System.out.println("testSupportsMaintenance"); - try { - boolean b = azMgr.supportsMaintenance(); - if (b) { - fail("should NOT supportMaintenance"); - } else { - System.out.println("does not support Maintenance"); - } - } catch (AuthorizationException oe) { - fail("AuthException:"+oe.getMessage()); - - } -} - COM: <s> test of supports maintenance method of class edu </s> - diff --git a/funcom_test/44800184.txt b/funcom_test/44800184.txt deleted file mode 100644 index 30076740ef488279733b9146d87ecf2444d41dea..0000000000000000000000000000000000000000 --- a/funcom_test/44800184.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testSupportsDesign() { - System.out.println("testSupportsDesign"); - try { - - boolean b = azMgr.supportsDesign(); - if (b) { - fail("should NOT supportDesign"); - } else { - System.out.println("Does not support Design"); - } - } catch (Throwable t) { - fail("ludicrously fails"); - } -} - COM: <s> test of supports design method of class edu </s> - diff --git a/funcom_test/44800271.txt b/funcom_test/44800271.txt deleted file mode 100644 index b51d9462b27a73812138ffbad809a7773f56732e..0000000000000000000000000000000000000000 --- a/funcom_test/44800271.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean isUserAuthorized(org.osid.shared.Id functionId, org.osid.shared.Id qualifierId) throws org.osid.authorization.AuthorizationException { - if (null== mAgentId) { - throw new AuthorizationException(AuthorizationException.OPERATION_FAILED); - } - return isAuthorized(mAgentId, functionId, qualifierId); - } - COM: <s> given a function id and qualifier id returns true if the user is </s> - diff --git a/funcom_test/44800273.txt b/funcom_test/44800273.txt deleted file mode 100644 index 7f6c1528509e90074459dccb8fd09d04628ec836..0000000000000000000000000000000000000000 --- a/funcom_test/44800273.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testGetOsidContext() { - System.out.println("testGetOsidContext"); - - try { - OsidContext oc = azMgr.getOsidContext(); - System.out.println("Context:"+oc); - } catch (OsidException oe) { - fail("OsidException: "+oe.getMessage()); - } - -} - COM: <s> test of get osid context method of class edu </s> - diff --git a/funcom_test/44800359.txt b/funcom_test/44800359.txt deleted file mode 100644 index 2a8d45baaa2e40fe8eeac3ab7b6c9db899b33522..0000000000000000000000000000000000000000 --- a/funcom_test/44800359.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String makeCacheKey(org.osid.shared.Id fid, org.osid.shared.Id qid) throws AuthorizationException { - String retval; - try { - retval = fid.getIdString()+"/"+ qid.getIdString(); - } catch (org.osid.shared.SharedException oe) { - throw new AuthorizationException(AuthorizationException.OPERATION_FAILED); - } - return retval; - - } - COM: <s> creates a cache key from the oki object </s> - diff --git a/funcom_test/44800959.txt b/funcom_test/44800959.txt deleted file mode 100644 index 039dd2b88efcf5f3e21f1d867acf3c9e7338bb81..0000000000000000000000000000000000000000 --- a/funcom_test/44800959.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean equals(Object obj) { - - boolean retval = false; - - if (! (obj instanceof PersistentNode)) { - return false; - } - - PersistentNode other = (PersistentNode) obj; - - if (this.getHierarchy().getPrivateId() == other.getHierarchy().getPrivateId() && this.getUserNodeId() == other.getUserNodeId()) { - retval = true; - } - - return retval; - - } - COM: <s> equality of a persistent node is based on its user assigned node id </s> - diff --git a/funcom_test/44801042.txt b/funcom_test/44801042.txt deleted file mode 100644 index 802ff79e775db836c95d422253baed0a4f30b6d8..0000000000000000000000000000000000000000 --- a/funcom_test/44801042.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testCreateNode() { - - System.out.println("testCreateNode"); - - //it is a nuisance that Osid exceptions are not Java exceptions - try { - test_h1= populateHierarchy(); - } - catch (Throwable t) { - fail(t.getMessage()); - } - - cleanupHierarchy(test_h1); - } - COM: <s> test of create node method of class edu </s> - diff --git a/funcom_test/44801457.txt b/funcom_test/44801457.txt deleted file mode 100644 index 2a60f7b86af0a60c69716e19d65dcbb4d5af0ce3..0000000000000000000000000000000000000000 --- a/funcom_test/44801457.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void initialize() { - MibSymbol symbol; - ObjectIdentifierValue oid; - - oid = new ObjectIdentifierValue("iso", 1); - symbol = new MibValueSymbol(new FileLocation(null, -1, -1), - null, - "iso", - new ObjectIdentifierType(), - oid); - oid.setSymbol((MibValueSymbol) symbol); - symbols.put("iso", symbol); - } - COM: <s> initializes this context by creating all default symbols </s> - diff --git a/funcom_test/44801469.txt b/funcom_test/44801469.txt deleted file mode 100644 index 718afa73a6f345020d44b83ffef17124e43b3c9d..0000000000000000000000000000000000000000 --- a/funcom_test/44801469.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String readLine() { - BufferedReader input; - String str = null; - - if (file == null || line < 0) { - return null; - } - try { - input = new BufferedReader(new FileReader(file)); - for (int i = 0; i < line; i++) { - str = input.readLine(); - } - input.close(); - } catch (IOException e) { - return null; - } - return str; - } - COM: <s> reads the specified line from the file </s> - diff --git a/funcom_test/44801646.txt b/funcom_test/44801646.txt deleted file mode 100644 index 5aba8fb5c998faff0335b5dae2dd6a85fa438f6b..0000000000000000000000000000000000000000 --- a/funcom_test/44801646.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Mib load(String name) throws IOException, MibLoaderException { - MibSource src; - Mib mib; - - mib = getMib(name); - if (mib == null) { - src = locate(name); - if (src == null) { - throw new FileNotFoundException("couldn't locate MIB: '" + - name + "'"); - } - mib = load(src); - } - return mib; - } - COM: <s> loads a mib file with the specified base name </s> - diff --git a/funcom_test/44801904.txt b/funcom_test/44801904.txt deleted file mode 100644 index 2b1bc196c0e3cc94be16f6bb9f262adec58c08a6..0000000000000000000000000000000000000000 --- a/funcom_test/44801904.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void loadMib() { - JFileChooser dialog = new JFileChooser(); - Loader loader; - File[] files; - - dialog.setMultiSelectionEnabled(true); - dialog.showOpenDialog(this); - files = dialog.getSelectedFiles(); - if (files.length > 0) { - descriptionArea.setText(""); - loader = new Loader(files); - loader.start(); - } - } - COM: <s> opens the load mib dialog </s> - diff --git a/funcom_test/44825375.txt b/funcom_test/44825375.txt deleted file mode 100644 index 719f365b594d080b7bdbf5e60d40d56c9803bb21..0000000000000000000000000000000000000000 --- a/funcom_test/44825375.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void zoomOneToTwoStateChanged(ChangeEvent evt) { - if (((JRadioButtonMenuItem) evt.getSource()).isSelected()) { - if (models.zoom != null) { - if (models.zoom.getZoomLevel() != 2.0) { - models.zoom.setZoomLevel(2.0); - } - } - } - } - COM: <s> zoom slider event handler may be called either programatically </s> - diff --git a/funcom_test/45004161.txt b/funcom_test/45004161.txt deleted file mode 100644 index 7cc7ed50fd7aaa2af562c6480657e95c81183f5b..0000000000000000000000000000000000000000 --- a/funcom_test/45004161.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getPlayerBidOnAuction(String playerName, int auctionID) { - - // return 0 if the requested auction doesn't exist - MarketListing currList = currentAuctions.get(auctionID); - if (currList == null) - return 0; - - // return 0 if the player hasn't bid - MarketBid playersBid = currList.getAllBids().get(playerName.toLowerCase()); - if (playersBid == null) - return 0; - - // a real bid exists. return its amount. - return playersBid.getAmount(); - } - COM: <s> method which gets a players bid on a given auction </s> - diff --git a/funcom_test/45004503.txt b/funcom_test/45004503.txt deleted file mode 100644 index 50fdc8f5583c7be21add915a275fb2695ebc2267..0000000000000000000000000000000000000000 --- a/funcom_test/45004503.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void clearAllDisconnectionTracks(ShortOperation so) { - for (String currN : so.getAllPlayerNames()) { - String lowerName = currN.toLowerCase(); - OpsDisconnectionThread discoThread = disconnectionThreads.get(lowerName); - if (discoThread != null) { - discoThread.playerReturned(false, 0); - disconnectionThreads.remove(lowerName); - } - disconnectionDurations.remove(lowerName); - disconnectionTimestamps.remove(lowerName); - }//end foreach (Player in game) - }//end clearAllDisconnectionTracks - COM: <s> method which clears all references to a player in the </s> - diff --git a/funcom_test/45004512.txt b/funcom_test/45004512.txt deleted file mode 100644 index b20f1001a5cc6cfc6c4e818605b02cd193683c7e..0000000000000000000000000000000000000000 --- a/funcom_test/45004512.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int compareTo(LongOperation o) { - - try{ - LongOperation compOp = o; - if (compOp.getID() > this.getID()) - return 1; - else if (compOp.getID() == this.getID()) - return 0; - else - return -1; - }catch(Exception ex){ - return 0; - } - } - COM: <s> compare to required for compliance with comparable interface </s> - diff --git a/funcom_test/45004528.txt b/funcom_test/45004528.txt deleted file mode 100644 index 3ea9c232dc49752112533be35dd592b65e1a6bb7..0000000000000000000000000000000000000000 --- a/funcom_test/45004528.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String validateShortAttack(SPlayer ap, SArmy aa, Operation o, SPlanet target, int longID, boolean joiningAttack) { - ArrayList<Integer> failures = this.shortValidator.validateShortAttacker(ap, aa, o, target, longID, joiningAttack); - if (failures.size() > 0) - return this.shortValidator.failuresToString(failures); - - return null; - } - COM: <s> method which passes information from attack command </s> - diff --git a/funcom_test/45004600.txt b/funcom_test/45004600.txt deleted file mode 100644 index fcef9483615e8cb42d190d8df6ff65e621f09a78..0000000000000000000000000000000000000000 --- a/funcom_test/45004600.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int getLongID(SHouse h, SPlanet p) { - - Iterator<LongOperation> i = activeLongOps.values().iterator(); - while (i.hasNext()) { - LongOperation currL = i.next(); - SHouse attacker = currL.getAttackingHouse(); - SPlanet planet = currL.getTargetWorld(); - if (attacker.equals(h) && planet.equals(p)) - return currL.getID(); - } - return -1; - } - COM: <s> method which returns the id of a specific long </s> - diff --git a/funcom_test/45004628.txt b/funcom_test/45004628.txt deleted file mode 100644 index 0f3b484c3f0327ddabb2530f812ef92c84a4cc38..0000000000000000000000000000000000000000 --- a/funcom_test/45004628.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int playerIsAnAttacker(SPlayer p) { - for (ShortOperation currO : this.getRunningOps().values()) { - if (currO.getAttackers().get(p.getName().toLowerCase()) != null && currO.getStatus() != ShortOperation.STATUS_FINISHED) - return currO.getShortID(); - } - return -1; - } - COM: <s> method which checks whether or not a player is </s> - diff --git a/funcom_test/45004871.txt b/funcom_test/45004871.txt deleted file mode 100644 index 3d74761fb35aa50fa07019f0f94b56083aca1e42..0000000000000000000000000000000000000000 --- a/funcom_test/45004871.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean maySellOnBM() { - StringTokenizer blockedFactions = new StringTokenizer(this.getConfig("BMNoSell"), "$"); - while (blockedFactions.hasMoreTokens()) { - if (getName().equals(blockedFactions.nextToken())) { - return false; - } - } - return true; - } - COM: <s> simple method which determines whether a given shouse and its players </s> - diff --git a/funcom_test/45004892.txt b/funcom_test/45004892.txt deleted file mode 100644 index 00093d0d8ad35415ab2d95418f7e74878585baf8..0000000000000000000000000000000000000000 --- a/funcom_test/45004892.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void removePossibleDefender(String name, boolean penalize) { - String currName = name.toLowerCase(); - OpsChickenThread currT = chickenThreads.get(currName); - if (currT == null) { - return; - } - - if (penalize) { - currT.doPenalty(); - } - currT.stopChicken(); - chickenThreads.remove(currName); - } - COM: <s> method which removes a potential defender from the chicken tree </s> - diff --git a/funcom_test/45004901.txt b/funcom_test/45004901.txt deleted file mode 100644 index 112ebbc21fad1513d5a9a54834e228931e1836a2..0000000000000000000000000000000000000000 --- a/funcom_test/45004901.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getInfo(boolean complete, boolean mod) { - - if (currentStatus == STATUS_WAITING) { - return getWaitingInfo(complete); - } else if (currentStatus == STATUS_INPROGRESS || currentStatus == STATUS_REPORTING) { - return getInProgressInfo(complete, mod); - } else if (currentStatus == STATUS_FINISHED) { - return getFinishedInfo(complete, mod); - } else { - return ""; - } - } - COM: <s> method which returns information string on this short operation </s> - diff --git a/funcom_test/45005016.txt b/funcom_test/45005016.txt deleted file mode 100644 index df814eea146116c921d1b265448acae803f66f34..0000000000000000000000000000000000000000 --- a/funcom_test/45005016.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void part(MWChatClient client, boolean isSignoff) { - String userId = client.getUserId(); - synchronized (_users) { - if (_users.remove(client)) { - // we only send ack if not signing off. - if (_server.getClient(userId) != null) { - client.ackPartRoom(_roomName); - } - - notifyPart(userId, isSignoff); - } - } - deop(client); - } - COM: <s> remove a user from this room </s> - diff --git a/funcom_test/45005018.txt b/funcom_test/45005018.txt deleted file mode 100644 index 532aa50973bc8beb920402841e947c1d177a4aa6..0000000000000000000000000000000000000000 --- a/funcom_test/45005018.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Auth authenticate(MWChatClient client, String password) throws Exception{ - // allow/store Guests ignored - String newUserId = client.getUserId(); - /*int i = 1; - while (getUserId(newUserId) != null) { - newUserId = newUserId + i; - i++; - }*/ - return new Auth(newUserId, GUEST); - } - COM: <s> handles username conflicts by appending integers until it finds an unused one </s> - diff --git a/funcom_test/45005028.txt b/funcom_test/45005028.txt deleted file mode 100644 index cea7a6120ecd5675950d65f68796162eefeb2589..0000000000000000000000000000000000000000 --- a/funcom_test/45005028.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean contains(String userId) { - long now = System.currentTimeMillis(); - synchronized (_users) { - for (Iterator<UserRecord> i = _users.iterator(); i.hasNext(); ) { - UserRecord u = i.next(); - if (now > u.whenAdded + _seconds * 1000) { - i.remove(); - } else if (u.userId.equalsIgnoreCase(userId)) { - return true; - } - } - } - return false; - } - COM: <s> determines if user id is currently in list </s> - diff --git a/funcom_test/45005210.txt b/funcom_test/45005210.txt deleted file mode 100644 index e06e0609a766fd87dd6ab708feee0d4d75e2747e..0000000000000000000000000000000000000000 --- a/funcom_test/45005210.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private int getFreeID() { - int id = 0; - boolean found = false; - while (!found) { - found = true; - for (int i = 0; i < units.size(); i++) { - if (units.get(i).getPosId() == id) { - found = false; - id++; - } - } - } - return id; - } - COM: <s> simple private method which returns the next available free position id </s> - diff --git a/funcom_test/45005235.txt b/funcom_test/45005235.txt deleted file mode 100644 index 3f7675511605986193c61ef92c6e0ff2be7f4938..0000000000000000000000000000000000000000 --- a/funcom_test/45005235.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int getAttackersBV() { - int bv = 0; - - for (String attacker : getAttackers().keySet()) { - SPlayer player = CampaignMain.cm.getPlayer(attacker); - - if (player != null) { - SArmy army = player.getArmy(getAttackers().get(attacker)); - if (army != null) { - bv += army.getBV(); - } - } - - } - return bv; - } - COM: <s> gets the total bv for the combined attacking forces </s> - diff --git a/funcom_test/45005356.txt b/funcom_test/45005356.txt deleted file mode 100644 index af46bccbda503f72c0e2c2ddc9cff3280b5b8bc8..0000000000000000000000000000000000000000 --- a/funcom_test/45005356.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean getAccessLevels(CampaignData Data) { - try { - BinReader in = openConnection("CommandAccessLevels"); - - Data.importAccessLevels(in); - // in.close(); - } catch (IOException e) { - CampaignData.mwlog.errLog(e); - return false; - } catch (RuntimeException e) { - CampaignData.mwlog.errLog(e); - return false; - } - return true; - } - COM: <s> transfer the access levels of all the commands but only save the ones </s> - diff --git a/funcom_test/45005385.txt b/funcom_test/45005385.txt deleted file mode 100644 index aa7d6bc151e3332fceb9d431f1bc909a968139a0..0000000000000000000000000000000000000000 --- a/funcom_test/45005385.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int userCount(boolean includeDeds) { - - if (includeDeds) { - return users.size(); - } - - // else, no deds. filter the list. - synchronized (users) { - int toReturn = users.size(); - for (String client : users.keySet()) { - if (client.toLowerCase().indexOf("[dedicated]") >= 0 || client.toLowerCase().startsWith("nobody")) { - toReturn--;// decrease count - } - } - return toReturn; - } - - } - COM: <s> method which returns the number of users who are not dedicated hosts or </s> - diff --git a/funcom_test/45005393.txt b/funcom_test/45005393.txt deleted file mode 100644 index 7934d5d3735e89d3b0a84c12968823f9ca552784..0000000000000000000000000000000000000000 --- a/funcom_test/45005393.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void loadImage(String imagename, String image, int width, int height) { - if (imagename.equals("")) { - return; - } - try { - images.put(image, new ImageIcon(new ImageIcon(imagename).getImage().getScaledInstance(width, height, Image.SCALE_DEFAULT))); - } catch (Exception ex) { - CampaignData.mwlog.errLog(ex); - } - } - COM: <s> load an image </s> - diff --git a/funcom_test/45005423.txt b/funcom_test/45005423.txt deleted file mode 100644 index 680a360b27a852bff4d54adfa483a287bd60bc06..0000000000000000000000000000000000000000 --- a/funcom_test/45005423.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setBMData(String command) { - - //create tokenizer - StringTokenizer mainTokenizer = new StringTokenizer(command, "$"); - - //clear all current BM data - BlackMarket.clear(); - - while(mainTokenizer.hasMoreTokens()) { - boolean hidden = Boolean.parseBoolean(mwclient.getserverConfigs("HiddenBMUnits")); - CBMUnit currBMUnit = new CBMUnit(TokenReader.readString(mainTokenizer), this, hidden); - BlackMarket.put(currBMUnit.getAuctionID(), currBMUnit); - } - } - COM: <s> method that reads data generated by market2 </s> - diff --git a/funcom_test/45005473.txt b/funcom_test/45005473.txt deleted file mode 100644 index b8967a3de0ce75945ea397b2859cd373aec0a4ba..0000000000000000000000000000000000000000 --- a/funcom_test/45005473.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setHangarData(String data) { - try { - CUnit unit = new CUnit(mwclient); - if (unit.setData(data)) { - Hangar.add(unit); - sortHangar();// sort it! - } - } catch (Exception e) { - CampaignData.mwlog.errLog(e); - return; - } - } - COM: <s> called by pl hd adds a single unit to the hangar </s> - diff --git a/funcom_test/45005478.txt b/funcom_test/45005478.txt deleted file mode 100644 index 88c7353a17b4737319bc0a37a621d81aeda689e7..0000000000000000000000000000000000000000 --- a/funcom_test/45005478.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void updateUnitData(StringTokenizer st) { - try { - CUnit currUnit = getUnit(TokenReader.readInt(st)); - currUnit.setData(TokenReader.readString(st)); - sortHangar();// properties have changes. sort. YARR! - } catch (Exception e) { - CampaignData.mwlog.errLog(e); - return; - } - } - COM: <s> called by pl uu updates a units data </s> - diff --git a/funcom_test/45005484.txt b/funcom_test/45005484.txt deleted file mode 100644 index feac2492d7cd02e2703cfa5cf53237d00046f7a5..0000000000000000000000000000000000000000 --- a/funcom_test/45005484.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean removeArmy(int lanceID) { - - for (Iterator<CArmy> i = Armies.iterator(); i.hasNext();) { - if (i.next().getID() == lanceID) { - i.remove(); - mwclient.getMainFrame().updateAttackMenu();// removing an army - // needs to reset - // menu - return (true); - } - } - return (false); - } - COM: <s> remove an army from a players set </s> - diff --git a/funcom_test/45005664.txt b/funcom_test/45005664.txt deleted file mode 100644 index c567745da71d866d576a6b2df53c1ffa4c4ba573..0000000000000000000000000000000000000000 --- a/funcom_test/45005664.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void activate(Planet p) { - - if (p == null) { - return; - } - - if (mp.getPPanel() != null && mp.getPPanel().getPlanet() != p) { - - mp.getPPanel().update(p); - conf.planetID = p.getId(); - mp.repaint(); - - saveMapSelection(p); - } - } - COM: <s> activate a specfic planet </s> - diff --git a/funcom_test/45005671.txt b/funcom_test/45005671.txt deleted file mode 100644 index 21bb0f8c25bae23bd2e20247872a1c2f800ec7d4..0000000000000000000000000000000000000000 --- a/funcom_test/45005671.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void activate(Planet p, boolean center) { - - if (p == null) { - return; - } - - // activate normally - this.activate(p); - - // then center on the world - if (center) { - conf.offset.setLocation(-p.getPosition().x * conf.scale, p.getPosition().y * conf.scale); - } - - }// end activate(p,center) - COM: <s> activate and center </s> - diff --git a/funcom_test/45006332.txt b/funcom_test/45006332.txt deleted file mode 100644 index bb98f5eac32c81ee7efca8de4009d59122857cca..0000000000000000000000000000000000000000 --- a/funcom_test/45006332.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean isUnitInLockedArmy(int unitID) { - - if (getUnit(unitID) == null) { - return false; - } - - // check all armies - for (SArmy army : getArmies()) { - if (!army.isLocked()) { - continue; - } - if (army.getUnit(unitID) != null) { - return true; - } - } - - return false; - }// end isUnitInLockedArmy - COM: <s> used for advanced repair cannot repair a unit that is in combat </s> - diff --git a/funcom_test/45006394.txt b/funcom_test/45006394.txt deleted file mode 100644 index 3185e223f99f29580d425c22938c2340a5971177..0000000000000000000000000000000000000000 --- a/funcom_test/45006394.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setBaseRoll() { - - if (critLocation < 0 || critSlot < 0) { - return; - } - int roll = UnitUtils.getTechRoll(unit, critLocation, critSlot, techType, armor, mwclient.getData().getHouseByName(mwclient.getPlayer().getHouse()).getTechLevel(), salvage); - - baseRollField.setText(Integer.toString(roll)); - } - COM: <s> this method sets the roll needed to be made to accomplish the repair </s> - diff --git a/funcom_test/45006446.txt b/funcom_test/45006446.txt deleted file mode 100644 index d0e2fa2d86b1f16b4880704ba5a4696a358bd72c..0000000000000000000000000000000000000000 --- a/funcom_test/45006446.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent event) { - - String command = event.getActionCommand(); - - if (command.equals(okayCommand)) { - - int index = possibleUnits.getSelectedIndex(); - if (index < 0) - return; - - String mms = (String)possibleUnits.getSelectedItem(); - StringTokenizer st = new StringTokenizer(mms); - String id = st.nextToken(); - - this.setUnitID(id); - this.setVisible(false); - //this.dispose(); - return; - } - - //dispose of the dialog - this.dispose(); - - }//end actionPerformed - COM: <s> ok or cancel buttons pressed </s> - diff --git a/funcom_test/45007098.txt b/funcom_test/45007098.txt deleted file mode 100644 index 46bf07b54c7b7752c09666f830cf663633bce48a..0000000000000000000000000000000000000000 --- a/funcom_test/45007098.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void binIn(BinReader in, CampaignData data) throws IOException { - id = in.readInt("id"); - Name = in.readLine("name"); - - int environments = in.readInt("environmentsize"); - - for (int pos = 0; pos < environments; pos++) { - PlanetEnvironment PE = new PlanetEnvironment(); - - PE.binIn(in, data); - - this.environments.add(PE); - } - } - COM: <s> read from a binary stream </s> - diff --git a/funcom_test/45007154.txt b/funcom_test/45007154.txt deleted file mode 100644 index 2c043c3b90b360a45278fc80f721d07d58b281c9..0000000000000000000000000000000000000000 --- a/funcom_test/45007154.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String typeString() { - String result = ""; - if (canProduce(Unit.MEK)) - result += "Mek "; - if (canProduce(Unit.VEHICLE)) - result += "Vehicle "; - if (canProduce(Unit.INFANTRY)) - result += "Infantry "; - if (this.canProduce(Unit.PROTOMEK)) - result += "ProtoMek "; - if (this.canProduce(Unit.BATTLEARMOR)) - result += "BattleArmor "; - if (this.canProduce(Unit.AERO)) - result += "Aero "; - return result; - } - COM: <s> returns the name of all types this factory can produce seperated by space </s> - diff --git a/funcom_test/45007322.txt b/funcom_test/45007322.txt deleted file mode 100644 index 313e48c89cc02beb65087258416a702a592aeaae..0000000000000000000000000000000000000000 --- a/funcom_test/45007322.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void updateInfluences() { - int totalCP = getConquestPoints(); - - for (House house : getInfluence().getHouses()) { - if (house.getId() == -1) { - continue; - } - totalCP -= getInfluence().getInfluence(house.getId()); - } - - if (totalCP > 0) { - getInfluence().updateHouse(-1, totalCP); - } - - } - COM: <s> checks for any unused cp and assignes them to house none id 1 </s> - diff --git a/funcom_test/45007726.txt b/funcom_test/45007726.txt deleted file mode 100644 index c2c6e2ff8ff24920db207ebeb8d54ef11e1ea80a..0000000000000000000000000000000000000000 --- a/funcom_test/45007726.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean isHotZone() { - int maxflu = 0; - int secondmaxflu = 0; - Iterator<Integer> e = influences.values().iterator(); - while (e.hasNext()) { - int flu = e.next(); - if (maxflu < flu) { - secondmaxflu = maxflu; - maxflu = flu; - } else if (secondmaxflu < flu) - secondmaxflu = flu; - } - return (maxflu - secondmaxflu) < 20; - } - COM: <s> returns whether the influence zone belongs to a so called hot zone </s> - diff --git a/funcom_test/45007743.txt b/funcom_test/45007743.txt deleted file mode 100644 index 87d6bca033d3e1f95c2420dbb4d090d89ef7de0e..0000000000000000000000000000000000000000 --- a/funcom_test/45007743.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Continent getBiggestEnvironment() { - Continent result = new Continent(0,new Terrain()); - for (Iterator<Continent> it = iterator(); it.hasNext();) { - Continent p = it.next(); - if (p.getSize() > result.getSize()) result = p; - } - return result; - } - COM: <s> return the environment with the most probability to occour </s> - diff --git a/funcom_test/45007791.txt b/funcom_test/45007791.txt deleted file mode 100644 index 5776b7f97e968fea449e77b86f84bb35d8596ea6..0000000000000000000000000000000000000000 --- a/funcom_test/45007791.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Planet getPlanetByName(String name) { - - try { - Integer planetID = planetid.get(name.toLowerCase()); - return getPlanet(planetID); - } catch (Exception ex) { - CampaignData.mwlog.errLog("Looking for planet: " + name); - // CampaignData.mwlog.errLog(ex); - return null; - } - } - COM: <s> retrieve a planet by its name </s> - diff --git a/funcom_test/45007801.txt b/funcom_test/45007801.txt deleted file mode 100644 index 8c05f3386badb1ca1db8ce1a7960df6a4f469f83..0000000000000000000000000000000000000000 --- a/funcom_test/45007801.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int getNumberOfNetworks() { - int count = 0; - - for (int uid : c3Network.values()) { - - try { - Unit master = getUnit(uid); - if (!c3Network.containsKey(uid) && master.hasBeenC3LinkedTo(this)) { - count++; - } - } catch (Exception ex) { - } - - } - - return Math.max(1, count); - } - COM: <s> return the number of c3 networks in this army </s> - diff --git a/funcom_test/45007807.txt b/funcom_test/45007807.txt deleted file mode 100644 index 370223e7c5928364b45a6bd2351bfd1f47d84a11..0000000000000000000000000000000000000000 --- a/funcom_test/45007807.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addPlanet(Planet planet) { - if (planet.getId() == -1) { - planet.setId(getUnusedPlanetID()); - } - planets.put(new Integer(planet.getId()), planet); - planetid.put(planet.getName().toLowerCase(), new Integer(planet.getId())); - } - COM: <s> adds a planet to the campaign storage </s> - diff --git a/funcom_test/45007842.txt b/funcom_test/45007842.txt deleted file mode 100644 index 7da419a279988066254a0d38ec0616330baa7249..0000000000000000000000000000000000000000 --- a/funcom_test/45007842.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addHouse(House faction) { - if (faction.getId() == -1 && !faction.getName().equalsIgnoreCase("None")) { - faction.setId(getUnusedHouseID()); - } - factions.put(faction.getId(), faction); - factionid.put(faction.getName().toLowerCase(), faction.getId()); - } - COM: <s> adds a faction to the campaign storage </s> - diff --git a/funcom_test/45007905.txt b/funcom_test/45007905.txt deleted file mode 100644 index a5c95dc25b19a1963382cff6b099c9c1c51ce920..0000000000000000000000000000000000000000 --- a/funcom_test/45007905.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void encodeMutablePlanets(BinWriter out, Collection<Integer> ids) throws IOException { - out.println(ids.size(), "mutableplanetsize"); - for (Integer id : ids) { - out.println(id, "planetid"); - getPlanet(id).encodeMutableFields(out, this); - } - } - COM: <s> writes some planets due a differential update </s> - diff --git a/funcom_test/45009384.txt b/funcom_test/45009384.txt deleted file mode 100644 index 2ecd7640bb52c29f374eb88212bafd4bca23b2a2..0000000000000000000000000000000000000000 --- a/funcom_test/45009384.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void processTick(int time) { - // set tick counter - getMainFrame().getMainPanel().getPlayerPanel().setNextTick(System.currentTimeMillis() + time); - getMainFrame().getMainPanel().getMapPanel().getMap().processTick(); - System.gc(); // Decicded to have the client do a GC every tick as - // well. - } - COM: <s> does things when a tick is arrived </s> - diff --git a/funcom_test/4502402.txt b/funcom_test/4502402.txt deleted file mode 100644 index 109981ca621d7128117af21c1aa1cde3cd8bd159..0000000000000000000000000000000000000000 --- a/funcom_test/4502402.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void dispatchFireEngines(String schoolName) throws RemoteException { - - log.debug("dispatchFireEngines(): Dispatching fire engines to school " + schoolName); - - FireEngineDispatchServiceStub.DispatchVehicle msg = new FireEngineDispatchServiceStub.DispatchVehicle(); - msg.setSchool(schoolName); - - this.fireDispatchStub.dispatchVehicle(msg); - - log.debug("dispatchFireEngines(): The Fire Dispatch service was called"); - } - COM: <s> notifies the fire dispatch service to dispatch fire engines to the </s> - diff --git a/funcom_test/4502419.txt b/funcom_test/4502419.txt deleted file mode 100644 index afaf9a68dd900875a7cccfc937d208344a7fa8e2..0000000000000000000000000000000000000000 --- a/funcom_test/4502419.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object getValueAt(int pRow, int pCol) { - int row = Configuration.getInstance().getTopLeft().y + pRow; - int col = Configuration.getInstance().getTopLeft().x + pCol; - Point p = new Point(col, row); - if (mStaticLocatables.containsKey(p)) - return mStaticLocatables.get(p); - else if (mMobileLocatables.containsKey(p)) - return mMobileLocatables.get(p); - return null; - } - COM: <s> returns the fers locatable object at the given coordinate else null </s> - diff --git a/funcom_test/4502456.txt b/funcom_test/4502456.txt deleted file mode 100644 index ca387acf89d046d16e09e0866d38704ec36f0771..0000000000000000000000000000000000000000 --- a/funcom_test/4502456.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setAdminDetails() { - FireEngineServiceStub.Point point = new FireEngineServiceStub.Point(); - point.setX(mLocation.x); - point.setY(mLocation.y); - - SetAdminDetails adminDetails = new SetAdminDetails(); - adminDetails.setHomeBase(point); - adminDetails.setDispatchService(mDispatchService); - - try { - mStub.setAdminDetails(adminDetails); - } catch (RemoteException e) { - e.printStackTrace(); - } - } - COM: <s> initializes the web service for the current configuration of the gui </s> - diff --git a/funcom_test/4502506.txt b/funcom_test/4502506.txt deleted file mode 100644 index 44dc50735938c1df825d70e773ff954febf1c32c..0000000000000000000000000000000000000000 --- a/funcom_test/4502506.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setAdminDetails() { - AmbulanceServiceStub.Point point = new AmbulanceServiceStub.Point(); - point.setX(mLocation.x); - point.setY(mLocation.y); - - SetAdminDetails adminDetails = new SetAdminDetails(); - adminDetails.setHomeBase(point); - adminDetails.setDispatchService(mDispatchService); - - try { - mStub.setAdminDetails(adminDetails); - } catch (RemoteException e) { - e.printStackTrace(); - } - } - COM: <s> initializes the ambulance service </s> - diff --git a/funcom_test/4502757.txt b/funcom_test/4502757.txt deleted file mode 100644 index a303e5a4c85f8f516ff3d391b0c0088813457986..0000000000000000000000000000000000000000 --- a/funcom_test/4502757.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public boolean deactivate() { - if (!this.isActive()) - return true; - if (this.isInitialized) { - FireMonitoringServiceStub.UpdateFireSprinklerStatus msg = new FireMonitoringServiceStub.UpdateFireSprinklerStatus(); - msg.setSchool(this.SCHOOL_PROFILE_SERVICE_ADDRESS); - msg.setIsActivated(false); - - try { - this.active = false; - this.fireMonitoringService.updateFireSprinklerStatus(msg); - this.schoolProfileService.waterSprinklerDeactivated(); - return this.active; - } catch (RemoteException e) { - log.error(e.getMessage(), e); - } - } - return this.active; - } - COM: <s> deactivates the water sprinkler </s> - diff --git a/funcom_test/4502763.txt b/funcom_test/4502763.txt deleted file mode 100644 index ed148a57fa323e4fbfbcb100e12a1ca16ecc23ac..0000000000000000000000000000000000000000 --- a/funcom_test/4502763.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void registerWaterSprinkler() { - SchoolProfileServiceStub.AddWaterSprinkler msg = new SchoolProfileServiceStub.AddWaterSprinkler(); - msg.setSensor(WaterSprinkler.name); - - try { - log.debug("registerWaterSprinkler(): Adding sprinkler " - + WaterSprinkler.name + " to school " - + this.SCHOOL_PROFILE_SERVICE_ADDRESS); - - this.schoolProfileService.addWaterSprinkler(msg); - } catch (RemoteException e) { - log.error(e.getMessage(), e); - } - } - COM: <s> registers this water sprinkler with the school profile service </s> - diff --git a/funcom_test/4502987.txt b/funcom_test/4502987.txt deleted file mode 100644 index 014974a3c77da304f08c37f66a790c47ebc88679..0000000000000000000000000000000000000000 --- a/funcom_test/4502987.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setAdminDetails(Point location, String dispatchServiceLocation) { - this.setLocation(location); - this.dispatchServiceLocation = dispatchServiceLocation; - try { - dispatchStub = new AmbulanceDispatchServiceStub(FERSuddiProxy.instance().getServiceAccessPoint(this.dispatchServiceLocation)); - isInitialized = true; - } catch (AxisFault a) { - log.error("Couldn't create Ambulance Dispatch Stub"); - } - } - COM: <s> sets the fire monitoring service at the location passed in </s> - diff --git a/funcom_test/4503026.txt b/funcom_test/4503026.txt deleted file mode 100644 index eaaf5cd4dbbe323bf856ff5f973177deaf16c437..0000000000000000000000000000000000000000 --- a/funcom_test/4503026.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void doFireOutProcessing(String vehicle) { - // signal to the ambulance that the fire is out - try { - AmbulanceServiceStub amb = new AmbulanceServiceStub(FERSuddiProxy.instance().getServiceAccessPoint(vehicle)); - amb.notifyFireIsOut(); - } catch (AxisFault a) { - log.error("Caught AXIS_FAULT: " + a.getMessage()); - a.printStackTrace(); - } catch (RemoteException e) { - log.error("Caught REMOTE_EXCEPTION: " + e.getMessage()); - e.printStackTrace(); - } - } - COM: <s> notifies the ambulance code vehicle code that the fire is out </s> - diff --git a/funcom_test/45046765.txt b/funcom_test/45046765.txt deleted file mode 100644 index b810ca4650f4a9e4799b3635a829d8f5ee9b3575..0000000000000000000000000000000000000000 --- a/funcom_test/45046765.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public long getUncompressedSize(File archive) throws ManagerException{ - try { - if(debugMode) System.out.println("Entering gov.nist.qod.manager.ArchiveManager.getUncompressedSize"); - long fileSize=0; - ZipFile zipfile = new ZipFile(archive); - Enumeration <? extends ZipEntry> e = zipfile.entries(); - ZipEntry entry; - while(e.hasMoreElements()) { - entry = (ZipEntry) e.nextElement(); - fileSize += entry.getSize(); - } - return fileSize; - }catch(IOException IOE){ - throw new ManagerException(ManagerErrorCodes.ARCHMANAGER_FILE_NOTFOUND); - } - } - COM: <s> return the uncompressed size of the given archive </s> - diff --git a/funcom_test/45047021.txt b/funcom_test/45047021.txt deleted file mode 100644 index 5edc2e9b2ce21df6056dae084d5b05a9f781b1fd..0000000000000000000000000000000000000000 --- a/funcom_test/45047021.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean validateXMLSchema(Object doc) throws UtilException { - if(debugMode) System.out.println("Entering gov.nist.qod.util.Validator.validateXMLDocument"); - errorDescription = ""; - errorDescription = validateXML(doc,fullResourcesFolderPath+UtilResourcesPaths.EXECUTOR_XMLSCHEMA); - if(!errorDescription.equals("")) return false; - return true; - } - COM: <s> validate an xmlschema instance </s> - diff --git a/funcom_test/45047083.txt b/funcom_test/45047083.txt deleted file mode 100644 index 57e9cc2984e0779a2488aa784a0e43842c49d663..0000000000000000000000000000000000000000 --- a/funcom_test/45047083.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public File exportAsXMLFile(Document doc, String fileName) throws IOException { - File file = new File(fileName); - OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(file), this.encoding); - serializeNode(doc, writer, this.indent); - writer.flush(); - writer.close(); - return file; - } - COM: <s> serialize a dom document into a file </s> - diff --git a/funcom_test/45047344.txt b/funcom_test/45047344.txt deleted file mode 100644 index 7870816173ce1c2f4b32c30bb0ae08beff98b1c2..0000000000000000000000000000000000000000 --- a/funcom_test/45047344.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void openConnection() throws Exception { - this.database = (Database)Class.forName(this.driverClassName).newInstance(); - DatabaseManager.registerDatabase(this.database); - this.collection = DatabaseManager.getCollection(url + "/" +dbName+ "/" + collectionName,username,password); - if(this.collection == null) - throw new Exception("Unable to retrieve the target collection from the XMLDB."); - } - COM: <s> open a connection to the xmldb and retrieve the working collection </s> - diff --git a/funcom_test/45047397.txt b/funcom_test/45047397.txt deleted file mode 100644 index 6ebb03e1a1e2d4692cccc22900db4b1014d8d405..0000000000000000000000000000000000000000 --- a/funcom_test/45047397.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Integer getNumberOfTPVersions(final String tpid, final String tpOwner, final HashMap<String, String> filter){ - filter.put("ID", tpid); - filter.put("owner", tpOwner); - return (Integer) this.getSqlMapClientTemplate().queryForObject("getTPVersionByTPNb", filter); - } - COM: <s> return the number of test profile versions associated with this tpid </s> - diff --git a/funcom_test/45047404.txt b/funcom_test/45047404.txt deleted file mode 100644 index 055a0f4ae0e7f87debef0d3a07588fd6511c81dd..0000000000000000000000000000000000000000 --- a/funcom_test/45047404.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Integer getNumberOfTRVersions(final String trid, final String trOwner, final HashMap<String, String> filter){ - filter.put("ID", trid); - filter.put("owner", trOwner); - return (Integer) this.getSqlMapClientTemplate().queryForObject("getTRVersionByTRNb", filter); - } - COM: <s> return the number of test requirements version associated with this trid </s> - diff --git a/funcom_test/45047418.txt b/funcom_test/45047418.txt deleted file mode 100644 index b2d61fa22941e3e24a689d63499e4e7e4ed090b6..0000000000000000000000000000000000000000 --- a/funcom_test/45047418.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Integer getNumberOfTRVersions(final String tpid, final String tpOwner, final String tpvNumber, final HashMap<String, String> filter){ - filter.put("ID", tpid); - filter.put("owner", tpOwner); - filter.put("number", tpvNumber); - return (Integer) this.getSqlMapClientTemplate().queryForObject("getTRVersionByTPVersionNb", filter); - } - COM: <s> return the number of test requirements version included in this test profile version </s> - diff --git a/funcom_test/45047427.txt b/funcom_test/45047427.txt deleted file mode 100644 index 45e6b72da1fe261e56a1b60e27c1b5dc41dc0bb5..0000000000000000000000000000000000000000 --- a/funcom_test/45047427.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Integer getNumberOfTC(final String trid, final String trOwner, final String trvNumber, final HashMap<String, String> filter){ - filter.put("owner", trOwner); - filter.put("ID", trid); - filter.put("number", trvNumber); - return (Integer) this.getSqlMapClientTemplate().queryForObject("getTCByTRVersionNb", filter); - } - COM: <s> return the number of test cases implementing in this test requirement version </s> - diff --git a/funcom_test/45047565.txt b/funcom_test/45047565.txt deleted file mode 100644 index aa8ed6411cabf70b5cfa804a21afbf7d502c4395..0000000000000000000000000000000000000000 --- a/funcom_test/45047565.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void exportXVRL(XMLEventWriter xvrLDoc) throws Exception{ - JAXBContext context = JAXBContext.newInstance(ValidationReport.class); - Marshaller m = context.createMarshaller(); - m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); - ValidationReport vReport = exportVReport(); - if (vReport!=null) m.marshal(vReport, xvrLDoc); - } - COM: <s> transform the validation report object into a xmlevent writer </s> - diff --git a/funcom_test/45047585.txt b/funcom_test/45047585.txt deleted file mode 100644 index 815e8d638bb665ac35478babf72c818f7737155f..0000000000000000000000000000000000000000 --- a/funcom_test/45047585.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void exportXVRL(XMLStreamWriter xvrLDoc) throws Exception{ - JAXBContext context = JAXBContext.newInstance(ValidationReport.class); - Marshaller m = context.createMarshaller(); - m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); - ValidationReport vReport = exportVReport(); - if (vReport!=null) m.marshal(vReport, xvrLDoc); - } - COM: <s> transform the validation report object into a xmlstream writer </s> - diff --git a/funcom_test/45048200.txt b/funcom_test/45048200.txt deleted file mode 100644 index ee9f0ed008904ca06a23a9ea5f75b9e68b15c8f6..0000000000000000000000000000000000000000 --- a/funcom_test/45048200.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Document generateDocumentFromTPVersion(TestProfileVersion testProfileVersion) throws Exception{ - - Document doc = null; - try{ - DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - doc = builder.newDocument(); - doc.appendChild(createNDRProfileElement(doc,testProfileVersion)); - } - catch(ParserConfigurationException PCE){ - throw new Exception(ExchangeErrorCodes.EXPORT_DCMB,PCE); - } - catch(Exception E){ - throw new Exception(ExchangeErrorCodes.EXPORT_DCMB,E); - } - return doc; - } - COM: <s> generate a dom document instance for the given test profile version </s> - diff --git a/funcom_test/45048262.txt b/funcom_test/45048262.txt deleted file mode 100644 index 5323c954d672241c9705140a458f8af56c331806..0000000000000000000000000000000000000000 --- a/funcom_test/45048262.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Element addSimpleElement(Element parent, String elementName, String value) throws Exception{ - if(parent == null) throw new Exception(ExchangeErrorCodes.EXPORT_SIMPLE_ELT_NO_PARENT); - if(elementName == null) throw new Exception(ExchangeErrorCodes.EXPORT_SIMPLE_ELT_NO_NAME); - if(value == null) throw new Exception(ExchangeErrorCodes.EXPORT_SIMPLE_ELT_NO_VALUE); - Element child = parent.getOwnerDocument().createElement(elementName); - child.setTextContent(value); - parent.appendChild(child); - return child; - } - COM: <s> add a new simple element to the specified parent </s> - diff --git a/funcom_test/45048278.txt b/funcom_test/45048278.txt deleted file mode 100644 index 54d748503a420f604aac48357f70233ac50fb171..0000000000000000000000000000000000000000 --- a/funcom_test/45048278.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Element addCDATASimpleElement(Element parent, String elementName, String value) throws Exception{ - if(parent == null) throw new Exception(ExchangeErrorCodes.EXPORT_CDATA_ELT_NO_PARENT); - if(elementName == null) throw new Exception(ExchangeErrorCodes.EXPORT_CDATA_ELT_NO_NAME); - if(value == null) throw new Exception(ExchangeErrorCodes.EXPORT_CDATA_ELT_NO_VALUE); - Element child = parent.getOwnerDocument().createElement(elementName); - CDATASection cdata = parent.getOwnerDocument().createCDATASection(value); - child.appendChild(cdata); - parent.appendChild(child); - return child; - } - COM: <s> add a new cdata section to the specified parent </s> - diff --git a/funcom_test/45048486.txt b/funcom_test/45048486.txt deleted file mode 100644 index 83a90ff059de89696d128a8a89f6171e5822a2c7..0000000000000000000000000000000000000000 --- a/funcom_test/45048486.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void execute(MultipartRequestParser multipartHandler, HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException{ - - int code = this.getMaterialCode(request.getParameter("what")); - switch(code){ - case 1: // Test Case - this.executeTestCase(multipartHandler, request,response); - break; - case 4: // Test Profile Version - this.executeTestProfile(multipartHandler, request,response); - break; - default: - this.showError(request, response,"error.jsp", ServletMessageCodes.INVALID_MATERIAL_CODE ); - } - } - COM: <s> execute either a test case or a test profile version </s> - diff --git a/funcom_test/45048499.txt b/funcom_test/45048499.txt deleted file mode 100644 index 91cfbde4227e3af73205a08ae0d1a43db87f9921..0000000000000000000000000000000000000000 --- a/funcom_test/45048499.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void sendJessScriptValidationEmail(String emailAdmin, String from, String fileURL, String userID, String tcID){ - String message = "The user '"+userID+"' created a new Jess script within the QOD under the ID'"+tcID+ - "'.\nAwaiting for approval. The script can be found under the following path: "+fileURL; - this.sendEmail(emailAdmin, from, "QOD - JESS Script validation request", message); - } - COM: <s> send a special email for a jess script validation </s> - diff --git a/funcom_test/45048518.txt b/funcom_test/45048518.txt deleted file mode 100644 index 9dc2f8e53d2d4918d9500fe2f17e599cf60a66a2..0000000000000000000000000000000000000000 --- a/funcom_test/45048518.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected boolean validXML(File document) throws ExecutorException{ - boolean b = false; - try{ - XMLReader reader = XMLReaderFactory.createXMLReader(); - reader.parse(document.getAbsolutePath()); - b=true; - } catch (SAXException e) { - b=false; - } catch (IOException e) { - throw new ExecutorException(e,ExecutorErrorCodes.EXECUTOR_READING_ERROR+" "+document.getName()); - } - return b; - } - COM: <s> check if the file is a valid xml </s> - diff --git a/funcom_test/45048592.txt b/funcom_test/45048592.txt deleted file mode 100644 index eccb69223c9ae10591f0f9ce42dad4b169122c8a..0000000000000000000000000000000000000000 --- a/funcom_test/45048592.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: protected String readFile(File f) { - String record = null, fileContents = ""; - try { - FileReader fr = new FileReader(f); - BufferedReader br = new BufferedReader(fr); - record = new String(); - while ((record = br.readLine()) != null) { - fileContents += record + "\n"; - } - if (fileContents.indexOf('\\') != -1) - fileContents = fileContents.replace('\\', '/'); - - fr.close(); - br.close(); - - } catch (IOException e) { - e.printStackTrace(); - } - return fileContents; - } - COM: <s> read the file f </s> - diff --git a/funcom_test/45048613.txt b/funcom_test/45048613.txt deleted file mode 100644 index bc1a9eb55e982891f361a9add123f76414a4db5a..0000000000000000000000000000000000000000 --- a/funcom_test/45048613.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected String processSpecialChar(String str) { - String newStr = str; - if (newStr != null) { - newStr = newStr.replaceAll("&", "&"); - newStr = newStr.replaceAll("<", "<"); - newStr = newStr.replaceAll(">", ">"); - newStr = newStr.replaceAll("\"", """); - newStr = newStr.replaceAll("\'", "'"); - } - return newStr; - } - COM: <s> replace the special characters in str </s> - diff --git a/funcom_test/45048672.txt b/funcom_test/45048672.txt deleted file mode 100644 index 07846e690c1769fdeebcf330f1725ea4eb997f39..0000000000000000000000000000000000000000 --- a/funcom_test/45048672.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: protected String getFileContents(File f) { - String record = null; - try { - FileReader fr = new FileReader(f); - BufferedReader br = new BufferedReader(fr); - record = new String(); - while ((record = br.readLine()) != null) { - fileContents += record + "\n"; - } - if (fileContents.indexOf('\\') != -1) - fileContents = fileContents.replace('\\', '/'); - - fr.close(); - br.close(); - - } catch (IOException e) { - e.printStackTrace(); - } - return fileContents; - } - COM: <s> returns the content of the given file </s> - diff --git a/funcom_test/45049269.txt b/funcom_test/45049269.txt deleted file mode 100644 index e4c18c4d8b05d5f0fe50137c1ca1657d19fa73c9..0000000000000000000000000000000000000000 --- a/funcom_test/45049269.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String getTestCaseXMLResult(String execTime, String tcId,int skipErrorNumber, int maxErrorNumber, boolean isPublic) throws Exception{ - - if(isPublic) - return xmlPublicDao.getTCResult(execTime, tcId, skipErrorNumber, maxErrorNumber); - else - return xmlPrivateDao.getTCResult(execTime, tcId, skipErrorNumber, maxErrorNumber); - } - COM: <s> returns a xml document representing the results </s> - diff --git a/funcom_test/45067772.txt b/funcom_test/45067772.txt deleted file mode 100644 index a0e843dad383beeb01ea728bc7ab2eb194f916e9..0000000000000000000000000000000000000000 --- a/funcom_test/45067772.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void testNormal(){ - //assert empty - Container parent = new Container(); - assertEquals(parent.getComponentCount(), 0); - - //add two child - Container child0 = new Container(); - parent.add(child0); - Container child1 = new Container(); - parent.add(child1); - assertEquals(parent.getComponentCount(), 2); - assertEquals(parent.getComponent(0), child0); - assertEquals(parent.getComponent(1), child1); - - //remove one child - parent.remove(child0); - assertEquals(parent.getComponentCount(), 1); - assertEquals(parent.getComponent(0), child1); - } - COM: <s> test normal operation include add remove get component count </s> - diff --git a/funcom_test/45067773.txt b/funcom_test/45067773.txt deleted file mode 100644 index ace769a756ec846244aacbb996c762b434e62c0a..0000000000000000000000000000000000000000 --- a/funcom_test/45067773.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testAncestor(){ - Container parent = new Container(); - Container child = new Container(); - parent.add(child); - Container grandson = new Container(); - child.add(grandson); - - assertEquals(child.isAncestorOf(grandson), true); - assertEquals(parent.isAncestorOf(child), true); - assertEquals(parent.isAncestorOf(grandson), true); - - assertEquals(child.isAncestorOf(parent), false); - assertEquals(child.isAncestorOf(child), false); - } - COM: <s> test is ancestor of </s> - diff --git a/funcom_test/45067807.txt b/funcom_test/45067807.txt deleted file mode 100644 index 888e7eff063765d8fe2bc044519f33d8e08eef6d..0000000000000000000000000000000000000000 --- a/funcom_test/45067807.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void remove(int index) { - if (index < 0 || index >= ncomponents) { - throw new ArrayIndexOutOfBoundsException(index); - } - Component comp = component[index]; - - if (peer != null) { - comp.removeNotify(); - } - - comp.parent = null; - System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); - component[--ncomponents] = null; - } - COM: <s> removes the component at the given index </s> - diff --git a/funcom_test/45068820.txt b/funcom_test/45068820.txt deleted file mode 100644 index bf95b14e764c7f60990ac38c3504bca739805441..0000000000000000000000000000000000000000 --- a/funcom_test/45068820.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getString(String key) { - Object o = attributes.get(key); - String s = null; - - if (o == null) { - } else if (o instanceof String) { - s = (String) o; - } else if (o instanceof String[]) { - String[] sa = (String[]) o; - if (sa.length > 0) { - s = sa[0]; - } - } else { - throw new ClassCastException(key + " is not a String"); - } - - return s; - } - COM: <s> returns the value identified by code key code as a </s> - diff --git a/funcom_test/4511970.txt b/funcom_test/4511970.txt deleted file mode 100644 index ee09c7d16d4da495feb93c4613c957a0293f88dc..0000000000000000000000000000000000000000 --- a/funcom_test/4511970.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void fireTraceChanged(TracePoint2D changed) { - Trace2DChangeEvent fire = new Trace2DChangeEvent(this, changed); - synchronized (this.buffer) { - Iterator it = this.changeListeners.iterator(); - while (it.hasNext()) { - ((ITrace2D.Trace2DListener) it.next()).traceChanged(fire); - } - } - } - COM: <s> fires a code ichart2 ddata </s> - diff --git a/funcom_test/4512023.txt b/funcom_test/4512023.txt deleted file mode 100644 index 58473e41d3a96c973aa91824aa39a1c3ba6f2eaf..0000000000000000000000000000000000000000 --- a/funcom_test/4512023.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object remove() { - if(this.isEmpty())throw IRingBuffer.BUFFER_EMPTY; - Object ret = null; - ret = this.buffer[tailpointer]; - this.incTail(); - if(this.debug)System.out.println("Removing element: "+ret+" head: "+this.headpointer+" tail: "+this.tailpointer); - return ret; - } - COM: <s> removes the element which has been in the buffer for the longes time </s> - diff --git a/funcom_test/45130284.txt b/funcom_test/45130284.txt deleted file mode 100644 index e40ed98234c32079a8e10d89b59e55af3aa65742..0000000000000000000000000000000000000000 --- a/funcom_test/45130284.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Iterator getStatements(Value subj, URI pred, Value obj, URI graph) { - if (subj instanceof Literal) { - throw new UnsupportedOperationException( - "Sesame does not support literal subjects"); - } - - return new StatementIteratorAdapter( - this.source.getNamedContextStatements((Resource) subj, pred, - obj, (Resource) graph)); - } - COM: <s> gets all the statements that come from a particular named graph and have </s> - diff --git a/funcom_test/45130285.txt b/funcom_test/45130285.txt deleted file mode 100644 index a3d0e7001518bb15b3be604f8888c28cd35be93a..0000000000000000000000000000000000000000 --- a/funcom_test/45130285.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Iterator getDefaultStatements(Value subj, URI pred, Value obj) { - if (subj instanceof Literal) { - throw new UnsupportedOperationException( - "Sesame does not support literal subjects"); - } - return new StatementIteratorAdapter( - this.source.getNullContextStatements((Resource) subj, pred, - obj)); - } - COM: <s> gets all the statements that come from the default graph and have a </s> - diff --git a/funcom_test/45130286.txt b/funcom_test/45130286.txt deleted file mode 100644 index db8985e9d5780711ba7da1bb62efad46f87d81ed..0000000000000000000000000000000000000000 --- a/funcom_test/45130286.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Iterator getStatements(Value subj, URI pred, Value obj) { - if (subj instanceof Literal) { - throw new UnsupportedOperationException( - "Sesame does not support literal subjects"); - } - return new StatementIteratorAdapter(this.source.getStatements( - (Resource) subj, pred, obj)); - } - COM: <s> gets all the statements that come from any graph and have a certain </s> - diff --git a/funcom_test/45130291.txt b/funcom_test/45130291.txt deleted file mode 100644 index 0d546a60ceabe82a6d67fa170c761263a095932a..0000000000000000000000000000000000000000 --- a/funcom_test/45130291.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean hasStatement(Value subj, URI pred, Value obj, URI graph) { - if (subj instanceof Literal) { - throw new UnsupportedOperationException( - "Sesame does not support literal subjects"); - } - return this.source.hasNamedContextStatement((Resource) subj, pred, obj, - (Resource) graph); - } - COM: <s> checks if there is a statement that comes from a particular named graph </s> - diff --git a/funcom_test/45130320.txt b/funcom_test/45130320.txt deleted file mode 100644 index f87fd71edae95e50928232f88b2afc4862ac8c61..0000000000000000000000000000000000000000 --- a/funcom_test/45130320.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public RdfGraph executeGraphQuery(String query) throws RdfStoreException { - //TODO: Wrap a CloseableIterator, not a List - try { - List<Statement> statements = repository.evaluateGraphQuery( - QueryLanguage.SPARQL, query, new ArrayList<Statement>()); - return new RdfGraphAdapter(statements); - } catch (MalformedQueryException e) { - throw new QueryException(e); - } - } - COM: <s> executes a query that expects an rdf graph to be returned </s> - diff --git a/funcom_test/45130344.txt b/funcom_test/45130344.txt deleted file mode 100644 index cb19674e3930d900bfd20ec462ee6f4d7f1f971e..0000000000000000000000000000000000000000 --- a/funcom_test/45130344.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Value evaluate(Value value) throws ExternalFunctionException { - - if (!(value instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be understood"); - } - - DateTime date = this.converter.convertDateTime((Literal) value); - - return this.converter.convertInteger(date.getMinute()); - } - COM: <s> evaluates the numbers of minutes in the xsd date time </s> - diff --git a/funcom_test/45130347.txt b/funcom_test/45130347.txt deleted file mode 100644 index 6dc5f6049e67a88cca72c5c63c6930c8d55ec255..0000000000000000000000000000000000000000 --- a/funcom_test/45130347.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Value evaluate(Value value) throws ExternalFunctionException { - - if (!(value instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be understood"); - } - - DateTime date = this.converter.convertDateTime((Literal) value); - - return this.converter.convertInteger(date.getMonth()); - } - COM: <s> evaluates the numbers of months in the xsd date time </s> - diff --git a/funcom_test/45130349.txt b/funcom_test/45130349.txt deleted file mode 100644 index e767843c798b416fd68eaa8cfac9af2c4299ef15..0000000000000000000000000000000000000000 --- a/funcom_test/45130349.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean contains(Object o) { - if (!(o instanceof RdfBindingRow)) { - return false; - } - - RdfBindingRow row = (RdfBindingRow) o; - for (Iterator i = this.iterator(); i.hasNext();) { - if (row.equals(i.next())) { - return true; - } - } - - return false; - } - COM: <s> tests if the binding set contains a particular rdf binding row </s> - diff --git a/funcom_test/45130352.txt b/funcom_test/45130352.txt deleted file mode 100644 index 6f9d56a7ea80282ccbf75e10882687bb6dee841b..0000000000000000000000000000000000000000 --- a/funcom_test/45130352.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Value evaluate(Value value) throws ExternalFunctionException { - - if (!(value instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be understood"); - } - - DateTime date = this.converter.convertDateTime((Literal) value); - - return this.converter.convertInteger(date.getSecond()); - } - COM: <s> evaluates the numbers of seconds in the xsd date time </s> - diff --git a/funcom_test/45130358.txt b/funcom_test/45130358.txt deleted file mode 100644 index 8a9712f3c46fc1b2548755fb4c29954364932e6a..0000000000000000000000000000000000000000 --- a/funcom_test/45130358.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Value evaluate(Value value) throws ExternalFunctionException { - - if (!(value instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be understood"); - } - - DateTime date = this.converter.convertDateTime((Literal) value); - - return this.converter.convertInteger(date.getHour()); - } - COM: <s> evaluates the numbers of hours in the xsd date time </s> - diff --git a/funcom_test/45130370.txt b/funcom_test/45130370.txt deleted file mode 100644 index 7ce99b2817c9e3b9b33ac13bca9cf26bdec2d4eb..0000000000000000000000000000000000000000 --- a/funcom_test/45130370.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Value evaluate(Value stringValue, Value startIndex) throws ExternalFunctionException { - - if (!(stringValue instanceof Literal && startIndex instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be understood"); - } - - String string = this.converter.convertString((Literal) stringValue); - int start = this.converter.convertInteger((Literal) startIndex); - - return this.converter.convertString(string.substring(start)); - } - COM: <s> returns the xsd string substring of a given string from a certain start </s> - diff --git a/funcom_test/45130378.txt b/funcom_test/45130378.txt deleted file mode 100644 index 790be3e1dfedc3e0c0c71be163b0f77514a4e192..0000000000000000000000000000000000000000 --- a/funcom_test/45130378.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Value evaluate(Value outerString, Value innerString) throws ExternalFunctionException { - - if (!(outerString instanceof Literal && innerString instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be understood"); - } - - String string1 = this.converter.convertString((Literal) outerString); - String string2 = this.converter.convertString((Literal) innerString); - - return this.converter.convertBoolean(string1.endsWith(string2)); - } - COM: <s> returns a xsd boolean value indicating whether or not the second string </s> - diff --git a/funcom_test/45130399.txt b/funcom_test/45130399.txt deleted file mode 100644 index 9590a0217f4ca066f0d2f6232ee32feb4287ba59..0000000000000000000000000000000000000000 --- a/funcom_test/45130399.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Value evaluate(Value outerString, Value innerString) throws ExternalFunctionException { - - if (!(outerString instanceof Literal && innerString instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be understood"); - } - - String string1 = this.converter.convertString((Literal) outerString); - String string2 = this.converter.convertString((Literal) innerString); - - return this.converter.convertString(string1.substring(0, string1.indexOf(string2))); - } - COM: <s> returns the substring before a certain inner string as as xsd string </s> - diff --git a/funcom_test/45130402.txt b/funcom_test/45130402.txt deleted file mode 100644 index 3ca534f672d429d4c0317418d707f5dfffb92481..0000000000000000000000000000000000000000 --- a/funcom_test/45130402.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Value evaluate(Value[] values) throws ExternalFunctionException { - - StringBuffer output = new StringBuffer(); - for (int i = 0; i < values.length; i++) { - if (!(values[i] instanceof Literal)) { - throw new ExternalFunctionException("Values need to be literals to be concatenated"); - } - String string = this.converter.convertString((Literal) values[i]); - output.append(string); - } - return this.converter.convertString(output.toString()); - - } - COM: <s> reads values in checks to make sure they are literals and then </s> - diff --git a/funcom_test/45130442.txt b/funcom_test/45130442.txt deleted file mode 100644 index 1ed2d745e9371da3eb6ca1148bf83fe0b03ee7e6..0000000000000000000000000000000000000000 --- a/funcom_test/45130442.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Iterator iterator() { - Value subjVar = null; - Value objVar = null; - - if (!(this.subjExpression instanceof Variable)) { - subjVar = (Value) this.subjExpression; - } - if (!(this.objExpression instanceof Variable)) { - objVar = (Value) this.objExpression; - } - - return new RdfsMemberIterator(this.source.getStatements(subjVar, null, objVar)); - } - COM: <s> returns a new streaming iterator of possible variable matches from </s> - diff --git a/funcom_test/45130788.txt b/funcom_test/45130788.txt deleted file mode 100644 index b285010f8c27a69d60dce5c251359924aa62cdb0..0000000000000000000000000000000000000000 --- a/funcom_test/45130788.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Value castString(Literal literal) throws IllegalCastException { - if (!literal.getLabel().equalsIgnoreCase("true") && !literal.getLabel().equalsIgnoreCase("false")) { - throw new IllegalCastException("Unable to cast string to boolean"); - } - return this.factory.createLiteral(literal.getLabel(), SPARQLConstants.BOOLEAN_TYPE); - } - COM: <s> casts the passed xsd string value to a boolean literal </s> - diff --git a/funcom_test/45130803.txt b/funcom_test/45130803.txt deleted file mode 100644 index 08c5c72b27fe73149ff5c6b4a07dce1dda0519fb..0000000000000000000000000000000000000000 --- a/funcom_test/45130803.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Value castLiteral(Literal literal) throws IllegalCastException { - if (!literal.getLabel().equalsIgnoreCase("true") && !literal.getLabel().equalsIgnoreCase("false")) { - throw new IllegalCastException("Unable to cast string to boolean"); - } - return this.factory.createLiteral(literal.getLabel(), SPARQLConstants.BOOLEAN_TYPE); - } - COM: <s> casts the passed untypted literal to a boolean literal </s> - diff --git a/funcom_test/45130810.txt b/funcom_test/45130810.txt deleted file mode 100644 index 422ea740ca9ccb8aa7a945a4aad7e7c8f8c5e8fe..0000000000000000000000000000000000000000 --- a/funcom_test/45130810.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Value castString(Literal literal) throws IllegalCastException { - try { - Long.parseLong(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), - SPARQLConstants.DECIMAL_TYPE); - } catch (NumberFormatException e) { - throw new IllegalCastException("Unable to cast string to integer"); - } - } - COM: <s> casts the passed xsd string value to a decimal literal </s> - diff --git a/funcom_test/45130820.txt b/funcom_test/45130820.txt deleted file mode 100644 index 9119bf3b53d530e41090e4f36eda42ecebc2c2b4..0000000000000000000000000000000000000000 --- a/funcom_test/45130820.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Value castBoolean(Literal literal) throws IllegalCastException { - if (Boolean.valueOf(literal.getLabel()).booleanValue()) { - return this.factory.createLiteral("1", SPARQLConstants.DECIMAL_TYPE); - } - return this.factory.createLiteral("0", SPARQLConstants.DECIMAL_TYPE); - } - COM: <s> casts the passed xsd boolean value to a decimal literal </s> - diff --git a/funcom_test/45130823.txt b/funcom_test/45130823.txt deleted file mode 100644 index a013d02efa84572c1c597794b330bd253dc5f0bf..0000000000000000000000000000000000000000 --- a/funcom_test/45130823.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Value castLiteral(Literal literal) throws IllegalCastException { - try { - Long.parseLong(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), - SPARQLConstants.DECIMAL_TYPE); - } catch (NumberFormatException e) { - throw new IllegalCastException("Unable to cast string to integer"); - } - } - COM: <s> casts the passed untyped literal to a decimal literal </s> - diff --git a/funcom_test/45130827.txt b/funcom_test/45130827.txt deleted file mode 100644 index 966720ab16bbdc4337f78fafb19a9e387a657fd9..0000000000000000000000000000000000000000 --- a/funcom_test/45130827.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Value castString(Literal literal) throws IllegalCastException { - try { - Float.parseFloat(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), - SPARQLConstants.FLOAT_TYPE); - } catch (NumberFormatException e) { - throw new IllegalCastException("Unable to cast string to float"); - } - } - COM: <s> casts the passed xsd string value to a float literal </s> - diff --git a/funcom_test/45130831.txt b/funcom_test/45130831.txt deleted file mode 100644 index 10ede432ee46cfe2c1b75e81546eec26509cec9f..0000000000000000000000000000000000000000 --- a/funcom_test/45130831.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ConstraintLogic getTripleConstraintLogic(TripleConstraintData data) { - if (data.getPredicateExpression() instanceof URI) { - if (this.predicateMap.containsKey(data.getPredicateExpression())) { - return new FunctionalPredicateLogic((FunctionalPredicate) this.predicateMap.get(data - .getPredicateExpression()), data); - } - } - return new StreamedTripleConstraintLogic(data); - } - COM: <s> gets the default triple constraint logic </s> - diff --git a/funcom_test/45130837.txt b/funcom_test/45130837.txt deleted file mode 100644 index b233831bc362ce0c82eb986fb145717d5ae8f511..0000000000000000000000000000000000000000 --- a/funcom_test/45130837.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Value castBoolean(Literal literal) throws IllegalCastException { - if (Boolean.valueOf(literal.getLabel()).booleanValue()) { - return this.factory.createLiteral("1", SPARQLConstants.FLOAT_TYPE); - } - return this.factory.createLiteral("0", SPARQLConstants.FLOAT_TYPE); - } - COM: <s> casts the passed xsd boolean value to a float literal </s> - diff --git a/funcom_test/45130842.txt b/funcom_test/45130842.txt deleted file mode 100644 index 692c51eb95daf7166111d282c43e904262b9a7a7..0000000000000000000000000000000000000000 --- a/funcom_test/45130842.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Value castLiteral(Literal literal) throws IllegalCastException { - try { - Float.parseFloat(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), - SPARQLConstants.FLOAT_TYPE); - } catch (NumberFormatException e) { - throw new IllegalCastException("Unable to cast string to float"); - } - } - COM: <s> casts the passed untyped literal to a float literal </s> - diff --git a/funcom_test/45130844.txt b/funcom_test/45130844.txt deleted file mode 100644 index 62eb0d338a3ece6e39144ea6e99aa70846555f75..0000000000000000000000000000000000000000 --- a/funcom_test/45130844.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Value evaluate(RdfBindingRow bindings) { - - try { - Value value = this.function.evaluate((ExpressionLogic[]) this.data.getArguments().toArray( - new ExpressionLogic[0]), bindings); - - // Convert the return value to an evaluable Value - return this.factory.createValue(value); - } catch (ExternalFunctionException e) { - // TODO Should be some exception? - return null; - } - - } - COM: <s> evaluates the function by evaluating the arguments and passing them to </s> - diff --git a/funcom_test/45130864.txt b/funcom_test/45130864.txt deleted file mode 100644 index 21a10cc3a53adaea3560da73c270e1d0fb105dbc..0000000000000000000000000000000000000000 --- a/funcom_test/45130864.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Value castString(Literal literal) throws IllegalCastException { - try { - new DateTime(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), SPARQLConstants.DATE_TYPE); - } catch (IllegalArgumentException e) { - throw new IllegalCastException("Unable to cast string to dateTime"); - } - } - COM: <s> casts the passed xsd string value to a date time literal if its </s> - diff --git a/funcom_test/45130865.txt b/funcom_test/45130865.txt deleted file mode 100644 index 6472354e9522402a6dfcf0b8b18c346274f32d75..0000000000000000000000000000000000000000 --- a/funcom_test/45130865.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public ConstraintLogic getOptionalConstraintLogic(OptionalConstraintData data, SPARQLValueFactory valueFactory) { - return new DefaultOptionalConstraintLogic(data, new IndexedSetIntersectLogic(), new DefaultIntersectOrderLogic( - new IndexedSetIntersectLogic()), new IndexedSetJoinLogic(getValueConversionLogic(valueFactory), - getEffectiveBooleanLogic(valueFactory))); - } - COM: <s> gets the default optional constraint logic </s> - diff --git a/funcom_test/45130871.txt b/funcom_test/45130871.txt deleted file mode 100644 index b98bb97e79c1db5396fd654e88d50e9dd4ee003a..0000000000000000000000000000000000000000 --- a/funcom_test/45130871.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Value castString(Literal literal) throws IllegalCastException { - try { - Double.parseDouble(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), - SPARQLConstants.DOUBLE_TYPE); - } catch (NumberFormatException e) { - throw new IllegalCastException("Unable to cast string to integer"); - } - } - COM: <s> casts the passed xsd string value to a double literal </s> - diff --git a/funcom_test/45130891.txt b/funcom_test/45130891.txt deleted file mode 100644 index 90a0cb99a5e6a7794c763caa65a5a85c7e7c9cd9..0000000000000000000000000000000000000000 --- a/funcom_test/45130891.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Value castLiteral(Literal literal) throws IllegalCastException { - try { - new DateTime(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), SPARQLConstants.DATE_TYPE); - } catch (IllegalArgumentException e) { - throw new IllegalCastException("Unable to cast string to dateTime"); - } - } - COM: <s> casts the passed untyped literal to a date time literal if its correctly </s> - diff --git a/funcom_test/45130893.txt b/funcom_test/45130893.txt deleted file mode 100644 index 31e2e3acf6c3e2b4fa04a285781d768d15330309..0000000000000000000000000000000000000000 --- a/funcom_test/45130893.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Value castBoolean(Literal literal) throws IllegalCastException { - if (Boolean.valueOf(literal.getLabel()).booleanValue()) { - return this.factory.createLiteral("1", SPARQLConstants.DOUBLE_TYPE); - } - return this.factory.createLiteral("0", SPARQLConstants.DOUBLE_TYPE); - } - COM: <s> casts the passed xsd boolean value to a double literal </s> - diff --git a/funcom_test/45130900.txt b/funcom_test/45130900.txt deleted file mode 100644 index ddbae7fc6730e76ca4ab3d7fef5188c76f933a04..0000000000000000000000000000000000000000 --- a/funcom_test/45130900.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Value castLiteral(Literal literal) throws IllegalCastException { - try { - Double.parseDouble(literal.getLabel()); - return this.factory.createLiteral(literal.getLabel(), - SPARQLConstants.DOUBLE_TYPE); - } catch (NumberFormatException e) { - throw new IllegalCastException("Unable to cast string to integer"); - } - } - COM: <s> casts the passed untyped literal to a double literal </s> - diff --git a/funcom_test/45130910.txt b/funcom_test/45130910.txt deleted file mode 100644 index a1b314807d85a5b20c30138b2b28a82e96529c89..0000000000000000000000000000000000000000 --- a/funcom_test/45130910.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Value evaluate(RdfBindingRow bindings) { - Variable variable = (Variable) this.data.getArguments().get(0); - //TODO Does bound("hi") work? - //TODO See what to do if the variable does not exist - boolean result = (bindings.getValue(variable) != null); - return this.converter.convertBoolean(result); - } - COM: <s> returns a literal representing a boolean value of whether or not the </s> - diff --git a/funcom_test/45130948.txt b/funcom_test/45130948.txt deleted file mode 100644 index fd9dceaf40825951dda07df3c0cd46fd27784eed..0000000000000000000000000000000000000000 --- a/funcom_test/45130948.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Value evaluate(Value leftValue, Value rightValue) { - - Literal leftBool = this.boolLogic.forceBoolean(leftValue); - Literal rightBool = this.boolLogic.forceBoolean(rightValue); - - boolean result = evaluateBoolean( - this.converter.convertBoolean(leftBool), - this.converter.convertBoolean(rightBool)); - return this.converter.convertBoolean(result); - } - COM: <s> forces the type of the values to boolean then converts to java boolean </s> - diff --git a/funcom_test/45131043.txt b/funcom_test/45131043.txt deleted file mode 100644 index 23bbc8bdd0d8fe72d57db565e13942812c0b8fad..0000000000000000000000000000000000000000 --- a/funcom_test/45131043.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Literal promoteDouble(Literal numeral) { - Double result; - try { - result = Double.valueOf(numeral.getLabel()); - } catch (NumberFormatException e) { - throw new TypeError("Cannot promote non-numeral to a double value"); - } - return this.factory.createLiteral(result.toString(), SPARQLConstants.DOUBLE_TYPE); - } - COM: <s> promotes a literal to a double datatype reparsing the label </s> - diff --git a/funcom_test/45131046.txt b/funcom_test/45131046.txt deleted file mode 100644 index 30e0d6dc4878bd0dc86ed1fc79a7e4609ab4ad17..0000000000000000000000000000000000000000 --- a/funcom_test/45131046.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Literal promoteFloat(Literal numeral) { - Float result; - try { - result = Float.valueOf(numeral.getLabel()); - } catch (NumberFormatException e) { - throw new TypeError("Cannot promote non-numeral to a float value"); - } - return this.factory.createLiteral(result.toString(), SPARQLConstants.FLOAT_TYPE); - } - COM: <s> promotes a literal to a float datatype reparsing the label </s> - diff --git a/funcom_test/45131049.txt b/funcom_test/45131049.txt deleted file mode 100644 index ad4dc82f9cf1b1cf53a7008babc106f3026d4567..0000000000000000000000000000000000000000 --- a/funcom_test/45131049.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Literal promoteDecimal(Literal numeral) { - Long result; - try { - result = Long.valueOf(numeral.getLabel()); - } catch (NumberFormatException e) { - throw new TypeError("Cannot promote non-numeral to a decimal value"); - } - return this.factory.createLiteral(result.toString(), SPARQLConstants.DECIMAL_TYPE); - } - COM: <s> promotes a literal to a decimal datatype reparsing the label </s> - diff --git a/funcom_test/45131203.txt b/funcom_test/45131203.txt deleted file mode 100644 index 326e406944bcc998ab76913dfeb894e10f577568..0000000000000000000000000000000000000000 --- a/funcom_test/45131203.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Value getValue(Variable variable) { - if (variable == null) { - throw new NullPointerException("Variable 'variable' cannot be null"); - } - - int columnIndex = RdfBindingSetImpl.this.getIndex(variable); - if (columnIndex == -1) { - throw new IllegalArgumentException("Variable " + variable + " is not bound in this row"); - } - Value[] rowValues = ((Value[]) RdfBindingSetImpl.this.values.get(this.row)); - return rowValues[columnIndex]; - } - COM: <s> gets the value of a particular variable bound in this row </s> - diff --git a/funcom_test/45131435.txt b/funcom_test/45131435.txt deleted file mode 100644 index 1d1cfb7e6792f7938ffdef8294f0b3c015388cd7..0000000000000000000000000000000000000000 --- a/funcom_test/45131435.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private String formatInt(int iValue, int minDigits) { - String result = String.valueOf(Math.abs(iValue)); - - int zeroCount = minDigits - result.length(); - if (zeroCount > 0) { - StringBuffer buf = new StringBuffer(minDigits); - if (iValue < 0) { - buf.append('-'); - } - for (int i = 0; i < zeroCount; i++) { - buf.append('0'); - } - buf.append(result); - - result = buf.toString(); - } - - return result; - } - COM: <s> converts an integer to a string enforcing the resulting string to have </s> - diff --git a/funcom_test/45131620.txt b/funcom_test/45131620.txt deleted file mode 100644 index d9704ba4dc5b97c11e1878852958a14dd4c34406..0000000000000000000000000000000000000000 --- a/funcom_test/45131620.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void endRDF() throws RDFHandlerException { - Resource start = startNode; - while (start != null) { - Resource entryNode = (Resource) entryNodes.get(start); - - SPARQLManifest manifest = new SPARQLManifest(); - - manifest.setName(names.get(entryNode).toString()); - manifest.setManifestFile(manifestFiles.get(entryNode).toString()); - - this.manifests.add(manifest); - - start = (Resource) linkedList.get(start); - } - } - COM: <s> builds the test case list from the maps of object relationships </s> - diff --git a/funcom_test/45131662.txt b/funcom_test/45131662.txt deleted file mode 100644 index 21c9cdac41888620309c2128fab8083532009e63..0000000000000000000000000000000000000000 --- a/funcom_test/45131662.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void handleStatement(GraphStatement statement) throws RDFHandlerException { - try { - if (context != null) { - this.store.addStatement((URI) context, statement.getSubject(), statement.getPredicate(), statement - .getObject()); - } else { - this.store.addStatement(statement.getSubject(), statement.getPredicate(), statement.getObject()); - } - } catch (RdfStoreException e) { - throw new RDFHandlerException("Problem adding statement to store", e); - } - } - COM: <s> inserts statements into the rdf store </s> - diff --git a/funcom_test/45131782.txt b/funcom_test/45131782.txt deleted file mode 100644 index c4fa82c79509283114a09c25b645fa9325c8a711..0000000000000000000000000000000000000000 --- a/funcom_test/45131782.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addDataFile(String name, String dataFile) { - List dataFileList = (List) this.dataFiles.get(name); - if (dataFileList == null) { - dataFileList = new ArrayList(); - this.dataFiles.put(name, dataFileList); - } - dataFileList.add(dataFile); - } - COM: <s> adds a input file mapping to the internal map </s> - diff --git a/funcom_test/45147629.txt b/funcom_test/45147629.txt deleted file mode 100644 index 21c10e0ee1217c1ee902e17e6b9a2cc12170621e..0000000000000000000000000000000000000000 --- a/funcom_test/45147629.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getName() { - String strName; - if (this.name == null) { - if (this.getPlayerType() == Player.TYPE_COMPUTER) { - strName = "Computer"; - } else { - strName = ui.getName(); - } - this.setName(strName); - } - return this.name; - } - COM: <s> get the captains name </s> - diff --git a/funcom_test/45147733.txt b/funcom_test/45147733.txt deleted file mode 100644 index 3a443e5a9168e6bc4b80cc727278f4c21431f1ad..0000000000000000000000000000000000000000 --- a/funcom_test/45147733.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void autoPositionFielders() { - Position pos = null; - for (int i = 0; i < fielders.size(); i++) { - // get one of the fielders - Fielder fielder = (Fielder) fielders.get(i); - pos = createUniqueFieldersPosition(fielder); - fielder.setPosition(pos); - log.info("Position of fielder " + i + " is " + pos.toString()); - } - } - COM: <s> when the fielding captain is a computer player the game automatically sets </s> - diff --git a/funcom_test/45147736.txt b/funcom_test/45147736.txt deleted file mode 100644 index 8f1924a67ff424885ee65a7bbbce8530bb4e6383..0000000000000000000000000000000000000000 --- a/funcom_test/45147736.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Position createUniqueFieldersPosition(Fielder fielder) { - Die die = new Die(6); - boolean isValidPos = false; - Position pos = null; - while (!isValidPos) { - pos = new Position(die.roll(), die.roll(), 0); - isValidPos = field.isFieldingPositionEmpty(pos); - } - return pos; - } - COM: <s> method to automatically create a fielders position </s> - diff --git a/funcom_test/45147782.txt b/funcom_test/45147782.txt deleted file mode 100644 index 0a6b76c66a88883ebf0b9d093008d7052283a9b9..0000000000000000000000000000000000000000 --- a/funcom_test/45147782.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void initInnings() { - if (player1.getRole() == Captain.ROLE_BATTING) { - setBatsman(player1.getNewBatsman()); - setBowler(player2.getNewBowler()); - player2.setField(); - } else { - setBatsman(player2.getNewBatsman()); - setBowler(player1.getNewBowler()); - player1.setField(); - } - } - COM: <s> have the captains initialise their temas for a new innings </s> - diff --git a/funcom_test/45147819.txt b/funcom_test/45147819.txt deleted file mode 100644 index 4d486bc63f7ea3d34071970e30af143e8c673331..0000000000000000000000000000000000000000 --- a/funcom_test/45147819.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void initDnD() { - this.dragSource = DragSource.getDefaultDragSource(); - this.dgListener = new DGListener(); - this.dsListener = new DSListener(); - - this.dragSource.createDefaultDragGestureRecognizer((Component) this, - DnDConstants.ACTION_MOVE, this.dgListener); - } - COM: <s> initialise the drag and drop interface </s> - diff --git a/funcom_test/45147826.txt b/funcom_test/45147826.txt deleted file mode 100644 index 451005236b92ac86c02e51d667dd7d5648d12233..0000000000000000000000000000000000000000 --- a/funcom_test/45147826.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void paintComponent(Graphics g) { - super.paintComponent(g); - switch (showing) { - case Coin.SIDE_HEADS: - g.drawImage(heads, 0, 0, this); - break; - case Coin.SIDE_TAILS: - g.drawImage(tails, 0, 0, this); - } - } - COM: <s> draws the coin </s> - diff --git a/funcom_test/45147857.txt b/funcom_test/45147857.txt deleted file mode 100644 index e186f307622c12d18b2134cbfe1f18857a9f747c..0000000000000000000000000000000000000000 --- a/funcom_test/45147857.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void update() { - if (ball != null) { - BallState ballAction = null; - if (ball.getStateCategoryType() == BallState.CATEGORY_TYPE_BOWL) { - ballAction = getHit(); - if (ballAction != null) { - ball.affect(ballAction); - } - } - } - } - COM: <s> updates the batsmans state that is hits the ball runs </s> - diff --git a/funcom_test/45147862.txt b/funcom_test/45147862.txt deleted file mode 100644 index a7cc40a6552994a5870adb30a73739dff5f7eb2f..0000000000000000000000000000000000000000 --- a/funcom_test/45147862.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean placePiece(Position pos, Piece piece) { - boolean isPlaced = false; - Vector pieces; - pieces = getPiecesAt(pos); - if (pieces == null) { - pieces = new Vector(); - } - pieces.add(piece); - setPiecesAt(pos, pieces); - return true; // always returns true in this instance since multiple - // pieces can be in any position - } - COM: <s> places a piece on the board </s> - diff --git a/funcom_test/45147874.txt b/funcom_test/45147874.txt deleted file mode 100644 index 2bc3c44e9fa5e7618355aad422b3d5f44192684a..0000000000000000000000000000000000000000 --- a/funcom_test/45147874.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void clearFieldersFromField() { - // clear all fielders from field - for (int i = 0; i < boardXDimension; i++) { - for (int j = 0; j < boardYDimension; j++) { - for (int a = 0; a < boardZDimension; a++) { - cricketFieldPositions[i][j][a] = 0; - } - } - } - } - COM: <s> clear all fielders from the field </s> - diff --git a/funcom_test/45147888.txt b/funcom_test/45147888.txt deleted file mode 100644 index b04a82e0d16ee09f3f7a49b4653c254770f7cc4f..0000000000000000000000000000000000000000 --- a/funcom_test/45147888.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void initUI() { - initFrame(); - - initMenu(); - initBowlerInterface(); - initFieldInterface(); - initBatsmanInterface(); - initBallInterface(); - initCoinInterface(); - initUmpireInterface(); - initScoreBoardInterface(); - - frame.setVisible(true); - - reader = new Thread(this); - reader.setDaemon(true); - reader.start(); - } - COM: <s> initialise the user interface </s> - diff --git a/funcom_test/45239994.txt b/funcom_test/45239994.txt deleted file mode 100644 index eacf088f212366720fd66bd20b5354071618d484..0000000000000000000000000000000000000000 --- a/funcom_test/45239994.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void run() { - Logger.print("GameEngine now running"); - eventHandler.add(new DelayedEvent(null, 900000) { // 15mins - public void run() { - for(Player p : world.getPlayers()) { - p.save(); - } - world.getServer().getLoginConnector().getActionSender().saveProfiles(); - } - }); - while (running) { - try { Thread.sleep(50); } catch(InterruptedException ie) {} - processLoginServer(); - processIncomingPackets(); - processEvents(); - processClients(); - } - - } - COM: <s> the thread execution process </s> - diff --git a/funcom_test/45240205.txt b/funcom_test/45240205.txt deleted file mode 100644 index fc8c93ff1f3ce1e5ce2cd27b8f71ac80f0c59243..0000000000000000000000000000000000000000 --- a/funcom_test/45240205.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void delayedRemoveObject(final GameObject object, final int delay) { - delayedEventHandler.add(new SingleEvent(null, delay) { - public void action() { - ActiveTile tile = getTile(object.getLocation()); - if(tile.hasGameObject() && tile.getGameObject().equals(object)) { - unregisterGameObject(object); - } - } - }); - } - COM: <s> adds a delayed event that will remove a game object </s> - diff --git a/funcom_test/45240284.txt b/funcom_test/45240284.txt deleted file mode 100644 index 54ecb4e9a645f3fbb41336d86c7af3b53e46c731..0000000000000000000000000000000000000000 --- a/funcom_test/45240284.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void registerItem(final Item i) { - if(i.getLoc() == null) { - delayedEventHandler.add(new DelayedEvent(null, 180000) { - public void run() { - ActiveTile tile = getTile(i.getLocation()); - if(tile.hasItem(i)) { - unregisterItem(i); - } - running = false; - } - }); - } - } - COM: <s> registers an item to be removed after 3 minutes </s> - diff --git a/funcom_test/45240313.txt b/funcom_test/45240313.txt deleted file mode 100644 index 273ef358def36ada5683797d5e23e6d95878eb6c..0000000000000000000000000000000000000000 --- a/funcom_test/45240313.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void unregisterPlayer(Player p) { - p.setLoggedIn(false); - p.resetAll(); - p.save(); - Mob opponent = p.getOpponent(); - if(opponent != null) { - p.resetCombat(CombatState.ERROR); - opponent.resetCombat(CombatState.ERROR); - } - server.getLoginConnector().getActionSender().playerLogout(p.getUsernameHash()); - delayedEventHandler.removePlayersEvents(p); - players.remove(p); - setLocation(p, p.getLocation(), null); - } - COM: <s> removes a player from the server and saves their account </s> - diff --git a/funcom_test/45240314.txt b/funcom_test/45240314.txt deleted file mode 100644 index 5bf59b903f0566bbcbaf7429ace8584234471f93..0000000000000000000000000000000000000000 --- a/funcom_test/45240314.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int readInt() { - try { - return ((pData[caret++] & 0xff) << 24) - | ((pData[caret++] & 0xff) << 16) - | ((pData[caret++] & 0xff) << 8) - | (pData[caret++] & 0xff); - } - catch(Exception e) { - Logger.error(e.getMessage()); - return 0; - } - } - COM: <s> reads the next code int code from the payload </s> - diff --git a/funcom_test/45240448.txt b/funcom_test/45240448.txt deleted file mode 100644 index 2fa2f517f6852d0342fb6b851f6702dec77feb02..0000000000000000000000000000000000000000 --- a/funcom_test/45240448.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Npc getNpc(int id, int minX, int maxX, int minY, int maxY) { - for(Npc npc : npcs) { - if(npc.getID() == id && npc.getX() >= minX && npc.getX() <= maxX && npc.getY() >= minY && npc.getY() <= maxY) { - return npc; - } - } - return null; - } - COM: <s> gets an npc by their coords and id </s> - diff --git a/funcom_test/45240544.txt b/funcom_test/45240544.txt deleted file mode 100644 index d0e60c9daebd05d7e56bd4f51282953955253073..0000000000000000000000000000000000000000 --- a/funcom_test/45240544.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void expandCapacity(int minimumCapacity) { - int newCapacity = (payload.length + 1) * 2; - if(newCapacity < 0) { - newCapacity = Integer.MAX_VALUE; - } - else if(minimumCapacity > newCapacity) { - newCapacity = minimumCapacity; - } - int oldLength = curLength; - if(oldLength > payload.length) { - oldLength = payload.length; - } - byte[] newPayload = new byte[newCapacity]; - try { - System.arraycopy(payload, 0, newPayload, 0, oldLength); - } - catch(Exception e) { - Logger.error(e); - } - payload = newPayload; - } - COM: <s> expands the buffer to the specified size </s> - diff --git a/funcom_test/45240570.txt b/funcom_test/45240570.txt deleted file mode 100644 index ba34533fb5c83539042cd3ac0cafaec320ee1f03..0000000000000000000000000000000000000000 --- a/funcom_test/45240570.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void showBank() { - RSCPacketBuilder s = new RSCPacketBuilder(); - s.setID(93); - s.addByte((byte)player.getBank().size()); - s.addByte((byte)Bank.MAX_SIZE); - for(InvItem i : player.getBank().getItems()) { - s.addShort(i.getID()); - s.addInt(i.getAmount()); - } - packets.add(s.toPacket()); - } - COM: <s> show the bank window </s> - diff --git a/funcom_test/45240636.txt b/funcom_test/45240636.txt deleted file mode 100644 index ed7b4aa9e3f0c240a8ad1f2be3032a9ce5cd8ce8..0000000000000000000000000000000000000000 --- a/funcom_test/45240636.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void sendFriendList() { - RSCPacketBuilder s = new RSCPacketBuilder(); - s.setID(249); - s.addByte((byte)player.getFriendList().size()); - for(Entry<Long, Integer> friend : player.getFriendList()) { - int world = friend.getValue(); - s.addLong(friend.getKey()); - s.addByte((byte)(world == Config.SERVER_NUM ? 99 : world)); - } - packets.add(s.toPacket()); - } - COM: <s> sends the whole friendlist </s> - diff --git a/funcom_test/45240774.txt b/funcom_test/45240774.txt deleted file mode 100644 index 0a5cbdb54e936c4e73c59667d5fa4425d84bc13d..0000000000000000000000000000000000000000 --- a/funcom_test/45240774.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void sendEquipmentStats() { - RSCPacketBuilder s = new RSCPacketBuilder(); - s.setID(177); - s.addShort(player.getArmourPoints()); - s.addShort(player.getWeaponAimPoints()); - s.addShort(player.getWeaponPowerPoints()); - s.addShort(player.getMagicPoints()); - s.addShort(player.getPrayerPoints()); - s.addShort(player.getRangePoints()); - packets.add(s.toPacket()); - } - COM: <s> updates the equipment status </s> - diff --git a/funcom_test/45376983.txt b/funcom_test/45376983.txt deleted file mode 100644 index e959020a283d0e1b358956b1d1518f6428e0546d..0000000000000000000000000000000000000000 --- a/funcom_test/45376983.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public double getTemperature() { - Element units = channel.getChild("units", this.namespace); - - Element condition = item.getChild("condition", this.namespace); - String content = condition.getAttributeValue("temp"); - double temperature = Double.parseDouble(content); - if (units.getAttributeValue("temperature").equals("F")) { - // Converte de Farehreit para Celcius. - temperature = (temperature - 32) * 5 / 9; - } - return temperature; - } - COM: <s> return the current ambient temperature </s> - diff --git a/funcom_test/45376984.txt b/funcom_test/45376984.txt deleted file mode 100644 index 6f84c39e702da443db90ea822902911e0128eeac..0000000000000000000000000000000000000000 --- a/funcom_test/45376984.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public double getHigh() { - Element units = channel.getChild("units", this.namespace); - - Element forecast = item.getChild("forecast", this.namespace); - String content = forecast.getAttributeValue("high"); - double high = Double.parseDouble(content); - if (units.getAttributeValue("temperature").equals("F")) { - // Converte de Farehreit para Celcius. - high = (high - 32) * 5 / 9; - } - return high; - } - COM: <s> return the highest temperature for the current day </s> - diff --git a/funcom_test/45376989.txt b/funcom_test/45376989.txt deleted file mode 100644 index 00052774d4f69262ce586e1e15389f849d56f477..0000000000000000000000000000000000000000 --- a/funcom_test/45376989.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public double getLow() { - Element units = channel.getChild("units", this.namespace); - - Element forecast = item.getChild("forecast", this.namespace); - String content = forecast.getAttributeValue("low"); - double low = Double.parseDouble(content); - if (units.getAttributeValue("temperature").equals("F")) { - // Converte de Farehreit para Celcius. - low = (low - 32) * 5 / 9; - } - return low; - } - COM: <s> return the lowest temperature for the current day </s> - diff --git a/funcom_test/45458930.txt b/funcom_test/45458930.txt deleted file mode 100644 index 568a6d045059448d8c759a30123a4f17f6a5b663..0000000000000000000000000000000000000000 --- a/funcom_test/45458930.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JFrame getJFrame() { - if (jFrame == null) { - jFrame = new JFrame(); - jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - jFrame.setJMenuBar(getJJMenuBar()); - jFrame.setSize(824, 511); - jFrame.setContentPane(getJTabbedPane()); - jFrame.setTitle("ESTsSubmitter"); - } - return jFrame; - } - COM: <s> this method initializes j frame </s> - diff --git a/funcom_test/45459025.txt b/funcom_test/45459025.txt deleted file mode 100644 index 095aced345a120c119f214bd25454cf7f237061f..0000000000000000000000000000000000000000 --- a/funcom_test/45459025.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private JMenuItem getAboutMenuItem() { - if (aboutMenuItem == null) { - aboutMenuItem = new JMenuItem(); - aboutMenuItem.setText("About"); - aboutMenuItem.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JDialog aboutDialog = getAboutDialog(); - aboutDialog.pack(); - Point loc = getJFrame().getLocation(); - loc.translate(50, 50); - aboutDialog.setLocation(loc); - aboutDialog.setVisible(true); - } - }); - } - return aboutMenuItem; - } - COM: <s> this method initializes j menu item </s> - diff --git a/funcom_test/45459096.txt b/funcom_test/45459096.txt deleted file mode 100644 index 54f8a5dc72c6699944a0e0e36e070882029f920d..0000000000000000000000000000000000000000 --- a/funcom_test/45459096.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getAboutContentPane() { - if (aboutContentPane == null) { - aboutContentPane = new JPanel(); - aboutContentPane.setLayout(new BorderLayout()); - aboutContentPane.setSize(500,200); - aboutContentPane.add(getAboutVersionLabel(), BorderLayout.NORTH); - aboutContentPane.add(getJTextArea1(), BorderLayout.EAST); - } - return aboutContentPane; - } - COM: <s> this method initializes about content pane </s> - diff --git a/funcom_test/45459233.txt b/funcom_test/45459233.txt deleted file mode 100644 index a33b4d48ee79a6787766dbd6a8e79b81f132b0af..0000000000000000000000000000000000000000 --- a/funcom_test/45459233.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField() { - if (jTextField == null) { - jTextField = new JTextField(); - jTextField.setBounds(new Rectangle(52, 224, 381, 33)); - jTextField.setText(defaultProps.getProperty("binarypath")); - jTextField.setText(applicationProps.getProperty("binarypath")); - } - return jTextField; - } - COM: <s> this method initializes j text field </s> - diff --git a/funcom_test/45459355.txt b/funcom_test/45459355.txt deleted file mode 100644 index 12c76d38532a93f5fc56b76f8d5fc7fcff08c39e..0000000000000000000000000000000000000000 --- a/funcom_test/45459355.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField1() { - if (jTextField1 == null) { - jTextField1 = new JTextField(); - jTextField1.setBounds(new Rectangle(49, 202, 388, 31)); - jTextField1.setText(defaultProps.getProperty("blastdb")); - jTextField1.setText(applicationProps.getProperty("blastdb")); - } - return jTextField1; - } - COM: <s> this method initializes j text field1 </s> - diff --git a/funcom_test/45459427.txt b/funcom_test/45459427.txt deleted file mode 100644 index 6bc5907587cfd14b72732d8c0f42eedd93393a79..0000000000000000000000000000000000000000 --- a/funcom_test/45459427.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField3() { - if (jTextField3 == null) { - jTextField3 = new JTextField(); - jTextField3.setBounds(new Rectangle(31, 91, 435, 29)); - jTextField3.setText(defaultProps.getProperty("input")); - jTextField3.setText(applicationProps.getProperty("input")); - } - return jTextField3; - } - COM: <s> this method initializes j text field3 </s> - diff --git a/funcom_test/45459439.txt b/funcom_test/45459439.txt deleted file mode 100644 index b0601d433c750592e5e6eee461078fe75e79f02b..0000000000000000000000000000000000000000 --- a/funcom_test/45459439.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField4() { - if (jTextField4 == null) { - jTextField4 = new JTextField(); - jTextField4.setBounds(new Rectangle(31, 229, 435, 32)); - jTextField4.setText(defaultProps.getProperty("output")); - jTextField4.setText(applicationProps.getProperty("output")); - } - return jTextField4; - } - COM: <s> this method initializes j text field4 </s> - diff --git a/funcom_test/45459500.txt b/funcom_test/45459500.txt deleted file mode 100644 index 05906590201f0b89a8cc730a91e34cbe90d61b0b..0000000000000000000000000000000000000000 --- a/funcom_test/45459500.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JButton getJButton7() { - if (jButton7 == null) { - jButton7 = new JButton(); - jButton7.setBounds(new Rectangle(29, 48, 107, 33)); - jButton7.setText("Run BLAST"); - jButton7.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - jButton7.setEnabled(false); - jButton9.setEnabled(true); - runProg(); - } - }); - } - return jButton7; - } - COM: <s> this method initializes j button7 </s> - diff --git a/funcom_test/45459536.txt b/funcom_test/45459536.txt deleted file mode 100644 index 4d4d0d47a49663d1f6f5c92b07b0cf4073b85557..0000000000000000000000000000000000000000 --- a/funcom_test/45459536.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private JButton getJButton8() { - if (jButton8 == null) { - jButton8 = new JButton(); - jButton8.setBounds(new Rectangle(345, 323, 125, 29)); - jButton8.setText("Stop formatting"); - jButton8.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - System.out.println("Stop formatting."); - if (process_formatdb != null) { - process_formatdb.destroy(); - } - } - }); - } - return jButton8; - } - COM: <s> this method initializes j button8 </s> - diff --git a/funcom_test/45459691.txt b/funcom_test/45459691.txt deleted file mode 100644 index dcfa2ab43f5c5b5f24894516d506123b03f03c12..0000000000000000000000000000000000000000 --- a/funcom_test/45459691.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField6() { - if (jTextField6 == null) { - jTextField6 = new JTextField("0.00001"); - jTextField6.setBounds(new Rectangle(147, 136, 110, 29)); - jTextField6.setText(defaultProps.getProperty("e-value")); - jTextField6.setText(applicationProps.getProperty("e-value")); - } - return jTextField6; - } - COM: <s> this method initializes j text field6 </s> - diff --git a/funcom_test/45459698.txt b/funcom_test/45459698.txt deleted file mode 100644 index 09719d7cb05f46a2c30342f923eda428c58aeee3..0000000000000000000000000000000000000000 --- a/funcom_test/45459698.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private JComboBox getJComboBox2() { - if (jComboBox2 == null) { - jComboBox2 = new JComboBox(new String[] {"BLOSUM62", "BLOSUM45", "BLOSUM80","PAM30", "PAM70"}); - jComboBox2.setBounds(new Rectangle(149, 181, 107, 30)); - } - return jComboBox2; - } - COM: <s> this method initializes j combo box2 </s> - diff --git a/funcom_test/45459706.txt b/funcom_test/45459706.txt deleted file mode 100644 index a87b3ba002caa35423508ee082360af95daa4599..0000000000000000000000000000000000000000 --- a/funcom_test/45459706.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField7() { - if (jTextField7 == null) { - jTextField7 = new JTextField("11"); - jTextField7.setBounds(new Rectangle(148, 227, 108, 32)); - jTextField7.setText(defaultProps.getProperty("opengap")); - jTextField7.setText(applicationProps.getProperty("opengap")); - } - return jTextField7; - } - COM: <s> this method initializes j text field7 </s> - diff --git a/funcom_test/45459717.txt b/funcom_test/45459717.txt deleted file mode 100644 index fc8b90f9189e6434e244f8158f8c6a6fa7569c7a..0000000000000000000000000000000000000000 --- a/funcom_test/45459717.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField8() { - if (jTextField8 == null) { - jTextField8 = new JTextField(); - jTextField8.setBounds(new Rectangle(148, 269, 108, 32)); - jTextField8.setText(defaultProps.getProperty("extendgap")); - jTextField8.setText(applicationProps.getProperty("extendgap")); - } - return jTextField8; - } - COM: <s> this method initializes j text field8 </s> - diff --git a/funcom_test/45459769.txt b/funcom_test/45459769.txt deleted file mode 100644 index 18f3751d4d36d6d063de176d576beb086afca944..0000000000000000000000000000000000000000 --- a/funcom_test/45459769.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField9() { - if (jTextField9 == null) { - jTextField9 = new JTextField(); - jTextField9.setBounds(new Rectangle(163, 61, 409, 32)); - jTextField9.setText(defaultProps.getProperty("output")); - jTextField9.setText(applicationProps.getProperty("output")); - } - return jTextField9; - } - COM: <s> this method initializes j text field9 </s> - diff --git a/funcom_test/45459782.txt b/funcom_test/45459782.txt deleted file mode 100644 index 84216425c9f4efad39c8aaeab044ac8ad45b0345..0000000000000000000000000000000000000000 --- a/funcom_test/45459782.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextField10() { - if (jTextField10 == null) { - jTextField10 = new JTextField(); - jTextField10.setBounds(new Rectangle(165, 128, 407, 31)); - jTextField10.setText(defaultProps.getProperty("parseoutput")); - jTextField10.setText(applicationProps.getProperty("parseoutput")); - } - return jTextField10; - } - COM: <s> this method initializes j text field10 </s> - diff --git a/funcom_test/45459880.txt b/funcom_test/45459880.txt deleted file mode 100644 index 98c5c30cb13ed91cebfdac7cee6ae16fe43e830b..0000000000000000000000000000000000000000 --- a/funcom_test/45459880.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JButton getJButton14() { - if (jButton14 == null) { - jButton14 = new JButton(); - jButton14.setBounds(new Rectangle(167, 175, 90, 28)); - jButton14.setText("Parse"); - jButton14.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - runParser(); - } - }); - } - return jButton14; - } - COM: <s> this method initializes j button14 </s> - diff --git a/funcom_test/45460059.txt b/funcom_test/45460059.txt deleted file mode 100644 index 4a4dc47911c1e811bb8fe7506b93146780cc5520..0000000000000000000000000000000000000000 --- a/funcom_test/45460059.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private JComboBox getJComboBoxStatus() { - if (jComboBoxStatus == null) { - jComboBoxStatus = new JComboBox(new String [] {"1", "2", "3", "4"} ); - jComboBoxStatus.setBounds(new Rectangle(136, 361, 55, 21)); - } - return jComboBoxStatus; - } - COM: <s> this method initializes j combo box status </s> - diff --git a/funcom_test/45460386.txt b/funcom_test/45460386.txt deleted file mode 100644 index 061fff083bec71dc44891d938e5d2c95a74ed3b2..0000000000000000000000000000000000000000 --- a/funcom_test/45460386.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JComboBox getJComboBoxSex() { - if (jComboBoxSex == null) { - jComboBoxSex = new JComboBox(new String [] { - "", "female", "male", "hermaphrodite"} ); - jComboBoxSex.setBounds(new Rectangle(121, 209, 137, 16)); - } - return jComboBoxSex; - } - COM: <s> this method initializes j combo box sex </s> - diff --git a/funcom_test/45460542.txt b/funcom_test/45460542.txt deleted file mode 100644 index 9af137af9ebeeb43db31b5f5a2658c252bb4e818..0000000000000000000000000000000000000000 --- a/funcom_test/45460542.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JComboBox getJComboBoxV_Type() { - if (jComboBoxV_Type == null) { - jComboBoxV_Type = new JComboBox(new String [] { - "", "Cosmid", "Phage", "Plasmid", "YAC", "other"}); - jComboBoxV_Type.setBounds(new Rectangle(434, 116, 135, 17)); - } - return jComboBoxV_Type; - } - COM: <s> this method initializes j combo box v type </s> - diff --git a/funcom_test/45460629.txt b/funcom_test/45460629.txt deleted file mode 100644 index dad02f2d9549c5f6e2f8e1150d4ea9b458c74b9f..0000000000000000000000000000000000000000 --- a/funcom_test/45460629.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JComboBox getJComboBoxEST() { - if (jComboBoxEST == null) { - jComboBoxEST = new JComboBox(new String [] {"EST"} ); - jComboBoxEST.setBounds(new Rectangle(134, 32, 79, 18)); - jComboBoxEST.setEnabled(true); - } - return jComboBoxEST; - } - COM: <s> this method initializes j combo box est </s> - diff --git a/funcom_test/45460654.txt b/funcom_test/45460654.txt deleted file mode 100644 index c05f09ff3a2646c4339ede807da2de9fff2e2941..0000000000000000000000000000000000000000 --- a/funcom_test/45460654.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private JComboBox getJComboBoxStatusEST() { - if (jComboBoxStatusEST == null) { - jComboBoxStatusEST = new JComboBox(new String [] {"New", "Update"} ); - jComboBoxStatusEST.setBounds(new Rectangle(405, 31, 81, 18)); - } - return jComboBoxStatusEST; - } - COM: <s> this method initializes j combo box status est </s> - diff --git a/funcom_test/45461668.txt b/funcom_test/45461668.txt deleted file mode 100644 index d5369abbef5c100e2ac3842903445e98d7620bcf..0000000000000000000000000000000000000000 --- a/funcom_test/45461668.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JTable getJTable() { - if (jTable == null) { - jTable = new JTable(); - jTable.setToolTipText("In the table, EST id assigned by contact lab (Obligatory field); "); - String[] columnNames = {"EST#"}; - Object[][] data = { }; - DefaultTableModel model = new DefaultTableModel(data,columnNames); - jTable.setModel(model); - } - return jTable; - } - COM: <s> this method initializes j table </s> - diff --git a/funcom_test/454707.txt b/funcom_test/454707.txt deleted file mode 100644 index 446911dd2866e6d548d9600075047d49029a2681..0000000000000000000000000000000000000000 --- a/funcom_test/454707.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ApplySettings getApplySettings(){ - // look through the blocks for one with a matching header - ApplySettings settings = null; - for (int i = 0; i < settingsBlocks.length; i++) { - if (settingsBlocks[i].startsWith(ApplySettings.class.getName())){ - settings = (ApplySettings)addProps(new ApplySettings(),settingsBlocks[i]); - break; - } - - } - return settings; - } - COM: <s> looks for an apply settings block in the compound properties string </s> - diff --git a/funcom_test/454708.txt b/funcom_test/454708.txt deleted file mode 100644 index faa7c2ba1e2a7dc4735ae7191ed004720749d567..0000000000000000000000000000000000000000 --- a/funcom_test/454708.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public LayoutSettings getLayoutSettings(){ - // look through the blocks for one with a matching header - LayoutSettings settings = null; - for (int i = 0; i < settingsBlocks.length; i++) { - if (settingsBlocks[i].trim().startsWith(LayoutSettings.class.getName())){ - - settings = (LayoutSettings)addProps(new LayoutSettings(),settingsBlocks[i]); - break; - } - - } - return settings; - } - COM: <s> looks for an layout settings block in the compound properties string </s> - diff --git a/funcom_test/454709.txt b/funcom_test/454709.txt deleted file mode 100644 index 8e8e074efd667bb7113e14432baba69bc865f6b9..0000000000000000000000000000000000000000 --- a/funcom_test/454709.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ColormapperSettings getColormapperSettings(){ - // look through the blocks for one with a matching header - ColormapperSettings settings = null; - for (int i = 0; i < settingsBlocks.length; i++) { - if (settingsBlocks[i].trim().startsWith(ColormapperSettings.class.getName())){ - - settings = (ColormapperSettings)addProps(new ColormapperSettings(),settingsBlocks[i]); - break; - } - - } - return settings; - } - COM: <s> looks for an colormapper settings block in the compound properties string </s> - diff --git a/funcom_test/454710.txt b/funcom_test/454710.txt deleted file mode 100644 index bcfa487ee2090dd65af27c62e7b39427cc38bb82..0000000000000000000000000000000000000000 --- a/funcom_test/454710.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public GraphicsSettings getGraphicsSettings(){ - // look through the blocks for one with a matching header - GraphicsSettings settings = null; - for (int i = 0; i < settingsBlocks.length; i++) { - if (settingsBlocks[i].trim().startsWith(GraphicsSettings.class.getName())){ - - settings = (GraphicsSettings)addProps(new GraphicsSettings(),settingsBlocks[i]); - break; - } - - } - return settings; - } - COM: <s> looks for an graphics settings block in the compound properties string </s> - diff --git a/funcom_test/454711.txt b/funcom_test/454711.txt deleted file mode 100644 index 3ac3b9711bb1b4ac10f70b1967211a6c5304ac0d..0000000000000000000000000000000000000000 --- a/funcom_test/454711.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public BrowsingSettings getBrowsingSettings(){ - // look through the blocks for one with a matching header - BrowsingSettings settings = null; - for (int i = 0; i < settingsBlocks.length; i++) { - if (settingsBlocks[i].trim().startsWith(BrowsingSettings.class.getName())){ - - settings = (BrowsingSettings)addProps(new BrowsingSettings(),settingsBlocks[i]); - break; - } - - } - return settings; - } - COM: <s> looks for an browsing settings block in the compound properties string </s> - diff --git a/funcom_test/454713.txt b/funcom_test/454713.txt deleted file mode 100644 index 77908bb6d885240e5114fe6b8e0fd599a10c51d8..0000000000000000000000000000000000000000 --- a/funcom_test/454713.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public MovieSettings getMovieSettings(){ -// look through the blocks for one with a matching header - MovieSettings settings = null; - for (int i = 0; i < settingsBlocks.length; i++) { - if (settingsBlocks[i].trim().startsWith(MovieSettings.class.getName())){ - settings = (MovieSettings)addProps(new MovieSettings(),settingsBlocks[i]); - break; - } - } - return settings; - } - COM: <s> looks for an property settings block in the compound properties string corresponding </s> - diff --git a/funcom_test/454745.txt b/funcom_test/454745.txt deleted file mode 100644 index 649519942eeccce2f8cbc3363930197b3e225344..0000000000000000000000000000000000000000 --- a/funcom_test/454745.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private double coordToTime(double coord){ - double plotStart = Double.parseDouble(settings.getProperty(LayoutSettings.SLICE_START)); - double plotEnd = Double.parseDouble(settings.getProperty(LayoutSettings.SLICE_END)); - int plotWidth = drawArea.getWidth() - (2 * sidePad); - double dataOffset = plotStart; - double scaleFactor = (double) plotWidth / (plotEnd - plotStart); - // compute the data-time where the mouse is - return((double) coord - sidePad) / scaleFactor+ dataOffset; - } - COM: <s> converts a plot coordinate into the appropriate time coordinate </s> - diff --git a/funcom_test/454747.txt b/funcom_test/454747.txt deleted file mode 100644 index e43933587fa789e2c4a9ad372afbdf28db4f19c8..0000000000000000000000000000000000000000 --- a/funcom_test/454747.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void mouseClicked(MouseEvent event) { - // first, check to see if the layout is ready - if (engine != null && engine.getErrorSlices() != null) { - currentLayout = engine.getLayoutWindow(); - // get the slice index - int index = getSliceIndexFromTime(coordToTime(event.getX())); - // check if it is valid - if (index >= 0) { - // ask layout to change the slice - currentLayout.goToSlice(index); - } - drawArea.repaint(); - } - } - COM: <s> determines which slice was clicked and asks the layout to change to it </s> - diff --git a/funcom_test/454792.txt b/funcom_test/454792.txt deleted file mode 100644 index b3dbec080e2ece428e7e77797d4cb6c7f15969f7..0000000000000000000000000000000000000000 --- a/funcom_test/454792.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addLayoutProperty(String name, double value) { - // make new GUI objects - JLabel PropLabel = new JLabel(name); - JTextField PropField = new JTextField(value + "", 3); - PropField.setName(name); - // add the pair to the Hashmap - layoutProperties.put(name, PropField); - propComponents.add(PropLabel); - propComponents.add(PropField); - } - COM: <s> called by the layout algorithm during setup so that it can add parameters </s> - diff --git a/funcom_test/454798.txt b/funcom_test/454798.txt deleted file mode 100644 index ee60119e5e42ed8485ebfa1d2f3ae224b08f8bab..0000000000000000000000000000000000000000 --- a/funcom_test/454798.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setLayoutProperty(String name, double value) { - // make sure it exists - if (layoutProperties.keySet().contains(name)) { - // get the corresponding text field - JTextField propField = (JTextField) layoutProperties.get(name); - // set its text to the value - propField.setText(value + ""); - } else { - System.out.println("unable to match property to name " + name); - } - } - COM: <s> sets the algorithm specific layout pramter to the passed value after </s> - diff --git a/funcom_test/454855.txt b/funcom_test/454855.txt deleted file mode 100644 index 969ce29ab24183ad1c3e2387e6821fecadd7ecce..0000000000000000000000000000000000000000 --- a/funcom_test/454855.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - if (EDIT.equals(e.getActionCommand())) { - // The user has clicked the cell, so - // button.setBackground(currentColor); - colorChooser.setColor(currentColor); - colorChooser.setVisible(true); - - // Make the renderer reappear. - fireEditingStopped(); - - } else { // User pressed dialog's "OK" button. - currentColor = colorChooser.getColor(); - mapper.mapColor(editingValue, currentColor); - table.repaint(); - } - } - COM: <s> handles events from the editor button and from the dialogs ok </s> - diff --git a/funcom_test/4549084.txt b/funcom_test/4549084.txt deleted file mode 100644 index 08b9e61b424133ec105aa5a7f554d168abddc2c7..0000000000000000000000000000000000000000 --- a/funcom_test/4549084.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setOpacity(float opacity) { - float oldOpacity = this.opacity; - - if (opacity < 0.0f) { - opacity = 0.0f; - } else if (opacity > 1.0f) { - opacity = 1.0f; - } - - if (oldOpacity != opacity) { - this.opacity = opacity; - changeSupport.firePropertyChange(OPACITY_CHANGED_PROPERTY, - oldOpacity, - this.opacity); - } - } - COM: <s> p sets the opacity used by the factory to generate reflections </s> - diff --git a/funcom_test/454911.txt b/funcom_test/454911.txt deleted file mode 100644 index c8cf5e248380fe50e10bb05a482c63ccf0d3e587..0000000000000000000000000000000000000000 --- a/funcom_test/454911.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getInputFileName(String fname, String message) { - FileDialog locateInput = new FileDialog(this, message, FileDialog.LOAD); - // throw up open dialog - locateInput.setSize(450, 300); - locateInput.setFile(fname); - locateInput.setDirectory(control.getCurrentPath()); - locateInput.setVisible(true); - String inputFileName = locateInput.getFile(); - String inputPath = locateInput.getDirectory(); - control.setCurrentPath(inputPath); - return inputFileName; - } - COM: <s> throws up an open file dialog for choosing files to load </s> - diff --git a/funcom_test/454938.txt b/funcom_test/454938.txt deleted file mode 100644 index acbf8a3b6c3312eb5523ed47230262582220c89d..0000000000000000000000000000000000000000 --- a/funcom_test/454938.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void changeToSliceNum(int num) { - if (num > layoutSlices.size() - 1) { - control.showError("There is no slice number " + num); - // or gray out button - } else if (num < 0) { - control.showError("There is no slice number " + num); - // should beep or something - // or gray out button - } else { - currentSlice = num; - repaintDisplays(); - } - } - COM: <s> checks if the passed slice number exists then changes the current slice </s> - diff --git a/funcom_test/454972.txt b/funcom_test/454972.txt deleted file mode 100644 index 1158fd4f50534a5ebc9158d09ddb6808b0ba2417..0000000000000000000000000000000000000000 --- a/funcom_test/454972.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setCoordsToSlice(int sliceNum) { - // check that sliceNumis within range - if ((sliceNum >= 0) & (sliceNum < layoutSlices.size())) { - currentXcoords = ((LayoutSlice) layoutSlices.get(sliceNum)) - .getXCoords().clone(); - currentYcoords = ((LayoutSlice) layoutSlices.get(sliceNum)) - .getYCoords().clone(); - } - } - COM: <s> sets the current x and y screen coordinates for the nodes to the </s> - diff --git a/funcom_test/454985.txt b/funcom_test/454985.txt deleted file mode 100644 index 64dba3c965306b8e689525eef99a71133fbabacd..0000000000000000000000000000000000000000 --- a/funcom_test/454985.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void moveNodes() { - if (!movingNodes) { - movingNodes = true; - // mover will add itself to layout as a mouse motion listener - mover = new NodeMover(Control, engine, LayoutArea); - MoveNodes.setText("Stop Moving"); - } else { - movingNodes = false; - mover.endMoveNodes(); - mover = null; - MoveNodes.setText("Move Nodes"); - controlePane.requestFocusInWindow(); - } - } - COM: <s> creates a new node mover for manualy positioning nodes </s> - diff --git a/funcom_test/455106.txt b/funcom_test/455106.txt deleted file mode 100644 index 6240d8f9ce4089677290be8caebd8514066175b2..0000000000000000000000000000000000000000 --- a/funcom_test/455106.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void saveAsSon(String fileName) { - File outfile = new File(fileName); - // make new outputstream - FileWriter outWriter; - try { - outWriter = new FileWriter(outfile); - // make new printwrinter - PrintWriter outPrinter = new PrintWriter(new BufferedWriter( - outWriter), true); - outPrinter.print(currentNet); - outPrinter.flush(); - outPrinter.close(); - } catch (IOException e) { - error("unable to write .son file " + outfile.getAbsolutePath() - + ":" + e.getMessage()); - } - status("Saved file as " + outfile.getAbsolutePath()); - } - COM: <s> save out the currently constructed network data as a </s> - diff --git a/funcom_test/455180.txt b/funcom_test/455180.txt deleted file mode 100644 index ee241b3c343a65d13ffb6405a66aecaf54e11646..0000000000000000000000000000000000000000 --- a/funcom_test/455180.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void showSonPreview(String text, int row) { - showSonPreview(text); - // figure out the correct selection positions for the row number - int selStart = 0; - int selEnd = 0; - for (int r = 0; r < row; r++) { - selStart = selEnd; - selEnd = text.indexOf("\n", selStart + 1); - } - sonPreview.requestFocus(); - sonPreview.select(selStart, selEnd); - } - COM: <s> also hilites the specified row </s> - diff --git a/funcom_test/455255.txt b/funcom_test/455255.txt deleted file mode 100644 index fcb191d7e177a0fc16d4b2f9c980015011070b74..0000000000000000000000000000000000000000 --- a/funcom_test/455255.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public double getMatrixDistance(LayoutSlice slice1, LayoutSlice slice2){ - double distance = 0; - SparseDoubleMatrix2D mat1 =getMatrix(slice1); - SparseDoubleMatrix2D mat2 =getMatrix(slice2); - - for (int i = 0; i < mat1.rows(); i++) { - for (int j = 0; j < mat1.columns(); j++) { - distance += Math.abs(mat1.getQuick(i,j)-mat2.getQuick(i,j)); - } - } - return distance; - } - COM: <s> computes the distances between the matricies in two sucessive slices </s> - diff --git a/funcom_test/455400.txt b/funcom_test/455400.txt deleted file mode 100644 index f6d9839579e73b638a582c9acea2913cfcd21524..0000000000000000000000000000000000000000 --- a/funcom_test/455400.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void drawController(){ - Shape pause = new Shape(); - pause.defineFillStyle(new Color(255, 50, 50)); - pause.defineLineStyle(0.5, new Color(50, 50, 50)); - pause.setRightFillStyle(1); - pause.setLineStyle(1); - pause.move(-2, -2); // move coords are absolute - pause.line(2, -2); // line - pause.line(2, 2 ); - pause.line(-2,2); - pause.line(-2, -2 ); - currentFrame.placeSymbol(pause, 3,3); - } - COM: <s> creats a play and pause button for the movie </s> - diff --git a/funcom_test/45550058.txt b/funcom_test/45550058.txt deleted file mode 100644 index 2f792cdb5ae07fe9319bb9883a85a384b697da89..0000000000000000000000000000000000000000 --- a/funcom_test/45550058.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getMetricHelp(String metric) { - if (metric.startsWith("JAVA")) { - IJavaRule rule = rulesEngine.findRuleByKey(metric); - if (null != rule) { - return rule.getName(); - } - - throw new IllegalArgumentException("Could not locate rule for metric: " + metric); - } - else { - return bundle.getString(metric + ".name"); - } - } - COM: <s> obtain a display worthy description of a metric </s> - diff --git a/funcom_test/45550273.txt b/funcom_test/45550273.txt deleted file mode 100644 index 5b4cdeeb8a450e14f03ae7b2905b59c09fdc67f6..0000000000000000000000000000000000000000 --- a/funcom_test/45550273.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void write(String property, IPropertyStore store) { - store.setProperty(property + PROP_PREFIX, prefix); - store.setProperty(property + PROP_FIRST, first); - store.setProperty(property + PROP_REST, rest); - store.setProperty(property + PROP_SUFFIX, suffix); - } - COM: <s> write the current pattern to a property store </s> - diff --git a/funcom_test/45550274.txt b/funcom_test/45550274.txt deleted file mode 100644 index 6e0c05c28a9a4b3792b5817337d7a35484a732d6..0000000000000000000000000000000000000000 --- a/funcom_test/45550274.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void read(IPropertyStore store) { - includePublic = store.getProperty(property + PROPERTY_PUBLIC, defaultPublic); - includePackage = store.getProperty(property + PROPERTY_PACKAGE, defaultPackage); - includeProtected = store.getProperty(property + PROPERTY_PROTECTED, defaultProtected); - includePrivate = store.getProperty(property + PROPERTY_PRIVATE, defaultPrivate); - } - COM: <s> read scope preferences from a property store </s> - diff --git a/funcom_test/45550275.txt b/funcom_test/45550275.txt deleted file mode 100644 index 0ccadadf35910b47b69316d08c363a2d6ede9abd..0000000000000000000000000000000000000000 --- a/funcom_test/45550275.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void write(IPropertyStore store) { - store.setProperty(property + PROPERTY_PUBLIC, includePublic); - store.setProperty(property + PROPERTY_PACKAGE, includePackage); - store.setProperty(property + PROPERTY_PROTECTED, includeProtected); - store.setProperty(property + PROPERTY_PRIVATE, includePrivate); - } - COM: <s> write scope preferences to a property store </s> - diff --git a/funcom_test/45550293.txt b/funcom_test/45550293.txt deleted file mode 100644 index 427bbe0473d9f34bd9eb0dc45bfe1798b3eedab6..0000000000000000000000000000000000000000 --- a/funcom_test/45550293.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addToBaseline(String resource, JavaProblem[] problems) { - if ((null == problems) || (0 == problems.length)) { - data.remove(resource); - } - else { - BaselineProblem[] baseline = createBaseline(problems); - data.put(resource, baseline); - } - } - COM: <s> add baselined problems </s> - diff --git a/funcom_test/45550307.txt b/funcom_test/45550307.txt deleted file mode 100644 index e9987cc33145125ddbbeef6aff9ad373b63114dd..0000000000000000000000000000000000000000 --- a/funcom_test/45550307.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void readProperties(IPropertyStore store) { - synchronized (enabled) { - disabled.addAll(enabled); - enabled.clear(); - - ContextPropertyStore contextStore = new ContextPropertyStore(store); - - for (IJavaRule rule : disabled) { - contextStore.setContext(rule.getKey()); - rule.readProperties(contextStore); - - if (contextStore.getProperty(ENABLED_PROP, true)) { - enabled.add(rule); - } - } - - disabled.removeAll(enabled); - } - } - COM: <s> read rule configuration from the given property store </s> - diff --git a/funcom_test/45550311.txt b/funcom_test/45550311.txt deleted file mode 100644 index 535e4c85d7cee23b6f79ca432649a23d9cd28f48..0000000000000000000000000000000000000000 --- a/funcom_test/45550311.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public IFixCapability getFixCapabilityFor(String ruleKey) { - if (ruleKey.equals(INTERNAL_ERROR_RULE)) { - return null; - } - - IJavaRule rule = findRuleByKey(ruleKey); - - if (null == rule) { - throw new IllegalArgumentException("Could not locate rule: " + ruleKey); - } - - return rule.getFixCapability(); - } - COM: <s> locates the fix capability for a rule key </s> - diff --git a/funcom_test/45550499.txt b/funcom_test/45550499.txt deleted file mode 100644 index a233cab9a37fa50d6847af66aa6d464ec71acf34..0000000000000000000000000000000000000000 --- a/funcom_test/45550499.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected JavaProblem addProblem(ASTNode node, Object... args) { - if (null == node) { - throw new IllegalArgumentException("Can not log on an empty node in " + getKey()); - } - - return manager.addProblem(getKey(), node, makeMessage(args)); - } - COM: <s> register a problem on the given node </s> - diff --git a/funcom_test/45550504.txt b/funcom_test/45550504.txt deleted file mode 100644 index 02c4405f86113fac6712288b4425000c491373f8..0000000000000000000000000000000000000000 --- a/funcom_test/45550504.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected String getString(String key, Object... args) { - String answer = null; - try { - answer = bundle.getString(makeUnique(key)); - } - catch (MissingResourceException e) { - return "!" + e.getKey() + "!"; - } - - if (0 != args.length) { - return MessageFormat.format(answer, args); - } - - return answer; - } - COM: <s> obtain a string from the localization bundle </s> - diff --git a/funcom_test/45552168.txt b/funcom_test/45552168.txt deleted file mode 100644 index 888fe0898578e9616492a94c9d3d8c311fad94e3..0000000000000000000000000000000000000000 --- a/funcom_test/45552168.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setRulePriority(String ruleKey, int priority) { - switch (priority) { - case IMarker.SEVERITY_ERROR: - case IMarker.SEVERITY_WARNING: - case IMarker.SEVERITY_INFO: - store.setProperty(ruleKey + "_priority", priority); - break; - - default: - throw new IllegalArgumentException("Invalid priority " + priority + " for rule " + ruleKey); - } - } - COM: <s> set the priority for a rule </s> - diff --git a/funcom_test/45552194.txt b/funcom_test/45552194.txt deleted file mode 100644 index 38d4b97026e55c7dca45a1d9194cdca87377cee3..0000000000000000000000000000000000000000 --- a/funcom_test/45552194.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Image getPriorityImage(int markerPriority) { - String key = null; - switch (markerPriority) { - case IMarker.SEVERITY_ERROR: - key = ICON_PRIORITY_HIGH; - break; - - case IMarker.SEVERITY_WARNING: - key = ICON_PRIORITY_MED; - break; - - default: - key = ICON_PRIORITY_LOW; - break; - } - - return getImageRegistry().get(key); - } - COM: <s> get the image for a marker priority level </s> - diff --git a/funcom_test/45552195.txt b/funcom_test/45552195.txt deleted file mode 100644 index a0c0138f38209224fcd89bcb464089b923e2366f..0000000000000000000000000000000000000000 --- a/funcom_test/45552195.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setFilters(IFilter[] existing) { - filters.removeAll(); - - String[] items = new String[existing.length]; - for (int x = 0; x < existing.length; x++) { - items[x] = existing[x].toString(); - } - - Arrays.sort(items); - for (String item : items) { - filters.add(item); - } - } - COM: <s> set the filters to display in the panel </s> - diff --git a/funcom_test/45552294.txt b/funcom_test/45552294.txt deleted file mode 100644 index 271d07baddab5ce5ec6c0a5424988aafe94c5aaf..0000000000000000000000000000000000000000 --- a/funcom_test/45552294.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Text createInput(String label) { - Label prompt = new Label(panel, SWT.NONE); - prompt.setText(label); - - Text answer = new Text(panel, SWT.BORDER); - GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false); - gd.widthHint = GuiConstants.WIDTH; - answer.setLayoutData(gd); - - return answer; - } - COM: <s> create a text box in the panel with a label </s> - diff --git a/funcom_test/45552295.txt b/funcom_test/45552295.txt deleted file mode 100644 index 114c7eaae493854889eb33a3dabe33a3172d56bb..0000000000000000000000000000000000000000 --- a/funcom_test/45552295.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Text createPassword(String label) { - Label prompt = new Label(panel, SWT.NONE); - prompt.setText(label); - - Text answer = new Text(panel, SWT.BORDER | SWT.PASSWORD); - GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false); - gd.widthHint = GuiConstants.WIDTH; - answer.setLayoutData(gd); - - return answer; - } - COM: <s> create a text box for password input with a label </s> - diff --git a/funcom_test/45552297.txt b/funcom_test/45552297.txt deleted file mode 100644 index f612ca5d4b0e24e6f7bb16560e1104b5af7f780c..0000000000000000000000000000000000000000 --- a/funcom_test/45552297.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Label createTextBlock(String text) { - Label label = new Label(panel, SWT.WRAP); - GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false); - gd.horizontalSpan = cols; - gd.widthHint = GuiConstants.WIDTH * 4; - label.setLayoutData(gd); - label.setText(text); - - return label; - } - COM: <s> create a large label for displaying text </s> - diff --git a/funcom_test/45552321.txt b/funcom_test/45552321.txt deleted file mode 100644 index dbb511ac2aafe3af325c35697687fefd11a81bfe..0000000000000000000000000000000000000000 --- a/funcom_test/45552321.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeMatchingFiles(IFilter filter) { - Iterator<String> walkFiles = state.keySet().iterator(); - while (walkFiles.hasNext()) { - String resource = walkFiles.next(); - if (null != resource) { - if (filter.matches(resource)) { - walkFiles.remove(); - } - } - } - } - COM: <s> remove the state of any files that match a filter </s> - diff --git a/funcom_test/45552418.txt b/funcom_test/45552418.txt deleted file mode 100644 index f6cc75452281603c5565171a3aa3624f59af666b..0000000000000000000000000000000000000000 --- a/funcom_test/45552418.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public TokenIterator getTokensForRange(int start, int length) { - if ((-1 == start) || (0 == length)) { - return new TokenIterator(null, null); - } - - Token firstToken = findToken(start); - Token lastToken = findToken(start + length); - - return new TokenIterator(lastToken, firstToken); - } - COM: <s> get all the tokens for a range of text </s> - diff --git a/funcom_test/45552645.txt b/funcom_test/45552645.txt deleted file mode 100644 index 5308b5761ae41d5e72d28c5271a4056230e684de..0000000000000000000000000000000000000000 --- a/funcom_test/45552645.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testConcatenateList() { - Collection<String> c = Arrays.asList("one", "two", "three"); - String val = StringUtils.concatenate(c, ';'); - assertEquals("Wrong concatenation", "one;two;three", val); - } - COM: <s> make sure concatenating works </s> - diff --git a/funcom_test/45552647.txt b/funcom_test/45552647.txt deleted file mode 100644 index b86aa8ba2dbc3a06e75cf842249bf81832633082..0000000000000000000000000000000000000000 --- a/funcom_test/45552647.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testReturnsNoDiffsForSameValues() { - String[] text = { "One", "Two", "Three" }; - Difference[] diffs = Diff.diff(text, text); - assertEquals("Should not have diffs", 0, diffs.length); - } - COM: <s> make sure comparing the same items returns no diffs </s> - diff --git a/funcom_test/455671.txt b/funcom_test/455671.txt deleted file mode 100644 index 1e1466a61d9321c83f0f5d37e8d0f64700ceab37..0000000000000000000000000000000000000000 --- a/funcom_test/455671.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getValueForFieldName(String name) { - String value = null; - // get the field associated with the name - try { - Field f = this.getClass().getField(name); - // get the value of the field for this instance of the object - value = (String) f.get(this); - } catch (Exception e) { - // debug - System.out.println("error reading field value in column map class"); - e.printStackTrace(); - } - return value; - } - COM: <s> gets the value of the passed field name for this instance </s> - diff --git a/funcom_test/4556918.txt b/funcom_test/4556918.txt deleted file mode 100644 index b6142c1621fe51fad1e2fab48ddf5a8554806c30..0000000000000000000000000000000000000000 --- a/funcom_test/4556918.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void generateErodabilities(int x, int y){ - Vector<Layer> layers = map[x][y].getLayers(); - for (Layer layer : layers) { - double min = layer.getLayerSpecification().getMinErodability(); - double max = layer.getLayerSpecification().getMaxErodability(); - double erod = min + generateGaussianLimited()*(max-min); - if(erod > max) - erod = max; - else if(erod < min) - erod = min; - layer.setErodability(erod); - - } - } - COM: <s> generates erodabilities for all layers at the specified location </s> - diff --git a/funcom_test/4557021.txt b/funcom_test/4557021.txt deleted file mode 100644 index b26d4d34c17d03b9e8ccaf45143b5d70feb7639d..0000000000000000000000000000000000000000 --- a/funcom_test/4557021.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: @Override - public void mouseClicked(MouseEvent event) { - - if (landform==null) return; - - if (event.getSource()==listHistory) { - int index = listHistory.locationToIndex(event.getPoint()); - Landform l = null; - if(historyData[index] != null) - l = historyData[index].clone(); - if (l!=null) { - //Debug.pl("history changed"); - landform = l; - updateAllViews(); - } - } - - } - COM: <s> method called when user clicks </s> - diff --git a/funcom_test/4557151.txt b/funcom_test/4557151.txt deleted file mode 100644 index 1bedad7837a73ce96a6020eccb1e7c38017924cf..0000000000000000000000000000000000000000 --- a/funcom_test/4557151.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setViewpoint () { - getViewingPlatform().setNominalViewingTransform(); - TransformGroup tg_view = getViewingPlatform().getViewPlatformTransform(); - Transform3D viewpoint = new Transform3D(); - Transform3D translation = new Transform3D(); - translation.setTranslation(new Vector3d(0d,0d,+2d)); - - tg_view.getTransform(viewpoint); - viewpoint.mul(translation); - tg_view.setTransform(viewpoint); - } - COM: <s> sets the viewpoint </s> - diff --git a/funcom_test/45572071.txt b/funcom_test/45572071.txt deleted file mode 100644 index 8adf83ecaaa8ef92be535b85f9e1f202cebcc3c0..0000000000000000000000000000000000000000 --- a/funcom_test/45572071.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void calculateVictoryBonus() { - - float[] victories = new float[numberOfPositions]; - - for (int i = 0; i < numberOfPositions; i++) { - int psbNumber = numberOfPositions - (i + 1); - victories[i] = player.getVictories(i + 1) * (player.getBSB() + (psbNumber * player.getPSB())); - } - - victoryBonus = 0.000f; - for (int i = 0; i < victories.length; i++) { - victoryBonus += victories[i]; - } - - } - COM: <s> calculates the victory bonus </s> - diff --git a/funcom_test/45572078.txt b/funcom_test/45572078.txt deleted file mode 100644 index 0a3e0456c665b56407508bc752527ebbfbf5c00a..0000000000000000000000000000000000000000 --- a/funcom_test/45572078.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void calculateDefeatMalus() { - - float[] defeats = new float[numberOfPositions]; - - for (int i = 0; i < numberOfPositions; i++) { - defeats[i] = player.getDefeats(i + 1) * (player.getBSB() + (i * player.getPSB())) ; - } - - float sumDefeats = 0.000f; - for (int i = 0; i < defeats.length; i++) { - sumDefeats += defeats[i]; - } - - defeatMalus = sumDefeats * (-1); - - } - COM: <s> calculates the defeat malus </s> - diff --git a/funcom_test/45572110.txt b/funcom_test/45572110.txt deleted file mode 100644 index 4c2c3bbe07ab1c30702869e6c794d3f01fa39d13..0000000000000000000000000000000000000000 --- a/funcom_test/45572110.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setCurrentPlayer(int numberInList) { - if (currentList.size() > numberInList && currentList.size() != 0) { - currentPlayer = currentList.getByView(numberInList); - frame.setMessageText("Aktueller Spieler: " + currentPlayer.getName()); - frame.setListActivitiesEnabled(true); - frame.setAllPlayerActivitiesEnabled(true); - } - } - COM: <s> sets the current player in the current list </s> - diff --git a/funcom_test/45572233.txt b/funcom_test/45572233.txt deleted file mode 100644 index 17cba954e72bcc35a92c27777546af058b8ba1c9..0000000000000000000000000000000000000000 --- a/funcom_test/45572233.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void onExit() { - - SessionWriter writer = new SessionWriter(this); - writer.write(); - - LinkedList<PlayerList> listsToSave = new LinkedList<PlayerList>(); - Iterator<PlayerList> iter = allPlayerLists.iterator(); - - while(iter.hasNext()) { - PlayerList list = iter.next(); - if (!list.isSaved()) { - listsToSave.add(list); - } - } - - if (listsToSave.size() > 0) { - new SaveDialog(this, listsToSave, true); - - } else { - System.exit(0); - } - } - COM: <s> functions on programs exit </s> - diff --git a/funcom_test/45572278.txt b/funcom_test/45572278.txt deleted file mode 100644 index c0118d24140ad22e6ea8646c13de6a37950f112b..0000000000000000000000000000000000000000 --- a/funcom_test/45572278.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equals(Player player) { - - if (player.getName().equals(this.getName()) && - player.getBalanceSheetValue().equals(this.getBalanceSheetValue()) && - player.getCategory().equals(this.getCategory()) && - player.getLeague().equals(this.getLeague())) { - - return true; - } - return false; - } - COM: <s> compares the players </s> - diff --git a/funcom_test/45572344.txt b/funcom_test/45572344.txt deleted file mode 100644 index 6f0fc919033613c001f2408096166c0bf98e547c..0000000000000000000000000000000000000000 --- a/funcom_test/45572344.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addTab(PlayerList list) { - PlayerTable newTable = new PlayerTable(manager); - JScrollPane pane = new JScrollPane(newTable); - allPlayerTables.add(newTable); - tpPanel.addTab(list.getName(), pane); - tpPanel.setTabComponentAt(tpPanel.getTabCount() - 1, new ButtonTabComponent(tpPanel, manager)); - - } - COM: <s> adds a new tab for the list </s> - diff --git a/funcom_test/45575942.txt b/funcom_test/45575942.txt deleted file mode 100644 index a02a83ca952ebe410c2ae384f51554faf176cfb0..0000000000000000000000000000000000000000 --- a/funcom_test/45575942.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public double dotproduct(Matrix A, Matrix B) { - double[][] a; - double[][] b; - a = A.getArray(); - b = B.getArray(); - double dp = 0.0; - for (int i = 0; i < a[0].length; i++) { - dp = dp + (a[0][i] * b[i][0]); - } - return dp; - } - COM: <s> public double dotproduct matrix a matrix b </s> - diff --git a/funcom_test/455761.txt b/funcom_test/455761.txt deleted file mode 100644 index 8b5e79de2197b1a0990a9d317dddd383a06fb8b1..0000000000000000000000000000000000000000 --- a/funcom_test/455761.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Color parseRGB(String rgbString) throws Exception { - Color color = null; - StringTokenizer split = new StringTokenizer(rgbString, ","); - try { - int r = Integer.parseInt(split.nextToken()); - int g = Integer.parseInt(split.nextToken()); - int b = Integer.parseInt(split.nextToken()); - color = new Color(r,g,b); - } catch (NumberFormatException nfe) { - String msg = "Unable to parse element of rgb color " + rgbString - + " must be in range 0 to 255"; - throw new Exception(msg); - } - - return color; - } - COM: <s> parses a comma delimited rgb string 12 12 255 into a java color </s> - diff --git a/funcom_test/455875.txt b/funcom_test/455875.txt deleted file mode 100644 index 5a58990a2e65fc3befcfe48a5b0ad050a49e7bb2..0000000000000000000000000000000000000000 --- a/funcom_test/455875.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void parseArcColHeader(String arcHeader) { - // tokenize the string - StringTokenizer arcHeaderTokens = new StringTokenizer(arcHeader, "\t"); - int numCols = arcHeaderTokens.countTokens(); - arcHeaderMap = new HashMap<String, Integer>(); - // copy cols into map - for (int n = 0; n < numCols; n++) { - arcHeaderMap.put(arcHeaderTokens.nextToken(), Integer.valueOf(n)); - } - } - COM: <s> parses the tab delimited arc column header stores the tokens in the arc </s> - diff --git a/funcom_test/455895.txt b/funcom_test/455895.txt deleted file mode 100644 index f917a1207e7cc4c93b783c46b6981960f4f9e4d0..0000000000000000000000000000000000000000 --- a/funcom_test/455895.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String parseClusterParent(String[] rowArray) { - String parentId = null; - String key = colMap.getProperty(DotSonColumnMap.PARENT); - if (clusterHeaderMap.containsKey(key)) { - parentId = rowArray[clusterHeaderMap.get(key).intValue()]; - // strip off optional encloseing braces - parentId = trimBraces(parentId); - if (parentId.equals("")) { - parentId = null; - } - } - return parentId; - } - COM: <s> parses parent as string </s> - diff --git a/funcom_test/45703715.txt b/funcom_test/45703715.txt deleted file mode 100644 index af8a3e726b47acf881a45c747ec5943df1712534..0000000000000000000000000000000000000000 --- a/funcom_test/45703715.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void initialize() { - GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); - gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints1.gridy = 3; - gridBagConstraints1.weightx = 1.0; - gridBagConstraints1.weighty = 1.0; - gridBagConstraints1.gridx = 0; - this.setLayout(new GridBagLayout()); - this.setSize(670, 684); - this.setSize(new java.awt.Dimension(564,684)); - this.add(getMasterDataTabbedPane(), gridBagConstraints1); - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/45703806.txt b/funcom_test/45703806.txt deleted file mode 100644 index c51665b261f2a02073a93ea47d148562eb7cf1dd..0000000000000000000000000000000000000000 --- a/funcom_test/45703806.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getEnrtyPanel() { - if (enrtyPanel == null) { - enrtyPanel = new JPanel(); - enrtyPanel.setLayout(new BorderLayout()); - enrtyPanel.add(getProgrammaPanel(), java.awt.BorderLayout.NORTH); - enrtyPanel.add(getInvoerPanel(), java.awt.BorderLayout.WEST); - enrtyPanel.add(getVerenigingsklassementButton(), java.awt.BorderLayout.EAST); - } - return enrtyPanel; - } - COM: <s> this method initializes j panel1 </s> - diff --git a/funcom_test/45703820.txt b/funcom_test/45703820.txt deleted file mode 100644 index 1e11e9381d16f08c0cc7e33c291099932474aa35..0000000000000000000000000000000000000000 --- a/funcom_test/45703820.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JPanel getProgrammaPanel() { - if (programmaPanel == null) { - jLabel = new JLabel(); - jLabel.setText("Programma"); - FlowLayout flowLayout = new FlowLayout(); - flowLayout.setAlignment(FlowLayout.LEFT); - programmaPanel = new JPanel(); - programmaPanel.setLayout(flowLayout); - programmaPanel.add(jLabel, null); - programmaPanel.add(getProgrammaComboBox(), null); - } - return programmaPanel; - } - COM: <s> this method initializes j panel2 </s> - diff --git a/funcom_test/45703841.txt b/funcom_test/45703841.txt deleted file mode 100644 index 55d323a854def1f37a896c76d5ad602989a4e05f..0000000000000000000000000000000000000000 --- a/funcom_test/45703841.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JPanel getInvoerPanel() { - if (invoerPanel == null) { - invoerPanel = new JPanel(); - invoerPanel.setLayout(new BoxLayout(getInvoerPanel(), BoxLayout.X_AXIS)); - invoerPanel.setPreferredSize(new Dimension(300, 50)); - invoerPanel.add(getCapPanel(), null); - invoerPanel.add(getEindTijdPanel(), null); - invoerPanel.add(getDisPanel(), null); - invoerPanel.add(getButtonPanel(), null); - } - return invoerPanel; - } - COM: <s> this method initializes j panel3 </s> - diff --git a/funcom_test/45703874.txt b/funcom_test/45703874.txt deleted file mode 100644 index 84778d86058d364f54b6cdc0aa0949c950f19800..0000000000000000000000000000000000000000 --- a/funcom_test/45703874.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private JPanel getEindTijdPanel() { - if (eindTijdPanel == null) { - jLabel2 = new JLabel(); - jLabel2.setPreferredSize(new Dimension(41, 20)); - jLabel2.setText("Eindtijd"); - jLabel2.setHorizontalAlignment(SwingConstants.CENTER); - eindTijdPanel = new JPanel(); - eindTijdPanel.setLayout(new BorderLayout()); - eindTijdPanel.add(jLabel2, java.awt.BorderLayout.NORTH); - eindTijdPanel.add(getEindTijdTextField(), java.awt.BorderLayout.CENTER); - } - return eindTijdPanel; - } - COM: <s> this method initializes j panel5 </s> - diff --git a/funcom_test/45703913.txt b/funcom_test/45703913.txt deleted file mode 100644 index 0721c4783521b1bc6fe24eab2d4d0a49dbf5fca1..0000000000000000000000000000000000000000 --- a/funcom_test/45703913.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getButtonPanel() { - if (buttonPanel == null) { - buttonPanel = new JPanel(); - buttonPanel.setLayout(new BorderLayout()); - buttonPanel.setPreferredSize(new Dimension(84, 50)); - buttonPanel.add(getPrintButton(), java.awt.BorderLayout.NORTH); - buttonPanel.add(getVoegToeButton(), java.awt.BorderLayout.CENTER); - } - return buttonPanel; - } - COM: <s> this method initializes j panel7 </s> - diff --git a/funcom_test/45703952.txt b/funcom_test/45703952.txt deleted file mode 100644 index 7419935d4b0dd941b8bacda557dadccad19bda64..0000000000000000000000000000000000000000 --- a/funcom_test/45703952.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JComboBox getFunktieComboBox() { - if (funktieComboBox == null) { - funktieComboBox = new JComboBox(); - funktieComboBox.setPreferredSize(new Dimension(31, 20)); - funktieComboBox.addItem(""); - funktieComboBox.addItem("HS"); - funktieComboBox.addItem("SR"); - funktieComboBox.addItem("KB"); - funktieComboBox.addItem("KA"); - funktieComboBox.addItem("HJ"); - funktieComboBox.addItem("JS"); - funktieComboBox.addItem("TW"); - } - return funktieComboBox; - } - COM: <s> this method initializes funktie combo box </s> - diff --git a/funcom_test/45703994.txt b/funcom_test/45703994.txt deleted file mode 100644 index e06a06237314ff675052e088444b2a98cb2f51a6..0000000000000000000000000000000000000000 --- a/funcom_test/45703994.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JPanel getSelectDialogContentPane() { - if (selectDialogContentPane == null) { - selectDialogContentPane = new JPanel(); - selectDialogContentPane.setLayout(new BorderLayout()); - selectDialogContentPane.add(getSelectDialogScrollPane(), BorderLayout.CENTER); - selectDialogContentPane.add(getSelectionText(), BorderLayout.NORTH); - selectDialogContentPane.add(getSelectButton(), BorderLayout.SOUTH); - selectDialogContentPane.setPreferredSize(new Dimension(160,200)); - } - return selectDialogContentPane; - } - COM: <s> this method initializes dialog content pane </s> - diff --git a/funcom_test/45704006.txt b/funcom_test/45704006.txt deleted file mode 100644 index ef79eab9d3b70e38a6ab52c149d3d0aeaf0a59e6..0000000000000000000000000000000000000000 --- a/funcom_test/45704006.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private JButton getSelectButton() { - if (selectButton == null) { - selectButton = new JButton(); - selectButton.setText("Kies"); - selectButton.setSize(new Dimension(40, 25)); - selectButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent arg0) { - getSelectDialog().setVisible(false); - int sel = getCapsList().getSelectedIndex(); - start = mstarts.get(sel); - } - - }); - - } - return selectButton; - } - COM: <s> this method initializes select button </s> - diff --git a/funcom_test/45704108.txt b/funcom_test/45704108.txt deleted file mode 100644 index 1d2db97e904692bae409881f6a8429bf8eec6445..0000000000000000000000000000000000000000 --- a/funcom_test/45704108.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getUitnodigenButton() { - if (uitnodigenButton == null) { - uitnodigenButton = new JButton(); - uitnodigenButton.setText("Nodig uit"); - uitnodigenButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed() - } - }); - } - return uitnodigenButton; - } - COM: <s> this method initializes uitnodigen button </s> - diff --git a/funcom_test/45704141.txt b/funcom_test/45704141.txt deleted file mode 100644 index 33ffa5d3fc5af4d4a435fdb519d722749939ba19..0000000000000000000000000000000000000000 --- a/funcom_test/45704141.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private JTextField getEindtijdTextField() { - if (eindtijdTextField == null) { - eindtijdTextField = new JTextField(); - eindtijdTextField.addFocusListener(new java.awt.event.FocusAdapter() { - public void focusLost(java.awt.event.FocusEvent e) { - try { - CheckTijd(parent.getEindtijdTextField().getText()); - } catch (TijdException e1) { - JOptionPane.showMessageDialog(null, - e1.getMessage(), - "Validatie", JOptionPane.ERROR_MESSAGE); - } - } - }); - } - return eindtijdTextField; - } - COM: <s> this method initializes eindtijd text field </s> - diff --git a/funcom_test/45704203.txt b/funcom_test/45704203.txt deleted file mode 100644 index 16a2148a9b77830b3635f1652933fe566a2a4a47..0000000000000000000000000000000000000000 --- a/funcom_test/45704203.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JTable getStartsTable() { - if (startsTable == null) { - startsTable = new JTable(); - startsTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); - startsTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); - startsTable.setShowGrid(true); -// Ask to be notified of selection changes. - startsTable.getSelectionModel().addListSelectionListener(new TableSelectionListener()); - } - return startsTable; - } - COM: <s> this method initializes j starts table </s> - diff --git a/funcom_test/45704249.txt b/funcom_test/45704249.txt deleted file mode 100644 index 146b31275f5dc27b1cef252c46b4e145f058180b..0000000000000000000000000000000000000000 --- a/funcom_test/45704249.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel getButtonPanel() { - if (buttonPanel == null) { - buttonPanel = new JPanel(); - buttonPanel.setLayout(new BoxLayout(getButtonPanel(), BoxLayout.Y_AXIS)); - buttonPanel.add(getVoerinButton(), null); - buttonPanel.add(getWijzigButton(), null); - buttonPanel.add(getVerwijderButton(), null); - } - return buttonPanel; - } - COM: <s> this method initializes j button panel </s> - diff --git a/funcom_test/45704326.txt b/funcom_test/45704326.txt deleted file mode 100644 index d6624d9dd32792bea075eb9b00f0cc198031109f..0000000000000000000000000000000000000000 --- a/funcom_test/45704326.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JButton getZoekButton() { - if (zoekButton == null) { - zoekButton = new JButton(); - zoekButton.setText("Zoek"); - zoekButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - searchVereniging( getZoekTextField().getText() ); - } - }); - } - return zoekButton; - } - COM: <s> this method initializes zoek button </s> - diff --git a/funcom_test/45705435.txt b/funcom_test/45705435.txt deleted file mode 100644 index 4934d5e2848f81c7121fd1d8598bd307e2ea3cb1..0000000000000000000000000000000000000000 --- a/funcom_test/45705435.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JPanel getOkCancelPanel() { - if (okCancelPanel == null) { - GridBagConstraints gridBagConstraints57 = new GridBagConstraints(); - gridBagConstraints57.insets = new Insets(5, 5, 5, 5); - okCancelPanel = new JPanel(); - okCancelPanel.setLayout(new GridBagLayout()); - okCancelPanel.add(getOkButton(), gridBagConstraints57); - okCancelPanel.add(getCancelButton(), new GridBagConstraints()); - } - return okCancelPanel; - } - COM: <s> this method initializes ok cancel panel </s> - diff --git a/funcom_test/45706769.txt b/funcom_test/45706769.txt deleted file mode 100644 index 55df49db1edd0b1477b09da751bbc6c82d28a50f..0000000000000000000000000000000000000000 --- a/funcom_test/45706769.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextFieldHiddenUnits() { - if (jTextFieldHiddenUnits == null) { - jTextFieldHiddenUnits = new JTextField(); - jTextFieldHiddenUnits.setBounds(new Rectangle(114, 170, 47, 20)); - jTextFieldHiddenUnits.setColumns(0); - jTextFieldHiddenUnits.setVisible(false); - } - return jTextFieldHiddenUnits; - } - COM: <s> this method initializes j text field hidden units </s> - diff --git a/funcom_test/45706814.txt b/funcom_test/45706814.txt deleted file mode 100644 index 53b4d00d88effd93255f662596daba6bb0685429..0000000000000000000000000000000000000000 --- a/funcom_test/45706814.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JTextField getJTextFieldValPerc() { - if (jTextFieldValPerc == null) { - jTextFieldValPerc = new JTextField(); - jTextFieldValPerc.setBounds(new Rectangle(148, 319, 41, 20)); - jTextFieldValPerc.setEditable(false); - jTextFieldValPerc.setVisible(false); - } - return jTextFieldValPerc; - } - COM: <s> this method initializes j text field val perc </s> - diff --git a/funcom_test/45706862.txt b/funcom_test/45706862.txt deleted file mode 100644 index df4d1f02bfa1c7f91503c27dff4a0368e9a977a8..0000000000000000000000000000000000000000 --- a/funcom_test/45706862.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private Panel getPanel() { - if (panel == null) { - GridBagConstraints gridBagConstraints4 = new GridBagConstraints(); - gridBagConstraints4.fill = GridBagConstraints.BOTH; - gridBagConstraints4.gridy = 0; - gridBagConstraints4.weightx = 1.0; - gridBagConstraints4.weighty = 1.0; - gridBagConstraints4.gridx = 0; - panel = new Panel(); - panel.setLayout(new GridBagLayout()); - panel.setBounds(new Rectangle(20, 46, 118, 427)); - panel.add(getJList(), gridBagConstraints4); - } - return panel; - } - COM: <s> this method initializes panel </s> - diff --git a/funcom_test/45707011.txt b/funcom_test/45707011.txt deleted file mode 100644 index acefb7e72dee897e30c73e5b0ba3da95f101c63d..0000000000000000000000000000000000000000 --- a/funcom_test/45707011.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JCheckBox getJCheckBoxOpClassifiersEquals() { - if (jCheckBoxOpClassifiersEquals == null) { - jCheckBoxOpClassifiersEquals = new JCheckBox(); - jCheckBoxOpClassifiersEquals.setBounds(new Rectangle(204, 53, 161, - 21)); - jCheckBoxOpClassifiersEquals.setText("All classifiers identical?"); - } - return jCheckBoxOpClassifiersEquals; - } - COM: <s> this method initializes j check box op classifiers equals </s> - diff --git a/funcom_test/45707129.txt b/funcom_test/45707129.txt deleted file mode 100644 index 73b92785a84129df998b2685cef71a230c6d3c5c..0000000000000000000000000000000000000000 --- a/funcom_test/45707129.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JComboBox getJComboBox11() { - if (jComboBox11 == null) { - jComboBox11 = new JComboBox(); - jComboBox11.setBounds(new Rectangle(184, 281, 246, 25)); - jComboBox11.setEnabled(false); - jComboBox11.addItem(UiConstants.COMBO_ALGORITHM_NO_SELECTION); - jComboBox11.addItem(UiConstants.COMBO_ALGORITHM_BACKPROP); - } - return jComboBox11; - } - COM: <s> this method initializes j combo box11 </s> - diff --git a/funcom_test/45707287.txt b/funcom_test/45707287.txt deleted file mode 100644 index 230bb0afb77a276ba1c7597452dd6450e9296880..0000000000000000000000000000000000000000 --- a/funcom_test/45707287.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JComboBox getJComboBoxPreProcessing() { - if (jComboBoxPreProcessing == null) { - jComboBoxPreProcessing = new JComboBox(); - jComboBoxPreProcessing.setBounds(new Rectangle(263, 166, 159, 25)); - for (Instances base : preprocessing) { - jComboBoxPreProcessing.addItem(base.relationName()); - } - } - return jComboBoxPreProcessing; - } - COM: <s> this method initializes j combo box pre processing </s> - diff --git a/funcom_test/45710372.txt b/funcom_test/45710372.txt deleted file mode 100644 index 34b7be1daa45d3dbb8501981d0ee5d3c2118699e..0000000000000000000000000000000000000000 --- a/funcom_test/45710372.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int addAndGetIndex(E e) { - Integer index = indexes.get(e); - if (index != null) { - return index; - } - // Else, add - int newIndex = size(); - objects.add(e); - indexes.put(e,newIndex); - return newIndex; - } - COM: <s> add an element to the indexer if not already present </s> - diff --git a/funcom_test/45750712.txt b/funcom_test/45750712.txt deleted file mode 100644 index de9e922f1877735c2d964cd530b8d03b1b28ae96..0000000000000000000000000000000000000000 --- a/funcom_test/45750712.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean contains(Partition p) { - Iterator<Entry<String, Range>> i = mRanges.entrySet().iterator(); - while (i.hasNext()) { - Entry<String, Range> e = i.next(); - boolean x = e.getValue().contains(p.getRanges().get(e.getKey())); - if (!x) { - return false; - } - } - return true; - } - COM: <s> checks if this partition contains another one </s> - diff --git a/funcom_test/45750725.txt b/funcom_test/45750725.txt deleted file mode 100644 index 6746cf4b5f240f1bbdac5e4f0eaa1352063f9662..0000000000000000000000000000000000000000 --- a/funcom_test/45750725.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public boolean contains(Range r) { - return ((compareTo(r.mMin, false) == 0 || (this.mMin instanceof Range.UnspecifiedBound && r.mMin instanceof Range.UnspecifiedBound))) && - ((compareTo(r.mMax, false) == 0) || (this.mMax instanceof Range.UnspecifiedBound && r.mMax instanceof Range.UnspecifiedBound)); - } - COM: <s> checks if this range contains another range </s> - diff --git a/funcom_test/45780539.txt b/funcom_test/45780539.txt deleted file mode 100644 index f8056d8eb6c7e5252f24848a897136794326855f..0000000000000000000000000000000000000000 --- a/funcom_test/45780539.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public long readInteger() throws NumberFormatException, IOException { - stream.skip(1); // skips i - /** integer value **/ - long value = 0; - char charBuf; - //read stream until e encountered. - while((charBuf = (char)stream.read()) != 'e') { - value *= 10; - value += Long.parseLong(""+charBuf); - }; - //add integer to list - return value; - } - COM: <s> reads an integer in the format i integer e </s> - diff --git a/funcom_test/45780544.txt b/funcom_test/45780544.txt deleted file mode 100644 index 599775bd6134818a7bf60b0fa1fcf8cedf6a4106..0000000000000000000000000000000000000000 --- a/funcom_test/45780544.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String readString() throws NumberFormatException, IOException{ - /** String value **/ - char charBuf; - //Get the string length - long length = 0; - //read stream until : encountered. - while((charBuf = (char)stream.read()) != ':'){ - length *= 10; - length += Long.parseLong(""+charBuf); - } - //read up to <length> chars from stream - String value = new String(); - while(length > 0){ - value += (char)stream.read(); - length--; - } - //return - return value; - } - COM: <s> reads a string of the format length string </s> - diff --git a/funcom_test/45788903.txt b/funcom_test/45788903.txt deleted file mode 100644 index 5ba8556862cf3849da8fc48ed849a6706031f026..0000000000000000000000000000000000000000 --- a/funcom_test/45788903.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private String demarkMultispaces(String line) { - - int dblSpace = line.indexOf(" "); - while (dblSpace>=0){ - StringBuffer newln = new StringBuffer(line.substring(0, dblSpace )); - newln.append(" "); - - line = line.substring(dblSpace+1); - while (line.length()>0 && line.charAt(0)== ' ') { - newln.append(SPACE_DEMARKATION); - newln.append(" "); - line = line.substring(1); - } - newln.append(line); - - line = newln.toString(); - dblSpace = line.indexOf(" "); - } - - return line; - } - COM: <s> this is a way of marking up multispaces </s> - diff --git a/funcom_test/45790812.txt b/funcom_test/45790812.txt deleted file mode 100644 index 6b0b60db9566ae01bec14ca1b3301c0f5140163b..0000000000000000000000000000000000000000 --- a/funcom_test/45790812.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Object decode(Object pObject) throws DecoderException { - if (pObject instanceof byte[]) { - return decode((byte[]) pObject); - } else if (pObject instanceof String) { - return decode((String) pObject); - } else { - throw new DecoderException("Parameter supplied to Base64 decode is not a byte[] or a String"); - } - } - COM: <s> decodes an object using the base64 algorithm </s> - diff --git a/funcom_test/45791172.txt b/funcom_test/45791172.txt deleted file mode 100644 index 1900cf069b2f60b1a8337b7eeba6729a9d6fb0b0..0000000000000000000000000000000000000000 --- a/funcom_test/45791172.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setPropertyValue(Object target, String propertyName, Object propertyValue) { - Method method = getSetter(propertyName); - if (!method.isAccessible()) - method.setAccessible(true); - try { - method.invoke(target, propertyValue); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - COM: <s> updates an instance to set a property to a given value </s> - diff --git a/funcom_test/45847474.txt b/funcom_test/45847474.txt deleted file mode 100644 index 8b4aca87e8ffc0d5327ac389b316f6e189a5bd13..0000000000000000000000000000000000000000 --- a/funcom_test/45847474.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("AMSWebService".equals(portName)) { - setAMSWebServiceEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/45847890.txt b/funcom_test/45847890.txt deleted file mode 100644 index d986ce3a3816fa48b9a03dc44ae9c4f45c4b632a..0000000000000000000000000000000000000000 --- a/funcom_test/45847890.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testEmptyBufferedStream() { - Stream<Object> s = - new BufferedStream<Object>(256, Streams.emptyStream()); - - assertFalse(s.hasNext()); - - boolean x = false; - try { - s.next(); - } catch (NoSuchElementException ex) { - x = true; - } - assertTrue(x); - } - COM: <s> buffering of an empty stream </s> - diff --git a/funcom_test/45847893.txt b/funcom_test/45847893.txt deleted file mode 100644 index 1cc0fd4badb7c9ba29d04680ec3413718b38d767..0000000000000000000000000000000000000000 --- a/funcom_test/45847893.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void testShortBufferedStream() { - Object element = new Object(); - Stream<Object> s = - new BufferedStream<Object>( - 256, new SingleElementStream<Object>(element)); - - assertTrue(s.hasNext()); - assertTrue(element == s.next()); - assertFalse(s.hasNext()); - - boolean x = false; - try { - s.next(); - } catch (NoSuchElementException ex) { - x = true; - } - assertTrue(x); - } - COM: <s> buffering of a stream shorter than its buffer </s> - diff --git a/funcom_test/45884403.txt b/funcom_test/45884403.txt deleted file mode 100644 index 038cc53b608422c329a8de3db5835db0cbee1382..0000000000000000000000000000000000000000 --- a/funcom_test/45884403.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: static public long getNotificationTimeoutFromPrefs(Context context) { - long notificationTimeout = Long.parseLong(PREFS_NOTIFICATION_TIMEOUT_DEFAULT); - try { - notificationTimeout = Long.parseLong(PreferenceManager.getDefaultSharedPreferences(context) - .getString(PREFS_NOTIFICATION_TIMEOUT, PREFS_NOTIFICATION_TIMEOUT_DEFAULT)); - } catch (NumberFormatException e) { - // Guess somebody messed with the preferences and put a string into this - // field. We'll use the default value then. - } - return notificationTimeout; - } - COM: <s> returns the notification timeout in seconds from preferences </s> - diff --git a/funcom_test/45884554.txt b/funcom_test/45884554.txt deleted file mode 100644 index e6f66818f3945e64c3a4ceec8afa2816772857ba..0000000000000000000000000000000000000000 --- a/funcom_test/45884554.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setDuration(long duration) { - long seconds = (long) (duration / 1000); - long minutes = seconds / 60; - seconds = seconds % 60; - long hours = minutes / 60; - minutes = minutes % 60; - long days = hours / 24; - hours = hours % 24; - - setCurrentDay((int)days); - setCurrentHour((int)hours); - setCurrentMinute((int)minutes); - setCurrentSecond((int)seconds); - - } - COM: <s> sets the duration in milliseconds </s> - diff --git a/funcom_test/45884832.txt b/funcom_test/45884832.txt deleted file mode 100644 index cb2b27fe8282eb6cb5ac3cf3177f8f65f449e56d..0000000000000000000000000000000000000000 --- a/funcom_test/45884832.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: private void searchThreadStart(){ - if (searchThread!=null) { - if (searchThread.isAlive()) { - // it's already searching - } else { - // just rerun - showDialog(SEARCH_PROGRESS_KEY); - searchThread.run(); - } - return; - } - showDialog(SEARCH_PROGRESS_KEY); - searchThread = new Thread(new Runnable() { - public void run() { - doSearch(); - dismissDialog(SEARCH_PROGRESS_KEY); - sendBroadcast (restartTimerIntent); - - Message m = new Message(); - m.what = MSG_SEARCH_COMPLETE; - Search.this.myViewUpdateHandler.sendMessage(m); - - if (debug) Log.d(TAG,"thread end"); - } - },"Search"); - searchThread.start(); - } - COM: <s> start a separate thread to search the database </s> - diff --git a/funcom_test/45885081.txt b/funcom_test/45885081.txt deleted file mode 100644 index fe2ffe058399a153383c5235ec03ca2f34803aa5..0000000000000000000000000000000000000000 --- a/funcom_test/45885081.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String fetchSalt() { - String salt=""; - if (db==null) { return salt; } - try { - Cursor c = db.query(true, TABLE_SALT, new String[] {"salt"}, - null, null, null, null, null,null); - if(c.getCount() > 0) { - c.moveToFirst(); - salt=c.getString(0); - } - c.close(); - } catch (SQLException e) - { - Log.d(TAG,"SQLite exception: " + e.getLocalizedMessage()); - } - return salt; - } - COM: <s> store the salt </s> - diff --git a/funcom_test/45885088.txt b/funcom_test/45885088.txt deleted file mode 100644 index 046ecaaa40e23dca010df244872beb9bef27f573..0000000000000000000000000000000000000000 --- a/funcom_test/45885088.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void storeSalt(String salt) { - ContentValues args = new ContentValues(); - try { - db.delete(TABLE_SALT, "1=1", null); - args.put("salt", salt); - db.insert(TABLE_SALT, null, args); - } catch (SQLException e) - { - Log.d(TAG,"SQLite exception: " + e.getLocalizedMessage()); - } - } - COM: <s> store the salt into the database </s> - diff --git a/funcom_test/45885105.txt b/funcom_test/45885105.txt deleted file mode 100644 index eb33e0b73ffa734bd93f996cee193cbeb98912bd..0000000000000000000000000000000000000000 --- a/funcom_test/45885105.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getCurrentSessionKey() { - - if (ServiceDispatchImpl.ch != null) { - // Return a global session key created in ServiceDispatchImpl - return ServiceDispatchImpl.ch.sessionKey; - } - return null; - // This should be the same session key as is used in CryptoContentProvider. - // TODO: Clean up the code above? - } - COM: <s> returns the current session key which is only valid until the </s> - diff --git a/funcom_test/45885254.txt b/funcom_test/45885254.txt deleted file mode 100644 index de92ababaa2cc108b8cfda921877d38327633861..0000000000000000000000000000000000000000 --- a/funcom_test/45885254.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public long fetchCipherAccess(String packageName) { - long expires=-1; // default to not found - try { - Cursor c = db.query(true, TABLE_CIPHER_ACCESS, new String[] {"expires"}, - "packagename="+packageName, null, null, null, null,null); - if(c.getCount() > 0) { - c.moveToFirst(); - expires=c.getLong(0); - } - c.close(); - } catch (SQLException e) - { - Log.d(TAG,"SQLite exception: " + e.getLocalizedMessage()); - } - return expires; - } - COM: <s> fetch the cipher access for a package </s> - diff --git a/funcom_test/45886081.txt b/funcom_test/45886081.txt deleted file mode 100644 index e2d964f336ffc1e26fe88520d4aab3cdf65f459b..0000000000000000000000000000000000000000 --- a/funcom_test/45886081.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setEmptyText(CharSequence text) { - ensureList(); - if (mStandardEmptyView == null) { - throw new IllegalStateException("Can't be used with a custom content view"); - } - mStandardEmptyView.setText(text); - if (mEmptyText == null) { - mList.setEmptyView(mStandardEmptyView); - } - mEmptyText = text; - } - COM: <s> the default content for a list fragment has a text view that can </s> - diff --git a/funcom_test/45886318.txt b/funcom_test/45886318.txt deleted file mode 100644 index 8cd17ff248b17359326812e0261c3e5344cd4a9e..0000000000000000000000000000000000000000 --- a/funcom_test/45886318.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private ContentValues getImportantDataFromTheInternet(){ - ContentValues cv= new ContentValues(); - //get us three random numbers to create a customer - int r1=(int)Math.floor((Math.random() *8)); - int r2=(int)Math.floor((Math.random() *4)); - int r3=(int)Math.floor((Math.random() *4)); - String name=FIRST_NAMES[r1]+" "+LAST_NAMES[2]; - String email=name+DOMAINS[r3]; - - cv.put(Customers.NAME,name); - cv.put(Customers.EMAIL,email); - - return cv; - } - COM: <s> creates a random customer with a name and an email address </s> - diff --git a/funcom_test/45886321.txt b/funcom_test/45886321.txt deleted file mode 100644 index 1f7532015d5a34ef547c2842f88e030e3d38c9a3..0000000000000000000000000000000000000000 --- a/funcom_test/45886321.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void scheduleNextRun(){ - Intent intent=new Intent(); - intent.setClass(getApplicationContext(), DataService.class); - PendingIntent pendingIntent=PendingIntent.getService(getApplicationContext(), 1, intent, PendingIntent.FLAG_ONE_SHOT); - AlarmManager alarmManager=(AlarmManager)getSystemService(ALARM_SERVICE); - long now= System.currentTimeMillis(); - //start after 1.5 minutes/ 90 seconds - alarmManager.set(AlarmManager.RTC_WAKEUP, (now+ 9000), pendingIntent); - } - COM: <s> set an alarm that will restart out service </s> - diff --git a/funcom_test/45886383.txt b/funcom_test/45886383.txt deleted file mode 100644 index 5d182a68673c6eda874832cbbd3407aab41ad5f3..0000000000000000000000000000000000000000 --- a/funcom_test/45886383.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void getIntegerDifference(SensorEvent e1, SensorEvent e2) { - final int max = 3; - if (mIntegerValues == null) { - mIntegerValues = new int[max]; - } - - for (int i = 0; i < max; i++) { - mIntegerValues[i] = e1.mIntegerValues[i] - e2.mIntegerValues[i]; - } - } - COM: <s> calculate the difference between two vectors </s> - diff --git a/funcom_test/45887990.txt b/funcom_test/45887990.txt deleted file mode 100644 index 7fc9ae92b103f7ae689f5cc141881f5d93abb3a6..0000000000000000000000000000000000000000 --- a/funcom_test/45887990.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String getApplicationName() { - String name = "?"; - try { - PackageInfo pi = getPackageManager().getPackageInfo(getPackageName(), 0); - name = getString(pi.applicationInfo.labelRes); - } catch (PackageManager.NameNotFoundException e) { - Log.e(TAG, "Package name not found", e); - }; - return name; - } - COM: <s> get application name </s> - diff --git a/funcom_test/45888022.txt b/funcom_test/45888022.txt deleted file mode 100644 index 56661019265aa05bbb3c2bafd84a0b3b6c69426e..0000000000000000000000000000000000000000 --- a/funcom_test/45888022.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: - public boolean greater(VeecheckVersion currentVersion) { - if (currentVersion.versionCode != null && this.versionCode != null - && Long.parseLong(currentVersion.versionCode) < Long.parseLong(this.versionCode)) - return true; - if (currentVersion.versionName != null && this.versionName != null - && !currentVersion.versionName.equals(this.versionName)) - return true; - return false; - } - COM: <s> check version of this </s> - diff --git a/funcom_test/45888292.txt b/funcom_test/45888292.txt deleted file mode 100644 index c31b8aa227fb978bdbbd5a548eeb5110b89cecaa..0000000000000000000000000000000000000000 --- a/funcom_test/45888292.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void quickPost(String eventKey, String eventMessage, Originator originator) { - - if(pickedContactKey==null) { - Toast.makeText(this, "Pick a contact first!", Toast.LENGTH_SHORT).show(); - return; - } - - EventData eventData = new EventData(eventKey, pickedContactKey, System.currentTimeMillis(), eventMessage, originator); - mBridge.quickPost(this, eventData); - - Toast.makeText(this, "Posted event: "+eventMessage, Toast.LENGTH_SHORT).show(); - } - COM: <s> posting an event through the bridge </s> - diff --git a/funcom_test/45888315.txt b/funcom_test/45888315.txt deleted file mode 100644 index 7515d9e68a626db14882b940cfde7378e9ea11ea..0000000000000000000000000000000000000000 --- a/funcom_test/45888315.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getContactToShow(Activity context, String startUpActionSetting) { - - if (startUpActionSetting.equals(context - .getString(R.string.preferences_startup_last_contacted))) { - // get lookupkey for last contacted person - return new ContactLoader().getMostRecentlyContacted(context); - } else if (startUpActionSetting.equals(context - .getString(R.string.preferences_startup_last_shown))) { - return getLastShownContact(context); - } - - return null; - } - COM: <s> determines which contact to show on application startup depending on the </s> - diff --git a/funcom_test/45888377.txt b/funcom_test/45888377.txt deleted file mode 100644 index fd9e84ba77051b0f40b90050736c6741bf6998c7..0000000000000000000000000000000000000000 --- a/funcom_test/45888377.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void onContactSelected(Contact selected) { - - InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); - imm.hideSoftInputFromWindow(mEditSearch.getWindowToken(), 0); - - String contactLookupKey = String.valueOf(selected.getLookupKey()); - - Intent intent = new Intent(); - intent.setAction(Actions.ACTION_SHOW_TIMELINE); - intent.putExtra(Actions.EXTRA_CONTACT_LOOKUP_KEY, contactLookupKey); - - startActivity(intent); - } - COM: <s> fires intent to show the selected contacts timeline </s> - diff --git a/funcom_test/45888474.txt b/funcom_test/45888474.txt deleted file mode 100644 index d8d134db9f874dd9fd935bbec99886d3c84e6873..0000000000000000000000000000000000000000 --- a/funcom_test/45888474.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public InteractionType loadFromCursor(Cursor cursor, int pos) { - - cursor.moveToPosition(pos); - - Uri iconUri = Uri.parse(cursor.getString(COLUMN_ICON_URI)); - String actionTitle = cursor.isNull(COLUMN_INTERACT_ACTION_TITLE) ? - cursor.getString(COLUMN_NAME) : - cursor.getString(COLUMN_INTERACT_ACTION_TITLE); - String intentAction = cursor.getString(COLUMN_INTERACT_INTENT); - - return new InteractionType(iconUri, actionTitle, intentAction); - } - COM: <s> loads an interction type instance from the cursor </s> - diff --git a/funcom_test/45888493.txt b/funcom_test/45888493.txt deleted file mode 100644 index e295dcf63cf962de96e67a9bb1729cfef5bf07df..0000000000000000000000000000000000000000 --- a/funcom_test/45888493.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void toImageView(Context context, EventSource source, Event event, ImageView iv) { - - if(source.getIconLoadingStrategy()==IconLoadingStrategy.useSourceIcon || event==null /*|| !source.isInternal()*/) { - //source icon is used - toImageView(context, source.getIcon(), iv); - } else { - //event icon is used - toImageView(context, event.getCustomIcon(), iv); - } - - } - COM: <s> sets the timeline icon of the given image view </s> - diff --git a/funcom_test/45888514.txt b/funcom_test/45888514.txt deleted file mode 100644 index cfbf9d6ebcfa8775270d87e7eeda0f174ef8a791..0000000000000000000000000000000000000000 --- a/funcom_test/45888514.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public Cursor openCursor(Context context, String selection, String[] selectionArgs) { - if(mSourcesUri==null) { - throw new NullPointerException("Sources uri not set."); - } - return context.getContentResolver().query(mSourcesUri, mProjection, selection, selectionArgs, Sources.SourcesTable.NAME); - } - COM: <s> opens cursor with custom selection </s> - diff --git a/funcom_test/45888524.txt b/funcom_test/45888524.txt deleted file mode 100644 index 3df0f7f02a0e73126b410c493698f08be9e169a5..0000000000000000000000000000000000000000 --- a/funcom_test/45888524.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Cursor openCursor(Context context, Uri sourceUri) { - - String selection = SourcesTable.AUTHORITY + " = ?"; - String[] selectionArgs = new String[] { - sourceUri.getAuthority() - }; - - return context.getContentResolver().query(mSourcesUri, mProjection, selection, selectionArgs, Sources.SourcesTable.NAME); - } - COM: <s> opens a cursor containing the source associated with the given source uri </s> - diff --git a/funcom_test/45888532.txt b/funcom_test/45888532.txt deleted file mode 100644 index 5236e437aa29bee08db015ddbb5ba02327e86b59..0000000000000000000000000000000000000000 --- a/funcom_test/45888532.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean hasFilters(Context context, Contact contact) { - - String[] projection = new String[] { FiltersTable.CONTACT_LOOKUP_KEY }; - String selection = Sources.FiltersTable.CONTACT_LOOKUP_KEY + " = ?"; - String[] selectionArgs = new String[] { contact.getLookupKey() }; - - Cursor c = context.getContentResolver().query(ContentUris.Filters, - projection, selection, selectionArgs, null); - boolean retval = c.moveToNext(); - c.close(); - - return retval; - } - COM: <s> checks if has source filters </s> - diff --git a/funcom_test/45888952.txt b/funcom_test/45888952.txt deleted file mode 100644 index b96f51f59941bcdf8863124de59a4ad5aa9fc917..0000000000000000000000000000000000000000 --- a/funcom_test/45888952.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String getMostRecentlyUsedTheme() { - String theme = null; - Cursor c = getContentResolver().query( - Notes.CONTENT_URI, - new String[] {Notes.THEME}, null, null, - Notes.MODIFIED_DATE + " DESC"); - if (c != null && c.moveToFirst()) { - theme = c.getString(0); - } - c.close(); - return theme; - } - COM: <s> returns most recently used theme or null </s> - diff --git a/funcom_test/45889084.txt b/funcom_test/45889084.txt deleted file mode 100644 index d6d6ffd2ce18d2cbc19aabe7e0c7435a00525718..0000000000000000000000000000000000000000 --- a/funcom_test/45889084.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Cursor findTaggedContent(String tag, String contentUri) { - Cursor c = mContext.getContentResolver().query(Tags.CONTENT_URI, - new String[] { Tags._ID, Tags.URI_2 }, - "content1.uri like ? and content2.uri like ?", - new String[] { tag, contentUri + "%" }, "content2.uri"); - return c; - } - COM: <s> cursor over content uri strings is returned where the content is tagged </s> - diff --git a/funcom_test/45889306.txt b/funcom_test/45889306.txt deleted file mode 100644 index d405d06ed4d5ccc4190d65c2fcaa6b4285d9c161..0000000000000000000000000000000000000000 --- a/funcom_test/45889306.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void pickItem(Uri baseUri, Cursor c) { - - int indexID = c.getColumnIndex(android.provider.BaseColumns._ID); - long itemId = c.getLong(indexID); - Uri url = ContentUris.withAppendedId(baseUri, itemId); - - setResult(RESULT_OK, new Intent(Intent.ACTION_PICK, url)); - finish(); - } - COM: <s> picks an item and returns to calling activity </s> - diff --git a/funcom_test/45889654.txt b/funcom_test/45889654.txt deleted file mode 100644 index 4157846b18e69dd07b1c0d7d3203a87b1f56b80f..0000000000000000000000000000000000000000 --- a/funcom_test/45889654.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addCategory(Context context, int categoryId) { - Map categoryMap = categories.get(categoryId); - String category = (String) categoryMap.get(NAME); - - // Add category - ContentValues cv = new ContentValues(); - cv.put(News.Categories.NAME, category); - mNews.insertIfNotExists(News.Categories.CONTENT_URI, Categories.NAME - + "= ?", new String[] { category }, cv); - - } - COM: <s> adds a category to the content provider </s> - diff --git a/funcom_test/45889746.txt b/funcom_test/45889746.txt deleted file mode 100644 index c656e9a1a65e47e7f0ffa08b4b97ee3d6c466aa9..0000000000000000000000000000000000000000 --- a/funcom_test/45889746.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void checkEULA() { - SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); - boolean accepted = sp.getBoolean(EulaActivity.PREFERENCES_EULA_ACCEPTED, false); - - if (accepted) { - if (debug) Log.i(_TAG, "Eula has been accepted."); - } else { - if (debug) Log.i(_TAG, "Eula has not been accepted yet."); - Intent i = new Intent(this, EulaActivity.class); - startActivity(i); - finish(); - } - } - COM: <s> test whether eula has been accepted </s> - diff --git a/funcom_test/45889801.txt b/funcom_test/45889801.txt deleted file mode 100644 index 99acbd0213e59f5de8000f71f534c94202bd9297..0000000000000000000000000000000000000000 --- a/funcom_test/45889801.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void saveAsNote() { - mFileContent = mText.getText().toString(); - - Intent intent = new Intent(); - intent.setAction(NotepadInternalIntents.ACTION_SAVE_TO_SD_CARD); - intent.setData(mUri); - intent.putExtra(NotepadInternalIntents.EXTRA_TEXT, mFileContent); - - startActivityForResult(intent, REQUEST_CODE_SAVE_AS); - } - COM: <s> show the save as dialog </s> - diff --git a/funcom_test/45890010.txt b/funcom_test/45890010.txt deleted file mode 100644 index 8726cae7e83a38fbf12c1cafbb6bbb9d2907040a..0000000000000000000000000000000000000000 --- a/funcom_test/45890010.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void displayImportPolicy() { - int importPolicy = getValidatedImportPolicy(); - - String[] policyStrings = getResources().getStringArray(R.array.import_policy_detail); - - TextView policyView = ((TextView) findViewById(R.id.import_policy_detail)); - - if (policyView != null) { - policyView.setText(policyStrings[importPolicy]); - } - } - COM: <s> display the current import policy </s> - diff --git a/funcom_test/45890123.txt b/funcom_test/45890123.txt deleted file mode 100644 index 1bd0311cd57cd56e66056e22d1015272d26f3d29..0000000000000000000000000000000000000000 --- a/funcom_test/45890123.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int interpolateColorStops(float fraction) { - - int max_color_index = this.color_stops.length - 1; - float high_fractional_value = fraction * max_color_index; - int low_index = (int) high_fractional_value; - int high_index = (int) Math.ceil(fraction * max_color_index); - - float partial_fraction = high_fractional_value - low_index; - - return FlingableMonthView.interpolateColor(this.color_stops[low_index], this.color_stops[high_index], partial_fraction); - } - COM: <s> assign equidistant color stops </s> - diff --git a/funcom_test/45890305.txt b/funcom_test/45890305.txt deleted file mode 100644 index 6395ed9cb767edc317f2cfa7b47d5e00703aaafc..0000000000000000000000000000000000000000 --- a/funcom_test/45890305.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected String getSdCardFilename(String filename) { - String sdpath = android.os.Environment - .getExternalStorageDirectory().getAbsolutePath(); - String path; - if (sdpath.substring(sdpath.length() - 1, sdpath.length()).equals("/")) { - path = sdpath + filename; - } else { - path = sdpath + "/" + filename; - } - return path; - } - COM: <s> prepends the systems sd card path to the file name </s> - diff --git a/funcom_test/45890390.txt b/funcom_test/45890390.txt deleted file mode 100644 index fae66889bf508d41814fd85f00bddf31ade1487a..0000000000000000000000000000000000000000 --- a/funcom_test/45890390.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void displayArtists(final String packagename, final Intent intent) { - String[] textarray = AboutUtils.getStringArrayExtraOrMetadata(this, packagename, intent, AboutIntents.EXTRA_ARTISTS, AboutMetaData.METADATA_ARTISTS); - - String text = AboutUtils.getTextFromArray(textarray); - - if (!TextUtils.isEmpty(text)) { - mArtistsText.setText(text); - mArtistsLabel.setVisibility(View.VISIBLE); - mArtistsText.setVisibility(View.VISIBLE); - } else { - mArtistsLabel.setVisibility(View.GONE); - mArtistsText.setVisibility(View.GONE); - } - } - COM: <s> fetch and display artists information </s> - diff --git a/funcom_test/45890406.txt b/funcom_test/45890406.txt deleted file mode 100644 index 988762cc3c0bdc746e24881834f3bc0ca877a663..0000000000000000000000000000000000000000 --- a/funcom_test/45890406.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void showNotification() { - CharSequence text = getText(R.string.sensors_recording_started); - Notification notification = new Notification(R.drawable.icon, text, - System.currentTimeMillis()); - PendingIntent intent = PendingIntent.getActivity(this, 0, new Intent( - this, SensorRecordFromDeviceActivity.class), 0); - - // Set the info for the views that show in the notification panel. - notification.setLatestEventInfo(this, - getText(R.string.sensors_record_label), text, intent); - - // Send the notification. - mNotificationManager.notify(NOTIFICATION, notification); - } - COM: <s> show a notification while this service is running </s> - diff --git a/funcom_test/45890413.txt b/funcom_test/45890413.txt deleted file mode 100644 index dc8c6ac9ac1f7a9dcd8a1ecf86eed6d7d4a3b065..0000000000000000000000000000000000000000 --- a/funcom_test/45890413.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void displayAuthors(final String packagename, final Intent intent) { - String[] textarray = AboutUtils.getStringArrayExtraOrMetadata(this, packagename, intent, AboutIntents.EXTRA_AUTHORS, AboutMetaData.METADATA_AUTHORS); - - String text = AboutUtils.getTextFromArray(textarray); - - if (!TextUtils.isEmpty(text)) { - mAuthorsText.setText(text); - mAuthorsLabel.setVisibility(View.VISIBLE); - mAuthorsText.setVisibility(View.VISIBLE); - } else { - mAuthorsLabel.setVisibility(View.GONE); - mAuthorsText.setVisibility(View.GONE); - } - } - COM: <s> fetch and display authors information </s> - diff --git a/funcom_test/45890435.txt b/funcom_test/45890435.txt deleted file mode 100644 index 86ca0a3ab89749d1870c9833da15cbcbb39a97a2..0000000000000000000000000000000000000000 --- a/funcom_test/45890435.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void displayComments(final String packagename, final Intent intent) { - String text = AboutUtils.getStringExtraOrMetadata(this, packagename, intent, - AboutIntents.EXTRA_COMMENTS, AboutMetaData.METADATA_COMMENTS); - - if (!TextUtils.isEmpty(text)) { - mCommentsText.setText(text); - mCommentsText.setVisibility(View.VISIBLE); - } else { - mCommentsText.setVisibility(View.GONE); - } - } - COM: <s> fetch and display comments information </s> - diff --git a/funcom_test/45890451.txt b/funcom_test/45890451.txt deleted file mode 100644 index 7a23320e5e800aacf98bb05ad92a0f6a328f1714..0000000000000000000000000000000000000000 --- a/funcom_test/45890451.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void displayCopyright(final String packagename, final Intent intent) { - String text = AboutUtils.getStringExtraOrMetadata(this, packagename, intent, - AboutIntents.EXTRA_COPYRIGHT, AboutMetaData.METADATA_COPYRIGHT); - - if (!TextUtils.isEmpty(text)) { - mCopyrightText.setText(text); - mCopyrightText.setVisibility(View.VISIBLE); - } else { - mCopyrightText.setVisibility(View.GONE); - } - } - COM: <s> fetch and display copyright information </s> - diff --git a/funcom_test/45890467.txt b/funcom_test/45890467.txt deleted file mode 100644 index 245dd08fb39c30d5f0099f1d8e58c8361957bdd7..0000000000000000000000000000000000000000 --- a/funcom_test/45890467.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void onCreate(SQLiteDatabase db) { - db.execSQL("CREATE TABLE " - + SensorSimulatorProvider.DATABASE_TABLE_SETTINGS + " (" - + "_id INTEGER PRIMARY KEY," // Database Version 1 - + SensorSimulator.Settings.KEY + " VARCHAR," // V1 - + SensorSimulator.Settings.VALUE + " VARCHAR" // V1 - + ");"); - } - COM: <s> creates tables settings </s> - diff --git a/funcom_test/45890468.txt b/funcom_test/45890468.txt deleted file mode 100644 index 376fd2cb0b15a4d934927a3582c36b17d34dd54a..0000000000000000000000000000000000000000 --- a/funcom_test/45890468.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void displayDocumenters(final String packagename, final Intent intent) { - String[] textarray = AboutUtils.getStringArrayExtraOrMetadata(this, packagename, intent, - AboutIntents.EXTRA_DOCUMENTERS, AboutMetaData.METADATA_DOCUMENTERS); - String text = AboutUtils.getTextFromArray(textarray); - - if (!TextUtils.isEmpty(text)) { - mDocumentersText.setText(text); - mDocumentersLabel.setVisibility(View.VISIBLE); - mDocumentersText.setVisibility(View.VISIBLE); - } else { - mDocumentersLabel.setVisibility(View.GONE); - mDocumentersText.setVisibility(View.GONE); - } - } - COM: <s> fetch and display documenters information </s> - diff --git a/funcom_test/45890504.txt b/funcom_test/45890504.txt deleted file mode 100644 index 3d28e400933f3af8813eae3253d2dc54660b1153..0000000000000000000000000000000000000000 --- a/funcom_test/45890504.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void displayRecentChanges(final String packagename, final Intent intent) { - - int resourceid = AboutUtils.getResourceIdExtraOrMetadata(this, packagename, intent, - AboutIntents.EXTRA_RECENT_CHANGES_RESOURCE, AboutMetaData.METADATA_RECENT_CHANGES); - - if (resourceid == 0) { - // Tab is hidden if there are no recent changes. - //mRecentChangesText.setText(R.string.no_information_available); - return; - } - - String recentchanges = getRawResource(packagename, resourceid, true); - - mRecentChangesText.setText(recentchanges); - } - COM: <s> fetch and display recent changes information </s> - diff --git a/funcom_test/45890507.txt b/funcom_test/45890507.txt deleted file mode 100644 index 6c46b8f0c4d9d72a1d950cc407a61d82b62e9c9d..0000000000000000000000000000000000000000 --- a/funcom_test/45890507.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void connect(int port) { - try { - serverSocket = new Socket("localhost", port); - } catch (UnknownHostException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - try { - out = new PrintStream(serverSocket.getOutputStream()); - } catch (IOException e) { - e.printStackTrace(); - } - // mSimulator.addMessage("Telnet connection opened "); - } - COM: <s> method used to connect with emulators command port </s> - diff --git a/funcom_test/45890558.txt b/funcom_test/45890558.txt deleted file mode 100644 index 8b0e54826450fb8e660b9e3f227158c2daed0c51..0000000000000000000000000000000000000000 --- a/funcom_test/45890558.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void slowEmulation() { - try { - long[] time2 = null; - time2 = new long[time.size()]; - for (int i = 0; i < time.size(); i++) { - time2[i] = getLongMsFromTimeString(time.get(i)); - } - runnable = new FileRunnable(dateAndTime, simulationType, time, - values, time2, this, breakingPlaces); - runnable.run(); - } catch (Exception e) { - // messagePanel.append("Open file for battery emulation first!\n"); - } - } - COM: <s> method used to start battery simulation from file </s> - diff --git a/funcom_test/45890626.txt b/funcom_test/45890626.txt deleted file mode 100644 index 702166cb6487d0247a5f3ee6deebe53d6347b3e5..0000000000000000000000000000000000000000 --- a/funcom_test/45890626.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void displayProgramNameAndVersion(final String packagename, final Intent intent) { - String applicationlabel = getApplicationLabel(packagename, intent); - String versionname = getVersionName(packagename, intent); - - String combined = applicationlabel; - if (!TextUtils.isEmpty(versionname)) { - combined += " " + versionname; - } - - mProgramNameAndVersionText.setText(combined); - - String title = getString(R.string.about_activity_name_extended, applicationlabel); - setTitle(title); - } - COM: <s> fetch and display program name and version information </s> - diff --git a/funcom_test/45890799.txt b/funcom_test/45890799.txt deleted file mode 100644 index 2f4121f95b8ed950e664752aa3831dffed5c9be1..0000000000000000000000000000000000000000 --- a/funcom_test/45890799.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void displayWebsiteLink(final String packagename, final Intent intent) { - String websitelabel = AboutUtils.getStringExtraOrMetadata(this, packagename, - intent, AboutIntents.EXTRA_WEBSITE_LABEL, AboutMetaData.METADATA_WEBSITE_LABEL); - String websiteurl = AboutUtils.getStringExtraOrMetadata(this, packagename, - intent, AboutIntents.EXTRA_WEBSITE_URL, AboutMetaData.METADATA_WEBSITE_URL); - - setAndLinkifyWebsiteLink(websitelabel, websiteurl); - } - COM: <s> fetch and display website link information </s> - diff --git a/funcom_test/45891169.txt b/funcom_test/45891169.txt deleted file mode 100644 index d944722d9c02944e0f06f5aef9246e39871dc53a..0000000000000000000000000000000000000000 --- a/funcom_test/45891169.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void removeView(StateViewSmall view) { - view.setVisible(false); - // remove from scenario - int removedPosition = indexOfView(view); - mScenarioPanel.remove(removedPosition); - // take care of the big (detailed) view - if (mCurrentSmallView != null && mCurrentSmallView.equals(view)) { - mCurrentBigView.setVisible(false); - mCurrentBigView = null; - mCurrentSmallView = null; - } - // compute the new number of pixels per scenario position - mTimeBar.scaleNumberOfPixelsPerPosition(); - refresh(); - } - COM: <s> removes a small view from the scenario list </s> - diff --git a/funcom_test/45891192.txt b/funcom_test/45891192.txt deleted file mode 100644 index a60d6189688425db7c4a1b9ebec60adac3c8647f..0000000000000000000000000000000000000000 --- a/funcom_test/45891192.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void showBigView(StateModel model, StateViewSmall smallView) { - mCurrentBigView = new StateViewBig(model, smallView, this); - mCurrentSmallView = smallView; - // TODO: move controller (like StateControllerSmall is instantiate) - new StateControllerBig(mModel, this, model, mCurrentBigView); - mRightPanel.removeAll(); - mRightPanel.add(mCurrentBigView, BorderLayout.CENTER); - mModel.setCurrentPosition(indexOfView(smallView)); - refresh(); - } - COM: <s> sets the model for the detailed view </s> - diff --git a/funcom_test/45891430.txt b/funcom_test/45891430.txt deleted file mode 100644 index 6a07f37fa174981844788f2872d2b994fc4b6ea9..0000000000000000000000000000000000000000 --- a/funcom_test/45891430.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void prepareToPlay() { - setCurrentPosition(mModel.getStartPosition()); - float interpolationTime = mSensorSimulatorController - .getInterpolationTime(); - if (interpolationTime == 0) { - interpolationTime = 0.1f; - } - mNumberOfIntermediarStates = (int) (mSensorSimulatorController - .getSavingTime() / interpolationTime) - 1; - if (mNumberOfIntermediarStates < 0) { - mNumberOfIntermediarStates = 0; - } - mScenarioTime = System.currentTimeMillis(); - mScenarioInterpolatedTime = System.currentTimeMillis(); - } - COM: <s> needs to be called when entering play state from </s> - diff --git a/funcom_test/45891465.txt b/funcom_test/45891465.txt deleted file mode 100644 index 24b21e22e55d0dfe9f2c4e5dbe425efb72b3e50d..0000000000000000000000000000000000000000 --- a/funcom_test/45891465.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private boolean createNewList(String name) { - - if (name.equals("")) { - // User has not provided any name - Toast.makeText(this, getString(R.string.please_enter_name), - Toast.LENGTH_SHORT).show(); - return false; - } - - String previousTheme = loadListTheme(); - - int newId = (int) ShoppingUtils.getList(this, name); - fillListFilter(); - - setSelectedListId(newId); - - // Now set the theme based on the selected list: - saveListTheme(previousTheme); - setListTheme(previousTheme); - applyListTheme(); - - return true; - } - COM: <s> creates a new list from dialog </s> - diff --git a/funcom_test/45891555.txt b/funcom_test/45891555.txt deleted file mode 100644 index 82bb74ce2cb4b0e1227db5976c6d6d2c65280ea9..0000000000000000000000000000000000000000 --- a/funcom_test/45891555.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private boolean renameList(String newName) { - - if (newName.equals("")) { - // User has not provided any name - Toast.makeText(this, getString(R.string.please_enter_name), - Toast.LENGTH_SHORT).show(); - return false; - } - - // Rename currently selected list: - ContentValues values = new ContentValues(); - values.put(Lists.NAME, "" + newName); - getContentResolver().update( - Uri.withAppendedPath(Lists.CONTENT_URI, - mCursorShoppingLists.getString(0)), values, null, null); - - mCursorShoppingLists.requery(); - updateTitle(); - return true; - } - COM: <s> rename list from dialog </s> - diff --git a/funcom_test/45892517.txt b/funcom_test/45892517.txt deleted file mode 100644 index c119435df90f7b146d6c919c92f969477fcea82d..0000000000000000000000000000000000000000 --- a/funcom_test/45892517.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void connectViaTelnet(){ - if(mTelnetServer==null){ - mTelnetServer = new TelnetServer(this); - mTelnetServer.connect(); - }else{ - addMessage("Closing telnet port " + mTelnetServer.port); - mTelnetServer.disconnect(); - mTelnetServer = new TelnetServer(this); - mTelnetServer.connect(); - } - } - COM: <s> connect via telnet with emulator </s> - diff --git a/funcom_test/45893808.txt b/funcom_test/45893808.txt deleted file mode 100644 index 6436ba0a4c7ead4fec7d619c7d001733b5a63d86..0000000000000000000000000000000000000000 --- a/funcom_test/45893808.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void updateFromFile(){ - - replayData.recordData(mobile.getReadYaw(),mobile.getReadRoll(),mobile.getReadPitch()); - - if (replayData.playData()) { - // Update sliders - yawSlider.setValue(replayData.getYaw()); - rollSlider.setValue(replayData.getRoll()); - pitchSlider.setValue(replayData.getPitch()); - }else{ - replayPlayback.setText("Playback"); - } - - - } - COM: <s> is called from within do timer to record playback values </s> - diff --git a/funcom_test/45929468.txt b/funcom_test/45929468.txt deleted file mode 100644 index 0306f6516a32c8cb2f3504d91cb21ee276cbdc05..0000000000000000000000000000000000000000 --- a/funcom_test/45929468.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public List getRelFeedItems(FeedItem feedItem) { - final int feedId = feedItem.getFeed().getFeedId(); - final String sql = "select * from T_FeedItem where FEED_ID =" + feedId; - return getPagedListByNativeSQL(FeedItem.class, sql, " id desc", 1, 20); - } - COM: <s> feed feed item </s> - diff --git a/funcom_test/45930509.txt b/funcom_test/45930509.txt deleted file mode 100644 index 65e87a7b21a8ab017145aa677caa454a7a37c170..0000000000000000000000000000000000000000 --- a/funcom_test/45930509.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private FeatureVector getFeatureVector(int i, int j, FeatureVector[][][] fvs) { - - int small = Math.min(i, j); - int large = Math.max(i, j); - int dir = i < j ? 0 : 1; - - return fvs[small][large][dir]; - } - COM: <s> finds feature vector for unlabelled edge </s> - diff --git a/funcom_test/45931054.txt b/funcom_test/45931054.txt deleted file mode 100644 index 9d627d8398c6c868624e41fd53f5bcf47a859050..0000000000000000000000000000000000000000 --- a/funcom_test/45931054.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected double getLogWeight(OCPartition p) throws HierarchyException { - if (p.ghost) { - System.err.println("AbstractOC.getLogWeight - ghost - should not happen!!!!!!!!!!!!"); - } -// return partition.restLogEmpProb - partition.restLogPriorProbDenom; - return p.resLogPseuEmpProb - p.restLogPriorProbDenom; - } - COM: <s> returns the logarimic weigth for a given partition </s> - diff --git a/funcom_test/45931269.txt b/funcom_test/45931269.txt deleted file mode 100644 index 6ffe7c2c2c1e803c6d38529110d60828d4fb2f77..0000000000000000000000000000000000000000 --- a/funcom_test/45931269.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private SimpleHClass getIntersectDisj(SimpleHClass c1, SimpleHClass c2) throws HierarchyException { - - if (superclassOf(c1.getID(), c2.getID())) { - return c2; - } else { - if (superclassOf(c2.getID(), c1.getID())) { - return c1; - } else { - return null; - } - } - - } - COM: <s> method for getting disjuntion between two classes in a disjunctive hierarchy </s> - diff --git a/funcom_test/45931573.txt b/funcom_test/45931573.txt deleted file mode 100644 index 71d4d0a6ebd5223933d17b8b09db300cf4874639..0000000000000000000000000000000000000000 --- a/funcom_test/45931573.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void testSize() { - assertEquals("Size of raw", 10, raw.size()); - assertEquals("Size of subset1", 5, subset1.size()); - assertEquals("Size of subset2", 3, subset2.size()); - } - COM: <s> test of size method of class dataset raw </s> - diff --git a/funcom_test/45931578.txt b/funcom_test/45931578.txt deleted file mode 100644 index 9ccecd2eba84201a487227b78b38a89238f7c0a5..0000000000000000000000000000000000000000 --- a/funcom_test/45931578.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testWeight() { - assertEquals("Weight of raw", 10.0, raw.weight()); - assertEquals("Weight of raw2", 20.0, raw2.weight()); - assertEquals("Weight of subset1", 5.0, subset1.weight()); - assertEquals("Weight of subset2", 3.0, subset2.weight()); - } - COM: <s> test of weight method of class dataset raw </s> - diff --git a/funcom_test/45931584.txt b/funcom_test/45931584.txt deleted file mode 100644 index a2a1cdb0d4cd05711e2f04219275e1653a1bc24f..0000000000000000000000000000000000000000 --- a/funcom_test/45931584.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testBaseDataSet() { - assertEquals("Base dataset of raw", raw, raw.baseDataSet()); - assertEquals("Base dataset of raw2", raw2, raw2.baseDataSet()); - assertEquals("Base dataset of subset1", staticRaw, subset1.baseDataSet()); - assertEquals("Base dataset of subset2", staticRaw, subset2.baseDataSet()); - } - COM: <s> test of base data set method of class dataset raw </s> - diff --git a/funcom_test/45937832.txt b/funcom_test/45937832.txt deleted file mode 100644 index 8b144e57f46506544f87aec46fa0fd1413f0b4f2..0000000000000000000000000000000000000000 --- a/funcom_test/45937832.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void render(float interpolation) { - // Render the GameTaskQueue - GameTaskQueueManager.getManager().getQueue(GameTaskQueue.RENDER).execute(); - - // Clear the screen - display.getRenderer().clearBuffers(); - //display.getRenderer().draw(scene); - /** Have the PassManager render. */ - passManager.renderPasses(display.getRenderer()); - } - COM: <s> draws the scene graph </s> - diff --git a/funcom_test/45956229.txt b/funcom_test/45956229.txt deleted file mode 100644 index 86ee991cf57df16f577ec7197199262d9d0be8d2..0000000000000000000000000000000000000000 --- a/funcom_test/45956229.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void printOrganisation(Organization organization, Writer writer) { - printUnits(organization.getUnit(), writer, 0); - try { - writer.write("\n"); - writer.write("Total units in organisation tree: " + unitCount); - } catch (IOException e) { - logger.error("Failed to write out content", e); - } - } - COM: <s> print organisastion tree </s> - diff --git a/funcom_test/45956520.txt b/funcom_test/45956520.txt deleted file mode 100644 index 828cb43834467ee1dae876646d94a83bd4d27a68..0000000000000000000000000000000000000000 --- a/funcom_test/45956520.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setContentType(HttpServletResponse response, String outputFormat) { - if ("xml".equals(outputFormat)) { - response.setContentType("text/xml"); - } else if ("text".equals(outputFormat)) { - response.setContentType("text/plain"); - } else { - response.setContentType("text/html"); - } - } - COM: <s> helper method for setting the correct content type based on the output format </s> - diff --git a/funcom_test/45956629.txt b/funcom_test/45956629.txt deleted file mode 100644 index ebb1daff5936e7af537766fb7e1d768f68ca338b..0000000000000000000000000000000000000000 --- a/funcom_test/45956629.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Properties getMessageBundle(int languageId) { - Properties properties = null; - - switch (languageId) { - case 1: - // Fall through - case 5: - properties = this.loadProperties("tdb_messages.properties"); - break; - case 4: - properties = this.loadProperties("tdb_messages_de.properties"); - break; - default: - properties = this.loadProperties("tdb_messages_en.properties"); - } - - return properties; - } - COM: <s> gets the message bundle for the provided language </s> - diff --git a/funcom_test/45956637.txt b/funcom_test/45956637.txt deleted file mode 100644 index cb997794014c127573eea57b9cb7cc39581dfa2c..0000000000000000000000000000000000000000 --- a/funcom_test/45956637.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Properties loadProperties(String resource) { - Properties properties = null; - - try { - Resource res = new UrlResource(this.getClass().getResource(resource)); - properties = PropertiesLoaderUtils.loadProperties(res); - } catch (IOException e) { - this.logger.debug("Unable to read properties file for resource '" + resource + "'"); - } - - return properties; - } - COM: <s> helper method for reading properties files </s> - diff --git a/funcom_test/45956666.txt b/funcom_test/45956666.txt deleted file mode 100644 index bbc85d730c3b7c33e216025cbde513c9391ed51f..0000000000000000000000000000000000000000 --- a/funcom_test/45956666.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String reportError(String dn, String reportText, String detailLink, String captchaChallenge, String captchaResponse, String remoteAddress) { - String result = null; - if (captchaValidator.validate(captchaChallenge, captchaResponse, remoteAddress)) { - errorReportingService.reportError(dn, reportText, detailLink); - result = "success"; - } else { - result = "failure"; - } - return result; - } - COM: <s> reports an error in the ldap directory for the provided dn </s> - diff --git a/funcom_test/45956692.txt b/funcom_test/45956692.txt deleted file mode 100644 index 8b80a2e5b2671b7bf084424e1caf31534f1c39d4..0000000000000000000000000000000000000000 --- a/funcom_test/45956692.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void initEndpoint() { - if (!StringUtil.isEmpty(signatureServiceEndpoint)) { - BindingProvider bindingProvider = (BindingProvider) signatureservice; - Map<String, Object> requestContext = bindingProvider.getRequestContext(); - requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, signatureServiceEndpoint); - } - } - COM: <s> initializes the webservice endpoint for the signature service </s> - diff --git a/funcom_test/45956745.txt b/funcom_test/45956745.txt deleted file mode 100644 index d878de47a33dc9699f4605c4c5fc401f1a406441..0000000000000000000000000000000000000000 --- a/funcom_test/45956745.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String buildPlainText(List<Unit> units) { - StringBuilder suggestions = new StringBuilder(); - - for (Unit u : units) { - String description = getUnitDescriptionEncoded(u); - suggestions.append(description).append("\t").append(u.getHsaIdentity()).append("\n"); - } - - return suggestions.toString(); - } - COM: <s> builds a tab separated string from the provided units </s> - diff --git a/funcom_test/45957093.txt b/funcom_test/45957093.txt deleted file mode 100644 index 4d37fe6a02c71b01c145c529b561d1d12332d0ae..0000000000000000000000000000000000000000 --- a/funcom_test/45957093.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void removeOutdatedUnits(SikSearchResultList<Unit> units) { - Date now = TimeUtil.asDate(); - for (Iterator<Unit> iterator = units.iterator(); iterator.hasNext();) { - Unit unit = iterator.next(); - if (unit.getHsaEndDate() != null && now.after(unit.getHsaEndDate())) { - iterator.remove(); - } - } - } - COM: <s> removes units that have passed its end date hsa end date </s> - diff --git a/funcom_test/45957109.txt b/funcom_test/45957109.txt deleted file mode 100644 index 1f151123ffecf8f2741054d9fc631322f6741df0..0000000000000000000000000000000000000000 --- a/funcom_test/45957109.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String fixURI(String uri) { - String fixedUri = uri; - // Do some simple validation/fixing - if (!StringUtil.isEmpty(uri) && !(uri.startsWith("http://") || uri.startsWith("https://"))) { - fixedUri = "http://" + uri; - } - - return fixedUri; - } - COM: <s> prepends http if the provided uri isnt a correct uri </s> - diff --git a/funcom_test/45957119.txt b/funcom_test/45957119.txt deleted file mode 100644 index 838bba81a8eef93db376320fcbc5e72709cf8ac8..0000000000000000000000000000000000000000 --- a/funcom_test/45957119.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Person getPersonByVgrId(String vgrId) throws KivException { - AndFilter andFilter = new AndFilter(); - andFilter.and(new EqualsFilter("cn", vgrId)); - return this.searchPerson("cn=" + vgrId + "," + PERSON_SEARCH_BASE.toString(), SearchControls.OBJECT_SCOPE, andFilter.encode()); - } - COM: <s> fetch a person by vgr id </s> - diff --git a/funcom_test/45957314.txt b/funcom_test/45957314.txt deleted file mode 100644 index a7ca23107826f73c41a07b72f8156801f720dc3c..0000000000000000000000000000000000000000 --- a/funcom_test/45957314.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Person getPersonByDn(String dn) throws KivException { - DistinguishedName distinguishedName = new DistinguishedName(dn); - - PersonMapper personMapper = new PersonMapper(); - try { - ldapTemplate.lookup(distinguishedName, personMapper); - } catch (NamingException e) { - throw new KivException("Error getting person from server: " + e.getMessage()); - } - - Person person = personMapper.getFirstPerson(); - - return person; - } - COM: <s> retrieves a person by the distinguished name and reconstitues the object </s> - diff --git a/funcom_test/45957364.txt b/funcom_test/45957364.txt deleted file mode 100644 index beeb9f4f3779d346f2b3b76c03733e7b56681263..0000000000000000000000000000000000000000 --- a/funcom_test/45957364.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void add(SitemapEntry entry, EntryType entryType) { - Arguments.notNull("entry", entry); - Arguments.notNull("entryType", entryType); - - List<SitemapEntry> entries = getEntryList(entryType); - - if (!entries.contains(entry)) { - entries.add(entry); - } - } - COM: <s> adds a new sitemap entry to the cache </s> - diff --git a/funcom_test/45957369.txt b/funcom_test/45957369.txt deleted file mode 100644 index 132df4ad03a99df7e9eeed214910a2ed72d564de..0000000000000000000000000000000000000000 --- a/funcom_test/45957369.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void add(Unit unit) { - Arguments.notNull("unit", unit); - - if (!this.units.contains(unit)) { - this.units.add(unit); - if (unit.getDn() != null) { - this.unitsByDn.put(unit.getDn().toString(), unit); - } - } - } - COM: <s> adds a new unit to the cache </s> - diff --git a/funcom_test/45957377.txt b/funcom_test/45957377.txt deleted file mode 100644 index 6249abf1395760cede2c97ece3cb4344b763f8fc..0000000000000000000000000000000000000000 --- a/funcom_test/45957377.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void add(String givenName, String surname) { - Arguments.notNull("givenName", givenName); - Arguments.notNull("surname", surname); - - addNameToList(givenName.trim(), surname.trim(), givenNameMap); - addNameToList(surname.trim(), givenName.trim(), surnameMap); - } - COM: <s> adds a given name surname combination to the cache </s> - diff --git a/funcom_test/45957381.txt b/funcom_test/45957381.txt deleted file mode 100644 index 7c0612b758e5ba8c455aa622a175e9b8f9fe5ef1..0000000000000000000000000000000000000000 --- a/funcom_test/45957381.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addNameToList(String key, String value, Map<String, List<String>> map) { - List<String> list = map.get(key); - if (list == null) { - list = new ArrayList<String>(); - map.put(key, list); - } - if (!list.contains(value)) { - list.add(value); - } - } - COM: <s> helper method for adding a name to the correct list of the map </s> - diff --git a/funcom_test/45957457.txt b/funcom_test/45957457.txt deleted file mode 100644 index ac43aa833efe53505212d82476a221d6ef37fc64..0000000000000000000000000000000000000000 --- a/funcom_test/45957457.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void init() { - this.codeTables.clear(); - for (KivwsCodeTableName codeTableName : KivwsCodeTableName.values()) { - try { - this.populateCodeTablesMap(codeTableName); - } catch (KivException e) { - throw new RuntimeException(e.getMessage()); - } - } - } - COM: <s> initializes the code table service </s> - diff --git a/funcom_test/45958688.txt b/funcom_test/45958688.txt deleted file mode 100644 index a2bbcb592f7176ca0a95763d3066cdb03ba573a4..0000000000000000000000000000000000000000 --- a/funcom_test/45958688.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getAdditionalInfoToString() { - String result = null; - if (additionalInfo != null && additionalInfo.size() > 0) { - StringBuffer buf = new StringBuffer(); - for (String s : additionalInfo) { - buf.append(s); - } - result = buf.toString(); - } - return result; - } - COM: <s> gets the additional info as a string </s> - diff --git a/funcom_test/45958861.txt b/funcom_test/45958861.txt deleted file mode 100644 index 6d4f82ff52c2c711ee1488daabb69d8b56185157..0000000000000000000000000000000000000000 --- a/funcom_test/45958861.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getTelephoneNumberOfFirstEmployment() { - String telephoneNumber = ""; - - if (this.employments != null && this.employments.size() > 0 && this.employments.get(0).getHsaTelephoneNumber() != null) { - telephoneNumber = this.employments.get(0).getHsaTelephoneNumber().getPhoneNumber(); - } - - return telephoneNumber; - } - COM: <s> getter for the primary telephone number of the persons first employment </s> - diff --git a/funcom_test/45958868.txt b/funcom_test/45958868.txt deleted file mode 100644 index bec43226f381d881e3527f28d7c501a0af97b5d8..0000000000000000000000000000000000000000 --- a/funcom_test/45958868.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getMobileNumberOfFirstEmployment() { - String mobileNumber = ""; - - if (this.employments != null && this.employments.size() > 0 && this.employments.get(0).getMobileTelephoneNumber() != null) { - mobileNumber = this.employments.get(0).getMobileTelephoneNumber().getPhoneNumber(); - } - - return mobileNumber; - } - COM: <s> getter for the mobile number of the persons first employment </s> - diff --git a/funcom_test/45960284.txt b/funcom_test/45960284.txt deleted file mode 100644 index 14c35b5c94cc479e460cc9c5b1f8c9a2700d5e04..0000000000000000000000000000000000000000 --- a/funcom_test/45960284.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean getLabeledURIIsValid() { - if (StringUtil.isEmpty(this.getLabeledURI()) || !(this.getLabeledURI().startsWith("http://") || this.getLabeledURI().startsWith("https://"))) { - return false; - } - return true; - } - COM: <s> checks if the units labeled uri is valid </s> - diff --git a/funcom_test/45961155.txt b/funcom_test/45961155.txt deleted file mode 100644 index c24b7e3089c3c9a037d6703fb0efe81246e29fd8..0000000000000000000000000000000000000000 --- a/funcom_test/45961155.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean hasHealthcareType(String healthcareType) { - boolean result = false; - - if (healthcareType != null && this.getHealthcareTypes() != null) { - for (HealthcareType ht : this.getHealthcareTypes()) { - if (healthcareType.equals(ht.getDisplayName())) { - result = true; - } - } - } - return result; - } - COM: <s> helper method for checking if a unit has a specific healthcare type </s> - diff --git a/funcom_test/46022442.txt b/funcom_test/46022442.txt deleted file mode 100644 index b5a22558f7dfc69e3ccea392925a2fbad15cbffc..0000000000000000000000000000000000000000 --- a/funcom_test/46022442.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean changeUser(UserSession userSession, String username, String password) { - if (userSession==null || username==null || password==null) { - throw new IllegalArgumentException("session, username or password is null"); - } - User user = modelService.getUser(username); - if (user==null) { - return false; - } else if (password.equals(user.getPassword())) { - userSession.setUser(user); - return true; - } else { - return false; - } - } - COM: <s> tries to change the user of a session </s> - diff --git a/funcom_test/46025850.txt b/funcom_test/46025850.txt deleted file mode 100644 index 977a02c2b90887b7ca79db0248fcfaa5c1fe84df..0000000000000000000000000000000000000000 --- a/funcom_test/46025850.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean decode(String source) { - try { - String decodedString = URLDecoder.decode(source, "UTF-8"); - ByteArrayInputStream in = new ByteArrayInputStream(decodedString.getBytes("UTF-8")); - load(in); - } catch (UnsupportedEncodingException e) { - throw new Error("UTF-8 not supported", e); - } catch (Exception e) { - e.printStackTrace(); - return false; - } - - return true; - } - COM: <s> encode string string </s> - diff --git a/funcom_test/46025875.txt b/funcom_test/46025875.txt deleted file mode 100644 index 4b0ec90eb060ba01c7fce7471158c8ae9e624891..0000000000000000000000000000000000000000 --- a/funcom_test/46025875.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void shutdown() { - log.debug("Main shutdown() called"); - propConfig.setProperty("mainwindow.width", getSize().width); - propConfig.setProperty("mainwindow.height", getSize().height); - propConfig.setProperty("mainwindow.x", getLocation().x); - propConfig.setProperty("mainwindow.y", getLocation().y); - saveConfig(); - System.exit(0); - } - COM: <s> shutdown this application </s> - diff --git a/funcom_test/46026030.txt b/funcom_test/46026030.txt deleted file mode 100644 index 66ab1afc0eba98a954ea1038bf76c6848ab6db36..0000000000000000000000000000000000000000 --- a/funcom_test/46026030.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void changeCurrentScreenCard(int cardNumber) { - contentPaneCardLayout.show(getContentPane(), SCREENCARD_NAMES[cardNumber]); - currentScreenCardNumber = cardNumber; - - // Set default button - JButton defaultButton = null; - switch(cardNumber) { - case SCREENCARD_LOGIN: - defaultButton = btnLogin; - break; - case SCREENCARD_LOBBY: - defaultButton = btnConsoleCommandExecute; - break; - } - - if(defaultButton != null) { - this.getRootPane().setDefaultButton(defaultButton); - } - } - COM: <s> change current screen card </s> - diff --git a/funcom_test/46026032.txt b/funcom_test/46026032.txt deleted file mode 100644 index 73d33a90c65c810552e7265fb6d8992e528871a0..0000000000000000000000000000000000000000 --- a/funcom_test/46026032.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void shutdown() { - log.debug("GameManager shutdown()"); - - try { - for(int i = 0; i < engine.length; i++) { - engine[i].shutdown(); - engine[i] = null; - } - engine = null; - mode = null; - modeConfig = null; - replayProp = null; - receiver = null; - bgmStatus = null; - backgroundStatus = null; - } catch (Throwable e) { - log.debug("Caught Throwable on shutdown", e); - } - } - COM: <s> shutdown the game </s> - diff --git a/funcom_test/46026097.txt b/funcom_test/46026097.txt deleted file mode 100644 index 413d9c78681f89712e81031ba90a9d8a54a6ee3a..0000000000000000000000000000000000000000 --- a/funcom_test/46026097.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addConsoleLog(String str, Color fgcolor) { - SimpleAttributeSet sas = null; - if(fgcolor != null) { - sas = new SimpleAttributeSet(); - StyleConstants.setForeground(sas, fgcolor); - } - try { - Document doc = txtpaneConsoleLog.getDocument(); - doc.insertString(doc.getLength(), str + "\n", sas); - txtpaneConsoleLog.setCaretPosition(doc.getLength()); - } catch (Exception e) {} - } - COM: <s> add message to console </s> - diff --git a/funcom_test/46026152.txt b/funcom_test/46026152.txt deleted file mode 100644 index bc1d9d137ea376666e16757978f27ee949cd1db2..0000000000000000000000000000000000000000 --- a/funcom_test/46026152.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public int getARELine() { - if((speed.areLine < ruleopt.minARELine) && (ruleopt.minARELine >= 0)) return ruleopt.minARELine; - if((speed.areLine > ruleopt.maxARELine) && (ruleopt.maxARELine >= 0)) return ruleopt.maxARELine; - return speed.areLine; - } - COM: <s> current are after line clear </s> - diff --git a/funcom_test/46026159.txt b/funcom_test/46026159.txt deleted file mode 100644 index a10368a104e12e552bffec7be4557501837014f0..0000000000000000000000000000000000000000 --- a/funcom_test/46026159.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public int getLineDelay() { - if((speed.lineDelay < ruleopt.minLineDelay) && (ruleopt.minLineDelay >= 0)) return ruleopt.minLineDelay; - if((speed.lineDelay > ruleopt.maxLineDelay) && (ruleopt.maxLineDelay >= 0)) return ruleopt.maxLineDelay; - return speed.lineDelay; - } - COM: <s> current line clear time </s> - diff --git a/funcom_test/46026383.txt b/funcom_test/46026383.txt deleted file mode 100644 index 7f0a857aff4a5d8702bd7814397eb86e26ac100d..0000000000000000000000000000000000000000 --- a/funcom_test/46026383.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean isPartialLockOut(int x, int y, int rt, Field fld) { - // Bigでは専用処理 - if(big == true) return isPartialLockOutBig(x, y, rt, fld); - - boolean placed = false; - - for(int i = 0; i < getMaxBlock(); i++) { - int y2 = y + dataY[rt][i]; - if(y2 < 0) placed = true; - } - - return placed; - } - COM: <s> 1 block field </s> - diff --git a/funcom_test/46026411.txt b/funcom_test/46026411.txt deleted file mode 100644 index 52e9d589311be2787a1a5ddb154c03329e630854..0000000000000000000000000000000000000000 --- a/funcom_test/46026411.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean canPlaceToVisibleField(int x, int y, int rt, Field fld) { - // Bigでは専用処理 - if(big == true) return canPlaceToVisibleFieldBig(x, y, rt, fld); - - boolean placed = false; - - for(int i = 0; i < getMaxBlock(); i++) { - int y2 = y + dataY[rt][i]; - if(y2 >= 0) placed = true; - } - - return placed; - } - COM: <s> 1 block field field </s> - diff --git a/funcom_test/46026430.txt b/funcom_test/46026430.txt deleted file mode 100644 index e1fc7107e39fd9a813fcef9afda6a187720d6349..0000000000000000000000000000000000000000 --- a/funcom_test/46026430.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private int checkRanking(int maxcombo, int time) { - for(int i = 0; i < RANKING_MAX; i++) { - if(maxcombo > rankingCombo[goaltype][i]) { - return i; - } else if ((maxcombo == rankingCombo[goaltype][i]) && (time >= 0) && - ((time < rankingTime[goaltype][i]) || (rankingTime[goaltype][i] == -1))) { - return i; - } - } - - return -1; - } - COM: <s> this function will check the ranking and returns which place you are </s> - diff --git a/funcom_test/46026504.txt b/funcom_test/46026504.txt deleted file mode 100644 index 5366cf336ab4fa794eff0cac20884120f1f3bf6d..0000000000000000000000000000000000000000 --- a/funcom_test/46026504.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void loadSetting(CustomProperties prop) { - mapSet = prop.getProperty("avalanchefever.gametype", 0); - outlinetype = prop.getProperty("avalanchefever.outlinetype", 0); - numColors = prop.getProperty("avalanchefever.numcolors", 4); - version = prop.getProperty("avalanchefever.version", 0); - chainDisplayType = prop.getProperty("avalanchefever.chainDisplayType", 1); - bigDisplay = prop.getProperty("avalanchefever.bigDisplay", false); - } - COM: <s> load settings from property file </s> - diff --git a/funcom_test/46026508.txt b/funcom_test/46026508.txt deleted file mode 100644 index 0a903002bb457edc6459e5b32aab560d7848d4a2..0000000000000000000000000000000000000000 --- a/funcom_test/46026508.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void saveSetting(CustomProperties prop) { - prop.setProperty("avalanchefever.gametype", mapSet); - prop.setProperty("avalanchefever.outlinetype", outlinetype); - prop.setProperty("avalanchefever.numcolors", numColors); - prop.setProperty("avalanchefever.version", version); - prop.setProperty("avalanchefever.chainDisplayType", chainDisplayType); - prop.setProperty("avalanchefever.bigDisplay", bigDisplay); - } - COM: <s> save settings to property file </s> - diff --git a/funcom_test/46026669.txt b/funcom_test/46026669.txt deleted file mode 100644 index a5741dc22ba263f147ca44e49f841aa3d7a20290..0000000000000000000000000000000000000000 --- a/funcom_test/46026669.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void loadSetting(CustomProperties prop) { - gametype = prop.getProperty("retromarathon.gametype", 0); - startlevel = prop.getProperty("retromarathon.startlevel", 0); - startheight = prop.getProperty("retromarathon.startheight", 0); - big = prop.getProperty("retromarathon.big", false); - version = prop.getProperty("retromarathon.version", 0); - } - COM: <s> load the settings </s> - diff --git a/funcom_test/46026677.txt b/funcom_test/46026677.txt deleted file mode 100644 index b35173caab801a32f767e03ae9016801d6b915c3..0000000000000000000000000000000000000000 --- a/funcom_test/46026677.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void saveSetting(CustomProperties prop) { - prop.setProperty("retromarathon.gametype", gametype); - prop.setProperty("retromarathon.startlevel", startlevel); - prop.setProperty("retromarathon.startheight", startheight); - prop.setProperty("retromarathon.big", big); - prop.setProperty("retromarathon.version", version); - } - COM: <s> save the settings </s> - diff --git a/funcom_test/46026682.txt b/funcom_test/46026682.txt deleted file mode 100644 index 4046f4d9cd31600b0f9a0c737e9a83a6e7e4d53e..0000000000000000000000000000000000000000 --- a/funcom_test/46026682.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected void netPlayerInit(GameEngine engine, int playerID) { - netPrevPieceID = Piece.PIECE_NONE; - netPrevPieceX = 0; - netPrevPieceY = 0; - netPrevPieceDir = 0; - netPlayerSkin = 0; - netReplaySendStatus = 0; - netRankingRank = new int[2]; - netRankingRank[0] = -1; - netRankingRank[1] = -1; - netIsPB = false; - netIsNetRankingDisplayMode = false; - netAlwaysSendFieldAttributes = false; - - if(netIsWatch) { - engine.isNextVisible = false; - engine.isHoldVisible = false; - } - } - COM: <s> net initialize various net play variables </s> - diff --git a/funcom_test/46026713.txt b/funcom_test/46026713.txt deleted file mode 100644 index 54b5adcd2fe4168293933f64f3d6781356acc141..0000000000000000000000000000000000000000 --- a/funcom_test/46026713.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getTSlotLineClearAll(boolean big) { - int result = 0; - - for(int j = 0; j < width; j++) { - for(int i = 0; i < getHeightWithoutHurryupFloor() - 2; i++) { - if(getLineFlag(i) == false) { - result += getTSlotLineClear(j, i, big); - } - } - } - - return result; - } - COM: <s> t spin linescount field </s> - diff --git a/funcom_test/46026813.txt b/funcom_test/46026813.txt deleted file mode 100644 index a8b1991ecf460871c4ab179bd65571984bea4985..0000000000000000000000000000000000000000 --- a/funcom_test/46026813.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getHighestBlockY() { - for(int i = (hidden_height * -1); i < getHeightWithoutHurryupFloor(); i++) { - if(getLineFlag(i) == false) { - for(int j = 0; j < width; j++) { - if(!getBlockEmpty(j, i)) return i; - } - } - } - - return height; - } - COM: <s> block y coordinate </s> - diff --git a/funcom_test/46026841.txt b/funcom_test/46026841.txt deleted file mode 100644 index 22e0ae8fbd475530e1f665ce43b4c8a3aeec8ee5..0000000000000000000000000000000000000000 --- a/funcom_test/46026841.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void gameOverCheck(GameEngine engine, int playerID) { - if (engine.field == null) - return; - if (big[playerID]) - { - if (!engine.field.getBlockEmpty(1, 0)) - engine.stat = GameEngine.STAT_GAMEOVER; - } - else if (!engine.field.getBlockEmpty(2, 0) || - (dangerColumnDouble[playerID] && !engine.field.getBlockEmpty(3, 0))) - engine.stat = GameEngine.STAT_GAMEOVER; - } - COM: <s> check for game over </s> - diff --git a/funcom_test/46026848.txt b/funcom_test/46026848.txt deleted file mode 100644 index 0e7a842e5f7ac64822132940d1847d547a210f43..0000000000000000000000000000000000000000 --- a/funcom_test/46026848.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int getHighestGarbageBlockY() { - for(int i = (hidden_height * -1); i < getHeightWithoutHurryupFloor(); i++) { - if(getLineFlag(i) == false) { - for(int j = 0; j < width; j++) { - if(!getBlockEmpty(j, i) && getBlock(j, i).getAttribute(Block.BLOCK_ATTRIBUTE_GARBAGE)) - return i; - } - } - } - - return height; - } - COM: <s> garbage block y coordinate </s> - diff --git a/funcom_test/46026857.txt b/funcom_test/46026857.txt deleted file mode 100644 index eed50450acb15b57a58f33086fe48f6930dab3b0..0000000000000000000000000000000000000000 --- a/funcom_test/46026857.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void checkStageEnd(GameEngine engine) { - if( (clearflag) || ((stagetimeNow <= 0) && (stagetimeStart > 0) && (engine.timerActive)) ) { - skipflag = false; - engine.nowPieceObject = null; - engine.timerActive = false; - engine.stat = GameEngine.STAT_CUSTOM; - engine.resetStatc(); - } else if((limittimeNow <= 0) && (engine.timerActive)) { - engine.nowPieceObject = null; - engine.stat = GameEngine.STAT_GAMEOVER; - engine.resetStatc(); - } - } - COM: <s> stage clear time </s> - diff --git a/funcom_test/46026948.txt b/funcom_test/46026948.txt deleted file mode 100644 index f03ceeb4fbfedb7c44244382c1f5130bedeae1b5..0000000000000000000000000000000000000000 --- a/funcom_test/46026948.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void netDrawPlayerName(GameEngine engine) { - if((netPlayerName != null) && (netPlayerName.length() > 0)) { - String name = netPlayerName; - owner.receiver.drawTTFDirectFont( - engine, engine.playerID, - owner.receiver.getFieldDisplayPositionX(engine, engine.playerID), - owner.receiver.getFieldDisplayPositionY(engine, engine.playerID) - 20, - name); - } - } - COM: <s> net draw players name </s> - diff --git a/funcom_test/46027013.txt b/funcom_test/46027013.txt deleted file mode 100644 index 138f0ddb2d595a8838cf3dd9adf4bb8c0f617cba..0000000000000000000000000000000000000000 --- a/funcom_test/46027013.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void setSpeed(GameEngine engine) { - engine.speed.gravity = -1; - - int section = engine.statistics.level / 100; - if(section > tableARE.length - 1) section = tableARE.length - 1; - engine.speed.are = tableARE[section]; - engine.speed.areLine = tableARELine[section]; - engine.speed.lineDelay = tableLineDelay[section]; - engine.speed.lockDelay = tableLockDelay[section]; - engine.speed.das = tableDAS[section]; - } - COM: <s> update falling speed </s> - diff --git a/funcom_test/46027042.txt b/funcom_test/46027042.txt deleted file mode 100644 index be1dc2c87aa31da1d30e9d120d4861778065c598..0000000000000000000000000000000000000000 --- a/funcom_test/46027042.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void addSingleHoleGarbage(int hole, int color, int skin, int attribute, int lines) { - for(int k = 0; k < lines; k++) { - pushUp(1); - - for(int j = 0; j < width; j++) { - if(j != hole) { - Block blk = new Block(); - blk.color = color; - blk.skin = skin; - blk.attribute = attribute; - setBlock(j, getHeightWithoutHurryupFloor() - 1, blk); - } - } - } - } - COM: <s> 1 garbage block </s> - diff --git a/funcom_test/46027075.txt b/funcom_test/46027075.txt deleted file mode 100644 index cfbabfabb5c9567796644e820b9d588ea08e7e1a..0000000000000000000000000000000000000000 --- a/funcom_test/46027075.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void addBottomCopyGarbage(int color, int skin, int attribute, int lines) { - for(int k = 0; k < lines; k++) { - pushUp(1); - - for(int j = 0; j < width; j++) { - boolean empty = getBlockEmpty(j, height - 2); - - if(!empty) { - Block blk = new Block(); - blk.color = color; - blk.skin = skin; - blk.attribute = attribute; - setBlock(j, getHeightWithoutHurryupFloor() - 1, blk); - } - } - } - } - COM: <s> lines garbage block </s> - diff --git a/funcom_test/46027341.txt b/funcom_test/46027341.txt deleted file mode 100644 index 8838479302fd212516059c4d6c609cf06ee58964..0000000000000000000000000000000000000000 --- a/funcom_test/46027341.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void viewRoomDetail(int roomID) { - NetRoomInfo roomInfo = netPlayerClient.getRoomInfo(roomID); - - if(roomInfo != null) { - currentViewDetailRoomID = roomID; - - if(roomInfo.singleplayer) { - setCreateRoom1PUIType(true, roomInfo); - changeCurrentScreenCard(SCREENCARD_CREATEROOM1P); - } else { - setCreateRoomUIType(true, roomInfo); - changeCurrentScreenCard(SCREENCARD_CREATEROOM); - } - } - } - COM: <s> switch to room detail screen </s> - diff --git a/funcom_test/46027498.txt b/funcom_test/46027498.txt deleted file mode 100644 index 4e5f233644164c3f09244f0b49e872a2bfb89a18..0000000000000000000000000000000000000000 --- a/funcom_test/46027498.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void saveSetting(CustomProperties prop) { - prop.setProperty("square.gametype", gametype); - prop.setProperty("square.outlinetype", outlinetype); - prop.setProperty("square.tspinEnableType", tspinEnableType); - prop.setProperty("square.tntAvalanche", tntAvalanche); - prop.setProperty("square.grayoutEnable", grayoutEnable); - prop.setProperty("square.version", version); - } - COM: <s> save the settings to custom properties </s> - diff --git a/funcom_test/46027680.txt b/funcom_test/46027680.txt deleted file mode 100644 index b1d51012f28f5de5be582cbb691e22dac6789441..0000000000000000000000000000000000000000 --- a/funcom_test/46027680.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String attrFieldToString() { - String strResult = ""; - - for(int i = getHeight() - 1; i >= Math.max(-1, getHighestBlockY()); i--) { - strResult += attrRowToString(getRow(i)); - } - while(strResult.endsWith("0/0;")) { - strResult = strResult.substring(0, strResult.length() - 4); - } - - return strResult; - } - COM: <s> convert this field to a string with attributes </s> - diff --git a/funcom_test/46027698.txt b/funcom_test/46027698.txt deleted file mode 100644 index 027f02a20a826348a805a6d19c6f10b89de03a88..0000000000000000000000000000000000000000 --- a/funcom_test/46027698.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String exportStartDate() { - try { - ByteArrayOutputStream bout = new ByteArrayOutputStream(); - ObjectOutputStream oos = new ObjectOutputStream(bout); - oos.writeObject(startDate); - byte[] bTemp = NetUtil.compressByteArray(bout.toByteArray()); - char[] cTemp = Base64Coder.encode(bTemp); - return new String(cTemp); - } catch (Exception e) { - log.error("Failed to export startDate", e); - } - return null; - } - COM: <s> export start date to string </s> - diff --git a/funcom_test/46027730.txt b/funcom_test/46027730.txt deleted file mode 100644 index 125486b8b15c309116c3ccd8cef009698846f898..0000000000000000000000000000000000000000 --- a/funcom_test/46027730.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void copy(NetSPRanking s) { - strModeName = s.strModeName; - strRuleName = s.strRuleName; - gameType = s.gameType; - style = s.style; - rankingType = s.rankingType; - maxRecords = s.maxRecords; - listRecord = new LinkedList<NetSPRecord>(); - for(int i = 0; i < s.listRecord.size(); i++) { - listRecord.add(new NetSPRecord(s.listRecord.get(i))); - } - } - COM: <s> copy from other net spranking data </s> - diff --git a/funcom_test/46027741.txt b/funcom_test/46027741.txt deleted file mode 100644 index 311bdcb2f50ecb022a6b29eb935424763d01afe1..0000000000000000000000000000000000000000 --- a/funcom_test/46027741.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int removeRecord(String strPlayerName) { - int count = 0; - - LinkedList<NetSPRecord> list = new LinkedList<NetSPRecord>(listRecord); - for(int i = 0; i < list.size(); i++) { - NetSPRecord r = list.get(i); - - if(r.strPlayerName.equals(strPlayerName)) { - listRecord.remove(i); - count++; - } - } - - return count; - } - COM: <s> remove specific players record </s> - diff --git a/funcom_test/46027778.txt b/funcom_test/46027778.txt deleted file mode 100644 index 02494e1d81388d1854dcb4e20fa2219afa93a1aa..0000000000000000000000000000000000000000 --- a/funcom_test/46027778.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void copy(NetSPRecord s) { - strPlayerName = s.strPlayerName; - strModeName = s.strModeName; - strRuleName = s.strRuleName; - - if(s.stats == null) stats = null; - else stats = new Statistics(s.stats); - - listCustomStats = new LinkedList<String>(s.listCustomStats); - - strReplayProp = s.strReplayProp; - strTimeStamp = s.strTimeStamp; - gameType = s.gameType; - style = s.style; - } - COM: <s> copy from other net sprecord </s> - diff --git a/funcom_test/46027784.txt b/funcom_test/46027784.txt deleted file mode 100644 index 4cb83062f1fde36495564465b673e1298cbe793f..0000000000000000000000000000000000000000 --- a/funcom_test/46027784.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String exportCustomStats() { - if((listCustomStats != null) && (listCustomStats.size() > 0)) { - String strResult = ""; - for(int i = 0; i < listCustomStats.size(); i++) { - if(i > 0) strResult += ","; - strResult += listCustomStats.get(i); - } - return strResult; - } - return ""; - } - COM: <s> export custom stats to a string </s> - diff --git a/funcom_test/46027786.txt b/funcom_test/46027786.txt deleted file mode 100644 index d15fb97ba69c66fb311f27bb4032b1f1571e6175..0000000000000000000000000000000000000000 --- a/funcom_test/46027786.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void importCustomStats(String s) { - if(listCustomStats == null) listCustomStats = new LinkedList<String>(); - else listCustomStats.clear(); - if((s == null) || (s.length() <= 0)) return; - - String[] array = s.split(","); - for(int i = 0; i < array.length; i++) { - listCustomStats.add(array[i]); - } - } - COM: <s> import custom stats from a string </s> - diff --git a/funcom_test/46027813.txt b/funcom_test/46027813.txt deleted file mode 100644 index 2a276c3672dae4c1533748b7ff0c4a4c93c53a8f..0000000000000000000000000000000000000000 --- a/funcom_test/46027813.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public NetSPRecord getRecord(String rule, String mode, int gtype) { - for(int i = 0; i < listRecord.size(); i++) { - NetSPRecord r = listRecord.get(i); - if(r.strRuleName.equals(rule) && r.strModeName.equals(mode) && r.gameType == gtype) { - return r; - } - } - return null; - } - COM: <s> get specific net sprecord </s> - diff --git a/funcom_test/46027817.txt b/funcom_test/46027817.txt deleted file mode 100644 index 492d9dcf1081903af6d250f0f23d47a04838a6e4..0000000000000000000000000000000000000000 --- a/funcom_test/46027817.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean registerRecord(int rtype, NetSPRecord r1) { - NetSPRecord r2 = getRecord(r1.strRuleName, r1.strModeName, r1.gameType); - - if(r2 != null) { - if(r1.compare(rtype, r2)) { - // Replace with a new record - r2.copy(r1); - } else { - return false; - } - } else { - // Register a new record - listRecord.add(r1); - } - - return true; - } - COM: <s> register a record </s> - diff --git a/funcom_test/46027824.txt b/funcom_test/46027824.txt deleted file mode 100644 index 56118988e2f92524d3b3d23b71628056890e54b9..0000000000000000000000000000000000000000 --- a/funcom_test/46027824.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setCustomStat(String name, String value) { - for(int i = 0; i < listCustomStats.size(); i++) { - String strTemp = listCustomStats.get(i); - String[] strArray = strTemp.split(";"); - - if(strArray[0].equals(name)) { - listCustomStats.set(i, name + ";" + value); - return; - } - } - listCustomStats.add(name + ";" + value); - } - COM: <s> set string value of specific custom stat </s> - diff --git a/funcom_test/46028647.txt b/funcom_test/46028647.txt deleted file mode 100644 index 556f998d86b7cff942bab508c8fd12e0cef04d2f..0000000000000000000000000000000000000000 --- a/funcom_test/46028647.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public int getFieldDisplayPositionX(GameEngine engine, int playerID) { - if(getNextDisplayType() == 2) return NEW_FIELD_OFFSET_X_BSP[engine.owner.mode.getGameStyle()][engine.displaysize + 1][playerID]; - return NEW_FIELD_OFFSET_X[engine.owner.mode.getGameStyle()][engine.displaysize + 1][playerID]; - } - COM: <s> get x position of field </s> - diff --git a/funcom_test/46028649.txt b/funcom_test/46028649.txt deleted file mode 100644 index 9759bb73a324633351ad1695e5ffc3487c9c04d3..0000000000000000000000000000000000000000 --- a/funcom_test/46028649.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public int getFieldDisplayPositionY(GameEngine engine, int playerID) { - if(getNextDisplayType() == 2) return NEW_FIELD_OFFSET_Y_BSP[engine.owner.mode.getGameStyle()][engine.displaysize + 1][playerID]; - return NEW_FIELD_OFFSET_Y[engine.owner.mode.getGameStyle()][engine.displaysize + 1][playerID]; - } - COM: <s> get y position of field </s> - diff --git a/funcom_test/46029027.txt b/funcom_test/46029027.txt deleted file mode 100644 index 273774a5f8c5571c626eca94359711e5f67e2a6c..0000000000000000000000000000000000000000 --- a/funcom_test/46029027.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean deleteRoom(NetRoomInfo roomInfo) { - if((roomInfo != null) && (roomInfo.playerList.isEmpty())) { - log.info("RoomDelete ID:" + roomInfo.roomID + " Title:" + roomInfo.strName); - broadcastRoomInfoUpdate(roomInfo, "roomdelete"); - roomInfoList.remove(roomInfo); - roomInfo.delete(); - return true; - } - return false; - } - COM: <s> delete a room </s> - diff --git a/funcom_test/4606808.txt b/funcom_test/4606808.txt deleted file mode 100644 index 82396615e11cc1f4806dee2c38cb4bb12048b816..0000000000000000000000000000000000000000 --- a/funcom_test/4606808.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean validatePassword (String passwordHash, int challenge) { - TestNetwork.debug(" Attempting to validate: " + passwordHash ); - HashFunction md5Hash = new HashFunction("MD5"); - - String correctPasswordHash = this.passwordHash; - correctPasswordHash = correctPasswordHash + challenge; - correctPasswordHash = md5Hash.computeHash(correctPasswordHash); - TestNetwork.debug(" Correct Hash: " +correctPasswordHash); - - return correctPasswordHash.equals(passwordHash); - } - COM: <s> computes the password hash of the supplied password and challenge </s> - diff --git a/funcom_test/46078347.txt b/funcom_test/46078347.txt deleted file mode 100644 index 3c8a5ad3a5970cf2bdcf2e20aff636f2d9b2f3de..0000000000000000000000000000000000000000 --- a/funcom_test/46078347.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void ensure(Row row, TestResults testResults) throws Exception { - expectedResult = new Boolean(true); - try { - Object result = callMethodInRow(row,testResults, true); - row.cell(0).passOrFail(testResults,((Boolean)result).booleanValue()); - } catch (IgnoredException e) { - // No result, so ignore - } catch (Exception e) { - row.cell(0).fail(testResults); - } - } - COM: <s> checks that the action in the rest of the row succeeds </s> - diff --git a/funcom_test/46078415.txt b/funcom_test/46078415.txt deleted file mode 100644 index ce44b08ae6392efb368e1ed27516ecf85de189f2..0000000000000000000000000000000000000000 --- a/funcom_test/46078415.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void start(Row row, TestResults testResults) throws Exception { - String className = row.text(1); - if (row.size() != 2) - throw new ExtraCellsException("DoTraverseStart"); - try { - setSystemUnderTest(ClassUtility.newInstance(className)); - } catch (Exception e) { - throw new FitLibraryExceptionWithHelp("Unknown class: "+className, - "UnknownClass.DoTraverseStart"); - } - } - COM: <s> to allow for do traverse to be used without writing any fixturing code </s> - diff --git a/funcom_test/46106668.txt b/funcom_test/46106668.txt deleted file mode 100644 index 8c613bb447361bcefa31c481fe8726a07b114ebe..0000000000000000000000000000000000000000 --- a/funcom_test/46106668.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addLine(String mText, GLColor mColor) { - // If we are on the limit we erase the first - // before we insert the new - if (lines.size() == maxLines) - lines.removeElementAt(0); - lines.add(new Line(mText, mColor)); - } - COM: <s> adds a new text line to the console </s> - diff --git a/funcom_test/46106677.txt b/funcom_test/46106677.txt deleted file mode 100644 index de2b64227bf3ded6d2ca5de6448055b4f01578dd..0000000000000000000000000000000000000000 --- a/funcom_test/46106677.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void draw(int mX, int mY, float mZoom, GLColor mColor) { - if (!dead) { - if ((currentTime = Utils.getTime()) - birthTime > timeToLive) - dead = true; - - font.print(text, mX, mY, mZoom, mColor); - } - } - COM: <s> draws the piece of text on screen </s> - diff --git a/funcom_test/46106714.txt b/funcom_test/46106714.txt deleted file mode 100644 index 0d124d00dc468464611b5ffcf7ddf642c22bff6d..0000000000000000000000000000000000000000 --- a/funcom_test/46106714.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void mouseReleased(int mButton) { - // Return events for this widget - if (listener != null && hasMouseOver()) - listener.mouseReleased(mButton); - - // Cycle the child widget list and send the mouseReleased event - for (int i = 0; i < widgetList.size(); i++) { - Widget widget = (Widget) widgetList.elementAt(i); - widget.mouseReleased(mButton); - } - } - COM: <s> fires the mouse button released event for the widget </s> - diff --git a/funcom_test/46106729.txt b/funcom_test/46106729.txt deleted file mode 100644 index 34471a959c66aae3bc070a2c249efbaaed6991d5..0000000000000000000000000000000000000000 --- a/funcom_test/46106729.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void keyPressed(int mKey, char mChar) { - // TODO: In the future only send key events to currently focused widget - - // Send the key pressed event to the window on top - if (windowList.size() > 0) { - Window window = (Window) windowList.lastElement(); - window.keyPressed(mKey, mChar); - } - } - COM: <s> fires the key pressed event </s> - diff --git a/funcom_test/46106732.txt b/funcom_test/46106732.txt deleted file mode 100644 index 9f8600141b109969b484a401a8b6498c12ca6760..0000000000000000000000000000000000000000 --- a/funcom_test/46106732.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void keyReleased(int mKey) { - // TODO: In the future only send key events to currently focused widget - - // Send the key released event to the window on top - if (windowList.size() > 0) { - Window window = (Window) windowList.lastElement(); - window.keyReleased(mKey); - } - } - COM: <s> fires the key released event </s> - diff --git a/funcom_test/46106736.txt b/funcom_test/46106736.txt deleted file mode 100644 index 7b8a0b2965761ab350fb9b118b9de1f71e1a6f31..0000000000000000000000000000000000000000 --- a/funcom_test/46106736.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void keyReleased(int mKey) { - // Return events for this widget - if (listener != null && hasFocus()) - listener.keyReleased(mKey); - - // Cycle the child widget list and send the keyReleased event - for (int i = 0; i < widgetList.size(); i++) { - Widget widget = (Widget) widgetList.elementAt(i); - - if (widget.hasFocus()) - widget.keyReleased(mKey); - } - } - COM: <s> fires the key released event for the widget </s> - diff --git a/funcom_test/46106743.txt b/funcom_test/46106743.txt deleted file mode 100644 index d812a52750453aadc54c16522ee6ffd8724702fa..0000000000000000000000000000000000000000 --- a/funcom_test/46106743.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setAlpha(float mAlpha) { - if (color == null) - color = new GLColor(1.0f, 1.0f, 1.0f, mAlpha); - else - color = - new GLColor(color.getRed(), color.getGreen(), color - .getBlue(), mAlpha); - } - COM: <s> re defines this windows alpha value </s> - diff --git a/funcom_test/46106746.txt b/funcom_test/46106746.txt deleted file mode 100644 index 790cb31ba0669196c980e137078749e96dc52fe4..0000000000000000000000000000000000000000 --- a/funcom_test/46106746.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void draw(GLColor mColor) { - // Draw only if visible - if (!visible) - return; - - // font.setZoom(zoom); - font.print(text, xPos + parent.getXPos(), yPos + parent.getYPos(), - zoom, color); - - // Cycle the widget list and draw all - } - COM: <s> draws the widget and all sub widgets </s> - diff --git a/funcom_test/46106781.txt b/funcom_test/46106781.txt deleted file mode 100644 index d95edc39fff1765bde1152cf50f8fa45718fd903..0000000000000000000000000000000000000000 --- a/funcom_test/46106781.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setFocus(boolean mFocus) { - focus = mFocus; - - if (focus == false) { - // Cycle the child widget list and lose focus for all - for (int i = 0; i < widgetList.size(); i++) { - Widget widget = (Widget) widgetList.elementAt(i); - widget.setFocus(false); - } - } - } - COM: <s> gives focus to this widget </s> - diff --git a/funcom_test/46106794.txt b/funcom_test/46106794.txt deleted file mode 100644 index fb4d89737b44f9d46fba9688d9b34eb45649a171..0000000000000000000000000000000000000000 --- a/funcom_test/46106794.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void updatePosition() { - if (grabbed && Engine.getInstance().getMouseLeftButtonDown()) { - if (!fixed) { - xPos += Engine.getInstance().getMouseDelta().getX(); - yPos -= Engine.getInstance().getMouseDelta().getY(); - } - } - } - COM: <s> updates the windows position based on the mouse movement delta </s> - diff --git a/funcom_test/46106829.txt b/funcom_test/46106829.txt deleted file mode 100644 index ae6b7d1ad22aa69e59196adaa95f4b71610cf9c5..0000000000000000000000000000000000000000 --- a/funcom_test/46106829.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setToolTip(String mText, GLFont mFont, int mToolTipTimeInterval) { - toolTip = new String(mText); - toolTipFont = mFont; - toolTipTimeInterval = mToolTipTimeInterval; - toolTipCurrentTime = Utils.getTime(); - toolTipLastTime = toolTipCurrentTime; - toolTipPosition = new Dimension(-20, -20); - } - COM: <s> the default re definition of the tooltip </s> - diff --git a/funcom_test/46106919.txt b/funcom_test/46106919.txt deleted file mode 100644 index b06d539d9d76b7598c5bcb5076f17c0f7f77589b..0000000000000000000000000000000000000000 --- a/funcom_test/46106919.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void update() { - currentTime = System.currentTimeMillis(); - if (currentTime - lastTime > updateInterval && running) { - currentFrame++; - lastTime = currentTime; - - if (currentFrame >= frames.size()) { - currentFrame = 0; - if (!isLoop) - running = false; - } - } - } - COM: <s> updates the animated image every update interval ms </s> - diff --git a/funcom_test/46106978.txt b/funcom_test/46106978.txt deleted file mode 100644 index 6ad0b1178032eb8b4e3da9a626b27202e921077a..0000000000000000000000000000000000000000 --- a/funcom_test/46106978.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void draw(int mX, int mY, float mAlpha) { - image.setWidth(width); - image.setHeight(height); - image.draw(mX - hotSpot.getX(), mY - hotSpot.getY(), mAlpha); - - // Draw hotspot - // Engine.drawDot(mX, mY, 5, GLColor.RED); - } - COM: <s> draws the object in a given position </s> - diff --git a/funcom_test/46107012.txt b/funcom_test/46107012.txt deleted file mode 100644 index 2c201a27d4822062bff7bd49425bbf3a91af9d94..0000000000000000000000000000000000000000 --- a/funcom_test/46107012.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void printInfo() { - for (int i = 0; i < frames.size(); i++) { - GLHotSpotFrame frame = (GLHotSpotFrame) frames.elementAt(i); - System.out.println("Frame " + i + ": " + frame.getHotSpot().width - + "," + frame.getHotSpot().height); - } - } - COM: <s> dumps the animation frames information </s> - diff --git a/funcom_test/46107058.txt b/funcom_test/46107058.txt deleted file mode 100644 index e4dab8f8edb82d0f4ec9899010ac546836b19945..0000000000000000000000000000000000000000 --- a/funcom_test/46107058.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void draw(int mX, int mY, float mAlpha) { - // Do the calculations based on the hotspot to - // draw the image in the right position - image.draw(mX - hotspot.width, mY - hotspot.height, mAlpha); - - // Draw hotspot - // Engine.drawDot(mX, mY, 5, GLColor.RED); - } - COM: <s> draws this frame with the hotspot at m x m y </s> - diff --git a/funcom_test/46107106.txt b/funcom_test/46107106.txt deleted file mode 100644 index d8ee4f821e352c239b6169c4e0be3632daed524f..0000000000000000000000000000000000000000 --- a/funcom_test/46107106.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Object clone() { - GLHotSpotAnimation animation = new GLHotSpotAnimation(); - - for (int index = 0; index < frames.size(); index++) { - GLHotSpotFrame frame = (GLHotSpotFrame) frames.elementAt(index); - animation.addFrame((GLHotSpotFrame) frame.clone()); - } - - return animation; - } - COM: <s> clones this animation </s> - diff --git a/funcom_test/46107119.txt b/funcom_test/46107119.txt deleted file mode 100644 index 62dc6472d5eda59dd313026f64ffad076847a5c1..0000000000000000000000000000000000000000 --- a/funcom_test/46107119.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void draw(int mX, int mY, float mAlpha) { - if (currentAnimation > -1 && currentAnimation < animationsList.size()) { - GLHotSpotAnimation animation = - (GLHotSpotAnimation) animationsList - .elementAt(currentAnimation); - animation.draw(mX - offsetX, mY - offsetY, mAlpha); - } - } - COM: <s> draws the current animation </s> - diff --git a/funcom_test/46128169.txt b/funcom_test/46128169.txt deleted file mode 100644 index 8f0ac92ecbba17be5777e24568a02bf73f898ebf..0000000000000000000000000000000000000000 --- a/funcom_test/46128169.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Stack grabPortData(){ - Stack returnStack = new Stack(); - short porttype = this.portType(); //Get the port type - if(porttype == PORT_USB){ - returnStack = this.grabUSBDefaultPortData(); - } - else{ - returnStack = this.grabSerialPortData(); - } - return returnStack; - } - COM: <s> grab the appropriate port data based on if the port is usb or </s> - diff --git a/funcom_test/4627652.txt b/funcom_test/4627652.txt deleted file mode 100644 index 6225450e36ae0664c2dcc9a3c9b3c71f2400891d..0000000000000000000000000000000000000000 --- a/funcom_test/4627652.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public RoleTO readRole(Long id) { - RoleTO roleTO = null; - - try { - roleTO = restTemplate.getForObject( - baseURL + "role/read/{roleId}.json", - RoleTO.class, id); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While reading a role", e); - } - return roleTO; - } - COM: <s> load an already existent role by its name </s> - diff --git a/funcom_test/4627658.txt b/funcom_test/4627658.txt deleted file mode 100644 index e74f7fecf7503ebddd38f687343cacce85532c1a..0000000000000000000000000000000000000000 --- a/funcom_test/4627658.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ResourceTO read(final String name) { - ResourceTO resourceTO = null; - - try { - resourceTO = restTemplate.getForObject( - baseURL + "resource/read/" + name + ".json", - ResourceTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While reading a resource", e); - } - return resourceTO; - } - COM: <s> load an already existent resource by its name </s> - diff --git a/funcom_test/4627667.txt b/funcom_test/4627667.txt deleted file mode 100644 index 75433f7fee9fbd1e7a9c7577199979d22de761eb..0000000000000000000000000000000000000000 --- a/funcom_test/4627667.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void createSchema(String kind, SchemaTO schemaTO) { - try { - restTemplate.postForObject(baseURL - + "schema/" + kind + "/create", schemaTO, SchemaTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While creating a user schema", e); - } - } - COM: <s> create new user schema </s> - diff --git a/funcom_test/4627670.txt b/funcom_test/4627670.txt deleted file mode 100644 index a068da18ee1b2ed9209802c72cf154824856ce22..0000000000000000000000000000000000000000 --- a/funcom_test/4627670.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ConnInstanceTO read(final Long connectorInstanceId) { - ConnInstanceTO connectorTO = null; - - try { - connectorTO = restTemplate.getForObject( - baseURL + "connector/read/" + connectorInstanceId, - ConnInstanceTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While reading a connector", e); - } - - return connectorTO; - } - COM: <s> load an already existent connector by its name </s> - diff --git a/funcom_test/4627673.txt b/funcom_test/4627673.txt deleted file mode 100644 index 50e795d38c08fc2b1f842b7bd02ffba37311ca84..0000000000000000000000000000000000000000 --- a/funcom_test/4627673.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public SchemaTO readSchema(String kind, String name) { - SchemaTO schema = null; - - try { - schema = restTemplate.getForObject( - baseURL - + "schema/" + kind + "/read/" + name + ".json", - SchemaTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While reading a user schema", e); - } - return schema; - } - COM: <s> load an already existent user schema by its name </s> - diff --git a/funcom_test/4627680.txt b/funcom_test/4627680.txt deleted file mode 100644 index ec74d2a73e650e8d84971732950140deda1e2db9..0000000000000000000000000000000000000000 --- a/funcom_test/4627680.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void updateSchema(String kind, SchemaTO schemaTO) { - try { - restTemplate.postForObject(baseURL - + "schema/" + kind + "/update", schemaTO, SchemaTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While updating a user schema", e); - } - } - COM: <s> update an already existent user schema </s> - diff --git a/funcom_test/4627681.txt b/funcom_test/4627681.txt deleted file mode 100644 index 73fefa928cc20de6f2e9bf9df9d4d79404739953..0000000000000000000000000000000000000000 --- a/funcom_test/4627681.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean updateConfiguration(ConfigurationTO configurationTO) { - ConfigurationTO newConfigurationTO = null; - - try { - newConfigurationTO = restTemplate.postForObject(baseURL - + "configuration/update", configurationTO, - ConfigurationTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While updating a configuration", e); - return false; - } - return (configurationTO.equals(newConfigurationTO)) ? true : false; - } - COM: <s> update an existent configuration </s> - diff --git a/funcom_test/4627685.txt b/funcom_test/4627685.txt deleted file mode 100644 index d048a7b5e55a79b3c2893486a57ecd5a2de180bc..0000000000000000000000000000000000000000 --- a/funcom_test/4627685.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void deleteSchema(String kind, String name) { - try { - restTemplate.delete(baseURL - + "schema/" + kind + "/delete/" + name + ".json"); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While deleting a user schema", e); - } - } - COM: <s> delete an already existent user schema by its name </s> - diff --git a/funcom_test/4627690.txt b/funcom_test/4627690.txt deleted file mode 100644 index 3c22eafbc86867066031852aacb9e25d561c16b6..0000000000000000000000000000000000000000 --- a/funcom_test/4627690.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void createDerivedSchema(String kind, DerivedSchemaTO schemaTO) { - try { - restTemplate.postForObject(baseURL - + "derivedSchema/" + kind + "/create", schemaTO, - DerivedSchemaTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While creating a derived user schema", e); - } - } - COM: <s> create new derived user schema </s> - diff --git a/funcom_test/4627703.txt b/funcom_test/4627703.txt deleted file mode 100644 index 9268919669595403a76134e2ae277274cfc90bb2..0000000000000000000000000000000000000000 --- a/funcom_test/4627703.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateDerivedSchema(String kind, DerivedSchemaTO schemaTO) { - try { - restTemplate.postForObject(baseURL - + "derivedSchema/" + kind + "/update", schemaTO, - DerivedSchemaTO.class); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While updating a derived user schema", e); - } - } - COM: <s> update an already existent user derived schema </s> - diff --git a/funcom_test/4627717.txt b/funcom_test/4627717.txt deleted file mode 100644 index cee5f8ed633befb63669c73bb873fa3f7833233b..0000000000000000000000000000000000000000 --- a/funcom_test/4627717.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void deleteDerivedSchema(String kind, String name) { - try { - restTemplate.delete(baseURL - + "derivedSchema/" + kind + "/delete/" + name + ".json"); - } catch (SyncopeClientCompositeErrorException e) { - LOG.error("While deleting a derived user schema", e); - } - } - COM: <s> delete an already existent user derived schema by its name </s> - diff --git a/funcom_test/4628180.txt b/funcom_test/4628180.txt deleted file mode 100644 index 75575020477f3415de57c2a0bedc0c6fc8cd91a5..0000000000000000000000000000000000000000 --- a/funcom_test/4628180.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void generate(Dialect dialect) { - cfg.setProperty("hibernate.dialect", dialect.getDialectClass()); - - SchemaExport export = new SchemaExport(cfg); - export.setFormat(true); - export.setDelimiter(";"); - export.execute(true, false, false, true); - } - COM: <s> method that actually creates the file </s> - diff --git a/funcom_test/46310540.txt b/funcom_test/46310540.txt deleted file mode 100644 index 4e1298a6fd30547f34d789dda64d90ac015afa2e..0000000000000000000000000000000000000000 --- a/funcom_test/46310540.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void readSGIPResponse(InputStream is) throws IOException { - DataInputStream in = new DataInputStream(is); - - int total_Length = in.readInt(); - int command_Id = in.readInt(); - byte buf[] = new byte[total_Length - 8]; - in.readFully(buf); - System.out.println("command id = " + command_Id); - if (command_Id == 0x80000001) - SGIPBindResponseListener(new SGIPBindRepMessage(buf)); - - } - COM: <s> read sgip response message </s> - diff --git a/funcom_test/46319963.txt b/funcom_test/46319963.txt deleted file mode 100644 index dca1da09dbb3f7d8046c296193f3c96d7fa227d7..0000000000000000000000000000000000000000 --- a/funcom_test/46319963.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void startSimulation() { - - CustomerQueue queue = new CustomerQueue(NOF_CHAIRS, this); - doorman = new Doorman(queue, this); - System.out.println("over startthread"); - doorman.startThread(); - System.out.println("under startthread"); - barbers = new Barber[NOF_BARBERS]; - for(int i = 0; i < NOF_BARBERS; i++) { - barbers[i] = new Barber(queue, this, i); - barbers[i].startThread(); - } - System.out.println("startsim"); - } - COM: <s> creates the customer queue the doorman and the barbers </s> - diff --git a/funcom_test/46320067.txt b/funcom_test/46320067.txt deleted file mode 100644 index d214d51323cd624757148cca4aeede0a18bdb175..0000000000000000000000000000000000000000 --- a/funcom_test/46320067.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void endIoOperation() { - statistics.numberOfCompletedIOOperations++; - Process p = io.getActiveProcess(); - p.leftIo(clock); - cpu.addProcess(p); - p.enterCpuQueue(clock); - - if(cpu.isCpuIdle()){ - switchProcess(); - } - p = io.startProcess(); - - if(p != null){ - p.enterIo(clock); - eventQueue.insertEvent(new Event(END_IO, clock + io.getIoTime())); - } - } - COM: <s> processes an event signifying that the process currently doing i o </s> - diff --git a/funcom_test/46334828.txt b/funcom_test/46334828.txt deleted file mode 100644 index e41bc107283152c5130e3ca414a6b9cb60721bdf..0000000000000000000000000000000000000000 --- a/funcom_test/46334828.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: private Concern getConernIdParameter(String concernIdParameter) { - - - long concernId = -1; - - - try { - concernId = Long.parseLong(concernIdParameter); - } catch (NumberFormatException ex) { - ErrorUtil.showInvalidIdError(); - return null; - } - - - - Concern temp = null; - for (Concern con : project.getConcerns()) { - if (con.getId().equals(concernId)) { - temp = con; - break; - } - } - return temp; - } - COM: <s> returns the specific concern with the provided id </s> - diff --git a/funcom_test/46391461.txt b/funcom_test/46391461.txt deleted file mode 100644 index 7046d2ddfc9a9673c633756472995a038c659613..0000000000000000000000000000000000000000 --- a/funcom_test/46391461.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private String readResponse(HttpURLConnection urlConnection) throws IOException { - - BufferedReader bufferedReader = null; - try { - bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); - String responeLine; - - StringBuilder response = new StringBuilder(); - - while ((responeLine = bufferedReader.readLine()) != null) { - response.append(responeLine + "\n"); - } - - return response.toString(); - } finally { - if (bufferedReader != null) { - try { - bufferedReader.close(); - } catch (Throwable ignore) { - } - } - } - } - COM: <s> read response from the url connection </s> - diff --git a/funcom_test/46582681.txt b/funcom_test/46582681.txt deleted file mode 100644 index d4f0e02dec9afa9133b84150fb10289b683e0696..0000000000000000000000000000000000000000 --- a/funcom_test/46582681.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Graphics2D initGraphics2D( final Graphics g ) { - Graphics2D g2; - g2 = ( Graphics2D ) g; - g2.setRenderingHint( RenderingHints.KEY_ANTIALIASING, - RenderingHints.VALUE_ANTIALIAS_ON ); - g2.setRenderingHint( RenderingHints.KEY_RENDERING, - RenderingHints.VALUE_RENDER_QUALITY ); - g2.setColor( this.color ); - return g2; - } - COM: <s> inits the graphics2 d object </s> - diff --git a/funcom_test/46583153.txt b/funcom_test/46583153.txt deleted file mode 100644 index e4dabc0f17cbe4c88b5e0c4b25ae92f6eba20fe4..0000000000000000000000000000000000000000 --- a/funcom_test/46583153.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void testCryptoUtils( final String testString ) { - final String expected = new StringBuffer( testString ).toString() - .trim(); - final String encrypted = SimpleCryptoUtils.encode( testString ); - final String decrypted = SimpleCryptoUtils.decode( encrypted ); - assertTrue( decrypted.equals( expected ) ); - } - COM: <s> test crypto utils </s> - diff --git a/funcom_test/46583293.txt b/funcom_test/46583293.txt deleted file mode 100644 index 1fdc7ddc1159e8233aeb0ac75f4195b21bcc25e7..0000000000000000000000000000000000000000 --- a/funcom_test/46583293.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setId(final Integer id) { - // If we've just been persisted and hashCode has been - // returned then make sure other entities with this - // ID return the already returned hash code - if ( (this.id == null || this.id == 0) && - (id != null) && - (this.hashCode != null) ) { - SAVED_HASHES.put( id, this.hashCode ); - } - this.id = id; - } - COM: <s> set the value related to the column id </s> - diff --git a/funcom_test/46584243.txt b/funcom_test/46584243.txt deleted file mode 100644 index 80cef35aebad6024943261543a81329401b27639..0000000000000000000000000000000000000000 --- a/funcom_test/46584243.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initializeListGetraenkeKarteItem() { - java.awt.List listGetraenkeKarte = orderFramePanel.getListGetraenkeKarte(); - - Vector b = model.getGetkar().getGetraenkeKarte(); - Enumeration e = b.elements(); - - while (e.hasMoreElements()) { - Drink d = (Drink) e.nextElement(); - listGetraenkeKarte.add(d.getName()); - } - } - COM: <s> method create list getraenke karte item </s> - diff --git a/funcom_test/46584245.txt b/funcom_test/46584245.txt deleted file mode 100644 index ca49511befa20d874237e0c96ed7996b3f4eed0a..0000000000000000000000000000000000000000 --- a/funcom_test/46584245.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void initializeChoiceTischeItem() { - Choice choiceTische = orderFramePanel.getChoiceTische(); - - Vector tische = model.getGetkar().getTische(); - Enumeration enumeration = tische.elements(); - - while (enumeration.hasMoreElements()) { - choiceTische.add((String) enumeration.nextElement()); - } - - //choiceTische.select(0); - String selectedItem = choiceTische.getSelectedItem(); - model.setLastChoosenTable( selectedItem ); - - } - COM: <s> method create choice tische item </s> - diff --git a/funcom_test/46584249.txt b/funcom_test/46584249.txt deleted file mode 100644 index 04c23c06550bef9cd52edb872fef3caf1165ab60..0000000000000000000000000000000000000000 --- a/funcom_test/46584249.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void layoutOrderFrame() { - layout = new BorderLayout(); - CardLayout cardLayout = new CardLayout(); - setLayout(layout); - cardPanel.add( orderFramePanel, MAIN_PANEL); - cardPanel.add(exceptionPanel, EXCEPTION_PANEL); - setCenterPanel(cardPanel); - } - COM: <s> layout the order frame object </s> - diff --git a/funcom_test/46584370.txt b/funcom_test/46584370.txt deleted file mode 100644 index 54cae4b9b55c7263f0b87c8d1fa3917be07e72ea..0000000000000000000000000000000000000000 --- a/funcom_test/46584370.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void createButtons() { - eventHandler = new SelectOrderEventHandler(this); - buttonSendedOrder = new Button(Constante.BUTTON_SENDED); - buttonSendedOrder.addActionListener(eventHandler); - buttonNewOrder = new Button(Constante.BUTTON_NEW); - buttonNewOrder.addActionListener(eventHandler); - buttonCancel = new Button(Constante.BUTTON_CANCEL); - buttonCancel.addActionListener(eventHandler); - } - COM: <s> method create buttons </s> - diff --git a/funcom_test/46584434.txt b/funcom_test/46584434.txt deleted file mode 100644 index 8205426d647025a877da4052742075727590f5aa..0000000000000000000000000000000000000000 --- a/funcom_test/46584434.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void initializeComponents() { - String stacktrace = getStackTrace( throwable ); - textArea = new TextArea(stacktrace, 10, 28); - Font f = new Font("Courier New", Font.BOLD, 12); - textArea.setFont(f); - okButton = new Button( "OK" ); - okAction = new ExceptionOkAction(); - } - COM: <s> initialize the components </s> - diff --git a/funcom_test/46584438.txt b/funcom_test/46584438.txt deleted file mode 100644 index 8835da944fcca463b1901ff78d89d7a0b035f4ca..0000000000000000000000000000000000000000 --- a/funcom_test/46584438.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initializelayout() { - BorderLayout borderLayout = new BorderLayout(); - this.setLayout( borderLayout ); - // Panel for the ok-Button. - Panel panel = new Panel(); - FlowLayout flowLayout = new FlowLayout(FlowLayout.CENTER); - panel.setLayout(flowLayout); - panel.add(okButton); - this.add("Center", textArea ); - this.add("South", panel ); - } - COM: <s> initialize the layout from the panel </s> - diff --git a/funcom_test/46584616.txt b/funcom_test/46584616.txt deleted file mode 100644 index 9c68380c145e6834155cd19d43f8c8f05cb99245..0000000000000000000000000000000000000000 --- a/funcom_test/46584616.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getFullJavaType(){ - String result=this.javaType; - if (this.manyToOne){ - result=this.manyToOneLink.getClazz().getFullClassName(); - } else { - if (this.oneToMany){ - result=this.OneToManyLink.getClazz().getFullClassName(); - } - } - return result; - - } - COM: <s> returns the full java type eg com </s> - diff --git a/funcom_test/46584650.txt b/funcom_test/46584650.txt deleted file mode 100644 index 431219ea82e59dc333ec437476a4afca3a6ede83..0000000000000000000000000000000000000000 --- a/funcom_test/46584650.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private String maybeExpandFactory(PropertyObj property) { - String result=""; - if (!property.getManyToOneLink().getClazz().getClassPackage().equalsIgnoreCase(property.getClazz().getClassPackage())){ - result=property.getManyToOneLink().getClazz().getDataPoolFactory()+"."; - } - return result; - } - COM: <s> expand the data factory in case of a name clash </s> - diff --git a/funcom_test/46586737.txt b/funcom_test/46586737.txt deleted file mode 100644 index f4f8e02a49ceaad0188a9154c81094abd5ecca97..0000000000000000000000000000000000000000 --- a/funcom_test/46586737.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public BillTableModel getTableModel() { - if(null == tableModel){ - tableModel = new BillTableModel(); - Object [][] data = {{"1","2","Pepsi","5,30"},{"2","1","Whiskey","6,50"}}; - tableModel.setData( data ); - } - return tableModel; - } - COM: <s> returns the field code table model code </s> - diff --git a/funcom_test/46586743.txt b/funcom_test/46586743.txt deleted file mode 100644 index 2c6c34badd81e2464145382293a677b486266f3c..0000000000000000000000000000000000000000 --- a/funcom_test/46586743.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public JScrollPane getEditorScrollPane() { - if(null == editorScrollPane){ - editorScrollPane = new JScrollPane(getJTxtaCurrentTable()); - editorScrollPane.setVerticalScrollBarPolicy( - JScrollPane.VERTICAL_SCROLLBAR_NEVER); - editorScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ); - } - return editorScrollPane; - } - COM: <s> returns the field code editor scroll pane code </s> - diff --git a/funcom_test/46586748.txt b/funcom_test/46586748.txt deleted file mode 100644 index 2bfb50781d86db0e6da3b978ad813fb065aff525..0000000000000000000000000000000000000000 --- a/funcom_test/46586748.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public JButton getProductButton1() { - if ( productButton1 == null ) { - productButton1 = new JButton(); - productButton1.setText( "Pepsi Cola" ); - productButton1.setToolTipText( "Pepsi Cola" ); - productButton1.setBorderPainted( true ); - ImageIcon icon = new ImageIcon("icons/pepsibuttonsmall.gif"); - productButton1.setIcon( icon ); - } - return productButton1; - } - COM: <s> this method initializes the field code product button1 code if it is </s> - diff --git a/funcom_test/46586807.txt b/funcom_test/46586807.txt deleted file mode 100644 index c537335cc638a4be8728b64e2efcc8d71fdd830b..0000000000000000000000000000000000000000 --- a/funcom_test/46586807.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String getLocalIPAddress() { - InetAddress inet; - String localHostIPaddress = null; - try { - inet = InetAddress.getLocalHost(); - localHostIPaddress = inet.getHostAddress(); - } catch (UnknownHostException e) { - e.printStackTrace(); - } - return localHostIPaddress; - } - COM: <s> method get local ipaddress </s> - diff --git a/funcom_test/4660345.txt b/funcom_test/4660345.txt deleted file mode 100644 index fc9d69c039f36f50088e910b8365e4dea250ce22..0000000000000000000000000000000000000000 --- a/funcom_test/4660345.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setup() { - size(Preferences.WIDTH_IN_PIXELS, Preferences.HEIGHT_IN_PIXELS, OPENGL); //we can go with JAVA2D if we don't like OPENGL - //smooth(); - hint( ENABLE_OPENGL_4X_SMOOTH ); - frameRate(Preferences.TARGET_FPS); - colorMode(RGB, 255); - textFont(loadFont("AmericanTypewriter-24.vlw")); - - System.out.println("All set up!"); - } - COM: <s> if you havent worked with processing this is called at setup </s> - diff --git a/funcom_test/4661305.txt b/funcom_test/4661305.txt deleted file mode 100644 index 250f224f028884678691b00f645f70bca17122ae..0000000000000000000000000000000000000000 --- a/funcom_test/4661305.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void dispose() { - thread = null; - try { - // do io streams need to be closed first? - if (input != null) input.close(); - if (output != null) output.close(); - - } catch (Exception e) { - e.printStackTrace(); - } - input = null; - output = null; - - try { - if (socket != null) socket.close(); - - } catch (Exception e) { - e.printStackTrace(); - } - socket = null; - } - COM: <s> disconnect from the server internal use only </s> - diff --git a/funcom_test/4661347.txt b/funcom_test/4661347.txt deleted file mode 100644 index be6c099158d841a6670d8947156a539c1326d56d..0000000000000000000000000000000000000000 --- a/funcom_test/4661347.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Client available() { - synchronized (clients) { - int index = lastAvailable + 1; - if (index >= clientCount) index = 0; - - for (int i = 0; i < clientCount; i++) { - int which = (index + i) % clientCount; - Client client = clients[which]; - if (client.available() > 0) { - lastAvailable = which; - return client; - } - } - } - return null; - } - COM: <s> returns the next client in line that has something to say </s> - diff --git a/funcom_test/4661390.txt b/funcom_test/4661390.txt deleted file mode 100644 index f4f822509aa2b4cdc99f9e7cd56e2ad3afdc0420..0000000000000000000000000000000000000000 --- a/funcom_test/4661390.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void detainContext() { - try { - while (context.makeCurrent() == GLContext.CONTEXT_NOT_CURRENT) { -// System.out.println("Context not yet current..."); -// new Exception().printStackTrace(System.out); -// Thread.sleep(1000); - Thread.sleep(10); - } - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - COM: <s> make the open gl rendering context current for this thread </s> - diff --git a/funcom_test/4662985.txt b/funcom_test/4662985.txt deleted file mode 100644 index 9a23f760a911075a9db51f4fdb7354f85e65b882..0000000000000000000000000000000000000000 --- a/funcom_test/4662985.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void report(String where) { - if (!hints[DISABLE_OPENGL_ERROR_REPORT]) { - int err = gl.glGetError(); - if (err != 0) { - String errString = glu.gluErrorString(err); - String msg = "OpenGL error " + err + " at " + where + ": " + errString; - PGraphics.showWarning(msg); - } - } - } - COM: <s> report on anything from gl error </s> - diff --git a/funcom_test/46700356.txt b/funcom_test/46700356.txt deleted file mode 100644 index cd5e57d4409dbfde5a2e51a300f8e1ecbc79b2cb..0000000000000000000000000000000000000000 --- a/funcom_test/46700356.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected Logger getLoggingMechanism() { - if (m_logger.isDebugEnabled()) { - m_logger.debug("getLoggingMechanism() - start"); - } - - /* Retrieve the Logger of this DefaultBlock. */ - Logger returnLogger = (m_logger); - if (m_logger.isDebugEnabled()) { - m_logger.debug("getLoggingMechanism() - end - return value=" + returnLogger); - } - return returnLogger; - } - COM: <s> provides access to the logging mechanism of this default block </s> - diff --git a/funcom_test/46700359.txt b/funcom_test/46700359.txt deleted file mode 100644 index d5cc602c98e4160378dbc0909925d6116eb6fa00..0000000000000000000000000000000000000000 --- a/funcom_test/46700359.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String getEmptyString() { - if (m_logger.isDebugEnabled()) { - m_logger.debug("getEmptyString() - start"); - } - - /* Retrieve this DefaultBlock's definition of an empty string. */ - String returnString = (strEmpty); - if (m_logger.isDebugEnabled()) { - m_logger.debug("getEmptyString() - end - return value=" + returnString); - } - return returnString; - } - COM: <s> provides access to default blocks definition of an empty string </s> - diff --git a/funcom_test/46700371.txt b/funcom_test/46700371.txt deleted file mode 100644 index dee0cd25aab6e9511320f4ccfb13a5e0f43432d7..0000000000000000000000000000000000000000 --- a/funcom_test/46700371.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getName() { - if (m_logger.isDebugEnabled()) { - m_logger.debug("getName() - start"); - } - - /* Retrieve this DefaultBlock's name. */ - String returnString = (strName); - if (m_logger.isDebugEnabled()) { - m_logger.debug("getName() - end - return value=" + returnString); - } - return returnString; - } - COM: <s> provides access to the name of a default block </s> - diff --git a/funcom_test/46700377.txt b/funcom_test/46700377.txt deleted file mode 100644 index b15db0b6e9d69dcdb61ac96dd38e11b094b464e5..0000000000000000000000000000000000000000 --- a/funcom_test/46700377.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getQualification() { - if (m_logger.isDebugEnabled()) { - m_logger.debug("getQualification() - start"); - } - - String returnString = (strQualification); - if (m_logger.isDebugEnabled()) { - m_logger.debug("getQualification() - end - return value=" + returnString); - } - return returnString; - } - COM: <s> retreives the qualification of the block </s> - diff --git a/funcom_test/46707372.txt b/funcom_test/46707372.txt deleted file mode 100644 index 0c529b8b79f17aadda71a468080f78a00b836d56..0000000000000000000000000000000000000000 --- a/funcom_test/46707372.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public SafeContents getSafeContents(int i) throws IOException, ASN1Exception { - byte[] encodedData; - ByteArrayInputStream bais; - ContentInfo cinfo = (ContentInfo) this.get(i); - if (cinfo.getContent() instanceof Data) - encodedData = ((Data) cinfo.getContent()).getByteArray(); - else { - System.out.println("This bag is either password or public-key protected."); - return null; - } - bais = new ByteArrayInputStream(encodedData); - SafeContents safe = new SafeContents(); - BERDecoder decoder = new BERDecoder(bais); - safe.decode(decoder); - bais.close(); - return safe; -} - COM: <s> returns the contents of the safe bag in the authenticated safe </s> - diff --git a/funcom_test/46707415.txt b/funcom_test/46707415.txt deleted file mode 100644 index 63db161968a164a7dcebc974d1c3508d6e19dc17..0000000000000000000000000000000000000000 --- a/funcom_test/46707415.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setDirectoryName(Name dirname) { - dirN_ = (Name)dirname.clone(); - dirN_.setExplicit(true); // this was set to false before, but didn't work within an AuthorityKeyExtension - directoryName_.setInnerType(dirN_); - setInnerType(directoryName_); -} - COM: <s> set the general name as a directory name </s> - diff --git a/funcom_test/46707428.txt b/funcom_test/46707428.txt deleted file mode 100644 index f87f651036dcd5c22c8f6716d4629fa3d1cf4dd3..0000000000000000000000000000000000000000 --- a/funcom_test/46707428.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ASN1SequenceOf getDistributionPointNames() { - if (distributionPointName.getTag() == 0) { - ASN1TaggedType innerNames= ((ASN1TaggedType)distributionPointName.getInnerType()); - ASN1SequenceOf innerNames1 = ((ASN1SequenceOf)innerNames.getInnerType()); - return innerNames1; - } - else // RelativeDistinguishedName not implemented yet! - return null; - } - COM: <s> returns the asn1 sequence of that contains the general names with the </s> - diff --git a/funcom_test/46707537.txt b/funcom_test/46707537.txt deleted file mode 100644 index d68e592783a54ee90c735f4c8bf8ff04774a08a5..0000000000000000000000000000000000000000 --- a/funcom_test/46707537.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setValue(ASN1Type nval) throws java.security.cert.CertificateEncodingException { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - - try { - nval.encode(new DEREncoder(baos)); - extnValue.setByteArray(baos.toByteArray()); - } - catch (Exception e) { - throw new java.security.cert.CertificateEncodingException(e.getMessage()); - } - - } - COM: <s> set this extensions value </s> - diff --git a/funcom_test/46707786.txt b/funcom_test/46707786.txt deleted file mode 100644 index cbd3031ed370bd5715c010a8d284b1d4b8296dfb..0000000000000000000000000000000000000000 --- a/funcom_test/46707786.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setNextUpdate(Calendar time) { - - ASN1Time akt_time = (ASN1Time) nextUpdate.getInnerType(); - if (akt_time == null) { - akt_time = new ASN1UTCTime(time); - nextUpdate.setInnerType(akt_time); - } - akt_time.setDate(time); - nextUpdate.setOptional(false); -} - COM: <s> sets the date of the next update </s> - diff --git a/funcom_test/46708767.txt b/funcom_test/46708767.txt deleted file mode 100644 index 87ae1eb4095a8c77179fda996b69c46c940d263b..0000000000000000000000000000000000000000 --- a/funcom_test/46708767.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void doTimeOut(Timer t) { - Behaviour b = pendingTimers.getPeer(t); - if(b != null) { - b.restart(); - } - //#MIDP_EXCLUDE_BEGIN - else { - System.out.println("Warning: No mapping found for expired timer "+t.expirationTime()); - } - //#MIDP_EXCLUDE_END - } - COM: <s> restarts the behaviour associated with t </s> - diff --git a/funcom_test/46708800.txt b/funcom_test/46708800.txt deleted file mode 100644 index 2f9fbf66f8ceef40aed79ed7d88d8fbd8abceed8..0000000000000000000000000000000000000000 --- a/funcom_test/46708800.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void notifyRestarted(Behaviour b) { - Timer t = pendingTimers.getPeer(b); - if(t != null) { - pendingTimers.removeMapping(b); - } - - // Did this restart() cause the root behaviour to become runnable ? - // If so, put the root behaviour back into the ready queue. - Behaviour root = b.root(); - if(root.isRunnable()) - { - myScheduler.restart(root); - } - } - COM: <s> notifies this agent that one of its behaviours has been restarted </s> - diff --git a/funcom_test/46708875.txt b/funcom_test/46708875.txt deleted file mode 100644 index 9495b743bbb92c1f2aebd81ece4f655a2b4aa5be..0000000000000000000000000000000000000000 --- a/funcom_test/46708875.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int write(byte[] b, int off) { - int nBytes = super.write(b, off); - nBytes += writeLEInt(b, off + nBytes, SHAPE_TYPE_POINT); - nBytes += writeLEDouble(b, off + nBytes, x); - nBytes += writeLEDouble(b, off + nBytes, y); - return nBytes; - } - COM: <s> writes this point to the given buffer at the given offset </s> - diff --git a/funcom_test/46709377.txt b/funcom_test/46709377.txt deleted file mode 100644 index 11252329252ba8987fafb0a10ec8c74181a3efd1..0000000000000000000000000000000000000000 --- a/funcom_test/46709377.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void doActivate() { - synchronized(stateLock) { - if(myAPState == AP_SUSPENDED) { - changeStateTo(myBufferedState); - } - } - if(myAPState != AP_SUSPENDED) { - switch(myBufferedState) { - case AP_ACTIVE: - activateAllBehaviours(); - synchronized(suspendLock) { - myBufferedState = AP_MIN; - suspendLock.notifyAll(); - } - break; - case AP_WAITING: - doWake(); - break; - } - } - } - COM: <s> make a state transition from em suspended em to </s> - diff --git a/funcom_test/46709449.txt b/funcom_test/46709449.txt deleted file mode 100644 index 5bcc73a808bc61ee895aca451c950d9b33abfe8c..0000000000000000000000000000000000000000 --- a/funcom_test/46709449.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void doWake() { - synchronized(stateLock) { - if((myAPState == AP_WAITING) || (myAPState == AP_IDLE)) { - changeStateTo(AP_ACTIVE); - } - } - if(myAPState == AP_ACTIVE) { - activateAllBehaviours(); - synchronized(msgQueue) { - msgQueue.notifyAll(); // Wakes up the embedded thread - } - } - } - COM: <s> make a state transition from em waiting em to em active em </s> - diff --git a/funcom_test/46714175.txt b/funcom_test/46714175.txt deleted file mode 100644 index a7847d2ffb47266b8acd79c91b3ae64c812458e8..0000000000000000000000000000000000000000 --- a/funcom_test/46714175.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void doStart(String name) { - - // FIXME: Temporary hack for JSP example - if(myToolkit == null) { - Runtime rt = Runtime.instance(); - setToolkit(rt.getDefaultToolkit()); - theDispatcher = rt.getTimerDispatcher(); - } - - if(myToolkit == null) - throw new InternalError("Trying to start an agent without proper runtime support."); - myToolkit.handleStart(name, this); - } - COM: <s> make a state transition from em initiated em to </s> - diff --git a/funcom_test/4673807.txt b/funcom_test/4673807.txt deleted file mode 100644 index 2a007f076d54ccbd4e02069274b5884db3220ec6..0000000000000000000000000000000000000000 --- a/funcom_test/4673807.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void firePathChanged(TreePath path) { - Object node = path.getLastPathComponent(); - TreePath parentPath = path.getParentPath(); - - if (parentPath == null) - fireChildrenChanged(path, null, null); - else { - Object parent = parentPath.getLastPathComponent(); - - fireChildChanged(parentPath, getIndexOfChild(parent, node), node); - } - } - COM: <s> call when the path itself has changed but no structure changes </s> - diff --git a/funcom_test/46794139.txt b/funcom_test/46794139.txt deleted file mode 100644 index b6c024e76fa54acb76cfdb0de6b91433fcbdf7c0..0000000000000000000000000000000000000000 --- a/funcom_test/46794139.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String getSrcDir(){ - Node node = getNodebyTag(NODENAMEPROPERTY,ATTRNAMENAME,TAGSRC); - String result = EMPTYSTRING; - if (node != null){ - NamedNodeMap attributes = node.getAttributes(); - for (int i = 0; i < attributes.getLength(); i++) { // Loop through Attributes - Node a = attributes.item(i); - if (ATTRNAMEVALUE.equals( a.getNodeName() )) { - result = a.getNodeValue(); - } - } - } - return result; - } - COM: <s> nant wants value instead of property </s> - diff --git a/funcom_test/46794380.txt b/funcom_test/46794380.txt deleted file mode 100644 index 700521189fe92b3a38165f6c54327fc7b46c5b80..0000000000000000000000000000000000000000 --- a/funcom_test/46794380.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected IDotNetElement searchForNamespaceName(String classname) { - IDotNetElement[] allRoots = getAllRelevantRoots(); - IDotNetElement result = null; - for (int i = 0; (i < allRoots.length && result == null); i++) { - result = recSearchForTypeByName(allRoots[i], classname, - IDotNetElement.NAMESPACE); - } - return result; - } - COM: <s> this code searches for a namespace with the given name in </s> - diff --git a/funcom_test/46794581.txt b/funcom_test/46794581.txt deleted file mode 100644 index 36e8993b6a5bd71a93afb2f10a8cb2747bcb3af4..0000000000000000000000000000000000000000 --- a/funcom_test/46794581.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private boolean sessionExists(String wordToComplete, int documentOffset, int previousDocumentOffset){ - return ((wordToComplete.endsWith(".") || - (wordToComplete.length() >= MIN_SIZE)) && - ((documentOffset + 1 == previousDocumentOffset) || - (documentOffset - 1 == previousDocumentOffset))); - } - COM: <s> check if session exists </s> - diff --git a/funcom_test/46794916.txt b/funcom_test/46794916.txt deleted file mode 100644 index f3fe709c0d97b7c43210bd69b82b6577c696beb7..0000000000000000000000000000000000000000 --- a/funcom_test/46794916.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void doSave(IProgressMonitor monitor) { -// symbolEditorPage.updateManipulator(); -// if (buildMani.isDocumentSyncronisator()){ -// IDocument content = buildMani.getAsDocument(); -// this.textEditorPage.getDocumentProvider().getDocument(textEditorPage).set(content.get()); -// } - textEditorPage.doSave(monitor); - setInput(textEditorPage.getEditorInput()); - } - COM: <s> saves the multi page editors document </s> - diff --git a/funcom_test/46794919.txt b/funcom_test/46794919.txt deleted file mode 100644 index fbb358a8157b4ce57622483162b4747019a9bea4..0000000000000000000000000000000000000000 --- a/funcom_test/46794919.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void doSaveAs() { - //IEditorPart editor = getEditor(0); - - // Sync with page 0 -// symbolEditorPage.updateManipulator(); -// if (buildMani.isDocumentSyncronisator()){ -// IDocument content = buildMani.getAsDocument(); -// this.textEditorPage.getDocumentProvider().getDocument(textEditorPage).set(content.get()); -// } - textEditorPage.doSaveAs(); - setPageText(1, textEditorPage.getTitle()); - setInput(textEditorPage.getEditorInput()); - } - COM: <s> saves the multi page editors document as another file </s> - diff --git a/funcom_test/46794962.txt b/funcom_test/46794962.txt deleted file mode 100644 index 532a8aaa4d88155153022207133efee80b333640..0000000000000000000000000000000000000000 --- a/funcom_test/46794962.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void write(){ - StringBuffer buffer = new StringBuffer(); - synchronized (buffer) { - loopWrite(document, 0, buffer); - } - ByteArrayInputStream st = new ByteArrayInputStream(buffer.toString().getBytes()); - try { - file.setContents(st, true, false, new NullProgressMonitor()); - //System.out.println("XML to be written:: " + s); - } catch (CoreException e) { - e.printStackTrace(); - } - } - COM: <s> write the document </s> - diff --git a/funcom_test/46795013.txt b/funcom_test/46795013.txt deleted file mode 100644 index a599f86bb2bdfd0586441e8d13563dbc72abfb6b..0000000000000000000000000000000000000000 --- a/funcom_test/46795013.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void runTask(Object info) { - if (root == null) { - root = (CodeElement) info; - // If we open very fresh, we might not have a root - if (root != null) { - TreeViewer viewer = getTreeViewer(); - if (viewer != null) { - viewer.setInput(root); - viewer.setComparator(new OutlineViewerComparator()); - IElementComparer comparer = new CodeElementComparer(); - viewer.setComparer(comparer); - viewer.expandAll(); - } - } - } else { - //mani.adaptRoot(callingRoot); - root = (CodeElement) info; - update(root); - } - } - COM: <s> method is scheduled periodically to update the tree viewer and hence </s> - diff --git a/funcom_test/46795034.txt b/funcom_test/46795034.txt deleted file mode 100644 index 1ce2a19966d6bc55c0323943c3d6a238738993b4..0000000000000000000000000000000000000000 --- a/funcom_test/46795034.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String findTargetNodeName(Node targetNode) { - NamedNodeMap attributes = targetNode.getAttributes(); - for (int i = 0; i < attributes.getLength(); i++) { // Loop through - // Attributes - Node a = attributes.item(i); - // System.out.println(a.getNodeName()+ " " + a.getNodeValue()); - if (ATTRNAMENAME.equals(a.getNodeName())) { - return a.getNodeValue(); - } - } - return EMPTYSTRING; - } - COM: <s> find the name of a target </s> - diff --git a/funcom_test/46795206.txt b/funcom_test/46795206.txt deleted file mode 100644 index a524b817cc550146f6feb9d7ad89e8e4d23682c9..0000000000000000000000000000000000000000 --- a/funcom_test/46795206.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String getPropertyMetadata(IProperty property) { - StringBuffer retstr = new StringBuffer(); - retstr.append(" "+MetadataElements.IDotNetElement); - retstr.append(property.getElementType()); - retstr.append(" "+MetadataElements.Flags); - retstr.append(property.getFlags()); - retstr.append(" "+MetadataElements.Signature); - retstr.append(property.getSignature()); - retstr.append(" "+MetadataElements.Return); - retstr.append(property.getReturnType()); - return retstr.toString(); - } - COM: <s> returns some of the metadata of the property in a well formed string </s> - diff --git a/funcom_test/46795214.txt b/funcom_test/46795214.txt deleted file mode 100644 index 06c9eabbd89dd704e52e6c2ca57e1ba2a4d3df95..0000000000000000000000000000000000000000 --- a/funcom_test/46795214.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String getFieldMetadata(IField field) { - StringBuffer retstr = new StringBuffer(); - retstr.append(" "+MetadataElements.IDotNetElement); - retstr.append(field.getElementType()); - retstr.append(" "+MetadataElements.Flags); - retstr.append(field.getFlags()); - retstr.append(" " +MetadataElements.Type); - retstr.append(field.getTypeSignature()); - return retstr.toString(); - } - COM: <s> returns some of the metadata of the method in a well formed string </s> - diff --git a/funcom_test/46795242.txt b/funcom_test/46795242.txt deleted file mode 100644 index 610a64fba0a38bc35f1c93ddd5e3ecd8fe1dcb51..0000000000000000000000000000000000000000 --- a/funcom_test/46795242.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected String getTypeMetadata(IType type) { - StringBuffer retstr = new StringBuffer(); - retstr.append(" "+MetadataElements.IDotNetElement); - retstr.append(type.getElementType()); - retstr.append(" "+MetadataElements.Flags); - retstr.append(type.getFlags()); - retstr.append(" "+MetadataElements.Superclass); - retstr.append(type.getSuperclassName()); - retstr.append(" " + MetadataElements.Type); - retstr.append(type.getElementName()); - return retstr.toString(); - } - COM: <s> returns some of the metadata of the type in a well formed string </s> - diff --git a/funcom_test/46795252.txt b/funcom_test/46795252.txt deleted file mode 100644 index 687654800067f4c367d7ce4fbe116af26378e71e..0000000000000000000000000000000000000000 --- a/funcom_test/46795252.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void getDirOfDir(File dir, HashSet setToAdd) { - if (dir.isDirectory()) { - String[] children = dir.list(); - for (int i = 0; i < children.length; i++) { - getDirOfDir(new File(dir, children[i]), setToAdd); - setToAdd.add(dir.getAbsolutePath().toString()); - } - } - } - COM: <s> get recursively all directories of the given folder </s> - diff --git a/funcom_test/46795286.txt b/funcom_test/46795286.txt deleted file mode 100644 index 3888c6d578f1dfc7fe1268d0d95a8ea20716cce4..0000000000000000000000000000000000000000 --- a/funcom_test/46795286.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private int calculateDotLevel(String toCalc) { - int level = 0; - char ch; - for ( int i = 0; i < toCalc.length(); i++ ) { - ch = toCalc.charAt(i); // Get the i-th character in str. - if ( ch == '.'){ - level++; - } - } - - return level; - } - COM: <s> get number of dots of existing strings </s> - diff --git a/funcom_test/46795322.txt b/funcom_test/46795322.txt deleted file mode 100644 index 9c153226b92f199abe94612b38fb7fc36df3e6de..0000000000000000000000000000000000000000 --- a/funcom_test/46795322.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String parseForType(String metadata) { - String retStr = ""; - String[] splittedString = metadata.split(" "); - for(int i=0; i<splittedString.length; i++){ - if(splittedString[i].startsWith(MetadataElements.Type)){ - retStr = splittedString[i].substring(splittedString[i].lastIndexOf(":")+1, - splittedString[i].length()); - - } - } - - return retStr; - } - COM: <s> parse for the return string </s> - diff --git a/funcom_test/46795339.txt b/funcom_test/46795339.txt deleted file mode 100644 index 0041ae86b0310e32e2f1431bd999d3836e7b38e8..0000000000000000000000000000000000000000 --- a/funcom_test/46795339.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private String fitToDotLevel(String stringToFit, int levelOfDot) { - - int dotIndex = 0; - int plusDot = 0; - String sub = stringToFit; - for(int i=0; i<levelOfDot; i++){ - dotIndex = stringToFit.indexOf("."); - if(dotIndex > 0){ - sub = sub.substring(dotIndex,sub.length()); - plusDot = 1; - } - else{ - dotIndex = 0; - break; - } - } - - return stringToFit.substring(dotIndex+plusDot, stringToFit.length()); - } - COM: <s> fit string to dot level allowed </s> - diff --git a/funcom_test/46795357.txt b/funcom_test/46795357.txt deleted file mode 100644 index 9ac02ac4c291dd3700c1bd6df895f6ce6286ef31..0000000000000000000000000000000000000000 --- a/funcom_test/46795357.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private StringBuffer buildDisplayString() { - StringBuffer displayString = new StringBuffer(); - displayString.append(elementString); - if(!signature.equals("")){ - displayString.append(signature); - } - if(!returnStrOfMethod.equals("")){ - displayString.append(" : "); - displayString.append(returnStrOfMethod); - }else if(!typeString.equals("")){ - displayString.append(" : "); - displayString.append(typeString); - } - - //displayString.append(" - "); - //displayString has to contain valid output - return displayString; - } - COM: <s> append string elements to build a display string </s> - diff --git a/funcom_test/46795360.txt b/funcom_test/46795360.txt deleted file mode 100644 index f50837564d5dadb7441bc30b99085f1a1020e7eb..0000000000000000000000000000000000000000 --- a/funcom_test/46795360.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void putToGACMap(String key, ITrie itrie) { - //compress trie with LZFOutputStream - CompressionTool comp = new CompressionTool(); - ByteArrayOutputStream compressedITrie = comp.compressObject(itrie); - if(compressedITrie == null){ - System.out.println("ERROR: project ITrie not compressable. " + key); - return; - } - this.gacMap.put(key, compressedITrie); //itrie); - - } - COM: <s> add element to gac map </s> - diff --git a/funcom_test/46795376.txt b/funcom_test/46795376.txt deleted file mode 100644 index 7f5c48ee3d373a2281f4c3681dd45268aa0832f6..0000000000000000000000000000000000000000 --- a/funcom_test/46795376.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: /*private Object getObject(byte[] bytes){ - Object object = null; - - ByteArrayInputStream bais = new ByteArrayInputStream(bytes); - try { - ObjectInputStream ois = new ObjectInputStream(bais); - object = ois.readObject(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (ClassNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - return object; - }*/ - COM: <s> byte array to object </s> - diff --git a/funcom_test/46795393.txt b/funcom_test/46795393.txt deleted file mode 100644 index 2731f14eb177e279f7113fd398b46ba713306c42..0000000000000000000000000000000000000000 --- a/funcom_test/46795393.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void putToTLMap(IProject project, String key, Boolean value) { - String projectName = null; - if(project != null) - projectName = project.getLocation().toPortableString(); - - if(projectName == null || projectName.equals("")){ - this.gactypeLoadedMap.put(key, value); - }else{ - //put key/value to according hash map - ((HashMap)this.projecttypeLoadedMap.get(projectName)).put(key, value); - } - - } - COM: <s> add element to type loaded map </s> - diff --git a/funcom_test/46795450.txt b/funcom_test/46795450.txt deleted file mode 100644 index e5e8e6e59d6a36374687726bcbc2a16e0b09ea89..0000000000000000000000000000000000000000 --- a/funcom_test/46795450.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected LinkedList getVariablesOfDocOffsetMethod(){ - LinkedList returnList = new LinkedList(); - HashMap emptyStringAdditionalMap = new HashMap(); - HashMap esl = this.cpc.getVariablesOfMethod(); - emptyStringAdditionalMap.put("EmptyStringVariables", CCAdministration.getInstance(). - buildTrieForExternalList(esl)); - returnList.addAll(searchInTries(wordToComplete, emptyStringAdditionalMap, false)); - return returnList; - } - COM: <s> get the method variables of the current cursor position object </s> - diff --git a/funcom_test/46795453.txt b/funcom_test/46795453.txt deleted file mode 100644 index 6c950466847d85d62279e7a301fb6ccde83c8e58..0000000000000000000000000000000000000000 --- a/funcom_test/46795453.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected LinkedList getSignatureParamsOfDocOffsetMethod(){ - LinkedList returnList = new LinkedList(); - HashMap emptyStringAdditionalMap = new HashMap(); - HashMap esl = this.cpc.getMethodSignatureElements(); - emptyStringAdditionalMap.put("EmptyStringMethods", CCAdministration.getInstance(). - buildTrieForExternalList(esl)); - returnList.addAll(searchInTries(wordToComplete, emptyStringAdditionalMap, false)); - return returnList; - } - COM: <s> get the signature parameters of the current cursor position object </s> - diff --git a/funcom_test/46795458.txt b/funcom_test/46795458.txt deleted file mode 100644 index 5af3cdad502480fe63c7e3642ad05df43f63525a..0000000000000000000000000000000000000000 --- a/funcom_test/46795458.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private TrieEntry getNearestEntryForKey(String key, int keyLength) { - TrieEntry current = root.left; - TrieEntry path = root; - while(true) { - if(current.bitIndex <= path.bitIndex) - return current; - - path = current; - if(!isBitSet(key, keyLength, current.bitIndex)) - current = current.left; - else - current = current.right; - } - } - COM: <s> returns the nearest entry for a given key </s> - diff --git a/funcom_test/46795504.txt b/funcom_test/46795504.txt deleted file mode 100644 index 8af60a4d19b5e3ea2856ea7b0545078948954bfe..0000000000000000000000000000000000000000 --- a/funcom_test/46795504.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void selectionChanged(IAction action, ISelection selection) { - if (selection instanceof IStructuredSelection) { - Object element = ((IStructuredSelection) selection).getFirstElement(); - if (element instanceof IFile) { - editorfile = (IFile) element; - } else if (element instanceof IAdaptable) { - editorfile = (IFile) ((IAdaptable) element).getAdapter(IFile.class); - } - } - - action.setEnabled(editorfile != null); - } - COM: <s> selection in the workbench has been changed </s> - diff --git a/funcom_test/46795659.txt b/funcom_test/46795659.txt deleted file mode 100644 index 7157609179fbb1c54a2e05d31a3c5559a9abde7d..0000000000000000000000000000000000000000 --- a/funcom_test/46795659.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private SortedMap getPrefixedByBits(String key, int offset, int length) { - int offsetLength = offset + length; - if (offsetLength > length(key)) { - throw new IllegalArgumentException(offset + " + " + length + " > " + length(key)); - } - - if(offsetLength == 0) - return this; - - return new PrefixSubMap(key, offset, length); - } - COM: <s> returns a view of this map with entries containing only those that </s> - diff --git a/funcom_test/46795698.txt b/funcom_test/46795698.txt deleted file mode 100644 index 1a3296e99e61e33c550eda8b5d5b8b2161dac20e..0000000000000000000000000000000000000000 --- a/funcom_test/46795698.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean containsKey(Object k) { - String key = asKey(k); - if(key == null) - return false; - - int keyLength = length(key); - TrieEntry entry = getNearestEntryForKey(key, keyLength); - return !entry.isEmpty() && key.equals(entry.key); - } - COM: <s> returns true if this trie contains the specified key </s> - diff --git a/funcom_test/46795775.txt b/funcom_test/46795775.txt deleted file mode 100644 index ad5b21afd8a9c4c63cdca5df1dbff5e9ddd4098f..0000000000000000000000000000000000000000 --- a/funcom_test/46795775.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void start(BundleContext context) throws Exception { - super.start(context); - // initialize default settings of "Debug" preference page - DefaultPrefsSetter.initializeDefaults(); - - IExtensionPoint extensionPoint = Platform.getExtensionRegistry() - .getExtensionPoint(ID_EXTENSION_POINT_REMOTELAUNCH); - if (extensionPoint == null) - return; - IConfigurationElement[] configs = extensionPoint.getConfigurationElements(); - int length = configs.length; - if (length == 0) - return; - remoteLaunchProvider = - (IRemoteDebug) configs[0].createExecutableExtension("class"); //$NON-NLS-1$ - } - COM: <s> this method is called upon plug in activation </s> - diff --git a/funcom_test/46795992.txt b/funcom_test/46795992.txt deleted file mode 100644 index 6421a1f49064564b1f3f49fad92156db8133211e..0000000000000000000000000000000000000000 --- a/funcom_test/46795992.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String getClassString(CodeElement element) { - String className = element.getElementName(); - String derived = element.getDerived(); - if (!EMPTYSTRING.equals( className )) { - String cnw=className; - if (derived != ""){ - cnw+=":"+derived; - } - String s = processTemplate(DefaultPrefsSetter.CLASSTEMPLATE, TEMPLATEVARCLASS,cnw); - s=processTemplateString(s,TEMPLATEVARMODIFIER,element.getModifierAsString()); - return s; - - } - return ""; - } - COM: <s> return the string for a class </s> - diff --git a/funcom_test/46796072.txt b/funcom_test/46796072.txt deleted file mode 100644 index f9f61b7fcc3edc4e7974ad97982ad8198f7538e2..0000000000000000000000000000000000000000 --- a/funcom_test/46796072.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testCodeElementICodeElementTypeStringIntInt() { - CodeElement ele = generateTestElement(); - Assert.assertEquals(c,ele.getCodeType()); - Assert.assertEquals("name",ele.getElementName()); - Assert.assertEquals(10,ele.getOffset()); - Assert.assertEquals(15,ele.getLength()); - } - COM: <s> test method for </s> - diff --git a/funcom_test/46796178.txt b/funcom_test/46796178.txt deleted file mode 100644 index 17b77bebf58fb7ff6071891c75bda208a71a5dcc..0000000000000000000000000000000000000000 --- a/funcom_test/46796178.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void terminated() { - // delete all threads - Iterator iter = threadList.values().iterator(); - while (iter.hasNext()) { - EmonicThread thread = (EmonicThread)iter.next(); - thread.fireTerminateEvent(); - } - threadList = new HashMap(); - - DebugPlugin.getDefault().getBreakpointManager().removeBreakpointListener(this); - fireTerminateEvent(); - DebuggerPlugin.getDefault().returnPort(port); - // this terminates the input reader job - try { - stdin.close(); - } catch (IOException e) { - // ignored - } - } - COM: <s> called when this debug target terminates </s> - diff --git a/funcom_test/46797721.txt b/funcom_test/46797721.txt deleted file mode 100644 index 0808e721f4817d2247025ea9fdc7e8fe609dea4b..0000000000000000000000000000000000000000 --- a/funcom_test/46797721.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private TrieEntry followLeft(TrieEntry node) { - while(true) { - TrieEntry child = node.left; - // if we hit root and it didn't have a node, go right instead. - if(child.isEmpty()) - child = node.right; - - if(child.bitIndex <= node.bitIndex) - return child; - - node = child; - } - } - COM: <s> goes left through the tree until it finds a valid node </s> - diff --git a/funcom_test/46797769.txt b/funcom_test/46797769.txt deleted file mode 100644 index 6f33dd6e62f3c9d0a54990e2d5b63b77e8c5c619..0000000000000000000000000000000000000000 --- a/funcom_test/46797769.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected TrieEntry followRight(TrieEntry node) { - // if Trie is empty, no last entry. - if(node.right == null) - return null; - - // Go as far right as possible, until we encounter an uplink. - while(node.right.bitIndex > node.bitIndex) - node = node.right; - - return node.right; - } - COM: <s> traverses down the right path until it finds an uplink </s> - diff --git a/funcom_test/46816226.txt b/funcom_test/46816226.txt deleted file mode 100644 index c7e43ff800feff28fb05caa63d1ad24354882903..0000000000000000000000000000000000000000 --- a/funcom_test/46816226.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void createWorker(int i, Runnable r) { - try { - lock.lock(); - - assert threads[i] == null; - threads[i] = new Thread(r); - threadMap.put(threads[i], i); - stateOf[i] = CREATED; - inState[CREATED]++; - } finally { - lock.unlock(); - } - } - COM: <s> create a new worker </s> - diff --git a/funcom_test/46816233.txt b/funcom_test/46816233.txt deleted file mode 100644 index 03eab0803abca3e4bb2eccdc705fe6b304e5d85c..0000000000000000000000000000000000000000 --- a/funcom_test/46816233.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: protected int selectPivot(byte[] a, int fromIndex, int toIndex) { - final int first = fromIndex, last = toIndex - 1, mid = (fromIndex + toIndex) / 2; - return median(a, first, mid, last); - } - COM: <s> select a pivot element from the given array section </s> - diff --git a/funcom_test/46816357.txt b/funcom_test/46816357.txt deleted file mode 100644 index 1c91e29f548a9a4dc00fe2d56a457aa986fe7291..0000000000000000000000000000000000000000 --- a/funcom_test/46816357.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void complete() { - try { - lock.lock(); - - final int i = threadMap.get(Thread.currentThread()); - assert stateOf[i] == WORKING; - stateOf[i] = COMPLETE; - inState[COMPLETE]++; - inState[WORKING]--; - - // Signal master if waiting and this is the last worker to - // complete - if (inState[COMPLETE] == nworkers) - completion.signal(); - } finally { - lock.unlock(); - } - } - COM: <s> move a worker to the complete state </s> - diff --git a/funcom_test/46816535.txt b/funcom_test/46816535.txt deleted file mode 100644 index a6c46ed69b7c806e1be692de8f193d323fe9169a..0000000000000000000000000000000000000000 --- a/funcom_test/46816535.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean removeEdge(Edge<E> e) { - if (!e.getStart().equals(headNode)) - return false; - - AdjacentNode<E> adjNode; - for (int i = 0, len = linkedNodes.size(); i < len; ++i) { - adjNode = linkedNodes.get(i); - if (adjNode.getNode().equals(e.getEnd()) - && adjNode.getWeight() == e.getWeight()) { - linkedNodes.remove(i); - return true; - } - } - return false; - } - COM: <s> remove a specified edge from this adjacent list </s> - diff --git a/funcom_test/46816676.txt b/funcom_test/46816676.txt deleted file mode 100644 index 2e8f26f1711710d843a3d6033034711a98e0df54..0000000000000000000000000000000000000000 --- a/funcom_test/46816676.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void stableStatus(int oldStatus) { - /** - * Multiple threads can try to stable deque at the same time. It's not - * important that which thread did the actual work. We need CAS to - * ensure atomicity. If CAS fails, it means other thread did the work. - * This thread can return without any further action. - */ - STATUS_UPDATER.compareAndSet(this, oldStatus, STABLE); - } - COM: <s> try to cas code status code from old status to stable </s> - diff --git a/funcom_test/46816953.txt b/funcom_test/46816953.txt deleted file mode 100644 index b70b224c3c4939576eb211a025068f29f3cf301b..0000000000000000000000000000000000000000 --- a/funcom_test/46816953.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void stabilizeLeft(AnchorType<E> a) { - DequeNode<E> prev, prevnext; - - prev = a.left.right.get(); - if (a.status != LPUSH) - return; - prevnext = prev.left.get(); - if (prevnext != a.left) { - if (a.status != LPUSH) - return; - /* - * Modification to <code>left</code> pointer should be atomic - * operation. It doesn't matter which thread stablized the deque. If - * CAS fails, thread will return without doing anything. - */ - if (!prev.left.compareAndSet(prevnext, a.left)) - return; - } - - a.stableStatus(LPUSH); - } - COM: <s> stabilize the deque after a left push </s> - diff --git a/funcom_test/46970893.txt b/funcom_test/46970893.txt deleted file mode 100644 index a8732ab6e9e5742df8887e7fc0f37ba735514308..0000000000000000000000000000000000000000 --- a/funcom_test/46970893.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected boolean checkName(String name){ - boolean checksOut = true; - for(int i = 0; checksOut && i < name.length(); i++){ - char c = name.charAt(i); - if(!AbstractTerm.checkVar(c) && c !='$' && c !='_'){ - checksOut = false; - } - } - return checksOut; - } - COM: <s> reports whether name is a valid mappable name </s> - diff --git a/funcom_test/46970926.txt b/funcom_test/46970926.txt deleted file mode 100644 index 194a2b1a4a49c252ff06ef5f9fb1f75426128dd9..0000000000000000000000000000000000000000 --- a/funcom_test/46970926.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Object execute(Script script) { - assert(parsed); - Node n; - if(Util.evaluateCondition(condition,script)){ - n = yesBlock; - }else{ - n = noBlock; - } - while(n!=null){ - n.execute(script); - n=n.getNext(); - } - return null; - } - COM: <s> executes conditional statement </s> - diff --git a/funcom_test/46970936.txt b/funcom_test/46970936.txt deleted file mode 100644 index e8366f1d97583f820ee109f107ce74f1ccf2b65c..0000000000000000000000000000000000000000 --- a/funcom_test/46970936.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String read(RandomAccessFile f){ - try { - StringBuilder sb = new StringBuilder(); - char c; - while((c=f.readChar())!='\n'){ - sb.append(c); - } - return sb.toString(); - } catch(EOFException ex){ - return null; - }catch (IOException ex) { - ex.printStackTrace(); - return null; - } - } - COM: <s> reads the value of a variable in varfile or fctfile </s> - diff --git a/funcom_test/46971001.txt b/funcom_test/46971001.txt deleted file mode 100644 index 3b4a7afd704a8ec8533f6f983e628c4050b15cd7..0000000000000000000000000000000000000000 --- a/funcom_test/46971001.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void expand(int min){ - double newV []; - if(values.length > min){ - newV = new double[values.length * 2 + 1]; - }else{ - newV = new double[values.length + min]; - } - for(int i = 0; i < values.length; i++){ - newV[i] = values[i]; - } - values = newV; - } - COM: <s> expands the array to twice the arrays previous size or by min elements </s> - diff --git a/funcom_test/46972847.txt b/funcom_test/46972847.txt deleted file mode 100644 index 36f607e0afc584c5b10c984ce3dd08beaeab7718..0000000000000000000000000000000000000000 --- a/funcom_test/46972847.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void centerPoint(double cartX, double cartY){ - double w = xMax - xMin; - setXMax(cartX + w/2); - setXMin(cartX - w/2); - - double h = yMax - yMin; - setYMax(cartY + h/2); - setYMin(cartY - h/2); - centerPoint = new Point2D.Double(cartX,cartY); - } - COM: <s> centers the screen on the given point maintaining scale and step </s> - diff --git a/funcom_test/46997326.txt b/funcom_test/46997326.txt deleted file mode 100644 index 41e47541d72a09dce1dd0ab8d1e36f5aef2a427e..0000000000000000000000000000000000000000 --- a/funcom_test/46997326.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public boolean add(Number number) { - Number current = null; - - if (size() > maxSize) { - current = get(0); - super.remove(0); - } - - boolean flag = super.add(number); - - if (autoRange) { - if (current == null) { - recomputeRange(number.doubleValue()); - } else { - recomputeRange(current.doubleValue(), number.doubleValue()); - } - } - - return flag; - } - COM: <s> add a number to the list </s> - diff --git a/funcom_test/46997550.txt b/funcom_test/46997550.txt deleted file mode 100644 index c8c73f16ff2e5804fbaf9e46bca7ab065921d7fc..0000000000000000000000000000000000000000 --- a/funcom_test/46997550.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setBufferSize(int bufferSize) { - if (bufferSize <= 0) { - bufferSize = DEFAULT_BUFFER_SIZE; - } - if (this.bufferSize != bufferSize) { - int old = this.bufferSize; - this.bufferSize = bufferSize; - changeSupport.firePropertyChange(BUFFER_SIZE, old, bufferSize); - } - } - COM: <s> sets the value for the buffer size property </s> - diff --git a/funcom_test/46997651.txt b/funcom_test/46997651.txt deleted file mode 100644 index ce455e72131cdfd98e89fdcdadce724ba0f1212a..0000000000000000000000000000000000000000 --- a/funcom_test/46997651.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setStampFormat(String stampFormat) { - if (!this.stampFormat.toPattern().equals(stampFormat)) { - String old = this.stampFormat.toPattern(); - try { - this.stampFormat = new SimpleDateFormat(stampFormat); - changeSupport.firePropertyChange(STAMP_FORMAT, old, stampFormat); - } catch (IllegalArgumentException e) { - // Ignore - } - } - } - COM: <s> sets the new format to use for formatting timestamps </s> - diff --git a/funcom_test/46997802.txt b/funcom_test/46997802.txt deleted file mode 100644 index ce869b09e0b34b64744a97150e9008926ec3b322..0000000000000000000000000000000000000000 --- a/funcom_test/46997802.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setPollInterval(int pollInterval) { - pollInterval = Math.min(pollInterval, MINIMUM_POLL_INTERVAL); - - if (this.pollInterval != pollInterval) { - int old = this.pollInterval; - this.pollInterval = pollInterval; - changeSupport.firePropertyChange(POLL_INTERVAL, old, pollInterval); - } - } - COM: <s> sets the value for the poll interval </s> - diff --git a/funcom_test/46997804.txt b/funcom_test/46997804.txt deleted file mode 100644 index 225605d583b241cf4567face88bce524ebca1585..0000000000000000000000000000000000000000 --- a/funcom_test/46997804.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void readNextAndNotify() { - Thread t = new Thread(new Runnable() { - public void run() { - try { - if (readNext()) { - lastModificationStamp = new Date(); - fireChangeEvent(); - } - } catch (IOException e) { - // Ignore - } - } - }); - t.start(); - } - COM: <s> spin off a new thread to read the next lines </s> - diff --git a/funcom_test/46997938.txt b/funcom_test/46997938.txt deleted file mode 100644 index 485ee6a08e07c674e8e3ee96b1b990e00b177f11..0000000000000000000000000000000000000000 --- a/funcom_test/46997938.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private boolean isMatchParanthesis(String exp) { - int count = 0; - int len = exp.length(); - - for (int i = 0; i < len; i++) { - - if (exp.charAt(i) == '(') { - count++; - } else if (exp.charAt(i) == ')') { - count--; - } - } - - return count == 0; - } - COM: <s> matches paranthesis in exp </s> - diff --git a/funcom_test/46997953.txt b/funcom_test/46997953.txt deleted file mode 100644 index 90752e0ca3305601c0cef1058163a3b8259ea40e..0000000000000000000000000000000000000000 --- a/funcom_test/46997953.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String skipSpaces(String str) { - int i = 0; - int len = str.length(); - StringBuffer nstr = new StringBuffer(len); - - while (i < len) { - if (str.charAt(i) != ' ') { - nstr.append(str.charAt(i)); - } - i++; - } - - return nstr.toString(); - } - COM: <s> this methods will parse out all spaces in the string str </s> - diff --git a/funcom_test/46997962.txt b/funcom_test/46997962.txt deleted file mode 100644 index 1b249da848829ee68d8964e878cecebc5fa0cd3e..0000000000000000000000000000000000000000 --- a/funcom_test/46997962.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private int match(String exp, int index) { - int len = exp.length(); - int i = index; - int count = 0; - - while (i < len) { - if (exp.charAt(i) == '(') { - count++; - } else if (exp.charAt(i) == ')') { - count--; - } - - if (count == 0) { - return i; - } - - i++; - } - - return index; - } - COM: <s> matches an opening left paranthesis </s> - diff --git a/funcom_test/46998113.txt b/funcom_test/46998113.txt deleted file mode 100644 index 9bee2728d80293bb4556283fca87c152d1863b3e..0000000000000000000000000000000000000000 --- a/funcom_test/46998113.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setOperator(Operator operator) { - if (errorMessage != null) { - return; - } - if (inputActive && currentOperator != null && currentOperator.getArgumentCount() == 2) { - evaluate(false); - } - currentOperator = operator; - if (operator.getArgumentCount() == 1) { - evaluate(false); - } else { - storedValue = currentValue; - } - inputActive = false; - } - COM: <s> sets a new operator for the calculation </s> - diff --git a/funcom_test/46998216.txt b/funcom_test/46998216.txt deleted file mode 100644 index cbba3642108aa7176b5cad8fef61256ccecfbe74..0000000000000000000000000000000000000000 --- a/funcom_test/46998216.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public double preferredScale(Container container) { - Container parent = container.getParent(); - if (parent == null) { - return 0.0D; - } - Dimension dimension = parent.getSize(); - if (dimension.getWidth() == 0 || dimension.getHeight() == 0 || container.getComponentCount() == 0) { - return DEFAULT_SCALE; - } - return -1.0D; - } - COM: <s> calculates the preferred scale for the components in the specified container </s> - diff --git a/funcom_test/46998303.txt b/funcom_test/46998303.txt deleted file mode 100644 index f921c7aa04aa996fb5a15bf3ae047ca92cb54dbb..0000000000000000000000000000000000000000 --- a/funcom_test/46998303.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void installListeners() { - installMouseListeners(); - selectionListener = createSelectionListener(); - propertyChangeListener = createPropertyChangeListener(); - ListSelectionModel listselectionmodel = pane.getPageSelectionModel(); - if (listselectionmodel != null) { - listselectionmodel.addListSelectionListener(selectionListener); - } - pane.addPropertyChangeListener(propertyChangeListener); - } - COM: <s> installs listeners on the component </s> - diff --git a/funcom_test/46998388.txt b/funcom_test/46998388.txt deleted file mode 100644 index 84b9d2568e21f5a8c953b514996cd375836d61d6..0000000000000000000000000000000000000000 --- a/funcom_test/46998388.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent actionevent) { - if (!field.isEditValid()) { - LookAndFeel lookandfeel = UIManager.getLookAndFeel(); - lookandfeel.provideErrorFeedback(field); - field.selectAll(); - } else { - try { - field.commitEdit(); - } catch (ParseException parseexception) { - // Ignore - } - } - } - COM: <s> validates the content of the field </s> - diff --git a/funcom_test/46998390.txt b/funcom_test/46998390.txt deleted file mode 100644 index 399d1a2c3af4efe836516b9267bbc47fba6ab3ea..0000000000000000000000000000000000000000 --- a/funcom_test/46998390.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent actionevent) { - JPrintPreviewPane printPreviewPane = previewDialog.getPrintPreviewPane(); - Pageable pageable = printPreviewPane.getPageable(); - int i = pageable.getNumberOfPages(); - int currentPageIndex = previewDialog.getCurrentPageIndex(); - if (currentPageIndex < i - 1) { - previewDialog.setCurrentPageIndex(currentPageIndex + 1); - } - } - COM: <s> displays the next page in the code pageable code </s> - diff --git a/funcom_test/46998414.txt b/funcom_test/46998414.txt deleted file mode 100644 index 0b14f2f5f4cf8a84684b34ca14e1832397b6647c..0000000000000000000000000000000000000000 --- a/funcom_test/46998414.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent actionevent) { - JPrintPreviewPane printPreviewPane = previewDialog.getPrintPreviewPane(); - Pageable pageable = printPreviewPane.getPageable(); - int i = pageable.getNumberOfPages(); - int currentPageIndex = previewDialog.getCurrentPageIndex(); - if (currentPageIndex < i - 1) { - previewDialog.setCurrentPageIndex(i - 1); - } - } - COM: <s> displays the last page in the code pageable code </s> - diff --git a/funcom_test/46998444.txt b/funcom_test/46998444.txt deleted file mode 100644 index f843371677818c83b97dabc4d4fcfb4acedea715..0000000000000000000000000000000000000000 --- a/funcom_test/46998444.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void uninstallListeners() { - ListSelectionModel listselectionmodel = pane.getPageSelectionModel(); - if (listselectionmodel != null) { - listselectionmodel.removeListSelectionListener(selectionListener); - } - pane.removeMouseListener(mouseInputListener); - pane.removeMouseMotionListener(mouseInputListener); - pane.removePropertyChangeListener(propertyChangeListener); - } - COM: <s> removes listeners from the component </s> - diff --git a/funcom_test/46998597.txt b/funcom_test/46998597.txt deleted file mode 100644 index 1a854348f544edc97057a940eda28517624c70d1..0000000000000000000000000000000000000000 --- a/funcom_test/46998597.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Date getEndDate() { - Date endDate; - if (hasChildren()) { - refreshDateRanges(); - endDate = latestChildEndDate; - } else { - endDate = DateUtil.getEndDate(startDate, (int) Math.ceil(work), - Configuration.getConfiguration(project).isWorkWeekends()); - if (endDate.before(startDate)) { - endDate = startDate; - } - } - - return endDate; - } - COM: <s> calculates the end date for the task </s> - diff --git a/funcom_test/46998796.txt b/funcom_test/46998796.txt deleted file mode 100644 index c84c9c23b07a2e247747680707af909c04a7d362..0000000000000000000000000000000000000000 --- a/funcom_test/46998796.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String makeE(String op) { - if (!isConstant(op) && !isVariable(op) && isLn(op)) { - return arg1(op); - } else if (isConstant(op) && isZero(op)) { - return "1"; - } - - return list("exp", op); - } - COM: <s> constructs the prefix expression exp i op i </s> - diff --git a/funcom_test/46998989.txt b/funcom_test/46998989.txt deleted file mode 100644 index 637e5743cb6c82832de266adf8ddc84364f2920d..0000000000000000000000000000000000000000 --- a/funcom_test/46998989.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String makeTan(String a) { - if (!isVariable(a) && !isConstant(a) && isAtan(a)) { - return arg1(a); - } else if (!isVariable(a) && !isConstant(a) && isAcotan(a)) { - return makeDivision("1", arg1(a)); - } - - return list("tan", a); - } - COM: <s> constructs the prefix expression tan i a i </s> - diff --git a/funcom_test/46999441.txt b/funcom_test/46999441.txt deleted file mode 100644 index 5435cecaa93eedb37cd66689406921a17b9b5c25..0000000000000000000000000000000000000000 --- a/funcom_test/46999441.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private String deriveAcotan(String exp, String vari) { - return (makeDivision(makeProduct("-1", derive(arg1(exp), vari)), - makeSum("1", makePower(arg1(exp), "2")))); - } - COM: <s> derives the prefix expression acotan i arg1 arg2 i </s> - diff --git a/funcom_test/46999568.txt b/funcom_test/46999568.txt deleted file mode 100644 index 04144f93353bb80fbd0badb274fda7acc4bdb814..0000000000000000000000000000000000000000 --- a/funcom_test/46999568.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private String deriveAcos(String exp, String vari) { - return (makeProduct("-1", makeDivision(derive(arg1(exp), vari), - makeSquareroot(makeSubtraction("1", makePower(arg1(exp), "2")))))); - } - COM: <s> derives the prefix expression acos i arg1 arg2 i </s> - diff --git a/funcom_test/46999723.txt b/funcom_test/46999723.txt deleted file mode 100644 index 8920288657cce5778e4a34ff735854382cf4e65f..0000000000000000000000000000000000000000 --- a/funcom_test/46999723.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private String deriveDivision(String exp, String vari) { - return (makeDivision(makeSubtraction(makeProduct(arg2(exp), derive(arg1(exp), vari)), - makeProduct(arg1(exp), derive(arg2(exp), vari))), makePower(arg2(exp), - "2"))); - } - COM: <s> derives the prefix expression i arg1 arg2 i </s> - diff --git a/funcom_test/47000065.txt b/funcom_test/47000065.txt deleted file mode 100644 index d98bcf7aeec2f60aa720621e5392961ee2c15eec..0000000000000000000000000000000000000000 --- a/funcom_test/47000065.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String skipSpaces(String str) { - StringBuilder newstr = new StringBuilder(100); - int len = str.length(); - - for (int i = 0; i < len; i++) { - if (str.charAt(i) != ' ') { - newstr.append(str.charAt(i)); - } - } - - return newstr.toString(); - } - COM: <s> parses out all spaces in str </s> - diff --git a/funcom_test/47000122.txt b/funcom_test/47000122.txt deleted file mode 100644 index d910e185ff5084e2656ea10ff4a5cbfcc23ac0e8..0000000000000000000000000000000000000000 --- a/funcom_test/47000122.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private int match(String exp, int index) { - int i = index; - int count = 0; - - while (i < exp.length()) { - - if (exp.charAt(i) == '(') { - count++; - } else if (exp.charAt(i) == ')') { - count--; - } - - if (count == 0) { - return i; - } - - i++; - } - - return index; - } - COM: <s> matches brackets in exp </s> - diff --git a/funcom_test/47119584.txt b/funcom_test/47119584.txt deleted file mode 100644 index 190e1cd5df9e9c0d082b7779ffb8269a3b1a52e4..0000000000000000000000000000000000000000 --- a/funcom_test/47119584.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Integer sprintTotalPoints(ISprint sprint) { - Integer tmp = 0; - IStory s; - for (Object o : sprint.getProductBacklogItems()) { - s = (IStory) o; - if (s.getEstimatedPoints() != IStory.SPRINT_POINT && s.getState() > IStory.STATE_SUBMITED) { - tmp += s.getEstimatedPoints(); - } - } - return tmp; - } - COM: <s> return the sum of points of the stories in a sprint </s> - diff --git a/funcom_test/47122119.txt b/funcom_test/47122119.txt deleted file mode 100644 index e1d7d8f80df57278a7ff5056d4d1a366399b9da5..0000000000000000000000000000000000000000 --- a/funcom_test/47122119.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: // public boolean deleteFile(String fileName) throws IllegalStateException, IOException { -// assertNotReadOnly(); -// List<String> indexFiles = LuneUtils.getIndexFileNames(getDirectory()); -// List<String> deletables = LuneUtils.getIndexDeletableNames(getDirectory()); -// return deleteFile(new File(path, fileName), indexFiles, deletables); -// } - COM: <s> delete a specific file </s> - diff --git a/funcom_test/47122386.txt b/funcom_test/47122386.txt deleted file mode 100644 index 66257f608216d935e6c6f5040c5b62350d81461f..0000000000000000000000000000000000000000 --- a/funcom_test/47122386.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void check(IndexFormatDefinition d) throws TypeException { - d.getCfs().accept(this, null); - d.getDel().accept(this, null); - d.getSeg().accept(this, null); - for (CfsFileDefinition cfsfile : d.getCfsfiles()) { - cfsfile.accept(this, null); - } - } - COM: <s> check the format definition </s> - diff --git a/funcom_test/47135299.txt b/funcom_test/47135299.txt deleted file mode 100644 index fa5c12ccae6b1c2318a4b251db987f81ee9a87a7..0000000000000000000000000000000000000000 --- a/funcom_test/47135299.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String implode(String[] array, String separator) { - String str = ""; - int i = 0; - while(i < array.length - 1) { - str += array[i] + separator; - i++; - } - if(i < array.length) { - str += array[i]; - } - return str; - } - COM: <s> implodes an array of strings to a string </s> - diff --git a/funcom_test/47135349.txt b/funcom_test/47135349.txt deleted file mode 100644 index 198b41a34c43f20fda2480bbb145ee3056ad8527..0000000000000000000000000000000000000000 --- a/funcom_test/47135349.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void requestMedia(int id){ - try { - writer.write(String.format("MEDIAPLAY %d\n",id)); - writer.flush(); - System.out.println("Client: MEDIAPLAY"); - request=true; - runSocket(); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - COM: <s> this method sends an request to the server </s> - diff --git a/funcom_test/47135366.txt b/funcom_test/47135366.txt deleted file mode 100644 index 62cbeb7d90f9d11dbcf4fb57775c0150d8bef1c6..0000000000000000000000000000000000000000 --- a/funcom_test/47135366.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void close() { - try { - System.out.println("BYE MAMA!"); - writer.write("BYE MAMA!\n"); - writer.flush(); - writer.close(); - reader.close(); - socket.close(); - run = false; - connected = false; - } catch (IOException ex) { - System.out.println("Closed connection uncleanly"); - } - } - COM: <s> this method closes all the readers and sends an logout request to the </s> - diff --git a/funcom_test/47135679.txt b/funcom_test/47135679.txt deleted file mode 100644 index 970bbc8cb540113b4218e8db1ddce87c32c38c02..0000000000000000000000000000000000000000 --- a/funcom_test/47135679.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private String toTime(int sec) { - int h, m; - h = (int)Math.floor(sec/3600.0); - m = (int)Math.floor((sec - h*60)/60.0); - return String.format("%02d:%02d:%02d",(h),(m),sec - h*3600 - m*60); - } - COM: <s> converts seconds to a readable format </s> - diff --git a/funcom_test/47135690.txt b/funcom_test/47135690.txt deleted file mode 100644 index 92c73f7b40c1ebd79739976586da09ba191229a0..0000000000000000000000000000000000000000 --- a/funcom_test/47135690.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void closeFS() { - win.remove(p.getVisualComponent()); - MediaPanel.add(p.getVisualComponent()); - p.getVisualComponent().setSize( - MediaPanel.getWidth(), - MediaPanel.getHeight()); - win.dispose(); - fullscreen = false; - bFullscreen.setEnabled(true); - } - COM: <s> closes the fullscreen mode convenience method </s> - diff --git a/funcom_test/47135704.txt b/funcom_test/47135704.txt deleted file mode 100644 index 82c6a0d0002c8855d26ff72aa24425b02e005863..0000000000000000000000000000000000000000 --- a/funcom_test/47135704.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void stopMedia() { - p.stop(); - t.stop(); - p.setMediaTime(new Time(0.0)); - lPos.setText(toTime(0)+":"+toTime(totTime)); - sTimeline.setValue(0); - bStop.setEnabled(false); - bPlay.setText("Play"); - } - COM: <s> convenience method for stopping media timer and resetting gui </s> - diff --git a/funcom_test/47181930.txt b/funcom_test/47181930.txt deleted file mode 100644 index b3e9fce0b489e2705d831a2dd7ac30e08b529813..0000000000000000000000000000000000000000 --- a/funcom_test/47181930.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testExecQuery() { - System.out.println("execQuery"); - - String strSQL = ""; - ConnectionMySQL instance = new ConnectionMySQL(); - - instance.execQuery(strSQL); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - COM: <s> test of exec query method of class dblp </s> - diff --git a/funcom_test/4723160.txt b/funcom_test/4723160.txt deleted file mode 100644 index 693523eaaea79ee18ff7677fdffd606f571109e5..0000000000000000000000000000000000000000 --- a/funcom_test/4723160.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { - if ((intBuffer == null) || (pixels.length > intBuffer.length)) - intBuffer = new int[pixels.length]; - - for (int i = pixels.length; --i >= 0;) - intBuffer[i] = (int) pixels[i] & 0xFF; - - raster.setPixels(x, y, w, h, intBuffer); - } - COM: <s> notification of a bunch of pixel values in byte form </s> - diff --git a/funcom_test/4723163.txt b/funcom_test/4723163.txt deleted file mode 100644 index 8e9cd120bc54497168233b74e0063d1c2ba6852b..0000000000000000000000000000000000000000 --- a/funcom_test/4723163.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public boolean matchStrings() { - Matcher matcher = pattern.matcher(str); - if (matcher.matches()) { - if (uriTemplateVariables != null) { - for (int i = 1; i <= matcher.groupCount(); i++) { - String name = this.variableNames.get(i - 1); - String value = matcher.group(i); - uriTemplateVariables.put(name, decodeUrl(value)); - } - } - return true; - } else { - return false; - } - } - COM: <s> main entry point </s> - diff --git a/funcom_test/4723167.txt b/funcom_test/4723167.txt deleted file mode 100644 index 16f81108725ec33b96d1f46d4d173a20fefad769..0000000000000000000000000000000000000000 --- a/funcom_test/4723167.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int offset, int scansize) { - image.setRGB(x, y, w, h, pixels, offset, scansize); - } - COM: <s> notification of a bunch of pixel values as ints </s> - diff --git a/funcom_test/4723192.txt b/funcom_test/4723192.txt deleted file mode 100644 index e4b91860f88835946a901cbbcd6b2f5459d253b6..0000000000000000000000000000000000000000 --- a/funcom_test/4723192.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void createImage() { - // meet the preconditions first. - if ((image != null) || (width == -1) || (colorModel == null)) - return; - - // raster = colorModel.createCompatibleWritableRaster(width, height); - - // boolean premult = colorModel.isAlphaPremultiplied(); - - // image = new BufferedImage(colorModel, raster, premult, properties); - image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); - } - COM: <s> convenience method used to create the output image based on the data </s> - diff --git a/funcom_test/47266168.txt b/funcom_test/47266168.txt deleted file mode 100644 index 29ed508b42c85462a1e5a43b28fd5c28f17687cc..0000000000000000000000000000000000000000 --- a/funcom_test/47266168.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setKeyBindings(final String api) { - final KeyBindingManager keyboard = KeyBindingManager.getKeyBindingManager(); - - keyboard.set("forward", KeyInput.KEY_W); - keyboard.set("backward", KeyInput.KEY_S); - keyboard.set("turnRight", KeyInput.KEY_D); - keyboard.set("turnLeft", KeyInput.KEY_A); - } - COM: <s> creates the keyboard objects </s> - diff --git a/funcom_test/47293076.txt b/funcom_test/47293076.txt deleted file mode 100644 index e14b30cd813df1643ca4b87a131147cea20678ae..0000000000000000000000000000000000000000 --- a/funcom_test/47293076.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean hasNewMessages() throws IOException { - final String url = query + "action=query&meta=userinfo&uiprop=hasmsg"; - logurl(url, "hasNewMessages"); - final URLConnection connection = new URL(url).openConnection(); - setCookies(connection, cookies); - connection.connect(); - final BufferedReader in = new BufferedReader(new InputStreamReader( - new GZIPInputStream(connection.getInputStream()))); - return in.readLine().indexOf("messages=\"\"") != -1; - } - COM: <s> determines whether the current user has new messages </s> - diff --git a/funcom_test/47294511.txt b/funcom_test/47294511.txt deleted file mode 100644 index 55cda5205bb0a3319f63703f4b60803a68b9035f..0000000000000000000000000000000000000000 --- a/funcom_test/47294511.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean isBlocked() throws IOException { - // if logged in as this user, it's only worth fetching this every - // 100 edits or so - if (this != user || count > 100) { - blocked = getIPBlockList(username, null, null, 1).length != 0; - count = 0; - } else { - count++; - } - return blocked; - } - COM: <s> determines whether this user is blocked by looking it up on the ip </s> - diff --git a/funcom_test/47294697.txt b/funcom_test/47294697.txt deleted file mode 100644 index d6f3831041f73aac15c8ea52c5573d0896048915..0000000000000000000000000000000000000000 --- a/funcom_test/47294697.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected String decode(String in) { - // remove - in = in.replace("<", "<").replace(">", ">"); // html tags - in = in.replace("&", "&"); - in = in.replace(""", "\""); - in = in.replace("'", "'"); - return in; - } - COM: <s> strips entity references like quot from the supplied string </s> - diff --git a/funcom_test/47294710.txt b/funcom_test/47294710.txt deleted file mode 100644 index dabd0560a0706124171086948090b6894dc792af..0000000000000000000000000000000000000000 --- a/funcom_test/47294710.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String parseAndCleanup(final String in) throws IOException { - String output = parse(in); - output = output.replace("<p>", "").replace("</p>", ""); // remove - // paragraph - // tags - output = output.replace("\n", ""); // remove new lines - output = output.replace(",", ""); // remove any formatting commas - return output; - } - COM: <s> same as tt parse tt but also strips out unwanted crap </s> - diff --git a/funcom_test/47294769.txt b/funcom_test/47294769.txt deleted file mode 100644 index 7e2b114b0117c5b50f0d31ebeab46a490c8213f6..0000000000000000000000000000000000000000 --- a/funcom_test/47294769.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void setCookies(final URLConnection u, final Map map) { - final Iterator i = map.entrySet().iterator(); - final StringBuilder cookie = new StringBuilder(100); - while (i.hasNext()) { - final Map.Entry entry = (Map.Entry) i.next(); - cookie.append(entry.getKey()); - cookie.append("="); - cookie.append(entry.getValue()); - cookie.append("; "); - } - u.setRequestProperty("Cookie", cookie.toString()); - - // enable gzip compression - u.setRequestProperty("Accept-encoding", "gzip"); - } - COM: <s> sets cookies to an unconnected urlconnection and enables gzip compression </s> - diff --git a/funcom_test/47429473.txt b/funcom_test/47429473.txt deleted file mode 100644 index 58b1830a8440c7b366e065a723556a95d35f5573..0000000000000000000000000000000000000000 --- a/funcom_test/47429473.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void createDB() throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException { - Class.forName("org.sqlite.JDBC"); - Connection conn = DriverManager.getConnection("jdbc:sqlite:" + path); - Statement stat = conn.createStatement(); - stat.executeUpdate(db_table_document); - conn.close(); - } - COM: <s> create the database file </s> - diff --git a/funcom_test/47429539.txt b/funcom_test/47429539.txt deleted file mode 100644 index 4c2938ace5e2a6c0d98053e87a491951f2764067..0000000000000000000000000000000000000000 --- a/funcom_test/47429539.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean uploadServer(Document doc, OutputStream os) throws IOException { - boolean result = sendFile(doc.path, os); - //ByteStream.toStream(os, doc.clientSign); - //ByteStream.toStream(os, doc.serverSign); - return result; - } - COM: <s> the server uploads a file to the client including the signature </s> - diff --git a/funcom_test/47429540.txt b/funcom_test/47429540.txt deleted file mode 100644 index 5f937effc2788fc8973b10eec66b1aedcc01ba72..0000000000000000000000000000000000000000 --- a/funcom_test/47429540.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean sendFile(String path, OutputStream os) { - boolean result = false; - try { - ByteStream.toStream(os, new File(path)); - result = true; - } catch (java.lang.Exception exc) { - System.out.println(exc); - result = false; - } - return result; - } - COM: <s> upload a file to the remote host </s> - diff --git a/funcom_test/47429542.txt b/funcom_test/47429542.txt deleted file mode 100644 index 3c8c84a3deaea04f1f71dd371d33ec64d4aaaaed..0000000000000000000000000000000000000000 --- a/funcom_test/47429542.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean receiveFile(String path, InputStream in) { - boolean result = false; - try { - File file = new File(path); - ByteStream.toFile(in, file); - result = true; - } catch (java.lang.Exception exc) { - System.out.println(exc); - result = false; - } - return result; - } - COM: <s> download a file from a remote host </s> - diff --git a/funcom_test/47467904.txt b/funcom_test/47467904.txt deleted file mode 100644 index bc467496b1afe561969f38f455fd279aedf86472..0000000000000000000000000000000000000000 --- a/funcom_test/47467904.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private IRuntimeClasspathEntry getJREEntry(ILaunchConfiguration configuration) throws CoreException { - IVMInstall jre = VMHelper.createLauncher(configuration); - IPath containerPath = new Path(JavaRuntime.JRE_CONTAINER); - containerPath = containerPath.append(jre.getVMInstallType().getId()); - containerPath = containerPath.append(jre.getName()); - return JavaRuntime.newRuntimeContainerClasspathEntry(containerPath, IRuntimeClasspathEntry.BOOTSTRAP_CLASSES); - } - COM: <s> returns a jre runtime classpath entry </s> - diff --git a/funcom_test/47468058.txt b/funcom_test/47468058.txt deleted file mode 100644 index a2d669547892904ebcad23f49bb1cd0828791c98..0000000000000000000000000000000000000000 --- a/funcom_test/47468058.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected ComboChoiceOption addComboChoiceOption(String name, String label, String[][] choices, String value, int pageIndex) { - ComboChoiceOption option = new ComboChoiceOption(this, name, label, choices); - registerOption(option, value, pageIndex); - return option; - } - COM: <s> force a combo choice representation </s> - diff --git a/funcom_test/47468059.txt b/funcom_test/47468059.txt deleted file mode 100644 index 1434a99fa2f06bfddb2975840008e33cff7759af..0000000000000000000000000000000000000000 --- a/funcom_test/47468059.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void flagMissingRequiredOption(TemplateOption option) { - WizardPage page = null; - for (int i = 0; i < pages.size(); i++) { - TemplatePage tpage = (TemplatePage) pages.get(i); - ArrayList list = tpage.options; - if (list.contains(option)) { - page = tpage.page; - break; - } - } - if (page != null) { - page.setPageComplete(false); - String message = NLS.bind(PDEUIMessages.OptionTemplateSection_mustBeSet, option.getMessageLabel()); - page.setErrorMessage(message); - } - } - COM: <s> locates the page that this option is presented in and flags that the </s> - diff --git a/funcom_test/47468076.txt b/funcom_test/47468076.txt deleted file mode 100644 index 48fb2158d844dc5045a31d63d7b1778c0b4b49f2..0000000000000000000000000000000000000000 --- a/funcom_test/47468076.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getStringOption(String name) { - TemplateOption option = (TemplateOption) options.get(name); - if (option != null) { - if (option instanceof StringOption) { - return ((StringOption) option).getText(); - - } else if (option instanceof AbstractChoiceOption) { - // This situation covers both Combos and Radio buttons - Object value = option.getValue(); - if (value instanceof String) { - return (String) value; - } else if (value != null) { - return value.toString(); - } - } - } - return null; - } - COM: <s> returns a string value of the option with a given name </s> - diff --git a/funcom_test/47468453.txt b/funcom_test/47468453.txt deleted file mode 100644 index 3336a07389f30fc526b6d78bb43ee6a2de6cb591..0000000000000000000000000000000000000000 --- a/funcom_test/47468453.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private IBundle getBundleFromModel() { - - // Do early exit checks - if (model != null && (model instanceof IBundlePluginModelBase)) { - - IBundlePluginModelBase bundlePModel = (IBundlePluginModelBase) model; - IBundleModel bundleModel = bundlePModel.getBundleModel(); - - if (bundleModel != null) { - return bundleModel.getBundle(); - } - } - - return null; - } - COM: <s> try to get hold of the underlying bundle for the model if applicable </s> - diff --git a/funcom_test/47468812.txt b/funcom_test/47468812.txt deleted file mode 100644 index d58e9abde85cc72d16bb8eddf249e2e13fe7b52a..0000000000000000000000000000000000000000 --- a/funcom_test/47468812.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getStoredValue(IScopeContext[] lookupOrder, boolean ignoreTopScope, IWorkingCopyManager manager) { - for (int i = ignoreTopScope ? 1 : 0; i < lookupOrder.length; i++) { - String value = getStoredValue(lookupOrder[i], manager); - if (value != null) { - return value; - } - } - return null; - } - COM: <s> returns the stored value of this </s> - diff --git a/funcom_test/47468871.txt b/funcom_test/47468871.txt deleted file mode 100644 index da08a95974b6fc943b9e5cd19e918a1e69306792..0000000000000000000000000000000000000000 --- a/funcom_test/47468871.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean hasProjectSpecificSettings(IProject project) { - if (project != null) { - IScopeContext projectContext = new ProjectScope(project); - for (int i = 0; i < fgAllKeys.length; i++) { - if (fgAllKeys[i].getStoredValue(projectContext, fManager) != null) { - return true; - } - } - } - return false; - } - COM: <s> returns if this block has f project specific settings </s> - diff --git a/funcom_test/47468980.txt b/funcom_test/47468980.txt deleted file mode 100644 index 7bb9538bc4acc0a41e96eb794debc2749a75512b..0000000000000000000000000000000000000000 --- a/funcom_test/47468980.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void initializeComboControls(Composite composite, String[] labels, Key[] keys, int tabkind) { - for (int i = 0, max = labels.length; i < max; i++) { - createComboControl(composite, labels[i], keys[i], tabkind); - } - } - COM: <s> creates a set of combo boxes for the given string key pairs </s> - diff --git a/funcom_test/47469148.txt b/funcom_test/47469148.txt deleted file mode 100644 index e55c076089dfc12fb352531f6e7d369d32e7b4c3..0000000000000000000000000000000000000000 --- a/funcom_test/47469148.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected ScrolledComposite createScrolledComposite(Composite parent, int columns) { - ScrolledComposite scomp = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL); - scomp.setExpandHorizontal(true); - scomp.setExpandVertical(true); - scomp.setLayout(new GridLayout(1, false)); - scomp.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - scomp.addListener(SWT.Resize, new Listener() { - public void handleEvent(Event event) { - handleExpand(getScrollingParent(event.widget)); - } - }); - return scomp; - } - COM: <s> creates a scrolled composite </s> - diff --git a/funcom_test/47469158.txt b/funcom_test/47469158.txt deleted file mode 100644 index 72fbedede82d84d07f58b40c8e7420c8d40073b6..0000000000000000000000000000000000000000 --- a/funcom_test/47469158.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addAllSelectionChangedListeners() { - // Re-add the tree listener added by our parent for our parent: - // org.eclipse.ui.views.contentoutline.ContentOutlinePage - if (isViewerDefined()) { - viewer.addSelectionChangedListener(this); - } - // Add all current listeners - for (int i = 0; i < fListenerList.size(); i++) { - super.addSelectionChangedListener((ISelectionChangedListener) fListenerList.get(i)); - } - } - COM: <s> used for restoration after temporary removal </s> - diff --git a/funcom_test/47469171.txt b/funcom_test/47469171.txt deleted file mode 100644 index 4e056ae55fef61d33284581011ea778e55abaa4c..0000000000000000000000000000000000000000 --- a/funcom_test/47469171.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeAllSelectionChangedListeners() { - // Remove the tree listener added by our parent for our parent: - // org.eclipse.ui.views.contentoutline.ContentOutlinePage - if (isViewerDefined()) { - viewer.removeSelectionChangedListener(this); - } - // Remove all current listeners - for (int i = 0; i < fListenerList.size(); i++) { - super.removeSelectionChangedListener((ISelectionChangedListener) fListenerList.get(i)); - } - } - COM: <s> used for temporary removal </s> - diff --git a/funcom_test/47469266.txt b/funcom_test/47469266.txt deleted file mode 100644 index 92e31b66e314e93f3c34d30f2005a134c86bcfac..0000000000000000000000000000000000000000 --- a/funcom_test/47469266.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private ScrolledComposite getScrollingParent(Object obj) { - if (obj instanceof ExpandableComposite) { - ExpandableComposite ecomp = (ExpandableComposite) obj; - Composite parent = ecomp.getParent(); - while (parent != null && !(parent instanceof ScrolledComposite)) { - parent = parent.getParent(); - } - if (parent != null) { - return (ScrolledComposite) parent; - } - } - if (obj instanceof ScrolledComposite) { - return (ScrolledComposite) obj; - } - return null; - } - COM: <s> returns the scrolling parent for the given expandible composite object </s> - diff --git a/funcom_test/47469318.txt b/funcom_test/47469318.txt deleted file mode 100644 index 81477cc589a748e1b26927c8df26cdaa2729b401..0000000000000000000000000000000000000000 --- a/funcom_test/47469318.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void dragSetData(DragSourceEvent event) { - if (event.doit == false) - return; - if (ModelDataTransfer.getInstance().isSupportedType(event.dataType)) { - event.data = getSelectedModelObjects(); - fDragData = event.data; - return; - } - if (TextTransfer.getInstance().isSupportedType(event.dataType)) { - event.data = createTextualRepresentation((IStructuredSelection) fSelectionProvider.getSelection()); - fDragData = null; - return; - } - } - COM: <s> returns the data to be transferred in a drag and drop </s> - diff --git a/funcom_test/47469507.txt b/funcom_test/47469507.txt deleted file mode 100644 index ae77d6049e44bde2716c2c469ffce9cedb26982b..0000000000000000000000000000000000000000 --- a/funcom_test/47469507.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void performDefaults() { - String defval = null; - for (int i = 0; i < fgAllKeys.length; i++) { - defval = fgAllKeys[i].getStoredValue(fLookupOrder, true, fManager); - fgAllKeys[i].setStoredValue(fLookupOrder[0], defval, fManager); - } - updateControls(); - fDirty = true; - fRebuildcount = 0; - } - COM: <s> reverts all of the settings back to their defaults </s> - diff --git a/funcom_test/47469548.txt b/funcom_test/47469548.txt deleted file mode 100644 index 83b8b427f5e0ca45d34b75e151ce07ddc1751acb..0000000000000000000000000000000000000000 --- a/funcom_test/47469548.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void persistExpansionState() { - IDialogSettings settings = PDEPlugin.getDefault().getDialogSettings().addNewSection(SETTINGS); - for (int i = 0; i < fExpComps.size(); i++) { - settings.put(Integer.toString(i), ((ExpandableComposite) fExpComps.get(i)).isExpanded()); - } - } - COM: <s> stores the expansion state of the composites </s> - diff --git a/funcom_test/47469584.txt b/funcom_test/47469584.txt deleted file mode 100644 index d7c3440ebbd12e28e323f2604711843c8e7cc655..0000000000000000000000000000000000000000 --- a/funcom_test/47469584.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void restoreExpansionState() { - IDialogSettings settings = PDEPlugin.getDefault().getDialogSettings().getSection(SETTINGS); - if (settings != null) { - for (int i = 0; i < fExpComps.size(); i++) { - ((ExpandableComposite) fExpComps.get(i)).setExpanded(settings.getBoolean(Integer.toString(i))); - } - } else { - ((ExpandableComposite) fExpComps.get(0)).setExpanded(true); - } - } - COM: <s> restores the expansion state of the composites in this block </s> - diff --git a/funcom_test/47469597.txt b/funcom_test/47469597.txt deleted file mode 100644 index c4609c02e1cd1b5217af6f9bfe986fdc1b4f0f2c..0000000000000000000000000000000000000000 --- a/funcom_test/47469597.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void handleSwitchView() { - if (fGroupPlugins.getSelection()) { - ISelection selection = fPluginListViewer.getSelection(); - fBook.showPage(fPluginTreeViewer.getControl()); - fPluginTreeViewer.setSelection(selection); - } else { - ISelection selection = fPluginTreeViewer.getSelection(); - fBook.showPage(fPluginListViewer.getControl()); - fPluginListViewer.setSelection(selection); - } - } - COM: <s> switches between the list and tree views for plugins </s> - diff --git a/funcom_test/47469701.txt b/funcom_test/47469701.txt deleted file mode 100644 index 9aa237f6ea82de11be1ca411bd2caf5402b9ddd1..0000000000000000000000000000000000000000 --- a/funcom_test/47469701.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void determineNextSelection(TocObject parent, int index) { - // Select the next sibling - fObjectToSelect = parent.getNextSibling(fTocObjects[index]); - if (fObjectToSelect == null) { - // No next sibling - // Select the previous sibling - fObjectToSelect = parent.getPreviousSibling(fTocObjects[index]); - if (fObjectToSelect == null) { - // No previous sibling - // Select the parent - fObjectToSelect = parent; - } - } - } - COM: <s> determine the next object that should be selected </s> - diff --git a/funcom_test/47469778.txt b/funcom_test/47469778.txt deleted file mode 100644 index 338044c39782a06314ea6000bd8e7575f8e3b6d2..0000000000000000000000000000000000000000 --- a/funcom_test/47469778.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void handleAdd() { - AddTargetPluginsWizard wizard = new AddTargetPluginsWizard(); - WizardDialog dialog = new WizardDialog(fPage.getShell(), wizard); - dialog.create(); - SWTUtil.setDialogSize(dialog, 400, 450); - dialog.open(); - - File[] dirs = wizard.getDirectories(); - if (dirs.length == 0) { - // no new URLs found/to add - return; - } - addDirectoriesToState(dirs); - } - COM: <s> allows plugins to be added to the target </s> - diff --git a/funcom_test/47469942.txt b/funcom_test/47469942.txt deleted file mode 100644 index 360540cfb4e89c712f471be95eb4703ca6d0f48f..0000000000000000000000000000000000000000 --- a/funcom_test/47469942.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void createTree(Composite container, FormToolkit toolkit) { - TreePart treePart = getTreePart(); - createViewerPartControl(container, SWT.MULTI, 2, toolkit); - - fTocTree = treePart.getTreeViewer(); - fTocTree.setContentProvider(new TocContentProvider()); - fTocTree.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); - - PDEPlugin.getDefault().getLabelProvider().connect(this); - - createTreeListeners(); - initDragAndDrop(); - } - COM: <s> create the tree widget that will contain the toc </s> - diff --git a/funcom_test/47469976.txt b/funcom_test/47469976.txt deleted file mode 100644 index 9263db2b7b66b9458134ef504fc284e1b8e10e01..0000000000000000000000000000000000000000 --- a/funcom_test/47469976.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private ICustomizationInfo getCustomizationInfo() { - ICustomizationInfo customizationInfo = getProduct().getCustomizationInfo(); - if (customizationInfo == null) { - IProductModel productModel = (IProductModel) getPage().getPDEEditor().getAggregateModel(); - customizationInfo = productModel.getFactory().createCustomizationInfo(); - productModel.getProduct().setCustomizationInfo(customizationInfo); - } - return customizationInfo; - } - COM: <s> the customization info for this product </s> - diff --git a/funcom_test/47470258.txt b/funcom_test/47470258.txt deleted file mode 100644 index f03715c85910fceb4d2cf74c9f24c177c4e56507..0000000000000000000000000000000000000000 --- a/funcom_test/47470258.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void fillContextMenuRemoveAction(IMenuManager manager, TocObject tocObject) { - // Add to the main context menu - - // Delete task object action - fRemoveObjectAction.setToRemove(tocObject); - manager.add(fRemoveObjectAction); - - fRemoveObjectAction.setEnabled(tocObject.canBeRemoved() && fModel.isEditable()); - } - COM: <s> add the remove action to the context menu </s> - diff --git a/funcom_test/47470980.txt b/funcom_test/47470980.txt deleted file mode 100644 index 235eb0189d7cfe680afb5430e504dd023b181ea5..0000000000000000000000000000000000000000 --- a/funcom_test/47470980.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private IPluginModelBase getPluginModelBase() { - FormEditor formEditor = fSourcePage.getEditor(); - if ((formEditor instanceof PDEFormEditor) == false) { - return null; - } - IBaseModel bModel = ((PDEFormEditor) formEditor).getAggregateModel(); - if ((bModel instanceof IPluginModelBase) == false) { - return null; - } - return (IPluginModelBase) bModel; - } - COM: <s> returns a bundle plugin model which has a get id method that works </s> - diff --git a/funcom_test/47471103.txt b/funcom_test/47471103.txt deleted file mode 100644 index ecdff8c8d4ebfb44b9edcc1d2c6e5bb6d5010957..0000000000000000000000000000000000000000 --- a/funcom_test/47471103.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void synchronizeOutlinePage() { - // Get current page - IFormPage page = getActivePageInstance(); - - if (page instanceof PDESourcePage) { - // Synchronize with current source page - ((PDESourcePage) page).synchronizeOutlinePage(); - } else { - // Synchronize with current form page - // This currently does not work - // TODO: Fix 'Link with Editor' functionality for form pages - if (getFormOutline() != null) { - getFormOutline().setSelection(getSelection()); - } - } - } - COM: <s> triggered by toggling the link with editor button in the outline view </s> - diff --git a/funcom_test/47471205.txt b/funcom_test/47471205.txt deleted file mode 100644 index 6fd5ff76a1b4fa20043cca70e4cea38d36c377f5..0000000000000000000000000000000000000000 --- a/funcom_test/47471205.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void handleTaskObjectRemove(TocObject object) { - // Remove the item - fTocTree.remove(object); - - // Select the appropriate object - TocObject tocObject = fRemoveObjectAction.getNextSelection(); - if (tocObject == null) { - tocObject = object.getParent(); - } - - if (tocObject.equals(object.getParent())) { - fTocTree.refresh(object.getParent()); - } - - if (!fDragFromHere) { - fTocTree.setSelection(new StructuredSelection(tocObject), true); - } - } - COM: <s> an object was removed update the ui to respond to the removal </s> - diff --git a/funcom_test/47472267.txt b/funcom_test/47472267.txt deleted file mode 100644 index 9d37ab5d3619e7ca70c7eb6e4f939119236fd12b..0000000000000000000000000000000000000000 --- a/funcom_test/47472267.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected int determineLocation(DropTargetEvent event) { - if (!(event.item instanceof Item)) { - return LOCATION_NONE; - } - Item item = (Item) event.item; - Point coordinates = new Point(event.x, event.y); - coordinates = getViewer().getControl().toControl(coordinates); - if (item != null) { - Rectangle bounds = getBounds(item); - if (bounds == null) { - return LOCATION_NONE; - } - } - return LOCATION_ON; - } - COM: <s> returns the position of the given events coordinates </s> - diff --git a/funcom_test/47472492.txt b/funcom_test/47472492.txt deleted file mode 100644 index 36a82aaf8e224b20a7f9c18b865bc943ddc652e7..0000000000000000000000000000000000000000 --- a/funcom_test/47472492.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void setPathEntry(IFile file) { - IPath path = file.getFullPath(); - if (file.getProject().equals(fTopic.getModel().getUnderlyingResource().getProject())) { - fLinkEntry.setValue(path.removeFirstSegments(1).toString()); - } else { - fLinkEntry.setValue(".." + path.toString()); //$NON-NLS-1$ - } - } - COM: <s> sets the text of the form entry used to supply a link </s> - diff --git a/funcom_test/47472934.txt b/funcom_test/47472934.txt deleted file mode 100644 index b0fc39d340b802302a75aa700b358bdda819ef27..0000000000000000000000000000000000000000 --- a/funcom_test/47472934.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private IInformationControlCreator getOutlinePresenterControlCreator(ISourceViewer sourceViewer, final String commandId) { - return new IInformationControlCreator() { - public IInformationControl createInformationControl(Shell parent) { - int shellStyle = SWT.RESIZE; - QuickOutlinePopupDialog dialog = new QuickOutlinePopupDialog(parent, shellStyle, fSourcePage, fSourcePage); - return dialog; - } - }; - } - COM: <s> returns the outline presenter control creator </s> - diff --git a/funcom_test/47472946.txt b/funcom_test/47472946.txt deleted file mode 100644 index 3344ae22ec975eb94a6d53f74fad6b7f7dde68b7..0000000000000000000000000000000000000000 --- a/funcom_test/47472946.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void adaptToPreferenceChange(PropertyChangeEvent event) { - if (fTagScanner == null) - return; //property change before the editor is fully created - if (affectsColorPresentation(event)) - fColorManager.handlePropertyChangeEvent(event); - fTagScanner.adaptToPreferenceChange(event); - fPdeScanner.adaptToPreferenceChange(event); - String property = event.getProperty(); - if (property.startsWith(IPDEColorConstants.P_XML_COMMENT)) { - adaptTextAttribute(event); - } - } - COM: <s> preference colors or fonts have changed </s> - diff --git a/funcom_test/47473157.txt b/funcom_test/47473157.txt deleted file mode 100644 index 5f05aa48f61fd3fc67ea33dcaf9abfab27cc4eae..0000000000000000000000000000000000000000 --- a/funcom_test/47473157.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private boolean updateRemoveActionWithSelection(IStructuredSelection selection) { - List objectsToRemove = getRemovableObjectFromSelection(selection); - fRemoveObjectAction.setToRemove((CtxHelpObject[]) objectsToRemove.toArray(new CtxHelpObject[objectsToRemove.size()])); - fRemoveObjectAction.setEnabled(fModel.isEditable()); - return objectsToRemove.size() > 0; - } - COM: <s> updates the remove action if the action should be available for the selection </s> - diff --git a/funcom_test/47473540.txt b/funcom_test/47473540.txt deleted file mode 100644 index ea8ab84786f5248d2b4e5c71dc771baac103e287..0000000000000000000000000000000000000000 --- a/funcom_test/47473540.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setMatcherString(String pattern, boolean update) { - if (pattern.length() == 0) { - fStringMatcher = null; - } else { - fStringMatcher = new StringMatcher(pattern, true, false); - } - // Update the name pattern filter on the tree viewer - fNamePatternFilter.setStringMatcher(fStringMatcher); - // Update the tree viewer according to the pattern - if (update) { - stringMatcherUpdated(); - } - } - COM: <s> sets the patterns to filter out for the receiver </s> - diff --git a/funcom_test/47474376.txt b/funcom_test/47474376.txt deleted file mode 100644 index 2020e2d2c1db135d4b7328fd8dbaa0150391e203..0000000000000000000000000000000000000000 --- a/funcom_test/47474376.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void dragStart(DragSourceEvent event) { - - // Workaround for 1GEUS9V - DragSource dragSource = (DragSource) event.widget; - Control control = dragSource.getControl(); - if (control != control.getDisplay().getFocusControl()) { - event.doit = false; - return; - } - - FileAdapter[] files = getSelectedFiles(); - - if (files.length == 0) { - event.doit = false; - return; - } - event.doit = true; - } - COM: <s> all selection must be files or folders </s> - diff --git a/funcom_test/47474480.txt b/funcom_test/47474480.txt deleted file mode 100644 index ffb93d906cca2c60a238eb489d8a73bef39909d2..0000000000000000000000000000000000000000 --- a/funcom_test/47474480.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void generateFiles(IProgressMonitor monitor) throws CoreException { - // Generate files using the default template location - generateFiles(monitor, getTemplateLocation()); - // Generate files using the shared branding location (for splash screen) - Bundle templateBundle = Platform.getBundle("org.eclipse.pde.ui.templates"); //$NON-NLS-1$ - if (templateBundle == null) { - return; - } - generateFiles(monitor, templateBundle.getEntry("branding/")); //$NON-NLS-1$ - } - COM: <s> generates files as part of the template execution </s> - diff --git a/funcom_test/47475768.txt b/funcom_test/47475768.txt deleted file mode 100644 index 1af259bd531bff4506240964e496bc1bb506d2ca..0000000000000000000000000000000000000000 --- a/funcom_test/47475768.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void createImportChoicesGroup(Composite container) { - Group importChoices = SWTFactory.createGroup(container, PDEUIMessages.ImportWizard_FirstPage_importGroup, 1, 1, GridData.FILL_HORIZONTAL); - scanButton = SWTFactory.createRadioButton(importChoices, PDEUIMessages.ImportWizard_FirstPage_scanAll); - importButton = SWTFactory.createRadioButton(importChoices, PDEUIMessages.ImportWizard_FirstPage_importPrereqs); - } - COM: <s> create the import choices group </s> - diff --git a/funcom_test/47476309.txt b/funcom_test/47476309.txt deleted file mode 100644 index e129187df86909a37303288f370471a37b7b5cf8..0000000000000000000000000000000000000000 --- a/funcom_test/47476309.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void initializeModel(CtxHelpModel model) { - CtxHelpContext context = model.getFactory().createContext(); - context.setID(PDEUIMessages.NewCtxHelpOperation_ExampleContextId); - model.getCtxHelpRoot().addChild(context); - CtxHelpTopic topic = model.getFactory().createTopic(); - topic.setLabel(PDEUIMessages.NewCtxHelpOperation_ExampleTopicLabel); - context.addChild(topic); - } - COM: <s> initialize the xml with example entries </s> - diff --git a/funcom_test/47476403.txt b/funcom_test/47476403.txt deleted file mode 100644 index 0ebe48fbd3e79c1041610b284a46c5ba99773520..0000000000000000000000000000000000000000 --- a/funcom_test/47476403.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException { - - try { - monitor.beginTask(PDEUIMessages.ConvertedProjectWizard_converting, projectsToConvert.length); - - for (int i = 0; i < projectsToConvert.length; i++) { - IProject projectToConvert = projectsToConvert[i]; - - convertProject(projectToConvert, monitor); - monitor.worked(1); - } - - } catch (CoreException e) { - PDEPlugin.logException(e); - } finally { - monitor.done(); - } - } - COM: <s> convert a normal java project into a plug in project </s> - diff --git a/funcom_test/47478165.txt b/funcom_test/47478165.txt deleted file mode 100644 index bc6d960732b620b57443bf7921aab51b35f0a627..0000000000000000000000000000000000000000 --- a/funcom_test/47478165.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public IPath findSourcePath(IPluginBase pluginBase, IPath sourceLibraryPath) { - if (pluginBase.getId() == null || pluginBase.getVersion() == null) { - return null; - } - IPath relativePath = getRelativePath(pluginBase, sourceLibraryPath); - IPath result = searchUserSpecifiedLocations(relativePath); - if (result == null) { - result = searchBundleManifestLocations(pluginBase); - if (result == null) { - result = searchExtensionLocations(relativePath); - } - } - return result; - } - COM: <s> searches source locations for one that provides source for the given plugin base </s> - diff --git a/funcom_test/47478307.txt b/funcom_test/47478307.txt deleted file mode 100644 index b0cccb16ea6395f80cff779054c9328a8e5e9c3d..0000000000000000000000000000000000000000 --- a/funcom_test/47478307.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private IPath searchUserSpecifiedLocations(IPath relativePath) { - List userLocations = getUserLocations(); - for (Iterator iterator = userLocations.iterator(); iterator.hasNext();) { - SourceLocation currentLocation = (SourceLocation) iterator.next(); - IPath fullPath = currentLocation.getPath().append(relativePath); - File file = fullPath.toFile(); - if (file.exists()) { - return fullPath; - } - } - return null; - } - COM: <s> searches through all known user specified locations appending the relative </s> - diff --git a/funcom_test/47478323.txt b/funcom_test/47478323.txt deleted file mode 100644 index b16052275f123d8c8666f97f70fcfb1d05274a99..0000000000000000000000000000000000000000 --- a/funcom_test/47478323.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private IPath searchExtensionLocations(IPath relativePath) { - List extensionLocations = getExtensionLocations(); - for (Iterator iterator = extensionLocations.iterator(); iterator.hasNext();) { - SourceLocation currentLocation = (SourceLocation) iterator.next(); - IPath fullPath = currentLocation.getPath().append(relativePath); - File file = fullPath.toFile(); - if (file.exists()) { - return fullPath; - } - } - return null; - } - COM: <s> searches through all known source locations added via extension points appending </s> - diff --git a/funcom_test/47478359.txt b/funcom_test/47478359.txt deleted file mode 100644 index d3558ccdb399abd2d71203fac7bcb3616a0387d7..0000000000000000000000000000000000000000 --- a/funcom_test/47478359.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void parseSavedSourceLocations(String text, List entries) { - text = text.replace(File.pathSeparatorChar, ';'); - StringTokenizer stok = new StringTokenizer(text, ";"); //$NON-NLS-1$ - while (stok.hasMoreTokens()) { - String token = stok.nextToken(); - SourceLocation location = parseSourceLocation(token); - if (location != null) - entries.add(location); - } - } - COM: <s> parses serialized source locations into an array list of user specified source locations </s> - diff --git a/funcom_test/47478381.txt b/funcom_test/47478381.txt deleted file mode 100644 index 0e6ceee83578cfa1e85b9da587a0def1f8782f13..0000000000000000000000000000000000000000 --- a/funcom_test/47478381.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private SourceLocation parseSourceLocation(String text) { - String path; - try { - text = text.trim(); - int commaIndex = text.lastIndexOf(','); - if (commaIndex == -1) - return new SourceLocation(new Path(text)); - - int atLoc = text.indexOf('@'); - path = (atLoc == -1) ? text.substring(0, commaIndex) : text.substring(atLoc + 1, commaIndex); - } catch (RuntimeException e) { - return null; - } - return new SourceLocation(new Path(path)); - } - COM: <s> parses the given text into a single source location </s> - diff --git a/funcom_test/47478478.txt b/funcom_test/47478478.txt deleted file mode 100644 index 6b9a1a6fa4e8b6ef05b779cbd504fe42c6c17d19..0000000000000000000000000000000000000000 --- a/funcom_test/47478478.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected boolean isInterestingFolder(IFolder folder) { - if (folder.getName().equals("META-INF") && folder.getParent() instanceof IProject) { //$NON-NLS-1$ - return true; - } - - if (folder.getName().equals("schema") && folder.getParent() instanceof IProject) { //$NON-NLS-1$ - return true; - } - - return false; - } - COM: <s> returns true if the folder being visited is of interest to pde </s> - diff --git a/funcom_test/47478590.txt b/funcom_test/47478590.txt deleted file mode 100644 index 75d1763c855a36cbfd39f62f041c6272a6d67e57..0000000000000000000000000000000000000000 --- a/funcom_test/47478590.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private IFeatureImport findImport(List imports, String id, String version, int match) { - for (int i = 0; i < imports.size(); i++) { - IFeatureImport iimport = (IFeatureImport) imports.get(i); - if (iimport.getId().equals(id)) { - if (version == null) - return iimport; - if (version.equals(iimport.getVersion()) && match == iimport.getMatch()) - return iimport; - } - } - return null; - } - COM: <s> finds a given import in the list </s> - diff --git a/funcom_test/47478599.txt b/funcom_test/47478599.txt deleted file mode 100644 index 9a6e9eb062d8f5f830ef9ca1200343406194fb53..0000000000000000000000000000000000000000 --- a/funcom_test/47478599.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void resetState(PDEState state) { - if (fState != null && fState.equals(state)) - return; - // clear all models and add new ones - int type = IModelProviderEvent.TARGET_CHANGED; - IModel[] removed = fState.getTargetModels(); - if (removed.length > 0) - type |= IModelProviderEvent.MODELS_REMOVED; - IModel[] added = state.getTargetModels(); - if (added.length > 0) - type |= IModelProviderEvent.MODELS_ADDED; - modelsChanged(new ModelProviderEvent(state, type, added, removed, new IModel[0])); - - fireStateChanged(state); - } - COM: <s> sets the pde state </s> - diff --git a/funcom_test/47478600.txt b/funcom_test/47478600.txt deleted file mode 100644 index 5ba47c23b7bf11525bdbc52f3ece4cbb6910c9b2..0000000000000000000000000000000000000000 --- a/funcom_test/47478600.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public IFeatureModel findFeatureModel(String id, String version) { - init(); - IFeatureModel[] models = fActiveModels.get(id, version); - for (int i = 0; i < models.length; i++) { - if (models[i].isValid()) { - return models[i]; - } - } - if (models.length == 0 && "0.0.0".equals(version)) { //$NON-NLS-1$ - return findFeatureModel(id); - } - return null; - } - COM: <s> finds active model with a given id and version </s> - diff --git a/funcom_test/47479268.txt b/funcom_test/47479268.txt deleted file mode 100644 index 4d498c469adbf80536437fbafe977eceace1a739..0000000000000000000000000000000000000000 --- a/funcom_test/47479268.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Collection getSourceLocations() { - Collection result = new ArrayList(fPluginToSourceBundle.values().size()); - for (Iterator iterator = fPluginToSourceBundle.values().iterator(); iterator.hasNext();) { - IPluginModelBase currentBundle = (IPluginModelBase) iterator.next(); - SourceLocation currentLocation = new SourceLocation(new Path(currentBundle.getInstallLocation())); - currentLocation.setUserDefined(false); - result.add(currentLocation); - } - return result; - } - COM: <s> returns the collection of source locations found when searching </s> - diff --git a/funcom_test/47479282.txt b/funcom_test/47479282.txt deleted file mode 100644 index a5c41146aba475e5e4f6cf25f01cf9c3d1e241d7..0000000000000000000000000000000000000000 --- a/funcom_test/47479282.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Set getAllSourceRoots(String pluginName, Version pluginVersion) { - Set pluginSourceRoots = new HashSet(); - ManifestElement[] manifestElements = getSourceEntries(pluginName, pluginVersion); - if (manifestElements != null) { - for (int j = 0; j < manifestElements.length; j++) { - ManifestElement currentElement = manifestElements[j]; - addSourceRoots(currentElement.getDirective("roots"), pluginSourceRoots); //$NON-NLS-1$ - } - } - return pluginSourceRoots; - } - COM: <s> returns all of the source roots specified in the source bundle providing </s> - diff --git a/funcom_test/47479685.txt b/funcom_test/47479685.txt deleted file mode 100644 index 0b581a93e26bc9788b60dfb32883827760f4f4a3..0000000000000000000000000000000000000000 --- a/funcom_test/47479685.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private PluginInfo parsePluginInfo(URL pluginLocation) throws PluginConversionException { - InputStream input = null; - try { - input = new BufferedInputStream(pluginLocation.openStream()); - return new PluginConverterParser(context, target).parsePlugin(input); - } catch (Exception e) { - String message = NLS.bind(PDECoreMessages.PluginConverter_EclipseConverterErrorParsingPluginManifest, pluginManifestLocation); - throw new PluginConversionException(message, e); - } finally { - if (input != null) - try { - input.close(); - } catch (IOException e) { - //ignore exception - } - } - } - COM: <s> parses the plugin manifest to find out the plug in unique identifier </s> - diff --git a/funcom_test/47480323.txt b/funcom_test/47480323.txt deleted file mode 100644 index bacdadd9ae3dcddb01cec63ce4c409c1252d18ca..0000000000000000000000000000000000000000 --- a/funcom_test/47480323.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setDescription(String description) { - IDocumentElementNode node = getChildNode(CtxHelpDescription.class); - if (node instanceof CtxHelpDescription) { - if (description == null) { - removeChildNode(node, true); - } else { - ((CtxHelpDescription) node).setDescription(description); - } - } else if (description != null) { - CtxHelpDescription newDescription = getModel().getFactory().createDescription(); - newDescription.setDescription(description); - addChildNode(newDescription, 0, true); - } - } - COM: <s> set the description to be associated with this context </s> - diff --git a/funcom_test/4750108.txt b/funcom_test/4750108.txt deleted file mode 100644 index e31a864b4deeee57f6a76791a2d404728f69ca43..0000000000000000000000000000000000000000 --- a/funcom_test/4750108.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void flushBase64() throws java.io.IOException { - if (position > 0) { - if (encode) { - out.write(encode3to4(b4, buffer, position)); - position = 0; - } else { // end if: encoding - throw new java.io.IOException("Base64 input not properly padded."); - } // end else: decoding - } // end if: buffer partially full - - } // end flush - COM: <s> method added by phil </s> - diff --git a/funcom_test/47570673.txt b/funcom_test/47570673.txt deleted file mode 100644 index 6665243b76aee1faa05298252a32a69996ae51fe..0000000000000000000000000000000000000000 --- a/funcom_test/47570673.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void scroll() { - this.removeAll(); - this.add(scrollUp); - this.add(scrollDown); - for(int i = index; i < index + 3 && i < serverConnect.size(); i++) { - serverName.get(i).setLocation(36, (i * 24) + 4); - this.add(serverName.get(i)); - serverConnect.get(i).setLocation(320, i * 24); - this.add(serverConnect.get(i)); - } - } - COM: <s> handles scrolling through the list </s> - diff --git a/funcom_test/47570689.txt b/funcom_test/47570689.txt deleted file mode 100644 index 3ba38f5be1083ed378f00fe834cd057d8d679dca..0000000000000000000000000000000000000000 --- a/funcom_test/47570689.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void goToLogin() { - m_logo.setVisible(true); - m_login.setText("Login"); - m_userLabel.setLocation(16, 108); - m_username.setLocation(16, 128); - m_passLabel.setLocation(16, 154); - m_password.setLocation(16, 172); - m_confirmPass.setVisible(false); - m_confPassLabel.setVisible(false); - m_male.setVisible(false); - m_female.setVisible(false); - this.setTitle("Login"); - } - COM: <s> brings the user to the login dialog </s> - diff --git a/funcom_test/47570692.txt b/funcom_test/47570692.txt deleted file mode 100644 index 7b32d48eb408173183495d74706cae39413e869b..0000000000000000000000000000000000000000 --- a/funcom_test/47570692.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void goToRegistration() { - m_logo.setVisible(false); - m_login.setText("Cancel"); - m_userLabel.setLocation(16, 4); - m_username.setLocation(16, 24); - m_passLabel.setLocation(16, 52); - m_password.setLocation(16, 70); - m_confirmPass.setVisible(true); - m_confPassLabel.setVisible(true); - m_male.setVisible(true); - m_female.setVisible(true); - this.setTitle("Registration"); - } - COM: <s> brings the user to the registration dialog </s> - diff --git a/funcom_test/47570750.txt b/funcom_test/47570750.txt deleted file mode 100644 index 4de6da55f6aa66524a717c1e5109f553103e1d6e..0000000000000000000000000000000000000000 --- a/funcom_test/47570750.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void sessionClosed(IoSession session) { - try { - super.sessionClosed(session); - thisGame.setIsPlaying(false); - thisGame.setIsConnected(false); - GameClient.setServer(""); - GameClient.getStartScreen().getLoginFrame().setVisible(false); - GameClient.getStartScreen().getServerSelector().setVisible(true); - GameClient.getStartScreen().setVisible(true); - thisGame.getUI().setVisible(false); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> called once the session is closed </s> - diff --git a/funcom_test/47571124.txt b/funcom_test/47571124.txt deleted file mode 100644 index d0bbe7a0fb2f7e648d86042e04d0179bf8260de6..0000000000000000000000000000000000000000 --- a/funcom_test/47571124.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void run() { - ServerMap map = null; - Random random = new Random(); - while(true) { - while(map == null) { - map = this.getMap(random.nextInt(99) - 50, random.nextInt(99) - 50); - try { - Thread.sleep(25); - } catch(Exception e){} - } - NonPlayerChar npc = map.getRandomNPC(); - if(npc != null) - while(!npc.move(GameServer.getMechanics().getRandomDirection())); - try { - Thread.sleep(500); - } catch(Exception e){} - map = null; - } - } - COM: <s> handles npc movements </s> - diff --git a/funcom_test/47571219.txt b/funcom_test/47571219.txt deleted file mode 100644 index f24209e2e70230f19dabb33d2ec0d904ca5029fb..0000000000000000000000000000000000000000 --- a/funcom_test/47571219.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String getWildSpecies() { - ArrayList<String> potentialSpecies = new ArrayList<String>(); - do { - for (String species : m_dayPokemonChances.keySet()) { - if (random.nextInt(101) < m_dayPokemonChances.get(species)) - potentialSpecies.add(species); - } - } while (potentialSpecies.size() <= 0); - return potentialSpecies.get(random.nextInt(potentialSpecies.size())); - } - COM: <s> returns a string of possible wild pokemons </s> - diff --git a/funcom_test/47571245.txt b/funcom_test/47571245.txt deleted file mode 100644 index 727336dd4a3dc616ed8af0214a55c19e6968e047..0000000000000000000000000000000000000000 --- a/funcom_test/47571245.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String getSurfSpecies() { - ArrayList<String> potentialSpecies = new ArrayList<String>(); - do { - for (String surfspecies : m_nightPokemonChances.keySet()) { - if (random.nextInt(101) < m_nightPokemonChances.get(surfspecies)) - potentialSpecies.add(surfspecies); - } - } while (potentialSpecies.size() <= 0); - return potentialSpecies.get(random.nextInt(potentialSpecies.size())); - } - COM: <s> returns a string of potential species that appear while surfing </s> - diff --git a/funcom_test/47571554.txt b/funcom_test/47571554.txt deleted file mode 100644 index 78e3dd8d0a10e8741e2cf8d5966ea77dbace50da..0000000000000000000000000000000000000000 --- a/funcom_test/47571554.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public NonPlayerChar getNPCAt(int x, int y) { - NonPlayerChar n; - for(int i = 0; i < m_npcs.size(); i++) { - n = m_npcs.get(i); - if (n.getX() / 32 == x && (n.getY() + 8) /32 == y) - return n; - } - n = null; - return n; - } - COM: <s> returns the npc at x y </s> - diff --git a/funcom_test/47571597.txt b/funcom_test/47571597.txt deleted file mode 100644 index 932f047ab78d025d145b4ba0fcffea580e4fee1b..0000000000000000000000000000000000000000 --- a/funcom_test/47571597.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public WarpTile isWarped(int x, int y) { - for(int i = 0; i < m_warpTiles.size(); i++) { - if(m_warpTiles.get(i).getX() == x && m_warpTiles.get(i).getY() == y) - return m_warpTiles.get(i); - } - return null; - } - COM: <s> returns if the char collided with a warp tile </s> - diff --git a/funcom_test/47571713.txt b/funcom_test/47571713.txt deleted file mode 100644 index f0f7ab1655b7b2d32a67a84df89c6f56ddb817e0..0000000000000000000000000000000000000000 --- a/funcom_test/47571713.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void saveToFile(File f) { - try { - FileOutputStream file = new FileOutputStream(f); - saveToFile(file); - file.close(); - } catch (FileNotFoundException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - } - COM: <s> save the move sets to a file </s> - diff --git a/funcom_test/47571922.txt b/funcom_test/47571922.txt deleted file mode 100644 index 707123863a5fce887eeb81c01a23f04eceb8da6e..0000000000000000000000000000000000000000 --- a/funcom_test/47571922.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public StatusEffect getEffect(int lock) { - synchronized (m_statuses) { - Iterator i = m_statuses.iterator(); - while (i.hasNext()) { - StatusEffect eff = (StatusEffect)i.next(); - if ((eff == null) || !eff.isActive()) { - continue; - } - if (eff.getLock() == lock) { - return eff; - } - } - } - return null; - } - COM: <s> return the effect applied to this pokemon of a particular lock or </s> - diff --git a/funcom_test/47572226.txt b/funcom_test/47572226.txt deleted file mode 100644 index 70d6788b34f71060c97efb3dc9569cf43279208c..0000000000000000000000000000000000000000 --- a/funcom_test/47572226.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void removeStatus(StatusEffect eff) { - synchronized (m_statuses) { - Iterator i = m_statuses.iterator(); - while (i.hasNext()) { - StatusEffect effect = (StatusEffect)i.next(); - if (effect == eff) { - unapplyEffect(eff); - return; - } - } - } - } - COM: <s> remove a status effect from this pokemon </s> - diff --git a/funcom_test/47572403.txt b/funcom_test/47572403.txt deleted file mode 100644 index 827d3b8941aaba405cd9afa978462aa385d297e7..0000000000000000000000000000000000000000 --- a/funcom_test/47572403.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void switchOutHealthyPoke() { - for(int i = 1; i < getParty().length && getParty()[i] != null; i++) { - if(getParty()[i].getHealth() > 0) { - Pokemon temp = getParty()[0]; - getParty()[0] = getParty()[i]; - getParty()[i] = temp; - arrangeParty(); - initialiseClientParty(); - break; - } - } - } - COM: <s> puts a healthy pokemon at the front of the players party </s> - diff --git a/funcom_test/47572552.txt b/funcom_test/47572552.txt deleted file mode 100644 index 963c8a80e2466f16bc1df9dd6d8dadd088580708..0000000000000000000000000000000000000000 --- a/funcom_test/47572552.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void switchPokes(int a, int b) throws Exception { - if (a >= 0 && b <= 5 && getParty()[a] != null && getParty()[b] != null - && !isBlocked()) { - Pokemon temp = getParty()[a]; - getParty()[a] = getParty()[b]; - getParty()[b] = temp; - arrangeParty(); - initialiseClientParty(); - } - } - COM: <s> switches two pokemon in the players party </s> - diff --git a/funcom_test/47572602.txt b/funcom_test/47572602.txt deleted file mode 100644 index 825c50034c942da7ffeebb3cd4ad61cfb6d4787b..0000000000000000000000000000000000000000 --- a/funcom_test/47572602.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void initialiseClientBag() { - if(!m_bagInitialised) { - String packet = "Bi"; - for(int i = 0; i < m_bag.getContents().size();i++) { - packet = packet + m_bag.getContents().get(i).getIdValue() + m_bag.getContents().get(i).getQuantityValue(); - } - this.getIoSession().write(packet); - m_bagInitialised = true; - } - } - COM: <s> sends bag information to the client </s> - diff --git a/funcom_test/47592592.txt b/funcom_test/47592592.txt deleted file mode 100644 index d54fc2c9c675bb2c7f86beffa4eb702644738f5b..0000000000000000000000000000000000000000 --- a/funcom_test/47592592.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void propertyChange(PropertyChangeEvent evt) { - String prop = evt.getPropertyName(); - if (UIElementPart.CHILDREN.equals(prop)) { - if (evt.getOldValue() instanceof Integer) - // new child - addChild(createChild(evt.getNewValue()), ((Integer) evt - .getOldValue()).intValue()); - else - // remove child - removeChild((EditPart) getViewer().getEditPartRegistry().get( - evt.getOldValue())); - } else { - refreshVisuals(); - } - } - COM: <s> handles changes in properties of this </s> - diff --git a/funcom_test/47619221.txt b/funcom_test/47619221.txt deleted file mode 100644 index 9c4562ea65b7221ba35076a6a667bf64020e370a..0000000000000000000000000000000000000000 --- a/funcom_test/47619221.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private void _init() throws Exception { - planDataProviderMisPlanes.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.planRowSetMisPlanes}")); - notificacionDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.notificacionRowSet}")); - } - COM: <s> p automatically managed component initialization </s> - diff --git a/funcom_test/47628769.txt b/funcom_test/47628769.txt deleted file mode 100644 index 13d3535236eb09d171d4f70d9d02751670383056..0000000000000000000000000000000000000000 --- a/funcom_test/47628769.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setViewSelectionModel(ListSelectionModel selection) { - ListSelectionModel old = this.viewSelection; - if (old != null) { - old.removeListSelectionListener(viewSelectionListener); - modelSelection.clearSelection(); - } - this.viewSelection = selection; - mapTowardsModel(); - viewSelection.addListSelectionListener(getViewSelectionListener()); - isListening = true; - } - COM: <s> sets the view selection model </s> - diff --git a/funcom_test/47628860.txt b/funcom_test/47628860.txt deleted file mode 100644 index bcf0c5b8c60e42cc509755c789bcf1782ca0bbda..0000000000000000000000000000000000000000 --- a/funcom_test/47628860.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setSearchable(Searchable searchable) { - if ((this.searchable != null) && this.searchable.equals(searchable)) return; - Object old = this.searchable; - this.searchable = searchable; - setLastIndex(-1); - firePropertyChange("searchable", old, this.searchable); - } - COM: <s> sets the searchable targeted with this dialog </s> - diff --git a/funcom_test/47629678.txt b/funcom_test/47629678.txt deleted file mode 100644 index c45ac333b3afb1a2dce535dff2a45c82a900b6c3..0000000000000000000000000000000000000000 --- a/funcom_test/47629678.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setCallback(String callback) { - String[] elems = callback.split("#", 2); - if (elems.length == 2) { - try { - Class clz = Class.forName(elems[0]); - - // May throw a security exception in an Applet - // context. - Object obj = clz.newInstance(); - - registerCallback(obj, elems[1]); - } catch (Exception ex) { - System.out.println("ERROR: setCallback(" + callback - + ") - " + ex.getMessage()); - } - } - } - COM: <s> the callback string will be called to register the action callback </s> - diff --git a/funcom_test/47629915.txt b/funcom_test/47629915.txt deleted file mode 100644 index 028674fdb2101279fa80eecbe2227ce466b0d599..0000000000000000000000000000000000000000 --- a/funcom_test/47629915.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public String getPassword(String user, String server) { - - try { - - KeyStore.SecretKeyEntry entry2 = (KeyStore.SecretKeyEntry) store - .getEntry(user + "@" + server, - new KeyStore.PasswordProtection(masterPassword)); - return new String(entry2.getSecretKey().getEncoded()); - } catch (KeyStoreException e) { - e.printStackTrace(); - } catch (UnrecoverableEntryException ce) { - ce.printStackTrace(); - } catch (NoSuchAlgorithmException ne) { - ne.printStackTrace(); - } - - return null; - } - COM: <s> fetches the password for a given account user and server </s> - diff --git a/funcom_test/47631587.txt b/funcom_test/47631587.txt deleted file mode 100644 index 4fc98cf6a82c8d45375bbfd89ca56237872be9ef..0000000000000000000000000000000000000000 --- a/funcom_test/47631587.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void tableChanged(TableModelEvent e) { - // JW: make Selection deaf ... super doesn't know about row - // mapping and sets rowSelection in model coordinates - // causing complete confusion. - getSelection().lock(); - super.tableChanged(e); - updateSelectionAndRowModel(e); - use(filters); - } - COM: <s> additionally updates filtered state </s> - diff --git a/funcom_test/47634329.txt b/funcom_test/47634329.txt deleted file mode 100644 index 110c7cbf866a6b0bcc8493921b9cdf546d3e510d..0000000000000000000000000000000000000000 --- a/funcom_test/47634329.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public TableCellRenderer getNewDefaultRenderer(Class columnClass) { - TableCellRenderer renderer = getDefaultRenderer(columnClass); - if (renderer != null) { - try { - return (TableCellRenderer) renderer.getClass().newInstance(); - } catch (Exception e) { - e.printStackTrace(); - } - } - return null; - } - COM: <s> returns a new instance of the default renderer for the specified class </s> - diff --git a/funcom_test/47639277.txt b/funcom_test/47639277.txt deleted file mode 100644 index c4713261d1187b9cbcf658262e4ea10eb262b108..0000000000000000000000000000000000000000 --- a/funcom_test/47639277.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Command getCommand(Request request) { - if (request instanceof ReconnectRequest) { - Object view = ((ReconnectRequest) request).getConnectionEditPart() - .getModel(); - if (view instanceof View) { - Integer id = new Integer( - MethodContentClassDiagramVisualIDRegistry - .getVisualID((View) view)); - request.getExtendedData().put(VISUAL_ID_KEY, id); - } - } - return super.getCommand(request); - } - COM: <s> extended request data key to hold editpart visual id </s> - diff --git a/funcom_test/47641936.txt b/funcom_test/47641936.txt deleted file mode 100644 index 22e65a8e2da93b2420f5b82f4ccb29ecd661e4cf..0000000000000000000000000000000000000000 --- a/funcom_test/47641936.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private PaletteContainer createEntities1Group() { - PaletteDrawer paletteContainer = new PaletteDrawer( - Messages.Entities1Group_title); - paletteContainer.add(createPackage1CreationTool()); - paletteContainer.add(createTask2CreationTool()); - paletteContainer.add(createRole3CreationTool()); - paletteContainer.add(createStep4CreationTool()); - paletteContainer.add(createDiscipline5CreationTool()); - paletteContainer.add(createProfile6CreationTool()); - paletteContainer.add(createTransformationRule7CreationTool()); - paletteContainer.add(createCode8CreationTool()); - paletteContainer.add(createExtraModel9CreationTool()); - paletteContainer.add(createUmlModel10CreationTool()); - return paletteContainer; - } - COM: <s> creates entities palette tool group </s> - diff --git a/funcom_test/47651682.txt b/funcom_test/47651682.txt deleted file mode 100644 index 8db659101df559362aa35c1d2eb6cf206afa8cad..0000000000000000000000000000000000000000 --- a/funcom_test/47651682.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRolePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RoleWorkProductAssociation_role_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RoleWorkProductAssociation_role_feature", "_UI_RoleWorkProductAssociation_type"), - MethodusecasediagramPackage.Literals.ROLE_WORK_PRODUCT_ASSOCIATION__ROLE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the role feature </s> - diff --git a/funcom_test/47651686.txt b/funcom_test/47651686.txt deleted file mode 100644 index 80713855c23a0a34506466a7f69abf76deac6477..0000000000000000000000000000000000000000 --- a/funcom_test/47651686.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addWorkProductPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RoleWorkProductAssociation_workProduct_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RoleWorkProductAssociation_workProduct_feature", "_UI_RoleWorkProductAssociation_type"), - MethodusecasediagramPackage.Literals.ROLE_WORK_PRODUCT_ASSOCIATION__WORK_PRODUCT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the work product feature </s> - diff --git a/funcom_test/47651708.txt b/funcom_test/47651708.txt deleted file mode 100644 index b797d9e958437150d2cc96b5f1b3fdf640dc5b41..0000000000000000000000000000000000000000 --- a/funcom_test/47651708.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTaskPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskRoleAssociation_task_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskRoleAssociation_task_feature", "_UI_TaskRoleAssociation_type"), - MethodusecasediagramPackage.Literals.TASK_ROLE_ASSOCIATION__TASK, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the task feature </s> - diff --git a/funcom_test/47658883.txt b/funcom_test/47658883.txt deleted file mode 100644 index f9f2f90e3289b2a53946650a04050a4b2eb192cc..0000000000000000000000000000000000000000 --- a/funcom_test/47658883.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initialize() { - labelDate = new Label(this, SWT.NONE); - labelDate.setText("Date:"); - super.putOnScreen(labelDate, 70, 17); - date = new DateTime(this,SWT.BORDER); - super.putOnScreen(date, 90, 17); - this.setSize(new Point(322, 164)); - - } - COM: <s> this method initializes this </s> - diff --git a/funcom_test/47658891.txt b/funcom_test/47658891.txt deleted file mode 100644 index 54e6c2830e09656a7c0fa716b0aef664982bf931..0000000000000000000000000000000000000000 --- a/funcom_test/47658891.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void createContent(String[] list){ - for (int i=0; i<list.length; i++){ - Button check = new Button(this, SWT.CHECK); - check.setAlignment(SWT.DOWN); - check.setText(list[i]); - buttons.add(check); - super.putOnScreen(check, 16, 16); - Label label = new Label(this, SWT.NONE); - label.setText(list[i]); - label.setAlignment(SWT.DOWN); - super.putOnScreen(label, 100, 16); - } - } - COM: <s> add all the methods content and processes that might be published at all </s> - diff --git a/funcom_test/47660940.txt b/funcom_test/47660940.txt deleted file mode 100644 index 4235c20913c79eaf882e0ec250beb67e6fa14360..0000000000000000000000000000000000000000 --- a/funcom_test/47660940.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private PaletteContainer createWorkflow2Group() { - PaletteDrawer paletteContainer = new PaletteDrawer( - Messages.Workflow2Group_title); - paletteContainer.setId("createWorkflow2Group"); //$NON-NLS-1$ - paletteContainer.setDescription(Messages.Workflow2Group_desc); - paletteContainer.add(createJoinHorizontal1CreationTool()); - paletteContainer.add(createJoinVertical2CreationTool()); - paletteContainer.add(createDecision3CreationTool()); - paletteContainer.add(createMerge4CreationTool()); - paletteContainer.add(createForkHorizontal5CreationTool()); - paletteContainer.add(createForkVertical6CreationTool()); - paletteContainer.add(createInitialState7CreationTool()); - paletteContainer.add(createFinalState8CreationTool()); - return paletteContainer; - } - COM: <s> creates workflow palette tool group </s> - diff --git a/funcom_test/47661022.txt b/funcom_test/47661022.txt deleted file mode 100644 index 244e00822e54bbedcf427c0609d43b974dbb6527..0000000000000000000000000000000000000000 --- a/funcom_test/47661022.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTransformationAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Code_transformationAssociations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Code_transformationAssociations_feature", "_UI_Code_type"), - WorkspacePackage.Literals.CODE__TRANSFORMATION_ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the transformation associations feature </s> - diff --git a/funcom_test/47661038.txt b/funcom_test/47661038.txt deleted file mode 100644 index dc38d3c5122f9d0fba6b12e9c18a2fe8dee81204..0000000000000000000000000000000000000000 --- a/funcom_test/47661038.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCodeAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TransformationRule_codeAssociations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TransformationRule_codeAssociations_feature", "_UI_TransformationRule_type"), - WorkspacePackage.Literals.TRANSFORMATION_RULE__CODE_ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the code associations feature </s> - diff --git a/funcom_test/47661044.txt b/funcom_test/47661044.txt deleted file mode 100644 index 9bb13421433e832e72ff61d10eebc75af12263ce..0000000000000000000000000000000000000000 --- a/funcom_test/47661044.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addProfileAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TransformationRule_profileAssociations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TransformationRule_profileAssociations_feature", "_UI_TransformationRule_type"), - WorkspacePackage.Literals.TRANSFORMATION_RULE__PROFILE_ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the profile associations feature </s> - diff --git a/funcom_test/47661051.txt b/funcom_test/47661051.txt deleted file mode 100644 index b4193aec5c7beed6d621f3144f655d28a82bab2d..0000000000000000000000000000000000000000 --- a/funcom_test/47661051.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUMLModelAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TransformationRule_UMLModelAssociations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TransformationRule_UMLModelAssociations_feature", "_UI_TransformationRule_type"), - WorkspacePackage.Literals.TRANSFORMATION_RULE__UML_MODEL_ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the uml model associations feature </s> - diff --git a/funcom_test/47661053.txt b/funcom_test/47661053.txt deleted file mode 100644 index d809cb473a7b171362c1e1cf765762ef9222c5d1..0000000000000000000000000000000000000000 --- a/funcom_test/47661053.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTargetPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AggregationDisciplineToTask_target_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AggregationDisciplineToTask_target_feature", "_UI_AggregationDisciplineToTask_type"), - WorkspacePackage.Literals.AGGREGATION_DISCIPLINE_TO_TASK__TARGET, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the target feature </s> - diff --git a/funcom_test/47661056.txt b/funcom_test/47661056.txt deleted file mode 100644 index 03a2c2b361a9d1f0cbe2fb055fd788b9cf535589..0000000000000000000000000000000000000000 --- a/funcom_test/47661056.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTransformationTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TransformationRule_transformationType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TransformationRule_transformationType_feature", "_UI_TransformationRule_type"), - WorkspacePackage.Literals.TRANSFORMATION_RULE__TRANSFORMATION_TYPE, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the transformation type feature </s> - diff --git a/funcom_test/47661087.txt b/funcom_test/47661087.txt deleted file mode 100644 index 71923dd7182d79f274887a476a4ab8d876aa12e6..0000000000000000000000000000000000000000 --- a/funcom_test/47661087.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addWorkproductPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationRoleWorkproduct_workproduct_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationRoleWorkproduct_workproduct_feature", "_UI_AssociationRoleWorkproduct_type"), - WorkspacePackage.Literals.ASSOCIATION_ROLE_WORKPRODUCT__WORKPRODUCT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the workproduct feature </s> - diff --git a/funcom_test/47661092.txt b/funcom_test/47661092.txt deleted file mode 100644 index 042a948c320fa5facd4d0bdd8cd944726e49e5c9..0000000000000000000000000000000000000000 --- a/funcom_test/47661092.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationRoleWorkproduct_type_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationRoleWorkproduct_type_feature", "_UI_AssociationRoleWorkproduct_type"), - WorkspacePackage.Literals.ASSOCIATION_ROLE_WORKPRODUCT__TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the type feature </s> - diff --git a/funcom_test/47661098.txt b/funcom_test/47661098.txt deleted file mode 100644 index 638739901d256c17ccde86aa326eebf121981033..0000000000000000000000000000000000000000 --- a/funcom_test/47661098.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addProfilePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationTransformationRuleProfile_profile_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationTransformationRuleProfile_profile_feature", "_UI_AssociationTransformationRuleProfile_type"), - WorkspacePackage.Literals.ASSOCIATION_TRANSFORMATION_RULE_PROFILE__PROFILE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the profile feature </s> - diff --git a/funcom_test/47661103.txt b/funcom_test/47661103.txt deleted file mode 100644 index 2d33bca39d3e5bb59b2d55291a1f5012bcf88689..0000000000000000000000000000000000000000 --- a/funcom_test/47661103.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTransformationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationTransformationRuleProfile_transformation_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationTransformationRuleProfile_transformation_feature", "_UI_AssociationTransformationRuleProfile_type"), - WorkspacePackage.Literals.ASSOCIATION_TRANSFORMATION_RULE_PROFILE__TRANSFORMATION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the transformation feature </s> - diff --git a/funcom_test/47661124.txt b/funcom_test/47661124.txt deleted file mode 100644 index 32fc990d1be043a9aded59cdb00aa1191a3c4ceb..0000000000000000000000000000000000000000 --- a/funcom_test/47661124.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTaskAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Role_taskAssociations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Role_taskAssociations_feature", "_UI_Role_type"), - WorkspacePackage.Literals.ROLE__TASK_ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the task associations feature </s> - diff --git a/funcom_test/47661129.txt b/funcom_test/47661129.txt deleted file mode 100644 index a1a278f9f3632d126bdbdc952748b25cdcd6d33b..0000000000000000000000000000000000000000 --- a/funcom_test/47661129.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addWorkproductAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Role_workproductAssociations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Role_workproductAssociations_feature", "_UI_Role_type"), - WorkspacePackage.Literals.ROLE__WORKPRODUCT_ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the workproduct associations feature </s> - diff --git a/funcom_test/47661133.txt b/funcom_test/47661133.txt deleted file mode 100644 index 9d14a2a619a782587d1cf0c8217a916d2c59f11d..0000000000000000000000000000000000000000 --- a/funcom_test/47661133.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addClassTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_toDelete_classType_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_toDelete_classType_feature", "_UI_toDelete_type"), - WorkspacePackage.Literals.TO_DELETE__CLASS_TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the class type feature </s> - diff --git a/funcom_test/47661159.txt b/funcom_test/47661159.txt deleted file mode 100644 index 67206d01a0ed0cb57cd1d2e07f2dba966ec11147..0000000000000000000000000000000000000000 --- a/funcom_test/47661159.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRoleAssociationsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Task_roleAssociations_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Task_roleAssociations_feature", "_UI_Task_type"), - WorkspacePackage.Literals.TASK__ROLE_ASSOCIATIONS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the role associations feature </s> - diff --git a/funcom_test/47661165.txt b/funcom_test/47661165.txt deleted file mode 100644 index c0314c0269c87f03c5b0d5169aacbcca11bb029f..0000000000000000000000000000000000000000 --- a/funcom_test/47661165.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addRolesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RolePackage_roles_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_RolePackage_roles_feature", "_UI_RolePackage_type"), - WorkspacePackage.Literals.ROLE_PACKAGE__ROLES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the roles feature </s> - diff --git a/funcom_test/47661169.txt b/funcom_test/47661169.txt deleted file mode 100644 index f2e0dc82f565b150559aa2a4e8b833b7b047014b..0000000000000000000000000000000000000000 --- a/funcom_test/47661169.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addWorkproductsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_WorkproductPackage_workproducts_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WorkproductPackage_workproducts_feature", "_UI_WorkproductPackage_type"), - WorkspacePackage.Literals.WORKPRODUCT_PACKAGE__WORKPRODUCTS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the workproducts feature </s> - diff --git a/funcom_test/47661170.txt b/funcom_test/47661170.txt deleted file mode 100644 index c9b666729aa99ba36039c6acba9380e8168ba416..0000000000000000000000000000000000000000 --- a/funcom_test/47661170.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTaskUsesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Task_taskUses_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Task_taskUses_feature", "_UI_Task_type"), - WorkspacePackage.Literals.TASK__TASK_USES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the task uses feature </s> - diff --git a/funcom_test/47661178.txt b/funcom_test/47661178.txt deleted file mode 100644 index 98890dd33cf3b344654262a47626555c3bcd5238..0000000000000000000000000000000000000000 --- a/funcom_test/47661178.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDeletePossiblePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Task_deletePossible_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Task_deletePossible_feature", "_UI_Task_type"), - WorkspacePackage.Literals.TASK__DELETE_POSSIBLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the delete possible feature </s> - diff --git a/funcom_test/47661199.txt b/funcom_test/47661199.txt deleted file mode 100644 index 640027acd0513cc90e0d27670b33f8b004a6aa34..0000000000000000000000000000000000000000 --- a/funcom_test/47661199.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addCodePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationTransformationCode_code_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationTransformationCode_code_feature", "_UI_AssociationTransformationCode_type"), - WorkspacePackage.Literals.ASSOCIATION_TRANSFORMATION_CODE__CODE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the code feature </s> - diff --git a/funcom_test/47661209.txt b/funcom_test/47661209.txt deleted file mode 100644 index fd2b0f99989a4dcffaa13de388ed4b03094a4dc8..0000000000000000000000000000000000000000 --- a/funcom_test/47661209.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDisciplinesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DisciplinePackage_disciplines_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DisciplinePackage_disciplines_feature", "_UI_DisciplinePackage_type"), - WorkspacePackage.Literals.DISCIPLINE_PACKAGE__DISCIPLINES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the disciplines feature </s> - diff --git a/funcom_test/47661233.txt b/funcom_test/47661233.txt deleted file mode 100644 index a4d3f1431a78d64f0f80cc144c00831e05f90b35..0000000000000000000000000000000000000000 --- a/funcom_test/47661233.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUmlModelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationTransformationUmlModel_umlModel_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationTransformationUmlModel_umlModel_feature", "_UI_AssociationTransformationUmlModel_type"), - WorkspacePackage.Literals.ASSOCIATION_TRANSFORMATION_UML_MODEL__UML_MODEL, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the uml model feature </s> - diff --git a/funcom_test/47661261.txt b/funcom_test/47661261.txt deleted file mode 100644 index 34a27976d4e27eeb351d204b2e4ea02d27012d9c..0000000000000000000000000000000000000000 --- a/funcom_test/47661261.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTasksPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskPackage_tasks_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskPackage_tasks_feature", "_UI_TaskPackage_type"), - WorkspacePackage.Literals.TASK_PACKAGE__TASKS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the tasks feature </s> - diff --git a/funcom_test/47661275.txt b/funcom_test/47661275.txt deleted file mode 100644 index 621c7fb0af8389805120f89000f1f8a28d90e68d..0000000000000000000000000000000000000000 --- a/funcom_test/47661275.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addClientPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MethodContent_Client_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_MethodContent_Client_feature", "_UI_MethodContent_type"), - WorkspacePackage.Literals.METHOD_CONTENT__CLIENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the client feature </s> - diff --git a/funcom_test/47661290.txt b/funcom_test/47661290.txt deleted file mode 100644 index 5bc4cf5374e235422204efaa4c0370a5f8d76e68..0000000000000000000000000000000000000000 --- a/funcom_test/47661290.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addIterationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PhaseIteration_iteration_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PhaseIteration_iteration_feature", "_UI_PhaseIteration_type"), - ProcessPackagePackage.Literals.PHASE_ITERATION__ITERATION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the iteration feature </s> - diff --git a/funcom_test/47661297.txt b/funcom_test/47661297.txt deleted file mode 100644 index d0f4b06286a6d662354e4822b37148b2afc48e01..0000000000000000000000000000000000000000 --- a/funcom_test/47661297.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDecisionElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationTaskUseDesicionElement_decisionElement_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationTaskUseDesicionElement_decisionElement_feature", "_UI_AssociationTaskUseDesicionElement_type"), - ProcessPackagePackage.Literals.ASSOCIATION_TASK_USE_DESICION_ELEMENT__DECISION_ELEMENT, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the decision element feature </s> - diff --git a/funcom_test/47661327.txt b/funcom_test/47661327.txt deleted file mode 100644 index 23960dc4f8e62a7ebfc716865fd8ea3c44eebb4c..0000000000000000000000000000000000000000 --- a/funcom_test/47661327.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGuardPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ActivityAssociation_guard_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ActivityAssociation_guard_feature", "_UI_ActivityAssociation_type"), - ProcessPackagePackage.Literals.ACTIVITY_ASSOCIATION__GUARD, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the guard feature </s> - diff --git a/funcom_test/47661343.txt b/funcom_test/47661343.txt deleted file mode 100644 index 5b4c4d103e3ddd2a9ecf5ae81e00ac888345a3f4..0000000000000000000000000000000000000000 --- a/funcom_test/47661343.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationTaskUsePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InitialState_associationTaskUse_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InitialState_associationTaskUse_feature", "_UI_InitialState_type"), - ProcessPackagePackage.Literals.INITIAL_STATE__ASSOCIATION_TASK_USE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the association task use feature </s> - diff --git a/funcom_test/47661348.txt b/funcom_test/47661348.txt deleted file mode 100644 index 677624c606e2c747ffc959559e9d2ba5964d4a7a..0000000000000000000000000000000000000000 --- a/funcom_test/47661348.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInUsePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Process_inUse_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Process_inUse_feature", "_UI_Process_type"), - ProcessPackagePackage.Literals.PROCESS__IN_USE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the in use feature </s> - diff --git a/funcom_test/47661349.txt b/funcom_test/47661349.txt deleted file mode 100644 index 7401e323d18619418fae363983642705991481fe..0000000000000000000000000000000000000000 --- a/funcom_test/47661349.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationDecisionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_InitialState_associationDecision_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_InitialState_associationDecision_feature", "_UI_InitialState_type"), - ProcessPackagePackage.Literals.INITIAL_STATE__ASSOCIATION_DECISION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the association decision feature </s> - diff --git a/funcom_test/47661350.txt b/funcom_test/47661350.txt deleted file mode 100644 index 370390c7c3901acfeb0544c490de5229a255f6c1..0000000000000000000000000000000000000000 --- a/funcom_test/47661350.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationsTaskUseDescisionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DecisionElement_associationsTaskUseDescision_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DecisionElement_associationsTaskUseDescision_feature", "_UI_DecisionElement_type"), - ProcessPackagePackage.Literals.DECISION_ELEMENT__ASSOCIATIONS_TASK_USE_DESCISION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the associations task use descision feature </s> - diff --git a/funcom_test/47661354.txt b/funcom_test/47661354.txt deleted file mode 100644 index 5af8815d741b5584fc4b675b24fe4a399291284d..0000000000000000000000000000000000000000 --- a/funcom_test/47661354.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationsDecisionToDecisionSourcePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DecisionElement_associationsDecisionToDecisionSource_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DecisionElement_associationsDecisionToDecisionSource_feature", "_UI_DecisionElement_type"), - ProcessPackagePackage.Literals.DECISION_ELEMENT__ASSOCIATIONS_DECISION_TO_DECISION_SOURCE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the associations decision to decision source feature </s> - diff --git a/funcom_test/47661379.txt b/funcom_test/47661379.txt deleted file mode 100644 index 0c9a1660c6b7db78e58e82d36539bd43a5b2a200..0000000000000000000000000000000000000000 --- a/funcom_test/47661379.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationsTaskToTaskSourcePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskUse_associationsTaskToTaskSource_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskUse_associationsTaskToTaskSource_feature", "_UI_TaskUse_type"), - ProcessPackagePackage.Literals.TASK_USE__ASSOCIATIONS_TASK_TO_TASK_SOURCE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the associations task to task source feature </s> - diff --git a/funcom_test/47661382.txt b/funcom_test/47661382.txt deleted file mode 100644 index 82ef6a68e99ece4798613cf1869ff6d7f0c12ae0..0000000000000000000000000000000000000000 --- a/funcom_test/47661382.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationTaskToTaskTargetPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskUse_associationTaskToTaskTarget_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskUse_associationTaskToTaskTarget_feature", "_UI_TaskUse_type"), - ProcessPackagePackage.Literals.TASK_USE__ASSOCIATION_TASK_TO_TASK_TARGET, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the association task to task target feature </s> - diff --git a/funcom_test/47661390.txt b/funcom_test/47661390.txt deleted file mode 100644 index d27628099cba681e71bd03687224559cf3f170a7..0000000000000000000000000000000000000000 --- a/funcom_test/47661390.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAssociationsTaskUseDecisionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskUse_associationsTaskUseDecision_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskUse_associationsTaskUseDecision_feature", "_UI_TaskUse_type"), - ProcessPackagePackage.Literals.TASK_USE__ASSOCIATIONS_TASK_USE_DECISION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the associations task use decision feature </s> - diff --git a/funcom_test/47661396.txt b/funcom_test/47661396.txt deleted file mode 100644 index 4f01a9f7a0f2bd329b8914ec6c9bb34d5355441b..0000000000000000000000000000000000000000 --- a/funcom_test/47661396.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDecisionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationInitialStateToDecision_decision_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationInitialStateToDecision_decision_feature", "_UI_AssociationInitialStateToDecision_type"), - ProcessPackagePackage.Literals.ASSOCIATION_INITIAL_STATE_TO_DECISION__DECISION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the decision feature </s> - diff --git a/funcom_test/47661398.txt b/funcom_test/47661398.txt deleted file mode 100644 index 2e62753c57a75952cba176f3efb3d14c0558a70f..0000000000000000000000000000000000000000 --- a/funcom_test/47661398.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStatePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationDecisionElementToFinalState_state_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationDecisionElementToFinalState_state_feature", "_UI_AssociationDecisionElementToFinalState_type"), - ProcessPackagePackage.Literals.ASSOCIATION_DECISION_ELEMENT_TO_FINAL_STATE__STATE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the state feature </s> - diff --git a/funcom_test/47661400.txt b/funcom_test/47661400.txt deleted file mode 100644 index 291dbf68ee98622222f178f5a552763186990346..0000000000000000000000000000000000000000 --- a/funcom_test/47661400.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addInitialStatePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationInitialStateToDecision_initialState_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationInitialStateToDecision_initialState_feature", "_UI_AssociationInitialStateToDecision_type"), - ProcessPackagePackage.Literals.ASSOCIATION_INITIAL_STATE_TO_DECISION__INITIAL_STATE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the initial state feature </s> - diff --git a/funcom_test/47661428.txt b/funcom_test/47661428.txt deleted file mode 100644 index 2b98393a20445675e3321a3150a238051a939042..0000000000000000000000000000000000000000 --- a/funcom_test/47661428.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTaskusePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationTaskUseToFinalState_taskuse_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationTaskUseToFinalState_taskuse_feature", "_UI_AssociationTaskUseToFinalState_type"), - ProcessPackagePackage.Literals.ASSOCIATION_TASK_USE_TO_FINAL_STATE__TASKUSE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the taskuse feature </s> - diff --git a/funcom_test/47661430.txt b/funcom_test/47661430.txt deleted file mode 100644 index b736e343aa88d1240b4fae061c5b0d7d2d3247b6..0000000000000000000000000000000000000000 --- a/funcom_test/47661430.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addSourcePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationDecisionToDecision_source_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationDecisionToDecision_source_feature", "_UI_AssociationDecisionToDecision_type"), - ProcessPackagePackage.Literals.ASSOCIATION_DECISION_TO_DECISION__SOURCE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the source feature </s> - diff --git a/funcom_test/47661455.txt b/funcom_test/47661455.txt deleted file mode 100644 index a5e378bc2da71e072c81fc9b8e4d072681fbdc98..0000000000000000000000000000000000000000 --- a/funcom_test/47661455.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTaskUsePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_AssociationInitialStateToTaskUse_taskUse_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_AssociationInitialStateToTaskUse_taskUse_feature", "_UI_AssociationInitialStateToTaskUse_type"), - ProcessPackagePackage.Literals.ASSOCIATION_INITIAL_STATE_TO_TASK_USE__TASK_USE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the task use feature </s> - diff --git a/funcom_test/47661456.txt b/funcom_test/47661456.txt deleted file mode 100644 index 09cd5057d59f2a23c8e9e83ad43392ff90b3e979..0000000000000000000000000000000000000000 --- a/funcom_test/47661456.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addAggregationPhaseIterationPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Iteration_aggregationPhaseIteration_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Iteration_aggregationPhaseIteration_feature", "_UI_Iteration_type"), - ProcessPackagePackage.Literals.ITERATION__AGGREGATION_PHASE_ITERATION, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the aggregation phase iteration feature </s> - diff --git a/funcom_test/47661510.txt b/funcom_test/47661510.txt deleted file mode 100644 index 3e76654ba3971e49d4070efc00d5941a0782c960..0000000000000000000000000000000000000000 --- a/funcom_test/47661510.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTypeOfPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TestingWorkProduct_typeOf_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TestingWorkProduct_typeOf_feature", "_UI_TestingWorkProduct_type"), - TestingPackage.Literals.TESTING_WORK_PRODUCT__TYPE_OF, - true, - false, - true, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the type of feature </s> - diff --git a/funcom_test/47661513.txt b/funcom_test/47661513.txt deleted file mode 100644 index bb76d77ae59677a2c321155689b382dd239b68f5..0000000000000000000000000000000000000000 --- a/funcom_test/47661513.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addUsesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TestingTransformationRule_uses_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TestingTransformationRule_uses_feature", "_UI_TestingTransformationRule_type"), - TestingPackage.Literals.TESTING_TRANSFORMATION_RULE__USES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the uses feature </s> - diff --git a/funcom_test/47661519.txt b/funcom_test/47661519.txt deleted file mode 100644 index b068e2f350b2a83054272bbe21d4376bf2fe1a63..0000000000000000000000000000000000000000 --- a/funcom_test/47661519.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addGeneratesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TestingTransformationRule_generates_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TestingTransformationRule_generates_feature", "_UI_TestingTransformationRule_type"), - TestingPackage.Literals.TESTING_TRANSFORMATION_RULE__GENERATES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the generates feature </s> - diff --git a/funcom_test/47662431.txt b/funcom_test/47662431.txt deleted file mode 100644 index 9276566b092ae75fdf040c75cdf7d3ca8c618938..0000000000000000000000000000000000000000 --- a/funcom_test/47662431.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPhasePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PhaseIterationAgragation_phase_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PhaseIterationAgragation_phase_feature", "_UI_PhaseIterationAgragation_type"), - ProcessclassdiagramPackage.Literals.PHASE_ITERATION_AGRAGATION__PHASE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the phase feature </s> - diff --git a/funcom_test/47662461.txt b/funcom_test/47662461.txt deleted file mode 100644 index d092615d9a4b8a675a32508892e19c4f6edd5e9f..0000000000000000000000000000000000000000 --- a/funcom_test/47662461.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addProcessPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ProcessPhaseAgregation_process_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_ProcessPhaseAgregation_process_feature", "_UI_ProcessPhaseAgregation_type"), - ProcessclassdiagramPackage.Literals.PROCESS_PHASE_AGREGATION__PROCESS, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the process feature </s> - diff --git a/funcom_test/47662474.txt b/funcom_test/47662474.txt deleted file mode 100644 index 95a49eb8ddd96310d9836ec4dfb7fce06531d751..0000000000000000000000000000000000000000 --- a/funcom_test/47662474.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addMethodContentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskUse_methodContent_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskUse_methodContent_feature", "_UI_TaskUse_type"), - ProcessclassdiagramPackage.Literals.TASK_USE__METHOD_CONTENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the method content feature </s> - diff --git a/funcom_test/47662536.txt b/funcom_test/47662536.txt deleted file mode 100644 index 05cc8daf5ec1ac84793401713fd6986b23655e56..0000000000000000000000000000000000000000 --- a/funcom_test/47662536.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addTransformationRulePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskTransformationRuleAssociation_transformationRule_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskTransformationRuleAssociation_transformationRule_feature", "_UI_TaskTransformationRuleAssociation_type"), - MethodcontentclassdiagramPackage.Literals.TASK_TRANSFORMATION_RULE_ASSOCIATION__TRANSFORMATION_RULE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the transformation rule feature </s> - diff --git a/funcom_test/47662607.txt b/funcom_test/47662607.txt deleted file mode 100644 index 13bc566dc1705e66503b2c32564d9bddb4056e54..0000000000000000000000000000000000000000 --- a/funcom_test/47662607.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addModelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskModelAssociation_model_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskModelAssociation_model_feature", "_UI_TaskModelAssociation_type"), - MethodcontentclassdiagramPackage.Literals.TASK_MODEL_ASSOCIATION__MODEL, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the model feature </s> - diff --git a/funcom_test/47662609.txt b/funcom_test/47662609.txt deleted file mode 100644 index 97408357fa216547cacff477bcef2f9adb011d47..0000000000000000000000000000000000000000 --- a/funcom_test/47662609.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addReferToPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TransformationCallsTransformationRuleAssociation_referTo_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TransformationCallsTransformationRuleAssociation_referTo_feature", "_UI_TransformationCallsTransformationRuleAssociation_type"), - MethodcontentclassdiagramPackage.Literals.TRANSFORMATION_CALLS_TRANSFORMATION_RULE_ASSOCIATION__REFER_TO, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the refer to feature </s> - diff --git a/funcom_test/47662614.txt b/funcom_test/47662614.txt deleted file mode 100644 index b53a7554dae2536dda1deb1787b83aa2dcb6f199..0000000000000000000000000000000000000000 --- a/funcom_test/47662614.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addReferedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TransformationCallsTransformationRuleAssociation_refered_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TransformationCallsTransformationRuleAssociation_refered_feature", "_UI_TransformationCallsTransformationRuleAssociation_type"), - MethodcontentclassdiagramPackage.Literals.TRANSFORMATION_CALLS_TRANSFORMATION_RULE_ASSOCIATION__REFERED, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the refered feature </s> - diff --git a/funcom_test/47662640.txt b/funcom_test/47662640.txt deleted file mode 100644 index a2186be915e2b19a92f09988b6fac6596913254e..0000000000000000000000000000000000000000 --- a/funcom_test/47662640.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addPackagePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PackageWorkProductAggregation_package_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PackageWorkProductAggregation_package_feature", "_UI_PackageWorkProductAggregation_type"), - MethodcontentclassdiagramPackage.Literals.PACKAGE_WORK_PRODUCT_AGGREGATION__PACKAGE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the package feature </s> - diff --git a/funcom_test/47662702.txt b/funcom_test/47662702.txt deleted file mode 100644 index 24dfa785f10fd2c233ffff4091e06541d2f44131..0000000000000000000000000000000000000000 --- a/funcom_test/47662702.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFilePathPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Profile_filePath_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Profile_filePath_feature", "_UI_Profile_type"), - MethodcontentclassdiagramPackage.Literals.PROFILE__FILE_PATH, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - COM: <s> this adds a property descriptor for the file path feature </s> - diff --git a/funcom_test/47662770.txt b/funcom_test/47662770.txt deleted file mode 100644 index de801225bd440e13601478325153ffc36bb8667c..0000000000000000000000000000000000000000 --- a/funcom_test/47662770.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addStepPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TaskStepAggregation_step_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TaskStepAggregation_step_feature", "_UI_TaskStepAggregation_type"), - MethodcontentclassdiagramPackage.Literals.TASK_STEP_AGGREGATION__STEP, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the step feature </s> - diff --git a/funcom_test/47665164.txt b/funcom_test/47665164.txt deleted file mode 100644 index 2ee73d307fed5f7cfe2ce3620bd3e03630e0c28c..0000000000000000000000000000000000000000 --- a/funcom_test/47665164.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addDependenciesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DecisionElement_dependencies_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DecisionElement_dependencies_feature", "_UI_DecisionElement_type"), - ProcessactivitydiagramPackage.Literals.DECISION_ELEMENT__DEPENDENCIES, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the dependencies feature </s> - diff --git a/funcom_test/47665173.txt b/funcom_test/47665173.txt deleted file mode 100644 index 0899668a5f292393d47738e1a606edf1a41635be..0000000000000000000000000000000000000000 --- a/funcom_test/47665173.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addFinalStatePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_DecisionElementFinalStateAssociation_finalState_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_DecisionElementFinalStateAssociation_finalState_feature", "_UI_DecisionElementFinalStateAssociation_type"), - ProcessactivitydiagramPackage.Literals.DECISION_ELEMENT_FINAL_STATE_ASSOCIATION__FINAL_STATE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the final state feature </s> - diff --git a/funcom_test/47669841.txt b/funcom_test/47669841.txt deleted file mode 100644 index b6b40822639d3e4ee13e9ba1f8fa5bf8141cf92e..0000000000000000000000000000000000000000 --- a/funcom_test/47669841.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private PaletteContainer createAssociations2Group() { - PaletteDrawer paletteContainer = new PaletteDrawer( - FeatureUseCase.diagram.part.Messages.Associations2Group_title); - paletteContainer.setId("createAssociations2Group"); //$NON-NLS-1$ - paletteContainer - .setDescription(FeatureUseCase.diagram.part.Messages.Associations2Group_desc); - paletteContainer.add(createMutex1CreationTool()); - paletteContainer.add(createRequire2CreationTool()); - paletteContainer.add(createUseCaseAssociation3CreationTool()); - paletteContainer.add(createUseCaseIncludes4CreationTool()); - paletteContainer.add(createUseCaseExtends5CreationTool()); - return paletteContainer; - } - COM: <s> creates associations palette tool group </s> - diff --git a/funcom_test/47671543.txt b/funcom_test/47671543.txt deleted file mode 100644 index ac0a76c731253b4472595d771cec8097066eeb8d..0000000000000000000000000000000000000000 --- a/funcom_test/47671543.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private PaletteContainer createFeatures1Group() { - PaletteDrawer paletteContainer = new PaletteDrawer( - FeatureDiagram.diagram.part.Messages.Features1Group_title); - paletteContainer.setId("createFeatures1Group"); //$NON-NLS-1$ - paletteContainer.add(createOptional1CreationTool()); - paletteContainer.add(createMandatory2CreationTool()); - paletteContainer.add(createAlternative_OR3CreationTool()); - paletteContainer.add(createAlternative_XOR4CreationTool()); - paletteContainer.add(createExternal5CreationTool()); - paletteContainer.add(createVariationPoint6CreationTool()); - return paletteContainer; - } - COM: <s> creates features palette tool group </s> - diff --git a/funcom_test/47671836.txt b/funcom_test/47671836.txt deleted file mode 100644 index b20d90f64aa2dc6d6ea940e1667ee88b5ec992b1..0000000000000000000000000000000000000000 --- a/funcom_test/47671836.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOppositeTargetPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Feature_oppositeTarget_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Feature_oppositeTarget_feature", "_UI_Feature_type"), - FeatureDiagramPackage.Literals.FEATURE__OPPOSITE_TARGET, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the opposite target feature </s> - diff --git a/funcom_test/47671846.txt b/funcom_test/47671846.txt deleted file mode 100644 index f2262332c44dd1c45b665cd55de740f96ed9161b..0000000000000000000000000000000000000000 --- a/funcom_test/47671846.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected void addOppositeSourcePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Feature_oppositeSource_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Feature_oppositeSource_feature", "_UI_Feature_type"), - FeatureDiagramPackage.Literals.FEATURE__OPPOSITE_SOURCE, - true, - false, - true, - null, - null, - null)); - } - COM: <s> this adds a property descriptor for the opposite source feature </s> - diff --git a/funcom_test/47672461.txt b/funcom_test/47672461.txt deleted file mode 100644 index f8d1f2f87fba60fc8420010451f807fd8b0df4f5..0000000000000000000000000000000000000000 --- a/funcom_test/47672461.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void createFileListComposite() { - GridData gridData4 = new GridData(); - gridData4.horizontalAlignment = GridData.FILL; - gridData4.grabExcessHorizontalSpace = true; - gridData4.verticalAlignment = GridData.CENTER; - fileListComposite = new FeatureConfigurationListComposite(this, SWT.BORDER_SOLID, getTaskuse(), getWorkProduct()); - fileListComposite.setLayoutData(gridData4); - } - COM: <s> this method initializes file list composite </s> - diff --git a/funcom_test/47693092.txt b/funcom_test/47693092.txt deleted file mode 100644 index 07ac6d309d7f04fc8382097f918f2b0ae8659348..0000000000000000000000000000000000000000 --- a/funcom_test/47693092.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void removeSpecificHeader(SVFCommand command) { - String comment = command.comment; - if (comment == null) - return; - - if (!comment.startsWith(SVFWriter.HEADER1)) - return; - int index = comment.indexOf(SVFWriter.HEADER3); - if (index < 0) - return; - - comment = comment.substring(index + - SVFWriter.HEADER3.length()); - command.setComment(comment); - } - COM: <s> removes testonica specific part of the comment </s> - diff --git a/funcom_test/47693120.txt b/funcom_test/47693120.txt deleted file mode 100644 index a51b0b2449fb4cdb4b44998c1e7ccf7d5805454a..0000000000000000000000000000000000000000 --- a/funcom_test/47693120.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void executeUntil(int endIndex) { - // Check that SVF is not empty - if (count == 0) - return; - // Check exec region - if (endIndex < 0) - endIndex = count - 1; - if ((endIndex < currentIndex) || (endIndex >= count)) - throw new IllegalArgumentException("Invalid execution region: " - + currentIndex + "-" + endIndex); - - setEndIndex(endIndex); - } - COM: <s> executes commads until end index </s> - diff --git a/funcom_test/47693137.txt b/funcom_test/47693137.txt deleted file mode 100644 index 097645b96ca08195bb690773566add6db608f118..0000000000000000000000000000000000000000 --- a/funcom_test/47693137.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: /* - * public VectorPattern getFullScanVectorPattern(int i) { if - * (!isActionVector(i)) return null; validateIfNeeded(); - * - * SVFActionVector actionVector = (SVFActionVector)getCommand(i); - * // Concat header + pattern + trailer return - * actionVector.getFullScanVectorPattern(); } - COM: <s> returns full vector in case of vector action </s> - diff --git a/funcom_test/47693174.txt b/funcom_test/47693174.txt deleted file mode 100644 index e8b9781958569c880e0f0bc08a9bfdff7405439f..0000000000000000000000000000000000000000 --- a/funcom_test/47693174.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public SVFParameters getRealParameters(int index) { - // Go down till the first Action - index = getPreviousActionIndex(index); - // Go up to first parameter - index++; - - SVFParameters p = new SVFParameters(); - for (int i = index; i < commands.size(); i++) { - SVFCommand command = getCommand(i); - if (command instanceof SVFAction) - break; - else - p.mergeParameters(command); - } - - return p; - } - COM: <s> gets real parameters of command </s> - diff --git a/funcom_test/47693278.txt b/funcom_test/47693278.txt deleted file mode 100644 index 172dde98c251243fe91d6b2a2ee061b6d56e4b6a..0000000000000000000000000000000000000000 --- a/funcom_test/47693278.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void calculateEffectiveParameters() { - SVFParameters p = new SVFParameters(); - for (int i = 0; i < getCommandsCount(); i++) { - // For each command - SVFCommand command = get(i); - if (command instanceof SVFAction) - // Set effective parameters - ((SVFAction) command).parameters = new SVFParameters(p); - - // Merge parameters - p.mergeParameters(command); - } - } - COM: <s> calculates effective parameters of each action </s> - diff --git a/funcom_test/47693509.txt b/funcom_test/47693509.txt deleted file mode 100644 index 5adb72b2d02cfb193de9bbfb00635cd47fe182be..0000000000000000000000000000000000000000 --- a/funcom_test/47693509.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String readStatement() throws IOException { - // Null comment - this.comment = new String(); - - while (statements.empty()) { - // Read line - readSignificantLine(); - if (isEOF()) - return null; - this.comment += super.getComment(); - // Split line into statements - parseStatements(getLine()); - } - - return statements.pop(); - } - COM: <s> reads next statement from the stream </s> - diff --git a/funcom_test/47694077.txt b/funcom_test/47694077.txt deleted file mode 100644 index 9ccc8722c0a29b7227373725cb2d0b54e730bc60..0000000000000000000000000000000000000000 --- a/funcom_test/47694077.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void applyBufferSize() { - int size = info.getBufferSize(); - - // Copy old values - int[] old = getValues(); - values = new int[size]; - int count = Math.min(old.length, values.length); - unused = size - count; - index = 0; - - for (int i = count - 1; i >= 0; i--) - values[i] = old[index++]; - - // Check for index overflow - if (index >= values.length) - index = 0; - } - COM: <s> sets new buffer size </s> - diff --git a/funcom_test/47694334.txt b/funcom_test/47694334.txt deleted file mode 100644 index df067d841cc37e70e49f9a1c0b07a91860876b4d..0000000000000000000000000000000000000000 --- a/funcom_test/47694334.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected boolean openFileInternal(File file) throws Exception { - if (file == null) { - newFile(); - return false; - } - - SVF svf = getInfo().getProjectManager().getSVF(file); - if (svf == null) { - panel.setSVF(new SVF()); - return false; - } - - panel.setSVF(svf); - setContentChanged(false); - return true; - } - COM: <s> if code null code creates blank svf </s> - diff --git a/funcom_test/47695205.txt b/funcom_test/47695205.txt deleted file mode 100644 index c7aad93434c61c18c65574960b82616142bc9dc6..0000000000000000000000000000000000000000 --- a/funcom_test/47695205.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public float getPreferredSpan(int axis) { - int extra = 2 * (getBorder() + getSpace(axis)); - switch (axis) { - case View.X_AXIS: - return fWidth + extra; - case View.Y_AXIS: - return fHeight + extra; - default: - throw new IllegalArgumentException("Invalid axis: " + axis); - } - } - COM: <s> determines the preferred span for this view along an axis </s> - diff --git a/funcom_test/47942073.txt b/funcom_test/47942073.txt deleted file mode 100644 index 655d3d9689e17afb36a2a7c3196fdab53ad7f342..0000000000000000000000000000000000000000 --- a/funcom_test/47942073.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void send(String strData) { - byte[] nBuf = strData.getBytes(); - try { - out.write(nBuf.length); - out.write(nBuf); - - } catch (IOException ex) { - Debug.log("Error while sending " + strData + " to the crawler. " + ex.toString(), nDebugId, Debug.FLAG_ERROR); - } - } - COM: <s> sends a string to the socket </s> - diff --git a/funcom_test/48003623.txt b/funcom_test/48003623.txt deleted file mode 100644 index 1a1d1b77eac36a8e4fdd60cb3cafe7080e8397f2..0000000000000000000000000000000000000000 --- a/funcom_test/48003623.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void handleMessageFromServer(Object msg) { - - /*** Message from ServerManager ***/ - if (msg instanceof Message) { - Message message = (Message) msg; - System.out.println("ClientCommunication receive a msg from ServerManager: " + message); - setChanged(); - notifyObservers(msg); - clearChanged(); - return; - } - - /*** Message from ServerCommunication ***/ - System.out.println("ClientCommunication receive a msg from ServerCommunication: " + msg); - } - COM: <s> this method handles all data that comes in from the server </s> - diff --git a/funcom_test/48003648.txt b/funcom_test/48003648.txt deleted file mode 100644 index cd73c74c120646dc39d0bef29c01321d72bbd187..0000000000000000000000000000000000000000 --- a/funcom_test/48003648.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public boolean newPaymentMethod(Receipt recipt) { - - try { - Random generator = new Random(); - PersistentSession session; - int poel = generator.nextInt(); - if (poel < 0) - poel = poel * (-1); - session = GoodReading3PersistentManager.instance().getSession(); - PersistentTransaction t = session.beginTransaction(); - recipt.setReceiptNumber(poel); - recipt.save(); - t.commit(); - boolean flag = true; - return flag; - } catch (PersistentException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } - return _flag; - - } - COM: <s> this method give reciept to reader </s> - diff --git a/funcom_test/48003659.txt b/funcom_test/48003659.txt deleted file mode 100644 index 977457a4e0066996c376c004acaea82abfa2be07..0000000000000000000000000000000000000000 --- a/funcom_test/48003659.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Message hideBook(Object value){ - if(value instanceof String){ - String isbn=(String) value; - boolean flag=dataAccess.BookHide(isbn); - if(flag!=false){ - return (new Message(Message.HIDE_BOOK_RESPOND,Message.SUCCEED )); - } - else{ - return (new Message(Message.HIDE_BOOK_RESPOND,Message.FAIL )); - } - } - return (new Message(Message.HIDE_BOOK_RESPOND,Message.NOT_THE_TYPE_THAT_SEND )); - } - COM: <s> this method hidebook from reader </s> - diff --git a/funcom_test/48003661.txt b/funcom_test/48003661.txt deleted file mode 100644 index 4ab32c56f2d0689c11ca3cdada783114c474eb5a..0000000000000000000000000000000000000000 --- a/funcom_test/48003661.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public ChangedCatalog bookLinkToGenre(ChangedCatalog changedCatalog) { - try { - PersistentSession session = GoodReading3PersistentManager - .instance().getSession(); - PersistentTransaction t = session.beginTransaction(); - - Subject subject = Subject.createSubject(); - subject = changedCatalog.getSubject(); - Book book = Book.createBook(); - book = changedCatalog.getBook(); - Genre genre = changedCatalog.getGenre(); - genre.subject.add(subject); - genre.subject.add(subject); - subject.book.add(book); - session.update(subject); - t.commit(); - session.clear(); - return changedCatalog; - - } catch (PersistentException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - - } - return null; - - } - COM: <s> this method link book to genre </s> - diff --git a/funcom_test/48003670.txt b/funcom_test/48003670.txt deleted file mode 100644 index bf3ec0681ca3e105bcf8f436857f4da0de298c3c..0000000000000000000000000000000000000000 --- a/funcom_test/48003670.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public ChangedCatalog bookLinkToSubject(ChangedCatalog changedCatalog) { - try { - PersistentSession session = GoodReading3PersistentManager - .instance().getSession(); - PersistentTransaction t = session.beginTransaction(); - - Subject subject = Subject.createSubject(); - subject = changedCatalog.getSubject(); - Book book = Book.createBook(); - book = changedCatalog.getBook(); - subject.book.add(book); - Genre genre = changedCatalog.getGenre(); - genre.subject.add(subject); - session.merge(subject); - t.commit(); - session.clear(); - return changedCatalog; - - } catch (PersistentException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - - } - return null; - - } - COM: <s> this method link book to subject </s> - diff --git a/funcom_test/48003700.txt b/funcom_test/48003700.txt deleted file mode 100644 index 96ad298cd56f2108a23dbe9f511dcaab572d581d..0000000000000000000000000000000000000000 --- a/funcom_test/48003700.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public boolean BookHide(String isbn){ - ; - try { - PersistentTransaction transaction = GoodReading3PersistentManager - .instance().getSession().beginTransaction();// Do not change - Book book=Book.getBookByORMID(isbn); - boolean status=book.getIsVisible(); - book.setIsVisible(!status); - book.save(); - transaction.commit(); - return true; - - } catch (PersistentException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - return false; - - - } - COM: <s> hide book for manager request </s> - diff --git a/funcom_test/48003706.txt b/funcom_test/48003706.txt deleted file mode 100644 index db4e2090899cd9584b20b54336455f89cc88f1e8..0000000000000000000000000000000000000000 --- a/funcom_test/48003706.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public boolean reviewHandler(Review handlerReview) { - try { - PersistentSession session = GoodReading3PersistentManager - .instance().getSession(); - PersistentTransaction t = session.beginTransaction(); - handlerReview.setState(1); - boolean flag = handlerReview.save(); - t.commit(); - session.clear(); - return flag; - } catch (PersistentException e) { - try { - serverManager.printToLog("Error: trying to rollback"); - _transaction.rollback(); - serverManager.printToLog("rollback succeed"); - - } catch (PersistentException e1) { - serverManager.printToLog("Error while trying to rollback"); - } - } - return _flag; - - } - COM: <s> save new review in db </s> - diff --git a/funcom_test/48003761.txt b/funcom_test/48003761.txt deleted file mode 100644 index 8d95c910eea02b3abc5364ffee330ce01303be1f..0000000000000000000000000000000000000000 --- a/funcom_test/48003761.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Message bookDetailsHandler(Object value) { - if (value instanceof String) { - String ISBN = (String) value; - Book book = dataAccess.getBookByISBN(ISBN); - if (book != null) { - printToLog("succeed to return to client a book"); - return (new Message(Message.BOOK_DETAILS_RESPOND, book)); - } - } - printToLog("failed to return to client a book"); - return (new Message(Message.BOOK_DETAILS_RESPOND, - Message.ERROR_PARAMETERS)); - } - COM: <s> this method get isbn of book and return book to client </s> - diff --git a/funcom_test/48003769.txt b/funcom_test/48003769.txt deleted file mode 100644 index e82b940f5b14f8f53e20ddd24815f5b47c088e15..0000000000000000000000000000000000000000 --- a/funcom_test/48003769.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private Message deleteBookHandler(Object value) throws Exception { - if (value instanceof String) { - String isbn = (String) value; - Message message = new Message(Message.DELETE_BOOK_RESPOND, null); - if (dataAccess.deleteBook(isbn)) { - printToLog("Deleting book secceed"); - message.setValue(Message.SUCCEED); - } else { - printToLog("Deleting book didn't secceed"); - message.setValue(Message.FAIL); - } - return message; - } - throw new NotImplementedException(); - } - COM: <s> this method get book and call method deletebook to delete the book </s> - diff --git a/funcom_test/48003779.txt b/funcom_test/48003779.txt deleted file mode 100644 index 3a1198dad770dcdfd22d0766ba8926e7c35e16d3..0000000000000000000000000000000000000000 --- a/funcom_test/48003779.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Message addGenreHandler(Object addGenre) { - if (addGenre instanceof Genre) { - Genre genre = (Genre) addGenre; - boolean flag = dataAccess.addGenre(genre); - if (flag != false) { - printToLog("succeed to add genre"); - return (new Message(Message.ADD_GENRE_RESPOND, refreshCatalog() - .getValue())); - } - - } - printToLog("failed to add genre"); - return (new Message(Message.ADD_GENRE_RESPOND, Message.FAIL)); - } - COM: <s> this method get genre and call method add genre to delete the genre </s> - diff --git a/funcom_test/48003800.txt b/funcom_test/48003800.txt deleted file mode 100644 index 87ae8e0db3c1ff6f43e0c574ce352185f1cbc4c7..0000000000000000000000000000000000000000 --- a/funcom_test/48003800.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Message addSubjectHandler(Object addSubject) { - if (addSubject instanceof Subject) { - Subject subject = (Subject) addSubject; - boolean flag = dataAccess.addSubject(subject); - if (flag != false) { - printToLog("add subject succeed "); - return (new Message(Message.ADD_SUBJECT_RESPOND, - refreshCatalog().getValue())); - } - - } - printToLog("add subject failed "); - return (new Message(Message.ADD_SUBJECT_RESPOND, Message.FAIL)); - } - COM: <s> this method get subject and call method add subject to add subject </s> - diff --git a/funcom_test/48003805.txt b/funcom_test/48003805.txt deleted file mode 100644 index bdbe4cd65e90ee1444ef11982145da835cd9ab82..0000000000000000000000000000000000000000 --- a/funcom_test/48003805.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Message deleteSubjectHandler(Object deleteSubject) { - if (deleteSubject instanceof Subject) { - Subject subject = (Subject) deleteSubject; - boolean flag = dataAccess.deleteSubject(subject.getName()); - if (flag) { - printToLog("delete subject succeed "); - return (new Message(Message.DELETE_SUBJECT_RESPOND, - Message.SUCCEED)); - } - - } - printToLog("delete subject failed "); - return (new Message(Message.DELETE_SUBJECT_RESPOND, Message.FAIL)); - } - COM: <s> this method get subject and call method delete subject to delete subject </s> - diff --git a/funcom_test/48003820.txt b/funcom_test/48003820.txt deleted file mode 100644 index 139d586541d7f165b914c0dfedb38db442cd3356..0000000000000000000000000000000000000000 --- a/funcom_test/48003820.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private Message reviewListReturn(Object value) { - if(value instanceof String){ - String isbn=(String) value; - - Review[] reviewList = dataAccess.returnAllReviews(isbn); - if (reviewList != null) { - printToLog(" SM: reviewListReturn :return all list of reviews"); - return (new Message(Message.REVIEW_LIST_RESPOND, reviewList)); - } else { - return (new Message(Message.REVIEW_LIST_RESPOND, Message.FAIL)); - } - } - return (new Message(Message.REVIEW_LIST_RESPOND, Message.NOT_THE_TYPE_THAT_SEND)); - } - COM: <s> this method get string of isbn and call method return all reviews </s> - diff --git a/funcom_test/48003842.txt b/funcom_test/48003842.txt deleted file mode 100644 index b61fa92f961b1533c04879e662e4ba05db559459..0000000000000000000000000000000000000000 --- a/funcom_test/48003842.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private JButton getJButtonAddNewGenre() { - if (jButtonAddNewGenre == null) { - jButtonAddNewGenre = new JButton(); - jButtonAddNewGenre.setBounds(new Rectangle(129, 280, 262, 28)); - jButtonAddNewGenre.setText("Add a new genre"); - - } - return jButtonAddNewGenre; - } - COM: <s> this method initializes j button add new genre </s> - diff --git a/funcom_test/48003843.txt b/funcom_test/48003843.txt deleted file mode 100644 index f962cb8b9d50fa5d99214bb5bedf519b8ab071ef..0000000000000000000000000000000000000000 --- a/funcom_test/48003843.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JButton getJButtonAddNewSubject() { - if (jButtonAddNewSubject == null) { - jButtonAddNewSubject = new JButton(); - jButtonAddNewSubject.setBounds(new Rectangle(129, 320, 262, 28)); - jButtonAddNewSubject.setText("Add a new subject"); - } - return jButtonAddNewSubject; - } - COM: <s> this method initializes j button add new subject </s> - diff --git a/funcom_test/48003844.txt b/funcom_test/48003844.txt deleted file mode 100644 index 74953b5a274ea7e8e679811c8d6f41e17e8f77d9..0000000000000000000000000000000000000000 --- a/funcom_test/48003844.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JButton getJButtonAddNewBook() { - if (jButtonAddNewBook == null) { - jButtonAddNewBook = new JButton(); - jButtonAddNewBook.setText("Add a new book"); - jButtonAddNewBook.setBounds(new Rectangle(129, 360, 262, 28)); - } - return jButtonAddNewBook; - } - COM: <s> this method initializes j button add new book </s> - diff --git a/funcom_test/48003852.txt b/funcom_test/48003852.txt deleted file mode 100644 index 223738a8caafee8b350281d3b88b0d03df3f48cb..0000000000000000000000000000000000000000 --- a/funcom_test/48003852.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private Message saveBookHandler(Object value) throws Exception { - if (value instanceof Book) { - Book book = (Book) value; - Message message = new Message(Message.SAVE_BOOK_RESPOND, null); - if (dataAccess.saveBook(book)) { - printToLog("Saving book secceed"); - message.setValue(Message.SUCCEED); - } else { - printToLog("Saving book didn't secceed"); - message.setValue(Message.FAIL); - } - return message; - } - throw new NotImplementedException(); - } - COM: <s> this method save book in db </s> - diff --git a/funcom_test/48003900.txt b/funcom_test/48003900.txt deleted file mode 100644 index 46da673916c5203f3add9c4412fe5e2235d70def..0000000000000000000000000000000000000000 --- a/funcom_test/48003900.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void printToLog(String string) { - JTextArea textArea = rootView.getJTextArea(); - String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss"; - Calendar cal = Calendar.getInstance(); - SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW); - String now = sdf.format(cal.getTime()) + ": "; - - textArea.setText(textArea.getText() + "\n" + now + string); - } - COM: <s> this class print to log all the action </s> - diff --git a/funcom_test/48004166.txt b/funcom_test/48004166.txt deleted file mode 100644 index 5d41fe56b49da08bb4728cbbbabfa7f5df4d6711..0000000000000000000000000000000000000000 --- a/funcom_test/48004166.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void respondToAddGenreAndAddSubject(ManageCatalog manageCatalog) { - if (manageCatalog != null) { - manageCatalogEntryPoint(manageCatalog); - catalogManagmentTabView.getJLabelFail().setVisible(false); - } else { - - catalogManagmentTabView.getJLabelFail().setVisible(true); - } - genreStatus = false; - subjectStatus = false; - - catalogManagmentTabView.getNewNodePopUp().getJTextFieldRecieptNumber() - .setText(""); - } - COM: <s> respond to add genre and add subject </s> - diff --git a/funcom_test/48004597.txt b/funcom_test/48004597.txt deleted file mode 100644 index e42b66d270bb9eb033c840f341c3b2ed85ffd748..0000000000000000000000000000000000000000 --- a/funcom_test/48004597.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void removLastView() { - if (lastView != null) { - if (lastView instanceof DeleteBook) - ((DeleteBook) lastView).setVisible(false); - else if (lastView instanceof AddBook) - ((AddBook) lastView).setVisible(false); - else if (lastView instanceof EditBook) - ((EditBook) lastView).setVisible(false); - else if (lastView instanceof AddEditBook) - ((AddEditBook) lastView).setVisible(false); - } - - } - COM: <s> remove last view </s> - diff --git a/funcom_test/48023206.txt b/funcom_test/48023206.txt deleted file mode 100644 index 7a908de77e6f6abd50484e5510606f14330d028a..0000000000000000000000000000000000000000 --- a/funcom_test/48023206.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void sortPopulation(RealTypePopulation population, boolean sign){ - Double[] fitness = new Double[population.getChromossomesSet().size()]; - - for (int i = 0; i < population.getChromossomesSet().size(); i++){ - fitness[i] = population.getChromossomesSet().get(i).getFitness(); - } - - RealQuickSort qs = new RealQuickSort(); - qs.sort(population.getChromossomesSet(), sign); - - - - } - COM: <s> this method sorts the population organizing it crescent </s> - diff --git a/funcom_test/48023207.txt b/funcom_test/48023207.txt deleted file mode 100644 index 9ec2d0e74603f21e3675006a4d38aa729fd7379a..0000000000000000000000000000000000000000 --- a/funcom_test/48023207.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void sortPopulation(IntegerTypePopulation population, boolean sign){ - Integer[] fitness = new Integer[population.getChromossomesSet().size()]; - - for (int i = 0; i < population.getChromossomesSet().size(); i++){ - fitness[i] = population.getChromossomesSet().get(i).getFitness(); - } - - IntegerQuickSort qs = new IntegerQuickSort(); - qs.sort(population.getChromossomesSet(), sign); - - } - COM: <s> this method sorts the given population organizing it </s> - diff --git a/funcom_test/48023365.txt b/funcom_test/48023365.txt deleted file mode 100644 index e72a25bf485582153e1a6065f1d605d4e6cd264c..0000000000000000000000000000000000000000 --- a/funcom_test/48023365.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void evaluatePopulation (IntegerTypePopulation population, Simulation simulation, Object[] object){ - - IntegerTypePopulation intPopulation = (IntegerTypePopulation) population; - - for (int i = 0; i < intPopulation.getChromossomesSet().size(); i++){ - - intPopulation.getChromossomesSet().get(i).setFitness(this.calculateFitness(simulation.getChromossomesConfiguration(), intPopulation, i)); - - } - - - } - COM: <s> this method evaluates the given population passed as </s> - diff --git a/funcom_test/48104679.txt b/funcom_test/48104679.txt deleted file mode 100644 index d8f4afcbe13ab84d29f9a4e9102e052d4633168a..0000000000000000000000000000000000000000 --- a/funcom_test/48104679.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public DefaultMutableTreeNode getDataTree(Taxa taxa) { - Writer w = new StringWriter(); - try { - write(w, taxa); - } catch (IOException e) { - return new DefaultMutableTreeNode(NAME + "<output error>"); - } - return new DefaultMutableTreeNode(w.toString()); - } - COM: <s> returns a tree structure containing the data in the block </s> - diff --git a/funcom_test/48104729.txt b/funcom_test/48104729.txt deleted file mode 100644 index dad5000ca5d17e6114dcb07cdffba29230ff870b..0000000000000000000000000000000000000000 --- a/funcom_test/48104729.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public Object clone() { - Format result = new Format(); - - result.datatype = datatype; - result.datatypeID = datatypeID; - result.respectCase = respectCase; - result.gap = gap; - result.missing = missing; - result.labels = labels; - result.labelQuotes = labelQuotes; - result.transpose = transpose; - result.interleave = interleave; - result.diploid = diploid; - result.tokens = tokens; - result.symbols = symbols; - result.matchChar = matchChar; - - return result; - } - COM: <s> clone the format object </s> - diff --git a/funcom_test/48104759.txt b/funcom_test/48104759.txt deleted file mode 100644 index f5bab7f0dbe753ddec136518a47021c117b63ab1..0000000000000000000000000000000000000000 --- a/funcom_test/48104759.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean equals(Taxa taxa) { - if (getNtax() != taxa.getNtax()) - return false; - - for (int t = 1; t <= getNtax(); t++) { - if (getLabel(t).equals(taxa.getLabel(t)) == false) - return false; - } - return true; - } - COM: <s> returns true if lists of taxa are equal </s> - diff --git a/funcom_test/48104762.txt b/funcom_test/48104762.txt deleted file mode 100644 index 4c2d84662895f80efadee8d95835936bec91b1bb..0000000000000000000000000000000000000000 --- a/funcom_test/48104762.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean translateIsOneToOne(Map translate) { - Set keys = translate.keySet(); - - Iterator it = keys.iterator(); - while (it.hasNext()) { - String nodeLabel = (String) it.next(); - if (!nodeLabel.equals(translate.get(nodeLabel))) - return false; - } - return true; - - } - COM: <s> is translate one to one </s> - diff --git a/funcom_test/48104770.txt b/funcom_test/48104770.txt deleted file mode 100644 index 667a7d673b562ee1e6489de38f2a1ea33c530cb6..0000000000000000000000000000000000000000 --- a/funcom_test/48104770.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Traits clone(Taxa taxa) { - Traits traits = new Traits(); - try { - StringWriter sw = new StringWriter(); - this.write(sw, taxa); - StringReader sr = new StringReader(sw.toString()); - traits.read(new NexusStreamParser(sr), taxa); - } catch (Exception ex) { - Basic.caught(ex); - } - return traits; - } - COM: <s> clones a traits object </s> - diff --git a/funcom_test/48104780.txt b/funcom_test/48104780.txt deleted file mode 100644 index 0bfb167d68a723e4a2b583c3f417024c6d2ee5ad..0000000000000000000000000000000000000000 --- a/funcom_test/48104780.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected boolean isEqual(int iSite1, int iSite2) { - for (int i = 0; i < m_counts.size(); i++) { - if (m_counts.get(i).get(iSite1) - != m_counts.get(i).get(iSite2)) { - return false; - } - } - return true; - } // isEqual - COM: <s> test whether two columns e </s> - diff --git a/funcom_test/48104848.txt b/funcom_test/48104848.txt deleted file mode 100644 index 4ead1f5a40831bd96169e1e94254c7bfe1c97bb2..0000000000000000000000000000000000000000 --- a/funcom_test/48104848.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean addTaxSet(String name, TaxaSet taxSet, Taxa taxa) { - Set set = new HashSet(); - for (int t = 1; t <= taxa.getNtax(); t++) - if (taxSet.get(t)) - set.add(taxa.getLabel(t)); - return addTaxSet(name, set); - } - COM: <s> adds a new tax set </s> - diff --git a/funcom_test/48104858.txt b/funcom_test/48104858.txt deleted file mode 100644 index 99c16a3d82fabcf183f045d42a8d55e2dc5a7f43..0000000000000000000000000000000000000000 --- a/funcom_test/48104858.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void resetSymbols() { - switch (getDatatypeID()) { - case Datatypes.STANDARDID: - this.symbols = Datatypes.STANDARDSYMBOLS; - break; - case Datatypes.DNAID: - this.symbols = Datatypes.DNASYMBOLS; - break; - case Datatypes.RNAID: - this.symbols = Datatypes.RNASYMBOLS; - break; - case Datatypes.PROTEINID: - this.symbols = Datatypes.PROTEINSYMBOLS; - break; - default: - this.symbols = Datatypes.UNKNOWNSYMBOLS; - break; - } - computeColors(); - } - COM: <s> resets the set of all symbols depending on datatype </s> - diff --git a/funcom_test/48104872.txt b/funcom_test/48104872.txt deleted file mode 100644 index 3fffdbd2868dac24ad24698e467f1790feff547e..0000000000000000000000000000000000000000 --- a/funcom_test/48104872.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Array2d copy() { - Array2d copy = new Array2d(m_nRows, m_nCols, m_values); - /* - for (int iRow = 1; iRow <= m_nRows; iRow++) { - for (int iCol = 1; iCol <= m_nCols; iCol++) { - copy.set(iRow, iCol, at(iRow, iCol)); - } - } - */ - return copy; - } // copy - COM: <s> return fresh copy of current matrix </s> - diff --git a/funcom_test/48104879.txt b/funcom_test/48104879.txt deleted file mode 100644 index ec3d2917fc0ded35788451ade75c06df431f6e3e..0000000000000000000000000000000000000000 --- a/funcom_test/48104879.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Array2d transpose() { - Array2d transpose = new Array2d(m_nRows, m_nCols); - for (int iRow = 1; iRow <= m_nRows; iRow++) { - for (int iCol = 1; iCol <= m_nCols; iCol++) { - transpose.set(iCol, iRow, at(iRow, iCol)); - } - } - return transpose; - } // transpose - COM: <s> return transpose of current matrix </s> - diff --git a/funcom_test/48104891.txt b/funcom_test/48104891.txt deleted file mode 100644 index b78568ad1276a0d4b8d6f16e81418360927d61e8..0000000000000000000000000000000000000000 --- a/funcom_test/48104891.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void getColumn(int iCol, double [] column) { - //double [] column = new double [m_nRows + 1]; - for (int iRow = 1; iRow <= m_nRows; iRow++) { - column[iRow] = at(iRow, iCol); - } - //return column; - } // getColumn - COM: <s> get column of matrix in 1 based vector </s> - diff --git a/funcom_test/48104901.txt b/funcom_test/48104901.txt deleted file mode 100644 index 56e593e03c3d397089d160b013e89b4c1eab7b2c..0000000000000000000000000000000000000000 --- a/funcom_test/48104901.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void scale(double lambda) { - for (int i = 0; i < m_values.length; i++) { - m_values[i] *= lambda; - } - /* - for (int iRow = 1; iRow <= m_nRows; iRow++) { - for (int iCol = 1; iCol <= m_nCols; iCol++) { - mul(iRow, iCol,lambda); - } - } - */ - } - COM: <s> multiples each entry of a by lambda </s> - diff --git a/funcom_test/48104946.txt b/funcom_test/48104946.txt deleted file mode 100644 index f946fabb91f27e475729d01a6d84f0020f9c7af9..0000000000000000000000000000000000000000 --- a/funcom_test/48104946.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Assumptions clone(Taxa taxa) { - Assumptions assumptions = new Assumptions(); - StringWriter w = new StringWriter(); - try { - write(w, taxa); - assumptions.read(new NexusStreamParser(new StringReader(w.toString())), taxa); - } catch (Exception ex) { - Basic.caught(ex); - } - return assumptions; - - } - COM: <s> clone the assumptions block </s> - diff --git a/funcom_test/48104979.txt b/funcom_test/48104979.txt deleted file mode 100644 index cb0a2eeef081b338d7099d7386e1ef9f0048208a..0000000000000000000000000000000000000000 --- a/funcom_test/48104979.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String toString(Partition partition) { - String s = ""; - for (int i = 1; i <= partition.getNumBlocks(); i++) { - s += i; - s += ":"; - s += toString(partition.getBlock(i)); - if (i < partition.getNumBlocks()) - s += ","; - } - return s; - } - COM: <s> return a int partition as a string </s> - diff --git a/funcom_test/48104980.txt b/funcom_test/48104980.txt deleted file mode 100644 index 086bfc37b3723fe920f9651e361b7e9eed9611f7..0000000000000000000000000000000000000000 --- a/funcom_test/48104980.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: // public double ESS(List<Double> trace) { -// m_fSum = 0; -// m_trace = new ArrayList<Double>(); -// m_fSquareLaggedSums = new ArrayList<Double>(); -// double fESS = 0; -// for (int i = 1; i < trace.size(); i++) { -// fESS = incrementalESS(trace.get(i)); -// } -// return fESS; -// } - COM: <s> return effective sample size of a sample </s> - diff --git a/funcom_test/48106569.txt b/funcom_test/48106569.txt deleted file mode 100644 index 1c25fa4a87770758c6d13efcf15bd15eed296717..0000000000000000000000000000000000000000 --- a/funcom_test/48106569.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public char getOriginal(int seq, int site) { - char ch = get(seq, site); - if (!hasAmbigStates() || ch != getFormat().getMissing() || !replacedStates.hasEntry(seq, site)) - return ch; - else - return (replacedStates.getString(seq, site).charAt(0)); - } - COM: <s> ambiguous states are replaced by the missing character but stored in replaced states </s> - diff --git a/funcom_test/48107203.txt b/funcom_test/48107203.txt deleted file mode 100644 index f1c839b714992277c4f0dc49b414a1810fa39697..0000000000000000000000000000000000000000 --- a/funcom_test/48107203.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected String padLabel(String label, boolean addQuotes, int length) { - if (addQuotes) - label = "'" + label + "'"; - if (label.length() >= length) - return label; - char[] padding = new char[length - label.length()]; - Arrays.fill(padding, ' '); - String paddingString = new String(padding); - return label + paddingString; - } - COM: <s> formats a label </s> - diff --git a/funcom_test/48107339.txt b/funcom_test/48107339.txt deleted file mode 100644 index cf152d737222b6d38eb1899348dd84e616d23abf..0000000000000000000000000000000000000000 --- a/funcom_test/48107339.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void restoreAmbiguityStates() { - if (!getFormat().isNucleotideType() || replacedStates == null) - return; - - SparseArray.ArrayIterator iter = replacedStates.arrayIterator(); - while (iter.hasNext()) { - iter.getNext(); - set(iter.i, iter.j, ((String) iter.o).charAt(0)); - } - } - COM: <s> undoes the replacement of the character states by ambiguous states </s> - diff --git a/funcom_test/48107561.txt b/funcom_test/48107561.txt deleted file mode 100644 index 295a3b41ae19fa48b40c1023fd1bdd3fd210a345..0000000000000000000000000000000000000000 --- a/funcom_test/48107561.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Characters clone(Taxa taxa) { - Characters characters = new Characters(); - try { - StringWriter sw = new StringWriter(); - this.write(sw, taxa); - StringReader sr = new StringReader(sw.toString()); - characters.read(new NexusStreamParser(sr), taxa); - } catch (Exception ex) { - Basic.caught(ex); - } - return characters; - } - COM: <s> clones a characters object </s> - diff --git a/funcom_test/4812919.txt b/funcom_test/4812919.txt deleted file mode 100644 index 27b9eca34de8026aefed58906a642f997c23a04e..0000000000000000000000000000000000000000 --- a/funcom_test/4812919.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Document getDocumentFrom(File aFile) { - DocumentBuilderFactory tmpFactory = DocumentBuilderFactory.newInstance(); - Document tmpDocument = null; - - try { - DocumentBuilder tmpBuilder = tmpFactory.newDocumentBuilder(); - tmpDocument = tmpBuilder.parse(aFile); - } catch (Exception e) { - e.printStackTrace(); - } - - return tmpDocument; - } - COM: <s> reads an xml file into a w3c document </s> - diff --git a/funcom_test/4813004.txt b/funcom_test/4813004.txt deleted file mode 100644 index 293e397a8b675111f898adca2d131a7a76e3ca4f..0000000000000000000000000000000000000000 --- a/funcom_test/4813004.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int detectDirection(int anOldCoordinate, int aNewCoordinate) throws IllegalArgumentException { - if (aNewCoordinate - anOldCoordinate > 0) { - return Direction.DOWN_OR_RIGHT; - } else if (aNewCoordinate - anOldCoordinate < 0) { - return Direction.UP_OR_LEFT; - } else { - throw new IllegalArgumentException("Method does not support the direction detect for equal coordinates."); - } - } - COM: <s> checks if the direction from old coordinate to new coordinate </s> - diff --git a/funcom_test/4813350.txt b/funcom_test/4813350.txt deleted file mode 100644 index a19dd9961f43852680d699a3a1fca33589f2f3ab..0000000000000000000000000000000000000000 --- a/funcom_test/4813350.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void removePlaceableFromTeam(Placeable aPlaceable, char anId) { - Team tmpTeam = getTeam(anId); - if (aPlaceable instanceof Figure) { - tmpTeam.removeFigureFromTeam((Figure) aPlaceable); - } else if (aPlaceable instanceof Item) { - // TODO Maybe the Game ends here?! - endGame(tmpTeam.removeItemFromTeam((Item) aPlaceable)); - } - } - COM: <s> deletes an item or a figure from the team </s> - diff --git a/funcom_test/48209630.txt b/funcom_test/48209630.txt deleted file mode 100644 index cb4d6dc2f2cd7aedb964c1ba091207e6d002c0de..0000000000000000000000000000000000000000 --- a/funcom_test/48209630.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setCurrentDiscount(double currentCourseDiscount, double currentWineDiscount) { - if(currentCourseDiscount > 0 && currentWineDiscount > 0) { - // Exception invalid values - } else { - this.currentCourseDiscount = currentCourseDiscount; - this.currentWineDiscount = currentWineDiscount; - DataObjectSaver.saveDiscountSettings(this.currentCourseDiscount, this.currentWineDiscount); - } - - } - COM: <s> sets the current discount </s> - diff --git a/funcom_test/48209632.txt b/funcom_test/48209632.txt deleted file mode 100644 index da1b0d337661ed407d1c902e7a486af912530386..0000000000000000000000000000000000000000 --- a/funcom_test/48209632.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testDisplayFoodPopularity() { - - ArrayList<SummarisedMenuItem> arrCourses = DataObjectFactory.getSummarisedMenuItems(DataObjectFactory.TYPE_COURSE); - assertNotNull(arrCourses); - assertTrue(arrCourses.size() > 1); - assertTrue(arrCourses.get(0).getQuantity() >= arrCourses.get(arrCourses.size()-1).getQuantity()); - } - COM: <s> test display food popularity </s> - diff --git a/funcom_test/48209636.txt b/funcom_test/48209636.txt deleted file mode 100644 index b83aca84f837a13da0a44d7e7df12443e5303a6b..0000000000000000000000000000000000000000 --- a/funcom_test/48209636.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testDisplayWinePopularity() { - - ArrayList<SummarisedMenuItem> arrWines = DataObjectFactory.getSummarisedMenuItems(DataObjectFactory.TYPE_COURSE); - assertNotNull(arrWines); - assertTrue(arrWines.size() > 1); - assertTrue(arrWines.get(0).getQuantity() >= arrWines.get(arrWines.size()-1).getQuantity()); - - } - COM: <s> test display wine popularity </s> - diff --git a/funcom_test/48209794.txt b/funcom_test/48209794.txt deleted file mode 100644 index 2e0610aca0f6a961d63ef6f7988a8361acd5fced..0000000000000000000000000000000000000000 --- a/funcom_test/48209794.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void addInternalFrame(JInternalFrame frame) { - - boolean found = false; - for (int i = 0; i < this.desktopPane.getComponentCount(); i++) { - if (this.desktopPane.getComponent(i).getClass().equals( - frame.getClass())) { - found = true; - } - } - if (!found) { - this.desktopPane.add(frame); - } else { - frame.setVisible(true); - } - try { - frame.setSelected(true); - } catch (Exception e) { - } - this.validate(); - } - COM: <s> adds the internal frame </s> - diff --git a/funcom_test/48209810.txt b/funcom_test/48209810.txt deleted file mode 100644 index 230ceb2871ee8ed367afd376b087c7f4eb66aafd..0000000000000000000000000000000000000000 --- a/funcom_test/48209810.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void setButtonText() { - String txt = menuItem.getTitle() + " (" - + menuItem.getStock() - + " in Stock)"; - try { - Course tmpCourse = (Course)menuItem; - if(tmpCourse.getCourseType() == Course.FIRST_COURSE) { - txt = "1st: " + txt; - } else { - txt = "2nd: " + txt; - } - } catch (Exception e) { - // TODO: handle exception - } - this.setText(txt); - } - COM: <s> sets the button text </s> - diff --git a/funcom_test/48240798.txt b/funcom_test/48240798.txt deleted file mode 100644 index dfd4f7351816109d0701fa51253bc7ce2bb9707a..0000000000000000000000000000000000000000 --- a/funcom_test/48240798.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void sort(List<T> list, String property) throws Exception { - if(list == null || list.size() == 0) return; - if(property == null || property.equals("")) return; - try{ - GenericComparator<T> comparator = new GenericComparator<T>(property); - Collections.sort(list, comparator); - }catch(Exception e){ - //ignore it! - logger.error(e.getMessage()); - } - } - COM: <s> sort the list collection the list could be any same type object </s> - diff --git a/funcom_test/48240816.txt b/funcom_test/48240816.txt deleted file mode 100644 index a498e084d346925b2d5a74c90d7064beb0fe51e8..0000000000000000000000000000000000000000 --- a/funcom_test/48240816.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public DataItem getFilterItem(FilterData filterData , String itemName){ - DataItem r = null; - if(filterData != null){ - List<DataItem> filterItems = filterData.getItems(); - if(filterItems != null){ - for(DataItem filterItem:filterItems){ - //does the item exist? - if(filterItem.getName().equals(itemName)){ - r = filterItem; - break; - } - } - } - } - return r; - } - COM: <s> get filter item from the filter data </s> - diff --git a/funcom_test/48242134.txt b/funcom_test/48242134.txt deleted file mode 100644 index c14bf9e0fb34fe9c2342686d3c9a1faf33fce4f5..0000000000000000000000000000000000000000 --- a/funcom_test/48242134.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public ColumnOverride getColumnOverride(String columnName) { - for (ColumnOverride co : columnOverrides) { - if (co.isColumnNameDelimited()) { - if (columnName.equals(co.getColumnName())) { - return co; - } - } else { - if (columnName.equalsIgnoreCase(co.getColumnName())) { - return co; - } - } - } - - return null; - } - COM: <s> may return null if the column has not been overridden </s> - diff --git a/funcom_test/48242159.txt b/funcom_test/48242159.txt deleted file mode 100644 index 6023b13fe0765ceee8e34ed6fceaf7caba3be233..0000000000000000000000000000000000000000 --- a/funcom_test/48242159.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected Document getSqlMap(IntrospectedTable introspectedTable) { - - IbatorPlugin plugins = ibatorContext.getPlugins(); - - Document document = new Document(XmlConstants.SQL_MAP_PUBLIC_ID, - XmlConstants.SQL_MAP_SYSTEM_ID); - document.setRootElement(getSqlMapElement(introspectedTable)); - - if (plugins.sqlMapDocumentGenerated(document, introspectedTable)) { - return document; - } else { - return null; - } - } - COM: <s> creates the default implementation of the sql map </s> - diff --git a/funcom_test/48242252.txt b/funcom_test/48242252.txt deleted file mode 100644 index 813938c31c6b93c1c18ae8fdd9e77a6f77247494..0000000000000000000000000000000000000000 --- a/funcom_test/48242252.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getSqlMapPackage() { - SqlMapGeneratorConfiguration config = ibatorContext.getSqlMapGeneratorConfiguration(); - - StringBuffer sb = new StringBuffer(config.getTargetPackage()); - if (StringUtility.isTrue(config.getProperty(PropertyRegistry.ANY_ENABLE_SUB_PACKAGES))) { - sb.append(fullyQualifiedTable.getSubPackage()); - } - - return sb.toString(); - } - COM: <s> calculates the package for the current table </s> - diff --git a/funcom_test/48242406.txt b/funcom_test/48242406.txt deleted file mode 100644 index 6130bd37fd104d6742c6d8b86eb916cefe95dfd9..0000000000000000000000000000000000000000 --- a/funcom_test/48242406.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public FullyQualifiedJavaType calculateAllFieldsClass() { - - FullyQualifiedJavaType answer; - - if (generateRecordWithBLOBsClass()) { - answer = introspectedTable.getRecordWithBLOBsType(); - } else if (generateBaseRecordClass()) { - answer = introspectedTable.getBaseRecordType(); - } else { - answer = introspectedTable.getPrimaryKeyType(); - } - - return answer; - } - COM: <s> calculates the class that contains all fields </s> - diff --git a/funcom_test/48261786.txt b/funcom_test/48261786.txt deleted file mode 100644 index ac78349ae235ef3cd079b33ce62f88994466b828..0000000000000000000000000000000000000000 --- a/funcom_test/48261786.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void add(Node node) throws SQLException { - if(node == null) { - throw new NullPointerException("Can't add 'null' node."); - } - - if(id > 0 && (node.getId() == 0 || child(node.getId()) == null)) { - update(node); - } - - link.add(0, node); - } - COM: <s> add child node </s> - diff --git a/funcom_test/48261903.txt b/funcom_test/48261903.txt deleted file mode 100644 index 5fe675d13bf12508af9df360ab75e834a8938662..0000000000000000000000000000000000000000 --- a/funcom_test/48261903.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean fill(int depth, int start, int limit) throws SQLException { - boolean link = link(start, limit); - boolean meta = meta(); - - if(depth > 0) { - Iterator it = this.link.iterator(); - - while(it.hasNext()) { - Node node = (Node) it.next(); - - // TODO: Cache - - link = node.fill(--depth, start, limit); - } - } - - return link && meta; - } - COM: <s> fills the node with meta data and children nodes </s> - diff --git a/funcom_test/48261928.txt b/funcom_test/48261928.txt deleted file mode 100644 index 11c0d02dc20568e6cc2b8d427efbf3b6f0cb4e72..0000000000000000000000000000000000000000 --- a/funcom_test/48261928.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public boolean meta() throws SQLException { - if(id > 0 && meta.size() == 0) { - meta.setNode(this); - meta.setData(-1); - - if(Sprout.update(Base.SELECT, meta)) { - for(int i = 0; i < meta.size(); i++) { - DataBean bean = (DataBean) meta.get(i); - Data data = new Data(); - data.copy(bean); - data.done(true); - meta.set(i, data); - } - - return true; - } - } - - return false; - } - COM: <s> fills the node with meta data </s> - diff --git a/funcom_test/48261955.txt b/funcom_test/48261955.txt deleted file mode 100644 index fa3b82079cb64d7ff8f6c37aae2e1f7cca0ae198..0000000000000000000000000000000000000000 --- a/funcom_test/48261955.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public Node child(int link, short meta, String value) throws SQLException { - Iterator it = this.link.iterator(); - - while(it.hasNext()) { - Node node = (Node) it.next(); - - if(node.getType() == link) { - node.meta(); - - if(node.meta(meta).getString().equals(value)) { - return node; - } - } - } - - return null; - } - COM: <s> return the first child that contains the meta data </s> - diff --git a/funcom_test/48261967.txt b/funcom_test/48261967.txt deleted file mode 100644 index 019c8ff7900f5605fba8475fd7dcd71504cb88c9..0000000000000000000000000000000000000000 --- a/funcom_test/48261967.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Node parent(int type, Data data, int limit) throws SQLException { - LinkBean link = query(new Node(type, -1), this, limit); - Iterator it = link.iterator(); - - while(it.hasNext()) { - Node node = new Node(); - node.copy((NodeBean) it.next()); - node.meta(); - - if(node.meta(data.getType()).getString().equals(data.getString())) { - return node; - } - } - - return null; - } - COM: <s> return the first parent of a type that contains the meta data </s> - diff --git a/funcom_test/48383869.txt b/funcom_test/48383869.txt deleted file mode 100644 index 4ac2f6e6a57401dfdd1f5be046dfbcaa813fb43f..0000000000000000000000000000000000000000 --- a/funcom_test/48383869.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void notifyCompletion(@SuppressWarnings("rawtypes") AJAXRequest request){ - //Checks if the request is urgent and only if so (thanks laziness!) tries to remove it from the urgent waiting_queue - if ( !request.isUrgent() || !queue_urgent.remove(request) ){ - //If the request is not urgent or it has been added to the urgent waiting_queue, then it must be removed - //from the standard queue_started - queue_started.remove(request); - } - sendNextRequestInQueue(); - } - COM: <s> this method gets called by each ajaxrequest once its completed or if fails </s> - diff --git a/funcom_test/48384030.txt b/funcom_test/48384030.txt deleted file mode 100644 index cf2612bcba74d7462644273fe0d962b5dd5b24ee..0000000000000000000000000000000000000000 --- a/funcom_test/48384030.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void removeButtonOnClick() { - if (!fileGrid.anySelected()) { - return; - } - - for (FileRecord fileRecord : fileGrid.getSelection()) { - if (!FileState.STATE_PROCESSING.equals(fileRecord.getFileState())) { - fileGrid.removeData(fileRecord); - fireEvent(new FileRemoveEvent(FileUploader.this, fileRecord - .getFileName())); - } - } - } - COM: <s> invoke to selected file from list </s> - diff --git a/funcom_test/48384461.txt b/funcom_test/48384461.txt deleted file mode 100644 index a56204e441c8e67107207af07f31fbeaaaf1b0eb..0000000000000000000000000000000000000000 --- a/funcom_test/48384461.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addNewEventAfterCurrent(Event newEvent) { - setAsEventContainer(newEvent); - if (events.isEmpty()){ - addNewEvent(newEvent); - }else{ - //INVARIANT: The current event is always the first one, unless the queue is empty - events.add(1,newEvent); - } - -// System.out.println("Adding event " + newEvent.ID + " after current event" ); - } - COM: <s> adds i new event i to the container after the current one </s> - diff --git a/funcom_test/48384547.txt b/funcom_test/48384547.txt deleted file mode 100644 index 00d0afc8f93d37ea8b9a2397c4c3f5482021366f..0000000000000000000000000000000000000000 --- a/funcom_test/48384547.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected int getTaskPosition(Task task) { - int pos = Math.min(task.getLastKnownTaskPosition(), tasks.size() - 1); - - if (pos == Task.NO_POSITION) { - pos = tasks.indexOf(task); - } else { - pos = tasks.lastIndexOf(task, pos); - if (pos == Task.NO_POSITION) { - pos = tasks.indexOf(task, pos); - } - } - task.updatePositionInsideTaskbar(pos); - return pos; - } - COM: <s> returns the position of the task in the taskbars tasks array </s> - diff --git a/funcom_test/48384721.txt b/funcom_test/48384721.txt deleted file mode 100644 index f262d1d5e0663a99809a68783f67e0c8d905b207..0000000000000000000000000000000000000000 --- a/funcom_test/48384721.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void computeTasksHeight(int taskBarHeight) { - int oldTasksHeight = tasksHeight; - tasksHeight = taskBarHeight - 3 * TASK_MARGIN - 1; - - if (tasksHeight == oldTasksHeight) - return; // Nothing to do; - - - if ( tasksHeight < minTasksHeight){ - SC.warn("Insufficient Taskbar height:<br>The Taskbar is going to be resized" ); - tasksHeight = oldTasksHeight; - }else{ - if ( tasksHeight > maxTasksHeight){ - tasksHeight = maxTasksHeight; - } - updateTasksHeight(); - } - } - COM: <s> computes tasks ideal height to make them properly fit the taskbar </s> - diff --git a/funcom_test/48401698.txt b/funcom_test/48401698.txt deleted file mode 100644 index b05f4644fec340dc44e87730f97af143e8d39d6c..0000000000000000000000000000000000000000 --- a/funcom_test/48401698.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void setResolveMethod(Class<?> nonterminal) { - try { - _resolve_method = nonterminal.getMethod("resolve", new Class<?>[] { - Class.class, Iterator.class, int.class }); - } catch (Exception e) { - LOG.error("Error finding resolve() method!", e); - } - } - COM: <s> get the method that will be used to resolve this non terminal </s> - diff --git a/funcom_test/48401704.txt b/funcom_test/48401704.txt deleted file mode 100644 index 7315068970c44bf313c61d4d1cf382cffe63ecfd..0000000000000000000000000000000000000000 --- a/funcom_test/48401704.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public int getMinimumTerminationDepth() { - // LOG.trace("minTermDeath " + this + "=" + _min_termination_depth); - - if (_min_termination_depth == 0) { - _min_termination_depth = Integer.MAX_VALUE; - - int tmp = _min_termination_depth; - for (Expression exp : _expressions) { - tmp = Math.min(tmp, exp.maxTerminationDepth()); - } - - // The actual termination depth is 1 greater since we have to count - // ourselves - _min_termination_depth = tmp + 1; - } - - return _min_termination_depth; - } - COM: <s> gets the minimum application of all productions rules to terminate this </s> - diff --git a/funcom_test/48401731.txt b/funcom_test/48401731.txt deleted file mode 100644 index 5f25c68df8092b8f52b489481c52d8b705001b2b..0000000000000000000000000000000000000000 --- a/funcom_test/48401731.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setContainsNonTerminal() { - _conatinsNonTerminal = false; - - if (_symbol_types != null) { - for (int i = 0; i < _symbol_types.length && !_conatinsNonTerminal; i++) { - _conatinsNonTerminal = _symbol_types[i].is_nonterminal; - } - } else { - for (int i = 0; i < _symbols.length && !_conatinsNonTerminal; i++) { - _conatinsNonTerminal = (_symbols[i] instanceof NonTerminal); - } - } - } - COM: <s> checks the symbols to see if anyone of them are nonterminal </s> - diff --git a/funcom_test/48445690.txt b/funcom_test/48445690.txt deleted file mode 100644 index c120e58bb1808287cccfbc852b76e53bace6ff23..0000000000000000000000000000000000000000 --- a/funcom_test/48445690.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String loadName(String line) { - - String[] tokens = line.split("="); - - if (tokens.length == 2) { - String traderName = tokens[1].trim(); - if (traderName.startsWith("\"") && traderName.endsWith("\"")) { - // Remove leading and trailing '"'; - traderName = traderName.substring(1, traderName.length() - 1); - } - trader.getAttributes().putString("name", traderName); - return ""; - } - return "Invalid name syntax"; - } - COM: <s> parse an name string string </s> - diff --git a/funcom_test/48445724.txt b/funcom_test/48445724.txt deleted file mode 100644 index b5cc5c304db64a1a121fbe99c141c4feef5b3ab4..0000000000000000000000000000000000000000 --- a/funcom_test/48445724.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private String loadRow(String line) { - - String[] tokens = line.split("="); - if (tokens.length == 2) { - try { - Integer rowNo = new Integer(tokens[1].trim()); - row = rowNo; - } catch (NumberFormatException e) { - return "Row must be a number"; - } - if ((row >= 1) && (row <= area.getRows())) { - if (col >= 1) { - putTraderOnLocation(); - } - return ""; - } else { - return "Row is out of range"; - } - } - return "Invalid row syntax"; - } - COM: <s> parse an row number string </s> - diff --git a/funcom_test/48659065.txt b/funcom_test/48659065.txt deleted file mode 100644 index 54518c05667377727a6e5776d9acbd401c3c3207..0000000000000000000000000000000000000000 --- a/funcom_test/48659065.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void record(String token, String appID, String clientID, String description) throws Exception { - record(token, appID, Event.EVENT_TYPE_RECORD, clientID, description, -1.0, Event.NOLAT, Event.NOLON, -1.0); - } - COM: <s> records an event for the given application identified by app id </s> - diff --git a/funcom_test/48659074.txt b/funcom_test/48659074.txt deleted file mode 100644 index 5497dfa7274dc959648934eb07c12ab1602e0e91..0000000000000000000000000000000000000000 --- a/funcom_test/48659074.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void activateAccount(long id, String emailToken) throws Exception { - AccountManager am = new AccountManager(); - Account acct = null; - acct = am.getAccount(id); - if (acct == null) { - am.closeSession(); - throw new ILException(ILException.UNKNOWN_ACCOUNT); - } - String stoken = acct.getEmailToken(); - if (!stoken.equalsIgnoreCase(emailToken)) { - am.closeSession(); - throw new ILException(ILException.BAD_TOKEN); - } - // activate - acct.setStatus(Account.STATUS_ACTIVE); - am.saveOrUpdateAccount(acct); - // send them their security token - // emailSecurityToken(acct); - am.closeSession(); - } - COM: <s> activates an account after sign up </s> - diff --git a/funcom_test/48659115.txt b/funcom_test/48659115.txt deleted file mode 100644 index 0a9102a72821349ef0f55ed248ebc6c4b10b2628..0000000000000000000000000000000000000000 --- a/funcom_test/48659115.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addApplicationCounter(String token, String appID, String counterName) throws Exception { - AccountManager am = new AccountManager(); - am.getSession().beginTransaction(); - Application app = am.checkAppOwnedByAcct(token, appID); - ProvisioningManager pm = new ProvisioningManager(am.getSession()); - pm.addApplicationCounter(app, counterName); - am.getSession().getTransaction().commit(); - am.closeSession(); - } - COM: <s> adds a new counter to the application identified by app id </s> - diff --git a/funcom_test/48659117.txt b/funcom_test/48659117.txt deleted file mode 100644 index 68c241fda07563fe914272a0af54fd9ca9c2823d..0000000000000000000000000000000000000000 --- a/funcom_test/48659117.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void resetPassword(String token, String oldPassword, String newPassword) throws Exception { - AccountManager am = new AccountManager(); - Account acct = am.checkToken(token); - if (!oldPassword.equalsIgnoreCase(acct.getPassword())) { - am.closeSession(); - throw new ILException(ILException.BAD_PASSWORD); - } - acct.setPassword(newPassword); - acct.setEmailToken(""); - am.saveOrUpdateAccount(acct); - am.closeSession(); - } - COM: <s> resets the password for the account identified by the security token </s> - diff --git a/funcom_test/48707757.txt b/funcom_test/48707757.txt deleted file mode 100644 index a7c761e7f5fa7376f79c1d6bd6eeb89076c4be98..0000000000000000000000000000000000000000 --- a/funcom_test/48707757.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void disconnectFromDatabase() { - if (!connectedToDatabase) - return; - // close Statement and Connection - try { - statement.close(); - connection.close(); - } // end try - catch (SQLException sqlException) { - sqlException.printStackTrace(); - } // end catch - finally // update database connection status - { - connectedToDatabase = false; - } // end finally - } // end method disconnectFromDatabase - COM: <s> closes the connection to the database and all the created statement </s> - diff --git a/funcom_test/48714335.txt b/funcom_test/48714335.txt deleted file mode 100644 index 35309e0e653a2c4657dd4ea5005d3f4ad7024fe8..0000000000000000000000000000000000000000 --- a/funcom_test/48714335.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public ModelAndView ownerHandler(HttpServletRequest request, HttpServletResponse response) { - Owner owner = this.clinic.loadOwner(ServletRequestUtils.getIntParameter(request, "ownerId", 0)); - if (owner == null) { - return new ModelAndView("findOwnersRedirect"); - } - return new ModelAndView().addObject(owner); - } - COM: <s> custom handler for owner display </s> - diff --git a/funcom_test/48714641.txt b/funcom_test/48714641.txt deleted file mode 100644 index 3ddfe2044d24bf871581df2c2c9a74a2bce3182d..0000000000000000000000000000000000000000 --- a/funcom_test/48714641.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Properties readBeanSetDefinition(ClassLoader classLoader, String definitionString) { - Assert.notNull(classLoader); - Assert.notNull(definitionString); - - BeanSetMapReader reader = new BeanSetMapReader(); - final Map<String, Set<String>> definition = reader.readBeanSetDefinition(definitionString); - - return readBeanSetDefinition(classLoader, definition); - } - COM: <s> reads bean set definition specified in the following format null bean1 </s> - diff --git a/funcom_test/48714912.txt b/funcom_test/48714912.txt deleted file mode 100644 index 03584634334fd4bdc114a0cab861400d7ceca0f1..0000000000000000000000000000000000000000 --- a/funcom_test/48714912.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean reloadModule(String moduleName) { - ModuleOperation operation = facade.getModuleOperationRegistry().getOperation( - ModuleOperationConstants.ReloadNamedModuleOperation); - ModuleOperationInput moduleOperationInput = new ModuleOperationInput(null, null, moduleName); - ModuleOperationResult result = execute(operation, moduleOperationInput); - return result.isSuccess(); - } - COM: <s> attempts to reload named module </s> - diff --git a/funcom_test/48714932.txt b/funcom_test/48714932.txt deleted file mode 100644 index c8c7953ae5e93e10ffb1e84a550dd6ded6515430..0000000000000000000000000000000000000000 --- a/funcom_test/48714932.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected Element getRootElement() { - Assert.notNull(resource, "resource cannot be null"); - Document document = xmlDefinitionLoader.loadDocument(resource, new ClassPathResource("org/impalaframework/module/source/moduledefinition.xsd", this.getClass().getClassLoader())); - - Element root = document.getDocumentElement(); - return root; - } - COM: <s> returns a reference for the root element from the </s> - diff --git a/funcom_test/48714942.txt b/funcom_test/48714942.txt deleted file mode 100644 index 09c62e8e132f4e4f2b3a8435bf6200c03e64cd5b..0000000000000000000000000000000000000000 --- a/funcom_test/48714942.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected String getName(Element definitionElement) { - Element nameElement = DomUtils.getChildElementByTagName(definitionElement, ModuleElementNames.NAME_ELEMENT); - String name = DomUtils.getTextValue(nameElement); - Assert.notNull(nameElement, ModuleElementNames.MODULE_ELEMENT + " must contain an element: " + ModuleElementNames.NAME_ELEMENT); - return name; - } - COM: <s> returns the value of the code name code subelement of the supplied element </s> - diff --git a/funcom_test/48714949.txt b/funcom_test/48714949.txt deleted file mode 100644 index 29de2cdc2b2b81216f63ba0a072507b3ec37176e..0000000000000000000000000000000000000000 --- a/funcom_test/48714949.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void repairModules() { - RootModuleDefinition rootModuleDefinition = getModuleStateHolder().getRootModuleDefinition(); - ModuleOperation operation = facade.getModuleOperationRegistry().getOperation( - ModuleOperationConstants.RepairModuleOperation); - ConstructedModuleDefinitionSource newModuleDefinitionSource = new ConstructedModuleDefinitionSource( - rootModuleDefinition); - - ModuleOperationInput input = new ModuleOperationInput(newModuleDefinitionSource, null, null); - execute(operation, input); - } - COM: <s> attempts to repair any modules which are in an error state </s> - diff --git a/funcom_test/48714969.txt b/funcom_test/48714969.txt deleted file mode 100644 index 3883c8e082b56dad7a2c9c1a27bf9538ccbe460f..0000000000000000000000000000000000000000 --- a/funcom_test/48714969.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean isAvailable() { - - if (this.rwl.isWriteLocked()) { - if (!this.rwl.isWriteLockedByCurrentThread()) { - - if (logger.isDebugEnabled()) { - logger.debug("Module is unavailable with hold count of " + rwl.getWriteHoldCount() + " but not held by current thread"); - } - return false; - } - return true; - } - return true; - } - COM: <s> returns false if write lock is taken by another thread </s> - diff --git a/funcom_test/48714978.txt b/funcom_test/48714978.txt deleted file mode 100644 index cd8d5b06bbbe70c8492a925eb85eed9fff2c25eb..0000000000000000000000000000000000000000 --- a/funcom_test/48714978.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean removeModule(String moduleName) { - ModuleOperation operation = facade.getModuleOperationRegistry().getOperation( - ModuleOperationConstants.RemoveModuleOperation); - ModuleOperationInput moduleOperationInput = new ModuleOperationInput(null, null, moduleName); - return execute(operation, moduleOperationInput).isSuccess(); - } - COM: <s> unloads and removes the named module </s> - diff --git a/funcom_test/48714995.txt b/funcom_test/48714995.txt deleted file mode 100644 index 15eb89c8e69ed32c115a050b1c8982c1d58adf31..0000000000000000000000000000000000000000 --- a/funcom_test/48714995.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void addModule(final ModuleDefinition moduleDefinition) { - ModuleOperation operation = facade.getModuleOperationRegistry().getOperation( - ModuleOperationConstants.AddModuleOperation); - ModuleOperationInput moduleOperationInput = new ModuleOperationInput(null, moduleDefinition, null); - execute(operation, moduleOperationInput); - } - COM: <s> adds the module as determined by the supplied module definition </s> - diff --git a/funcom_test/48715261.txt b/funcom_test/48715261.txt deleted file mode 100644 index 0ef886150266f638983d4dcfe8fec6b850c04473..0000000000000000000000000000000000000000 --- a/funcom_test/48715261.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public ApplicationContext getContainingApplicationContext(String beanName) { - - if (parentGetBean) { - final ApplicationContext applicationContext = - BeanFactoryUtils.maybeFindApplicationContext(parent, beanName); - - if (applicationContext != null) { - return applicationContext; - } - } - - for (ApplicationContext applicationContext : nonAncestorDependentContexts) { - - if (containsBeanDefintion(applicationContext, beanName)) { - return applicationContext; - } - } - - return null; - - } - COM: <s> searches for the </s> - diff --git a/funcom_test/48715493.txt b/funcom_test/48715493.txt deleted file mode 100644 index 2c278a9141bf6527f374171651e513aca5c19d98..0000000000000000000000000000000000000000 --- a/funcom_test/48715493.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void populateVertexDependencies(Vertex vertex) { - - Assert.notNull(vertex, "vertex cannot be null"); - - final ModuleDefinition moduleDefinition = vertex.getModuleDefinition(); - - populateDependencies(vertex, moduleDefinition, false); - populateDependencies(vertex, moduleDefinition, true); - } - COM: <s> sets up the dependencies for a particular named module </s> - diff --git a/funcom_test/48715848.txt b/funcom_test/48715848.txt deleted file mode 100644 index 736db733a57c5224f75b190b899f33394f285b51..0000000000000000000000000000000000000000 --- a/funcom_test/48715848.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected URL getCustomResource(String name) { - try { - for (int i = 0; i < locations.length; i++) { - File file = new File(locations[i], name); - if (file.exists()) { - URL url = file.toURI().toURL(); - return url; - } - } - - } - catch (IOException e) { - logger.error("IOException attempting to load resource " + name + " from location(s) " + Arrays - .toString(locations)); - } - return null; - } - COM: <s> attempts to find a resource from one of the file system locations </s> - diff --git a/funcom_test/48715871.txt b/funcom_test/48715871.txt deleted file mode 100644 index 4ab81b1c82531c93092fb39c3a3819d329b18567..0000000000000000000000000000000000000000 --- a/funcom_test/48715871.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public URL findResource(String resourceName) { - URL findResource = urlClassLoader.findResource(resourceName); - - if (logger.isTraceEnabled()) { - - if (findResource != null) { - logger.trace("Successfully found URL " + findResource + " from " + this); - } else { - logger.trace("Unable to find URL for " + resourceName + " from " + this); - } - } - - return findResource; - } - COM: <s> returns a url representing a particular resource </s> - diff --git a/funcom_test/48715872.txt b/funcom_test/48715872.txt deleted file mode 100644 index f9ae91fc2497f6026c8661d64d91ddca3984ad3c..0000000000000000000000000000000000000000 --- a/funcom_test/48715872.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public URL getResource(String name) { - List<GraphClassLoader> loaders = this.classLoaders; - for (int i = loaders.size()-1; i >=0; i--) { - final GraphClassLoader classLoader = loaders.get(i); - final URL localResource = classLoader.getLocalResource(name); - if (localResource != null) return localResource; - } - return null; - } - COM: <s> seaches for named resource using wired in class loaders </s> - diff --git a/funcom_test/48716060.txt b/funcom_test/48716060.txt deleted file mode 100644 index ec6d22a7456bb6aaa3888904f3b12dcb9ff6cfb7..0000000000000000000000000000000000000000 --- a/funcom_test/48716060.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void _testReadThenWriteLock() throws Exception { - lockHolder.readLock(); - Thread t = new Thread(new Runnable(){ - - public void run() { - System.out.println("About to hang trying to get write lock"); - lockHolder.writeLock(); - } - - }); - t.start(); - t.join(); - } - COM: <s> run this manually as it hangs </s> - diff --git a/funcom_test/48717462.txt b/funcom_test/48717462.txt deleted file mode 100644 index c50828dc85e81b1f0313110c72b6e5ceb665ef56..0000000000000000000000000000000000000000 --- a/funcom_test/48717462.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getValue(String name) { - final boolean supportsContextPath = ServletContextUtils.isAtLeast25(servletContext); - if (supportsContextPath) { - String contextPath = ServletContextUtils.getContextPathWithoutSlash(servletContext); - return System.getProperty(contextPath + "." + name); - } - - return null; - } - COM: <s> if current version of </s> - diff --git a/funcom_test/48861766.txt b/funcom_test/48861766.txt deleted file mode 100644 index fd9740307397163a9ca569a4155919fef58969a0..0000000000000000000000000000000000000000 --- a/funcom_test/48861766.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void addRelativeHeaders(Response response, int timeInSeconds) { - response.setHeader(CACHE_CONTROL_HEADER, String.format("max-age=%d", timeInSeconds)); - Calendar expires = Calendar.getInstance(); - expires.add(Calendar.SECOND, timeInSeconds); - response.setHeader("Expires", DATE_FORMAT.format(expires)); - } - COM: <s> add relative header </s> - diff --git a/funcom_test/48959145.txt b/funcom_test/48959145.txt deleted file mode 100644 index 486344e11bf80a4e4767442fd7161890d9668534..0000000000000000000000000000000000000000 --- a/funcom_test/48959145.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void deoccupy() { - assert guestInvariant(); - // Save the old location so we can free it after resetting ourselves - Cell oldLocation = location; - // Reset the guest's pointer - location = null; - // Reset the cell's inhabitant pointer. - oldLocation.free(); - assert !oldLocation.isOccupied(); - assert guestInvariant(); - } - COM: <s> remove the guest from the cell it occupies </s> - diff --git a/funcom_test/48959172.txt b/funcom_test/48959172.txt deleted file mode 100644 index 448bcf2f2bb64a9a06e2e5453627f18fe5e32dac..0000000000000000000000000000000000000000 --- a/funcom_test/48959172.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Cell getCell(int x, int y) { - assert invariant(); - assert withinBorders(x, y) - : "Cell requested (" + x + "," + y + ") out of borders " - + width + " * " + height; - Cell result = cellAt[x][y]; - assert result != null; - assert invariant(); - return result; - } - COM: <s> return the cell at position x y </s> - diff --git a/funcom_test/48959178.txt b/funcom_test/48959178.txt deleted file mode 100644 index 25659f8e9cb5558b70cecd663be003f89635cc2f..0000000000000000000000000000000000000000 --- a/funcom_test/48959178.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public char guestCode(int x, int y) { - assert invariant(); - assert withinBorders(x, y); - char result; - Guest guest = getGuest(x, y); - if (guest != null) { - result = guest.guestType(); - } else { - result = Guest.EMPTY_TYPE; - } - assert invariant(); - return result; - } - COM: <s> return the guest code of the cell at x y </s> - diff --git a/funcom_test/48959239.txt b/funcom_test/48959239.txt deleted file mode 100644 index 42a3d78c8dbb3f932b3f70ac941a277872270cf3..0000000000000000000000000000000000000000 --- a/funcom_test/48959239.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void exit() { - assert invariant(); - quit(); - theViewer.dispose(); - // No need for a hard exit using, e.g., System.exit(0): - // we'd like to be able to run a series of pacman's in a single - // JUnit test suite. - assert invariant(); - } - COM: <s> terminate the game </s> - diff --git a/funcom_test/48959251.txt b/funcom_test/48959251.txt deleted file mode 100644 index fa1697058744846e96db642753322adebc6f9cb7..0000000000000000000000000000000000000000 --- a/funcom_test/48959251.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Image getImage(String name) throws IOException { - assert name != null; - URL picfile = getClass().getClassLoader().getResource(name); - if (picfile == null) { - throw new IOException("Can't load image: " + name); - } - Image result = (new ImageIcon(picfile)).getImage(); - assert result != null; - return result; - } - COM: <s> obtain an image from a file resource that can </s> - diff --git a/funcom_test/48959270.txt b/funcom_test/48959270.txt deleted file mode 100644 index 3c5348a048fb79b9fdfbcdbc561a1d8bf5100cf8..0000000000000000000000000000000000000000 --- a/funcom_test/48959270.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void drawCells(Graphics2D g2) { - final float strokeWidth = 5.0f; - g2.setStroke(new BasicStroke(strokeWidth)); - - for (int x = 0; x < worldWidth(); x++) { - for (int y = 0; y < worldHeight(); y++) { - drawCell(x, y, g2); - } - } - } - COM: <s> draw all cells on the board </s> - diff --git a/funcom_test/48959318.txt b/funcom_test/48959318.txt deleted file mode 100644 index 7565f57dd5e48d359592bc93eb3d391283c56e8f..0000000000000000000000000000000000000000 --- a/funcom_test/48959318.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: @Before public void setUp() throws GameLoadException { - assertNotNull(getTheGame()); - theEngine = new Engine(getTheGame()); - theEngine.initialize(); - assertTrue(theEngine.inStartingState()); - theObserver = new MyObserver(); - theEngine.addObserver(theObserver); - } - COM: <s> initialize engine and attach the observer to it </s> - diff --git a/funcom_test/48959336.txt b/funcom_test/48959336.txt deleted file mode 100644 index ef7c1ad62bf203fe5c6e3607ef27930f8db67dc1..0000000000000000000000000000000000000000 --- a/funcom_test/48959336.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: @Test public void testUndo() { - aMove = createMove(getEmptyCell()); - MovingGuest mover = aMove.getMovingGuest(); - Cell location1 = mover.getLocation(); - aMove.apply(); - Cell location2 = mover.getLocation(); - assertNotSame(location1, location2); - aMove.undo(); - Cell location3 = mover.getLocation(); - assertEquals(location1, location3); - } - COM: <s> test the undo functionality </s> - diff --git a/funcom_test/48959344.txt b/funcom_test/48959344.txt deleted file mode 100644 index 8adb9e5479932ac235bb1ee5d6ef1f1b31e8fc2a..0000000000000000000000000000000000000000 --- a/funcom_test/48959344.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testUndoMonsterMove() { - Cell emptyCell = getEmptyCell(); - aMonsterMove = createMove(emptyCell); - assertTrue(aMonsterMove.movePossible()); - Cell original = aMonsterMove.getMonster().getLocation(); - assertNotSame(original, emptyCell); - aMonsterMove.apply(); - assertEquals(emptyCell, aMonsterMove.getMonster().getLocation()); - aMonsterMove.undo(); - assertEquals(original, aMonsterMove.getMonster().getLocation()); - } - COM: <s> test a move by a monster to an empty cell </s> - diff --git a/funcom_test/48968287.txt b/funcom_test/48968287.txt deleted file mode 100644 index 0fd0e0c2fb0fcf9aa0cad783442ca185c0d0e781..0000000000000000000000000000000000000000 --- a/funcom_test/48968287.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void restart() { - try { - // Store all configuration and finish all active modules - - // Build a process builder with OS-specific command and saved arguments - ProcessBuilder pb = new ProcessBuilder(SystemProperties.OS.getLaunchCommand()); - - System.out.println(pb.command().toString()); - - // Start new application instance - pb.start(); - - } catch (IOException e) { - logger.error(e.getMessage(), e); - } finally { - // Exit normally - System.exit(0); - } - } - COM: <s> called when restarting application </s> - diff --git a/funcom_test/48968504.txt b/funcom_test/48968504.txt deleted file mode 100644 index b91ca8065a1aa47e00d7363ab25711d49071a2cd..0000000000000000000000000000000000000000 --- a/funcom_test/48968504.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private JButton getPreviousPageButton() { - if (previousPageButton == null) { - previousPageButton = new JButton(); - previousPageButton.setEnabled(false); - previousPageButton.setPreferredSize(new Dimension(24, 24)); - previousPageButton.setIcon(ImageManager - .getImageIconByShortName("action_back.gif")); - - previousPageButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent event) { - showPrevious(); - } - }); - } - return previousPageButton; - } - COM: <s> show previous card label </s> - diff --git a/funcom_test/48977531.txt b/funcom_test/48977531.txt deleted file mode 100644 index aa4f64ac728c6b62066e480b488ef341e5f1906f..0000000000000000000000000000000000000000 --- a/funcom_test/48977531.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JButton getJButtonCheck() { - if (jButtonCheck == null) { - jButtonCheck = new JButton(); - jButtonCheck.setPreferredSize(new Dimension(64, 26)); - jButtonCheck.setLocation(new Point(360, 585)); - jButtonCheck.setSize(new Dimension(80, 30)); - jButtonCheck.setText("CHECK"); - } - return jButtonCheck; - } - COM: <s> this method initializes j button check </s> - diff --git a/funcom_test/48977535.txt b/funcom_test/48977535.txt deleted file mode 100644 index 4a8b7bdccd7cc7c8c25ad588f66d35f891e1a6ff..0000000000000000000000000000000000000000 --- a/funcom_test/48977535.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JButton getJButtonCall() { - if (jButtonCall == null) { - jButtonCall = new JButton(); - jButtonCall.setText("CALL"); - jButtonCall.setSize(new Dimension(80, 30)); - jButtonCall.setPreferredSize(new Dimension(80, 30)); - jButtonCall.setLocation(new Point(450, 585)); - } - return jButtonCall; - } - COM: <s> this method initializes j button call </s> - diff --git a/funcom_test/49065368.txt b/funcom_test/49065368.txt deleted file mode 100644 index 1f8daf274728dff5739135d275a15e44f217f010..0000000000000000000000000000000000000000 --- a/funcom_test/49065368.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void mouseReleased(MouseEvent e) { - int button = e.getButton(); - if (osName.equals("Mac OS X")) { - if ((e.getModifiers() & 2) == 0) { - button = 1; - } else { - button = 3; - } - } - if (button != 3) { - isDragging = false; - handleWindowMove(e.getX(), e.getY()); - } - } - COM: <s> mouse release isdrag or not </s> - diff --git a/funcom_test/49111824.txt b/funcom_test/49111824.txt deleted file mode 100644 index 7539b14a6fcbbed4c18e1ae78937980f26a34e24..0000000000000000000000000000000000000000 --- a/funcom_test/49111824.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public JSONObject getResponseAsJSONObject() throws EngageFailureException { - if (jsonObject == null) { - try { - this.jsonObject = new JSONObject(json); - } - catch (JSONException e) { - throw new EngageFailureException("Unexpected JSON error", json, e); - } - } - return jsonObject; - } - COM: <s> returns the janrain engage response body as a code jsonobject code </s> - diff --git a/funcom_test/49111978.txt b/funcom_test/49111978.txt deleted file mode 100644 index 8f3c7ce5ee12f6b216543ada20bb62ee228f335b..0000000000000000000000000000000000000000 --- a/funcom_test/49111978.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String toString(InputStream input) throws IOException { - StringBuilder contents = new StringBuilder(); - InputStreamReader reader = new InputStreamReader(input); - char[] buffer = new char[DEFAULT_BUFFER_SIZE]; - int n = 0; - while (-1 != (n = reader.read(buffer))) { - contents.append(buffer, 0, n); - } - return contents.toString(); - } - COM: <s> get the contents of an code input stream code as a string </s> - diff --git a/funcom_test/49121415.txt b/funcom_test/49121415.txt deleted file mode 100644 index 88cabfc82c4401e9755f2760dec426910f51f5af..0000000000000000000000000000000000000000 --- a/funcom_test/49121415.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private XYDataset createDataset(double[]values,String name) { - - // create dataset 1... - final XYSeries series = new XYSeries(name); - - for(int i=0; i<values.length;i++){ - series.add(i,values[i]); - } - - final XYSeriesCollection collection = new XYSeriesCollection(); - collection.addSeries(series); - return collection; - - } - COM: <s> creates a sample dataset </s> - diff --git a/funcom_test/49250619.txt b/funcom_test/49250619.txt deleted file mode 100644 index da750871a69792403e77899828a94df0103d5f15..0000000000000000000000000000000000000000 --- a/funcom_test/49250619.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setContent(final String articleContent) { - if (articleContent == null) { - final RuntimeException ex = new RuntimeException("content parameter must not be null"); //$NON-NLS-1$ - LOGGER.error("Article.setContent(...): " + ex.getMessage(), ex); //$NON-NLS-1$ - throw ex; - } - - content = articleContent; - } - COM: <s> sets the content of the article </s> - diff --git a/funcom_test/49250660.txt b/funcom_test/49250660.txt deleted file mode 100644 index 88ded7dd56dafcdc36bc74544b8970635dcecdb7..0000000000000000000000000000000000000000 --- a/funcom_test/49250660.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setBacklinkingArticles(final List<Article> backlinks) { - if (backlinks == null) { - final RuntimeException ex = new RuntimeException("backlinks parameter must not be null"); //$NON-NLS-1$ - LOGGER.error("AbstractWikiFile.setBacklinkingArticles(...): backlinks parameter must not be null", ex); //$NON-NLS-1$ - throw ex; - } - - this.backlinks = backlinks; - } - COM: <s> sets a list of articles that link back to this wiki file </s> - diff --git a/funcom_test/49250661.txt b/funcom_test/49250661.txt deleted file mode 100644 index 7024a5ea0316d9e5e485d96433d3c97380eeb43d..0000000000000000000000000000000000000000 --- a/funcom_test/49250661.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getWikiFileName(final boolean withExtension) { - if (withExtension) { - return wikiFileName; - } - - final String dot = "."; //$NON-NLS-1$ - if (!wikiFileName.contains(dot)) { - return wikiFileName; - } - - final int idx = wikiFileName.lastIndexOf(dot); - return wikiFileName.substring(0, idx); - } - COM: <s> returns the name of the article </s> - diff --git a/funcom_test/49250673.txt b/funcom_test/49250673.txt deleted file mode 100644 index d594d4860d8b46acb3d909339a92fb5f4fef3784..0000000000000000000000000000000000000000 --- a/funcom_test/49250673.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String getFileExtension() { - final String dot = "."; //$NON-NLS-1$ - if (!wikiFileName.contains(dot)) { - return null; - } else { - final int idx = wikiFileName.lastIndexOf(dot); - return wikiFileName.substring(idx, wikiFileName.length()); - } - } - COM: <s> returns the file extension </s> - diff --git a/funcom_test/49250696.txt b/funcom_test/49250696.txt deleted file mode 100644 index da2b37828bfbd80ed6b7d77b3e5deed00227298c..0000000000000000000000000000000000000000 --- a/funcom_test/49250696.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void flattenNamespaces() throws IOException, RefactorDWException { - LOGGER.info("RefactoringManager.flattenNamespaces(...): Flattening name spaces..."); //$NON-NLS-1$ - final List<Namespace> list = ConfigurationFactory.getInstance().getConfiguration().getNamespacesToBeFlattended(); - for (final Namespace ns : list) { - nso.flattenNamespace(ns); - } - } - COM: <s> performs the flattening of the configured name spaces </s> - diff --git a/funcom_test/49250706.txt b/funcom_test/49250706.txt deleted file mode 100644 index 277839a774e07f816b6c68e46234dc8d268c672f..0000000000000000000000000000000000000000 --- a/funcom_test/49250706.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void removeEmptyNameSpaces() throws IOException { -// LOGGER.debug("NameSpaceOperations.removeEmptyNameSpaces(...): Deleting empty name space directories..."); //$NON-NLS-1$ - deleteEmptyDirectories(Workspace.getPagesPath()); - if (Workspace.getMediaPath().exists()) { - deleteEmptyDirectories(Workspace.getMediaPath()); - } - } - COM: <s> removes all empty name spaces directories within the given </s> - diff --git a/funcom_test/49250707.txt b/funcom_test/49250707.txt deleted file mode 100644 index a6bfe07d9cf23513a6b3f6c178e6a5608a7ef5f8..0000000000000000000000000000000000000000 --- a/funcom_test/49250707.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getExtension(final File file) throws IllegalArgumentException { - validateFile(file); - - final StringTokenizer tok = new StringTokenizer(file.getName(), FILENAME_EXTENSION_SEPARATOR); - if (tok.countTokens() < 2) { - // there is no file name extension - return null; - } - - String fileNameExtension = null; - while (tok.hasMoreTokens()) { - fileNameExtension = tok.nextToken(); - } - return fileNameExtension; - } - COM: <s> returns the file name extension of the given file without the </s> - diff --git a/funcom_test/49250725.txt b/funcom_test/49250725.txt deleted file mode 100644 index eebf648a9453d80ffdbd6753f3f018a57a1458a7..0000000000000000000000000000000000000000 --- a/funcom_test/49250725.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected BraceType extractBraceType(final String articleLink) { - if (articleLink.startsWith(Braces.INTRO_DEFAULT.getSequence(false))) { - return BraceType.DEFAULT; - } - if (articleLink.startsWith(Braces.INTRO_CURLY.getSequence(false))) { - return BraceType.CURLY; - } - return null; - } - COM: <s> extracts the type of the braces from the given article link </s> - diff --git a/funcom_test/49250848.txt b/funcom_test/49250848.txt deleted file mode 100644 index 60692bfd7e257c35f5f531847f2bb14418d87b11..0000000000000000000000000000000000000000 --- a/funcom_test/49250848.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public boolean isInvalidEmailLink() { - return textLink.contains(ArticleLink.EMAIL_AT_SEPARATOR) && - !textLink.toLowerCase(Locale.getDefault()).startsWith("mailto:") && //$NON-NLS-1$ - wikiFileURL.getWikiFileName(true).contains(ArticleLink.EMAIL_AT_SEPARATOR); - } - COM: <s> returns code true code if this link is an invalid email address link </s> - diff --git a/funcom_test/49262079.txt b/funcom_test/49262079.txt deleted file mode 100644 index e581332a741fe216de99048ed534fd56c9e9cea1..0000000000000000000000000000000000000000 --- a/funcom_test/49262079.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - if( is_lobby ) - { // we're in lobby room => exit program - active = false; - } - else - { // we're in race => go to lobby room - try { ts_server.leaveGame(player_id,game_id); } - catch(RemoteException re) { error(re.getMessage()); } - - switchToLobby(); - } - } - COM: <s> if were in the lobby room exit the program </s> - diff --git a/funcom_test/49262308.txt b/funcom_test/49262308.txt deleted file mode 100644 index d5fc2ef6a56b80ca65de5c6b29e9bcf11e858962..0000000000000000000000000000000000000000 --- a/funcom_test/49262308.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void itemStateChanged(ItemEvent e) { - if(is_master && e.getStateChange()==ItemEvent.SELECTED) - { - String track_name = (String)e.getItem(); - try { ts_server.changeTrack(game_id,track_name); } - catch(RemoteException re) { error(re.getMessage()); } - } - } - COM: <s> the master player has chosen a new track from the track list </s> - diff --git a/funcom_test/49262334.txt b/funcom_test/49262334.txt deleted file mode 100644 index 6298f6821e0902b5c1f95cc6e5cc5eaa2c3485d6..0000000000000000000000000000000000000000 --- a/funcom_test/49262334.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public BufferedImage getBufferedImage(String filename) { - Image image = Toolkit.getDefaultToolkit().getImage(filename); - - MediaTracker tr = new MediaTracker(new JComponent() {}); - tr.addImage(image,0); - try { tr.waitForID(0); } - catch( InterruptedException e) {} - - // Convert to BufferedImage - BufferedImage b_image = new BufferedImage(image.getWidth(frame),image.getHeight(frame), - BufferedImage.TYPE_INT_ARGB); - Graphics g = b_image.createGraphics(); - g.drawImage(image,0,0,null); - g.dispose(); - - return b_image; - } - COM: <s> loads an image from a file </s> - diff --git a/funcom_test/49262461.txt b/funcom_test/49262461.txt deleted file mode 100644 index 39126ceb04d9de707a0b874357e8502b42481db3..0000000000000000000000000000000000000000 --- a/funcom_test/49262461.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public int worldToScreenY(float y) { - float f = (float)this.getHeight()/2.0f - (y-look_at.getY()) * pix_per_m; - return (int)f; - // Note: on screen, y grows downwards, but we do our - // calculations using a plane where y grows upwards, so - // before we draw we change the sign if needed. - } - COM: <s> calculate the y coordinate of a point of the world on screen </s> - diff --git a/funcom_test/49328145.txt b/funcom_test/49328145.txt deleted file mode 100644 index a7a333fbbb6169701ebc3ee176426281f12e08d3..0000000000000000000000000000000000000000 --- a/funcom_test/49328145.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public CapabilityException ( Ztex1 ztex, String cap) { - super( "bus=" + ztex.dev().dev().getBus().getDirname() + " device=" + ztex.dev().dev().getFilename() + ": " + cap + " not supported" ); - } - COM: <s> constructs an instance from a givig device and capability string </s> - diff --git a/funcom_test/49328166.txt b/funcom_test/49328166.txt deleted file mode 100644 index d49ca15af2f8c175d9a051f416d7eafae6fad06b..0000000000000000000000000000000000000000 --- a/funcom_test/49328166.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public ZtexScanBus1 (int usbVendorId, int usbProductId, boolean scanUnconfigured, boolean quiet, int interfaceVersion, String snString ) { - this(usbVendorId, usbProductId, scanUnconfigured, quiet, interfaceVersion, snString, -1,-1,-1,-1 ); - } - COM: <s> scans the usb for suitable devices and constructs a list of them </s> - diff --git a/funcom_test/49328253.txt b/funcom_test/49328253.txt deleted file mode 100644 index 6aa93c2ddeb4b5223a3358e7e5988379ed3e9622..0000000000000000000000000000000000000000 --- a/funcom_test/49328253.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void claimInterface ( int iface) throws UsbException{ - if ( ( iface<0 || iface>=256 || (! interfaceClaimed[iface]) ) && ( LibusbJava.usb_claim_interface(handle(), iface) < 0 ) ) - throw new UsbException("Claiming interface " + iface + " failed: " + LibusbJava.usb_strerror()); - if ( iface>=0 && iface < 256 ) - interfaceClaimed[iface]=true; - } - COM: <s> claims an interface </s> - diff --git a/funcom_test/49328455.txt b/funcom_test/49328455.txt deleted file mode 100644 index c4c3a8e3f46a26693c3eea334ecfb36d13427810..0000000000000000000000000000000000000000 --- a/funcom_test/49328455.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void resetEzUsb () throws FirmwareUploadException, UsbException, InvalidFirmwareException, DeviceLostException { -// scan the bus for comparison - findOldDevices(); - -// reset the EZ-USB - EzUsb.reset(handle,true); - try { - EzUsb.reset(handle,false); // error (may caused by re-numeration) can be ignored - } - catch ( FirmwareUploadException e ) { - } - -// find and init new device - initNewDevice( "Device lost after resetting the EZ-USB", true ); - } - COM: <s> resets the ez usb and manages the renumeration process </s> - diff --git a/funcom_test/49329395.txt b/funcom_test/49329395.txt deleted file mode 100644 index 652e60dca783b9ec4e714f143f4b6ab8608a6eda..0000000000000000000000000000000000000000 --- a/funcom_test/49329395.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean eepromState ( ) throws UsbException, InvalidFirmwareException, CapabilityException { - byte[] buf = new byte[4]; - checkCapability(CAPABILITY_EEPROM); - vendorRequest2(0x3A, "EEPROM State", 0, 0, buf, 4); - eepromBytes = (buf[0] & 255) | (buf[1] & 255)<<8; - eepromChecksum = buf[2] & 255; - return buf[3] == 0; - } - COM: <s> reads the current eeprom status </s> - diff --git a/funcom_test/49329486.txt b/funcom_test/49329486.txt deleted file mode 100644 index e7ed239ace4be010a0e80531f8043ecd38975fc4..0000000000000000000000000000000000000000 --- a/funcom_test/49329486.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void eepromRead ( int addr, byte[] buf, int length ) throws UsbException, InvalidFirmwareException, CapabilityException { - checkCapability(CAPABILITY_EEPROM); - vendorRequest2( 0x38, "EEPROM Read", addr, 0, buf, length ); // sometimes a little bit slow - try { - Thread.sleep( 10 ); - } - catch ( InterruptedException e) { - } - } - COM: <s> reads data from the eeprom </s> - diff --git a/funcom_test/49330284.txt b/funcom_test/49330284.txt deleted file mode 100644 index 268e43646cd33ddf2b567d199ab317967ebc1c88..0000000000000000000000000000000000000000 --- a/funcom_test/49330284.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int debugStackSize ( ) throws UsbException, InvalidFirmwareException, CapabilityException { - checkCapability(CAPABILITY_DEBUG); - if ( debugStackSize<=0 || debugMsgSize<=0 ) { - byte[] buf = new byte[7]; - vendorRequest2(0x28, "Read debug data", 0, 0, buf, 4); - debugStackSize = buf[2] & 255; - debugMsgSize = buf[3] & 255; - } - return debugStackSize; - } - COM: <s> returns the size of message stack in messages </s> - diff --git a/funcom_test/49330865.txt b/funcom_test/49330865.txt deleted file mode 100644 index 4172e03c61be017a1c2208bb395479215bb1286b..0000000000000000000000000000000000000000 --- a/funcom_test/49330865.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void xmegaReset () throws UsbException, InvalidFirmwareException, CapabilityException { - checkCapability(CAPABILITY_XMEGA); - try { - vendorCommand( 0x49, "XMEGA Reset" ); - } - catch ( UsbException e ) { - throw new UsbException( dev().dev(), "NVM Reset: " + xmegaStrError() ); - } - } - COM: <s> resets the atxmega </s> - diff --git a/funcom_test/49331732.txt b/funcom_test/49331732.txt deleted file mode 100644 index 8e0a89e60ff61b258743132fd50fba9b0ccf61b0..0000000000000000000000000000000000000000 --- a/funcom_test/49331732.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void xmegaFuseWrite ( int addr, int val ) throws UsbException, InvalidFirmwareException, CapabilityException { - checkCapability(CAPABILITY_XMEGA); - - try { - vendorCommand( 0x4d, "XMEGA Fuse write", val, addr); - } - catch ( UsbException e ) { - throw new UsbException( dev().dev(), "XMEGA Fuse write: " + xmegaStrError() ); - } - try { - Thread.sleep( 3 ); - } - catch ( InterruptedException e) { - } - } - COM: <s> writes one fuse of the atxmega </s> - diff --git a/funcom_test/49332084.txt b/funcom_test/49332084.txt deleted file mode 100644 index 61024347c98e85fec04ea8cce0d9d95cc35d8ee8..0000000000000000000000000000000000000000 --- a/funcom_test/49332084.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public String capabilityInfo ( String pf ) { - String str = ""; - for ( int i=0; i<6; i++ ) - for (int j=0; j<8; j++ ) - if ( dev().interfaceCapabilities(i,j) ) { - if ( ! str.equals("") ) - str+=pf; - if (i*8+j < capabilityStrings.length) - str+=capabilityStrings[i*8+j]; - else - str+=i+"."+j; - } - return str; - } - COM: <s> creates a string with capability information </s> - diff --git a/funcom_test/49332581.txt b/funcom_test/49332581.txt deleted file mode 100644 index 08cdac9590507ed2e84c40ebeb961285ff327ed1..0000000000000000000000000000000000000000 --- a/funcom_test/49332581.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void macEepromRead ( int addr, byte[] buf, int length ) throws UsbException, InvalidFirmwareException, CapabilityException { - checkCapability(CAPABILITY_MAC_EEPROM); - vendorRequest2( 0x3B, "MAC EEPROM Read", addr, 0, buf, length ); - try { - Thread.sleep( 10 ); - } - catch ( InterruptedException e) { - } - } - COM: <s> reads data from the mac eeprom </s> - diff --git a/funcom_test/49332859.txt b/funcom_test/49332859.txt deleted file mode 100644 index e5d009e7f06aec2bf6b548299f37097d974f8d17..0000000000000000000000000000000000000000 --- a/funcom_test/49332859.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void macRead ( byte[] buf ) throws UsbException, InvalidFirmwareException, CapabilityException, IndexOutOfBoundsException { - if ( buf.length < 6 ) - throw new IndexOutOfBoundsException( "macRead: Buffer smaller than 6 Bytes" ); - macEepromRead(250, buf, 6); - } - COM: <s> reads mac address from mac eeprom </s> - diff --git a/funcom_test/49676330.txt b/funcom_test/49676330.txt deleted file mode 100644 index 037c3f8a7af6f6491762d774dde02705f83f98d8..0000000000000000000000000000000000000000 --- a/funcom_test/49676330.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Version getBlueprintVersion(Class<?> interfaceClass){ - if(dependentBlueprintClassLoaders == null) return null; - IBeanClassLoader loader = null; - String interfaceClassName = interfaceClass.getName(); - for(IBeanClassLoader dependentBlueprint:dependentBlueprintClassLoaders){ - if(dependentBlueprint.isLoader(interfaceClassName)){ - loader = dependentBlueprint; - break; - } - } - if(loader!=null){ - return loader.jiopiClassLoader.blueprintName; - } - return null; - } - COM: <s> get blueprint version of given class </s> - diff --git a/funcom_test/49717760.txt b/funcom_test/49717760.txt deleted file mode 100644 index 138dda285d15e14e3cf17592a1287edb18c84d8d..0000000000000000000000000000000000000000 --- a/funcom_test/49717760.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String createTooltipText(ResultTreeNode info) { - StringBuffer buf = new StringBuffer(); - //buf.append("<html><body> Total: " + info.getExists()); - //buf.append("<br> Unseen: " + info.getUnseen()); - //buf.append("<br> Recent: " + info.getRecent()); - //buf.append("</body></html>"); - return buf.toString(); - } - COM: <s> create html tooltip text </s> - diff --git a/funcom_test/4980509.txt b/funcom_test/4980509.txt deleted file mode 100644 index 91c60a81dff00710e0519f58941c71ac07dadd3f..0000000000000000000000000000000000000000 --- a/funcom_test/4980509.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected JasperReport compileReport() throws JRException { - byte[] byteArray = reportTemplate.getContents().getBytes(); - ByteArrayInputStream designStream = new ByteArrayInputStream(byteArray); - logger.debug("Compiling report..."); - JasperReport jasperReport = JasperCompileManager.compileReport(designStream); - return jasperReport; - } - COM: <s> compiles the report and returns the compiled version </s> - diff --git a/funcom_test/4980550.txt b/funcom_test/4980550.txt deleted file mode 100644 index f67b062a00cca246983dc4a669bbc86e66c7459a..0000000000000000000000000000000000000000 --- a/funcom_test/4980550.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected JasperPrint fillReport() throws JRException, Exception { - logger.debug("Filling report..."); - HashMap parameters = this.createParameters(); - JRDataSource dataSource = this.createDataSource(); - JasperPrint jasperPrint = JasperFillManager.fillReport(this.getJasperReport(), parameters, dataSource); - return jasperPrint; - } - COM: <s> fills the report with the specified data </s> - diff --git a/funcom_test/4980642.txt b/funcom_test/4980642.txt deleted file mode 100644 index 34b37de57f17af1f36b4db2a07ac7761c599e495..0000000000000000000000000000000000000000 --- a/funcom_test/4980642.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setPnCurrentModule(String className) { - try { - PnModule actPanel = (PnModule) Class.forName(className).newInstance(); - this.setPnCurrentModule(actPanel); - } catch (Exception e) { - logger.error("Could not set module-panel: " + className,e); - } - } - COM: <s> sets the current module panel using its full qualified class name </s> - diff --git a/funcom_test/4981201.txt b/funcom_test/4981201.txt deleted file mode 100644 index 41c3a23c2ae650332141909b8e47f3d7c0a60e38..0000000000000000000000000000000000000000 --- a/funcom_test/4981201.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: protected void setControlData() { - if ((this.getPnPermissions()!=null) && (this.getJbsBaseObject()!=null) && (this.getJbsBaseObject() instanceof JbsObject)) - this.getPnPermissions().setControlData((JbsObject)this.getJbsBaseObject()); - } - COM: <s> sets the contents of all controls with the data from the dataset </s> - diff --git a/funcom_test/4981204.txt b/funcom_test/4981204.txt deleted file mode 100644 index 6bb3a904746f23b29d44fc05d390341f767d1c17..0000000000000000000000000000000000000000 --- a/funcom_test/4981204.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: protected void getControlData() { - if ((this.getPnPermissions()!=null) && (this.getJbsBaseObject()!=null) && (this.getJbsBaseObject() instanceof JbsObject)) - this.getPnPermissions().getControlData((JbsObject)this.getJbsBaseObject()); - } - COM: <s> gets the contents from the controls and write it into the dataset </s> - diff --git a/funcom_test/4981218.txt b/funcom_test/4981218.txt deleted file mode 100644 index e7c39d98cd474cb922f64dc474ffbbb18d238e06..0000000000000000000000000000000000000000 --- a/funcom_test/4981218.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected boolean saveData() { - boolean result = true; - if (this.getPnEditJbsObject() != null) { - result = this.getPnEditJbsObject().saveData(); - } - if (result && (this.getPnList() != null)) { - this.getPnList().reload(); - this.getPnList().reloadToolPane(); - } - return result; - } - COM: <s> saves the data of the form </s> - diff --git a/funcom_test/4981690.txt b/funcom_test/4981690.txt deleted file mode 100644 index 54dc9818949b0e3309168a606e579f8309a63c63..0000000000000000000000000000000000000000 --- a/funcom_test/4981690.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected void refreshVitaRows() { - removeAllVitaRows(); - for (int i = 0; i < this.getVitaRows().size(); i++) { - this.getColRows().add(this.getVitaRows().get(i).getColumn()); - } - } - COM: <s> removes all vita rows from the panel and adds them again </s> - diff --git a/funcom_test/4981978.txt b/funcom_test/4981978.txt deleted file mode 100644 index 061052c01e8e95e632c014c299f03be869fcf78b..0000000000000000000000000000000000000000 --- a/funcom_test/4981978.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected VATSum getVatSum(ArticleVAT vat) { - VATSum result = null; - Iterator<VATSum> it = this.iterator(); - while ((result==null) && (it.hasNext())) { - VATSum vatSum = it.next(); - if (vatSum.getVat().getId()==vat.getId()) - result = vatSum; - } - return result; - } - COM: <s> returns the vat sum of the specified vat </s> - diff --git a/funcom_test/4982038.txt b/funcom_test/4982038.txt deleted file mode 100644 index 119197662a9e47e186fe790ec52993fbbf76224b..0000000000000000000000000000000000000000 --- a/funcom_test/4982038.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected boolean paymentExists(Payment payment, Set<Payment> payments) { - boolean found = false; - Iterator<Payment> it = payments.iterator(); - while ((!found) && (it.hasNext())) { - Payment exPayment = it.next(); - if (exPayment.getId() == payment.getId()) - found = true; - } - return found; - } - COM: <s> checks if the specified payment exists for delete old payments </s> - diff --git a/funcom_test/4982265.txt b/funcom_test/4982265.txt deleted file mode 100644 index fa6d193694819446ec838b9aa5afd12062294dde..0000000000000000000000000000000000000000 --- a/funcom_test/4982265.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean addDunningTemplate(DunningTemplate dunningTemplate) { - if (!dunningLevelExists(dunningTemplate.getDunningLevel())) { - if (this.getDunningTemplates()==null) - this.setDunningTemplates(new LinkedHashSet<DunningTemplate>()); - dunningTemplate.setDunningGroup(this); - this.getDunningTemplates().add(dunningTemplate); - return true; - } else - return false; - } - COM: <s> adds a dunning template when no template with the same dunning level exists </s> - diff --git a/funcom_test/4982613.txt b/funcom_test/4982613.txt deleted file mode 100644 index 830744fbdef5265e883e66a2b407404ec8ce5093..0000000000000000000000000000000000000000 --- a/funcom_test/4982613.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean belongsToCompany(JbsCompany company) { - boolean result = false; - Iterator<JbsCompany> it = this.getCompanies().iterator(); - while ((!result) && (it.hasNext())) { - result = it.next().getId() == company.getId(); - } - return result; - } - COM: <s> checks if the user belongs to the specified company </s> - diff --git a/funcom_test/4982774.txt b/funcom_test/4982774.txt deleted file mode 100644 index 901d705ea861dcf7bb2ac28ae2ea5f3c23eb8414..0000000000000000000000000000000000000000 --- a/funcom_test/4982774.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void clearListIds(List list) { - if (list != null) { - Iterator it = list.iterator(); - while (it.hasNext()) { - Object o = it.next(); - if (o instanceof JbsClearableId) { - ((JbsClearableId) o).clearIds(); - } - } - } - } - COM: <s> clears the ids of all members of a list </s> - diff --git a/funcom_test/4982785.txt b/funcom_test/4982785.txt deleted file mode 100644 index 16f5f5b64601ab7fe9baa8c5234c8eae1d0cc17b..0000000000000000000000000000000000000000 --- a/funcom_test/4982785.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public List getDatasets(EntityManager entityManager, Class entityClass, String filter, String orderFields, JbsUser user, JbsCompany company, int firstResult, int resultCount) { - return this.getDatasets(entityManager, entityClass, filter, orderFields, "", user, company, firstResult, resultCount); - } - COM: <s> retrieves a list of jbs objects </s> - diff --git a/funcom_test/4982804.txt b/funcom_test/4982804.txt deleted file mode 100644 index 87417e830ecd0898482ebf76eef28552ef835eb8..0000000000000000000000000000000000000000 --- a/funcom_test/4982804.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public List getDatasetsByQueryString(EntityManager entityManager, String query, int firstResult, int resultCount) { - logger.debug("Getting entities: " + query); - Query q = entityManager.createQuery(query); - return this.getDatasetsByQuery(q, firstResult, resultCount); - } - COM: <s> retrieves a list ob jbs objects </s> - diff --git a/funcom_test/4982827.txt b/funcom_test/4982827.txt deleted file mode 100644 index a3cb0f11fe1e084af2342b1c439093a593f4b04f..0000000000000000000000000000000000000000 --- a/funcom_test/4982827.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void executeNativeUpdate(EntityManager entityManager, String sQuery) throws Exception { - logger.debug("Executing native query: "+sQuery); - try { - Query q = entityManager.createNativeQuery(sQuery); - q.executeUpdate(); - } catch (Exception e) { - throw new Exception(e); - } - } - COM: <s> executes an native update query for bulk updates and bulk delete </s> - diff --git a/funcom_test/49829971.txt b/funcom_test/49829971.txt deleted file mode 100644 index ce38734aa12d4c1a3f58bc0dcf1d056ba57047b4..0000000000000000000000000000000000000000 --- a/funcom_test/49829971.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void showSearch() { - searchPanel.setVisible( true ); - searchField.requestFocus(); - buttonBack.setEnabled( false ); - buttonNext.setEnabled( false ); - buttonTrash.setEnabled( false ); - buttonAdd.setEnabled( false ); - buttonSave.setEnabled( false ); - buttonOptions.setEnabled( false ); - buttonList.setEnabled( false ); - buttonRename.setVisible( false ); - } - COM: <s> shows the search bar to search for a text in notes </s> - diff --git a/funcom_test/4983332.txt b/funcom_test/4983332.txt deleted file mode 100644 index 7d4a652effff91f862be823d52c4ad589c047331..0000000000000000000000000000000000000000 --- a/funcom_test/4983332.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected int getNewStartIndex(int index) { - int idx = 0; - if (index > (this.getRowsPerPage() / 2)) { - idx = index - this.getRowsPerPage() / 2; - } - //logger.debug("getNewStartIndex: "+String.valueOf(idx)); - return idx; - } - COM: <s> calculates a new start index for the given index </s> - diff --git a/funcom_test/4983336.txt b/funcom_test/4983336.txt deleted file mode 100644 index ff54bbce0e75f9d2ccf2bcb31c0b0861a8a79562..0000000000000000000000000000000000000000 --- a/funcom_test/4983336.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void retrieveList(int index) { - //Get new data from the server: - this.setStartIndex(this.getNewStartIndex(index)); - this.setSize(); - this.setJbsBaseObjects(this.getDataFromServer(this.getStartIndex(), this.getRowsPerPage())); - this.setDeprecated(false); - } - COM: <s> retrieves a new page </s> - diff --git a/funcom_test/4983342.txt b/funcom_test/4983342.txt deleted file mode 100644 index 15d47eeb6ed8d36552780471bed6db3a06d6076a..0000000000000000000000000000000000000000 --- a/funcom_test/4983342.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public JbsBaseObject get(int index) { - if ((this.isDeprecated()) || (index < this.getStartIndex()) || (index > this.getEndIndex()) || (this.getJbsBaseObjects() == null)) { - retrieveList(index); - } - return this.getJbsBaseObjects().get(completeIndexToPagedIndex(index)); - } - COM: <s> retrieves the element with the specified index from the list </s> - diff --git a/funcom_test/4983531.txt b/funcom_test/4983531.txt deleted file mode 100644 index 30d453ff235bd682e1f48b3c295856f4093607a2..0000000000000000000000000000000000000000 --- a/funcom_test/4983531.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public JbsLangString getLangString(JbsLanguage language) { - JbsLangString result = null; - Iterator<JbsLangString> it = this.iterator(); - while ((it.hasNext()) && (result==null)) { - JbsLangString langString = it.next(); - if (langString.getLanguage().getLangCode().equals(language.getLangCode())) - result=langString; - } - return result; - } - COM: <s> returns the language entry of the specified language </s> - diff --git a/funcom_test/4983552.txt b/funcom_test/4983552.txt deleted file mode 100644 index db7b91c022b4adac25dd3324fc8421f7bb77d4ed..0000000000000000000000000000000000000000 --- a/funcom_test/4983552.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setLangStrings(JbsLangStrings langStrings) { - Iterator<JbsLangString> it = langStrings.iterator(); - while (it.hasNext()) { - JbsLangString langString = it.next(); - JbsLangEntryHelper textField = this.getLangTextField(langString.getLanguage()); - if (textField != null) { - textField.setText(langString.getText()); - } - } - } - COM: <s> fills the language fields with tehir matching texts </s> - diff --git a/funcom_test/49855070.txt b/funcom_test/49855070.txt deleted file mode 100644 index 7daa13f2e2f84943968386b0390f91fde88be7a8..0000000000000000000000000000000000000000 --- a/funcom_test/49855070.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void put(Object o) { - if (size == tableSize) { - throw new IllegalStateException("too many elements"); - } - int hashCode = o.hashCode(); - - Iterator<Integer> probeSequence = prober.probeSequence(hashCode, tableSize); - int position = -1; - while (buckets.get(position = probeSequence.next()) != null) - collisions++; - - buckets.set(position, hashCode); - size++; - } - COM: <s> inserts an element in this hashtable </s> - diff --git a/funcom_test/49866769.txt b/funcom_test/49866769.txt deleted file mode 100644 index 4c6e75fba4262793bcf84987b49b7e4d6adab7eb..0000000000000000000000000000000000000000 --- a/funcom_test/49866769.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void fillData() { - Cursor checklistCursor = mDbHelper.fetchAllChecklists(); - String[] from = {ChecklistDBAdapter.KEY_NAME}; - int[] to = {R.id.checklist_name_text}; - ChecklistAdapter checklists; - - startManagingCursor(checklistCursor); - checklists = new ChecklistAdapter(this, R.layout.checklist_row, checklistCursor, - from, to); - setListAdapter(checklists); - } - COM: <s> populates the view with all the checklists </s> - diff --git a/funcom_test/49866798.txt b/funcom_test/49866798.txt deleted file mode 100644 index 30089afef6b9ed6f3f3f40f7db17b1dbc09e0154..0000000000000000000000000000000000000000 --- a/funcom_test/49866798.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Cursor fetchChecklist(long listId) { - Cursor cursor = mDb.query(true, CHECKLIST_TBL, new String[] {KEY_ROWID, KEY_NAME}, - KEY_ROWID + "=" + listId, null, null, null, null, null); - if (cursor != null) { - cursor.moveToFirst(); - } - return cursor; - } - COM: <s> returns the specified checklist </s> - diff --git a/funcom_test/49866799.txt b/funcom_test/49866799.txt deleted file mode 100644 index b15723b13dfa659200c5876087eda28169daa86d..0000000000000000000000000000000000000000 --- a/funcom_test/49866799.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void copyChecklist(long id) { - Intent intent; - - if(id > 0) { - // Copy checklist - id = mDbHelper.copyChecklist(id); - - // Edit it now - intent = new Intent(this, ChecklistEdit.class); - intent.putExtra(ChecklistDBAdapter.KEY_ROWID, id); - startActivityForResult(intent, ACTIVITY_EDIT); - } - } - COM: <s> creates a copy of the selected checklist </s> - diff --git a/funcom_test/49866805.txt b/funcom_test/49866805.txt deleted file mode 100644 index f7649431b598197b4e0540aae239d20c2dbf93d1..0000000000000000000000000000000000000000 --- a/funcom_test/49866805.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public boolean updateChecklist(long listId, String name) { - ContentValues values = new ContentValues(); - values.put(KEY_NAME, name); - return mDb.update(CHECKLIST_TBL, values, KEY_ROWID + "=" + listId, null) > 0; - } - COM: <s> updates the specified checklist </s> - diff --git a/funcom_test/49866808.txt b/funcom_test/49866808.txt deleted file mode 100644 index 1cbba29203e7d61aeececb156341282ae27b3d04..0000000000000000000000000000000000000000 --- a/funcom_test/49866808.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public Cursor fetchChecklistItems(long listId) { - return mDb.query(CHECKLIST_ITEM_TBL, new String[] {KEY_ROWID, KEY_IS_DONE, KEY_ITEM}, - KEY_LIST_ID + "=" + listId, null, null, null, null); - } - COM: <s> retrieves the items for the specified checklist </s> - diff --git a/funcom_test/49866813.txt b/funcom_test/49866813.txt deleted file mode 100644 index ae2131f4a1ea5088b0dc6e1355f61aeedacfea36..0000000000000000000000000000000000000000 --- a/funcom_test/49866813.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Cursor fetchChecklistItem(long itemId) { - Cursor cursor = mDb.query(true, CHECKLIST_ITEM_TBL, new String[] {KEY_ROWID, KEY_LIST_ID, KEY_IS_DONE, KEY_ITEM}, - KEY_ROWID + "=" + itemId, null, null, null, null, null); - if (cursor != null) { - cursor.moveToFirst(); - } - return cursor; - } - COM: <s> retrieves the specified checklist item </s> - diff --git a/funcom_test/49866815.txt b/funcom_test/49866815.txt deleted file mode 100644 index a23bed7cb109abe4e9787b7659c657d1dde9ab1f..0000000000000000000000000000000000000000 --- a/funcom_test/49866815.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public long createChecklistItem(long listId, String item, boolean isDone) { - ContentValues values = new ContentValues(); - values.put(KEY_LIST_ID, listId); - values.put(KEY_IS_DONE, isDone); - values.put(KEY_ITEM, item); - return mDb.insert(CHECKLIST_ITEM_TBL, null, values); - } - COM: <s> creates a checklist item for the specified list </s> - diff --git a/funcom_test/49866817.txt b/funcom_test/49866817.txt deleted file mode 100644 index bbc9bd7b76beb975e3598b98443c840130bcc7aa..0000000000000000000000000000000000000000 --- a/funcom_test/49866817.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean updateChecklistItem(long itemId, String item, boolean isDone) { - ContentValues values = new ContentValues(); - values.put(KEY_ITEM, item); - values.put(KEY_IS_DONE, isDone); - return mDb.update(CHECKLIST_ITEM_TBL, values, KEY_ROWID + "=" + itemId, null) > 0; - } - COM: <s> updates the specified checklist item </s> - diff --git a/funcom_test/49866820.txt b/funcom_test/49866820.txt deleted file mode 100644 index 1a62c87df14c6d45a0ccd0572b9996499fce5247..0000000000000000000000000000000000000000 --- a/funcom_test/49866820.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void createChecklistItem() { - if (mListRowId != null) { - Intent intent = new Intent(this, ChecklistItemEdit.class); - intent.putExtra(ChecklistDBAdapter.KEY_LIST_ID, mListRowId); - startActivityForResult(intent, ACTIVITY_CREATE); - } - else { - Log.e(TAG, "Trying to add item to non-existing checklist."); - } - } - COM: <s> creates a checklist item </s> - diff --git a/funcom_test/49866823.txt b/funcom_test/49866823.txt deleted file mode 100644 index 8886be0e162af0d6d6689dc4112e7aeabf5324aa..0000000000000000000000000000000000000000 --- a/funcom_test/49866823.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void copyChecklistItem(long id) { - Intent intent; - - if (id > 0) { - // Copy checklist - id = mDbHelper.copyChecklistItem(id); - - // Edit it now - intent = new Intent(this, ChecklistItemEdit.class); - intent.putExtra(ChecklistDBAdapter.KEY_ROWID, id); - startActivityForResult(intent, ACTIVITY_EDIT); - } - } - COM: <s> creates a copy of the selected checklistitem </s> - diff --git a/funcom_test/49870507.txt b/funcom_test/49870507.txt deleted file mode 100644 index f18785fe93919c485b0e203db26d543ad6c97835..0000000000000000000000000000000000000000 --- a/funcom_test/49870507.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void getList() { - String s = ""; - do { - System.out.print("Please enter the action(\"quit\" to exit):"); - s = in.nextLine(); - if (s.contains("add")) { - String addString = s.substring(s.indexOf(" ") + 1); - ea.add(addString); - ebx.add(addString); - } - } while (!s.contains("quit")); - } - COM: <s> get the sql sentences </s> - diff --git a/funcom_test/49874692.txt b/funcom_test/49874692.txt deleted file mode 100644 index 9d60c0ee80bc3c744a1417781c42f5331e9f7857..0000000000000000000000000000000000000000 --- a/funcom_test/49874692.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String join(String separator) throws JSONException { - int len = length(); - StringBuffer sb = new StringBuffer(); - // log.debug(myArrayList.size()); - // log.debug(myArrayList.get(0)); - for (int i = 0; i < len; i += 1) { - if (i > 0) { - sb.append(separator); - } - sb.append(JSONObject.valueToString(this.myArrayList.get(i))); - } - return sb.toString(); - } - COM: <s> make a string from the contents of this jsonarray </s> - diff --git a/funcom_test/49893647.txt b/funcom_test/49893647.txt deleted file mode 100644 index dc79d2536118c35712238b5749f68b9702b35f33..0000000000000000000000000000000000000000 --- a/funcom_test/49893647.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setRequestLine(String aLine) { - line = aLine; - int s1 = line.indexOf(' '); - if (s1 < 0) { - method = line; - return; - } - int s2 = line.indexOf(' ', s1 + 1); - method = line.substring(0, s1); - if (s2 > 0) { - requestURI = line.substring(s1 + 1, s2); - httpVersion = line.substring(s2 + 1).trim(); - } else { - requestURI = line.substring(s1 + 1); - httpVersion = null; - } - } - COM: <s> set the requestline of this header </s> - diff --git a/funcom_test/49893996.txt b/funcom_test/49893996.txt deleted file mode 100644 index 72151910112b739b128035b4c7f43abf2ef30eec..0000000000000000000000000000000000000000 --- a/funcom_test/49893996.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected boolean receive(SelectionKey sk) throws IOException { - boolean R = false; - try { - if (requestReceived) { - R = true; - } else if (!cio.doHandshake(sk)) { - R = false; - } else if ((cio.read() < 0) || JN_Request.isComplete(cio.getReadBuf())) { - rbb = cio.getReadBuf(); - R = (requestReceived = true); - } else - R = false; - } finally { - Assert.postcondition("valid_state", R && requestReceived); - } - return R; - } - COM: <s> called when there is more input from async socket </s> - diff --git a/funcom_test/49894182.txt b/funcom_test/49894182.txt deleted file mode 100644 index ba922860c39f7b96a92b640761a367c079a1cc9b..0000000000000000000000000000000000000000 --- a/funcom_test/49894182.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void queue_add_entry(final String aKey, final HiStoreEntry_J1 entry) throws AllocationFailure { - try { - prevayler.executeCommand(new J1_System.EntryStorageCommand(aKey, entry)); - } catch (Exception e) { - // TODO: allocation is overused - throw new AllocationFailure(Constants.PREVALENT_REJECTION, e); - } - } - COM: <s> tell the system to update its entry index </s> - diff --git a/funcom_test/49894493.txt b/funcom_test/49894493.txt deleted file mode 100644 index f41df2ba013df4b31c5f4af0dc8cf672de929d9d..0000000000000000000000000000000000000000 --- a/funcom_test/49894493.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void testRpc() { - try { - // Test the web server (which also tests the rpc server) - // by connecting via the clients - Vector params = new Vector(); - params.add(REQUEST_PARAM_VALUE); - Object response = client.execute(HANDLER_NAME + ".echo", params); - assertEquals(REQUEST_PARAM_VALUE, response); - // params.removeAllElements(); - } catch (Exception e) { - e.printStackTrace(); - fail(e.getMessage()); - } - } - COM: <s> tests client server rpc via </s> - diff --git a/funcom_test/49899442.txt b/funcom_test/49899442.txt deleted file mode 100644 index 6407775b480658f02457301bdacf34a2a075efdf..0000000000000000000000000000000000000000 --- a/funcom_test/49899442.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public int executeUpdate(String sql) throws SQLException { - // Create a statement, and run query - try { - statement = connection.createStatement(); - int affectedRow = statement.executeUpdate(sql); - return affectedRow; - } catch(SQLException e) { - System.out.print("Error creating or running statement: "); - try { - connection.close(); - } catch(Exception exc) { exc.printStackTrace(); } - throw e; - } - } - COM: <s> execute update query to the database insert update delete statement </s> - diff --git a/funcom_test/49899445.txt b/funcom_test/49899445.txt deleted file mode 100644 index fa8af150daddb55dad33c50ad477236a64f1de73..0000000000000000000000000000000000000000 --- a/funcom_test/49899445.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ResultSet executeQuery(String sql) throws Exception { - // Create a statement, and run query - try { - statement = connection.createStatement(); - resultSet = statement.executeQuery(sql); - return resultSet; - } catch(SQLException e) { - System.out.print("Error creating or running statement: "); - try { - connection.close(); - } catch(Exception exc) { exc.printStackTrace(); } - throw e; - } - } - COM: <s> execute a query select statement and display the result to the screen </s> - diff --git a/funcom_test/49931896.txt b/funcom_test/49931896.txt deleted file mode 100644 index 7b1f54d66c0f47ed7f7ff1e0be03908e01b08866..0000000000000000000000000000000000000000 --- a/funcom_test/49931896.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String clean(String name) { - if (name == null) { - return null; - } - final Pattern pattern = Pattern.compile("[:\",=*?]"); - final Matcher matcher = pattern.matcher(name); - return matcher.find() ? ObjectName.quote(name) : name; - } - COM: <s> escape with quote if required </s> - diff --git a/funcom_test/49932170.txt b/funcom_test/49932170.txt deleted file mode 100644 index e42a3c2245b004022437bdc74239b0a85c2c1d58..0000000000000000000000000000000000000000 --- a/funcom_test/49932170.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void recordUpdated(Record record) { - DataRecordEntry dataRecordEntry = new DataRecordEntry(record); - RecordUpdate ru = (new RecordUpdate(dataRecordEntry, record.getName())); - if (!q.offer(ru)) { - q.poll(); - q.offer(ru); - } - } - COM: <s> only service thread will call this </s> - diff --git a/funcom_test/49932334.txt b/funcom_test/49932334.txt deleted file mode 100644 index 3108c4232dfb78ff4f8ba0bc9240f60486e20f34..0000000000000000000000000000000000000000 --- a/funcom_test/49932334.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private boolean backupOneValue(Request req) { - Record record = getRecord(req); - if (record != null && record.isActive() && req.version < record.getVersion()) { - return false; - } - doBackup(req); - if (record != null) { - record.setVersion(req.version); - } - return true; - } - COM: <s> map and set have one value only so we can ignore the </s> - diff --git a/funcom_test/49933311.txt b/funcom_test/49933311.txt deleted file mode 100644 index 44370d241dff5473b813de46b97370fe5c662783..0000000000000000000000000000000000000000 --- a/funcom_test/49933311.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean doRead(ByteBuffer cb) { - boolean complete = doActualRead(cb); - while (!complete && readyToReadData && chunked && cb.hasRemaining()) { - complete = doActualRead(cb); - } - if (complete) { - if (data != null) data.flip(); - } - return complete; - } - COM: <s> post path http 1 </s> - diff --git a/funcom_test/49935513.txt b/funcom_test/49935513.txt deleted file mode 100644 index 0e5798fe73c37cbb80a3cee9ae665e4a7eb8c82b..0000000000000000000000000000000000000000 --- a/funcom_test/49935513.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void globalAndLocalListenerTest() throws InterruptedException { - map1.addLocalEntryListener(createEntryListener(true)); - map2.addLocalEntryListener(createEntryListener(true)); - map1.addEntryListener(createEntryListener(false), true); - map2.addEntryListener(createEntryListener(false), true); - int k = 1; - putDummyData(k); - checkCountWithExpected(k * 2, k); - } - COM: <s> test for issue 584 </s> - diff --git a/funcom_test/49936544.txt b/funcom_test/49936544.txt deleted file mode 100644 index 2ecb2badc1fab69e087b8900f8e3e4778593a38f..0000000000000000000000000000000000000000 --- a/funcom_test/49936544.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public HttpSession getSession() { - if (facade == null) { - if (SecurityUtil.isPackageProtectionEnabled()){ - final HazelcastSession fsession = this; - facade = (HazelcastSessionFacade)AccessController.doPrivileged(new PrivilegedAction(){ - public Object run(){ - return new HazelcastSessionFacade(fsession); - } - }); - } else { - facade = new HazelcastSessionFacade(this); - } - } - return (facade); - - } - COM: <s> return the code http session code for which this object </s> - diff --git a/funcom_test/49936592.txt b/funcom_test/49936592.txt deleted file mode 100644 index 48c0e61d103edd6ac3fbc995475703eab6c0ae8b..0000000000000000000000000000000000000000 --- a/funcom_test/49936592.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Enumeration getAttributeNames() { - if (!isValidInternal()) - throw new IllegalStateException - (sm.getString("standardSession.getAttributeNames.ise")); - Set keySet = attributes.keySet(); - keySet.remove(SESSION_MARK); - return (new Enumerator(keySet, true)); - } - COM: <s> return an code enumeration code of code string code objects </s> - diff --git a/funcom_test/50025833.txt b/funcom_test/50025833.txt deleted file mode 100644 index a752991f1c33e2c18e9e310697faf6f361882060..0000000000000000000000000000000000000000 --- a/funcom_test/50025833.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ReturnType getReply() throws DBusExecutionException { - if (null != rval) { - return rval; - } else if (null != error) { throw error; } - checkReply(); - if (null != rval) { - return rval; - } else if (null != error) { - throw error; - } else { - throw new NoReply(_("Async call has not had a reply")); - } - } - COM: <s> get the reply </s> - diff --git a/funcom_test/50025872.txt b/funcom_test/50025872.txt deleted file mode 100644 index d3b1fbd11bb275a3ce20b92fe1acaaaa328e82aa..0000000000000000000000000000000000000000 --- a/funcom_test/50025872.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public byte recvCredentialByte() throws IOException { - if (!connected) { throw new NotConnectedException(); } - int[] creds = new int[] { -1, -1, -1 }; - byte data = native_recv_creds(sock, creds); - pid = creds[0]; - uid = creds[1]; - gid = creds[2]; - return data; - } - COM: <s> receive a single byte of data with credentials </s> - diff --git a/funcom_test/50025943.txt b/funcom_test/50025943.txt deleted file mode 100644 index 1f12b0acbd137265a4c29a56096e60aa91abf653..0000000000000000000000000000000000000000 --- a/funcom_test/50025943.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected TextFile getTextFile(int index) { - JScrollPane scrollPane = (JScrollPane) tabbedPane.getComponentAt(index); - JTextComponent textComponent = (JTextComponent) scrollPane.getViewport().getView(); - final String sourceCode = textComponent.getText(); - - final String fileName = getFileName(index); - - TextFile textFile = new TextFile(fileName, sourceCode); - return textFile; - } - COM: <s> get the text file object associated with the supplied index </s> - diff --git a/funcom_test/50025948.txt b/funcom_test/50025948.txt deleted file mode 100644 index 2654a4b44b20a2e3c1f22621ec8aa2cea479ed84..0000000000000000000000000000000000000000 --- a/funcom_test/50025948.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void createInterface(Reader introspectdata) throws ParserConfigurationException, SAXException, IOException, DBusException { - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - DocumentBuilder builder = factory.newDocumentBuilder(); - Document document = builder.parse(new InputSource(introspectdata)); - - Element root = document.getDocumentElement(); - checkNode(root, "node"); - parseRoot(root); - - } - COM: <s> output the interface for the supplied xml reader </s> - diff --git a/funcom_test/50026101.txt b/funcom_test/50026101.txt deleted file mode 100644 index 380f72c915bc78f58e01ed229313fc7d6f655598..0000000000000000000000000000000000000000 --- a/funcom_test/50026101.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public DBusInterface getRemoteObject(String objectpath) throws DBusException { - if (null == objectpath) { throw new DBusException(_("Invalid object path: null")); } - - if (!objectpath.matches(OBJECT_REGEX) || (objectpath.length() > MAX_NAME_LENGTH)) { throw new DBusException( - _("Invalid object path: ") + objectpath); } - - return dynamicProxy(objectpath); - } - COM: <s> return a reference to a remote object </s> - diff --git a/funcom_test/50026147.txt b/funcom_test/50026147.txt deleted file mode 100644 index cfc0902464b7c418d9c52858ee1d4058d2b9a4e7..0000000000000000000000000000000000000000 --- a/funcom_test/50026147.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void append(String sig, Object... data) throws DBusException { - byte[] sigb = sig.getBytes(); - int j = 0; - for (int i = 0; i < sigb.length; i++) { - i = appendone(sigb, i, data[j++]); - } - } - COM: <s> append a series of values to the message </s> - diff --git a/funcom_test/50026221.txt b/funcom_test/50026221.txt deleted file mode 100644 index 1c81b84d7858d76d54f856addd53f310abbde498..0000000000000000000000000000000000000000 --- a/funcom_test/50026221.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void ensureBuffers(int num) { - int increase = num - wiredata.length + bufferuse; - if (increase > 0) { - if (increase < BUFFERINCREMENT) { - increase = BUFFERINCREMENT; - } - byte[][] temp = new byte[wiredata.length + increase][]; - System.arraycopy(wiredata, 0, temp, 0, wiredata.length); - wiredata = temp; - } - } - COM: <s> ensures there are enough free buffers </s> - diff --git a/funcom_test/50026324.txt b/funcom_test/50026324.txt deleted file mode 100644 index 1ef182d110ba1381c9938c8c85bfe4e53467950f..0000000000000000000000000000000000000000 --- a/funcom_test/50026324.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void pad(byte type) { - int a = getAlignment(type); - int b = (int) ((bytecounter - preallocated) % a); - if (0 == b) { return; } - a = (a - b); - if (preallocated > 0) { - paofs += a; - preallocated -= a; - } else { - appendBytes(padding[a]); - } - } - COM: <s> pad the message to the proper alignment for the given type </s> - diff --git a/funcom_test/50038643.txt b/funcom_test/50038643.txt deleted file mode 100644 index b7aae9cf44cc855d71ded020a5839a57f690aadc..0000000000000000000000000000000000000000 --- a/funcom_test/50038643.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String reset() { - if (hibernateStatsImpl == null) { - return "The original version is already available"; - } else { - setStatsImplementation(hibernateStatsImpl); - // loose the local reference to restore the swap logic - hibernateStatsImpl = null; - GeneralUtils.getService(SessionStatsCollector.class).deActivate(); - return "Switched to the hibernate version"; - } - } - COM: <s> swaps back to the original hibernate version </s> - diff --git a/funcom_test/50038649.txt b/funcom_test/50038649.txt deleted file mode 100644 index 89ce376f6660ca9793198ba8c89eff78f6d6e55b..0000000000000000000000000000000000000000 --- a/funcom_test/50038649.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void setStatsImplementation(StatisticsImplementor statsImpl) { - Field sessionImplementor; - try { - sessionImplementor = SessionFactoryImpl.class.getDeclaredField("statistics"); - sessionImplementor.setAccessible(true); - sessionImplementor.set(sessionFactory, statsImpl); - } catch (Exception e) { - log.error("Could not set the stats implementor", e); - } - } - COM: <s> since we do not have any set statistics in hibernate reflectively setting it </s> - diff --git a/funcom_test/50038689.txt b/funcom_test/50038689.txt deleted file mode 100644 index 3b85cb3a354948268dfffc64c2b8ac713b9f2d06..0000000000000000000000000000000000000000 --- a/funcom_test/50038689.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void setFilters(String flowPatternString, boolean shouldLogSessionSize) { - //could use StringUtils.isNotBlank but keeping size low - if (!(flowPatternString == null || flowPatternString.trim().equals(""))) { - flowPattern = Pattern.compile(flowPatternString); - } - this.shouldLogSize = shouldLogSessionSize; - } - COM: <s> sets the filter for profiling </s> - diff --git a/funcom_test/50069503.txt b/funcom_test/50069503.txt deleted file mode 100644 index f28288509de640efb4c22d45ca49d662d5011182..0000000000000000000000000000000000000000 --- a/funcom_test/50069503.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected void doOneIteration() throws Exception { - totalRequests++; - final long urlRetrievalTime = getUrlContent(); - stats.addDataPoint(urlRetrievalTime); - - if(urlRetrievalTime > maxRetrievalTime) { - lateRequests++; - storeProblemInfo(); - statusColor = Color.YELLOW; - } else { - statusColor = Color.GREEN; - } - updateStatus(); - } - COM: <s> implement to do one iteration of our work </s> - diff --git a/funcom_test/50101680.txt b/funcom_test/50101680.txt deleted file mode 100644 index d95e23d407205ded4d3fb4ab25bf64b190e4fb52..0000000000000000000000000000000000000000 --- a/funcom_test/50101680.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ChatClient (String host, int _port, String id) { - setTitle("Jscripture Chat Client"); - hostname = host; - port = _port; - userid = id; - setSize (420, 400); - - // used for listening of windowing events - addWindowListener (new WindowMonitor()); - - buildComponents(); - chatTextUpdater = new TextUpdater(); - initialStart = true; - } - COM: <s> chat client constructor </s> - diff --git a/funcom_test/50101772.txt b/funcom_test/50101772.txt deleted file mode 100644 index b2c0ce8ff70b82138cb16ee47f01108f45d150c8..0000000000000000000000000000000000000000 --- a/funcom_test/50101772.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void storeBibleCache() throws IOException { - FileOutputStream out = new FileOutputStream(BC_NAME); - ObjectOutputStream s = new ObjectOutputStream(out); - s.writeObject(BC_NAME); - /** - * jsconneciton cannot be serialized because new connection - * is required! - */ - this.jsconnection = null; - s.writeObject(this); - s.flush(); - } - COM: <s> store this class into a serialized object </s> - diff --git a/funcom_test/50101828.txt b/funcom_test/50101828.txt deleted file mode 100644 index e5de9e7f2b66e65945374ad5a7c0c0aa7e96a558..0000000000000000000000000000000000000000 --- a/funcom_test/50101828.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private String buildURL() { - StringBuffer retURL = new StringBuffer("http://bible.gospelcom.net/bible?passage="); - retURL.append(book); - retURL.append("+"); - retURL.append(chapter); - if(fromVerse != -1) - retURL.append(":" + fromVerse); - - if(toVerse != -1 && toVerse >= fromVerse) - retURL.append("-" + toVerse); - - retURL.append("&language=english&version="); - retURL.append(version); - retURL.append("&showfn=off&showxref=off"); - debug("buildURL value: " + retURL.toString() ); - return retURL.toString(); - } - COM: <s> builds the url to connect to the web server </s> - diff --git a/funcom_test/50102124.txt b/funcom_test/50102124.txt deleted file mode 100644 index 830bda0c09da5ec05f6fc7c53c3d5b80c97e755a..0000000000000000000000000000000000000000 --- a/funcom_test/50102124.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void displayChapter(String ch) { - - htmlPane.setContentType("text/html"); - htmlPane.setText(ch); - - // FIXME get this thing to scroll to the top! - Rectangle r = null; - try { - r = htmlPane.modelToView(0); - htmlView.scrollRectToVisible(r); - } catch(Throwable ignore) { - } - } - COM: <s> display the chapter contents by filling the html pane </s> - diff --git a/funcom_test/50104527.txt b/funcom_test/50104527.txt deleted file mode 100644 index da2b9c664e26c1d5639eb2fcd10724a904c8696c..0000000000000000000000000000000000000000 --- a/funcom_test/50104527.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addImplementationBean(Long referenceID, Object beanImpl) { - if (referenceID.equals(new Long(0))) { - mBeanImpl = beanImpl; - } - WeakReference wr = new WeakReference(beanImpl); - mRefBeans.put(referenceID, new WeakReference(beanImpl)); - mBeanRefs.put(beanImpl, referenceID); - } - COM: <s> method add implementation bean </s> - diff --git a/funcom_test/50104528.txt b/funcom_test/50104528.txt deleted file mode 100644 index 7eef9426460c796bc9e26cf8b6588b314f95b610..0000000000000000000000000000000000000000 --- a/funcom_test/50104528.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void replaceImplementationBean(Object implBean, Object withImplBean) { - - Long ref = (Long) mBeanRefs.get(implBean); - - mRefBeans.put(ref, new WeakReference(withImplBean)); - mBeanRefs.remove(implBean); - mBeanRefs.put(withImplBean, ref); - - if (mBeanImpl == implBean) { - mBeanImpl = withImplBean; - } - - - } - COM: <s> method replace implementation bean </s> - diff --git a/funcom_test/50105341.txt b/funcom_test/50105341.txt deleted file mode 100644 index a3a52722fb9815a4a263b478f092a50167efe6f6..0000000000000000000000000000000000000000 --- a/funcom_test/50105341.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void verifyMailAddresses(Collection col) throws MessagingException { - MailAddress addresses[] = (MailAddress[])col.toArray(new MailAddress[0]); - if (addresses.length != col.size()) { - throw new MailetException("The recipient list contains objects other than MailAddress objects"); - } - } - COM: <s> checks that all objects in this class are of the form mail address </s> - diff --git a/funcom_test/5012871.txt b/funcom_test/5012871.txt deleted file mode 100644 index d787cf450f9f7e3405b02ff34c5f20b76a513961..0000000000000000000000000000000000000000 --- a/funcom_test/5012871.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void setText(String text) { - try { - // remove all text and insert the completed string - super.remove(0, getLength()); - super.insertString(0, text, null); - } catch (BadLocationException e) { - throw new RuntimeException(e.toString()); - } - } - COM: <s> sets the text of this document to the given text </s> - diff --git a/funcom_test/5013746.txt b/funcom_test/5013746.txt deleted file mode 100644 index 809ef8489ede9af77623edfe8a51dfc7eecc6073..0000000000000000000000000000000000000000 --- a/funcom_test/5013746.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: { - int ixout, jzin, jic; - - for (ixout = 0; ixout - < nxout; ixout++) { - jzin = kzin[ixout]; - jic = - kic[ixout]; - zout[ixout + offset_zout] = table[icmax * 256 + (int) zin[jzin + offset_zin] - jic]; - zout[ixout + offset_zout] += table[(int) zin[jzin + 1 + offset_zin] + jic]; - } - - } - COM: <s> short table short zin int offset zin short zout int offset zout </s> - diff --git a/funcom_test/50142710.txt b/funcom_test/50142710.txt deleted file mode 100644 index 506a8e3f98850623220e89f16b2bc125e90bd70d..0000000000000000000000000000000000000000 --- a/funcom_test/50142710.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public String toString() { - String envelopeStr = Double.toString(this.getMinX()) + ","; - envelopeStr += Double.toString(this.getMinY()) + ","; - envelopeStr += Double.toString(this.getMaxX()) + ","; - envelopeStr += Double.toString(this.getMaxY()); - return envelopeStr; - } - COM: <s> convert the envelope object to a string </s> - diff --git a/funcom_test/50351952.txt b/funcom_test/50351952.txt deleted file mode 100644 index 546559d35d4d7df426eeaa956c464cf733631de5..0000000000000000000000000000000000000000 --- a/funcom_test/50351952.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void send(String user) { - try { - Collection news = db.getNews(user); - if (news.isEmpty()) - return; - server.tell(user, news, new TellDoneListener(user, news.size())); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> sends a user news if they did not receive it already </s> - diff --git a/funcom_test/50352057.txt b/funcom_test/50352057.txt deleted file mode 100644 index e2a9bfd53ca381f3561d5245f1dc33ac26d32389..0000000000000000000000000000000000000000 --- a/funcom_test/50352057.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void onEndMatch(String user1, String user2, int length, int points1, int points2) { - for (Iterator i = listeners.iterator(); i.hasNext(); ) - ((Listener)i.next()).onEndMatch(user1, user2, length, points1, points2); - } - COM: <s> called when a game is finished </s> - diff --git a/funcom_test/50352096.txt b/funcom_test/50352096.txt deleted file mode 100644 index 2e22c4c94cee901231b1cb44e98034f0952eab3a..0000000000000000000000000000000000000000 --- a/funcom_test/50352096.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setSavedGames(SavedGames savedGames) { - super.setSavedGames(savedGames); - try { - FileOutputStream fos = new FileOutputStream("savedgames.ser"); - BufferedOutputStream bos = new BufferedOutputStream(fos, 100000); - ObjectOutputStream oos = new ObjectOutputStream(bos); - oos.writeObject(filter); - oos.close(); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> gets the saved games list </s> - diff --git a/funcom_test/50352098.txt b/funcom_test/50352098.txt deleted file mode 100644 index f9eff11e5309ca8d689cd573b907550a1f7331c0..0000000000000000000000000000000000000000 --- a/funcom_test/50352098.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String formatCount(String user) { - int count = savedGames.getSavedGames(user).size(); - String savedGamesMessage = ""; - if (count > 0) { - String s = count == 1 ? "" : "s"; - savedGamesMessage = count + " saved game" + s; - } else - savedGamesMessage = "no saved games"; - return savedGamesMessage; - } - COM: <s> generates a saved games count in the form n saved games </s> - diff --git a/funcom_test/50352099.txt b/funcom_test/50352099.txt deleted file mode 100644 index a3e7ba83147dafd19573a211fbefbeafe0d5d4ac..0000000000000000000000000000000000000000 --- a/funcom_test/50352099.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Collection annotate(Collection players, String user) { - Set saved = savedGames.getSavedGames(user); - List result = new ArrayList(); - for (Iterator i = players.iterator(); i.hasNext(); ) { - String player = i.next().toString(); - result.add(saved.contains(player) ? player + "*" : player); - } - return result; - } - COM: <s> annotates players with saved games with an asterisk </s> - diff --git a/funcom_test/50352134.txt b/funcom_test/50352134.txt deleted file mode 100644 index 1eb7b0e7db6392cdba6c877f9ee37201f84209c0..0000000000000000000000000000000000000000 --- a/funcom_test/50352134.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected boolean getStatus(String user) { - try { - if (!status.containsKey(user)) - status.put(user, new Boolean(db.getAlert(user))); - return ((Boolean)status.get(user)).booleanValue(); - } catch (Exception e) { - throw new RuntimeException("Failed setting alert status for " + user, e); - } - } - COM: <s> gets the toggle status </s> - diff --git a/funcom_test/50352189.txt b/funcom_test/50352189.txt deleted file mode 100644 index fdbfe474e8d8c0239c623b3aa1bb92865f9831d7..0000000000000000000000000000000000000000 --- a/funcom_test/50352189.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void onTimeout() { - if (suspected) - fibs.reconnect(); - fibs.addTimeout(this, timeout); - suspected = true; - try { - fibs.send("time"); - } catch (Exception e) { - throw new RuntimeException("Failed to generate activity to fibs", e); - } - } - COM: <s> called on a timeout </s> - diff --git a/funcom_test/50430539.txt b/funcom_test/50430539.txt deleted file mode 100644 index 4f4ffa3323ca562b9be30b326c5dd68645fd40eb..0000000000000000000000000000000000000000 --- a/funcom_test/50430539.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void testRemoveContact() { - int initialSize = book.size(); - assertFalse(book.removeContact("no-such@contact.com")); - - assertTrue(book.removeContact("jimmy@snooker.com")); - assertTrue(book.size() == initialSize - 1); - - assertTrue(book.removeContact("davies@snooker.com")); - assertTrue(book.size() == initialSize - 2); - - assertTrue(book.removeContact("ronnie@rocket.com")); - assertTrue(book.size() == initialSize - 3); - - // Remove from empty address book - assertFalse(book.removeContact("ronnie@rocket.com")); - assertTrue(book.size() == initialSize - 3); - } - COM: <s> test remove contact </s> - diff --git a/funcom_test/50430544.txt b/funcom_test/50430544.txt deleted file mode 100644 index 39a110765ef8890b2ddcf23eadea3a160ba65e6c..0000000000000000000000000000000000000000 --- a/funcom_test/50430544.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void testAddContacts() throws Exception { - - int initialSize = book.size(); - - Vector newContacts = new Vector(); - Contact cnt1 = new Contact("Foo", "foo@for.com"); - Contact cnt2 = new Contact("Bar", "bar@bar.com"); - newContacts.add(cnt1); - newContacts.add(cnt2); - - book.addContacts(newContacts); - - assertTrue(book.size() == initialSize + 2); - assertTrue(cnt1 == book.getContact(book.size() - 2)); - assertTrue(cnt2 == book.getContact(book.size() - 1)); - } - COM: <s> test add contacts </s> - diff --git a/funcom_test/50430610.txt b/funcom_test/50430610.txt deleted file mode 100644 index 234c1d6629e4cf637cd4d8baeb00af8a617efacc..0000000000000000000000000000000000000000 --- a/funcom_test/50430610.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public JTable createMailbox(List messages) { - tableModel.setData(messages); - mailboxTable.setModel(tableModel); - mailboxTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); - mailboxTable.setShowGrid(false); - mailboxTable.getColumnModel().setColumnMargin(0); - setColumnWidths(mailboxTable.getColumnModel()); - return mailboxTable; - } - COM: <s> creates a mailbox table which will display </s> - diff --git a/funcom_test/50430724.txt b/funcom_test/50430724.txt deleted file mode 100644 index 05f4fb97fb4e07679fb20851bd0c9291239c13e4..0000000000000000000000000000000000000000 --- a/funcom_test/50430724.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testSetInfo() throws Exception { - int newStatus = LiveMessageInfo.SENT; - CustomDate newDate = new CustomDate(2004, 3, 15, 17, 45); - LiveMessageInfo newInfo = new LiveMessageInfo(newStatus, newDate); - message.setInfo(newInfo); - assertFalse(msgInfo.equals(message.getInfo())); - assertTrue(newInfo.equals(message.getInfo())); - - } - COM: <s> test set info </s> - diff --git a/funcom_test/50430757.txt b/funcom_test/50430757.txt deleted file mode 100644 index fadcb4052c9d2a735e3df8e2a3eb2520a030227a..0000000000000000000000000000000000000000 --- a/funcom_test/50430757.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addFolder(Object f) throws FolderManagerException { - - Folder folder = Folder.cast(f); - - // If there's no such folder yet, add it - if(indexOf(folder.getFolderName()) == -1) - folders.add(folder); - else - throw new FolderManagerException - ("Duplicate folder name: " + folder.getFolderName()); - } - COM: <s> adds a new folder </s> - diff --git a/funcom_test/50430761.txt b/funcom_test/50430761.txt deleted file mode 100644 index 4a49fe319bdfb06bd0ca8c2965ce46829fc18dee..0000000000000000000000000000000000000000 --- a/funcom_test/50430761.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean removeFolder(String fName) throws FolderManagerException { - int index = indexOf(fName); - if(index != -1) { - if(!((Folder)folders.get(index)).isCore()) { - folders.remove(index); - return true; - } else { - throw new FolderManagerException - ("Cannot remove a core folder: " + fName); - } - } - return false; - } - COM: <s> removes a folder that matches the specified name </s> - diff --git a/funcom_test/50430768.txt b/funcom_test/50430768.txt deleted file mode 100644 index 55521c4c421b1bb3c3c33bc21145141e5ca7e730..0000000000000000000000000000000000000000 --- a/funcom_test/50430768.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected List loadFolders() throws FolderManagerException { - try { - return DataManager.loadFolders(); - } catch (UnsupportedEncodingException uee) { - throw new FolderManagerException - ("Reading folders from disk failed: \n" + uee); - } catch (DOMBuilderException dbe) { - throw new FolderManagerException - ("Reading folders from disk failed: \n" + dbe); - } - } - COM: <s> loads folders from secondary storage into main memory </s> - diff --git a/funcom_test/50430773.txt b/funcom_test/50430773.txt deleted file mode 100644 index af157d0b8684069cf5446e8c9c6e40d96ac1bafd..0000000000000000000000000000000000000000 --- a/funcom_test/50430773.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void send() throws MessagingException, SystemInfoException { - - // Get system properties and setup mail server - Properties props = System.getProperties(); - props.put("mail.smtp.host", SystemInfo.getSmtpServer()); - - // Create a session and a new mime message - Session session = Session.getDefaultInstance(props, null); - MimeMessage mimeMessage = createMimeMessage(session); - - Transport.send(mimeMessage); - } - COM: <s> sends the message without authentication </s> - diff --git a/funcom_test/50430834.txt b/funcom_test/50430834.txt deleted file mode 100644 index 7b2ab8a3573a8fd3d7a20cc6d819a5d172201c86..0000000000000000000000000000000000000000 --- a/funcom_test/50430834.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean removeMessage(Object obj) { - LiveMessage msg = LiveMessage.cast(obj); - for (int i = 0; i < messages.size(); i++) { - if(((LiveMessage)messages.get(i)).equals(msg)) { - messages.remove(i); - return true; - } - } - return false; - } - COM: <s> removes a message that matches the specified argument </s> - diff --git a/funcom_test/50430847.txt b/funcom_test/50430847.txt deleted file mode 100644 index f517d413e16dd5f66ef61d2fb976f96fe3c40a83..0000000000000000000000000000000000000000 --- a/funcom_test/50430847.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private int indexOf(String email) { - for(int i=0; i < contacts.size(); i++) { - String a = ((Contact)contacts.get(i)).getEmail().getAddress(); - if(a.equalsIgnoreCase(email)) { - return i; - } - } - return -1; - } - COM: <s> returns index of the contact with the specified </s> - diff --git a/funcom_test/50430921.txt b/funcom_test/50430921.txt deleted file mode 100644 index 731c270cdb404b0fb0d77c6fda8266d7d5f61847..0000000000000000000000000000000000000000 --- a/funcom_test/50430921.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addToAddress(String address) throws AddressException { - - // New array is length is larger by one entry - int newSize = to.length + 1; - InternetAddress[] newTo = new InternetAddress[newSize]; - - for (int i = 0; i < newSize - 1; i++) - newTo[i] = to[i]; - - // Add the new recipient at the end of the array - newTo[newSize - 1] = new InternetAddress(address); - to = newTo; - } - COM: <s> adds a new recipient to this message </s> - diff --git a/funcom_test/50575080.txt b/funcom_test/50575080.txt deleted file mode 100644 index f7080c3af5ecb8b2291b008eac862b3c36e4cc6b..0000000000000000000000000000000000000000 --- a/funcom_test/50575080.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getAdminString() { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < _admins.size(); i++) { - if (i != 0) { - sb.append(","); - } - - sb.append(_admins.get(i)); - } - - return sb.toString(); - } - COM: <s> gets the admin string attribute of the board object </s> - diff --git a/funcom_test/50575263.txt b/funcom_test/50575263.txt deleted file mode 100644 index 66ba969421026baab1755141396ef5382d5ea6db..0000000000000000000000000000000000000000 --- a/funcom_test/50575263.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String addGT(String message) { - StringBuffer sb = new StringBuffer(); - StringTokenizer stok = new StringTokenizer(message, "\n"); - while (stok.hasMoreTokens()) { - sb.append("> ").append(stok.nextToken()).append("\n"); - } - - return sb.toString(); - } - COM: <s> adds a feature to the gt attribute of the board object </s> - diff --git a/funcom_test/50698354.txt b/funcom_test/50698354.txt deleted file mode 100644 index 1fccb2b59cdfb0addcf4425355544e07643f20fd..0000000000000000000000000000000000000000 --- a/funcom_test/50698354.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void run() { - Socket socket1; - Socket socket2; - try { - do { - socket1 = serverSocket.accept(); - System.out.println("Player 1 detected"); - socket2 = serverSocket.accept(); - System.out.println("Player 2 detected"); - new Game(socket1, socket2); - } while(false); - while (true); - } - catch(IOException ioexception) { - ioexception.printStackTrace(); - } - } - COM: <s> task wait for 2 players then create a game </s> - diff --git a/funcom_test/50698406.txt b/funcom_test/50698406.txt deleted file mode 100644 index 9b422a2cb64945060bd54514994f094feb6d7f72..0000000000000000000000000000000000000000 --- a/funcom_test/50698406.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected Move think() { - int localPrune = 999999; - BoardAlphaBetaNode startNode = new BoardAlphaBetaNode(1, MAX_DEPTH, board, color); - int rating = startNode.getRating(localPrune); - System.out.println(rating); - return possibleMoves[startNode.getBestIndex()]; - } - COM: <s> get a new move </s> - diff --git a/funcom_test/50698409.txt b/funcom_test/50698409.txt deleted file mode 100644 index 47cc089c4eed3fc392057738a47ffa38fe96e280..0000000000000000000000000000000000000000 --- a/funcom_test/50698409.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getRating(int prune) { - // if leaf node return value - if (depth == maxDepth) return getValue(); - nodes = getAllChildNodes(); - // alpha or beta ? - if ((depth % 2) == 0) { - return getAlphaRating(prune); - } else { - return getBetaRating(prune); - } - } - COM: <s> get rating of this node </s> - diff --git a/funcom_test/50698414.txt b/funcom_test/50698414.txt deleted file mode 100644 index b90427382e40bc240df7d6ea5088a8da5886d843..0000000000000000000000000000000000000000 --- a/funcom_test/50698414.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected int getAlphaRating(int prune) { - int localPrune = POSINV; - int i = 0; - while ((i < nodes.length) && (localPrune > prune)) { - localPrune = Math.min(localPrune, nodes[i].getRating(localPrune)); - i++; - } - return localPrune; - } - COM: <s> return rating for alpha node </s> - diff --git a/funcom_test/50698417.txt b/funcom_test/50698417.txt deleted file mode 100644 index 14091065855e6461086811464176e890a9b3d41c..0000000000000000000000000000000000000000 --- a/funcom_test/50698417.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected int getBetaRating(int prune) { - int localPrune = NEGINV; - int i = 0; - while ((i < nodes.length) && (localPrune < prune)) { - int rat = nodes[i].getRating(localPrune); - if (rat > localPrune) { - localPrune = rat; - // save index of best node - bestIndex = i; - } - i++; - } - return localPrune; - } - COM: <s> return rating for beta node and save index of best node </s> - diff --git a/funcom_test/50717447.txt b/funcom_test/50717447.txt deleted file mode 100644 index 7bcd58f7402c0ea4ebf035991bdd8ec49760d3d5..0000000000000000000000000000000000000000 --- a/funcom_test/50717447.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public Graphics2D getDrawingArea() { - - try { - synchronized (lock) { - // wait until there is something to read - while (bi == null) - lock.wait(); - - // we have the lock and state we're seeking - Graphics2D g2; - - g2 = bi.createGraphics(); - return g2; - } - } - catch (InterruptedException ie) { - System.out.println("getDrawingarea : " + ie.getMessage()); - return null; - } - } - COM: <s> returns a pointer to the graphics area that we can draw on </s> - diff --git a/funcom_test/50717503.txt b/funcom_test/50717503.txt deleted file mode 100644 index b17d6718dc11890d721ae51ada451d507bfc8ddf..0000000000000000000000000000000000000000 --- a/funcom_test/50717503.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: private void getNewSessionOptions() { - - try { - - BufferedReader in = new BufferedReader( - new InputStreamReader( - socket.getInputStream())); - - String inputLine, outputLine; - bootEvent = new BootEvent(this,in.readLine()); - - System.out.println(bootEvent.getNewSessionOptions()); - fireBootEvent(); - - in.close(); - socket.close(); - - } - catch (IOException e) { - e.printStackTrace(); - } - - } - COM: <s> retrieve the boot options from the other jvm wanting to start a new </s> - diff --git a/funcom_test/50717769.txt b/funcom_test/50717769.txt deleted file mode 100644 index 539ebab58dfecc6efeee9630dd4858e2f123f926..0000000000000000000000000000000000000000 --- a/funcom_test/50717769.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Dimension preferredLayoutSize(Container parent) { - - Insets insets = parent.getInsets(); - getGridSizes(parent, false); - return new Dimension(insets.left + insets.right + sum(col_widths) - + (col_widths.length+1)*hgap, - insets.top + insets.bottom + sum(row_heights) - + (row_heights.length+1)*vgap); - } - COM: <s> calculates the preferred size for this layout </s> - diff --git a/funcom_test/50717806.txt b/funcom_test/50717806.txt deleted file mode 100644 index 3bd6d37b9df72804ff589ae77781620e3e5d9c79..0000000000000000000000000000000000000000 --- a/funcom_test/50717806.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void getRemoteDirectory() { - - executeCommand("PWD"); - - int i = lastResponse.indexOf("\""); - int j = lastResponse.lastIndexOf("\""); - if(i != -1 && j != -1) - remoteDir = lastResponse.substring(i + 1, j); - else - remoteDir = "Can't parse remote dir!"; - } - COM: <s> returns the remote directy </s> - diff --git a/funcom_test/50717835.txt b/funcom_test/50717835.txt deleted file mode 100644 index 8218719c5c52424435773cb74eeac883e9c55e24..0000000000000000000000000000000000000000 --- a/funcom_test/50717835.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void writeFooter(ArrayList ffd) { - - try { - - fout.write (" </table>\n".getBytes()); - fout.write (" </map>\n".getBytes()); - fout.write ("</spreadsheet>\n".getBytes()); - - fout.flush(); - fout.close(); - - } - catch (IOException ioex) { - System.out.println(ioex.getMessage()); - } - - - } - COM: <s> write the footer of the xml output </s> - diff --git a/funcom_test/50717880.txt b/funcom_test/50717880.txt deleted file mode 100644 index 478dc26365d913709a1ca0156b3ee3417eda62bf..0000000000000000000000000000000000000000 --- a/funcom_test/50717880.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected boolean getMbrInfo(String file, String member) { - - executeCommand("RCMD","dspfd FILE(" + file + ")" + - " TYPE(*MBR)" + - " OUTPUT(*OUTFILE) " + - "OUTFILE(QTEMP/FML) "); - - if (!lastResponse.startsWith("2")) - return false; - - if (getMbrSize(member)) - - if (!lastResponse.startsWith("2")) - return false; - - return true; - } - COM: <s> executes the command to obtain the member information of the remote file </s> - diff --git a/funcom_test/50718231.txt b/funcom_test/50718231.txt deleted file mode 100644 index 9ab1845b11b3c4de7006ba874bcffe0ea6c6cc10..0000000000000000000000000000000000000000 --- a/funcom_test/50718231.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void processKeyEvent(KeyEvent evt) { - - if(evt.isConsumed()) - return; - - switch(evt.getID()) { - case KeyEvent.KEY_TYPED: - processVTKeyTyped(evt); - break; - case KeyEvent.KEY_PRESSED: - processVTKeyPressed(evt); - break; - case KeyEvent.KEY_RELEASED: - processVTKeyReleased(evt); - break; - } - - } - COM: <s> forwards key events directly to the input handler </s> - diff --git a/funcom_test/50718306.txt b/funcom_test/50718306.txt deleted file mode 100644 index 24a82b888057e0fd81d770e82f6dcf53673616b7..0000000000000000000000000000000000000000 --- a/funcom_test/50718306.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void loadOptions() { - - restricted.clear(); - String restrictedProp = - ConfigureFactory.getInstance().getProperties( - ConfigureFactory.SESSIONS).getProperty("emul.restricted"); - - if (restrictedProp != null) { - StringTokenizer tokenizer = new StringTokenizer(restrictedProp, ";"); - while (tokenizer.hasMoreTokens()) { - restricted.add(tokenizer.nextToken()); - } - } - - } - COM: <s> load a list of available options </s> - diff --git a/funcom_test/50718593.txt b/funcom_test/50718593.txt deleted file mode 100644 index 24938fa5c277947e9fe65d1e27b057215d7e1b1c..0000000000000000000000000000000000000000 --- a/funcom_test/50718593.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void loadStringAttribute(SpooledFile p, Vector row, int attribute) { - try { - row.add(p.getStringAttribute(attribute)); - } - catch (Exception ex) { -// System.out.println(ex.getMessage()); - row.add("Attribute Not supported"); - } - } - COM: <s> load a printer object string attribute into our row vector </s> - diff --git a/funcom_test/50718597.txt b/funcom_test/50718597.txt deleted file mode 100644 index 482c6c568514ef0fbe7d8ed0684682effd3e581b..0000000000000000000000000000000000000000 --- a/funcom_test/50718597.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void loadIntegerAttribute(SpooledFile p, Vector row, int attribute) { - try { - row.add(p.getIntegerAttribute(attribute)); - } - catch (Exception ex) { -// System.out.println(ex.getMessage()); - row.add("Attribute Not supported"); - } - } - COM: <s> load a printer object integer numeric attribute into our row vector </s> - diff --git a/funcom_test/50718602.txt b/funcom_test/50718602.txt deleted file mode 100644 index c0f50d72d27f5b54725966263fe8c74ff8b481da..0000000000000000000000000000000000000000 --- a/funcom_test/50718602.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void loadCreateDateTime(SpooledFile p, Vector row) { - - try { - String datetime = formatDate(p.getStringAttribute(PrintObject.ATTR_DATE)) + - " " + - formatTime(p.getStringAttribute(PrintObject.ATTR_TIME)); - row.add(datetime); - } - catch (Exception ex) { -// System.out.println(ex.getMessage()); - row.add("Attribute Not supported"); - } - } - COM: <s> format the create date and time into a string to be used </s> - diff --git a/funcom_test/50718608.txt b/funcom_test/50718608.txt deleted file mode 100644 index daca2cbeb92bb83bfd5a848230a785ff082a249b..0000000000000000000000000000000000000000 --- a/funcom_test/50718608.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private void doExport() { - - if (!pagesValid()) - return; - - workingThread = null; - - if (cvtType.getSelectedIndex() == 0) - workingThread = new Thread(new Runnable () { - public void run() { - cvtToPDF(); - } - }); - else - workingThread = new Thread(new Runnable () { - public void run() { - cvtToText(); - } - }); - - workingThread.start(); - } - COM: <s> export the spool file </s> - diff --git a/funcom_test/50718868.txt b/funcom_test/50718868.txt deleted file mode 100644 index 61e497c8bf5702fb52274fb74d2495072d7db6d0..0000000000000000000000000000000000000000 --- a/funcom_test/50718868.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Dimension getPreferredSize() { - Dimension dimSource = sourcePane.getPreferredSize(); - Dimension dimSelection = selectionPane.getPreferredSize(); - - Dimension dimButtons = buttonPanel.getPreferredSize(); - int w = dimButtons.width+2*getListPreferredWidth(); - int h = Math.max(dimButtons.height, Math.max(dimSource.height, dimSelection.height)); - return new Dimension(w, h); - } - COM: <s> returns the preferred size of the component </s> - diff --git a/funcom_test/50718912.txt b/funcom_test/50718912.txt deleted file mode 100644 index 135b4a4fd875f23dd65ed7f0afce5cb5578962eb..0000000000000000000000000000000000000000 --- a/funcom_test/50718912.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void createAboutPanel() { - - aboutPanel = new JPanel(); - - JPanel contenpane = new JPanel(); - - TitledBorder tb = BorderFactory.createTitledBorder("About"); - tb.setTitleJustification(TitledBorder.CENTER); - - contenpane.add(new JLabel("TN5250j")); - contenpane.add(new JLabel("Version: " + TN5250jConstants.tn5250jRelease + TN5250jConstants.tn5250jVersion + TN5250jConstants.tn5250jSubVer)); - - contenpane.setLayout(new BoxLayout(contenpane, BoxLayout.Y_AXIS)); - - aboutPanel.add(contenpane); - aboutPanel.setBorder(tb); - - } - COM: <s> simple about the program </s> - diff --git a/funcom_test/50719234.txt b/funcom_test/50719234.txt deleted file mode 100644 index 2784aa5595a5457f6ef873c517c870ecd7c4f53a..0000000000000000000000000000000000000000 --- a/funcom_test/50719234.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private SessionGUI getCurrentViewedSession() { - - SessionGUI current = null; - Component[] comps = sessionPanel.getComponents(); - int count = comps.length; - // make the current session non visible to keep from over writting the - // session screens. - for (int x = 0; x < count; x++) { - - if (comps[x] instanceof SessionGUI) { - current = (SessionGUI)comps[x]; - } - } - - return current; - - } - COM: <s> helper method to return the currently viewed session </s> - diff --git a/funcom_test/50719454.txt b/funcom_test/50719454.txt deleted file mode 100644 index 7cbb0885cc80431da9db568836f52a685a5bae0d..0000000000000000000000000000000000000000 --- a/funcom_test/50719454.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String determineTabName(final SessionGUI sessiongui) { - assert sessiongui != null; - final String name; - if (sessiongui.getSession().isUseSystemName()) { - name = sessiongui.getSessionName(); - } else { - if (sessiongui.getAllocDeviceName() != null) { - name = sessiongui.getAllocDeviceName(); - } else { - name = sessiongui.getHostName(); - } - } - return name; - } - COM: <s> determines the name which is configured for one tab </s> - diff --git a/funcom_test/50719466.txt b/funcom_test/50719466.txt deleted file mode 100644 index 207eb595c372060844395038d81730b61effe75c..0000000000000000000000000000000000000000 --- a/funcom_test/50719466.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Dimension minimumLayoutSize(Container target) { - synchronized (target.getTreeLock()) { - Dimension d = new Dimension(0, 0); - - addMinimumSize(d, east); - addMinimumSize(d, west); - addMinimumSize(d, center); - - Insets insets = target.getInsets(); - d.width += insets.left + insets.right; - d.height += insets.top + insets.bottom; - - return d; - } - } - COM: <s> determines the minimum size of the target </s> - diff --git a/funcom_test/50719469.txt b/funcom_test/50719469.txt deleted file mode 100644 index ec17161633650c9dcb542c514cc0e9559cce36b1..0000000000000000000000000000000000000000 --- a/funcom_test/50719469.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Dimension preferredLayoutSize(Container target) { - synchronized (target.getTreeLock()) { - Dimension d = new Dimension(0, 0); - - addPreferredSize(d, east); - addPreferredSize(d, west); - addPreferredSize(d, center); - - Insets insets = target.getInsets(); - d.width += insets.left + insets.right; - d.height += insets.top + insets.bottom; - - return d; - } - } - COM: <s> determines the preferred size of the target </s> - diff --git a/funcom_test/50719526.txt b/funcom_test/50719526.txt deleted file mode 100644 index f341cf3b62b4a9154bab328bf9792a71edaac0c9..0000000000000000000000000000000000000000 --- a/funcom_test/50719526.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Point translateStart(Point start) { - - // because getRowColFromPoint returns position offset as 1,1 we need - // to translate as offset 0,0 - int pos = getPosFromView(start.x, start.y); - int x = columnWidth * screen.getCol(pos); - int y = rowHeight * screen.getRow(pos); - start.setLocation(x, y); - return start; - - } - COM: <s> translate the starting point of mouse movement to encompass a full </s> - diff --git a/funcom_test/50719985.txt b/funcom_test/50719985.txt deleted file mode 100644 index c75e3efd5a7de97a8995c827ea5df97056e61f42..0000000000000000000000000000000000000000 --- a/funcom_test/50719985.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String getToTokens(String to, JComboBox boxen) { - - StringBuffer sb = new StringBuffer(); - String selected = (String) boxen.getSelectedItem(); - - sb.append(selected + '|'); - - int c = boxen.getItemCount(); - - for (int x = 0; x < c; x++) { - if (!selected.equals(boxen.getItemAt(x))) - sb.append((String) boxen.getItemAt(x) + '|'); - } - return sb.toString(); - } - COM: <s> creates string of tokens from the combobox items </s> - diff --git a/funcom_test/50720863.txt b/funcom_test/50720863.txt deleted file mode 100644 index 5176bb1a5ddd84c691171bb83272e584a5968311..0000000000000000000000000000000000000000 --- a/funcom_test/50720863.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void fireScreenSizeChanged() { - - if (listeners != null) { - Vector<ScreenListener> lc = new Vector<ScreenListener>(listeners); - //int size = listeners.size(); - int size = lc.size(); - for (int i = 0; i < size; i++) { - ScreenListener target = - lc.elementAt(i); - target.onScreenSizeChanged(numRows,numCols); - } - } - } - COM: <s> notify all registered listeners of the on screen size changed event </s> - diff --git a/funcom_test/50756381.txt b/funcom_test/50756381.txt deleted file mode 100644 index 8ace5afa8a8da75c1627375d467ebde37c778f92..0000000000000000000000000000000000000000 --- a/funcom_test/50756381.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public QuestionPK ejbCreate(int questionType) throws CreateException { - if ( (questionType < SurveyElementFactory.QUESTION) || (questionType > SurveyElementFactory.NOMINALQUESTION)) { - throw new CreateException("(" + questionType + ") is a unknown question type."); - } - - setQuestionType(questionType); - String newKey = GUID.generateGUID(); - setQuestionId(newKey); - - return null; - } - COM: <s> creates a global unique identifier </s> - diff --git a/funcom_test/50852407.txt b/funcom_test/50852407.txt deleted file mode 100644 index ee8f5580d1a72c2c95cd3e27dbd3c983aee4f776..0000000000000000000000000000000000000000 --- a/funcom_test/50852407.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Enumeration getTypes(MultiProperties options) { - Enumeration te = options.getValues("scantypes"); - - if (!te.hasMoreElements()) { - // see if it's a page in approved known types - te = srv.getMultiProperty("OnsiteLinkTypes"); - - if (!te.hasMoreElements()) { - // scan all types by default - te = srv.getTypes(); - } - } - return te; - } - COM: <s> build the array of all pages across the given types </s> - diff --git a/funcom_test/50852778.txt b/funcom_test/50852778.txt deleted file mode 100644 index 5a56ca1e065307ec1c9b742240f863e07c1951d2..0000000000000000000000000000000000000000 --- a/funcom_test/50852778.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setShade (boolean shade) { - if (this.shade == shade) - return; - this.shade = shade; - - if (border || shade) { - textX = 6; - textY = 4; - resize (textW+12, textH+8); - - } else if (!border && !shade) { - textX = 0; - textY = 0; - resize (textW, textH); - } - - changed (); - } - COM: <s> sets whether or not this text has a semi transparent </s> - diff --git a/funcom_test/50853226.txt b/funcom_test/50853226.txt deleted file mode 100644 index ccec8e98094cbcd4c67008c22cabdbc483ab8005..0000000000000000000000000000000000000000 --- a/funcom_test/50853226.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void consumeUntil (StringBuffer tk, String until) { - while (len > 0) { - if (consumeEsc (tk)) { - - } else if (doc.startsWith (until,loc)) { - // here's the end-quote. Stop - //System.out.println ("Got lit: ["+until+"] -> ["+tk+"]"); - return; - - } else { - // consume this char - consumeChar (tk); - } - } - - //System.out.println ("Walked off string while looking for ["+until+"]"); - } - COM: <s> unquestioningly consumes up to the given string provided that </s> - diff --git a/funcom_test/50853283.txt b/funcom_test/50853283.txt deleted file mode 100644 index b8a039b26e53cdda022bea0514aba6f6d63091ee..0000000000000000000000000000000000000000 --- a/funcom_test/50853283.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void discardUntil (String until) { - while (len > 0) { - if (discardEsc ()) { - - } else if (doc.startsWith (until,loc)) { - // here's the end-quote. Stop - //System.out.println ("Got lit: ["+until+"] -> ["+tk+"]"); - return; - - } else { - // consume this char - discardChar (); - } - } - - //System.out.println ("Walked off string while looking for ["+until+"]"); - } - COM: <s> unquestioningly discards up to the given string provided that </s> - diff --git a/funcom_test/50891748.txt b/funcom_test/50891748.txt deleted file mode 100644 index 4fbce91277242a6b82b7b3064a322268f57c2c30..0000000000000000000000000000000000000000 --- a/funcom_test/50891748.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetBodyContent() { - System.out.println("testGetBodyContent"); - testString = "Well basically what is going on Here is that-\n"; - testString += "we want to get back a bunch of body content\n"; - tag.setBodyContent( testString ); - assertEquals( tag.getBodyContent(), testString ); - } - COM: <s> test of get body content method of class com </s> - diff --git a/funcom_test/50891753.txt b/funcom_test/50891753.txt deleted file mode 100644 index a99fc8b48bb84121158fb26e87d1340e939a8ccb..0000000000000000000000000000000000000000 --- a/funcom_test/50891753.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testSetBodyContent() { - System.out.println("testSetBodyContent"); - testString = "So this is some long multi-\n"; - testString += "line String that might appear as documention"; - tag.setBodyContent( testString ); - assertEquals( tag.getBodyContent(), testString ); - } - COM: <s> test of set body content method of class com </s> - diff --git a/funcom_test/50891779.txt b/funcom_test/50891779.txt deleted file mode 100644 index 6a98db4b71030ac5a45b5a18f956f0787dd7fe0e..0000000000000000000000000000000000000000 --- a/funcom_test/50891779.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testGetDescription() { - System.out.println("testGetDescription"); - testString = "So this is some long multi-\n"; - testString += "line String that might appear as documention"; - tag.setDescription( testString ); - assertEquals( tag.getDescription(), testString ); - } - COM: <s> test of get description method of class com </s> - diff --git a/funcom_test/50891783.txt b/funcom_test/50891783.txt deleted file mode 100644 index 303c13f8d902302539f80b3d26eabf9521af6044..0000000000000000000000000000000000000000 --- a/funcom_test/50891783.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void testSetDescription() { - System.out.println("testSetDescription"); - testString = "This Tag is a great tag. And let me tell you why-\n"; - testString += "Now Bobby, I need you to be a good kid and be normal n-o-r-m-a-l"; - tag.setDescription( testString ); - assertEquals( tag.getDescription(), testString ); - } - COM: <s> test of set description method of class com </s> - diff --git a/funcom_test/50891790.txt b/funcom_test/50891790.txt deleted file mode 100644 index c75bb457e81c60c19e58196b322ea2802ed0211d..0000000000000000000000000000000000000000 --- a/funcom_test/50891790.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void testGetExample() { - System.out.println("testGetExample"); - testString = "<tag:foo name=\"<%= do.getFoo()%>\"/>"; - tag.setExample(testString); - assertEquals( tag.getExample(), testString ); - } - COM: <s> test of get example method of class com </s> - diff --git a/funcom_test/50891793.txt b/funcom_test/50891793.txt deleted file mode 100644 index a4f99253480e36fe839c9262d2fa10fd38828c6d..0000000000000000000000000000000000000000 --- a/funcom_test/50891793.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testSetExample() { - System.out.println("testSetExample"); - testString = "<tag:foo>\n"; - testString += "\t<tag:bar />"; - testString += "</tag:foo>"; - tag.setExample(testString); - assertEquals( tag.getExample(), testString ); - } - COM: <s> test of set example method of class com </s> - diff --git a/funcom_test/50994916.txt b/funcom_test/50994916.txt deleted file mode 100644 index 9f9e93c1708a2feeb64e06dabe8f0da9f6be8efe..0000000000000000000000000000000000000000 --- a/funcom_test/50994916.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setPhoto(JdaiPhoto photo) { - String text = null; - if (photo != null) { - label.setText(""); - try { - text = photo.getSection().getInfoStore().getCaption(photo); - } catch (JdaiReadException e) { - JdaiGuiHelpers.reportException("Unable to read caption", e); - } - if (text == null || text.equals("")) - text = "No caption set"; - } else { - label.setIcon(null); - } - label.setToolTipText(text); - setNewPhoto(photo); - } - COM: <s> set the jdai photo to display </s> - diff --git a/funcom_test/50995054.txt b/funcom_test/50995054.txt deleted file mode 100644 index c1275bbab50c58e8c3ef1a989226009b40886756..0000000000000000000000000000000000000000 --- a/funcom_test/50995054.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void stateChanged(TreePath path) { - if (path != null) { - TreeModelEvent ev = new TreeModelEvent(this, path); - Object[] listeners = eventListeners.getListenerList(); - for (int i = 0; i < listeners.length; i++) { - if (listeners[i] == TreeModelListener.class) { - // NOTE: Only every second element is the listener - ((TreeModelListener) listeners[++i]).treeNodesChanged(ev); - } - } - } - } - COM: <s> method state changed </s> - diff --git a/funcom_test/50995095.txt b/funcom_test/50995095.txt deleted file mode 100644 index 219ea421e050e61d092a372d4b445e772005ba2f..0000000000000000000000000000000000000000 --- a/funcom_test/50995095.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void valueChanged(ListSelectionEvent ev) { - if (!ev.getValueIsAdjusting() && delegate != null) { - if (list.getSelectedIndices().length == 1) { - JdaiPhoto newPhoto = - (JdaiPhoto) ((JList) ev.getSource()).getSelectedValue(); - if (newPhoto != null) { - delegate.selectionChanged(newPhoto); - } - } else { - delegate.selectionChanged(null); - } - } - } - COM: <s> called by jlist when user selection changes </s> - diff --git a/funcom_test/50995118.txt b/funcom_test/50995118.txt deleted file mode 100644 index e13d55311b596aa2fad89a9b38916d8a2fbfca0b..0000000000000000000000000000000000000000 --- a/funcom_test/50995118.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getKeywords() { - StringBuffer buf = new StringBuffer(); - for ( int i = 0; i < this.keywords.size(); i++ ) { - if ( i > 0 ) { - buf.append( KEYWORD_SEPARATOR ); - } - buf.append( this.keywords.elementAt( i ) ); - } - return buf.toString(); - } - COM: <s> get the current keywords </s> - diff --git a/funcom_test/50995155.txt b/funcom_test/50995155.txt deleted file mode 100644 index 648c57641829287352c360151be4c44e702a9cde..0000000000000000000000000000000000000000 --- a/funcom_test/50995155.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void savePreferences() { - int state = frame.getExtendedState(); - state = state & ~JFrame.ICONIFIED; // ignore iconified state - prefs.putInt(PREF_FRAME_STATE, state); - prefs.putInt(PREF_WIDTH, frame.getWidth()); - prefs.putInt(PREF_HEIGHT, frame.getHeight()); - prefs.putInt(PREF_XOFF, frame.getX()); - prefs.putInt(PREF_YOFF, frame.getY()); - } - COM: <s> method save preferences </s> - diff --git a/funcom_test/50995164.txt b/funcom_test/50995164.txt deleted file mode 100644 index 61b49239623374ec50f28183e938811f62e83a15..0000000000000000000000000000000000000000 --- a/funcom_test/50995164.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void showAllPhotosButtonActionPerformed(java.awt.event.ActionEvent evt) { - //GEN-FIRST:event_showAllPhotosButtonActionPerformed - javax.swing.ListModel model = this.photoResultList.getModel(); - JdaiPhoto[] photos = new JdaiPhoto[model.getSize()]; - for (int i = 0; i < photos.length; i++) { - photos[i] = (JdaiPhoto) model.getElementAt(i); - } - this.delegate.viewPhotos(photos); - } - COM: <s> lets the delegate view all photos of the search result </s> - diff --git a/funcom_test/50995194.txt b/funcom_test/50995194.txt deleted file mode 100644 index bc8256b97cb7aa04fcd2db6abb884d7e7bd4a276..0000000000000000000000000000000000000000 --- a/funcom_test/50995194.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void viewSection() { - javax.swing.ListModel model = this.sectionResultList.getModel(); - JdaiSection section = (JdaiSection)this.sectionResultList.getSelectedValue(); - JdaiPhoto[] photos = section.getPhotos(); - if (photos != null && photos.length > 0) { - this.delegate.selectedForViewing( photos , 0, false); - } - } - COM: <s> views the selected code jdai section code in the photo viewer </s> - diff --git a/funcom_test/50995324.txt b/funcom_test/50995324.txt deleted file mode 100644 index a1b6ff5b29c1264a173cae214bfa22a933b4d54d..0000000000000000000000000000000000000000 --- a/funcom_test/50995324.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected void createCacheFile(Photo photo, File photoCacheFile, PhotoDimension dimension) throws IOException { - OutputStream photoOS = new BufferedOutputStream(new FileOutputStream(photoCacheFile)); - PhotoHelper.getInstance().writeUncachedThumbnail(photo, photoOS); - photoOS.close(); - } - COM: <s> write the scaled and rotated cache file for a photo </s> - diff --git a/funcom_test/51012200.txt b/funcom_test/51012200.txt deleted file mode 100644 index affd12b226c6aa46d98997ce49bfd9b8bf23da46..0000000000000000000000000000000000000000 --- a/funcom_test/51012200.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void filterMappings(Collection<PublicationMapping> pubMaps) { - - Iterator<PublicationMapping> pubIt = pubMaps.iterator(); - while (pubIt.hasNext()) { - PublicationMapping pubMap = pubIt.next(); - filterMappings(pubMap); - } - - System.out.println("Filtered text mining relations: " - + getNumOfFilteredRelations()); - } - COM: <s> filter a list of publication mappings </s> - diff --git a/funcom_test/51012621.txt b/funcom_test/51012621.txt deleted file mode 100644 index 82429d949e77abd65e69a8765a3b5d72a68b1030..0000000000000000000000000000000000000000 --- a/funcom_test/51012621.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addCitation(String value) throws Exception{ - Matcher m = citations.matcher(value); - if ( m.matches()){ - Publication pub = null; - String citations = m.group(0).toUpperCase(); - try{ - pub = (Publication) SinkFactory.getInstance().findByUniqueId("PUB-" + citations); - }catch(Exception e){ - pub = (Publication) SinkFactory.getInstance().create(Publication.class, citations); - } - this.getNode().addPublication(pub); - } - } - COM: <s> adds a publication reference to a node </s> - diff --git a/funcom_test/51012838.txt b/funcom_test/51012838.txt deleted file mode 100644 index 78bd59e052fd09cef203291b95e4a41f2e978423..0000000000000000000000000000000000000000 --- a/funcom_test/51012838.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private DataSource findDataSource(String cv) throws Exception { - // sanity checks - if (cv == null) { - cv = "unknown"; - } - - // retrieve right DataSource - DataSource elementOf = null; - if (!cvMap.containsKey(cv)) { - System.err.println("Missing DataSource mapping: " + cv); - cv = "unknown"; - } - elementOf = graph.getMetaData().getDataSource(cvMap.get(cv)); - if (elementOf == null) - throw new DataSourceMissingException(cv + " is missing."); - - return elementOf; - } - COM: <s> returns a data source either the specified one derived from a mapping </s> - diff --git a/funcom_test/51013811.txt b/funcom_test/51013811.txt deleted file mode 100644 index 1e0f442671d159b605516b422974e65884973450..0000000000000000000000000000000000000000 --- a/funcom_test/51013811.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void decideCompose(Attribute data, StringBuffer clause) { - Object o = data.getValue(); - if (o instanceof Number) { - composeNumber((Number) o, clause); - } else if (o instanceof Boolean) { - composeBoolean((Boolean) o, clause); - } else if (o instanceof String) { - composeString((String) o, clause); - } else { - composeObject(o, clause); - } - clause.append(data.isDoIndex()); - clause.append(").\n"); - } - COM: <s> determines the type of attribute data </s> - diff --git a/funcom_test/51013813.txt b/funcom_test/51013813.txt deleted file mode 100644 index 3e5ff5728dba2d4c84ab71c253f0eba53c625ce1..0000000000000000000000000000000000000000 --- a/funcom_test/51013813.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getLocalName(ONDEXConcept c) { - String local = String.valueOf(c.getId()); - if (concat) { - // check if preferred name is present - ConceptName preferredName = c.getConceptName(); - if (preferredName != null) { - local = local + ": " + quote(preferredName.getName()); - } else { - // use PID as fall-back - local = local + ": " + quote(c.getPID()); - } - } - return local; - } - COM: <s> constructs the local name of a given concept </s> - diff --git a/funcom_test/51013831.txt b/funcom_test/51013831.txt deleted file mode 100644 index 17f44a774a35a120143748ee649d6cc7892eb9eb..0000000000000000000000000000000000000000 --- a/funcom_test/51013831.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void copyFile(File original, File destination) { - try { - - FileInputStream in = new FileInputStream(original); - FileOutputStream out = new FileOutputStream(destination); - - int len = 0; - byte[] buf = new byte[1024]; - while ((len = in.read(buf)) > -1) { - out.write(buf, 0, len); - } - - in.close(); - out.close(); - - } catch (IOException e) { - System.err.println("Error copying file!"); - e.printStackTrace(); - System.exit(1); - } - } - COM: <s> copies the original file to the given destination </s> - diff --git a/funcom_test/51013936.txt b/funcom_test/51013936.txt deleted file mode 100644 index b7e396e7aec4822476eb51d8549d8006be86259a..0000000000000000000000000000000000000000 --- a/funcom_test/51013936.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public ONDEXConcept createONDEXConcept(int index) { - - if (!taxids[index].isEmpty()) { - ONDEXConcept c = graph.getFactory().createConcept(taxids[index], dataSource, cc, et); - - // publication associated Attribute - c.createAttribute(taxidAttributeName, taxids[index], false); - c.createConceptAccession(taxids[index], external, false); - - return c; - } - else { throw new RuntimeException("Organism without valid taxid tag!"); } - } - COM: <s> creates the corresponding ondexconcept on the given graph </s> - diff --git a/funcom_test/51013977.txt b/funcom_test/51013977.txt deleted file mode 100644 index 8157858c401c44e134e097be7330a5d0fb574448..0000000000000000000000000000000000000000 --- a/funcom_test/51013977.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void writeNotes(XMLStreamWriter2 xmlw) throws XMLStreamException { - - xmlw.writeStartElement("notes"); - - xmlw.writeStartElement("body"); - xmlw.writeDefaultNamespace(W3_NS); - xmlw.writeAttribute("lang", "en"); - - // some provenance info here - xmlw.writeStartElement("p"); - xmlw - .writeCharacters("Written as part of an ONDEX (url http://ondex.org/) export"); - - xmlw.writeEndElement();// p - xmlw.writeEndElement();// body - xmlw.writeEndElement();// notes - } - COM: <s> writes the header notes to the sbml file </s> - diff --git a/funcom_test/51014148.txt b/funcom_test/51014148.txt deleted file mode 100644 index 7e67c6537043a46c674a810be5e454e2c17d7e08..0000000000000000000000000000000000000000 --- a/funcom_test/51014148.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String cat(Collection<String> ss, String delim) { - if (ss.size() == 0) { - return ""; - } - StringBuilder b = new StringBuilder(); - for (String s : ss) { - b.append(s + delim); - } - b.delete(b.length() - delim.length(), b.length()); - return b.toString(); - } - COM: <s> concatenates all members of the collection code ss code </s> - diff --git a/funcom_test/51014150.txt b/funcom_test/51014150.txt deleted file mode 100644 index 7212149b40a4324fd37c9e72a927252ad9be05d7..0000000000000000000000000000000000000000 --- a/funcom_test/51014150.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void isValidArgument(Object obj) throws InvalidPluginArgumentException { - return ; - //throw new InvalidPluginArgumentException("A " + getName() + " argument is required to be specified as a String for " + this.getName() + " class " + obj.getClass().getName() + " was found "); - - } - COM: <s> checks for valid argument </s> - diff --git a/funcom_test/51014248.txt b/funcom_test/51014248.txt deleted file mode 100644 index b90ce6f3aede49abd728af5792e107c25d00b770..0000000000000000000000000000000000000000 --- a/funcom_test/51014248.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String buildGoStr(int go) { - String goBase = go + ""; - int zeros = 7 - goBase.length(); - char[] zeroBuffer = new char[zeros]; - for (int i = 0; i < zeros; i++) - zeroBuffer[i] = '0'; - String goStr = "GO:" + new String(zeroBuffer) + goBase; - return goStr; - } - COM: <s> builds a valid go id from an integer </s> - diff --git a/funcom_test/51014370.txt b/funcom_test/51014370.txt deleted file mode 100644 index df06ba2a8a491716e33a6e3e3bab63dde3df5f41..0000000000000000000000000000000000000000 --- a/funcom_test/51014370.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getText(String input) { - if (input.startsWith("\"")) { - input = input.substring(1, input.length()); - int index = input.indexOf("\""); - input = input.substring(0, index); - } - return input; - } - COM: <s> removes trailing character and possible last double quote </s> - diff --git a/funcom_test/51014416.txt b/funcom_test/51014416.txt deleted file mode 100644 index 0315c08aaf7fbf319065829277a945e2917e2637..0000000000000000000000000000000000000000 --- a/funcom_test/51014416.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean acceptable(double old, double nu) { - if (nu >= old) - return true; - else { - double ratio = Math.exp(nu - old); - double tau; - if (calls < 1000) - tau = normalQuantile(1.0 - ratio) * stdev(); - else - tau = searchThreshold(ratio); -// System.err.println("ratio = "+ratio+"\ttau = "+tau); - return (nu - old) > tau; - } - } - COM: <s> checks whether a change of likelihood is acceptable or not </s> - diff --git a/funcom_test/51014454.txt b/funcom_test/51014454.txt deleted file mode 100644 index f7e3b6de40af36a35580247e19fa5eedf87a4fb8..0000000000000000000000000000000000000000 --- a/funcom_test/51014454.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void computeAndSetThetaE(Node n) { - - Node dummy = computeEThetaF(n.getChild(Node.LEFT).getLeaves(), - n.getChild(Node.RIGHT).getLeaves()); - - n.e = dummy.e; - n.theta = dummy.theta; - n.logF = dummy.logF; - - } - COM: <s> computes the values of theta and e for the given node and </s> - diff --git a/funcom_test/51014552.txt b/funcom_test/51014552.txt deleted file mode 100644 index 686dc1491d159ec615d00efe790233d21c4d4b9e..0000000000000000000000000000000000000000 --- a/funcom_test/51014552.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private RelationType getRelationType(String name) { - RelationType rt = aog.getMetaData().getRelationType(name); - if (rt != null) { - return aog.getMetaData().getFactory().createRelationType(rt.getId(),rt); - } else { - Parser.propagateEventOccurred( - new RelationTypeMissingEvent("Missing RelationType: "+name, "getRelationType(String name)")); - } - return null; - } - COM: <s> create a relation type if missing in metadata </s> - diff --git a/funcom_test/51014560.txt b/funcom_test/51014560.txt deleted file mode 100644 index 60bb86e4e97c0285372fb72c9c753407018ca7b5..0000000000000000000000000000000000000000 --- a/funcom_test/51014560.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: protected String parseLine(String line) { - String newLine = line.substring(2, line.length()).trim(); - if (newLine.endsWith(".")) - newLine = newLine.substring(0, newLine.length() - 1); - return newLine; - } - COM: <s> normalizes a line by removing first line identifier </s> - diff --git a/funcom_test/51014571.txt b/funcom_test/51014571.txt deleted file mode 100644 index 35435e965db68504e3372a5a084869478ee2bef7..0000000000000000000000000000000000000000 --- a/funcom_test/51014571.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private String parseType(String line) { - - //TODO: Fix this function - //To get the types from the molecule file: cat molecule.dat | grep ^TY | sort -u > types.txt - //But it is systematicaly incorrect: - - String type = "Protein"; - - if (line.startsWith("family")) - type = "ProtFam"; - - if (line.startsWith("complex")) - type = "Protcmplx"; - - if (line.startsWith("other")) - type = "Comp"; - - return type; - } - COM: <s> parses the type of entry from a line </s> - diff --git a/funcom_test/51014770.txt b/funcom_test/51014770.txt deleted file mode 100644 index 33eb482d5cc6e79b32e5eb3463b4eeec4919caec..0000000000000000000000000000000000000000 --- a/funcom_test/51014770.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - if ("KEGGPort".equals(portName)) { - setKEGGPortEndpointAddress(address); - } - else { // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/51014970.txt b/funcom_test/51014970.txt deleted file mode 100644 index da5896ece6f2c9692f4b16b51a68c024a1950d76..0000000000000000000000000000000000000000 --- a/funcom_test/51014970.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void setOf_type_fk(String of_type_fk) { - if (of_type_fk == null || of_type_fk.length() == 0) throw new NullPointerException("of_type_fk is null"); - this.of_type_fk = of_type_fk.intern(); - } - COM: <s> sets of type fk </s> - diff --git a/funcom_test/51015917.txt b/funcom_test/51015917.txt deleted file mode 100644 index 6482d08230e139997e22ab2329f4ad59e0be0225..0000000000000000000000000000000000000000 --- a/funcom_test/51015917.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void createRelations(HashMap<PairKey, Integer> map) { - for (PairKey key : map.keySet()) { - ONDEXRelation r = graph.getFactory().createRelation(key.from(), key.to(), rtFeat, etCmpd); - r.createAttribute(atPaths, map.get(key), false); - } - } - COM: <s> creates relations between all pairs in the map </s> - diff --git a/funcom_test/51016264.txt b/funcom_test/51016264.txt deleted file mode 100644 index b6c405c04c55042ef95b9090d00016325de77817..0000000000000000000000000000000000000000 --- a/funcom_test/51016264.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public float geQueryCoverageSequence() { - int tempLengthQuery = lengthOfQuerySequence; - if(querySeqType != targetSeqType){ - if(querySeqType.equals(SequenceType.AA) && targetSeqType.equals(SequenceType.NA)){ - tempLengthQuery = tempLengthQuery*3; //make it NA size. - } - } - return (float) overlapingLength / (float) tempLengthQuery; - } - COM: <s> this returns the coverage in view of the query sequence </s> - diff --git a/funcom_test/51016269.txt b/funcom_test/51016269.txt deleted file mode 100644 index 88b72b7b34377e237709ea2bd1534dc0d1e5d272..0000000000000000000000000000000000000000 --- a/funcom_test/51016269.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public float geTargetCoverageSequence() { - int tempLengthQuery = lengthOfTargetSequence; - if(targetSeqType != querySeqType){ - if(targetSeqType.equals(SequenceType.AA) && querySeqType.equals(SequenceType.NA)){ - tempLengthQuery = tempLengthQuery*3; //make it NA size. - } - } - return (float) overlapingLength / (float) tempLengthQuery; - } - COM: <s> this returns the coverage in view of the target sequence </s> - diff --git a/funcom_test/51016347.txt b/funcom_test/51016347.txt deleted file mode 100644 index 60cd8fabfa9841584c3c5e129d462c474a25b538..0000000000000000000000000000000000000000 --- a/funcom_test/51016347.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void initErrorRates() { - - //init map - errorRates = new HashMap<Network,ErrorRates>(); - - //assign random beta(1,1) value. - for (Network eviGraph : experiments) { - double fpr = beta.nextDouble(fpOffset,tnOffset); - double fnr = beta.nextDouble(fnOffset,tpOffset); - errorRates.put(eviGraph, new ErrorRates(fpr, fnr)); - } - - } - COM: <s> calculates inital error rates for each dataset </s> - diff --git a/funcom_test/51016361.txt b/funcom_test/51016361.txt deleted file mode 100644 index dc4d5515bf22f896170fdc0dc5a4fd39cacb45a7..0000000000000000000000000000000000000000 --- a/funcom_test/51016361.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void lazyInitGraphIndexMap(Set<Network> graphs) { - - if (graphIndices == null) { - graphIndices = new HashMap<Network,Integer>(graphs.size()); - int i = 0; - for (Network g : graphs) { - graphIndices.put(g,i++); - } - } - } - COM: <s> initializes the graph index map if necessary </s> - diff --git a/funcom_test/51016369.txt b/funcom_test/51016369.txt deleted file mode 100644 index 4fa9ae49b1069778f49398fa058c7067a19f9b9c..0000000000000000000000000000000000000000 --- a/funcom_test/51016369.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void update(Set<SetOfTwo<Integer>> edges) { - for (SetOfTwo<Integer> e : edges) { - Integer count = edgeCounts.get(e); - if (count == null) { - count = 0; - } - edgeCounts.put(e,count+1); - } - numSamples++; - } - COM: <s> updates the counts </s> - diff --git a/funcom_test/51016377.txt b/funcom_test/51016377.txt deleted file mode 100644 index 7b4f3b1eef9064c9c542e93668a3be1b3a39ceed..0000000000000000000000000000000000000000 --- a/funcom_test/51016377.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void sampleIntermediateGraph() { - //for each edge that has at least one supporting evidence (others have p=0 anyway) - for (SetOfTwo<Integer> edge : allEdges) { - - //if uniform random > p(edge) create it otherwise remove it - double p = probabilities.get(edge); - if (uniform.nextDouble() < p) { - intermediateGraph.add(edge); - } else { - intermediateGraph.remove(edge); - } - } - } - COM: <s> sample intermediate consensus graph g based on p </s> - diff --git a/funcom_test/51016412.txt b/funcom_test/51016412.txt deleted file mode 100644 index d77fb5980f807a896d5e608dfcaadf6b301ebe29..0000000000000000000000000000000000000000 --- a/funcom_test/51016412.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private Reader getLookupFileReader() throws FileNotFoundException { - - if (parser.getLookupFile() != null) { - return new FileReader(parser.getLookupFile()); - } else { - InputStream metadataStream = getClass().getClassLoader().getResourceAsStream("psimi2ondex_metadata.tsv"); - return new InputStreamReader(metadataStream); - } - - } - COM: <s> helper method that constructs a fresh reader on the metadata mapping file </s> - diff --git a/funcom_test/51016720.txt b/funcom_test/51016720.txt deleted file mode 100644 index 352e53be3e6af5927bb4ee001231d8d003f92e63..0000000000000000000000000000000000000000 --- a/funcom_test/51016720.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String calculateConceptDir(String dir, ONDEXConcept concept) { - Integer id = concept.getId(); - - String folder = "0_to_1,000"; - if (id > 1000) { - int thousands = (int) Math.floor(id / 1000d); - folder = thousands + ",000_to_" + (thousands + 1) + ",000"; - } - - return dir + File.separator + folder; - } - COM: <s> calculates the target subdir for a given concept dirs are grouped in </s> - diff --git a/funcom_test/51016799.txt b/funcom_test/51016799.txt deleted file mode 100644 index 5606a36d4a89564dd7235a04b37e6c50e0eada50..0000000000000000000000000000000000000000 --- a/funcom_test/51016799.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private String getPsimiTerm(XrefType xref) { - if (xref == null) { - return null; - } else if (isPSIMIRef(xref.getPrimaryRef())) { - return xref.getPrimaryRef().getId(); - } else { - for (DbReferenceType ref : xref.getSecondaryRefList()) { - if (isPSIMIRef(ref)) { - return ref.getId(); - } - } - } - return null; - } - COM: <s> helper method for extracting psimi ontology terms from an xref list </s> - diff --git a/funcom_test/51016804.txt b/funcom_test/51016804.txt deleted file mode 100644 index b22abbc457293cb6b1c6bf4940667c5540d8734f..0000000000000000000000000000000000000000 --- a/funcom_test/51016804.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private double getWeight(ONDEXRelation r_curr) { - Attribute weightAttribute = r_curr.getAttribute(weightAttributeName); - double w; - if ((weightAttribute != null) && (weightAttribute.getValue() instanceof Number)) - w = ((Number) weightAttribute.getValue()).doubleValue(); - else - w = 1.0; - if (inverse) - w = 1.0 - w; - return w; - } - COM: <s> retrieves the edge weight for a given relation </s> - diff --git a/funcom_test/51016823.txt b/funcom_test/51016823.txt deleted file mode 100644 index 854636851bb424832730476a8e50bfbe8d87d6ae..0000000000000000000000000000000000000000 --- a/funcom_test/51016823.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: private boolean isPSIMIRef(DbReferenceType ref) { - return (ref.getDbAc() != null && ref.getDbAc().equals("MI:0488")) || - (ref.getDb() != null && ref.getDb().equals("psi-mi")); - } - COM: <s> determines whether a given dbreference is a psi mi ontology reference </s> - diff --git a/funcom_test/51016859.txt b/funcom_test/51016859.txt deleted file mode 100644 index c6b878f8ea669c9c638987d4635755ad0b68c6b7..0000000000000000000000000000000000000000 --- a/funcom_test/51016859.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void traceBack(PathNode n) { - if (n.getParent() != null) { - relationDefaultBitSet.add(n.getRid()); - if (!conceptDefaultBitSet.contains(n.getParent().getCid())) { - conceptDefaultBitSet.add(n.getParent().getCid()); - traceBack(n.getParent()); - } - } - } - COM: <s> recursive method for backtracing inside the result set of the algorithm </s> - diff --git a/funcom_test/51017098.txt b/funcom_test/51017098.txt deleted file mode 100644 index 216773a91531d4d7dd4d7e1364a7401edd83ca87..0000000000000000000000000000000000000000 --- a/funcom_test/51017098.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setSingleURIInput(String uri) throws TavernaException { - resetInputs(); - if (uri == null){ - throw new NullPointerException ("null URI is not allowed"); - } - if (uri.isEmpty()){ - throw new TavernaException ("Empty URI is not allowed"); - } - this.uri = uri; - } - COM: <s> sets a uri to be used as the source of the input values </s> - diff --git a/funcom_test/51017104.txt b/funcom_test/51017104.txt deleted file mode 100644 index 240f4a97764a28a6a659290d4a2a84eecb5810ff..0000000000000000000000000000000000000000 --- a/funcom_test/51017104.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void getURLWorkflow() throws TavernaException{ - String uri = JOptionPane.showInputDialog(parent, "Enter URI of the desired workflow", "Workflow URI", - JOptionPane.QUESTION_MESSAGE); - System.out.println("uri: "+ uri); - Thread t = new WorkflowURISetter(uri); - t.start(); - } - COM: <s> allows the user to identify and load a file based on a uri </s> - diff --git a/funcom_test/51017663.txt b/funcom_test/51017663.txt deleted file mode 100644 index 05a5e4999ae52b91ca36220e85fd0c5613a42c56..0000000000000000000000000000000000000000 --- a/funcom_test/51017663.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private boolean equalAttribute(Attribute attribute1, Attribute attribute2) { - boolean equal = true; - equal = attribute1.getOfType().getId() - .equals(attribute2.getOfType().getId()); - equal = equal && attribute1.getValue().equals(attribute2.getValue()); - equal = equal && (attribute1.isDoIndex() == attribute2.isDoIndex()); - return equal; - } - COM: <s> checks contract for two attribute to be equal </s> - diff --git a/funcom_test/51018115.txt b/funcom_test/51018115.txt deleted file mode 100644 index b2e2f638b015b6f97df2e4af902a21c056a99d63..0000000000000000000000000000000000000000 --- a/funcom_test/51018115.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void scanClasses(Set<String> b, File file) throws IOException { - ZipFile zipfile = new ZipFile(file); - Enumeration<? extends ZipEntry> entries = zipfile.entries(); - while (entries.hasMoreElements()) { - ZipEntry entry = entries.nextElement(); - b.add(entry.getName()); - } - } - COM: <s> scans a given zip file for file entries and </s> - diff --git a/funcom_test/51018290.txt b/funcom_test/51018290.txt deleted file mode 100644 index 99ebb70992453d6c769a7af588760c43a0f80c6b..0000000000000000000000000000000000000000 --- a/funcom_test/51018290.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected File downloadFile(String name, String url) { - - try { - - File file = new File(testDir, name); - URL ominiURL = new URL(url); - download(ominiURL,file); - return file; - - } catch (MalformedURLException e) { - throw new RuntimeException(e); - } catch (IOException e) { - throw new RuntimeException(e); - } - - } - COM: <s> downloads a file and passes on the handle </s> - diff --git a/funcom_test/51018625.txt b/funcom_test/51018625.txt deleted file mode 100644 index c392d118369c17de555402e57e29ed179d677fb1..0000000000000000000000000000000000000000 --- a/funcom_test/51018625.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public float getScoreOnEntity(E entity) { - int id; - if (entity instanceof ONDEXConcept) { - id = entity.getId(); - } else if (entity instanceof ONDEXRelation) { - id = entity.getId(); - } else { - throw new RuntimeException(entity.getClass() - + " is incompatible with these Hits."); - } - if (scoresForHits.containsKey(id)) - return scoresForHits.get(id); - return -1; // problem if not in scores? - } - COM: <s> retrieve the score of a given ondexentity </s> - diff --git a/funcom_test/51018873.txt b/funcom_test/51018873.txt deleted file mode 100644 index 597da1a753ec35ef21e3e6ce204e51012e7c7f03..0000000000000000000000000000000000000000 --- a/funcom_test/51018873.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void closeIndex() { - try { - // check if index open for writing - if (!indexWriterIsOpen) - return; - - // add last document to index - addMetadataToIndex(); - - im.optimize(); - im.prepareCommit(); - im.commit(); - im.close(); - indexWriterIsOpen = false; - } catch (CorruptIndexException cie) { - fireEventOccurred(new DataFileErrorEvent(cie.getMessage(), - "[LucenceEnv - closeIndex]")); - } catch (IOException ioe) { - fireEventOccurred(new DataFileErrorEvent(ioe.getMessage(), - "[LucenceEnv - closeIndex]")); - } - - } - COM: <s> close a potentially open index </s> - diff --git a/funcom_test/51019044.txt b/funcom_test/51019044.txt deleted file mode 100644 index 5f6b092aff6ba7bddadb2330f85789ec99c1287d..0000000000000000000000000000000000000000 --- a/funcom_test/51019044.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: protected double getRelativeRank(Double[] values, ComparisonMethod method) { - double result; - - if (modulusValues) { - modulusArray(values); - } - - switch (method) { - case INTEPENENTPROBABLITIES: - result = product(values); - break; - case MEAN: - result = mean(values); - break; - case SUM: - result = sum(values); - break; - default: - throw new RuntimeException("Unknown Comparison Method"); - } - - return result; - } - COM: <s> compute the relative rank of the values according to the comparison method </s> - diff --git a/funcom_test/51019142.txt b/funcom_test/51019142.txt deleted file mode 100644 index 27db47ec5973e3f2e3a15317f6b74396d7808f4d..0000000000000000000000000000000000000000 --- a/funcom_test/51019142.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int getDistanceBetweenTerms(int id1, int id2, int cutoff) { - GoTerm term1 = id2go.get(id1); - GoTerm term2 = id2go.get(id2); - - double dist_fwd = trace(term1, term2, 0.0d, cutoff); - double dist_bck = trace(term2, term1, 0.0d, cutoff); - - double dist = Math.min(dist_fwd, dist_bck); - if (dist == Double.POSITIVE_INFINITY) - return -1; - else - return (int) dist; - } - COM: <s> returns the distance in the go database structure between the two given terms </s> - diff --git a/funcom_test/51019162.txt b/funcom_test/51019162.txt deleted file mode 100644 index 7584f8d30b5fdb6cbcfeee6ee6837dfd18e248ed..0000000000000000000000000000000000000000 --- a/funcom_test/51019162.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private double trace(GoTerm term, GoTerm search_term, double d, int cutoff) { - if (term.equals(search_term)) - return d; - - if (d == cutoff || term.getParents().size() == 0) - return Double.POSITIVE_INFINITY; - - double min = Double.POSITIVE_INFINITY; - for (GoTerm p : term.getParents()) { - double tmp = trace(p, search_term, d + 1.0d, cutoff); - if (tmp < min) min = tmp; - } - return min; - } - COM: <s> a recursion method for the distance search </s> - diff --git a/funcom_test/51019192.txt b/funcom_test/51019192.txt deleted file mode 100644 index ba2b240fcab7930ee0e09599dbc94d475c37c004..0000000000000000000000000000000000000000 --- a/funcom_test/51019192.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public double getInformationContent(int goID) { - if (goId2Count.get(goID) != null) { - double k_n = (double) goId2Count.get(goID); - double k_all = (double) annotatedProteins.size(); - double p = k_n / k_all; - double ic = -(Math.log10(p) / Math.log10(2)); - return ic; - } - else return Double.NaN; - } - COM: <s> returns the information content bitscore for a given go term </s> - diff --git a/funcom_test/51019207.txt b/funcom_test/51019207.txt deleted file mode 100644 index 692fd26a24688cc853a5b3c7c936c47db5589978..0000000000000000000000000000000000000000 --- a/funcom_test/51019207.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Evaluation getEvaluation(Set<ONDEXConcept> setX, Set<ONDEXConcept> setY) { - Evaluation first = getEvaluationAsymetric(setX, setY); - Evaluation second = getEvaluationAsymetric(setY, setX); - - if (first.getScore() > second.getScore()) { - return first; - } else { - return second; - } - } - COM: <s> calculates a global similarity for two sets of concepts </s> - diff --git a/funcom_test/51019250.txt b/funcom_test/51019250.txt deleted file mode 100644 index ca80e2514d6742472dfb48cc1cf974a48f1971a6..0000000000000000000000000000000000000000 --- a/funcom_test/51019250.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setONDEXGraph(ONDEXGraph aog) throws AccessDeniedException { - - GeneralOutputEvent so = new GeneralOutputEvent( - "Using Lucene with index dir: " + this.indexdir, - "[LuceneEnv - setONDEXGraph]"); - so.setLog4jLevel(Level.INFO); // todo: fix this - should be configured - // externally - fireEventOccurred(so); - - // start indexing - indexONDEXGraph(aog, create); - - // make the ONDEXGraph immutable - og = new LuceneONDEXGraph(aog); - } - COM: <s> takes a given abstract ondexgraph and builds the index around it </s> - diff --git a/funcom_test/51019251.txt b/funcom_test/51019251.txt deleted file mode 100644 index 03415c78161a4a90a459df7be24f54b388ed0a83..0000000000000000000000000000000000000000 --- a/funcom_test/51019251.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double fScore(ONDEXConcept x, ONDEXConcept y) { - double recall = recall(x, y); - double precision = precision(x, y); - double score = 0; - if (recall + precision != 0) { - score = (2d * recall * precision) / (recall + precision); - } - return score; - } - COM: <s> hierarchical f score function </s> - diff --git a/funcom_test/51020122.txt b/funcom_test/51020122.txt deleted file mode 100644 index d043c7c2f7243a4af5e60b72a6db56efa9e537cf..0000000000000000000000000000000000000000 --- a/funcom_test/51020122.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Response responseIncludingConcepts(Set<ONDEXRelation> relations) { - - // add related concepts - Set<ONDEXConcept> concepts = new HashSet<ONDEXConcept>(); - for (ONDEXRelation r : relations) { - concepts.add(r.getFromConcept()); - concepts.add(r.getToConcept()); - } - - // create response - return OXLResponseBuilder.build(graph.getSID() + "", concepts, - relations); - } - COM: <s> fills sub graph of relations with all its corresponding concepts and </s> - diff --git a/funcom_test/51020371.txt b/funcom_test/51020371.txt deleted file mode 100644 index 97f6c59acb9ffaad962bce4f6519c89b376dbd52..0000000000000000000000000000000000000000 --- a/funcom_test/51020371.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private boolean hasParent(KeyEvent e) { - boolean hasParent = false; - if (e.getSource() instanceof JComponent) { - JComponent c = (JComponent) e.getSource(); - while (c.getParent() != null && c.getParent() != parent) { - c = (JComponent) c.getParent(); - } - ; - if (c.getParent() != null && c.getParent() == parent) - hasParent = true; - } - return hasParent; - } - COM: <s> being overly paranoid here to make sure only key events from the </s> - diff --git a/funcom_test/51020651.txt b/funcom_test/51020651.txt deleted file mode 100644 index 4d671c9158ff9ca98ff0909608766752908c5222..0000000000000000000000000000000000000000 --- a/funcom_test/51020651.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setViewScaling(boolean enabled) { - if (enabled) { - // only use view scaling - this.remove(scalingPlugin); - this.scaler = new ViewScalingControl(); - this.scalingPlugin = new ScalingGraphMousePlugin(scaler, 0, out, in); - this.add(scalingPlugin); - } else { - // cross over scaling - this.remove(scalingPlugin); - this.scaler = new CrossoverScalingControl(); - this.scalingPlugin = new ScalingGraphMousePlugin(scaler, 0, out, in); - this.add(scalingPlugin); - } - } - COM: <s> sets view scaling enabled or disabled </s> - diff --git a/funcom_test/51020820.txt b/funcom_test/51020820.txt deleted file mode 100644 index 295460ac96aab2532819b3c217defeb211ee63e8..0000000000000000000000000000000000000000 --- a/funcom_test/51020820.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent arg0) { - ONDEXJUNGGraph aog = (ONDEXJUNGGraph) graph; - JComboBox box = (JComboBox) arg0.getSource(); - String name = (String) box.getSelectedItem(); - an = aog.getMetaData().getAttributeName(name); - if (an == null) { - this.lengthFunction = UNITLENGTHFUNCTION; - currentIteration = 0; - done = false; - } else { - this.lengthFunction = new GDSEdges(an, inverseScaleBox.isSelected()); - currentIteration = 0; - done = false; - } - } - COM: <s> check for selection of an attribute name </s> - diff --git a/funcom_test/51021082.txt b/funcom_test/51021082.txt deleted file mode 100644 index d31e3a2a7c9dfedb4b67d0b36945518a9fcd6228..0000000000000000000000000000000000000000 --- a/funcom_test/51021082.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void buildGUI() { - setEnabled(false); - - setLayout(new SpringLayout()); - - add(createOptionsSelectionPanel()); // lsd and mapped probes options - - dataPanel = new MicroarrayDataTablePanel(dataIndex, - new HashMap<String, Integer>()); - - add(dataPanel); - - SpringUtilities.makeCompactGrid(this, this.getComponentCount(), 1, 0, - 0, 5, 5); - setEnabled(true); - } - COM: <s> construct the gui componants </s> - diff --git a/funcom_test/51021275.txt b/funcom_test/51021275.txt deleted file mode 100644 index 7d233398e047926ab194f5ef487af4d17d88a00c..0000000000000000000000000000000000000000 --- a/funcom_test/51021275.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: private void getAtomics(ONDEXConcept p, List<ONDEXConcept> v) { - - // check selection of edge direction - Collection<ONDEXConcept> parents = null; - if (reversed) - parents = graph.getPredecessors(p); - else - parents = graph.getSuccessors(p); - for (ONDEXConcept c : parents) { - - // check selection of edge direction - Collection<ONDEXConcept> children = null; - if (reversed) - children = graph.getPredecessors(c); - else - children = graph.getSuccessors(c); - - if (children.size() == 0) { - v.add(c); - } else { - getAtomics(c, v); - } - } - } - COM: <s> returns the list of siblings which are leaf nodes of the graph </s> - diff --git a/funcom_test/51021337.txt b/funcom_test/51021337.txt deleted file mode 100644 index 9e21465b7371f1a3d0f91e12e67d7c5e36b0157d..0000000000000000000000000000000000000000 --- a/funcom_test/51021337.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void populateComboBox(JComboBox box) { - Set<AttributeName> ans = new HashSet<AttributeName>(); - - for (ONDEXConcept n : graph.getVertices()) { - for (Attribute g : n.getAttributes()) { - ans.add(g.getOfType()); - } - } - - box.removeAllItems(); - box.addItem("None"); - - if (ans.size() > 0) { - AttributeName[] array = ans.toArray(new AttributeName[0]); - Arrays.sort(array); - for (AttributeName an : array) { - box.addItem(an); - } - box.revalidate(); - } - } - COM: <s> populates given combo box with list of attribute names for visible </s> - diff --git a/funcom_test/51021338.txt b/funcom_test/51021338.txt deleted file mode 100644 index b6d8130acc02e2c2af7c84496254704d9de97989..0000000000000000000000000000000000000000 --- a/funcom_test/51021338.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addAttributeNamesToList() { - for (AttributeName attn : graph.getMetaData().getAttributeNames()) { - // should also accept list types now. - if (Comparable.class.isAssignableFrom(attn.getDataType()) - || Collection.class.isAssignableFrom(attn.getDataType())) { - Set<ONDEXConcept> concepts = graph - .getConceptsOfAttributeName(attn); - if (concepts != null && concepts.size() > 0) - anlm.addAttributeName(attn); - } - } - } - COM: <s> adds all suitable attribute names to the jlist </s> - diff --git a/funcom_test/51021401.txt b/funcom_test/51021401.txt deleted file mode 100644 index e0c8884644024e8ed78bd61c9656bfa8379d3363..0000000000000000000000000000000000000000 --- a/funcom_test/51021401.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void getErrors(String errors) { - errorReport.setText(errors.substring(1, errors.length())); - // show possible errors - if (errorReport.getText().length() > 0) { - JOptionPane.showMessageDialog(OVTK2Desktop.getInstance() - .getMainFrame(), new JScrollPane(errorReport), - "The following warnings were created during import...", - JOptionPane.WARNING_MESSAGE); - } - } - COM: <s> returns the component containing the accumulated error messages </s> - diff --git a/funcom_test/51021435.txt b/funcom_test/51021435.txt deleted file mode 100644 index 229a811fc6f1591b4a1c43a68e6a7086e99bc056..0000000000000000000000000000000000000000 --- a/funcom_test/51021435.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void annotateNodes(Map<ONDEXConcept, Double> map) { - - AttributeName an = graph.getMetaData().getFactory() - .createAttributeName("Betweenness_centrality", Double.class); - - // scale node size according to percentage - for (ONDEXConcept c : map.keySet()) { - Double percentBase = map.get(c); - if (c.getAttribute(an) == null) - c.createAttribute(an, percentBase, false); - else - c.getAttribute(an).setValue(percentBase); - } - } - COM: <s> annotates the nodes according to specified values </s> - diff --git a/funcom_test/51021479.txt b/funcom_test/51021479.txt deleted file mode 100644 index d4aeebd128c9b0e1625a081299c7bfba52d0f48a..0000000000000000000000000000000000000000 --- a/funcom_test/51021479.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void valueChanged(ListSelectionEvent e) { - int[] indices = conceptClassList.getSelectedIndices(); - if (indices.length > 0) { - goButton.setEnabled(true); - conceptClassTargets = new ArrayList<ConceptClass>(); - for (int i : indices) { - conceptClassTargets - .add(((ConceptClassListModel) conceptClassList - .getModel()).getConceptClassAt(i)); - } - } - } - COM: <s> checks for selections in concept class list </s> - diff --git a/funcom_test/51021612.txt b/funcom_test/51021612.txt deleted file mode 100644 index 9807a0c2ef5bc9adc744022feffdc3a33532e79f..0000000000000000000000000000000000000000 --- a/funcom_test/51021612.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setSize(final int nodeSize) { - this.shapeFactory = new VertexShapeFactory<ONDEXMetaConcept>( - new Transformer<ONDEXMetaConcept, Integer>() { - - @Override - public Integer transform(ONDEXMetaConcept input) { - return nodeSize; - } - - }, new Transformer<ONDEXMetaConcept, Float>() { - - @Override - public Float transform(ONDEXMetaConcept input) { - return 1.0f; - } - }); - updateAll(); - } - COM: <s> sets a new node size used to generate all shapes </s> - diff --git a/funcom_test/51021618.txt b/funcom_test/51021618.txt deleted file mode 100644 index 559a15013d4b96d8159c2f30219b095039cd49bb..0000000000000000000000000000000000000000 --- a/funcom_test/51021618.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateMetaData() { - edges.clear(); - vertices.clear(); - - // sync existing concept classes/relation types - for (ConceptClass cc : graph.getMetaData().getConceptClasses()) { - if (graph.getConceptsOfConceptClass(cc).size() > 0) - createVertexForConceptClass(cc); - } - for (RelationType rt : graph.getMetaData().getRelationTypes()) { - if (graph.getRelationsOfRelationType(rt).size() > 0) - createEdgeForRelationType(rt); - } - } - COM: <s> updates the current hold meta data </s> - diff --git a/funcom_test/51021820.txt b/funcom_test/51021820.txt deleted file mode 100644 index 89f618d6f013f86900fcd9fb12e0b837d32f7a97..0000000000000000000000000000000000000000 --- a/funcom_test/51021820.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void addAttributeNamesToList() { - for (AttributeName attn : graph.getMetaData().getAttributeNames()) { - if (Comparable.class.isAssignableFrom(attn.getDataType())) { - Set<ONDEXConcept> concepts = graph - .getConceptsOfAttributeName(attn); - if (concepts != null && concepts.size() > 0) - anlm.addAttributeName(attn); - } - } - } - COM: <s> fills attribute selection list </s> - diff --git a/funcom_test/51021938.txt b/funcom_test/51021938.txt deleted file mode 100644 index 4a1f6c347e21d10d6c799b54eaeb7628c0a31c31..0000000000000000000000000000000000000000 --- a/funcom_test/51021938.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void loadConfig(File file, Properties properties, String config) { - try { - ZipInputStream stream = new ZipInputStream( - new FileInputStream(file)); - ZipEntry entry; - while ((entry = stream.getNextEntry()) != null) { - if (entry.getName().equals(config)) { - System.out.println("Loading: " + file.getAbsoluteFile() - + "#" + config); - properties.loadFromXML(stream); - } - } - stream.close(); - } catch (Exception e) { - } - } - COM: <s> this hack is required as load from xml closes the input stream </s> - diff --git a/funcom_test/51022193.txt b/funcom_test/51022193.txt deleted file mode 100644 index 319d4d261a50d95946703fa06331c03448e86e59..0000000000000000000000000000000000000000 --- a/funcom_test/51022193.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void findMinMax(Collection<Number> c) { - if (c.size() == 0) { - min = 0.0; - max = 1.0; - } else { - Iterator<? extends Number> it = c.iterator(); - double n = it.next().doubleValue(); - min = n; - max = n; - while (it.hasNext()) { - n = it.next().doubleValue(); - if (n < min) - min = n; - else if (n > max) - max = n; - } - } - } - COM: <s> finds the minimal and maximal value in the dataset </s> - diff --git a/funcom_test/51022217.txt b/funcom_test/51022217.txt deleted file mode 100644 index 0d974d8540158b29b52ed5143a4c943ce176dd82..0000000000000000000000000000000000000000 --- a/funcom_test/51022217.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private JPanel createSwapPanel(String cmd_base) { - JPanel p = new JPanel(); - p.setLayout(new GridLayout(2, 1)); - JButton fwd = createButton("stats/arrow", cmd_base + "_fwd"); - JButton bck = createButton("stats/arrow_back", cmd_base + "_bck"); - p.add(fwd); - p.add(bck); - p.setMaximumSize(new Dimension(53,32)); - return p; - } - COM: <s> creates a panel that holds a pair of swap buttons </s> - diff --git a/funcom_test/51022280.txt b/funcom_test/51022280.txt deleted file mode 100644 index e481260da14137e8653c5a67ce7e529953d69afa..0000000000000000000000000000000000000000 --- a/funcom_test/51022280.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getVariableName() { - if (variable instanceof AttributeName) - return ((AttributeName) variable).getFullname(); - else if (variable instanceof ConceptClass) - return ((ConceptClass) variable).getFullname(); - else if (variable instanceof RelationType) - return ((RelationType) variable).getFullname(); - else if (variable instanceof String) - return (String) variable; - else - return null; - } - COM: <s> returns the name of the current variable </s> - diff --git a/funcom_test/51022306.txt b/funcom_test/51022306.txt deleted file mode 100644 index 2c3835a37689b3f06471a31537641b4d94f1550e..0000000000000000000000000000000000000000 --- a/funcom_test/51022306.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void removeRow(int row) { - if (row < rowcount - 1) { - for (int i = row + 1; i < rowcount; i++) { - rowData[i - 1][0] = rowData[i][0]; - rowData[i - 1][1] = rowData[i][1]; - } - } - if (row == rowcount - 1) { - rowData[row][0] = null; - rowData[row][1] = null; - } else { - throw new ArrayIndexOutOfBoundsException(row); - } - rowcount--; - fireTableDataChanged(); - } - COM: <s> removes one row from the data table </s> - diff --git a/funcom_test/51022539.txt b/funcom_test/51022539.txt deleted file mode 100644 index ff1e30daf7229f167529de0d97cff7d21bde2fa5..0000000000000000000000000000000000000000 --- a/funcom_test/51022539.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ONDEXConcept clone(ONDEXConcept oldC, String newPID) { - - // first clone concept with new PID - ONDEXConcept newC = graph.createConcept(newPID, oldC.getAnnotation(), - oldC.getDescription(), oldC.getElementOf(), oldC.getOfType(), - oldC.getEvidence()); - - // copies everything else - copyEverythingElse(oldC, newC); - - return newC; - } - COM: <s> clone concept with having a new pid </s> - diff --git a/funcom_test/51022543.txt b/funcom_test/51022543.txt deleted file mode 100644 index 0293cd4848f58e5cd81e07caef22065370e8d529..0000000000000000000000000000000000000000 --- a/funcom_test/51022543.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ONDEXConcept clone(ONDEXConcept oldC, DataSource newDataSource) { - - // first clone concept with new DataSource - ONDEXConcept newC = graph.createConcept(oldC.getPID(), - oldC.getAnnotation(), oldC.getDescription(), newDataSource, - oldC.getOfType(), oldC.getEvidence()); - - // copies everything else - copyEverythingElse(oldC, newC); - - return newC; - } - COM: <s> clone concept with having a new data source </s> - diff --git a/funcom_test/51022548.txt b/funcom_test/51022548.txt deleted file mode 100644 index 76d36fd53a5ae5e95a6f39e7f74b4ebdb472debc..0000000000000000000000000000000000000000 --- a/funcom_test/51022548.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public ONDEXConcept clone(ONDEXConcept oldC, ConceptClass newCC) { - - // first clone concept with new ConceptClass - ONDEXConcept newC = graph.createConcept(oldC.getPID(), - oldC.getAnnotation(), oldC.getDescription(), - oldC.getElementOf(), newCC, oldC.getEvidence()); - - // copies everything else - copyEverythingElse(oldC, newC); - - return newC; - } - COM: <s> clone concept with having a new concept class </s> - diff --git a/funcom_test/51022552.txt b/funcom_test/51022552.txt deleted file mode 100644 index fba4610b619bc56d42e34b47774159a58c86107f..0000000000000000000000000000000000000000 --- a/funcom_test/51022552.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void copyEverythingElse(ONDEXConcept oldC, ONDEXConcept newC) { - // copies context and references across - copyContext(oldC, newC); - - // transfer all accessions from old to new - copyAccessions(oldC, newC); - - // transfer all names from old to new - copyNames(oldC, newC); - - // transfer all Attribute from old to new - copyGDS(oldC, newC); - - // transfer all relations from old to new - transferRelations(oldC, newC); - } - COM: <s> calls all other subroutines for coping informations of concept </s> - diff --git a/funcom_test/51022555.txt b/funcom_test/51022555.txt deleted file mode 100644 index 453e276e94d51adad3c3eb614d9ee9c9e13c270f..0000000000000000000000000000000000000000 --- a/funcom_test/51022555.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void copyContext(ONDEXConcept oldC, ONDEXConcept newC) { - - // add new concept to same references as old concept - for (ONDEXConcept c : graph.getConceptsOfTag(oldC)) { - c.addTag(newC); - } - for (ONDEXRelation r : graph.getRelationsOfTag(oldC)) { - r.addTag(newC); - } - - // transfer context from old concept to new concept - for (ONDEXConcept c : oldC.getTags()) { - newC.addTag(c); - } - } - COM: <s> copies all context information from old concept to new concept and </s> - diff --git a/funcom_test/51022561.txt b/funcom_test/51022561.txt deleted file mode 100644 index 3b28af3c4ebf051c9603ae4d225cc7f4490b34f8..0000000000000000000000000000000000000000 --- a/funcom_test/51022561.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void displayCentered(JInternalFrame internal) { - - // do the location calculation - Rectangle visible = this.getDesktopPane().getVisibleRect(); - Dimension size = internal.getSize(); - internal.setLocation((visible.width / 2) - (size.width / 2), - (visible.height / 2) - (size.height / 2)); - - // add to desktop and show - this.getDesktopPane().add(internal); - internal.setVisible(true); - internal.toFront(); - } - COM: <s> adds a given jinternal frame to the desktop and centers it </s> - diff --git a/funcom_test/51022563.txt b/funcom_test/51022563.txt deleted file mode 100644 index f438725193d2900e2d48dd687261e4dda554bdb1..0000000000000000000000000000000000000000 --- a/funcom_test/51022563.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected JPanel makeButtonsPanel(String configApply, String configCancel) { - - JPanel buttons = new JPanel(); - - if (configApply != null) { - JButton apply = new JButton( - Config.language.getProperty(configApply)); - apply.setActionCommand("apply"); - apply.addActionListener(this); - buttons.add(apply); - } - - if (configCancel != null) { - JButton cancel = new JButton( - Config.language.getProperty(configCancel)); - cancel.setActionCommand("cancel"); - cancel.addActionListener(this); - buttons.add(cancel); - } - - return buttons; - } - COM: <s> make button input panel </s> - diff --git a/funcom_test/51022573.txt b/funcom_test/51022573.txt deleted file mode 100644 index e0b2742bf22c1c381f2b7f2d4c0eedc6528cbed2..0000000000000000000000000000000000000000 --- a/funcom_test/51022573.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void showNodeLabels(boolean show) { - if (show) { - viewer.getMetaGraphPanel() - .getVisualizationViewer() - .getRenderContext() - .setVertexLabelTransformer( - new ONDEXMetaConceptLabels(viewer - .getONDEXJUNGGraph())); - } else { - viewer.getMetaGraphPanel() - .getVisualizationViewer() - .getRenderContext() - .setVertexLabelTransformer( - new Transformer<ONDEXMetaConcept, String>() { - - @Override - public String transform(ONDEXMetaConcept input) { - return null; - } - }); - } - updateMenuBar(); - viewer.getMetaGraphPanel().repaint(); - } - COM: <s> sets whether or not to show labels on nodes </s> - diff --git a/funcom_test/51022594.txt b/funcom_test/51022594.txt deleted file mode 100644 index e3a2ef0cfc64ed78959dcb014f8d832348b56922..0000000000000000000000000000000000000000 --- a/funcom_test/51022594.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void showEdgeLabels(boolean show) { - if (show) { - viewer.getMetaGraphPanel() - .getVisualizationViewer() - .getRenderContext() - .setEdgeLabelTransformer( - new ONDEXMetaRelationLabels(viewer - .getONDEXJUNGGraph())); - } else { - viewer.getMetaGraphPanel() - .getVisualizationViewer() - .getRenderContext() - .setEdgeLabelTransformer( - new Transformer<ONDEXMetaRelation, String>() { - - @Override - public String transform(ONDEXMetaRelation input) { - return null; - } - }); - } - updateMenuBar(); - viewer.getMetaGraphPanel().repaint(); - } - COM: <s> sets whether or not to show labels on edges </s> - diff --git a/funcom_test/51022667.txt b/funcom_test/51022667.txt deleted file mode 100644 index 45aa9f412f257159486242517c085c419938700e..0000000000000000000000000000000000000000 --- a/funcom_test/51022667.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private JMenuItem makeMenuItem(String key, String actionCommand) { - String value = Config.language.getProperty(key); - if (value == null) { - throw new RuntimeException("Key \"" + key - + "\" is missing from the language file"); - } - JMenuItem item = new JMenuItem(value); - item.setActionCommand(actionCommand); - item.addActionListener(desktop); - return item; - } - COM: <s> create a jmenu item labelled with text for the given property key </s> - diff --git a/funcom_test/51022715.txt b/funcom_test/51022715.txt deleted file mode 100644 index aba1d07ae927c1ec7572b44d8e1a9b7633df813f..0000000000000000000000000000000000000000 --- a/funcom_test/51022715.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private void populateSelectingMenu(JMenu selecting) { - - // make sure selecting menu action is handled - SelectingMenuAction listener = new SelectingMenuAction(); - desktop.addActionListener(listener); - - JMenuItem allnodes = makeMenuItem("Menu.Selecting.SelectAllNodes", - "allnodes"); - selecting.add(allnodes); - - JMenuItem alledges = makeMenuItem("Menu.Selecting.SelectAllEdges", - "alledges"); - selecting.add(alledges); - - JMenuItem inversenodes = makeMenuItem( - "Menu.Selecting.InvertSelectionNodes", "inversenodes"); - selecting.add(inversenodes); - - JMenuItem inverseedges = makeMenuItem( - "Menu.Selecting.InvertSelectionEdges", "inverseedges"); - selecting.add(inverseedges); - } - COM: <s> populates the selecting menu </s> - diff --git a/funcom_test/51022763.txt b/funcom_test/51022763.txt deleted file mode 100644 index e17d8b85e48698f5025c090c04ade24f4bdf04ad..0000000000000000000000000000000000000000 --- a/funcom_test/51022763.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setEdgeFont(final Font font) { - visviewer.getRenderContext().setEdgeFontTransformer( - new Transformer<ONDEXRelation, Font>() { - - @Override - public Font transform(ONDEXRelation input) { - return font; - } - }); - visviewer.getModel().fireStateChanged(); - // serialise font - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - XMLEncoder encoder = new XMLEncoder(bos); - encoder.writeObject(font); - encoder.close(); - graph.getAnnotations().put(EDGEFONT, bos.toString()); - } - COM: <s> change edge label font </s> - diff --git a/funcom_test/51022781.txt b/funcom_test/51022781.txt deleted file mode 100644 index 1ee9a8882c417bbe2b84d8cca3a0f805779b3b1a..0000000000000000000000000000000000000000 --- a/funcom_test/51022781.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void showAllRelations() { - StateEdit edit = new StateEdit(new VisibilityUndo( - this.getONDEXJUNGGraph()), - Config.language.getProperty("Undo.ShowAllRelations")); - undoManager.addEdit(edit); - OVTK2Desktop.getInstance().getOVTK2Menu().updateUndoRedo(this); - - for (ONDEXConcept ondexNode : graph.getVertices()) { - for (ONDEXRelation r : graph.getRelationsOfConcept(ondexNode)) { - graph.setVisibility(r, true); - } - } - edit.end(); - } - COM: <s> shows all relations between the currently visible nodes </s> - diff --git a/funcom_test/51022847.txt b/funcom_test/51022847.txt deleted file mode 100644 index 680da57a8fbc63e632ab45844c7cd4a438808a43..0000000000000000000000000000000000000000 --- a/funcom_test/51022847.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private ImageIcon scale(Image src, double scale) { - int w = (int) (scale * src.getWidth(this)); - int h = (int) (scale * src.getHeight(this)); - int type = BufferedImage.TYPE_INT_ARGB; - BufferedImage dst = new BufferedImage(w, h, type); - Graphics2D g2 = dst.createGraphics(); - g2.drawImage(src, 0, 0, w, h, this); - g2.dispose(); - return new ImageIcon(dst); - } - COM: <s> scales a given image and returns a new image icon </s> - diff --git a/funcom_test/51022986.txt b/funcom_test/51022986.txt deleted file mode 100644 index b54b1f76caca35db249baffadeaeed8f6e7657a0..0000000000000000000000000000000000000000 --- a/funcom_test/51022986.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private URL makeFileURL(String first, String... parts) { - if (first.startsWith("http")) { - for (String p : parts) { - first += "/" + p; - } - try { - return new URL(first); - } catch (MalformedURLException e) { - throw new Error(e); - } - } else { - File f = new File(first); - for (String p : parts) { - f = new File(f, p); - } - try { - return f.toURI().toURL(); - } catch (MalformedURLException e) { - throw new Error(e); - } - } - } - COM: <s> concatenate different file name parts </s> - diff --git a/funcom_test/51023038.txt b/funcom_test/51023038.txt deleted file mode 100644 index d89a144167acae54fba08a368946cd7267efd84d..0000000000000000000000000000000000000000 --- a/funcom_test/51023038.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void submitIssue() throws Exception { - - // create new issue - Issue issue = new Issue(); - issue.setProject(service.getProject("OVTK")); - issue.setType((IssueType) type.getSelectedItem()); - issue.setPriority((Priority) priority.getSelectedItem()); - issue.setSummary(summary.getText()); - issue.setDescription(description.getText() + "\n\nEmail: " - + email.getText()); - - // submit issue - service.createIssue(issue); - - // close dialog - try { - this.setClosed(true); - } catch (PropertyVetoException e1) { - ErrorDialog.show(e1); - } - } - COM: <s> submit issue to jira </s> - diff --git a/funcom_test/51023057.txt b/funcom_test/51023057.txt deleted file mode 100644 index 3876b272410dbcb4e87a628a0cfa4d0cd1e45347..0000000000000000000000000000000000000000 --- a/funcom_test/51023057.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void initSpecialisationOf() { - // get list of available rts - Vector<String> relationTypes = new Vector<String>(); - relationTypes.add(""); - RelationType[] sorted = aog.getMetaData().getRelationTypes() - .toArray(new RelationType[0]); - Arrays.sort(sorted, new CaseInsensitiveMetaDataComparator()); - for (RelationType rt : sorted) { - relationTypes.add(rt.getId()); - } - specialisationOf = new JComboBox(relationTypes); - } - COM: <s> loads available relation types into combo box </s> - diff --git a/funcom_test/51023162.txt b/funcom_test/51023162.txt deleted file mode 100644 index d84da3d18d6d8b2f0d6c107926b809b661e0458f..0000000000000000000000000000000000000000 --- a/funcom_test/51023162.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void initSpecialisationOf() { - // get list of available ccs - Vector<String> ccs = new Vector<String>(); - ccs.add(""); - ConceptClass[] sorted = aog.getMetaData().getConceptClasses() - .toArray(new ConceptClass[0]); - Arrays.sort(sorted, new CaseInsensitiveMetaDataComparator()); - for (ConceptClass cc : sorted) { - ccs.add(cc.getId()); - } - specialisationOf = new JComboBox(ccs); - } - COM: <s> loads available concept classes into combo box </s> - diff --git a/funcom_test/51023171.txt b/funcom_test/51023171.txt deleted file mode 100644 index e9c5429c629c0dffea1781c174f41cf00df0825c..0000000000000000000000000000000000000000 --- a/funcom_test/51023171.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected ImageIcon createImageIcon(String path) { - File imgLocation = new File(path); - URL imageURL = null; - - try { - imageURL = imgLocation.toURI().toURL(); - } catch (MalformedURLException mue) { - System.err.println(mue.getMessage()); - } - if (imageURL != null) { - return new ImageIcon(imageURL); - } else { - System.err.println("Couldn't find file: " + path); - return null; - } - } - COM: <s> returns an image icon or null if the path was invalid </s> - diff --git a/funcom_test/51023192.txt b/funcom_test/51023192.txt deleted file mode 100644 index 5176cf5dc286fe8d6205f2ae611fb170c0ae9687..0000000000000000000000000000000000000000 --- a/funcom_test/51023192.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private void setupMenu() { - JMenuBar mb = new JMenuBar(); - - JMenu menu = new JMenu( - Config.language.getProperty("ContentsDisplay.Menu.Title")); - - menu.add(createMenuItem( - Config.language.getProperty("ContentsDisplay.Menu.Options"), - "options")); - menu.addSeparator(); - menu.add(createMenuItem( - Config.language.getProperty("ContentsDisplay.Menu.Close"), - "close")); - - mb.add(menu); - - if (parent != null) - parent.setJMenuBar(mb); - else - setJMenuBar(mb); - } - COM: <s> sets up the menu bar </s> - diff --git a/funcom_test/51023248.txt b/funcom_test/51023248.txt deleted file mode 100644 index 3f9e7d0f66d3e285bd59c68d870f5746230c5085..0000000000000000000000000000000000000000 --- a/funcom_test/51023248.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private String extractName(ONDEXConcept c) { - String str = ""; - if (c.getConceptName() != null) - str = c.getConceptName().getName(); - if (str.trim().length() == 0) - str = c.getPID(); - if (str.trim().length() == 0) - str = c.getId() + ""; - return str; - } - COM: <s> helper method to extract a usable concept name </s> - diff --git a/funcom_test/51023421.txt b/funcom_test/51023421.txt deleted file mode 100644 index 1ec6354308946482e2197b8849dd15f127bfe108..0000000000000000000000000000000000000000 --- a/funcom_test/51023421.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addRelationType(RelationType rt) { - relationTypes.add(rt); - Collections.sort(relationTypes, new Comparator<RelationType>() { - - @Override - public int compare(RelationType o1, RelationType o2) { - return o1.getId().compareToIgnoreCase(o2.getId()); - } - }); - fireContentsChanged(this, 0, relationTypes.size()); - } - COM: <s> adds another relation type to the list </s> - diff --git a/funcom_test/51023444.txt b/funcom_test/51023444.txt deleted file mode 100644 index fa076d3ccf0ed831cdcfc2d5982337b0455cd2f9..0000000000000000000000000000000000000000 --- a/funcom_test/51023444.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addConceptClass(ConceptClass cc) { - conceptClasses.add(cc); - Collections.sort(conceptClasses, new Comparator<ConceptClass>() { - - @Override - public int compare(ConceptClass o1, ConceptClass o2) { - return o1.getId().compareToIgnoreCase(o2.getId()); - } - }); - fireContentsChanged(this, 0, conceptClasses.size()); - } - COM: <s> adds another concept class to the list </s> - diff --git a/funcom_test/51023448.txt b/funcom_test/51023448.txt deleted file mode 100644 index f1be2730c31091d6100a2015180ae3e16d61c003..0000000000000000000000000000000000000000 --- a/funcom_test/51023448.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addAttributeName(AttributeName an) { - attributeNames.add(an); - // sort by ID - Collections.sort(attributeNames, new Comparator<AttributeName>() { - - @Override - public int compare(AttributeName o1, AttributeName o2) { - return o1.getId().compareToIgnoreCase(o2.getId()); - } - }); - fireContentsChanged(this, 0, attributeNames.size()); - } - COM: <s> adds given attribute name to internal list </s> - diff --git a/funcom_test/51023466.txt b/funcom_test/51023466.txt deleted file mode 100644 index 3021ce01c2f28cae564c30bf7914203cfb8fe95f..0000000000000000000000000000000000000000 --- a/funcom_test/51023466.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateMenuBarMode(String mode) { - JMenuBar mb = frame.getJMenuBar(); - // when there is something going on - for (int i = 0; i < mb.getMenuCount(); i++) { - JMenu menu = mb.getMenu(i); - if (menu.getText() - .equals(Config.language.getProperty("Menu.Tools"))) { - if (!mode.equals("none")) - menu.setEnabled(false); - else - menu.setEnabled(true); - } - } - } - COM: <s> sets the menubar mode according to a running process </s> - diff --git a/funcom_test/51023486.txt b/funcom_test/51023486.txt deleted file mode 100644 index c256a9c9c6ddca4f5d3884c1c7a670efa75c1cf6..0000000000000000000000000000000000000000 --- a/funcom_test/51023486.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void scaleViewer(float scaleResolution) { - // save old size - width = visviewer.getWidth(); - height = visviewer.getHeight(); - - // only scale when required - if (scaleResolution != 1) { - - // this is for image scaling - int newWidth = Math.round(width * scaleResolution); - int newHeight = Math.round(height * scaleResolution); - - // set new size - visviewer.setSize(newWidth, newHeight); - visviewer.setDoubleBuffered(false); - center(); - } - } - COM: <s> scales current viewer by given factor </s> - diff --git a/funcom_test/51023527.txt b/funcom_test/51023527.txt deleted file mode 100644 index 5e135d0a8a8a31f9fbd963d6e14c9ac23160ebbb..0000000000000000000000000000000000000000 --- a/funcom_test/51023527.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void updateColor(ONDEXConcept node) { - Paint paint = null; - switch (strategy) { - case NONE: - paint = Color.BLACK; - break; - case MANUAL: - break; - default: - paint = Color.BLACK; - break; - } - - // Explicitly set alpha channel of colour - if (paint instanceof Color && alphas.containsKey(node)) { - Color color = (Color) paint; - paint = new Color(color.getRed(), color.getGreen(), - color.getBlue(), alphas.get(node)); - } - updateColor(node, paint); - } - COM: <s> update the colour of a given node </s> - diff --git a/funcom_test/51023562.txt b/funcom_test/51023562.txt deleted file mode 100644 index ddc91275f29100100236e48dae6185531f0b59a2..0000000000000000000000000000000000000000 --- a/funcom_test/51023562.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void writeNamespaces(XMLStreamWriter xml) throws XMLStreamException { - // default name space is GraphML - xml.writeDefaultNamespace("http://graphml.graphdrawing.org/xmlns"); - xml.writeNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance"); - // this is a bit strange, but works - xml.writeAttribute( - "xsi:schemaLocation", - "http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd"); - // proprietary extensions of yFiles - xml.writeNamespace("y", "http://www.yworks.com/xml/graphml"); - } - COM: <s> necessary name spaces used for graph ml and proprietary extensions </s> - diff --git a/funcom_test/51023611.txt b/funcom_test/51023611.txt deleted file mode 100644 index db261403450ae10176ff80a7de3ee1ec367d46f1..0000000000000000000000000000000000000000 --- a/funcom_test/51023611.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setEdgeColorSelection(EdgeColorSelection s) { - this.strategy = s; - if (s != EdgeColorSelection.MANUAL) { - // save colouring strategy to visual.xml - if (strategy == EdgeColorSelection.RELATIONTYPE) { - Config.visual.setProperty(GRAPH_COLORING_RELATION_STRATEGY, RT); - } else if (strategy == EdgeColorSelection.EVIDENCETYPE) { - Config.visual.setProperty(GRAPH_COLORING_RELATION_STRATEGY, ET); - } - if (!Config.ovtkDir.startsWith("http")) - Config.saveVisual(); - } - } - COM: <s> sets the edge color selection to use for the nodes in the graph </s> - diff --git a/funcom_test/51023663.txt b/funcom_test/51023663.txt deleted file mode 100644 index 8ae5828d3dd4cef692057689e49ffce1d8dbd578..0000000000000000000000000000000000000000 --- a/funcom_test/51023663.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setEdgeShape(EdgeShape shape) { - this.shape = shape; - switch (shape) { - case QUAD: - Config.visual.setProperty(GRAPH_EDGE_SHAPES, KEYQUAD); - break; - case CUBIC: - Config.visual.setProperty(GRAPH_EDGE_SHAPES, KEYCUBIC); - break; - case BENT: - Config.visual.setProperty(GRAPH_EDGE_SHAPES, KEYBENT); - break; - case LINE: - Config.visual.setProperty(GRAPH_EDGE_SHAPES, KEYLINE); - break; - } - Config.saveVisual(); - } - COM: <s> sets the edge shape to use </s> - diff --git a/funcom_test/51023907.txt b/funcom_test/51023907.txt deleted file mode 100644 index d6d02d4016bf5187225cdc62c9b243ff36a21b1b..0000000000000000000000000000000000000000 --- a/funcom_test/51023907.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addDeepRoot(Object object){ - addRoot(object); - for(Class<?> cls : object.getClass().getInterfaces())addRoot(cls, object); - Class<?> temp = object.getClass().getSuperclass(); - while(temp != Object.class){ - addRoot(temp, object); - temp = temp.getClass().getSuperclass(); - } - } - COM: <s> add root object with all of its implemetned classes and interfaces </s> - diff --git a/funcom_test/51023915.txt b/funcom_test/51023915.txt deleted file mode 100644 index 679cbaa015475870725522b26759e617a320d910..0000000000000000000000000000000000000000 --- a/funcom_test/51023915.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addDeepRootMethod( Method m){ - stoMethods.put(m.getReturnType(), m); - for(Class<?> cls : m.getReturnType().getClass().getInterfaces())stoMethods.put(cls, m); - Class<?> temp = m.getReturnType().getClass().getSuperclass(); - while(temp != Object.class){ - stoMethods.put(temp, m); - temp = temp.getClass().getSuperclass(); - } - } - COM: <s> add method that resolves an application component that is required by the </s> - diff --git a/funcom_test/51023918.txt b/funcom_test/51023918.txt deleted file mode 100644 index 9982a130ffd459b10f40ff172dd8b37a11cd04db..0000000000000000000000000000000000000000 --- a/funcom_test/51023918.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void addFunctionMethodByName(Class<?> owner, String name, String functionName)throws Exception{ - if(functionName == null)functionName = name; - Method method = getMethodByName(owner, name); - if(method != null)functionMethods.add(new ValueTupleInternal<String, Method>(functionName, method)); - - } - COM: <s> add method to be exposed </s> - diff --git a/funcom_test/51023950.txt b/funcom_test/51023950.txt deleted file mode 100644 index 6827060469fecc53025d2bc55f60eca61e876320..0000000000000000000000000000000000000000 --- a/funcom_test/51023950.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void loadOndexKBGraph(String fileName) { - try { - System.out.println("Start Loading OndexKB Graph..."+fileName); - Parser oxl = new Parser(); - ONDEXPluginArguments pa = new ONDEXPluginArguments( - oxl.getArgumentDefinitions()); - pa.setOption(FileArgumentDefinition.INPUT_FILE, fileName); - oxl.setArguments(pa); - oxl.setONDEXGraph(graph); - oxl.start(); - System.out.println("OndexKB Graph Loaded Into Memory"); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> loads ondex kb graph oxl data file into memory </s> - diff --git a/funcom_test/51024019.txt b/funcom_test/51024019.txt deleted file mode 100644 index be9b8051159048544a5f6e099a5eeb50af42d054..0000000000000000000000000000000000000000 --- a/funcom_test/51024019.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void indexOndexGraph() { - try { - // index the Ondex graph - File file = null; - file = new File("index"); - System.out.println("Building Lucene Index: " - + file.getAbsolutePath()); - if(!file.exists()) - lenv = new LuceneEnv(file.getAbsolutePath(), true); - else - lenv = new LuceneEnv(file.getAbsolutePath(), false); - lenv.setONDEXGraph(graph); - System.out.println("Lucene Index created"); - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> indexes ondex graph </s> - diff --git a/funcom_test/51024126.txt b/funcom_test/51024126.txt deleted file mode 100644 index e88ac7e84e3c3ba6ee8af13d7976f8eee5ebfe19..0000000000000000000000000000000000000000 --- a/funcom_test/51024126.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setupContentPane() { - getContentPane().setLayout(new BorderLayout()); - - JPanel p = new JPanel(new BorderLayout()); - p.setBorder(BorderFactory.createLoweredBevelBorder()); - desktop = new JDesktopPane(); - p.add(desktop, BorderLayout.CENTER); - getContentPane().add(p, BorderLayout.CENTER); - - statusbar = new JLabel("Ready"); - getContentPane().add(statusbar, BorderLayout.SOUTH); - } - COM: <s> sets up the main window contents the desktop and the status bar </s> - diff --git a/funcom_test/51024212.txt b/funcom_test/51024212.txt deleted file mode 100644 index 4ead477b0c176c0cc4f9a89c593ef1b2be78b2f7..0000000000000000000000000000000000000000 --- a/funcom_test/51024212.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public MetaDataWindow createMetaDataWindow(ONDEXGraphMetaData md, File file) { - final MetaDataWindow w = new MetaDataWindow(md, file); - registerWindow(w); - w.addInternalFrameListener(new InternalFrameAdapter() { - @Override - public void internalFrameClosed(InternalFrameEvent e) { - deregisterWindow(w); - } - }); - try { - w.setSelected(true); - w.setMaximum(true); - } catch (PropertyVetoException e) {} - return w; - } - COM: <s> creates a new internal editor frame </s> - diff --git a/funcom_test/51024224.txt b/funcom_test/51024224.txt deleted file mode 100644 index 591f12c4572ca1481b622ffd6243f4ed6d505926..0000000000000000000000000000000000000000 --- a/funcom_test/51024224.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private GraphTraverser getGraphTraverser(String path, InputStream stream) { - - StateMachineFlatFileParser2 smp = new StateMachineFlatFileParser2(); - - try { - smp.parseReader(new BufferedReader(new InputStreamReader(stream)), - graph); - } catch (InvalidFileException e) { - e.printStackTrace(); - } catch (StateMachineInvalidException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - - System.out.println("Semantic motifs loaded: " + path); - - return new GraphTraverser(smp.getStateMachine()); - } - COM: <s> parses the semantic motif file </s> - diff --git a/funcom_test/51024258.txt b/funcom_test/51024258.txt deleted file mode 100644 index 4f4f0a2f660430e5d83f6fdbb6178e7257da2faf..0000000000000000000000000000000000000000 --- a/funcom_test/51024258.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private JFileChooser getFileChooser() { - if (fc == null) { - fc = new JFileChooser(); - fc.setFileFilter(new FileFilter() { - @Override - public boolean accept(File f) { - if (f.isDirectory() - || f.getName().endsWith(".tsv") - || f.getName().endsWith(".TSV")) { - return true; - } else { - return false; - } - } - @Override - public String getDescription() { - return "*.tsv Tab-separated values"; - } - }); - } - return fc; - } - COM: <s> get file chooser </s> - diff --git a/funcom_test/51024274.txt b/funcom_test/51024274.txt deleted file mode 100644 index 20495814de489989cdf3fc54f5333003e852e56b..0000000000000000000000000000000000000000 --- a/funcom_test/51024274.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private DefaultMutableTreeNode makeNode(ConceptClass cc) { - DefaultMutableTreeNode node = cc2node.get(cc.getId()); - if (node == null) { - node = new DefaultMutableTreeNode(cc); - - if (!cc.equals(rootCC)) { - if (cc.getSpecialisationOf() == null) { - cc.setSpecialisationOf(rootCC); - } - DefaultMutableTreeNode parent = makeNode(cc.getSpecialisationOf()); - parent.add(node); - } - - cc2node.put(cc.getId(), node); - } - return node; - } - COM: <s> creates a node from a concept class </s> - diff --git a/funcom_test/51024303.txt b/funcom_test/51024303.txt deleted file mode 100644 index d0530f9625f9281ec305e0427142dff6bbff2c94..0000000000000000000000000000000000000000 --- a/funcom_test/51024303.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void center() { - int x_off = Cytoscape.getDesktop().getX(); - int y_off = Cytoscape.getDesktop().getY(); - int wo = Cytoscape.getDesktop().getWidth(); - int ho = Cytoscape.getDesktop().getHeight(); - int wi = getWidth(); - int hi = getHeight(); - setLocation(((wo - wi) / 2) + x_off, ((ho - hi) / 2) + y_off); - } - COM: <s> center dialog over window </s> - diff --git a/funcom_test/51024313.txt b/funcom_test/51024313.txt deleted file mode 100644 index 2018a5252913a37e5692767dcd694ef7c4bc8ce2..0000000000000000000000000000000000000000 --- a/funcom_test/51024313.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private Component makeButtonPanel() { - JPanel panel = new JPanel(); - panel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5)); - panel.add(makeButton("Cancel",new ActionListener() { - public void actionPerformed(ActionEvent e) { - dispose(); - } - })); - panel.add(makeButton("OK",new ActionListener() { - public void actionPerformed(ActionEvent e) { - ok(); - } - })); - return panel; - } - COM: <s> creates the button panel cancel ok at the bottom of the frame </s> - diff --git a/funcom_test/51024330.txt b/funcom_test/51024330.txt deleted file mode 100644 index 8268b3f070c70c5991d5e85f9aeff62bdf60b74a..0000000000000000000000000000000000000000 --- a/funcom_test/51024330.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Component makeQueryIDField() { - final String startMessage = "Enter IDs to query"; - queryIDs = new JTextArea(startMessage); - queryIDs.addMouseListener(new MouseAdapter() { - @Override - public void mouseClicked(MouseEvent e) { - if (queryIDs.getText().equals(startMessage)) { - queryIDs.setText(""); - } - } - }); - return new JScrollPane(queryIDs); - } - COM: <s> creates text field for queries </s> - diff --git a/funcom_test/51024344.txt b/funcom_test/51024344.txt deleted file mode 100644 index 964afddc5130deb95e331f7edd8110f5015630cc..0000000000000000000000000000000000000000 --- a/funcom_test/51024344.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private TreeSelectionListener getTreeListener() { - if (tsl == null) { - tsl = new TreeSelectionListener() { - public void valueChanged(TreeSelectionEvent e) { - JTree tree = (JTree)e.getSource(); - TreePath path = tree.getSelectionPath(); - DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent(); - ConceptClass cc = (ConceptClass) node.getUserObject(); - profileList.setFocus(cc); - } - }; - } - return tsl; - } - COM: <s> singleton treeselection listener for newly loaded trees </s> - diff --git a/funcom_test/51024346.txt b/funcom_test/51024346.txt deleted file mode 100644 index bb71e7c7c26f334afeee45240b2cf0b440d459c0..0000000000000000000000000000000000000000 --- a/funcom_test/51024346.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private Component makeNamespaceField() { - - ScanForKeysTask t = new ScanForKeysTask(); - TaskManager.executeTask(t, OndexTaskConfig.getInstance()); - List<String> keys = t.waitForKeys(); - - if (keys.size() <= 0) { - // FIXME no idea... Panic!! - } - - List<String> elements = new ArrayList<String>(); - elements.add("Namespace"); - elements.addAll(keys); - - namespace = new JComboBox(elements.toArray()); - - return namespace; - } - COM: <s> creates the namespace dropdown box </s> - diff --git a/funcom_test/51024353.txt b/funcom_test/51024353.txt deleted file mode 100644 index b0b3ff339e75b1c324d65018cd4ce6fbc3a392ea..0000000000000000000000000000000000000000 --- a/funcom_test/51024353.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private Component makeNeighboursField() { - JPanel panel = new JPanel(); - panel.setLayout(new BoxLayout(panel, BoxLayout.LINE_AXIS)); - - useNeighbourhood = new JCheckBox("and neighbourhood: "); - panel.add(useNeighbourhood); - - neighbourhood = new JSpinner(); - neighbourhood.setModel(new SpinnerNumberModel(1, 1, 4, 1)); - neighbourhood.setEnabled(false); - panel.add(neighbourhood); - - useNeighbourhood.addActionListener(new ActionListener() { - @Override - public void actionPerformed(ActionEvent e) { - neighbourhood.setEnabled(useNeighbourhood.isSelected()); - } - }); - - return panel; - } - COM: <s> create field for neighbourhood selection </s> - diff --git a/funcom_test/51024357.txt b/funcom_test/51024357.txt deleted file mode 100644 index 222216ef22704a4b5efbf1b882c07a7ee14f860c..0000000000000000000000000000000000000000 --- a/funcom_test/51024357.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private void parsePath(String s) { - String[] fields = s.split(" "); - ArrayList<String> ccVec = new ArrayList<String>(), - rtVec = new ArrayList<String>(); - for (int i = 0; i < fields.length; i++) { - boolean cc = (i % 2) == 0; - if (cc) { - ccVec.add(fields[i]); - } else { - rtVec.add(fields[i]); - } - } - ccs = ccVec.toArray(new String[ccVec.size()]); - rts = rtVec.toArray(new String[rtVec.size()]); - } - COM: <s> parses a given path descriptor into concept class and relation type arrays </s> - diff --git a/funcom_test/51024419.txt b/funcom_test/51024419.txt deleted file mode 100644 index f74580f8dbfabde555f0781f6693196a5493aa7e..0000000000000000000000000000000000000000 --- a/funcom_test/51024419.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void setFocus(ConceptClass cc) { - removeAll(); - if (cc != null) { - ArrayList<EdgeMappingDescriptor> ds = cc2descriptorList.get(cc.getId()); - if (ds != null) { - for (EdgeMappingDescriptor d : ds) { - JCheckBox box = new JCheckBox(d.getName()); - box.setName(d.getId()); - box.setBackground(Color.white); - add(box); - } - } - } - revalidate(); - getParent().repaint(); - } - COM: <s> selects a concept class focus creates the list of </s> - diff --git a/funcom_test/51024430.txt b/funcom_test/51024430.txt deleted file mode 100644 index 2a8f2b3c9cc813fe8c4bd1b4835f58fbc6e444f5..0000000000000000000000000000000000000000 --- a/funcom_test/51024430.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void save(final File file, final Collection<EdgeMappingDescriptor> descriptors) throws Exception { - FileTask task = new FileTask("Save file") { - @Override - public void processFile() { - try { - saveInternal(file, descriptors, monitor); - } catch (Exception e) { - exception = e; - } - } - }; - - TaskManager.executeTask(task, OndexTaskConfig.getInstance()); - - if (task.getException() != null) { - throw task.getException(); - } - } - COM: <s> saves the current ondexgraph the given mapping descriptors to a file </s> - diff --git a/funcom_test/51024433.txt b/funcom_test/51024433.txt deleted file mode 100644 index 52367cef282d0e884a5e737d636b35ba5432231b..0000000000000000000000000000000000000000 --- a/funcom_test/51024433.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void init(Collection<EdgeMappingDescriptor> descriptors) { - id2descriptor.clear(); - cc2descriptorList.clear(); - for (EdgeMappingDescriptor d: descriptors) { - String id = d.getId(); - id2descriptor.put(id,d); - - String ccId = d.getConceptClasses()[0]; - ArrayList<EdgeMappingDescriptor> list = cc2descriptorList.get(ccId); - if (list == null) { - list = new ArrayList<EdgeMappingDescriptor>(); - cc2descriptorList.put(ccId, list); - } - list.add(d); - } - setFocus(getCurrentTreeSelection()); - } - COM: <s> initializes the hashtables with a new set of descriptors </s> - diff --git a/funcom_test/51024448.txt b/funcom_test/51024448.txt deleted file mode 100644 index 896a60d227df9b30c968f506d1cea60101eddf29..0000000000000000000000000000000000000000 --- a/funcom_test/51024448.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getId() { - StringBuilder b = new StringBuilder(""); - if (path.getText() != null && !path.getText().equals("")) { - b.append(path.getText().split(" ")[0]+"#"); - } - if (name.getText() != null && !name.getText().equals("")) { - b.append(name.getText()); - } - return b.toString(); - } - COM: <s> gets id of path </s> - diff --git a/funcom_test/51024484.txt b/funcom_test/51024484.txt deleted file mode 100644 index e5b5838137310403277abc29f5ab767fdd75a115..0000000000000000000000000000000000000000 --- a/funcom_test/51024484.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String complileId(ConceptClass cc, Collection<ONDEXConcept> eqs) { - TreeSet<Integer> sortedSet = new TreeSet<Integer>(); - for (ONDEXConcept c : eqs) { - sortedSet.add(c.getId()); - } - StringBuilder b = new StringBuilder(cc.getId()+"#"); - for (int i : sortedSet) { - b.append(i+":"); - } - b.deleteCharAt(b.length()-1); - return b.toString(); - } - COM: <s> cy node id consisting of the concept class id a hash character </s> - diff --git a/funcom_test/51024533.txt b/funcom_test/51024533.txt deleted file mode 100644 index 94442e9650e0025c256d5f647c04cff99aad10d8..0000000000000000000000000000000000000000 --- a/funcom_test/51024533.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void undo() { - if (actionStack.size() > 0) { - Operation<?> a = actionStack.pop(); - a.revert(); - reversionStack.push(a); - updateAll(); - MetaDataEditor.getInstance().setActionEnabled( - new String[] { "Edit", "Redo" }, true); - if (actionStack.size() == 0) { - MetaDataEditor.getInstance().setActionEnabled( - new String[] { "Edit", "Undo" }, false); - } - } - } - COM: <s> undos a last performed action from the action stack </s> - diff --git a/funcom_test/51024580.txt b/funcom_test/51024580.txt deleted file mode 100644 index bfdbb945adee3b558f648c9a1ab3c8cfb259f6d3..0000000000000000000000000000000000000000 --- a/funcom_test/51024580.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void redo() { - if (reversionStack.size() > 0) { - Operation<?> a = reversionStack.pop(); - a.perform(); - actionStack.push(a); - updateAll(); - MetaDataEditor.getInstance().setActionEnabled( - new String[] { "Edit", "Undo" }, true); - if (reversionStack.size() == 0) { - MetaDataEditor.getInstance().setActionEnabled( - new String[] { "Edit", "Redo" }, false); - } - } - } - COM: <s> redos the last undone action from the reversion stack </s> - diff --git a/funcom_test/51024976.txt b/funcom_test/51024976.txt deleted file mode 100644 index 2f4f211468dab3ca9d527a7a39aebb54ef7137f3..0000000000000000000000000000000000000000 --- a/funcom_test/51024976.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void save() { - if (file == null) { - saveAs(); - } else { - final MetaDataWriter w = new MetaDataWriter(file, md); - FailableThread t = new FailableThread("File writer thread") { - @Override - public void failableRun() throws Throwable { - try { - w.write(); - } catch (Throwable e) { - e.printStackTrace(); - } - setModified(false); - } - }; - t.start(); - MEProgressMonitor.start("Saving to file", w); - } - } - COM: <s> saves the framess metadata object </s> - diff --git a/funcom_test/51025055.txt b/funcom_test/51025055.txt deleted file mode 100644 index 30e6e2e6904f5c171978c415cb5e69cbe3d97f1c..0000000000000000000000000000000000000000 --- a/funcom_test/51025055.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void executeJavaScriptFile(String file) { - try { - String code = readTextFile(file); - printAndPrompt(code); - fireCommandEvent(new CommandEvent(this, code, this)); - } catch (FileNotFoundException e) { - JOptionPane.showMessageDialog(this, "File not found: " + file); - e.printStackTrace(); - } catch (IOException e) { - JOptionPane.showMessageDialog(this, "IO exception: " + file); - e.printStackTrace(); - } - } - COM: <s> executes the given java script file </s> - diff --git a/funcom_test/51121702.txt b/funcom_test/51121702.txt deleted file mode 100644 index 1e05f64c451b69b372b3426ae93b31fd940be61d..0000000000000000000000000000000000000000 --- a/funcom_test/51121702.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void close() throws SQLException { - synchronized (_conn) { - Iterator iter = list.iterator(); - - while (iter.hasNext()) { - Statement stmt = (Statement) iter.next(); - - try { - stmt.close(); - } catch (SQLException e) { -// logCat.info("close", e); - } catch (Exception e) { - logCat.error(e); - } - } - - list.clear(); - open = false; - } - } - COM: <s> close only statements of this connection do not close the connection </s> - diff --git a/funcom_test/51122108.txt b/funcom_test/51122108.txt deleted file mode 100644 index 87f07ba375dd068a18a267595f4411ad123fca3b..0000000000000000000000000000000000000000 --- a/funcom_test/51122108.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: private void init() { - conds = new ArrayList(); - filterName = getFilterName(getTableId()); - - if (size == null) { - size = "1"; - } - - if (disabledCaption == null) { - disabledCaption = ""; - } - - if (setCaption == null) { - setCaption = "set"; - } - - if (unsetCaption == null) { - unsetCaption = "unset"; - } - if (unsetStyleClass == null) { - unsetStyleClass = getStyleClass(); - } - - if (setStyleClass == null) { - setStyleClass = getStyleClass(); - } - } - COM: <s> initialize class fields </s> - diff --git a/funcom_test/51122320.txt b/funcom_test/51122320.txt deleted file mode 100644 index e44b6d48f01e7894753a744ae8e5bcf4ccf4c658..0000000000000000000000000000000000000000 --- a/funcom_test/51122320.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected String getFieldValue() { - ResultSetVector rsv = getParentForm().getResultSetVector(); - String res = null; - - if ((getField() != null) && (rsv != null)) { - String[] s = rsv.getCurrentRow(); - - if (s != null) { - res = rsv.getCurrentRow()[getField().getId()]; - } - } - - return res; - } - COM: <s> fetches the value from the database </s> - diff --git a/funcom_test/51122387.txt b/funcom_test/51122387.txt deleted file mode 100644 index 169e1a611de4717f2c4cd67f5a6137e12149cf38..0000000000000000000000000000000000000000 --- a/funcom_test/51122387.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String getMessage() { - StringBuffer sb = new StringBuffer(); - - if (messages != null) { - for (int i = 0; i < messages.size(); i++) { - Object o = messages.elementAt(i); - - if (o != null) { - sb.append(o.toString()) - .append("\n"); - } - } - } - - return sb.toString(); - } - COM: <s> returns the detail message string of this throwable </s> - diff --git a/funcom_test/51122440.txt b/funcom_test/51122440.txt deleted file mode 100644 index b318ed5d5ca71ce31fc33232659785451bc3cdfa..0000000000000000000000000000000000000000 --- a/funcom_test/51122440.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected String renderPatternHtmlInputField() { - StringBuffer tagBuf = new StringBuffer(); - String ppattern = getPattern(); - - if (!Util.isNull(ppattern)) { - tagBuf.append("<input type=\"hidden\" name=\""); - tagBuf.append(Constants.FIELDNAME_PATTERNTAG + getFormFieldName()); - tagBuf.append("\" value=\""); - tagBuf.append(ppattern); - tagBuf.append("\" />"); - } - - return tagBuf.toString(); - } - COM: <s> writes out the current used format to the page </s> - diff --git a/funcom_test/51122461.txt b/funcom_test/51122461.txt deleted file mode 100644 index e956e7414502738a73a8e33102206252f795c841..0000000000000000000000000000000000000000 --- a/funcom_test/51122461.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private DbFormsConfig lookup(String name) throws Exception { - DbFormsConfig config = null; - - if (servletContext != null) { - config = (DbFormsConfig) servletContext.getAttribute(name); - } else { - throw new Exception("cannot lookup a config object with the name [" - + name + "]"); - } - - return config; - } - COM: <s> look up a db forms config object stored into the registry </s> - diff --git a/funcom_test/51122628.txt b/funcom_test/51122628.txt deleted file mode 100644 index 615c917404317019fb0b1315932c47284a2ed2b3..0000000000000000000000000000000000000000 --- a/funcom_test/51122628.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setFieldAsObject(int row, int i, Object obj) { - if (isPointerLegal(row)) { - try { - Object[] objRow = (Object[]) objectVector.elementAt(row); - objRow[i] = obj; - } catch (Exception e) { - logCat.error("setFieldAsObject", e); - } - } - } - COM: <s> sets the field value object given by row row and index i </s> - diff --git a/funcom_test/51122660.txt b/funcom_test/51122660.txt deleted file mode 100644 index 108bee9020e98ba15d93ad6d8d4c2e253d2cdc85..0000000000000000000000000000000000000000 --- a/funcom_test/51122660.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Vector getKey() { - Vector v = super.getKey(); - - if (((v == null) || v.isEmpty()) && !Util.isNull(from)) { - if (getConfig() != null) { - Table t = getConfig().getTableByName(from); - - if (t != null) { - v = t.getKey(); - } - } - } - - return v; - } - COM: <s> returns the key of this table consisting of field objects representing </s> - diff --git a/funcom_test/51122718.txt b/funcom_test/51122718.txt deleted file mode 100644 index 6c42eea014bec6b57233610e4889e7939d5084d0..0000000000000000000000000000000000000000 --- a/funcom_test/51122718.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected String getKeyValues() { - String key = null; - - try { - key = ParseUtil.getParameter(getRequest(), "k_" - + getTable().getId() + "_" + keyId); - key = Util.decode(key, getRequest().getCharacterEncoding()); - logCat.info("::getKeyValues - key: " + key); - } catch (UnsupportedEncodingException e) { - logCat.error(e); - } - - return key; - } - COM: <s> return the key values string from the request object </s> - diff --git a/funcom_test/51122750.txt b/funcom_test/51122750.txt deleted file mode 100644 index e891ec5f105ea5ac1f65b019252f5b5c4688ab0c..0000000000000000000000000000000000000000 --- a/funcom_test/51122750.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String toString() { - StringBuffer buf = new StringBuffer(); - String fieldName = (getField() != null)?getField().getName():"unknown field"; - buf.append(" ").append("field [").append(fieldName).append( - "] has value, oldvalue [").append(getFieldValue()).append(", ") - .append(getOldValue()).append("]\n"); - return buf.toString(); - } - COM: <s> get the string representation of this object </s> - diff --git a/funcom_test/51122774.txt b/funcom_test/51122774.txt deleted file mode 100644 index 8b594d951568957197c91ab35fae8b86aa71f6da..0000000000000000000000000000000000000000 --- a/funcom_test/51122774.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private Connection getConnectionFromFactory() { - Connection con = null; - - try { - if (!isFactorySetup) { - setupConnectionFactory(); - } - - con = connectionFactory.getConnection(); - } catch (Exception se) { - logCat.error("::getConnectionFromFactory - cannot retrieve a connection from the connectionFactory", - se); - } - - return con; - } - COM: <s> gets a jdbc connection object from the connection factory </s> - diff --git a/funcom_test/51122872.txt b/funcom_test/51122872.txt deleted file mode 100644 index b7cc2a24f03a68ed8b5463ea1216a98b779574c8..0000000000000000000000000000000000000000 --- a/funcom_test/51122872.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected EventInfo getEventInfo(String id) { - EventInfo einfo = null; - - if ((eventInfoMap != null) && (eventInfoMap.containsKey(id))) { - einfo = (EventInfo) eventInfoMap.get(id); - } else { - logCat.error("::getEventInfo - event having id [" + id - + "] is not registered into the factory, returning a NULL event"); - } - - return einfo; - } - COM: <s> get the event info object having the input identifier </s> - diff --git a/funcom_test/51122895.txt b/funcom_test/51122895.txt deleted file mode 100644 index 5c33aa8f95053730d382019e10b677a390be351a..0000000000000000000000000000000000000000 --- a/funcom_test/51122895.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private boolean isKeyInfoEvent(String action) { - boolean keyInfo = false; - - if ((action.startsWith("ac_updatear_")) - || action.startsWith("ac_deletear_")) { - keyInfo = true; - } - - // logCat.info("::isKeyInfoEvent - action [" + action + "] is related to - // a keyInfo event ? [" + keyInfo + "]"); - return keyInfo; - } - COM: <s> checck if the input action string defines a key info event </s> - diff --git a/funcom_test/51122947.txt b/funcom_test/51122947.txt deleted file mode 100644 index d0f8892ec22d1550a36f890831d4bd115d0e29c4..0000000000000000000000000000000000000000 --- a/funcom_test/51122947.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object createObject(Attributes attributes) { - Object obj = null; - - try { - obj = ReflectionUtil.invoke(className, "instance", null, null); - } catch (Exception e) { - logCat.error("::createObject - cannot instance the class [" - + className + "]", e); - } - - return obj; - } - COM: <s> get the unique instance of the singleton class </s> - diff --git a/funcom_test/51122960.txt b/funcom_test/51122960.txt deleted file mode 100644 index 6958707b6ba4f685381d4f0ec13567ecb46e2271..0000000000000000000000000000000000000000 --- a/funcom_test/51122960.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getContentType(String name) { - try { - //#changed by joe peer - //UploadedFile file = (UploadedFile)files.get(name); - FileHolder filePart = (FileHolder) files.get(name); - - return filePart.getContentType(); // may be null - } catch (Exception e) { - return null; - } - } - COM: <s> returns the content type of the specified file as supplied by the client </s> - diff --git a/funcom_test/51122972.txt b/funcom_test/51122972.txt deleted file mode 100644 index 951e1e78ca325e0050a88890bda122382b4eb1c2..0000000000000000000000000000000000000000 --- a/funcom_test/51122972.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public InputStream getFileInputStream(String name) { - try { - //#changed by joe peer - //UploadedFile file = (UploadedFile)files.get(name); - FileHolder filePart = (FileHolder) files.get(name); - - return filePart.getInputStreamFromBuffer(); // may be null - } catch (Exception e) { - return null; - } - } - COM: <s> returns a input stream object for the specified file saved on the servers </s> - diff --git a/funcom_test/51122988.txt b/funcom_test/51122988.txt deleted file mode 100644 index b91ad940a53677c851c8c79afacfc4489291abee..0000000000000000000000000000000000000000 --- a/funcom_test/51122988.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getFilesystemName(String name) { - try { - //#changed by joe peer - //UploadedFile file = (UploadedFile)files.get(name); - FileHolder filePart = (FileHolder) files.get(name); - - return filePart.getFileName(); // may be null - } catch (Exception e) { - return null; - } - } - COM: <s> returns the filesystem name of the specified file or null if the file </s> - diff --git a/funcom_test/51123002.txt b/funcom_test/51123002.txt deleted file mode 100644 index 71f76de5e8857fea7cbc7910931f764dd6944904..0000000000000000000000000000000000000000 --- a/funcom_test/51123002.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String DOM2String(Document doc) { - StringWriter writer = new StringWriter(); - - try { - StreamResult result = new StreamResult(writer); - DOMSource source = new DOMSource(doc); - transformer.transform(source, result); - } catch (Exception e) { - logCat.error("write", e); - } - - String s = writer.toString(); - - return s; - } - COM: <s> creates a string representation of the given domdocument </s> - diff --git a/funcom_test/51123005.txt b/funcom_test/51123005.txt deleted file mode 100644 index 092d293d30a81e8796b20275fdc61078212797fb..0000000000000000000000000000000000000000 --- a/funcom_test/51123005.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Document String2DOM(String data) { - Document doc = null; - - if (!Util.isNull(data)) { - // String parsen - try { - // String parsen - InputSource in = new InputSource(new StringReader(data)); - doc = builder.parse(in); - } catch (Exception e) { - logCat.error(e.getMessage() + "\n" + data); - } - } - - return doc; - } - COM: <s> creates an new domdocument from the given string </s> - diff --git a/funcom_test/51123151.txt b/funcom_test/51123151.txt deleted file mode 100644 index 99547e319ae61d9a548078b238059f5a9046f2ca..0000000000000000000000000000000000000000 --- a/funcom_test/51123151.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void cleanUpConnectionAfterException(Connection con) { - try { - // Do only if autoCommit is disabled - if ((con != null) && (!con.getAutoCommit())) { - con.rollback(); - con.setAutoCommit(true); - } - } catch (java.sql.SQLException e) { - SqlUtil.logSqlException(e); - } - } - COM: <s> in our development we sometimes set the connection object to auto commit </s> - diff --git a/funcom_test/51123169.txt b/funcom_test/51123169.txt deleted file mode 100644 index f2b69e4963d5a7b715bf98b280339f55eeb3bdbb..0000000000000000000000000000000000000000 --- a/funcom_test/51123169.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void initApplicationResources() { - logCat.info("initialize Application Resources."); - - String value = getServletConfig() - .getInitParameter(ValidatorConstants.RESOURCE_BUNDLE); - - if (value == null) { - logCat.warn(" Application Resources file not setted in Web.xml, ApplicationResources handler disabled!"); - - return; - } - - MessageResources.setSubClass(value); - - logCat.info(" DbForms Application Resources : SubClass initialized "); - } - COM: <s> initialize the sub class information use by the resource bundle for this </s> - diff --git a/funcom_test/51123336.txt b/funcom_test/51123336.txt deleted file mode 100644 index 78157d97bcac850a525ee927d716bc28742cb139..0000000000000000000000000000000000000000 --- a/funcom_test/51123336.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testTimeInMillisApproximate() throws Exception { - System.out.println("IF YOU ARE ON JDK1.4, PLEASE UNCOMMENT THE CONTENTS OF testJDK to TEST 1.4 versus 1.3 method."); - - Calendar cal = Calendar.getInstance(); - long jdk14Method = cal.getTimeInMillis(); - long jdk13Method = cal.getTime() - .getTime(); - assertTrue("jdk14Method == jdk13Method", (jdk14Method == jdk13Method)); - } - COM: <s> this is a testcase for checking if the jdk1 </s> - diff --git a/funcom_test/51123340.txt b/funcom_test/51123340.txt deleted file mode 100644 index 2bf9347e7f7d6234d28f362fab82775766e56c30..0000000000000000000000000000000000000000 --- a/funcom_test/51123340.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testIsNull() throws Exception { - boolean result = Util.isNull((String) null); - assertTrue("Must be null", result); - result = Util.isNull(""); - assertTrue("Must be null", result); - result = Util.isNull("not null"); - assertTrue("Must not be null", !result); - } - COM: <s> a unit test for junit </s> - diff --git a/funcom_test/51124355.txt b/funcom_test/51124355.txt deleted file mode 100644 index d6c7ccf58bb451467cef6b9bc37211f9cebbd7f6..0000000000000000000000000000000000000000 --- a/funcom_test/51124355.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setTableName(String tableName) throws Exception { - this.tableName = tableName; - this.table = getConfig().getTableByName(tableName); - - if (getTable() == null) { - throw new Exception("Table " + tableName + " not found in configuration"); - } - - this.tableId = getTable().getId(); - } - COM: <s> sets the table name attribute of the db form tag object </s> - diff --git a/funcom_test/51124559.txt b/funcom_test/51124559.txt deleted file mode 100644 index 4644047e98267d6c87d57ede1614888e940f5490..0000000000000000000000000000000000000000 --- a/funcom_test/51124559.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String toString() { - StringBuffer buf = new StringBuffer(); - buf.append("\nname="); - buf.append(name); - buf.append(" "); - buf.append("\nid="); - buf.append(String.valueOf(getId())); - buf.append(" "); - - if (getFields() != null) { - for (int i = 0; i < getFields().size(); i++) { - Field f = (Field) getFields().elementAt(i); - buf.append("\nfield: "); - buf.append(f.toString()); - } - } - - return buf.toString(); - } - COM: <s> this metod is useful for logging debugging purposes only </s> - diff --git a/funcom_test/51169773.txt b/funcom_test/51169773.txt deleted file mode 100644 index 24d32a52b02a82b60293a22a68a5ecac5048b351..0000000000000000000000000000000000000000 --- a/funcom_test/51169773.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: synchronized public void setSeed(long value) { - super.setSeed(value); - - int seed = (int) value; - values = new int[MAX]; - - for (index = 0; index < MAX; index++) { - values[index] = seed & MASK; - seed = (MULTIPLIER * seed) + 1; - values[index] |= (seed & MASK) >>> 16; - seed = (MULTIPLIER * seed) + 1; - } - } - COM: <s> initalize the pseudo random number generator </s> - diff --git a/funcom_test/51210655.txt b/funcom_test/51210655.txt deleted file mode 100644 index cb0d388b5658f3cbb391dbcfbbb543effa46a46f..0000000000000000000000000000000000000000 --- a/funcom_test/51210655.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void getFilesEmbedded(File dir, ArrayList<File> files, String extension) { - if (dir.isDirectory()) { - System.out.println(" ~ searching dir: " + dir); - for (File subfile : dir.listFiles()) { - getFilesEmbedded(subfile, files, extension); - } - } - if (dir.isFile() && dir.getPath().toLowerCase().endsWith(extension)) { - files.add(dir); - } - } - COM: <s> embedded method to provide for the recursive get files method </s> - diff --git a/funcom_test/51210660.txt b/funcom_test/51210660.txt deleted file mode 100644 index 11d09ab6b9cccba4f370cf61ea52ddee06e7345e..0000000000000000000000000000000000000000 --- a/funcom_test/51210660.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void setValues(String line, String errorString, int searchStartPosition, String errorMessage) { - int start = line.indexOf(errorString, searchStartPosition); - startPos = start; - length = errorString.length(); - errorMsg = errorMessage; - //System.out.println("parseError.setValues(): startpos: "+startPos+" length: "+length+" line: "+line); - } - COM: <s> the method called by the constructors </s> - diff --git a/funcom_test/51210687.txt b/funcom_test/51210687.txt deleted file mode 100644 index 916b59f936c175c9e11cf9baaa0d2a6de787a106..0000000000000000000000000000000000000000 --- a/funcom_test/51210687.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void addToCache(JarInputStream fis, String mnemo) { - String text = new String(); - byte[] buf = new byte[4096]; - int i = 0; - try { - while ((i = fis.read(buf)) != -1) { - text += new String(buf, 0, i); - } - } catch (IOException e) { - } - helpcache.put(mnemo, text); - } - COM: <s> load from specified jar input stream </s> - diff --git a/funcom_test/51210711.txt b/funcom_test/51210711.txt deleted file mode 100644 index 5dc9fd7aec4f6ff88913fe1530c5390c58510ad1..0000000000000000000000000000000000000000 --- a/funcom_test/51210711.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int calculateEffectiveAddress(boolean executeNow) { - if (executeNow) { - return (int) dsp.getUpdate(base, false) + (int) dsp.getUpdate(index, false) * scale + displacement; - } else { - if ((base == null) && (index == null)) { - return displacement; - } else { - return dsp.getMemAddressStart(); - } - } - } - COM: <s> calculates the effective address that this calculated address refers to </s> - diff --git a/funcom_test/51210716.txt b/funcom_test/51210716.txt deleted file mode 100644 index 430a9139b4ca2679e69772ca65ba2e420c5e4f96..0000000000000000000000000000000000000000 --- a/funcom_test/51210716.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void clear() { - registers = new double[numRegisters]; - tags = new byte[numRegisters]; - for (int i = 0; i < numRegisters; i++) { - tags[i] = TAGEMPTY; - } - fC0 = fC1 = fC2 = fC3 = false; - fStackFault = fPrecision = fUnderflow = fOverflow = fZeroDivide = fDenormalized = fInvalid = false; - top = 0; - } - COM: <s> resets all internal variables to their initial values </s> - diff --git a/funcom_test/51210758.txt b/funcom_test/51210758.txt deleted file mode 100644 index 6f497cbf7d175ecb499e46ff4f92634e44392697..0000000000000000000000000000000000000000 --- a/funcom_test/51210758.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: /*public void putRaw(UnsignedByte[] input, SmallArgument a){ - if(!Op.matches(a.type, Op.REG|Op.MEM)) { return; } - if(Op.matches(a.type, Op.MEM)){ - for(int i = 0; i< a.size; i++) mem(i).set(input[i].get()); - } else{ - System.arraycopy(input, 0, this.reg, a.address, a.size); - } - setDirty(a); - - }*/ - COM: <s> c yang guo </s> - diff --git a/funcom_test/51210820.txt b/funcom_test/51210820.txt deleted file mode 100644 index fc326187a91674264d00d616bd4789da62977b60..0000000000000000000000000000000000000000 --- a/funcom_test/51210820.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public boolean save(File file) { - ObjectOutputStream oos; - ZipOutputStream zos; - try { - if (!file.getParentFile().exists()) { - file.getParentFile().mkdirs(); - } - if (!file.exists()) { - file.createNewFile(); - } - zos = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(file))); - zos.putNextEntry(new ZipEntry("dataspace")); - zos.setLevel(9); - oos = new ObjectOutputStream(zos); - save(oos); - oos.flush(); - oos.close(); - zos.closeEntry(); - zos.close(); - } catch (IOException e) { - return false; - } - return true; - } - COM: <s> save the relevante data to file therefore it will be zipped and buffered </s> - diff --git a/funcom_test/51210828.txt b/funcom_test/51210828.txt deleted file mode 100644 index 2429bc95246b1f3991ae6d32dd58a37c8a800a82..0000000000000000000000000000000000000000 --- a/funcom_test/51210828.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void save(ObjectOutputStream oos) throws IOException { - oos.writeInt(MEMSIZE); - oos.writeInt(REGSIZE); - oos.writeObject(reg); - oos.writeObject(regInfo); - oos.writeObject(memory); - oos.writeObject(memInfo); - oos.writeObject(variables); - oos.writeObject(constants); - oos.writeBoolean(fCarry); - oos.writeBoolean(fOverflow); - oos.writeBoolean(fSign); - oos.writeBoolean(fZero); - oos.writeBoolean(fParity); - oos.writeBoolean(fAuxiliary); - oos.writeBoolean(fTrap); - oos.writeBoolean(fDirection); - oos.writeInt(nextReservableAddress); - } - COM: <s> directly provides a stream to save to </s> - diff --git a/funcom_test/51210986.txt b/funcom_test/51210986.txt deleted file mode 100644 index 09ee9a15cd144d039806831918929ca76e1da1e9..0000000000000000000000000000000000000000 --- a/funcom_test/51210986.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setDirty(SmallArgument address) { - if (Op.matches(address.type, Op.REG)) { - for (int i = 0; i < address.size; i++) { - reg.setDirty(i + address.address); - } - } else if (Op.matches(address.type, Op.MEM)) { - for (int i = 0; i < address.size; i++) { - memory.setDirty(i + address.address); - } - } - } - COM: <s> set the dirty flag for a register or memory location </s> - diff --git a/funcom_test/51217132.txt b/funcom_test/51217132.txt deleted file mode 100644 index c8a661f412aa8e4deba919b249bbd1ef869fe1b0..0000000000000000000000000000000000000000 --- a/funcom_test/51217132.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setHelp(String keyword) { - if ((keyword != null) && !currentHelpkeyWord.equalsIgnoreCase(keyword)) { - String help = frame.helpLoader.get(keyword); - if (help != null) { - helpBrowser.setText(help); - currentHelpkeyWord = keyword; - } else { - helpBrowser.setText("No help found for " + keyword); - currentHelpkeyWord = ""; - } - } - - if (keyword == null) { - helpBrowser.setText("No help available for current context."); - currentHelpkeyWord = ""; - } - } - COM: <s> sets the context help for a given command </s> - diff --git a/funcom_test/51421009.txt b/funcom_test/51421009.txt deleted file mode 100644 index 46d2f70a3bb75124d002fb79d8bb9899c4e4be90..0000000000000000000000000000000000000000 --- a/funcom_test/51421009.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void ensureState(String name) throws Exception{ - //ystem.out.println("ensure state "+ getName() + "::" +name); - if(parentState!=null){ - parentRegionManager.ensureState(parentState); - } - State target=machine.getState(name); - - if(target==this.machine.getCurrentState()) return; - // place for improvement here: just iterate looking for 'target' upwards on - State ancestor = computeCommonAncestor(this.machine.getCurrentState(),target); - if(ancestor==target) return; - setState(name); - } - COM: <s> ensure state sets the target state only when it is not already active </s> - diff --git a/funcom_test/51421189.txt b/funcom_test/51421189.txt deleted file mode 100644 index 9a9752d31fe6b8974607bfeab8e0ca4811d64300..0000000000000000000000000000000000000000 --- a/funcom_test/51421189.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private RegionManager createSubRegion(String name) throws Exception{ - RegionManager dm; - if(regionManagers.containsKey(name)) { - dm = regionManagers.get(name); - dm.setParentRegionManager(current.getName(),current.getStateMachine().getRegionManager()); - }else { - dm = new RegionManager(name,current.getName(),current.getStateMachine().getRegionManager()); - regionManagers.put(name,dm); - } - return dm; - } - COM: <s> create a concurrent subregion in a state </s> - diff --git a/funcom_test/51421257.txt b/funcom_test/51421257.txt deleted file mode 100644 index ded0f9f53288a2c11fc5684915112ce65d741d4e..0000000000000000000000000000000000000000 --- a/funcom_test/51421257.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public JavaStates endRegion(String name, String statename){ - //assert name==this.name; - if(name!=this.current.getRegionManager().getName())throw new BadClosingException(this.current.getRegionManager().getName(), name); - current= this.endRootState(statename).endSubRegion(name); - return this; - } - COM: <s> helper api function </s> - diff --git a/funcom_test/51468963.txt b/funcom_test/51468963.txt deleted file mode 100644 index ac146be692d7887e18e89e19b717e72b80c0ac43..0000000000000000000000000000000000000000 --- a/funcom_test/51468963.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double calcInvestmentIncome(int rnum, int tnum) { - double rate = External.getInstance().getRate(); - double ans = 0; - ans += getLastValue() * rate; - ans += getCashflow(Timing.START) * rate; - ans += getCashflow(Timing.MIDDLE) * rate/2; - // end period cashflows don't earn interest - return ans; - } - COM: <s> calculate the investment income for the specified time period </s> - diff --git a/funcom_test/51469010.txt b/funcom_test/51469010.txt deleted file mode 100644 index 5d5b9a2dbb97ec4eb40fa9916056393530f2720e..0000000000000000000000000000000000000000 --- a/funcom_test/51469010.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String setParameter(ModelParameter param) { - String prob = super.setParameter(param); - if (prob == null) { - // OK so go ahead - String pName = param.getName(); - String args = null; - isDirty = true; - RFunction rf = new RFunction(this, "set" + pName); - rf.call("c" + param.getGluedValue()); - } - return prob; - } - COM: <s> override so as to set the param in the r code </s> - diff --git a/funcom_test/51469016.txt b/funcom_test/51469016.txt deleted file mode 100644 index 3b9cbffbdcc9c4290fe5eb3e2eab1951ac1a4fb9..0000000000000000000000000000000000000000 --- a/funcom_test/51469016.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void initialise() throws ModelException { - setRoot(this); - addChild(External.getInstance()); - addChild(Liabilities.getInstance()); - addChild(Assets.getInstance()); - addChild(Corporate.getInstance()); - addChild(BusinessLogic.getInstance()); - } - COM: <s> initialise the model root after creation </s> - diff --git a/funcom_test/51469151.txt b/funcom_test/51469151.txt deleted file mode 100644 index 31a36e0d643131e790f7cef2f8bf0b4644c70ad3..0000000000000000000000000000000000000000 --- a/funcom_test/51469151.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public double getCumulativeProportion(int tPeriod) { - double prop = 0; - if (tPeriod < 0) { - throw new RuntimeException("Can't get payment proportion for periods less than 0"); - } - for (int i = 0; i < pattern.length && i <= tPeriod; i++) { - prop += pattern[i]; - } - return prop; - } - COM: <s> get the cumulative proportion paid up to and including the specified time period </s> - diff --git a/funcom_test/51469809.txt b/funcom_test/51469809.txt deleted file mode 100644 index 18474fa317b3921d0d1d8786ba33d5aa871358d2..0000000000000000000000000000000000000000 --- a/funcom_test/51469809.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected double totalFromChildren(Doer thingToDo) { - double total = 0; - if (myChildren != null && ! myChildren.isEmpty()) { - for (ModelBit kid : myChildren) { - if (thingToDo.isAccepted(kid)) { - total += thingToDo.getDoubleFromChild(kid); - } - } - } - return total; - } - COM: <s> get a total from all the children of this model bit </s> - diff --git a/funcom_test/51469855.txt b/funcom_test/51469855.txt deleted file mode 100644 index 1a4d222e52f8e989fb9cf2dde80542aacc831eeb..0000000000000000000000000000000000000000 --- a/funcom_test/51469855.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected double totalFromChildren(Doer thingToDo, ResultName result, int tnum) { - double total = 0; - if (myChildren != null && ! myChildren.isEmpty()) { - for (ModelBit kid : myChildren) { - if (thingToDo.isAccepted(kid)) { - total += kid.getDoubleResult(result, tnum); - } - } - } - return total; - } - COM: <s> get a total result from all the children of this model bit </s> - diff --git a/funcom_test/51516131.txt b/funcom_test/51516131.txt deleted file mode 100644 index 546bb201fa1075b65054534454ae90fd3ad60f25..0000000000000000000000000000000000000000 --- a/funcom_test/51516131.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - if ("Datafeed".equals(portName)) { - setDatafeedEndpointAddress(address); - } - else { // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/51576844.txt b/funcom_test/51576844.txt deleted file mode 100644 index fd8feee301214bec0214a2d0af4329be9cfa67c7..0000000000000000000000000000000000000000 --- a/funcom_test/51576844.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void add(String name, String value) throws IOException { - if (this.boundary != null) { - boundary(); - writeName(name); - newline(); - newline(); - writeln(value); - } else { - if (!this.first) { - write("&"); - } - write(encode(name)); - write("="); - write(encode(value)); - } - this.first = false; - } - COM: <s> add a regular text field to either a regular or </s> - diff --git a/funcom_test/51576882.txt b/funcom_test/51576882.txt deleted file mode 100644 index f5c399c8276bc3b1512db97ef5d11d7cf5116c96..0000000000000000000000000000000000000000 --- a/funcom_test/51576882.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public URL convertURL(String url) throws WorkloadException { - URL result = null; - - url = url.trim(); - if (url.length() > this.maxURLSize) { - throw new WorkloadException("URL size is too big, must be under " - + this.maxURLSize + " bytes."); - } - - try { - result = new URL(url); - } catch (MalformedURLException e) { - throw new WorkloadException(e); - } - return result; - } - COM: <s> convert the specified string to a url </s> - diff --git a/funcom_test/51577053.txt b/funcom_test/51577053.txt deleted file mode 100644 index 63e925431dbfbab7a4264c04af556cd2551f49eb..0000000000000000000000000000000000000000 --- a/funcom_test/51577053.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addPKColumn(String aPKColName) throws IllegalArgumentException { - Column col = (Column) colMap.get(aPKColName); - if (col == null) { - throw new IllegalArgumentException ("The column |" + aPKColName - + "| does not belong to the table |" + name + "|"); - } - pkColumns.add(col); - } - COM: <s> adds a primarykey column </s> - diff --git a/funcom_test/51690119.txt b/funcom_test/51690119.txt deleted file mode 100644 index 2e43f51e6eff7268763a88f9904523ccf68b671e..0000000000000000000000000000000000000000 --- a/funcom_test/51690119.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void mergeKill(Set kill) { - grow(kill.size()); - big_loop: - for (Iterator i = kill.iterator(); i.hasNext(); ) { - LocalInfo li2 = (LocalInfo) i.next(); - if (!containsSlot(li2.getSlot())) - add(li2.getLocalInfo()); - } - } - COM: <s> add the slots in kill to the current set unless there are </s> - diff --git a/funcom_test/51690136.txt b/funcom_test/51690136.txt deleted file mode 100644 index 3e46ecb220288ba7761b6c75a628a444f4843de0..0000000000000000000000000000000000000000 --- a/funcom_test/51690136.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void mergeGenKill(Collection gen, SlotSet kill) { - grow(gen.size()); - big_loop: - for (Iterator i = gen.iterator(); i.hasNext(); ) { - LocalInfo li2 = (LocalInfo) i.next(); - if (!kill.containsSlot(li2.getSlot())) - add(li2.getLocalInfo()); - } - } - COM: <s> add the variables in gen to the current set unless there are </s> - diff --git a/funcom_test/51690940.txt b/funcom_test/51690940.txt deleted file mode 100644 index c001cf3a87992997e9785af20ad0425f1707cf25..0000000000000000000000000000000000000000 --- a/funcom_test/51690940.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean containsMatchingLoad(CombineableOperator comb) { - Operator combOp = (Operator) comb; - if (comb.getLValue().matches(this)) { - if (subsEquals((Operator) comb.getLValue())) - return true; - } - for (int i=0; i < subExpressions.length; i++) { - if (subExpressions[i].containsMatchingLoad(comb)) - return true; - } - return false; - } - COM: <s> checks if this expression contains a matching load that matches the </s> - diff --git a/funcom_test/51728031.txt b/funcom_test/51728031.txt deleted file mode 100644 index 5707e3a79b0b7f67baaeb71ce5df20c2aafce895..0000000000000000000000000000000000000000 --- a/funcom_test/51728031.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void guessRules(RuleList rules, boolean nonBranchingOnly) { - for (int i = 0; i < children.size(); i++) - getChild(i).guessRules(rules, nonBranchingOnly); - - if (compositor != null) - return; - - if (nonBranchingOnly && this.isBranching()) return; - - guessCompositionRule(rules); - } - COM: <s> calls itself recursively on the children nodes then </s> - diff --git a/funcom_test/51728282.txt b/funcom_test/51728282.txt deleted file mode 100644 index b2e000c1ce1ac971013d37e7eee95d86ec33256d..0000000000000000000000000000000000000000 --- a/funcom_test/51728282.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: protected void checkVariable() throws ConstInsteadOfVarException { - if (getVariable() instanceof Const) - throw new ConstInsteadOfVarException("The symbols " + Lambda.SYMBOL + ", " + Exists.SYMBOL + ", and " + ForAll.SYMBOL + " must be followed by a variable, but '" + getVariable() + "' is a constant."); - } - COM: <s> a convenience method for derived classes that throws the </s> - diff --git a/funcom_test/51728301.txt b/funcom_test/51728301.txt deleted file mode 100644 index 0fc15092af6d43dc86a8398743119a9baa77c4a9..0000000000000000000000000000000000000000 --- a/funcom_test/51728301.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public IdentifierTyper cloneTyper() { - IdentifierTyper ret = new IdentifierTyper(); - for (int j = 0; j < entries.size(); j++) { - Entry e = (Entry)entries.get(j); - ret.addEntry(e.start, e.end, e.var, e.type, e.descr); - } - return ret; - } - COM: <s> clones this instance </s> - diff --git a/funcom_test/51728322.txt b/funcom_test/51728322.txt deleted file mode 100644 index 86578c90ff505e1502e7c0e53bce02d06a7ac56e..0000000000000000000000000000000000000000 --- a/funcom_test/51728322.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean hasBeenStarted() { - for (int i = 0; i < size(); i++) { - ExerciseGroup g = getGroup(i); - for (int j = 0; j < g.size(); j++) { - Exercise e = g.getItem(j); - if (e.hasBeenStarted()) - return true; - } - } - return false; - } - COM: <s> gets whether any exercise in the file has been started </s> - diff --git a/funcom_test/51728324.txt b/funcom_test/51728324.txt deleted file mode 100644 index ddfcead3ff2f02544a0cd15c2e8d8147e2b90716..0000000000000000000000000000000000000000 --- a/funcom_test/51728324.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean hasBeenCompleted() { - for (int i = 0; i < size(); i++) { - ExerciseGroup g = getGroup(i); - for (int j = 0; j < g.size(); j++) { - Exercise e = g.getItem(j); - if (!e.isDone()) - return false; - } - } - return true; - } - COM: <s> gets whether every exercise in the file has been successfully completed </s> - diff --git a/funcom_test/51728328.txt b/funcom_test/51728328.txt deleted file mode 100644 index bd2c21747e2be13213f6cced707502df923740b4..0000000000000000000000000000000000000000 --- a/funcom_test/51728328.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public List exercises() { - List l = new Vector(); - for (int i = 0; i < size(); i++) { - ExerciseGroup g = getGroup(i); - for (int j = 0; j < g.size(); j++) { - Exercise e = g.getItem(j); - l.add(e); - } - } - return l; - } - COM: <s> gets a list of all of the exercises in the file </s> - diff --git a/funcom_test/51728448.txt b/funcom_test/51728448.txt deleted file mode 100644 index a762f2bc22b208f1c065db262d3ad0f50ed53aa8..0000000000000000000000000000000000000000 --- a/funcom_test/51728448.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private ArrayList getFunAppArgs(Expr expr) { - ArrayList ret = new ArrayList(); - expr = expr.stripOutermostParens(); - while (expr instanceof FunApp) { - Expr func = ((FunApp)expr).getFunc(); - Expr arg = ((FunApp)expr).getArg(); - ret.add(arg.stripOutermostParens()); - expr = func.stripOutermostParens(); - } - return ret; - } - COM: <s> this method returns the arguments striped of parens </s> - diff --git a/funcom_test/51790601.txt b/funcom_test/51790601.txt deleted file mode 100644 index 13ba73805d53b0fb61eb83865c765a521333dc25..0000000000000000000000000000000000000000 --- a/funcom_test/51790601.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void createLocalCache(String localDirName) throws FlickrDesktopException { - File dir = new File(localDirName); - if (!dir.mkdir()) - throwFlickrDesktopException("Could not create local cache"); - try { - localDirName = dir.getCanonicalPath(); - } catch (IOException e) { - // Should not happen as mkdir succeeded - e.printStackTrace(); - throwFlickrDesktopException("IOException thrown in cache constructor"); - } - createIconDirectory(localDirName); - } - COM: <s> check for or create cache and icon directories </s> - diff --git a/funcom_test/51790656.txt b/funcom_test/51790656.txt deleted file mode 100644 index 82be43e8ab81c2cb45fcac4f59c3d6ccf87bddef..0000000000000000000000000000000000000000 --- a/funcom_test/51790656.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Image getImage() { - String fileName = getFilename(); - File imageFile = new File(fileName); - if (!imageFile.exists()) { - return null; - } - FileInputStream fis = null; - try { - fis = new FileInputStream(imageFile); - } catch (FileNotFoundException e) { - // Can't happen as this was just checked - e.printStackTrace(); - } - return new Image(Display.getCurrent(), fis); - } - COM: <s> return the image stored at the i position in the photo list </s> - diff --git a/funcom_test/51791367.txt b/funcom_test/51791367.txt deleted file mode 100644 index 975073e9395d823572ed69aafae039c5dd66ddeb..0000000000000000000000000000000000000000 --- a/funcom_test/51791367.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private InputStream getImageAsStream(String suffix) throws IOException { - StringBuffer buffer = getBaseImageUrl(); - buffer.append(suffix); - URL url = new URL(buffer.toString()); - HttpURLConnection conn = (HttpURLConnection) url.openConnection(); - conn.connect(); - return conn.getInputStream(); - } - COM: <s> get an image as a stream </s> - diff --git a/funcom_test/51791511.txt b/funcom_test/51791511.txt deleted file mode 100644 index 01353cbe1037044c5312e9cf33f95213a087aaf6..0000000000000000000000000000000000000000 --- a/funcom_test/51791511.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void initializeContactList() throws FlickrDesktopException { - SortedSet<Contact> usercontacts = this.flickrSystem.getPublicContacts(); - this.contactList.add(this.flickrSystem.getCurrentUserName()); - for (Iterator<Contact> iter = usercontacts.iterator(); iter.hasNext();) { - Contact friend = iter.next(); - this.contacts.put(friend.getUsername(), friend); - this.contactList.add(friend.getUsername()); - } - } - COM: <s> sets the contents of the users combo box to the current users contacts </s> - diff --git a/funcom_test/51793342.txt b/funcom_test/51793342.txt deleted file mode 100644 index 0f0b9585b1a51c8cd62e676a9a2df096ed2d5bef..0000000000000000000000000000000000000000 --- a/funcom_test/51793342.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean contains(short value) { - Entry tab[] = table; - for (int i = tab.length; i-- > 0;) { - for (Entry e = tab[i]; e != null; e = e.next) { - if (e.value==value) { - return true; - } - } - } - return false; - } - COM: <s> p tests if some key maps into the specified value in this hashtable </s> - diff --git a/funcom_test/51793350.txt b/funcom_test/51793350.txt deleted file mode 100644 index 55dc281cd039ada44cb50e1ce4c3efde05ceb0ce..0000000000000000000000000000000000000000 --- a/funcom_test/51793350.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean containsKey(short key) { - Entry tab[] = table; - int hash = key; - int index = (hash & 0x7FFFFFFF) % tab.length; - for (Entry e = tab[index]; e != null; e = e.next) { - if (e.hash == hash) { - return true; - } - } - return false; - } - COM: <s> p tests if the specified object is a key in this hashtable </s> - diff --git a/funcom_test/51825348.txt b/funcom_test/51825348.txt deleted file mode 100644 index 64766102988c3380f12eb3fa55dacd99bfb475a2..0000000000000000000000000000000000000000 --- a/funcom_test/51825348.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void load(String dbase) throws DbrcLoadException { - String homePath = ""; - String dbrcFilePath = ""; - - //get the "HOME" environoment variable - homePath = System.getProperty("user.home"); - - dbrcFilePath = homePath + "/" + DBRC_FILE_NAME; - try { - loadHelper(dbase, dbrcFilePath); - } catch (DbrcLoadException e) { - throw new DbrcLoadException(e.getMessage(), e.dbase, e.dbrcFilePath, e); - } - } - COM: <s> this function looks for the </s> - diff --git a/funcom_test/51825371.txt b/funcom_test/51825371.txt deleted file mode 100644 index cd2ddb2d27c26c675917e1fda690df38abe9d214..0000000000000000000000000000000000000000 --- a/funcom_test/51825371.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - - String str = (host == null) ? "<null>" : host; - str += " " + ((user == null) ? "<null>" : user); - str += " " + ((pwd == null) ? "<null>" : pwd); - str += " " + ((db == null) ? "<null>" : db); - - return str; - } - COM: <s> this function returns a string containing the host user pwd and db variables </s> - diff --git a/funcom_test/5250622.txt b/funcom_test/5250622.txt deleted file mode 100644 index 2061fb4e0a841e14cf64b1b6fc69f288eb84ee29..0000000000000000000000000000000000000000 --- a/funcom_test/5250622.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void execute() { - for (int i = 0; i < this.unitList.size(); i++) { - if (!this.unitList.get(i).build() - && this.unitList.get(i).isJobFinished()) { - this.unitList.remove(i); - i--; - } - } - } - COM: <s> call the building logic for all builder in the list </s> - diff --git a/funcom_test/5250671.txt b/funcom_test/5250671.txt deleted file mode 100644 index 049991689791dbf43490d00b01ba2191399fd50f..0000000000000000000000000000000000000000 --- a/funcom_test/5250671.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addSelection(final Selectable result) { - - if (!multiSelection) { - this.clearSelection(); - } - if (!this.selectionList.contains(result)) { - this.selectionList.add(result); - result.setSelected(true); - } - GuiManager.getInstance().updateSelection(selectionList); - } - COM: <s> add a list of unit to the current selection </s> - diff --git a/funcom_test/5250675.txt b/funcom_test/5250675.txt deleted file mode 100644 index 8d6c57996f703761ba5129c3cf5a8594a794e91b..0000000000000000000000000000000000000000 --- a/funcom_test/5250675.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void clearSelection() { - if (hasSelected()) { - multiSelection = false; - for (Selectable select : selectionList) { - select.setSelected(false); - } - this.selectionList.clear(); - // TODO use listener to update gui - GuiManager.getInstance().updateSelection(selectionList); - } - } - COM: <s> clean all unit in selection list </s> - diff --git a/funcom_test/5269013.txt b/funcom_test/5269013.txt deleted file mode 100644 index a78db343e8b7b5195888525cec2b28067571d82b..0000000000000000000000000000000000000000 --- a/funcom_test/5269013.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void removeTriggers( long botId ) { - try { - - scheduler.deleteJob( Long.toString(botId), "ImportalJobs"); - log.debug("Removed triggers for Bot [" + botId + "]"); - - } catch (Exception e) { - log.error("Failed to remove trigger(s) for Bot [" + botId + "]", e); - } - } - COM: <s> this method removes all triggers for a given bot </s> - diff --git a/funcom_test/5269066.txt b/funcom_test/5269066.txt deleted file mode 100644 index f4420b55fe31df8c9e49743b935560afbf42dc8d..0000000000000000000000000000000000000000 --- a/funcom_test/5269066.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ModelAndView stopBotletGateway( HttpServletRequest request, HttpServletResponse response ) { - - long id = Long.parseLong(request.getParameter("gatewayId")); - BotletGatewayConfiguration gatewayConfig = botletGatewayConfigDao.get(id); - try { - BotletGatewayServer.stop(gatewayConfig.getPort()); - } catch ( IOException ex ) { - throw new RuntimeException(ex); - } - return new ModelAndView("redirect:/botlet_gateway/list.state"); - } - COM: <s> stop a selected botlet gateway </s> - diff --git a/funcom_test/5269080.txt b/funcom_test/5269080.txt deleted file mode 100644 index 88f9a10b87edd0c5198b02d8c608b07071dadd70..0000000000000000000000000000000000000000 --- a/funcom_test/5269080.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ModelAndView logoutBot( HttpServletRequest request, HttpServletResponse response ) { - - BotConfigRequestMapper bcrm = new BotConfigRequestMapper(); - long id = Long.parseLong(request.getParameter(bcrm.getIdKey())); - - BotManager.logout( id ); - - return new ModelAndView("redirect:/bot/list.state"); - } - COM: <s> sign out a selected bot instance </s> - diff --git a/funcom_test/5269121.txt b/funcom_test/5269121.txt deleted file mode 100644 index 6b5d11cc1c171fed6c4284670946fc7f64e9e75a..0000000000000000000000000000000000000000 --- a/funcom_test/5269121.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void addToHistory( FeedHistoryEntry historyEntry ) { - if ( history.size() >= entryHistorySize ) { - // history is full, so we remove the oldest entry (which is stored at the front) - history.removeFirst(); - } - // add the new entry to the end of the history list - history.addLast(historyEntry); - - // sort the entries, so that older entries are listed first - Collections.sort(history, new FeedHistoryComparator()); - } - COM: <s> add the entry supplied to the history </s> - diff --git a/funcom_test/5269122.txt b/funcom_test/5269122.txt deleted file mode 100644 index 925aa802b9adc16da4458c496ac2b8ebe3bd8fe4..0000000000000000000000000000000000000000 --- a/funcom_test/5269122.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void sendHistory( String recipient, String botletSessionId ) { - // latest entries are stored at the end in the history - for ( FeedHistoryEntry entry : history ) { - try { - Set<MessageProperty> properties = getMessageProperties(entry, botletSessionId); - BotUtils.sendToContact(getConnection(), recipient, toJSON(entry), properties); - } catch ( Throwable t ) { - log.error("Could not send feed history to " + recipient, t); - } - } - } - COM: <s> send all history entries to the recipient supplied </s> - diff --git a/funcom_test/5269174.txt b/funcom_test/5269174.txt deleted file mode 100644 index 82ef78993891175ac3877f8fc1bb8d9295aa2291..0000000000000000000000000000000000000000 --- a/funcom_test/5269174.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean isAuthorized( String address ) { - - if ( !getConfiguration().getRestricted() ) - return true; - - String user = StringUtils.parseBareAddress(address); - - // check the access filters - Set<String> accessFilters = getConfiguration().getAccessFilters(); - for ( String filter : accessFilters ) { - if ( Pattern.matches(filter, user) ) { - return true; - } - } - return false; - } - COM: <s> check whether the user with the address supplied is authorized to communicate </s> - diff --git a/funcom_test/5329643.txt b/funcom_test/5329643.txt deleted file mode 100644 index 50cccaf7f99ce9dd8c17987112453631a4260052..0000000000000000000000000000000000000000 --- a/funcom_test/5329643.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void index(Lesson lesson) { - try { - IndexWriter indexWriter = new IndexWriter(ramDirectory, - new IndexWriterConfig(Version.LUCENE_32, analyzer)); - for (Card card : lesson.getCards()) { - addCard(indexWriter, card); - } - indexWriter.optimize(); - indexWriter.close(); - } catch (IOException e) { - LOGGER.log(Level.SEVERE, null, e); - } - } - COM: <s> method is indexing all cards of a lesson used when opening a lesson </s> - diff --git a/funcom_test/5329645.txt b/funcom_test/5329645.txt deleted file mode 100644 index f60833fd47af73f34306b2372f3b4902838f69c3..0000000000000000000000000000000000000000 --- a/funcom_test/5329645.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void index(Card card) { - try { - IndexWriter indexWriter = new IndexWriter(ramDirectory, - new IndexWriterConfig(Version.LUCENE_32, analyzer)); - addCard(indexWriter, card); - indexWriter.optimize(); - indexWriter.close(); - } catch (IOException e) { - LOGGER.log(Level.SEVERE, null, e); - } - } - COM: <s> method to index a single new card or index changes of a card </s> - diff --git a/funcom_test/5329667.txt b/funcom_test/5329667.txt deleted file mode 100644 index 20b18061f0cb6a292ddbce1dbc92159ccbc75f6e..0000000000000000000000000000000000000000 --- a/funcom_test/5329667.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberOfCards() { - int numberOfCards = unlearnedBatch.getNumberOfCards(); - numberOfCards += ultraShortTermList.size(); - numberOfCards += shortTermList.size(); - for (LongTermBatch longTermBatch : longTermBatches) { - numberOfCards += longTermBatch.getNumberOfCards(); - } - return numberOfCards; - } - COM: <s> returns the total number of cards of this lesson </s> - diff --git a/funcom_test/5329678.txt b/funcom_test/5329678.txt deleted file mode 100644 index fdce0da41acf292c0e19dea444614c9a09395c06..0000000000000000000000000000000000000000 --- a/funcom_test/5329678.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void trim() { - for (int i = longTermBatches.size() - 1; i >= 0; i--) { - LongTermBatch longTermBatch = longTermBatches.get(i); - if (longTermBatch.getNumberOfCards() == 0) { - longTermBatches.remove(i); - } else { - return; - } - } - } - COM: <s> removes empty longterm batches at the end of this lesson </s> - diff --git a/funcom_test/5329764.txt b/funcom_test/5329764.txt deleted file mode 100644 index 78666af76224adabca20656071de1a3d725a0bc9..0000000000000000000000000000000000000000 --- a/funcom_test/5329764.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setLineWrap(boolean lineWrap) { - lineWrapping = lineWrap; - frontSideTextArea.setLineWrap(lineWrap); - reverseSideTextArea.setLineWrap(lineWrap); - if (!lineWrap) { - reverseSideTextArea.setPreferredSize(null); - frontSideTextArea.setPreferredSize(null); - setPreferredSize(null); - } - } - COM: <s> determines if the renderer should automatically line wrap </s> - diff --git a/funcom_test/5329867.txt b/funcom_test/5329867.txt deleted file mode 100644 index c90dda495424f2b7e3cc4a3194d1c8bc22a17595..0000000000000000000000000000000000000000 --- a/funcom_test/5329867.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setCard(Card card) { - PaukerFrame.fillTextComponentWithCardSide(card.getFrontSide(), - frontSideTextArea, true); - PaukerFrame.fillTextComponentWithCardSide(card.getReverseSide(), - reverseSideTextArea, true); - - // remove initial undo - undoManager.discardAllEdits(); - undoButton.setEnabled(false); - undoListButton.setEnabled(false); - } - COM: <s> sets the card to edit </s> - diff --git a/funcom_test/5330073.txt b/funcom_test/5330073.txt deleted file mode 100644 index 1c40c0c8b6372242d7c385dd68f9ebfb6ba1e37a..0000000000000000000000000000000000000000 --- a/funcom_test/5330073.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void reset() { - editCardPanel.reset(); - editCardPanel.setNextFocusComponent(okButton); - similarCardsListModel.clear(); - similarCardsList.setLineWrapping(paukerFrame.isLineWrapping()); - batchListCellRenderer.setLineWrap(paukerFrame.isLineWrapping()); - setLocationRelativeTo(paukerFrame); - } - COM: <s> resets this dialog so that it can be used again </s> - diff --git a/funcom_test/5330128.txt b/funcom_test/5330128.txt deleted file mode 100644 index 23d4442dd0acf0fa9a0e22495ced5627100dc965..0000000000000000000000000000000000000000 --- a/funcom_test/5330128.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void refreshExpiration() { - expiredCards.clear(); - long currentTime = System.currentTimeMillis(); - for (Card card : cards) { - long learnedTime = card.getLearnedTimestamp(); - long diff = currentTime - learnedTime; - if (diff > expirationTime) { - expiredCards.add(card); - } - } - } - COM: <s> recalculates the batch of expired cards </s> - diff --git a/funcom_test/5362512.txt b/funcom_test/5362512.txt deleted file mode 100644 index 3bd070192d78269e81901519c929920ba4cbedb2..0000000000000000000000000000000000000000 --- a/funcom_test/5362512.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Component createControlPanel() { - cardLayout = new CardLayout(); - controlPanel = new JPanel(cardLayout); - button = new JButton("Run"); - button.addActionListener(this); - controlPanel.add(button, "button"); - progressBar = new JProgressBar(); - progressBar.setStringPainted(true); - controlPanel.add(progressBar, "progressBar"); - return controlPanel; - } - COM: <s> create the south panel </s> - diff --git a/funcom_test/5362514.txt b/funcom_test/5362514.txt deleted file mode 100644 index 4d2403f33cb49a3451b3fcb74bd9dcea5038e227..0000000000000000000000000000000000000000 --- a/funcom_test/5362514.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public T manufacture() throws ManufacturingException { - T object = null; - try { - object = factoryClass.newInstance(); - - } catch (InstantiationException e) { - throw new ManufacturingException("Unable to instantiate object", e); - } catch (IllegalAccessException e) { - throw new ManufacturingException("Unable to access object", e); - } - - return object; - } - COM: <s> maunfacture an object of type t or a subclass thereof </s> - diff --git a/funcom_test/5362559.txt b/funcom_test/5362559.txt deleted file mode 100644 index be89205125201cbc5d75a2e98476c5f3b41f4cf2..0000000000000000000000000000000000000000 --- a/funcom_test/5362559.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void addListener(EventListener listener) { - if (listenerClass.isAssignableFrom(listener.getClass())) { - getEventTopicDispatcher().addListener(listener); - } else { - throw new EventBusException(listener.getClass() - + " listeners are not assignable from " + eventClass.getName()); - } - } - COM: <s> adds a listener to the event bus topic </s> - diff --git a/funcom_test/5362609.txt b/funcom_test/5362609.txt deleted file mode 100644 index b655cd03a64bfcb0b11aab445703c7ae66977b0d..0000000000000000000000000000000000000000 --- a/funcom_test/5362609.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public Callable remove() { - - // Wait if there is nothing in the queue - synchronized (queue) { - while (queue.isEmpty()) { - try { - - queue.wait(); - } catch (InterruptedException e) { - throw new IllegalStateException("unable to remove item from queue" - + e); - } - } - - // Remove the next item from the queue - return queue.remove(0); - } - } - COM: <s> remove the next runnable from the event queue from processing </s> - diff --git a/funcom_test/5439420.txt b/funcom_test/5439420.txt deleted file mode 100644 index 9a79163494adfc6f7cc54adea9c33a178dafc9d4..0000000000000000000000000000000000000000 --- a/funcom_test/5439420.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void init(I_JoServletContextPeer aPeer) { - this.peer = aPeer; - this.host = peer.getHost(); - this.factory = Recycler.getNamedRecycler(host.getName()); - this.service = host.getService(); - this.logPrefix = "[" + peer.getName() + "]: "; - this.log = Log.getLog(host.getName()); - } - COM: <s> initializes this context </s> - diff --git a/funcom_test/5439461.txt b/funcom_test/5439461.txt deleted file mode 100644 index 0736346f0a0d30063e320e290aa3444de0b28244..0000000000000000000000000000000000000000 --- a/funcom_test/5439461.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public InputStream getResourceAsStream(String aURI, Locale aLocale) { - try { - URL aURL = getResource(aURI, aLocale); - if (aURL == null) { - return null; - } - return aURL.openStream(); - } - catch (Exception e) { - // ignore - } - return null; - } - COM: <s> conveniencemethod that returns an code inputstream code for a resource </s> - diff --git a/funcom_test/5439464.txt b/funcom_test/5439464.txt deleted file mode 100644 index db99b6bd1c24621f42698acf75664d9f7b818aac..0000000000000000000000000000000000000000 --- a/funcom_test/5439464.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public InputStream getResourceAsStream(String aURI) { - try { - URL aURL = getResource(aURI); - if (aURL == null) { - return null; - } - // return the cached version (rik) - return service.getFileCache().getFileProxy(aURL).getInputStream(); - } - catch (Throwable t) { - // ignore - } - return null; - } - COM: <s> conveniencemethod that returns an code inputstream code to a </s> - diff --git a/funcom_test/5439481.txt b/funcom_test/5439481.txt deleted file mode 100644 index bdb2e247fae64a2a890a899f38bce493085de14e..0000000000000000000000000000000000000000 --- a/funcom_test/5439481.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ServletOutputStream getOutputStream() throws IOException { - if (gotWriter) throw new IllegalStateException(localStrings.getString("illegal_getoutputstream_call")); - ServletOutputStream internalOutputStream = getInternalOutputStream(); - if (!gotOutputStream) { - servletOutputStream.setBufferSize(bufferSize); - gotOutputStream = true; - } - return internalOutputStream; - } - COM: <s> returns a code servlet output stream code </s> - diff --git a/funcom_test/5439489.txt b/funcom_test/5439489.txt deleted file mode 100644 index 9a4e1d96160ad9faf33bcce9550353d4c40b9f0e..0000000000000000000000000000000000000000 --- a/funcom_test/5439489.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public PrintWriter getWriter() throws IOException { - if (gotOutputStream) throw new IllegalStateException(localStrings.getString("illegal_getwriter_call")); - if (!gotWriter) { - this.writer = new JoWriter(getInternalOutputStream(), getCharacterEncoding()); - servletOutputStream.setBufferSize(bufferSize); - gotWriter = true; - } - return this.writer; - } - COM: <s> returns a code print writer code </s> - diff --git a/funcom_test/5439520.txt b/funcom_test/5439520.txt deleted file mode 100644 index 2d2e84055e22ef1e9ecd28c1671a68faf73a7c99..0000000000000000000000000000000000000000 --- a/funcom_test/5439520.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setLocale(Locale locale) { - if (locale != null) { - this.locale = locale; - String language = this.locale.getLanguage(); - if (language.length() > 0) header.setHeader(C_HTTP_ContentLanguage, language); - String encoding = peer.getEncoding(this.locale); - if (encoding != null) setCharacterEncoding(encoding); - } - } - COM: <s> sets the locale </s> - diff --git a/funcom_test/5439548.txt b/funcom_test/5439548.txt deleted file mode 100644 index e4d2da609b01bd2fdaf3c72aad78b0cac0004221..0000000000000000000000000000000000000000 --- a/funcom_test/5439548.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getCharacterEncoding() { - String encoding = header.getHeader(C_HTTP_ContentType); - if (encoding == null) return DEFAULT_CHARENCODING; - int i = encoding.indexOf('='); - if (i == -1) return DEFAULT_CHARENCODING; - if (encoding.length() > i + 1) return encoding.substring(i + 1); - return DEFAULT_CHARENCODING; - } - COM: <s> return the encoding of the current content type </s> - diff --git a/funcom_test/5439604.txt b/funcom_test/5439604.txt deleted file mode 100644 index 1bc8500d93345f5bf495b9fc7e73c69bdfad8699..0000000000000000000000000000000000000000 --- a/funcom_test/5439604.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void setAttribute(String name, Object value) { - Object oldValue = this.attributes.put(name, value); - if (oldValue == null) listenerSupport.fireServletContextAttributeAdded(servletContext, name, value); - else listenerSupport.fireServletContextAttributeReplaced(servletContext, name, oldValue); - } - COM: <s> sets an attribute </s> - diff --git a/funcom_test/5439616.txt b/funcom_test/5439616.txt deleted file mode 100644 index 75f47ee242a5f0e21c63b06fd1a5d19bfadb5b18..0000000000000000000000000000000000000000 --- a/funcom_test/5439616.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Principal getPrincipal(String aUsername) { - Principal thePrincipal = null; - - try { - HashMap thePrincipals = getPrincipals(); - - thePrincipal = (Principal)thePrincipals.get(aUsername); - } - catch (Exception e) { - if (Log.isLog(myService.getName())) { - Log.getLog(myService.getName()).log(e); - } - } - - return thePrincipal; - } - COM: <s> returns a code principal code for a username </s> - diff --git a/funcom_test/5439643.txt b/funcom_test/5439643.txt deleted file mode 100644 index 5be284f7d5600f869170d780d917fc26a0a72517..0000000000000000000000000000000000000000 --- a/funcom_test/5439643.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean match(String aMethod, String aURI) { - for (Iterator it = webResourceCollections.entrySet().iterator(); it.hasNext();) { - I_JoWebResourceCollection collection = (I_JoWebResourceCollection) ((Map.Entry) it.next()).getValue(); - if (collection.match(aMethod, aURI)) { - return true; - } - } - return false; - } - COM: <s> indicates whether a code http servlet request code </s> - diff --git a/funcom_test/5439660.txt b/funcom_test/5439660.txt deleted file mode 100644 index 47d499ab4c6e67ff65e0dab960b70f9c31474260..0000000000000000000000000000000000000000 --- a/funcom_test/5439660.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public I_JoSecurityRole getSecurityRole() { - if (this.securityRole == null) { - if (roleLink != null) - this.securityRole = (model.getServletContextPeer()).getSecurityRole(roleLink); - else - this.securityRole = (model.getServletContextPeer()).getSecurityRole(roleName); - } - return this.securityRole; - } - COM: <s> returns the correspondig security role </s> - diff --git a/funcom_test/5439749.txt b/funcom_test/5439749.txt deleted file mode 100644 index 3bfbb87e1caa442e34902bf3315372b150cf428a..0000000000000000000000000000000000000000 --- a/funcom_test/5439749.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void run() { - final int result = JOptionPane.showConfirmDialog(jComponent, localStrings.getString("wartransferhandler_copy_question"), localStrings.getString("wartransferhandler_copy_title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE); - new Thread(new Deployer(jComponent, file, result), "DragAndDropDeployer").start(); - } - COM: <s> when an object implementing interface code runnable code is used </s> - diff --git a/funcom_test/5439853.txt b/funcom_test/5439853.txt deleted file mode 100644 index 5c67b201ad46ce483b70ee060b490d2377ff705f..0000000000000000000000000000000000000000 --- a/funcom_test/5439853.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void addResourceLoader(Locale aLocale, URL aResourceRoot) { - URL[] theURLs = new URL[1]; - theURLs[0] = aResourceRoot; - ClassLoader theResourceLoader = new URLClassLoader(theURLs); - this.localizedResourceLoaders.put(aLocale, theResourceLoader); - } - COM: <s> adds a localized document root </s> - diff --git a/funcom_test/5439900.txt b/funcom_test/5439900.txt deleted file mode 100644 index 0fbdd13a1e3df323a70737cfdd5d0cc6f3998116..0000000000000000000000000000000000000000 --- a/funcom_test/5439900.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private JMenuItem createLafMenuItem(JMenu menu, String label, char mnemonic, String laf) { - JMenuItem mi = menu.add(new JRadioButtonMenuItem(label)); - lafMenuGroup.add(mi); - if (mnemonic != 0) mi.setMnemonic(mnemonic); - mi.addActionListener(new ChangeLookAndFeelAction(this, laf)); - return mi; - } - COM: <s> creates a jradio button menu item for the look and feel menu </s> - diff --git a/funcom_test/5439994.txt b/funcom_test/5439994.txt deleted file mode 100644 index 07e38fe5c4d0ad17514b7d9ec0ac84f421dbb7a0..0000000000000000000000000000000000000000 --- a/funcom_test/5439994.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public I_JoSession newSession() throws FactoryException { - int theMaxSessions = peer.getMaxSessions(); - if (sessions.size() > theMaxSessions && theMaxSessions >= 0) { - return null; - } - I_JoSession theSession = (I_JoSession) factory.get(C_FactoryKey_Session); - theSession.setSessionContext(this); - return theSession; - } - COM: <s> creates a new session as long as the maximum number of </s> - diff --git a/funcom_test/5440061.txt b/funcom_test/5440061.txt deleted file mode 100644 index abcbfcc12fbb4f1de120d29443adb0e0d3aeba23..0000000000000000000000000000000000000000 --- a/funcom_test/5440061.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String getCookieSessionID() { - Cookie[] cookies = getCookies(); - if (cookies == null || cookies.length == 0) { - return null; - } - for (int i = 0; i < cookies.length; i++) { - if (cookies[i].getName().equals(C_DefaultSessionCookieName)) { - return cookies[i].getValue(); - } - } - return null; - } - COM: <s> try to obtain a session id from the read cookies </s> - diff --git a/funcom_test/5440169.txt b/funcom_test/5440169.txt deleted file mode 100644 index 04bd49c6e3a7d4c961ae30fab5982893462b0b67..0000000000000000000000000000000000000000 --- a/funcom_test/5440169.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Object clone() throws CloneNotSupportedException { - if (this.getParent() instanceof ServletClassLoader) { - ServletClassLoader parentLoader = (ServletClassLoader)((ServletClassLoader)this.getParent()).clone(); - return new ServletClassLoader(this.getURLs(), parentLoader); - } else { - return new ServletClassLoader(this.getURLs(), getParent()); - } - } - COM: <s> returns a clone of this classloader </s> - diff --git a/funcom_test/5440179.txt b/funcom_test/5440179.txt deleted file mode 100644 index 03f2f9be993cc84282dd285051098a9280493d11..0000000000000000000000000000000000000000 --- a/funcom_test/5440179.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void removeObject(Object object) { - removeAllFromMap(object, patternMap); - // Prefix - removeAllFromMap(object, prefixMatchRules); - // Suffix - removeAllFromMap(object, suffixMatchRules); - // Exact - removeAllFromMap(object, exactMatchRules); - // Default - if (defaultObject.equals(object)) defaultObject = null; - } - COM: <s> removes all mappings for a particular object </s> - diff --git a/funcom_test/5440180.txt b/funcom_test/5440180.txt deleted file mode 100644 index 062b3024bba1af3ffa063245adf5a382627db518..0000000000000000000000000000000000000000 --- a/funcom_test/5440180.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void removeAllFromMap(Object object, Map map) { - Iterator it = map.entrySet().iterator(); - while (it.hasNext()) { - Map.Entry e = (Map.Entry)it.next(); - if (e.getValue().equals(object)) { - it.remove(); - } - } - } - COM: <s> removes all mappings from a map for a particular object </s> - diff --git a/funcom_test/5440235.txt b/funcom_test/5440235.txt deleted file mode 100644 index 83450d3dc65c484a79b232a8b07f159a99c529b5..0000000000000000000000000000000000000000 --- a/funcom_test/5440235.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void init(OutputStream out, JoServletResponse response) { - if (out == null) { - throw new NullPointerException(); - } - this.outputStream = out; - this.bufferPos = 0; - this.buffer = null; - this.dataWasWritten = false; - this.bytesWritten = 0; - this.response = response; - this.headersWritten = false; - this.closed = false; - } - COM: <s> initializes this stream </s> - diff --git a/funcom_test/5440247.txt b/funcom_test/5440247.txt deleted file mode 100644 index 4604705e6baedb43d82c8bbe9ae52d1fc6201dec..0000000000000000000000000000000000000000 --- a/funcom_test/5440247.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void write(int c) throws IOException { - dataWasWritten = true; - if (buffer == null) { - if (!headersWritten) writeHeaders(); - outputStream.write(c); - bytesWritten++; - } else { - if (bufferPos >= buffer.length) flushBuffer(); - buffer[bufferPos] = (byte)c; - bufferPos++; - } - } - COM: <s> writes a char </s> - diff --git a/funcom_test/5440266.txt b/funcom_test/5440266.txt deleted file mode 100644 index 9a8ca4d2a43cd904d80ddfe8ffddb8f8eaf803c8..0000000000000000000000000000000000000000 --- a/funcom_test/5440266.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public Enumeration getParameterNames() { - if (modelMatch != null) { - Collection names = new ArrayList(modelMatch.getUri().getParameterNamesSet()); - names.addAll(super.getParameterMap().keySet()); - return Collections.enumeration(names); - } - return super.getParameterNames(); - } - COM: <s> returns all parameternames </s> - diff --git a/funcom_test/5440341.txt b/funcom_test/5440341.txt deleted file mode 100644 index aee47c47fad849b0637c49664a01ffb821915db2..0000000000000000000000000000000000000000 --- a/funcom_test/5440341.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { - Enumeration e = myTag.getAttributeNames(); - - while (e.hasMoreElements()) { - String attributeName = ((String)e.nextElement()).toLowerCase(); - String theName = "com.tagtraum.jo.ssi." + attributeName; - - req.setAttribute(theName, myTag.getAttribute(attributeName)); - } - } - COM: <s> sets the attributes code com </s> - diff --git a/funcom_test/5440379.txt b/funcom_test/5440379.txt deleted file mode 100644 index f5a27ca4e52ad3ffd6101e3599c3642d5d5d8b8a..0000000000000000000000000000000000000000 --- a/funcom_test/5440379.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void init(Parser aParser, I_Element anElement, SSIPage aSSIPage, ServletConfig aServletConfig) throws ServletException { - myParser = aParser; - myElement = anElement; - mySSIPage = aSSIPage; - myServletConfig = aServletConfig; - myServletContext = aServletConfig.getServletContext(); - - myServletContext.log("init: " + getClass() + "/" + myElement); - init(); - } - COM: <s> sets the variables code my parser code code my element code </s> - diff --git a/funcom_test/5440406.txt b/funcom_test/5440406.txt deleted file mode 100644 index a667ad947d367392f2d090b272d0fe4c82884b3b..0000000000000000000000000000000000000000 --- a/funcom_test/5440406.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public I_JoHost getHost(String aHostname) { - if (aHostname == null) { - aHostname = "*"; - } - I_JoHost theHost = (I_JoHost)hosts.get(aHostname); - if (theHost == null) { - // try jokerhost - theHost = (I_JoHost)hosts.get("*"); - } - return theHost; - } - COM: <s> returns a host for a hostname </s> - diff --git a/funcom_test/5440415.txt b/funcom_test/5440415.txt deleted file mode 100644 index f2203b3f0b278b9cba84b91f47f8e10c7afb5451..0000000000000000000000000000000000000000 --- a/funcom_test/5440415.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public I_JoHost getHost(I_JoServletRequest aRequest) { - String theHostname = aRequest.getHeader(C_Http.C_HTTP_Host); - if (theHostname != null) { - int colon; - if ((colon = theHostname.indexOf(':')) != -1) { - theHostname = theHostname.substring(0, colon); - } - } - return getHost(theHostname); - } - COM: <s> returns a host for a request </s> - diff --git a/funcom_test/5440508.txt b/funcom_test/5440508.txt deleted file mode 100644 index baf14cb12ffa4c7774a63aae84ae972a0aed2254..0000000000000000000000000000000000000000 --- a/funcom_test/5440508.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ImageIcon getSmallImageIcon() { - if (smallImageIcon == null) { - try { - URL url = classLoader.getResource(getSmallIcon()); - if (url != null) { - smallImageIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url)); - } - } - catch (Exception e) { - //e.printStackTrace(); - } - } - return smallImageIcon; - } - COM: <s> returns a small icon 16x16 gif or jpg </s> - diff --git a/funcom_test/5440509.txt b/funcom_test/5440509.txt deleted file mode 100644 index ad545ca66ba05d7ddafc4c1ab7f8f2b4126fea38..0000000000000000000000000000000000000000 --- a/funcom_test/5440509.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public ImageIcon getLargeImageIcon() { - if (largeImageIcon == null) { - try { - URL url = classLoader.getResource(getLargeIcon()); - if (url != null) { - largeImageIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url)); - } - } - catch (Exception e) { - //e.printStackTrace(); - } - } - return largeImageIcon; - } - COM: <s> returns a large icon 32x32 gif or jpg </s> - diff --git a/funcom_test/5440598.txt b/funcom_test/5440598.txt deleted file mode 100644 index a25153a0a13d4e6bc11a90c4619f4d3c4595f6dd..0000000000000000000000000000000000000000 --- a/funcom_test/5440598.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void addSecurityRoleRef(I_JoSecurityRoleRef securityRoleRef) { - this.securityRoleRefs.put(securityRoleRef.getRoleName(), securityRoleRef); - if (securityRoleRef.getRoleLink() != null) { - this.securityRoleRefsByLink.put(securityRoleRef.getRoleLink(), securityRoleRef); - } - } - COM: <s> adds a security role reference </s> - diff --git a/funcom_test/5440682.txt b/funcom_test/5440682.txt deleted file mode 100644 index a76505f9717f5424c32ce3501447de81c677fb25..0000000000000000000000000000000000000000 --- a/funcom_test/5440682.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private RealmMapping getRealmMapping() throws NamingException { - if (realmMapping == null) { - Context context = new InitialContext(); - // Get the JBoss security manager from the ENC context - realmMapping = (RealmMapping)context.lookup("java:comp/env/security/realmMapping"); - } - return realmMapping; - } - COM: <s> lazy initialization of realm mapping </s> - diff --git a/funcom_test/5440706.txt b/funcom_test/5440706.txt deleted file mode 100644 index ac2de7e5955c4b5b47006f426c807a78ca4a1a7b..0000000000000000000000000000000000000000 --- a/funcom_test/5440706.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getName() { - if (st == null) { - st = new StringTokenizer(myData, "\\\r\n\t\f \"\'=/", true); - } - if (myName == null) { - myName = skipWhiteSpace(); - - if (myName.equals("/")) { - myName = skipWhiteSpace(); - } - } - return myName; - } - COM: <s> returns the name of this tag </s> - diff --git a/funcom_test/5440720.txt b/funcom_test/5440720.txt deleted file mode 100644 index 3cf3dddf5e2055f27bf7fb52ddcdc930ee8bab7a..0000000000000000000000000000000000000000 --- a/funcom_test/5440720.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void enlargeBuf(int len) { - char[] tmp; - - if (len <= C_Default_BufferSize) { - bufferSize += C_Default_BufferSize; - tmp = new char[bufferSize]; - } else { - bufferSize += len; - tmp = new char[bufferSize]; - } - - System.arraycopy(buf, 0, tmp, 0, buf.length); - - buf = null; // help gc - buf = tmp; - } - COM: <s> enlarges the buffer if necessary </s> - diff --git a/funcom_test/5440742.txt b/funcom_test/5440742.txt deleted file mode 100644 index 6e8333944003d34d990b85a3204feb286defe483..0000000000000000000000000000000000000000 --- a/funcom_test/5440742.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setResourceRef(I_JoServletContextPeer aPeer, Node aNode) { - if (aNode == null) return; - if (Log.isLog(host.getName())) { - log.log("WARNING: Resource references are not supported yet.", C_Log.ERROR); - } - } - COM: <s> registers a resource ref </s> - diff --git a/funcom_test/5440773.txt b/funcom_test/5440773.txt deleted file mode 100644 index 1a1620624a4c1aacd2c21af1dd20a134d2b2deaf..0000000000000000000000000000000000000000 --- a/funcom_test/5440773.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public PageContext getPageContext(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) { - PageContextImpl context = new PageContextImpl(); - context.initialize(servlet, request, response, errorPageURL, needsSession, bufferSize, autoFlush); - return context; - } - COM: <s> returns a page context </s> - diff --git a/funcom_test/5440799.txt b/funcom_test/5440799.txt deleted file mode 100644 index 6f42cbeb06270ccf63b677c7b75b7e52fd139f95..0000000000000000000000000000000000000000 --- a/funcom_test/5440799.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { - if (!isPrecompile((HttpServletRequest)request)) { - super.service(request, response); - } else { - try { - preload(); - } catch (FactoryException fe) { - throw new ServletException(fe); - } - } - } - COM: <s> executes the service method of the jsp </s> - diff --git a/funcom_test/5440858.txt b/funcom_test/5440858.txt deleted file mode 100644 index 4204684c1efd65a16c1c7da9e6caa23830a370fb..0000000000000000000000000000000000000000 --- a/funcom_test/5440858.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setScratchDir(String scratchDirName) { - // make sure there are no single dots in there. - scratchDirName = StringHelper.replace(scratchDirName, "/./", "/"); - scratchDirName = StringHelper.replace(scratchDirName, "\\.\\", "\\"); - setScratchDir(new File(scratchDirName)); - } - COM: <s> sets the scratchdir </s> - diff --git a/funcom_test/5440996.txt b/funcom_test/5440996.txt deleted file mode 100644 index 0f5a2a2019ca59a1e1b163571f3d164ff55a0f24..0000000000000000000000000000000000000000 --- a/funcom_test/5440996.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void writePageEnd(JavaCodeWriter out) throws IOException { - for (int i=0; i<writeCharacterSectionMethods.size(); i++) { - WriteCharacterSectionMethod writeCharacterSectionMethod = (WriteCharacterSectionMethod)writeCharacterSectionMethods.get(i); - writeCharacterSectionMethod.writeMethod(out); - } - out.write("}"); - COM: <s> writes the page end and everything else that still need to be written </s> - diff --git a/funcom_test/5441019.txt b/funcom_test/5441019.txt deleted file mode 100644 index 9b1d21c1eaebf8df7e0f275e87e97a296232d338..0000000000000000000000000000000000000000 --- a/funcom_test/5441019.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setId(String anID) { - if (idSet) { - throw new IllegalStateException(localStrings.getString("session_id_already_set")); - } - id = anID; - sessionContext.addSession(this); - setMaxInactiveInterval(sessionContext.getDefaultMaxInactiveInterval()); - } - COM: <s> sets the identifier of this session </s> - diff --git a/funcom_test/5441023.txt b/funcom_test/5441023.txt deleted file mode 100644 index 3f4cc9e8b3a5285af6250e52367a589ec52684b8..0000000000000000000000000000000000000000 --- a/funcom_test/5441023.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public HttpSessionContext getSessionContext() { - checkValidity(); - return new HttpSessionContext() { - /** - * Returns null. - */ - public HttpSession getSession(String sessionId) { - return null; - } - - /** - * Returns an empty enumeration. - */ - public Enumeration getIds() { - return new Vector().elements(); - } - }; - } - COM: <s> returns an empty http session context </s> - diff --git a/funcom_test/5441101.txt b/funcom_test/5441101.txt deleted file mode 100644 index 3b4aee3f83a9b05ef2ad897ae3701e4e8db6558a..0000000000000000000000000000000000000000 --- a/funcom_test/5441101.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int doStartTag() throws JspTagException { - try { - if (locale == null) { - locale = pageContext.getResponse().getLocale(); - } - - pageContext.getOut().write(DateFormat.getTimeInstance(style, locale).format(new Date())); - } catch (IOException ioe) { - throw new JspTagException(ioe.toString()); - } - - return SKIP_BODY; - } - COM: <s> writes current time with the locale of the response and the chosen style </s> - diff --git a/funcom_test/5441132.txt b/funcom_test/5441132.txt deleted file mode 100644 index 267edf21fbd32c99552af1b6e0c0ecffdd9324a2..0000000000000000000000000000000000000000 --- a/funcom_test/5441132.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int doAfterBody() throws JspException { - currentRepetition++; - if (currentRepetition < repetitions) return EVAL_BODY_TAG; - try { - getBodyContent().writeOut(getBodyContent().getEnclosingWriter()); - } catch (Exception ex) { - throw new JspTagException(ex.getMessage()); - } - return SKIP_BODY; - } - COM: <s> evaluates the body until current repetition repetitions </s> - diff --git a/funcom_test/5441225.txt b/funcom_test/5441225.txt deleted file mode 100644 index f72342c977763bc2ee4249a691d6c62d287bb295..0000000000000000000000000000000000000000 --- a/funcom_test/5441225.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public I_JoRemoteSession newSession() throws RemoteException { - if (Log.getLog(getName()).isLog(C_Log.METHOD)) { - Log.getLog(getName()).log("Generated new session.", C_Log.METHOD); - } - - I_JoRemoteSession theSession = new JoRemoteSession(); // should make this a factory (rik) - - theSession.setSessionContext(this); - - return theSession; - } - COM: <s> creates a new session </s> - diff --git a/funcom_test/5441226.txt b/funcom_test/5441226.txt deleted file mode 100644 index 052208942fe29a743be56fd97e2516e9dfddcfa1..0000000000000000000000000000000000000000 --- a/funcom_test/5441226.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addSession(I_JoRemoteSession aSession) throws RemoteException { - if (Log.getLog(getName()).isLog(C_Log.METHOD)) { - Log.getLog(getName()).log("Added a session. Now " + mySessions.size() + " are active.", C_Log.METHOD); - } - - mySessions.put(aSession.getId(), aSession); - } - COM: <s> adds a session to the remote session context </s> - diff --git a/funcom_test/5441323.txt b/funcom_test/5441323.txt deleted file mode 100644 index d6c7dedc72ad1ac283011bf0a908938268ca78be..0000000000000000000000000000000000000000 --- a/funcom_test/5441323.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void parse(PushbackReader aReader) throws IOException { - int c = 0; - - while (sb.length() < 30000) { - c = aReader.read(); - - if (c != -1 && c != '<') { - append((char)c); - } else { - break; - } - } - - finish(); - - if (c == -1) { - return; - } - - aReader.unread(c); - } - COM: <s> reads all data until a lt is found </s> - diff --git a/funcom_test/5441390.txt b/funcom_test/5441390.txt deleted file mode 100644 index 1e733ec89bf9431ed8eff01f5aedca568d4eb2e0..0000000000000000000000000000000000000000 --- a/funcom_test/5441390.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void addToClassPath(String classpath) { - if (this.classpath == null) { - setClassPath(classpath); - } else if (this.classpath.indexOf(classpath) == -1) { - setClassPath(this.classpath + System.getProperty("path.separator") + classpath); - } - } - COM: <s> adds a path or file to the classpath </s> - diff --git a/funcom_test/5441441.txt b/funcom_test/5441441.txt deleted file mode 100644 index d5718ddbd881c9e454fb35e1295f638ad661cff5..0000000000000000000000000000000000000000 --- a/funcom_test/5441441.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isRestartable() { - boolean restartable = true; - for (Enumeration e = myListeners.elements(); e.hasMoreElements() && restartable;) { - I_Listener listener = (I_Listener)e.nextElement(); - if (listener.getPort() < 1024) restartable = (userId == null && groupId == null); - } - return restartable; - } - COM: <s> indicates whether this server is restartable or not </s> - diff --git a/funcom_test/5441509.txt b/funcom_test/5441509.txt deleted file mode 100644 index f14ff87ece661913a6dc95542c48ea81411cca6a..0000000000000000000000000000000000000000 --- a/funcom_test/5441509.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String toString() { - StringBuffer sb = new StringBuffer(); - - sb.append(lazyFormatDate(timeStamp)); - - if (myMessage != null) { - sb.append(myMessage); - - if (myThrowable != null) { - sb.append(System.getProperty("line.separator")); - } - } - - if (myThrowable != null) { - sb.append(Log.getStackTrace(myThrowable)); - } - - return sb.toString(); - } - COM: <s> returns a string representation of this event </s> - diff --git a/funcom_test/5441521.txt b/funcom_test/5441521.txt deleted file mode 100644 index 24217b1a3dc5f616f601bb6158ce6cc72d3d8aa4..0000000000000000000000000000000000000000 --- a/funcom_test/5441521.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setLevel(int aLevel) { - myLogLevel = aLevel; - Iterator it = myListener.iterator(); - - while (it.hasNext()) { - I_LogEventListener theListener = (I_LogEventListener)it.next(); - if (theListener instanceof I_LogControlEventListener) - ((I_LogControlEventListener)theListener).handleLogControlEvent(new LogControlEvent(this)); - } - } - COM: <s> sets the loglevel </s> - diff --git a/funcom_test/5441540.txt b/funcom_test/5441540.txt deleted file mode 100644 index b1c75f8f3accb660d00bd30ee07dd76cd30f5082..0000000000000000000000000000000000000000 --- a/funcom_test/5441540.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setMaxHandlerThreads(int max) { - if (max < 1) { - throw new IllegalArgumentException("maxHandlers must be greater than zero."); - } - - if (max < getMinHandlerThreads()) { - throw new IllegalArgumentException("maxHandlers must be greater than minHandlers."); - } - - maxHandlers = max; - - myPool.setCapacity(maxHandlers); - } - COM: <s> sets the max number of </s> - diff --git a/funcom_test/5441547.txt b/funcom_test/5441547.txt deleted file mode 100644 index ad75acd1490292d547294552c0e986e28600a038..0000000000000000000000000000000000000000 --- a/funcom_test/5441547.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setMinHandlerThreads(int min) { - if (min < 0) { - throw new IllegalArgumentException("minHandlers must be zero or greater."); - } - - if (min > getMaxHandlerThreads()) { - throw new IllegalArgumentException("maxHandlers must be greater than minHandlers."); - } - - minHandlers = min; - } - COM: <s> sets the min number of </s> - diff --git a/funcom_test/5441553.txt b/funcom_test/5441553.txt deleted file mode 100644 index 1ad80da473cb17297805682503a04017c0087f67..0000000000000000000000000000000000000000 --- a/funcom_test/5441553.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void expandCapacity(int minimumCapacity) { - int newCapacity = (value.length + 1) * 2; - - if (minimumCapacity > newCapacity) { - newCapacity = minimumCapacity; - } - - char newValue[] = new char[newCapacity]; - - System.arraycopy(value, 0, newValue, 0, count); - - value = newValue; - } - COM: <s> this implements the expansion semantics of ensure capacity but is </s> - diff --git a/funcom_test/5441580.txt b/funcom_test/5441580.txt deleted file mode 100644 index fcd1bc35965e49782baf972755f20d5d7ec49bc1..0000000000000000000000000000000000000000 --- a/funcom_test/5441580.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public UnSyncStringBuffer append(String str) { - if (str == null) { - str = String.valueOf(str); - } - - int len = str.length(); - int newcount = count + len; - if (newcount > value.length) - expandCapacity(newcount); - str.getChars(0, len, value, count); - count = newcount; - return this; - } - COM: <s> appends the string to this string buffer </s> - diff --git a/funcom_test/5441586.txt b/funcom_test/5441586.txt deleted file mode 100644 index a968726529d1bb743124696f7cb3fb2d756753ef..0000000000000000000000000000000000000000 --- a/funcom_test/5441586.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public UnSyncStringBuffer append(char str[]) { - int len = str.length; - int newcount = count + len; - if (newcount > value.length) - expandCapacity(newcount); - System.arraycopy(str, 0, value, count, len); - count = newcount; - return this; - } - COM: <s> appends the string representation of the code char code array </s> - diff --git a/funcom_test/5441593.txt b/funcom_test/5441593.txt deleted file mode 100644 index 5a7271515ba31c7859afc5433eccf9189688790f..0000000000000000000000000000000000000000 --- a/funcom_test/5441593.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public UnSyncStringBuffer append(char str[], int offset, int len) { - int newcount = count + len; - if (newcount > value.length) - expandCapacity(newcount); - System.arraycopy(str, offset, value, count, len); - count = newcount; - return this; - } - COM: <s> appends the string representation of a subarray of the </s> - diff --git a/funcom_test/5441642.txt b/funcom_test/5441642.txt deleted file mode 100644 index 73684cfe368bba896ba3e0adc61bf29363bed410..0000000000000000000000000000000000000000 --- a/funcom_test/5441642.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected String normalizePath(String path) { - // get rid of first dot - while (path.startsWith(".")) { - path = path.substring(1); - } - - // tolerate import-like syntax - if (path.endsWith("*")) { - path = path.substring(0, path.length() - 1); - } - - if (!path.endsWith(".")) { - path += "."; - } - - return path; - } - COM: <s> helper method that normalizes paths </s> - diff --git a/funcom_test/5441667.txt b/funcom_test/5441667.txt deleted file mode 100644 index adfacf86c2d8006c96bf8f80d936f2862d72e95c..0000000000000000000000000000000000000000 --- a/funcom_test/5441667.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public UnSyncStringBuffer delete(int start, int end) { - if (start < 0) - throw new StringIndexOutOfBoundsException(start); - if (end > count) - end = count; - if (start > end) - throw new StringIndexOutOfBoundsException(); - - int len = end - start; - if (len > 0) { - System.arraycopy(value, start + len, value, start, count - end); - count -= len; - } - return this; - } - COM: <s> removes the characters in a substring of this code string buffer code </s> - diff --git a/funcom_test/5441680.txt b/funcom_test/5441680.txt deleted file mode 100644 index 0602d05892e014917de8fa6f9e953ee66c183608..0000000000000000000000000000000000000000 --- a/funcom_test/5441680.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public UnSyncStringBuffer deleteCharAt(int index) { - if ((index < 0) || (index >= count)) - throw new StringIndexOutOfBoundsException(); - System.arraycopy(value, index + 1, value, index, count - index - 1); - count--; - return this; - } - COM: <s> removes the character at the specified position in this </s> - diff --git a/funcom_test/5441784.txt b/funcom_test/5441784.txt deleted file mode 100644 index 5d24d0abe7284ec69d237b71b5cbd9722d0c5d91..0000000000000000000000000000000000000000 --- a/funcom_test/5441784.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public InputSource resolveEntity(String publicId, String systemId) { - URL url = (URL)table.get(publicId); - if (url != null) { - try { - return new InputSource(url.openConnection().getInputStream()); - } - catch (IOException ioe) { - new RuntimeException(ioe.toString()); - } - } - return null; - } - COM: <s> returns an input source for a public id </s> - diff --git a/funcom_test/5441814.txt b/funcom_test/5441814.txt deleted file mode 100644 index 317fe7551704cc9f62b1a34c6dacd604eb1d4f76..0000000000000000000000000000000000000000 --- a/funcom_test/5441814.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void writeElementAttributes(NamedNodeMap attributes) throws IOException { - for (int i = 0; i < attributes.getLength(); i++) { - Attr attr = (Attr)attributes.item(i); - - write(attr.getName() + "= \"" + attr.getName() + "\""); - - if (i < attributes.getLength() - 1) { - write(' '); - } - } - } - COM: <s> writes the attributes of an element </s> - diff --git a/funcom_test/5441818.txt b/funcom_test/5441818.txt deleted file mode 100644 index bd0046660cbf74a0e42beff090c7490a32fffcaa..0000000000000000000000000000000000000000 --- a/funcom_test/5441818.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void write(ProcessingInstruction node) throws IOException { - // indent - indentIt(); - write("<?"); - write(node.getNodeName()); - write(' '); - write(node.getNodeValue()); - write("?>"); - if (indent) { - writeln(); - } - } - COM: <s> writes a procession instruction node </s> - diff --git a/funcom_test/5441835.txt b/funcom_test/5441835.txt deleted file mode 100644 index 7dbefffee9f9a59308280101eae6cc0530055e87..0000000000000000000000000000000000000000 --- a/funcom_test/5441835.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public UnSyncStringBuffer insert(int offset, char c) { - int newcount = count + 1; - if (newcount > value.length) - expandCapacity(newcount); - System.arraycopy(value, offset, value, offset + 1, count - offset); - value[offset] = c; - count = newcount; - return this; - } - COM: <s> inserts the string representation of the code char code </s> - diff --git a/funcom_test/5441971.txt b/funcom_test/5441971.txt deleted file mode 100644 index b0d2a26ccb6d1de50d119fa24efc11a0ccc2e2af..0000000000000000000000000000000000000000 --- a/funcom_test/5441971.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public UnSyncStringBuffer reverse() { - int n = count - 1; - for (int j = (n - 1) >> 1; j >= 0; --j) { - char temp = value[j]; - value[j] = value[n - j]; - value[n - j] = temp; - } - return this; - } - COM: <s> the character sequence contained in this string buffer is </s> - diff --git a/funcom_test/5441972.txt b/funcom_test/5441972.txt deleted file mode 100644 index 7fd2ca06efa89be91c59e0216dd12b27c523e616..0000000000000000000000000000000000000000 --- a/funcom_test/5441972.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void setChunkExtension(String chunkExtension) { - this.chunkExtension = chunkExtension; - if (chunkExtension != null) { - try { - chunkExtensionBytes = chunkExtension.getBytes("ASCII"); - } - catch (UnsupportedEncodingException uee) { - // this should not be possible - uee.printStackTrace(); - // fallback - chunkExtensionBytes = chunkExtension.getBytes(); - } - } - else chunkExtensionBytes = null; - } - COM: <s> sets the chunk extension </s> - diff --git a/funcom_test/5441982.txt b/funcom_test/5441982.txt deleted file mode 100644 index 922695418dbe71939499febe64eec3ac311c37ff..0000000000000000000000000000000000000000 --- a/funcom_test/5441982.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void finish() throws IOException { - if (finished) { - return; - } - finished = true; - flush(); - out.write('0'); - if (chunkExtension != null) { - out.write(chunkExtensionBytes); - } - out.write(C_CRLF); - trailer.write(out); - out.write(C_CRLF); - } - COM: <s> writes the trailer and the last chunk but does not close </s> - diff --git a/funcom_test/5442019.txt b/funcom_test/5442019.txt deleted file mode 100644 index 46d04eb81bfdcc81f2fc5d76dfe588997c27a27e..0000000000000000000000000000000000000000 --- a/funcom_test/5442019.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public Enumeration getParameterNames() { - parse(); - return new Enumeration() { - private Iterator entries = parameters.entryList().iterator(); - public boolean hasMoreElements() { - return entries.hasNext(); - } - - public Object nextElement() { - if (!entries.hasNext()) throw new NoSuchElementException(); - return ((Map.Entry)entries.next()).getKey(); - } - }; - } - COM: <s> returns an enumeration of the parameter names </s> - diff --git a/funcom_test/5442042.txt b/funcom_test/5442042.txt deleted file mode 100644 index dac97864476af3ffc3eb0a45957f37d2aa450ee6..0000000000000000000000000000000000000000 --- a/funcom_test/5442042.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getIntHeader(String aName) { - String theHeader = getHeader(aName); - if (theHeader != null) { - int idx = theHeader.indexOf(';'); - if (idx != -1) { - theHeader = theHeader.substring(0, idx); - } - return Integer.parseInt(theHeader); - } - return -1; - } - COM: <s> returns a header as int </s> - diff --git a/funcom_test/5442044.txt b/funcom_test/5442044.txt deleted file mode 100644 index 7315b6eade35c249207d85624b0292ff4d7bd5be..0000000000000000000000000000000000000000 --- a/funcom_test/5442044.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void read(ServletInputStream in) throws IOException, HttpException { - byte[] b = new byte[1024]; - int len = in.readLine(b, 0, 1024); - - // complain about too long URIs - if (len == 1024) { - throw new HttpException("ResponseLine is too long."); - } - - parseResponseLine((new String(b, 0)).trim()); - } - COM: <s> reads a response line from an code servlet input stream code </s> - diff --git a/funcom_test/5442047.txt b/funcom_test/5442047.txt deleted file mode 100644 index 07b9793b62154dac5fb643270bfe8b2786ad4010..0000000000000000000000000000000000000000 --- a/funcom_test/5442047.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public long getDateHeader(String aName) { - String header = getHeader(aName); - if (header != null) { - int idx = header.indexOf(';'); - if (idx != -1) { - header = header.substring(0, idx); - } - return HttpDate.parse(header); - } - return -1; - } - COM: <s> returns a header as date long </s> - diff --git a/funcom_test/5442112.txt b/funcom_test/5442112.txt deleted file mode 100644 index 01f2a462af3c1c84a124d29b8e647cf065d4f583..0000000000000000000000000000000000000000 --- a/funcom_test/5442112.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void stopAllServices() throws ServerException { - Enumeration e = myServices.elements(); - - while (e.hasMoreElements()) { - I_BasicService aService = (I_BasicService)e.nextElement(); - - if (aService != this && aService.isAlive()) { - aService.stop(); - } - } - - myServices.clear(); - } - COM: <s> stoppt alle services </s> - diff --git a/funcom_test/5442113.txt b/funcom_test/5442113.txt deleted file mode 100644 index 3348920ba8f40a8e5dc66088b32fb8aa8993a94c..0000000000000000000000000000000000000000 --- a/funcom_test/5442113.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void rebuild(Object obj) throws BuildException { - MetaServer theService = (MetaServer)obj; - - try { - Properties theProperties = loadProperties(new URL(getURL(), "metaserver.properties")); - - buildService(theService, getName(), theProperties, getURL()); - - buildListeners(new URL(getURL(), "metalistener.properties"), theService); - } - catch (Throwable t) { - throw new BuildException(t); - } - } - COM: <s> rebuilds the object </s> - diff --git a/funcom_test/5442114.txt b/funcom_test/5442114.txt deleted file mode 100644 index 4960e7d5d4b2debfdb6531b7baf2f064007d2bee..0000000000000000000000000000000000000000 --- a/funcom_test/5442114.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Object build() throws BuildException { - MetaServer theService = null; - - try { - Properties theProperties = loadProperties(new URL(getURL(), "metaserver.properties")); - - theService = buildService(null, getName(), theProperties, getURL()); - - buildListeners(new URL(getURL(), "metalistener.properties"), theService); - } - catch (Throwable t) { - throw new BuildException(t); - } - - return theService; - } - COM: <s> builds an object with a specified name </s> - diff --git a/funcom_test/5442235.txt b/funcom_test/5442235.txt deleted file mode 100644 index ad2dc176cf1e36714c648f39e2d86fa41090bd7d..0000000000000000000000000000000000000000 --- a/funcom_test/5442235.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testWrongMethod() throws IOException { - try { - requestLine.read(new ByteArrayInputStream("zab /blub HTTP/1.0\r\n".getBytes())); - fail("Expected HttpException with statuscode " + HttpServletResponse.SC_BAD_REQUEST); - } - catch (HttpException he) { - assertTrue(he.getStatusCode() == HttpServletResponse.SC_BAD_REQUEST); - } - } - COM: <s> tests undefined method </s> - diff --git a/funcom_test/5442305.txt b/funcom_test/5442305.txt deleted file mode 100644 index 30b0b53a05ee0a28e134487f9f38e46d616d0480..0000000000000000000000000000000000000000 --- a/funcom_test/5442305.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void init(ServletConfig aConfig) throws ServletException { - super.init(aConfig); - - myHost = getInitParameter("host"); - myTo = getInitParameter("to"); - myFrom = getInitParameter("from"); - mySubject = getInitParameter("subject"); - myBody = getInitParameter("body"); - } - COM: <s> reads the initparams and sets defualt values </s> - diff --git a/funcom_test/5442317.txt b/funcom_test/5442317.txt deleted file mode 100644 index 627b628ceaa20a8ecb401ccd7dd0853580adc8ad..0000000000000000000000000000000000000000 --- a/funcom_test/5442317.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public String getMultiMethodName(HttpServletRequest req) { - String theKey = req.getPathInfo(); - - if (theKey == null) { - return null; - } - - int idx = theKey.indexOf('/', 1); - - if (idx != -1) { - theKey = theKey.substring(0, idx); - } - - return theKey; - } - COM: <s> returns a method object for a request </s> - diff --git a/funcom_test/5442331.txt b/funcom_test/5442331.txt deleted file mode 100644 index bd47e547554176b22d9a917424570be41f63d210..0000000000000000000000000000000000000000 --- a/funcom_test/5442331.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void init() throws ServletException { - String para = getServletConfig().getInitParameter("statuscode"); - - if (para == null) { - throw new ServletException("Missing init argument: statuscode"); - } - - myStatusCode = Integer.parseInt(para); - myLocation = getServletConfig().getInitParameter("location"); - - if (myLocation == null) { - throw new ServletException("Missing init argument: location"); - } - } - COM: <s> reads the init arguments code statuscode code and code location code </s> - diff --git a/funcom_test/5442340.txt b/funcom_test/5442340.txt deleted file mode 100644 index c3da1796e6ca74036054a56fb0f8451a0b4b7db6..0000000000000000000000000000000000000000 --- a/funcom_test/5442340.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { - - // set MIME type to "text/html" - res.setContentType("text/html"); - - PrintWriter out = res.getWriter(); - - printHeader(out); - printForm(out, req); - printEntries(out, req); - printFooter(out); - } - COM: <s> show guestbook entries </s> - diff --git a/funcom_test/5442358.txt b/funcom_test/5442358.txt deleted file mode 100644 index 3b9bd176fcf30d2fd805bb8c3480f653d5d0b7ba..0000000000000000000000000000000000000000 --- a/funcom_test/5442358.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String toHTMLString() { - SimpleDateFormat formatter = new SimpleDateFormat("'On' dd.MM.yyyy 'at' HH:mm"); - - return formatter.format(myCreationDate) + " <a href='mailto:" + myEmail + "'>" + myName + "</a> wrote:<br>" + myComment; - } - COM: <s> returns an entry formatted in html </s> - diff --git a/funcom_test/5468195.txt b/funcom_test/5468195.txt deleted file mode 100644 index 869c9142f47168a9f51385056e105801115918fe..0000000000000000000000000000000000000000 --- a/funcom_test/5468195.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addPackages( String[] pkgs ) { - SimpleStack temp = new SimpleStack(); - for( int i = imported; i-->0; ) - temp.push( packages.pop() ); - for( int i = pkgs.length; i-->0; ) - packages.push( pkgs[i] ); - for( int i = imported; i-->0; ) - packages.push( temp.pop() ); - } - COM: <s> adds an array of package names to the list </s> - diff --git a/funcom_test/5549044.txt b/funcom_test/5549044.txt deleted file mode 100644 index 5ccb9095da9bbb54e96fb90ac2c28ac279fe1a84..0000000000000000000000000000000000000000 --- a/funcom_test/5549044.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private OnReturnData findOnReturn(HashMap onReturns, Object value) { - OnReturnData onReturnData = (OnReturnData) onReturns.get(value); - - // if no match, check for "*" (=any other) - if (onReturnData == null) - return (OnReturnData) onReturns.get("*"); - - return onReturnData; - } - COM: <s> tries to match tt lt on return gt tt value </s> - diff --git a/funcom_test/5549055.txt b/funcom_test/5549055.txt deleted file mode 100644 index 880efb8cfb5db432f62fd92b7c8003c3ee0c2248..0000000000000000000000000000000000000000 --- a/funcom_test/5549055.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private Template handleExceptionByError(Context context, String message, Throwable e) { - try { - return error(context, message, e); - } catch (Throwable ex) { - runtime.log.error("[" + context.hashCode() + "] " + "Error ocurred in '" + - getClass().getName() + ".error()'", ex); - return null; - } - } - COM: <s> handles errors caused in conversion error and on exception </s> - diff --git a/funcom_test/5549114.txt b/funcom_test/5549114.txt deleted file mode 100644 index 5ca5b6aead333b4d609c7dbb8d0b7f63d8ba267f..0000000000000000000000000000000000000000 --- a/funcom_test/5549114.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Object convert(Context context, Object file) throws ConversionException { - try { - return new FileInputStream((File) file); - } catch (FileNotFoundException e) { - throw new ConversionException("Cannot find file '" + ((File) file).getName() + "'", e); - } - } - COM: <s> returns file as input stream </s> - diff --git a/funcom_test/5549148.txt b/funcom_test/5549148.txt deleted file mode 100644 index 2a68da34271f783276629d25f5824a599a3fe6d6..0000000000000000000000000000000000000000 --- a/funcom_test/5549148.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getSessionId() throws IllegalStateException { - String id = (String) runtime.threadSessions.get( - new Integer(System.identityHashCode(Thread.currentThread()))); - - if (id == null) - throw new IllegalStateException("Cannot call 'ActionServlet.getSessionId()'" + - " from a non-session thread"); - - return id; - } - COM: <s> returns session id of current thread </s> - diff --git a/funcom_test/5549179.txt b/funcom_test/5549179.txt deleted file mode 100644 index d059fd01fb319adcdc07749021d2dd0d352ed84b..0000000000000000000000000000000000000000 --- a/funcom_test/5549179.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public double getTotalPrice() throws SQLException { - Object[] items = getItems(); - double price = 0; - - for (int i=0; i<items.length; i++) - price += ((Item)items[i]).getPrice() * ((Item)items[i]).getCount(); - - return Math.ceil(price * 100) / 100d; - } - COM: <s> returns price of all items in cart </s> - diff --git a/funcom_test/5549180.txt b/funcom_test/5549180.txt deleted file mode 100644 index a79f46342de6a73864c9de32dd1cdc5d9a7619a4..0000000000000000000000000000000000000000 --- a/funcom_test/5549180.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void destroy() { - try { - Object[] items = getItems(); - - for (int i=0; i < items.length; i++) - removeItem(((Item)items[i]).getName(), ((Item)items[i]).getCount()); - } catch (Throwable e) { - e.printStackTrace(System.err); // todo: log? - } - } - COM: <s> cleanup return all items back to goods </s> - diff --git a/funcom_test/5592284.txt b/funcom_test/5592284.txt deleted file mode 100644 index 969339d1c1fe3c54d6239198d22183f8fc73d2b9..0000000000000000000000000000000000000000 --- a/funcom_test/5592284.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Document createDocument(wpXSDEngine schema) throws wpException { - - Document document = createEmptyDocument(); - if (schema != null) { - String s = schema.targetNamespace; - setNameSpaceURI(document); - Element root = document.getDocumentElement(); - wpXSDtoDOM(document, schema.rootXSDobj, root); - } - return document; - } - COM: <s> create a new dom </s> - diff --git a/funcom_test/5592346.txt b/funcom_test/5592346.txt deleted file mode 100644 index f22239c61c19812bf89d57c9f942a10a9e99b1af..0000000000000000000000000000000000000000 --- a/funcom_test/5592346.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Node getChild(Node parentNode, int index) { - - Node filterNode = null; - wpNodeIterator it = new wpNodeIterator(parentNode, filter); - - int i = 0; - while (it.hasNext()) { - filterNode = (Node) it.next(); - if (i == index) { - break; - } - i++; - } - return filterNode; - } - COM: <s> return child at indexed position </s> - diff --git a/funcom_test/5592356.txt b/funcom_test/5592356.txt deleted file mode 100644 index c467aff0d0a67364acd4c99881faf6c6231ca563..0000000000000000000000000000000000000000 --- a/funcom_test/5592356.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int getIndex(Node parentNode, Node childNode) { - - wpNodeIterator iterator; - Node filterNode = null; - - wpNodeIterator it = new wpNodeIterator(parentNode, filter); - - int index = 0; - while (it.hasNext()) { - filterNode = (Node) it.next(); - if (childNode == filterNode) { - break; - } - index++; - } - return index; - } - COM: <s> get the child nodes position relative to te parent </s> - diff --git a/funcom_test/5592383.txt b/funcom_test/5592383.txt deleted file mode 100644 index c59e3a53b753c7d3bfe9e7cda22b6cf38b6cd511..0000000000000000000000000000000000000000 --- a/funcom_test/5592383.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void insertAfter(Node newNode, Node refNode) { - - Node parentNode; - parentNode = refNode.getParentNode(); - - Node nextNode = refNode.getNextSibling(); - if (nextNode != null) { - parentNode.insertBefore(newNode, nextNode); - } - else { - parentNode.appendChild(newNode); - } - } - COM: <s> insert a node after a reference node </s> - diff --git a/funcom_test/5592423.txt b/funcom_test/5592423.txt deleted file mode 100644 index 24474412e1753c60ee8b8d28caa9241b0a2c4a28..0000000000000000000000000000000000000000 --- a/funcom_test/5592423.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean isLeaf(Object node) { - // Return true for any node with no children - Node leafNode = ( (wpTreeNode) node).getNode(); - if (super.getChildCount(leafNode) > 0) { - return false; - } - else { - if (leafNode.hasAttributes()) { - return false; - } - return true; - } - } - COM: <s> is leaf tree model method </s> - diff --git a/funcom_test/5592426.txt b/funcom_test/5592426.txt deleted file mode 100644 index c28eb382a0235730a65126d4ef237e2c4ca2a431..0000000000000000000000000000000000000000 --- a/funcom_test/5592426.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int getChildCount(Object node) { - - Node parentNode = ( (wpTreeNode) node).getNode(); - - int count = 0; - if (parentNode.hasChildNodes()) { - count = super.getChildCount(parentNode); - } - else { - if (parentNode.hasAttributes()) { - NamedNodeMap nodeMap = parentNode.getAttributes(); - count = nodeMap.getLength(); - } - } - return count; - } - COM: <s> get child count tree model method </s> - diff --git a/funcom_test/5592440.txt b/funcom_test/5592440.txt deleted file mode 100644 index 209c209706a5238d4bf9b91455b3db67f367cfef..0000000000000000000000000000000000000000 --- a/funcom_test/5592440.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getDescription(){ - - String s = "("; - for(int i=0; i < checkExt.length; i++){ - if(checkExt[i] != null) { - if(i != 0) - s += ","; - s += ("*." + checkExt[i] ); - }else break; - } - return s + ")"; - } - COM: <s> get the description of the file type </s> - diff --git a/funcom_test/5592445.txt b/funcom_test/5592445.txt deleted file mode 100644 index b6eddafe944b3671734fa64c127cf7f69122466e..0000000000000000000000000000000000000000 --- a/funcom_test/5592445.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void popupEditorShow(MouseEvent e) { - - if (e.isPopupTrigger()) { - if(tab.getType() != tab.HTML_FILE){ - // @todo Something with editor type. - } - popupMenu.show(e.getComponent(), e.getX(), e.getY()); - } - } - COM: <s> show the editor popup menu </s> - diff --git a/funcom_test/5592473.txt b/funcom_test/5592473.txt deleted file mode 100644 index 4aa7278416cec75a1c43bfe64e0c1bedf49ccf30..0000000000000000000000000000000000000000 --- a/funcom_test/5592473.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void saveAllFile() throws wpException { - wpWindow selectedWindow = gui.getDesktop().getSelectedWindow(); - Iterator it = selectedWindow.getTabs().getIterator(); - while (it.hasNext()) { - wpTab tab = (wpTab) it.next(); - if (tab.isAltered()) { - tab.save(tab.getFile()); - } - } - } - COM: <s> save all files in the tab panel </s> - diff --git a/funcom_test/5592501.txt b/funcom_test/5592501.txt deleted file mode 100644 index c17c7ee0bd0b15ebdc1f324c00d7e7d7085abca1..0000000000000000000000000000000000000000 --- a/funcom_test/5592501.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void renameTab(File newFile, wpTab tab) throws wpException { - - int index = indexOfTab(tab.getFile().getName()); - if (index != -1) { - tab.setFile(newFile); - this.setTitleAt(index, newFile.getName()); - } - } - COM: <s> rename the tab title and set a new file </s> - diff --git a/funcom_test/5592506.txt b/funcom_test/5592506.txt deleted file mode 100644 index c7b60e3090e3ebe86d05af66410d7a0aef8685be..0000000000000000000000000000000000000000 --- a/funcom_test/5592506.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Reader getScanReader() throws wpException { - final Document doc = this.getDocument(); - try { - final wpScanReader docReader = new wpScanReader(0, doc.getLength(), doc); - return docReader; - } - catch (IOException ioe) { - throw new wpException(ioe); - } - } - COM: <s> get a new scan reader </s> - diff --git a/funcom_test/5592510.txt b/funcom_test/5592510.txt deleted file mode 100644 index 7d63087855dd0779b97f68e1930f01e859d64752..0000000000000000000000000000000000000000 --- a/funcom_test/5592510.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public StringReader getReader() throws wpException { - final Document doc = this.getDocument(); - try { - StringReader reader = new StringReader(doc.getText(0, doc.getLength())); - return reader; - } - catch (BadLocationException ble) { - throw new wpException(ble); - } - } - COM: <s> get a string reader </s> - diff --git a/funcom_test/5592516.txt b/funcom_test/5592516.txt deleted file mode 100644 index 58cbe51e4dc9d847d2be48550d4e4d2196042160..0000000000000000000000000000000000000000 --- a/funcom_test/5592516.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void handleEvent(Event e) { - - Node node = (Node) e.getCurrentTarget(); - String eventType = e.getType(); - String nodeName = node.getNodeName(); - e.stopPropagation(); - if (!DOMEditor.isAltered()) - DOMEditor.setAltered(true); - } - COM: <s> handle the event </s> - diff --git a/funcom_test/5592524.txt b/funcom_test/5592524.txt deleted file mode 100644 index 5a6a54f6dc51c286a98f2bac5fed0235c24e7976..0000000000000000000000000000000000000000 --- a/funcom_test/5592524.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getTitleForTab(wpTab tab) { - Iterator it = getIterator(); - while (it.hasNext()) { - java.util.Map.Entry entry = (java.util.Map.Entry) it.next(); - wpTab runTab = (wpTab) entry.getValue(); - if (runTab.equals(tab)) { - return (String) entry.getKey(); - } - } - return null; - } - COM: <s> get the title of a specific tab </s> - diff --git a/funcom_test/5592526.txt b/funcom_test/5592526.txt deleted file mode 100644 index 15e997812cd78b511fb1c7de61d94c1acbc2a3f2..0000000000000000000000000000000000000000 --- a/funcom_test/5592526.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setActiveTab(int index) { - // check if this is perhaps the last tab. - if (index != -1) { - String title = getTitleAt(index); - wpTab tab = (wpTab) tabTable.get(title); - tab.setActive(); - updateActionStatus(); - window.updateDomEditor(tab); - } - } - COM: <s> set the active tab with the provided index </s> - diff --git a/funcom_test/5592529.txt b/funcom_test/5592529.txt deleted file mode 100644 index 8f29a03018689fcfb385ecf9d144554d1c4fe4d9..0000000000000000000000000000000000000000 --- a/funcom_test/5592529.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void add(wpWindow window) { - super.add(window); - if (getAllFrames().length == 1) { - separatorPos = menuWindow.getItemCount(); - menuWindow.addSeparator(); - } - window.menuItem = menuWindow.addMenuItem(window.getProject().getFile(0). - getName(), - gui.windowActions[ - wpActionInterface. - WINDOW_SELECT_ACTION]); - } - COM: <s> add a window to the desktop </s> - diff --git a/funcom_test/5592544.txt b/funcom_test/5592544.txt deleted file mode 100644 index 1b206351d3f6470403b796190700488f1fd01809..0000000000000000000000000000000000000000 --- a/funcom_test/5592544.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void updateScanner(int p0, int p1) { - try { - if (!lexerValid) { - lexer.setRange(lexer.getScannerStart(p0), p1); - lexerValid = true; - } - while (lexer.getScanPosition() <= p0) { - lexer.scan(); - } - } - catch (Throwable e) { - e.printStackTrace(); - } - } - COM: <s> update the scanner if necessary to point to the appropriate </s> - diff --git a/funcom_test/5592554.txt b/funcom_test/5592554.txt deleted file mode 100644 index d8608ec7cc15a9fd1f7bc3963b09b1d5c626728d..0000000000000000000000000000000000000000 --- a/funcom_test/5592554.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void load(Document doc) { - - this.parseHeader(doc); // EXPERIMENTAL. - - setModel(treeModel = new wpTreeModel(gui,doc)); - int divLoc = window.leftSplitPane.getDividerLocation(); - treeView.setPreferredSize(new Dimension(TREE_DEF_WIDTH, divLoc)); - treeView.setViewportView(this); - addDOModelListener(new wpDOModelListener(this)); - - } - COM: <s> load a new document object model dom </s> - diff --git a/funcom_test/5592561.txt b/funcom_test/5592561.txt deleted file mode 100644 index 4db76cb0b7aae28ead052df23031add9155bcfd0..0000000000000000000000000000000000000000 --- a/funcom_test/5592561.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setNextWindow() throws wpException { - JInternalFrame windows[] = getAllFrames(); - if (windows.length > 0) { - wpWindow win = (wpWindow) windows[0]; - win.windowSelected(); - } - else { - throw new wpException(wpActionInterface.NO_MORE_PROJECTS); - } - } - COM: <s> set the next active window </s> - diff --git a/funcom_test/5592567.txt b/funcom_test/5592567.txt deleted file mode 100644 index 05ae2ebee3fd55f9260d35f7fea1408283aa313c..0000000000000000000000000000000000000000 --- a/funcom_test/5592567.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setText(String t){ - super.setText(t); - Timer timer = new Timer(); - timer.schedule(new TimerTask(){ - public void run(){ - try{ - doc.remove(0,doc.getLength()); - }catch(BadLocationException ble){} - } - }, (delay != 0)?delay:DELAY); - } - COM: <s> override jtext component method </s> - diff --git a/funcom_test/5592614.txt b/funcom_test/5592614.txt deleted file mode 100644 index 75b7be7cd2b538ca4c1de6cf73128fb2b8858f3e..0000000000000000000000000000000000000000 --- a/funcom_test/5592614.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int showDialog() { - super.show(); - // if the dialog is not modal, the return value will always be -1. - // the way to get the selection button option is to call the getOption() - // method. - if (!modal) { - // option has not been set. - option = -1; - } - return option; - } - COM: <s> custom show dialog method </s> - diff --git a/funcom_test/5592616.txt b/funcom_test/5592616.txt deleted file mode 100644 index a93f19c2b15edd96a67072222f848ea12ee6c370..0000000000000000000000000000000000000000 --- a/funcom_test/5592616.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void addDOModelListener(wpDOModelListener listener) { - Document document = ( (wpTreeModel) getModel()).getDocument(); - EventTarget target = (EventTarget) document; - target.addEventListener(MutationEventImpl.DOM_SUBTREE_MODIFIED, listener, false); - } // end addListener - COM: <s> add a dom listener to the document </s> - diff --git a/funcom_test/5592622.txt b/funcom_test/5592622.txt deleted file mode 100644 index 3f25878a9a28d14fd7148114f445c9b67ad42f19..0000000000000000000000000000000000000000 --- a/funcom_test/5592622.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public NodeIterator applyXPath(String xpath, Document doc) throws wpException { - - NodeIterator it=null; - try{ - it = XPathAPI.selectNodeIterator(doc.getDocumentElement(), xpath); - } catch (TransformerException te) { - throw new wpException(te); - } //end Try - return it; - } // end applyXPath - COM: <s> apply a string x path to a document </s> - diff --git a/funcom_test/5592626.txt b/funcom_test/5592626.txt deleted file mode 100644 index dd1c449f1eed1ed5f89b52e7db9db9fdb92a4159..0000000000000000000000000000000000000000 --- a/funcom_test/5592626.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void nodeCopy() { - - wpTreeNode adpNode; - wpBranch Entry; - - // get the current wpDomToTreeModel node. - TreePath path = getSelectionPath(); - adpNode = (wpTreeNode) (path.getLastPathComponent()); - if (adpNode != null) { - // Create a copy of the selected node. - copyNode = adpNode.getNode().cloneNode(true); - } - } // end nodeCopy - COM: <s> copy a node into the clipboard </s> - diff --git a/funcom_test/5592630.txt b/funcom_test/5592630.txt deleted file mode 100644 index 3e0416c4dcc95388d6b4ef4894d8d2143a8f2fd5..0000000000000000000000000000000000000000 --- a/funcom_test/5592630.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void loadTab(File file) throws wpException { - tabFile = new wpFile(file); - wpFileEngine fileEngine = new wpFileEngine(gui); - tabFile.setType(fileEngine.getExtensionType(file)); - setKitForType(tabFile.getType()); - load(file); - addListeners(); - } - COM: <s> load a tab </s> - diff --git a/funcom_test/5592634.txt b/funcom_test/5592634.txt deleted file mode 100644 index 00c87a236aa36a58b3ca0e914483cc7a19d9814c..0000000000000000000000000000000000000000 --- a/funcom_test/5592634.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void loadTab(Reader reader) throws wpException { - - // @todo How to defined that a reader, as a certain type? - // for simplicity currently the type is hard coded for reader param. - tabFile = new wpFile("XPATH result"); - tabFile.setType(wpFileInterface.XML_FILE); - setKitForType(tabFile.getType()); - load(reader); - addListeners(); - } - COM: <s> load a reader into this tab </s> - diff --git a/funcom_test/5592636.txt b/funcom_test/5592636.txt deleted file mode 100644 index ae19c66e7d6eb414f14f808ab5dd2281a9e025e3..0000000000000000000000000000000000000000 --- a/funcom_test/5592636.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void parseGrammar(wpGrammarVector writer) { - wpGrammar gram = this.getPredictiveGrammar(); - if (gram != null) { - // NOTE 6-06-2003 Escape DTD Grammar interpretation not supported (yet). - if (gram.getGrammar()instanceof DTDGrammar) { - return; - } - else { - parseGrammar(gram.getGrammar(), writer); - } - } - } - COM: <s> parse the selected grammar to a vector </s> - diff --git a/funcom_test/5592658.txt b/funcom_test/5592658.txt deleted file mode 100644 index 17a3a28961703e6ceb0e9ba8bf1ed5b7a48e8fe6..0000000000000000000000000000000000000000 --- a/funcom_test/5592658.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public DefaultListModel toListModel(wpGrammar grammar) { - - DefaultListModel listModel = new DefaultListModel(); - wpGrammarVector vec = new wpGrammarVector(); - parseGrammar(vec); - Iterator it = vec.iterator(); - while (it.hasNext()) { - listModel.addElement( (String) it.next()); - } - return listModel; - } - COM: <s> get a code jlist code model for the grammar </s> - diff --git a/funcom_test/5592664.txt b/funcom_test/5592664.txt deleted file mode 100644 index 35b781baf93982c2e86332f15304b5544587c643..0000000000000000000000000000000000000000 --- a/funcom_test/5592664.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean editModeToggle() throws wpException { - - boolean toggleOK = false; - // Toggle the edit mode, and check if succesfull. - if (editMode == EDIT_MODE_DOM) { - if( toggleOK = setEditMode(EDIT_MODE_RAW)){ - updateActions(false); - } - } - else { - if( toggleOK = setEditMode(EDIT_MODE_DOM)){ - updateActions(true); - } - } - return toggleOK; - } - COM: <s> toggle between dom and editor file alteration </s> - diff --git a/funcom_test/5592666.txt b/funcom_test/5592666.txt deleted file mode 100644 index 48bedb76bdf2f19ebddad2a8072d6555a0b4d7dd..0000000000000000000000000000000000000000 --- a/funcom_test/5592666.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void treeSelect(TreeSelectionEvent e) { - - wpTreeNode adpNode; - - TreePath treePath; - treePath = e.getNewLeadSelectionPath(); - if (treePath != null) { - adpNode = (wpTreeNode) treePath.getLastPathComponent(); - Node selNode = adpNode.getNode(); - int index = domEngine.getIndex(selNode.getParentNode(), selNode); - } - } - COM: <s> tree model listener experimental </s> - diff --git a/funcom_test/5592669.txt b/funcom_test/5592669.txt deleted file mode 100644 index ad4d72827b96a83b49e043e645688df0fa5fcd80..0000000000000000000000000000000000000000 --- a/funcom_test/5592669.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void updateActions(boolean status){ - try{ - gui.maskHandler.fireMaskChanged(new wpMaskEvent(this, new wpMask( - wpActionInterface.DOM_ACTIONS, new int [] {wpActionInterface. - DOM_EDIT_NODE_ACTION}, new boolean[] { status } - - ))); - } catch( wpMaskException me){ - // programatic error. - } - } - COM: <s> update the this class related actions </s> - diff --git a/funcom_test/5592709.txt b/funcom_test/5592709.txt deleted file mode 100644 index b460c70293f585af33bbc9bd255d00d5b5f08877..0000000000000000000000000000000000000000 --- a/funcom_test/5592709.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void populateFields(String[] text) { - int i = 0; - while (i < this.numOfRows & i < text.length) { - this.fields[i].setText(text[i]); - this.fields[i].setToolTipText(text[i]); - i++; - } - } - COM: <s> populate the information fields </s> - diff --git a/funcom_test/5592765.txt b/funcom_test/5592765.txt deleted file mode 100644 index 2d6412abcbb17475d7c99c4cba97ac810405477a..0000000000000000000000000000000000000000 --- a/funcom_test/5592765.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public DefaultListModel toListModel() { - - DefaultListModel listModel = new DefaultListModel(); - wpGrammarVector vec = new wpGrammarVector(); - parseGrammar(vec); - Iterator it = vec.iterator(); - while (it.hasNext()) { - listModel.addElement( (String) it.next()); - } - return listModel; - } - COM: <s> get a jlist model for the grammar </s> - diff --git a/funcom_test/5592780.txt b/funcom_test/5592780.txt deleted file mode 100644 index f18cd225286bb0c3769eca4afe4f49763cd2202a..0000000000000000000000000000000000000000 --- a/funcom_test/5592780.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString() { - StringBuffer buf = new StringBuffer(); - buf.append(this.getName() + ":"); - int type = getType(); - if (type != -1) { - buf.append(" Type: " + wpFileInterface.fileExtensions[type]); - } - return buf.toString(); - } - COM: <s> get a string representation of this class </s> - diff --git a/funcom_test/5592786.txt b/funcom_test/5592786.txt deleted file mode 100644 index bed156285c58d9f142186ad34a6cfabcf0e4f199..0000000000000000000000000000000000000000 --- a/funcom_test/5592786.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void resetReader(int pO, int p1) { - - docPos = p0; - this.p1 = Math.min(doc.getLength(), p1); - segment.setIndex(0); - index = 0; - try { - loadSegment(); - } - catch (IOException ioe) { - throw new Error("unexpected: " + ioe); - } - } - COM: <s> reset the reader </s> - diff --git a/funcom_test/5592791.txt b/funcom_test/5592791.txt deleted file mode 100644 index 9690df2daff439718af1a2264fb27668858c15ab..0000000000000000000000000000000000000000 --- a/funcom_test/5592791.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int read() throws IOException { - - // check if the segment index is bigger than the total count. - // if so, load a new segment. - if (index >= segment.offset + segment.count) { - if (docPos >= p1) { - // no more data - return -1; - } - loadSegment(); - } - return segment.array[index++]; - } // end read - COM: <s> reads the next byte of data from this input stream </s> - diff --git a/funcom_test/5592793.txt b/funcom_test/5592793.txt deleted file mode 100644 index cefc94d45443fd1615e68124809162be4d2f56be..0000000000000000000000000000000000000000 --- a/funcom_test/5592793.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public int read(char[] buffer, int offset, int length) throws IOException { - - if (length >= segment.count) { - if (docPos >= p1) { - // no more data - return -1; - } - loadSegment(); - } - - int i = 0; - for (; i < length; i++) { - buffer[i + offset] = segment.array[i]; - } // end for - return i; - } - COM: <s> convenience class for extending reader </s> - diff --git a/funcom_test/5592845.txt b/funcom_test/5592845.txt deleted file mode 100644 index bf13b8408bd0f2c31f4c8403c56777b450894998..0000000000000000000000000000000000000000 --- a/funcom_test/5592845.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Object getRoot(JAXBContext jc, InputSource inSource){ - - Object nodeObj=null; - try{ - Unmarshaller u = jc.createUnmarshaller(); - nodeObj = u.unmarshal(inSource); - - }catch( JAXBException jex){ - gui.logArea.appendBad(MODULE_ID, jex.getMessage() + "\n"); - } - return nodeObj; - } - COM: <s> unmarshal the root object for this source </s> - diff --git a/funcom_test/5592867.txt b/funcom_test/5592867.txt deleted file mode 100644 index 6713446c9a5dce5c61252a705728cccc207d9d87..0000000000000000000000000000000000000000 --- a/funcom_test/5592867.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void update(Document doc) { - if (doc.getLength() > 0) { - wiz.getButtonManager().getAction(wiz.NEXT_OPTION).setEnabled(true); - } - else { - wiz.getButtonManager().getAction(wiz.NEXT_OPTION).setEnabled(false); - } - } - COM: <s> update the next action in the wizard </s> - diff --git a/funcom_test/5592877.txt b/funcom_test/5592877.txt deleted file mode 100644 index a32e26f63855a9f6024bb47ea2e71b9bc1b6603a..0000000000000000000000000000000000000000 --- a/funcom_test/5592877.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public String getCurrentOffsetText() throws wpException { - - Document doc = target.getDocument(); - String s = null; - try { - int pos = target.getCaretPosition(); - s = doc.getText(toggleOffset, pos - toggleOffset ); - } - catch (BadLocationException ble) { - throw new wpException(ble); - } - return s; - } - COM: <s> get the text from toggle to the current caret offset </s> - diff --git a/funcom_test/5592911.txt b/funcom_test/5592911.txt deleted file mode 100644 index 94c2b0cb9a27eb135cbafdf51396e4161a8c5ca3..0000000000000000000000000000000000000000 --- a/funcom_test/5592911.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean renameFile() { - - boolean renameOK = false; - File oldFile = getSelectedFile(); - File newFile = fileEngine.renameFile(oldFile); - - if (newFile != null) { - int index = projectList.indexOf( (File) oldFile); - renameOK = renameFile(index, newFile); - } - return renameOK; - } - COM: <s> rename a file in the project list </s> - diff --git a/funcom_test/5592938.txt b/funcom_test/5592938.txt deleted file mode 100644 index 73301e847e0531ac728c5ed3a668084f2f4ec7b8..0000000000000000000000000000000000000000 --- a/funcom_test/5592938.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setFileActionDefaultStat() { - try { - wpMask mask = new wpMask(FILE_ACTIONS, fileActionIndices, - fileActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the file actions default status enabled disabled </s> - diff --git a/funcom_test/5592945.txt b/funcom_test/5592945.txt deleted file mode 100644 index ec168694ae2697339bd998b6ed171efc19b3e08f..0000000000000000000000000000000000000000 --- a/funcom_test/5592945.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void fileExit(ActionEvent e) { - - try { - getDesktop().closeAllWindow(); - appProps.savetoFile( (String) appProps.get(wpPropertyInterface.inifile)); - } - catch (wpException we) { - statusBar.setText(we.getMessage()); - } - // Garbage Collect and bye bye - System.gc(); - System.exit(0); - } - COM: <s> exit the application </s> - diff --git a/funcom_test/5592953.txt b/funcom_test/5592953.txt deleted file mode 100644 index 3032255c853ff35fe66c258722eb626b689726d6..0000000000000000000000000000000000000000 --- a/funcom_test/5592953.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void saveProject() throws wpException { - // the model is a linked list. options are: 1. Serialize, 2. xml - // 1. Invoke Save method in wpProject. - // 1. check if the project is altered. - if (isAltered()) { - saveXPRFile(); - setAltered(false); - } - } - COM: <s> save the project </s> - diff --git a/funcom_test/5592954.txt b/funcom_test/5592954.txt deleted file mode 100644 index 88eb923c04d3636e1fc4fbd7a34a9b436e3fb3b1..0000000000000000000000000000000000000000 --- a/funcom_test/5592954.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setTabActionDefaultStat() { - try { - wpMask mask = new wpMask(TAB_ACTIONS, tabActionIndices, - tabActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the tab actions default status enabled disabled </s> - diff --git a/funcom_test/5592958.txt b/funcom_test/5592958.txt deleted file mode 100644 index bb9f5a99728bcabf1e0f144472e7b52a73eefb46..0000000000000000000000000000000000000000 --- a/funcom_test/5592958.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEditorActionDefaultStat() { - - try { - wpMask mask = new wpMask(EDITOR_ACTIONS, editorActionIndices, - editorActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the editor actions default status enabled disabled </s> - diff --git a/funcom_test/5592989.txt b/funcom_test/5592989.txt deleted file mode 100644 index 9d9b485152de8c9c9982bc062a9d327af41dd59b..0000000000000000000000000000000000000000 --- a/funcom_test/5592989.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setWindowActionDefaultStat() { - try { - wpMask mask = new wpMask(WINDOW_ACTIONS, windowActionIndices, - windowActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the window actions default status enabled disabled </s> - diff --git a/funcom_test/5593012.txt b/funcom_test/5593012.txt deleted file mode 100644 index 7c6727c80635e3e9811c0d9f530ac8024fe82340..0000000000000000000000000000000000000000 --- a/funcom_test/5593012.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setDesktopActionDefaultStat() { - try { - wpMask mask = new wpMask(DESKTOP_ACTIONS, desktopActionIndices, - desktopActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - - } - COM: <s> set the desktop actions default status enabled disabled </s> - diff --git a/funcom_test/5593059.txt b/funcom_test/5593059.txt deleted file mode 100644 index d0075b92b174ede4a0fef646fd5e9d167b555f08..0000000000000000000000000000000000000000 --- a/funcom_test/5593059.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setProjectActionDefaultStat() { - try { - wpMask mask = new wpMask(PROJECT_ACTIONS, projectActionIndices, - projectActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the project actions default status enabled disabled </s> - diff --git a/funcom_test/5593092.txt b/funcom_test/5593092.txt deleted file mode 100644 index aefab9023472bbdddd61d70d7fa1e6531a98387f..0000000000000000000000000000000000000000 --- a/funcom_test/5593092.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setDomActionDefaultStat() { - try { - wpMask mask = new wpMask(DOM_ACTIONS, domActionIndices, - domActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the dom actions default status enabled disabled </s> - diff --git a/funcom_test/5593135.txt b/funcom_test/5593135.txt deleted file mode 100644 index cbbad658cb84b828b5df63c8f13ad9ec64edf629..0000000000000000000000000000000000000000 --- a/funcom_test/5593135.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setXMLActionDefaultStat() { - try { - wpMask mask = new wpMask(XML_ACTIONS, xmlActionIndices, - xmlActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the xml actions default status enabled disabled </s> - diff --git a/funcom_test/5593178.txt b/funcom_test/5593178.txt deleted file mode 100644 index c6ae28c631a85062a6c3429e23ed898d9703da20..0000000000000000000000000000000000000000 --- a/funcom_test/5593178.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setHelpActionDefaultStat() { - try { - wpMask mask = new wpMask(HELP_ACTIONS, helpActionIndices, - helpActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the help actions default status enabled disabled </s> - diff --git a/funcom_test/5593206.txt b/funcom_test/5593206.txt deleted file mode 100644 index 28b143894cf1326c48d1d45b6d3a2019837e7d9d..0000000000000000000000000000000000000000 --- a/funcom_test/5593206.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setTransformActionDefaultStat() { - try { - wpMask mask = new wpMask(TRANSFORM_ACTIONS, transformActionIndices, - transformActionDefaultStat); - wpMaskEvent event = new wpMaskEvent(this, mask); - maskHandler.fireMaskChanged(event); - } - catch (wpMaskException me) {} - } - COM: <s> set the transformer actions default status enabled disabled </s> - diff --git a/funcom_test/5593222.txt b/funcom_test/5593222.txt deleted file mode 100644 index 7d795d66791b59d05c7e9ba95110a4b2f0446db9..0000000000000000000000000000000000000000 --- a/funcom_test/5593222.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void maskChanged(wpMaskEvent e) { - Action act[] = null; - wpMask mask = e.getMask(); - int grp = mask.getGroup(); - act = allActions[grp]; - for (int i = 0; i < mask.getCount(); i++) { - act[mask.getIndices()[i]].setEnabled(mask.getStatus()[i]); - } - } - COM: <s> a mask change notification </s> - diff --git a/funcom_test/5776165.txt b/funcom_test/5776165.txt deleted file mode 100644 index d210d4c3a2563f3a13ffd8cde3de4e7919941af8..0000000000000000000000000000000000000000 --- a/funcom_test/5776165.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean moveCreatures() { - boolean ret = false; - for(Iterator e = chunks_.values().iterator(); e.hasNext();) { - RuntimeChunk chunk = (RuntimeChunk)e.next(); - boolean b = chunk.moveCreatures(adapter_); - if(!ret) ret = b; - } - return ret; - } - COM: <s> move creatures but dont draw them call repaint to do that </s> - diff --git a/funcom_test/5776472.txt b/funcom_test/5776472.txt deleted file mode 100644 index e50bbf6a2ef31fc438484748bd0451110c7b9db3..0000000000000000000000000000000000000000 --- a/funcom_test/5776472.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void draw(int offset_x, int offset_y) { - // prevent infinite loops - if(isDrawn()) return; - - setDrawn(true); - - // first draw everything this shape covers - for(Iterator e = getCoveredPositions(); e.hasNext();) { - ((Position)e.next()).draw(offset_x, offset_y); - } - - // draw the shape at this position - getShape().draw(this, offset_x, offset_y); - } - COM: <s> draw the shape at this position </s> - diff --git a/funcom_test/596288.txt b/funcom_test/596288.txt deleted file mode 100644 index 370a08ada1be1cd4f2a316d81f62c8f97df24453..0000000000000000000000000000000000000000 --- a/funcom_test/596288.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void fireEditingStopped() { - // Guaranteed to return a non-null array - Object[] listeners = listenerList.getListenerList(); - // Process the listeners last to first, notifying - // those that are interested in this event - for (int i = listeners.length-2; i>=0; i-=2) { - if (listeners[i]==CellEditorListener.class) { - ((CellEditorListener)listeners[i+1]).editingStopped(new ChangeEvent(this)); - } - } - } - COM: <s> notify all listeners that have registered interest for </s> - diff --git a/funcom_test/596352.txt b/funcom_test/596352.txt deleted file mode 100644 index 221cc5bfde0c194c0bbed871abcfd57738ce1aef..0000000000000000000000000000000000000000 --- a/funcom_test/596352.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setRowHeight(int rowHeight) { - if (rowHeight > 0) { - super.setRowHeight(rowHeight); - if (JTreeTable.this != null && - JTreeTable.this.getRowHeight() != rowHeight) { - JTreeTable.this.setRowHeight(this.getRowHeight()); - } - } - } - COM: <s> sets the row height of the tree and forwards the row height to </s> - diff --git a/funcom_test/6220660.txt b/funcom_test/6220660.txt deleted file mode 100644 index 95b49e7867a0bb2173a47956c8eed83cd561eed4..0000000000000000000000000000000000000000 --- a/funcom_test/6220660.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void append(Path path, String direction) { - Step first = path.getFirstStep(); - this.suffixNode(first.getNode(), direction); - while (path.hasNext()) { - (this.steps).add(path.getNextStep()); - } // while loop - } // method append - COM: <s> appends a tt path tt to this tt path tt setting the </s> - diff --git a/funcom_test/6220690.txt b/funcom_test/6220690.txt deleted file mode 100644 index 4fa176ec8c9d93702f8e38b0400598bb329ca210..0000000000000000000000000000000000000000 --- a/funcom_test/6220690.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public T getT(String id) { - for (int i = 0; i < this.ts.size(); i++) { - T currentT = (T)this.ts.get(i); - if (currentT.getId().equalsIgnoreCase(id)) { - return currentT; - } - } - return null; - } - COM: <s> returns the code t code which has the given id </s> - diff --git a/funcom_test/6220793.txt b/funcom_test/6220793.txt deleted file mode 100644 index 6d0b378a2b4e1095c466de4998eb9a07175f5b85..0000000000000000000000000000000000000000 --- a/funcom_test/6220793.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean equals(Object obj) { - boolean isEqual; - - if (obj != null && obj instanceof Sentence) { - Sentence otherSentence = (Sentence) obj; - - isEqual = (this == obj) - || getId().equals(otherSentence.getId()) - && getVROOT().equals((Object) otherSentence.getVROOT()) - && getAllGraphNodes().equals(otherSentence.getAllGraphNodes()); - } - else { - isEqual = false; - } - return isEqual; - } - COM: <s> returns true if the object is identical to this code sentence code </s> - diff --git a/funcom_test/6220967.txt b/funcom_test/6220967.txt deleted file mode 100644 index 2dd20ebb0f07e4407912f9bd34a180db45d8563d..0000000000000000000000000000000000000000 --- a/funcom_test/6220967.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ArrayList getAllNTs() { - ArrayList allNTs = new ArrayList(); - for (int i = 0; i < this.sentences.size(); i++) { - Sentence currentSent = (Sentence)this.sentences.get(i); - allNTs.addAll(currentSent.getNTs()); - } // for i - return allNTs; - } // getAllNTs() - COM: <s> returns all code nt code objects contained in this corpus </s> - diff --git a/funcom_test/6220979.txt b/funcom_test/6220979.txt deleted file mode 100644 index 474237ced8c67df8db647c8ba2a725ccc36eab84..0000000000000000000000000000000000000000 --- a/funcom_test/6220979.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public ArrayList getAllTs() { - ArrayList allTs = new ArrayList(); - for (int i = 0; i < this.sentences.size(); i++) { - Sentence currentSent = (Sentence)this.sentences.get(i); - allTs.addAll(currentSent.getTs()); - } // for i - return allTs; - } // getAllTs() - COM: <s> returns all code t code objects contained in this corpus </s> - diff --git a/funcom_test/6221215.txt b/funcom_test/6221215.txt deleted file mode 100644 index 9a8c67f8c93c6e8082ea007537a4d368dd132423..0000000000000000000000000000000000000000 --- a/funcom_test/6221215.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void serializeToDisk(String fileName) { - try { - FileOutputStream fos = new FileOutputStream(fileName); - ObjectOutputStream oos = new ObjectOutputStream(fos); - oos.writeObject(this); - oos.close(); - } - catch (IOException e) { - System.out.println(e.toString()); - } - } // serializeToDisk() - COM: <s> serializes and writes this code corpus code instance to disk </s> - diff --git a/funcom_test/6221236.txt b/funcom_test/6221236.txt deleted file mode 100644 index 0dd2f6a178af31cadba9aa824501daedb1efe603..0000000000000000000000000000000000000000 --- a/funcom_test/6221236.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public boolean equals(Object obj) { - - boolean isEqual; - - if (obj != null && obj instanceof Corpus) { - - Corpus otherCorpus = (Corpus) obj; - isEqual = (obj == this) - || getSentences().equals(otherCorpus.getSentences()) - && getId().equals(otherCorpus.getId()); - } - else { - isEqual = false; - } - - return isEqual; - } - COM: <s> returns true if the object is identical to this code corpus code </s> - diff --git a/funcom_test/6248374.txt b/funcom_test/6248374.txt deleted file mode 100644 index 3503a168f6fe96a78f4ffd905c25729139e0e138..0000000000000000000000000000000000000000 --- a/funcom_test/6248374.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isShared(IResource resource) { - OmniCoreTrace.trace(this,"isShared("+resource+")", "(called)"); - OmniCoreTrace.trace(this,"isShared("+resource+")", "Is shared: "+resource); - - boolean val = resource != null && !isIgnored(resource) && isControlled(resource); - OmniCoreTrace.trace(this,"isShared("+resource+")", "(returned) "+val); - return val; - } - COM: <s> answers code true code if and only if the resource is </s> - diff --git a/funcom_test/6248384.txt b/funcom_test/6248384.txt deleted file mode 100644 index 10e3f823c70e1729207f316c13fe3bcf5985c775..0000000000000000000000000000000000000000 --- a/funcom_test/6248384.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isIgnored (IResource resource) { - OmniCoreTrace.trace(this,"isIgnored("+resource+")", "(called)"); - OmniCoreTrace.trace(this,"isIgnored("+resource+")", "Is ignored: "+resource); - if (resource.isDerived()) { - return true; - } - return false; - } - COM: <s> answers code true code if the resource is ignored </s> - diff --git a/funcom_test/6248401.txt b/funcom_test/6248401.txt deleted file mode 100644 index 183bb77120c9034104aa31026fff6d2e8751560b..0000000000000000000000000000000000000000 --- a/funcom_test/6248401.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void deconfigure() throws CoreException { - OmniCoreTrace.trace(this,"deconfigureProject()", "(called)"); - OmniCoreTrace.trace(this,"deconfigureProject()", "deconfigure " + getProject()); - OmniResourceStateChangeListeners.getListener().projectDeconfigured(getProject()); - controlledResources.clear(); - fireStateChanged(getSubtreeMembers(getProject()), true); - OmniCoreTrace.trace(this,"deconfigureProject()", "(returned)"); - } - COM: <s> deconfigures the nature for this project called by the workspace on exit </s> - diff --git a/funcom_test/6248405.txt b/funcom_test/6248405.txt deleted file mode 100644 index 659bc5400a9c7410af10ccb314985aeb2fe2a3ef..0000000000000000000000000000000000000000 --- a/funcom_test/6248405.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toString(){ - OmniCoreTrace.trace(this,"toString()","(called)"); - String uri=""; - if(this.isConnected()) - try{uri=": "+this.getURI();} - catch(NotConnectedException e){}; - OmniCoreTrace.trace(this,"toString()","(returned)"+uri); - return uri; - } - COM: <s> returns a string representation of this connection </s> - diff --git a/funcom_test/6248489.txt b/funcom_test/6248489.txt deleted file mode 100644 index 59d7fd0e567de903a96298abe0314507e275f239..0000000000000000000000000000000000000000 --- a/funcom_test/6248489.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isMultiFileEnabled() { - OmniCoreTrace.trace(this,"isMultiFileEnabled()","(called)"); - // read from plugin xml config - boolean result = Boolean.valueOf( - this.configElement.getAttribute(ATTRIB_MULTIFILE)).booleanValue(); - OmniCoreTrace.trace(this,"isMultiFileEnabled()","(returned) "+result); - return result; - } - COM: <s> returns true if this connector supports </s> - diff --git a/funcom_test/6248515.txt b/funcom_test/6248515.txt deleted file mode 100644 index 641658a0434e039379740cba8deff64667b52ef8..0000000000000000000000000000000000000000 --- a/funcom_test/6248515.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void fireResourcesChanged(IResource[] resources) { - OmniCoreTrace.trace(this,"fireResourcesChaged("+resources+")","(called)"); - if (resources == null || resources.length == 0 || listeners.isEmpty()) - return; - for (Iterator i= listeners.iterator(); i.hasNext();) { - IResourceStateListener listener= (IResourceStateListener) i.next(); - listener.stateChanged(resources); - } - } - COM: <s> notifies the registered code iresource state listener code objects </s> - diff --git a/funcom_test/6248545.txt b/funcom_test/6248545.txt deleted file mode 100644 index 30396f334b8c121afab7778bb59b56f9f2d6670e..0000000000000000000000000000000000000000 --- a/funcom_test/6248545.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean hasContentChanged(IResource resource) { - OmniCoreTrace.trace(this,"hasContentChanged("+resource+")", "(called)"); - OmniCoreTrace.trace(this,"hasContentChanged("+resource+")", "Has content changed?: " + resource); - boolean change=false; - - //TODO ADD CODE TO DETECT CHANGE - - OmniCoreTrace.trace(this,"hasContentChanged("+resource+")", "(returned) " + change); - return change; - } - COM: <s> answers code true code if the preference to change the content </s> - diff --git a/funcom_test/6248547.txt b/funcom_test/6248547.txt deleted file mode 100644 index 78ec9a994bccd43583fbcd2e2dcc8b2cdc5caab2..0000000000000000000000000000000000000000 --- a/funcom_test/6248547.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void postLabelEvents(final LabelProviderChangedEvent[] events) { - OmniUITrace.trace(this,"postLabelEvents("+events+")","(called)"); - if (events != null && events.length > 0) { - Display.getDefault().asyncExec(new Runnable() { - public void run() { - for (int i= 0; i < events.length; i++) { - fireLabelProviderChanged(events[i]); - } - } - }); - } - } - COM: <s> fires label events of to </s> - diff --git a/funcom_test/6248567.txt b/funcom_test/6248567.txt deleted file mode 100644 index f546d685b322a49a3b28816ff500838f31caa790..0000000000000000000000000000000000000000 --- a/funcom_test/6248567.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void createPartControl(Composite parent) { - OmniUITrace.trace(this,"createPartControl("+parent+")","(called)"); - viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); - viewer.setContentProvider(new ViewContentProvider()); - viewer.setLabelProvider(new ViewLabelProvider()); - viewer.setSorter(new NameSorter()); - viewer.setInput(getViewSite()); - makeActions(); - hookContextMenu(); - hookDoubleClickAction(); - contributeToActionBars(); - } - COM: <s> this is a callback that will allow us </s> - diff --git a/funcom_test/6248599.txt b/funcom_test/6248599.txt deleted file mode 100644 index e448434e3ce0dd78d7e212975b136e8c81450762..0000000000000000000000000000000000000000 --- a/funcom_test/6248599.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Label createLabel(Composite parent, String text) { - OmniUITrace.trace(this,"createLabel("+parent+", "+text+")","(called)"); - Label label = new Label(parent, SWT.LEFT); - label.setText(text); - GridData data = new GridData(); - data.horizontalSpan = 1; - data.horizontalAlignment = GridData.FILL; - label.setLayoutData(data); - OmniUITrace.trace(this,"createLabel("+parent+", "+text+")","(returned)"+label); - return label; - } - COM: <s> utility method that creates a label instance </s> - diff --git a/funcom_test/6248600.txt b/funcom_test/6248600.txt deleted file mode 100644 index 045bafe8d053c5442d823957b73ddbd8efc22622..0000000000000000000000000000000000000000 --- a/funcom_test/6248600.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected ProgressMonitorPart createProgressMonitorPart(Composite parent, int height, int horizontalSpan, int indent){ - GridData data = new GridData(GridData.FILL_HORIZONTAL); - data.horizontalSpan = horizontalSpan; - data.horizontalIndent = indent; - ProgressMonitorPart progressMonitor = new ProgressMonitorPart(parent, parent.getLayout(), height); - progressMonitor.setLayoutData(data); - return progressMonitor; - } - COM: <s> utility method to create a progress monitor </s> - diff --git a/funcom_test/6248608.txt b/funcom_test/6248608.txt deleted file mode 100644 index 7689396ef58d278031431b8948d6504d9e966b05..0000000000000000000000000000000000000000 --- a/funcom_test/6248608.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected Text createTextField(Composite parent) { - OmniUITrace.trace(this,"createTextField("+parent+")","(called)"); - Text text = new Text(parent, SWT.SINGLE | SWT.BORDER); - GridData data = new GridData(GridData.FILL_HORIZONTAL); - data.verticalAlignment = GridData.CENTER; - data.grabExcessVerticalSpace = false; - data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH; - text.setLayoutData(data); - OmniUITrace.trace(this,"createTextField("+parent+")","(returned)"+text); - return text; - } - COM: <s> create a text field specific for this application </s> - diff --git a/funcom_test/6248612.txt b/funcom_test/6248612.txt deleted file mode 100644 index 74fe3f4662c70862719397ef493a893eaea6da44..0000000000000000000000000000000000000000 --- a/funcom_test/6248612.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: protected Group createGroup(Composite parent, String text) { - OmniUITrace.trace(this,"createGroup("+parent+", "+text+")","(called)"); - Group group = new Group(parent, SWT.NULL); - group.setText(text); - GridData data = new GridData(GridData.FILL_HORIZONTAL); - data.horizontalSpan = 2; - - group.setLayoutData(data); - GridLayout layout = new GridLayout(); - layout.numColumns = 2; - group.setLayout(layout); - OmniUITrace.trace(this,"createGroup("+parent+", "+text+")","(returned)"+group); - return group; - } - COM: <s> utility method to create a group </s> - diff --git a/funcom_test/6248749.txt b/funcom_test/6248749.txt deleted file mode 100644 index 77d8036f8aa4068871947dae9d49fcb8762dfd22..0000000000000000000000000000000000000000 --- a/funcom_test/6248749.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void testLockLine() throws Exception{ - sequenceNo = 0; - - // User 1 tries to lock an invalid line (should return same sequenceNo) - service.lockLine(documentHash,10,user1ID,sequenceNo); - TestCase.assertEquals(sequenceNo, - service.getSequenceNo(documentHash,sequenceNo,10)); - - // User 1 locks the second line (should return same sequenceNo) - service.lockLine(documentHash,2,user1ID,sequenceNo); - TestCase.assertEquals(sequenceNo, service.getSequenceNo( - documentHash,sequenceNo,2)); - } - COM: <s> test get sequence no after a lock line operation </s> - diff --git a/funcom_test/6248752.txt b/funcom_test/6248752.txt deleted file mode 100644 index f4e88e599e2e57bd577bc8c21c4cccddde34b058..0000000000000000000000000000000000000000 --- a/funcom_test/6248752.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testAddLine() throws Exception{ - long oldSequenceNo = 0; - - // User 1 adds a line after the first line - oldSequenceNo = service.addLine(documentHash,2,user1ID,"Added2", - sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,0,8)); - - // User 1 adds a line after the first line - oldSequenceNo = service.addLine(documentHash,2,user1ID,"Added1", - sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,1,9)); - } - COM: <s> test get sequence no on add line operations </s> - diff --git a/funcom_test/6248754.txt b/funcom_test/6248754.txt deleted file mode 100644 index 6b7febc45dda0ceb481e96f782707569bdb9a578..0000000000000000000000000000000000000000 --- a/funcom_test/6248754.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testInsert() throws Exception{ - long oldSequenceNo = 0; - - // User 1 inserts text in the third line - oldSequenceNo = service.insert(documentHash,1,user1ID,3,3,"abc", - sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,0,1)); - - // User 1 inserts text in the fourth line - oldSequenceNo = service.insert(documentHash,4,user1ID,3,3,"abc", - sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,1,4)); - } - COM: <s> test get sequence no on insert operations </s> - diff --git a/funcom_test/6248755.txt b/funcom_test/6248755.txt deleted file mode 100644 index c47d8de52b1ec736c8166e4d0874dcadbe952fc0..0000000000000000000000000000000000000000 --- a/funcom_test/6248755.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testDeleteLine() throws Exception{ - long oldSequenceNo = 0; - - // User 1 deletes the first line - oldSequenceNo = service.deleteLine(documentHash,1,user1ID, - sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,0,1)); - - // User 1 deletes the fourth line - oldSequenceNo = service.deleteLine(documentHash,4,user1ID, - sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,1,5)); - } - COM: <s> test get sequence no on delete line operations </s> - diff --git a/funcom_test/6248756.txt b/funcom_test/6248756.txt deleted file mode 100644 index 54908036cd34bbee52aa5fa1e812fe21b2b05a8e..0000000000000000000000000000000000000000 --- a/funcom_test/6248756.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testUpdateLine() throws Exception{ - long oldSequenceNo = 0; - - // User 1 updates the second line - oldSequenceNo = service.updateLine(documentHash,2,user1ID, - "update",sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,0,2)); - - // User 1 updates the fifth line - oldSequenceNo = service.updateLine(documentHash,5,user1ID, - "update2",sequenceNo); - TestCase.assertEquals(++sequenceNo, service.getSequenceNo( - documentHash,1,5)); - } - COM: <s> test get sequence no on update line operations </s> - diff --git a/funcom_test/6315264.txt b/funcom_test/6315264.txt deleted file mode 100644 index c7bbab29266557ae34ba3894468e43af9d5a479f..0000000000000000000000000000000000000000 --- a/funcom_test/6315264.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private TreeItem findNodeWithIdRecursive(TreeItem[] arrItem, String id) - { - for(TreeItem current: arrItem) - { - String idInNode = (String) current.getData(); - if(idInNode.equals(id)) - return current; - TreeItem itemInside = findNodeWithIdRecursive(current.getItems(), id); - if(itemInside != null) - return itemInside; - } - return null; - } - COM: <s> finds a node in the subtree that contains the given id </s> - diff --git a/funcom_test/6316275.txt b/funcom_test/6316275.txt deleted file mode 100644 index 70b4ef42181f8ad0ffb4f3f37d22cd55588c95a2..0000000000000000000000000000000000000000 --- a/funcom_test/6316275.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void selectItem(NameAndPackage namePackage) - { - try - { - TreeItem item = findTreeItem(namePackage); - if(item != null) - { - tree.setSelection(new TreeItem[] { item }); - tree.showSelection(); - notifySelected((IRItem) item.getData()); - } - } - catch (TreeException e) - { - MessageBoxAndLog.show(tree.getShell(), "Project", "Selecting the item "+namePackage+" in the tree got", e); - } - } - COM: <s> select the item with the given name package in the tree </s> - diff --git a/funcom_test/6316602.txt b/funcom_test/6316602.txt deleted file mode 100644 index 66456eef905d2e8cb0756014abd09f6e14131c01..0000000000000000000000000000000000000000 --- a/funcom_test/6316602.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public IFunction buildFunction() throws FunctionBuildingException - { - try - { - IFunction function = (IFunction)functionClass.newInstance(); - return function; - } - catch (InstantiationException e) - { - throw new FunctionBuildingException("Building the function with class "+functionClass+" got", e); - } - catch (IllegalAccessException e) - { - throw new FunctionBuildingException("Building the function with class "+functionClass+" got", e); - } - } - COM: <s> builds a function from this template </s> - diff --git a/funcom_test/6350640.txt b/funcom_test/6350640.txt deleted file mode 100644 index 98a847cdca7ca3066673270db44c3e89e87d9f0f..0000000000000000000000000000000000000000 --- a/funcom_test/6350640.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void communicate() throws IOException { - - // read the body - String data; - - if((data = in.readLine())==null) { - return; - } - - if("".equals(data)) { - return; - } - - write("You said: "+data); - - if("quit".startsWith(data)) { - this.sock.close(); - throw new IOException("client said quit"); - } - } - COM: <s> implement the comms </s> - diff --git a/funcom_test/6424547.txt b/funcom_test/6424547.txt deleted file mode 100644 index 2198d246dadab43e079471b3e3ce669097b28f11..0000000000000000000000000000000000000000 --- a/funcom_test/6424547.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int hashCode() { - int hash = 17; - - hash += 37 * source.hashCode(); - if (getParamsCount() != 0) { - for (int i = 0; i < getParamsCount(); i++) { - hash += 37 * getParam(i).hashCode(); - } - } - - return hash; - } - COM: <s> returns the code plugable event code s hash code </s> - diff --git a/funcom_test/6424616.txt b/funcom_test/6424616.txt deleted file mode 100644 index 432b8db3ec14e31933dc0405bcdfe6d9edff880a..0000000000000000000000000000000000000000 --- a/funcom_test/6424616.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void addPlugable(Plugable plugable){ - instance.putInstance(plugable); - Iterator pluginNames=registry.getPluginClassNames(plugable.getName()); - if(pluginNames==null)return; - while(pluginNames.hasNext()){ - String current=pluginNames.next().toString(); - try{ - Class c=PluginLoader.getPluginClass(current); - Plugin p=(Plugin)c.newInstance(); - p.pluginInstalled(plugable); - String[] keys=p.getKeysFor(plugable.getName()); - for(int i=keys.length-1;i>=0;i--){ - instance.putInstance(plugable,keys[i],p); - } - }catch(Exception e){ - e.printStackTrace(); - } - } - } - COM: <s> adds the plugable and ties it to any currently existing plugin as requested </s> - diff --git a/funcom_test/6424617.txt b/funcom_test/6424617.txt deleted file mode 100644 index b7262ba1da10062f6973e1b72f7e49967f61a164..0000000000000000000000000000000000000000 --- a/funcom_test/6424617.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public void removePlugin(Plugin plugin){ - String[] plugableNames=plugin.getPlugableNames(); - String[] keys; - Iterator it; - Plugable plugable; - for(int i=plugableNames.length-1;i>=0;i--){ - it=instance.getInstances(plugableNames[i]); - registry.removeEntry(plugableNames[i],plugin.getClass().getName()); - keys=plugin.getKeysFor(plugableNames[i]); - while(it.hasNext()){ - plugable=(Plugable)it.next(); - Iterator plugins=instance.getInstances(plugable,keys[0]); - if(plugins!=null){ - while(plugins.hasNext()){ - ((Plugin)plugins.next()).pluginRemoved(plugable); - } - } - for(int j=keys.length-1;j>=0;j--){ - instance.putInstance(plugable,keys[j],null); - } - } - } - } - COM: <s> removes the plugin and removes all ties that this plugin has </s> - diff --git a/funcom_test/6424624.txt b/funcom_test/6424624.txt deleted file mode 100644 index 4fd48add3088d6d4bcac5b9c20849cf8d5e3d9f3..0000000000000000000000000000000000000000 --- a/funcom_test/6424624.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean routeEvent(String key,PlugableEvent evt){ - // The following cast is guaranteed to work -- The event can only be - // instantiated with a PlugableEvent as source. So, we should be - // safe enough. - Iterator plugins=instance.getInstances((Plugable)evt.getSource(),key); - if(plugins!=null){ - while(plugins.hasNext() && !evt.isEventConsumed()){ - ((Plugin)plugins.next()).eventFired(evt); - } - } - return evt.isEventConsumed(); - } - COM: <s> route the event to the plugin </s> - diff --git a/funcom_test/6424632.txt b/funcom_test/6424632.txt deleted file mode 100644 index 11c0bb3f9a19560fca7c0618ac171dc80765f3c2..0000000000000000000000000000000000000000 --- a/funcom_test/6424632.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected Manifest createManifest(String pluginClass) { - Manifest manifest = new Manifest(); - if (pluginClass != null) { - Attributes attr = manifest.getMainAttributes(); - Attributes.Name attrName = new Attributes.Name(PLUGIN_CLASS_ATTR); - attr.put(attrName, pluginClass); - } - - return manifest; - } - COM: <s> create a new manifest </s> - diff --git a/funcom_test/6505311.txt b/funcom_test/6505311.txt deleted file mode 100644 index 8f101c9252988958d2456dac2527da86238fd238..0000000000000000000000000000000000000000 --- a/funcom_test/6505311.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void refreshAttributes() { - MBeanAttributeInfo[] at = mBeanInfo.getAttributes(); - setMBeanAttributes(new HashMap()); - - for (int i = 0; i < at.length; i++) { - Attribute attribute = new Attribute(at[i], this); - getMBeanAttributes().put(attribute.getName(), attribute); - } - } - COM: <s> method refresh attributes </s> - diff --git a/funcom_test/6505315.txt b/funcom_test/6505315.txt deleted file mode 100644 index 21503320afe2905880a0761d692a53d228cad240..0000000000000000000000000000000000000000 --- a/funcom_test/6505315.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void refreshOperations() { - //operations - MBeanOperationInfo[] op = mBeanInfo.getOperations(); - setMBeanOperations(new HashMap()); - - for (int k = 0; k < op.length; k++) { - Operation operation = new Operation(op[k], this); - getMBeanOperations().put(operation.getName(), operation); - } - - } - COM: <s> method refresh operations </s> - diff --git a/funcom_test/6505385.txt b/funcom_test/6505385.txt deleted file mode 100644 index 0cb43456d3b4d61692e8cb587f924225bdb4fa5f..0000000000000000000000000000000000000000 --- a/funcom_test/6505385.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public String getAttrbuteValue(String attributeName) { - - String value = ""; - try { - - RMIConnectorImpl server = getParent().getServer(); - ObjectName objectName = getObjectName(); - value = - (String) "" + server.getAttribute(objectName, attributeName); - } catch (AttributeNotFoundException e) { - } catch (InstanceNotFoundException e) { - } catch (MBeanException e) { - } catch (ReflectionException e) { - System.err.println("cant get Attribute" + e); - } - return value; - } - COM: <s> method get attrbute </s> - diff --git a/funcom_test/6505419.txt b/funcom_test/6505419.txt deleted file mode 100644 index 2c2f9a38a8d987db006b0f6864d8542d85678e04..0000000000000000000000000000000000000000 --- a/funcom_test/6505419.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void createPartControl(Composite parent) { - viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); - drillDownAdapter = new DrillDownAdapter(viewer); - viewer.setContentProvider(new JmxTreeContentProvider()); - viewer.setLabelProvider(new ViewLabelProvider()); - viewer.setSorter(new NameSorter()); - viewer.setInput(JmxGuiPlugin.getDefault().getServerManager()); - - makeActions(); - hookContextMenu(); - hookDoubleClickAction(); - hookSelectionChangedAction(); - contributeToActionBars(); - } - COM: <s> this is a callback that will allow us </s> - diff --git a/funcom_test/6505425.txt b/funcom_test/6505425.txt deleted file mode 100644 index b7a4bc096516da93e7abd238a6b57b230cb95d8e..0000000000000000000000000000000000000000 --- a/funcom_test/6505425.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void hookContextMenu() { - MenuManager menuMgr = new MenuManager("#PopupMenu"); - menuMgr.setRemoveAllWhenShown(true); - menuMgr.addMenuListener(new IMenuListener() { - public void menuAboutToShow(IMenuManager manager) { - JmxView.this.fillContextMenu(manager); - } - }); - Menu menu = menuMgr.createContextMenu(viewer.getControl()); - viewer.getControl().setMenu(menu); - getSite().registerContextMenu(menuMgr, viewer); - } - COM: <s> method hook context menu </s> - diff --git a/funcom_test/6505494.txt b/funcom_test/6505494.txt deleted file mode 100644 index 218b500f9c63a228999cfaa1ba86eb0be4d17673..0000000000000000000000000000000000000000 --- a/funcom_test/6505494.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: protected void hookSelectionChangedAction() { - viewer.addSelectionChangedListener(new ISelectionChangedListener() { - public void selectionChanged(SelectionChangedEvent event) { - - IStructuredSelection selection = (IStructuredSelection) event.getSelection(); - if (selection.getFirstElement() instanceof Server) { - action2.setEnabled(true); - if (!((Server) selection.getFirstElement()).isConnected()) { - action4.setEnabled(true); - } else { - action4.setEnabled(false); - } - return; - } else { - action2.setEnabled(false); - } - - } - }); - } - COM: <s> method hook selection changed action </s> - diff --git a/funcom_test/6509043.txt b/funcom_test/6509043.txt deleted file mode 100644 index 3b2f2c77868d23acf46dd08dd1273916609b6277..0000000000000000000000000000000000000000 --- a/funcom_test/6509043.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void testIterator() { - this.fillArray(); - Iterator<Integer> iterator = this.testedArray.iterator(); - for (int i = 0; i < BASE_SIZE; i++) { - assertTrue(iterator.hasNext()); - assertEquals(i,(int)iterator.next()); - } - assertFalse(iterator.hasNext()); - try { - iterator.next(); - fail(); - } catch (NoSuchElementException e) { - //Comportamiento correcto - } - this.testedArray.setLength(0); - iterator = this.testedArray.iterator(); - assertFalse(iterator.hasNext()); - try { - iterator.next(); - fail(); - } catch (NoSuchElementException e) { - //Comportamiento correcto - } - } - COM: <s> test method for ar </s> - diff --git a/funcom_test/6522402.txt b/funcom_test/6522402.txt deleted file mode 100644 index 3951571dd3685d9ce66345bb8813a5ae56ea113b..0000000000000000000000000000000000000000 --- a/funcom_test/6522402.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public PortletWindowSession removePortletWindowSession(String windowID) { - final String MN = "getPortletWindowSession"; - - PortletWindowSession winSession = (PortletWindowSession) this.windowSessions - .remove(windowID); - - if (logger.isLogging(Logger.TRACE_HIGH) && winSession != null) { - logger.text(Logger.TRACE_HIGH, MN, - "removed PortletWindowSession with ID: " + windowID); - } - - return winSession; - } - COM: <s> remove the porlet window session with the given window id </s> - diff --git a/funcom_test/6522410.txt b/funcom_test/6522410.txt deleted file mode 100644 index 9d66f07e6fa60d61c78d9c87acb2b73e80dc5a11..0000000000000000000000000000000000000000 --- a/funcom_test/6522410.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setURLGenerator(URLGenerator urlGenerator) { - - String MN = "setURLGenerator"; - if (logger.isLogging(Logger.TRACE_HIGH)) { - logger.entry(Logger.TRACE_HIGH, MN); - } - - this.urlGenerator = urlGenerator; - - if (logger.isLogging(Logger.TRACE_HIGH)) { - logger.exit(Logger.TRACE_HIGH, MN); - } - - } - COM: <s> sets the url generator </s> - diff --git a/funcom_test/6522519.txt b/funcom_test/6522519.txt deleted file mode 100644 index 336dfcdf68aeda0a3f31eca1e6bc49e30cfc1b3b..0000000000000000000000000000000000000000 --- a/funcom_test/6522519.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public Logger getLogger(Class aClass) { - //create a Logger - org.apache.log4j.Logger logger = org.apache.log4j.Logger - .getLogger(aClass); - - //determine log level for aClass - String propertyName = PROPERTY_PREFIX + aClass.getName(); - int level = globalLogLevel; - int userDefinedLevel = getLevelFromString(wsrp4jLevels - .getProperty(propertyName)); - if (userDefinedLevel != 0) { - level = userDefinedLevel; - } - return new LoggerImpl(logger, level); - } - COM: <s> returns a logger instance for the calling class </s> - diff --git a/funcom_test/6522563.txt b/funcom_test/6522563.txt deleted file mode 100644 index 0bec66e2cb0e133b14941cd4e96ada04a14f2114..0000000000000000000000000000000000000000 --- a/funcom_test/6522563.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: synchronized public String generateHandle() { - - String host = null; - try { - - host = InetAddress.getLocalHost().getHostAddress().toString(); - - } - catch (Exception e) { - - host = Double.toString(new Random(new Random().nextLong()) - .nextDouble()); - - } - - StringBuffer handle = new StringBuffer(host); - handle.append("_"); - handle.append(String.valueOf(System.currentTimeMillis())); - handle.append("_"); - handle.append(Integer.toString(counter++)); - - return handle.toString(); - } - COM: <s> generates a new handle and returns it as a string </s> - diff --git a/funcom_test/6522596.txt b/funcom_test/6522596.txt deleted file mode 100644 index 2d03b11b0aee50305ae0b0ad3ba4c8c23db75c7b..0000000000000000000000000000000000000000 --- a/funcom_test/6522596.txt +++ /dev/null @@ -1,30 +0,0 @@ -TDAT: public ReturnAny deregister() throws WSRPException { - ReturnAny any = null; - - try { - if (registrationContext != null - && this.registrationInterface != null) { - - any = registrationInterface - .deregister(this.registrationContext); - registrationContext = null; - registrationRequired = false; - - stateChanged(); - - } - else { - // TODO: Either we aren't registered at the producer or - // the producer does not support in-band registration - } - - } - catch (java.rmi.RemoteException wsrpFault) { - - WSRPXHelper.handleWSRPFault(logger, wsrpFault); - } - - return any; - } - COM: <s> end an existing consumer producer relationship and remove the registration context </s> - diff --git a/funcom_test/6522606.txt b/funcom_test/6522606.txt deleted file mode 100644 index 85ecc49c9585122df88378681cc28ce653064a2d..0000000000000000000000000000000000000000 --- a/funcom_test/6522606.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void check(ClonePortlet request) throws MissingParametersFault { - if (isCheckEnabled()) { - // check ClonePortlet request object pointer - if (request instanceof ClonePortlet) { - - // check for registration context - check(request.getRegistrationContext(), Constants.NILLABLE_TRUE); - check(request.getPortletContext(), Constants.NILLABLE_FALSE); - check(request.getUserContext(), Constants.NILLABLE_TRUE); - - } - else { - - throwMissingParametersFault("Input object is not a ClonePortlet or is null"); - } - } - } - COM: <s> parameter check for the clone portlet object </s> - diff --git a/funcom_test/6522612.txt b/funcom_test/6522612.txt deleted file mode 100644 index 36e9aae26b408103e43eef5fe780afee1f1b814c..0000000000000000000000000000000000000000 --- a/funcom_test/6522612.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void check(DestroyPortlets request) throws MissingParametersFault { - if (isCheckEnabled()) { - // check DestroyPortlet request object pointer - if (request instanceof DestroyPortlets) { - - // check for registration context - check(request.getRegistrationContext(), Constants.NILLABLE_TRUE); - check(request.getPortletHandles(), Constants.NILLABLE_FALSE); - - } - else { - - throwMissingParametersFault("Input object is not a DestroyPortlets or is null"); - } - } - } - COM: <s> parameter check for the destroy entites object </s> - diff --git a/funcom_test/6522636.txt b/funcom_test/6522636.txt deleted file mode 100644 index b482933f53b7873798638ef34c80c73b191186c0..0000000000000000000000000000000000000000 --- a/funcom_test/6522636.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void check(ReleaseSessions request) throws MissingParametersFault { - if (isCheckEnabled()) { - // check ReleaseSession request object pointer - if (request instanceof ReleaseSessions) { - - // check for registration context - check(request.getRegistrationContext(), Constants.NILLABLE_TRUE); - - // check sessionhandles array - check(request.getSessionIDs(), Constants.NILLABLE_FALSE); - - } - else { - - throwMissingParametersFault("Input object is not a ReleaseSession or is null"); - } - } - } - COM: <s> parameter check for the release session object </s> - diff --git a/funcom_test/6522676.txt b/funcom_test/6522676.txt deleted file mode 100644 index df8fbd32a561c6bcd78a3eed0c44f3d0c5481d71..0000000000000000000000000000000000000000 --- a/funcom_test/6522676.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void check(UpdateResponse response) throws MissingParametersFault { - - // check UpdateResponse object pointer - if (response instanceof UpdateResponse) { - - check(response.getSessionContext(), Constants.NILLABLE_TRUE); - check(response.getPortletContext(), Constants.NILLABLE_TRUE); - check(response.getMarkupContext(), Constants.NILLABLE_TRUE); - - // TODO: check for valid window states and portlet modes - - } - else { - - throwMissingParametersFault("No valid update response found."); - } - } - COM: <s> parameter check for the update response object </s> - diff --git a/funcom_test/6523307.txt b/funcom_test/6523307.txt deleted file mode 100644 index 4373afd4c3e21e784500280d6241860718e959c3..0000000000000000000000000000000000000000 --- a/funcom_test/6523307.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Portlet getPortlet(Layout layout, String portletId) { - - try { - return PortletLocalServiceUtil.getPortletById(layout.getCompanyId(), portletId); - } - catch (SystemException e) { - throw new PortletRuntimeException( - "Error getting portlet for group " + layout.getGroupId() + - (layout.isPrivateLayout() ? " private layout" : " public layout"), e); - } - } - COM: <s> returns the liferay portlet model object for the specified portlet id </s> - diff --git a/funcom_test/6524643.txt b/funcom_test/6524643.txt deleted file mode 100644 index ec5855d64d63e74efce08dedf9aef8664008f92b..0000000000000000000000000000000000000000 --- a/funcom_test/6524643.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean equals(Object obj) { - if ((obj != null) && (obj instanceof MyUrl)) { - MyUrl data = (MyUrl) obj; - return new EqualsBuilder() - .append(_url, data._url) - .append(_description, data._description) - .isEquals(); - } else { - return false; - } - } - COM: <s> indicates whether some other object is equal to this one </s> - diff --git a/funcom_test/6525293.txt b/funcom_test/6525293.txt deleted file mode 100644 index 386b0ba3971f669276124c8574333cfdc7323cce..0000000000000000000000000000000000000000 --- a/funcom_test/6525293.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean equals(Object object) { - - if (!(object instanceof NewsNoteData)) { - return false; - } - - NewsNoteData content = (NewsNoteData) object; - //TODO: The equals method must be revised to check that we are - //testing the correct fields. - - return new EqualsBuilder() - .append(_title, content._title) - .isEquals(); - } - COM: <s> test if two contens are equal </s> - diff --git a/funcom_test/6525800.txt b/funcom_test/6525800.txt deleted file mode 100644 index cf989f0fc323909cbc4581f1b4fb48917552e256..0000000000000000000000000000000000000000 --- a/funcom_test/6525800.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getRepositoryPath(Class contentClass) { - String className = getClassName(contentClass); - String repositoryPath = CmsConfig.getRepositoryPath(className); - - if (StringUtils.isEmpty(repositoryPath)) { - repositoryPath = CmsConfig.getDefaultRepositoryPath(); - } - if (!repositoryPath.endsWith("/")) { - repositoryPath += "/"; - } - return repositoryPath; - } - COM: <s> get the path to the binary contents repository </s> - diff --git a/funcom_test/6526359.txt b/funcom_test/6526359.txt deleted file mode 100644 index c59300f03bce9ac72d8ddbe68186fec3fea840a3..0000000000000000000000000000000000000000 --- a/funcom_test/6526359.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public boolean belongsToCategory(Category aCategory) { - boolean result = false; - if (this.categories.contains(aCategory)) { - result = true; - } else { - Iterator it = aCategory.getChildren().iterator(); - while (it.hasNext()) { - if (this.belongsToCategory((Category) it.next())) { - result = true; - } - } - } - return result; - } - COM: <s> returns code true code if the content belongs to this category </s> - diff --git a/funcom_test/6526536.txt b/funcom_test/6526536.txt deleted file mode 100644 index b473f1017bbaf2dbfde16799c76748f39a41901b..0000000000000000000000000000000000000000 --- a/funcom_test/6526536.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getNumberOfPages() { - int number = 0; - if ( _hits.size() > 0 && _pageRange > 0 ) { - number = _hits.size()/_pageRange; - if ( (_hits.size() - number*_pageRange) > 0 ) - number++; - } - return number; - } - COM: <s> gets the number of pages </s> - diff --git a/funcom_test/6527329.txt b/funcom_test/6527329.txt deleted file mode 100644 index 8cbc0b7f6e0cc6e8d56d782bc82395dce32815fd..0000000000000000000000000000000000000000 --- a/funcom_test/6527329.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public RSSBuilder (String URLRSS ){ - try{ - URL url = new URL( URLRSS ); - // El metodo parse toma como parametros un objeto de tipo ChannelBuilderIF y una URL - ChannelIF channel = FeedParser.parse( new ChannelBuilder(), url ); - title = channel.getTitle(); - description = channel.getDescription(); - date = channel.getPubDate(); - items = channel.getItems(); - type = "2.0"; - } catch (Exception e){ - - } - } - COM: <s> builds a rssbuilder from a url </s> - diff --git a/funcom_test/6527353.txt b/funcom_test/6527353.txt deleted file mode 100644 index 86638e206cc8bda9b0a0d800976ebd6620af9e23..0000000000000000000000000000000000000000 --- a/funcom_test/6527353.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getLink( String contentId, String contentVersion, String layoutId){ - Map linkVariables = new HashMap(); - linkVariables.put("contentId", contentId); - linkVariables.put("layoutId", layoutId); - linkVariables.put("contentVersion", contentVersion); - linkVariables.put("portletId", this.portletId); - return CmsToolsConfig.getContentUrl(linkVariables); - } - COM: <s> returns the link of a portlet content as a string </s> - diff --git a/funcom_test/6528540.txt b/funcom_test/6528540.txt deleted file mode 100644 index bd5cf455bda20570d0aed6218df89e7b587277ac..0000000000000000000000000000000000000000 --- a/funcom_test/6528540.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void checkIn(Content content) throws CMSRuntimeException{ - try { - Node n = JCRUtil.getNodeById(content.getId()); - n.checkin(); - } catch (RepositoryException e) { - String errorMessage = "Error checking-in node: "; - log.error(errorMessage, e); - throw new CMSRuntimeException(errorMessage, e); - } - } - COM: <s> creates a new version of the content </s> - diff --git a/funcom_test/6528551.txt b/funcom_test/6528551.txt deleted file mode 100644 index fecfd600e898083b2b2dbb94c34799e7bd12054e..0000000000000000000000000000000000000000 --- a/funcom_test/6528551.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void checkOut(Content content) throws CMSRuntimeException{ - try { - Node n = JCRUtil.getNodeById(content.getId()); - checkoutNode(n); - } catch (RepositoryException e) { - String errorMessage = "Error finding node["+content.getId()+"]: "; - log.error(errorMessage, e); - throw new CMSRuntimeException(errorMessage, e); - } - } - COM: <s> check out of a content and node related is necessary to alter </s> - diff --git a/funcom_test/6528563.txt b/funcom_test/6528563.txt deleted file mode 100644 index 67d4d9b835d8f8a2008a2f6e53fc510d7a4273f8..0000000000000000000000000000000000000000 --- a/funcom_test/6528563.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void checkOutById(String id) { - - try { - Node n = JCRUtil.getNodeById(id); - checkoutNode(n); - } catch (Exception e) { - String errorMessage = "Error finding node[" + id + "]: "; - log.error(errorMessage, e); - throw new CMSRuntimeException(errorMessage, e); - } - } - COM: <s> checkout a content given by its id </s> - diff --git a/funcom_test/6555612.txt b/funcom_test/6555612.txt deleted file mode 100644 index 64bb60afc8d4bf707a284d8db15ef87a05be3163..0000000000000000000000000000000000000000 --- a/funcom_test/6555612.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public MBBan update(MBBan mbBan, boolean merge) throws SystemException { - boolean isNew = mbBan.isNew(); - - for (ModelListener listener : listeners) { - if (isNew) { - listener.onBeforeCreate(mbBan); - } - else { - listener.onBeforeUpdate(mbBan); - } - } - - mbBan = updateImpl(mbBan, merge); - - for (ModelListener listener : listeners) { - if (isNew) { - listener.onAfterCreate(mbBan); - } - else { - listener.onAfterUpdate(mbBan); - } - } - - return mbBan; - } - COM: <s> add update or merge the entity </s> - diff --git a/funcom_test/6558552.txt b/funcom_test/6558552.txt deleted file mode 100644 index 9a488b61d385688d83f4601e9c835c7f3695bf97..0000000000000000000000000000000000000000 --- a/funcom_test/6558552.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public FriendlyURLMapper getFriendlyURLMapperInstance() { - if (Validator.isNull(getFriendlyURLMapperClass())) { - return null; - } - - if (_portletApp.isWARFile()) { - PortletBag portletBag = PortletBagPool.get(getRootPortletId()); - - return portletBag.getFriendlyURLMapperInstance(); - } - - return (FriendlyURLMapper)InstancePool.get(getFriendlyURLMapperClass()); - } - COM: <s> gets the friendly url mapper instance of the portlet </s> - diff --git a/funcom_test/6558628.txt b/funcom_test/6558628.txt deleted file mode 100644 index 57e0531ac140003501bcba0e97e8aa60c16422d4..0000000000000000000000000000000000000000 --- a/funcom_test/6558628.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public URLEncoder getURLEncoderInstance() { - if (Validator.isNull(getURLEncoderClass())) { - return null; - } - - if (_portletApp.isWARFile()) { - PortletBag portletBag = PortletBagPool.get(getRootPortletId()); - - return portletBag.getURLEncoderInstance(); - } - - return (URLEncoder)InstancePool.get(getURLEncoderClass()); - } - COM: <s> gets the url encoder instance of the portlet </s> - diff --git a/funcom_test/6558706.txt b/funcom_test/6558706.txt deleted file mode 100644 index 1459ed078dde3f6f216096a3837c4dd57579bc80..0000000000000000000000000000000000000000 --- a/funcom_test/6558706.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public PortletDataHandler getPortletDataHandlerInstance() { - if (Validator.isNull(getPortletDataHandlerClass())) { - return null; - } - - if (_portletApp.isWARFile()) { - PortletBagImpl portletBagImpl = (PortletBagImpl)PortletBagPool.get( - getRootPortletId()); - - return portletBagImpl.getPortletDataHandlerInstance(); - } - - return (PortletDataHandler)InstancePool.get( - getPortletDataHandlerClass()); - } - COM: <s> gets the portlet data handler instance of the portlet </s> - diff --git a/funcom_test/6558887.txt b/funcom_test/6558887.txt deleted file mode 100644 index 6e65f234234747827f50213f8f3ad2c940944f5f..0000000000000000000000000000000000000000 --- a/funcom_test/6558887.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public MessageListener getPopMessageListenerInstance() { - if (Validator.isNull(getPopMessageListenerClass())) { - return null; - } - - if (_portletApp.isWARFile()) { - PortletBag portletBag = PortletBagPool.get(getRootPortletId()); - - return portletBag.getPopMessageListenerInstance(); - } - - return (MessageListener)InstancePool.get(getPopMessageListenerClass()); - } - COM: <s> gets the pop message listener instance of the portlet </s> - diff --git a/funcom_test/6558997.txt b/funcom_test/6558997.txt deleted file mode 100644 index 9dae55f1a3382205b28f7d3026149a1446a732ac..0000000000000000000000000000000000000000 --- a/funcom_test/6558997.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public SocialActivityInterpreter getSocialActivityInterpreterInstance() { - if (Validator.isNull(getSocialActivityInterpreterClass())) { - return null; - } - - if (_portletApp.isWARFile()) { - PortletBagImpl portletBagImpl = (PortletBagImpl)PortletBagPool.get( - getRootPortletId()); - - return portletBagImpl.getSocialActivityInterpreterInstance(); - } - - return (SocialActivityInterpreter)InstancePool.get( - getSocialActivityInterpreterClass()); - } - COM: <s> gets the name of the social activity interpreter instance of the portlet </s> - diff --git a/funcom_test/6559085.txt b/funcom_test/6559085.txt deleted file mode 100644 index f9bd36a0e0fb95a099f499f22023c95d77363794..0000000000000000000000000000000000000000 --- a/funcom_test/6559085.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public SocialRequestInterpreter getSocialRequestInterpreterInstance() { - if (Validator.isNull(getSocialRequestInterpreterClass())) { - return null; - } - - if (_portletApp.isWARFile()) { - PortletBagImpl portletBagImpl = (PortletBagImpl)PortletBagPool.get( - getRootPortletId()); - - return portletBagImpl.getSocialRequestInterpreterInstance(); - } - - return (SocialRequestInterpreter)InstancePool.get( - getSocialRequestInterpreterClass()); - } - COM: <s> gets the name of the social request interpreter instance of the portlet </s> - diff --git a/funcom_test/6559370.txt b/funcom_test/6559370.txt deleted file mode 100644 index 9652742b6054243507250ae52dda97b640c9c392..0000000000000000000000000000000000000000 --- a/funcom_test/6559370.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public WebDAVStorage getWebDAVStorageInstance() { - if (Validator.isNull(getWebDAVStorageClass())) { - return null; - } - - if (_portletApp.isWARFile()) { - PortletBagImpl portletBagImpl = (PortletBagImpl)PortletBagPool.get( - getRootPortletId()); - - return portletBagImpl.getWebDAVStorageInstance(); - } - - return (WebDAVStorage)InstancePool.get( - getWebDAVStorageClass()); - } - COM: <s> gets the name of the web dav storage instance of the portlet </s> - diff --git a/funcom_test/6561058.txt b/funcom_test/6561058.txt deleted file mode 100644 index 959a9d671003ae454fcdfc9a11a04d9ab8893eda..0000000000000000000000000000000000000000 --- a/funcom_test/6561058.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public boolean hasPortletMode(String mimeType, PortletMode portletMode) { - if (mimeType == null) { - mimeType = ContentTypes.TEXT_HTML; - } - - Set<String> mimeTypeModes = _portletModes.get(mimeType); - - if (mimeTypeModes == null) { - return false; - } - - if (mimeTypeModes.contains(portletMode.toString())) { - return true; - } - else { - return false; - } - } - COM: <s> returns true if the portlet supports the specified mime type and </s> - diff --git a/funcom_test/6561333.txt b/funcom_test/6561333.txt deleted file mode 100644 index 111f264ca6d68d541cd3edb012e48b19ab6a9c02..0000000000000000000000000000000000000000 --- a/funcom_test/6561333.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public String getContextPath() { - String virtualPath = getVirtualPath(); - - if (Validator.isNotNull(virtualPath)) { - return virtualPath; - } - - if (_portletApp.isWARFile()) { - StringBuilder sb = new StringBuilder(); - - sb.append(StringPool.SLASH); - sb.append(_portletApp.getServletContextName()); - - return sb.toString(); - } - else { - return PortalUtil.getPathContext(); - } - } - COM: <s> gets the servlet context path of the portlet </s> - diff --git a/funcom_test/6584325.txt b/funcom_test/6584325.txt deleted file mode 100644 index 099fb9262398b8decdba9950095f105c5f8ffd20..0000000000000000000000000000000000000000 --- a/funcom_test/6584325.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void setByDay(DayAndPosition[] b) { - if (b == null) { - byDay = null; - - return; - } - - byDay = new DayAndPosition[b.length]; - - /* - * System.arraycopy isn't good enough -- we want to clone each - * individual element. - */ - for (int i = 0; i < b.length; i++) { - byDay[i] = (DayAndPosition)b[i].clone(); - } - } - COM: <s> method set by day </s> - diff --git a/funcom_test/6584326.txt b/funcom_test/6584326.txt deleted file mode 100644 index 3da2392a020c74d50d11ef6bd6fc98e1421f0561..0000000000000000000000000000000000000000 --- a/funcom_test/6584326.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected boolean matchesByDay(Calendar candidate) { - if ((byDay == null) || (byDay.length == 0)) { - - /* No byDay rules, so it matches trivially */ - - return true; - } - - int i; - - for (i = 0; i < byDay.length; i++) { - if (matchesIndividualByDay(candidate, byDay[i])) { - return true; - } - } - - return false; - } - COM: <s> method matches by day </s> - diff --git a/funcom_test/6605968.txt b/funcom_test/6605968.txt deleted file mode 100644 index f41047debcad75f37b178a955a649200fbcf1ef3..0000000000000000000000000000000000000000 --- a/funcom_test/6605968.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public SocialActivityInterpreter getSocialActivityInterpreterInstance() { - if (Validator.isNotNull(getSocialActivityInterpreterClass())) { - if (_portletApp.isWARFile()) { - PortletBag portletBag = PortletBagPool.get(getRootPortletId()); - - return portletBag.getSocialActivityInterpreterInstance(); - } - else { - return (SocialActivityInterpreter)InstancePool.get( - getSocialActivityInterpreterClass()); - } - } - - return null; - } - COM: <s> gets the name of the activity interpreter instance of the portlet </s> - diff --git a/funcom_test/6606047.txt b/funcom_test/6606047.txt deleted file mode 100644 index c60e5b08d78aaf3f5934dab92a1261903983cedd..0000000000000000000000000000000000000000 --- a/funcom_test/6606047.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public SocialRequestInterpreter getSocialRequestInterpreterInstance() { - if (Validator.isNotNull(getSocialRequestInterpreterClass())) { - if (_portletApp.isWARFile()) { - PortletBag portletBag = PortletBagPool.get(getRootPortletId()); - - return portletBag.getSocialRequestInterpreterInstance(); - } - else { - return (SocialRequestInterpreter)InstancePool.get( - getSocialRequestInterpreterClass()); - } - } - - return null; - } - COM: <s> gets the name of the request interpreter instance of the portlet </s> - diff --git a/funcom_test/6628564.txt b/funcom_test/6628564.txt deleted file mode 100644 index 524927aee643b61703feee086f5bf32b981939a3..0000000000000000000000000000000000000000 --- a/funcom_test/6628564.txt +++ /dev/null @@ -1,29 +0,0 @@ -TDAT: public void setDtStart(Calendar start) { - int oldStart; - - if (dtStart != null) { - oldStart = dtStart.getFirstDayOfWeek(); - } - else { - oldStart = Calendar.MONDAY; - } - - if (start == null) { - dtStart = CalendarFactoryUtil.getCalendar( - TimeZone.getTimeZone("GMT")); - - dtStart.setTime(new Date(0L)); - } - else { - dtStart = (Calendar)start.clone(); - - dtStart.clear(Calendar.ZONE_OFFSET); - dtStart.clear(Calendar.DST_OFFSET); - dtStart.setTimeZone(TimeZone.getTimeZone("GMT")); - } - - dtStart.setMinimalDaysInFirstWeek(4); - dtStart.setFirstDayOfWeek(oldStart); - } - COM: <s> method set dt start </s> - diff --git a/funcom_test/6647204.txt b/funcom_test/6647204.txt deleted file mode 100644 index d2b982f82c81c04c811be88d8a993ed92c42f6c2..0000000000000000000000000000000000000000 --- a/funcom_test/6647204.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public Set getAllPortletModes() { - Set allPortletModes = new TreeSet(); - - Iterator itr1 = _portletModes.entrySet().iterator(); - - while (itr1.hasNext()) { - Map.Entry entry = (Map.Entry)itr1.next(); - - Set mimeTypeModes = (Set)entry.getValue(); - - Iterator itr2 = mimeTypeModes.iterator(); - - while (itr2.hasNext()) { - String portletMode = (String)itr2.next(); - - allPortletModes.add(portletMode); - } - } - - return allPortletModes; - } - COM: <s> gets a list of all portlet modes supported by the portlet </s> - diff --git a/funcom_test/6833636.txt b/funcom_test/6833636.txt deleted file mode 100644 index 85bde9ce0ec163519b1a1d37292e5ea852423f02..0000000000000000000000000000000000000000 --- a/funcom_test/6833636.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void setSameWidth(JButton[] buttons) { - Dimension widest = null; - for (int ii = 0; ii < buttons.length; ++ii) { - Dimension dim = buttons[ii].getPreferredSize(); - if (widest == null || dim.width > widest.width) { - widest = dim; - } - } - - for (int ii = 0; ii < buttons.length; ++ii) { - buttons[ii].setPreferredSize(widest); - buttons[ii].setMinimumSize(widest); - } - } - COM: <s> sets each button to the same width </s> - diff --git a/funcom_test/6833647.txt b/funcom_test/6833647.txt deleted file mode 100644 index 0316ff6cf53d782ce6bd9353dfcc40e9beecfa95..0000000000000000000000000000000000000000 --- a/funcom_test/6833647.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private void paste() { - try { - Clipboard clipboard = getSystemClipboard(); - Transferable clipData = clipboard.getContents(clipboard); - if ( clipData != null - && clipData.isDataFlavorSupported(DataFlavor.stringFlavor)) - { - String str = (String) - clipData.getTransferData(DataFlavor.stringFlavor); - _textPane.replaceSelection(str); - } - _textPane.requestFocus(); - } - catch (Exception ex) { - ex.printStackTrace(); - } - } - COM: <s> paste what is in the clipboard into the text pane </s> - diff --git a/funcom_test/6833673.txt b/funcom_test/6833673.txt deleted file mode 100644 index 34ab05d8079dec44fd953806b753bf0209bc90b1..0000000000000000000000000000000000000000 --- a/funcom_test/6833673.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void colorDirtyTokens() { - for (int ii = 0; ii < _lastTokens.size(); ++ii) { - Token tok = (Token) _lastTokens.get(ii); - if (tok.isDirty()) { - _doc.setCharacterAttributes( - tok.getBeg(), tok.getOffset(), tok.getStyle()); - } - } - } - COM: <s> investigates the tokens list and colors only those that have been </s> - diff --git a/funcom_test/6846181.txt b/funcom_test/6846181.txt deleted file mode 100644 index 8575f97695f68f3084926c5ffd64c790970a4291..0000000000000000000000000000000000000000 --- a/funcom_test/6846181.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void _populateSingleTagPositions(String line, String tagName, int startIndex) throws IOException { - if (startIndex < line.length()) { - int tagIndex = line.indexOf("<" + tagName, startIndex); - if (tagIndex != -1) { - _SINGLE_TAG_POSITIONS.add(new Integer(tagIndex)); - _populateSingleTagPositions(line, tagName, tagIndex + 1); - } - } - } - COM: <s> record all positions of single tags </s> - diff --git a/funcom_test/6846186.txt b/funcom_test/6846186.txt deleted file mode 100644 index 298b58953e078679a426794c0ffbcc110a42c6be..0000000000000000000000000000000000000000 --- a/funcom_test/6846186.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private String _replaceFormNameWithId(String line) throws IOException { - int beginIndex = line.indexOf("<form"); - int endIndex = _getTagEndIndex(line, beginIndex); - String formTag = line.substring(beginIndex, endIndex + 1); - formTag = StringUtil.replace(formTag, - " name=", - " id="); - - String preTag = line.substring(0, beginIndex); - String postTag = line.substring(endIndex + 1, line.length()); - - return preTag + formTag + postTag; - } - COM: <s> replace all name attributes with id attribute in forms </s> - diff --git a/funcom_test/6846236.txt b/funcom_test/6846236.txt deleted file mode 100644 index 210f3451c0ad2c6096db148a32dd252f3b53e569..0000000000000000000000000000000000000000 --- a/funcom_test/6846236.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private int _getAttributeEndIndex(String tag) throws IOException { - int closeJavaIndex = tag.indexOf("%>"); - int endIndex = tag.indexOf("\"", closeJavaIndex); - int openJavaIndex = tag.indexOf("<%="); - - if (openJavaIndex != -1 && openJavaIndex < endIndex) { - endIndex = openJavaIndex + 3 + _getAttributeEndIndex(tag.substring(openJavaIndex + 3)); - } - - return endIndex; - } - COM: <s> returns the position in the tag where a tags attribute ends </s> - diff --git a/funcom_test/7063051.txt b/funcom_test/7063051.txt deleted file mode 100644 index e3a25554a4cd5a9f2172ec3627edb38bac6ff9d5..0000000000000000000000000000000000000000 --- a/funcom_test/7063051.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public void removeWSRPChannel(String channelName) { - try { - Portlet remotePortlet = PortletLocalServiceUtil. - getPortletById(CompanyConstants.SYSTEM, - channelName); - - if (!remotePortlet.isRemote()) { - return; - } - - PortletLocalServiceUtil.deletePortlet(remotePortlet); - PortletLocalServiceUtil.destroyPortlet(remotePortlet); - - WSRPPersistenceHelper persistenceHelper = - WSRPPersistenceHelper.getInstance(); - - persistenceHelper.deleteWSRPPortlet(remotePortlet); - } - catch (WSRPConsumerException wcex) { - _log.error(wcex); - } - catch (SystemException ex) { - _log.error(ex); - } - } - COM: <s> removes a channel window for remote portlet </s> - diff --git a/funcom_test/7314769.txt b/funcom_test/7314769.txt deleted file mode 100644 index 81281c9fe0f8c300299075a18f38343093f5e685..0000000000000000000000000000000000000000 --- a/funcom_test/7314769.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Diameter getBranchDiameter(final int count){ - if(count < 1){ - throw new IllegalArgumentException("Non positive count " + count); - } - Diameter ret = getBranchDiameter().get(count); - if(ret == null){ - ret = headcount.get(headcount.headMap(count).lastKey()); - } - return ret; - } - COM: <s> diameter for a branch pipe with specified down stream head count </s> - diff --git a/funcom_test/7314833.txt b/funcom_test/7314833.txt deleted file mode 100644 index 88c79bb46f7954899b7a0ea0e6abe9f50f3484fc..0000000000000000000000000000000000000000 --- a/funcom_test/7314833.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CutSheetInfo cutSheetInfoForPipe(Pipe p){ - CutSheetInfo cInfo = new CutSheetInfo(); - cInfo.setPipe(p); - PipeFitting end = getAreaBody().getEndFitting(p); - cInfo.setEndFitting(end.getFitting()); - PipeFitting start = getAreaBody().getStartFitting(p); - cInfo.setStartFitting(start.getFitting()); - return cInfo; - } - COM: <s> creates cut sheet info object from a pipe </s> - diff --git a/funcom_test/7314870.txt b/funcom_test/7314870.txt deleted file mode 100644 index 142a282d5a7ae912fb86de667cebfe42bec3b99a..0000000000000000000000000000000000000000 --- a/funcom_test/7314870.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void swapEnds(){ - assert(attachments.length == 2); - reversed = !reversed; - if(attachments[0] == null && attachments[1] == null){ - return; // swapping before fittings are attached - } - PipeAttachment temp = attachments[1]; - attachments[1] = attachments[0]; - attachments[0] = temp; - } - COM: <s> switches pipe orientation </s> - diff --git a/funcom_test/7315104.txt b/funcom_test/7315104.txt deleted file mode 100644 index c8d64789a702560b564b95b31850b38b0efac27a..0000000000000000000000000000000000000000 --- a/funcom_test/7315104.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void renderEntity(final FloorDrawing dwg, final DrawingArea a, final DwgEntity e){ - DrawingLayer out = dwg.getOptionsRoot().getOutputLayer(); - if(out != null){ - e.setLy(out.getName()); - } - a.getRendering().add(e); - } - COM: <s> puts an acad entity object on the rendering collection </s> - diff --git a/funcom_test/7315357.txt b/funcom_test/7315357.txt deleted file mode 100644 index 03081cbc7f284f3fb47034c0750b49f4260ce61d..0000000000000000000000000000000000000000 --- a/funcom_test/7315357.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public BigDecimal getAdjustedTargetHole(final BigDecimal targetPipeDiameter){ - int comp = targetPipeDiameter.compareTo(targetHole); - BigDecimal ret = targetHole; - if(comp < 0){ - ret = null; // target too small - }else if(comp == 0){ - // source is 1.5 and target 2: take average - ret = ret.add(targetPipeDiameter).multiply(Diameter.D05.getMeasure()); - } - return ret; - } - COM: <s> returns actual diameter drilled in the target pipe </s> - diff --git a/funcom_test/7316071.txt b/funcom_test/7316071.txt deleted file mode 100644 index b51aa79be56bb666ecdb4a132890f1bc7e3a71c2..0000000000000000000000000000000000000000 --- a/funcom_test/7316071.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initCloseButton() { - logger.debug("initCloseButton()"); //$NON-NLS-1$ - closeButton = new JButton(Messages.getString("General.ButtonClose")); //$NON-NLS-1$ - closeButton.setMnemonic(Tools.getMnemonicFromString( - Messages.getString("General.CloseButtonMnemonic"))); //$NON-NLS-1$ - closeButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - dispose(); - } - }); - } - COM: <s> initializes the quot close quot button </s> - diff --git a/funcom_test/7316081.txt b/funcom_test/7316081.txt deleted file mode 100644 index 0efc8d8a6ef19ecec4f916da19b89e7ae5c9c8d6..0000000000000000000000000000000000000000 --- a/funcom_test/7316081.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void initTabbedPane() { - logger.debug("initTabbedPane()"); //$NON-NLS-1$ - initProgramInfoPanel(); - initSystemInfoPanel(); - - tabbedPane = new JTabbedPane(); - tabbedPane.addTab(Messages.getString("AboutDialog.program_info"), //$NON-NLS-1$ - programInfoPanel); - tabbedPane.addTab(Messages.getString("AboutDialog.system_info"), //$NON-NLS-1$ - systemInfoPanel); - } - COM: <s> initializes the code jtabbed pane code the tabs for </s> - diff --git a/funcom_test/7316383.txt b/funcom_test/7316383.txt deleted file mode 100644 index 374b7be30b83aae007841b54f89159ef7c313bc2..0000000000000000000000000000000000000000 --- a/funcom_test/7316383.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setAuthor(String author) { - logger.debug("setAuthor(author=\"" + author + "\""); - if ((author != null) && author.trim().equals("")) { - this.author = null; - } else { - try { - this.author = URLDecoder.decode(author, "UTF-8").trim(); - } catch (UnsupportedEncodingException ex) { - this.author = "unsupported"; - } - } - } - COM: <s> sets the author whose author page should be displayed </s> - diff --git a/funcom_test/7316417.txt b/funcom_test/7316417.txt deleted file mode 100644 index 682cf35a8ccb3c0ebd50885e1d165ee4437f4c20..0000000000000000000000000000000000000000 --- a/funcom_test/7316417.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getPlainPublicationDetails() { - logger.debug("getPlainPublicationDetails()"); - Publication pub = getPublication(publicationKey); - if (pub == null) { - return "Publication with key=\"" + publicationKey.toString() + "\" not found"; - } - return "DB: " + dbConn.getDatabaseType() + "\n" + pub.toString(); - } - COM: <s> returns a simple string with all publication details </s> - diff --git a/funcom_test/7316438.txt b/funcom_test/7316438.txt deleted file mode 100644 index fd38b98d7cd1b068c335539cc1f8e0a908ae1f3f..0000000000000000000000000000000000000000 --- a/funcom_test/7316438.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getDisplayName(String fieldName, int uppercase, int plural) { - String displayName = "[INVALID FIELD NAME]"; - if (plural == PLURAL_FORM) { - displayName = pluralNames.get(fieldName); - } else { - displayName = singularNames.get(fieldName); - } - if (uppercase == UPPERCASE_FIRST_LETTER) { - displayName = StringUtils.capitalize(displayName); - } - return displayName; - } - COM: <s> returns the field name in upper lower case and singular plural </s> - diff --git a/funcom_test/7316474.txt b/funcom_test/7316474.txt deleted file mode 100644 index 17619a484c410450ffb0f84a6a9d771156dfa02b..0000000000000000000000000000000000000000 --- a/funcom_test/7316474.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void beginAddingPublications() { - logger.debug("beginAddingPublications()"); - try { - conn.setAutoCommit(false); - psAddPublicationDetails.clearBatch(); - psAddAuthorPublication.clearBatch(); - psAddAuthorPublication2.clearBatch(); - psAddPages.clearBatch(); - } catch (SQLException e) { - e.printStackTrace(); - } finally { - if (stmt != null) { - try { - stmt.close(); - } catch (SQLException sqlEx) { - // ignore - } - stmt = null; - } - } - } - COM: <s> prepares the process of adding publications </s> - diff --git a/funcom_test/7316528.txt b/funcom_test/7316528.txt deleted file mode 100644 index d41d8d91ea2435985f946fe3790512a39ce8e348..0000000000000000000000000000000000000000 --- a/funcom_test/7316528.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void endAddingPublications() { - logger.debug("endAddingPublications()"); - try { - commitBatchTransactions(); - if (conn.getAutoCommit() == false) { - conn.commit(); - } - conn.setAutoCommit(true); - } catch (SQLException e) { - e.printStackTrace(); - } finally { - if (stmt != null) { - try { - stmt.close(); - } catch (SQLException sqlEx) { - // ignore - } - stmt = null; - } - } - - } - COM: <s> ends the process of adding publications </s> - diff --git a/funcom_test/7348898.txt b/funcom_test/7348898.txt deleted file mode 100644 index 9440931346e1165d161967df51d444641a40d287..0000000000000000000000000000000000000000 --- a/funcom_test/7348898.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String mapString(String originalString) { - String result = originalString; - Iterator<Map.Entry<Object,Object>> mapEntries = regExpMap.entrySet().iterator(); - while (mapEntries.hasNext()) { - Map.Entry<Object,Object> entry = mapEntries.next(); - result = result.replaceAll((String)entry.getKey(), (String)entry.getValue()); - } - return result; - } - COM: <s> maps the original string onto its replacement </s> - diff --git a/funcom_test/7349034.txt b/funcom_test/7349034.txt deleted file mode 100644 index e39731077088db9b25b93eabc0d6a69545895c82..0000000000000000000000000000000000000000 --- a/funcom_test/7349034.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void addLine(final DiagramNode<O, A> from, final DiagramNode<O, A> to) { - this.lines.add(new DiagramLine<O, A>(from, to, this)); - this.coordinateSystemChecked = false; - sendChangeEvent(); - } - COM: <s> adds a line to the diagram at the end of the list </s> - diff --git a/funcom_test/7349054.txt b/funcom_test/7349054.txt deleted file mode 100644 index 4d21de88e673a96c4c0a426031ef875b7e3e0349..0000000000000000000000000000000000000000 --- a/funcom_test/7349054.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void emitChangeSignal() { - if (labelObservers != null) { - final Iterator<ChangeObserver> iterator = labelObservers.iterator(); - while (iterator.hasNext()) { - iterator.next().update(this); - } - } - if (this.node != null) { - this.node.diagram.sendChangeEvent(); - } - } - COM: <s> notifies all observes about a change </s> - diff --git a/funcom_test/7349072.txt b/funcom_test/7349072.txt deleted file mode 100644 index 5842fea6dfe12a0d3163413450fd1da18ec60acb..0000000000000000000000000000000000000000 --- a/funcom_test/7349072.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public double getLength() { - // do not use the position of the nodes, since this might be an offset - // in the - // case of NDimDiagramNode - final double dx = this.toNode.getX() - this.fromNode.getX(); - final double dy = this.toNode.getY() - this.fromNode.getY(); - return Math.sqrt(dx * dx + dy * dy); - } - COM: <s> returns the length of this line </s> - diff --git a/funcom_test/7349184.txt b/funcom_test/7349184.txt deleted file mode 100644 index 02a82959fc21d2bb8f4fc440225caf36f536e2e7..0000000000000000000000000000000000000000 --- a/funcom_test/7349184.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setDatabaseInfo(final DatabaseInfo databaseInfo) { - if (databaseInfo == null) { - this.databaseInfo = null; - } else { - this.databaseInfo = new DatabaseInfo(databaseInfo); - } - markDataDirty(); - eventBroker.processEvent(new DatabaseInfoChangedEvent(this, - databaseInfo)); - } - COM: <s> sets the database information for the schema </s> - diff --git a/funcom_test/7349212.txt b/funcom_test/7349212.txt deleted file mode 100644 index 333b94be4ab2c0b191c14c175e4c20d190897ed6..0000000000000000000000000000000000000000 --- a/funcom_test/7349212.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public Diagram2D getDiagram(final String title) { - Diagram2D retVal = null; - final Iterator<Diagram2D> it = this.diagrams.iterator(); - while (it.hasNext()) { - final Diagram2D cur = it.next(); - if (cur.getTitle().equals(title)) { - retVal = cur; - break; - } - } - return retVal; - } - COM: <s> returns a diagram from the list using the diagram title as key </s> - diff --git a/funcom_test/7349219.txt b/funcom_test/7349219.txt deleted file mode 100644 index 0380fc57138437df5a58e9556ec1141ea3885217..0000000000000000000000000000000000000000 --- a/funcom_test/7349219.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void addDiagram(final Diagram2D diagram) { - diagrams.add(diagram); - if (diagram instanceof WriteableDiagram2D) { - final WriteableDiagram2D wd2d = (WriteableDiagram2D) diagram; - wd2d.setEventBroker(this.eventBroker); - } - markDataDirty(); - eventBroker.processEvent(new DiagramListChangeEvent(this)); - } - COM: <s> adds a diagram to the schema </s> - diff --git a/funcom_test/7349342.txt b/funcom_test/7349342.txt deleted file mode 100644 index 495e4bb7f762ba34b2b0fae7457cd9703d6c887d..0000000000000000000000000000000000000000 --- a/funcom_test/7349342.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getIntentSize() { - if (intentSize < 0) { // not yet calculated - intentSize = 0; - final Iterator<Concept<O, A>> it = filter.iterator(); - while (it.hasNext()) { - final Concept<O, A> cur = it.next(); - intentSize += cur.getAttributeContingentSize(); - } - } - return intentSize; - } - COM: <s> calculates the intent size based on the contingent sizes in the filter </s> - diff --git a/funcom_test/7349354.txt b/funcom_test/7349354.txt deleted file mode 100644 index 5719327c7942d669d5b0a4bab9da562decbea992..0000000000000000000000000000000000000000 --- a/funcom_test/7349354.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int getExtentSize() { - if (extentSize < 0) { // not yet calculated - extentSize = 0; - final Iterator<Concept<O, A>> it = ideal.iterator(); - while (it.hasNext()) { - final Concept<O, A> cur = it.next(); - extentSize += cur.getObjectContingentSize(); - } - } - return extentSize; - } - COM: <s> calculates the extent size based on the contingent sizes in the ideal </s> - diff --git a/funcom_test/7350597.txt b/funcom_test/7350597.txt deleted file mode 100644 index d424365bc458426c9d2486944d7c7c291471c9dd..0000000000000000000000000000000000000000 --- a/funcom_test/7350597.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int getChiSquareLevel(final int actualSize) { - final double chiSquare = getChiSquare(actualSize); - int i = 0; - while (i < CHI_SQUARE_CRITICAL_VALUES.length - && chiSquare > CHI_SQUARE_CRITICAL_VALUES[i]) { - i++; - } - return i - 1; - } - COM: <s> returns the level of significance of deviation </s> - diff --git a/funcom_test/7350654.txt b/funcom_test/7350654.txt deleted file mode 100644 index ea61f62e74f5aa7995369a22b6360ba8ea08c46e..0000000000000000000000000000000000000000 --- a/funcom_test/7350654.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected Diagram2D getNestedDiagram(final int pos) { - if (pos == 0) { - // we have only a flat diagram left - return getSimpleDiagram(0); - } - // else created nested diagram recursively - return new NestedLineDiagram(getNestedDiagram(pos - 1), this.history - .getCurrentDiagram(pos)); - } - COM: <s> returns a nested diagram using the list of current diagrams </s> - diff --git a/funcom_test/7350691.txt b/funcom_test/7350691.txt deleted file mode 100644 index f1ed0499e181a7594771425065df60fcf3237556..0000000000000000000000000000000000000000 --- a/funcom_test/7350691.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected int getMaximalContingentSize() { - int maxVal = 0; - for (final Hashtable<Concept<Oc, A>, Integer> contSizes : this.contingentSizes - .values()) { - for (final Integer curVal : contSizes.values()) { - if (curVal.intValue() > maxVal) { - maxVal = curVal.intValue(); - } - } - } - return maxVal; - } - COM: <s> this returns the maximal contingent found up to now </s> - diff --git a/funcom_test/7370284.txt b/funcom_test/7370284.txt deleted file mode 100644 index 4b79b7bb14d0359180015107dd622bfed5ccfb31..0000000000000000000000000000000000000000 --- a/funcom_test/7370284.txt +++ /dev/null @@ -1,28 +0,0 @@ -TDAT: public File extractTags(String result, String result_ol) throws IOException{ - try { - //TaggedPdfReaderTool tReader = new TaggedPdfReaderTool(); - FileOutputStream fop, fop_ol; - File file = new File(result); - File file_ol = new File(result_ol); - - fop = new FileOutputStream(file); - fop_ol = new FileOutputStream(file_ol); - - convertToXmlWithAttr(fop, fop_ol); - - //tReader.convertToXml(reader, fop); - - fop.flush(); - fop.close(); - - return file; - } catch (FileNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } - - - } - COM: <s> extract tags and save as xml </s> - diff --git a/funcom_test/7370287.txt b/funcom_test/7370287.txt deleted file mode 100644 index 551885e440e530fdbfa818c1862aa736d7cf7f08..0000000000000000000000000000000000000000 --- a/funcom_test/7370287.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public File extractBookmarks(String result){ - try { - List<HashMap<String,Object>> list = SimpleBookmark.getBookmark(reader); - if (list == null){ - return null; - } - else{ - File file = new File(result); - FileOutputStream fop = new FileOutputStream(file); - SimpleBookmark.exportToXML(list, fop, "ISO8859-1", true); - fop.flush(); - fop.close(); - return file; - } - - - } catch (IOException e) { - e.printStackTrace(); - return null; - } - - } - COM: <s> extract bookmarks and save as xml </s> - diff --git a/funcom_test/7370321.txt b/funcom_test/7370321.txt deleted file mode 100644 index f6435f289d1d7872c4571bd6ecaf7633560ec69f..0000000000000000000000000000000000000000 --- a/funcom_test/7370321.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void copy(BufferedReader reader, BufferedWriter writer) throws IOException { - String line = null; - while ((line=reader.readLine()) != null) { - // if line is not a comment, copy line to writer - if (!(line.startsWith("<?"))){ - writer.write(line); - writer.newLine(); - } - } - - } - COM: <s> copies input file into output file via lines </s> - diff --git a/funcom_test/7475445.txt b/funcom_test/7475445.txt deleted file mode 100644 index e25eac10e3bf99819e8d7f51d3afb3fb995f4b1f..0000000000000000000000000000000000000000 --- a/funcom_test/7475445.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: private void doAction(Bundle data) { - - String actionData = data.getString(OrmmaView.ACTION_KEY); - - if(actionData == null) - return; - - OrmmaView.ACTION actionType = OrmmaView.ACTION.valueOf(actionData); - - switch (actionType) { - case PLAY_AUDIO: { - OrmmaPlayer player = initPlayer(data,actionType); - player.playAudio(); - } - break; - case PLAY_VIDEO: { - OrmmaPlayer player = initPlayer(data,actionType); - player.playVideo(); - } - break; - default: - break; - } - } - COM: <s> perform action play audio video </s> - diff --git a/funcom_test/7475492.txt b/funcom_test/7475492.txt deleted file mode 100644 index 812067526496cadf2d68ab5668e9e457b5a9d4e4..0000000000000000000000000000000000000000 --- a/funcom_test/7475492.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String asHex(MessageDigest digest) { - byte[] hash = digest.digest(); - char buf[] = new char[hash.length * 2]; - for (int i = 0, x = 0; i < hash.length; i++) { - buf[x++] = HEX_CHARS[(hash[i] >>> 4) & 0xf]; - buf[x++] = HEX_CHARS[hash[i] & 0xf]; - } - return new String(buf); - } - COM: <s> builds a hex string </s> - diff --git a/funcom_test/7475528.txt b/funcom_test/7475528.txt deleted file mode 100644 index 6c21e6c97e0a0eac607070d4f31407ec36355d8b..0000000000000000000000000000000000000000 --- a/funcom_test/7475528.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setProperties(boolean audioMuted, boolean autoPlay, boolean controls, boolean inline,boolean loop, String startStyle, String stopStyle){ - this.autoPlay = autoPlay; - this.showControl = controls; - this.doLoop = loop; - this.audioMuted = audioMuted; - this.startStyle = startStyle; - this.stopStyle = stopStyle; - this.inline = inline; - - } - COM: <s> set player properties </s> - diff --git a/funcom_test/7475547.txt b/funcom_test/7475547.txt deleted file mode 100644 index 822ff818cb92823f9ec9400259bc3bffa2686564..0000000000000000000000000000000000000000 --- a/funcom_test/7475547.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void open(String url, boolean back, boolean forward, boolean refresh) { - Log.d(LOG_TAG, "open: url: " + url + " back: " + back + " forward: " + forward + " refresh: " + refresh); - if(!URLUtil.isValidUrl(url)){ - mOrmmaView.raiseError("Invalid url", "open"); - }else{ - mOrmmaView.open(url, back, forward, refresh); - } - - - } - COM: <s> open a browser </s> - diff --git a/funcom_test/7475577.txt b/funcom_test/7475577.txt deleted file mode 100644 index f0d816e2a7a5c1dd4fb5e7e3675c62e2987468d1..0000000000000000000000000000000000000000 --- a/funcom_test/7475577.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public String getNetwork() { - NetworkInfo ni = mConnectivityManager.getActiveNetworkInfo(); - String networkType = "unknown"; - if (ni == null){ - networkType = "offline"; - } - else{ - switch (ni.getState()) { - case UNKNOWN: - networkType = "unknown"; - break; - case DISCONNECTED: - networkType = "offline"; - break; - default: - int type = ni.getType(); - if (type == ConnectivityManager.TYPE_MOBILE) - networkType = "cell"; - else if (type == ConnectivityManager.TYPE_WIFI) - networkType = "wifi"; - } - } - Log.d(LOG_TAG, "getNetwork: " + networkType); - return networkType; - } - COM: <s> gets the network </s> - diff --git a/funcom_test/7475614.txt b/funcom_test/7475614.txt deleted file mode 100644 index 2e30787a37327e6b9ef05df87d30197694cb8db0..0000000000000000000000000000000000000000 --- a/funcom_test/7475614.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void sendSMS(String recipient, String body) { - Log.d(LOG_TAG, "sendSMS: recipient: " + recipient + " body: " + body); - Intent sendIntent = new Intent(Intent.ACTION_VIEW); - sendIntent.putExtra("address", recipient); - sendIntent.putExtra("sms_body", body); - sendIntent.setType("vnd.android-dir/mms-sms"); - sendIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - mContext.startActivity(sendIntent); - } - COM: <s> send an sms </s> - diff --git a/funcom_test/7475813.txt b/funcom_test/7475813.txt deleted file mode 100644 index dce0987d3a02300d633ebb3803ecd4edd3dfdd70..0000000000000000000000000000000000000000 --- a/funcom_test/7475813.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void resetContents() { - - FrameLayout contentView = (FrameLayout) getRootView().findViewById( - R.id.content); - - FrameLayout placeHolder = (FrameLayout) getRootView().findViewById( - PLACEHOLDER_ID); - FrameLayout background = (FrameLayout) getRootView().findViewById( - BACKGROUND_ID); - ViewGroup parent = (ViewGroup) placeHolder.getParent(); - background.removeView(this); - contentView.removeView(background); - resetLayout(); - parent.addView(this, mIndex); - parent.removeView(placeHolder); - parent.invalidate(); - } - COM: <s> revert to earlier ad state </s> - diff --git a/funcom_test/7479356.txt b/funcom_test/7479356.txt deleted file mode 100644 index 02e2cdee0337e5bb76f16e8d52adaa01c4b1b1f4..0000000000000000000000000000000000000000 --- a/funcom_test/7479356.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("Autenticacao".equals(portName)) { - setAutenticacaoEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/7483700.txt b/funcom_test/7483700.txt deleted file mode 100644 index c043bba5c429c5e124278b3fc2cbd943bc94f7a3..0000000000000000000000000000000000000000 --- a/funcom_test/7483700.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String getBody(String language) { - language = parseXMLLang(language); - for (Body body : bodies) { - if ((body.langauge == null && language == null) - || (body != null && body.langauge.equals(language))) { - return body.message; - } - } - return null; - } - COM: <s> returns the body corresponding to the language </s> - diff --git a/funcom_test/7484956.txt b/funcom_test/7484956.txt deleted file mode 100644 index bcbeb2601277d901eb336f7cf2265b639da7352c..0000000000000000000000000000000000000000 --- a/funcom_test/7484956.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void setCurrentState(ChatState newState, Chat chat) throws XMPPException { - if(chat == null || newState == null) { - throw new IllegalArgumentException("Arguments cannot be null."); - } - if(!updateChatState(chat, newState)) { - return; - } - Message message = new Message(); - ChatStateExtension extension = new ChatStateExtension(newState); - message.addExtension(extension); - - chat.sendMessage(message); - } - COM: <s> sets the current state of the provided chat </s> - diff --git a/funcom_test/7485850.txt b/funcom_test/7485850.txt deleted file mode 100644 index 2c735c1edbe7afa033ba5dbf84546825c1bc1002..0000000000000000000000000000000000000000 --- a/funcom_test/7485850.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected XMPPConnection createConnection() { - // Create the configuration for this new connection - ConnectionConfiguration config = new ConnectionConfiguration(host, port); - config.setCompressionEnabled(Boolean.getBoolean("test.compressionEnabled")); - if (getSocketFactory() == null) { - config.setSocketFactory(getSocketFactory()); - } - return new XMPPConnection(config); - } - COM: <s> creates a new xmppconnection using the connection preferences </s> - diff --git a/funcom_test/7485890.txt b/funcom_test/7485890.txt deleted file mode 100644 index 07f2da5b0bd2a616e054a3eb719f260f2be821e6..0000000000000000000000000000000000000000 --- a/funcom_test/7485890.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void testLocalErrorCreation() { - XMPPError error = new XMPPError(XMPPError.Condition.item_not_found); - error.toXML(); - - assertEquals(error.getCondition(), "item-not-found"); - assertEquals(error.getCode(), 404); - assertEquals(error.getType(), XMPPError.Type.CANCEL); - assertNull(error.getMessage()); - } - COM: <s> check the creation of a new xmpp error locally </s> - diff --git a/funcom_test/7485954.txt b/funcom_test/7485954.txt deleted file mode 100644 index 6d536d8c33c04f5c1418f0f55e79d60e61324fd9..0000000000000000000000000000000000000000 --- a/funcom_test/7485954.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testSendRoster() { - // Send user1's roster to user2 - try { - RosterExchangeManager rosterExchangeManager = - new RosterExchangeManager(getConnection(0)); - rosterExchangeManager.send(getConnection(0).getRoster(), getBareJID(1)); - } - catch (Exception e) { - e.printStackTrace(); - fail("An error occured sending the roster"); - } - } - COM: <s> high level api test </s> - diff --git a/funcom_test/7485987.txt b/funcom_test/7485987.txt deleted file mode 100644 index 6c8da9ccb4e051f6f9d3f0a571fb6151db6e253a..0000000000000000000000000000000000000000 --- a/funcom_test/7485987.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void testDiscoverPublishItemsSupport() { - try { - boolean canPublish = ServiceDiscoveryManager.getInstanceFor(getConnection(0)) - .canPublishItems(getServiceName()); - assertFalse("Wildfire does not support publishing...so far!!", canPublish); - } - catch (Exception e) { - fail(e.getMessage()); - } - - } - COM: <s> tests support for publishing items to another entity </s> - diff --git a/funcom_test/7485995.txt b/funcom_test/7485995.txt deleted file mode 100644 index ad6146dfd7aea91278f463809943674e70009bcb..0000000000000000000000000000000000000000 --- a/funcom_test/7485995.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void tearDown() throws Exception { - super.tearDown(); - XMPPConnection setupConnection = createConnection(); - setupConnection.connect(); - setupConnection.login("user0", "user0"); - // Delete the created account for the test - setupConnection.getAccountManager().deleteAccount(); - // Close the setupConnection - setupConnection.disconnect(); - } - COM: <s> deletes the created account for the test </s> - diff --git a/funcom_test/7486140.txt b/funcom_test/7486140.txt deleted file mode 100644 index e925f484440dcfbf06ccb6271c92345fc1644c8b..0000000000000000000000000000000000000000 --- a/funcom_test/7486140.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public JingleMediaSession createMediaSession(PayloadType payloadType, final TransportCandidate remote, final TransportCandidate local, final JingleSession jingleSession) { - ScreenShareSession session = null; - session = new ScreenShareSession(payloadType, remote, local, "Screen", jingleSession); - if (encoder != null) { - session.setEncoder(encoder); - } - if (decoder != null) { - session.setDecoder(decoder); - } - return session; - } - COM: <s> returns a new jingle media session </s> - diff --git a/funcom_test/7486438.txt b/funcom_test/7486438.txt deleted file mode 100644 index 213c1b92ead8dae86b235ab21da03a0db5adbff0..0000000000000000000000000000000000000000 --- a/funcom_test/7486438.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void initializeAndWait() throws XMPPException { - this.initialize(); - try { - System.out.print("Initializing..."); - while (!this.isInitialized()) { - System.out.print("."); - Thread.sleep(1000); - } - System.out.print("Resolved\n"); - } - catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> initialize transport resolver and wait until it is complete unitialized </s> - diff --git a/funcom_test/7486505.txt b/funcom_test/7486505.txt deleted file mode 100644 index c62b3ec601026b4f08488ee2b0db676a244c8586..0000000000000000000000000000000000000000 --- a/funcom_test/7486505.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public Jingle eventInitiate(Jingle jin) throws XMPPException { - // Parse the Jingle and get any proposed transport candidates - //addRemoteCandidates(obtainCandidatesList(jin)); - - // Start offering candidates - sendTransportCandidatesOffer(); - - // All these candidates will be checked asyncronously. Wait for some - // time and check if we have a valid candidate to use... - delayedCheckBestCandidate(session, jin); - - // Set the next state - setState(pending); - - return super.eventInitiate(jin); - } - COM: <s> we have received an invitation </s> - diff --git a/funcom_test/7486512.txt b/funcom_test/7486512.txt deleted file mode 100644 index 2a42be31728df79c7802b07cda5c10607a918038..0000000000000000000000000000000000000000 --- a/funcom_test/7486512.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Jingle eventInfo(Jingle jin) throws XMPPException { - - sendTransportCandidatesOffer(); - - // Parse the Jingle and get any proposed transport candidates - addRemoteCandidates(obtainCandidatesList(jin)); - - // Wait for some time and check if we have a valid candidate to - // use... - delayedCheckBestCandidate(session, jin); - - return null;//super.eventInfo(jin); - } - COM: <s> we have received another remote transport candidates </s> - diff --git a/funcom_test/7486650.txt b/funcom_test/7486650.txt deleted file mode 100644 index 9c23d48fddbd07595061947703105b7ffbe73f70..0000000000000000000000000000000000000000 --- a/funcom_test/7486650.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void setState(State newState) { - boolean proceed = true; - State old = getState(); - - for (JingleSessionStateListener listener : stateListeners) - try { - listener.beforeChange(old, newState); - } - catch (JingleException e) { - proceed = false; - } - - if (proceed) - super.setState(newState); - - for (JingleSessionStateListener listener : stateListeners) - listener.afterChanged(old, getState()); - } - COM: <s> overides jingle negiociator method to add listener capabilities </s> - diff --git a/funcom_test/7486706.txt b/funcom_test/7486706.txt deleted file mode 100644 index 7f9dbc44f34563f5f8b48b3940451c1d4a567b87..0000000000000000000000000000000000000000 --- a/funcom_test/7486706.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void triggerSessionCreated(JingleSession jingleSession) { - jingleSessions.add(jingleSession); - jingleSession.addListener(this); - for (CreatedJingleSessionListener createdJingleSessionListener : creationListeners) { - try { - createdJingleSessionListener.sessionCreated(jingleSession); - } - catch (Exception e) { - e.printStackTrace(); - } - } - } - COM: <s> trigger created jingle session listeners that a session was created </s> - diff --git a/funcom_test/7486735.txt b/funcom_test/7486735.txt deleted file mode 100644 index 588896675ee5728af32b19b29191b6731619592f..0000000000000000000000000000000000000000 --- a/funcom_test/7486735.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: private void installConnectionListeners(final XMPPConnection connection) { - if (connection != null) { - connection.addConnectionListener(new ConnectionListener() { - public void connectionClosed() { - unregisterInstanceFor(connection); - } - - public void connectionClosedOnError(java.lang.Exception e) { - unregisterInstanceFor(connection); - } - - public void reconnectingIn(int i) { - } - - public void reconnectionSuccessful() { - } - - public void reconnectionFailed(Exception exception) { - } - }); - } - } - COM: <s> configure a session setting some action listeners </s> - diff --git a/funcom_test/7486800.txt b/funcom_test/7486800.txt deleted file mode 100644 index 0786ff7fa6313223d09b783b23725fd16b63af76..0000000000000000000000000000000000000000 --- a/funcom_test/7486800.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public JingleSession getSession(String jid) { - for (JingleSession jingleSession : jingleSessions) { - if (jingleSession instanceof OutgoingJingleSession) { - if (jingleSession.getResponder().equals(jid)) { - return jingleSession; - } - } - else if (jingleSession instanceof IncomingJingleSession) { - if (jingleSession.getInitiator().equals(jid)) { - return jingleSession; - } - } - } - return null; - } - COM: <s> get a session with the informed jid </s> - diff --git a/funcom_test/7486803.txt b/funcom_test/7486803.txt deleted file mode 100644 index dda247cb881bc420ae059294762849572cde32df..0000000000000000000000000000000000000000 --- a/funcom_test/7486803.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void rejectIncomingJingleSession(JingleSessionRequest request) { - Jingle initiation = request.getJingle(); - - IQ rejection = JingleSession.createError(initiation.getPacketID(), initiation - .getFrom(), initiation.getTo(), 403, "Declined"); - connection.sendPacket(rejection); - } - COM: <s> reject the session </s> - diff --git a/funcom_test/7486868.txt b/funcom_test/7486868.txt deleted file mode 100644 index cf584b8f527cc913a651ea576e0a5e614c64c502..0000000000000000000000000000000000000000 --- a/funcom_test/7486868.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void terminate(String reason) throws XMPPException { - if (isClosed()) return; - System.out.println("State: " + this.getState()); - Jingle jout = new Jingle(Jingle.Action.SESSIONTERMINATE); - jout.setType(IQ.Type.SET); - sendFormattedJingle(jout); - triggerSessionClosed(reason); - } - COM: <s> terminates the session with a custom reason </s> - diff --git a/funcom_test/7487967.txt b/funcom_test/7487967.txt deleted file mode 100644 index e4ebc5af8f6938f599753b6cb722d102ca1c5b3f..0000000000000000000000000000000000000000 --- a/funcom_test/7487967.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public Configuration addResource(String resourceName, ClassLoader classLoader) throws MappingException { - log.info( "Reading mappings from resource: " + resourceName ); - InputStream rsrc = classLoader.getResourceAsStream( resourceName ); - if ( rsrc == null ) { - throw new MappingNotFoundException( "resource", resourceName ); - } - try { - return addInputStream( rsrc ); - } - catch (MappingException me) { - throw new InvalidMappingException( "resource", resourceName, me ); - } - } - COM: <s> read mappings as a application resource i </s> - diff --git a/funcom_test/7487974.txt b/funcom_test/7487974.txt deleted file mode 100644 index 788da853322a7215775c91767263597b61fbbcbd..0000000000000000000000000000000000000000 --- a/funcom_test/7487974.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public Configuration addClass(Class persistentClass) throws MappingException { - String mappingResourceName = persistentClass.getName().replace( '.', '/' ) + ".hbm.xml"; - log.info( "Reading mappings from resource: " + mappingResourceName ); - return addResource( mappingResourceName, persistentClass.getClassLoader() ); - } - COM: <s> read a mapping as an application resouurce using the convention that a class </s> - diff --git a/funcom_test/7524730.txt b/funcom_test/7524730.txt deleted file mode 100644 index 11749b3beecc5ea1200b696fa7c6b62b4517b076..0000000000000000000000000000000000000000 --- a/funcom_test/7524730.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void addWhiteboard(Whiteboard param){ - if (localWhiteboard == null){ - localWhiteboard = new Whiteboard[]{}; - } - - - //update the setting tracker - localWhiteboardTracker = true; - - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localWhiteboard); - list.add(param); - this.localWhiteboard = - (Whiteboard[])list.toArray( - new Whiteboard[list.size()]); - - } - COM: <s> auto generated add method for the array for convenience </s> - diff --git a/funcom_test/7700652.txt b/funcom_test/7700652.txt deleted file mode 100644 index b00fe49128c093ea7f48d41895ead5e499d41578..0000000000000000000000000000000000000000 --- a/funcom_test/7700652.txt +++ /dev/null @@ -1,30 +0,0 @@ -TDAT: public void publishObject(String sKey, Object obj) { - try { - MessageDigest md = MessageDigest.getInstance("SHA1"); - - KUID key = null; - byte[] value = null; - - key = KUID.createWithBytes(md.digest(sKey.getBytes("UTF-8"))); - md.reset(); - - value = getBytes(obj); - - md.reset(); - - StoreResult evt = dht.put(key, - new DHTValueImpl(DHTValueType.TEST, Version.ZERO, value)) - .get(); - StringBuilder buffer = new StringBuilder(); - buffer.append("STORE RESULT:\n"); - buffer.append(evt.toString()); - - if(debug){ - dumpStats(); - } - } catch (Exception err) { - err.printStackTrace(); - } - } - COM: <s> publishes saves an object on to the network </s> - diff --git a/funcom_test/7701050.txt b/funcom_test/7701050.txt deleted file mode 100644 index 89be79051ae11a2a7c5e96564e6bf436065b0a14..0000000000000000000000000000000000000000 --- a/funcom_test/7701050.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void putCompressed(String key, byte[] value) throws IllegalArgumentException { - validateKey(key); - if(value == null) - throw new IllegalArgumentException("null value for key: " + key); - //validateValue(value); // done when writing. TODO: do here? - _props.put(key, new NeedsCompression(value)); - } - COM: <s> adds a key with data that should be compressed </s> - diff --git a/funcom_test/7701078.txt b/funcom_test/7701078.txt deleted file mode 100644 index 5436b9f9870804bbd7aaab6e4dce2fbdae526dae..0000000000000000000000000000000000000000 --- a/funcom_test/7701078.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void put(String key, int value) throws IllegalArgumentException { - if (value < 0) // int2minLeb doesn't work on negative values - throw new IllegalArgumentException("Negative value: " + value + " for key: " + key); - put(key, ByteUtils.int2minLeb(value)); - } - COM: <s> adds a key with integer value </s> - diff --git a/funcom_test/7701085.txt b/funcom_test/7701085.txt deleted file mode 100644 index 8aef2c22bd60e060165a37f9087a07b7dae8463f..0000000000000000000000000000000000000000 --- a/funcom_test/7701085.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void put(String key, long value) throws IllegalArgumentException { - if (value < 0) // long2minLeb doesn't work on negative values - throw new IllegalArgumentException("Negative value: " + value + " for key: " + key); - put(key, ByteUtils.long2minLeb(value)); - } - COM: <s> adds a key with long value </s> - diff --git a/funcom_test/7701105.txt b/funcom_test/7701105.txt deleted file mode 100644 index 08c12aa0881e4e0e22fb4a0a64d5aba71ce41b44..0000000000000000000000000000000000000000 --- a/funcom_test/7701105.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getString(String key, String encoding) throws BadGGEPPropertyException, IllegalArgumentException { - try { - return new String(getBytes(key), encoding); - } catch (UnsupportedEncodingException e) { - throw new IllegalArgumentException("Cannot get GGEP key value as " + - "String due to unsupported encoding", e); - } - } - COM: <s> keeping private access modifier until necessary to </s> - diff --git a/funcom_test/7701112.txt b/funcom_test/7701112.txt deleted file mode 100644 index 414eda6d2433237b43006f938bbac9c071cdf615..0000000000000000000000000000000000000000 --- a/funcom_test/7701112.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public int getInt(String key) throws BadGGEPPropertyException { - byte[] bytes=getBytes(key); - if (bytes.length<1) - throw new BadGGEPPropertyException("No bytes"); - if (bytes.length>4) - throw new BadGGEPPropertyException("Integer too big"); - return ByteUtils.leb2int(bytes, 0, bytes.length); - } - COM: <s> returns the value for a key as an integer </s> - diff --git a/funcom_test/7701120.txt b/funcom_test/7701120.txt deleted file mode 100644 index 24dfe07013293643adc0bf8e15b102e5e7f8598d..0000000000000000000000000000000000000000 --- a/funcom_test/7701120.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public long getLong(String key) throws BadGGEPPropertyException { - byte[] bytes=getBytes(key); - if (bytes.length<1) - throw new BadGGEPPropertyException("No bytes"); - if (bytes.length>8) - throw new BadGGEPPropertyException("Integer too big"); - return ByteUtils.leb2long(bytes, 0, bytes.length); - } - COM: <s> returns the value for a key as a long </s> - diff --git a/funcom_test/7701176.txt b/funcom_test/7701176.txt deleted file mode 100644 index 9af4bf90f591199ccacb203a4199c28cb1bc0b77..0000000000000000000000000000000000000000 --- a/funcom_test/7701176.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void purgeDatabase() { - // We're assuming the Node IDs are totally random so - // chances are slim to none that we're responsible - // for the values again. Even if we are there's no way - // to test it until we've fully re-bootstrapped in - // which case the other guys will send us the values - // anyways as from their perspective we're just a new - // node. - database.clear(); - } - COM: <s> purge database makes sure the originator of all local dhtvalues </s> - diff --git a/funcom_test/7701692.txt b/funcom_test/7701692.txt deleted file mode 100644 index a03a7e8c962a81ed3bf9565863aacdc2eb06675f..0000000000000000000000000000000000000000 --- a/funcom_test/7701692.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void writeSocketAddress(SocketAddress addr) throws IOException { - if (addr instanceof InetSocketAddress - && !((InetSocketAddress)addr).isUnresolved()) { - InetSocketAddress iaddr = (InetSocketAddress)addr; - - writeInetAddress(iaddr.getAddress()); - writePort(iaddr.getPort()); - } else { - writeByte(0); - } - } - COM: <s> writes the given socket address to the output stream </s> - diff --git a/funcom_test/773404.txt b/funcom_test/773404.txt deleted file mode 100644 index 9eb92ba0958e7e54e66215998e6ec4c7bdc9cd03..0000000000000000000000000000000000000000 --- a/funcom_test/773404.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void createPreferencesGroup() { - GridData gridData15 = new GridData(); - gridData15.horizontalAlignment = GridData.FILL; - gridData15.grabExcessHorizontalSpace = true; - gridData15.grabExcessVerticalSpace = true; - gridData15.verticalAlignment = GridData.FILL; - preferencesGroup = new Group(tabFolder, SWT.NONE); - preferencesGroup.setText("Preferences"); - preferencesGroup.setLayout(new GridLayout()); - prefsTree = new Tree(preferencesGroup, SWT.BORDER); - prefsTree.setLayoutData(gridData15); - createPrefsControls(); - } - COM: <s> this method initializes preferences group </s> - diff --git a/funcom_test/773456.txt b/funcom_test/773456.txt deleted file mode 100644 index 84c90b54a07e40f2febd1e7621a957c5ee31cbd5..0000000000000000000000000000000000000000 --- a/funcom_test/773456.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected void importNode(Element node, Document storage) { - String nodeName = node.getNodeName(); - NodeList elements = storage.getElementsByTagName(nodeName); - Element importRoot = (Element) elements.item(0); - NodeList childNodes = node.getChildNodes(); - for (int i = 0; i < childNodes.getLength(); i++) { - Node childNode = childNodes.item(i); - if(node.getNodeType()!=Node.ELEMENT_NODE) - continue; - Node newNode = storage.importNode(childNode, true); - importRoot.appendChild(newNode); - } - } - COM: <s> imports a node from another doc </s> - diff --git a/funcom_test/773557.txt b/funcom_test/773557.txt deleted file mode 100644 index 7912c94af04dbd77141d1a66bbd1916715d6acd6..0000000000000000000000000000000000000000 --- a/funcom_test/773557.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void start(BundleContext context) throws Exception { - this.context = context; - Bundle parserBundle = context.getBundle(); - try { - // check for sax parsers - registerSAXParsers(getParserFactoryClassNames(parserBundle - .getResource(SAXCLASSFILE))); - // check for dom parsers - registerDOMParsers(getParserFactoryClassNames(parserBundle - .getResource(DOMCLASSFILE))); - } - catch (IOException ioe) { - // if there were any IO errors accessing the resource files - // containing the class names - ioe.printStackTrace(); - throw new FactoryConfigurationError(ioe); - } - } - COM: <s> called when this bundle is started so the framework can perform the </s> - diff --git a/funcom_test/774013.txt b/funcom_test/774013.txt deleted file mode 100644 index 10de4dad08acca0016cdbdad34d0937b0ea4dc14..0000000000000000000000000000000000000000 --- a/funcom_test/774013.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void addEntry(SyndEntry newEntry) { - feed.getEntries(); - for (Iterator iter = feed.getEntries().iterator(); iter.hasNext();) { - SyndEntry entry = (SyndEntry) iter.next(); - String title = entry.getTitle(); - if(title.equals(newEntry.getTitle())) - iter.remove(); - } - feed.getEntries().add(newEntry); - } - COM: <s> adds an entry to the feed </s> - diff --git a/funcom_test/774230.txt b/funcom_test/774230.txt deleted file mode 100644 index 4415fdf640295171c18c507650c94c0449b4bc18..0000000000000000000000000000000000000000 --- a/funcom_test/774230.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: protected void sendEvent(Event ev) throws FrameworkException { - //if(getState()!=STARTED) - // throw new IllegalStateException(JIMOMessages.FRAMEWORK_ILLEGALSTATE); - -// if(frameworkEvents==null) { -// startupMessages.add(ev); -// return; -// } - - synchronized (frameworkEvents) { - if(frameworkEvents.size()>EVENTQUEUEMAX) - try { - frameworkEvents.wait(MAXQUEUE_TIMEOUT); - } catch (InterruptedException e) { - throw new FrameworkException(e); - } - if(frameworkEvents.size()>EVENTQUEUEMAX) - throw new FrameworkException(JIMOMessages.FRAMEWORK_EVENTQUEUETIMEOUT); - frameworkEvents.add(ev); - frameworkEvents.notifyAll(); - } - } - COM: <s> add the event to the queue and wake up the queue thread </s> - diff --git a/funcom_test/7751561.txt b/funcom_test/7751561.txt deleted file mode 100644 index 154256068ee6473f60f2e76884517a3ccd9f973b..0000000000000000000000000000000000000000 --- a/funcom_test/7751561.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public StringItem getStringItem() { - if (stringItem == null) {//GEN-END:|16-getter|0|16-preInit - // write pre-init user code here - stringItem = new StringItem("Hello", "Hello, World!");//GEN-LINE:|16-getter|1|16-postInit - // write post-init user code here - }//GEN-BEGIN:|16-getter|2| - return stringItem; - } - COM: <s> returns an initiliazed instance of string item component </s> - diff --git a/funcom_test/775462.txt b/funcom_test/775462.txt deleted file mode 100644 index fd17c311ffb37eb595d1329c2eef3bdd47cc6434..0000000000000000000000000000000000000000 --- a/funcom_test/775462.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testSerialInstance() throws Exception { - TestClassTwo testOne = new TestClassTwo(); - ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(TESTSERIAL_PATH)); - out.writeObject(testOne); - out.flush(); - out.close(); - - Collection<Object> items = loader.getLoadables("(name=testSerial)"); - assertEquals(1, items.size()); - TestClassTwo o1 = (TestClassTwo) items.iterator().next(); - assertEquals("testSerial",o1.getProperties().get("name")); - } - COM: <s> tests that the loader can serialise and deserialise </s> - diff --git a/funcom_test/775592.txt b/funcom_test/775592.txt deleted file mode 100644 index 06115c542e230db1e5bdf1f3d057b8ae7fec2271..0000000000000000000000000000000000000000 --- a/funcom_test/775592.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void loadRegistry(String fileName) throws LoaderException { - ObjectInputStream inputStream = null; - try { - inputStream = new ObjectInputStream(new FileInputStream(fileName)); - } catch (FileNotFoundException e) { - throw new LoaderException(e); - } catch (IOException e) { - throw new LoaderException(e); - } - try { - registry = (FilteredMap<?, ?, ?>) inputStream.readObject(); - } catch (IOException e) { - throw new LoaderException(e); - } catch (ClassNotFoundException e) { - throw new LoaderException(e); - } - } - COM: <s> deserialize the registry map from a file source </s> - diff --git a/funcom_test/7822416.txt b/funcom_test/7822416.txt deleted file mode 100644 index 6d1957535996f5177852947e5ee63705edf564a5..0000000000000000000000000000000000000000 --- a/funcom_test/7822416.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void setBrowserCachingPolicy(HttpServletResponse res) { - if (nocache) { - // HTTP/1.1 + IE extensions - res.setHeader("Cache-Control", - "no-store, no-cache, must-revalidate, " - + "post-check=0, pre-check=0"); - // HTTP/1.0 - res.setHeader("Pragma", "no-cache"); - // Last resort for those that ignore all of the above - res.setHeader("Expires", EXPIRATION_DATE); - } - } - COM: <s> if the parameter nocache was set to true generate a set of headers </s> - diff --git a/funcom_test/7848890.txt b/funcom_test/7848890.txt deleted file mode 100644 index c9e58a519f50da5f4c8e4855e2f25d5bf1494d88..0000000000000000000000000000000000000000 --- a/funcom_test/7848890.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void draw() { - p4vj.cSketch.rectMode(p.CORNER); - p4vj.cSketch.stroke(0); - p4vj.cSketch.fill(128); - p4vj.cSketch.rect(xPos, yPos, xSize, ySize); - p4vj.cSketch.fill(0); - p4vj.cSketch.rect(xBox, yBox, xBoxSize, yBoxSize); - p4vj.cSketch.fill(255); - drawLines(); - p4vj.cSketch.textFont(p4vj.fontSS14, 14); - p4vj.cSketch.fill(255); - p4vj.cSketch.text(" :: P4VJ Output", xPos, yPos + ySize - 5); - } - COM: <s> draw a text terminal in control sketch window </s> - diff --git a/funcom_test/7848915.txt b/funcom_test/7848915.txt deleted file mode 100644 index e8a1f095f6891db37f10f67cd1f9a4356351e514..0000000000000000000000000000000000000000 --- a/funcom_test/7848915.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void draw() { - p4vj.cSketch.stroke(0); - p4vj.cSketch.fill(128); - p4vj.cSketch.rect(xPos, yPos, xSize, ySize); - drawFPS(); - p4vj.cSketch.fill(255); - p4vj.cSketch.textAlign(p.LEFT, p.BASELINE); - p4vj.cSketch.textFont(p4vj.fontSS14, 14); - p4vj.cSketch.text(" :: Control FPS", xPos, yPos + ySize - 5); - } - COM: <s> draw the control fps panel in the control sketch window </s> - diff --git a/funcom_test/7849017.txt b/funcom_test/7849017.txt deleted file mode 100644 index 1f68c2c371c26bc7dc61c106503e9268ee1d18d0..0000000000000000000000000000000000000000 --- a/funcom_test/7849017.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void camConfiguration(int x, int y) { - widthCam = x; - heightCam = y; - /*p4vj.show("* Cam Configuration. Cam Width: " + widthCam - + " Cam Height: " + heightCam);*/ - p.println("* Cam Configuration. Cam Width: " + widthCam + " Cam Height: " + heightCam); - - wFactor = (float) p4vj.widthVisual / (float) widthCam; - hFactor = (float) p4vj.heightVisual / (float) heightCam; - } - COM: <s> receive the size of the frame of camera </s> - diff --git a/funcom_test/7917952.txt b/funcom_test/7917952.txt deleted file mode 100644 index 933e766a3635ef2237b00b19f123b58e86a0842e..0000000000000000000000000000000000000000 --- a/funcom_test/7917952.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void updatePossibleRelays() { - possibleRelays = StateManager.INSTANCE.getPeers(); - for(Object[] peerArray : possibleRelays) - { - if(((String)(StateManager.INSTANCE.getCalleeArray()[0])).equals((String)(peerArray[0]))) - { - possibleRelays.remove(peerArray); - break; - } - } - } - COM: <s> updates possible relays </s> - diff --git a/funcom_test/7919161.txt b/funcom_test/7919161.txt deleted file mode 100644 index c7e885569f79d8af9876a75e7af76d0b0e85af64..0000000000000000000000000000000000000000 --- a/funcom_test/7919161.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void startListening() { - listening = true; - while(listening) - { - try { - DatagramPacket packet = - new DatagramPacket(new byte[MAX_PACKET_SIZE], MAX_PACKET_SIZE); - datagramSocket.receive(packet); - byte[] data = packet.getData(); - System.out.println(data[0] + " " + data[1] + " " + data[2] + " " + data[3]); - } catch (SocketException e) { - e.printStackTrace(); - } - catch (IOException e) { - e.printStackTrace(); - } - } - } - COM: <s> this method makes udpreceiver start listening for packets </s> - diff --git a/funcom_test/7919183.txt b/funcom_test/7919183.txt deleted file mode 100644 index f226ecd8953881b50506cec831ecb5824023c076..0000000000000000000000000000000000000000 --- a/funcom_test/7919183.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void update(){ - ArrayList<Object[]> relays = StateManager.INSTANCE.getRelays(); - String relaysString = ""; - for(Object[] relay : relays) - { - relaysString+=relay[1] + "\n"; - } - jTextArea.setText("In call w/ " + StateManager.INSTANCE.getCalleeArray()[1] + " using Relays: \n" - + relaysString); - } - COM: <s> updates the display to show the relays in use </s> - diff --git a/funcom_test/7941400.txt b/funcom_test/7941400.txt deleted file mode 100644 index 73c80a8c0da848b8b999f7d072a560c7d345492d..0000000000000000000000000000000000000000 --- a/funcom_test/7941400.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public ReflectClass forName(final String className) { - return withLock(new Closure4<ReflectClass>() { - public ReflectClass run() { - ReflectClass clazz = _repository.lookupByName(className); - if(clazz != null){ - return clazz; - } - clazz = _delegate.forName(className); - if(clazz != null){ - return ensureDelegate(clazz); - } - return _repository.forName(className); - } - }); - } - COM: <s> returns a reflect class instance for the specified class name </s> - diff --git a/funcom_test/7941486.txt b/funcom_test/7941486.txt deleted file mode 100644 index a082c07a0141b699bbb230436bd338092b422521..0000000000000000000000000000000000000000 --- a/funcom_test/7941486.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public boolean equals(Object obj) { - if(obj==this) { - return true; - } - if(obj==null||this.getClass()!=obj.getClass()) { - return false; - } - Db4oDatabase other = (Db4oDatabase)obj; - if (null == other.i_signature || null == this.i_signature) { - return false; - } - return Arrays4.equals(other.i_signature, this.i_signature); - } - COM: <s> comparison by signature </s> - diff --git a/funcom_test/7945235.txt b/funcom_test/7945235.txt deleted file mode 100644 index 10439679eac8d883ec9ed2bc3724d55c7b00f3f6..0000000000000000000000000000000000000000 --- a/funcom_test/7945235.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Object getOrCreate(Transaction trans, Object onObject) { - if (!alive()) { - return null; - } - Object obj = fieldAccessor().get( _reflectField, onObject); - if (_db4oType != null && obj == null) { - obj = _db4oType.createDefault(trans); - fieldAccessor().set(_reflectField, onObject, obj); - } - return obj; - } - COM: <s> dirty hack for com </s> - diff --git a/funcom_test/7950747.txt b/funcom_test/7950747.txt deleted file mode 100644 index ecf8230630bdff2839aa0702851110b66312b608..0000000000000000000000000000000000000000 --- a/funcom_test/7950747.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private void assertWrapperArray(Byte[] wrapperArray) { - for (int i = 0; i < data.length; i++) { - assertAreEqual(new Byte(data[i]), wrapperArray[i]); - } - // FIXME: Arrays should also get a null Bitmap to fix. - // Assert.isNull(wrapperArray[wrapperArray.length - 1]); - } - COM: <s> fixme the byte optimization format change cor 884 also hits </s> - diff --git a/funcom_test/7954954.txt b/funcom_test/7954954.txt deleted file mode 100644 index 979f103d07f52393b9be963c146a3be3c6f1c408..0000000000000000000000000000000000000000 --- a/funcom_test/7954954.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void enhance(String sourceDir, String targetDir) throws Exception{ - Db4oFileInstrumentor instrument = new Db4oFileInstrumentor(new BloatClassEdit[]{ - new TranslateNQToSODAEdit(), - new InjectTransparentActivationEdit(new AcceptAllClassesFilter()), - }); - instrument.enhance(sourceDir, targetDir, new String[]{}); - } - COM: <s> enhances a set of class files for db4o </s> - diff --git a/funcom_test/7955602.txt b/funcom_test/7955602.txt deleted file mode 100644 index 9c3e6995df9ecdd1cf7422cd769bdbd6ca6bb2b3..0000000000000000000000000000000000000000 --- a/funcom_test/7955602.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void Display_store() { - final Iterator iter = IndStore.values().iterator(); - - while (iter.hasNext()) { - final Swizzler indswz = (Swizzler) iter.next(); - - System.out.println("\nIV: " + indswz.ind_var() + " tgt: " - + indswz.target() + "\narray: " + indswz.array() - + " init: " + indswz.init_val() + " end: " - + indswz.end_val()); - } - } - COM: <s> displays to system </s> - diff --git a/funcom_test/7955604.txt b/funcom_test/7955604.txt deleted file mode 100644 index a49dd52c79dce88294973b793ff1d8fa4c080834..0000000000000000000000000000000000000000 --- a/funcom_test/7955604.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public void displaySwizzler(final Swizzler indswz) { - System.out.println("\nIV: " + indswz.ind_var() + "vn:" - + indswz.ind_var().valueNumber() + " tgt: " + indswz.target() - + "vn:" + indswz.target().valueNumber() + "\narray: " - + indswz.array() + " init: " + indswz.init_val() + " end: " - + indswz.end_val()); - } - COM: <s> displays the contents of a swizzler object to system </s> - diff --git a/funcom_test/7956015.txt b/funcom_test/7956015.txt deleted file mode 100644 index 3ca2e8348a9811ff10ca5e89b5aa0cca6b39bb75..0000000000000000000000000000000000000000 --- a/funcom_test/7956015.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void transform(final FlowGraph cfg) { - context = cfg.method().declaringClass().context(); - - final BitSet[] seen = new BitSet[PersistentCheckElimination.SIZE]; - - for (int i = 0; i < PersistentCheckElimination.SIZE; i++) { - seen[i] = new BitSet(); - } - - search(cfg, cfg.source(), seen); - } - COM: <s> examines each residency check tt rcexpr tt and update check tt ucexpr tt </s> - diff --git a/funcom_test/7956132.txt b/funcom_test/7956132.txt deleted file mode 100644 index 5305cd03dd192d41296a83db7230f8cbb255f653..0000000000000000000000000000000000000000 --- a/funcom_test/7956132.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void writeData(final DataOutputStream out) throws IOException { - out.writeShort(locals.length); - - for (int i = 0; i < locals.length; i++) { - out.writeShort(locals[i].startPC()); - out.writeShort(locals[i].length()); - out.writeShort(locals[i].nameIndex()); - out.writeShort(locals[i].typeIndex()); - out.writeShort(locals[i].index()); - } - } - COM: <s> write the attribute to a data stream </s> - diff --git a/funcom_test/7956174.txt b/funcom_test/7956174.txt deleted file mode 100644 index d4b683589065ac68bdb3dd5d7b385cd3c556a695..0000000000000000000000000000000000000000 --- a/funcom_test/7956174.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public String toString() { - String x = ""; - - if (handlers != null) { - for (int i = 0; i < handlers.length; i++) { - x += "\n " + handlers[i]; - } - } - - /* - * for (int i = 0; i < attrs.length; i++) { x += "\n " + attrs[i]; } - */ - - return "(code " + maxStack + " " + maxLocals + " " + code.length + x - + ")"; - } - COM: <s> returns a string representation of the attribute </s> - diff --git a/funcom_test/7956292.txt b/funcom_test/7956292.txt deleted file mode 100644 index 3ab1f2295f865b9516b6ad9ef7303ff0e3d3a21c..0000000000000000000000000000000000000000 --- a/funcom_test/7956292.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: protected OutputStream outputStreamFor(String name) throws IOException { - - name = name.replace('/', File.separatorChar); - - final File f = new File(outputDir, name); - - if (f.exists()) { - f.delete(); - } - - final File dir = new File(f.getParent()); - dir.mkdirs(); - - if (!dir.exists()) { - throw new RuntimeException("Couldn't create directory: " + dir); - } - - return (new FileOutputStream(f)); - } - COM: <s> returns an code output stream code to which somed named entity is </s> - diff --git a/funcom_test/7956317.txt b/funcom_test/7956317.txt deleted file mode 100644 index bca3a977fce1aa6031421bcfbd44eb741f907631..0000000000000000000000000000000000000000 --- a/funcom_test/7956317.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void readAttributes(final DataInputStream in) throws IOException { - final int numAttributes = in.readUnsignedShort(); - - attrs = new Attribute[numAttributes]; - - for (int i = 0; i < numAttributes; i++) { - final int nameIndex = in.readUnsignedShort(); - final int length = in.readInt(); - attrs[i] = new GenericAttribute(in, nameIndex, length); - } - } - COM: <s> read the classs attributes </s> - diff --git a/funcom_test/7956559.txt b/funcom_test/7956559.txt deleted file mode 100644 index f3b1f8ac232efc228ccd5a1f41298bb33716bb72..0000000000000000000000000000000000000000 --- a/funcom_test/7956559.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: private int checkCategory(final Set insts) { - int category = 0; - final Iterator iter = insts.iterator(); - while (iter.hasNext()) { - final Instruction inst = (Instruction) iter.next(); - if (category == 0) { - category = inst.category(); - - } else { - Assert.isTrue(inst.category() == category, - "Category mismatch in instruction set"); - } - } - - Assert.isTrue(category != 0, "No instructions in set"); - return (category); - } - COM: <s> helper method for asserting that all of the instructions have the same </s> - diff --git a/funcom_test/7956699.txt b/funcom_test/7956699.txt deleted file mode 100644 index e5cf5ff7600f2c472decffdbc7d5cd3ff77f667e..0000000000000000000000000000000000000000 --- a/funcom_test/7956699.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void visitStaticFieldExpr(final StaticFieldExpr expr) { - if (SSAPRE.NO_ACCESS_PATHS) { - return; - } - - try { - final FieldEditor e = context.editField(expr.field()); - - if (!e.isVolatile()) { - firstOrder = true; - } - - context.release(e.fieldInfo()); - - } catch (final NoSuchFieldException e) { - // A field wasn't found. Silently assume it's volatile. - firstOrder = false; - } - } - COM: <s> once again an expression that references a volatile static field is </s> - diff --git a/funcom_test/7956756.txt b/funcom_test/7956756.txt deleted file mode 100644 index 0bb7cc8c9147f975f930810fda6425664b3b7eea..0000000000000000000000000000000000000000 --- a/funcom_test/7956756.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addLongBranch(final Label label) { - if (ClassEditor.DEBUG || CodeArray.DEBUG) { - System.out.println(" " + codeLength + ": " + "long branch to " - + label); - } - - branchInsts.put(new Integer(codeLength), new Integer(lastInst)); - longBranches.put(new Integer(codeLength), label); - addByte(0); - addByte(0); - addByte(0); - addByte(0); - } - COM: <s> adds a 4 byte branch to a given label </s> - diff --git a/funcom_test/7956759.txt b/funcom_test/7956759.txt deleted file mode 100644 index cdac93dce93236f9f919cbba16ae29e005f46cd4..0000000000000000000000000000000000000000 --- a/funcom_test/7956759.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void printImplements(final PrintWriter out, int indent) { - // There are multiple roots to the implements graph. - indent += 2; - final Iterator roots = this.implementsGraph.roots().iterator(); - while (roots.hasNext()) { - final TypeNode iNode = (TypeNode) roots.next(); - indent(out, indent); - out.println(iNode.type); - printImplementors(iNode.type, out, true, indent + 2); - } - } - COM: <s> prints the implements hierarchy to a tt print writer tt </s> - diff --git a/funcom_test/7956760.txt b/funcom_test/7956760.txt deleted file mode 100644 index 18d27d0dfbba96a858911b5e9af2d249df24dcd4..0000000000000000000000000000000000000000 --- a/funcom_test/7956760.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void addBranch(final Label label) { - if (ClassEditor.DEBUG || CodeArray.DEBUG) { - System.out.println(" " + codeLength + ": " + "branch to " - + label); - } - - branchInsts.put(new Integer(codeLength), new Integer(lastInst)); - branches.put(new Integer(codeLength), label); - addByte(0); - addByte(0); - } - COM: <s> adds a 2 byte branch to a given label </s> - diff --git a/funcom_test/7956764.txt b/funcom_test/7956764.txt deleted file mode 100644 index e60eb0698c29619c8b07c3d670b07307ecb38b41..0000000000000000000000000000000000000000 --- a/funcom_test/7956764.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void addOpcode(final int opcode) { - if (ClassEditor.DEBUG || CodeArray.DEBUG) { - System.out.println(" " + codeLength + ": " + "opcode " - + Opcode.opcNames[opcode]); - } - - lastInst = codeLength; - - addByte(opcode); - - if ((opcode == Opcode.opc_tableswitch) - || (opcode == Opcode.opc_lookupswitch)) { - // Switch instructions are followed by padding so that table - // starts on a 4-byte boundary. - while (codeLength % 4 != 0) { - addByte(0); - } - } - } - COM: <s> add an opcode to the byte array adjusting for 4 byte alignment for </s> - diff --git a/funcom_test/7956768.txt b/funcom_test/7956768.txt deleted file mode 100644 index bdfffaaef501494b937f715f5253e37a148dce7b..0000000000000000000000000000000000000000 --- a/funcom_test/7956768.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void addByte(final int i) { - if (ClassEditor.DEBUG) { - System.out.println(" " + codeLength + ": " + "byte " + i); - } - - // The bytecode array is represented as a linked list of - // ByteCells. This method creates a new ByteCell and appends it - // to the linked list. - - final ByteCell p = new ByteCell(); - p.value = (byte) (i & 0xff); - p.prev = codeTail; - codeTail = p; - codeLength++; - } - COM: <s> adds a single byte to the array </s> - diff --git a/funcom_test/7957324.txt b/funcom_test/7957324.txt deleted file mode 100644 index d82a06343e8c2a6b3a9c7e75d87c9bae31f7c33a..0000000000000000000000000000000000000000 --- a/funcom_test/7957324.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public LocalVariable newLocal(final boolean isWide) { - if (this.isDeleted) { - final String s = "Cannot change a field once it has been marked " - + "for deletion"; - throw new IllegalStateException(s); - } - - final int index = maxLocals; - - maxLocals += (isWide ? 2 : 1); - this.setDirty(true); - - final LocalVariable local = new LocalVariable(index); - - locals.put(new Integer(index), local); - - return (local); - } - COM: <s> creates a new local variable of an undertermined type </s> - diff --git a/funcom_test/7957344.txt b/funcom_test/7957344.txt deleted file mode 100644 index e11753c36fd0bd64e6a7b0441c98dab54c05e10a..0000000000000000000000000000000000000000 --- a/funcom_test/7957344.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addInstruction(final Instruction inst) { - if (this.isDeleted) { - final String s = "Cannot change a field once it has been marked " - + "for deletion"; - throw new IllegalStateException(s); - } - - if (ClassEditor.DEBUG) { - System.out.println(" " + inst + " to " - + System.identityHashCode(this) + ":" - + System.identityHashCode(this.code)); - } - - code.add(inst); - this.setDirty(true); - } - COM: <s> add an instruction to the end of the code array </s> - diff --git a/funcom_test/7957370.txt b/funcom_test/7957370.txt deleted file mode 100644 index bf5b4ca508af68b6038947cfab4cf2fe1621df6e..0000000000000000000000000000000000000000 --- a/funcom_test/7957370.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void addPhi(final Block block) { - if (phis[cfg.preOrderIndex(block)] != null) { - return; - } - - final VarExpr target = (VarExpr) prototype.clone(); - - final PhiJoinStmt phi = new PhiJoinStmt(target, block); - phis[cfg.preOrderIndex(block)] = phi; - - if (SSA.DEBUG) { - System.out.println(" place " + phi + " in " + block); - } - } - COM: <s> adds a tt phi join stmt tt for the variable represented by this </s> - diff --git a/funcom_test/7957373.txt b/funcom_test/7957373.txt deleted file mode 100644 index 147879ce4543dc3ee14b97f5a1783f82d2bda2c4..0000000000000000000000000000000000000000 --- a/funcom_test/7957373.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addCatchPhi(final Block block) { - if (phis[cfg.preOrderIndex(block)] != null) { - return; - } - - if (prototype instanceof LocalExpr) { - final LocalExpr target = (LocalExpr) prototype.clone(); - - final PhiCatchStmt phi = new PhiCatchStmt(target); - phis[cfg.preOrderIndex(block)] = phi; - - if (SSA.DEBUG) { - System.out.println(" place " + phi + " in " + block); - } - } - } - COM: <s> inserts a tt phi catch stmt tt whose target is the variable </s> - diff --git a/funcom_test/7957374.txt b/funcom_test/7957374.txt deleted file mode 100644 index 24f1a5fe0b103a47639d41d12aca6d33382fef75..0000000000000000000000000000000000000000 --- a/funcom_test/7957374.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void addRetPhi(final Subroutine sub, final Block block) { - if (phis[cfg.preOrderIndex(block)] != null) { - return; - } - - final VarExpr target = (VarExpr) prototype.clone(); - - final PhiReturnStmt phi = new PhiReturnStmt(target, sub); - phis[cfg.preOrderIndex(block)] = phi; - - if (SSA.DEBUG) { - System.out.println(" place " + phi + " in " + block); - } - } - COM: <s> adds a tt phi return stmt tt associated with a given </s> - diff --git a/funcom_test/7957378.txt b/funcom_test/7957378.txt deleted file mode 100644 index 4469816864a99b802428cbadfe0c64a182f5b9b2..0000000000000000000000000000000000000000 --- a/funcom_test/7957378.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void print(final PrintStream out) { - out.println(name + "." + type + (isDirty ? " (dirty) " : "") + ":"); - - Iterator iter; - - iter = code.iterator(); - - while (iter.hasNext()) { - out.println(" " + iter.next()); - } - - iter = tryCatches.iterator(); - - while (iter.hasNext()) { - out.println(" " + iter.next()); - } - } - COM: <s> print the method </s> - diff --git a/funcom_test/7957397.txt b/funcom_test/7957397.txt deleted file mode 100644 index 4f9e07fc49411abfb35c718cd5fe7b372e75af21..0000000000000000000000000000000000000000 --- a/funcom_test/7957397.txt +++ /dev/null @@ -1,32 +0,0 @@ -TDAT: public boolean equals(final Object other) { - if (!(other instanceof Constant)) { - return false; - } - - final Constant c = (Constant) other; - - if (tag != c.tag) { - return false; - } - - switch (tag) { - case CLASS: - case STRING: - case INTEGER: - case FLOAT: - case LONG: - case DOUBLE: - case UTF8: - return value.equals(c.value); - case FIELD_REF: - case METHOD_REF: - case INTERFACE_METHOD_REF: - case NAME_AND_TYPE: - return (((int[]) value)[0] == ((int[]) c.value)[0]) - && (((int[]) value)[1] == ((int[]) c.value)[1]); - } - - return false; - } - COM: <s> check if an object is equal to this constant </s> - diff --git a/funcom_test/7957420.txt b/funcom_test/7957420.txt deleted file mode 100644 index 04625ad76af28b01b744ccfba379f29002f47cf2..0000000000000000000000000000000000000000 --- a/funcom_test/7957420.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: protected Class findClass(final String name) throws ClassNotFoundException { - - final ClassInfo info = this.loader.loadClass(name); - final ClassEditor ce = this.context.editClass(info); - - this.bloat(ce); - - ce.commit(); - final ByteArrayOutputStream baos = (ByteArrayOutputStream) this.classBytes - .get(info); - Assert.isNotNull(baos, "No bytes for " + name); - - final byte[] bytes = baos.toByteArray(); - return super.defineClass(name, bytes, 0, bytes.length); - } - COM: <s> before the code class code is created invoke </s> - diff --git a/funcom_test/7957592.txt b/funcom_test/7957592.txt deleted file mode 100644 index c8fbb9e79befda8493a0cd2efae5fdbd40c8b8ea..0000000000000000000000000000000000000000 --- a/funcom_test/7957592.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: private void number(final GraphNode node, final Set visited) { - visited.add(node); - - // Visit in pre-order - node.setPreOrderIndex(preOrder.size()); - preOrder.addNode(node); - - final Iterator iter = succs(node).iterator(); - - while (iter.hasNext()) { - final GraphNode succ = (GraphNode) iter.next(); - if (!visited.contains(succ)) { - number(succ, visited); - } - } - - // Visit in post-order - node.setPostOrderIndex(postOrder.size()); - postOrder.addNode(node); - } - COM: <s> sets the pre order and post order indices of a node </s> - diff --git a/funcom_test/7957602.txt b/funcom_test/7957602.txt deleted file mode 100644 index a7984f2b2adb2789e57c0ff15b0326f492fb6bf6..0000000000000000000000000000000000000000 --- a/funcom_test/7957602.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: protected void print() { - System.out.println("Print for " + prototype + "------------------"); - - cfg.visit(new PrintVisitor() { - Phi phi = null; - - public void visitBlock(final Block block) { - phi = exprPhiAtBlock(block); - super.visitBlock(block); - } - - public void visitLabelStmt(final LabelStmt stmt) { - super.visitLabelStmt(stmt); - - if (stmt.label().startsBlock()) { - if (phi != null) { - println(phi); - phi = null; - } - } - } - }); - - System.out.println("End Print ----------------------------"); - } - COM: <s> print a textual description of this expr info </s> - diff --git a/funcom_test/7957674.txt b/funcom_test/7957674.txt deleted file mode 100644 index 7ea62c2139099a622a06743d511ca69a33e88863..0000000000000000000000000000000000000000 --- a/funcom_test/7957674.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void removeEdge(final GraphNode v, final GraphNode w) { - final Block src = (Block) v; - final Block dst = (Block) w; - - if (FlowGraph.DEBUG) { - System.out.println(" REMOVING EDGE " + src + " -> " + dst); - } - - super.removeEdge(src, dst); - - cleanupEdge(src, dst); - } - COM: <s> removes an edge from the graph and performs the necessary cleanup </s> - diff --git a/funcom_test/7957682.txt b/funcom_test/7957682.txt deleted file mode 100644 index 432f80fad2a91213c8ace494830354a3b52d93d8..0000000000000000000000000000000000000000 --- a/funcom_test/7957682.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void cleanupEdge(final Block src, final Block dst) { - dst.visit(new TreeVisitor() { - public void visitPhiJoinStmt(final PhiJoinStmt stmt) { - final Expr operand = stmt.operandAt(src); - - if (operand != null) { - operand.cleanup(); - - // Remove the operand associated with src - // from a PhiJoinStmt - stmt.setOperandAt(src, null); - } - } - - public void visitStmt(final Stmt stmt) { - } - }); - } - COM: <s> visit the tree starting at the destination node </s> - diff --git a/funcom_test/7957684.txt b/funcom_test/7957684.txt deleted file mode 100644 index 337377a43e2cf3ff713a44144dbf6aa5e1ca1a95..0000000000000000000000000000000000000000 --- a/funcom_test/7957684.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: private Node findNode(Node node) { - final Stack stack = new Stack(); - - // Find the child of the root element. - while (node.parent.child == null) { - stack.push(node); - node = node.parent; - } - - // Do path compression on the way back down. - final Node rootChild = node; - - while (!stack.empty()) { - node = (Node) stack.pop(); - node.parent = rootChild; - } - - Assert.isTrue(rootChild.parent.child != null); - - return rootChild.parent; - } - COM: <s> finds the set containing a given node </s> - diff --git a/funcom_test/7957686.txt b/funcom_test/7957686.txt deleted file mode 100644 index 0c82850100533371d3ffe021a704626c9c88029d..0000000000000000000000000000000000000000 --- a/funcom_test/7957686.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void union(final int a, final int b) { - final Node na = findNode(a); - final Node nb = findNode(b); - - if (na == nb) { - return; - } - - // Link the smaller tree under the larger. - if (na.rank > nb.rank) { - // Delete nb. - nb.child.parent = na.child; - na.value = b; - - } else { - // Delete na. - na.child.parent = nb.child; - nb.value = b; - - if (na.rank == nb.rank) { - nb.rank++; - } - } - } - COM: <s> combines the set that contains a with the set that contains b </s> - diff --git a/funcom_test/7957692.txt b/funcom_test/7957692.txt deleted file mode 100644 index 4496870ef0741b7878602256648db69ab3b3dc3f..0000000000000000000000000000000000000000 --- a/funcom_test/7957692.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: public void addReal(final Expr real) { - if (SSAPRE.DEBUG) { - System.out.println(" add to worklist=" + real); - } - - final ExprKey key = new ExprKey(real); - - ExprInfo exprInfo = (ExprInfo) exprInfos.get(key); - - if (exprInfo == null) { - exprInfo = new ExprInfo(real, key); - exprs.add(exprInfo); - exprInfos.put(key, exprInfo); - - if (SSAPRE.DEBUG) { - System.out.println(" add info"); - } - } - - exprInfo.addReal(real); - } - COM: <s> add a real occurrence of an expression to the worklist </s> - diff --git a/funcom_test/7957792.txt b/funcom_test/7957792.txt deleted file mode 100644 index 6af54f76493c125c96539713a59c2ac87210b7df..0000000000000000000000000000000000000000 --- a/funcom_test/7957792.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: private Block copyBlock(final Block block) { - final Block copy = newBlock(); - - // Copy the stack from the end of the old block. - // But don't change it when instructions are added. - - final Tree tree = new Tree(copy, block.tree().stack()); - copy.setTree(tree); - - // Fill the tree. - final Iterator stmts = block.tree().stmts().iterator(); - - while (stmts.hasNext()) { - final Stmt stmt = (Stmt) stmts.next(); - - if (stmt instanceof LabelStmt) { - continue; - } - - tree.addStmt((Stmt) stmt.clone()); - } - - return copy; - } - COM: <s> creates a copy of a block including its expression tree </s> - diff --git a/funcom_test/7957825.txt b/funcom_test/7957825.txt deleted file mode 100644 index 862eec8243776873c01381787671e7eb1972fe0f..0000000000000000000000000000000000000000 --- a/funcom_test/7957825.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void print(final PrintWriter out) { - final String dateString = java.text.DateFormat.getDateInstance() - .format(new Date()); - out.println("Print " + ++file + " at " + dateString + " " - + method.type() + " " + method.name() + ":"); - - visit(new PrintVisitor(out)); - - if (FlowGraph.PRINT_GRAPH) { - printGraph(); - } - } - COM: <s> prints the graph </s> - diff --git a/funcom_test/7957940.txt b/funcom_test/7957940.txt deleted file mode 100644 index 85aca41adc2d9327ae9006c38791041d95102622..0000000000000000000000000000000000000000 --- a/funcom_test/7957940.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: /* - * public void removeRange(int fromIndex, int toIndex) { int remaining = - * toIndex - fromIndex; - * - * ListIterator iter = listIterator(fromIndex); - * - * while (iter.hasNext() && remaining-- > 0) { ((Stmt) - * iter.next()).cleanup(); } - * - * super.removeRange(fromIndex, toIndex); } - COM: <s> removes statements in a given index range </s> - diff --git a/funcom_test/7957957.txt b/funcom_test/7957957.txt deleted file mode 100644 index bff831b858a95b03dacc3f7fee9ec2501c766137..0000000000000000000000000000000000000000 --- a/funcom_test/7957957.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public Collection operands() { - if (operands == null) { - return new ArrayList(); - } - - for (int i = 0; i < operands.size(); i++) { - final LocalExpr ei = (LocalExpr) operands.get(i); - - for (int j = operands.size() - 1; j > i; j--) { - final LocalExpr ej = (LocalExpr) operands.get(j); - - if (ei.def() == ej.def()) { - ej.cleanup(); - operands.remove(j); - } - } - } - - return operands; - } - COM: <s> returns the operands to this phi function </s> - diff --git a/funcom_test/7957985.txt b/funcom_test/7957985.txt deleted file mode 100644 index f35c75a8ba899f8205d2fdfe990576ffbdc7f964..0000000000000000000000000000000000000000 --- a/funcom_test/7957985.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void visitChildren(final TreeVisitor visitor) { - final List list = preOrder(); - - if (!visitor.reverse()) { - final ListIterator iter = list.listIterator(); - - while (iter.hasNext()) { - final Block block = (Block) iter.next(); - block.visit(visitor); - } - - } else { - final ListIterator iter = list.listIterator(list.size()); - - while (iter.hasPrevious()) { - final Block block = (Block) iter.previous(); - block.visit(visitor); - } - } - } - COM: <s> visit each node block in this cfg in pre order </s> - diff --git a/funcom_test/7958230.txt b/funcom_test/7958230.txt deleted file mode 100644 index cf6fc5b322eae6fdc018d71a0f40025d15df66d6..0000000000000000000000000000000000000000 --- a/funcom_test/7958230.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void replace(int depth, final Expr expr) { - for (int i = stack.size() - 1; i >= 0; i--) { - final Expr top = (Expr) stack.get(i); - - if (depth == 0) { - stack.set(i, expr); - return; - } - - depth -= top.type().stackHeight(); - } - - throw new IllegalArgumentException("Can't replace below stack bottom."); - } - COM: <s> replaces the expression that is depth expressions from the top of the </s> - diff --git a/funcom_test/7958237.txt b/funcom_test/7958237.txt deleted file mode 100644 index 06b7eb1ceca2420af6d231305e1fbbfd2cd4b3ed..0000000000000000000000000000000000000000 --- a/funcom_test/7958237.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void addStmtAfter(final Stmt stmt, final Stmt after) { - if (Tree.DEBUG) { - System.out.println("insert: " + stmt + " after " + after); - } - - final ListIterator iter = stmts.listIterator(); - - while (iter.hasNext()) { - final Stmt s = (Stmt) iter.next(); - - if (s == after) { - iter.add(stmt); - stmt.setParent(this); - return; - } - } - - throw new RuntimeException(after + " not found"); - } - COM: <s> inserts a statement into the statement list after another given </s> - diff --git a/funcom_test/7958262.txt b/funcom_test/7958262.txt deleted file mode 100644 index 1a2c9bcdd4e4372d220f2e718129276c18fe5b73..0000000000000000000000000000000000000000 --- a/funcom_test/7958262.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void addStmtBefore(final Stmt stmt, final Stmt before) { - if (Tree.DEBUG) { - System.out.println("insert: " + stmt + " before " + before); - } - - final ListIterator iter = stmts.listIterator(); - - while (iter.hasNext()) { - final Stmt s = (Stmt) iter.next(); - - if (s == before) { - iter.previous(); - iter.add(stmt); - stmt.setParent(this); - return; - } - } - - throw new RuntimeException(before + " not found"); - } - COM: <s> inserts a statement into the statement list before a specified statement </s> - diff --git a/funcom_test/7958842.txt b/funcom_test/7958842.txt deleted file mode 100644 index eabcea849207514f2a24b51eb55082b700649769..0000000000000000000000000000000000000000 --- a/funcom_test/7958842.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void visit_astore(final Instruction inst) { - final LocalVariable operand = (LocalVariable) inst.operand(); - - Expr expr = stack.peek(); - - if (expr.type().isAddress()) { - Assert.isTrue(sub != null); - Assert.isTrue(!saveValue); - expr = stack.pop(Type.ADDRESS); - sub.setReturnAddress(operand); - addStmt(new AddressStoreStmt(sub)); - } else { - expr = stack.pop(Type.OBJECT); - final LocalExpr target = new LocalExpr(operand.index(), expr.type()); - addStore(target, expr); - } - } - COM: <s> visit an i astore i instruction </s> - diff --git a/funcom_test/7960728.txt b/funcom_test/7960728.txt deleted file mode 100644 index 4861846c142956abf7186f5e522349e3e900a761..0000000000000000000000000000000000000000 --- a/funcom_test/7960728.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void visit_jsr(final Instruction inst) { - // Push the return address after we add the statement. - // This prevents it from being saved to a local variable. - // It's illegal to load a return address from a local variable, - // so we can't save it. - final Subroutine sub = block.graph().labelSub((Label) inst.operand()); - addStmt(new JsrStmt(sub, next)); - stack.push(new ReturnAddressExpr(Type.ADDRESS)); - } - COM: <s> adds a jsr stmt to the statement list </s> - diff --git a/funcom_test/7961202.txt b/funcom_test/7961202.txt deleted file mode 100644 index 273d0e9c3274278f7b4db38266d00234610b3ec2..0000000000000000000000000000000000000000 --- a/funcom_test/7961202.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void visit_multianewarray(final Instruction inst) { - final MultiArrayOperand operand = (MultiArrayOperand) inst.operand(); - - final Expr[] dim = new Expr[operand.dimensions()]; - - for (int i = dim.length - 1; i >= 0; i--) { - dim[i] = stack.pop(Type.INTEGER); - } - - final Type type = operand.type(); - - final Expr top = new NewMultiArrayExpr(dim, type - .elementType(dim.length), type); - - stack.push(top); - } - COM: <s> push a new multi array expr onto the operand stack </s> - diff --git a/funcom_test/7961289.txt b/funcom_test/7961289.txt deleted file mode 100644 index 49711bb9c9940613ba5912b39364c1a071eb01c8..0000000000000000000000000000000000000000 --- a/funcom_test/7961289.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void visitForceChildren(final TreeVisitor visitor) { - final LinkedList list = new LinkedList(stmts); - - if (visitor.reverse()) { - final ListIterator iter = list.listIterator(stmts.size()); - - while (iter.hasPrevious()) { - final Stmt s = (Stmt) iter.previous(); - s.visit(visitor); - } - } else { - final ListIterator iter = list.listIterator(); - - while (iter.hasNext()) { - final Stmt s = (Stmt) iter.next(); - s.visit(visitor); - } - } - } - COM: <s> visit all the statements in the statement list </s> - diff --git a/funcom_test/7974560.txt b/funcom_test/7974560.txt deleted file mode 100644 index d04167d496559fbf5fd31cede2f429c09541132f..0000000000000000000000000000000000000000 --- a/funcom_test/7974560.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void clientConnect() throws DCOMException { - - if (!isConnected()) { - getServiceConnection().connect(getClientInfo().getDomain(), getClientInfo().getUserName(), getClientInfo().getPassword(), getClientInfo().getServer(), _progId); - } - } - COM: <s> connect to the service </s> - diff --git a/funcom_test/7974586.txt b/funcom_test/7974586.txt deleted file mode 100644 index 71bacfc8c6b13df96f4df56b354f7f5e301f49cf..0000000000000000000000000000000000000000 --- a/funcom_test/7974586.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void setInBuiltLogHandler(boolean useParentHandlers) { - - try { - _logger.setLevel(Level.ALL); - _logger.setUseParentHandlers(useParentHandlers); - - FileHandler fileHandler = new FileHandler("%t/wbemlib%g.log", 0, 1, true); - fileHandler.setFormatter(new SimpleFormatter()); - _logger.addHandler(fileHandler); - - } catch (IOException e) { - e.printStackTrace(); - } - - - } - COM: <s> set in built log handler </s> - diff --git a/funcom_test/8003687.txt b/funcom_test/8003687.txt deleted file mode 100644 index 7eb629dcf8863601a39f8634cedb9669dca603ac..0000000000000000000000000000000000000000 --- a/funcom_test/8003687.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void drawQuotation(final Graphics2D p_g2, final int p_formation) { - if (p_formation == FormationPanel.FORMATION_V) { - this.drawQuotationV(p_g2); - } else { - if (p_formation == FormationPanel.FORMATION_CIRCLE) { - this.drawQuotationCircle(p_g2); - } else { - if (p_formation == FormationPanel.FORMATION_LINE) { - this.drawQuotationLine(p_g2); - } - } - } - } - COM: <s> draw system of quotation of the deformation panel </s> - diff --git a/funcom_test/8033485.txt b/funcom_test/8033485.txt deleted file mode 100644 index 7a124756a9f7b81b91230d87303f9e5d2387ca12..0000000000000000000000000000000000000000 --- a/funcom_test/8033485.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private LoginEntityFacadeLocal lookupLoginEntityFacade() { - try { - Context c = new InitialContext(); - return (LoginEntityFacadeLocal) c.lookup("NewsApp/LoginEntityFacade/local"); - } catch(NamingException ne) { - Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception caught" ,ne); - throw new RuntimeException(ne); - } - } - COM: <s> perform jndi lookup for login entity </s> - diff --git a/funcom_test/8033488.txt b/funcom_test/8033488.txt deleted file mode 100644 index d4e8e47df77aa1832e0363ac9f00eebf24824874..0000000000000000000000000000000000000000 --- a/funcom_test/8033488.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private UsersEntityFacadeLocal lookupUsersEntityFacade() { - try { - Context c = new InitialContext(); - return (UsersEntityFacadeLocal) c.lookup("NewsApp/UsersEntityFacade/local"); - } catch(NamingException ne) { - Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception caught" ,ne); - throw new RuntimeException(ne); - } - } - COM: <s> perform jndi lookup on users entity for handle on its facade </s> - diff --git a/funcom_test/8033492.txt b/funcom_test/8033492.txt deleted file mode 100644 index 37fcf38729eedcd936012bd828803aae6e965f10..0000000000000000000000000000000000000000 --- a/funcom_test/8033492.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private ScripsExchangeEntityFacadeLocal lookupExchangeEntityFacade() { - try { - Context c = new InitialContext(); - return (ScripsExchangeEntityFacadeLocal) c.lookup("NewsApp/ScripsExchangeEntityFacade/local"); - } catch(NamingException ne) { - Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception caught" ,ne); - throw new RuntimeException(ne); - } - } - COM: <s> performs jndi lookup on scrips exchange entity </s> - diff --git a/funcom_test/8102879.txt b/funcom_test/8102879.txt deleted file mode 100644 index b806316ac8aa3abce5865767ee007000182bdbb8..0000000000000000000000000000000000000000 --- a/funcom_test/8102879.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void loadListData(){ - formatField.setSelectedItem(formatField.getItemAt(wordList.format)); - formatField.setSelectedIndex(wordList.format); - setField.setText(wordList.set); - wordField.setText(wordList.word); - transField.setText(wordList.trans); - - updateList(); - } - COM: <s> load data from word list </s> - diff --git a/funcom_test/8119607.txt b/funcom_test/8119607.txt deleted file mode 100644 index 262c893137f51f0eecd3c31b23b5cf60d3742243..0000000000000000000000000000000000000000 --- a/funcom_test/8119607.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void login(String username, String password) throws RemoteException, ServiceException { - rallyService = new RallyServiceServiceLocator().getRallyService(); - - Stub stub = (Stub) rallyService; - stub.setUsername(username); - stub.setPassword(password); - - stub.setMaintainSession(true); - - user = (User) rallyService.getCurrentUser(); - } - COM: <s> starts a rally session </s> - diff --git a/funcom_test/8155712.txt b/funcom_test/8155712.txt deleted file mode 100644 index 86d825ca253735de551995bed7d617af5b102998..0000000000000000000000000000000000000000 --- a/funcom_test/8155712.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void setAlignment(int align) { - this.newAlign = align; - - // this.align is used only for serialization compatibility, - // so set it to a value compatible with the 1.1 version - // of the class - - switch (align) { - case LEADING: - this.align = TOP; - break; - case TRAILING: - this.align = BOTTOM; - break; - default: - this.align = align; - break; - } - } - COM: <s> sets the alignment for this layout </s> - diff --git a/funcom_test/8208288.txt b/funcom_test/8208288.txt deleted file mode 100644 index b2d8016d1351fbbaba6d904fcd687a5300378cc9..0000000000000000000000000000000000000000 --- a/funcom_test/8208288.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void showDocumentView(final String shortName, final String key) { - - hideDocumentView(); - - documentTabView = new ClientDocumentTabView( - WebGnashConstants.getDocDetailViewConstants().documentDetails() - + " - " + shortName, key); - mainPanel.add(documentTabView); - mainPanel.setCellHorizontalAlignment(documentTabView, - HasHorizontalAlignment.ALIGN_LEFT); - } - COM: <s> open document view </s> - diff --git a/funcom_test/8208306.txt b/funcom_test/8208306.txt deleted file mode 100644 index 9646ca5698f7e799e4572faaf878a827b0bc5eb3..0000000000000000000000000000000000000000 --- a/funcom_test/8208306.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private void processTextBoxesChanges(final Object obj) { - if (relatedDialog.isEventRelatedToShortNameField(obj) - || relatedDialog.isEventRelatedToDescriptionField(obj)) { - if (relatedDialog.getShortName().isEmpty() - || relatedDialog.getDescription().isEmpty()) { - relatedDialog.setOkayButtonState(false); - } else { - relatedDialog.setOkayButtonState(true); - } - } - } - COM: <s> process text boxes changes </s> - diff --git a/funcom_test/8242037.txt b/funcom_test/8242037.txt deleted file mode 100644 index 0cffd69e51e71e462ade7cd92b26bf24be0e50f7..0000000000000000000000000000000000000000 --- a/funcom_test/8242037.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void logout() { - if (lc != null) { - try { - lc.logout(); - } catch (LoginException le) { - logger.error("[LoginException].Cannot create LoginContext. " - + le.getMessage()); - } catch (SecurityException se) { - logger.error("[SecurityException].Cannot create LoginContext. " - + se.getMessage()); - } - } else { - logger.error("Logout of [null] LoginContext"); - } - } - COM: <s> the logout procedure of the web login module </s> - diff --git a/funcom_test/8252771.txt b/funcom_test/8252771.txt deleted file mode 100644 index fe4949da0ec038e1a2827e2407ea77a9d64396bd..0000000000000000000000000000000000000000 --- a/funcom_test/8252771.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void addChild(TrackNode child){ - this.children.add(child); - child.parent = this; - remainingEcho++; - //////////////////////////////////////////// - } - COM: <s> function adds child into the parent track </s> - diff --git a/funcom_test/8252825.txt b/funcom_test/8252825.txt deleted file mode 100644 index 626738d2c448a6f810a0ea0ccc341e7da80a8c86..0000000000000000000000000000000000000000 --- a/funcom_test/8252825.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public String getOutputIP(String input) { - if (this.method.compareTo("dbSorting") == 0) { - return this.compareWithAnchors(input); - } else if (this.method.compareTo("chordBased") == 0) { - return this.compareHashCode(input); - } - return ""; - } - COM: <s> get the output ip address based on filter method used </s> - diff --git a/funcom_test/8253309.txt b/funcom_test/8253309.txt deleted file mode 100644 index 00312d0175c0d3646b06efaabd9bc214115402c3..0000000000000000000000000000000000000000 --- a/funcom_test/8253309.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void setViewpoint() { - Transform3D viewTrans = new Transform3D(); - Transform3D eyeTrans = new Transform3D(); - - // put the View at the standard VRML default position 0,0,10 - //Vector3f pos = new Vector3f(0, 0, 10); - Vector3f pos = new Vector3f(0, 0, 30); - eyeTrans.set(pos); - viewTrans.mul(eyeTrans); - - // set the view transform - vpTransGroup.setTransform(viewTrans); - } - COM: <s> setup the scenes view </s> - diff --git a/funcom_test/8342046.txt b/funcom_test/8342046.txt deleted file mode 100644 index 39e235cc665d72709893b25a1a79ba7072cf8c2b..0000000000000000000000000000000000000000 --- a/funcom_test/8342046.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JSlider getIntervallSizeSlider() { - if (intervallSizeSlider == null) { - intervallSizeSlider = new JSlider(1, 99, 5); - intervallSizeSlider.addChangeListener(new javax.swing.event.ChangeListener() { - public void stateChanged(javax.swing.event.ChangeEvent e) { - - NumberFormat formatter = new DecimalFormat("00"); - intervallActualLabel.setText(formatter.format(intervallSizeSlider.getValue()) + "/m"); - - } - }); - } - return intervallSizeSlider; - } - COM: <s> this method initializes intervall size slider </s> - diff --git a/funcom_test/8342053.txt b/funcom_test/8342053.txt deleted file mode 100644 index a1baaf96b51d0ee9d78dc1b09caa677d93ceacbc..0000000000000000000000000000000000000000 --- a/funcom_test/8342053.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private JButton getStartButton() { - if (startButton == null) { - startButton = new JButton(); - startButton.setText("Start"); - startButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent e) { - TimeRun.getTimeRun().setIntervall(intervallSizeSlider.getValue() * (1000 * 60)); - TimeRun.getTimeRun().startNewIntervall(); - setupFrame.setVisible(false); - - } - }); - } - return startButton; - } - COM: <s> this method initializes start button </s> - diff --git a/funcom_test/8381657.txt b/funcom_test/8381657.txt deleted file mode 100644 index a2e1f37af8522ec3393e65f5da10bd627ba6d46f..0000000000000000000000000000000000000000 --- a/funcom_test/8381657.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public boolean insert(WeaveBasicObject o) throws DatabaseException { - log.debug("Perform inserting weave object with id '" + o.getId() + "'"); - boolean result = weaveById.putNoOverwrite(o); - if(!result)log.warn(" Already exists weave object with id '" + o.getId() + "'"); - return result; - - } - COM: <s> insert weave object </s> - diff --git a/funcom_test/8381677.txt b/funcom_test/8381677.txt deleted file mode 100644 index 3f30494daf50b5157aa7343eb96a502a6f42aaa9..0000000000000000000000000000000000000000 --- a/funcom_test/8381677.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void configuration() throws ConfigurationException { - log.debug("Start configuration by looking for '" + CONFIGURATION_PROPERTIES - + "' property file"); - Configuration.addConfiguration(CONFIGURATION_PROPERTIES); - path2enviroment = Configuration.lookup(CONFIGURATION_LOCATION); - log.debug("Resolving enviroment location '" + CONFIGURATION_LOCATION - + "' as '" + path2enviroment + "'"); - - storeName = Configuration.lookup(STORE_NAME); - log.debug("Resolving store name '" + STORE_NAME + "' as '" + storeName - + "'"); - } - COM: <s> resolving paths and properties for the store </s> - diff --git a/funcom_test/8381683.txt b/funcom_test/8381683.txt deleted file mode 100644 index 71e9fd2019faa274f02e954797e1183df9d60fa5..0000000000000000000000000000000000000000 --- a/funcom_test/8381683.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void close() { - log.info("Closing Berkeley db at '" + path2enviroment + "' enviroment"); - if (store != null) { - try { - store.close(); - } catch (DatabaseException dbe) { - log.error("Error closing store '" + storeName + "'", dbe); - } - } - - if (myEnv != null) { - try { - // Finally, close environment. - myEnv.close(); - } catch (DatabaseException dbe) { - log.error("Error closing '" + path2enviroment + "'", dbe); - } - } - } - COM: <s> close all entity stories and environment at all </s> - diff --git a/funcom_test/8422392.txt b/funcom_test/8422392.txt deleted file mode 100644 index a58e0dbf7d63cad81989959c7e213a343cd1c0d3..0000000000000000000000000000000000000000 --- a/funcom_test/8422392.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Byte convert(String input, Locale locale) throws ConversionException { - Byte value = null; - if (input != null && !"".equals(input)) { - try { - value = Byte.parseByte(input); - } catch (NumberFormatException ex) { - throw new ConversionException("Could not convert " + input + " into a Byte object", ex.getCause()); - } - } - return value; - } - COM: <s> performs the conversion </s> - diff --git a/funcom_test/8422452.txt b/funcom_test/8422452.txt deleted file mode 100644 index 4ee650bfd74d07f2b23220395c9dccda289466ae..0000000000000000000000000000000000000000 --- a/funcom_test/8422452.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addDescriptor(HandlerDescriptor added) throws DuplicateURIPatternException { - HandlerDescriptor existing = null; - for (HandlerDescriptor descriptor : descriptors) { - if (descriptor.equals(added)) { - existing = descriptor; - break; - } - } - if (existing != null) { - throw new DuplicateURIPatternException(existing, added); - } - descriptors.add(added); - } - COM: <s> adds handlers descriptors to a sorted set of descriptors </s> - diff --git a/funcom_test/8422487.txt b/funcom_test/8422487.txt deleted file mode 100644 index d8fad873db56972d46ad875a4a487cefd76d6a95..0000000000000000000000000000000000000000 --- a/funcom_test/8422487.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String normalizeURI(String uriStr) { - URI uri; - try { - uri = new URI(uriStr); - } catch (URISyntaxException ex) { - throw new IllegalArgumentException("Malformed URI: " + uriStr, ex); - } - return stripTrailingSlash(uri.normalize().toString()); - } - COM: <s> normalizes the uri string so that </s> - diff --git a/funcom_test/8474791.txt b/funcom_test/8474791.txt deleted file mode 100644 index 05de543a51f9453dcb4cf2948196570ec8c43e8e..0000000000000000000000000000000000000000 --- a/funcom_test/8474791.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void addURL(String url) throws BadURLException { - synchronized(startURLs) { - try { - URL pURL = new URL(url); - // Don't add a page we've already seen - if(!urlToPage.containsKey(pURL.toString())) { - startURLs.add(pURL.toString()); - } - } catch(MalformedURLException e) { - throw new BadURLException(e.getMessage()); - } - } - } - COM: <s> add a new root url </s> - diff --git a/funcom_test/8474801.txt b/funcom_test/8474801.txt deleted file mode 100644 index c22b2837e3f5eaaf35ef66cc266868648e83cac3..0000000000000000000000000000000000000000 --- a/funcom_test/8474801.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean isContentHTML(String contentType) { - // watch out, some sites have charset specifiers! - if(contentType.indexOf(';') != -1) { - contentType = contentType.substring(0, contentType.indexOf(';')); - } - contentType = contentType.trim(); - - return contentType.equals("text/html") || - contentType.equals("application/xhtml+xml"); - } - COM: <s> determine if a content type represents html content </s> - diff --git a/funcom_test/8474819.txt b/funcom_test/8474819.txt deleted file mode 100644 index a3bd4e6844db859a92c80422a18f2a339bb1e4a9..0000000000000000000000000000000000000000 --- a/funcom_test/8474819.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void notifyPage(Webpage page, Weblink link) { - synchronized(urlToPage) { - // register the link - synchronized(pageToLinks) { - pageToLinks.put(page, new HashSet<Weblink>()); - if(link != null) { - pageToLinks.get(link.from).add(link); - } - } - - // Set the page and notify anyone who was waiting for it - PageLock lock = urlToPage.get(page.url); - synchronized(lock) { - lock.page = page; - lock.notifyAll(); - } - } - } - COM: <s> notify the dispatcher that a page has been parsed </s> - diff --git a/funcom_test/8474866.txt b/funcom_test/8474866.txt deleted file mode 100644 index a2c557a4ee840040b2658fd08a052009b81bff18..0000000000000000000000000000000000000000 --- a/funcom_test/8474866.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void stateChanged(ChangeEvent e) { - title.setText(model.getTitle()); - url.setText(model.getURL()); - depthCount.setText(safeToString(model.getDepth())); - inOutLinks.setText(safeToString(model.getInLinkCount())+" / "+safeToString(model.getOutLinkCount())); - } - COM: <s> method to detect state changes </s> - diff --git a/funcom_test/8474987.txt b/funcom_test/8474987.txt deleted file mode 100644 index 09d19968e601073e78c643439df2c030cd54c6e4..0000000000000000000000000000000000000000 --- a/funcom_test/8474987.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: public void configureFilter() { - boolean done = false; - - while(!done){ - try{ - String i = javax.swing.JOptionPane.showInputDialog("Enter Link Limit Amount"); - if(i == null) - return; - - limit = Integer.parseInt(i); - - if(limit <= 0) throw new NumberFormatException(); - done=true; - } - - catch (NumberFormatException e){ - javax.swing.JOptionPane.showMessageDialog(null, "Please enter a positive number"); - } - } - } - COM: <s> the dialog to get the limit from the user </s> - diff --git a/funcom_test/8490064.txt b/funcom_test/8490064.txt deleted file mode 100644 index 7999306c038dbabec6c398002e085e439f1e15cc..0000000000000000000000000000000000000000 --- a/funcom_test/8490064.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setSpellIndex(Directory spellIndex) throws IOException { - this.spellIndex = spellIndex; - if (!IndexReader.indexExists(spellIndex)) { - IndexWriter writer = new IndexWriter(spellIndex, null, true); - writer.close(); - } - // close the old searcher, if there was one - if (searcher != null) { - searcher.close(); - } - searcher = new IndexSearcher(this.spellIndex); - } - COM: <s> use a different index as the spell checker index or re open </s> - diff --git a/funcom_test/8490090.txt b/funcom_test/8490090.txt deleted file mode 100644 index 5ae603a7fd14f275c7f56c41db7011dc17a68a8b..0000000000000000000000000000000000000000 --- a/funcom_test/8490090.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void addToIndex(String word, List<String> kgrams) { - for(String kgram : kgrams) { - List<String> wordList = invertedIndex.get(kgram); - if(wordList != null) { - wordList.add(word); - } else { - List<String> newWordList = new ArrayList<String>(); - newWordList.add(word); - invertedIndex.put(kgram, newWordList); - } - } - } - COM: <s> adds word to inverted k gram index </s> - diff --git a/funcom_test/8490217.txt b/funcom_test/8490217.txt deleted file mode 100644 index 5bd340327d003bf73d4dfae899b7bf6904f3fb7b..0000000000000000000000000000000000000000 --- a/funcom_test/8490217.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public Counter asCounter() { - PriorityQueue<E> pq = clone(); - Counter<E> counter = new Counter<E>(); - while (pq.hasNext()) { - double priority = pq.getPriority(); - E element = pq.next(); - counter.incrementCount(element, priority); - } - return counter; - } - COM: <s> returns a counter whose keys are the elements in this priority queue and </s> - diff --git a/funcom_test/8490226.txt b/funcom_test/8490226.txt deleted file mode 100644 index f36d5acbe2466a3772893e479b892098044463f6..0000000000000000000000000000000000000000 --- a/funcom_test/8490226.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public E argMax() { - double maxCount = Double.NEGATIVE_INFINITY; - E maxKey = null; - for (Map.Entry<E, Double> entry : entries.entrySet()) { - if (entry.getValue() > maxCount || maxKey == null) { - maxKey = entry.getKey(); - maxCount = entry.getValue(); - } - } - return maxKey; - } - COM: <s> finds the key with maximum count </s> - diff --git a/funcom_test/8506000.txt b/funcom_test/8506000.txt deleted file mode 100644 index 3ff677e34db08b4b3e92218f9e1de947d10c8b14..0000000000000000000000000000000000000000 --- a/funcom_test/8506000.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void appendToPrefix(String str) { - if (prefix == null) { - prefix = str; - currentOptions = getOptions(prefix); - } else { - prefix += str; - if (currentOptions == null) { - currentOptions = getOptions(prefix); - } else { - currentOptions = getCurrentOptions(prefix, currentOptions); - } - } - } - COM: <s> appends str to the prefix </s> - diff --git a/funcom_test/8573606.txt b/funcom_test/8573606.txt deleted file mode 100644 index a20e2eeb7c2a20f3e959eb84eb114cba86251386..0000000000000000000000000000000000000000 --- a/funcom_test/8573606.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private JPanel getTitle() { - if (title==null){ - JLabel titleName = new JLabel(" Bingo"); - titleName.setFont(new Font("Arial", Font.BOLD, 24)); - titleName.setForeground(Color.BLUE); - titleName.setAlignmentX(JLabel.CENTER_ALIGNMENT); - - title = new JPanel(); - title.setOpaque(false); - title.setLayout(new BorderLayout()); - title.add(titleName, BorderLayout.CENTER); - } - return title; - } - COM: <s> cree le titre </s> - diff --git a/funcom_test/8602575.txt b/funcom_test/8602575.txt deleted file mode 100644 index 6fbee5a9fb69c7675ca207c7c561a5649de0586f..0000000000000000000000000000000000000000 --- a/funcom_test/8602575.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void assignRulers() { - int playerNum = getPlayerList().size(); - int index = 0; - ArrayList<Territory> territories = allTerritories(); - - Collections.shuffle(territories); - - while (!territories.isEmpty()) { - if (index >= playerNum) { - index = 0; - } - Territory temp = territories.get(0); - territories.remove(temp); - temp.setRuler(getPlayerList().get(index)); - temp.addTroop(1); - getPlayerList().get(index).removeBonus(1); - index++; - } - this.setPhase(GamePhase.PLACING); - this.setChanged(); - this.notifyObservers(); - } - COM: <s> this method automatically and randomly assigns rulers to territories at </s> - diff --git a/funcom_test/8602585.txt b/funcom_test/8602585.txt deleted file mode 100644 index 3763e5fbbee28f0a7ed8dbc8c3a34238e5929314..0000000000000000000000000000000000000000 --- a/funcom_test/8602585.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public int getNumArmies() { - ArrayList<Territory> Territories = new ArrayList<Territory>(); - int numArmies = 0; - for (Continent tempContinent : map.listContinents()) { - for (Territory tempTerritory : tempContinent.listTerritory()) { - if (tempTerritory.getRuler().getName() == profile.getName()) { - Territories.add(tempTerritory); - } - } - } - for (Territory temp : Territories) { - numArmies += temp.getTroopNumber(); - } - return numArmies + this.bonusArmiesReceived; - } - COM: <s> returns the number of armies a player currently has </s> - diff --git a/funcom_test/8602717.txt b/funcom_test/8602717.txt deleted file mode 100644 index 83f7e4351fd90890403c8895eb7358ce85ab8725..0000000000000000000000000000000000000000 --- a/funcom_test/8602717.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void run() { - while(true) { - System.out.println("Waiting for a chatter... "); - try { - clientSock = serverSock.accept(); - System.out.println(clientSock); - } catch (IOException e) { - e.printStackTrace(); } - - ChatServerHandler handler = new ChatServerHandler( clientSock, this ); - chatterList.addChatter( handler ); - new Thread( handler ).start(); - } - } - COM: <s> this is where the chat server waits for the connections </s> - diff --git a/funcom_test/8602719.txt b/funcom_test/8602719.txt deleted file mode 100644 index 808aa1289ac001b87b5cabfded9bb3477cacdaf4..0000000000000000000000000000000000000000 --- a/funcom_test/8602719.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: private void connect() { - try { - System.out.println("Waiting..."); - clientSock = serverSock.accept(); - System.out.println(clientSock); - } catch (IOException e) { - e.printStackTrace(); - } - - RiskServerHandler handler = new RiskServerHandler(clientSock, this); - gamersConnected.addPlayer(handler); - Thread toAdd = new Thread(handler); - toAdd.start(); - System.out.println("new RiskServerHandler started: #" - + gamersConnected.getSize()); - } - COM: <s> is the main logic that handles connections from clients and </s> - diff --git a/funcom_test/8602741.txt b/funcom_test/8602741.txt deleted file mode 100644 index 8fc059644891e577dc758b0cb4775d9a2d29636f..0000000000000000000000000000000000000000 --- a/funcom_test/8602741.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void update(Observable o, Object arg) { - if(arg instanceof String){ - System.out.println("AI update "+ arg); - if(((String) arg).compareTo("NewMap") == 0){ - this.updateWithNewMap(((Player)o).getMap()); - } - else if (((String) arg).compareTo("EndTurn") == 0){ - this.endMyTurn((Player)o); - } - } - } - COM: <s> called when the player it is observing has </s> - diff --git a/funcom_test/8737136.txt b/funcom_test/8737136.txt deleted file mode 100644 index cd7ce7b54696bd3180522fc15671866b93c834c8..0000000000000000000000000000000000000000 --- a/funcom_test/8737136.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getFilePath() { - String s = System.getProperty("user.dir"); - int i = s.lastIndexOf("\\"); - String filePath = s.substring (0,i); - filePath += "\\com.secdec.ark.net.alpacka.test\\src\\com\\secdec\\ark\\net\\alpacka\\test\\" ; - - return filePath; - } - COM: <s> helper method for getting to the correct path for the test files </s> - diff --git a/funcom_test/8752972.txt b/funcom_test/8752972.txt deleted file mode 100644 index 66dcd2425e4ef9cc82d8ec527ed1e88908d37181..0000000000000000000000000000000000000000 --- a/funcom_test/8752972.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void MessageChains() { - // Chained methods containing the same object - String mm = "FOO".toLowerCase().substring(1).replace('o', 'm'); - - // Chained methods containing different objects - boolean no = new BigInteger("1234567890"). - divideAndRemainder(new BigInteger("123"))[1].toString().equals(mm); - - // Chained instance variables - String foo = new BadClass().brc.bc.bc.s; - } - COM: <s> a message chain is a statement that contains a sequence of method </s> - diff --git a/funcom_test/8798058.txt b/funcom_test/8798058.txt deleted file mode 100644 index 7986cbf18662ca748b1adf90166f340c376108e1..0000000000000000000000000000000000000000 --- a/funcom_test/8798058.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JTabbedPane getJTabbedPane() { - if (jTabbedPane == null) { - jTabbedPane = new JTabbedPane(); - jTabbedPane.addTab("Peers", null, getJScrollPane1(), null); - jTabbedPane.addTab("Output", null, getJScrollPane(), null); - } - return jTabbedPane; - } - COM: <s> this method initializes j tabbed pane </s> - diff --git a/funcom_test/8798189.txt b/funcom_test/8798189.txt deleted file mode 100644 index 18cbf7c849e299587c0b4065cb73b26b25a5d8bd..0000000000000000000000000000000000000000 --- a/funcom_test/8798189.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private long compareTime(long currTime, long trackerTime) { - // right now we are comparing in seconds, divide by 60 if you want to - // compare in minutes - long timeDiff = (Math.abs((currTime - trackerTime) / 1000)); - System.out.println("KeepAliveServiceThread::compareTime():timeDiff: " - + Long.toString(timeDiff)); - return timeDiff; - }// compareTime - COM: <s> compare the current time with each trackers time </s> - diff --git a/funcom_test/8798209.txt b/funcom_test/8798209.txt deleted file mode 100644 index bb0f96546e46c3b8478a5391f91bb215c1c6e7c7..0000000000000000000000000000000000000000 --- a/funcom_test/8798209.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private JPanel getJContentPane() { - if (jContentPane == null) { - jContentPane = new JPanel(); - jContentPane.setLayout(null); - jContentPane.add(getJButton(), null); - jContentPane.add(getJTextField(), null); - jContentPane.add(getJList(), null); - jContentPane.add(getJList1(), null); - jContentPane.add(getJButton1(), null); - } - return jContentPane; - } - COM: <s> this method initializes j content pane </s> - diff --git a/funcom_test/8798257.txt b/funcom_test/8798257.txt deleted file mode 100644 index a003dd6d83f1d4c4a5f5955fb630bed1dc55804d..0000000000000000000000000000000000000000 --- a/funcom_test/8798257.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void loadImage(){ - - try { - File file = new File("res/BG.png"); - backImage = ImageIO.read(new URL(file.toURI().toURL().toString())); - } catch(IOException e) { - e.printStackTrace(); - } - - } - COM: <s> load the image </s> - diff --git a/funcom_test/8798278.txt b/funcom_test/8798278.txt deleted file mode 100644 index 403cf7881895d0dbf80345a4b945cf714e84fcae..0000000000000000000000000000000000000000 --- a/funcom_test/8798278.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void loadImage(){ - try { - File file = new File("res/minibg.png"); - backImage = ImageIO.read(new URL(file.toURI().toURL().toString())); - } catch(IOException e) { - e.printStackTrace(); - } - } - COM: <s> load the background image </s> - diff --git a/funcom_test/8798770.txt b/funcom_test/8798770.txt deleted file mode 100644 index 094e1bc65ba1ffc920b4cdfe4cdfb4c5328cc9ee..0000000000000000000000000000000000000000 --- a/funcom_test/8798770.txt +++ /dev/null @@ -1,22 +0,0 @@ -TDAT: static public String replaceString(String text, String repl, String with, int max) { - if(text == null) { - return null; - } - - StringBuffer buffer = new StringBuffer(text.length()); - int start = 0; - int end = 0; - while( (end = text.indexOf(repl, start)) != -1 ) { - buffer.append(text.substring(start, end)).append(with); - start = end + repl.length(); - - if(--max == 0) { - break; - } - } - buffer.append(text.substring(start)); - - return buffer.toString(); - } - COM: <s> replace a string with another string inside a larger string for </s> - diff --git a/funcom_test/8820730.txt b/funcom_test/8820730.txt deleted file mode 100644 index 240c29bb1de62dc7dadc73d058a2ce57feb1c372..0000000000000000000000000000000000000000 --- a/funcom_test/8820730.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: protected void setupOffScreen(int x, int y, int width, int height, Rectangle2D newOffscreenBuffer) { - offgraphics = offscreen.getGraphics(); - offgraphics.setColor(getBackground()); - offgraphics.setPaintMode(); - offgraphics.fillRect(0, 0, width, height); - ((BasicGraphUI)getUI()).drawGraph(offgraphics, null); - offscreenBounds = newOffscreenBuffer; - offscreenOffset = new Point2D.Double(x, y); - // Clear the offscreen, we've just drawn the whole thing - clearOffscreenDirty(); - } - COM: <s> utility method that initialises the offscreen graphics area </s> - diff --git a/funcom_test/8821085.txt b/funcom_test/8821085.txt deleted file mode 100644 index 630d9054b839f47e43cab631bb6ab75f286fde98..0000000000000000000000000000000000000000 --- a/funcom_test/8821085.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setGraphLayoutCache(GraphLayoutCache newLayoutCache) { - GraphLayoutCache oldLayoutCache = graphLayoutCache; - graphLayoutCache = newLayoutCache; - clearOffscreen(); - firePropertyChange(GRAPH_LAYOUT_CACHE_PROPERTY, oldLayoutCache, - graphLayoutCache); - if (graphLayoutCache != null - && graphLayoutCache.getModel() != getModel()) - setModel(graphLayoutCache.getModel()); - invalidate(); - } - COM: <s> sets the code graph layout cache code that will provide the view data </s> - diff --git a/funcom_test/8821603.txt b/funcom_test/8821603.txt deleted file mode 100644 index 9bed3023733f4b31ade7530d499d50ee613da94b..0000000000000000000000000000000000000000 --- a/funcom_test/8821603.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void setSCInstance(final SCInstance scInstance) { - this.parentSCInstance = scInstance; - _threadFactory = (ThreadFactory) this.parentSCInstance.getRootContext().get("threadFactory"); - _stateMachine = (SCXMLStateMachine) this.parentSCInstance.getRootContext().get("superContext"); - - } - COM: <s> set the context of the parent state machine which provides the channel </s> - diff --git a/funcom_test/8845373.txt b/funcom_test/8845373.txt deleted file mode 100644 index 2a709cd96b97dbee0da5e50d7bb3f93d91a57922..0000000000000000000000000000000000000000 --- a/funcom_test/8845373.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public JTextPane getHistoryText() { - if (mHistoryText == null) { - mHistoryText = new JTextPane(); - mHistoryText.setEditable(false); - mHistoryText.setBackground(Color.LIGHT_GRAY); - mHistoryText.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 12)); - Log.addLogListener(new LogListener() { - public void messageLoggedEvent(String msg) { - mHistoryText.setText(mHistoryText.getText() + "\n" + msg); - } - }); - } - return mHistoryText; - } - COM: <s> returns the history jtext pane </s> - diff --git a/funcom_test/8845396.txt b/funcom_test/8845396.txt deleted file mode 100644 index 34de5c25d4ef30c397c1fffdc7cf10c5ac17691c..0000000000000000000000000000000000000000 --- a/funcom_test/8845396.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void loadScriptFromFile(File f) { - if (f == null) - return; - - try { - loadScriptFromFileUnsafe(f); - mCurrentScriptModified = false; - } catch (FileNotFoundException e) { - Log.severe("File not found, or file is a folder"); - } catch (IOException e) { - Log.severe("I/O error"); - } catch (SecurityException e) { - Log.severe("Security manager prevents to read the file"); - } - - } - COM: <s> loads a script from the given file </s> - diff --git a/funcom_test/8845422.txt b/funcom_test/8845422.txt deleted file mode 100644 index 86435d39503928bd330d5d9b42889634b01d1b4e..0000000000000000000000000000000000000000 --- a/funcom_test/8845422.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String evalCommand(String cmdName, String[] words) { - if (ScriptCommands.isBuiltinCommand(cmdName)) - return ScriptCommands.evalBuiltinCommand(cmdName, words, mDepth); - - if (getFunctionsStore().contains(cmdName)) { - ScriptFunction func = (ScriptFunction) getFunctionsStore() - .getVariable(cmdName, mDepth); - return func.evalFunction(words, mDepth); - } - return "Unknown command " + cmdName; - } - COM: <s> evaluate the command by looking for a matching function name either in </s> - diff --git a/funcom_test/8845457.txt b/funcom_test/8845457.txt deleted file mode 100644 index 521f73ebdc2e23b8788cac8e27d8e7d7d5349b5e..0000000000000000000000000000000000000000 --- a/funcom_test/8845457.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String extractMacroBlock(String input, int start, int end) { - String head, string, tail, key; - - head = input.substring(0, start); - string = input.substring(start + 1, end); - key = PREFIX_MACRO + mDepth + "_" + getMacroBlocksStore().size(); - getMacroBlocksStore().put(new ScriptVariable(key, string, mDepth)); - tail = lookupMacroBlocks(input.substring(end + 1)); - - return head + "$" + key + tail; - } - COM: <s> extracts a string between start and end index and store it into the </s> - diff --git a/funcom_test/8848428.txt b/funcom_test/8848428.txt deleted file mode 100644 index 5d7393dd1fb719521262e7f234c3df675ef8f1cb..0000000000000000000000000000000000000000 --- a/funcom_test/8848428.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public MyTagMap() throws IOException { - super(new FileInputStream("mytagmap.xml")); - XmlPeer peer = new XmlPeer(ElementTags.CHUNK, "SPEAKER"); -// peer.addValue(Markup.CSS_KEY_FONTSIZE, "10"); -// peer.addValue(Markup.CSS_KEY_FONTWEIGHT, Markup.CSS_VALUE_BOLD); -// peer.addValue(ElementTags.GENERICTAG, ""); - put(peer.getAlias(), peer); - } - COM: <s> constructs a tag map based on an xml file </s> - diff --git a/funcom_test/8849491.txt b/funcom_test/8849491.txt deleted file mode 100644 index 4a6d9fb183d6625e6e7ee2f8cb1eebd151d28c76..0000000000000000000000000000000000000000 --- a/funcom_test/8849491.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private boolean isRemitExists(AimsAllianc aimsAllianc){ - boolean remitExists = StringUtils.isEmpty(aimsAllianc.getRemitTo()) - || StringUtils.isEmpty(aimsAllianc.getRemitAddress1()) - || StringUtils.isEmpty(aimsAllianc.getRemitCountry()) - || StringUtils.isEmpty(aimsAllianc.getRemitState()) - || StringUtils.isEmpty(aimsAllianc.getRemitCity()) - || StringUtils.isEmpty(aimsAllianc.getRemitPostalCode()); - - return remitExists; - } - COM: <s> updated for issue 7847 </s> - diff --git a/funcom_test/8850490.txt b/funcom_test/8850490.txt deleted file mode 100644 index 2a59f5fe8a4cee7d6ff8d3570dcb952dab813fa1..0000000000000000000000000000000000000000 --- a/funcom_test/8850490.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected boolean isValidImageWidthHeight(InputStream in, int width, int height){ - ImageInfo ii = new ImageInfo(); - ii.setInput(in); // in can be InputStream or RandomAccessFile - if (ii.check() == true && (ii.getWidth() <= width && ii.getHeight() <= height)) { - return true; - } - else { - return false; - } - } - COM: <s> get file format image resolution and physical resolution from </s> - diff --git a/funcom_test/8867639.txt b/funcom_test/8867639.txt deleted file mode 100644 index 6092207e66dc05ea0e0de6234a076cc3894f27ca..0000000000000000000000000000000000000000 --- a/funcom_test/8867639.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: protected String buildSpatialQueryString(String fullTextQuery, Float latitude, Float longitude, Float radius) { - String queryString = "{!spatial circles=" + latitude.toString() + "," + longitude.toString() - + "," + radius.toString() + "}" + fullTextQuery; - return queryString; - } - COM: <s> build the query string for a spatial query using spatial solr plugin syntax </s> - diff --git a/funcom_test/8868216.txt b/funcom_test/8868216.txt deleted file mode 100644 index 2bd4e8c92a7ca82aa23143d4e36413dd8384bf8c..0000000000000000000000000000000000000000 --- a/funcom_test/8868216.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void testPaging(){ - - Store.pageOverAll(Versions.RAW(), new OccurrenceConsumer(){ - int counter = 0; - - public boolean consume(FullRecord fullrecord) { - //System.out.println("GUID: "+ fullrecord.getO().getUuid()); - counter++; - if(counter>10){ - return false; - } - return true; - } - },null, 10); - } - COM: <s> a junit test that test paging functionality </s> - diff --git a/funcom_test/8868463.txt b/funcom_test/8868463.txt deleted file mode 100644 index bc55f1f2042dbaeec21d1fd1dc851d5765bd14a2..0000000000000000000000000000000000000000 --- a/funcom_test/8868463.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected SolrServer initialiseSolrServer() { - if (this.solrServer == null & this.solrUrl != null) { - // Solr running in seperate webapp/war - try { - this.solrServer = new CommonsHttpSolrServer( this.solrUrl ); - } catch (MalformedURLException e) { - e.printStackTrace(); - } - } - - return solrServer; - } - COM: <s> re use the solr server object </s> - diff --git a/funcom_test/8868661.txt b/funcom_test/8868661.txt deleted file mode 100644 index 6f95c14a86a2a30eb86fd64683e9866203f863bc..0000000000000000000000000000000000000000 --- a/funcom_test/8868661.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void writeTenMilliCell(int cellId, int tenMilliCellId, int count, Boolean leftOfDateLine) throws IOException{ - LatLongBoundingBox llbb = tenMilliToBoundingBox(cellId, tenMilliCellId); - writeOutLatLongBoundingBox(llbb, count, leftOfDateLine); - } - COM: <s> output a tenmilli cell density </s> - diff --git a/funcom_test/8868745.txt b/funcom_test/8868745.txt deleted file mode 100644 index 9c4ca26867f82828ab203faac398d598503652c1..0000000000000000000000000000000000000000 --- a/funcom_test/8868745.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public ModelAndView list(HttpServletRequest request, HttpServletResponse response) throws Exception{ - ModelAndView mav = new ModelAndView("webservices.list"); - - List<WebService> raps = null; - String iso = request.getParameter("iso"); - if(StringUtils.isEmpty(iso)){ - raps = webServiceDAO.getAll(); - } else { - raps = webServiceDAO.getForIsoCountryCode(iso); - } - - List<String> isoCodes = webServiceDAO.getAllHostIsoCodes(); - mav.addObject("isoCodes",isoCodes); - mav.addObject("resourceAccessPoints",raps); - return mav; - } - COM: <s> list the webservices </s> - diff --git a/funcom_test/8868795.txt b/funcom_test/8868795.txt deleted file mode 100644 index 1807e82857ae77d19500bcb5ad5e463f5b2f3527..0000000000000000000000000000000000000000 --- a/funcom_test/8868795.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ModelAndView retrieveProviderMessage(String occurrenceRecordKey, Map<String, String>properties, HttpServletRequest request, HttpServletResponse response) { - try { - String rawMessage = dataProviderServices.getOccurrence(occurrenceRecordKey); - formatAndOutputMessage(request, response, rawMessage); - } catch (Exception e) { - logger.debug(e.getMessage(), e); - } - return null; - } - COM: <s> retrieve and render the original provider message </s> - diff --git a/funcom_test/8868860.txt b/funcom_test/8868860.txt deleted file mode 100644 index f61db608f65d045c26436e5e6ec4d1ec2554bde9..0000000000000000000000000000000000000000 --- a/funcom_test/8868860.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private String addXmlOutputHeaders(String rawMessage, HttpServletRequest request, HttpServletResponse response) throws IOException { - response.setContentType("text/xml"); - StringBuffer sb = new StringBuffer(); - sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); - sb.append("<?xml-stylesheet type=\"text/xsl\" href=\""); - sb.append(request.getContextPath()); - sb.append("/"); - sb.append(rawXmlStylesheet); - sb.append("\"?>"); - sb.append(rawMessage); - return sb.toString(); - } - COM: <s> add xml headers to raw xml message output </s> - diff --git a/funcom_test/8869115.txt b/funcom_test/8869115.txt deleted file mode 100644 index 7830ac416a5ad7f8fc2a3cd84112d99b026661f9..0000000000000000000000000000000000000000 --- a/funcom_test/8869115.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void harvest(Map<String, String> params) throws Exception { - Map<String, Object> paramsCopy = new HashMap<String, Object>(); - paramsCopy.putAll(params); - harvest(params.get("name"), params.get("url"), params.get("uddiKey"), Constants.BASE_DIR.concat(File.separator).concat(params.get("directory")), paramsCopy); - } - COM: <s> the entry point required for the user interface integration </s> - diff --git a/funcom_test/8869699.txt b/funcom_test/8869699.txt deleted file mode 100644 index cd182aab491cb5dd12e68c37b9ec53ce67941be6..0000000000000000000000000000000000000000 --- a/funcom_test/8869699.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public void printStatistics(){ - System.out.println("direct: " + directMatch + " alternate: " + alternateNameMatch + " searchable: " + searchCanMatch + " clean: " + cleanNameMatch + " nomatch: " + noMatch + " homonyms: " + homonymMatch + " addNub: " + addToNub + " alreadyAddedToNub: " + alreadyAddedToNub); - } - COM: <s> prints the statistics for this instance </s> - diff --git a/funcom_test/8869848.txt b/funcom_test/8869848.txt deleted file mode 100644 index 05722bcd539343179f673c24912390a0e94b69ed..0000000000000000000000000000000000000000 --- a/funcom_test/8869848.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void createNub(Map<String, String> params){ - long dataResourceId = getDataResourceId(params); - if(dataResourceId > 0){ - int taxPriority= getDataResourceDao().getById(dataResourceId).getTaxonomicPriority(); - - //now create the nub - createNub(dataResourceId, taxPriority); - } - else - log.warn("Unable to create nub. No data resource id could be found."); - } - COM: <s> this method is used by the webapp to create the nub </s> - diff --git a/funcom_test/8869862.txt b/funcom_test/8869862.txt deleted file mode 100644 index f36f7279229ea7c4b731e9c36e45680118124869..0000000000000000000000000000000000000000 --- a/funcom_test/8869862.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public void denormaliseTaxonomy(long dataResourceId){ - long time = System.currentTimeMillis(); - log.info("Denormalising the taxonomy for resource " + dataResourceId); - taxonomyUtils.denormalisedTaxonomyForResource(dataResourceId); - log.info("Finished denormalising taxonomy for resource[" + dataResourceId + "] in " + ((1 + System.currentTimeMillis()-time)/1000) + " secs"); - } - COM: <s> denormalises the taxonomy for the specified data resource </s> - diff --git a/funcom_test/8870514.txt b/funcom_test/8870514.txt deleted file mode 100644 index 1e46491e031386f5b5d6cee0aa8273f3d4b95a7c..0000000000000000000000000000000000000000 --- a/funcom_test/8870514.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private Document getYahooRequest(String name, String postcode, String country) throws Exception { - HttpClient httpClient = new HttpClient(); - - String url = yahooWebServiceBaseUrl+"places.q(%27"+ - URLEncoder.encode(name,"UTF-8")+"+"+postcode+"+"+country - +"%27)?appid="+yahooApiKey+"&format=xml"; - - System.out.println(url); - GetMethod getMethod = new GetMethod(url); - httpClient.executeMethod(getMethod); - - int statusCode = getMethod.getStatusCode(); - String responseBody = getMethod.getResponseBodyAsString(); - System.out.println(responseBody); - if(statusCode!=200) - return null; - return DocumentHelper.parseText(responseBody); - } - COM: <s> make request and parse response </s> - diff --git a/funcom_test/8870538.txt b/funcom_test/8870538.txt deleted file mode 100644 index 69a38fd3ec3a509f2c5b821d41d4273063ec1e66..0000000000000000000000000000000000000000 --- a/funcom_test/8870538.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean isMarine(float latitude, float longitude){ - List<SimpleFeature> sfs = marineTree.query(new Envelope(longitude,longitude,latitude, latitude)); - Coordinate coord = new Coordinate(longitude, latitude); - Point point = new Point(coord, new PrecisionModel(), 4326); - for(SimpleFeature sf: sfs){ - Geometry geometry = (Geometry) sf.getDefaultGeometry(); - if(geometry.contains(point)){ - return true; - } - } - return false; - } - COM: <s> is this point in marine areas </s> - diff --git a/funcom_test/8870587.txt b/funcom_test/8870587.txt deleted file mode 100644 index 67cbc8e34cb5a7f362f99f89f9f975fc692ce294..0000000000000000000000000000000000000000 --- a/funcom_test/8870587.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void init() throws Exception { - String[] locations = { - "classpath*:org/gbif/portal/**/applicationContext-*.xml", - "classpath*:org/ala/**/applicationContext-*.xml" - }; - context = new ClassPathXmlApplicationContext(locations); - dataSource = (DataSource) context.getBean("dataSource"); - dTemplate = new JdbcTemplate(dataSource); - outputStream = new FileOutputStream(outputFileLocation); - } - COM: <s> initialise database connections </s> - diff --git a/funcom_test/8870751.txt b/funcom_test/8870751.txt deleted file mode 100644 index 92ebc4518afb1d76d5407829fee2d25c7cc85d53..0000000000000000000000000000000000000000 --- a/funcom_test/8870751.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void testLongYearNoDay() { - buildOccurrenceRecordDates("2000", "2", null); - assertEquals(new Integer(2000), or.getYear()); - assertEquals(new Integer(2), or.getMonth()); - buildOccurrenceRecordDates("1969", "2", null); - assertEquals(new Integer(1969), or.getYear()); - assertEquals(new Integer(2), or.getMonth()); - } - COM: <s> test for org </s> - diff --git a/funcom_test/8871682.txt b/funcom_test/8871682.txt deleted file mode 100644 index 05d92afc355becc51dab16e1b15729249273a5e8..0000000000000000000000000000000000000000 --- a/funcom_test/8871682.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getUIDSearchString(String[] uids){ - StringBuilder sb = new StringBuilder(); - for(String uid : uids){ - if(sb.length()>0) - sb.append(" OR "); - sb.append(getUidSearchField(uid)); - sb.append(":"); - sb.append(uid); - } - return sb.toString(); - } - COM: <s> returns a search string based on searching for the supplied uids </s> - diff --git a/funcom_test/8872191.txt b/funcom_test/8872191.txt deleted file mode 100644 index a4541a9af38c69ee894917fcc4cf41eeec191ae7..0000000000000000000000000000000000000000 --- a/funcom_test/8872191.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private String getSource(String id){ - try{ - switch(Integer.parseInt(id)){ - case 1001: - return "AFD"; - case 1002: - return "APC"; - case 1003: - return "APNI"; - case 1004: - return "CoL"; - default: - return nullString; - } - } - catch(NumberFormatException e){ - return nullString; - } - } - COM: <s> converts the checklist id into a </s> - diff --git a/funcom_test/8872213.txt b/funcom_test/8872213.txt deleted file mode 100644 index 213c75d7ef3cbf89fe12c3e9ba389d93278c9523..0000000000000000000000000000000000000000 --- a/funcom_test/8872213.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private String getRank(Integer id) { - Integer rank = rankMappings.get(id); - if(rank != null) - return Integer.toString(rankMappings.get(id)); - log.warn("A mapping for rank [" + id + "] does not exist."); - return nullString; - //return dTemplate.queryForInt(rankSQL, new Object[]{id}); - } - COM: <s> retrieve a string value for a rank </s> - diff --git a/funcom_test/8872431.txt b/funcom_test/8872431.txt deleted file mode 100644 index ef13bec6ccd5b1cf901fe984d6834475de899f6d..0000000000000000000000000000000000000000 --- a/funcom_test/8872431.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public NameSearchResult searchForRecord(String name, LinnaeanRankClassification cl, RankType rank, boolean fuzzy)throws SearchResultException{ - //search for more than 1 term in case homonym resolution takes place at a lower level?? - List<NameSearchResult> results = searchForRecords(name, rank, cl, 10, fuzzy); - if(results != null && results.size()>0) - return results.get(0); - - return null; - } - COM: <s> searches for a record based on the supplied name rank and classification </s> - diff --git a/funcom_test/8872505.txt b/funcom_test/8872505.txt deleted file mode 100644 index bf1dc20434488ccf52940100456f22493f9eaa86..0000000000000000000000000000000000000000 --- a/funcom_test/8872505.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: private void checkForSynonym(String name, RankType rank, String kingdom, String genus, int max) throws SearchResultException{ - //search on name field with name and empty kingdom and genus - //search on the alternative names field with name and empty kingdom and genus - //if we get a match that is a synonym verify match against IRMNG - } - COM: <s> checks to see if the supplied name is a synonym </s> - diff --git a/funcom_test/8872758.txt b/funcom_test/8872758.txt deleted file mode 100644 index 07b85dd75901eefd72d1531088716ad023db143b..0000000000000000000000000000000000000000 --- a/funcom_test/8872758.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: private boolean doSciNamesMatch(String n1, String n2){ - ParsedName<?> pn1 = parser.parse(n1); - ParsedName<?> pn2 = parser.parse(n2); - if(pn1 != null && pn2!= null) - return pn1.buildCanonicalName().equals(pn2.buildCanonicalName()); - return false; - } - COM: <s> returns true when the parsed names match </s> - diff --git a/funcom_test/8872806.txt b/funcom_test/8872806.txt deleted file mode 100644 index 919a3f9cac1e9b826e60ed93bac84acde6c99191..0000000000000000000000000000000000000000 --- a/funcom_test/8872806.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public String getPrimaryLsid(String lsid){ - - TermQuery tq = new TermQuery(new Term("lsid", lsid)); - try{ - org.apache.lucene.search.TopDocs results = idSearcher.search(tq, 1); - if(results.totalHits>0) - return idSearcher.doc(results.scoreDocs[0].doc).get("reallsid"); - }catch(IOException e){} - - return lsid; - } - COM: <s> returns the primary lsid for the supplied lsid </s> - diff --git a/funcom_test/8873294.txt b/funcom_test/8873294.txt deleted file mode 100644 index 1af93105a7c09688a668656fce5ce0f4bd5564c9..0000000000000000000000000000000000000000 --- a/funcom_test/8873294.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("DesktopApp".equals(portName)) { - setDesktopAppEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/8904739.txt b/funcom_test/8904739.txt deleted file mode 100644 index 990af6e7cccad576fc9aaaec25c93b2141f53ee1..0000000000000000000000000000000000000000 --- a/funcom_test/8904739.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: protected JsonRepresentation ecapsulateExceptionJson(ServiceException ex) { - return createJSonError(ex.getLocalizedMessage(), null, (ex.getHttpStatus() != null? ex.getHttpStatus().getName():Status.CLIENT_ERROR_BAD_REQUEST.getName()) ); - } - COM: <s> todo add correct date remove magic </s> - diff --git a/funcom_test/8937075.txt b/funcom_test/8937075.txt deleted file mode 100644 index 90d4314686e97f1580bda04b2c2fc4a276f5cf51..0000000000000000000000000000000000000000 --- a/funcom_test/8937075.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int read() throws IOException { - int c; - - if (bufLength >= 0) { - c = buf[bufLength--]; - } else { - c = wrappedRead(); - - if (c == -1) return RubyYaccLexer.EOF; - } - - advance(c); - - if (c == '\n') line++; - - return c; - } - COM: <s> read next character from this source </s> - diff --git a/funcom_test/8937214.txt b/funcom_test/8937214.txt deleted file mode 100644 index 4e720fe25f48871ece65de12bc62d7150524b846..0000000000000000000000000000000000000000 --- a/funcom_test/8937214.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void integrate(ASTInspector other) { - hasBlockArg |= other.hasBlockArg; - hasClass |= other.hasClass; - hasClosure |= other.hasClosure; - hasDef |= other.hasDef; - hasFrameAwareMethods |= other.hasFrameAwareMethods; - hasOptArgs |= other.hasOptArgs; - hasRestArg |= other.hasRestArg; - hasScopeAwareMethods |= other.hasScopeAwareMethods; - } - COM: <s> integrate the results of a separate inspection into the state of this </s> - diff --git a/funcom_test/8938054.txt b/funcom_test/8938054.txt deleted file mode 100644 index 2624c28d19dc85aa0320724b66978e52fd62259b..0000000000000000000000000000000000000000 --- a/funcom_test/8938054.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public IncludedModuleWrapper newIncludeClass(RubyClass superClazz) { - IncludedModuleWrapper includedModule = new IncludedModuleWrapper(getRuntime(), superClazz, this); - - // include its parent (and in turn that module's parents) - if (getSuperClass() != null) { - includedModule.includeModule(getSuperClass()); - } - - return includedModule; - } - COM: <s> create a wrapper to use for including the specified module into this one </s> - diff --git a/funcom_test/8938256.txt b/funcom_test/8938256.txt deleted file mode 100644 index 5d81190d81a9ae49e83dd2b13b31ee59fc345958..0000000000000000000000000000000000000000 --- a/funcom_test/8938256.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setMethodVisibility(IRubyObject[] methods, Visibility visibility) { - if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { - throw getRuntime().newSecurityError("Insecure: can't change method visibility"); - } - - for (int i = 0; i < methods.length; i++) { - exportMethod(methods[i].asJavaString(), visibility); - } - } - COM: <s> set method visibility </s> - diff --git a/funcom_test/8938775.txt b/funcom_test/8938775.txt deleted file mode 100644 index 82a0712fc0f878d53eebb5a87ebf0f88328f36b1..0000000000000000000000000000000000000000 --- a/funcom_test/8938775.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int read(ByteBuffer dst) throws IOException { - if (!isOpen) { - throw new IOException("Not open"); - } - int n = libc.read(fd, dst, dst.remaining()); - if (n > 0) { - dst.position(dst.position() + n); - } - return n; - } - COM: <s> reads data from the native unix file descriptor </s> - diff --git a/funcom_test/8938776.txt b/funcom_test/8938776.txt deleted file mode 100644 index 47ecf11dcd70d22c49bb33db64626dd60a91880e..0000000000000000000000000000000000000000 --- a/funcom_test/8938776.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public int write(ByteBuffer src) throws IOException { - if (!isOpen) { - throw new IOException("Not open"); - } - int n = libc.write(fd, src, src.remaining()); - if (n > 0) { - src.position(src.position() + n); - } - return n; - } - COM: <s> writes data to the native unix file descriptor </s> - diff --git a/funcom_test/8939355.txt b/funcom_test/8939355.txt deleted file mode 100644 index 1bb247ec08cb4537624ffbedee5a73895b097a8c..0000000000000000000000000000000000000000 --- a/funcom_test/8939355.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public RubyModule getOrCreateModule(String name) { - IRubyObject module = objectClass.getConstantAt(name); - if (module == null) { - module = defineModule(name); - } else if (getSafeLevel() >= 4) { - throw newSecurityError("Extending module prohibited."); - } else if (!module.isModule()) { - throw newTypeError(name + " is not a Module"); - } - - return (RubyModule) module; - } - COM: <s> from object retrieve the named module </s> - diff --git a/funcom_test/8939419.txt b/funcom_test/8939419.txt deleted file mode 100644 index ddf1cd7741fba56169c40553dc49fe2f49b64bf0..0000000000000000000000000000000000000000 --- a/funcom_test/8939419.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: private void initErrno() { - if (profile.allowModule("Errno")) { - errnoModule = defineModule("Errno"); - - Field[] fields = IErrno.class.getFields(); - - for (int i = 0; i < fields.length; i++) { - try { - createSysErr(fields[i].getInt(IErrno.class), fields[i] - .getName()); - } catch (IllegalAccessException e) { - throw new RuntimeException( - "Someone defined a non-public constant in IErrno.java", - e); - } - } - } - } - COM: <s> create module errnos variables </s> - diff --git a/funcom_test/8939911.txt b/funcom_test/8939911.txt deleted file mode 100644 index 4a764fcc839fa216550eb45af57662564f605c6f..0000000000000000000000000000000000000000 --- a/funcom_test/8939911.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void close(boolean finalizing) throws IOException, BadDescriptorException { - try { - flushWrite(); - - descriptor.close(); - buffer = EMPTY_BUFFER; - - if (DEBUG) getLogger("ChannelStream").info("Descriptor for fileno " - + descriptor.getFileno() + " closed by stream"); - } finally { - if (!finalizing) getRuntime().removeInternalFinalizer(this); - } - } - COM: <s> internal close to safely work for finalizing </s> - diff --git a/funcom_test/8939914.txt b/funcom_test/8939914.txt deleted file mode 100644 index 892e438b5502f761437aaf8f7c1171648d4b908b..0000000000000000000000000000000000000000 --- a/funcom_test/8939914.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String toJavaModeString() { - // Do not open as 'rw' by default since a file with read-only permissions will fail on 'rw' - if (isWritable() || isCreate() || isTruncate()) { - // Java requires "w" for creating a file that does not exist - return "rw"; - } else { - return "r"; - } - } - COM: <s> produce a java io mode string from the flags in this object </s> - diff --git a/funcom_test/8939927.txt b/funcom_test/8939927.txt deleted file mode 100644 index 8a802cb4681f65b990834bd1066ae4d2fe398746..0000000000000000000000000000000000000000 --- a/funcom_test/8939927.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private void flushWrite() throws IOException, BadDescriptorException { - if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother - - int len = buffer.position(); - buffer.flip(); - int n = descriptor.write(buffer); - - if(n != len) { - // TODO: check the return value here - } - - buffer.clear(); - } - COM: <s> flush the write buffer to the channel if needed </s> - diff --git a/funcom_test/8939936.txt b/funcom_test/8939936.txt deleted file mode 100644 index c52802d2d44e8097b96754bf91aa30e838bf14ab..0000000000000000000000000000000000000000 --- a/funcom_test/8939936.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public ChannelDescriptor dup() { - synchronized (refCounter) { - refCounter.incrementAndGet(); - - int newFileno = RubyIO.getNewFileno(); - - if (DEBUG) getLogger("ChannelDescriptor").info("Reopen fileno " + newFileno + ", refs now: " + refCounter.get()); - - return new ChannelDescriptor(channel, newFileno, originalModes, fileDescriptor, refCounter, canBeSeekable); - } - } - COM: <s> mimics the posix dup 2 function returning a new descriptor that references </s> - diff --git a/funcom_test/8939938.txt b/funcom_test/8939938.txt deleted file mode 100644 index 20ad952b9b36c76f9d3c68525aeb6d61ae59062e..0000000000000000000000000000000000000000 --- a/funcom_test/8939938.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public ChannelDescriptor dup2(int fileno) { - synchronized (refCounter) { - refCounter.incrementAndGet(); - - if (DEBUG) getLogger("ChannelDescriptor").info("Reopen fileno " + fileno + ", refs now: " + refCounter.get()); - - return new ChannelDescriptor(channel, fileno, originalModes, fileDescriptor, refCounter, canBeSeekable); - } - } - COM: <s> mimics the posix dup2 2 function returning a new descriptor that references </s> - diff --git a/funcom_test/8939949.txt b/funcom_test/8939949.txt deleted file mode 100644 index dd9dc2e0e399bfe0474e516c19e20dff9db8bdb0..0000000000000000000000000000000000000000 --- a/funcom_test/8939949.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public int internalWrite(ByteBuffer buffer) throws IOException, BadDescriptorException { - checkOpen(); - - WritableByteChannel writeChannel = (WritableByteChannel)channel; - - if (isSeekable() && originalModes.isAppendable()) { - FileChannel fileChannel = (FileChannel)channel; - fileChannel.position(fileChannel.size()); - } - - return writeChannel.write(buffer); - } - COM: <s> write the bytes in the specified byte list to the associated channel </s> - diff --git a/funcom_test/8940179.txt b/funcom_test/8940179.txt deleted file mode 100644 index ededca6978a26eada3ebeea8b5f0ae1196ee8cd3..0000000000000000000000000000000000000000 --- a/funcom_test/8940179.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public int hashCode() { - long h = 0; - long c; - long n = length() - 1; - prepareNext(); - while ((c = nextChar()) != 0) { - h += c * pow(31, n); - n--; - } - return (int) (h & 0xffffffff); - } - COM: <s> returns a hashcode for this ustr </s> - diff --git a/funcom_test/8940188.txt b/funcom_test/8940188.txt deleted file mode 100644 index cb3d1555f9e46b6c727aaebf462e18ad2c8e1b21..0000000000000000000000000000000000000000 --- a/funcom_test/8940188.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public int indexOf(int ch, int start) { - int i = 0; - prepareNext(); - while (start-- > 0) { - nextChar(); - i++; - } - int c; - while ((c = nextChar()) != 0) { - if (c == ch) - return i; - i++; - } - if (ch == 0) - return i; - return -1; - } - COM: <s> returns the first index within this ustr of the specified </s> - diff --git a/funcom_test/8940235.txt b/funcom_test/8940235.txt deleted file mode 100644 index 5c0021da4dae84a994511e6c7bad9655ef0c4669..0000000000000000000000000000000000000000 --- a/funcom_test/8940235.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public boolean startsWith(Ustr us, int start) { - prepareNext(); - while (start-- > 0) - nextChar(); - - for (int i = 0; us.s[base + i] != 0; i++) - if (s[base + offset + i] != us.s[us.base + i]) - return false; - - return true; - } - COM: <s> tests if other ustr is prefix at given index </s> - diff --git a/funcom_test/8940403.txt b/funcom_test/8940403.txt deleted file mode 100644 index 859cc4d0a5225800e0ea0c75621e8f7713d31766..0000000000000000000000000000000000000000 --- a/funcom_test/8940403.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public String asJavaString() { - IRubyObject asString = checkStringType(); - if(!asString.isNil()) return ((RubyString)asString).asJavaString(); - throw getRuntime().newTypeError(inspect().toString() + " is not a symbol"); - } - COM: <s> rb to id </s> - diff --git a/funcom_test/8940456.txt b/funcom_test/8940456.txt deleted file mode 100644 index ab287ea1c85371a7778fe3596f964f8be326a0af..0000000000000000000000000000000000000000 --- a/funcom_test/8940456.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public RubyString asString() { - IRubyObject str = RuntimeHelpers.invoke(getRuntime().getCurrentContext(), this, "to_s"); - - if (!(str instanceof RubyString)) return (RubyString)anyToString(); - if (isTaint()) str.setTaint(true); - return (RubyString) str; - } - COM: <s> rb obj as string </s> - diff --git a/funcom_test/8940461.txt b/funcom_test/8940461.txt deleted file mode 100644 index ba5168a7ba30fc5c61a14bb090f2c7af8df1b1b5..0000000000000000000000000000000000000000 --- a/funcom_test/8940461.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public IRubyObject checkStringType() { - IRubyObject str = TypeConverter.convertToTypeWithCheck(this, getRuntime().getString(), MethodIndex.TO_STR, "to_str"); - if(!str.isNil() && !(str instanceof RubyString)) { - str = RubyString.newEmptyString(getRuntime()); - } - return str; - } - COM: <s> rb check string type </s> - diff --git a/funcom_test/8940577.txt b/funcom_test/8940577.txt deleted file mode 100644 index 05bb71a425e9c579fcd31f929289ecdba2e5c8ab..0000000000000000000000000000000000000000 --- a/funcom_test/8940577.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public IRubyObject evalUnder(final ThreadContext context, RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line) { - return evalUnder(context, under, src.convertToString(), file.convertToString().toString(), (int) (line.convertToInteger().getLongValue() - 1)); - } - COM: <s> evaluates the string src with self set to the current object </s> - diff --git a/funcom_test/8941114.txt b/funcom_test/8941114.txt deleted file mode 100644 index bc332db4c4b691c298b9593df1fcf411b5636da0..0000000000000000000000000000000000000000 --- a/funcom_test/8941114.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void prepareAnnotatedMethod(RubyModule implementationClass, JavaMethod javaMethod, JavaMethodDescriptor desc) { - String javaMethodName = desc.name; - - javaMethod.setArity(Arity.fromAnnotation(desc.anno, desc.actualRequired)); - javaMethod.setJavaName(javaMethodName); - javaMethod.setSingleton(desc.isStatic); - javaMethod.setCallConfig(CallConfiguration.getCallConfigByAnno(desc.anno)); - } - COM: <s> use code generation to provide a method handle based on an annotated java </s> - diff --git a/funcom_test/8941308.txt b/funcom_test/8941308.txt deleted file mode 100644 index 4fae7930432474536fd078c5f15aff34283787e0..0000000000000000000000000000000000000000 --- a/funcom_test/8941308.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2) { - return call(context, self, klazz, name, arg1,arg2, Block.NULL_BLOCK); - } - COM: <s> a default implementation of two arity non block call method </s> - diff --git a/funcom_test/8941309.txt b/funcom_test/8941309.txt deleted file mode 100644 index 8171ea20d60c2b26ed795fa247d8b38e38cddb79..0000000000000000000000000000000000000000 --- a/funcom_test/8941309.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) { - return call(context, self, klazz, name, arg1,arg2,arg3, Block.NULL_BLOCK); - } - COM: <s> a default implementation of three arity non block call method </s> - diff --git a/funcom_test/8941314.txt b/funcom_test/8941314.txt deleted file mode 100644 index 331a33f5b92095085b5f015b0c5e8068b17d29a4..0000000000000000000000000000000000000000 --- a/funcom_test/8941314.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg, Block block) { - return call(context, self, klazz, name, new IRubyObject[] {arg}, block); - } - COM: <s> a default implementation of one arity block receiving call method </s> - diff --git a/funcom_test/8941315.txt b/funcom_test/8941315.txt deleted file mode 100644 index e2ea58dc76f6356028fd9470d871539bf76c093d..0000000000000000000000000000000000000000 --- a/funcom_test/8941315.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, Block block) { - return call(context, self, klazz, name, new IRubyObject[] {arg1,arg2}, block); - } - COM: <s> a default implementation of two arity block receiving call method </s> - diff --git a/funcom_test/8941316.txt b/funcom_test/8941316.txt deleted file mode 100644 index 9c3c6f857c1d448ef06e18af07efb492abf14558..0000000000000000000000000000000000000000 --- a/funcom_test/8941316.txt +++ /dev/null @@ -1,5 +0,0 @@ -TDAT: public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block) { - return call(context, self, klazz, name, new IRubyObject[] {arg1,arg2,arg3}, block); - } - COM: <s> a default implementation of three arity block receiving call method </s> - diff --git a/funcom_test/8941395.txt b/funcom_test/8941395.txt deleted file mode 100644 index e1a2c85b678f04ec121f916d4f5c12a26f393213..0000000000000000000000000000000000000000 --- a/funcom_test/8941395.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void updateFrameForEval(IRubyObject self, String fileName, int line) { - this.self = self; - this.name = null; - this.fileName = fileName; - this.line = line; - this.visibility = Visibility.PRIVATE; - this.isBindingFrame = false; - this.backrefAndLastline = null; - } - COM: <s> update the frame based on the given values </s> - diff --git a/funcom_test/8942016.txt b/funcom_test/8942016.txt deleted file mode 100644 index dc4dc543c8f0dfb3b5450962a2734c633e19d128..0000000000000000000000000000000000000000 --- a/funcom_test/8942016.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public IRubyObject setConstantInCurrent(String internedName, IRubyObject result) { - RubyModule module; - - if ((module = getCurrentScope().getStaticScope().getModule()) != null) { - module.fastSetConstant(internedName, result); - return result; - } - - // TODO: wire into new exception handling mechanism - throw runtime.newTypeError("no class/module to define constant"); - } - COM: <s> used by the evaluator and the compiler to set a constant by name </s> - diff --git a/funcom_test/8942025.txt b/funcom_test/8942025.txt deleted file mode 100644 index 0313e04ce0520545746184429a71690d91f02e49..0000000000000000000000000000000000000000 --- a/funcom_test/8942025.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public IRubyObject createCallerBacktrace(Ruby runtime, int level) { - int traceSize = frameIndex - level + 1; - RubyArray backtrace = runtime.newArray(traceSize); - - for (int i = traceSize - 1; i > 0; i--) { - addBackTraceElement(runtime, backtrace, frameStack[i], frameStack[i - 1]); - } - - return backtrace; - } - COM: <s> create an array with backtrace information </s> - diff --git a/funcom_test/8942093.txt b/funcom_test/8942093.txt deleted file mode 100644 index a1864133af05485d7cb5f40a00f14a2642aee1e9..0000000000000000000000000000000000000000 --- a/funcom_test/8942093.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { - in.defaultReadObject(); - // rest in ivar count followed by name/value pairs - int ivarCount = in.readInt(); - for (int i = 0; i < ivarCount; i++) { - setInstanceVariable((String)in.readObject(), (IRubyObject)in.readObject()); - } - } - COM: <s> tries to support java unserialization of ruby objects </s> - diff --git a/funcom_test/8942432.txt b/funcom_test/8942432.txt deleted file mode 100644 index 983e496720cd5ce2c43eb35bec7fce9861183cfc..0000000000000000000000000000000000000000 --- a/funcom_test/8942432.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Node setArgsNode(Node argsNode) { - this.argsNode = argsNode; - // If we have more than one arg, make sure the array created to contain them is not ObjectSpaced - if (argsNode instanceof ArrayNode) { - ((ArrayNode)argsNode).setLightweight(true); - } - - return argsNode; - } - COM: <s> set the args node </s> - diff --git a/funcom_test/8943374.txt b/funcom_test/8943374.txt deleted file mode 100644 index 1d5e5578366ae2577db02f8880ac974c74b7e037..0000000000000000000000000000000000000000 --- a/funcom_test/8943374.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private Node printElsIfNodes(Node iVisited) { - if (iVisited != null && iVisited instanceof IfNode) { - IfNode n = (IfNode) iVisited; - printNewlineAndIndentation(); - print("elsif "); - visitNode(n.getCondition()); - visitNodeInIndentation(n.getThenBody()); - return printElsIfNodes(n.getElseBody()); - } - - return iVisited != null ? iVisited : null; - } - COM: <s> elsif conditions in the ast are represented by multiple nested if else </s> - diff --git a/funcom_test/8943929.txt b/funcom_test/8943929.txt deleted file mode 100644 index fe4b9951c368bd47f6c4055b6d0b1b728de2e1e6..0000000000000000000000000000000000000000 --- a/funcom_test/8943929.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public boolean isBreakStatement(Node node) { - breakLoop: do { - if (node == null) return false; - - switch (node.nodeId) { - case NEWLINENODE: - node = ((NewlineNode) node).getNextNode(); - continue breakLoop; - case BREAKNODE: case NEXTNODE: case REDONODE: - case RETRYNODE: case RETURNNODE: - return true; - default: - return false; - } - } while (true); - } - COM: <s> is the supplied node a break control statement </s> - diff --git a/funcom_test/8961850.txt b/funcom_test/8961850.txt deleted file mode 100644 index b33b4c89839b306f70ba071833dfa8b6fa1441a2..0000000000000000000000000000000000000000 --- a/funcom_test/8961850.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void testMatternIntInt() { - Mattern m; - - m = new Mattern(8,3); - - assertTrue(m.getIdpost() == 3); - assertTrue(m.getHour().size() == 8); - - for (Object val : m.getHour()) { - assertTrue( (Integer)val == 0 ); - } - } - COM: <s> test method for </s> - diff --git a/funcom_test/8961906.txt b/funcom_test/8961906.txt deleted file mode 100644 index ea3cc5f961d774c030112ecf96d21f3a2693d91d..0000000000000000000000000000000000000000 --- a/funcom_test/8961906.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: public void addPcName(String pcName) throws Exception{ - - String[] tabKeyVal = pcName.split(":"); - String key = tabKeyVal[0]; - String vals = tabKeyVal[1]; - String[] tabVal = vals.split(","); - LinkedList<String> listVal = new LinkedList<String>(); - for(int i = 0 ; i < tabVal.length ; i++) - { - listVal.add(tabVal[i]); - } - this.pcList.put(key, listVal); - - this.pcNumber++; - } - COM: <s> method wich add a computer on the current scenarios list of computers </s> - diff --git a/funcom_test/8961907.txt b/funcom_test/8961907.txt deleted file mode 100644 index b27cb9aa11f22e389184129613b628c72bb37394..0000000000000000000000000000000000000000 --- a/funcom_test/8961907.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void releaseChild(T pc) { - // XXX precond releaseChild, arg != null - - // XXX if the child is not known as Used, what should we do? - if ( vPCUsed.remove(pc) ) { - vPCFree.add(pc); - } - else { - LOG4J.warn("releasing a non used/known child : ignored."); - } - - }// end of releaseChild(ProxyChild) - COM: <s> set the given code proxy child code as em free em </s> - diff --git a/funcom_test/8962048.txt b/funcom_test/8962048.txt deleted file mode 100644 index d1ea6564596fad5bec52277191fee7d07399b5a2..0000000000000000000000000000000000000000 --- a/funcom_test/8962048.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void processMsg(MsgDescriptor msg) { - try - { - //the msg is in emission - if(msg.isInEmission()) - { - sendMsgInEmission(msg); - } - //the msg is in reception - else if(msg.isInReception()) - { - sendMsgInReception(msg); - } - } - catch (IOException e) { - LOG4J.error("Can't forward message " + msg + " : " + e); - } - } - COM: <s> this function process the message in parameter </s> - diff --git a/funcom_test/8962147.txt b/funcom_test/8962147.txt deleted file mode 100644 index 18f59989143da3fdb92ed3a26668112e743cef85..0000000000000000000000000000000000000000 --- a/funcom_test/8962147.txt +++ /dev/null @@ -1,17 +0,0 @@ -TDAT: private String getPathRes(){ - Properties sys = System.getProperties(); - String os = sys.getProperty("os.name"); - String refPath = ""; - if(os.endsWith("NT") || os.endsWith("2000") || os.endsWith("XP")) - { - refPath = Config.getString("referencePathWindows"); - } - else - { - refPath = Config.getString("referencePathLinux"); - } - String pathres = refPath+"res/"; - return pathres; - } - COM: <s> this function returns the path where we should stored the files </s> - diff --git a/funcom_test/8979436.txt b/funcom_test/8979436.txt deleted file mode 100644 index 7efe72a986f7abc1c1f36a19bb9a86d349c19589..0000000000000000000000000000000000000000 --- a/funcom_test/8979436.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setType(final String type) throws BuildException { - - if (type == null) { - throw new NullArgumentException("type"); - } - - if (!"JvYAML".equals(type) && !"yaml4j".equals(type)) { - - throw new BuildException("Invalid conversion type: '" + type - + "'. " + "Valid values include: 'JvYAML' or 'yaml4j'."); - } - - this.type = type; - } - COM: <s> set the conversion type tt jv yaml tt or tt yaml4j tt </s> - diff --git a/funcom_test/8979553.txt b/funcom_test/8979553.txt deleted file mode 100644 index 9435965892e0595aaf79a1dc018713b3089f4a67..0000000000000000000000000000000000000000 --- a/funcom_test/8979553.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void scalar(final String value) throws YamlException { - - if (value.length() > 0) { - - out.append("\""); - - int i = 0; - - for (int q = 0; (q = value.indexOf('"', i)) != -1; i = q + 1) { - - out.append(value.substring(i, q)).append("\\\""); - } - - out.append(value.substring(i)); - - out.append("\""); - } - } - COM: <s> receive notification of scalar data </s> - diff --git a/funcom_test/9009680.txt b/funcom_test/9009680.txt deleted file mode 100644 index e6b511504f6ef0c852015017a4a2a83f0456f854..0000000000000000000000000000000000000000 --- a/funcom_test/9009680.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void ensureCapacity(int minCapacity) { - modCount++; - int oldCapacity = elementData.length; - if (minCapacity > oldCapacity) { - int newCapacity = (oldCapacity * 3) / 2 + 1; - if (newCapacity < minCapacity) - newCapacity = minCapacity; - // minCapacity is usually close to size, so this is a win: - elementData = Arrays.copyOf(elementData, newCapacity); - } - } - COM: <s> increases the capacity of this tt array list tt instance if necessary </s> - diff --git a/funcom_test/9009848.txt b/funcom_test/9009848.txt deleted file mode 100644 index 45530c8a7b07c12ed4c084e2d8d939a59cc74c6d..0000000000000000000000000000000000000000 --- a/funcom_test/9009848.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException { - // Read in size, and any hidden stuff - s.defaultReadObject(); - - // Read in array length and allocate array - int arrayLength = s.readInt(); - Object[] a = elementData = new Object[arrayLength]; - - // Read in all elements in the proper order. - for (int i = 0; i < size; i++) - a[i] = s.readObject(); - } - COM: <s> reconstitute the tt array list tt instance from a stream that is </s> - diff --git a/funcom_test/9010867.txt b/funcom_test/9010867.txt deleted file mode 100644 index 931cc4a58d99083cf72692ee7c90b0a35e9cdb3e..0000000000000000000000000000000000000000 --- a/funcom_test/9010867.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void buildMemberComments() { - if(! configuration.nocomment){ - - /** TODO tanyuanji add **/ - MemberDoc doc = - (MemberDoc) members.get(currentMemberIndex); - TanUtil.println("In the AnnotationTypeRequiredMemberBuilder: " , doc.commentText()); - /** TODO tanyuanji add **/ - - - writer.writeComments((MemberDoc) members.get(currentMemberIndex)); - } - } - COM: <s> build the comments for the member </s> - diff --git a/funcom_test/9010915.txt b/funcom_test/9010915.txt deleted file mode 100644 index 9b6cba41976585f91c8514194cba4c3b109b70dd..0000000000000000000000000000000000000000 --- a/funcom_test/9010915.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void buildConstructorComments() { - if (!configuration.nocomment) { - /** TODO tanyuanji add **/ - ConstructorDoc doc = - (ConstructorDoc) constructors.get(currentMethodIndex); - TanUtil.println("In the ConstructorBuilder: " , doc.commentText()); - /** TODO tanyuanji add **/ - - - writer.writeComments( - (ConstructorDoc) constructors.get(currentMethodIndex)); - } - } - COM: <s> build the comments for the constructor </s> - diff --git a/funcom_test/9010949.txt b/funcom_test/9010949.txt deleted file mode 100644 index 65cbc2b4cdda653f2ff8b27b55c8c7855ac3a23d..0000000000000000000000000000000000000000 --- a/funcom_test/9010949.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void buildFieldComments() { - if (!configuration.nocomment) {} - - /** TODO tanyuanji add **/ - FieldDoc doc = (FieldDoc) fields.get(currentFieldIndex); - TanUtil.println("In the FieldBuilder: " , doc.commentText()); - -// TanUtil.println("In The FieldBuilder: " , doc.getDocumentation()); - /** TODO tanyuanji add **/ - - writer.writeComments(doc); - - } - COM: <s> build the comments for the field </s> - diff --git a/funcom_test/9011211.txt b/funcom_test/9011211.txt deleted file mode 100644 index a7156532f807dff6ecaa8050cc0cdc8470c13692..0000000000000000000000000000000000000000 --- a/funcom_test/9011211.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected PrintWriter wrapWriter(OutputStream o) { - try { - return new - PrintWriter(new OutputStreamWriter(o, "ISO8859_1"), true); - } catch (UnsupportedEncodingException use) { - Util.bug("encoding.iso8859_1.not.found"); - return null; /* dead code */ - } - } - COM: <s> we explicitly need to write ascii files because that is what c </s> - diff --git a/funcom_test/9011965.txt b/funcom_test/9011965.txt deleted file mode 100644 index abac2c11779d124403b6a8c2a79bb0fe478b3ded..0000000000000000000000000000000000000000 --- a/funcom_test/9011965.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public CharSequence readSource(JavaFileObject filename) { - try { - inputFiles.add(filename); - return filename.getCharContent(false); - } catch (IOException e) { - log.error("error.reading.file", filename, e.getLocalizedMessage()); - return null; - } - } - COM: <s> try to open input stream with given name </s> - diff --git a/funcom_test/9014068.txt b/funcom_test/9014068.txt deleted file mode 100644 index f5810681801a464d4fc994490adb8c428a4dc7b1..0000000000000000000000000000000000000000 --- a/funcom_test/9014068.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private Locale searchLocale(String language, String country, String variant) { - Locale[] locales = Locale.getAvailableLocales(); - for (int i = 0; i < locales.length; i++) { - if (locales[i].getLanguage().equals(language) - && (country == null || locales[i].getCountry().equals(country)) - && (variant == null || locales[i].getVariant().equals(variant))) { - return locales[i]; - } - } - return null; - } - COM: <s> search the locale for specified language specified country and specified </s> - diff --git a/funcom_test/9014184.txt b/funcom_test/9014184.txt deleted file mode 100644 index 07965b16c4311a3e01e65aa5c5d25f7d75ae3013..0000000000000000000000000000000000000000 --- a/funcom_test/9014184.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setDocPath(String path) { - setDocPath = true; - if (path == null) - return; - String newDocPath = path + File.separatorChar + PACKAGE_HTML_FILE_NAME; - if (!newDocPath.equals(docPath)) { - docPath = newDocPath; - checkDoc(); - } - } - COM: <s> set doc path for an unzipped directory </s> - diff --git a/funcom_test/9014360.txt b/funcom_test/9014360.txt deleted file mode 100644 index f55e5078540d6739ea68ce746d434dce1bc66be9..0000000000000000000000000000000000000000 --- a/funcom_test/9014360.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: public Object constantValue() { - Object result = varSymbol.getConstValue(); - if (result != null && varSymbol.type.tag == TypeTags.BOOLEAN) - // javac represents false and true as Integers 0 and 1 - result = Boolean.valueOf(((Integer)result).intValue() != 0); - return result; - } - COM: <s> get the value of a constant field </s> - diff --git a/funcom_test/9014454.txt b/funcom_test/9014454.txt deleted file mode 100644 index dda41cf75c38bd2f9fea31312ad6adfbe06ca26b..0000000000000000000000000000000000000000 --- a/funcom_test/9014454.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public void append(final URL url) { - String href; - boolean found; - URL u; - int oldsize; - - href = url.toString(); - found = false; - oldsize = -1; - synchronized (mUrls) { - for (int i = 0; !found && (i < mUrls.size()); i++) { - u = mUrls.get(i); - if (href.equals(u.toString())) - found = true; - } - if (!found) { - oldsize = mUrls.size(); - mUrls.add(url); - mUrls.notify(); - } - } - if (-1 != oldsize) - updateQueueSize(oldsize, mUrls.size()); - } - COM: <s> append the given url to the queue </s> - diff --git a/funcom_test/9014464.txt b/funcom_test/9014464.txt deleted file mode 100644 index 1a2a72b1e52e423b90a577006acebcf4bfae982b..0000000000000000000000000000000000000000 --- a/funcom_test/9014464.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void place(final Picture picture, final boolean add) { - Point p; - - if (Picture.ORIGIN == picture.getOrigin()) { - // never been placed before - p = random(picture.getIdentity().toString(), picture.width, picture.height); - picture.x = p.x; - picture.y = p.y; - picture.setOrigin(p); - } - mThumbelina.getPicturePanel().draw(picture, add); - } - COM: <s> place a picture in the display area </s> - diff --git a/funcom_test/9014466.txt b/funcom_test/9014466.txt deleted file mode 100644 index 6ecb31b67f32f1c3b3d05e121ba77a9f6b5c1716..0000000000000000000000000000000000000000 --- a/funcom_test/9014466.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void add(Picture picture, final boolean background) { - int size; - - if (picture.getValid()) - if (background) - synchronized (mPending) { - mPending.add(picture); - // size = mPending.size (); - // if (mThumbelina.mReadyProgress.getMaximum () < size) - // mThumbelina.mReadyProgress.setMaximum (size); - // mThumbelina.mReadyProgress.setValue (size); - mPending.notify(); - } - else - place(picture, false); - else - System.out.println(picture.getIdentity().toString() + " is invalid"); - } - COM: <s> add an image to the panel </s> - diff --git a/funcom_test/9014490.txt b/funcom_test/9014490.txt deleted file mode 100644 index 4bf16b3301034ecc2b97a08c4407b0b9cdc47854..0000000000000000000000000000000000000000 --- a/funcom_test/9014490.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void setStatusBarVisible(final boolean visible) { - int index; - - index = -1; - for (int i = 0; (-1 == index) && (i < getComponentCount()); i++) - if (mPowerBar == getComponent(i)) - index = i; - if (visible) { - if (-1 == index) { - add(mPowerBar, java.awt.BorderLayout.SOUTH); - invalidate(); - validate(); - } - } else if (-1 != index) { - remove(index); - invalidate(); - validate(); - } - } - COM: <s> sets the status bar visibility </s> - diff --git a/funcom_test/9014569.txt b/funcom_test/9014569.txt deleted file mode 100644 index cfc6ff2938b367ea3a04cdafab2e64ed57a62ede..0000000000000000000000000000000000000000 --- a/funcom_test/9014569.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public int row(Cursor cursor) { - int ret; - - ret = Sort.bsearch(this, cursor); - // handle line transition, the search returns the index if it matches - // exactly one of the line end positions, so we advance one line if - // it's equal to the offset at the row index, since that position is - // actually the beginning of the next line - if ((ret < mCount) && (cursor.getPosition() == mIndices[ret])) - ret++; - - return (ret); - } - COM: <s> get the line number for a cursor </s> - diff --git a/funcom_test/9014639.txt b/funcom_test/9014639.txt deleted file mode 100644 index 6adeb6b97c8e55c32c77ec2c8172dd48c9fbf36a..0000000000000000000000000000000000000000 --- a/funcom_test/9014639.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void setCurrentURL(final String url) { - String oldValue; - - if (((null != url) && !url.equals(mCurrentURL)) || ((null == url) && (null != mCurrentURL))) { - oldValue = mCurrentURL; - mCurrentURL = url; - mPropertySupport.firePropertyChange(PROP_CURRENT_URL_PROPERTY, oldValue, url); - } - } - COM: <s> set the current url being examined </s> - diff --git a/funcom_test/9014652.txt b/funcom_test/9014652.txt deleted file mode 100644 index 5911392e1d11edbf996c6084775e6e47eabe1243..0000000000000000000000000000000000000000 --- a/funcom_test/9014652.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void about() { - URL url; - - try { - url = new URL("http://sourceforge.net/sflogo.php?group_id=24399"); - } catch (MalformedURLException murle) { - url = null; - } - JOptionPane.showMessageDialog(this, "Scan and display the images behind thumbnails.\n" + "\n" - + "An example application using the HTML Parser project.\n" - + "Visit http://htmlparser.sourceforge.org for the latest\n" + "version and source code.\n", - "Thumbelina - About", JOptionPane.PLAIN_MESSAGE, new ImageIcon(url)); - } - COM: <s> display information about thumbelina </s> - diff --git a/funcom_test/9014706.txt b/funcom_test/9014706.txt deleted file mode 100644 index d5ca3cfbdebcf70388f0473d01d550894141b0c0..0000000000000000000000000000000000000000 --- a/funcom_test/9014706.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void ungetCharacter(Cursor cursor) throws ParserException { - int i; - char ch; - - cursor.retreat(); - i = cursor.getPosition(); - try { - ch = mSource.getCharacter(i); - if (('\n' == ch) && (0 != i)) { - ch = mSource.getCharacter(i - 1); - if ('\r' == ch) - cursor.retreat(); - } - } catch (IOException ioe) { - throw new ParserException("can't read a character at position " + cursor.getPosition(), ioe); - } - } - COM: <s> return a character </s> - diff --git a/funcom_test/9014716.txt b/funcom_test/9014716.txt deleted file mode 100644 index 146cdaf8be5fd960b0b496868fd14d5bba310105..0000000000000000000000000000000000000000 --- a/funcom_test/9014716.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public boolean isEmpty() { - return (!isWhitespace() // not whitespace - && !isStandAlone() // and not standalone - && (null == super.getValue()) // and no explicit value provided - && ((null == mPage) // and either its not coming from a page - // or it is coming from a page and has no value - || ((null != mPage) && (0 > mValueEnd)))); - } - COM: <s> predicate to determine if this attribute has an equals sign but no value </s> - diff --git a/funcom_test/9014719.txt b/funcom_test/9014719.txt deleted file mode 100644 index c61e407c588c3f9376e2c1a60dd6fa6a4e5f014b..0000000000000000000000000000000000000000 --- a/funcom_test/9014719.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public boolean isValued() { - return ((null != super.getValue()) // an explicit value provided - // or it is coming from a page and has a non-empty value - || ((null != mPage) && ((0 <= mValueStart) && (0 <= mValueEnd)) && (mValueStart != mValueEnd))); - } - COM: <s> predicate to determine if this attribute has a value </s> - diff --git a/funcom_test/9014735.txt b/funcom_test/9014735.txt deleted file mode 100644 index 0586f74e99a742819897710423e21577a61ebf50..0000000000000000000000000000000000000000 --- a/funcom_test/9014735.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public Attribute getAttributeEx(String name) { - Vector attributes; - int size; - Attribute attribute; - String string; - Attribute ret; - - ret = null; - - attributes = getAttributesEx(); - if (null != attributes) { - size = attributes.size(); - for (int i = 0; i < size; i++) { - attribute = (Attribute) attributes.elementAt(i); - string = attribute.getName(); - if ((null != string) && name.equalsIgnoreCase(string)) { - ret = attribute; - i = size; // exit fast - } - } - } - - return (ret); - } - COM: <s> returns the attribute with the given name </s> - diff --git a/funcom_test/9014739.txt b/funcom_test/9014739.txt deleted file mode 100644 index abcd5c96b11a3e5ca4f38d7372635fbaf2443c87..0000000000000000000000000000000000000000 --- a/funcom_test/9014739.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void addHistory(String url) { - int index; - DefaultListModel model; - - mUrlText.setText(url); - // chop off the protocol - index = url.indexOf("http://"); - if (-1 != index) - url = url.substring(index + 7); - else - System.out.println("********* " + url + " ************"); - model = (DefaultListModel) mHistory.getModel(); - model.addElement(url); - // this doesn't friggin work: - // mHistory.ensureIndexIsVisible (model.getSize ()); - } - COM: <s> adds the given url to the history list </s> - diff --git a/funcom_test/9014790.txt b/funcom_test/9014790.txt deleted file mode 100644 index 0060a75680b2dff12941f32a0f7fc0b41ce88a37..0000000000000000000000000000000000000000 --- a/funcom_test/9014790.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getText(int start, int end) throws IllegalArgumentException { - String ret; - - try { - ret = mSource.getString(start, end - start); - } catch (IOException ioe) { - throw new IllegalArgumentException("can't get the " + (end - start) + "characters at position " + start - + " - " + ioe.getMessage()); - } - - return (ret); - } - COM: <s> get the text identified by the given limits </s> - diff --git a/funcom_test/9014807.txt b/funcom_test/9014807.txt deleted file mode 100644 index de6bd8bf3e827d6f5e24c27b8acd6967e73e688e..0000000000000000000000000000000000000000 --- a/funcom_test/9014807.txt +++ /dev/null @@ -1,26 +0,0 @@ -TDAT: public String toTagHtml() { - int length; - int size; - Vector attributes; - Attribute attribute; - StringBuffer ret; - - length = 2; - attributes = getAttributesEx(); - size = attributes.size(); - for (int i = 0; i < size; i++) { - attribute = (Attribute) attributes.elementAt(i); - length += attribute.getLength(); - } - ret = new StringBuffer(length); - ret.append("<"); - for (int i = 0; i < size; i++) { - attribute = (Attribute) attributes.elementAt(i); - attribute.toString(ret); - } - ret.append(">"); - - return (ret.toString()); - } - COM: <s> return the tag html </s> - diff --git a/funcom_test/9014812.txt b/funcom_test/9014812.txt deleted file mode 100644 index 145ce6cce908d157793eae5ebacb0b537813f583..0000000000000000000000000000000000000000 --- a/funcom_test/9014812.txt +++ /dev/null @@ -1,32 +0,0 @@ -TDAT: public String toString() { - String text; - String type; - Cursor start; - Cursor end; - StringBuffer ret; - - text = getText(); - ret = new StringBuffer(20 + text.length()); - if (isEndTag()) - type = "End"; - else - type = "Tag"; - start = new Cursor(getPage(), getStartPosition()); - end = new Cursor(getPage(), getEndPosition()); - ret.append(type); - ret.append(" ("); - ret.append(start); - ret.append(","); - ret.append(end); - ret.append("): "); - if (80 < ret.length() + text.length()) { - text = text.substring(0, 77 - ret.length()); - ret.append(text); - ret.append("..."); - } else - ret.append(text); - - return (ret.toString()); - } - COM: <s> print the contents of the tag </s> - diff --git a/funcom_test/9014908.txt b/funcom_test/9014908.txt deleted file mode 100644 index 9bf67969bea26d8ff9759e691d1485e4c44115ab..0000000000000000000000000000000000000000 --- a/funcom_test/9014908.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public NodeList extractAllNodesThatMatch(NodeFilter filter, boolean recursive) { - Node node; - NodeList children; - NodeList ret; - - ret = new NodeList(); - for (int i = 0; i < size; i++) { - node = nodeData[i]; - if (filter.accept(node)) - ret.add(node); - if (recursive) { - children = node.getChildren(); - if (null != children) - ret.add(children.extractAllNodesThatMatch(filter, recursive)); - } - } - - return (ret); - } - COM: <s> filter the list with the given filter </s> - diff --git a/funcom_test/9014981.txt b/funcom_test/9014981.txt deleted file mode 100644 index bcf322b5c5a50330e1dc0a92ecf4f3f815df8861..0000000000000000000000000000000000000000 --- a/funcom_test/9014981.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void setSelected(boolean selected) { - if (selected) - setBorder(new CompoundBorder(new TitledBorder(null, mTitle, TitledBorder.LEFT, TitledBorder.TOP), - new CompoundBorder(new LineBorder(Color.green, 2), new EmptyBorder(1, 1, 1, 1)))); - else - setBorder(new CompoundBorder(new TitledBorder(null, mTitle, TitledBorder.LEFT, TitledBorder.TOP), - new EmptyBorder(3, 3, 3, 3))); - } - COM: <s> set the selected look for the component </s> - diff --git a/funcom_test/9014987.txt b/funcom_test/9014987.txt deleted file mode 100644 index ee96eef7dc25b746a44f2b7371f6a784bcefc1a4..0000000000000000000000000000000000000000 --- a/funcom_test/9014987.txt +++ /dev/null @@ -1,27 +0,0 @@ -TDAT: public int getIndexOfChild(Object parent, Object child) { - Node node; - NodeList list; - int count; - int ret; - - ret = -1; - - node = (Node) parent; - list = node.getChildren(); - if (null != list) { - count = list.size(); - for (int i = 0; i < count; i++) - if (child == list.elementAt(i)) { - ret = i; - break; - } - } else - throw new IllegalArgumentException("invalid parent for getIndexOfChild()"); - - if (0 > ret) - throw new IllegalArgumentException("child not found in getIndexOfChild()"); - - return (ret); - } - COM: <s> returns the index of child in parent </s> - diff --git a/funcom_test/9014994.txt b/funcom_test/9014994.txt deleted file mode 100644 index eb37c3cdc31b86c7414e110e1cb24d58d339d318..0000000000000000000000000000000000000000 --- a/funcom_test/9014994.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void valueForPathChanged(TreePath path, Object newValue) { - TreeModelEvent event; - Vector v; - - event = new TreeModelEvent(this, path); - synchronized (mTreeListeners) { - v = (Vector) mTreeListeners.clone(); - } - - for (int i = 0; i < v.size(); i++) { - TreeModelListener listener = (TreeModelListener) v.elementAt(i); - listener.treeStructureChanged(event); - } - } - COM: <s> messaged when the user has altered the value for the item identified by </s> - diff --git a/funcom_test/9014998.txt b/funcom_test/9014998.txt deleted file mode 100644 index e1bdca39cdbf6592475122eb9e097106a885700e..0000000000000000000000000000000000000000 --- a/funcom_test/9014998.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected Node makeTag(int start, int end, Vector attributes) throws ParserException { - int length; - Node ret; - - length = end - start; - if (0 != length) { // return tag based on second character, '/', '%', - // Letter (ch), '!' - if (2 > length) - // this is an error - return (makeString(start, end)); - ret = getNodeFactory().createTagNode(this.getPage(), start, end, attributes); - } else - ret = null; - - return (ret); - } - COM: <s> create a tag node based on the current cursor and the one provided </s> - diff --git a/funcom_test/9014999.txt b/funcom_test/9014999.txt deleted file mode 100644 index 7b6e826d7387970ff8097bd3751a075706e7cb5f..0000000000000000000000000000000000000000 --- a/funcom_test/9014999.txt +++ /dev/null @@ -1,36 +0,0 @@ -TDAT: public String toText(TextNode node) { - int startpos; - int endpos; - String s; - char c; - StringBuffer ret; - - startpos = node.getStartPosition(); - endpos = node.getEndPosition(); - ret = new StringBuffer(endpos - startpos + 20); - s = node.toHtml(); - for (int i = 0; i < s.length(); i++) { - c = s.charAt(i); - switch (c) { - case '\t': - ret.append("\\t"); - break; - case '\n': - ret.append("\\n"); - break; - case '\r': - ret.append("\\r"); - break; - default: - ret.append(c); - } - if (77 <= ret.length()) { - ret.append("..."); - break; - } - } - - return (ret.toString()); - } - COM: <s> express this string node as a printable string this is suitable for </s> - diff --git a/funcom_test/9015023.txt b/funcom_test/9015023.txt deleted file mode 100644 index a65048c4fede2bc5a08390d39179afcd7bf6b470..0000000000000000000000000000000000000000 --- a/funcom_test/9015023.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected Node makeRemark(int start, int end) throws ParserException { - int length; - Node ret; - - length = end - start; - if (0 != length) { // return tag based on second character, '/', '%', - // Letter (ch), '!' - if (2 > length) - // this is an error - return (makeString(start, end)); - ret = getNodeFactory().createRemarkNode(this.getPage(), start, end); - } else - ret = null; - - return (ret); - } - COM: <s> create a remark node based on the current cursor and the one provided </s> - diff --git a/funcom_test/9015024.txt b/funcom_test/9015024.txt deleted file mode 100644 index bdc8b9971a996375784a450291dfa85a9ce4b533..0000000000000000000000000000000000000000 --- a/funcom_test/9015024.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public void layoutContainer(Container target) { - int count; - Component component; - Dimension dimension; - - synchronized (target.getTreeLock()) { - count = target.getComponentCount(); - for (int i = 0; i < count; i++) { - component = target.getComponent(i); - if (component.isVisible()) { - dimension = component.getPreferredSize(); - component.setSize(dimension.width, dimension.height); - } - } - } - } - COM: <s> lays out the container </s> - diff --git a/funcom_test/9015083.txt b/funcom_test/9015083.txt deleted file mode 100644 index 5133fb71408d712296b4bdd0309a03fa34f8b304..0000000000000000000000000000000000000000 --- a/funcom_test/9015083.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: protected void insertFilters(Filter[] filters, Point point, SubFilterList list) { - Dimension dimension; - - if (null == list) { - for (int i = 0; i < filters.length; i++) { - filters[i].setLocation(point); - mMainPanel.add(filters[i]); - dimension = filters[i].getPreferredSize(); - point.y += dimension.height; - } - } else - for (int i = 0; i < filters.length; i++) - list.addFilter(filters[i]); - setupDropTargets(filters); - setupMouseListeners(filters); - relayout(); - } - COM: <s> adds a set of filters to the main panel or a sublist </s> - diff --git a/funcom_test/9015113.txt b/funcom_test/9015113.txt deleted file mode 100644 index f6ba5717aa7be41bbf3bc53d3251626bbe1c468d..0000000000000000000000000000000000000000 --- a/funcom_test/9015113.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void run() { - String locale; - - synchronized (mLocale) { - mLocales = Locale.getAvailableLocales(); - locale = mFilter.getLocale().getDisplayName(); - for (int i = 0; i < mLocales.length; i++) - if (!locale.equals(mLocales[i].getDisplayName())) - mLocale.addItem(mLocales[i].getDisplayName()); - mLocale.invalidate(); - } - } - COM: <s> background thread task to get the available locales </s> - diff --git a/funcom_test/9015161.txt b/funcom_test/9015161.txt deleted file mode 100644 index c5b0a80543169315c1347655d4db0f9f86ba7c97..0000000000000000000000000000000000000000 --- a/funcom_test/9015161.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: protected String getLocation(HttpURLConnection http) { - String key; - String value; - String ret; - - ret = null; - - for (int i = 0; ((null == ret) && (null != (value = http.getHeaderField(i)))); i++) - if ((null != (key = http.getHeaderFieldKey(i))) && (key.equalsIgnoreCase("Location"))) - ret = value; - - return (ret); - } - COM: <s> get the location field if any </s> - diff --git a/funcom_test/9015182.txt b/funcom_test/9015182.txt deleted file mode 100644 index 194b0e8bfb8184716c6211d2eb4ca91bad59a7fc..0000000000000000000000000000000000000000 --- a/funcom_test/9015182.txt +++ /dev/null @@ -1,25 +0,0 @@ -TDAT: public String fixSpaces(String url) { - int index; - int length; - char ch; - StringBuffer buffer; - - index = url.indexOf(' '); - if (-1 != index) { - length = url.length(); - buffer = new StringBuffer(length * 3); - buffer.append(url.substring(0, index)); - for (int i = index; i < length; i++) { - ch = url.charAt(i); - if (ch == ' ') - buffer.append("%20"); - else - buffer.append(ch); - } - url = buffer.toString(); - } - - return (url); - } - COM: <s> turn spaces into 20 </s> - diff --git a/funcom_test/9015210.txt b/funcom_test/9015210.txt deleted file mode 100644 index 83679bffdc3739113a5ef567902a5e9075cf1faa..0000000000000000000000000000000000000000 --- a/funcom_test/9015210.txt +++ /dev/null @@ -1,23 +0,0 @@ -TDAT: protected boolean isHtml(String link) throws ParserException { - URL url; - URLConnection connection; - String type; - boolean ret; - - ret = false; - try { - url = new URL(link); - connection = url.openConnection(); - type = connection.getContentType(); - if (type == null) - ret = false; - else - ret = type.startsWith("text/html"); - } catch (Exception e) { - throw new ParserException("URL " + link + " has a problem", e); - } - - return (ret); - } - COM: <s> returns code true code if the link contains text html content </s> - diff --git a/funcom_test/9015260.txt b/funcom_test/9015260.txt deleted file mode 100644 index 190a0e862637f8b0fcd901f2f80cdae2bae17764..0000000000000000000000000000000000000000 --- a/funcom_test/9015260.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void openAction() { - FileDialog dialog; - File file; - - dialog = new FileDialog(this); - dialog.setMode(FileDialog.LOAD); - dialog.setTitle("Open"); - dialog.setDirectory(mHomeDir); - dialog.setVisible(true); - if (null != dialog.getFile()) { - mHomeDir = dialog.getDirectory(); - file = new File(mHomeDir + dialog.getFile()); - open(file.getAbsolutePath()); - setTitle(TITLE + " - " + file.getAbsolutePath()); - } - } - COM: <s> the action to take when open menu or button pressed </s> - diff --git a/funcom_test/9015627.txt b/funcom_test/9015627.txt deleted file mode 100644 index f4a8d2185da07feaf7fb25e2e1f3e6d326d3536d..0000000000000000000000000000000000000000 --- a/funcom_test/9015627.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void setupMouseListeners(Filter[] filters) { - SubFilterList list; - - for (int i = 0; i < filters.length; i++) { - // set us up as a mouse listener on it - ((Component) filters[i]).addMouseListener(this); - ((Component) filters[i]).addMouseMotionListener(this); - list = getEnclosed(filters[i]); - if (null != list) - setupMouseListeners(list.getFilters()); - } - } - COM: <s> set up mouse listeners </s> - diff --git a/funcom_test/9015644.txt b/funcom_test/9015644.txt deleted file mode 100644 index 46caf0c083716a0068e71560c64c33fc1dc4012f..0000000000000000000000000000000000000000 --- a/funcom_test/9015644.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setupDropTargets(Filter[] filters) { - SubFilterList list; - Component[] components; - - for (int i = 0; i < filters.length; i++) { - list = getEnclosed(filters[i]); - if (null != list) { - components = list.getDropTargets(); - for (int j = 0; j < components.length; j++) - new DropTarget(components[j], this); - setupDropTargets(list.getFilters()); - } - } - } - COM: <s> set up drop targets </s> - diff --git a/funcom_test/9015657.txt b/funcom_test/9015657.txt deleted file mode 100644 index 02de4151a723c106b27b6feb2cb217ac147420b6..0000000000000000000000000000000000000000 --- a/funcom_test/9015657.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setExpanded(Filter[] filters, boolean expanded, boolean recursive) { - SubFilterList list; - - for (int i = 0; i < filters.length; i++) { - if (recursive && (null != (list = getEnclosed(filters[i])))) - setExpanded(list.getFilters(), expanded, recursive); - filters[i].setExpanded(expanded); - } - } - COM: <s> expand or collapse filters possibly recursively </s> - diff --git a/funcom_test/9015697.txt b/funcom_test/9015697.txt deleted file mode 100644 index 8a9b888b8e5248c0d17524427b02bb5a8bb8f08b..0000000000000000000000000000000000000000 --- a/funcom_test/9015697.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void moveSelection(Point translation) { - int count; - Filter filter; - Point point; - - count = mSelection.size(); - for (int i = 0; i < count; i++) { - filter = (Filter) mSelection.elementAt(i); - point = filter.getLocation(); - point.translate(translation.x, translation.y); - synchronized (filter.getTreeLock()) { - filter.setLocation(point.x, point.y); - } - } - mMoved = true; - } - COM: <s> move the current selection set as a group </s> - diff --git a/funcom_test/9015729.txt b/funcom_test/9015729.txt deleted file mode 100644 index 49018a8e156b875bf38f4b704a14ac46a03775e5..0000000000000000000000000000000000000000 --- a/funcom_test/9015729.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: private void displayDownRight(JFrame parent, JFrame child) { - Point parentLocation = parent.getLocation(); - double parentX = parentLocation.getX(); - double parentY = parentLocation.getY(); - - int parentWidth = parent.getWidth(); - double childX = parentX + parentWidth; - double childY = parentY + ModelibraPanel.FRAME_DISPLAY_INCREMENT; - - Point childLocation = new Point(); - childLocation.setLocation(childX, childY); - child.setLocation(childLocation); - child.setVisible(true); - } - COM: <s> displays a child frame down and right of the parent frame </s> - diff --git a/funcom_test/9015997.txt b/funcom_test/9015997.txt deleted file mode 100644 index 5f86927727595d3212796e7d0b77c4b1b4bcbb43..0000000000000000000000000000000000000000 --- a/funcom_test/9015997.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void dragGestureRecognized(DragGestureEvent event) { - Component component; - String cls; - Filter filter; - StringSelection text; - - component = event.getComponent(); - try { - cls = component.getName(); // (String)Filter.mWrappers.get - // (component.getName ()); - if (null != cls) { - filter = Filter.instantiate(cls); - text = new StringSelection(Filter.deconstitute(new Filter[] { filter })); - mDragSource.startDrag(event, DragSource.DefaultMoveDrop, text, this); - } - } catch (Exception e) { - e.printStackTrace(); - } - } - COM: <s> a drag gesture recognizer has detected a platform dependent drag initiating </s> - diff --git a/funcom_test/9016172.txt b/funcom_test/9016172.txt deleted file mode 100644 index 50dd06a7ebbe40f172eb20a15045510081f4423e..0000000000000000000000000000000000000000 --- a/funcom_test/9016172.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: public void displayDownRight(JFrame child) { - Point locationOnScreen = getLocationOnScreen(); - double parentX = locationOnScreen.getX(); - double parentY = locationOnScreen.getY(); - - double childX = parentX + FRAME_DISPLAY_INCREMENT; - double childY = parentY + FRAME_DISPLAY_INCREMENT; - - Point childLocation = new Point(); - childLocation.setLocation(childX, childY); - child.setLocation(childLocation); - child.setVisible(true); - } - COM: <s> displays a child frame down and right of this panel </s> - diff --git a/funcom_test/9105697.txt b/funcom_test/9105697.txt deleted file mode 100644 index 8e9f6b5eece806beb0a122e1338aa243ae655117..0000000000000000000000000000000000000000 --- a/funcom_test/9105697.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("ServicoAgendamento".equals(portName)) { - setServicoAgendamentoEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/9294248.txt b/funcom_test/9294248.txt deleted file mode 100644 index 9fd1e9b91c2cea861f1b3c32fb8689c0636a1441..0000000000000000000000000000000000000000 --- a/funcom_test/9294248.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void repaint() { - synchronized (this) { - grph.setColor(255, 255, 255); - grph.fillRect(0, 0, c.getWidth(), c.getHeight()); - if (currentRgbMap != null) - draw(0, 0, activeWidth, activeHeight); - } - c.flushGraphics(); - } - COM: <s> this function is called when a portion of the display has been invalidated </s> - diff --git a/funcom_test/9294250.txt b/funcom_test/9294250.txt deleted file mode 100644 index 9f643e2bafd1ec3e588455fa9ad539a279796d05..0000000000000000000000000000000000000000 --- a/funcom_test/9294250.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void switchPallete(int newPalleteIndex) { - synchronized (this) { - if (rgbMaps[newPalleteIndex] == null) { - throw new RuntimeException("Pallete " + newPalleteIndex + " is undefined."); - } - currentRgbMap = rgbMaps[newPalleteIndex]; - draw(0, 0, activeWidth, activeHeight); - } - flushGraphics(0, 0, activeWidth, activeHeight); - } - COM: <s> switches the currently active pallete </s> - diff --git a/funcom_test/9308592.txt b/funcom_test/9308592.txt deleted file mode 100644 index e9484a197cba4a4ec77b43a8abdb89c3dc7d1c10..0000000000000000000000000000000000000000 --- a/funcom_test/9308592.txt +++ /dev/null @@ -1,24 +0,0 @@ -TDAT: public void run() { - try { - - while (true) { - - synchronized (this) { - wait(cacheExecution); - } - while ((!queue.isEmpty()) && isRemovable(queue.peek())) { - synchronized (value) { - // remove value with the given key in the queue - removePop(); - } - } - statLog(); - } - - } catch (InterruptedException e) { - - } - -} - COM: <s> code for cache deletion thread daemon </s> - diff --git a/funcom_test/9308805.txt b/funcom_test/9308805.txt deleted file mode 100644 index 3cd0fc3e75468b2fb06edc82ffa6691ad306b9a2..0000000000000000000000000000000000000000 --- a/funcom_test/9308805.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void openfile(){ - Date date = new Date(); - String filenamenew = name.replaceFirst("%g",sdf.format(date)); - if (!filenamenew.equals(filename)){ - try { - if (writer!=null){ - writer.close(); - } - writer = new FileWriter( - filenamenew,append); - filename = filenamenew; - } catch (IOException e) { - e.printStackTrace(System.err); - } - } -} - COM: <s> check if file name has changed then open the file if needed </s> - diff --git a/funcom_test/9308821.txt b/funcom_test/9308821.txt deleted file mode 100644 index 34da6197e8c6fca10f0854b4e53e80bf2a87530c..0000000000000000000000000000000000000000 --- a/funcom_test/9308821.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: public void setPluginData(String tPath, String tBackupPath, String tName) { - - path = tPath; - backupPath = tBackupPath; - if (path == null || backupPath == null) { - managemenu.setVisible(true); - path = ""; - backupPath = ""; - filemenu.remove(delete); - onOrOff.setIcon(null); - } else { - filemenu.add(delete); - } - currentManagedPath = path; - theFile = new File(path); - backup = new File(backupPath); - pluginName.setText(tName); - this.pack(); - } - COM: <s> when a new plugin is added through the auto detect or find plugin </s> - diff --git a/funcom_test/9308836.txt b/funcom_test/9308836.txt deleted file mode 100644 index 07e3cd84391a6225c5ff5c329b9fd0c0e1596069..0000000000000000000000000000000000000000 --- a/funcom_test/9308836.txt +++ /dev/null @@ -1,19 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - JFileChooser chooser = new JFileChooser(); - int retval = chooser.showDialog(frame, null); - if (retval == JFileChooser.APPROVE_OPTION) { - File theFile = chooser.getSelectedFile(); - if (theFile != null) { - String[] pluginsFound = new String[1]; - pluginsFound[0] - = chooser.getSelectedFile().getPath(); - doPluginNamingDialog(pluginsFound); - dataFileExists = readDataFile(); - buildManageMenu(); - setToDefaultPlugin(); - return; - } - } - } - COM: <s> attempts to find the plugin at the path specified by the user </s> - diff --git a/funcom_test/9308839.txt b/funcom_test/9308839.txt deleted file mode 100644 index 042bdd77f6c757c6d63f337fe6c6216c59ff973a..0000000000000000000000000000000000000000 --- a/funcom_test/9308839.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: public void setToDefaultPlugin() { - - if (dataFileExists) { - String thePath = getPluginData(0, "path"); - String backupPath = getPluginData(0, "backupPath"); - String theName = getPluginData(0, "plugins"); - if (thePath.trim().length() > 0) { - setPluginData(thePath, backupPath, theName); - } - managemenu.setVisible(true); - setIsRunning(); - } else { - managemenu.setVisible(false); - onOrOff.setIcon(null); - pluginName.setText(""); - } - - } - COM: <s> sets the to default plugin attribute of the j tflash manager object </s> - diff --git a/funcom_test/9308842.txt b/funcom_test/9308842.txt deleted file mode 100644 index 641a76c28f3c778573531880d6cca4e80ce0c063..0000000000000000000000000000000000000000 --- a/funcom_test/9308842.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void actionPerformed(ActionEvent e) { - JMenuItem tempItem = (JMenuItem) e.getSource(); - int actionCommand = Integer.parseInt(e.getActionCommand()); - String thePath = getPluginData(actionCommand, "path"); - currentManagedPath = thePath; - String theBackupPath = getPluginData(actionCommand, "backupPath"); - String theName = getPluginData(actionCommand, "plugins"); - setPluginData(thePath, theBackupPath, theName); - setIsRunning(); - } - COM: <s> changes the plugin selected in the manage menu to be </s> - diff --git a/funcom_test/9309003.txt b/funcom_test/9309003.txt deleted file mode 100644 index 0742d93c92e6ed191fb6ecdaf711e6690b138763..0000000000000000000000000000000000000000 --- a/funcom_test/9309003.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void copyMap(Map dest,Map src) throws StrategyException{ - Iterator iter = src.entrySet().iterator(); - while (iter.hasNext()){ - Map.Entry entry = (Map.Entry) iter.next(); - dest.put( - transformWithParent(entry.getKey()), - transformWithParent(entry.getValue()) ); - } - } - COM: <s> transform contain of hashtable using parent </s> - diff --git a/funcom_test/9309004.txt b/funcom_test/9309004.txt deleted file mode 100644 index aabd6baab472f5c4dc8fdcb641e147ee746a982a..0000000000000000000000000000000000000000 --- a/funcom_test/9309004.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private void copyMapReverse(Map dest,Map src) throws StrategyException{ - Iterator iter = src.entrySet().iterator(); - while (iter.hasNext()){ - Map.Entry entry = (Map.Entry) iter.next(); - dest.put( - transformReverseWithParent(entry.getKey()), - transformReverseWithParent(entry.getValue()) ); - } - } - COM: <s> reverse transform contain of hashtable using parent </s> - diff --git a/funcom_test/9309010.txt b/funcom_test/9309010.txt deleted file mode 100644 index 78b0ab7a50cad9c7985b996c4f68c3fcafa2eb49..0000000000000000000000000000000000000000 --- a/funcom_test/9309010.txt +++ /dev/null @@ -1,15 +0,0 @@ -TDAT: private Constructor getConstructor(Class clazz) { - Class[] parameterTypes = new Class[0]; - Constructor c; - try { - c = clazz.getDeclaredConstructor(parameterTypes); - } catch (SecurityException e) { - return null; - } catch (NoSuchMethodException e) { - return null; - } - c.setAccessible(true); - return c; - } - COM: <s> this gets an empty constructor for the class if it exists </s> - diff --git a/funcom_test/9346032.txt b/funcom_test/9346032.txt deleted file mode 100644 index 3f402e7ce154065e1ad7a3915b9a6134a248205b..0000000000000000000000000000000000000000 --- a/funcom_test/9346032.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: protected void handleDirBrowseButtonPressed() { - DirectoryDialog dialog = new DirectoryDialog(getContainer().getShell(), SWT.SAVE); - dialog.setMessage(Messages.DirSelect); - dialog.setFilterPath(getDirValue()); - String dir = dialog.open(); - if (dir != null) { - _dirCombo.setText(dir); - } - } - COM: <s> creates a directory dialog </s> - diff --git a/funcom_test/9346036.txt b/funcom_test/9346036.txt deleted file mode 100644 index 6adef523cfd61b82b3e9e4df3fb48703958734ed..0000000000000000000000000000000000000000 --- a/funcom_test/9346036.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: private String getInitDir() { - String projDir = _proj.getProject().getLocation().toString(); - if(_initPath != null && _initPath.segmentCount() > 1 ) { - return projDir + IPath.SEPARATOR + _initPath.segment(1); - } - // else - return projDir; - - } - COM: <s> extracts the initial directory value from a path passed in set selection </s> - diff --git a/funcom_test/9346475.txt b/funcom_test/9346475.txt deleted file mode 100644 index d7b79140bbada43ce23974afd213830cb3d99a3d..0000000000000000000000000000000000000000 --- a/funcom_test/9346475.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { - -if ("InternalCRMProvider".equals(portName)) { - setInternalCRMProviderEndpointAddress(address); - } - else -{ // Unknown Port Name - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); - } - } - COM: <s> set the endpoint address for the specified port name </s> - diff --git a/funcom_test/9485469.txt b/funcom_test/9485469.txt deleted file mode 100644 index 227159a27ea86cdb64f25349592a8aaa9012cfa1..0000000000000000000000000000000000000000 --- a/funcom_test/9485469.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public boolean isAspectEnabled(final String aspectclass) { - DripsAspectInfo dripsAspectInfo = getAspectInfo(aspectclass); - try { - return Utils.getLocalMBeanServer().isRegistered( - new ObjectName(dripsAspectInfo.getObjectName())); - } catch (MalformedObjectNameException e) { - e.printStackTrace(); - } - return false; - } - COM: <s> this method is used to determine whether an aspect is enabled or not </s> - diff --git a/funcom_test/9507513.txt b/funcom_test/9507513.txt deleted file mode 100644 index 749e36c7f365fe5e50b9f2db6ebe6a0c9983ddf2..0000000000000000000000000000000000000000 --- a/funcom_test/9507513.txt +++ /dev/null @@ -1,21 +0,0 @@ -TDAT: private void buildStorageList(){ - if(storageList == null){ - storageList = new ArrayList<List<ConfigElem>>(); - - int all = ImageCanvas.POINT_NUM*ImageCanvas.POINT_NUM; - for(int i = 0; i < all; i++){ - storageList.add(new ArrayList<ConfigElem>()); - } - - int index, x, y; - for(ConfigElem elem: elemList){ - x = elem.getWaterNum(); - y = elem.getHexanolNum(); - index = ImageCanvas.POINT_NUM*y + x; - - storageList.get(index).add(elem); - } - } - } - COM: <s> build the list of lists of configuration element which contains all </s> - diff --git a/funcom_test/960717.txt b/funcom_test/960717.txt deleted file mode 100644 index 9cde9dca34a475b2ed7fc261599fa01b351f9d70..0000000000000000000000000000000000000000 --- a/funcom_test/960717.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: private String buildHttpParameters(List<NameValuePair> parameters) { - StringBuilder b = new StringBuilder(); - boolean isFirst = true; - for (NameValuePair parameter : parameters) { - String n = parameter.getName(); - String v = parameter.getValue(); - b.append((isFirst ? "?" : "&") + n + (v != null && !v.trim().equals("") ? "=" + v : "")); - isFirst = false; - } - return b.toString(); - } - COM: <s> build the parameter lists in the form param1 value1 param2 value2 </s> - diff --git a/funcom_test/960722.txt b/funcom_test/960722.txt deleted file mode 100644 index a4321a812b0e416c93afd440df654858a21c1aab..0000000000000000000000000000000000000000 --- a/funcom_test/960722.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private void createHttpClient(String hostName, int port) { - this.httpClient = new DefaultHttpClient(); - /* handling sending via a proxy */ - if (hostName != null) { - HttpHost httpHost = new HttpHost(hostName, port); - this.httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, httpHost); - } - } - COM: <s> create the http client for use by the horizon tools methods </s> - diff --git a/funcom_test/962231.txt b/funcom_test/962231.txt deleted file mode 100644 index b570de01ace0e7366bd366c21645f194e21d176b..0000000000000000000000000000000000000000 --- a/funcom_test/962231.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public Manager connectManager(String email, String pwd)throws IllegalAuthenticationException{ - - try{ - return managerDAO.findManagerByEmailPassword(email, pwd); - }catch(IllegalAuthenticationException noR){ - noR.printStackTrace(); - throw new IllegalAuthenticationException("Aucun utilisateur trouvé!"); - } - } - COM: <s> authentification de lutilisateur gestionnaire </s> - diff --git a/funcom_test/9773879.txt b/funcom_test/9773879.txt deleted file mode 100644 index 2af0661e14a414f1900dd5d7fed4a4464a3cc860..0000000000000000000000000000000000000000 --- a/funcom_test/9773879.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void decodeLine ( String line ) { - String key, val; - int pos = line.indexOf ( ':' ); - key = line.substring ( 0, pos ).trim (); - val = line.substring ( pos + 1 ).trim (); - setHeader ( key, val ); - if ( key.equals ( cookieHeader ) ) decodeCookie ( val ); - } - COM: <s> decodes the incoming line </s> - diff --git a/funcom_test/9795137.txt b/funcom_test/9795137.txt deleted file mode 100644 index f823b513684dfb790532359cadf6f61c45d89c47..0000000000000000000000000000000000000000 --- a/funcom_test/9795137.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public boolean isPageComplete() { - if (geologName.getText().equals("")) return false; -// else if (abstractModelName.getText().equals("")) return false; - else if (interpretButton.getSelection() && locationPathField.getText().equals("")) return false; - else return true; -} - COM: <s> sets the completed field on the wizard class when all the information </s> - diff --git a/funcom_test/9795348.txt b/funcom_test/9795348.txt deleted file mode 100644 index 813cd90d21eac825361e8bac08aead5cc69f8409..0000000000000000000000000000000000000000 --- a/funcom_test/9795348.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void close(boolean save) { - m_Table.m_CellEditor = null; - // m_Control.setVisible(false); - GC gc = new GC(m_Table); - m_Table.drawCell(gc, m_Col, m_Row); - gc.dispose(); - this.dispose(); - } - COM: <s> deactivates the editor </s> - diff --git a/funcom_test/9795638.txt b/funcom_test/9795638.txt deleted file mode 100644 index e7e5a0cfb94758031b3e752dc6bfece6260573e7..0000000000000000000000000000000000000000 --- a/funcom_test/9795638.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected void addNodes(GenericObjectEditPart tablePart) { - Node n = new Node(tablePart); - n.width = tablePart.getFigure().getPreferredSize(400, 300).width; - n.height = tablePart.getFigure().getPreferredSize(400, 300).height; -// n.setPadding(new Insets(10, 8, 10, 12)); - partToNodesMap.put(tablePart, n); - graph.nodes.add(n); -} - COM: <s> adds nodes to the graph object for use by the graph layout manager </s> - diff --git a/funcom_test/9795653.txt b/funcom_test/9795653.txt deleted file mode 100644 index 85f344a2d5d1b1f617e1fca5608108ce50450a23..0000000000000000000000000000000000000000 --- a/funcom_test/9795653.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: private void setLayoutManager(IFigure container, LayoutManager layoutManager) { - container.setLayoutManager(layoutManager); - this.activeLayoutManager = layoutManager; - if (layoutManager == xyLayoutManager) gESEditPart.installEditPolicy(EditPolicy.LAYOUT_ROLE, new GESXYLayoutEditPolicy()); - else gESEditPart.installEditPolicy(EditPolicy.LAYOUT_ROLE, null); -} - COM: <s> sets the current active layout manager </s> - diff --git a/funcom_test/9795717.txt b/funcom_test/9795717.txt deleted file mode 100644 index cae2849bf1aa7e9a4233808a0d52492d433c6683..0000000000000000000000000000000000000000 --- a/funcom_test/9795717.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: // public void openEditorInFocus() { - // m_CellEditor = m_Model.getCellEditor(m_FocusCol, m_FocusRow); - // if (m_CellEditor != null) { - // Rectangle r = getCellRect(m_FocusCol, m_FocusRow); - // m_CellEditor.open(this, m_FocusCol, m_FocusRow, r); - // } - // } - COM: <s> this method activated the cell editor on the current focus cell if the </s> - diff --git a/funcom_test/9795947.txt b/funcom_test/9795947.txt deleted file mode 100644 index ef14681eba3e34774b3fe8b99353676cb28a19ed..0000000000000000000000000000000000000000 --- a/funcom_test/9795947.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public void setSelection(int col, int row, boolean scroll) { - if (col < columnCount - && col >= m_Model.getFixedColumnCount() - && row < rowCount - && row >= m_Model.getFixedRowCount()) { -// focusCell(col, row, 0); - if (scroll) { - scrollToFocus(); - } - } - } - COM: <s> selects the given cell </s> - diff --git a/funcom_test/9795972.txt b/funcom_test/9795972.txt deleted file mode 100644 index 4bd39018cc2b06c3f85d8c5221e5dbbd583c2fc4..0000000000000000000000000000000000000000 --- a/funcom_test/9795972.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public boolean isCellSelected(int col, int row) { - if (!m_MultiSelectMode) { - if (m_RowSelectionMode) - return (row == m_FocusRow); - return (col == m_FocusCol && row == m_FocusRow); - } - - if (m_RowSelectionMode) - return (m_Selection.get(new Integer(row)) != null); - else - return (m_Selection.get(new Point(col, row)) != null); - } - COM: <s> returns true if the given cell is selected </s> - diff --git a/funcom_test/9808159.txt b/funcom_test/9808159.txt deleted file mode 100644 index 69012f66c8def978d4b40944c594b17593e46159..0000000000000000000000000000000000000000 --- a/funcom_test/9808159.txt +++ /dev/null @@ -1,16 +0,0 @@ -TDAT: public void setDefaultLayout() { - TabWindow tabWindow = new TabWindow(views); - - rootWindow.setWindow(new SplitWindow(true, 0.3f, new SplitWindow(false, - 0.7f, new TabWindow(new View[] { views[0], views[1] }), - views[2]), tabWindow)); - - WindowBar windowBar = rootWindow.getWindowBar(Direction.DOWN); - - while (windowBar.getChildWindowCount() > 0) - windowBar.getChildWindow(0).close(); - - windowBar.addTab(views[3]); - } - COM: <s> sets the default window layout </s> - diff --git a/funcom_test/9834213.txt b/funcom_test/9834213.txt deleted file mode 100644 index 6d5c28ae29182df17e44d382503f98c5720ccdbc..0000000000000000000000000000000000000000 --- a/funcom_test/9834213.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: @Override protected FaceletHandler doCompile(URL src, String alias) throws IOException, FaceletException, ELException, FacesException { - if (src == null) return null; - if (alias.endsWith(".xhtml")) return this.handleNonGraceletCompileRequest(src, alias); - return this.getGraceletHandler(new GraceletURLSource(src), alias); - } - COM: <s> this is the point at which it intercepts the request </s> - diff --git a/funcom_test/9834246.txt b/funcom_test/9834246.txt deleted file mode 100644 index a49d10d276b286f207c4c377575618ba5f38b1e6..0000000000000000000000000000000000000000 --- a/funcom_test/9834246.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public boolean isRecompileNeeded () { - if (tree == null) return true; - if (GraceletContext.getInstance().isEalierThanSources(lastBuild)) return true; - if (this.src != null) - return this.src.isModifiable() && - this.src.isReloadable() && - this.src.hasBeenModified(); - return false; - } - COM: <s> this will check to see if the config stack needs to be rebuilt </s> - diff --git a/funcom_test/9834260.txt b/funcom_test/9834260.txt deleted file mode 100644 index cdde44a6ef1e1ccbb71cc738bb02aa924e4d1d5e..0000000000000000000000000000000000000000 --- a/funcom_test/9834260.txt +++ /dev/null @@ -1,8 +0,0 @@ -TDAT: public String getSourceName() { - if (this.sourceName == null) { - this.sourceName = this.isPageView() ? alias.replaceAll("[^0-9A-Za-z_]", "_") : GraceletContext.getInstance().getCompiler().getUniqueClassName(src, alias); - } - return this.sourceName; - } - COM: <s> the source name is used by expression closure system to relate a closure </s> - diff --git a/funcom_test/9834278.txt b/funcom_test/9834278.txt deleted file mode 100644 index 6b9d82fca887eb26209795e2d928fe7db13e4bef..0000000000000000000000000000000000000000 --- a/funcom_test/9834278.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: protected URL getRelativePath(String path) throws IOException { - URL url = (URL) this.relativePaths.get(path); - if (url == null) { - url = this.factory.resolveURL(this.src.toURL(), path); - this.relativePaths.put(path, url); - } - return url; - } - COM: <s> delegates resolution to default facelet factory reference </s> - diff --git a/funcom_test/9834431.txt b/funcom_test/9834431.txt deleted file mode 100644 index a4f8d0b3af859f2e78cdb6658570d164dcb8af62..0000000000000000000000000000000000000000 --- a/funcom_test/9834431.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public GraceletPhaseListener () { - if (singleton != null) throw new IllegalStateException("You must have a singel gracelets jar for each application"); - singleton = this; - - String impl = getClass().getPackage().getImplementationVersion(); - log.info("Welcome to Gracelets" + (impl == null ? "" : " " + impl)); - - this.searchForGraceletComponents(); - } - COM: <s> in the constructor we do our initial search for component libraries node </s> - diff --git a/funcom_test/9834455.txt b/funcom_test/9834455.txt deleted file mode 100644 index 01d3383911fbe3eeab501fd311eb67637589167e..0000000000000000000000000000000000000000 --- a/funcom_test/9834455.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: protected void initializeControllers () { - if (this.controllers == null) { - this.controllers = new HashMap<String, GraceletController>(); - for (GraceletSource src : ctrlSources) { - log.info("Initializing controller: " + src.getName()); - this.initializeController( new GraceletController(this.getCompiler().getClassLoader(), src) ); - } - for (Class clazz : this.ctrlClasses) { - this.initializeController( new GraceletCompiledController(clazz) ); - } - } - } - COM: <s> if the controllers have not been initialized for this application </s> - diff --git a/funcom_test/9834531.txt b/funcom_test/9834531.txt deleted file mode 100644 index 59bfc498cb7fbc948fbf5a7c9ce23db53eea6a9d..0000000000000000000000000000000000000000 --- a/funcom_test/9834531.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: protected void initializeLibraries () { - if (this.libraries == null) { - synchronized (this) { - this.libraries = new DynamicCompositeTagLibrary(); - for (URL url : libSources) this.compileLibrary(url); - for (Class clazz : libClasses) { - try { - URL url = new URL("http://library/" + clazz.getName()); - this.compileLibrary(url, clazz); - } catch (MalformedURLException e) { - log.error("Could not create component library for clazz: " + clazz, e); - } - } - } - } - } - COM: <s> if the gracelet component libraries have not been initialized for this application </s> - diff --git a/funcom_test/9834800.txt b/funcom_test/9834800.txt deleted file mode 100644 index 089619b96d41fcffb1ec4c71e962dfebb0eeeb3b..0000000000000000000000000000000000000000 --- a/funcom_test/9834800.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void afterPhase(PhaseEvent evt) { - if (evt.getPhaseId() == PhaseId.RESTORE_VIEW) { - this.recompileSourcesIfNecesary(); - } - - this.executeGraceletClosure(evt.getFacesContext(), evt.getPhaseId(), GraceletPhaseClosure.Type.AFTER); - this.executeHooks(evt.getPhaseId(), false); - if (evt.getPhaseId() == PhaseId.RENDER_RESPONSE) this.cleanupGracelet(); - } - COM: <s> here we execute the page level after phase closures if any </s> - diff --git a/funcom_test/9834828.txt b/funcom_test/9834828.txt deleted file mode 100644 index 8d4735b28e5d0fa1029ac2871b015541bb2eef70..0000000000000000000000000000000000000000 --- a/funcom_test/9834828.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public void initialize (FacesContext ctx) { - if (!this.initialized && this.getCompiler() != null) { - synchronized (this) { - this.postInitializeExtensions(ctx, this.getCompiler()); - this.initializeControllers(); - this.navigationRules = new NavigationScript().createRuleSet(this.getCompiler().getClassLoader(), ctx); - this.initialized = true; - } - } - } - COM: <s> this is called by the compiler interceptor in order to initialize </s> - diff --git a/funcom_test/9842463.txt b/funcom_test/9842463.txt deleted file mode 100644 index d632603941a3d840cdac092d56fe84f451666484..0000000000000000000000000000000000000000 --- a/funcom_test/9842463.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: public void print (Object o) { - if (this.getCurrent() instanceof ItextParentObject) { - this.push(new OutputText(((ItextParentObject)this.getCurrent()), String.valueOf(o), false)); - this.pop(); - } else { - throw new IllegalArgumentException("Cannot print() on this object: " + this.getCurrent()); - } - } - COM: <s> this will pass the object to print onto the current element </s> - diff --git a/funcom_test/9842674.txt b/funcom_test/9842674.txt deleted file mode 100644 index f0581f66b14337a1fb1381c943c2ed4bc3bfbf1a..0000000000000000000000000000000000000000 --- a/funcom_test/9842674.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void associate(GroovyBuilder<T> builder, ObjectFactoryInterceptor<T> ofi, T child, T parent) { - if (parent != null) { - MetaClass pmc = InvokerHelper.getMetaClass(child.getClass()); - pmc.invokeMethod(parent, "addChild", new Object[] { parent }); - } - - MetaClass cmc = InvokerHelper.getMetaClass(child.getClass()); - cmc.invokeMethod(child, "setParent", new Object[] { parent }); - } - COM: <s> this will assume that parent nodes will have a method called add child </s> - diff --git a/funcom_test/9842688.txt b/funcom_test/9842688.txt deleted file mode 100644 index bb079d756a8a2c74aa95996f905f9efb78230e21..0000000000000000000000000000000000000000 --- a/funcom_test/9842688.txt +++ /dev/null @@ -1,7 +0,0 @@ -TDAT: public void applyAttributes(GroovyBuilder<T> builder, ObjectFactoryInterceptor<T> ofi, String nodeName, T instance, Map<Object, Object> attributes) { - MethodDescriptor apply = this.getAttributeApplicator(instance.getClass()); - if (apply != null) this.invoke(apply, instance, attributes); - else super.applyAttributes(builder, ofi, nodeName, instance, attributes); - } - COM: <s> this will see if there is a </s> - diff --git a/funcom_test/9845319.txt b/funcom_test/9845319.txt deleted file mode 100644 index 8ff8fb1b08869b29ef0d01c915059ad4b593814e..0000000000000000000000000000000000000000 --- a/funcom_test/9845319.txt +++ /dev/null @@ -1,13 +0,0 @@ -TDAT: public Class getScriptClass () { - if (this.scriptClass == null) { - try { - this.scriptClass = Gracelets.getGraceletCompiler().recompile(this); - this.scriptName = this.scriptClass.getName(); - } catch (Exception e) { - throw new RuntimeException("Error compiling script class: " + this.src, e); - } - } - return this.scriptClass; - } - COM: <s> this will also attempt to detect source changes and recompile if necesary </s> - diff --git a/funcom_test/9846891.txt b/funcom_test/9846891.txt deleted file mode 100644 index 31b295d6e47ee9c6bced4bdb6a67316d454d5c62..0000000000000000000000000000000000000000 --- a/funcom_test/9846891.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public String getSpecificControlledClass () { - if (this.controlledClass == null) { - MetaClass mc = InvokerHelper.getMetaClass(this.getObjectClass()); - MetaProperty mp = mc.getMetaProperty("controls"); - if (mp != null && Modifier.isStatic( mp.getModifiers() )) { - this.controlledClass = (String) mp.getProperty(null); - } else { - this.controlledClass = ""; - } - } - return this.controlledClass; - } - COM: <s> this is not yet fully implemented </s> - diff --git a/funcom_test/9846957.txt b/funcom_test/9846957.txt deleted file mode 100644 index 6f81064d30c4edc69cff4c51508e189317c18337..0000000000000000000000000000000000000000 --- a/funcom_test/9846957.txt +++ /dev/null @@ -1,6 +0,0 @@ -TDAT: public void include (Closure closure) { - GraceletBuilderSource src = GraceletBuilderContext.instance().getBuilderSource(); - this.simulateNode("include", new GraceletClosureSource (src.getSource(), src.getSourceName() + "_" + Integer.toHexString( closure.hashCode() ), new ContextClosure( closure )), null); - } - COM: <s> this allows a closure to produce build time gracelet source code </s> - diff --git a/funcom_test/9846969.txt b/funcom_test/9846969.txt deleted file mode 100644 index 1c1148bbb076c4ccfff77d3f166e9c80c7426340..0000000000000000000000000000000000000000 --- a/funcom_test/9846969.txt +++ /dev/null @@ -1,14 +0,0 @@ -TDAT: public void print (ResponseWriter writer, Object data) throws IOException { - GraceletBuilderContext ctx = GraceletBuilderContext.instance(); - if (ctx != null && ctx.isBuilding()) { - ctx.getPrinter().print(data); - } else { - if (writer != null) { - writer.write(String.valueOf(data)); - } else { - log.warn("Could not find contextual writer for: " + data); - } - } - } - COM: <s> if we are in a building process print to the </s> - diff --git a/funcom_test/9847617.txt b/funcom_test/9847617.txt deleted file mode 100644 index f545caa862d925fa357a90daae5ed05e23665756..0000000000000000000000000000000000000000 --- a/funcom_test/9847617.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: private void renderChild (FacesContext ctx, UIComponent comp) throws IOException { - if (!comp.isRendered()) return; - comp.encodeBegin(ctx); - if (comp.getRendersChildren()) { - comp.encodeChildren(ctx); - } else { - for (UIComponent child : comp.getChildren()) this.renderChild(ctx, child); - } - comp.encodeEnd(ctx); - } - COM: <s> facility method for rendering the children </s> - diff --git a/funcom_test/9915507.txt b/funcom_test/9915507.txt deleted file mode 100644 index 33c011e3c24537d3682af9a90883c3d49e72fc09..0000000000000000000000000000000000000000 --- a/funcom_test/9915507.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void setRootId(long rootId) throws SQLException { - meta.setRootId(rootId); - if (write && (resultSet != null)) { - resultSet.updateBytes(RTreeDml.NODE_DATA_COL, meta.getData()); - resultSet.updateRow(); - } else { - throw new SQLException ("Lock closed or not writable"); - } - } - COM: <s> set the id of the index root node </s> - diff --git a/funcom_test/9915601.txt b/funcom_test/9915601.txt deleted file mode 100644 index 1997003e827d4b32569e4501e4e4c9a29064ee4d..0000000000000000000000000000000000000000 --- a/funcom_test/9915601.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void sqlFrom(StringBuffer sql, String typeName) { - sql.append(" FROM "); - if (encoder instanceof HatBoxFilterToSQL) { - HatBoxFilterToSQL hatboxEncoder = (HatBoxFilterToSQL)encoder; - sql.append(encoder.escapeName(hatboxEncoder.getCatalogue().getSchema())); - sql.append('.'); - } - sql.append(encoder.escapeName(typeName)); - } - COM: <s> constructs the from clause for a feature type </s> - diff --git a/funcom_test/9924358.txt b/funcom_test/9924358.txt deleted file mode 100644 index 361589491c3a505b4a63db84c23a5ee4618eb16c..0000000000000000000000000000000000000000 --- a/funcom_test/9924358.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public String parse(String[] whois) { - for (int i = 0; i < whois.length; ++i) { - /* ARIN, RIPE, LACNIC, APNIC */ - if (whois[i].startsWith("country:") || whois[i].startsWith("Country:")) { - return whois[i].substring(8).trim().toLowerCase(); - } - } - return null; - } - COM: <s> attempts to extract the country name of a string array that </s> - diff --git a/funcom_test/9924435.txt b/funcom_test/9924435.txt deleted file mode 100644 index 98966cfb167181c20a84c09940a4685f6434399d..0000000000000000000000000000000000000000 --- a/funcom_test/9924435.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: public String toString(Locale locale) throws MissingResourceException { - String message; - if (params == null) { - message = Localization.getString(bundleName, locale, messageID); - } - else { - message = Localization.formatString(bundleName, locale, messageID, params); - } - return message; - } - COM: <s> return a messsage that is localized for the specific locale </s> - diff --git a/funcom_test/9924438.txt b/funcom_test/9924438.txt deleted file mode 100644 index 20d37414a9b325f3a3763e98a11f9782cc55a4f4..0000000000000000000000000000000000000000 --- a/funcom_test/9924438.txt +++ /dev/null @@ -1,18 +0,0 @@ -TDAT: public FileField patternAt(long pos) { - if (fields == null) { - return null; - } - - long rest = pos % blockSize; - - long size = 0; - for (int i = 0; i < fields.length; ++i) { - if (size + fields[i].getSize() > rest) { - return fields[i]; - } - size += fields[i].getSize(); - } - return null; - } - COM: <s> returns the pattern of a given position </s> - diff --git a/funcom_test/9924450.txt b/funcom_test/9924450.txt deleted file mode 100644 index d9550af9c6e65e12762dd506306e20824b332d67..0000000000000000000000000000000000000000 --- a/funcom_test/9924450.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public int compare(byte[] tempBuffer, byte[] pattern) { - for (int i = 0; i < tempBuffer.length; i++) { - int diff = (tempBuffer[i] & 0x000000FF) - (pattern[i] & 0x000000FF); - if (diff != 0) { - return diff; - } - } - return 0; - } - COM: <s> compares a temporary buffer read in from disk to the pattern </s> - diff --git a/funcom_test/9924462.txt b/funcom_test/9924462.txt deleted file mode 100644 index b1b48c52f44443d37e79c69ce5ff6fec61fe9f69..0000000000000000000000000000000000000000 --- a/funcom_test/9924462.txt +++ /dev/null @@ -1,12 +0,0 @@ -TDAT: protected void paintLogo(Graphics g) { - if (logo == null) { - return; - } - int width = logo.getWidth(null); - int height = logo.getHeight(null); - int x = getWidth() - width - (width >> 1); - int y = (getHeight() - height) >> 1; - g.drawImage(logo, x, y, width, height, null, null); - } - COM: <s> paints the icon </s> - diff --git a/funcom_test/9924467.txt b/funcom_test/9924467.txt deleted file mode 100644 index e0b2239736adce40531268b722b9ed6e9d84b8f0..0000000000000000000000000000000000000000 --- a/funcom_test/9924467.txt +++ /dev/null @@ -1,9 +0,0 @@ -TDAT: protected void center(Component cmp) { - Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize(); - Rectangle frameDim = cmp.getBounds(); - cmp.setLocation( - (screenDim.width - frameDim.width) / 2, - (screenDim.height - frameDim.height) / 2); - } - COM: <s> centers a component </s> - diff --git a/funcom_test/9977798.txt b/funcom_test/9977798.txt deleted file mode 100644 index e94290cb54f76fc4856630561595fa924662dd7a..0000000000000000000000000000000000000000 --- a/funcom_test/9977798.txt +++ /dev/null @@ -1,10 +0,0 @@ -TDAT: private JSplitPane getVerticalSplitPane() { - if (verticalSplitPane == null) { - verticalSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); - verticalSplitPane.setTopComponent(getHorizontalSplitPane()); - verticalSplitPane.setBottomComponent(getDiagram()); - } - return verticalSplitPane; - } - COM: <s> this method initializes the vertical splitter </s> - diff --git a/funcom_test/9985738.txt b/funcom_test/9985738.txt deleted file mode 100644 index 2bf5586413dc62771896eec204b3873d7588a60c..0000000000000000000000000000000000000000 --- a/funcom_test/9985738.txt +++ /dev/null @@ -1,20 +0,0 @@ -TDAT: protected void cascadingCut( Node y ) { - Node z = y.m_parent; - - // if there's a parent... - if( z != null ) { - // if y is unmarked, set it marked - if( !y.m_mark ) { - y.m_mark = true; - } - else { - // it's marked, cut it from parent - cut( y, z ); - - // cut its parent as well - cascadingCut( z ); - } - } - } - COM: <s> performs a cascading cut operation </s> - diff --git a/funcom_test/9999950.txt b/funcom_test/9999950.txt deleted file mode 100644 index 81b6df0150bfab7c8facd061b78d05fa3ae32ec0..0000000000000000000000000000000000000000 --- a/funcom_test/9999950.txt +++ /dev/null @@ -1,11 +0,0 @@ -TDAT: public void abort(L2PcInstance activeChar) { - Announcements _an = Announcements.getInstance(); - _log.warning("GM: "+activeChar.getObjectId()+" issued shutdown ABORT. " + _modeText[shutdownMode] + " has been stopped!"); - _an.announceToAll("Server aborts " + _modeText[shutdownMode] + " and continues normal operation!"); - - if (_counterInstance != null) { - _counterInstance._abort(); - } - } - COM: <s> this function aborts a running countdown </s> - diff --git a/funcom_train.tar.gz b/funcom_train.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..552ca52352c8c3e1760f5599a0f2422a6fd51df9 --- /dev/null +++ b/funcom_train.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9837a03fe8fef96b2ff1c14f4841f07237489846912687bb8d1b9ee61f3df90 +size 30735247 diff --git a/funcom_val.tar.gz b/funcom_val.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ee34193f9221cc433261da90ea76021f1689b461 --- /dev/null +++ b/funcom_val.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21695274f6329a7db30d46d68aa307fdd7878dd5dab19466c0feba8aa38c8721 +size 1592015