Skip to content

Commit 0c53b5d

Browse files
authored
Merge pull request #1 from TheAlgorithms/master
sync
2 parents 979742f + 7c31c5b commit 0c53b5d

File tree

682 files changed

+36720
-20355
lines changed

Some content is hidden

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

682 files changed

+36720
-20355
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @siriak @yanglbme

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/stale.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1-
name: Build Project
2-
1+
name: Build
32
on:
4-
pull_request:
53
push:
6-
branches:
7-
- master
8-
4+
paths:
5+
- 'src/**'
6+
- '**.yml'
7+
- '**.xml'
8+
- '**.Dockerfile'
9+
pull_request:
10+
paths:
11+
- 'src/**'
12+
- '**.yml'
13+
- '**.xml'
14+
- '**.Dockerfile'
915
jobs:
1016
build:
1117
runs-on: ubuntu-latest
1218
steps:
1319
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v2
15-
- name: Set up JDK 12
16-
uses: actions/setup-java@v1
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v2
1722
with:
18-
java-version: 12
19-
- run: find . -type f -name "*.java" > sources.txt
20-
- run: javac @sources.txt
23+
java-version: 17
24+
distribution: 'adopt'
25+
- name: Build with Maven
26+
run: mvn --batch-mode --update-snapshots verify

.github/workflows/checkstyle.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
name: Prettier
2-
1+
name: Prettify
32
on:
4-
pull_request:
53
push:
6-
branches:
7-
- master
8-
- Development
9-
4+
paths:
5+
- 'src/**'
6+
- '**.yml'
7+
- '**.xml'
8+
- '**.Dockerfile'
9+
pull_request:
10+
paths:
11+
- 'src/**'
12+
- '**.yml'
13+
- '**.xml'
14+
- '**.Dockerfile'
1015
jobs:
1116
prettier:
1217
runs-on: ubuntu-latest
13-
1418
steps:
1519
- name: Checkout
1620
uses: actions/checkout@v2
@@ -20,7 +24,7 @@ jobs:
2024
- name: Prettify code
2125
uses: creyD/prettier_action@v3.3
2226
with:
23-
prettier_options: --write **/*.{java}
24-
commit_message: 'style: prettify code'
27+
prettier_options: --write **/*.java
28+
commit_message: 'Prettify code'
2529
env:
2630
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
jobs:
6+
stale:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/stale@v4
10+
with:
11+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
12+
close-issue-message: 'Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our [Gitter](https://gitter.im/TheAlgorithms) or ping one of the reviewers. Thank you for your contributions!'
13+
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
14+
close-pr-message: 'Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our [Gitter](https://gitter.im/TheAlgorithms) or ping one of the reviewers. Thank you for your contributions!'
15+
exempt-issue-labels: 'dont-close'
16+
exempt-pr-labels: 'dont-close'
17+
days-before-stale: 30
18+
days-before-close: 7

.github/workflows/update_directory_md.yml renamed to .github/workflows/update_directory.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
# This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push
2-
name: update_directory_md
3-
on: [push]
2+
name: Update Directory
3+
on:
4+
push:
5+
paths:
6+
- 'src/**'
7+
- '**.yml'
8+
- '**.xml'
9+
- '**.Dockerfile'
10+
pull_request:
11+
paths:
12+
- 'src/**'
13+
- '**.yml'
14+
- '**.xml'
15+
- '**.Dockerfile'
416
jobs:
517
update_directory_md:
618
runs-on: ubuntu-latest
719
steps:
820
- uses: actions/checkout@master
921
- uses: actions/setup-python@master
10-
- name: update_directory_md
22+
- name: Update Directory
1123
shell: python
1224
run: |
1325
import os
@@ -63,5 +75,5 @@ jobs:
6375
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
6476
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
6577
git add DIRECTORY.md
66-
git commit -am "updating DIRECTORY.md" || true
78+
git commit -am "Update directory" || true
6779
git push --force origin HEAD:$GITHUB_REF || true

.gitignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,28 @@ bin/
99
gen/
1010
build/
1111
out/
12-
1312
# gradle
1413
.gradle/
1514
gradle-app.setting
1615
!gradle-wrapper.jar
1716
build/
18-
17+
# maven
18+
*.classpath
19+
*.project
20+
*.settings
21+
/target/
1922
local.properties
20-
2123
##----------idea----------
2224
*.iml
2325
.idea/
2426
*.ipr
2527
*.iws
26-
2728
# Android Studio Navigation editor temp files
2829
.navigation/
29-
3030
##----------Other----------
3131
# osx
3232
*~
3333
.DS_Store
3434
gradle.properties
35-
3635
.vscode
37-
38-
*.log
36+
*.log

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
:+1::tada: Before guiding you through the contribution process TheAlgorithms/Java thank you for being one of us! :+1::tada:
2-
31
## How to contribute?
42

53
#### **Did you find a bug?**
@@ -12,18 +10,18 @@
1210

1311
#### **Do you want to contribute to the documentation?**
1412

15-
- Please read the documentation in here [Contributing to the Documentation]() ,[open a new one issue](https://github.com/TheAlgorithms/Java/issues/new), make changes and then create a pull request, it will be put under review and accepted if it is appropriate.
13+
- Please read the documentation here [Contributing to the Documentation](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md), [open a new issue](https://github.com/TheAlgorithms/Java/issues/new), make changes, and then create a pull request, it will be put under review and accepted if it is appropriate.
1614

1715
#### **Do you want to add a new feature?**
1816

19-
- [Open a new one issue](https://github.com/TheAlgorithms/Java/issues/new). Be sure to include a **title and a clear description** and a **test case** demonstrating the new feature that you want to add to the project.
17+
- [Open a new issue](https://github.com/TheAlgorithms/Java/issues/new). Be sure to include a **title and a clear description** and a **test case** demonstrating the new feature that you want to add to the project.
2018

2119
#### **Do you want to fix a bug?**
2220

23-
- [Open a new one issue](https://github.com/TheAlgorithms/Java/issues/new).Be sure to include a **title and a clear description** and a **test case** demonstrating the expected behaviour that is not occurring.
21+
- [Open a new issue](https://github.com/TheAlgorithms/Java/issues/new).Be sure to include a **title and a clear description** and a **test case** demonstrating the expected behavior that is not occurring.
2422

2523
#### **Do you have questions about the source code?**
2624

27-
- Ask any question about how to use the repository in the [TheAlgorithms room in GITTER](https://gitter.im/TheAlgorithms/community?source=orgpage#) or [open a new one issue](https://github.com/TheAlgorithms/Java/issues/new)
25+
- Ask any question about how to use the repository in the [TheAlgorithms room in GITTER](https://gitter.im/TheAlgorithms/community?source=orgpage#) or [open a new issue](https://github.com/TheAlgorithms/Java/issues/new)
2826

2927
:+1::tada: That's all you need to know about the process now it's your turn to help us improve the repository, thank you again! :+1::tada:

0 commit comments

Comments
 (0)