2018 was the year I stepped into the open source world, from being quiet to actively involved, from getting something for free to giving back to the community
I don’t remember how many keystrokes I made or how many commits I made, just the community’s greetings and company
Do you still remember your 2018? Thanks open source world, thank you all the way
Scan the QR code below to pick up your 2018 GitHub Code report
Introduction to the
GitHub Annual Report is a GitHub annual report that uses OAuth authentication and GitHub API call to obtain users’ warehouse and submission status in 2018 for further analysis. All codes are deployed on GitHub Page. No security risks, feel free to scan to get your GitHub 2018 Code Report.
instructions
- Since the project is pure front-end code, the data store design is in the GitHub Issue, which is a public database
- If you have other questions about the project, please initiate a new Issue. Do not comment or @ others in the database Issue
- Only after storing your data can you share links in other software (such as wechat), otherwise others cannot find your data
- After storing the data, please go to the database Issue and click the Unsubscribe button at the bottom right (or below) to avoid email notification
- Comment data can be deleted at any time in an Issue
- Open source code, open website, open database, only statistics open warehouse, there will be no data security problems
- Because the bottleneck for real-time analysis is network requests, by default each REPO analyzes only the Master branch
- A request that exceeds 10 seconds will be processed as a timeout failure
Mainly depends on
- create-react-app
- ant-design
- rest.js
- axios
- react-id-swiper
- react-animations
- typed.js
entry
1.
N programming languages are used
Refers specifically to the main language displayed on the warehouse
Main branch to n code repositories via GitHub
There are submitted warehouses, not limited to their own
The code was committed n times
Any form that eventually forms the submission record is included
Active for n days
A heat map below GitHub
2.
At the same time under your tap
We added n lines of code and we deleted n lines of code and we changed n lines of code
3.
N month n day is kind of a special day where you submit code to n repositories n times
You have the most submissions on a given day in one warehouse
4.
NTH month, NTH day, you went to bed late at NTH hour, NTH hour, and you were still working with the code when you submitted the code to the N repository
The latest day to submit the code, ranging from 23:00 to 4:00
5.
You submitted code to N days this year and you were the most dedicated to it of all the familiar projects
The project with the most number of days to submit code
6.
You like to submit code in n
N Including morning (6:00-12:00), afternoon (12:00-18:00), evening (18:00-24:00), morning (0:00-6:00)
Especially the m
N Includes busy weekdays and quiet weekends
In 365 days you have x m submitted code
Number of submission days on weekdays or weekends
7.
As a member of the community in 2018 you participated in discussions on n issues and collected n warehouses
Question discussion includes being assigned, asking questions, being mentioned, participating, etc
8.
Remember n, the best language in the world you used to love but seem to have forgotten it lately
One of the main languages of all the projects you participate in submitting, which was last submitted earliest
9.
Your annual language is n and you commit code to m n repositories x times in a year
The host language with the largest number of repositories participating in submissions
Quick start
Yarn is recommended.
$NPM install -g yarn $yarn $yarn start // Start service $YARN build // Package $YARNtest// Test $YARN deploy // DeployCopy the code
The overall design
The data structure
// localStorage
ACCESS_TOKEN = '452df45345dsfg46'
USERNAME = 'test'
AVATAR = 'http://test.com/test.jpg'
OTHER = 'test2'
INFO = JSON.stringify(this.info)
Copy the code
// fetchInfo
this.repos = [
{
repo: 'test'.owner: 'Jim'.language: 'Java'.commitTime: [
'2018-03-05T01:29:00Z'.'2018-03-05T08:50:00Z'.'2018-03-05T10:50:00Z'.'2018-03-08T10:30:00Z'.'2018-03-09T23:30:00Z'.'2018-03-10T14:30:00Z'].commitSha: [
'6dcb09b5b57875f334f61aebed695e2e4193db5e'.'7dcb09b5b57875f334f61aebed695e2e4193db5e'.'8dcb09b5b57875f334f61aebed695e2e4193db5e'.'9dcb09b5b57875f334f61aebed695e2e4193db5e'.'0dcb09b5b57875f334f61aebed695e2e4193db5e'.'1dcb09b5b57875f334f61aebed695e2e4193db5e',].// analysisSingle
commitMostDay: {
date: '2018-03-05T01:29:00Z'.count: 3
},
latestTime: '2018-03-05T01:29:00Z'.// It may be empty
sumDays: 8.morningNums: 3.afternoonNums: 1.eveningNums: 2.dawnNums: 2.addLines: 2001.deleteLines: 2001.totalLines: 4002,},... ]Copy the code
// analysisInfo
this.info = {
eventNums: 244.addLines: 20010.deleteLines: 20010.totalLines: 40020.likeWeekType: {
name: 'the weekend'.count: 52
},
weekendNums: 52.weekdayNums: 31.issueNums: 234.// Includes creation, assignment, mention, and subscription issues
starNums: 56.// Create the number of stars
forget: {
language: 'PHP'.date: '2018-01-01T11:22:00Z'
},
languageLastCommit: {
'Java': '2018-03-05T01:29:00Z'.'PHP': '2018-01-01T11:22:00Z'. },likePeriod: {
name: 'afternoon'.count: 30
},
period: {
morningNums: 15.afternoonNums: 30.eveningNums: 16.dawnNums: 5
},
mostDay: {
count: 6.repo: 'test'
},
latestDay: {
date: '2018-03-05T01:29'.repo: 'test'
},
specialDay: {
date: '2018-03-05T01:29:00Z'.repo: 'test'.count: 3
},
commitNums: 231.repoNums: 20.languageNums: 8.mostLanguage: {
name: 'JavaScript'.repoNums: 3.commitNums: 65
},
language: {
Java: 2.JavaScript: 3. }}Copy the code
Welcome to pay attention to the public number: pastoral code
More interesting programming information awaits you