Skip to content

Commit

Permalink
Merge pull request #4 from ualberta-smr/fix-program-element-order
Browse files Browse the repository at this point in the history
Fix program element order
  • Loading branch information
mohayemin authored Jun 26, 2024
2 parents 4bfd18b + 08df4be commit 7068f7e
Show file tree
Hide file tree
Showing 104 changed files with 320 additions and 320 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ files:
target_program_elements: [import]
properties: []
source_apis: [aiohttp.ClientSession, aiohttp.client_exceptions.ClientConnectorError]
target_apis: [httpx, httpx.ConnectError, httpx.ConnectTimeout]
target_apis: [httpx, httpx.ConnectTimeout, httpx.ConnectError]
- 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: [AsyncClient, get]
target_apis: [get, AsyncClient]
- line: "56:56"
cardinality: one-to-one
source_program_elements: [attribute]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ files:
target_program_elements: [function call, function call]
properties: [argument deletion, element name change]
source_apis: [request]
target_apis: [AsyncClient, get]
target_apis: [get, AsyncClient]
- 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: [AsyncClient, post]
target_apis: [post, AsyncClient]
- line: "34:40-41"
cardinality: one-to-many
source_program_elements: [function call]
Expand All @@ -50,7 +50,7 @@ files:
target_program_elements: [function call, function call]
properties: [argument deletion, element name change]
source_apis: [request]
target_apis: [AsyncClient, get]
target_apis: [get, AsyncClient]
- line: "112:113-114"
cardinality: one-to-many
source_program_elements: [function call]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ files:
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: [Choice, option]
target_apis: [option, Choice]
- line: "277-283:34-40"
cardinality: one-to-one
source_program_elements: [function call]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ files:
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]
target_apis: [argument, Path]
- 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]
target_apis: [argument, Path]
- line: "62:"
cardinality: one-to-zero
source_program_elements: [function call]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ files:
target_program_elements: [decorator, function call]
properties: [argument addition, argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, argument]
target_apis: [argument, Path]
- line: "307:"
cardinality: one-to-zero
source_program_elements: [function call]
Expand Down
12 changes: 6 additions & 6 deletions data/migration/argparse__click__godaddy@tartufo__553dc5fb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ files:
source_program_elements: [function call, function call]
target_program_elements: [decorator, function call]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [FileType, add_argument]
target_apis: [File, option]
source_apis: [add_argument, FileType]
target_apis: [option, File]
- line: "156-165:39-44"
cardinality: many-to-many
source_program_elements: [function call, function call]
target_program_elements: [decorator, function call]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [FileType, add_argument]
target_apis: [File, option]
source_apis: [add_argument, FileType]
target_apis: [option, File]
- line: "166-172:45-46"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [decorator, function call]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, option]
target_apis: [option, Path]
- line: "189:"
cardinality: one-to-zero
source_program_elements: [function call]
Expand Down Expand Up @@ -125,7 +125,7 @@ files:
target_program_elements: [decorator, function call]
properties: [argument addition, argument deletion, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [File, option]
target_apis: [option, File]
- line: ":15"
cardinality: zero-to-one
source_program_elements: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ files:
target_program_elements: [decorator, function call]
properties: [argument addition, argument deletion, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, argument]
target_apis: [argument, Path]
- line: "27:36"
cardinality: one-to-one
source_program_elements: [function call]
Expand Down Expand Up @@ -188,7 +188,7 @@ files:
target_program_elements: [decorator, function call]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Choice, option]
target_apis: [option, Choice]
- line: "52:73"
cardinality: one-to-one
source_program_elements: [function call]
Expand Down
14 changes: 7 additions & 7 deletions data/migration/argparse__click__martinthoma@hwrt__86bc433a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ files:
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [argparse.ArgumentDefaultsHelpFormatter, argparse.ArgumentParser]
source_apis: [argparse.ArgumentParser, argparse.ArgumentDefaultsHelpFormatter]
target_apis: [click]
- line: "192-194:"
cardinality: one-to-zero
Expand Down Expand Up @@ -49,7 +49,7 @@ files:
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [argparse.ArgumentDefaultsHelpFormatter, argparse.ArgumentParser]
source_apis: [argparse.ArgumentParser, argparse.ArgumentDefaultsHelpFormatter]
target_apis: [click]
- line: "68-70:"
cardinality: one-to-zero
Expand All @@ -71,21 +71,21 @@ files:
target_program_elements: [decorator, function call]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, option]
target_apis: [option, Path]
- line: "79-86:73-78"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [decorator, function call]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, option]
target_apis: [option, Path]
- line: "87-89:79-84"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [decorator, function call]
properties: [argument addition, argument deletion, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, option]
target_apis: [option, Path]
- line: "94:"
cardinality: one-to-zero
source_program_elements: [function call]
Expand All @@ -107,7 +107,7 @@ files:
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [argparse.ArgumentDefaultsHelpFormatter, argparse.ArgumentParser]
source_apis: [argparse.ArgumentParser, argparse.ArgumentDefaultsHelpFormatter]
target_apis: [click]
- line: "164-166:"
cardinality: one-to-zero
Expand All @@ -129,7 +129,7 @@ files:
target_program_elements: [decorator, function call]
properties: [argument deletion, argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Path, option]
target_apis: [option, Path]
- line: "180:"
cardinality: one-to-zero
source_program_elements: [function call]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ files:
target_program_elements: [decorator, function call]
properties: [argument transformation, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [IntRange, option]
target_apis: [option, IntRange]
- line: "163:136"
cardinality: one-to-one
source_program_elements: [function call]
Expand All @@ -83,14 +83,14 @@ files:
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: [Choice, option]
target_apis: [option, Choice]
- line: "166-167:139-140"
cardinality: one-to-many
source_program_elements: [function call]
target_program_elements: [decorator, function call]
properties: [argument addition, argument deletion, element name change, parameter addition to decorated function]
source_apis: [add_argument]
target_apis: [Choice, option]
target_apis: [option, Choice]
- line: "170-171:142"
cardinality: one-to-one
source_program_elements: [function call]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ files:
source_program_elements: [function call, function call]
target_program_elements: [function call]
properties: [argument addition, element name change]
source_apis: [BytesEncoder, create]
source_apis: [create, BytesEncoder]
target_apis: [create_pool]
- line: "6-7:4"
cardinality: not applicable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ files:
target_program_elements: [import]
properties: []
source_apis: [botocore.exceptions.ClientError]
target_apis: [boto.ec2, boto.utils]
target_apis: [boto.utils, boto.ec2]
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ files:
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [bottle.Bottle, bottle.abort, bottle.request]
target_apis: [flask.Flask, flask.abort, flask.jsonify, flask.request]
source_apis: [bottle.Bottle, bottle.request, bottle.abort]
target_apis: [flask.Flask, flask.request, flask.abort, flask.jsonify]
- line: "84:83"
cardinality: one-to-one
source_program_elements: [function call]
Expand Down
2 changes: 1 addition & 1 deletion data/migration/bottle__flask__heyman@locust__4067b929.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ files:
source_program_elements: [import]
target_program_elements: [import]
properties: []
source_apis: [bottle, bottle.route, bottle.run, bottle.send_file]
source_apis: [bottle.route, bottle.run, bottle.send_file, bottle]
target_apis: [flask.Flask, flask.make_response]
- line: "20:19-21"
cardinality: one-to-many
Expand Down
Loading

0 comments on commit 7068f7e

Please sign in to comment.