Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e65d673
update README.md
19991010wan Jun 15, 2022
1bad3b9
update network_extraction
19991010wan Jun 15, 2022
0298967
update get_diffenerentsides_count
19991010wan Jul 4, 2022
442e4c6
delete
19991010wan Jul 4, 2022
bb736d1
delete
19991010wan Jul 27, 2022
cf1426d
update differentsides_count
19991010wan Jul 27, 2022
e60562c
update network
19991010wan Jul 27, 2022
5c582dc
update commets and network
19991010wan Jul 27, 2022
9ee5382
update nodesdegree
19991010wan Jul 27, 2022
3092b96
delete tranglecount
19991010wan Jul 27, 2022
942c8a6
update differentsides count
19991010wan Jul 27, 2022
9be0b78
update nodesdegree
19991010wan Jul 27, 2022
0cdebbf
delete token
19991010wan Jul 27, 2022
ee486d0
add commitdata
19991010wan Aug 1, 2022
ab6eedf
add issue_to_quality
19991010wan Aug 1, 2022
12578a0
add csvdata
19991010wan Aug 1, 2022
3c9542d
add qualitydata
19991010wan Aug 1, 2022
7bc11be
add data_to_csv
19991010wan Aug 1, 2022
39fc489
add get_commit_info
19991010wan Aug 1, 2022
a4d49f1
add get_issue_lastnumber
19991010wan Aug 1, 2022
a0fa87b
add get_issues_quality_metrics
19991010wan Aug 1, 2022
353a6f2
add get_repos_monthes
19991010wan Aug 1, 2022
8f69480
add quality_mertrics
19991010wan Aug 1, 2022
5f12ee0
update build_netwrok.py
19991010wan May 29, 2023
f6ee27d
update
19991010wan May 29, 2023
5f42ff0
update
19991010wan May 29, 2023
29f727d
update
19991010wan May 29, 2023
ec68084
update
19991010wan May 29, 2023
3657a1e
update data
19991010wan May 29, 2023
6e1fd66
update
19991010wan May 29, 2023
3a962c8
update
19991010wan May 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,6 @@ In addition, the api interface provided by github is called up to 5000 times per

Because the number of comments is too much, running a period of time will be disconnected, so here used 7 github personal token (get github data need token password). When a token fails, it can be replaced with the next token, or several programs can be run at the same time.

```python
Auth_token = os.getenv('GITHUB_TOKEN', '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')
Auth_token_0 = os.getenv('GITHUB_TOKEN', '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')
Auth_token_1 = os.getenv('GITHUB_TOKEN', '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')
Auth_token_2 = os.getenv('GITHUB_TOKEN', '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')
Auth_token_3 = os.getenv('GITHUB_TOKEN', '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')
Auth_token_4 = os.getenv('GITHUB_TOKEN', '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')
Auth_token_5 = os.getenv('GITHUB_TOKEN', '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')
```

Similarly, the acquired data needs to be cleaned and remove the redundant data.

```python
Expand Down
198 changes: 198 additions & 0 deletions code/R/all_data.csv

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions code/R/get_DSN_features.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 安装并加载所需的包
install.packages("ggplot2")
library(ggplot2)

# 从CSV文件中读取数据
data <- read.csv("all_data.csv")

size_attribute <- data$DSN.size

density_attribute <- data$DSN.density

bridge_attribute <- data$DSN.bridges

k_stars_attribute <- data$DSN.k.stars..k.3.


# 创建一个4x4的图形布局
layout(matrix(c(1, 2, 3, 4), nrow = 2))

# 绘制第一个子图
p1 <- hist(size_attribute, main = "", xlab = "", ylab = "number of projects", col = "grey", xlim = c(0,6000), ylim = c(0, 140))
title(xlab = "(a) DIstribution of DSN size", line = 4)
text(p1$mids, counts_size, labels = counts_size, pos = 3, cex = 0.8, col = "black")


# 绘制第二个子图
p2 <- hist(density_attribute, main = "", xlab = "", ylab = "number of projects", col = "grey", ylim = c(0, 193))
title(xlab = "(b) DIstribution of DSN density", line = 4)
text(p2$mids, counts_density, labels = counts_density, pos = 3, cex = 0.8, col = "black")

# 绘制第三个子图
p3 <- hist(bridge_attribute, main = "", xlab = "", ylab = "number of projects", col = "grey", ylim = c(0, 85))
title(xlab = "(c) DIstribution of DSN bridge", line = 4)
text(p3$mids, counts_bridge, labels = counts_bridge, pos = 3, cex = 0.8, col = "black")

# 绘制第四个子图
p4 <- hist(k_stars_attribute, main = "", xlab = "", ylab = "number of projects", col = "grey", xlim = c(0,500), ylim = c(0, 130))
title(xlab = "(d) DIstribution of DSN k_stars (k=3)", line = 4)
text(p4$mids, counts_k_stars, labels = counts_k_stars, pos = 3, cex = 0.8, col = "black")



23 changes: 23 additions & 0 deletions code/R/get_stability_distribution.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 安装并加载所需的包
install.packages("ggplot2")
library(ggplot2)

# 从CSV文件中读取数据
data <- read.csv("all_data.csv")

# 选择某个特定属性列
stibility_attribute <- data$DSN.stability

# 设置区间的数量和范围
num_bins <- 10
bin_range <- c(min(stibility_attribute), max(stibility_attribute))

another_bin_range <- c(min(aother_attribute), max(aother_attribute))

counts_stability <- hist(stibility_attribute, plot = FALSE)$counts

p1 <- barplot(stibility_attribute, xlab = "", ylab = "DSN stability")

p2 <- hist(stibility_attribute, main = "", xlab = "DSN stability", ylab = "number of projects", col = "grey", breaks = seq(0.00, 0.14, by = 0.01), ylim = c(0, max(hist(stibility_attribute)$counts) + 1)) + text(p2$mids, counts_stability, labels = counts_stability, pos = 3, cex = 0.8, col = "black")


9,114 changes: 9,114 additions & 0 deletions code/data/_commentdata_36monthes/CNTK_comments_36monthes

Large diffs are not rendered by default.

18,360 changes: 18,360 additions & 0 deletions code/data/_commentdata_36monthes/Cataclysm-DDA_comments_36monthes

Large diffs are not rendered by default.

5,365 changes: 5,365 additions & 0 deletions code/data/_commentdata_36monthes/Chart.js_comments_36monthes

Large diffs are not rendered by default.

269 changes: 269 additions & 0 deletions code/data/_commentdata_36monthes/FLEX_comments_36monthes

Large diffs are not rendered by default.

13,491 changes: 13,491 additions & 0 deletions code/data/_commentdata_36monthes/Ghost_comments_36monthes

Large diffs are not rendered by default.

434 changes: 434 additions & 0 deletions code/data/_commentdata_36monthes/Gooey_comments_36monthes

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions code/data/_commentdata_36monthes/Goutte_comments_36monthes
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[109, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/109', 'thewilkybarkid', 1784740, '2013-06-13T14:31:25Z', 'CONTRIBUTOR']
[104, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/104', 'fabpot', 47313, '2013-05-02T20:07:22Z', 'MEMBER']
[104, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/104', 'matthewpoole', 4325014, '2013-05-02T22:06:45Z', 'NONE']
[101, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/101', 'sirinibin', 651396, '2013-04-16T22:21:37Z', 'NONE']
[101, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/101', 'stof', 439401, '2013-04-17T00:27:27Z', 'MEMBER']
[99, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/99', 'stof', 439401, '2013-04-02T00:34:03Z', 'MEMBER']
[99, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/99', 'nonlux', 1284646, '2013-04-02T13:54:39Z', 'NONE']
[99, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/99', 'nonlux', 1284646, '2013-04-02T14:29:41Z', 'NONE']
[91, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/91', 'stof', 439401, '2012-12-07T20:29:56Z', 'MEMBER']
[91, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/91', 'srcspider', 338910, '2012-12-07T22:31:51Z', 'NONE']
[89, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/89', 'fabpot', 47313, '2012-12-02T13:46:55Z', 'MEMBER']
[89, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/89', 'p', 125612, '2012-12-02T16:40:02Z', 'NONE']
[88, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/88', 'stof', 439401, '2012-12-10T14:44:13Z', 'MEMBER']
[88, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/88', 'estahn', 362174, '2012-12-13T01:03:15Z', 'NONE']
[88, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/88', 'mtdowling', 190930, '2012-12-17T21:02:13Z', 'CONTRIBUTOR']
[83, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/83', 'arturo-c', 344643, '2012-11-08T21:29:32Z', 'CONTRIBUTOR']
[80, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/80', 'tiger-seo', 398720, '2012-10-21T17:47:55Z', 'CONTRIBUTOR']
[70, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/70', 'bantu', 189375, '2012-07-19T14:37:05Z', 'NONE']
[70, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/70', 'Fyorl', 207433, '2012-07-19T16:26:28Z', 'NONE']
[69, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/69', 'mtdowling', 190930, '2012-07-11T17:06:30Z', 'CONTRIBUTOR']
[69, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/69', 'antonbabenko', 393243, '2012-07-11T19:18:20Z', 'NONE']
[69, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/69', 'seejohnrun', 64965, '2013-03-12T19:33:33Z', 'NONE']
[67, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/67', 'zachbadgett', 916274, '2012-07-27T20:25:38Z', 'CONTRIBUTOR']
[65, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/65', 'fabpot', 47313, '2012-06-21T06:02:39Z', 'MEMBER']
[65, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/65', 'stof', 439401, '2012-06-21T07:13:23Z', 'MEMBER']
[63, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/63', 'mtdowling', 190930, '2012-06-15T23:59:53Z', 'CONTRIBUTOR']
[63, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/63', 'DylanBowden', 1420144, '2012-06-16T08:39:54Z', 'NONE']
[63, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/63', 'mtdowling', 190930, '2012-06-20T16:28:43Z', 'CONTRIBUTOR']
[49, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/49', 'fabpot', 47313, '2012-05-17T13:02:03Z', 'MEMBER']
[49, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/49', 'Seldaek', 183678, '2012-05-17T13:39:43Z', 'CONTRIBUTOR']
[49, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/49', 'fabpot', 47313, '2012-05-17T13:43:37Z', 'MEMBER']
[49, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/49', 'holtkamp', 776405, '2012-05-17T18:35:58Z', 'NONE']
[49, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/49', 'holtkamp', 776405, '2012-05-17T19:22:32Z', 'NONE']
[48, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/48', 'fabpot', 47313, '2012-05-16T09:30:45Z', 'MEMBER']
[48, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/48', 'kenjis', 87955, '2012-05-16T09:45:40Z', 'NONE']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'fabpot', 47313, '2012-05-15T20:40:28Z', 'MEMBER']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'enygma', 66796, '2012-05-15T20:54:45Z', 'NONE']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'enygma', 66796, '2012-05-15T21:11:14Z', 'NONE']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'fabpot', 47313, '2012-05-15T21:27:22Z', 'MEMBER']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'enygma', 66796, '2012-05-15T21:29:34Z', 'NONE']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'stof', 439401, '2012-05-15T21:46:06Z', 'MEMBER']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'enygma', 66796, '2012-05-15T22:14:35Z', 'NONE']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'fabpot', 47313, '2012-05-16T05:46:41Z', 'MEMBER']
[47, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/47', 'enygma', 66796, '2012-05-18T11:41:37Z', 'NONE']
[43, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/43', 'meglio', 282177, '2012-04-06T18:29:48Z', 'NONE']
[43, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/43', 'meglio', 282177, '2012-04-06T18:34:38Z', 'NONE']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'igorw', 88061, '2012-03-16T16:32:00Z', 'CONTRIBUTOR']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'stfalcon', 159215, '2012-03-22T17:36:27Z', 'NONE']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'cursedcoder', 899452, '2012-03-22T21:29:27Z', 'NONE']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'meglio', 282177, '2012-04-10T22:03:04Z', 'NONE']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'stof', 439401, '2012-04-11T00:08:11Z', 'MEMBER']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'CEikermann', 611185, '2012-04-11T08:09:59Z', 'NONE']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'meglio', 282177, '2012-04-26T19:10:02Z', 'NONE']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'igorw', 88061, '2012-04-26T20:23:24Z', 'CONTRIBUTOR']
[39, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/39', 'fabpot', 47313, '2012-05-15T08:39:57Z', 'MEMBER']
[38, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/38', 'stof', 439401, '2012-03-15T20:14:37Z', 'MEMBER']
[38, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/38', 'ransom4real', 547202, '2012-03-15T20:32:41Z', 'NONE']
[37, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/37', 'zapletalitstudio', 1729616, '2012-06-27T10:29:34Z', 'NONE']
[24, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/24', 'theUniC', 318014, '2011-10-01T23:51:50Z', 'NONE']
[24, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/24', 'fabpot', 47313, '2012-05-15T08:57:15Z', 'MEMBER']
[23, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/23', 'stof', 439401, '2011-09-18T12:14:20Z', 'MEMBER']
[23, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/23', 'pkruithof', 330828, '2011-09-18T12:39:29Z', 'NONE']
[22, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/22', 'fabpot', 47313, '2011-12-07T18:19:57Z', 'MEMBER']
[1, 'https://api.github.com/repos/FriendsOfPHP/Goutte/issues/1', 'fabpot', 47313, '2010-07-13T05:54:45Z', 'MEMBER']
Loading