WikiExtractor icon indicating copy to clipboard operation
WikiExtractor copied to clipboard

update the constant name and imports

Open ai-naymul opened this issue 2 years ago • 22 comments

Constants name is transformed into all uppercase and remove an unimportant comment in import and removed some unimportant imports in urllib module.

ai-naymul avatar Sep 03 '23 06:09 ai-naymul

I can't quite see what this change achieves, @jonorthwash I think you'll have to decide if it's something we want

unhammer avatar Sep 04 '23 07:09 unhammer

I can't quite see what this change achieves, @jonorthwash I think you'll have to decide if it's something we want

would you like to add Multiprocessing or Multithreading to speed up the extraction peocess or Logging functionality in the project?

ai-naymul avatar Sep 04 '23 16:09 ai-naymul

@ai-naymul, you accidentally inverted the deletion in the commit. You kept all the files that we wanted gone, and removed the one file that had real changes.

TinoDidriksen avatar Sep 04 '23 16:09 TinoDidriksen

@ai-naymul, you accidentally inverted the deletion in the commit. You kept all the files that we wanted gone, and removed the one file that had real changes.

@TinoDidriksen I am extremely sorry for that, What should I do now, could you please suggest me?

ai-naymul avatar Sep 04 '23 16:09 ai-naymul

Roll back your commit and remove the other files.

TinoDidriksen avatar Sep 04 '23 16:09 TinoDidriksen

Roll back your commit and remove the other files.

@TinoDidriksen How can I do that could you please help me or should I made another pr?

ai-naymul avatar Sep 05 '23 07:09 ai-naymul

Undo commit 547c64244d5c985e96a40f0becec3eb054b1a7e2 and remove the .idea folder instead.

TinoDidriksen avatar Sep 05 '23 08:09 TinoDidriksen

Undo commit 547c64244d5c985e96a40f0becec3eb054b1a7e2 and remove the .idea folder instead.

@TinoDidriksen You mean I should revert the commit remove all those .idea files...?

Screenshot_1

Like that...

Screenshot_2

ai-naymul avatar Sep 05 '23 10:09 ai-naymul

Something like that, yes. The changeset should only be changes to WikiExtractor.py - we don't want any generated files added, especially not IDE-specific ones.

TinoDidriksen avatar Sep 05 '23 10:09 TinoDidriksen

Something like that, yes. The changeset should only be changes to WikiExtractor.py - we don't want any generated files added, especially not IDE-specific ones.

Okay then let me make the revert, Thanks a lot for your help❤

ai-naymul avatar Sep 05 '23 10:09 ai-naymul

Something like that, yes. The changeset should only be changes to WikiExtractor.py - we don't want any generated files added, especially not IDE-specific ones.

I have made an another commit could you please check that give me feedback?

ai-naymul avatar Sep 05 '23 10:09 ai-naymul

You didn't revert everything from the commit. You need to go back to commit https://github.com/ai-naymul/WikiExtractor/commit/0f313a9dbd59c8a2d1d25e61f10e2ffbf5989290 and remove the .idea folder from that state.

TinoDidriksen avatar Sep 05 '23 11:09 TinoDidriksen

You didn't revert everything from the commit. You need to go back to commit ai-naymul@0f313a9 and remove the .idea folder from that state.

Should I make another commit in this regarding there are some error is troughing while I tried to delete the whole idea file?

ai-naymul avatar Sep 05 '23 13:09 ai-naymul

@ai-naymul As it stands now, your pull request makes literally 0 changes. Additionally, it's still not clear what was gained by the original change. What is the value of renaming those variables and very slightly reformatting the import lines?

mr-martian avatar Sep 05 '23 13:09 mr-martian

Whether you add a 4th commit with the actual changes, or rewrite history to remove some commits and then remove the folder, is really up to you. If we merge, we'll squash it in so it looks like a single commit anyway.

TinoDidriksen avatar Sep 05 '23 13:09 TinoDidriksen

@ai-naymul As it stands now, your pull request makes literally 0 changes. Additionally, it's still not clear what was gained by the original change. What is the value of renaming those variables and very slightly reformatting the import lines?

It helps to read the code better but however If think It's not worthy you can closed the PR and if you like I would love to work on another things to improve the project :)

ai-naymul avatar Sep 05 '23 13:09 ai-naymul

No, you misunderstand. Right now, this PR literally does nothing. There are no changes in https://github.com/apertium/WikiExtractor/pull/4/files - you've managed to remove everything, not just the .idea folder.

TinoDidriksen avatar Sep 05 '23 15:09 TinoDidriksen

No, you misunderstand. Right now, this PR literally does nothing. There are no changes in https://github.com/apertium/WikiExtractor/pull/4/files - you've managed to remove everything, not just the .idea folder.

What should I do now?

ai-naymul avatar Sep 07 '23 10:09 ai-naymul

I repeat: You need to go back to commit https://github.com/ai-naymul/WikiExtractor/commit/0f313a9dbd59c8a2d1d25e61f10e2ffbf5989290 and remove the .idea folder from that state.

TinoDidriksen avatar Sep 07 '23 10:09 TinoDidriksen

I repeat: You need to go back to commit ai-naymul@0f313a9 and remove the .idea folder from that state.

Bro I mean how can I delete the folder from that commit could you please give me some guide to make that, I will be very gratefull for that... :)

ai-naymul avatar Sep 07 '23 10:09 ai-naymul

Something like:

git reset --hard 0f313a9dbd59c8a2d1d25e61f10e2ffbf5989290
rm -rf .idea
git commit --all -m "Removed folder"
git push -f

TinoDidriksen avatar Sep 07 '23 10:09 TinoDidriksen

Something like:

git reset --hard 0f313a9dbd59c8a2d1d25e61f10e2ffbf5989290
rm -rf .idea
git commit --all -m "Removed folder"
git push -f

@TinoDidriksen Is that fine now?

ai-naymul avatar Sep 07 '23 15:09 ai-naymul