Skip to content

Commit b64873f

Browse files
simonmeoniogirardot
authored andcommitted
🚚 Big Move: Move all files from ai-lembic to open-nlp repository
1 parent 8df4c19 commit b64873f

File tree

476 files changed

+48289
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+48289
-0
lines changed

.flake8

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[flake8]
2+
max-line-length = 100
3+
extend-ignore = E203
4+
per-file-ignores = **/__init__.py:F401
5+
exclude =
6+
.git,
7+
__pycache__,
8+
build,
9+
dist,

.github/ISSUE_TEMPLATE/bug_report.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us fix a bug
4+
labels: "type/bug, prio/high"
5+
---
6+
7+
## Description
8+
9+
<!-- Concisely describe the bug. -->
10+
11+
## Environment
12+
13+
<!-- Describe the environment the bug occurred on.-->
14+
15+
## Reproduction
16+
17+
<!-- Provide detailed steps to reproduce the bug. -->
18+
19+
1. <!-- First step... -->
20+
2. <!-- Second step... -->
21+
22+
See Error Traceback.
23+
24+
## Error Traceback
25+
26+
<!-- If you can, copy/paste here the error traceback, or delete the section entirely.-->
27+
28+
## Resolution
29+
30+
<!-- If you can, provide a possible fix suggestion, or delete the section entirely.-->

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Arkhn
4+
url: https://arkhn.com/
5+
about: For more information about Arkhn, you can visit our website.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Exploration
3+
about: Suggest something we could explore
4+
labels: "type/exploration, prio/low"
5+
---
6+
7+
## Description
8+
9+
<!-- Concisely describe the exploration. -->
10+
11+
## Implementation
12+
13+
<!-- If you can, provide implementation steps. -->
14+
<!-- Replace the [ ] with [x] to check the box. -->
15+
16+
- [ ] <!-- First step... -->
17+
- [ ] <!-- Second step... -->
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature
3+
about: Suggest a new feature we could implement
4+
labels: "type/feature, prio/medium"
5+
---
6+
7+
## Description
8+
9+
<!-- Concisely describe the feature. -->
10+
11+
## Implementation
12+
13+
<!-- If you can, provide implementation steps. -->
14+
<!-- Replace the [ ] with [x] to check the box. -->
15+
16+
- [ ] <!-- First step... -->
17+
- [ ] <!-- Second step... -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Improvement
3+
about: Suggest an improvement we could make
4+
labels: "type/improvement, prio/low"
5+
---
6+
7+
## Description
8+
9+
<!-- Concisely describe the improvement. -->
10+
11+
## Implementation
12+
13+
<!-- If you can, provide implementation steps. -->
14+
<!-- Replace the [ ] with [x] to check the box. -->
15+
16+
- [ ] <!-- First step... -->
17+
- [ ] <!-- Second step... -->

.github/PULL_REQUEST_TEMPLATE.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Fixes
2+
3+
<!-- If PR doesn't fully resolve the issue, replace 'Fixes' below with 'Related to'. -->
4+
<!-- If there is no issue being resolved, open one before creating this pull request. -->
5+
6+
Fixes #[issue number]
7+
8+
## Description
9+
10+
<!-- Concisely describe what the pull request does. -->
11+
12+
## Technical details
13+
14+
<!-- Add any other information or technical details about the implementation; or delete the section entirely. -->
15+
16+
## Definition of Done
17+
18+
<!-- Check the boxes (replace the [ ] with [x]) corresponding to what you've done. -->
19+
<!-- You must have followed the AI Code Book, but the other items can be skipped if your work doesn't require them. -->
20+
21+
- [ ] I followed the [AI Code Book](https://www.notion.so/arkhn/How-to-Code-a-k-a-the-AI-Code-Book-f8df0dd8fa484a7fb5eb989f07076141) (I swear!).
22+
- [ ] I have added/updated tests according to my changes.
23+
- [ ] I have added/updated documentation according to my changes.

.github/workflows/pre-commit.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This re-usable workflow runs pre-commit hooks on all the files of the repository.
2+
#
3+
# If a pre-commit hook finds an issue with a file or fixes it, the workflow will fail, but it will
4+
# not fix the files on its own. The pre-commit hooks must be defined in a `.pre-commit-config.yaml`
5+
# file and pre-commit's version in a `requirements-pre-commit.txt` file.
6+
#
7+
# This workflow caches pre-commit hooks; this is directly adapted from:
8+
# https://github.com/pre-commit/action/blob/efd3bcfec120bd343786e46318186153b7bc8c68/action.yml.
9+
10+
on:
11+
workflow_call:
12+
13+
jobs:
14+
pre-commit:
15+
name: Run pre-commit
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 60
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Set up Python 3.9
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: 3.9
27+
28+
- name: Install pre-commit
29+
run: python -m pip install -r requirements-pre-commit.txt
30+
31+
- name: Cache pre-commit hooks
32+
uses: actions/cache@v3
33+
with:
34+
path: ~/.cache/pre-commit
35+
key: pre-commit-hooks-${{ hashFiles('.pre-commit-config.yaml') }}
36+
37+
- name: Run pre-commit
38+
run: pre-commit run --all-files --show-diff-on-failure

.github/workflows/test.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow triggers checks with pre-commit.
2+
3+
name: Test
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
types:
13+
- opened
14+
- reopened
15+
- ready_for_review
16+
- synchronize
17+
18+
jobs:
19+
pre-commit:
20+
name: pre-commit
21+
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
22+
uses: ./.github/workflows/pre-commit.yml

.gitignore

+159
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
### Custom .gitignore ###
2+
3+
wandb/
4+
5+
# Data stuff
6+
*/*/data
7+
8+
# IDE stuff
9+
.idea/
10+
.vscode/
11+
12+
### GitHub's .gitignore Python template ###
13+
# Byte-compiled / optimized / DLL files
14+
__pycache__/
15+
*.py[cod]
16+
*$py.class
17+
18+
# C extensions
19+
*.so
20+
21+
# Distribution / packaging
22+
.Python
23+
build/
24+
develop-eggs/
25+
dist/
26+
downloads/
27+
eggs/
28+
.eggs/
29+
lib64/
30+
parts/
31+
sdist/
32+
var/
33+
wheels/
34+
pip-wheel-metadata/
35+
share/python-wheels/
36+
*.egg-info/
37+
.installed.cfg
38+
*.egg
39+
datasets/*/data
40+
datasets/**/resources
41+
MANIFEST
42+
43+
# PyInstaller
44+
# Usually these files are written by a python script from a template
45+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
46+
*.manifest
47+
*.spec
48+
49+
# Installer logs
50+
pip-log.txt
51+
pip-delete-this-directory.txt
52+
53+
# Unit test / coverage reports
54+
htmlcov/
55+
.tox/
56+
.nox/
57+
.coverage
58+
.coverage.*
59+
.cache
60+
nosetests.xml
61+
coverage.xml
62+
*.cover
63+
*.py,cover
64+
.hypothesis/
65+
.pytest_cache/
66+
67+
# Translations
68+
*.mo
69+
*.pot
70+
71+
# Django stuff:
72+
*.log
73+
local_settings.py
74+
db.sqlite3
75+
db.sqlite3-journal
76+
77+
# Flask stuff:
78+
instance/
79+
.webassets-cache
80+
81+
# Scrapy stuff:
82+
.scrapy
83+
84+
# Sphinx documentation
85+
docs/_build/
86+
87+
# PyBuilder
88+
target/
89+
90+
# Jupyter Notebook
91+
.ipynb_checkpoints
92+
93+
# IPython
94+
profile_default/
95+
ipython_config.py
96+
97+
# pyenv
98+
.python-version
99+
100+
# pipenv
101+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
102+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
103+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
104+
# install all needed dependencies.
105+
#Pipfile.lock
106+
107+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
108+
__pypackages__/
109+
110+
# Celery stuff
111+
celerybeat-schedule
112+
celerybeat.pid
113+
114+
# SageMath parsed files
115+
*.sage.py
116+
117+
# Environments
118+
.env
119+
.venv
120+
env/
121+
venv/
122+
ENV/
123+
env.bak/
124+
venv.bak/
125+
126+
# Spyder project settings
127+
.spyderproject
128+
.spyproject
129+
130+
# Rope project settings
131+
.ropeproject
132+
133+
# mkdocs documentation
134+
/site
135+
136+
# mypy
137+
.mypy_cache/
138+
.dmypy.json
139+
dmypy.json
140+
141+
# Pyre type checker
142+
.pyre/
143+
144+
#logs
145+
146+
/**/**/outputs
147+
/**/**/wandb
148+
/**/logs/**
149+
/**/multirun
150+
151+
#custom extension
152+
*.bak
153+
**/e3c_llm/data/*
154+
155+
#custom path by project
156+
/lib/style-transfer/hf_datasets/*/preprocessed/
157+
/lib/style-transfer/hf_datasets/*/keywords_extraction/
158+
/lib/style-transfer/hf_datasets/*/data/
159+
lib/style-transfer/hf_datasets/*/raw/*

0 commit comments

Comments
 (0)