Skip to content

Commit f0d125a

Browse files
committed
Initial commit
0 parents  commit f0d125a

72 files changed

Lines changed: 3041 additions & 0 deletions

File tree

Some content is hidden

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

.clang-format

Lines changed: 283 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
---
2+
BasedOnStyle: Microsoft
3+
Language: CSharp
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: BlockIndent
6+
AlignArrayOfStructures: None
7+
AlignConsecutiveMacros: None
8+
AlignConsecutiveAssignments: None
9+
AlignConsecutiveBitFields: None
10+
AlignConsecutiveDeclarations: None
11+
AlignEscapedNewlines: Right
12+
AlignOperands: Align
13+
AlignTrailingComments: true
14+
AllowAllArgumentsOnNextLine: true
15+
AllowAllParametersOfDeclarationOnNextLine: true
16+
AllowShortEnumsOnASingleLine: false
17+
AllowShortBlocksOnASingleLine: Never
18+
AllowShortCaseLabelsOnASingleLine: false
19+
AllowShortFunctionsOnASingleLine: None
20+
AllowShortLambdasOnASingleLine: All
21+
AllowShortIfStatementsOnASingleLine: Never
22+
AllowShortLoopsOnASingleLine: false
23+
AlwaysBreakAfterDefinitionReturnType: None
24+
AlwaysBreakAfterReturnType: None
25+
AlwaysBreakBeforeMultilineStrings: false
26+
AlwaysBreakTemplateDeclarations: MultiLine
27+
AttributeMacros:
28+
- __capability
29+
BinPackArguments: false
30+
BinPackParameters: false
31+
BraceWrapping:
32+
AfterCaseLabel: true
33+
AfterClass: true
34+
AfterControlStatement: Always
35+
AfterEnum: true
36+
AfterFunction: true
37+
AfterNamespace: true
38+
AfterObjCDeclaration: true
39+
AfterStruct: true
40+
AfterUnion: true
41+
AfterExternBlock: true
42+
BeforeCatch: true
43+
BeforeElse: true
44+
BeforeLambdaBody: true
45+
BeforeWhile: false
46+
IndentBraces: false
47+
SplitEmptyFunction: true
48+
SplitEmptyRecord: true
49+
SplitEmptyNamespace: true
50+
BreakBeforeBinaryOperators: None
51+
BreakBeforeConceptDeclarations: true
52+
BreakBeforeBraces: Custom
53+
BreakInheritanceList: AfterColon
54+
BreakBeforeTernaryOperators: false
55+
BreakConstructorInitializersBeforeComma: false
56+
BreakConstructorInitializers: AfterColon
57+
BreakAfterJavaFieldAnnotations: false
58+
BreakStringLiterals: false
59+
ColumnLimit: 0
60+
CommentPragmas: '^ THU pragma:'
61+
CompactNamespaces: false
62+
ConstructorInitializerIndentWidth: 4
63+
ContinuationIndentWidth: 4
64+
Cpp11BracedListStyle: true
65+
DeriveLineEnding: true
66+
DerivePointerAlignment: false
67+
DisableFormat: false
68+
EmptyLineAfterAccessModifier: Never
69+
EmptyLineBeforeAccessModifier: Always
70+
ExperimentalAutoDetectBinPacking: false
71+
PackConstructorInitializers: CurrentLine
72+
FixNamespaceComments: true
73+
ForEachMacros:
74+
- foreach
75+
- Q_FOREACH
76+
- BOOST_FOREACH
77+
IfMacros:
78+
- KJ_IF_MAYBE
79+
IncludeBlocks: Merge
80+
IncludeCategories:
81+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
82+
Priority: 2
83+
SortPriority: 0
84+
CaseSensitive: false
85+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
86+
Priority: 3
87+
SortPriority: 0
88+
CaseSensitive: false
89+
- Regex: '.*'
90+
Priority: 1
91+
SortPriority: 0
92+
CaseSensitive: false
93+
IndentAccessModifiers: false
94+
IndentCaseLabels: true
95+
IndentCaseBlocks: true
96+
IndentExternBlock: AfterExternBlock
97+
IndentGotoLabels: true
98+
IndentPPDirectives: None
99+
IndentRequires: false
100+
IndentWidth: 4
101+
IndentWrappedFunctionNames: true
102+
InsertTrailingCommas: None
103+
LambdaBodyIndentation: Signature
104+
MaxEmptyLinesToKeep: 1
105+
NamespaceIndentation: All
106+
PointerAlignment: Left
107+
QualifierAlignment: Leave
108+
ReferenceAlignment: Pointer
109+
ReflowComments: true
110+
SeparateDefinitionBlocks: Leave
111+
SortIncludes: Never
112+
SpaceAfterTemplateKeyword: false
113+
SpaceBeforeAssignmentOperators: true
114+
SpaceBeforeCaseColon: false
115+
SpaceBeforeCtorInitializerColon: true
116+
SpaceBeforeInheritanceColon: true
117+
SpaceBeforeParens: ControlStatements
118+
SpaceBeforeParensOptions:
119+
AfterControlStatements: true
120+
AfterForeachMacros: true
121+
AfterFunctionDefinitionName: false
122+
AfterFunctionDeclarationName: false
123+
AfterIfMacros: true
124+
AfterOverloadedOperator: false
125+
BeforeNonEmptyParentheses: false
126+
SpaceBeforeRangeBasedForLoopColon: true
127+
SpacesInSquareBrackets: false
128+
SpaceInEmptyBlock: true
129+
SpaceInEmptyParentheses: false
130+
SpacesBeforeTrailingComments: 2
131+
SpacesInAngles: Never
132+
SpacesInCStyleCastParentheses: false
133+
SpacesInConditionalStatement: false
134+
SpacesInContainerLiterals: false
135+
SpacesInLineCommentPrefix:
136+
Minimum: 1
137+
SpacesInParentheses: false
138+
SpaceBeforeSquareBrackets: false
139+
Standard: Latest
140+
TabWidth: 4
141+
UseTab: Never
142+
---
143+
BasedOnStyle: Google
144+
Language: Cpp
145+
AccessModifierOffset: -4
146+
AlignAfterOpenBracket: BlockIndent
147+
AlignArrayOfStructures: None
148+
AlignConsecutiveMacros: None
149+
AlignConsecutiveAssignments: None
150+
AlignConsecutiveBitFields: None
151+
AlignConsecutiveDeclarations: None
152+
AlignEscapedNewlines: Right
153+
AlignOperands: Align
154+
AlignTrailingComments: true
155+
AllowAllArgumentsOnNextLine: true
156+
AllowAllParametersOfDeclarationOnNextLine: true
157+
AllowShortEnumsOnASingleLine: false
158+
AllowShortBlocksOnASingleLine: Never
159+
AllowShortCaseLabelsOnASingleLine: false
160+
AllowShortFunctionsOnASingleLine: None
161+
AllowShortLambdasOnASingleLine: All
162+
AllowShortIfStatementsOnASingleLine: Never
163+
AllowShortLoopsOnASingleLine: false
164+
AlwaysBreakAfterDefinitionReturnType: None
165+
AlwaysBreakAfterReturnType: None
166+
AlwaysBreakBeforeMultilineStrings: false
167+
AlwaysBreakTemplateDeclarations: MultiLine
168+
AttributeMacros:
169+
- __capability
170+
BinPackArguments: false
171+
BinPackParameters: false
172+
BraceWrapping:
173+
AfterCaseLabel: true
174+
AfterClass: true
175+
AfterControlStatement: Always
176+
AfterEnum: true
177+
AfterFunction: true
178+
AfterNamespace: true
179+
AfterObjCDeclaration: true
180+
AfterStruct: true
181+
AfterUnion: true
182+
AfterExternBlock: true
183+
BeforeCatch: true
184+
BeforeElse: true
185+
BeforeLambdaBody: true
186+
BeforeWhile: false
187+
IndentBraces: false
188+
SplitEmptyFunction: true
189+
SplitEmptyRecord: true
190+
SplitEmptyNamespace: true
191+
BreakBeforeBinaryOperators: None
192+
BreakBeforeConceptDeclarations: true
193+
BreakBeforeBraces: Custom
194+
BreakInheritanceList: AfterColon
195+
BreakBeforeTernaryOperators: false
196+
BreakConstructorInitializersBeforeComma: false
197+
BreakConstructorInitializers: AfterColon
198+
BreakAfterJavaFieldAnnotations: false
199+
BreakStringLiterals: false
200+
ColumnLimit: 0
201+
CommentPragmas: '^ THU pragma:'
202+
CompactNamespaces: false
203+
ConstructorInitializerIndentWidth: 4
204+
ContinuationIndentWidth: 4
205+
Cpp11BracedListStyle: true
206+
DeriveLineEnding: true
207+
DerivePointerAlignment: false
208+
DisableFormat: false
209+
EmptyLineAfterAccessModifier: Never
210+
EmptyLineBeforeAccessModifier: Always
211+
ExperimentalAutoDetectBinPacking: false
212+
PackConstructorInitializers: CurrentLine
213+
FixNamespaceComments: true
214+
ForEachMacros:
215+
- foreach
216+
- Q_FOREACH
217+
- BOOST_FOREACH
218+
IfMacros:
219+
- KJ_IF_MAYBE
220+
IncludeBlocks: Merge
221+
IncludeCategories:
222+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
223+
Priority: 2
224+
SortPriority: 0
225+
CaseSensitive: false
226+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
227+
Priority: 3
228+
SortPriority: 0
229+
CaseSensitive: false
230+
- Regex: '.*'
231+
Priority: 1
232+
SortPriority: 0
233+
CaseSensitive: false
234+
IndentAccessModifiers: false
235+
IndentCaseLabels: true
236+
IndentCaseBlocks: true
237+
IndentExternBlock: AfterExternBlock
238+
IndentGotoLabels: true
239+
IndentPPDirectives: None
240+
IndentRequires: false
241+
IndentWidth: 4
242+
IndentWrappedFunctionNames: true
243+
InsertTrailingCommas: None
244+
LambdaBodyIndentation: Signature
245+
MaxEmptyLinesToKeep: 1
246+
NamespaceIndentation: All
247+
PointerAlignment: Left
248+
QualifierAlignment: Leave
249+
ReferenceAlignment: Pointer
250+
ReflowComments: true
251+
SeparateDefinitionBlocks: Leave
252+
SortIncludes: Never
253+
SpaceAfterTemplateKeyword: false
254+
SpaceBeforeAssignmentOperators: true
255+
SpaceBeforeCaseColon: false
256+
SpaceBeforeCtorInitializerColon: true
257+
SpaceBeforeInheritanceColon: true
258+
SpaceBeforeParens: ControlStatements
259+
SpaceBeforeParensOptions:
260+
AfterControlStatements: true
261+
AfterForeachMacros: true
262+
AfterFunctionDefinitionName: false
263+
AfterFunctionDeclarationName: false
264+
AfterIfMacros: true
265+
AfterOverloadedOperator: false
266+
BeforeNonEmptyParentheses: false
267+
SpaceBeforeRangeBasedForLoopColon: true
268+
SpacesInSquareBrackets: false
269+
SpaceInEmptyBlock: true
270+
SpaceInEmptyParentheses: false
271+
SpacesBeforeTrailingComments: 2
272+
SpacesInAngles: Never
273+
SpacesInCStyleCastParentheses: false
274+
SpacesInConditionalStatement: false
275+
SpacesInContainerLiterals: false
276+
SpacesInLineCommentPrefix:
277+
Minimum: 1
278+
SpacesInParentheses: false
279+
SpaceBeforeSquareBrackets: false
280+
Standard: c++17
281+
TabWidth: 4
282+
UseTab: Never
283+

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[*.cs]
2+
# 针对枚举成员的命名规则:要求使用 PascalCase
3+
dotnet_naming_rule.enum_members_should_be_pascal_case.severity = suggestion
4+
dotnet_naming_rule.enum_members_should_be_pascal_case.symbols = enum_members
5+
dotnet_naming_rule.enum_members_should_be_pascal_case.style = pascal_caser
6+
7+
# 定义符号:这里适用于所有 const 字段(通常枚举成员会被识别为 const 字段)
8+
dotnet_naming_symbols.enum_members.applicable_kinds = field
9+
dotnet_naming_symbols.enum_members.required_modifiers = const
10+
11+
# 定义命名风格:PascalCase
12+
dotnet_naming_style.pascal_caser.capitalization = pascal_case
13+
dotnet_naming_style.pascal_caser.required_prefix =
14+
dotnet_naming_style.pascal_caser.required_suffix =
15+
dotnet_naming_style.pascal_caser.word_separator =
16+
csharp_using_directive_placement = outside_namespace:silent
17+
csharp_style_expression_bodied_methods = false:silent
18+
csharp_style_expression_bodied_constructors = false:silent
19+
csharp_style_expression_bodied_operators = false:silent
20+
csharp_style_expression_bodied_properties = true:silent
21+
csharp_style_expression_bodied_indexers = true:silent
22+
csharp_style_expression_bodied_accessors = true:silent
23+
csharp_style_expression_bodied_lambdas = true:silent
24+
csharp_style_expression_bodied_local_functions = false:silent
25+
[*.{cs,vb}]
26+
end_of_line = crlf
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
<!-- Before creating this pull request, check the questions below: -->
3+
<!-- 在提出这个 pull request 之前,请勾选下面的问题: -->
4+
5+
- [ ] 您的代码是否能够编译通过?
6+
- [ ] 您是否检查了目前在 [pull requests](https://github.com/eesast/THUAI8/pulls) 中是否有与你的贡献功能相同的更改?
7+
- [ ] 您的贡献是否符合[贡献者代码协议](https://github.com/eesast/THUAI8/blob/dev/CODE_OF_CONDUCT.md)
8+
- [ ] 您的贡献是否符合[开发规则](https://github.com/eesast/THUAI8#%E5%BC%80%E5%8F%91%E8%A7%84%E5%88%99)
9+
10+
Descriptions of this pull request:
11+
12+
<!-- If you have something to say about this pull request, delete the sentence 'No additional description.' below and add your description. -->
13+
<!-- 如果你对这次的 pull request 有一些描述,请删除下面的句子“No additional description.”并加上你的描述。 -->
14+
15+
No additional description.

0 commit comments

Comments
 (0)