Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lyriccoder committed Jul 6, 2020
1 parent a32c33a commit 42a4ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/02-filter-and-move.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import cchardet as chardet
import javalang
import pandas as pd
from sklearn.model_selection import train_test_split

parser = argparse.ArgumentParser(description='Filter important java files')
parser.add_argument(
Expand Down Expand Up @@ -219,7 +220,6 @@ def call_back():
df['filename'].to_csv(path_txt_out, header=None, index=None)
end = time.time()
print('It took ' + str(end - start) + ' seconds')
from sklearn.model_selection import train_test_split
df = pd.read_csv(path_csv_out)
train, test = train_test_split(df['filename'], test_size=0.3, random_state=42)
train_csv_file = str(Path(current_location, DIR_TO_CREATE, '02-train.csv'))
Expand Down

5 comments on commit 42a4ae6

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 42a4ae6 Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 146-4f2084fc discovered in aibolit/patterns/non_final_argument/non_final_argument.py and submitted as #485. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 42a4ae6 Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 139-732b1bcc discovered in aibolit/patterns/bidirect_index/bidirect_index.py and submitted as #486. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 42a4ae6 Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 147-d9d6862a discovered in aibolit/patterns/mutable_index/mutable_index.py and submitted as #487. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 42a4ae6 Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 183-069e5295 discovered in aibolit/metrics/local_methods_calls/local_methods_calls.py and submitted as #488. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 42a4ae6 Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 183-9b03d7d9 discovered in aibolit/metrics/external_methods_called/external_methods_called.py and submitted as #489. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.