Skip to content

Commit

Permalink
flatten ccs into individual items instead of merging into one when al…
Browse files Browse the repository at this point in the history
…l properties are same
  • Loading branch information
mohayemin committed Jun 26, 2024
1 parent 470016a commit 0552010
Show file tree
Hide file tree
Showing 357 changed files with 13,410 additions and 4,925 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ domain: HTTP Clients
files:
- path: "app/targets.py"
code_changes:
- lines: ["10-11:9-10"]
- line: "10-11:9-10"
cardinality: not applicable
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [aiohttp.ClientSession, aiohttp.client_exceptions.ClientConnectorError]
target_apis: [httpx, httpx.ConnectTimeout, httpx.ConnectError]
- lines: ["53-55:52-55"]
target_apis: [httpx, httpx.ConnectError, httpx.ConnectTimeout]
- line: "53-55:52-55"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [function call, function call]
properties: [element name change]
source_apis: [get]
target_apis: [get, AsyncClient]
- lines: ["56:56"]
target_apis: [AsyncClient, get]
- line: "56:56"
cardinality: one-to-one
source_program_elements: [attribute]
target_program_elements: [attribute]
properties: [element name change]
source_apis: [status]
target_apis: [status_code]
- lines: ["57:57"]
- line: "57:57"
cardinality: one-to-one
source_program_elements: [exception]
target_program_elements: [exception]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,35 @@ domain: HTTP Clients
files:
- path: "src/plugins/haruka_bot/login.py"
code_changes:
- lines: ["1:6"]
- line: "1:6"
cardinality: not applicable
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [aiohttp]
target_apis: [httpx]
- lines: ["33:37-38"]
- line: "33:37-38"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [function call, function call]
properties: [argument deletion, element name change]
source_apis: [request]
target_apis: [get, AsyncClient]
- lines: ["37:44-45"]
target_apis: [AsyncClient, get]
- line: "37:44-45"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [function call, function call]
properties: [argument deletion, element name change]
source_apis: [request]
target_apis: [post, AsyncClient]
- lines: ["34:40-41", "38:47-48"]
target_apis: [AsyncClient, post]
- line: "34:40-41"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [attribute, function call]
properties: [argument deletion, async transformation, element name change]
source_apis: [json]
target_apis: [encoding, json]
- line: "38:47-48"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [attribute, function call]
Expand All @@ -37,21 +44,21 @@ files:
target_apis: [encoding, json]
- path: "src/plugins/haruka_bot/utils.py"
code_changes:
- lines: ["111:111-112"]
- line: "111:111-112"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [function call, function call]
properties: [argument deletion, element name change]
source_apis: [request]
target_apis: [get, AsyncClient]
- lines: ["112:113-114"]
target_apis: [AsyncClient, get]
- line: "112:113-114"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [attribute, function call]
properties: [argument deletion, async transformation, element name change]
source_apis: [json]
target_apis: [encoding, json]
- lines: ["11:11"]
- line: "11:11"
cardinality: not applicable
source_program_elements: [import]
target_program_elements: [import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ domain: HTTP Clients
files:
- path: "application.py"
code_changes:
- lines: ["1337:1337"]
- line: "1337:1337"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [function call]
properties: [argument addition, element name change]
source_apis: [get]
target_apis: [stream]
- lines: ["16:16"]
- line: "16:16"
cardinality: not applicable
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [aiohttp]
target_apis: [httpx]
- lines: ["2590-2592:2590"]
- line: "2590-2592:2590"
cardinality: many-to-one
source_program_elements: [function call, function call, function call]
target_program_elements: [function call]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,70 @@ domain: Utility
files:
- path: "flow/compute_flow_sequences.py"
code_changes:
- lines: ["267-269:"]
- line: "267-269:"
cardinality: one-to-zero
source_program_elements: [function call]
target_program_elements: []
properties: []
source_apis: [ArgumentParser]
target_apis: []
- lines: ["270-273:25-28", "274:29", "284:41", "291-299:48-56"]
- line: "270-273:25-28"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [decorator]
properties: [element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option]
- lines: ["275-276:30-33"]
- line: "274:29"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [decorator]
properties: [element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option]
- line: "284:41"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [decorator]
properties: [element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option]
- line: "291-299:48-56"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [decorator]
properties: [element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option]
- line: "275-276:30-33"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [decorator, function call]
properties: [argument name change, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option, Choice]
- lines: ["277-283:34-40"]
target_apis: [Choice, option]
- line: "277-283:34-40"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [decorator]
properties: [argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option]
- lines: ["285-289:42-46"]
- line: "285-289:42-46"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [decorator]
properties: [argument addition, argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option]
- lines: ["290:47"]
- line: "290:47"
cardinality: one-to-one
source_program_elements: [function call]
target_program_elements: [decorator]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [option]
- lines: ["3:3"]
- line: "3:3"
cardinality: not applicable
source_program_elements: [import]
target_program_elements: [import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,42 @@ domain: Utility
files:
- path: "convert.py"
code_changes:
- lines: ["3:6"]
- line: "3:6"
cardinality: not applicable
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [argparse]
target_apis: [click]
- lines: ["49-51:"]
- line: "49-51:"
cardinality: one-to-zero
source_program_elements: [function call]
target_program_elements: []
properties: []
source_apis: [ArgumentParser]
target_apis: []
- lines: ["52-56:60", "57-61:61"]
- line: "52-56:60"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [decorator, function call]
properties: [argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [argument, Path]
- lines: ["62:"]
target_apis: [Path, argument]
- line: "57-61:61"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [decorator, function call]
properties: [argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, argument]
- line: "62:"
cardinality: one-to-zero
source_program_elements: [function call]
target_program_elements: []
properties: []
source_apis: [parse_args]
target_apis: []
- lines: [":59"]
- line: ":59"
cardinality: zero-to-one
source_program_elements: []
target_program_elements: [decorator]
Expand Down
Loading

0 comments on commit 0552010

Please sign in to comment.