Skip to content

Instantly share code, notes, and snippets.

View algomaster99's full-sized avatar
🔒
Securing software supply chains

Aman Sharma algomaster99

🔒
Securing software supply chains
View GitHub Profile
@algomaster99
algomaster99 / main.py
Last active June 13, 2023 14:21
SSSB scraper
# Run `pip install selenium` before starting script
import datetime
import json
import os
import time
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
@algomaster99
algomaster99 / ground_truth.json
Last active April 3, 2023 07:01
Parsed SPDX of Spoon
[
{
"groupId": "org.eclipse.jdt",
"artifactId": "org.eclipse.jdt.core",
"classifier": "jar",
"version": "3.32.0",
"scope": "compile",
"depth": 1,
"submodule": "fr.inria.gforge.spoon:spoon-core:jar:10.3.0-SNAPSHOT"
},
Commit Status Time(seconds) Notes Command
https://github.com/nosan/embedded-cassandra/commit/dcc5818d80489d3ebc2ed4265d673bc05af08551 S 3970.38 / 4122.90 https://khaes-kth.github.io/PatchExplainer/rq3_commit_analysis/embedded-cassandra_dcc5818d80489d3ebc2ed4265d673bc05af08551_1.html python3 scripts/bribe-sahab.py --execution-depth=1 -p /home/aman/testrepos/embedded-cassandra/ -c src/main/java/com/github/nosan/embedded/cassandra/WebCassandraDirectoryProvider.java -l 514fbbb -r dcc5818d80489d3ebc2ed4265d673bc05af08551 -t com.github.nosan.embedded.cassandra.WebCassandraDirectoryProviderTests
https://github.com/codingapi/springboot-framework/commit/70b0d1215c5c7a6f4bbd9d2eaed91a4b9b32311c S 213.67 / 285.88 https://khaes-kth.github.io/PatchExplainer/rq3_commit_analysis/springboot-framework_70b0d1215c5c7a6f4bbd9d2eaed91a4b9b32311c_3.html python3 scripts/bribe-sahab.py -p /home/aman/testrepos/springboot-framework/ -t com.sankuai.inf.leaf.IDGenTest -c springboot-starter-leaf/src/test/java/com/sankuai/inf/leaf/IDGenTe
@algomaster99
algomaster99 / popular_repos.txt
Created September 12, 2022 21:30
Popular repositories for collector-sahab
@algomaster99
algomaster99 / candidate.csv
Last active September 12, 2022 21:32
Candidate PRs for ExecDiff RQ3
Link status
https://github.com/maxcom/lorsource/pull/847 could not compile
https://github.com/opentripplanner/OpenTripPlanner/pull/3137 Fatal error compiling: error: release version 17 not supported
https://github.com/opentripplanner/OpenTripPlanner/pull/3070
https://github.com/opentripplanner/OpenTripPlanner/pull/3027/
https://github.com/wvengen/proguard-maven-plugin/pull/80/ conflicts with base branch
https://github.com/garbagemule/MobArena/pull/527/ the patch is not being hit
https://github.com/ctran/TinyRadius/pull/14/ old PR so they have conflicts
https://github.com/mitre/HTTP-Proxy-Servlet/pull/166/ all tests pass in both versions
https://github.com/heroku/webapp-runner/pull/192/ patch not being hit
@algomaster99
algomaster99 / current_reported_rules.txt
Last active February 23, 2022 13:05
Diff of Sonar warnings (SonarJava v 6.12.0.24852)
S2094
S2070
S2254
S2134
S2693
S5122
S1905
S2974
S3008
S4834
@algomaster99
algomaster99 / generate-report.sh
Created September 27, 2021 11:44
Script for running sorald
#!/usr/bin/bash
PATH_TO_SORALD="/home/aman/kth/sorald/target/sorald-0.3.1-SNAPSHOT-jar-with-dependencies.jar"
declare -a rules=("S1068"
"S1118"
"S1132"
"S1155"
"S1217"
"S1444"
@algomaster99
algomaster99 / multiple-clauses.WORD.yaml
Created August 4, 2021 10:09
Inserts a template with multiple clauses and gets the content controls
name: multiple-clauses
description: Inserts a template with multiple clauses and gets the content controls
host: WORD
api_set: {}
script:
content: |
$("#insert-text").click(() => tryCatch(run));
$("#event-listener").click(() => fetchContentControls());
async function fetchContentControls() {
Word.run(async (context) => {
@algomaster99
algomaster99 / Inserting an unordered list.WORD.yaml
Last active July 23, 2021 16:29
Note to self: don't delete me.
name: Inserting an unordered list
description: ''
host: WORD
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
await Word.run(async (context) => {