Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9f09bfa

Browse files
change readme
1 parent 54e136c commit 9f09bfa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎README.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Ideall then we need some model to run the following Pseudocode
3939
match, confidence = model(function, docstring)
4040
```
4141

42+
And ideally, in this case, the match should be `False`
43+
4244
## code-bert CLI
4345

4446
**The entire code base is built and abvailble for Python3.6+**
@@ -87,12 +89,10 @@ It should produce a report like the following -
8789
======== Analysing test_files/test_code_add.py =========
8890
8991
90-
def add ( a , b ) : indent return a + b dedent
9192
Function "add" with Dcostring """sums two numbers and returns the result"""
9293
Do they match?
9394
Yes
9495
******************************************************************
95-
def return all even ( lst ) : indent if not lst : indent return none dedent return [ a for a in lst if a % 2 == 0 ] dedent
9696
Function "return_all_even" with Dcostring """numbers that are not really odd"""
9797
Do they match?
9898
Yes
@@ -101,7 +101,6 @@ Yes
101101
======== Analysing test_files/inner_dir/test_code_get.py =========
102102
103103
104-
def get file ( filename ) : indent if not path ( filename ) . is file ( ) : indent return none dedent return open ( filename , "rb" ) dedent
105104
Function "get_file" with Dcostring """opens a url"""
106105
Do they match?
107106
No

‎code_bert/cli/run_pipeline.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def _run_model(file_path, file_parser, predictor):
2323
for func_name, func_body, docstr in file_parser.parse_file_and_get_data(file_path):
2424
match, _ = predictor.predict(func_body, docstr)
2525
match_yes = "Yes" if bool(match) == True else "No"
26-
print(func_body)
2726
print(f'Function "{func_name}" with Dcostring """{docstr}"""\nDo they match?\n{match_yes}')
2827
print("******************************************************************")
2928

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /