Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,36 +140,6 @@ code = sc.code_result(4061576)
print(code)
```

### Related Results

Returns an array of results given a searchcode unique code id which are considered to be duplicates.

#### Params

- `_id`: Unique identifier for the code file (required).

```python

import searchcode as sc

related = sc.related_results(4061576)
print(related)
```

#### Response Attribute Definitions

| Attribute | Description |
|----------------|------------------------------------------------------------------------------------------|
| **reponame** | Name of the repository which this related result belongs to. |
| **source** | The source which this code result comes from. |
| **sourceurl** | URL to the repository this result belongs to. |
| **md5hash** | Calculated MD5 hash of the file's contents. |
| **location** | Location inside the repository where this file exists. |
| **language** | Name of the language which this file is identified to be. |
| **linescount** | Total number of lines in this file. |
| **id** | Unique ID for this code result used by searchcode, which can be used in other API calls. |
| **filename** | The filename for this file. |

## About Searchcode

Searchcode is a simple, comprehensive source code search engine that indexes billions of lines of code from open-source
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "searchcode"
version = "0.2.2"
version = "0.2.3"
description = "Python SDK for Searchcode."
authors = ["Ritchie Mwewa <rly0nheart@duck.com>"]
license = "GPLv3+"
Expand Down