Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Commit b700727

Browse files
author
azhogov
committed
Initial commit
0 parents  commit b700727

File tree

3,029 files changed

+212105
-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.

3,029 files changed

+212105
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
client/node_modules

.features.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"DYNAMIC_SHAPES": 0,
3+
"OMZ_REDESIGN": 1,
4+
"HUGGING_FACE_MODELS": 1
5+
}

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Set line endings to LF (not CRLF) for .sh scripts.
2+
# Docker execution fails otherwise.
3+
*.sh text eol=lf

.github/workflows/check-pr-name.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Check Pull Request Name"
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
7+
pr-name-check:
8+
name: Check Pull Request Name
9+
runs-on: ubuntu-20.04
10+
if: github.event_name == 'pull_request'
11+
12+
steps:
13+
- name: Compare PR Name to the Template
14+
uses: actions/github-script@v5
15+
with:
16+
script: |
17+
const prNameRegExp = /^(?:\[\d+\]\s)+\w+.*/;
18+
const skipLabel = '[skip-name]';
19+
const prName = context.payload.pull_request.title;
20+
console.log(`Pull Request Name is ${prName}`);
21+
22+
if (prName.includes(skipLabel)) {
23+
console.log('Skipping PR name checks');
24+
return;
25+
}
26+
27+
if (!prNameRegExp.test(prName)) {
28+
console.log('Template: [issue_number] ([another_issue_number] ...) Short description');
29+
core.setFailed('Your Pull Request title does not confirm to the template');
30+
return;
31+
}
32+
33+
console.log('Your Pull Request name confirm to the provided template');
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "Update PR Branch on PR Comment"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
jobs:
6+
update_pr_branch:
7+
name: Update PR Branch on PR Comment
8+
if: github.event.issue.pull_request != '' && github.event.comment.body == '/update'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Fetch latest code
12+
uses: actions/checkout@v2
13+
with:
14+
token: ${{ secrets.ACTIONS_PAT }}
15+
fetch-depth: 0
16+
submodules: 'true'
17+
- name: Fetch PR and target branch names
18+
id: fetch_pr_and_target_branch
19+
uses: actions/github-script@v3
20+
with:
21+
github-token: ${{ secrets.GITHUB_TOKEN }}
22+
script: |
23+
const { issue, repository } = context.payload;
24+
const [ owner, repo ] = repository.full_name.split('/');
25+
const { data: pullRequest } = await github.pulls.get({
26+
owner,
27+
repo,
28+
pull_number: issue.number
29+
});
30+
const { ref: prBranch } = pullRequest.head;
31+
const { ref: baseBranch } = pullRequest.base;
32+
const { clone_url: prRemoteUrl } = pullRequest.head.repo;
33+
console.log(`##[set-output name=pr_branch;]${prBranch}`);
34+
console.log(`##[set-output name=pr_remote_url;]${prRemoteUrl}`);
35+
console.log(`##[set-output name=base_branch;]${baseBranch}`);
36+
- name: Update PR branch
37+
run: |
38+
git remote add pr_remote ${{ steps.fetch_pr_and_target_branch.outputs.pr_remote_url }}
39+
git fetch pr_remote
40+
git checkout ${{ steps.fetch_pr_and_target_branch.outputs.pr_branch }}
41+
git config user.name 'github-actions[bot]'
42+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
43+
git merge ${{ steps.fetch_pr_and_target_branch.outputs.base_branch }} --no-edit
44+
git push

.gitignore

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#ide
2+
.idea
3+
.vs
4+
5+
# python
6+
__pycache__
7+
*.pyc
8+
*.egg-info
9+
10+
# python virtual wnvironment
11+
.env
12+
env
13+
venv
14+
venv_tf2
15+
.venv
16+
.unified_venv
17+
18+
# data path
19+
wb/data
20+
21+
# WB public directory
22+
.workbench
23+
24+
# FE build
25+
static
26+
build
27+
dist
28+
29+
# client e2e
30+
client/e2e/*.map
31+
client/e2e/reports
32+
33+
# client compiled output
34+
client/dist
35+
client/dist-server
36+
client/tmp
37+
client/out-tsc
38+
client/.npmrc
39+
40+
# client unit tests reports
41+
client/reports
42+
43+
# client dependencies
44+
client/node_modules
45+
46+
# Netron files
47+
client/src/app/modules/dashboard/components/model-layers-with-graphs/model-graph-visualization/netron-graph/lib/netron
48+
client/src/assets/netron
49+
50+
# misc
51+
npm-debug.log
52+
yarn-error.log
53+
testem.log
54+
55+
# logging
56+
*.log
57+
*.log.[0-9]
58+
*.dot
59+
60+
# env files
61+
*.env
62+
!docker/dc_dev_config/server/environment.env
63+
64+
# HDDL
65+
thread.info
66+
67+
# Windows
68+
*.DS_Store
69+
70+
# jupyter
71+
.ipynb_checkpoints
72+
73+
# bundles
74+
bundles/

.gitmodules

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "model_analyzer"]
2+
path = model_analyzer
3+
url = https://github.com/openvinotoolkit/model_analyzer.git
4+
[submodule "openvino_notebooks"]
5+
path = openvino_notebooks
6+
url = https://github.com/SalnikovIgor/openvino_notebooks.git
7+
[submodule "client/vendors/netron/netron"]
8+
path = client/vendors/netron/netron
9+
url = https://github.com/lutzroeder/netron

.pre-commit-config.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: no-commit-to-branch
6+
args: ['--pattern', '^(master|releases\/)']
7+
always_run: true
8+
stages: [commit]
9+
- repo: local
10+
hooks:
11+
- id: check-git-remote-pre-push
12+
name: Check protected git remote before push
13+
entry: python ./scripts/development/check_git_remote_pre_push.py
14+
language: python
15+
language_version: python3
16+
pass_filenames: false
17+
always_run: true
18+
stages: [push]
19+
- repo: https://github.com/pre-commit/mirrors-prettier
20+
rev: ''
21+
hooks:
22+
- id: prettier
23+
name: Prettier auto-formatter for client
24+
entry: bash -c 'prettier "$@"; git add -u' --
25+
files: '^client/'
26+
args: [
27+
'--write',
28+
'--loglevel', 'debug',
29+
'--list-different',
30+
'--ignore-unknown',
31+
'--config', './client/.prettierrc',
32+
'--ignore-path', './client/.prettierignore'
33+
]
34+
stages: [commit]

0 commit comments

Comments
 (0)