[ 
https://issues.apache.org/jira/browse/GEOMETRY-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743396#comment-17743396
 ] 

Gary D. Gregory commented on GEOMETRY-160:
------------------------------------------

"Yes, I used ChatGPT to generate the use-cases, because
I don't know when you would need to know the indices of occurence of an element"

Well, I'll give you props for being honest at least.

IMO, you are going about this 100% backward, if you can't state a use case for 
adding code, then it does not belong. Saying "I don't know" is better than 
using AI generated word salad.

If you want to contribute in general to Apache Commons, I would start to 
address issues in existing Jira tickets or GitHub issues. Don't use ChatGPT to 
attempt to justify dumping your code here. I'm not even sure if the code you 
want to add is authored by you or a generative AI.

Which is it?

> Implement getIndicesOfOccurenceOfElement(Vector x, double element)
> ------------------------------------------------------------------
>
>                 Key: GEOMETRY-160
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-160
>             Project: Commons Geometry
>          Issue Type: New Feature
>          Components: euclidean1D, euclidean2D, euclidean3D
>            Reporter: Dimitrios Efthymiou
>            Priority: Minor
>              Labels: features
>   Original Estimate: 5h
>  Remaining Estimate: 5h
>
> If we have a vector u = (2, 1, 3, 1, 7) and a number, say, 1 then it returns 
> a list of the indices 1 and 3



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to