SYNC
Strategic SYNthesis of Cognitive Networks
파일 탐색기
- ci.yml
- __init__.py
- auth.py
- main.py
- middleware.py
- models.py
- __init__.py
- base.py
- models.py
- training.py
- nginx.conf
- init_db.sql
- __init__.py
- agent.py
- ckm.py
- gap_detector.py
- policy.py
- state.py
- __init__.py
- datasets.py
- dialogue_corpus.py
- preprocessing.py
- __init__.py
- benchmarks.py
- evidence_lab.py
- metrics.py
- visualization.py
- __init__.py
- batching.py
- embeddings.py
- message_gen.py
- openrouter.py
- __init__.py
- trace.py
- __init__.py
- aggregator.py
- budget.py
- communication.py
- convergence.py
- coordinator.py
- __init__.py
- environment.py
- pretraining.py
- rewards.py
- rl_trainer.py
- __init__.py
- checkpoints.py
- helpers.py
- logging.py
- __init__.py
- cli.py
- test_auth.py
- test_embedding_batching.py
- test_evidence_features.py
- .env.example
- .gitignore
- docker-compose.dev.yml
- docker-compose.yml
- Dockerfile
- requirements.txt
- setup.py
- LICENSE
- README.md
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
black
설명 보기 ▼
black
Python 자동 코드 formatter.
관련 항목: `ruff`.
더 많은 정보: <https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html>.
black {{path/to/file_or_directory}}
파일 또는 전체 디렉토리의 자동 포맷:
black {{[-c|--code]}} "{{code}}"
전달된 코드를 문자열로 포맷:
black --check {{path/to/file_or_directory}}
파일을 다시 쓰지 않고 상태 반환:
docker stats
설명 보기 ▼
docker stats
This command is an alias of `docker container stats`.
tldr docker container stats
View documentation for the original command:
docker system
설명 보기 ▼
docker system
Manage Docker data and display system-wide information.
docker system df
Show Docker disk usage:
docker system df {{[-v|--verbose]}}
Show detailed information on disk usage:
docker system prune
Remove unused data (append `--volumes` to remove unused volumes as well):
docker tag
설명 보기 ▼
docker tag
This command is an alias of `docker image tag`.
tldr docker image tag
View documentation for the original command:
done
설명 보기 ▼
done
`for`, `while`, `select`, `until` 루프의 끝을 표시하는 쉘 키워드.
tldr for
`for` 키워드 문서 확인:
tldr while
`while` 키워드 문서 확인:
tldr select
`select` 키워드 문서 확인:
flake8
설명 보기 ▼
flake8
Python 코드의 스타일과 품질을 확인.
더 많은 정보: <https://flake8.pycqa.org/en/latest/user/options.html>.
flake8 {{path/to/file_or_directory}}
파일이나 디렉터리를 재귀적으로 린트:
flake8 --show-source {{path/to/file_or_directory}}
파일이나 디렉터리를 재귀적으로 린트하고 각 오류가 발생한 줄을 표시:
flake8 --ignore {{rule1,rule2,...}} {{path/to/file_or_directory}}
파일이나 디렉터리를 재귀적으로 린트하고 규칙 목록을 무시. (사용 가능한 모든 규칙은 flake8rules.com에서 찾을 수 있음):
git checkout
설명 보기 ▼
git checkout
Checkout a branch or paths to the working tree.
git checkout -b {{branch_name}}
Create and switch to a new branch:
git checkout -b {{branch_name}} {{reference}}
Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):
git checkout {{branch_name}}
Switch to an existing local branch:
git clone
설명 보기 ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
mypy
설명 보기 ▼
mypy
Python 코드의 타입을 검사.
더 많은 정보: <https://mypy.readthedocs.io/en/stable/running_mypy.html>.
mypy {{path/to/file.py}}
특정 파일의 타입 검사:
mypy {{[-m|--module]}} {{module_name}}
특정 [m]모듈의 타입 검사:
mypy {{[-p|--package]}} {{package_name}}
특정 [p]패키지의 타입 검사:
nano
설명 보기 ▼
nano
명령줄 텍스트 편집기. 향상된 `Pico` 클론.
관련 항목: `pico`, `rnano`.
더 많은 정보: <https://nano-editor.org/dist/latest/nano.html>.
nano {{path/to/file1 path/to/file2 ...}}
편집기 시작:
nano {{[-I|--ignorercfiles]}}
설정 파일을 사용하지 않고 편집기 시작:
nano +{{line}},{{column}} {{path/to/file}}
특정 파일 열기, 이전 파일을 닫으면 다음 파일로 이동:
pip install
설명 보기 ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
pre-commit
설명 보기 ▼
pre-commit
커밋 전에 실행되는 Git 훅을 생성.
더 많은 정보: <https://pre-commit.com/#command-line-interface>.
pre-commit install
Git 훅에 pre-commit 설치:
pre-commit run
모든 스테이지된 파일에 pre-commit 훅 실행:
pre-commit run --all-files
스테이지 여부와 상관없이 모든 파일에 pre-commit 훅 실행:
pylint
설명 보기 ▼
pylint
Python 코드 린터.
더 많은 정보: <https://pylint.pycqa.org/en/latest/>.
pylint {{path/to/file.py}}
파일 내 린트 오류 표시:
pylint {{package_or_module}}
패키지 또는 모듈 린트 (import 가능해야 하며, `.py` 접미사 없이):
pylint {{path/to/directory}}
디렉토리 경로에서 패키지 린트 (`__init__.py` 파일이 포함되어 있어야 함):
pytest
설명 보기 ▼
pytest
Python 테스트 실행.
더 많은 정보: <https://docs.pytest.org/en/latest/how-to/usage.html>.
pytest {{path/to/test_file1.py path/to/test_file2.py ...}}
특정 파일에서 테스트 실행:
pytest -k {{expression}}
특정 [k]eyword 표현식과 일치하는 테스트 실행:
pytest {{[-x|--exitfirst]}}
테스트가 실패하거나 오류가 발생하면 즉시 종료:
python
설명 보기 ▼
python
Python 언어 인터프리터.
더 많은 정보: <https://docs.python.org/using/cmdline.html>.
python
REPL(대화형 셸) 시작:
python {{path/to/file.py}}
특정 Python 파일 실행:
python -i {{path/to/file.py}}
특정 Python 파일 실행 후 REPL 시작:
uvicorn
설명 보기 ▼
uvicorn
비동기 프로젝트를 위한 Python ASGI HTTP 서버.
더 많은 정보: <https://www.uvicorn.org/settings/>.
uvicorn {{import.path:app_object}}
Python 웹 앱 실행:
uvicorn --host {{localhost}} --port {{8080}} {{import.path:app_object}}
localhost에서 포트 8080으로 수신 대기:
uvicorn --reload {{import.path:app_object}}
라이브 리로드 활성화:
apt-get
설명 보기 ▼
apt-get
Debian 및 Ubuntu 패키지 관리 도구.
`apt-cache`를 사용하여 패키지를 검색하세요.
Ubuntu 16.04 이후 버전에서는 대화형 사용 시 `apt` 사용을 권장합니다.
더 많은 정보: <https://manned.org/apt-get.8>.
sudo apt-get update
사용 가능한 패키지 및 버전 목록 업데이트 (다른 `apt-get` 명령어 실행 전에 권장됨):
sudo apt-get install {{package}}
패키지 설치 또는 최신 버전으로 업데이트:
sudo apt-get remove {{package}}
패키지 제거:
systemctl start
설명 보기 ▼
systemctl start
Start systemd units.
systemctl start {{unit}}
Start a unit:
systemctl start {{unit}} --user
Start a user unit:
