Skip to content

Commit 9bc94db

Browse files
committed
1 parent ad9cc87 commit 9bc94db

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

Benchmark/futen/shallow/futen.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#import sys
22
#import argparse
33
import os
4-
from retic import String, Void, List
54
from paramiko_config import SSHConfig
65
import __static__
7-
from typing import Dict, Tuple
6+
from typing import Dict, Tuple, List
87

98
NO_PORT = "-1" #bg
109

Benchmark/futen/shallow/paramiko_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import shlex # shell lexical analyzers
1111
import socket
1212

13-
from retic import List, Void, String, Bool
13+
from typing import Dict, List
1414
import __static__
1515

1616
SSH_PORT = 22

Benchmark/pythonflow/shallow/main.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
"""
88
from __future__ import annotations
9-
import os
109
from typing import List
1110
import __static__
1211

@@ -16,7 +15,7 @@ def __init__(self: PythonFlow) -> None:
1615
self.flow = []
1716
self.residual = []
1817
self.total_flow = 0
19-
self.file_name = os.path.join(os.path.dirname(__file__), "graph2.txt")
18+
self.file_name = "graph2.txt"
2019

2120
self.load_file()
2221
self.init_flow()

Benchmark/pythonflow/untyped/main.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
77
"""
88

9-
import os
10-
119
class PythonFlow:
1210
# PythonFlow implement Ford-Fulkerson method to maximize flow on graph problems.
1311
# example of input text:
@@ -30,7 +28,7 @@ def __init__(self):
3028
# total flow which can be retrieved
3129
self.total_flow = 0
3230
# file name
33-
self.file_name = os.path.join(os.path.dirname("__file__"), "graph2.txt")
31+
self.file_name = "graph2.txt"
3432

3533
""" -- testing --
3634
n = 20

0 commit comments

Comments
 (0)