Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Initial commit release

Co-Authored-By: Jochen Görtler <[email protected]>
Co-Authored-By: Dominik Moritz <[email protected]>
  • Loading branch information
3 people committed Apr 16, 2022
0 parents commit a0bc43a
Show file tree
Hide file tree
Showing 64 changed files with 28,476 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
end_of_line = lf

[*.{ts,css,js,html,svelte}]
charset = utf-8
indent_size = 4
indent_style = space

[*.json]
indent_size = 4
indent_style = space
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
public/bundle.js
public/app.js
public/confMat.js
public/third_party/
217 changes: 217 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
{
"env": {
"browser": true,
"es6": true
},
"globals": {
"ENV": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"rules": {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"max-len": [
"warn",
{
"code": 100,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"indent": [
"warn",
4
],
"no-unused-vars": [
"warn",
{
"args": "all",
"argsIgnorePattern": "^_"
}
],
"no-console": ["warn", { "allow": ["warn"] }],
"linebreak-style": [
"warn",
"unix"
],
"quotes": [
"warn",
"single"
],
"semi": [
"warn",
"always"
],
"no-var": "warn",
"prefer-const": "warn",
"dot-notation": "warn",
"dot-location": [
"warn",
"property"
],
"eqeqeq": [
"warn",
"smart"
],
"no-implicit-coercion": "warn",
"no-useless-return": "warn",
"array-bracket-newline": [
"warn",
{
"multiline": true
}
],
"array-bracket-spacing": [
"warn",
"never"
],
"block-spacing": "warn",
"brace-style": [
"warn",
"1tbs",
{
"allowSingleLine": true
}
],
"comma-dangle": [
"warn",
"always-multiline"
],
"comma-spacing": [
"warn",
{
"before": false,
"after": true
}
],
"eol-last": "warn",
"func-call-spacing": [
"warn",
"never"
],
"function-paren-newline": [
"warn",
"multiline"
],
"implicit-arrow-linebreak": [
"warn",
"beside"
],
"keyword-spacing": "warn",
"lines-between-class-members": [
"warn",
"always",
{
"exceptAfterSingleLine": true
}
],
"newline-per-chained-call": [
"warn",
{
"ignoreChainWithDepth": 2
}
],
"no-multiple-empty-lines": [
"warn",
{
"max": 1,
"maxBOF": 2,
"maxEOF": 0
}
], // FIX for eslint
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "warn",
"nonblock-statement-body-position": [
"warn",
"beside"
],
"object-curly-spacing": [
"warn",
"always"
],
"one-var": [
"warn",
"never"
],
"operator-assignment": "warn",
"operator-linebreak": [
"warn",
"before"
],
"padded-blocks": [
"warn",
"never"
],
"space-before-blocks": "warn",
"space-before-function-paren": [
"warn",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": "warn",
"space-infix-ops": "warn",
"arrow-spacing": "warn",
"no-confusing-arrow": "warn",
"no-useless-rename": "warn",
"prefer-numeric-literals": "warn",
"prefer-template": "warn",
"sort-imports": [
"warn",
{
"ignoreCase": true
}
],
"camelcase": "warn"
},
"plugins": [
"jest",
"json",
"svelte3"
],
"overrides": [
{
"files": [
"*.svelte"
],
"processor": "svelte3/svelte3"
},
{
"files": [
"*.ts"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:json/recommended-with-comments"],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"rules": {
"@typescript-eslint/no-explicit-any": ["warn", { "ignoreRestArgs": true }],
"@typescript-eslint/indent": ["warn", 4],
"@typescript-eslint/ban-ts-comment": ["warn", { "ts-expect-error": "allow-with-description" }],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{ "allowExpressions": true }
],
"indent": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "args": "all", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/array-type": ["warn", { "default": "generic" }]
}
}
]
}
70 changes: 70 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# other weird stuff
.DS_Store

# Project related files
node_modules
public/bundle.*
public/app.*
public/confMat.*
71 changes: 71 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when
an individual is representing the project or its community in public spaces.
Examples of representing a project or community include using an official
project e-mail address, posting via an official social media account, or acting
as an appointed representative at an online or offline event. Representation of
a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the open source team at [[email protected]](mailto:[email protected]). All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4,
available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html)
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Contribution Guide

Thanks for your interest in contributing. This project was released to accompany a research paper for purposes of reproducability, and beyond its publication there are limited plans for future development of the repository.

Nonetheless, we welcome new pull requests and issues and will do our best to respond timely.

## Before you get started

By submitting a pull request, you represent that you have the right to license your contribution to Apple and the community, and agree by submitting the patch that your contributions are licensed under the [LICENSE](LICENSE).

We ask that all community members read and observe our [Code of Conduct](CODE_OF_CONDUCT.md).
Loading

0 comments on commit a0bc43a

Please sign in to comment.