统计用

This commit is contained in:
zy 2022-10-10 17:30:05 +08:00
parent dd016c3caf
commit 153c40627b
2 changed files with 84 additions and 5 deletions

View File

@ -1,11 +1,41 @@
reed-overflow stage1st-reader git@github.com:reed-overflow/stage1st-reader 1
tencentyun TUIChatSalon git@github.com:tencentyun/TUIChatSalon 2
OpenNMS horizon-stream git@github.com:OpenNMS/horizon-stream 4
ThomasOM LiteLimbo git@github.com:ThomasOM/LiteLimbo 5
DataBiosphere terra-workspace-manager git@github.com:DataBiosphere/terra-workspace-manager 6
palantir assertj-automation git@github.com:palantir/assertj-automation 8
StarRocks starrocks-connector-for-apache-spark git@github.com:StarRocks/starrocks-connector-for-apache-spark 9
navikt vtp git@github.com:navikt/vtp 10
kcook-cake K.Cook-Server git@github.com:kcook-cake/K.Cook-Server 11
RoinujNosde TitansBattle git@github.com:RoinujNosde/TitansBattle 14
oguzkaran Java-Feb-2022 git@github.com:oguzkaran/Java-Feb-2022 15
apavarino Deadchest git@github.com:apavarino/Deadchest 17
Baek-dh aclass0804 git@github.com:Baek-dh/aclass0804 18
twelvet-s twelvet git@github.com:twelvet-s/twelvet 19
LOOHP InteractiveChat-DiscordSRV-Addon git@github.com:LOOHP/InteractiveChat-DiscordSRV-Addon 20
flowerfine scaleph git@github.com:flowerfine/scaleph 21
3arthqu4ke 3arthh4ck git@github.com:3arthqu4ke/3arthh4ck 23
superleeyom my-feed-OPML git@github.com:superleeyom/my-feed-OPML 24
Gilded-Games The-Aether git@github.com:Gilded-Games/The-Aether 25
VirtusLab git-machete-intellij-plugin git@github.com:VirtusLab/git-machete-intellij-plugin 26
dockstore dockstore git@github.com:dockstore/dockstore 27
codeforkjeff conciliator git@github.com:codeforkjeff/conciliator 29
GoogleCloudPlatform functions-framework-java git@github.com:GoogleCloudPlatform/functions-framework-java 30
AlexModGuy AlexsMobs git@github.com:AlexModGuy/AlexsMobs 31
team-abnormals upgrade-aquatic git@github.com:team-abnormals/upgrade-aquatic 32
jenkinsci promoted-builds-plugin git@github.com:jenkinsci/promoted-builds-plugin 33
Cosmic-Ide Cosmic-Ide git@github.com:Cosmic-Ide/Cosmic-Ide 34
urbanairship android-library git@github.com:urbanairship/android-library 35
TrianguloY UrlChecker git@github.com:TrianguloY/UrlChecker 36
Darkhax-Minecraft Bookshelf git@github.com:Darkhax-Minecraft/Bookshelf 37
TelepathicGrunt Bumblezone git@github.com:TelepathicGrunt/Bumblezone 38
apache commons-crypto git@github.com:apache/commons-crypto 40
OpenLineage OpenLineage git@github.com:OpenLineage/OpenLineage 41
afkT DevUtils git@github.com:afkT/DevUtils 42
apache inlong git@github.com:apache/inlong 59
dropwizard dropwizard git@github.com:dropwizard/dropwizard 67
firebase quickstart-android git@github.com:firebase/quickstart-android 69
apache shardingsphere-elasticjob git@github.com:apache/shardingsphere-elasticjob 71
dropwizard metrics git@github.com:dropwizard/metrics 72
debezium debezium git@github.com:debezium/debezium 76
checkstyle checkstyle git@github.com:checkstyle/checkstyle 77
spring-projects spring-security git@github.com:spring-projects/spring-security 79
apache shenyu git@github.com:apache/shenyu 80
macrozheng mall git@github.com:macrozheng/mall 83
TheAlgorithms Java git@github.com:TheAlgorithms/Java 85
@ -13,7 +43,7 @@ apache dubbo git@github.com:apache/dubbo 86
alibaba arthas git@github.com:alibaba/arthas 89
apolloconfig apollo git@github.com:apolloconfig/apollo 92
xkcoding spring-boot-demo git@github.com:xkcoding/spring-boot-demo 93
dromara hutool git@github.com:dromara/hutool 95
romara hutool git@github.com:dromara/hutool 95
alibaba nacos git@github.com:alibaba/nacos 96
halo-dev halo git@github.com:halo-dev/halo 97
CymChad BaseRecyclerViewAdapterHelper git@github.com:CymChad/BaseRecyclerViewAdapterHelper 98

49
plus.py Normal file
View File

@ -0,0 +1,49 @@
import queue
import re
import threading
import time
from collections import Counter
from typing import Dict, List, Tuple
import pandas as pd
from sqlalchemy import create_engine
import GlobalConstants
from ConfigOperator import ConfigOperator
from FileOperator import FileOperator
from models.RepoInfo import RepoInfo
from MySQLOperator import MySQLOperator
file = FileOperator("other_repos")
repoInfos = file.load_repos()
commits = 0
blobs = 0
clone_pairs = 0
for repoInfo in repoInfos:
mysqlOp: MySQLOperator = MySQLOperator(
config_path="configother.yml", repoInfo=repoInfo
)
sql_commits = """
select count(*) from `{id}{separator}commits`
""".format(
id=repoInfo.id, separator=GlobalConstants.SEPARATOR
)
sql_blobs = """
select count(*) from `{id}{separator}blobs`
""".format(
id=repoInfo.id, separator=GlobalConstants.SEPARATOR
)
sql_clone_pairs = """
select count(*) from `{id}{separator}result_of_evaluator`
""".format(
id=repoInfo.id, separator=GlobalConstants.SEPARATOR
)
mysqlOp.cursor.execute(sql_commits)
commits = commits + len(mysqlOp.cursor.fetchall())
mysqlOp.cursor.execute(sql_blobs)
blobs = blobs + len(mysqlOp.cursor.fetchall())
mysqlOp.cursor.execute(sql_clone_pairs)
clone_pairs = clone_pairs + len(mysqlOp.cursor.fetchall())
print(commits)
print(blobs)
print(clone_pairs)