@@ -39,6 +39,8 @@ Ideall then we need some model to run the following Pseudocode
39
39
match, confidence = model(function, docstring)
40
40
```
41
41
42
+ And ideally, in this case, the match should be ` False `
43
+
42
44
## code-bert CLI
43
45
44
46
** The entire code base is built and abvailble for Python3.6+**
@@ -87,12 +89,10 @@ It should produce a report like the following -
87
89
======== Analysing test_files/test_code_add.py =========
88
90
89
91
90
- def add ( a , b ) : indent return a + b dedent
91
92
Function "add" with Dcostring """sums two numbers and returns the result"""
92
93
Do they match?
93
94
Yes
94
95
******************************************************************
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
96
96
Function "return_all_even" with Dcostring """numbers that are not really odd"""
97
97
Do they match?
98
98
Yes
101
101
======== Analysing test_files/inner_dir/test_code_get.py =========
102
102
103
103
104
- def get file ( filename ) : indent if not path ( filename ) . is file ( ) : indent return none dedent return open ( filename , "rb" ) dedent
105
104
Function "get_file" with Dcostring """opens a url"""
106
105
Do they match?
107
106
No
0 commit comments