Comments (2)
实现思路
- 使用 GraphQL 获取语言的前5~10的语言,参考 GraphQL 如下
{
repository(owner: "lctt", name: "grank") {
name
languages(first:10,orderBy:{field:SIZE,direction:DESC}){
nodes{
id
name
}
}
}
}
-
根据前三或特定顺序来进行分组。建议以排名第一的语言进行排序。比如,JS 语言的不区分 Node 还是前端,统一归为前端。Python 的不区分网站还是cli,统一归为 Python 类型的。
-
数据以各自的列表进行排序。
需要注意的点:
- 可以在导出的 CSV 中添加对应的 type,排序由人工来完成。(也就是输出时带上 type,分析人员通过 Excel / Numbers 之类的软件进行手动实现排序)
- 第一步建议实现按语言划分(即区分 JavaScript 、Java、Php、Python 等语言),后续再考虑综合不同语言的排序来实现(文档类、前端类、开发类)。
from grank.
正如之前讨论的,我们需要一个记录被采集项目的配置文件,这个配置文件中的配置值与其它途径的配置存在优先级:
- 全局配置,优先级最低
- 程序自动分析的得出的配置,优先级次高
- 数据配置文件中的配置,优先级更高
- 命令行指定的配置,优先级最高
举例一:项目分类
全局配置中不会指定项目分类,所以项目的分类首先是据此 issue 算法的自动分析得出的;然后,如果数据配置文件中有指定该分类,则采用数据配置;如果命令行中强制指定,则采用命令行配置。
from grank.
Related Issues (20)
- 建议增加指定统计的分支的功能
- 关于如何判断一个用户是社区开发者还是企业开发者 HOT 2
- 自动识别用户还是组织
- 拆分 Script 目录下的脚本 HOT 1
- JSON 配置文件读取模式的支持 HOT 4
- 除法导致的 RuntimeWarning: invalid value encountered in long_scalars HOT 1
- 命令行模式的支持 HOT 1
- go 版本的实现
- python 标准模块的实现
- 社区化分析参数的预处理 HOT 2
- 支持分析模式的设定
- 重复项目数据的覆盖
- 企业数据聚合 HOT 1
- query 疑似有误 HOT 1
- 公共域邮箱添加
- 调试参数的添加
- 部分项目的提交存在无时间信息的问题
- grank analy owner 命令出现的错误 HOT 1
- GitLab Support HOT 2
- 安装之后输入 grank 出错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grank.