Git Product home page Git Product logo

waka-readme-stats's Introduction

नमस्ते (Namaste)🙏🏻, I'm Anmol Pratap Singh!

Associate Technical Lead at OneOrigin

Twitter Follow Linkedin: anmol GitHub followers website Waka Readme

📫 Like to meet me?

Pick a slot if you'd like to meet me and chat about anything you are passionate about - but make sure to describe the agenda

meet_link

👇 Hit in your console or terminal to connect with me.

npx anmol

👆 This command line tool can be found at npx anmol

A little more about me...

const anmol = {
    pronouns: "He" | "Him",
    code: ["Javascript", "Python", "Java", "PHP"],
    askMeAbout: ["web dev", "tech", "app dev", "photography"],
    technologies: {
        backEnd: {
            js: ["Node", "Fastify", "Express"],
        },
        mobileApp: {
            native: ["Android Development"]
        },
        devOps: ["AWS", "Docker🐳", "Route53", "Nginx"],
        databases: ["mongo", "MySql", "sqlite"],
        misc: ["Firebase", "Socket.IO", "selenium", "open-cv", "php", "SuiteApp"]
    },
    architecture: ["Serverless Architecture", "Progressive web applications", "Single page applications"],
    currentFocus: "No Focus point at this time",
    funFact: "There are two ways to write error-free programs; only the third one works"
};

I love connecting with different people so if you want to say hi, I'll be happy to meet you more! 😊


Code Time

Profile Views

Lines of code

🐱 My GitHub Data

📦 185.8 kB Used in GitHub's Storage

🏆 17 Contributions in the Year 2024

🚫 Not Opted to Hire

📜 21 Public Repositories

🔑 23 Private Repositories

I'm an Early 🐤

🌞 Morning                758 commits         ████░░░░░░░░░░░░░░░░░░░░░   17.43 % 
🌆 Daytime                1767 commits        ██████████░░░░░░░░░░░░░░░   40.62 % 
🌃 Evening                1284 commits        ███████░░░░░░░░░░░░░░░░░░   29.52 % 
🌙 Night                  541 commits         ███░░░░░░░░░░░░░░░░░░░░░░   12.44 % 

📅 I'm Most Productive on Sunday

Monday                   542 commits         ███░░░░░░░░░░░░░░░░░░░░░░   12.46 % 
Tuesday                  602 commits         ███░░░░░░░░░░░░░░░░░░░░░░   13.84 % 
Wednesday                709 commits         ████░░░░░░░░░░░░░░░░░░░░░   16.30 % 
Thursday                 579 commits         ███░░░░░░░░░░░░░░░░░░░░░░   13.31 % 
Friday                   455 commits         ███░░░░░░░░░░░░░░░░░░░░░░   10.46 % 
Saturday                 558 commits         ███░░░░░░░░░░░░░░░░░░░░░░   12.83 % 
Sunday                   905 commits         █████░░░░░░░░░░░░░░░░░░░░   20.80 % 

📊 This Week I Spent My Time On

🕑︎ Time Zone: Asia/Dubai

💬 Programming Languages: 
TypeScript               6 hrs 58 mins       █████████████████░░░░░░░░   69.04 % 
YAML                     1 hr 43 mins        ████░░░░░░░░░░░░░░░░░░░░░   17.02 % 
JSON                     44 mins             ██░░░░░░░░░░░░░░░░░░░░░░░   07.43 % 
JavaScript               17 mins             █░░░░░░░░░░░░░░░░░░░░░░░░   02.96 % 
SQL                      14 mins             █░░░░░░░░░░░░░░░░░░░░░░░░   02.45 % 

🔥 Editors: 
WebStorm                 9 hrs 57 mins       █████████████████████████   98.62 % 
DataGrip                 7 mins              ░░░░░░░░░░░░░░░░░░░░░░░░░   01.29 % 
PyCharm                  0 secs              ░░░░░░░░░░░░░░░░░░░░░░░░░   00.09 % 

💻 Operating System: 
Mac                      10 hrs 5 mins       █████████████████████████   100.00 % 

I Mostly Code in JavaScript

JavaScript               32 repos            ███████████░░░░░░░░░░░░░░   45.71 % 
Java                     7 repos             ██░░░░░░░░░░░░░░░░░░░░░░░   10.00 % 
CSS                      6 repos             ██░░░░░░░░░░░░░░░░░░░░░░░   08.57 % 
TypeScript               5 repos             ██░░░░░░░░░░░░░░░░░░░░░░░   07.14 % 
Python                   4 repos             █░░░░░░░░░░░░░░░░░░░░░░░░   05.71 % 

Last Updated on 04/05/2024 00:23:45 UTC

These Readme stats are generated using github action awesome-readme-stats

NOTE: Top languages does not indicate my skill level or anything like that. It is just a metric of which languages have been hosted by me on GitHub based on the usage across repositories. There are others which I haven't put up on GitHub.

waka-readme-stats's People

Contributors

ajmeese7 avatar anmol098 avatar anmolasu avatar aravindvnair99 avatar brignano avatar daggy1234 avatar danrowe avatar deadshot674gam avatar dependabot[bot] avatar dmego avatar exil0867 avatar fbuireu avatar guilyx avatar hedyhli avatar iamgrodrigues avatar infinitel8p avatar markenjaden avatar matfax avatar mheob avatar na93r avatar ohtgo avatar osd-noah-tran avatar prabhatdev avatar pseusys avatar ribeiroevandro avatar roc136 avatar swenchao avatar tkd-alex avatar tlatkdgus1 avatar txtxj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

waka-readme-stats's Issues

I'm getting an 401 error on run

Describe the bug
When running the workflow I get an error on the run step.

To Reproduce
Steps to reproduce the behavior:

  1. Run the workflow.
  2. Get this error :
Traceback (most recent call last):
Exception Occurred Query failed to run by returning code of 401. 
  File "/main.py", line 491, in <module>
    user_data = run_query(userInfoQuery)  # Execute the query
  File "/main.py", line 152, in run_query
    raise Exception("Query failed to run by returning code of {}. {}".format(request.status_code, query))
Exception: Query failed to run by returning code of 401. 
{
    viewer {
      login
      id
    }
  }

{
    viewer {
      login
      id
    }
}

Expected behavior
Not getting an error and have statistics generated in the README.

Github repository link
https://github.com/Ayfri/Ayfri

Translation

Needed Translation of stats and hardcoded string to the language specified by the user.
and please contribute to the translation of readme also

Don't show new things by default

It is fine if something we want is not shown, but it could be bad if something we don't want to share is displayed. So I think new things shouldn't be shown by default. 64bb35f is an example of a new thing is shown by default.

And it is better to have "v1", "v2" branches in case of breaking changes. If you have a v1 branch, then you can show some new things by default in v2, or change the default settings in other ways you want.

BUG I think..

Describe the bug
I had follow all the steps, add my secret keys, add the text in the readme, run the action, but I run manually the action, and nothing happens, the action is been run and completed but I can't see the stats.
Please help.

To Reproduce
Steps to reproduce the behavior:
Follow the instructions of the readme

Expected behavior
Show the results in my readme

Github repository link
anmol098/waka-readme-stats@master

Additional context
Maybe I'm missing somthing...

BUG: "This Week I Spend My Time On" stats not reflecting stats for the whole week

Describe the bug
The action is running fine and updating as described. However, the "This Week I Spent My Time On" section is not reflecting the amount of time Wakatime has me as having worked for the past week -- whether you define it as the past seven days OR as the week starting with Sunday/Monday. For instance, the amount of time it claims I've worked on my "words-as-classifier" project is exactly equal to the amount I worked on that project just yesterday, and doesn't include any of the time I worked on that project even on Tuesday, much less for the rest of the week.
chrome_HNaHlKfL1P
This time is definitely being logged within Wakatime, as evidenced by the following graph from Wakatime's website:
chrome_ffvpfVttOC
This is not unique to this particular project; the amount of time I worked on my 7a7aFaM project only reflects the amount of time I worked on that project on the 25th.

To Reproduce
It's unfortunately not clear to me what's causing this error, and I'm thus not really able to reproduce it as I haven't done anything other than the normal setup of the github action.

Expected behavior
I expected the "This Week I Spent My Time On" section to reflect the amount of work I'd done on various projects over the past 7 days in total.

Github repository link
https://github.com/betoma/betoma

Additional context
Add any other context about the problem here.

What do you think about the 'Projects''s order?

Is your feature request related to a problem? Please describe.
As you can see here in the README I've only 5 project listed, and this It's ok for me.
But I work currently to other projects and I've spent more time than other project that are not listed below.

image

For example I've worked on mitmproxy-wsus more than Unknown Project.

image

Describe the solution you'd like
We can easly order the project by percentage, what do you think?
I can work on this PR if you think is a good idea.

FEAT Use with waka-readme

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

I want to use this action with waka-readme. But now I can't use it at the same time. Because the START_SECTION:waka keywords are the same name.

Describe the solution you'd like

I would like to be able to change this keyword in an environment variable or other way.

Describe alternatives you've considered

START_SECTION:waka to a different name. However, I don't recommend this, as it forces existing users to change their names.

feat: accept inclusion of organization accounts

Is your feature request related to a problem? Please describe.
Currently, this action doesn't include organization accounts. Only personal repositories seem to be tracked. This can make a big difference in the stats.

Describe the solution you'd like
An additional input could be added to the action.yml that is passed to the LinesOfCode class.

Additional context
Here is a nice blog post on this that uses the new v4 GraphQL API.

BUG: Query failed to run by returning code of 202

Describe the bug
I randomly get that message on some runs when I try to update my readme. When that happens, the amount of lines coded is not correct, so I need to manually re-run it and hope it doesn't fail once again.

To Reproduce
There's nothing I can do to reproduce it. As I said, it seems random. For example this run failed.

Expected behavior
It shouldn't print that message nor give invalid line counts.

Github repository link
https://github.com/marcizhu/marcizhu

Lines removals in the graph

Hey all,

In the graph section, it takes into account the number of lines input in github repositories.

I happen to have had some quarters where I removed more lines than added, making the graph go into negatives and disrupting the display a bit.

Few options :

  • count negative inputs as positive one and sum them up
  • discredit entirely negative inputs
  • adapt the graph for such cases

Remove "📊 This week I spent my time on" when empty

I'm only using SHOW_COMMIT so the next section is empty:

image

It would be nice to not show it when it's empty 🙂

My env is:

SHOW_DAYS_OF_WEEK: False
SHOW_EDITORS: False
SHOW_LANGUAGE_PER_REPO: False
SHOW_LANGUAGE: False
SHOW_LOC_CHART: False
SHOW_OS: False
SHOW_PROJECTS: False
SHOW_TIMEZONE: False
SHOW_LINES_OF_CODE: False

Bug: File "/main.py", line 312, in <module>

Error when running.

Traceback (most recent call last):
  File "/main.py", line 312, in <module>
    repo.update_file(path=contents.path, message='Updated with Dev Metrics',
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 2098, in update_file
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 409 {"message": "README.md does not match 6bbbd746ff8ea3babb6a49e551ccc2858e18f20c", "documentation_url": "https://developer.github.com/v3/repos/contents/#create-or-update-a-file"}

Tests

We may need to write tests to check it properly for any new update.

Align progress bars

Hi,

Here's the current state of my board :

🌞 Morning    261 commits    ████░░░░░░░░░░░░░░░░░░░░░   16.72% 
🌆 Daytime    638 commits    ██████████░░░░░░░░░░░░░░░   40.87% 
🌃 Evening    437 commits    ███████░░░░░░░░░░░░░░░░░░   27.99% 
🌙 Night      225 commits    ███░░░░░░░░░░░░░░░░░░░░░░   14.41%
💬 Languages: 
Go                       11 hrs 37 mins      █████████████░░░░░░░░░░░░   54.17% 
Bash                     5 hrs 44 mins       ██████░░░░░░░░░░░░░░░░░░░   26.76% 
Julia                    1 hr 22 mins        █░░░░░░░░░░░░░░░░░░░░░░░░   6.4% 
Other                    56 mins             █░░░░░░░░░░░░░░░░░░░░░░░░   4.4% 
Protocol Buffer          52 mins             █░░░░░░░░░░░░░░░░░░░░░░░░   4.05%

Wouldn't it be better if all progress bars were aligned both right and left ? This could be a simple fix I could look into ( it would take about a week for me to have the time to actually do it though )

FEAT: commits made by bot

Is your feature request related to a problem? Please describe.
With the github-activity repo, the commits to your README are made by a GitHub bot. This means the commits aren't attributed to you, so they don't fill up your commit graph.

It would be awesome if this project could do something similar, so my chart is only populated by commits I actually make instead of loads of filler commits.

Describe the solution you'd like
An implementation of a GitHub bot that makes the commits on our behalf.

Describe alternatives you've considered
I can't think of any for this issue.

Additional context
Example

This is an example of commits made by the activity repo vs. the waka-readme-stats repo.

BUG The waka data is not updating

Describe the bug
The waka time info is not updated. My action runner runs the script every hour and it is expected to be updated.
image

image

This is my yml file

name: README STATS UPDATE

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
  push:
    branches: [ master ]
  schedule:
    # Runs at 12am IST
    - cron: '*/60 * * * *'

jobs:
  update-readme:
    name: Update Readme with Metrics
    runs-on: ubuntu-latest
    steps:
      - uses: anmol098/waka-readme-stats@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
          SHOW_OS: False
          SHOW_TIMEZONE: False
          SHOW_EDITORS: False
          SHOW_LOC_CHART: False
          SHOW_LANGUAGE_PER_REPO: False
          SHOW_DAYS_OF_WEEK: False
          SHOW_LINES_OF_CODE: False
          SHOW_PROFILE_VIEWS: False

How to Display

How to Display

How can i display I'm an early 🐤 or I'm an night 🦉?

My YAML file looks like this;

name: Waka Readme

on:
  schedule:
    - cron: '*/30 * * * *'

jobs:
  update-readme:
    name: Update Readme with Metrics
    runs-on: ubuntu-latest
    steps:
      - uses: anmol098/waka-readme-stats@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
          SHOW_COMMIT: "True" 

SHOW_COMMIT Should enable these "widgets"? If yes, it seems i don't know how to display them. Could you help me? 👍

Add flag to show/hide daily day of the week commit stats

I see that commit stats now include days of the week.

I think it would be nice to have a flag to hide this section (without hiding time of the day stats) and maybe the other way around.

This way, you can keep the readme's content shorter if desired, and only include the sections you want.

Add||edgycoder

Github Profile Link
https://github.com/edgycoder

Your Name
> EdgyCoder ✌

Edit: I figured out that escaping it with a backslash also works and even works better!
So a code-block was not needed

[BUG] 404 Error on Start

Describe the bug
The workflow spits out a 404 error on start.

To Reproduce
Steps to reproduce the behavior:

  1. Add the example YML to .github/workflows
  2. Add a secret called WAKATIME_API_KEY to the repo.
  3. Run the workflow.
  4. Get the error.

Expected behavior
I expect the workflow to edit the readme, meanwhile it does nothing and spits out a 404 error. The workflow from athul/waka-readme works fine.

Github repository link
https://github.com/itsnebulalol/itsnebulalol

Additional context
I have linked the repository where the workflow was being used, and the workflow is named waka-readme.yml

Workflow YML

name: Waka Readme

on:
  workflow_dispatch:
  schedule:
    # Runs at 8AM EDT (12:00 UTC)
    - cron: '0 12 * * *'

jobs:
  update-readme:
    name: Update Readme with Metrics
    runs-on: ubuntu-latest
    steps:
      - uses: anmol098/waka-readme-stats@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}

Error

Traceback (most recent call last):
github-actions[bot]
  File "/main.py", line 495, in <module>
Exception Occurred 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-repository"}
    repo = g.get_repo(f"{username}/{username}")
  File "/usr/local/lib/python3.8/site-packages/github/MainClass.py", line 324, in get_repo
    headers, data = self.__requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-repository"}

FEAT: Use .gitattributes when counting LoC

Is your feature request related to a problem? Please describe.
The lines of code feature vastly overestimates the lines of code I have written, and it has done the same to many accounts I have seen using this repository.

The issue is that when libraries like jQuery are committed in a repo, they are considered vendored and not factored into the language percentages for a repository. According to Sourcerer, I have written 175k lines of code, but waka-readme-stats says that number is closer to 8 million.

And with the code graph, it has Python greater than every other language on mine, with my only Python repository inflated due to libraries that I have marked as vendored in .gitattributes.

My bar graph

Describe the solution you'd like
I would like code libraries to be ignored when counting lines of code and when creating the code graph.

The .gitattributes file is a good starting place for this, but GitHub automatically flags a lot of vendored code libraries as such and ignores them. I don't know what the best way to implement this feature is, but it's something to consider.

FEAT: Three quarters? Why so?

I'm definitely missing something. I thought traditionally the year was divided into four quarters, not three. So it's four months now? Is this some limitation on the API's part? Is it possible to remake it? It's a bit confusing.

Add||<p014ri5>

github.com/p014ri5
A direct link to your profile

p014ri5
your name which should be displayed on the link

Getting some sort of ApacheConf exception

Describe the bug
The action fails due to the ApacheConf exception

Run anmol098/waka-readme-stats@master
SHOW_TIMEZONE: True
    SHOW_COMMIT: True
    SHOW_LANGUAGE: True
    SHOW_LINES_OF_CODE: False
    SHOW_LANGUAGE_PER_REPO: True
    SHOW_LOC_CHART: True
    SHOW_DAYS_OF_WEEK: True
    SHOW_PROFILE_VIEWS: True
    SHOW_SHORT_INFO: True
/usr/bin/docker run --name cb3bf5acb3173a45008aea8fd68e3c2502_373029 --label 8118cb --workdir /github/workspace --rm -e INPUT_WAKATIME_API_KEY -e INPUT_GH_TOKEN -e INPUT_SHOW_OS -e INPUT_SHOW_PROJECTS -e INPUT_SHOW_EDITORS -e INPUT_SHOW_TIMEZONE -e INPUT_SHOW_COMMIT -e INPUT_SHOW_LANGUAGE -e INPUT_SHOW_LINES_OF_CODE -e INPUT_SHOW_LANGUAGE_PER_REPO -e INPUT_SHOW_LOC_CHART -e INPUT_SHOW_DAYS_OF_WEEK -e INPUT_SHOW_PROFILE_VIEWS -e INPUT_SHOW_SHORT_INFO -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/grigala/grigala":"/github/workspace" 8118cb:3bf5acb3173a45008aea8fd68e3c2502
Please Ignore this exception 'NoneType' object is not subscriptable
Exception Occurred 'ApacheConf'
Traceback (most recent call last):
  File "/main.py", line 478, in <module>
    waka_stats = get_stats(g)
  File "/main.py", line 447, in get_stats
    loc.calculateLoc()
  File "/loc.py", line 33, in calculateLoc
    graph_file = graph.build_graph()
  File "/make_bar_graph.py", line 43, in build_graph
    if colors[language]['color'] is not None:

Expected behavior
Should be running without problems, the config seems to be correct - another version of Waka statistics works fine.

Github repository link
waka-readme-detailed.yml

Additional context

Screenshot ![screenshot](https://user-images.githubusercontent.com/2084794/89879118-bf6dbd80-dbc2-11ea-9ae8-946f4cfe33cc.png)

BUG

Describe the bug
The spacing between Language is uneven for the case of "Jupyter Notebook" (Github detects it as Language though it's not.)

Screenshot from 2020-08-01 22-36-25

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/pr2tik1/pr2tik1
  2. View the section

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.