Skip to content

Commit

Permalink
adding new page for c++/spack ! (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
Co-authored-by: vsoch <[email protected]>
  • Loading branch information
vsoch and vsoch authored May 15, 2022
1 parent d717c13 commit caa2145
Show file tree
Hide file tree
Showing 360 changed files with 56,358 additions and 17,195 deletions.
34 changes: 18 additions & 16 deletions 2.analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,10 @@ def main():

# Write results, changing round to include most
global_cli.round_by = 100
content = (
header
% (
"RSEPedia Top Dependencies",
"dependencies",
)
+ global_cli.render(start_end_blocks=False, data=roots)
)
content = header % (
"RSEPedia Top Dependencies",
"dependencies",
) + global_cli.render(start_end_blocks=False, data=roots)
write_json(meta, meta_json)

# Write language counts
Expand All @@ -185,12 +181,14 @@ def main():
python_deps = len(
set(roots["pypi"]).union(roots["requirements.txt"]).union(roots["pypi"])
)
cpp_deps = len(set(roots["spack"]))
r_deps = len(set(roots["DESCRIPTION"]).union(roots["cran"]))
js_deps = len(set(roots["npm"]).union(roots["package.json"]))
go_deps = len(set(roots["go"]).union(roots["go.mod"]))

stats = {
"python_deps": python_deps,
"cpp_deps": cpp_deps,
"r_deps": r_deps,
"js_deps": js_deps,
"go_deps": go_deps,
Expand All @@ -208,14 +206,10 @@ def main():
data = global_cli.load_datafiles(
data_files, includes=["setup.py", "requirements.txt", "pypi"]
)
content = (
header
% (
"RSEPedia Top Python Dependencies",
"python",
)
+ global_cli.render(start_end_blocks=False, data=data)
)
content = header % (
"RSEPedia Top Python Dependencies",
"python",
) + global_cli.render(start_end_blocks=False, data=data)
write_file(os.path.join("pages", "python.md"), content)
repos_counts["Python"] = count_repos(data)

Expand All @@ -227,6 +221,14 @@ def main():
write_file(os.path.join("pages", "r.md"), content)
repos_counts["R"] = count_repos(data)

# Cpp
data = global_cli.load_datafiles(data_files, includes=["spack"])
content = header % ("RSEPedia Top Spack (C++) Dependencies", "cpp") + global_cli.render(
start_end_blocks=False, data=data
)
write_file(os.path.join("pages", "cpp.md"), content)
repos_counts["Cpp"] = count_repos(data)

# Javascript
data = global_cli.load_datafiles(data_files, includes=["package.json", "npm"])
content = header % ("RSEPedia Top Js Dependencies", "js") + global_cli.render(
Expand Down
44 changes: 23 additions & 21 deletions _data/language_counts.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
{
"unknown": 34,
"Python": 527,
"Jupyter Notebook": 91,
"Python": 576,
"Jupyter Notebook": 101,
"Modelica": 1,
"Shell": 15,
"HTML": 40,
"Shell": 16,
"HTML": 42,
"Perl": 10,
"R": 471,
"C++": 125,
"Java": 44,
"C": 40,
"Rust": 5,
"JavaScript": 50,
"R": 494,
"C++": 144,
"Java": 50,
"C": 45,
"Rust": 6,
"JavaScript": 52,
"AMPL": 1,
"MATLAB": 20,
"MATLAB": 26,
"Haskell": 1,
"Fortran": 19,
"Fortran": 22,
"Clojure": 1,
"Groovy": 2,
"E": 1,
"Julia": 30,
"null": 14,
"Julia": 38,
"null": 15,
"Matlab": 5,
"Scala": 3,
"TypeScript": 12,
"Scala": 4,
"TypeScript": 13,
"Nim": 1,
"Makefile": 3,
"C#": 6,
"C#": 7,
"Pascal": 1,
"TSQL": 2,
"Kotlin": 2,
"Go": 5,
"Go": 6,
"PostScript": 2,
"Nextflow": 5,
"CSS": 1,
"NCL": 1,
"Rich Text Format": 1,
"Cuda": 1,
"TeX": 6,
"TeX": 7,
"Ruby": 3,
"Mathematica": 1,
"OCaml": 1,
Expand All @@ -46,10 +46,12 @@
"Arc": 1,
"Standard ML": 1,
"Common Workflow Language": 1,
"Dockerfile": 1,
"Dockerfile": 2,
"Roff": 1,
"PLpgSQL": 1,
"Vue": 2,
"CMake": 1,
"Stan": 1
"Stan": 2,
"Lua": 2,
"PHP": 1
}
Loading

0 comments on commit caa2145

Please sign in to comment.