Giter Club home page Giter Club logo

Comments (7)

gr2m avatar gr2m commented on May 16, 2024

yeah sounds good :)

from ideas.

Ikuyadeu avatar Ikuyadeu commented on May 16, 2024

@gr2m Thank you for interest.
I published https://github.com/Ikuyadeu/similar-code-searcher

GitHub
Contribute to similar-code-searcher development by creating an account on GitHub.

It works in Ikuyadeu/similar-code-searcher#1 like screenshot

Current TODO is

  • It detects same code that changed in Pull Request -> extract only not changed files
  • It can search only current repository, if you don't have the similar code it would not work. -> Search from all repository if the result is nothing

from ideas.

Ikuyadeu avatar Ikuyadeu commented on May 16, 2024

I published prototype on https://github.com/apps/similar-code-searcher

GitHub
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.

from ideas.

gr2m avatar gr2m commented on May 16, 2024

hey I think this could be really useful, but Iā€™m not yet how it works :) I looked at Ikuyadeu/similar-code-searcher#1

I would expect a comment to other open pull requests that change the same files / lines like my own pull request to make me aware of the others? Is that what you want to do or something else?

from ideas.

Ikuyadeu avatar Ikuyadeu commented on May 16, 2024

@gr2m Thank you for the feedback! I think your idea is a very interesting function.

However, it is different to Similar Code Searcher
In my submitted proposal, it is called Synchronous Change File Suggester.
And it can extend duplicate-issues to duplicate-pulls.
I think Synchronous Change File Suggester can be merged with Similar Code Searcher.

Implementing Synchronous Change File Suggester has two way,

  1. Learn past pull requests and suggestions by using association rule mining
  2. Just search a pull request that changed same file or line

The first plan looks useful for detect project specific patterns.
The second plan is easy to implement.

In my plan, first, fix current Similar Code Searcher bugs.
Second, implement Synchronous Change File Suggester.
Finally, merge two functions.

from ideas.

gr2m avatar gr2m commented on May 16, 2024

Thanks for explaining, sounds good :)

from ideas.

Ikuyadeu avatar Ikuyadeu commented on May 16, 2024

Thank you too šŸ˜„

from ideas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.