Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  git github
bb85d9f98c
use actarus and actarus-http (read-only) instead of gdrive (#127)
3 years ago
525608efa3
Rollback to nier 2021 version of heuristics (#143)
3 years ago
f296f2e06b
use v 0.1 of bohr framework (#135)
3 years ago
bin
7362f99f1a
bohr config software_path $SOFTWARE_DIR
3 years ago
d80616d5b6
Refactor structure of downloaded-data and data dirs (#92)
3 years ago
dc6ddec90f
Fix smells pre-processing script (#93)
3 years ago
f296f2e06b
use v 0.1 of bohr framework (#135)
3 years ago
3 years ago
c1b340bdc0
remove .DS_Store files
3 years ago
525608efa3
Rollback to nier 2021 version of heuristics (#143)
3 years ago
525608efa3
Rollback to nier 2021 version of heuristics (#143)
3 years ago
fabe65b8c3
move bohr-framework to a separate repo (#131)
3 years ago
fabe65b8c3
move bohr-framework to a separate repo (#131)
3 years ago
525608efa3
Rollback to nier 2021 version of heuristics (#143)
3 years ago
f296f2e06b
use v 0.1 of bohr framework (#135)
3 years ago
cd001e03fe
add setup-bohr script
3 years ago
f2b487f68f
WIP #76: restructure the repo into framework and other (#90)
3 years ago
c0d7b19c38
Add support for external-tool-output heuristic + add RefactoringMiner (#100)
3 years ago
fabe65b8c3
move bohr-framework to a separate repo (#131)
3 years ago
8dd7c80d2e
Pylint - black compatibility (#80)
3 years ago
5cbb8ede96
Fix reproduce action (#113)
3 years ago
7f11f72192
use setup-bohr script for travis build
3 years ago
b28a1b48f2
add license (#118)
3 years ago
ea9511e821
Update README.rst
3 years ago
f296f2e06b
use v 0.1 of bohr framework (#135)
3 years ago
525608efa3
Rollback to nier 2021 version of heuristics (#143)
3 years ago
f296f2e06b
use v 0.1 of bohr framework (#135)
3 years ago
fabe65b8c3
move bohr-framework to a separate repo (#131)
3 years ago
f0a84ba0d2
Add pylint and fix some warnings (#78)
3 years ago
fabe65b8c3
move bohr-framework to a separate repo (#131)
3 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.rst

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  1. BOHR
  2. ----------------------------------
  3. Big Old Heuristic Repository
  4. Getting started
  5. ===========================================
  6. Install Anaconda/Miniconda
  7. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8. #. Install conda_ [Skip this step if you already have conda installed]
  9. #. Create a virtual environment ``conda create --name <YOUR ENV NAME> python==3.8.0``
  10. #. Activate virtual environment ``conda activate <YOUR ENV NAME>``
  11. Get started with BOHR
  12. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. #. Run ``git clone https://github.com/giganticode/bohr && cd bohr``
  14. #. Run ``pip install --upgrade pip setuptools wheel`` (Python 3.8 or higher is required)
  15. #. Run ``pip install -r requirements.txt``
  16. Running the code and reproducing the models
  17. ===========================================
  18. Using DVC (Data Version Control) - preferred
  19. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. #. Install dvc_ for your OS
  21. #. Install p7zip_ for your OS
  22. #. Setting up datasource. Ironspeed users should create a file ``.dvc/config.local``. Dvc will check this file to know where datasets should be fetched from on the next step. It contains sensitive data, must not be committed, and is gitignored by default. The contents of the file should be the following::
  23. [core]
  24. remote = ironspeed
  25. ['remote "ironspeed"']
  26. url = ssh://10.10.20.160/home/hbabii/.dvcstorage/bohr
  27. user = <username>
  28. password = <password>
  29. #. Run ``dvc pull -r ironspeed data/test downloaded-data/b_b.7z``
  30. #. Run ``dvc repro``
  31. .. _dvc: https://dvc.org/doc/install
  32. .. _p7zip: https://www.7-zip.org
  33. .. _conda: https://docs.anaconda.com/anaconda/install/
  34. Without DVC
  35. ~~~~~~~~~~~
  36. TBA
  37. EDIT TEXT BELOW WITH UPDATED STEPS >>>
  38. Contribute to the project by adding your first heuristic:
  39. ===========================================================
  40. #. Define a function inside the ``bohr/heuristics/templates.py`` file and label it with @labeling_function() decorator. This heuristic can be reused later for different tasks.
  41. #. To use the newly created function to label commits for a specific task, add it to the ``heuristics`` list defined in ``bohr/heuristics/<task>/<label>.py`` (e.g., for the task of classification of bugfix commit for a bugfix commit, the file is ``bohr/heuristics/bugs/bugs.py``)
  42. #. Run ``dvc repro`` to recalculate the metrics or (if not using DVC) rerun the scripts in ``bohr/pipeline`` package manually
  43. #. Commit and push the changes together with the changed metric files.
  44. See this commit_ as an example of how a heuristic can be added.
  45. .. _commit : https://github.com/giganticode/bohr/commit/6928dfd750d304ca4610dbba4216f6e94375e4a7
  46. Credits
  47. =======
  48. This project is based on the work of `@lalenzos <https://github.com/lalenzos>`_ and partially uses his code.
Tip!

Press p or to see the previous file or, n or to see the next file

About

Big Old Heuristic Repository

Collaborators 1

Comments

Loading...