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
380c2380fc
change path to ironspeed
3 years ago
a983abeaea
Add support for loading issues and files from external files (#31)
3 years ago
ef00c4a117
update .travis to use python 3.8 (#27)
3 years ago
34c6cbbc5a
remove misbehaving keywords
3 years ago
fcfb2a4731
store zip in dvc cache instead of unzipped files
3 years ago
a983abeaea
Add support for loading issues and files from external files (#31)
3 years ago
a983abeaea
Add support for loading issues and files from external files (#31)
3 years ago
a983abeaea
Add support for loading issues and files from external files (#31)
3 years ago
a983abeaea
Add support for loading issues and files from external files (#31)
3 years ago
ef00c4a117
update .travis to use python 3.8 (#27)
3 years ago
af1299d618
Update README.rst
3 years ago
a983abeaea
Add support for loading issues and files from external files (#31)
3 years ago
a983abeaea
Add support for loading issues and files from external files (#31)
3 years ago
80cc6772f7
run dvc repro and update stats after breaking down test dataset into 3 datasets
3 years ago
80cc6772f7
run dvc repro and update stats after breaking down test dataset into 3 datasets
3 years ago
c7fdfaf034
Reorganize heuristics (#30)
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
  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 -r requirements.txt`` (Python 3.8 or higher is required)
  15. Running the code and reproducing the models
  16. ===========================================
  17. Using DVC (Data Version Control) - preferred
  18. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19. #. Install dvc_ for your OS
  20. #. Install p7zip_ for your OS
  21. #. 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::
  22. [core]
  23. remote = ironspeed
  24. ['remote "ironspeed"']
  25. url = ssh://10.10.20.160/home/hbabii/.dvcstorage/bohr
  26. user = <username>
  27. password = <password>
  28. #. Run ``dvc pull -r ironspeed data/test downloaded-data/b_b.7z``
  29. #. Run ``dvc repro``
  30. .. _dvc: https://dvc.org/doc/install
  31. .. _p7zip: https://www.7-zip.org
  32. .. _conda: https://docs.anaconda.com/anaconda/install/
  33. Without DVC
  34. ~~~~~~~~~~~
  35. TBA
  36. EDIT TEXT BELOW WITH UPDATED STEPS >>>
  37. Contribute to the project by adding your first heuristic:
  38. ===========================================================
  39. #. 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.
  40. #. 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``)
  41. #. Run ``dvc repro`` to recalculate the metrics or (if not using DVC) rerun the scripts in ``bohr/pipeline`` package manually
  42. #. Commit and push the changes together with the changed metric files.
  43. See this commit_ as an example of how a heuristic can be added.
  44. .. _commit : https://github.com/giganticode/bohr/commit/6928dfd750d304ca4610dbba4216f6e94375e4a7
  45. Credits
  46. =======
  47. 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...