Skip to content

Commit

Permalink
- Fixed python paths. Removing additional logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed May 16, 2024
1 parent 5c0f3bb commit edf236a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 36 deletions.
4 changes: 0 additions & 4 deletions dist/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ def main():
print("Extracting arguments from command line.")
env_vars = extract_args()

for root, dirs, files in os.walk("."):
for name in sorted(dirs + files):
print(os.path.join(root, name))

# Clean environment before mining
print("Data mining for Living Documentation")
run_script('clean_env_before_mining.py', env_vars)
Expand Down
2 changes: 1 addition & 1 deletion dist/github_query_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import re
import os
from typing import Set, List
from src.utils import ensure_folder_exists, save_state_to_json_file
from utils import ensure_folder_exists, save_state_to_json_file

OUTPUT_DIRECTORY = "data/fetched_data/feature_data"

Expand Down
13 changes: 0 additions & 13 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26827,19 +26827,6 @@ async function run() {
const milestonesAsChapters = core.getInput('milestones-as-chapters');
const repositories = core.getInput('repositories');

const currentDir = __dirname;
console.log(`Current directory: ${currentDir}`);
fs.readdir(currentDir, (err, files) => {
if (err) {
core.setFailed(`Unable to scan directory: ${err}`);
} else {
core.info('Directory contents:');
files.forEach(file => {
core.info(file);
});
}
});

// Construct the path to the Python script
const scriptPath = __nccwpck_require__.ab + "controller.py";

Expand Down
4 changes: 0 additions & 4 deletions src/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ def main():
print("Extracting arguments from command line.")
env_vars = extract_args()

for root, dirs, files in os.walk("."):
for name in sorted(dirs + files):
print(os.path.join(root, name))

# Clean environment before mining
print("Data mining for Living Documentation")
run_script('clean_env_before_mining.py', env_vars)
Expand Down
2 changes: 1 addition & 1 deletion src/github_query_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import re
import os
from typing import Set, List
from src.utils import ensure_folder_exists, save_state_to_json_file
from utils import ensure_folder_exists, save_state_to_json_file

OUTPUT_DIRECTORY = "data/fetched_data/feature_data"

Expand Down
13 changes: 0 additions & 13 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@ async function run() {
const milestonesAsChapters = core.getInput('milestones-as-chapters');
const repositories = core.getInput('repositories');

const currentDir = __dirname;
console.log(`Current directory: ${currentDir}`);
fs.readdir(currentDir, (err, files) => {
if (err) {
core.setFailed(`Unable to scan directory: ${err}`);
} else {
core.info('Directory contents:');
files.forEach(file => {
core.info(file);
});
}
});

// Construct the path to the Python script
const scriptPath = path.join(__dirname, 'controller.py');

Expand Down

0 comments on commit edf236a

Please sign in to comment.