Skip to content

Instantly share code, notes, and snippets.

@whitequark
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whitequark/6dbcc5a6956bae57fecd to your computer and use it in GitHub Desktop.
Save whitequark/6dbcc5a6956bae57fecd to your computer and use it in GitHub Desktop.
Does rails/activeform plagiarize apotonick/reform?

No.

Manual examination revealed little similarities in code structure. Not content with that, I decided to also verify it algorithmically.

I used Sherlock for testing. Specifically I did this:

git clone https://github.com/rails/activeform
git clone https://github.com/apotonick/reform
./sherlock -t 10% `find activeform -name *.rb` `find reform -name *.rb` \
  | grep activeform | grep reform >results.txt

There are a few false positives and a few similarities between tiny tests. That is all.

activeform/test/dummy/app/forms/user_form.rb and reform/test/contract_test.rb: 14%
activeform/test/dummy/app/forms/user_form.rb and reform/test/dummy/app/forms/album_form.rb: 16%
activeform/test/dummy/config/application.rb and reform/test/dummy/config/application.rb: 14%
activeform/test/dummy/config/initializers/filter_parameter_logging.rb and reform/test/dummy/config/application.rb: 25%
activeform/test/dummy/config/environments/development.rb and reform/test/dummy/config/environments/development.rb: 17%
activeform/test/dummy/config/environments/production.rb and reform/test/dummy/config/environments/production.rb: 16%
activeform/test/dummy/config/environments/test.rb and reform/test/dummy/config/environments/test.rb: 32%
activeform/test/forms/user_with_email_and_profile_form_fixture.rb and reform/test/contract_test.rb: 14%
activeform/test/forms/user_with_email_and_profile_form_fixture.rb and reform/test/dummy/app/forms/album_form.rb: 16%
activeform/test/forms/user_with_email_form_fixture.rb and reform/test/contract_test.rb: 14%
activeform/test/forms/user_with_email_form_fixture.rb and reform/test/dummy/app/forms/album_form.rb: 16%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment