From 94318042a26532911a8c296c781ae6d0f9aee169 Mon Sep 17 00:00:00 2001 From: Mohayemin Date: Sun, 28 Jan 2024 12:28:13 -0700 Subject: [PATCH] Add PyMigBench-2.0 data --- ...tzkvn@python-http-monitoring__790a483.yaml | 44 ++ ...ttp__httpx__sk-415@harukabot__0611d16.yaml | 53 ++ ...ttpx__snwmds@polemicbooksapi__69df530.yaml | 30 + ...chalddave@segment-any-moving__87160d0.yaml | 58 ++ ..._click__adithyabsk@keep2roam__d340eea.yaml | 44 ++ ...__click__amesar@mlflow-tools__431737a.yaml | 310 ++++++++++ ...__ansible-community@molecule__b7d7740.yaml | 44 ++ ...arse__click__clearmatics@ion__03fb3a3.yaml | 218 +++++++ ...arse__click__godaddy@tartufo__553dc5f.yaml | 79 +++ ...samples@assistant-sdk-python__38e4e64.yaml | 51 ++ ...gparse__click__grahame@sedge__3badf07.yaml | 58 ++ ...argparse__click__himkt@pyner__76106a9.yaml | 44 ++ ...arse__click__klensy@wt-tools__760ff36.yaml | 37 ++ ...se__click__kxr@o-must-gather__9da4722.yaml | 128 ++++ .../argparse__click__lqez@hog__d722ade.yaml | 51 ++ ...lick__magnetotesting@magneto__a5c82b8.yaml | 51 ++ ...rse__click__martinthoma@hwrt__86bc433.yaml | 155 +++++ ..._click__oca@maintainer-tools__69593ae.yaml | 58 ++ ...yyin@google-translate-python__ac375b4.yaml | 51 ++ ...ick__yubico@yubioath-desktop__9d601b4.yaml | 128 ++++ ...rgparse__rocketmap@rocketmap__2960ec6.yaml | 30 + ...rse__docopt__ceph@teuthology__fb32105.yaml | 23 + ..._hootnot@oandapyv20-examples__e1df70e.yaml | 23 + ...arse__docopt__tankerhq@tbump__54b12e2.yaml | 23 + ...edis__aioredis__augerai@a2ml__13ea499.yaml | 37 ++ ...s__aioredis__eyepea@api-hour__97286ef.yaml | 23 + ...__dataclasses__aiortc@aiortc__270edaf.yaml | 318 ++++++++++ ...ataclasses__keepsafe@aiohttp__e51fb1f.yaml | 158 +++++ ...alice-assistant@projectalice__f1fe8cb.yaml | 138 +++++ ...imonlindholm@decomp-permuter__cfbb706.yaml | 219 +++++++ ...ib__twiliodeved@sms2fa-flask__22eedfc.yaml | 23 + ...oup__bs4__cfpb@cfgov-refresh__3262610.yaml | 23 + ..._boto__whoopinc@mkwheelhouse__54806ff.yaml | 23 + ...otocore__boto__zalando@spilo__a83681c.yaml | 23 + ...__flask__cqmoe@python-cqhttp__f9f083e.yaml | 44 ++ ...bottle__flask__heyman@locust__4067b92.yaml | 37 ++ ...__flask__nicolas-van@pygreen__843c8cf.yaml | 44 ++ ...ch__munch__1and1@confluencer__df895ac.yaml | 34 ++ ...__fedora-infra@python-fedora__aca2a20.yaml | 110 ++++ ...ery__rq__sapfir0@premier-eye__a7375cc.yaml | 16 + ...tic__attrs__rackerlabs@mimic__5bb4946.yaml | 558 ++++++++++++++++++ ...cchardet__emlid@ntripbrowser__9161c19.yaml | 23 + ...h3__jinja2__openstack@ironic__cbf214b.yaml | 39 ++ ...tah3__jinja2__shingetsu@saku__d1ad50a.yaml | 23 + ...etah__jinja2__shingetsu@saku__d1ad50a.yaml | 23 + ...ttenparry@meituri-downloader__422d73b.yaml | 51 ++ ..._argparse__neurostuff@nimare__2b80aa2.yaml | 16 + ...ick__argparse__nodepy@nodepy__715142c.yaml | 79 +++ ...__argparse__titusz@onixcheck__f17d186.yaml | 88 +++ ...me__danielyule@hearthbreaker__d018edf.yaml | 23 + ...obj__ctlearn-project@ctlearn__2375af8.yaml | 23 + ...rser__configobj__dbcli@mycli__b7a0b0f.yaml | 16 + ...v__ckan@ckanext-datapackager__a6a3fb3.yaml | 37 ++ ...v__unicodecsv__codesy@codesy__b5824f4.yaml | 23 + ...ecsv__heroku@salesforce-bulk__2f787fa.yaml | 16 + ...odecsv__mlsecproject@combine__efe20ac.yaml | 23 + ...v__unicodecsv__praekelt@molo__567b66f.yaml | 23 + ...codecsv__radremedy@radremedy__8fa9b7f.yaml | 30 + ...v__unicodecsv__shoopio@shoop__639e3b5.yaml | 23 + ...epy__thombashi@datetimerange__936761f.yaml | 23 + ...ypepy__thombashi@pingparsing__45fac3c.yaml | 67 +++ ...ypepy__thombashi@sqlitebiter__26c8e74.yaml | 30 + ...oudpickle__blaze@distributed__6dc1f3f.yaml | 16 + ...of-systems-laboratory@beluga__078e3e5.yaml | 39 ++ ...__drf-yasg__bcgov@theorgbook__728f86e.yaml | 16 + ...-yasg__opengisch@qfieldcloud__4377d67.yaml | 16 + .../django__utils__rq@django-rq__310ac1d.yaml | 43 ++ ...t__argparse__aio-libs@aioftp__ba6ef08.yaml | 23 + ...parse__deepspace2@styleframe__ffc8d76.yaml | 16 + ...copt__argparse__mete0r@pyhwp__0c5c5e7.yaml | 87 +++ ...click__michaeljoseph@changes__d9a8fae.yaml | 62 ++ ..._pynacl__romanz@trezor-agent__e1bbdb4.yaml | 67 +++ ...incetonuniversity@psyneulink__5253a55.yaml | 39 ++ ...ls__omisego@plasma-contracts__fc4ac19.yaml | 212 +++++++ ...tlet__gevent__c00w@bithopper__6612526.yaml | 69 +++ ...t__gevent__noisyboiler@wampy__f87f7be.yaml | 136 +++++ ...let__gevent__phuks-co@throat__9a28960.yaml | 23 + ...tlet__gevent__stefal@rtkbase__a4c347a.yaml | 23 + ...abric3__invoke__skoczen@will__437f8be.yaml | 44 ++ ...ko__mirantis@openstack-lbaas__d7440d4.yaml | 79 +++ ...sk-restplus__kizniche@mycodo__047263b.yaml | 16 + ...testdrivenio@flask-react-aws__d4119a0.yaml | 32 + ...sk-restplus__ziirish@burp-ui__8ef3b62.yaml | 70 +++ ...sk-restx__apryor6@flaskerize__59d8319.yaml | 50 ++ ...flask-restx__kizniche@mycodo__5169173.yaml | 232 ++++++++ ...flask-restx__orchest@orchest__6b629d0.yaml | 106 ++++ ...egrator@pythondataintegrator__598f275.yaml | 79 +++ ..._bottle__arosenfeld@immunedb__6141b13.yaml | 30 + ...pi__bretttolbert@verbecc-svc__24a848d.yaml | 16 + ...fastapi__virtuber@openvtuber__3abbc43.yaml | 23 + ..._elblogbruno@notionai-mymind__002f5bd.yaml | 44 ++ ..._quart__intel@stacks-usecase__22cc3f0.yaml | 51 ++ ...gorchestra@learningorchestra__db7f132.yaml | 23 + ...es@faster_than_flask_article__0a70f2b.yaml | 48 ++ ...art__synesthesiam@voice2json__7ea7ddb.yaml | 51 ++ ...ync-techniques-python-course__aa607bd.yaml | 76 +++ ..._tornado__krischer@instaseis__13c26a6.yaml | 16 + ...uvicorn__virtuber@openvtuber__3abbc43.yaml | 23 + ...__rapidfuzz__nlpia@nlpia-bot__054d5d2.yaml | 16 + ...__aiohttp__talkiq@gcloud-aio__45d94dd.yaml | 23 + ...__aiohttp__talkiq@gcloud-aio__963f347.yaml | 23 + ...__aiohttp__talkiq@gcloud-aio__d15540f.yaml | 16 + ...ecloudplatform@gcloud-python__e55a1d8.yaml | 68 +++ .../gcloud__google__wal-e@wal-e__be9820b.yaml | 59 ++ ...ntlet__duanhongyi@dwebsocket__d707ff6.yaml | 30 + ...iguelgrinberg@flask-socketio__883e73e.yaml | 23 + ...ventlet__projectcalico@felix__657e727.yaml | 51 ++ ...nt__eventlet__stefal@rtkbase__cf856c0.yaml | 23 + ..._eventlet__thenetcircle@dino__119d922.yaml | 23 + ...itress__openphilology@nidaba__4bab2ee.yaml | 16 + ...x-rtd-theme__jamesls@semidbm__aa0baba.yaml | 23 + ...ml5lib__bleach__posativ@isso__f1a4478.yaml | 16 + ...tml5lib__bleach__pycon@pycon__3dba963.yaml | 23 + ...b2__requests__ankitects@anki__f6245cd.yaml | 146 +++++ ...2__requests__cpfair@tapiriik__495db93.yaml | 37 ++ ...ests__hasgeek@flask-lastuser__6114ad5.yaml | 30 + ...pe-storage@python-3parclient__75b94d3.yaml | 23 + ...equests__jarodl@flask-github__341c769.yaml | 30 + ...b2__requests__jgorset@facepy__89ba1d4.yaml | 16 + ...quests__openshot@openshot-qt__4349753.yaml | 46 ++ ...requests__openstack@deb-nova__346d941.yaml | 30 + ...__openstack@networking-cisco__075010a.yaml | 30 + ...equests__wikimedia@pywikibot__952665a.yaml | 30 + ...crapinghub-entrypoint-scrapy__80b2262.yaml | 16 + ...y-plugins@scrapy-pagestorage__ce31d53.yaml | 23 + ...lery__lonelam@onlinejudgeshu__b687d20.yaml | 23 + ...r__ipaddress__google@capirca__eb768ea.yaml | 118 ++++ ...dr__ipaddress__reannz@faucet__4a23ef8.yaml | 240 ++++++++ ...dr__ipaddress__rvojcik@rtapi__2c25c05.yaml | 23 + ...ddr__openstack@deb-designate__eb16b1e.yaml | 30 + ...taddr__openstack@fuel-devops__5d0df07.yaml | 141 +++++ ...ddr__netaddr__openstack@wsme__002473c.yaml | 37 ++ ...__py2-ipaddress__evgeni@bley__dcc4285.yaml | 46 ++ ...-ipaddress__jdswinbank@comet__1549e86.yaml | 78 +++ ...agic-wormhole@magic-wormhole__5b23669.yaml | 23 + ...2-ipaddress__meejah@txtorcon__c8fdba0.yaml | 23 + ...address__redhat-cip@hardware__a429c38.yaml | 30 + ...py2-ipaddress__rvojcik@rtapi__2c25c05.yaml | 23 + ...y2-ipaddress__stackstorm@st2__4022aea.yaml | 23 + ...dr__napalm-automation@napalm__085994a.yaml | 23 + ...t__hxlstandard@libhxl-python__0babff2.yaml | 39 ++ ...nlessdata@tableschema-sql-py__a1385f7.yaml | 16 + ...nt-kafka__biznetgio@restknot__6b10345.yaml | 39 ++ ...ka__openstack@oslo.messaging__5a842ae.yaml | 30 + ...__svenskaspel@locust-plugins__fad53da.yaml | 30 + ...ldb__plyvel__ethereum@py-evm__5c273ff.yaml | 44 ++ ...db__plyvel__gdassori@spruned__4326c64.yaml | 30 + ..._obsidianforensics@hindsight__973b3d3.yaml | 39 ++ ...__fasteners__kizniche@mycodo__547f6d9.yaml | 131 ++++ ...teners__paratoolsinc@taucmdr__2a2c28a.yaml | 53 ++ ...asteners__samschott@maestral__e4388ee.yaml | 16 + ...oguru__thombashi@sqlitebiter__311c7ce.yaml | 23 + ...__loguru__thombashi@tcconfig__7ba8676.yaml | 23 + ...ogging__prtg@pythonminiprobe__2b6a1ae.yaml | 122 ++++ ...__defusedxml__haiwen@seafdav__5e1291f.yaml | 37 ++ ...envinotoolkit@open_model_zoo__7c2529f.yaml | 16 + ...l__defusedxml__synacktiv@eos__ac9596f.yaml | 30 + ...ptography__kevoreilly@capev2__abf58a7.yaml | 44 ++ ..._yubico@python-u2flib-server__65c4665.yaml | 51 ++ ...gecarleitao@public-contracts__70a229c.yaml | 51 ++ ...ic__kickstandproject@payload__ffeff6a.yaml | 16 + ...els__model__hwwang55@gcn-lpa__7a97486.yaml | 16 + ...__crossbario@autobahn-python__9e00896.yaml | 30 + ...ython__kushalp@serfclient-py__3adbf0f.yaml | 37 ++ ...sing__axelrod-python@axelrod__70f3a35.yaml | 25 + ...rocessing__intelpni@brainiak__e62dc1d.yaml | 23 + ...essing__markovmodel@msmtools__a3a152e.yaml | 16 + ...s__czheo@syntax_sugar_python__1dbc1d4.yaml | 37 ++ ...tiprocess__jhsmit@colicoords__a082ad5.yaml | 37 ++ ...se__napalm__afourmy@e-napalm__1033665.yaml | 16 + ...taddr__ipaddress__ovirt@vdsm__6eef802.yaml | 97 +++ ...@django-postgresql-netfields__a5a1118.yaml | 111 ++++ ...s__nitmir@policyd-rate-limit__c024e06.yaml | 37 ++ ...openstack@networking-bagpipe__4bb14fa.yaml | 16 + ...penstack@networking-fortinet__2365dcb.yaml | 25 + ...ck@networking-generic-switch__c6f4b71.yaml | 23 + ...ib__openstack@networking-nec__ff1695d.yaml | 16 + ...ib__openstack@networking-odl__a40b9d9.yaml | 61 ++ ...tic-version__openstack@solar__8766f11.yaml | 37 ++ ...hlib__discogs@discogs_client__c56f61a.yaml | 30 + ...xl__xlsxwriter__bcgov@gwells__57d12c4.yaml | 23 + ...thon-ironic-inspector-client__c25d73e.yaml | 25 + ...tack@deb-python-muranoclient__e3a2b68.yaml | 43 ++ ...ack@python-searchlightclient__0bc93d1.yaml | 43 ++ ...ric__aws@aws-parallelcluster__d49460a.yaml | 58 ++ ...yle__cyberbotics@urdf2webots__723168d.yaml | 30 + ...style__fabioz@PyDev.Debugger__d535c19.yaml | 72 +++ ...pycodestyle__hhatto@autopep8__3e1c196.yaml | 65 ++ ...odestyle__nchammas@flintrock__7323298.yaml | 23 + ...destyle__openstack@designate__2c9e9f5.yaml | 23 + ...ycodestyle__openstack@sahara__61b0b2e.yaml | 23 + ...estyle__schlamar@flake8-todo__fcd59c6.yaml | 23 + ...ow__rcos@observatory-retired__f970b54.yaml | 16 + ...pil__pillow__shoebot@shoebot__0171fb9.yaml | 16 + ...ucationaltestingservice@skll__f870a65.yaml | 23 + ...ar__tqdm__ozencb@yts-scraper__383401a.yaml | 65 ++ ...ssbar__tqdm__redkyn@assigner__f132d03.yaml | 30 + ...qdm__rivuletstudio@rivuletpy__52068ad.yaml | 37 ++ ...gressbar__tqdm__wkentaro@fcn__399069a.yaml | 16 + ...crypt__bcrypt__weasyl@weasyl__f6230c7.yaml | 16 + ...pypandoc__hustlzp@permission__d174a21.yaml | 23 + ...phy__freeopcua@opcua-asyncio__cdaff15.yaml | 16 + ...ome__camptocamp@c2cgeoportal__14388c3.yaml | 39 ++ ...__pycryptodome__hhyo@archery__e192ca6.yaml | 16 + ...eling@cookiecutter-pypackage__8d172cb.yaml | 30 + ...ryptography__apache@libcloud__a68022d.yaml | 30 + ...ography__cloudve@cloudbridge__27b217e.yaml | 37 ++ ...tography__coresecurity@pysap__21fe13a.yaml | 37 ++ ...tography__jvanovost@dc09_spt__08a9d0b.yaml | 37 ++ ...ography__leifj@pyxmlsecurity__b5d88c8.yaml | 58 ++ ...raphy__mitya57@secretstorage__e637c3b.yaml | 90 +++ ...hy__ojarva@python-sshpubkeys__e3ee2d2.yaml | 37 ++ ...yptography__openstack@glance__5ebde90.yaml | 51 ++ ...openstack@keystonemiddleware__e23cb36.yaml | 44 ++ ...phy__privacyidea@privacyidea__bcd8a45.yaml | 81 +++ ...__cryptography__rev112@pyope__48c294a.yaml | 30 + ...__cryptography__secdev@scapy__c24298b.yaml | 116 ++++ ...ography__spockbotmc@spockbot__4442170.yaml | 88 +++ ...raphy__tgalal@python-axolotl__f74a936.yaml | 51 ++ ...ryptography__twisted@twisted__e31995c.yaml | 196 ++++++ ...e__pycryptodomex__azure@aztk__19dde42.yaml | 64 ++ ...ryptodomex__malwaredllc@byob__9291b54.yaml | 109 ++++ ...mex__snemes@malware-analysis__02b064b.yaml | 37 ++ ...uests__tasmota@decode-config__5be6141.yaml | 30 + ...quests__upstox@upstox-python__dce8760.yaml | 23 + ...s__pydot2__networkx@networkx__481f3e8.yaml | 61 ++ ...plus__pydot2__trungdong@prov__acb9b05.yaml | 16 + ...plus__pydot__mathics@mathics__915daeb.yaml | 23 + ...fits__astropy__glue-viz@glue__5b2d7f9.yaml | 92 +++ .../pyfits__astropy__icrar@ngas__fa8b714.yaml | 34 ++ ...py__spacetelescope@pysynphot__5b80ada.yaml | 169 ++++++ ...pymilvus__milvus-io@bootcamp__89c7afc.yaml | 23 + ...pymilvus__milvus-io@bootcamp__a7f4c3f.yaml | 16 + ...pymilvus__milvus-io@bootcamp__e5073e4.yaml | 25 + ...y__RIPE-NCC@ripe-atlas-sagan__f6fc10c.yaml | 72 +++ ..._cryptography__celery@celery__9b39fc4.yaml | 106 ++++ ...phy__openstack@neutron-lbaas__bb34d71.yaml | 23 + ...pcap__pcapy__openstack@steth__a981d2e.yaml | 23 + ...stneuro@nwb-conversion-tools__a2ef335.yaml | 128 ++++ ...qt5__pyside2__sanpen@gridcal__39a5dd9.yaml | 441 ++++++++++++++ ..._pyside6__toufool@auto-split__86244b6.yaml | 268 +++++++++ ...autifulsoup4__idan@telostats__f73354a.yaml | 37 ++ ...pyside2__qtpy__pypeit@pypeit__ba5e21a.yaml | 16 + ...ud-custodian@cloud-custodian__cbaf252.yaml | 16 + ...ap__ldap3__ictu@quality-time__cc47b42.yaml | 30 + ...pymemcache__flan@staticdhcpd__0e64819.yaml | 23 + ...s__haoxizhong@pytorch-worker__fa8de77.yaml | 32 + ...rs__kaushaltrivedi@fast-bert__1c96992.yaml | 66 +++ ...rch-transformers__naver@claf__cffe499.yaml | 16 + ...sformers__tiiiger@bert_score__04376e1.yaml | 23 + ...uctive-commonsense-reasoning__abfeffc.yaml | 16 + ...__calclavia@story-generation__8954fad.yaml | 52 ++ ...ce@transfer-learning-conv-ai__16074b2.yaml | 59 ++ ...ers__intellabs@nlp-architect__9f067f2.yaml | 120 ++++ ...ansformers__jsybrandt@agatha__b570ef0.yaml | 16 + ...s__transformers__nvidia@nemo__7866512.yaml | 79 +++ ...um__oddluck@limnoria-plugins__2c40713.yaml | 16 + ...um__oddluck@limnoria-plugins__33c7a3f.yaml | 25 + ...activitywatch@aw-watcher-afk__297b58c.yaml | 30 + ...pyyaml__oyaml__cronyo@cronyo__edd0cc6.yaml | 16 + ...yaml__oyaml__gammapy@gammapy__848da63.yaml | 16 + ...ud-custodian@cloud-custodian__ee4d526.yaml | 34 ++ ...on-workflow-language@cwltool__b9b65c0.yaml | 16 + ...l__ruamel.yaml__holgern@beem__f5ba90e.yaml | 16 + ...aven__sentry-sdk__agdsn@sipa__ea23791.yaml | 23 + ...-sdk__city-of-helsinki@respa__4fecb97.yaml | 39 ++ ...en__sentry-sdk__etalab@udata__9bc0f73.yaml | 30 + ...entry-sdk__habitissimo@myaas__0a65bcc.yaml | 23 + ..._sentry-sdk__kiwicom@the-zoo__e22070c.yaml | 71 +++ ...y-sdk__mozilla@addons-server__634c64f.yaml | 23 + ...entry-sdk__onecodex@onecodex__120d961.yaml | 51 ++ ...ainc@cfn-cross-region-export__f1120d3.yaml | 23 + ...samuelcolvin@aiohttp-toolbox__3b7a2a3.yaml | 23 + ...k__teamsempo@sempoblockchain__449990a.yaml | 69 +++ ...ective@thespaghettidetective__b86b375.yaml | 23 + ...n__sentry-sdk__weasyl@weasyl__d10cb16.yaml | 25 + ...nect@py-walletconnect-bridge__c2d3db2.yaml | 44 ++ ...thlib__mozilla@addons-server__5fd17b4.yaml | 23 + ...s-oauthlib__getsentry@sentry__0bfe540.yaml | 16 + ...thlib__gunthercox@chatterbot__6c3b234.yaml | 44 ++ ...oauthlib__sarumont@py-trello__ede0ceb.yaml | 44 ++ ...ests__sybrenstuvel@flickrapi__c4f8d79.yaml | 37 ++ ...ests__aiohttp__aiortc@aiortc__d30c240.yaml | 23 + ...__aiohttp__ictu@quality-time__d3a9a16.yaml | 71 +++ ...tp__keselekpermen69@userbutt__a2dd44e.yaml | 44 ++ ...p__paradoxalarminterface@pai__fac6f80.yaml | 37 ++ ...ttp__raptor123471@dingolingo__1d8923a.yaml | 30 + ...ync-techniques-python-course__a5c04bb.yaml | 76 +++ ...ync-techniques-python-course__ab4e5fd.yaml | 30 + ...p__usergeteam@userge-plugins__80a5434.yaml | 30 + ...s__sporteasy@python-poeditor__5710859.yaml | 51 ++ ...elai@inference-model-manager__71aff3a.yaml | 71 +++ ...ng__tenacity__openstack@aodh__7587ab9.yaml | 39 ++ ...nacity__openstack@ceilometer__380bb26.yaml | 55 ++ ...__openstack@ironic-inspector__f4648fa.yaml | 23 + ...__tenacity__openstack@ironic__b0607a2.yaml | 222 +++++++ ...ainc@cfn-cross-region-export__8d0ec68.yaml | 16 + ...ning@push-button-stop-motion__0b6cdad.yaml | 30 + ...ud-custodian@cloud-custodian__12e3e80.yaml | 34 ++ ....yaml__pyyaml__microsoft@nni__b955ac9.yaml | 117 ++++ ...projections@covid-data-model__95385ff.yaml | 16 + ...mplejson__ujson__zulip@zulip__222ef67.yaml | 215 +++++++ ...dk__alice-biometrics@petisco__9abf7b1.yaml | 48 ++ ...kapi@python-slack-events-api__813214e.yaml | 43 ++ ...k__slackapi@python-slack-sdk__5f4d92a.yaml | 39 ++ ...-sdk__zulip@python-zulip-api__2d9cf64.yaml | 37 ++ ...-cffi__smbus2__pimoroni@inky__cba3651.yaml | 32 + ...-sphinx-theme__edx@ecommerce__c1e120f.yaml | 23 + ...-sphinx-theme__bashtage@arch__3620700.yaml | 23 + ...zeep__whynothugo@django-afip__827dd9f.yaml | 32 + .../suds__zeep__hbldh@pybankid__79e424c.yaml | 37 ++ ...enstate@open-raadsinformatie__b56e481.yaml | 23 + .../tables__h5py__yoseflab@scvi__35163f0.yaml | 23 + ...omlkit__greenbone@python-gvm__75a11ed.yaml | 23 + .../toolz__cytoolz__nlesc@xtas__0dbf388.yaml | 25 + ...__asyncio__popupcad@popupcad__d0526f6.yaml | 16 + ...tweepy__cloudbotirc@cloudbot__f824322.yaml | 135 +++++ ...__tweepy__huntwelch@mongobot__bea008a.yaml | 23 + ...fonttools__googlefonts@cu2qu__3543e4f.yaml | 32 + ...on__htrc@htrc-feature-reader__7eae68a.yaml | 16 + ...json__rapidjson__kinto@kinto__951dd25.yaml | 23 + ...__rapidjson__murthylab@sleap__50721de.yaml | 23 + ...k__msgpack__logicaldash@lise__028d0b3.yaml | 58 ++ ...csv__csv__cfpb@cfgov-refresh__b4beec3.yaml | 96 +++ ...csv__csv__seed-platform@seed__119ba4b.yaml | 23 + ...pathlib__studentenportal@web__4842cff.yaml | 30 + ...byrnereese@uphold-sdk-python__14fd085.yaml | 44 ++ ...quests__canonical@cloud-init__0fc887d.yaml | 72 +++ ...__requests__finish06@pyunifi__3e53482.yaml | 44 ++ ...ts__mixpanel@mixpanel-python__e8a9330.yaml | 67 +++ ...hdog__pyinotify__onitu@onitu__04575c8.yaml | 16 + ...ebapp2__flask__c4rlo@vimhelp__7a5fadf.yaml | 37 ++ ...ahlia@sqlalchemy-imageattach__7cd3ca5.yaml | 44 ++ ...requests__noaa-oar-arl@monet__590936b.yaml | 55 ++ ...iter__openpyxl__bcgov@gwells__472f336.yaml | 23 + 335 files changed, 17131 insertions(+) create mode 100644 data/v2/migration/aiohttp__httpx__itzkvn@python-http-monitoring__790a483.yaml create mode 100644 data/v2/migration/aiohttp__httpx__sk-415@harukabot__0611d16.yaml create mode 100644 data/v2/migration/aiohttp__httpx__snwmds@polemicbooksapi__69df530.yaml create mode 100644 data/v2/migration/argparse__click__achalddave@segment-any-moving__87160d0.yaml create mode 100644 data/v2/migration/argparse__click__adithyabsk@keep2roam__d340eea.yaml create mode 100644 data/v2/migration/argparse__click__amesar@mlflow-tools__431737a.yaml create mode 100644 data/v2/migration/argparse__click__ansible-community@molecule__b7d7740.yaml create mode 100644 data/v2/migration/argparse__click__clearmatics@ion__03fb3a3.yaml create mode 100644 data/v2/migration/argparse__click__godaddy@tartufo__553dc5f.yaml create mode 100644 data/v2/migration/argparse__click__googlesamples@assistant-sdk-python__38e4e64.yaml create mode 100644 data/v2/migration/argparse__click__grahame@sedge__3badf07.yaml create mode 100644 data/v2/migration/argparse__click__himkt@pyner__76106a9.yaml create mode 100644 data/v2/migration/argparse__click__klensy@wt-tools__760ff36.yaml create mode 100644 data/v2/migration/argparse__click__kxr@o-must-gather__9da4722.yaml create mode 100644 data/v2/migration/argparse__click__lqez@hog__d722ade.yaml create mode 100644 data/v2/migration/argparse__click__magnetotesting@magneto__a5c82b8.yaml create mode 100644 data/v2/migration/argparse__click__martinthoma@hwrt__86bc433.yaml create mode 100644 data/v2/migration/argparse__click__oca@maintainer-tools__69593ae.yaml create mode 100644 data/v2/migration/argparse__click__terryyin@google-translate-python__ac375b4.yaml create mode 100644 data/v2/migration/argparse__click__yubico@yubioath-desktop__9d601b4.yaml create mode 100644 data/v2/migration/argparse__configargparse__rocketmap@rocketmap__2960ec6.yaml create mode 100644 data/v2/migration/argparse__docopt__ceph@teuthology__fb32105.yaml create mode 100644 data/v2/migration/argparse__docopt__hootnot@oandapyv20-examples__e1df70e.yaml create mode 100644 data/v2/migration/argparse__docopt__tankerhq@tbump__54b12e2.yaml create mode 100644 data/v2/migration/asyncio-redis__aioredis__augerai@a2ml__13ea499.yaml create mode 100644 data/v2/migration/asyncio-redis__aioredis__eyepea@api-hour__97286ef.yaml create mode 100644 data/v2/migration/attrs__dataclasses__aiortc@aiortc__270edaf.yaml create mode 100644 data/v2/migration/attrs__dataclasses__keepsafe@aiohttp__e51fb1f.yaml create mode 100644 data/v2/migration/attrs__dataclasses__project-alice-assistant@projectalice__f1fe8cb.yaml create mode 100644 data/v2/migration/attrs__dataclasses__simonlindholm@decomp-permuter__cfbb706.yaml create mode 100644 data/v2/migration/bcrypt__passlib__twiliodeved@sms2fa-flask__22eedfc.yaml create mode 100644 data/v2/migration/beautifulsoup__bs4__cfpb@cfgov-refresh__3262610.yaml create mode 100644 data/v2/migration/botocore__boto__whoopinc@mkwheelhouse__54806ff.yaml create mode 100644 data/v2/migration/botocore__boto__zalando@spilo__a83681c.yaml create mode 100644 data/v2/migration/bottle__flask__cqmoe@python-cqhttp__f9f083e.yaml create mode 100644 data/v2/migration/bottle__flask__heyman@locust__4067b92.yaml create mode 100644 data/v2/migration/bottle__flask__nicolas-van@pygreen__843c8cf.yaml create mode 100644 data/v2/migration/bunch__munch__1and1@confluencer__df895ac.yaml create mode 100644 data/v2/migration/bunch__munch__fedora-infra@python-fedora__aca2a20.yaml create mode 100644 data/v2/migration/celery__rq__sapfir0@premier-eye__a7375cc.yaml create mode 100644 data/v2/migration/characteristic__attrs__rackerlabs@mimic__5bb4946.yaml create mode 100644 data/v2/migration/chardet__cchardet__emlid@ntripbrowser__9161c19.yaml create mode 100644 data/v2/migration/cheetah3__jinja2__openstack@ironic__cbf214b.yaml create mode 100644 data/v2/migration/cheetah3__jinja2__shingetsu@saku__d1ad50a.yaml create mode 100644 data/v2/migration/cheetah__jinja2__shingetsu@saku__d1ad50a.yaml create mode 100644 data/v2/migration/click__argparse__kittenparry@meituri-downloader__422d73b.yaml create mode 100644 data/v2/migration/click__argparse__neurostuff@nimare__2b80aa2.yaml create mode 100644 data/v2/migration/click__argparse__nodepy@nodepy__715142c.yaml create mode 100644 data/v2/migration/click__argparse__titusz@onixcheck__f17d186.yaml create mode 100644 data/v2/migration/cloud-sptheme__sphinx-rtd-theme__danielyule@hearthbreaker__d018edf.yaml create mode 100644 data/v2/migration/configparser__configobj__ctlearn-project@ctlearn__2375af8.yaml create mode 100644 data/v2/migration/configparser__configobj__dbcli@mycli__b7a0b0f.yaml create mode 100644 data/v2/migration/csv__unicodecsv__ckan@ckanext-datapackager__a6a3fb3.yaml create mode 100644 data/v2/migration/csv__unicodecsv__codesy@codesy__b5824f4.yaml create mode 100644 data/v2/migration/csv__unicodecsv__heroku@salesforce-bulk__2f787fa.yaml create mode 100644 data/v2/migration/csv__unicodecsv__mlsecproject@combine__efe20ac.yaml create mode 100644 data/v2/migration/csv__unicodecsv__praekelt@molo__567b66f.yaml create mode 100644 data/v2/migration/csv__unicodecsv__radremedy@radremedy__8fa9b7f.yaml create mode 100644 data/v2/migration/csv__unicodecsv__shoopio@shoop__639e3b5.yaml create mode 100644 data/v2/migration/dataproperty__typepy__thombashi@datetimerange__936761f.yaml create mode 100644 data/v2/migration/dataproperty__typepy__thombashi@pingparsing__45fac3c.yaml create mode 100644 data/v2/migration/dataproperty__typepy__thombashi@sqlitebiter__26c8e74.yaml create mode 100644 data/v2/migration/dill__cloudpickle__blaze@distributed__6dc1f3f.yaml create mode 100644 data/v2/migration/dill__cloudpickle__rapid-design-of-systems-laboratory@beluga__078e3e5.yaml create mode 100644 data/v2/migration/django-rest-swagger__drf-yasg__bcgov@theorgbook__728f86e.yaml create mode 100644 data/v2/migration/django-rest-swagger__drf-yasg__opengisch@qfieldcloud__4377d67.yaml create mode 100644 data/v2/migration/django__utils__rq@django-rq__310ac1d.yaml create mode 100644 data/v2/migration/docopt__argparse__aio-libs@aioftp__ba6ef08.yaml create mode 100644 data/v2/migration/docopt__argparse__deepspace2@styleframe__ffc8d76.yaml create mode 100644 data/v2/migration/docopt__argparse__mete0r@pyhwp__0c5c5e7.yaml create mode 100644 data/v2/migration/docopt__click__michaeljoseph@changes__d9a8fae.yaml create mode 100644 data/v2/migration/ed25519__pynacl__romanz@trezor-agent__e1bbdb4.yaml create mode 100644 data/v2/migration/enum__aenum__princetonuniversity@psyneulink__5253a55.yaml create mode 100644 data/v2/migration/ethereum__ethereum-utils__omisego@plasma-contracts__fc4ac19.yaml create mode 100644 data/v2/migration/eventlet__gevent__c00w@bithopper__6612526.yaml create mode 100644 data/v2/migration/eventlet__gevent__noisyboiler@wampy__f87f7be.yaml create mode 100644 data/v2/migration/eventlet__gevent__phuks-co@throat__9a28960.yaml create mode 100644 data/v2/migration/eventlet__gevent__stefal@rtkbase__a4c347a.yaml create mode 100644 data/v2/migration/fabric3__invoke__skoczen@will__437f8be.yaml create mode 100644 data/v2/migration/fabric3__paramiko__mirantis@openstack-lbaas__d7440d4.yaml create mode 100644 data/v2/migration/flask-restful__flask-restplus__kizniche@mycodo__047263b.yaml create mode 100644 data/v2/migration/flask-restful__flask-restplus__testdrivenio@flask-react-aws__d4119a0.yaml create mode 100644 data/v2/migration/flask-restful__flask-restplus__ziirish@burp-ui__8ef3b62.yaml create mode 100644 data/v2/migration/flask-restplus__flask-restx__apryor6@flaskerize__59d8319.yaml create mode 100644 data/v2/migration/flask-restplus__flask-restx__kizniche@mycodo__5169173.yaml create mode 100644 data/v2/migration/flask-restplus__flask-restx__orchest@orchest__6b629d0.yaml create mode 100644 data/v2/migration/flask-restplus__flask-restx__pythondataintegrator@pythondataintegrator__598f275.yaml create mode 100644 data/v2/migration/flask__bottle__arosenfeld@immunedb__6141b13.yaml create mode 100644 data/v2/migration/flask__fastapi__bretttolbert@verbecc-svc__24a848d.yaml create mode 100644 data/v2/migration/flask__fastapi__virtuber@openvtuber__3abbc43.yaml create mode 100644 data/v2/migration/flask__quart__elblogbruno@notionai-mymind__002f5bd.yaml create mode 100644 data/v2/migration/flask__quart__intel@stacks-usecase__22cc3f0.yaml create mode 100644 data/v2/migration/flask__quart__learningorchestra@learningorchestra__db7f132.yaml create mode 100644 data/v2/migration/flask__quart__pgjones@faster_than_flask_article__0a70f2b.yaml create mode 100644 data/v2/migration/flask__quart__synesthesiam@voice2json__7ea7ddb.yaml create mode 100644 data/v2/migration/flask__quart__talkpython@async-techniques-python-course__aa607bd.yaml create mode 100644 data/v2/migration/flask__tornado__krischer@instaseis__13c26a6.yaml create mode 100644 data/v2/migration/flask__uvicorn__virtuber@openvtuber__3abbc43.yaml create mode 100644 data/v2/migration/fuzzywuzzy__rapidfuzz__nlpia@nlpia-bot__054d5d2.yaml create mode 100644 data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__45d94dd.yaml create mode 100644 data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__963f347.yaml create mode 100644 data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__d15540f.yaml create mode 100644 data/v2/migration/gcloud__google__googlecloudplatform@gcloud-python__e55a1d8.yaml create mode 100644 data/v2/migration/gcloud__google__wal-e@wal-e__be9820b.yaml create mode 100644 data/v2/migration/gevent__eventlet__duanhongyi@dwebsocket__d707ff6.yaml create mode 100644 data/v2/migration/gevent__eventlet__miguelgrinberg@flask-socketio__883e73e.yaml create mode 100644 data/v2/migration/gevent__eventlet__projectcalico@felix__657e727.yaml create mode 100644 data/v2/migration/gevent__eventlet__stefal@rtkbase__cf856c0.yaml create mode 100644 data/v2/migration/gevent__eventlet__thenetcircle@dino__119d922.yaml create mode 100644 data/v2/migration/gunicorn__waitress__openphilology@nidaba__4bab2ee.yaml create mode 100644 data/v2/migration/guzzle-sphinx-theme__sphinx-rtd-theme__jamesls@semidbm__aa0baba.yaml create mode 100644 data/v2/migration/html5lib__bleach__posativ@isso__f1a4478.yaml create mode 100644 data/v2/migration/html5lib__bleach__pycon@pycon__3dba963.yaml create mode 100644 data/v2/migration/httplib2__requests__ankitects@anki__f6245cd.yaml create mode 100644 data/v2/migration/httplib2__requests__cpfair@tapiriik__495db93.yaml create mode 100644 data/v2/migration/httplib2__requests__hasgeek@flask-lastuser__6114ad5.yaml create mode 100644 data/v2/migration/httplib2__requests__hpe-storage@python-3parclient__75b94d3.yaml create mode 100644 data/v2/migration/httplib2__requests__jarodl@flask-github__341c769.yaml create mode 100644 data/v2/migration/httplib2__requests__jgorset@facepy__89ba1d4.yaml create mode 100644 data/v2/migration/httplib2__requests__openshot@openshot-qt__4349753.yaml create mode 100644 data/v2/migration/httplib2__requests__openstack@deb-nova__346d941.yaml create mode 100644 data/v2/migration/httplib2__requests__openstack@networking-cisco__075010a.yaml create mode 100644 data/v2/migration/httplib2__requests__wikimedia@pywikibot__952665a.yaml create mode 100644 data/v2/migration/hubstorage__scrapinghub__scrapinghub@scrapinghub-entrypoint-scrapy__80b2262.yaml create mode 100644 data/v2/migration/hubstorage__scrapinghub__scrapy-plugins@scrapy-pagestorage__ce31d53.yaml create mode 100644 data/v2/migration/huey__celery__lonelam@onlinejudgeshu__b687d20.yaml create mode 100644 data/v2/migration/ipaddr__ipaddress__google@capirca__eb768ea.yaml create mode 100644 data/v2/migration/ipaddr__ipaddress__reannz@faucet__4a23ef8.yaml create mode 100644 data/v2/migration/ipaddr__ipaddress__rvojcik@rtapi__2c25c05.yaml create mode 100644 data/v2/migration/ipaddr__netaddr__openstack@deb-designate__eb16b1e.yaml create mode 100644 data/v2/migration/ipaddr__netaddr__openstack@fuel-devops__5d0df07.yaml create mode 100644 data/v2/migration/ipaddr__netaddr__openstack@wsme__002473c.yaml create mode 100644 data/v2/migration/ipaddr__py2-ipaddress__evgeni@bley__dcc4285.yaml create mode 100644 data/v2/migration/ipaddr__py2-ipaddress__jdswinbank@comet__1549e86.yaml create mode 100644 data/v2/migration/ipaddr__py2-ipaddress__magic-wormhole@magic-wormhole__5b23669.yaml create mode 100644 data/v2/migration/ipaddr__py2-ipaddress__meejah@txtorcon__c8fdba0.yaml create mode 100644 data/v2/migration/ipaddr__py2-ipaddress__redhat-cip@hardware__a429c38.yaml create mode 100644 data/v2/migration/ipaddr__py2-ipaddress__rvojcik@rtapi__2c25c05.yaml create mode 100644 data/v2/migration/ipaddr__py2-ipaddress__stackstorm@st2__4022aea.yaml create mode 100644 data/v2/migration/ipaddress__netaddr__napalm-automation@napalm__085994a.yaml create mode 100644 data/v2/migration/jsonpath-rw__jsonpath-rw-ext__hxlstandard@libhxl-python__0babff2.yaml create mode 100644 data/v2/migration/jsontableschema__tableschema__frictionlessdata@tableschema-sql-py__a1385f7.yaml create mode 100644 data/v2/migration/kafka-python__confluent-kafka__biznetgio@restknot__6b10345.yaml create mode 100644 data/v2/migration/kafka-python__confluent-kafka__openstack@oslo.messaging__5a842ae.yaml create mode 100644 data/v2/migration/kafka__confluent-kafka__svenskaspel@locust-plugins__fad53da.yaml create mode 100644 data/v2/migration/leveldb__plyvel__ethereum@py-evm__5c273ff.yaml create mode 100644 data/v2/migration/leveldb__plyvel__gdassori@spruned__4326c64.yaml create mode 100644 data/v2/migration/leveldb__plyvel__obsidianforensics@hindsight__973b3d3.yaml create mode 100644 data/v2/migration/lockfile__fasteners__kizniche@mycodo__547f6d9.yaml create mode 100644 data/v2/migration/lockfile__fasteners__paratoolsinc@taucmdr__2a2c28a.yaml create mode 100644 data/v2/migration/lockfile__fasteners__samschott@maestral__e4388ee.yaml create mode 100644 data/v2/migration/logbook__loguru__thombashi@sqlitebiter__311c7ce.yaml create mode 100644 data/v2/migration/logbook__loguru__thombashi@tcconfig__7ba8676.yaml create mode 100644 data/v2/migration/logger__logging__prtg@pythonminiprobe__2b6a1ae.yaml create mode 100644 data/v2/migration/lxml__defusedxml__haiwen@seafdav__5e1291f.yaml create mode 100644 data/v2/migration/lxml__defusedxml__openvinotoolkit@open_model_zoo__7c2529f.yaml create mode 100644 data/v2/migration/lxml__defusedxml__synacktiv@eos__ac9596f.yaml create mode 100644 data/v2/migration/m2crypto__cryptography__kevoreilly@capev2__abf58a7.yaml create mode 100644 data/v2/migration/m2crypto__cryptography__yubico@python-u2flib-server__65c4665.yaml create mode 100644 data/v2/migration/mechanize__requests__jorgecarleitao@public-contracts__70a229c.yaml create mode 100644 data/v2/migration/migrate__alembic__kickstandproject@payload__ffeff6a.yaml create mode 100644 data/v2/migration/models__model__hwwang55@gcn-lpa__7a97486.yaml create mode 100644 data/v2/migration/msgpack__u-msgpack-python__crossbario@autobahn-python__9e00896.yaml create mode 100644 data/v2/migration/msgpack__u-msgpack-python__kushalp@serfclient-py__3adbf0f.yaml create mode 100644 data/v2/migration/multiprocess__multiprocessing__axelrod-python@axelrod__70f3a35.yaml create mode 100644 data/v2/migration/multiprocess__multiprocessing__intelpni@brainiak__e62dc1d.yaml create mode 100644 data/v2/migration/multiprocess__multiprocessing__markovmodel@msmtools__a3a152e.yaml create mode 100644 data/v2/migration/multiprocessing__multiprocess__czheo@syntax_sugar_python__1dbc1d4.yaml create mode 100644 data/v2/migration/multiprocessing__multiprocess__jhsmit@colicoords__a082ad5.yaml create mode 100644 data/v2/migration/napalm-base__napalm__afourmy@e-napalm__1033665.yaml create mode 100644 data/v2/migration/netaddr__ipaddress__ovirt@vdsm__6eef802.yaml create mode 100644 data/v2/migration/netaddr__py2-ipaddress__jimfunk@django-postgresql-netfields__a5a1118.yaml create mode 100644 data/v2/migration/netaddr__py2-ipaddress__nitmir@policyd-rate-limit__c024e06.yaml create mode 100644 data/v2/migration/neutron__neutron-lib__openstack@networking-bagpipe__4bb14fa.yaml create mode 100644 data/v2/migration/neutron__neutron-lib__openstack@networking-fortinet__2365dcb.yaml create mode 100644 data/v2/migration/neutron__neutron-lib__openstack@networking-generic-switch__c6f4b71.yaml create mode 100644 data/v2/migration/neutron__neutron-lib__openstack@networking-nec__ff1695d.yaml create mode 100644 data/v2/migration/neutron__neutron-lib__openstack@networking-odl__a40b9d9.yaml create mode 100644 data/v2/migration/node-semver__semantic-version__openstack@solar__8766f11.yaml create mode 100644 data/v2/migration/oauth2__oauthlib__discogs@discogs_client__c56f61a.yaml create mode 100644 data/v2/migration/openpyxl__xlsxwriter__bcgov@gwells__57d12c4.yaml create mode 100644 data/v2/migration/openstackclient__osc-lib__openstack@deb-python-ironic-inspector-client__c25d73e.yaml create mode 100644 data/v2/migration/openstackclient__osc-lib__openstack@deb-python-muranoclient__e3a2b68.yaml create mode 100644 data/v2/migration/openstackclient__osc-lib__openstack@python-searchlightclient__0bc93d1.yaml create mode 100644 data/v2/migration/paramiko__fabric__aws@aws-parallelcluster__d49460a.yaml create mode 100644 data/v2/migration/pep8__pycodestyle__cyberbotics@urdf2webots__723168d.yaml create mode 100644 data/v2/migration/pep8__pycodestyle__fabioz@PyDev.Debugger__d535c19.yaml create mode 100644 data/v2/migration/pep8__pycodestyle__hhatto@autopep8__3e1c196.yaml create mode 100644 data/v2/migration/pep8__pycodestyle__nchammas@flintrock__7323298.yaml create mode 100644 data/v2/migration/pep8__pycodestyle__openstack@designate__2c9e9f5.yaml create mode 100644 data/v2/migration/pep8__pycodestyle__openstack@sahara__61b0b2e.yaml create mode 100644 data/v2/migration/pep8__pycodestyle__schlamar@flake8-todo__fcd59c6.yaml create mode 100644 data/v2/migration/pil__pillow__rcos@observatory-retired__f970b54.yaml create mode 100644 data/v2/migration/pil__pillow__shoebot@shoebot__0171fb9.yaml create mode 100644 data/v2/migration/prettytable__tabulate__educationaltestingservice@skll__f870a65.yaml create mode 100644 data/v2/migration/progressbar__tqdm__ozencb@yts-scraper__383401a.yaml create mode 100644 data/v2/migration/progressbar__tqdm__redkyn@assigner__f132d03.yaml create mode 100644 data/v2/migration/progressbar__tqdm__rivuletstudio@rivuletpy__52068ad.yaml create mode 100644 data/v2/migration/progressbar__tqdm__wkentaro@fcn__399069a.yaml create mode 100644 data/v2/migration/py-bcrypt__bcrypt__weasyl@weasyl__f6230c7.yaml create mode 100644 data/v2/migration/pyandoc__pypandoc__hustlzp@permission__d174a21.yaml create mode 100644 data/v2/migration/pycrypto__cryptography__freeopcua@opcua-asyncio__cdaff15.yaml create mode 100644 data/v2/migration/pycrypto__pycryptodome__camptocamp@c2cgeoportal__14388c3.yaml create mode 100644 data/v2/migration/pycrypto__pycryptodome__hhyo@archery__e192ca6.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__allencellmodeling@cookiecutter-pypackage__8d172cb.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__apache@libcloud__a68022d.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__cloudve@cloudbridge__27b217e.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__coresecurity@pysap__21fe13a.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__jvanovost@dc09_spt__08a9d0b.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__leifj@pyxmlsecurity__b5d88c8.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__mitya57@secretstorage__e637c3b.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__ojarva@python-sshpubkeys__e3ee2d2.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__openstack@glance__5ebde90.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__openstack@keystonemiddleware__e23cb36.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__privacyidea@privacyidea__bcd8a45.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__rev112@pyope__48c294a.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__secdev@scapy__c24298b.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__spockbotmc@spockbot__4442170.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__tgalal@python-axolotl__f74a936.yaml create mode 100644 data/v2/migration/pycryptodome__cryptography__twisted@twisted__e31995c.yaml create mode 100644 data/v2/migration/pycryptodome__pycryptodomex__azure@aztk__19dde42.yaml create mode 100644 data/v2/migration/pycryptodome__pycryptodomex__malwaredllc@byob__9291b54.yaml create mode 100644 data/v2/migration/pycryptodome__pycryptodomex__snemes@malware-analysis__02b064b.yaml create mode 100644 data/v2/migration/pycurl__requests__tasmota@decode-config__5be6141.yaml create mode 100644 data/v2/migration/pycurl__requests__upstox@upstox-python__dce8760.yaml create mode 100644 data/v2/migration/pydotplus__pydot2__networkx@networkx__481f3e8.yaml create mode 100644 data/v2/migration/pydotplus__pydot2__trungdong@prov__acb9b05.yaml create mode 100644 data/v2/migration/pydotplus__pydot__mathics@mathics__915daeb.yaml create mode 100644 data/v2/migration/pyfits__astropy__glue-viz@glue__5b2d7f9.yaml create mode 100644 data/v2/migration/pyfits__astropy__icrar@ngas__fa8b714.yaml create mode 100644 data/v2/migration/pyfits__astropy__spacetelescope@pysynphot__5b80ada.yaml create mode 100644 data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__89c7afc.yaml create mode 100644 data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__a7f4c3f.yaml create mode 100644 data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__e5073e4.yaml create mode 100644 data/v2/migration/pyopenssl__cryptography__RIPE-NCC@ripe-atlas-sagan__f6fc10c.yaml create mode 100644 data/v2/migration/pyopenssl__cryptography__celery@celery__9b39fc4.yaml create mode 100644 data/v2/migration/pyopenssl__cryptography__openstack@neutron-lbaas__bb34d71.yaml create mode 100644 data/v2/migration/pypcap__pcapy__openstack@steth__a981d2e.yaml create mode 100644 data/v2/migration/pyqt5__pyside2__catalystneuro@nwb-conversion-tools__a2ef335.yaml create mode 100644 data/v2/migration/pyqt5__pyside2__sanpen@gridcal__39a5dd9.yaml create mode 100644 data/v2/migration/pyqt5__pyside6__toufool@auto-split__86244b6.yaml create mode 100644 data/v2/migration/pyquery__beautifulsoup4__idan@telostats__f73354a.yaml create mode 100644 data/v2/migration/pyside2__qtpy__pypeit@pypeit__ba5e21a.yaml create mode 100644 data/v2/migration/python-ldap__ldap3__cloud-custodian@cloud-custodian__cbaf252.yaml create mode 100644 data/v2/migration/python-ldap__ldap3__ictu@quality-time__cc47b42.yaml create mode 100644 data/v2/migration/python3-memcached__pymemcache__flan@staticdhcpd__0e64819.yaml create mode 100644 data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__haoxizhong@pytorch-worker__fa8de77.yaml create mode 100644 data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__kaushaltrivedi@fast-bert__1c96992.yaml create mode 100644 data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__naver@claf__cffe499.yaml create mode 100644 data/v2/migration/pytorch-pretrained-bert__transformers__tiiiger@bert_score__04376e1.yaml create mode 100644 data/v2/migration/pytorch-transformers__transformers__allenai@abductive-commonsense-reasoning__abfeffc.yaml create mode 100644 data/v2/migration/pytorch-transformers__transformers__calclavia@story-generation__8954fad.yaml create mode 100644 data/v2/migration/pytorch-transformers__transformers__huggingface@transfer-learning-conv-ai__16074b2.yaml create mode 100644 data/v2/migration/pytorch-transformers__transformers__intellabs@nlp-architect__9f067f2.yaml create mode 100644 data/v2/migration/pytorch-transformers__transformers__jsybrandt@agatha__b570ef0.yaml create mode 100644 data/v2/migration/pytorch-transformers__transformers__nvidia@nemo__7866512.yaml create mode 100644 data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__2c40713.yaml create mode 100644 data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__33c7a3f.yaml create mode 100644 data/v2/migration/pyuserinput__pynput__activitywatch@aw-watcher-afk__297b58c.yaml create mode 100644 data/v2/migration/pyyaml__oyaml__cronyo@cronyo__edd0cc6.yaml create mode 100644 data/v2/migration/pyyaml__oyaml__gammapy@gammapy__848da63.yaml create mode 100644 data/v2/migration/pyyaml__ruamel.yaml__cloud-custodian@cloud-custodian__ee4d526.yaml create mode 100644 data/v2/migration/pyyaml__ruamel.yaml__common-workflow-language@cwltool__b9b65c0.yaml create mode 100644 data/v2/migration/pyyaml__ruamel.yaml__holgern@beem__f5ba90e.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__agdsn@sipa__ea23791.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__city-of-helsinki@respa__4fecb97.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__etalab@udata__9bc0f73.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__habitissimo@myaas__0a65bcc.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__kiwicom@the-zoo__e22070c.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__mozilla@addons-server__634c64f.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__onecodex@onecodex__120d961.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__pokainc@cfn-cross-region-export__f1120d3.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__samuelcolvin@aiohttp-toolbox__3b7a2a3.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__teamsempo@sempoblockchain__449990a.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__thespaghettidetective@thespaghettidetective__b86b375.yaml create mode 100644 data/v2/migration/raven__sentry-sdk__weasyl@weasyl__d10cb16.yaml create mode 100644 data/v2/migration/redis__aioredis__walletconnect@py-walletconnect-bridge__c2d3db2.yaml create mode 100644 data/v2/migration/requests-oauth2__oauthlib__mozilla@addons-server__5fd17b4.yaml create mode 100644 data/v2/migration/requests-oauth2__requests-oauthlib__getsentry@sentry__0bfe540.yaml create mode 100644 data/v2/migration/requests-oauth2__requests-oauthlib__gunthercox@chatterbot__6c3b234.yaml create mode 100644 data/v2/migration/requests-oauth2__requests-oauthlib__sarumont@py-trello__ede0ceb.yaml create mode 100644 data/v2/migration/requests-oauth2__requests__sybrenstuvel@flickrapi__c4f8d79.yaml create mode 100644 data/v2/migration/requests__aiohttp__aiortc@aiortc__d30c240.yaml create mode 100644 data/v2/migration/requests__aiohttp__ictu@quality-time__d3a9a16.yaml create mode 100644 data/v2/migration/requests__aiohttp__keselekpermen69@userbutt__a2dd44e.yaml create mode 100644 data/v2/migration/requests__aiohttp__paradoxalarminterface@pai__fac6f80.yaml create mode 100644 data/v2/migration/requests__aiohttp__raptor123471@dingolingo__1d8923a.yaml create mode 100644 data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__a5c04bb.yaml create mode 100644 data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__ab4e5fd.yaml create mode 100644 data/v2/migration/requests__aiohttp__usergeteam@userge-plugins__80a5434.yaml create mode 100644 data/v2/migration/restkit__requests__sporteasy@python-poeditor__5710859.yaml create mode 100644 data/v2/migration/retrying__tenacity__intelai@inference-model-manager__71aff3a.yaml create mode 100644 data/v2/migration/retrying__tenacity__openstack@aodh__7587ab9.yaml create mode 100644 data/v2/migration/retrying__tenacity__openstack@ceilometer__380bb26.yaml create mode 100644 data/v2/migration/retrying__tenacity__openstack@ironic-inspector__f4648fa.yaml create mode 100644 data/v2/migration/retrying__tenacity__openstack@ironic__b0607a2.yaml create mode 100644 data/v2/migration/retrying__tenacity__pokainc@cfn-cross-region-export__8d0ec68.yaml create mode 100644 data/v2/migration/rpi.gpio__gpiozero__raspberrypilearning@push-button-stop-motion__0b6cdad.yaml create mode 100644 data/v2/migration/ruamel.yaml__pyyaml__cloud-custodian@cloud-custodian__12e3e80.yaml create mode 100644 data/v2/migration/ruamel.yaml__pyyaml__microsoft@nni__b955ac9.yaml create mode 100644 data/v2/migration/simplejson__ujson__covid-projections@covid-data-model__95385ff.yaml create mode 100644 data/v2/migration/simplejson__ujson__zulip@zulip__222ef67.yaml create mode 100644 data/v2/migration/slackclient__slack-sdk__alice-biometrics@petisco__9abf7b1.yaml create mode 100644 data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-events-api__813214e.yaml create mode 100644 data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-sdk__5f4d92a.yaml create mode 100644 data/v2/migration/slackclient__slack-sdk__zulip@python-zulip-api__2d9cf64.yaml create mode 100644 data/v2/migration/smbus-cffi__smbus2__pimoroni@inky__cba3651.yaml create mode 100644 data/v2/migration/sphinx-rtd-theme__edx-sphinx-theme__edx@ecommerce__c1e120f.yaml create mode 100644 data/v2/migration/sphinx-rtd-theme__guzzle-sphinx-theme__bashtage@arch__3620700.yaml create mode 100644 data/v2/migration/suds-py3__zeep__whynothugo@django-afip__827dd9f.yaml create mode 100644 data/v2/migration/suds__zeep__hbldh@pybankid__79e424c.yaml create mode 100644 data/v2/migration/suds__zeep__openstate@open-raadsinformatie__b56e481.yaml create mode 100644 data/v2/migration/tables__h5py__yoseflab@scvi__35163f0.yaml create mode 100644 data/v2/migration/toml__tomlkit__greenbone@python-gvm__75a11ed.yaml create mode 100644 data/v2/migration/toolz__cytoolz__nlesc@xtas__0dbf388.yaml create mode 100644 data/v2/migration/trollius__asyncio__popupcad@popupcad__d0526f6.yaml create mode 100644 data/v2/migration/twitter__tweepy__cloudbotirc@cloudbot__f824322.yaml create mode 100644 data/v2/migration/twitter__tweepy__huntwelch@mongobot__bea008a.yaml create mode 100644 data/v2/migration/ufolib__fonttools__googlefonts@cu2qu__3543e4f.yaml create mode 100644 data/v2/migration/ujson__rapidjson__htrc@htrc-feature-reader__7eae68a.yaml create mode 100644 data/v2/migration/ujson__rapidjson__kinto@kinto__951dd25.yaml create mode 100644 data/v2/migration/ujson__rapidjson__murthylab@sleap__50721de.yaml create mode 100644 data/v2/migration/umsgpack__msgpack__logicaldash@lise__028d0b3.yaml create mode 100644 data/v2/migration/unicodecsv__csv__cfpb@cfgov-refresh__b4beec3.yaml create mode 100644 data/v2/migration/unicodecsv__csv__seed-platform@seed__119ba4b.yaml create mode 100644 data/v2/migration/unipath__pathlib__studentenportal@web__4842cff.yaml create mode 100644 data/v2/migration/urllib3__requests__byrnereese@uphold-sdk-python__14fd085.yaml create mode 100644 data/v2/migration/urllib3__requests__canonical@cloud-init__0fc887d.yaml create mode 100644 data/v2/migration/urllib3__requests__finish06@pyunifi__3e53482.yaml create mode 100644 data/v2/migration/urllib3__requests__mixpanel@mixpanel-python__e8a9330.yaml create mode 100644 data/v2/migration/watchdog__pyinotify__onitu@onitu__04575c8.yaml create mode 100644 data/v2/migration/webapp2__flask__c4rlo@vimhelp__7a5fadf.yaml create mode 100644 data/v2/migration/werkzeug__webob__dahlia@sqlalchemy-imageattach__7cd3ca5.yaml create mode 100644 data/v2/migration/wget__requests__noaa-oar-arl@monet__590936b.yaml create mode 100644 data/v2/migration/xlsxwriter__openpyxl__bcgov@gwells__472f336.yaml diff --git a/data/v2/migration/aiohttp__httpx__itzkvn@python-http-monitoring__790a483.yaml b/data/v2/migration/aiohttp__httpx__itzkvn@python-http-monitoring__790a483.yaml new file mode 100644 index 0000000..6a25abd --- /dev/null +++ b/data/v2/migration/aiohttp__httpx__itzkvn@python-http-monitoring__790a483.yaml @@ -0,0 +1,44 @@ +repo: itzkvn/python-http-monitoring +commit: 790a4830785a2dd03686c57f5ec70a4bb1a41f22 +source: aiohttp +target: httpx +commit_url: https://github.com/itzkvn/python-http-monitoring/commit/790a4830 +domain: HTTP Clients +files: +- path: "app/targets.py" + code_changes: + - lines: ["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"] + 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"] + 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"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [ClientConnectorError] + target_apis: [ConnectError] + - lines: ["60:60"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [TimeoutError] + target_apis: [ConnectTimeout] diff --git a/data/v2/migration/aiohttp__httpx__sk-415@harukabot__0611d16.yaml b/data/v2/migration/aiohttp__httpx__sk-415@harukabot__0611d16.yaml new file mode 100644 index 0000000..e308a80 --- /dev/null +++ b/data/v2/migration/aiohttp__httpx__sk-415@harukabot__0611d16.yaml @@ -0,0 +1,53 @@ +repo: sk-415/harukabot +commit: 0611d16a4cdc3f472b2c5fb265b8728e9a505d74 +source: aiohttp +target: httpx +commit_url: https://github.com/sk-415/harukabot/commit/0611d16a +domain: HTTP Clients +files: +- path: "src/plugins/haruka_bot/login.py" + code_changes: + - lines: ["1:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [aiohttp] + target_apis: [httpx] + - lines: ["33:37-38", "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: [get, AsyncClient] + - lines: ["34:41", "38:47-48"] + 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] +- path: "src/plugins/haruka_bot/utils.py" + code_changes: + - lines: ["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"] + 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"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [aiohttp] + target_apis: [httpx] diff --git a/data/v2/migration/aiohttp__httpx__snwmds@polemicbooksapi__69df530.yaml b/data/v2/migration/aiohttp__httpx__snwmds@polemicbooksapi__69df530.yaml new file mode 100644 index 0000000..adbdcc6 --- /dev/null +++ b/data/v2/migration/aiohttp__httpx__snwmds@polemicbooksapi__69df530.yaml @@ -0,0 +1,30 @@ +repo: snwmds/polemicbooksapi +commit: 69df5304ad4280033c0a01ac6631e69ba276d973 +source: aiohttp +target: httpx +commit_url: https://github.com/snwmds/polemicbooksapi/commit/69df5304 +domain: HTTP Clients +files: +- path: "application.py" + code_changes: + - lines: ["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"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [aiohttp] + target_apis: [httpx] + - lines: ["2590-2592:2590"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [AsyncResolver, ClientSession, TCPConnector] + target_apis: [AsyncClient] diff --git a/data/v2/migration/argparse__click__achalddave@segment-any-moving__87160d0.yaml b/data/v2/migration/argparse__click__achalddave@segment-any-moving__87160d0.yaml new file mode 100644 index 0000000..e294250 --- /dev/null +++ b/data/v2/migration/argparse__click__achalddave@segment-any-moving__87160d0.yaml @@ -0,0 +1,58 @@ +repo: achalddave/segment-any-moving +commit: 87160d02c8652eebf2d8a5dce572e26fa2d1ca61 +source: argparse +target: click +commit_url: https://github.com/achalddave/segment-any-moving/commit/87160d02 +domain: Utility +files: +- path: "flow/compute_flow_sequences.py" + code_changes: + - lines: ["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"] + 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"] + 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"] + 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"] + 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"] + 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"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] diff --git a/data/v2/migration/argparse__click__adithyabsk@keep2roam__d340eea.yaml b/data/v2/migration/argparse__click__adithyabsk@keep2roam__d340eea.yaml new file mode 100644 index 0000000..4e9df78 --- /dev/null +++ b/data/v2/migration/argparse__click__adithyabsk@keep2roam__d340eea.yaml @@ -0,0 +1,44 @@ +repo: adithyabsk/keep2roam +commit: d340eea2fdedde8908334eda34325d058fc88282 +source: argparse +target: click +commit_url: https://github.com/adithyabsk/keep2roam/commit/d340eea2 +domain: Utility +files: +- path: "convert.py" + code_changes: + - lines: ["3:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["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"] + 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:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":59"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__amesar@mlflow-tools__431737a.yaml b/data/v2/migration/argparse__click__amesar@mlflow-tools__431737a.yaml new file mode 100644 index 0000000..1577e42 --- /dev/null +++ b/data/v2/migration/argparse__click__amesar@mlflow-tools__431737a.yaml @@ -0,0 +1,310 @@ +repo: amesar/mlflow-tools +commit: 431737a891b13a73ec7bdbc507fad21531f2cbf3 +source: argparse +target: click +commit_url: https://github.com/amesar/mlflow-tools/commit/431737a8 +domain: Utility +files: +- path: "mlflow_tools/export_import/copy_experiment.py" + code_changes: + - lines: ["34:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["35:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["36:35", "37:36", "38:37", "39:38", "40:39", "41:40", "42:41"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["45:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":34"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "mlflow_tools/export_import/copy_run.py" + code_changes: + - lines: ["46:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["47:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["48:47", "49:50", "50:51", "51:53", "52:52", "53:53", "54:52"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["55:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":46"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "mlflow_tools/export_import/export_experiment.py" + code_changes: + - lines: ["68:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["68:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["70:69", "71:70", "72:71", "73:72"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["74:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":68"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "mlflow_tools/export_import/export_registered_models.py" + code_changes: + - lines: ["25:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["26:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["27:27"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["28:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":25"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "mlflow_tools/export_import/export_run.py" + code_changes: + - lines: ["90:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["91:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["92:91", "94:93"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["93:92", "95:94"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["96:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":90"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "mlflow_tools/export_import/import_experiment.py" + code_changes: + - lines: ["40:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["41:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["42:40", "43:41", "44:42", "45:43", "46:44", "47:45"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["48:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":39"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "mlflow_tools/export_import/import_model.py" + code_changes: + - lines: ["46:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["65:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["66:65", "67:66", "68:67", "69:68"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["70:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":64"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "mlflow_tools/export_import/import_run.py" + code_changes: + - lines: ["74:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["75:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser] + target_apis: [click] + - lines: ["76:74", "77:75", "78:76", "79:77", "80:78"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["81:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":73"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__ansible-community@molecule__b7d7740.yaml b/data/v2/migration/argparse__click__ansible-community@molecule__b7d7740.yaml new file mode 100644 index 0000000..b8800c5 --- /dev/null +++ b/data/v2/migration/argparse__click__ansible-community@molecule__b7d7740.yaml @@ -0,0 +1,44 @@ +repo: ansible-community/molecule +commit: b7d7740db482624182dd6c31600ca1c09669cfc5 +source: argparse +target: click +commit_url: https://github.com/ansible-community/molecule/commit/b7d7740d +domain: Utility +files: +- path: "contrib/convert.py" + code_changes: + - lines: ["23:28"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["37:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["38:114"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, element name change] + source_apis: [add_argument] + target_apis: [argument] + - lines: ["39:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":113"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__clearmatics@ion__03fb3a3.yaml b/data/v2/migration/argparse__click__clearmatics@ion__03fb3a3.yaml new file mode 100644 index 0000000..19f082b --- /dev/null +++ b/data/v2/migration/argparse__click__clearmatics@ion__03fb3a3.yaml @@ -0,0 +1,218 @@ +repo: clearmatics/ion +commit: 03fb3a3a307640d2fc0d4481cc3c529c8661b55c +source: argparse +target: click +commit_url: https://github.com/clearmatics/ion/commit/03fb3a3a +domain: Utility +files: +- path: "ion/plasma/chain.py" + code_changes: + - lines: ["132:135"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["299:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["300-301:299"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, argument name change, argument transformation, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["302-303:300", "304-305:301"] + 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: ["306:302"] + cardinality: one-to-many + source_program_elements: [function call] + 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: [argument, Path] + - lines: ["307:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":298"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "ion/plasma/payment.py" + code_changes: + - lines: ["199:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["201:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [add_mutually_exclusive_group] + target_apis: [] + - lines: ["204-205:197", "211-212:201", "213-214:202", "215-216:203", "218-219:204"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, argument name change, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["206-207:198"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["206:198"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [FileType] + target_apis: [File] + - lines: ["209-210:200"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument name change, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["227:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["5:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":196"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "ion/rpc/client.py" + code_changes: + - lines: ["222:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["223-224:223", "226-227:224", "228:225"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["225:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [add_mutually_exclusive_group] + target_apis: [] + - lines: ["229:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["3:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":222"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "ion/rpc/server.py" + code_changes: + - lines: ["123:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["127-128:119"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, argument name change, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["129-130:120", "131-132:121"] + 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: ["134-135:123", "136-137:122"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["139:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["8:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":118"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__godaddy@tartufo__553dc5f.yaml b/data/v2/migration/argparse__click__godaddy@tartufo__553dc5f.yaml new file mode 100644 index 0000000..074faab --- /dev/null +++ b/data/v2/migration/argparse__click__godaddy@tartufo__553dc5f.yaml @@ -0,0 +1,79 @@ +repo: godaddy/tartufo +commit: 553dc5fb7ddef597cafda451954fa4cba23acde6 +source: argparse +target: click +commit_url: https://github.com/godaddy/tartufo/commit/553dc5fb +domain: Utility +files: +- path: "tartufo/cli.py" + code_changes: + - lines: ["103-112:20-23", "113-121:24-25", "122-130:26-27"] + 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: ["131-136:28", "137-141:29-31", "143-145:32"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["146-155:33-38", "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: [add_argument, FileType] + target_apis: [option, File] + - lines: ["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: [option, File] + - lines: ["189:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["3:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["76:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["173-178:47-48", "179-181:51", "182-187:49-50", "79-81:17"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["95-102:18-19"] + 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: [option, File] + - lines: [":15"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__googlesamples@assistant-sdk-python__38e4e64.yaml b/data/v2/migration/argparse__click__googlesamples@assistant-sdk-python__38e4e64.yaml new file mode 100644 index 0000000..0328900 --- /dev/null +++ b/data/v2/migration/argparse__click__googlesamples@assistant-sdk-python__38e4e64.yaml @@ -0,0 +1,51 @@ +repo: googlesamples/assistant-sdk-python +commit: 38e4e642cbfc2b0dd5ddf0151e87a867273f9a30 +source: argparse +target: click +commit_url: https://github.com/googlesamples/assistant-sdk-python/commit/38e4e642 +domain: Utility +files: +- path: "googlesamples/assistant/__main__.py" + code_changes: + - lines: ["17:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["50-52:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["54-56:47-50", "57-59:51-54", "60-62:37-39", "67-69:55-57", "73-74:45-46"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change] + source_apis: [add_argument] + target_apis: [option] + - lines: ["63-66:40-44", "70-72:58-60"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [add_argument] + target_apis: [option] + - lines: ["75:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":36"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__grahame@sedge__3badf07.yaml b/data/v2/migration/argparse__click__grahame@sedge__3badf07.yaml new file mode 100644 index 0000000..d316401 --- /dev/null +++ b/data/v2/migration/argparse__click__grahame@sedge__3badf07.yaml @@ -0,0 +1,58 @@ +repo: grahame/sedge +commit: 3badf078e2f4153db161cada1c7a23901e36ab7f +source: argparse +target: click +commit_url: https://github.com/grahame/sedge/commit/3badf078 +domain: Utility +files: +- path: "sedge/cli.py" + code_changes: + - lines: ["101:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["103-106:74-77", "114-117:64-66", "118-121:67-69"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["107-110:78", "122-125:70-73"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["111-113:63"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [add_argument] + target_apis: [version_option] + - lines: ["132:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["1:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":62"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [group] diff --git a/data/v2/migration/argparse__click__himkt@pyner__76106a9.yaml b/data/v2/migration/argparse__click__himkt@pyner__76106a9.yaml new file mode 100644 index 0000000..fb040c7 --- /dev/null +++ b/data/v2/migration/argparse__click__himkt@pyner__76106a9.yaml @@ -0,0 +1,44 @@ +repo: himkt/pyner +commit: 76106a9a4202497de9719b5a5563cadd697bd3d0 +source: argparse +target: click +commit_url: https://github.com/himkt/pyner/commit/76106a9a +domain: Utility +files: +- path: "pyner/tool/corpus/parse_CoNLL2003.py" + code_changes: + - lines: ["22:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["23:15", "24:16", "25:17"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["26:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["7:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":14"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__klensy@wt-tools__760ff36.yaml b/data/v2/migration/argparse__click__klensy@wt-tools__760ff36.yaml new file mode 100644 index 0000000..e66d573 --- /dev/null +++ b/data/v2/migration/argparse__click__klensy@wt-tools__760ff36.yaml @@ -0,0 +1,37 @@ +repo: klensy/wt-tools +commit: 760ff36bab0c7b9acaf72e9cbae274b70fb3922a +source: argparse +target: click +commit_url: https://github.com/klensy/wt-tools/commit/760ff36b +domain: Utility +files: +- path: "src/wt_tools/blk_unpack.py" + code_changes: + - lines: ["1:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["597:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["606-607:601-602"] + 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: ["609:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] diff --git a/data/v2/migration/argparse__click__kxr@o-must-gather__9da4722.yaml b/data/v2/migration/argparse__click__kxr@o-must-gather__9da4722.yaml new file mode 100644 index 0000000..bf7b33a --- /dev/null +++ b/data/v2/migration/argparse__click__kxr@o-must-gather__9da4722.yaml @@ -0,0 +1,128 @@ +repo: kxr/o-must-gather +commit: 9da472294ca5a598bb74cb413db0bd880f7012b2 +source: argparse +target: click +commit_url: https://github.com/kxr/o-must-gather/commit/9da47229 +domain: Utility +files: +- path: "omg/cli.py" + code_changes: + - lines: ["15:", "20:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["16:16", "17:17"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [add_argument] + target_apis: [option] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["21:28"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, element name change] + source_apis: [add_subparsers] + target_apis: [group] + - lines: ["24:33", "31-32:44", "37-38:53", "42-43:61", "50-51:72", "64-65:94", "69-70:102"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [add_parser] + target_apis: [command] + - lines: ["26:34"] + 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: [argument, Path] + - lines: ["27:36"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["28:", "34:", "39:", "47:", "53:", "61:", "66:", "71:", "81:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [set_defaults] + target_apis: [] + - lines: ["44:62"] + 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: [argument] + - lines: ["45:63"] + 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: [option, Choice] + - lines: ["52:73"] + 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: [argument] + - lines: ["56-57:82"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, argument transformation, element name change] + source_apis: [add_parser] + target_apis: [command] + - lines: ["58:83"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [argument] + - lines: ["59:84"] + 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: ["60:85"] + 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: ["74-75:110"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [add_parser] + target_apis: [group] + - lines: ["84:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] diff --git a/data/v2/migration/argparse__click__lqez@hog__d722ade.yaml b/data/v2/migration/argparse__click__lqez@hog__d722ade.yaml new file mode 100644 index 0000000..a1eb703 --- /dev/null +++ b/data/v2/migration/argparse__click__lqez@hog__d722ade.yaml @@ -0,0 +1,51 @@ +repo: lqez/hog +commit: d722ade4be3cf05bf32def1e732a8e8d1b78a29b +source: argparse +target: click +commit_url: https://github.com/lqez/hog/commit/d722ade4 +domain: Utility +files: +- path: "hog/hog.py" + code_changes: + - lines: ["143:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["147-148:199"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [add_argument] + target_apis: [argument] + - lines: ["149-150:190", "151-152:191"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument transformation, element name change] + source_apis: [add_argument] + target_apis: [option] + - lines: ["153-154:192", "155-156:193", "157-158:194", "159-160:195", "161-162:196", "163-164:197", "165-167:198"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument transformation, element name change] + source_apis: [add_argument] + target_apis: [option] + - lines: ["20:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":189"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [echo] diff --git a/data/v2/migration/argparse__click__magnetotesting@magneto__a5c82b8.yaml b/data/v2/migration/argparse__click__magnetotesting@magneto__a5c82b8.yaml new file mode 100644 index 0000000..a7ebb56 --- /dev/null +++ b/data/v2/migration/argparse__click__magnetotesting@magneto__a5c82b8.yaml @@ -0,0 +1,51 @@ +repo: magnetotesting/magneto +commit: a5c82b8f76b8e4f97c122da9726a99f4c591ffcc +source: argparse +target: click +commit_url: https://github.com/magnetotesting/magneto/commit/a5c82b8f +domain: Utility +files: +- path: "magneto/main.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["69:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["70:72", "71:73"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [add_argument] + target_apis: [option] + - lines: ["73:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_unknown_args] + target_apis: [] + - lines: [":68"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] + - lines: [":74"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [pass_context] diff --git a/data/v2/migration/argparse__click__martinthoma@hwrt__86bc433.yaml b/data/v2/migration/argparse__click__martinthoma@hwrt__86bc433.yaml new file mode 100644 index 0000000..928b05e --- /dev/null +++ b/data/v2/migration/argparse__click__martinthoma@hwrt__86bc433.yaml @@ -0,0 +1,155 @@ +repo: martinthoma/hwrt +commit: 86bc433a047454b7ede27e4c0fb4bc53f381941c +source: argparse +target: click +commit_url: https://github.com/martinthoma/hwrt/commit/86bc433a +domain: Utility +files: +- path: "bin/convert.py" + code_changes: + - lines: ["190:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser, argparse.ArgumentDefaultsHelpFormatter] + target_apis: [click] + - lines: ["192-194:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["193:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentDefaultsHelpFormatter] + target_apis: [] + - lines: ["195-203:186"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [command] + - lines: ["208:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] +- path: "bin/merge.py" + code_changes: + - lines: ["66:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser, argparse.ArgumentDefaultsHelpFormatter] + target_apis: [click] + - lines: ["68-70:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["69:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentDefaultsHelpFormatter] + target_apis: [] + - lines: ["71-78:67-72", "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: [option, Path] + - lines: ["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: [option, Path] + - lines: ["94:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":66"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "hwrt/datasets/crohme_convert.py" + code_changes: + - lines: ["162:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse.ArgumentParser, argparse.ArgumentDefaultsHelpFormatter] + target_apis: [click] + - lines: ["164-166:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["165:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentDefaultsHelpFormatter] + target_apis: [] + - lines: ["167-175:160-166"] + 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: [option, Path] + - lines: ["180:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: [":159"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] +- path: "hwrt/selfcheck.py" + code_changes: + - lines: ["111:111"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["113:113"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [__version__] + target_apis: [__version__] diff --git a/data/v2/migration/argparse__click__oca@maintainer-tools__69593ae.yaml b/data/v2/migration/argparse__click__oca@maintainer-tools__69593ae.yaml new file mode 100644 index 0000000..d670ca6 --- /dev/null +++ b/data/v2/migration/argparse__click__oca@maintainer-tools__69593ae.yaml @@ -0,0 +1,58 @@ +repo: oca/maintainer-tools +commit: 69593ae691a43b75984bd92891165f1b26ad31a5 +source: argparse +target: click +commit_url: https://github.com/oca/maintainer-tools/commit/69593ae6 +domain: Utility +files: +- path: "tools/pypi_upload_wheels.py" + code_changes: + - lines: ["112:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["113:111", "114:112", "115:113"] + 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: ["116:114"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["117:129"] + 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: [argument] + - lines: ["118:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["2:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":110"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [group] diff --git a/data/v2/migration/argparse__click__terryyin@google-translate-python__ac375b4.yaml b/data/v2/migration/argparse__click__terryyin@google-translate-python__ac375b4.yaml new file mode 100644 index 0000000..6c99a7c --- /dev/null +++ b/data/v2/migration/argparse__click__terryyin@google-translate-python__ac375b4.yaml @@ -0,0 +1,51 @@ +repo: terryyin/google-translate-python +commit: ac375b49cf1e72e0a79f78ba1a74e57b6c3f8aed +source: argparse +target: click +commit_url: https://github.com/terryyin/google-translate-python/commit/ac375b49 +domain: Utility +files: +- path: "translate/main.py" + code_changes: + - lines: ["25:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["26-29:48-52", "30-33:43-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: ["34-37:53"] + 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: ["42:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_args] + target_apis: [] + - lines: ["8:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: [":42"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__click__yubico@yubioath-desktop__9d601b4.yaml b/data/v2/migration/argparse__click__yubico@yubioath-desktop__9d601b4.yaml new file mode 100644 index 0000000..b081c96 --- /dev/null +++ b/data/v2/migration/argparse__click__yubico@yubioath-desktop__9d601b4.yaml @@ -0,0 +1,128 @@ +repo: yubico/yubioath-desktop +commit: 9d601b4fe39c6e37ef51ee9a1274909309d4286f +source: argparse +target: click +commit_url: https://github.com/yubico/yubioath-desktop/commit/9d601b4f +domain: Utility +files: +- path: "yubioath/cli/__main__.py" + code_changes: + - lines: ["117-118:90"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument transformation, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [argument] + - lines: ["119-120:91", "121-122:92", "123-124:93", "168-169:141", "65-67:75-76"] + 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: ["159:134", "206:172"] + 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: [argument] + - lines: ["160-162:135"] + 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: [option, IntRange] + - lines: ["163:136"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["164-165:137-138"] + 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: ["166-167:139-140", "170-171:142"] + 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: [option, Choice] + - lines: ["219:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [add_mutually_exclusive_group] + target_apis: [] + - lines: ["220-221:194", "222-223:208", "224-225:220"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [add_argument] + target_apis: [command] + - lines: ["40:40"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [click] + - lines: ["61:", "69:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ArgumentParser] + target_apis: [] + - lines: ["254-255:228-229", "62-64:73-74"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change, parameter addition to decorated function] + source_apis: [add_argument] + target_apis: [option] + - lines: ["74-75:73-74"] + 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: ["77:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [add_subparsers] + target_apis: [] + - lines: ["79-80:", "81-82:", "83-84:", "85-86:", "87-88:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [add_parser] + target_apis: [] + - lines: [":187", ":72"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [group] + - lines: [":133", ":171", ":227", ":89"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] diff --git a/data/v2/migration/argparse__configargparse__rocketmap@rocketmap__2960ec6.yaml b/data/v2/migration/argparse__configargparse__rocketmap@rocketmap__2960ec6.yaml new file mode 100644 index 0000000..791c458 --- /dev/null +++ b/data/v2/migration/argparse__configargparse__rocketmap@rocketmap__2960ec6.yaml @@ -0,0 +1,30 @@ +repo: rocketmap/rocketmap +commit: 2960ec68f85274c37068e2577f28c44eecc4ff26 +source: argparse +target: configargparse +commit_url: https://github.com/rocketmap/rocketmap/commit/2960ec68 +domain: Utilities +files: +- path: "pogom/utils.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [configargparse] + - lines: ["70:33"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [ArgumentParser] + target_apis: [ArgParser] + - lines: ["73:35", "74:36", "75:37", "77:39", "86:47", "87:48", "88:49"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [add_argument] + target_apis: [add_argument] diff --git a/data/v2/migration/argparse__docopt__ceph@teuthology__fb32105.yaml b/data/v2/migration/argparse__docopt__ceph@teuthology__fb32105.yaml new file mode 100644 index 0000000..0dded11 --- /dev/null +++ b/data/v2/migration/argparse__docopt__ceph@teuthology__fb32105.yaml @@ -0,0 +1,23 @@ +repo: ceph/teuthology +commit: fb3210538573bfe67d1f3faf0edb566a2c9877a6 +source: argparse +target: docopt +commit_url: https://github.com/ceph/teuthology/commit/fb321053 +domain: Utility +files: +- path: "scripts/results.py" + code_changes: + - lines: ["11-14:1-14,20"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [ArgumentParser, add_argument, parse_Args] + target_apis: [docopt] + - lines: ["1:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [docopt] diff --git a/data/v2/migration/argparse__docopt__hootnot@oandapyv20-examples__e1df70e.yaml b/data/v2/migration/argparse__docopt__hootnot@oandapyv20-examples__e1df70e.yaml new file mode 100644 index 0000000..f048eff --- /dev/null +++ b/data/v2/migration/argparse__docopt__hootnot@oandapyv20-examples__e1df70e.yaml @@ -0,0 +1,23 @@ +repo: hootnot/oandapyv20-examples +commit: e1df70e3f16a3275c8648cf873e3db10425d7fa3 +source: argparse +target: docopt +commit_url: https://github.com/hootnot/oandapyv20-examples/commit/e1df70e3 +domain: Utility +files: +- path: "src/streaming_prices.py" + code_changes: + - lines: ["18-25,31:82"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [ArgumentParser, add_argumen, parse_args] + target_apis: [docopt] + - lines: ["9:79"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [docopt.docopt] diff --git a/data/v2/migration/argparse__docopt__tankerhq@tbump__54b12e2.yaml b/data/v2/migration/argparse__docopt__tankerhq@tbump__54b12e2.yaml new file mode 100644 index 0000000..1a437f5 --- /dev/null +++ b/data/v2/migration/argparse__docopt__tankerhq@tbump__54b12e2.yaml @@ -0,0 +1,23 @@ +repo: tankerhq/tbump +commit: 54b12e29d860336593ff24a514f4d2c9c483b470 +source: argparse +target: docopt +commit_url: https://github.com/tankerhq/tbump/commit/54b12e29 +domain: Utility +files: +- path: "tbump/main.py" + code_changes: + - lines: ["2:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [argparse] + target_apis: [docopt] + - lines: ["44-51:69"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call, function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [ArgumentParser, add_argument, parse_args, parse_args] + target_apis: [docopt] diff --git a/data/v2/migration/asyncio-redis__aioredis__augerai@a2ml__13ea499.yaml b/data/v2/migration/asyncio-redis__aioredis__augerai@a2ml__13ea499.yaml new file mode 100644 index 0000000..e24ced2 --- /dev/null +++ b/data/v2/migration/asyncio-redis__aioredis__augerai@a2ml__13ea499.yaml @@ -0,0 +1,37 @@ +repo: augerai/a2ml +commit: 13ea499e413b86256345fbf39f26628b68a7fe83 +source: asyncio-redis +target: aioredis +commit_url: https://github.com/augerai/a2ml/commit/13ea499e +domain: Utility +files: +- path: "a2ml/server/notification.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [asyncio_redis] + target_apis: [aioredis] + - lines: ["58-61:60-62"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [create] + target_apis: [create_redis] + - lines: ["62:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [start_subscribe] + target_apis: [] + - lines: ["63:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [subscribe] + target_apis: [] diff --git a/data/v2/migration/asyncio-redis__aioredis__eyepea@api-hour__97286ef.yaml b/data/v2/migration/asyncio-redis__aioredis__eyepea@api-hour__97286ef.yaml new file mode 100644 index 0000000..a27d771 --- /dev/null +++ b/data/v2/migration/asyncio-redis__aioredis__eyepea@api-hour__97286ef.yaml @@ -0,0 +1,23 @@ +repo: eyepea/api-hour +commit: 97286ef346d9378e92f5bf5627b2ff109e17079a +source: asyncio-redis +target: aioredis +commit_url: https://github.com/eyepea/api-hour/commit/97286ef3 +domain: Utility +files: +- path: "tests/redis_session_test.py" + code_changes: + - lines: ["19-20:17"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [create, BytesEncoder] + target_apis: [create_pool] + - lines: ["6-7:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [asyncio_redis.Connection] + target_apis: [aioredis] diff --git a/data/v2/migration/attrs__dataclasses__aiortc@aiortc__270edaf.yaml b/data/v2/migration/attrs__dataclasses__aiortc@aiortc__270edaf.yaml new file mode 100644 index 0000000..b146f75 --- /dev/null +++ b/data/v2/migration/attrs__dataclasses__aiortc@aiortc__270edaf.yaml @@ -0,0 +1,318 @@ +repo: aiortc/aiortc +commit: 270edaf4237cba1942fc0b8cc98f3ae4dfc3f0e1 +source: attrs +target: dataclasses +commit_url: https://github.com/aiortc/aiortc/commit/270edaf4 +domain: Utility +files: +- path: "src/aiortc/events.py" + code_changes: + - lines: ["15:", "17:", "19:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] + - lines: ["8:8"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "src/aiortc/rtcconfiguration.py" + code_changes: + - lines: ["15:5", "4:25"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] + - lines: ["23:", "28:", "30:", "32:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] +- path: "src/aiortc/rtcdatachannel.py" + code_changes: + - lines: ["12:12"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["19:", "22:", "25:", "28:", "31:", "34:", "39:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["4:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] +- path: "src/aiortc/rtcdtlstransport.py" + code_changes: + - lines: ["11:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["144:144", "238:238"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["151:", "154:", "248:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["245:245"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [ib] + target_apis: [field] +- path: "src/aiortc/rtcicetransport.py" + code_changes: + - lines: ["24:24", "46:46"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["32:", "33:", "34:", "35:", "36:", "37:", "38:", "39:", "40:", "41:", "42:", "43:", "53:", "56:", "59:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["6:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] +- path: "src/aiortc/rtcrtpparameters.py" + code_changes: + - lines: ["100:", "102:", "127:", "128:", "137:", "139:", "141:", "14:", "158:", "16:", "18:", "35:", "37:", "39:", "41:", "61:", "66:", "67:", "68:", "88:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["106:103", "131:128", "145:142", "164:161", "169:166", "28:27", "59:58", "64:63", "7:6", "81:78", "92:89"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["113:110", "115:112", "152:149", "154:151", "160:157", "166:163", "171:168", "20:19", "43:42", "45:44"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [ib] + target_apis: [field] + - lines: ["4:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["71:", "76:"] + cardinality: one-to-zero + source_program_elements: [decorator] + target_program_elements: [] + properties: [] + source_apis: [s] + target_apis: [] +- path: "src/aiortc/rtcrtpreceiver.py" + code_changes: + - lines: ["10:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] + - lines: ["208:208", "221:221"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["215:", "217:", "228:", "230:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] +- path: "src/aiortc/rtcsctptransport.py" + code_changes: + - lines: ["24:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["436:436", "465:465", "480:480", "578:578"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["438:", "439:", "440:", "467:", "468:", "482:", "483:", "585:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["441:441"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [ib] + target_apis: [field] +- path: "src/aiortc/rtcsessiondescription.py" + code_changes: + - lines: ["11:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] + - lines: ["4:4"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "src/aiortc/rtp.py" + code_changes: + - lines: ["307:306", "339:338", "34:33", "366:365", "391:390", "416:415", "441:440", "486:485", "528:527"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["309:", "310:", "311:", "312:", "313:", "314:", "315:", "341:", "342:", "343:", "344:", "36:", "372:", "374:", "37:", "38:", "397:", "398:", "399:", "39:", "400:", "40:", "418:", "41:", "42:", "447:", "448:", "449:", "530:", "531:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["419:418", "452:451", "488:487", "532:531"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [ib] + target_apis: [field] + - lines: ["5:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] +- path: "src/aiortc/sdp.py" + code_changes: + - lines: ["131:130", "146:145"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["133:", "134:", "148:", "149:", "150:", "151:", "152:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["6:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] +- path: "src/aiortc/stats.py" + code_changes: + - lines: ["12:", "14:", "15:", "20:", "21:", "22:", "27:", "28:", "29:", "34:", "36:", "57:", "58:", "68:", "78:", "83:", "85:", "87:", "89:", "91:", "93:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["18:18", "25:25", "32:32", "40:40", "50:50", "61:61", "6:6", "71:71", "81:81"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["3:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] diff --git a/data/v2/migration/attrs__dataclasses__keepsafe@aiohttp__e51fb1f.yaml b/data/v2/migration/attrs__dataclasses__keepsafe@aiohttp__e51fb1f.yaml new file mode 100644 index 0000000..389e66f --- /dev/null +++ b/data/v2/migration/attrs__dataclasses__keepsafe@aiohttp__e51fb1f.yaml @@ -0,0 +1,158 @@ +repo: keepsafe/aiohttp +commit: e51fb1ff1ebdde566b96af0090c5c63cf1a62b1b +source: attrs +target: dataclasses +commit_url: https://github.com/keepsafe/aiohttp/commit/e51fb1ff +domain: Utility +files: +- path: "aiohttp/client.py" + code_changes: + - lines: ["139:139"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["31:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] + - lines: ["704:704"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [evolve] + target_apis: [replace] +- path: "aiohttp/client_reqrep.py" + code_changes: + - lines: ["148:144", "89:89", "96:96"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["26:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] +- path: "aiohttp/client_ws.py" + code_changes: + - lines: ["30:30"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["7:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] +- path: "aiohttp/connector.py" + code_changes: + - lines: ["1073:1072"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [evolve] + target_apis: [replace] + - lines: ["31:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] +- path: "aiohttp/helpers.py" + code_changes: + - lines: ["235:235", "272:272"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["45:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] +- path: "aiohttp/tracing.py" + code_changes: + - lines: ["220:220", "229:229", "238:238", "247:247", "257:257", "267:267", "277:277", "282:282", "287:287", "292:292", "297:297", "302:302", "309:309", "316:316", "323:323", "330:330"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["4:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] +- path: "aiohttp/web_request.py" + code_changes: + - lines: ["27:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] + - lines: ["69:69"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "aiohttp/web_routedef.py" + code_changes: + - lines: ["18:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] + - lines: ["60:59", "85:84"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "aiohttp/web_ws.py" + code_changes: + - lines: ["44:44"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["9:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses] diff --git a/data/v2/migration/attrs__dataclasses__project-alice-assistant@projectalice__f1fe8cb.yaml b/data/v2/migration/attrs__dataclasses__project-alice-assistant@projectalice__f1fe8cb.yaml new file mode 100644 index 0000000..087a18b --- /dev/null +++ b/data/v2/migration/attrs__dataclasses__project-alice-assistant@projectalice__f1fe8cb.yaml @@ -0,0 +1,138 @@ +repo: project-alice-assistant/projectalice +commit: f1fe8cb8fe07a6ee7973dae4ea4a3fde3940352c +source: attrs +target: dataclasses +commit_url: https://github.com/project-alice-assistant/projectalice/commit/f1fe8cb8 +domain: Utility +files: +- path: "core/base/model/Version.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] + - lines: ["5:5"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument addition, argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "core/commons/model/Slot.py" + code_changes: + - lines: ["11:11"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [Factory] + target_apis: [field] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["4:4"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "core/device/model/Device.py" + code_changes: + - lines: ["10:10", "11:11", "12:12", "13:13"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [ib] + target_apis: [field] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["3:3"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "core/dialog/model/DialogSession.py" + code_changes: + - lines: ["14:14"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["21:21", "22:22", "23:23", "24:24", "25:25", "26:26"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [Factory] + target_apis: [field] + - lines: ["6:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] +- path: "core/dialog/model/MultiIntent.py" + code_changes: + - lines: ["11:11"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [Factory] + target_apis: [field] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["7:7"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "core/util/model/ThreadTimer.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["4:4"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["7:7", "8:8"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [Factory] + target_apis: [field] diff --git a/data/v2/migration/attrs__dataclasses__simonlindholm@decomp-permuter__cfbb706.yaml b/data/v2/migration/attrs__dataclasses__simonlindholm@decomp-permuter__cfbb706.yaml new file mode 100644 index 0000000..f7ceaf4 --- /dev/null +++ b/data/v2/migration/attrs__dataclasses__simonlindholm@decomp-permuter__cfbb706.yaml @@ -0,0 +1,219 @@ +repo: simonlindholm/decomp-permuter +commit: cfbb706402fe106ae19762279eab8294a531f20c +source: attrs +target: dataclasses +commit_url: https://github.com/simonlindholm/decomp-permuter/commit/cfbb7064 +domain: Utility +files: +- path: "src/ast_types.py" + code_changes: + - lines: ["13:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["23:23"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["25:25", "26:26", "27:27", "28:28"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [ib] + target_apis: [field] +- path: "src/candidate.py" + code_changes: + - lines: ["19:19", "32:32"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["26:", "27:", "28:", "39:", "41:", "42:", "43:", "44:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["29:29"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [ib] + target_apis: [field] + - lines: ["45:45", "46:46", "47:47"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [ib] + target_apis: [field] + - lines: ["6:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] +- path: "src/error.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass] + - lines: ["4:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["4:4"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "src/main.py" + code_changes: + - lines: ["22:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["50:49", "82:81"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["52:", "53:", "54:", "55:", "56:", "57:", "58:", "59:", "60:", "61:", "62:", "63:", "84:", "86:", "87:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["85:84", "88:87", "89:88"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [ib] + target_apis: [field] +- path: "src/perm/perm.py" + code_changes: + - lines: ["10:9"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [ib] + target_apis: [field] + - lines: ["5:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["8:7"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] +- path: "src/permuter.py" + code_changes: + - lines: ["27:25"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["29:", "30:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] +- path: "src/randomizer.py" + code_changes: + - lines: ["2:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] + - lines: ["73:73"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["75:", "76:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["77:77"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [ib] + target_apis: [field] +- path: "src/scorer.py" + code_changes: + - lines: ["12:11"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument name change, element name change] + source_apis: [s] + target_apis: [dataclass] + - lines: ["14:13"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [ib] + target_apis: [field] + - lines: ["15:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [ib] + target_apis: [] + - lines: ["7:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [attr] + target_apis: [dataclasses.dataclass, dataclasses.field] diff --git a/data/v2/migration/bcrypt__passlib__twiliodeved@sms2fa-flask__22eedfc.yaml b/data/v2/migration/bcrypt__passlib__twiliodeved@sms2fa-flask__22eedfc.yaml new file mode 100644 index 0000000..fbd2129 --- /dev/null +++ b/data/v2/migration/bcrypt__passlib__twiliodeved@sms2fa-flask__22eedfc.yaml @@ -0,0 +1,23 @@ +repo: twiliodeved/sms2fa-flask +commit: 22eedfcd1ef701a4283505762660146b57b26304 +source: bcrypt +target: passlib +commit_url: https://github.com/twiliodeved/sms2fa-flask/commit/22eedfcd +domain: Crypto +files: +- path: "sms2fa_flask/models.py" + code_changes: + - lines: ["30-31:29"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [gensalt, hashpw] + target_apis: [encrypt] + - lines: ["3:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bcrypt] + target_apis: [passlib.hash.bcrypt] diff --git a/data/v2/migration/beautifulsoup__bs4__cfpb@cfgov-refresh__3262610.yaml b/data/v2/migration/beautifulsoup__bs4__cfpb@cfgov-refresh__3262610.yaml new file mode 100644 index 0000000..65d95e9 --- /dev/null +++ b/data/v2/migration/beautifulsoup__bs4__cfpb@cfgov-refresh__3262610.yaml @@ -0,0 +1,23 @@ +repo: cfpb/cfgov-refresh +commit: 3262610155669294fa5b79c108b6a244d9d03cbc +source: beautifulsoup +target: bs4 +commit_url: https://github.com/cfpb/cfgov-refresh/commit/32626101 +domain: HTML +files: +- path: "cfgov/v1/__init__.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [BeautifulSoup.BeautifulSoup] + target_apis: [bs4.BeautifulSoup] + - lines: ["69:64"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [BeautifulSoup] + target_apis: [BeautifulSoup] diff --git a/data/v2/migration/botocore__boto__whoopinc@mkwheelhouse__54806ff.yaml b/data/v2/migration/botocore__boto__whoopinc@mkwheelhouse__54806ff.yaml new file mode 100644 index 0000000..5a61aff --- /dev/null +++ b/data/v2/migration/botocore__boto__whoopinc@mkwheelhouse__54806ff.yaml @@ -0,0 +1,23 @@ +repo: whoopinc/mkwheelhouse +commit: 54806ffc8eddb19cb4b603a380a2f1126eaae84e +source: botocore +target: boto +commit_url: https://github.com/whoopinc/mkwheelhouse/commit/54806ffc +domain: HTTP Clients +files: +- path: "mkwheelhouse.py" + code_changes: + - lines: ["12:13-14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [botocore.session] + target_apis: [boto, boto.s3.connection] + - lines: ["19:25-27"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [get_service, get_session] + target_apis: [OrdinaryCallingFormat, connect_to_region] diff --git a/data/v2/migration/botocore__boto__zalando@spilo__a83681c.yaml b/data/v2/migration/botocore__boto__zalando@spilo__a83681c.yaml new file mode 100644 index 0000000..ca84aa0 --- /dev/null +++ b/data/v2/migration/botocore__boto__zalando@spilo__a83681c.yaml @@ -0,0 +1,23 @@ +repo: zalando/spilo +commit: a83681c756fe8dfc8e5117c690bde16319e3e943 +source: botocore +target: boto +commit_url: https://github.com/zalando/spilo/commit/a83681c7 +domain: HTTP Clients +files: +- path: "postgres-appliance/callback_aws.py" + code_changes: + - lines: ["22:18"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [ClientError] + target_apis: [BotoServerError] + - lines: ["9:3-4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [botocore.exceptions.ClientError] + target_apis: [boto.utils, boto.ec2] diff --git a/data/v2/migration/bottle__flask__cqmoe@python-cqhttp__f9f083e.yaml b/data/v2/migration/bottle__flask__cqmoe@python-cqhttp__f9f083e.yaml new file mode 100644 index 0000000..96aa400 --- /dev/null +++ b/data/v2/migration/bottle__flask__cqmoe@python-cqhttp__f9f083e.yaml @@ -0,0 +1,44 @@ +repo: cqmoe/python-cqhttp +commit: f9f083ec6b1de67e4e128e2fdc85cb7bacadcf6b +source: bottle +target: flask +commit_url: https://github.com/cqmoe/python-cqhttp/commit/f9f083ec +domain: Web Framework +files: +- path: "cqhttp/__init__.py" + code_changes: + - lines: ["68:67"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [Bottle] + target_apis: [Flask] + - lines: ["69:68"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [post] + target_apis: [route] + - lines: ["7:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bottle.Bottle, bottle.request, bottle.abort] + target_apis: [flask.Flask, flask.request, flask.abort, flask.jsonify] + - lines: ["84:83"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [read] + target_apis: [get_data] + - lines: ["88:89", "97:98"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [get] + target_apis: [get] diff --git a/data/v2/migration/bottle__flask__heyman@locust__4067b92.yaml b/data/v2/migration/bottle__flask__heyman@locust__4067b92.yaml new file mode 100644 index 0000000..a4606a3 --- /dev/null +++ b/data/v2/migration/bottle__flask__heyman@locust__4067b92.yaml @@ -0,0 +1,37 @@ +repo: heyman/locust +commit: 4067b929fab7691a12ad91bf70e3738d715e860e +source: bottle +target: flask +commit_url: https://github.com/heyman/locust/commit/4067b929 +domain: Web Framework +files: +- path: "locust/web.py" + code_changes: + - lines: ["18:17"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [] + source_apis: [route] + target_apis: [route] + - lines: ["2,6:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bottle.route, bottle.run, bottle.send_file, bottle] + target_apis: [flask.Flask, flask.make_response] + - lines: ["20:19-21"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [attribute, function call] + properties: [argument transformation, element name change] + source_apis: [send_file] + target_apis: [header, make_response] + - lines: ["47:10"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [default_app] + target_apis: [Flask] diff --git a/data/v2/migration/bottle__flask__nicolas-van@pygreen__843c8cf.yaml b/data/v2/migration/bottle__flask__nicolas-van@pygreen__843c8cf.yaml new file mode 100644 index 0000000..fadf916 --- /dev/null +++ b/data/v2/migration/bottle__flask__nicolas-van@pygreen__843c8cf.yaml @@ -0,0 +1,44 @@ +repo: nicolas-van/pygreen +commit: 843c8cfe9af68b9029235a229c838f519049ab0e +source: bottle +target: flask +commit_url: https://github.com/nicolas-van/pygreen/commit/843c8cfe +domain: Web Framework +files: +- path: "pygreen.py" + code_changes: + - lines: ["27:27"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bottle] + target_apis: [flask] + - lines: ["47:47"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [Bottle] + target_apis: [Flask] + - lines: ["93:93"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [static_file] + target_apis: [send_from_directory] + - lines: ["94:94"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [HTTPError] + target_apis: [abort] + - lines: ["98:98", "99:99"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [route] + target_apis: [add_url_rule] diff --git a/data/v2/migration/bunch__munch__1and1@confluencer__df895ac.yaml b/data/v2/migration/bunch__munch__1and1@confluencer__df895ac.yaml new file mode 100644 index 0000000..7c6a20f --- /dev/null +++ b/data/v2/migration/bunch__munch__1and1@confluencer__df895ac.yaml @@ -0,0 +1,34 @@ +repo: 1and1/confluencer +commit: df895ac8e75c13e32e2369bc4d9c88aa036ab9d4 +source: bunch +target: munch +commit_url: https://github.com/1and1/confluencer/commit/df895ac8 +domain: Graphic +files: +- path: "src/confluencer/__main__.py" + code_changes: + - lines: ["24:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] +- path: "src/confluencer/commands/stats.py" + code_changes: + - lines: ["23:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] +- path: "src/confluencer/tools/content.py" + code_changes: + - lines: ["29:29"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.bunchify] + target_apis: [munch.munchify] diff --git a/data/v2/migration/bunch__munch__fedora-infra@python-fedora__aca2a20.yaml b/data/v2/migration/bunch__munch__fedora-infra@python-fedora__aca2a20.yaml new file mode 100644 index 0000000..e0656e9 --- /dev/null +++ b/data/v2/migration/bunch__munch__fedora-infra@python-fedora__aca2a20.yaml @@ -0,0 +1,110 @@ +repo: fedora-infra/python-fedora +commit: aca2a20a5c1a889eed655f36ef1bf28dd32c3145 +source: bunch +target: munch +commit_url: https://github.com/fedora-infra/python-fedora/commit/aca2a20a +domain: Graphic +files: +- path: "fedora/client/__init__.py" + code_changes: + - lines: ["111:111"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [Bunch] + target_apis: [Munch] + - lines: ["116:116"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Bunch] + target_apis: [Munch] + - lines: ["33:33"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] +- path: "fedora/client/fas2.py" + code_changes: + - lines: ["31:31"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] + - lines: ["403:403", "702:702", "741:741"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Bunch] + target_apis: [Munch] +- path: "fedora/tg2/utils.py" + code_changes: + - lines: ["160:160", "39:39"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] + - lines: ["162:162", "177:177"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Bunch] + target_apis: [Munch] +- path: "fedora/wsgi/csrf.py" + code_changes: + - lines: ["150:150"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Bunch] + target_apis: [Munch] + - lines: ["34:34"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] +- path: "fedora/wsgi/faswho/faswhoplugin.py" + code_changes: + - lines: ["231:231", "397:397"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Bunch] + target_apis: [Munch] + - lines: ["40:40"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] +- path: "flask_fas_openid.py" + code_changes: + - lines: ["179:179", "180:180"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [fromDict] + target_apis: [fromDict] + - lines: ["31:31"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [bunch.Bunch] + target_apis: [munch.Munch] diff --git a/data/v2/migration/celery__rq__sapfir0@premier-eye__a7375cc.yaml b/data/v2/migration/celery__rq__sapfir0@premier-eye__a7375cc.yaml new file mode 100644 index 0000000..76331a0 --- /dev/null +++ b/data/v2/migration/celery__rq__sapfir0@premier-eye__a7375cc.yaml @@ -0,0 +1,16 @@ +repo: sapfir0/premier-eye +commit: a7375ccc40885f04faf4a05852591e6de4ba676d +source: celery +target: rq +commit_url: https://github.com/sapfir0/premier-eye/commit/a7375ccc +domain: Multitasking/multiprocessing +files: +- path: "pyfront/app/__init__.py" + code_changes: + - lines: ["2:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [celery.Celery] + target_apis: [rq] diff --git a/data/v2/migration/characteristic__attrs__rackerlabs@mimic__5bb4946.yaml b/data/v2/migration/characteristic__attrs__rackerlabs@mimic__5bb4946.yaml new file mode 100644 index 0000000..3e7644d --- /dev/null +++ b/data/v2/migration/characteristic__attrs__rackerlabs@mimic__5bb4946.yaml @@ -0,0 +1,558 @@ +repo: rackerlabs/mimic +commit: 5bb494665ce21b645f273bb4597f6dfae861c573 +source: characteristic +target: attrs +commit_url: https://github.com/rackerlabs/mimic/commit/5bb49466 +domain: Utility +files: +- path: "mimic/model/clb_objects.py" + code_changes: + - lines: ["15:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [] + - lines: ["160:158", "168:175"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["627-628:642"] + cardinality: many-to-one + source_program_elements: [decorator, function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes, Attribute] + target_apis: [s] +- path: "mimic/model/customer_objects.py" + code_changes: + - lines: ["10-12:10"] + cardinality: many-to-one + source_program_elements: [decorator, function call, function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes, Attribute, Attribute] + target_apis: [s] + - lines: ["75:78"] + cardinality: many-to-one + source_program_elements: [decorator, function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes, Attribute] + target_apis: [s] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] +- path: "mimic/model/flavor_collections.py" + code_changes: + - lines: ["19-22:19", "90-91:92"] + cardinality: many-to-one + source_program_elements: [decorator, function call] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes, Attribute] + target_apis: [s] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] +- path: "mimic/model/flavors.py" + code_changes: + - lines: ["10:10"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes] + target_apis: [attr] +- path: "mimic/model/heat_objects.py" + code_changes: + - lines: ["12-17:12", "202-208:203", "305-306:306"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["13:19", "15:20", "16:21", "17:22", "204:210", "205-208:211-212", "306:312"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: [":17", ":18", ":208", ":209", ":311"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/model/ironic_objects.py" + code_changes: + - lines: ["15-28:15", "181:181"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["16:23", "17:24", "18:25", "19:26", "20:27", "21:28", "22:29", "23:30", "24:31", "25:32", "26:33", "27:34"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument name change, element name change] + source_apis: [Attribute] + target_apis: [ib] + - lines: ["181:186"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: [":22"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/model/keypair_objects.py" + code_changes: + - lines: ["12:12", "34-37:37", "85-86:89"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["36:46", "86:98"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: [":17", ":18", ":43", ":44", ":45", ":96", ":97"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/model/mailgun_objects.py" + code_changes: + - lines: ["11-12:11", "79:84"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["12:23", "79:89"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["8:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: [":18", ":19", ":20", ":21", ":22"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/model/nova_image_collection.py" + code_changes: + - lines: ["15-16:15", "52-53:56"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["53:65"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: [":20", ":21", ":22", ":23", ":63", ":64"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/model/nova_objects.py" + code_changes: + - lines: ["122-123:142"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, instance_of] + - lines: ["118-123:120", "31:31", "342:355", "355:369", "38:39", "653-659:668", "976-977:991"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["655:676", "656-658:677-678", "977:1001"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: [":1000", ":127", ":128", ":129", ":130", ":131", ":132", ":133", ":134", ":135", ":136", ":137", ":138", ":139", ":140", ":141", ":36", ":360", ":374", ":44", ":673", ":674", ":675", ":999"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/model/rackspace_image_store.py" + code_changes: + - lines: ["22:22"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["22:28"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] +- path: "mimic/model/rackspace_images.py" + code_changes: + - lines: ["141-142:146", "26-37:26", "657:675"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["31:56", "32:57", "33:58", "34:59", "35:60", "36:61"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument name change, element name change] + source_apis: [Attribute] + target_apis: [ib] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: [":151", ":152", ":153", ":154", ":155", ":156", ":157", ":158", ":159", ":160", ":161", ":162", ":163", ":47", ":48", ":49", ":50", ":51", ":52", ":680", ":681", ":682", ":683", ":684", ":685"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/model/valkyrie_objects.py" + code_changes: + - lines: ["70:70"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["70:88"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] +- path: "mimic/rest/cloudfeeds.py" + code_changes: + - lines: ["17:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes] + target_apis: [attr] + - lines: ["60:60", "92:94"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: [":100", ":101", ":102", ":66", ":99"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/rest/loadbalancer_api.py" + code_changes: + - lines: ["26:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes] + target_apis: [attr] + - lines: ["111:113", "81:81"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: [":118", ":119", ":120", ":121", ":87"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/rest/maas_api.py" + code_changes: + - lines: ["1665:1664", "1696:1697"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: [":1669", ":1702", ":1703", ":1704"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/rest/nova_api.py" + code_changes: + - lines: ["11:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes] + target_apis: [attr] + - lines: ["131:132", "90:90"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: [":137", ":138", ":139", ":140", ":95"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/rest/rackconnect_v3_api.py" + code_changes: + - lines: ["144-150:142", "205-206:204", "392:399"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: ["235:239", "75-85:75"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, argument name change, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["145-146:171-172", "76-77:95-96", "82-83:101-102", "84:103"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory, instance_of] + - lines: ["148-149:174", "78:97", "79:98", "80:99"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, instance_of] + - lines: ["147:173", "150:175", "81:100"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument name change, element name change] + source_apis: [Attribute] + target_apis: [ib] + - lines: [":168", ":169", ":170", ":209", ":210", ":211", ":212", ":213", ":245", ":246", ":405"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/rest/swift_api.py" + code_changes: + - lines: ["121:133"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: ["102:105", "121:127", "82:82"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: [":111", ":112", ":113", ":132", ":133", ":88", ":89", ":90"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] +- path: "mimic/session.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [characteristic.attributes, characteristic.Attribute] + target_apis: [attr] + - lines: ["16-18:16", "49-50:53"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument deletion, element name change] + source_apis: [attributes] + target_apis: [s] + - lines: ["17:26", "18:27"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, Factory] + - lines: ["49:58"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [Attribute] + target_apis: [ib, instance_of] + - lines: [":22", ":23", ":24", ":25", ":59"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ib] diff --git a/data/v2/migration/chardet__cchardet__emlid@ntripbrowser__9161c19.yaml b/data/v2/migration/chardet__cchardet__emlid@ntripbrowser__9161c19.yaml new file mode 100644 index 0000000..8960e25 --- /dev/null +++ b/data/v2/migration/chardet__cchardet__emlid@ntripbrowser__9161c19.yaml @@ -0,0 +1,23 @@ +repo: emlid/ntripbrowser +commit: 9161c1943a8623892b174c98cdf686a4a0ce8673 +source: chardet +target: cchardet +commit_url: https://github.com/emlid/ntripbrowser/commit/9161c194 +domain: Utility +files: +- path: "ntripbrowser/ntripbrowser.py" + code_changes: + - lines: ["128:128"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [detect] + target_apis: [detect] + - lines: ["35:36"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [chardet] + target_apis: [cchardet] diff --git a/data/v2/migration/cheetah3__jinja2__openstack@ironic__cbf214b.yaml b/data/v2/migration/cheetah3__jinja2__openstack@ironic__cbf214b.yaml new file mode 100644 index 0000000..8b3c5d6 --- /dev/null +++ b/data/v2/migration/cheetah3__jinja2__openstack@ironic__cbf214b.yaml @@ -0,0 +1,39 @@ +repo: openstack/ironic +commit: cbf214b5130e362f57dbe5da99f4cef1918d882d +source: cheetah3 +target: jinja2 +commit_url: https://github.com/openstack/ironic/commit/cbf214b5 +domain: Web Framework +files: +- path: "ironic/drivers/modules/pxe.py" + code_changes: + - lines: ["141,154-159:152-156"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call, function call] + properties: [element name change, output transformation] + source_apis: [Template] + target_apis: [FileSystemLoader, get_template, render, Environment] + - lines: ["21:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Cheetah.Template] + target_apis: [jinja2] +- path: "ironic/nova/tilera.py" + code_changes: + - lines: ["55:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Cheetah.Template] + target_apis: [jinja2] + - lines: ["56,87-93:77-81"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call, function call] + properties: [element name change, output transformation] + source_apis: [Template] + target_apis: [FileSystemLoader, get_template, render, Environment] diff --git a/data/v2/migration/cheetah3__jinja2__shingetsu@saku__d1ad50a.yaml b/data/v2/migration/cheetah3__jinja2__shingetsu@saku__d1ad50a.yaml new file mode 100644 index 0000000..abf6f4e --- /dev/null +++ b/data/v2/migration/cheetah3__jinja2__shingetsu@saku__d1ad50a.yaml @@ -0,0 +1,23 @@ +repo: shingetsu/saku +commit: d1ad50a9baedf58b37fd8527c09d9b0668d59013 +source: cheetah3 +target: jinja2 +commit_url: https://github.com/shingetsu/saku/commit/d1ad50a9 +domain: Web Framework +files: +- path: "shingetsu/template.py" + code_changes: + - lines: ["34:32"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Cheetah.Template] + target_apis: [jinja2] + - lines: ["72:56-59,67,85"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [compile] + target_apis: [get_template, render, Environment] diff --git a/data/v2/migration/cheetah__jinja2__shingetsu@saku__d1ad50a.yaml b/data/v2/migration/cheetah__jinja2__shingetsu@saku__d1ad50a.yaml new file mode 100644 index 0000000..2094cf5 --- /dev/null +++ b/data/v2/migration/cheetah__jinja2__shingetsu@saku__d1ad50a.yaml @@ -0,0 +1,23 @@ +repo: shingetsu/saku +commit: d1ad50a9baedf58b37fd8527c09d9b0668d59013 +source: cheetah +target: jinja2 +commit_url: https://github.com/shingetsu/saku/commit/d1ad50a9 +domain: Web Framework +files: +- path: "shingetsu/template.py" + code_changes: + - lines: ["34:32"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Cheetah.Template] + target_apis: [jinja2] + - lines: ["72:67"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [compile] + target_apis: [get_template] diff --git a/data/v2/migration/click__argparse__kittenparry@meituri-downloader__422d73b.yaml b/data/v2/migration/click__argparse__kittenparry@meituri-downloader__422d73b.yaml new file mode 100644 index 0000000..d4e1158 --- /dev/null +++ b/data/v2/migration/click__argparse__kittenparry@meituri-downloader__422d73b.yaml @@ -0,0 +1,51 @@ +repo: kittenparry/meituri-downloader +commit: 422d73beace31a95a817d9befa860ca932df4596 +source: click +target: argparse +commit_url: https://github.com/kittenparry/meituri-downloader/commit/422d73be +domain: Utility +files: +- path: "meituri.py" + code_changes: + - lines: ["13:"] + cardinality: one-to-zero + source_program_elements: [decorator] + target_program_elements: [] + properties: [] + source_apis: [command] + target_apis: [] + - lines: ["14-16:14-16", "17-19:17-19"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [option] + target_apis: [add_argument] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [click] + target_apis: [argparse] + - lines: [":12"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ArgumentParser] + - lines: [":13"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [add_argument_group] + - lines: [":20"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [parse_args] diff --git a/data/v2/migration/click__argparse__neurostuff@nimare__2b80aa2.yaml b/data/v2/migration/click__argparse__neurostuff@nimare__2b80aa2.yaml new file mode 100644 index 0000000..26c3ca9 --- /dev/null +++ b/data/v2/migration/click__argparse__neurostuff@nimare__2b80aa2.yaml @@ -0,0 +1,16 @@ +repo: neurostuff/nimare +commit: 2b80aa28bbcb175823af5b3575d35b61488ecdf0 +source: click +target: argparse +commit_url: https://github.com/neurostuff/nimare/commit/2b80aa28 +domain: Utility +files: +- path: "nimare/cli.py" + code_changes: + - lines: ["1:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [click] + target_apis: [argparse] diff --git a/data/v2/migration/click__argparse__nodepy@nodepy__715142c.yaml b/data/v2/migration/click__argparse__nodepy@nodepy__715142c.yaml new file mode 100644 index 0000000..248fe57 --- /dev/null +++ b/data/v2/migration/click__argparse__nodepy@nodepy__715142c.yaml @@ -0,0 +1,79 @@ +repo: nodepy/nodepy +commit: 715142ce26bf8ced33b9fb07fd951ab650f9c236 +source: click +target: argparse +commit_url: https://github.com/nodepy/nodepy/commit/715142ce +domain: Utility +files: +- path: "nodepy.py" + code_changes: + - lines: ["44:33"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [click] + target_apis: [argparse] + - lines: ["497:"] + cardinality: one-to-zero + source_program_elements: [decorator] + target_program_elements: [] + properties: [] + source_apis: [command] + target_apis: [] + - lines: ["498:499"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [argument] + target_apis: [add_argument] + - lines: ["499-500:500-502", "503-504:505-506"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [option] + target_apis: [add_argument] + - lines: ["501-502:509-510", "507:503-504"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [option] + target_apis: [add_argument] + - lines: ["505-506:507-508"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [option] + target_apis: [add_argument] + - lines: [":498"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ArgumentParser] + - lines: [":511"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [parse_args] + - lines: [":517"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [attribute] + properties: [] + source_apis: [] + target_apis: [arguments] + - lines: [":523", ":523", ":523"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [attribute] + properties: [] + source_apis: [] + target_apis: [exec_] diff --git a/data/v2/migration/click__argparse__titusz@onixcheck__f17d186.yaml b/data/v2/migration/click__argparse__titusz@onixcheck__f17d186.yaml new file mode 100644 index 0000000..7bebac2 --- /dev/null +++ b/data/v2/migration/click__argparse__titusz@onixcheck__f17d186.yaml @@ -0,0 +1,88 @@ +repo: titusz/onixcheck +commit: f17d1861f0fd83d951149066b55fdf1010bb7701 +source: click +target: argparse +commit_url: https://github.com/titusz/onixcheck/commit/f17d1861 +domain: Utility +files: +- path: "src/onixcheck/__main__.py" + code_changes: + - lines: ["16:"] + cardinality: one-to-zero + source_program_elements: [decorator] + target_program_elements: [] + properties: [] + source_apis: [command] + target_apis: [] + - lines: ["17:27"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [argument] + target_apis: [add_argument] + - lines: ["18:30"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [option] + target_apis: [add_argument] + - lines: ["19:31", "20:32", "21:33"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [option] + target_apis: [add_argument] + - lines: ["22:"] + cardinality: one-to-zero + source_program_elements: [decorator] + target_program_elements: [] + properties: [] + source_apis: [version_option] + target_apis: [] + - lines: ["5:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [click] + target_apis: [argparse.ArgumentParser, argparse.FileType] + - lines: [":20-24"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [ArgumentParser] + - lines: [":36"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [set_defaults] +- path: "tests/test_onixcheck.py" + code_changes: + - lines: ["17:", "25:", "33:", "40:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [CliRunner] + target_apis: [] + - lines: ["18:", "26:", "34:", "41:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [invoke] + target_apis: [] + - lines: ["3:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [click.testing.CliRunner] + target_apis: [] diff --git a/data/v2/migration/cloud-sptheme__sphinx-rtd-theme__danielyule@hearthbreaker__d018edf.yaml b/data/v2/migration/cloud-sptheme__sphinx-rtd-theme__danielyule@hearthbreaker__d018edf.yaml new file mode 100644 index 0000000..60bda39 --- /dev/null +++ b/data/v2/migration/cloud-sptheme__sphinx-rtd-theme__danielyule@hearthbreaker__d018edf.yaml @@ -0,0 +1,23 @@ +repo: danielyule/hearthbreaker +commit: d018edff306bf88c8be56d2c8252a44b374f9293 +source: cloud-sptheme +target: sphinx-rtd-theme +commit_url: https://github.com/danielyule/hearthbreaker/commit/d018edff +domain: Documentation +files: +- path: "docs/conf.py" + code_changes: + - lines: ["121:121"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [get_theme_dir] + target_apis: [get_html_theme_path] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [cloud_sptheme] + target_apis: [sphinx_rtd_theme] diff --git a/data/v2/migration/configparser__configobj__ctlearn-project@ctlearn__2375af8.yaml b/data/v2/migration/configparser__configobj__ctlearn-project@ctlearn__2375af8.yaml new file mode 100644 index 0000000..842e7c1 --- /dev/null +++ b/data/v2/migration/configparser__configobj__ctlearn-project@ctlearn__2375af8.yaml @@ -0,0 +1,23 @@ +repo: ctlearn-project/ctlearn +commit: 2375af87fa36b7c93c5a3be5cab81784d4a2f64e +source: configparser +target: configobj +commit_url: https://github.com/ctlearn-project/ctlearn/commit/2375af87 +domain: Filesystem +files: +- path: "ctalearn/scripts/run_model.py" + code_changes: + - lines: ["2:2-3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [configparser] + target_apis: [configobj.ConfigObj, configobj.validate.Validator] + - lines: ["499-500:437-438"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [ConfigParser, read] + target_apis: [ConfigObj, ConfigObj] diff --git a/data/v2/migration/configparser__configobj__dbcli@mycli__b7a0b0f.yaml b/data/v2/migration/configparser__configobj__dbcli@mycli__b7a0b0f.yaml new file mode 100644 index 0000000..c5863f0 --- /dev/null +++ b/data/v2/migration/configparser__configobj__dbcli@mycli__b7a0b0f.yaml @@ -0,0 +1,16 @@ +repo: dbcli/mycli +commit: b7a0b0f7d05cc90c8e5b20c2203562fdffbd6add +source: configparser +target: configobj +commit_url: https://github.com/dbcli/mycli/commit/b7a0b0f7 +domain: Filesystem +files: +- path: "mycli/config.py" + code_changes: + - lines: ["6:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [configparser.ConfigParser] + target_apis: [configobj.ConfigObj] diff --git a/data/v2/migration/csv__unicodecsv__ckan@ckanext-datapackager__a6a3fb3.yaml b/data/v2/migration/csv__unicodecsv__ckan@ckanext-datapackager__a6a3fb3.yaml new file mode 100644 index 0000000..b36772f --- /dev/null +++ b/data/v2/migration/csv__unicodecsv__ckan@ckanext-datapackager__a6a3fb3.yaml @@ -0,0 +1,37 @@ +repo: ckan/ckanext-datapackager +commit: a6a3fb3aaa48790365430740686de2019ff0076a +source: csv +target: unicodecsv +commit_url: https://github.com/ckan/ckanext-datapackager/commit/a6a3fb3a +domain: Filesystem +files: +- path: "ckanext/datapackager/lib/helpers.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [csv] + target_apis: [unicodecsv] + - lines: ["73:73"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Sniffer] + target_apis: [Sniffer] + - lines: ["75:75"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [reader] + target_apis: [reader] + - lines: ["79:79"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [] + source_apis: [Error] + target_apis: [Error] diff --git a/data/v2/migration/csv__unicodecsv__codesy@codesy__b5824f4.yaml b/data/v2/migration/csv__unicodecsv__codesy@codesy__b5824f4.yaml new file mode 100644 index 0000000..b027fff --- /dev/null +++ b/data/v2/migration/csv__unicodecsv__codesy@codesy__b5824f4.yaml @@ -0,0 +1,23 @@ +repo: codesy/codesy +commit: b5824f4f99b62978952b489d10d558e681c69497 +source: csv +target: unicodecsv +commit_url: https://github.com/codesy/codesy/commit/b5824f4f +domain: Filesystem +files: +- path: "codesy/base/admin.py" + code_changes: + - lines: ["19:20"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [writer] + target_apis: [writer] + - lines: ["1:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [csv] + target_apis: [unicodecsv] diff --git a/data/v2/migration/csv__unicodecsv__heroku@salesforce-bulk__2f787fa.yaml b/data/v2/migration/csv__unicodecsv__heroku@salesforce-bulk__2f787fa.yaml new file mode 100644 index 0000000..1d8b980 --- /dev/null +++ b/data/v2/migration/csv__unicodecsv__heroku@salesforce-bulk__2f787fa.yaml @@ -0,0 +1,16 @@ +repo: heroku/salesforce-bulk +commit: 2f787fa0535957c3f7f864f3108bd1c2bc8a1271 +source: csv +target: unicodecsv +commit_url: https://github.com/heroku/salesforce-bulk/commit/2f787fa0 +domain: Filesystem +files: +- path: "salesforce_bulk/csv_adapter.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [csv] + target_apis: [unicodecsv] diff --git a/data/v2/migration/csv__unicodecsv__mlsecproject@combine__efe20ac.yaml b/data/v2/migration/csv__unicodecsv__mlsecproject@combine__efe20ac.yaml new file mode 100644 index 0000000..7a6c1bf --- /dev/null +++ b/data/v2/migration/csv__unicodecsv__mlsecproject@combine__efe20ac.yaml @@ -0,0 +1,23 @@ +repo: mlsecproject/combine +commit: efe20ac0e2cb0717b35ee60ca60ff146c3ddb01a +source: csv +target: unicodecsv +commit_url: https://github.com/mlsecproject/combine/commit/efe20ac0 +domain: Filesystem +files: +- path: "baler.py" + code_changes: + - lines: ["100:100", "67:67", "78:78", "89:89"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [writer] + target_apis: [writer] + - lines: ["2:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [csv] + target_apis: [unicodecsv] diff --git a/data/v2/migration/csv__unicodecsv__praekelt@molo__567b66f.yaml b/data/v2/migration/csv__unicodecsv__praekelt@molo__567b66f.yaml new file mode 100644 index 0000000..9eb22f2 --- /dev/null +++ b/data/v2/migration/csv__unicodecsv__praekelt@molo__567b66f.yaml @@ -0,0 +1,23 @@ +repo: praekelt/molo +commit: 567b66f9b129587e9807fc9f6d96d49e1da4a19f +source: csv +target: unicodecsv +commit_url: https://github.com/praekelt/molo/commit/567b66f9 +domain: Filesystem +files: +- path: "molo/profiles/admin.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [csv] + target_apis: [unicode] + - lines: ["37:37"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [writer] + target_apis: [writer] diff --git a/data/v2/migration/csv__unicodecsv__radremedy@radremedy__8fa9b7f.yaml b/data/v2/migration/csv__unicodecsv__radremedy@radremedy__8fa9b7f.yaml new file mode 100644 index 0000000..09b5daf --- /dev/null +++ b/data/v2/migration/csv__unicodecsv__radremedy@radremedy__8fa9b7f.yaml @@ -0,0 +1,30 @@ +repo: radremedy/radremedy +commit: 8fa9b7fd7ce51c4b478ebb344d3c71ceb54b24bd +source: csv +target: unicodecsv +commit_url: https://github.com/radremedy/radremedy/commit/8fa9b7fd +domain: Filesystem +files: +- path: "remedy/data_importer/data_importer.py" + code_changes: + - lines: ["19:27"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [reader] + target_apis: [reader] + - lines: ["31:45"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [DictReader] + target_apis: [DictReader] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [csv] + target_apis: [unicodecsv] diff --git a/data/v2/migration/csv__unicodecsv__shoopio@shoop__639e3b5.yaml b/data/v2/migration/csv__unicodecsv__shoopio@shoop__639e3b5.yaml new file mode 100644 index 0000000..01a5973 --- /dev/null +++ b/data/v2/migration/csv__unicodecsv__shoopio@shoop__639e3b5.yaml @@ -0,0 +1,23 @@ +repo: shoopio/shoop +commit: 639e3b5ff5a2359583e5bacd0a8c45fd0a6457c6 +source: csv +target: unicodecsv +commit_url: https://github.com/shoopio/shoop/commit/639e3b5f +domain: Filesystem +files: +- path: "shuup/admin/modules/products/mass_actions.py" + code_changes: + - lines: ["44:44"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [writer] + target_apis: [writer] + - lines: ["7:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [csv] + target_apis: [unicodecsv] diff --git a/data/v2/migration/dataproperty__typepy__thombashi@datetimerange__936761f.yaml b/data/v2/migration/dataproperty__typepy__thombashi@datetimerange__936761f.yaml new file mode 100644 index 0000000..af18038 --- /dev/null +++ b/data/v2/migration/dataproperty__typepy__thombashi@datetimerange__936761f.yaml @@ -0,0 +1,23 @@ +repo: thombashi/datetimerange +commit: 936761f779c4f7dc8c2d4c03c47b6e7b6e978a89 +source: dataproperty +target: typepy +commit_url: https://github.com/thombashi/datetimerange/commit/936761f7 +domain: Utilities +files: +- path: "datetimerange/__init__.py" + code_changes: + - lines: ["11:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [dataproperty] + target_apis: [typepy] + - lines: ["457-458:465-466", "484-485:498-499"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [DataProperty] + target_apis: [DateTime, convert] diff --git a/data/v2/migration/dataproperty__typepy__thombashi@pingparsing__45fac3c.yaml b/data/v2/migration/dataproperty__typepy__thombashi@pingparsing__45fac3c.yaml new file mode 100644 index 0000000..9821957 --- /dev/null +++ b/data/v2/migration/dataproperty__typepy__thombashi@pingparsing__45fac3c.yaml @@ -0,0 +1,67 @@ +repo: thombashi/pingparsing +commit: 45fac3cb38661f80fc8bd129ce633cfd15423835 +source: dataproperty +target: typepy +commit_url: https://github.com/thombashi/pingparsing/commit/45fac3cb +domain: Utilities +files: +- path: "pingparsing/_pingparsing.py" + code_changes: + - lines: ["10:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [dataproperty] + target_apis: [typepy] + - lines: ["134:135", "186: 187", "233: 234"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [is_empty_string] + target_apis: [is_null_string] + - lines: ["156:157"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [is_empty_sequence] + target_apis: [is_empty_sequence] +- path: "pingparsing/_pingtransmitter.py" + code_changes: + - lines: ["100:101"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [is_empty_string] + target_apis: [is_null_string] + - lines: ["110:112", "122: 125", "144: 148", "154: 159"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IntegerType] + target_apis: [Integer] + - lines: ["110:112", "122: 125", "144: 148", "154: 159"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [try_convert] + target_apis: [convert] + - lines: ["11:11-12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [dataproperty] + target_apis: [typepy, typepy.type.Integer] + - lines: ["86:87"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [is_not_empty_string] + target_apis: [is_not_null_string] diff --git a/data/v2/migration/dataproperty__typepy__thombashi@sqlitebiter__26c8e74.yaml b/data/v2/migration/dataproperty__typepy__thombashi@sqlitebiter__26c8e74.yaml new file mode 100644 index 0000000..d1b095b --- /dev/null +++ b/data/v2/migration/dataproperty__typepy__thombashi@sqlitebiter__26c8e74.yaml @@ -0,0 +1,30 @@ +repo: thombashi/sqlitebiter +commit: 26c8e7467fb764d6abca03d6830f7679cbfc3ea1 +source: dataproperty +target: typepy +commit_url: https://github.com/thombashi/sqlitebiter/commit/26c8e746 +domain: Utilities +files: +- path: "sqlitebiter/sqlitebiter.py" + code_changes: + - lines: ["136:136", "227: 227"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [is_empty_sequence] + target_apis: [is_empty_sequence] + - lines: ["13:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [dataproperty] + target_apis: [typepy] + - lines: ["239: 239", "46:46"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [is_not_empty_string] + target_apis: [is_not_null_string] diff --git a/data/v2/migration/dill__cloudpickle__blaze@distributed__6dc1f3f.yaml b/data/v2/migration/dill__cloudpickle__blaze@distributed__6dc1f3f.yaml new file mode 100644 index 0000000..16ee0f6 --- /dev/null +++ b/data/v2/migration/dill__cloudpickle__blaze@distributed__6dc1f3f.yaml @@ -0,0 +1,16 @@ +repo: blaze/distributed +commit: 6dc1f3f202fbef0e530b7e89c300e4f4d59dbc30 +source: dill +target: cloudpickle +commit_url: https://github.com/blaze/distributed/commit/6dc1f3f2 +domain: Serialization&Filesystem +files: +- path: "distributed/core.py" + code_changes: + - lines: ["10-11:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [dill.loads, dill.dumps, dill] + target_apis: [pickle] diff --git a/data/v2/migration/dill__cloudpickle__rapid-design-of-systems-laboratory@beluga__078e3e5.yaml b/data/v2/migration/dill__cloudpickle__rapid-design-of-systems-laboratory@beluga__078e3e5.yaml new file mode 100644 index 0000000..042ec77 --- /dev/null +++ b/data/v2/migration/dill__cloudpickle__rapid-design-of-systems-laboratory@beluga__078e3e5.yaml @@ -0,0 +1,39 @@ +repo: rapid-design-of-systems-laboratory/beluga +commit: 078e3e56fe5b86d9c188aaf249a72296bd6fa753 +source: dill +target: cloudpickle +commit_url: https://github.com/rapid-design-of-systems-laboratory/beluga/commit/078e3e56 +domain: Serialization&Filesystem +files: +- path: "beluga/beluga.py" + code_changes: + - lines: ["141-142:141"] + cardinality: many-to-one + source_program_elements: [attribute, function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [settings, dump] + target_apis: [dump] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [dill] + target_apis: [cloudpickle] +- path: "beluga/visualization/datasources.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [dill] + target_apis: [cloudpickle] + - lines: ["54:54"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [load] + target_apis: [load] diff --git a/data/v2/migration/django-rest-swagger__drf-yasg__bcgov@theorgbook__728f86e.yaml b/data/v2/migration/django-rest-swagger__drf-yasg__bcgov@theorgbook__728f86e.yaml new file mode 100644 index 0000000..cfbc9ed --- /dev/null +++ b/data/v2/migration/django-rest-swagger__drf-yasg__bcgov@theorgbook__728f86e.yaml @@ -0,0 +1,16 @@ +repo: bcgov/theorgbook +commit: 728f86e941dfb6bdbee27628d28425757af5f22d +source: django-rest-swagger +target: drf-yasg +commit_url: https://github.com/bcgov/theorgbook/commit/728f86e9 +domain: Utilities +files: +- path: "tob-api/api_v2/swagger.py" + code_changes: + - lines: ["6:7-8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [rest_framework_swagger.renderers] + target_apis: [drf_yasg.views.get_schema_view, drf_yasg.openapi] diff --git a/data/v2/migration/django-rest-swagger__drf-yasg__opengisch@qfieldcloud__4377d67.yaml b/data/v2/migration/django-rest-swagger__drf-yasg__opengisch@qfieldcloud__4377d67.yaml new file mode 100644 index 0000000..bff77ab --- /dev/null +++ b/data/v2/migration/django-rest-swagger__drf-yasg__opengisch@qfieldcloud__4377d67.yaml @@ -0,0 +1,16 @@ +repo: opengisch/qfieldcloud +commit: 4377d67a99ed8b6680276cbf4585cbac18439b37 +source: django-rest-swagger +target: drf-yasg +commit_url: https://github.com/opengisch/qfieldcloud/commit/4377d67a +domain: Utilities +files: +- path: "web-app/qfieldcloud/urls.py" + code_changes: + - lines: ["18:20-21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [rest_framework_swagger.views.get_swagger_view] + target_apis: [drf_yasg.views.get_schema_view, drf_yasg.openapi] diff --git a/data/v2/migration/django__utils__rq@django-rq__310ac1d.yaml b/data/v2/migration/django__utils__rq@django-rq__310ac1d.yaml new file mode 100644 index 0000000..0552a87 --- /dev/null +++ b/data/v2/migration/django__utils__rq@django-rq__310ac1d.yaml @@ -0,0 +1,43 @@ +repo: rq/django-rq +commit: 310ac1d9934796988ef454d83a34b8e08bc608ce +source: django +target: utils +commit_url: https://github.com/rq/django-rq/commit/310ac1d9 +domain: Web Framework +files: +- path: "django_rq/decorators.py" + code_changes: + - lines: ["4:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [six] + target_apis: [] +- path: "django_rq/jobs.py" + code_changes: + - lines: ["5:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [six] + target_apis: [] +- path: "django_rq/queues.py" + code_changes: + - lines: ["11:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [six] + target_apis: [] +- path: "django_rq/workers.py" + code_changes: + - lines: ["5:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [six] + target_apis: [] diff --git a/data/v2/migration/docopt__argparse__aio-libs@aioftp__ba6ef08.yaml b/data/v2/migration/docopt__argparse__aio-libs@aioftp__ba6ef08.yaml new file mode 100644 index 0000000..481b68f --- /dev/null +++ b/data/v2/migration/docopt__argparse__aio-libs@aioftp__ba6ef08.yaml @@ -0,0 +1,23 @@ +repo: aio-libs/aioftp +commit: ba6ef08fb7ebb9d5db4034e65622f4d80288fa6a +source: docopt +target: argparse +commit_url: https://github.com/aio-libs/aioftp/commit/ba6ef08f +domain: Utility +files: +- path: "aioftp/__main__.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt] + target_apis: [argparse] + - lines: ["19:19-29"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [docopt] + target_apis: [ArgumentParser, add_argument, parse_args] diff --git a/data/v2/migration/docopt__argparse__deepspace2@styleframe__ffc8d76.yaml b/data/v2/migration/docopt__argparse__deepspace2@styleframe__ffc8d76.yaml new file mode 100644 index 0000000..e7ebe59 --- /dev/null +++ b/data/v2/migration/docopt__argparse__deepspace2@styleframe__ffc8d76.yaml @@ -0,0 +1,16 @@ +repo: deepspace2/styleframe +commit: ffc8d7615fb37996ad7824a0e0501351a8f66b14 +source: docopt +target: argparse +commit_url: https://github.com/deepspace2/styleframe/commit/ffc8d761 +domain: Utility +files: +- path: "StyleFrame/commandline.py" + code_changes: + - lines: ["11:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt] + target_apis: [argparse] diff --git a/data/v2/migration/docopt__argparse__mete0r@pyhwp__0c5c5e7.yaml b/data/v2/migration/docopt__argparse__mete0r@pyhwp__0c5c5e7.yaml new file mode 100644 index 0000000..a935fff --- /dev/null +++ b/data/v2/migration/docopt__argparse__mete0r@pyhwp__0c5c5e7.yaml @@ -0,0 +1,87 @@ +repo: mete0r/pyhwp +commit: 0c5c5e7898e5c82ad5543ad4f990cbc69439619a +source: docopt +target: argparse +commit_url: https://github.com/mete0r/pyhwp/commit/0c5c5e78 +domain: Utility +files: +- path: "pyhwp/hwp5/hwp5html.py" + code_changes: + - lines: ["138:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt.docopt] + target_apis: [argparse.ArgumentParser] + - lines: ["148-149:127-128,160-198"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [docopt] + target_apis: [ArgumentParser, add_argument, parse_args, add_mutually_exclusive_group] +- path: "pyhwp/hwp5/hwp5odt.py" + code_changes: + - lines: ["347:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt.docopt] + target_apis: [argparse.ArgumentParser] + - lines: ["358-359:332-333,373-427"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [docopt] + target_apis: [ArgumentParser, add_argument, parse_args, add_mutually_exclusive_group] +- path: "pyhwp/hwp5/hwp5txt.py" + code_changes: + - lines: ["45:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt.docopt] + target_apis: [argparse.ArgumentParser] + - lines: ["90-91:70-71,92-119"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [docopt] + target_apis: [ArgumentParser, add_argument, parse_args] +- path: "pyhwp/hwp5/hwp5view.py" + code_changes: + - lines: ["48:37"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt.docopt] + target_apis: [argparse.ArgumentParser] + - lines: ["69-70:67-68,78-103"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [docopt] + target_apis: [ArgumentParser, add_argument, parse_args] +- path: "pyhwp/hwp5/proc/__init__.py" + code_changes: + - lines: ["179:99,125-136"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [docopt] + target_apis: [ArgumentParser, add_argument, parse_args] + - lines: ["40:35"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt.docopt] + target_apis: [argparse.ArgumentParser] diff --git a/data/v2/migration/docopt__click__michaeljoseph@changes__d9a8fae.yaml b/data/v2/migration/docopt__click__michaeljoseph@changes__d9a8fae.yaml new file mode 100644 index 0000000..93ee064 --- /dev/null +++ b/data/v2/migration/docopt__click__michaeljoseph@changes__d9a8fae.yaml @@ -0,0 +1,62 @@ +repo: michaeljoseph/changes +commit: d9a8faec7953abfcbf3ffd9b12d6a4be6b71444f +source: docopt +target: click +commit_url: https://github.com/michaeljoseph/changes/commit/d9a8faec +domain: Utility +files: +- path: "changes/changelog.py" + code_changes: + - lines: [":11"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [make_pass_decorator] + - lines: [":4"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [click] + - lines: [":54"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [command] + - lines: [":55"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [pass_changes] +- path: "changes/cli.py" + code_changes: + - lines: ["50:50"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [docopt.docopt] + target_apis: [click] + - lines: ["66:64-73"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [decorator, decorator, decorator, decorator] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [docopt] + target_apis: [group, argument, option, pass_context] +- path: "tests/test_changelog.py" + code_changes: + - lines: [":1"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [click.testing.CliRunner] diff --git a/data/v2/migration/ed25519__pynacl__romanz@trezor-agent__e1bbdb4.yaml b/data/v2/migration/ed25519__pynacl__romanz@trezor-agent__e1bbdb4.yaml new file mode 100644 index 0000000..643e329 --- /dev/null +++ b/data/v2/migration/ed25519__pynacl__romanz@trezor-agent__e1bbdb4.yaml @@ -0,0 +1,67 @@ +repo: romanz/trezor-agent +commit: e1bbdb4bccb9c81a34123cc89fbb6ef2750ab33b +source: ed25519 +target: pynacl +commit_url: https://github.com/romanz/trezor-agent/commit/e1bbdb4b +domain: Crypto +files: +- path: "libagent/formats.py" + code_changes: + - lines: ["104:106"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [VerifyingKey] + target_apis: [VerifyKey] + - lines: ["164:166"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [VerifyingKey] + target_apis: [VerifyKey] + - lines: ["165:167"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [to_bytes] + target_apis: [encode] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ed25519] + target_apis: [nacl.signing] + - lines: ["91:91-92"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [VerifyingKey] + target_apis: [VerifyKey] + - lines: ["92:93"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [verify] + target_apis: [verify] +- path: "libagent/gpg/decode.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ed25519] + target_apis: [nacl.signing] + - lines: ["70:70"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [VerifyingKey] + target_apis: [VerifyKey] diff --git a/data/v2/migration/enum__aenum__princetonuniversity@psyneulink__5253a55.yaml b/data/v2/migration/enum__aenum__princetonuniversity@psyneulink__5253a55.yaml new file mode 100644 index 0000000..b439a29 --- /dev/null +++ b/data/v2/migration/enum__aenum__princetonuniversity@psyneulink__5253a55.yaml @@ -0,0 +1,39 @@ +repo: princetonuniversity/psyneulink +commit: 5253a55c46d529b69397fc1d54d3f8e7262c337b +source: enum +target: aenum +commit_url: https://github.com/princetonuniversity/psyneulink/commit/5253a55c +domain: Deep Learning +files: +- path: "psyneulink/globals/context.py" + code_changes: + - lines: ["122:122", "267:267"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [IntEnum] + target_apis: [IntFlag] + - lines: ["98:95"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [enum.IntEnum] + target_apis: [aenum] +- path: "psyneulink/globals/log.py" + code_changes: + - lines: ["387:383"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [enum.IntEnum] + target_apis: [aenum] + - lines: ["404:404", "939:939"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [IntEnum] + target_apis: [IntFlag] diff --git a/data/v2/migration/ethereum__ethereum-utils__omisego@plasma-contracts__fc4ac19.yaml b/data/v2/migration/ethereum__ethereum-utils__omisego@plasma-contracts__fc4ac19.yaml new file mode 100644 index 0000000..f598f3a --- /dev/null +++ b/data/v2/migration/ethereum__ethereum-utils__omisego@plasma-contracts__fc4ac19.yaml @@ -0,0 +1,212 @@ +repo: omisego/plasma-contracts +commit: fc4ac19f5d4f0d9f26125cd8042908a0bc46f4f0 +source: ethereum +target: ethereum-utils +commit_url: https://github.com/omisego/plasma-contracts/commit/fc4ac19f +domain: Crypto +files: +- path: "plasma_core/constants.py" + code_changes: + - lines: ["1:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [ethereum.utils] + target_apis: [] +- path: "plasma_core/utils/merkle/fixed_merkle.py" + code_changes: + - lines: ["1:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.utils.sha3] + target_apis: [eth_utils.keccak] +- path: "plasma_core/utils/signatures.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.utils] + target_apis: [eth_utils] +- path: "plasma_core/utils/utils.py" + code_changes: + - lines: ["1:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [ethereum.utils] + target_apis: [] + - lines: [":1"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [eth_utils.decode_hex] +- path: "tests/conftest.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.utils] + target_apis: [eth_utils] +- path: "tests/contracts/priority_queue/test_priority_queue.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/rlp/test_plasma_core.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_challenge_in_flight_exit_input_spent.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_challenge_in_flight_exit_not_canonical.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_challenge_in_flight_exit_output_spent.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_challenge_standard_exit.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_deposit.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_fee_exit.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_init.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_piggyback_in_flight_exit.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_process_exits.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_respond_to_non_canonical_challenge.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_start_in_flight_exit.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_start_standard_exit.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_submit_block.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/contracts/root_chain/test_tokens.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.tools.tester.TransactionFailed] + target_apis: [eth_tester.exceptions.TransactionFailed] +- path: "tests/utils/test_fixed_merkle.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ethereum.utils.sha3] + target_apis: [eth_utils.keccak] diff --git a/data/v2/migration/eventlet__gevent__c00w@bithopper__6612526.yaml b/data/v2/migration/eventlet__gevent__c00w@bithopper__6612526.yaml new file mode 100644 index 0000000..201aee8 --- /dev/null +++ b/data/v2/migration/eventlet__gevent__c00w@bithopper__6612526.yaml @@ -0,0 +1,69 @@ +repo: c00w/bithopper +commit: 66125263ad3224e85cfe38682fe586f72747492b +source: eventlet +target: gevent +commit_url: https://github.com/c00w/bithopper/commit/66125263 +domain: Utility +files: +- path: "getwork_store.py" + code_changes: + - lines: ["19:18"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [spawn_n] + target_apis: [spawn] + - lines: ["37:36"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [sleep] + target_apis: [sleep] + - lines: ["6-8:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet, eventlet.green.threading, eventlet.green.time, eventlet.green.socket] + target_apis: [gevent] +- path: "lp_callback.py" + code_changes: + - lines: ["8-9:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet.event, eventlet.green.threading, eventlet.green.socket] + target_apis: [gevent.event] +- path: "speed.py" + code_changes: + - lines: ["29:29"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [spawn_n] + target_apis: [spawn] + - lines: ["47:47"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [sleep] + target_apis: [sleep] + - lines: ["59:60"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [monkey_patch] + target_apis: [patch_all] + - lines: ["6-7:6,59"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet, eventlet.green.threading, eventlet.green.time, eventlet.green.socket] + target_apis: [gevent, gevent.monkey] diff --git a/data/v2/migration/eventlet__gevent__noisyboiler@wampy__f87f7be.yaml b/data/v2/migration/eventlet__gevent__noisyboiler@wampy__f87f7be.yaml new file mode 100644 index 0000000..cfac647 --- /dev/null +++ b/data/v2/migration/eventlet__gevent__noisyboiler@wampy__f87f7be.yaml @@ -0,0 +1,136 @@ +repo: noisyboiler/wampy +commit: f87f7bee3363567132240caac62c8a3f8148a8fe +source: eventlet +target: gevent +commit_url: https://github.com/noisyboiler/wampy/commit/f87f7bee +domain: Utility +files: +- path: "test/helpers.py" + code_changes: + - lines: ["13:13"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Timeout] + target_apis: [Timeout] + - lines: ["19:19"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [sleep] + target_apis: [sleep] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet] + target_apis: [gevent] +- path: "wampy/__init__.py" + code_changes: + - lines: ["25:25"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [monkey_patch] + target_apis: [patch_all] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet] + target_apis: [gevent.monkey] +- path: "wampy/session.py" + code_changes: + - lines: ["118:119"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [Timeout] + target_apis: [Empty] + - lines: ["171:167-168", "178:175"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [spawn] + target_apis: [spawn] + - lines: ["68:69"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Queue] + target_apis: [Queue] + - lines: ["8:8-9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet] + target_apis: [gevent, gevent.queue] +- path: "wampy/testing/helpers.py" + code_changes: + - lines: ["13:13", "22:22", "31:31", "40:40"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Timeout] + target_apis: [Timeout] + - lines: ["18:18", "27:27", "33:33", "42:42"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [sleep] + target_apis: [sleep] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet] + target_apis: [gevent.monkey] +- path: "wampy/transports/websocket/connection.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet] + target_apis: [gevent.monkey] + - lines: ["153:153"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Timeout] + target_apis: [Timeout] + - lines: ["155:155"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [] + source_apis: [Timeout] + target_apis: [Timeout] + - lines: ["211:211"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [sleep] + target_apis: [sleep] + - lines: ["72:72"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [] + source_apis: [GreenletExit] + target_apis: [GreenletExit] diff --git a/data/v2/migration/eventlet__gevent__phuks-co@throat__9a28960.yaml b/data/v2/migration/eventlet__gevent__phuks-co@throat__9a28960.yaml new file mode 100644 index 0000000..dd28a0d --- /dev/null +++ b/data/v2/migration/eventlet__gevent__phuks-co@throat__9a28960.yaml @@ -0,0 +1,23 @@ +repo: phuks-co/throat +commit: 9a2896095779bfc60d544d52c5c28c0187f31949 +source: eventlet +target: gevent +commit_url: https://github.com/phuks-co/throat/commit/9a289609 +domain: Utility +files: +- path: "throat.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet] + target_apis: [gevent.monkey] + - lines: ["4:4"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [monkey_patch] + target_apis: [patch_all] diff --git a/data/v2/migration/eventlet__gevent__stefal@rtkbase__a4c347a.yaml b/data/v2/migration/eventlet__gevent__stefal@rtkbase__a4c347a.yaml new file mode 100644 index 0000000..e12ba31 --- /dev/null +++ b/data/v2/migration/eventlet__gevent__stefal@rtkbase__a4c347a.yaml @@ -0,0 +1,23 @@ +repo: stefal/rtkbase +commit: a4c347a2ede5fba1d0e787193b7dc4079ab4fd6f +source: eventlet +target: gevent +commit_url: https://github.com/stefal/rtkbase/commit/a4c347a2 +domain: Networking +files: +- path: "web_app/server.py" + code_changes: + - lines: ["28:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [eventlet] + target_apis: [gevent.monkey] + - lines: ["29:27"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [monkey_patch] + target_apis: [patch_all] diff --git a/data/v2/migration/fabric3__invoke__skoczen@will__437f8be.yaml b/data/v2/migration/fabric3__invoke__skoczen@will__437f8be.yaml new file mode 100644 index 0000000..ce55a3c --- /dev/null +++ b/data/v2/migration/fabric3__invoke__skoczen@will__437f8be.yaml @@ -0,0 +1,44 @@ +repo: skoczen/will +commit: 437f8be397b864dc83c67af8942467907ccf1c21 +source: fabric3 +target: invoke +commit_url: https://github.com/skoczen/will/commit/437f8be3 +domain: Utility +files: +- path: "fabfile.py" + code_changes: + - lines: ["101:101", "108:109", "115:116", "121:122", "122:123", "123:124", "124:125", "42:42", "43:43", "47:47", "61:62", "62:63", "65:66", "67:68", "68:69", "71:72", "91:92", "96:96", "97:97", "98:98"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [local] + target_apis: [run] + - lines: ["106:107", "113:114", "120:121"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [lcd] + target_apis: [cd] + - lines: ["4:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: ["fabric.api.*"] + target_apis: [invoke.task] + - lines: ["92-93:93"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [settings, local] + target_apis: [run] + - lines: [":104", ":128", ":50"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [task] diff --git a/data/v2/migration/fabric3__paramiko__mirantis@openstack-lbaas__d7440d4.yaml b/data/v2/migration/fabric3__paramiko__mirantis@openstack-lbaas__d7440d4.yaml new file mode 100644 index 0000000..9b2accd --- /dev/null +++ b/data/v2/migration/fabric3__paramiko__mirantis@openstack-lbaas__d7440d4.yaml @@ -0,0 +1,79 @@ +repo: mirantis/openstack-lbaas +commit: d7440d4693629c15fc6ce6cc09d6bcda62c8b08a +source: fabric3 +target: paramiko +commit_url: https://github.com/mirantis/openstack-lbaas/commit/d7440d46 +domain: HTTP Clients +files: +- path: "balancer/drivers/haproxy/RemoteControl.py" + code_changes: + - lines: ["101:104,107-109", "111-112:121-123", "51-52:45-48"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, element name change, output transformation] + source_apis: [run] + target_apis: [connect, exec_command] + - lines: ["102:111-112", "115:128-129", "33:36-37", "55:52"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [sudo] + target_apis: [exec_command] + - lines: ["108:118", "119:133", "168:184", "75:74", "79:79", "83:84", "98:101"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [disconnect_all] + target_apis: [close] + - lines: ["161-164:176-180"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument transformation, element name change, output transformation] + source_apis: [sudo] + target_apis: [connect, exec_command] + - lines: ["23:23-26"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, element name change] + source_apis: [get] + target_apis: [connect, open_sftp, get] + - lines: ["25:27-28"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [disconnect_all] + target_apis: [close, close] + - lines: ["29-30:32-35"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, element name change] + source_apis: [put] + target_apis: [connect, open_sftp, put] + - lines: ["3-4:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [fabric.api.env, fabric.api.sudo, fabric.api.get, fabric.api.put, fabric.api.run, fabric.network.disconnect_all] + target_apis: [paramiko] + - lines: ["74:72-73", "78:77-78", "82:82-83", "97:98-100"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [sudo] + target_apis: [connect, exec_command] + - lines: [":57"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [close] diff --git a/data/v2/migration/flask-restful__flask-restplus__kizniche@mycodo__047263b.yaml b/data/v2/migration/flask-restful__flask-restplus__kizniche@mycodo__047263b.yaml new file mode 100644 index 0000000..b396656 --- /dev/null +++ b/data/v2/migration/flask-restful__flask-restplus__kizniche@mycodo__047263b.yaml @@ -0,0 +1,16 @@ +repo: kizniche/mycodo +commit: 047263beb9e4301c30eef0f44d8d93c722b31f20 +source: flask-restful +target: flask-restplus +commit_url: https://github.com/kizniche/mycodo/commit/047263be +domain: Development framework/extension +files: +- path: "mycodo/mycodo_flask/api.py" + code_changes: + - lines: ["5:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restful.Resource] + target_apis: [flask_restplus.Resource] diff --git a/data/v2/migration/flask-restful__flask-restplus__testdrivenio@flask-react-aws__d4119a0.yaml b/data/v2/migration/flask-restful__flask-restplus__testdrivenio@flask-react-aws__d4119a0.yaml new file mode 100644 index 0000000..7ab56c4 --- /dev/null +++ b/data/v2/migration/flask-restful__flask-restplus__testdrivenio@flask-react-aws__d4119a0.yaml @@ -0,0 +1,32 @@ +repo: testdrivenio/flask-react-aws +commit: d4119a0f609b151df99b2250e419c168e688a0c6 +source: flask-restful +target: flask-restplus +commit_url: https://github.com/testdrivenio/flask-react-aws/commit/d4119a0f +domain: Development framework/extension +files: +- path: "services/users/project/api/ping.py" + code_changes: + - lines: ["5:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restful.Api, flask_restful.Resource] + target_apis: [flask_restplus.Namespace, flask_restplus.Resource] + - lines: ["7-8:6"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [Api] + target_apis: [Namespace] +- path: "services/users/project/api/users/views.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restful.Api, flask_restful.Resource] + target_apis: [flask_restplus.Resource, flask_restplus.fields, flask_restplus.Namespace] diff --git a/data/v2/migration/flask-restful__flask-restplus__ziirish@burp-ui__8ef3b62.yaml b/data/v2/migration/flask-restful__flask-restplus__ziirish@burp-ui__8ef3b62.yaml new file mode 100644 index 0000000..5d4778a --- /dev/null +++ b/data/v2/migration/flask-restful__flask-restplus__ziirish@burp-ui__8ef3b62.yaml @@ -0,0 +1,70 @@ +repo: ziirish/burp-ui +commit: 8ef3b624e52ac6a9420c533b0dd744a36d91c4d3 +source: flask-restful +target: flask-restplus +commit_url: https://github.com/ziirish/burp-ui/commit/8ef3b624 +domain: Development framework/extension +files: +- path: "burpui/api/__init__.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.ext.restful.Api] + target_apis: [flask.ext.restplus.Api] +- path: "burpui/api/client.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.ext.restful.reqparse, flask.ext.restful.Resource] + target_apis: [flask.ext.restplus.reqparse, flask.ext.restplus.Resource] +- path: "burpui/api/clients.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.ext.restful.reqparse, flask.ext.restful.Resource] + target_apis: [flask.ext.restplus.reqparse, flask.ext.restplus.Resource] +- path: "burpui/api/misc.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.ext.restful.reqparse, flask.ext.restful.Resource, flask.ext.restful.abort] + target_apis: [flask.ext.restplus.reqparse, flask.ext.restplus.Resource, flask.ext.restplus.abort] +- path: "burpui/api/restore.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.ext.restful.reqparse, flask.ext.restful.Resource, flask.ext.restful.abort] + target_apis: [flask.ext.restplus.reqparse, flask.ext.restplus.Resource, flask.ext.restplus.abort] +- path: "burpui/api/servers.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.ext.restful.reqparse, flask.ext.restful.Resource] + target_apis: [flask.ext.restplus.reqparse, flask.ext.restplus.Resource] +- path: "burpui/api/settings.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.ext.restful.reqparse, flask.ext.restful.abort, flask.ext.restful.Resource] + target_apis: [flask.ext.restplus.reqparse, flask.ext.restplus.abort, flask.ext.restplus.Resource] diff --git a/data/v2/migration/flask-restplus__flask-restx__apryor6@flaskerize__59d8319.yaml b/data/v2/migration/flask-restplus__flask-restx__apryor6@flaskerize__59d8319.yaml new file mode 100644 index 0000000..634efd4 --- /dev/null +++ b/data/v2/migration/flask-restplus__flask-restx__apryor6@flaskerize__59d8319.yaml @@ -0,0 +1,50 @@ +repo: apryor6/flaskerize +commit: 59d8319355bf95f26949fe13ac3d6be5b5282fb6 +source: flask-restplus +target: flask-restx +commit_url: https://github.com/apryor6/flaskerize/commit/59d83193 +domain: Development framework/extension +files: +- path: "flaskerize/generate.py" + code_changes: + - lines: ["152:152"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "flaskerize/schematics/entity/files/{{ name }}.template/controller.py.template" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restplus.Resource] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace] + target_apis: [flask_restx.Namespace] +- path: "flaskerize/schematics/flask-api/files/{{ name }}.template/app/__init__.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Api] + target_apis: [flask_restx.Api] +- path: "flaskerize/schematics/flask-api/files/{{ name }}.template/app/widget/controller.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] diff --git a/data/v2/migration/flask-restplus__flask-restx__kizniche@mycodo__5169173.yaml b/data/v2/migration/flask-restplus__flask-restx__kizniche@mycodo__5169173.yaml new file mode 100644 index 0000000..17b6da3 --- /dev/null +++ b/data/v2/migration/flask-restplus__flask-restx__kizniche@mycodo__5169173.yaml @@ -0,0 +1,232 @@ +repo: kizniche/mycodo +commit: 516917351d7d8341375db4481ac72910c9510a42 +source: flask-restplus +target: flask-restx +commit_url: https://github.com/kizniche/mycodo/commit/51691735 +domain: Development framework/extension +files: +- path: "mycodo/mycodo_flask/api/__init__.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Api] + target_apis: [flask_restx.Api] +- path: "mycodo/mycodo_flask/api/choices.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/controller.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/daemon.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/input.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/math.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/measurement.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] +- path: "mycodo/mycodo_flask/api/output.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/pid.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/settings.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Resource] + target_apis: [flask_restx.Resource] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.abort] + target_apis: [flask_restx.abort] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] +- path: "mycodo/mycodo_flask/api/sql_schema_fields.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.fields] + target_apis: [flask_restx.fields] diff --git a/data/v2/migration/flask-restplus__flask-restx__orchest@orchest__6b629d0.yaml b/data/v2/migration/flask-restplus__flask-restx__orchest@orchest__6b629d0.yaml new file mode 100644 index 0000000..8e66a06 --- /dev/null +++ b/data/v2/migration/flask-restplus__flask-restx__orchest@orchest__6b629d0.yaml @@ -0,0 +1,106 @@ +repo: orchest/orchest +commit: 6b629d0d0dc7d44113e75a8a3f97a1c68d2ee131 +source: flask-restplus +target: flask-restx +commit_url: https://github.com/orchest/orchest/commit/6b629d0d +domain: Development framework/extension +files: +- path: "services/orchest-api/app/app/apis/__init__.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Api] + target_apis: [flask_restx.Api] +- path: "services/orchest-api/app/app/apis/namespace_environment_builds.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "services/orchest-api/app/app/apis/namespace_environment_images.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "services/orchest-api/app/app/apis/namespace_experiments.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "services/orchest-api/app/app/apis/namespace_pipelines.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "services/orchest-api/app/app/apis/namespace_projects.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "services/orchest-api/app/app/apis/namespace_runs.py" + code_changes: + - lines: ["11:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource, flask_restplus.marshal] + target_apis: [flask_restx.Namespace, flask_restx.Resource, flask_restx.marshal] +- path: "services/orchest-api/app/app/apis/namespace_sessions.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "services/orchest-api/app/app/apis/namespace_validations.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Namespace, flask_restplus.Resource] + target_apis: [flask_restx.Namespace, flask_restx.Resource] +- path: "services/orchest-api/app/app/schema.py" + code_changes: + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Model, flask_restplus.fields] + target_apis: [flask_restx.Model, flask_restx.fields] +- path: "services/orchest-api/app/app/utils.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus.Model, flask_restplus.Namespace] + target_apis: [flask_restx.Model, flask_restx.Namespace] diff --git a/data/v2/migration/flask-restplus__flask-restx__pythondataintegrator@pythondataintegrator__598f275.yaml b/data/v2/migration/flask-restplus__flask-restx__pythondataintegrator@pythondataintegrator__598f275.yaml new file mode 100644 index 0000000..8518186 --- /dev/null +++ b/data/v2/migration/flask-restplus__flask-restx__pythondataintegrator@pythondataintegrator__598f275.yaml @@ -0,0 +1,79 @@ +repo: pythondataintegrator/pythondataintegrator +commit: 598f275f11bdb1796b4ea0f6b3676a45758c08c4 +source: flask-restplus +target: flask-restx +commit_url: https://github.com/pythondataintegrator/pythondataintegrator/commit/598f275f +domain: Development framework/extension +files: +- path: "src/api/IocManager.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] +- path: "src/api/controllers/common/models/CommonModels.py" + code_changes: + - lines: ["3:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] +- path: "src/api/controllers/connection/models/ConnectionModels.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] +- path: "src/api/controllers/integration/models/DataIntegrationModels.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] +- path: "src/api/controllers/job/models/JobModels.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] +- path: "src/api/controllers/operation/models/DataOperationModels.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] +- path: "src/api/controllers/operation/models/JobSchedulerModels.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] +- path: "src/api/infrastructor/api/ResourceBase.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask_restplus] + target_apis: [flask_restx] diff --git a/data/v2/migration/flask__bottle__arosenfeld@immunedb__6141b13.yaml b/data/v2/migration/flask__bottle__arosenfeld@immunedb__6141b13.yaml new file mode 100644 index 0000000..22452cc --- /dev/null +++ b/data/v2/migration/flask__bottle__arosenfeld@immunedb__6141b13.yaml @@ -0,0 +1,30 @@ +repo: arosenfeld/immunedb +commit: 6141b13b2da6843b37e76e40ba536a4ad81124ad +source: flask +target: bottle +commit_url: https://github.com/arosenfeld/immunedb/commit/6141b13b +domain: Web Framework +files: +- path: "sldb/api/rest_service.py" + code_changes: + - lines: ["103:98", "104:99", "115:110", "116:111", "155-157:150", "193:188", "216:211", "51:46", "60:55", "69:64", "77:72", "91:86"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [] + source_apis: [route] + target_apis: [route] + - lines: ["16:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Flask] + target_apis: [] + - lines: ["5-8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.Flask, flask.Response, flask.request, flask.jsonify, flask.json.loads, flask.ext.sqlalchemy, flask.ext.restless] + target_apis: [bottle.route, bottle.run, bottle.template] diff --git a/data/v2/migration/flask__fastapi__bretttolbert@verbecc-svc__24a848d.yaml b/data/v2/migration/flask__fastapi__bretttolbert@verbecc-svc__24a848d.yaml new file mode 100644 index 0000000..3733601 --- /dev/null +++ b/data/v2/migration/flask__fastapi__bretttolbert@verbecc-svc__24a848d.yaml @@ -0,0 +1,16 @@ +repo: bretttolbert/verbecc-svc +commit: 24a848d285ae2c6f3e5b06d1a8ee718cb3f17133 +source: flask +target: fastapi +commit_url: https://github.com/bretttolbert/verbecc-svc/commit/24a848d2 +domain: Development framework/extension +files: +- path: "python/verb_conjugate_fr/__init__.py" + code_changes: + - lines: ["2-3:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.Flask, flask_restful.Api] + target_apis: [fastapi.FastAPI] diff --git a/data/v2/migration/flask__fastapi__virtuber@openvtuber__3abbc43.yaml b/data/v2/migration/flask__fastapi__virtuber@openvtuber__3abbc43.yaml new file mode 100644 index 0000000..92d8c78 --- /dev/null +++ b/data/v2/migration/flask__fastapi__virtuber@openvtuber__3abbc43.yaml @@ -0,0 +1,23 @@ +repo: virtuber/openvtuber +commit: 3abbc431e586218470f47eac10fa6d351c6fe907 +source: flask +target: fastapi +commit_url: https://github.com/virtuber/openvtuber/commit/3abbc431 +domain: Development framework/extension +files: +- path: "openvtuber-server/src/openvtuber/web/web.py" + code_changes: + - lines: ["3:4-5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.Flask, flask.send_from_directory] + target_apis: [fastapi.FastAPI, fastapi.staticfiles.StaticFiles] + - lines: ["6:8"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [Flask] + target_apis: [FastAPI] diff --git a/data/v2/migration/flask__quart__elblogbruno@notionai-mymind__002f5bd.yaml b/data/v2/migration/flask__quart__elblogbruno@notionai-mymind__002f5bd.yaml new file mode 100644 index 0000000..be20a5d --- /dev/null +++ b/data/v2/migration/flask__quart__elblogbruno@notionai-mymind__002f5bd.yaml @@ -0,0 +1,44 @@ +repo: elblogbruno/notionai-mymind +commit: 002f5bde5d5d5f2eaaf6999e41e4619817c10400 +source: flask +target: quart +commit_url: https://github.com/elblogbruno/notionai-mymind/commit/002f5bde +domain: Development framework/extension +files: +- path: "Python Server/app/server.py" + code_changes: + - lines: ["149:110"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [render_template] + target_apis: [render_template] + - lines: ["154:115"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [function call] + properties: [async transformation, element name change] + source_apis: [form] + target_apis: [get_json] + - lines: ["20:14"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Flask] + target_apis: [Quart] + - lines: ["4-6:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.send_from_directory, flask.render_template, flask.Flask, flask.flash, flask.request, flask.redirect, flask.url_for] + target_apis: [quart.Quart, quart.render_template, quart.flash, quart.request, quart.redirect] + - lines: ["80:55"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [async transformation] + source_apis: [files] + target_apis: [files] diff --git a/data/v2/migration/flask__quart__intel@stacks-usecase__22cc3f0.yaml b/data/v2/migration/flask__quart__intel@stacks-usecase__22cc3f0.yaml new file mode 100644 index 0000000..b5e4f35 --- /dev/null +++ b/data/v2/migration/flask__quart__intel@stacks-usecase__22cc3f0.yaml @@ -0,0 +1,51 @@ +repo: intel/stacks-usecase +commit: 22cc3f007a3267ca09a3f53b84fdbfff1f045e88 +source: flask +target: quart +commit_url: https://github.com/intel/stacks-usecase/commit/22cc3f00 +domain: Development framework/extension +files: +- path: "github-issue-classification/python/rest.py" + code_changes: + - lines: ["19:19,21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask] + target_apis: [quart, quart.Quart] + - lines: ["23:27"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Flask] + target_apis: [Quart] + - lines: ["42:49", "43:50", "43:50"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [json] + target_apis: [json] + - lines: ["44:51"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [abort] + target_apis: [abort] + - lines: ["46:53", "51:58"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [jsonify] + target_apis: [jsonify] + - lines: ["51:58"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [make_response] + target_apis: [make_response] diff --git a/data/v2/migration/flask__quart__learningorchestra@learningorchestra__db7f132.yaml b/data/v2/migration/flask__quart__learningorchestra@learningorchestra__db7f132.yaml new file mode 100644 index 0000000..f08371d --- /dev/null +++ b/data/v2/migration/flask__quart__learningorchestra@learningorchestra__db7f132.yaml @@ -0,0 +1,23 @@ +repo: learningorchestra/learningorchestra +commit: db7f1321e13b5386f94670537aa49943f0f0cec9 +source: flask +target: quart +commit_url: https://github.com/learningorchestra/learningorchestra/commit/db7f1321 +domain: Development framework/extension +files: +- path: "microservices/projection_image/server.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.jsonify, flask.request, flask.Flask] + target_apis: [quart.jsonify, quart.request, quart.Quart] + - lines: ["33:33"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Flask] + target_apis: [Quart] diff --git a/data/v2/migration/flask__quart__pgjones@faster_than_flask_article__0a70f2b.yaml b/data/v2/migration/flask__quart__pgjones@faster_than_flask_article__0a70f2b.yaml new file mode 100644 index 0000000..6ffd00d --- /dev/null +++ b/data/v2/migration/flask__quart__pgjones@faster_than_flask_article__0a70f2b.yaml @@ -0,0 +1,48 @@ +repo: pgjones/faster_than_flask_article +commit: 0a70f2bddae90da13da5bce2b77ea56355ecc5d1 +source: flask +target: quart +commit_url: https://github.com/pgjones/faster_than_flask_article/commit/0a70f2bd +domain: Development framework/extension +files: +- path: "app/films.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.abort, flask.Blueprint, flask.current_app, flask.jsonify, flask.request] + target_apis: [quart.abort, quart.Blueprint, quart.current_app, quart.jsonify, quart.request] +- path: "app/reviews.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.abort, flask.Blueprint, flask.current_app, flask.jsonify, flask.request] + target_apis: [quart.abort, quart.Blueprint, quart.current_app, quart.jsonify, quart.request] + - lines: ["8:8"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [get_json] + target_apis: [get_json] +- path: "app/run.py" + code_changes: + - lines: ["35:12"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Flask] + target_apis: [Quart] + - lines: ["4:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.Flask] + target_apis: [quart.Quart] diff --git a/data/v2/migration/flask__quart__synesthesiam@voice2json__7ea7ddb.yaml b/data/v2/migration/flask__quart__synesthesiam@voice2json__7ea7ddb.yaml new file mode 100644 index 0000000..561ea7d --- /dev/null +++ b/data/v2/migration/flask__quart__synesthesiam@voice2json__7ea7ddb.yaml @@ -0,0 +1,51 @@ +repo: synesthesiam/voice2json +commit: 7ea7ddb8400775282e82c1adcb17b013f27ede2b +source: flask +target: quart +commit_url: https://github.com/synesthesiam/voice2json/commit/7ea7ddb8 +domain: Development framework/extension +files: +- path: "web/app.py" + code_changes: + - lines: ["100:102", "105:107", "235:243", "237:245"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [flash] + target_apis: [flash] + - lines: ["166:172", "195:202", "242:250"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [render_template] + target_apis: [render_template] + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.Flask] + target_apis: [quart.Quart] + - lines: ["28:28"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Flask] + target_apis: [Quart] + - lines: ["188:194", "212:219", "59:59"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [async transformation] + source_apis: [form] + target_apis: [form] + - lines: ["95:96"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [async transformation] + source_apis: [files] + target_apis: [files] diff --git a/data/v2/migration/flask__quart__talkpython@async-techniques-python-course__aa607bd.yaml b/data/v2/migration/flask__quart__talkpython@async-techniques-python-course__aa607bd.yaml new file mode 100644 index 0000000..7043d23 --- /dev/null +++ b/data/v2/migration/flask__quart__talkpython@async-techniques-python-course__aa607bd.yaml @@ -0,0 +1,76 @@ +repo: talkpython/async-techniques-python-course +commit: aa607bd32a90d7693e91bd4a1be39baec2d889ba +source: flask +target: quart +commit_url: https://github.com/talkpython/async-techniques-python-course/commit/aa607bd3 +domain: Development framework/extension +files: +- path: "src/10-async-web/acityscape_api/app.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask] + target_apis: [quart] + - lines: ["9:9"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Flask] + target_apis: [Quart] +- path: "src/10-async-web/acityscape_api/views/city_api.py" + code_changes: + - lines: ["11:11", "20: 20"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [abort] + target_apis: [abort] + - lines: ["12:12", "21: 21"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [jsonify] + target_apis: [jsonify] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask] + target_apis: [quart] + - lines: ["4:4"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Blueprint] + target_apis: [Blueprint] +- path: "src/10-async-web/acityscape_api/views/home.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Response] + target_apis: [Response] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask] + target_apis: [quart] + - lines: ["15:15", "3:3"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Blueprint] + target_apis: [Blueprint] diff --git a/data/v2/migration/flask__tornado__krischer@instaseis__13c26a6.yaml b/data/v2/migration/flask__tornado__krischer@instaseis__13c26a6.yaml new file mode 100644 index 0000000..f0928a9 --- /dev/null +++ b/data/v2/migration/flask__tornado__krischer@instaseis__13c26a6.yaml @@ -0,0 +1,16 @@ +repo: krischer/instaseis +commit: 13c26a6d59942807a3bf4607c29ba391511d8af6 +source: flask +target: tornado +commit_url: https://github.com/krischer/instaseis/commit/13c26a6d +domain: Web Framework +files: +- path: "instaseis/server/app.py" + code_changes: + - lines: ["13-15:16-17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask, flask.Flask, flask.make_response, flask.ext.restful.reqparse] + target_apis: [tornado.ioloop, tornado.web] diff --git a/data/v2/migration/flask__uvicorn__virtuber@openvtuber__3abbc43.yaml b/data/v2/migration/flask__uvicorn__virtuber@openvtuber__3abbc43.yaml new file mode 100644 index 0000000..c729cac --- /dev/null +++ b/data/v2/migration/flask__uvicorn__virtuber@openvtuber__3abbc43.yaml @@ -0,0 +1,23 @@ +repo: virtuber/openvtuber +commit: 3abbc431e586218470f47eac10fa6d351c6fe907 +source: flask +target: uvicorn +commit_url: https://github.com/virtuber/openvtuber/commit/3abbc431 +domain: HTTP client/server +files: +- path: "openvtuber-server/src/openvtuber/web/web.py" + code_changes: + - lines: ["17:16"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion] + source_apis: [run] + target_apis: [run] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [flask.Flask, flask.send_from_directory] + target_apis: [fastapi.FastAPI] diff --git a/data/v2/migration/fuzzywuzzy__rapidfuzz__nlpia@nlpia-bot__054d5d2.yaml b/data/v2/migration/fuzzywuzzy__rapidfuzz__nlpia@nlpia-bot__054d5d2.yaml new file mode 100644 index 0000000..fc9be4e --- /dev/null +++ b/data/v2/migration/fuzzywuzzy__rapidfuzz__nlpia@nlpia-bot__054d5d2.yaml @@ -0,0 +1,16 @@ +repo: nlpia/nlpia-bot +commit: 054d5d207cba12d9b5c4765454be1c51424ea4f3 +source: fuzzywuzzy +target: rapidfuzz +commit_url: https://github.com/nlpia/nlpia-bot/commit/054d5d20 +domain: Utilities +files: +- path: "qary/skills/search_fuzzy_bots.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [fuzzywuzzy.process] + target_apis: [rapidfuzz.process] diff --git a/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__45d94dd.yaml b/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__45d94dd.yaml new file mode 100644 index 0000000..090f3ab --- /dev/null +++ b/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__45d94dd.yaml @@ -0,0 +1,23 @@ +repo: talkiq/gcloud-aio +commit: 45d94ddaf969648d5479ff480a92b16d537716f9 +source: gcloud-aio-core +target: aiohttp +commit_url: https://github.com/talkiq/gcloud-aio/commit/45d94dda +domain: HTTP client/server +files: +- path: "bigquery/gcloud/aio/bigquery/bigquery.py" + code_changes: + - lines: ["6:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.aio.core.http.post] + target_apis: [aiohttp] + - lines: ["96-100:91-94"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [post] + target_apis: [ClientSession, post, json] diff --git a/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__963f347.yaml b/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__963f347.yaml new file mode 100644 index 0000000..74e2ca2 --- /dev/null +++ b/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__963f347.yaml @@ -0,0 +1,23 @@ +repo: talkiq/gcloud-aio +commit: 963f34706918757ab7d3cbad70c363b9a48b9d40 +source: gcloud-aio-core +target: aiohttp +commit_url: https://github.com/talkiq/gcloud-aio/commit/963f3470 +domain: HTTP client/server +files: +- path: "datastore/gcloud/aio/datastore/datastore.py" + code_changes: + - lines: ["142:154-157"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [post] + target_apis: [ClientSession, post, json] + - lines: ["5:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.aio.core.http.post] + target_apis: [aiohttp] diff --git a/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__d15540f.yaml b/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__d15540f.yaml new file mode 100644 index 0000000..03a0f98 --- /dev/null +++ b/data/v2/migration/gcloud-aio-core__aiohttp__talkiq@gcloud-aio__d15540f.yaml @@ -0,0 +1,16 @@ +repo: talkiq/gcloud-aio +commit: d15540f94ecdf468b1baf7fd9c025e4f862b3b69 +source: gcloud-aio-core +target: aiohttp +commit_url: https://github.com/talkiq/gcloud-aio/commit/d15540f9 +domain: HTTP client/server +files: +- path: "taskqueue/gcloud/aio/taskqueue/taskqueue.py" + code_changes: + - lines: ["12-17:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.aio.core.aio.call_later, gcloud.aio.core.http.delete, gcloud.aio.core.http.get, gcloud.aio.core.http.HttpError, gcloud.aio.core.http.patch, gcloud.aio.core.http.post] + target_apis: [aiohttp] diff --git a/data/v2/migration/gcloud__google__googlecloudplatform@gcloud-python__e55a1d8.yaml b/data/v2/migration/gcloud__google__googlecloudplatform@gcloud-python__e55a1d8.yaml new file mode 100644 index 0000000..1d87647 --- /dev/null +++ b/data/v2/migration/gcloud__google__googlecloudplatform@gcloud-python__e55a1d8.yaml @@ -0,0 +1,68 @@ +repo: googlecloudplatform/gcloud-python +commit: e55a1d846e7872b90e325c16a5f2d5f2c21df04e +source: gcloud +target: google +commit_url: https://github.com/googlecloudplatform/gcloud-python/commit/e55a1d84 +domain: HTTP Clients +files: +- path: "google/cloud/error_reporting/client.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.logging.client] + target_apis: [google.cloud.logging.client] +- path: "system_tests/logging_.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.logging] + target_apis: [google.cloud.logging] + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.logging.handlers.handlers] + target_apis: [google.cloud.logging.handlers.handlers] +- path: "unit_tests/language/test_document.py" + code_changes: + - lines: ["108:108", "121:121"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.language.document] + target_apis: [google.cloud.language.document] +- path: "unit_tests/logging/test__gax.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.logging._gax] + target_apis: [google.cloud.logging._gax] +- path: "unit_tests/monitoring/test_client.py" + code_changes: + - lines: ["188:188"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.monitoring.client] + target_apis: [google.cloud.monitoring.client] +- path: "unit_tests/pubsub/test__gax.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.pubsub._gax] + target_apis: [google.cloud.pubsub._gax] diff --git a/data/v2/migration/gcloud__google__wal-e@wal-e__be9820b.yaml b/data/v2/migration/gcloud__google__wal-e@wal-e__be9820b.yaml new file mode 100644 index 0000000..b533e20 --- /dev/null +++ b/data/v2/migration/gcloud__google__wal-e@wal-e__be9820b.yaml @@ -0,0 +1,59 @@ +repo: wal-e/wal-e +commit: be9820b90101b1bf845814c56e55ac7d6e6878f9 +source: gcloud +target: google +commit_url: https://github.com/wal-e/wal-e/commit/be9820b9 +domain: HTTP Clients +files: +- path: "tests/gs_integration_help.py" + code_changes: + - lines: ["1-2:1-2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.exceptions, gcloud.storage] + target_apis: [google.cloud.exceptions, google.cloud.storage] +- path: "tests/test_gs_deleter.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.storage] + target_apis: [google.cloud.storage] +- path: "wal_e/blobstore/gs/__init__.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud] + target_apis: [google.cloud] +- path: "wal_e/blobstore/gs/calling_format.py" + code_changes: + - lines: ["1-3:1-4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.storage.connection.Connection, gcloud.credentials.get_credentials, gcloud.storage] + target_apis: [google.cloud.storage._http.Connection, google.cloud.credentials.get_credentials, google.cloud.storage, google.auth.credentials.with_scopes_if_required] + - lines: ["27:28"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [_create_scoped_credentials] + target_apis: [with_scopes_if_required] +- path: "wal_e/blobstore/gs/utils.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gcloud.storage] + target_apis: [google.cloud.storage] diff --git a/data/v2/migration/gevent__eventlet__duanhongyi@dwebsocket__d707ff6.yaml b/data/v2/migration/gevent__eventlet__duanhongyi@dwebsocket__d707ff6.yaml new file mode 100644 index 0000000..25ce5b9 --- /dev/null +++ b/data/v2/migration/gevent__eventlet__duanhongyi@dwebsocket__d707ff6.yaml @@ -0,0 +1,30 @@ +repo: duanhongyi/dwebsocket +commit: d707ff652fd74c3420e83a50fc9b1b9026ed0d98 +source: gevent +target: eventlet +commit_url: https://github.com/duanhongyi/dwebsocket/commit/d707ff65 +domain: Networking +files: +- path: "examples/run_eventlet.py" + code_changes: + - lines: ["14-15:16"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [WSGIServer, serve_forever] + target_apis: [server, listen] + - lines: ["3,5:1,6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gevent.monkey, gevent.pywsgi.WSGIServer] + target_apis: [eventlet.wsgi, eventlet.patcher, eventlet.wsgi, eventlet.patcher] + - lines: ["4:2"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [patch_all] + target_apis: [monkey_patch] diff --git a/data/v2/migration/gevent__eventlet__miguelgrinberg@flask-socketio__883e73e.yaml b/data/v2/migration/gevent__eventlet__miguelgrinberg@flask-socketio__883e73e.yaml new file mode 100644 index 0000000..4185d17 --- /dev/null +++ b/data/v2/migration/gevent__eventlet__miguelgrinberg@flask-socketio__883e73e.yaml @@ -0,0 +1,23 @@ +repo: miguelgrinberg/flask-socketio +commit: 883e73e548869ca6896e6b6cc6f44627c0168499 +source: gevent +target: eventlet +commit_url: https://github.com/miguelgrinberg/flask-socketio/commit/883e73e5 +domain: Utility +files: +- path: "example/app.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gevent.monkey] + target_apis: [eventlet] + - lines: ["2:2"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [patch_all] + target_apis: [monkey_patch] diff --git a/data/v2/migration/gevent__eventlet__projectcalico@felix__657e727.yaml b/data/v2/migration/gevent__eventlet__projectcalico@felix__657e727.yaml new file mode 100644 index 0000000..8a3a1dc --- /dev/null +++ b/data/v2/migration/gevent__eventlet__projectcalico@felix__657e727.yaml @@ -0,0 +1,51 @@ +repo: projectcalico/felix +commit: 657e727468c6c6c7ee13ce93fb88643339572440 +source: gevent +target: eventlet +commit_url: https://github.com/projectcalico/felix/commit/657e7274 +domain: Utility +files: +- path: "calico/election.py" + code_changes: + - lines: ["136:", "155:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [acquire] + target_apis: [] + - lines: ["138:", "157:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [release] + target_apis: [] + - lines: ["142:192", "142:192", "67:108"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [sleep] + target_apis: [sleep] + - lines: ["26-27:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gevent, lock] + target_apis: [eventlet] + - lines: ["56:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Semaphore] + target_apis: [] + - lines: ["58:77"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [spawn] + target_apis: [spawn] diff --git a/data/v2/migration/gevent__eventlet__stefal@rtkbase__cf856c0.yaml b/data/v2/migration/gevent__eventlet__stefal@rtkbase__cf856c0.yaml new file mode 100644 index 0000000..a9b9d86 --- /dev/null +++ b/data/v2/migration/gevent__eventlet__stefal@rtkbase__cf856c0.yaml @@ -0,0 +1,23 @@ +repo: stefal/rtkbase +commit: cf856c0cc9cbb0f810d59c9419f8789a1f9f5a80 +source: gevent +target: eventlet +commit_url: https://github.com/stefal/rtkbase/commit/cf856c0c +domain: Networking +files: +- path: "web_app/server.py" + code_changes: + - lines: ["26:28"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gevent.monkey] + target_apis: [eventlet] + - lines: ["27:29"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [patch_all] + target_apis: [monkey_patch] diff --git a/data/v2/migration/gevent__eventlet__thenetcircle@dino__119d922.yaml b/data/v2/migration/gevent__eventlet__thenetcircle@dino__119d922.yaml new file mode 100644 index 0000000..985ccb7 --- /dev/null +++ b/data/v2/migration/gevent__eventlet__thenetcircle@dino__119d922.yaml @@ -0,0 +1,23 @@ +repo: thenetcircle/dino +commit: 119d922a1c7c86cf6f6b3d8589df461bfe6abb2a +source: gevent +target: eventlet +commit_url: https://github.com/thenetcircle/dino/commit/119d922a +domain: Utility +files: +- path: "app.py" + code_changes: + - lines: ["1:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gevent.monkey] + target_apis: [eventlet] + - lines: ["5:8"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [patch_all] + target_apis: [monkey_patch] diff --git a/data/v2/migration/gunicorn__waitress__openphilology@nidaba__4bab2ee.yaml b/data/v2/migration/gunicorn__waitress__openphilology@nidaba__4bab2ee.yaml new file mode 100644 index 0000000..c6cee6f --- /dev/null +++ b/data/v2/migration/gunicorn__waitress__openphilology@nidaba__4bab2ee.yaml @@ -0,0 +1,16 @@ +repo: openphilology/nidaba +commit: 4bab2ee1ad5b8b2e4413a74a8d96a232b3f548e0 +source: gunicorn +target: waitress +commit_url: https://github.com/openphilology/nidaba/commit/4bab2ee1 +domain: Web Framework +files: +- path: "nidaba/cli.py" + code_changes: + - lines: ["323,326:325"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [gunicorn.app.base, gunicorn.six.iteritems] + target_apis: [waitress.serve] diff --git a/data/v2/migration/guzzle-sphinx-theme__sphinx-rtd-theme__jamesls@semidbm__aa0baba.yaml b/data/v2/migration/guzzle-sphinx-theme__sphinx-rtd-theme__jamesls@semidbm__aa0baba.yaml new file mode 100644 index 0000000..adce6cb --- /dev/null +++ b/data/v2/migration/guzzle-sphinx-theme__sphinx-rtd-theme__jamesls@semidbm__aa0baba.yaml @@ -0,0 +1,23 @@ +repo: jamesls/semidbm +commit: aa0babacc67027d1367c4bab112985203c984fab +source: guzzle-sphinx-theme +target: sphinx-rtd-theme +commit_url: https://github.com/jamesls/semidbm/commit/aa0babac +domain: Documentation +files: +- path: "docs/conf.py" + code_changes: + - lines: ["91:95"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [guzzle_sphinx_theme] + target_apis: [sphinx_rtd_theme] + - lines: ["96:102"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [html_theme_path] + target_apis: [get_html_theme_path] diff --git a/data/v2/migration/html5lib__bleach__posativ@isso__f1a4478.yaml b/data/v2/migration/html5lib__bleach__posativ@isso__f1a4478.yaml new file mode 100644 index 0000000..b6514b0 --- /dev/null +++ b/data/v2/migration/html5lib__bleach__posativ@isso__f1a4478.yaml @@ -0,0 +1,16 @@ +repo: posativ/isso +commit: f1a4478272395c5a4c110c7e564cfb444c4ec63f +source: html5lib +target: bleach +commit_url: https://github.com/posativ/isso/commit/f1a44782 +domain: HTML +files: +- path: "isso/utils/html.py" + code_changes: + - lines: ["12-14:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [html5lib, html5lib.sanitizer.HTMLSanitizer, html5lib.serializer.HTMLSerializer] + target_apis: [bleach] diff --git a/data/v2/migration/html5lib__bleach__pycon@pycon__3dba963.yaml b/data/v2/migration/html5lib__bleach__pycon@pycon__3dba963.yaml new file mode 100644 index 0000000..5c0dd21 --- /dev/null +++ b/data/v2/migration/html5lib__bleach__pycon@pycon__3dba963.yaml @@ -0,0 +1,23 @@ +repo: pycon/pycon +commit: 3dba9637623143551d388391a8d818e368304f6b +source: html5lib +target: bleach +commit_url: https://github.com/pycon/pycon/commit/3dba9637 +domain: HTML +files: +- path: "symposion/markdown_parser.py" + code_changes: + - lines: ["14-16:10"] + cardinality: many-to-one + source_program_elements: [function call, attribute, function call, attribute, function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change, output transformation] + source_apis: [HTMLParser, HTMLSanitizer, parseFragment, childNodes, toxml] + target_apis: [clean] + - lines: ["2:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [html5lib.html5parser, html5lib.sanitizer] + target_apis: [bleach] diff --git a/data/v2/migration/httplib2__requests__ankitects@anki__f6245cd.yaml b/data/v2/migration/httplib2__requests__ankitects@anki__f6245cd.yaml new file mode 100644 index 0000000..da40fc0 --- /dev/null +++ b/data/v2/migration/httplib2__requests__ankitects@anki__f6245cd.yaml @@ -0,0 +1,146 @@ +repo: ankitects/anki +commit: f6245cdfd1e81fecb581a17d3ee314ed0d72698d +source: httplib2 +target: requests +commit_url: https://github.com/ankitects/anki/commit/f6245cdf +domain: HTTP Clients +files: +- path: "anki/sync.py" + code_changes: + - lines: ["12:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] + - lines: ["25:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [RETRIES] + target_apis: [] + - lines: ["29:"] + cardinality: one-to-zero + source_program_elements: [function reference] + target_program_elements: [] + properties: [] + source_apis: [proxy_info_from_environment] + target_apis: [] + - lines: ["30:"] + cardinality: one-to-zero + source_program_elements: [function reference] + target_program_elements: [] + properties: [] + source_apis: [proxy_info_from_url] + target_apis: [] + - lines: ["33:"] + cardinality: one-to-zero + source_program_elements: [function reference] + target_program_elements: [] + properties: [] + source_apis: [from_environment] + target_apis: [] + - lines: ["34:"] + cardinality: one-to-zero + source_program_elements: [function reference] + target_program_elements: [] + properties: [] + source_apis: [from_url] + target_apis: [] + - lines: ["51-54:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Http] + target_apis: [] + - lines: [":463"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [Session] + - lines: [":467"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [post] + - lines: [":470"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [get] +- path: "aqt/sync.py" + code_changes: + - lines: ["429:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [http.client, httplib2] + target_apis: [] + - lines: ["470-471:"] + cardinality: one-to-zero + source_program_elements: [exception] + target_program_elements: [] + properties: [] + source_apis: [ServerNotFoundError] + target_apis: [] + - lines: ["472:"] + cardinality: one-to-zero + source_program_elements: [exception] + target_program_elements: [] + properties: [] + source_apis: [ssl_SSLError] + target_apis: [] + - lines: ["503:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Response] + target_apis: [] + - lines: ["505:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [_decompressContent] + target_apis: [] +- path: "aqt/update.py" + code_changes: + - lines: [":40"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [post] + - lines: [":41"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [raise_for_status] + - lines: [":42"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [json] + - lines: [":6"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [requests] diff --git a/data/v2/migration/httplib2__requests__cpfair@tapiriik__495db93.yaml b/data/v2/migration/httplib2__requests__cpfair@tapiriik__495db93.yaml new file mode 100644 index 0000000..1611bf0 --- /dev/null +++ b/data/v2/migration/httplib2__requests__cpfair@tapiriik__495db93.yaml @@ -0,0 +1,37 @@ +repo: cpfair/tapiriik +commit: 495db93a46dae7004fa9454a962196f0c95b3dc6 +source: httplib2 +target: requests +commit_url: https://github.com/cpfair/tapiriik/commit/495db93a +domain: HTTP Clients +files: +- path: "tapiriik/services/RunKeeper/runkeeper.py" + code_changes: + - lines: ["121-122:124", "161,164:165", "75-76:74", "85-86:89", "92-93:95"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Http, request] + target_apis: [post] + - lines: ["49-54:53"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [Http, request] + target_apis: [post] + - lines: ["55:54"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [status] + target_apis: [status_code] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] diff --git a/data/v2/migration/httplib2__requests__hasgeek@flask-lastuser__6114ad5.yaml b/data/v2/migration/httplib2__requests__hasgeek@flask-lastuser__6114ad5.yaml new file mode 100644 index 0000000..6c0f5a3 --- /dev/null +++ b/data/v2/migration/httplib2__requests__hasgeek@flask-lastuser__6114ad5.yaml @@ -0,0 +1,30 @@ +repo: hasgeek/flask-lastuser +commit: 6114ad5cb27d16048a86f2a1eff85756cf438d34 +source: httplib2 +target: requests +commit_url: https://github.com/hasgeek/flask-lastuser/commit/6114ad5c +domain: HTTP Clients +files: +- path: "flask_lastuser/__init__.py" + code_changes: + - lines: ["17:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] + - lines: ["272:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Http] + target_apis: [] + - lines: ["273-283:304-309"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, attribute] + properties: [argument deletion, argument name change, argument transformation, element name change] + source_apis: [request] + target_apis: [post, json] diff --git a/data/v2/migration/httplib2__requests__hpe-storage@python-3parclient__75b94d3.yaml b/data/v2/migration/httplib2__requests__hpe-storage@python-3parclient__75b94d3.yaml new file mode 100644 index 0000000..505aa68 --- /dev/null +++ b/data/v2/migration/httplib2__requests__hpe-storage@python-3parclient__75b94d3.yaml @@ -0,0 +1,23 @@ +repo: hpe-storage/python-3parclient +commit: 75b94d3ec693de0961affc2fcf2e5d622b3624ca +source: httplib2 +target: requests +commit_url: https://github.com/hpe-storage/python-3parclient/commit/75b94d3e +domain: HTTP Clients +files: +- path: "hp3parclient/http.py" + code_changes: + - lines: ["28:28"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] + - lines: ["28:28"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [request] + target_apis: [request] diff --git a/data/v2/migration/httplib2__requests__jarodl@flask-github__341c769.yaml b/data/v2/migration/httplib2__requests__jarodl@flask-github__341c769.yaml new file mode 100644 index 0000000..6009aae --- /dev/null +++ b/data/v2/migration/httplib2__requests__jarodl@flask-github__341c769.yaml @@ -0,0 +1,30 @@ +repo: jarodl/flask-github +commit: 341c769f2f7889583a0802982ea3373677573de1 +source: httplib2 +target: requests +commit_url: https://github.com/jarodl/flask-github/commit/341c769f +domain: HTTP Clients +files: +- path: "flask_github.py" + code_changes: + - lines: ["14:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2.Http] + target_apis: [requests] + - lines: ["70,73:72"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [Http, request] + target_apis: [request] + - lines: [":40"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [session] diff --git a/data/v2/migration/httplib2__requests__jgorset@facepy__89ba1d4.yaml b/data/v2/migration/httplib2__requests__jgorset@facepy__89ba1d4.yaml new file mode 100644 index 0000000..c6b9541 --- /dev/null +++ b/data/v2/migration/httplib2__requests__jgorset@facepy__89ba1d4.yaml @@ -0,0 +1,16 @@ +repo: jgorset/facepy +commit: 89ba1d43ce59a9a7dbbb54b84fdd33fd116348c4 +source: httplib2 +target: requests +commit_url: https://github.com/jgorset/facepy/commit/89ba1d43 +domain: HTTP Clients +files: +- path: "facepy/graph_api.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] diff --git a/data/v2/migration/httplib2__requests__openshot@openshot-qt__4349753.yaml b/data/v2/migration/httplib2__requests__openshot@openshot-qt__4349753.yaml new file mode 100644 index 0000000..f1477bc --- /dev/null +++ b/data/v2/migration/httplib2__requests__openshot@openshot-qt__4349753.yaml @@ -0,0 +1,46 @@ +repo: openshot/openshot-qt +commit: 4349753e0eecae60c96768def773fa48189f06bf +source: httplib2 +target: requests +commit_url: https://github.com/openshot/openshot-qt/commit/4349753e +domain: HTTP Clients +files: +- path: "src/classes/metrics.py" + code_changes: + - lines: ["155:155-156"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, attribute, attribute] + properties: [argument deletion, element name change, output transformation] + source_apis: [Http, request] + target_apis: [get, status_code, text] + - lines: ["175:175"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, attribute, attribute] + properties: [argument deletion, argument name change, element name change, output transformation] + source_apis: [Http, request] + target_apis: [get, status_code, text] + - lines: ["28:28"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] +- path: "src/classes/version.py" + code_changes: + - lines: ["28:28"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] + - lines: ["51:51-52,55"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, attribute, function call] + properties: [element name change, output transformation] + source_apis: [Http, request] + target_apis: [get, text, json] diff --git a/data/v2/migration/httplib2__requests__openstack@deb-nova__346d941.yaml b/data/v2/migration/httplib2__requests__openstack@deb-nova__346d941.yaml new file mode 100644 index 0000000..12592ec --- /dev/null +++ b/data/v2/migration/httplib2__requests__openstack@deb-nova__346d941.yaml @@ -0,0 +1,30 @@ +repo: openstack/deb-nova +commit: 346d9419a6aeb3c1277fa0ad2c539045be571d30 +source: httplib2 +target: requests +commit_url: https://github.com/openstack/deb-nova/commit/346d9419 +domain: HTTP Clients +files: +- path: "nova/tests/test_wsgi.py" + code_changes: + - lines: ["122:121", "128:127"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [Http, request] + target_apis: [get] + - lines: ["124:123", "130:129"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [status] + target_apis: [status_code] + - lines: ["26:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] diff --git a/data/v2/migration/httplib2__requests__openstack@networking-cisco__075010a.yaml b/data/v2/migration/httplib2__requests__openstack@networking-cisco__075010a.yaml new file mode 100644 index 0000000..94e0b49 --- /dev/null +++ b/data/v2/migration/httplib2__requests__openstack@networking-cisco__075010a.yaml @@ -0,0 +1,30 @@ +repo: openstack/networking-cisco +commit: 075010a677ff2427799634b6fc4f7ed3a90bbda2 +source: httplib2 +target: requests +commit_url: https://github.com/openstack/networking-cisco/commit/075010a6 +domain: HTTP Clients +files: +- path: "neutron/plugins/cisco/n1kv/n1kv_client.py" + code_changes: + - lines: ["21:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] + - lines: ["454-458:436-440"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument addition, argument name change, argument transformation, element name change] + source_apis: [Http, request] + target_apis: [request] + - lines: ["461:443", "462:443"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [status] + target_apis: [status_code] diff --git a/data/v2/migration/httplib2__requests__wikimedia@pywikibot__952665a.yaml b/data/v2/migration/httplib2__requests__wikimedia@pywikibot__952665a.yaml new file mode 100644 index 0000000..85c1582 --- /dev/null +++ b/data/v2/migration/httplib2__requests__wikimedia@pywikibot__952665a.yaml @@ -0,0 +1,30 @@ +repo: wikimedia/pywikibot +commit: 952665acaa9ab2dd1a78cb4a935f3b5743941913 +source: httplib2 +target: requests +commit_url: https://github.com/wikimedia/pywikibot/commit/952665ac +domain: HTTP Clients +files: +- path: "scripts/version.py" + code_changes: + - lines: ["21:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [httplib2] + target_apis: [requests] + - lines: ["39:42"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [CA_CERTS] + target_apis: [where] + - lines: ["41:44", "42:45", "44:47"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [function call] + properties: [element name change] + source_apis: [CA_CERTS] + target_apis: [where] diff --git a/data/v2/migration/hubstorage__scrapinghub__scrapinghub@scrapinghub-entrypoint-scrapy__80b2262.yaml b/data/v2/migration/hubstorage__scrapinghub__scrapinghub@scrapinghub-entrypoint-scrapy__80b2262.yaml new file mode 100644 index 0000000..e2f6bf1 --- /dev/null +++ b/data/v2/migration/hubstorage__scrapinghub__scrapinghub@scrapinghub-entrypoint-scrapy__80b2262.yaml @@ -0,0 +1,16 @@ +repo: scrapinghub/scrapinghub-entrypoint-scrapy +commit: 80b2262a9696bf8fa6b0d5423efc30fdd46fe54f +source: hubstorage +target: scrapinghub +commit_url: https://github.com/scrapinghub/scrapinghub-entrypoint-scrapy/commit/80b2262a +domain: HTTP Clients&Web Framework +files: +- path: "sh_scrapy/hsref.py" + code_changes: + - lines: ["47:47"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [hubstorage.client.HubstorageClient] + target_apis: [scrapinghub.HubstorageClient] diff --git a/data/v2/migration/hubstorage__scrapinghub__scrapy-plugins@scrapy-pagestorage__ce31d53.yaml b/data/v2/migration/hubstorage__scrapinghub__scrapy-plugins@scrapy-pagestorage__ce31d53.yaml new file mode 100644 index 0000000..1b5a634 --- /dev/null +++ b/data/v2/migration/hubstorage__scrapinghub__scrapy-plugins@scrapy-pagestorage__ce31d53.yaml @@ -0,0 +1,23 @@ +repo: scrapy-plugins/scrapy-pagestorage +commit: ce31d531756661752b72dda9a93a8ed1cbcb919b +source: hubstorage +target: scrapinghub +commit_url: https://github.com/scrapy-plugins/scrapy-pagestorage/commit/ce31d531 +domain: HTTP Clients&Web Framework +files: +- path: "scrapy_pagestorage.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [hubstorage.ValueTooLarge] + target_apis: [scrapinghub.hubstorage.ValueTooLarge] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [hubstorage.utils.urlpathjoin] + target_apis: [scrapinghub.hubstorage.utils.urlpathjoin] diff --git a/data/v2/migration/huey__celery__lonelam@onlinejudgeshu__b687d20.yaml b/data/v2/migration/huey__celery__lonelam@onlinejudgeshu__b687d20.yaml new file mode 100644 index 0000000..5d6e33c --- /dev/null +++ b/data/v2/migration/huey__celery__lonelam@onlinejudgeshu__b687d20.yaml @@ -0,0 +1,23 @@ +repo: lonelam/onlinejudgeshu +commit: b687d2067b28f6759a47ddcfe7bb575e8f83f679 +source: huey +target: celery +commit_url: https://github.com/lonelam/onlinejudgeshu/commit/b687d206 +domain: Multitasking/multiprocessing +files: +- path: "submission/tasks.py" + code_changes: + - lines: ["2:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [huey.djhuey.db_task] + target_apis: [huey.djhuey.db_task] + - lines: ["7:7"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [db_task] + target_apis: [shared_task] diff --git a/data/v2/migration/ipaddr__ipaddress__google@capirca__eb768ea.yaml b/data/v2/migration/ipaddr__ipaddress__google@capirca__eb768ea.yaml new file mode 100644 index 0000000..f52e35c --- /dev/null +++ b/data/v2/migration/ipaddr__ipaddress__google@capirca__eb768ea.yaml @@ -0,0 +1,118 @@ +repo: google/capirca +commit: eb768ea7e8cb33ab16786ddeb52b53122c740c65 +source: ipaddr +target: ipaddress +commit_url: https://github.com/google/capirca/commit/eb768ea7 +domain: HTTP Clients +files: +- path: "capirca/lib/cisco.py" + code_changes: + - lines: ["166:468-469"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [IPv4Network] + target_apis: [IPv4Network] + - lines: ["28:28"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["472:475-476"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [IPv6Network] + target_apis: [IPv6Network] +- path: "capirca/lib/ciscoasa.py" + code_changes: + - lines: ["222:224-225", "227:230-231"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [IPv4Network] + target_apis: [IPv4Network] + - lines: ["233:237-238", "238:243-244"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [IPv6Network] + target_apis: [IPv6Network] + - lines: ["30:30"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] +- path: "capirca/lib/nacaddr.py" + code_changes: + - lines: ["101:120"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [IPv6Network] + target_apis: [IPv6Network] + - lines: ["130:168", "93:112"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [supernet] + target_apis: [supernet] + - lines: ["25:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["311:350"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [network] + target_apis: [network_address] + - lines: ["317:356", "324:363"] + cardinality: one-to-one + source_program_elements: [function reference] + target_program_elements: [function reference] + properties: [element name change] + source_apis: [_get_networks_key] + target_apis: [get_mixed_type_key] + - lines: ["378:417"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [NetmaskValueError] + target_apis: [NetmaskValueError] + - lines: ["42:42"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["43:43", "45:45"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [version] + target_apis: [version] + - lines: ["49:49"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [IPv4Network] + target_apis: [IPv4Network] diff --git a/data/v2/migration/ipaddr__ipaddress__reannz@faucet__4a23ef8.yaml b/data/v2/migration/ipaddr__ipaddress__reannz@faucet__4a23ef8.yaml new file mode 100644 index 0000000..0f91c70 --- /dev/null +++ b/data/v2/migration/ipaddr__ipaddress__reannz@faucet__4a23ef8.yaml @@ -0,0 +1,240 @@ +repo: reannz/faucet +commit: 4a23ef8e3074c8749435de2bd8e2a299a6db9d92 +source: ipaddr +target: ipaddress +commit_url: https://github.com/reannz/faucet/commit/4a23ef8e +domain: HTTP Clients +files: +- path: "src/ryu_faucet/org/onfsdn/faucet/faucet.py" + code_changes: + - lines: ["219:219"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["220:220"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPAddress] + target_apis: [ip_address] + - lines: ["25:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] +- path: "src/ryu_faucet/org/onfsdn/faucet/valve_packet.py" + code_changes: + - lines: ["150:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Bytes] + target_apis: [] + - lines: ["165:165"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPv6Network] + target_apis: [ip_interface] + - lines: ["166-168:167"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPv6Address, Bytes] + target_apis: [IPv6Address] + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] +- path: "src/ryu_faucet/org/onfsdn/faucet/valve_route.py" + code_changes: + - lines: ["134:134", "383:388", "395:400"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["429:434", "665:669"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPAddress] + target_apis: [ip_address] + - lines: ["525:529", "526:530", "553:557", "554:558"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [IPv4Address] + target_apis: [IPv4Address] + - lines: ["655:659", "656:660"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [IPv6Address] + target_apis: [IPv6Address] +- path: "src/ryu_faucet/org/onfsdn/faucet/vlan.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["83:83", "96:96"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPNetwork] + target_apis: [ip_interface] + - lines: ["87:87"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [IPv4Address] + target_apis: [IPv4Address] + - lines: ["89:89", "95:95"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPAddress] + target_apis: [ip_address] +- path: "tests/faucet_mininet_test.py" + code_changes: + - lines: ["1603:1603", "1604:1604", "1646:1646", "1647:1647", "1648:1648", "1649:1649", "1691:1691", "1692:1692"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPv4Network] + target_apis: [ip_interface] + - lines: ["1734:1734", "1735:1735", "1850:1850", "1850:1850", "1852:1852", "1989:1989", "1990:1990", "1991:1991", "1992:1992", "2541:2541", "2542:2542", "2543:2543", "2544:2544"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPv6Network] + target_apis: [ip_interface] + - lines: ["1851:1851", "1853:1853"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPv6Address] + target_apis: [ip_address] + - lines: ["46:46"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["884:884", "890:890"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [IPv4Network] + target_apis: [IPv4Network] +- path: "tests/faucet_mininet_test_base.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["210:210", "211:211", "765:753", "766:754", "767:755"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPv4Network] + target_apis: [ip_interface] + - lines: ["212:212", "213:213", "842:830", "843:831", "844:832", "845:833", "846:834"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPv6Network] + target_apis: [ip_interface] + - lines: ["448:448"] + cardinality: one-to-many + source_program_elements: [attribute] + target_program_elements: [attribute, attribute] + properties: [element name change] + source_apis: [broadcast] + target_apis: [network, broadcast_address] + - lines: ["448:448", "720:717", "736:724"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPNetwork] + target_apis: [ip_interface] + - lines: [":739", ":742", ":799", ":802"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [attribute] + properties: [] + source_apis: [] + target_apis: [network] +- path: "tests/test_api.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] +- path: "tests/test_config.py" + code_changes: + - lines: ["184:184"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPNetwork] + target_apis: [ip_interface] + - lines: ["193:193", "197:197", "201:201"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] diff --git a/data/v2/migration/ipaddr__ipaddress__rvojcik@rtapi__2c25c05.yaml b/data/v2/migration/ipaddr__ipaddress__rvojcik@rtapi__2c25c05.yaml new file mode 100644 index 0000000..2e62ed0 --- /dev/null +++ b/data/v2/migration/ipaddr__ipaddress__rvojcik@rtapi__2c25c05.yaml @@ -0,0 +1,23 @@ +repo: rvojcik/rtapi +commit: 2c25c0539c8bc46812a0f1e75da97066af76905b +source: ipaddr +target: ipaddress +commit_url: https://github.com/rvojcik/rtapi/commit/2c25c053 +domain: HTTP Clients +files: +- path: "rtapi/__init__.py" + code_changes: + - lines: ["50:50"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["613:613", "924:924"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [IPv6Address] diff --git a/data/v2/migration/ipaddr__netaddr__openstack@deb-designate__eb16b1e.yaml b/data/v2/migration/ipaddr__netaddr__openstack@deb-designate__eb16b1e.yaml new file mode 100644 index 0000000..6145493 --- /dev/null +++ b/data/v2/migration/ipaddr__netaddr__openstack@deb-designate__eb16b1e.yaml @@ -0,0 +1,30 @@ +repo: openstack/deb-designate +commit: eb16b1e1be8da26193fd3482c8f5eb55eebfcbc2 +source: ipaddr +target: netaddr +commit_url: https://github.com/openstack/deb-designate/commit/eb16b1e1 +domain: HTTP Clients +files: +- path: "designate/schema.py" + code_changes: + - lines: ["104:104", "116:116"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [IPv4Address] + target_apis: [IPAddress] + - lines: ["105:105", "117:117"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [AddressValueError] + target_apis: [AddrFormatError] + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [netaddr] diff --git a/data/v2/migration/ipaddr__netaddr__openstack@fuel-devops__5d0df07.yaml b/data/v2/migration/ipaddr__netaddr__openstack@fuel-devops__5d0df07.yaml new file mode 100644 index 0000000..4a237ff --- /dev/null +++ b/data/v2/migration/ipaddr__netaddr__openstack@fuel-devops__5d0df07.yaml @@ -0,0 +1,141 @@ +repo: openstack/fuel-devops +commit: 5d0df07841dd862165137ed34fcb2a02d9ec2b7b +source: ipaddr +target: netaddr +commit_url: https://github.com/openstack/fuel-devops/commit/5d0df078 +domain: HTTP Clients +files: +- path: "devops/driver/libvirt/libvirt_driver.py" + code_changes: + - lines: ["202-203:202-203", "391:391"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [IPNetwork] + target_apis: [IPNetwork] + - lines: ["24:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [netaddr] +- path: "devops/helpers/network.py" + code_changes: + - lines: [":14"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [netaddr.IPSet] + - lines: [":29"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [IPSet] +- path: "devops/helpers/templates.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [netaddr.IPNetwork] +- path: "devops/models/environment.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [netaddr.IPNetwork] +- path: "devops/models/network.py" + code_changes: + - lines: ["16:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [netaddr.IPNetwork] +- path: "devops/tests/driver/libvirt/test_driver.py" + code_changes: + - lines: ["142:142"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [IPNetwork] + target_apis: [IPNetwork] + - lines: ["18:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [netaddr.IPNetwork] +- path: "devops/tests/driver/libvirt/test_l2_network_device.py" + code_changes: + - lines: ["110:110"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [IPNetwork] + target_apis: [IPNetwork] + - lines: ["16:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [netaddr.IPNetwork] +- path: "devops/tests/driver/libvirt/test_template.py" + code_changes: + - lines: ["18:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [netaddr.IPNetwork] + - lines: ["263:263"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [IPNetwork] + target_apis: [IPNetwork] +- path: "devops/tests/driver/libvirt/test_xml_builder.py" + code_changes: + - lines: ["17:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [netaddr.IPNetwork] +- path: "devops/tests/test_helpers.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [netaddr.IPNetwork] +- path: "devops/tests/test_manager.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [netaddr.IPNetwork] diff --git a/data/v2/migration/ipaddr__netaddr__openstack@wsme__002473c.yaml b/data/v2/migration/ipaddr__netaddr__openstack@wsme__002473c.yaml new file mode 100644 index 0000000..ad6d185 --- /dev/null +++ b/data/v2/migration/ipaddr__netaddr__openstack@wsme__002473c.yaml @@ -0,0 +1,37 @@ +repo: openstack/wsme +commit: 002473c0eaff5bde539e6f6980c387d3817f7063 +source: ipaddr +target: netaddr +commit_url: https://github.com/openstack/wsme/commit/002473c0 +domain: HTTP Clients +files: +- path: "wsme/types.py" + code_changes: + - lines: ["15:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [netaddr] + - lines: ["237:233"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [IPv4Address] + target_apis: [IPAddress] + - lines: ["238:234", "258:254"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [AddressValueError] + target_apis: [AddrFormatError] + - lines: ["257:253"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [IPv6Address] + target_apis: [IPAddress] diff --git a/data/v2/migration/ipaddr__py2-ipaddress__evgeni@bley__dcc4285.yaml b/data/v2/migration/ipaddr__py2-ipaddress__evgeni@bley__dcc4285.yaml new file mode 100644 index 0000000..8bb6419 --- /dev/null +++ b/data/v2/migration/ipaddr__py2-ipaddress__evgeni@bley__dcc4285.yaml @@ -0,0 +1,46 @@ +repo: evgeni/bley +commit: dcc428536d19b0f43604d4052ecaadabadef5e64 +source: ipaddr +target: py2-ipaddress +commit_url: https://github.com/evgeni/bley/commit/dcc42853 +domain: HTTP Clients +files: +- path: "test/test_bley.py" + code_changes: + - lines: ["53:", "55:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [IPNetwork] + target_apis: [] + - lines: ["54:", "56:", "62:", "69:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [iterhosts] + target_apis: [] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] +- path: "test/test_bleyhelpers.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["88:89", "97:98"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [IPAddress] + target_apis: [ip_address] diff --git a/data/v2/migration/ipaddr__py2-ipaddress__jdswinbank@comet__1549e86.yaml b/data/v2/migration/ipaddr__py2-ipaddress__jdswinbank@comet__1549e86.yaml new file mode 100644 index 0000000..0bdcc8f --- /dev/null +++ b/data/v2/migration/ipaddr__py2-ipaddress__jdswinbank@comet__1549e86.yaml @@ -0,0 +1,78 @@ +repo: jdswinbank/comet +commit: 1549e864ad46d3216dea9b4aa2353722de2081c5 +source: ipaddr +target: py2-ipaddress +commit_url: https://github.com/jdswinbank/comet/commit/1549e864 +domain: HTTP Clients +files: +- path: "comet/service/broker.py" + code_changes: + - lines: ["108,115:108,115"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [ipaddress.ip_network] +- path: "comet/service/test/test_broker.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [ipaddress.ip_network] + - lines: ["58:58"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["66:67"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] +- path: "comet/utility/test/test_whitelist.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPNetwork] + target_apis: [ipaddress.ip_network] + - lines: ["25,32:25,32"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] +- path: "comet/utility/whitelist.py" + code_changes: + - lines: ["17:17"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [ip_address] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr.IPAddress] + target_apis: [ipaddress.ip_address] diff --git a/data/v2/migration/ipaddr__py2-ipaddress__magic-wormhole@magic-wormhole__5b23669.yaml b/data/v2/migration/ipaddr__py2-ipaddress__magic-wormhole@magic-wormhole__5b23669.yaml new file mode 100644 index 0000000..6d51df6 --- /dev/null +++ b/data/v2/migration/ipaddr__py2-ipaddress__magic-wormhole@magic-wormhole__5b23669.yaml @@ -0,0 +1,23 @@ +repo: magic-wormhole/magic-wormhole +commit: 5b23669cf3fec46471bbc30620651ffc188c578c +source: ipaddr +target: py2-ipaddress +commit_url: https://github.com/magic-wormhole/magic-wormhole/commit/5b23669c +domain: HTTP Clients +files: +- path: "src/wormhole/tor_manager.py" + code_changes: + - lines: ["115:115"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [ip_address] + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] diff --git a/data/v2/migration/ipaddr__py2-ipaddress__meejah@txtorcon__c8fdba0.yaml b/data/v2/migration/ipaddr__py2-ipaddress__meejah@txtorcon__c8fdba0.yaml new file mode 100644 index 0000000..7cec35d --- /dev/null +++ b/data/v2/migration/ipaddr__py2-ipaddress__meejah@txtorcon__c8fdba0.yaml @@ -0,0 +1,23 @@ +repo: meejah/txtorcon +commit: c8fdba0a3494a41ceb499a3473956faf48034a0c +source: ipaddr +target: py2-ipaddress +commit_url: https://github.com/meejah/txtorcon/commit/c8fdba0a +domain: HTTP Clients +files: +- path: "txtorcon/util.py" + code_changes: + - lines: ["133:127"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [ip_address] + - lines: ["71:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] diff --git a/data/v2/migration/ipaddr__py2-ipaddress__redhat-cip@hardware__a429c38.yaml b/data/v2/migration/ipaddr__py2-ipaddress__redhat-cip@hardware__a429c38.yaml new file mode 100644 index 0000000..bbe3d74 --- /dev/null +++ b/data/v2/migration/ipaddr__py2-ipaddress__redhat-cip@hardware__a429c38.yaml @@ -0,0 +1,30 @@ +repo: redhat-cip/hardware +commit: a429c38cf6e6630f6bc1d1793f1aa2a75b21cc03 +source: ipaddr +target: py2-ipaddress +commit_url: https://github.com/redhat-cip/hardware/commit/a429c38c +domain: HTTP Clients +files: +- path: "hardware/matcher.py" + code_changes: + - lines: ["24:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["88:84"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [IPv4Address] + target_apis: [IPv4Address] + - lines: ["88:84"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [IPv4Network] + target_apis: [IPv4Network] diff --git a/data/v2/migration/ipaddr__py2-ipaddress__rvojcik@rtapi__2c25c05.yaml b/data/v2/migration/ipaddr__py2-ipaddress__rvojcik@rtapi__2c25c05.yaml new file mode 100644 index 0000000..fc4fd57 --- /dev/null +++ b/data/v2/migration/ipaddr__py2-ipaddress__rvojcik@rtapi__2c25c05.yaml @@ -0,0 +1,23 @@ +repo: rvojcik/rtapi +commit: 2c25c0539c8bc46812a0f1e75da97066af76905b +source: ipaddr +target: py2-ipaddress +commit_url: https://github.com/rvojcik/rtapi/commit/2c25c053 +domain: HTTP Clients +files: +- path: "rtapi/__init__.py" + code_changes: + - lines: ["50:50"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["613,924:613,924"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [IPv6Address] diff --git a/data/v2/migration/ipaddr__py2-ipaddress__stackstorm@st2__4022aea.yaml b/data/v2/migration/ipaddr__py2-ipaddress__stackstorm@st2__4022aea.yaml new file mode 100644 index 0000000..393feb5 --- /dev/null +++ b/data/v2/migration/ipaddr__py2-ipaddress__stackstorm@st2__4022aea.yaml @@ -0,0 +1,23 @@ +repo: stackstorm/st2 +commit: 4022aea911726ab98e376860cfba75987e4b3df4 +source: ipaddr +target: py2-ipaddress +commit_url: https://github.com/stackstorm/st2/commit/4022aea9 +domain: HTTP Clients +files: +- path: "st2common/st2common/util/ip_utils.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddr] + target_apis: [ipaddress] + - lines: ["43,59:43,59"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [ip_address] diff --git a/data/v2/migration/ipaddress__netaddr__napalm-automation@napalm__085994a.yaml b/data/v2/migration/ipaddress__netaddr__napalm-automation@napalm__085994a.yaml new file mode 100644 index 0000000..ce8f665 --- /dev/null +++ b/data/v2/migration/ipaddress__netaddr__napalm-automation@napalm__085994a.yaml @@ -0,0 +1,23 @@ +repo: napalm-automation/napalm +commit: 085994a5b33f37e5c29f2081ddf272df4db0319c +source: ipaddress +target: netaddr +commit_url: https://github.com/napalm-automation/napalm/commit/085994a5 +domain: HTTP Clients +files: +- path: "napalm/eos.py" + code_changes: + - lines: ["17:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ipaddress] + target_apis: [netaddr.IPAddress] + - lines: ["655:655"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [ip_address] + target_apis: [IPAddress] diff --git a/data/v2/migration/jsonpath-rw__jsonpath-rw-ext__hxlstandard@libhxl-python__0babff2.yaml b/data/v2/migration/jsonpath-rw__jsonpath-rw-ext__hxlstandard@libhxl-python__0babff2.yaml new file mode 100644 index 0000000..c3d5f85 --- /dev/null +++ b/data/v2/migration/jsonpath-rw__jsonpath-rw-ext__hxlstandard@libhxl-python__0babff2.yaml @@ -0,0 +1,39 @@ +repo: hxlstandard/libhxl-python +commit: 0babff28e04c7da97cae91de78e86295bc42b118 +source: jsonpath-rw +target: jsonpath-rw-ext +commit_url: https://github.com/hxlstandard/libhxl-python/commit/0babff28 +domain: Serialization +files: +- path: "hxl/filters.py" + code_changes: + - lines: ["2100:2100"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [parse] + target_apis: [parse] + - lines: ["41:41"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [jsonpath_rw] + target_apis: [jsonpath_rw_ext] +- path: "hxl/io.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [jsonpath_rw] + target_apis: [jsonpath_rw_ext] + - lines: ["678:678"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [parse] + target_apis: [parse] diff --git a/data/v2/migration/jsontableschema__tableschema__frictionlessdata@tableschema-sql-py__a1385f7.yaml b/data/v2/migration/jsontableschema__tableschema__frictionlessdata@tableschema-sql-py__a1385f7.yaml new file mode 100644 index 0000000..b6b49d4 --- /dev/null +++ b/data/v2/migration/jsontableschema__tableschema__frictionlessdata@tableschema-sql-py__a1385f7.yaml @@ -0,0 +1,16 @@ +repo: frictionlessdata/tableschema-sql-py +commit: a1385f748263c12f7d7c59c7f44eac49943503a4 +source: jsontableschema +target: tableschema +commit_url: https://github.com/frictionlessdata/tableschema-sql-py/commit/a1385f74 +domain: Serialization&Database +files: +- path: "tests/test_storage.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [jsontableschema.Schema] + target_apis: [tableschema.Schema] diff --git a/data/v2/migration/kafka-python__confluent-kafka__biznetgio@restknot__6b10345.yaml b/data/v2/migration/kafka-python__confluent-kafka__biznetgio@restknot__6b10345.yaml new file mode 100644 index 0000000..8999cc9 --- /dev/null +++ b/data/v2/migration/kafka-python__confluent-kafka__biznetgio@restknot__6b10345.yaml @@ -0,0 +1,39 @@ +repo: biznetgio/restknot +commit: 6b10345398630fbb418f84ca7268d481ecad56ee +source: kafka-python +target: confluent-kafka +commit_url: https://github.com/biznetgio/restknot/commit/6b103453 +domain: API wrapper +files: +- path: "agent/dnsagent/clis/start.py" + code_changes: + - lines: ["35:35-36"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument transformation, element name change] + source_apis: [get_kafka_consumer] + target_apis: [Consumer, suscribe] +- path: "api/app/helpers/producer.py" + code_changes: + - lines: ["18-21:20"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [KafkaProducer] + target_apis: [Producer] + - lines: ["31:36"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [send] + target_apis: [produce] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [kafka.KafkaProducer] + target_apis: [confluent_kafka.Producer] diff --git a/data/v2/migration/kafka-python__confluent-kafka__openstack@oslo.messaging__5a842ae.yaml b/data/v2/migration/kafka-python__confluent-kafka__openstack@oslo.messaging__5a842ae.yaml new file mode 100644 index 0000000..5857e52 --- /dev/null +++ b/data/v2/migration/kafka-python__confluent-kafka__openstack@oslo.messaging__5a842ae.yaml @@ -0,0 +1,30 @@ +repo: openstack/oslo.messaging +commit: 5a842ae15582e4eedfb1b2510eaf4a8997701f58 +source: kafka-python +target: confluent-kafka +commit_url: https://github.com/openstack/oslo.messaging/commit/5a842ae1 +domain: API wrapper +files: +- path: "oslo_messaging/_drivers/impl_kafka.py" + code_changes: + - lines: ["220-232:245-246"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument transformation, element name change] + source_apis: [KafkaConsumer] + target_apis: [Consumer, subscribe] + - lines: ["26-28:18-19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [kafka, kafka.client_async.selectors, kafka.errors] + target_apis: [confluent_kafka, confluent_kafka.KafkaException] + - lines: ["288-297:326"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [KafkaProducer] + target_apis: [Producer] diff --git a/data/v2/migration/kafka__confluent-kafka__svenskaspel@locust-plugins__fad53da.yaml b/data/v2/migration/kafka__confluent-kafka__svenskaspel@locust-plugins__fad53da.yaml new file mode 100644 index 0000000..fa02910 --- /dev/null +++ b/data/v2/migration/kafka__confluent-kafka__svenskaspel@locust-plugins__fad53da.yaml @@ -0,0 +1,30 @@ +repo: svenskaspel/locust-plugins +commit: fad53da58706ba4d69633667d62a9e8c84b4fa9e +source: kafka +target: confluent-kafka +commit_url: https://github.com/svenskaspel/locust-plugins/commit/fad53da5 +domain: HTTP Clients +files: +- path: "locust_plugins/kafka.py" + code_changes: + - lines: ["29:44"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [KafkaProducer] + target_apis: [Producer] + - lines: ["33:50"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [send, add_callback, add_callback] + target_apis: [produce] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [kafka.KafkaProducer] + target_apis: [confluent_kafka.Producer] diff --git a/data/v2/migration/leveldb__plyvel__ethereum@py-evm__5c273ff.yaml b/data/v2/migration/leveldb__plyvel__ethereum@py-evm__5c273ff.yaml new file mode 100644 index 0000000..01bddaa --- /dev/null +++ b/data/v2/migration/leveldb__plyvel__ethereum@py-evm__5c273ff.yaml @@ -0,0 +1,44 @@ +repo: ethereum/py-evm +commit: 5c273fff1ed8f4815b7232a442061673c00f1c60 +source: leveldb +target: plyvel +commit_url: https://github.com/ethereum/py-evm/commit/5c273fff +domain: Database +files: +- path: "evm/db/backends/level.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [leveldb] + target_apis: [plyvel] + - lines: ["18:18"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [LevelDB] + target_apis: [DB] + - lines: ["25:27"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Put] + target_apis: [put] + - lines: ["29:30"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [Get] + target_apis: [get] + - lines: ["32:33"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Delete] + target_apis: [delete] diff --git a/data/v2/migration/leveldb__plyvel__gdassori@spruned__4326c64.yaml b/data/v2/migration/leveldb__plyvel__gdassori@spruned__4326c64.yaml new file mode 100644 index 0000000..668ec6b --- /dev/null +++ b/data/v2/migration/leveldb__plyvel__gdassori@spruned__4326c64.yaml @@ -0,0 +1,30 @@ +repo: gdassori/spruned +commit: 4326c6485f8ff6d6e6d2ad38a2d0707e50ec126d +source: leveldb +target: plyvel +commit_url: https://github.com/gdassori/spruned/commit/4326c648 +domain: Database +files: +- path: "spruned/application/database.py" + code_changes: + - lines: ["30:30"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [LevelDB] + target_apis: [DB] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [leveldb] + target_apis: [plyvel] + - lines: ["73:73", "75:77"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [WriteBatch] + target_apis: [write_batch] diff --git a/data/v2/migration/leveldb__plyvel__obsidianforensics@hindsight__973b3d3.yaml b/data/v2/migration/leveldb__plyvel__obsidianforensics@hindsight__973b3d3.yaml new file mode 100644 index 0000000..846a891 --- /dev/null +++ b/data/v2/migration/leveldb__plyvel__obsidianforensics@hindsight__973b3d3.yaml @@ -0,0 +1,39 @@ +repo: obsidianforensics/hindsight +commit: 973b3d3278609c144f11542bd24164243ee165af +source: leveldb +target: plyvel +commit_url: https://github.com/obsidianforensics/hindsight/commit/973b3d32 +domain: Database +files: +- path: "pyhindsight/browsers/chrome.py" + code_changes: + - lines: ["1656:1656"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [leveldb] + target_apis: [plyvel] +- path: "pyhindsight/utils.py" + code_changes: + - lines: ["104:104"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [leveldb] + target_apis: [plyvel] + - lines: ["115:115"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [LevelDB] + target_apis: [DB] + - lines: ["121:121"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [RangeIter] + target_apis: [iterator] diff --git a/data/v2/migration/lockfile__fasteners__kizniche@mycodo__547f6d9.yaml b/data/v2/migration/lockfile__fasteners__kizniche@mycodo__547f6d9.yaml new file mode 100644 index 0000000..edfe324 --- /dev/null +++ b/data/v2/migration/lockfile__fasteners__kizniche@mycodo__547f6d9.yaml @@ -0,0 +1,131 @@ +repo: kizniche/mycodo +commit: 547f6d9f22e569007c1066e36ee5142f5e1b533d +source: lockfile +target: fasteners +commit_url: https://github.com/kizniche/mycodo/commit/547f6d9f +domain: Multitasking/multiprocessing +files: +- path: "mycodo/controller_sensor.py" + code_changes: + - lines: ["31:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lockfile.LockFile] + target_apis: [fasteners] +- path: "mycodo/devices/atlas_scientific_i2c.py" + code_changes: + - lines: ["77:79"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [LockFile] + target_apis: [InterProcessLock] + - lines: ["7:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lockfile.LockFile] + target_apis: [fasteners] + - lines: ["81:83"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion] + source_apis: [acquire] + target_apis: [acquire] +- path: "mycodo/devices/atlas_scientific_uart.py" + code_changes: + - lines: ["51:54"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [LockFile] + target_apis: [InterProcessLock] + - lines: ["55:58"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion] + source_apis: [acquire] + target_apis: [acquire] + - lines: ["5:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lockfile.LockFile] + target_apis: [fasteners] +- path: "mycodo/sensors/k30.py" + code_changes: + - lines: ["101:100"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion] + source_apis: [acquire] + target_apis: [acquire] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lockfile.LockFile] + target_apis: [fasteners] + - lines: ["95:96"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [LockFile] + target_apis: [InterProcessLock] +- path: "mycodo/sensors/mh_z16.py" + code_changes: + - lines: ["155:156"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion] + source_apis: [acquire] + target_apis: [acquire] + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lockfile.LockFile] + target_apis: [fasteners] + - lines: ["51:152"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [LockFile] + target_apis: [InterProcessLock] +- path: "mycodo/sensors/mh_z19.py" + code_changes: + - lines: ["101:102"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion] + source_apis: [acquire] + target_apis: [acquire] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lockfile.LockFile] + target_apis: [fasteners] + - lines: ["95:98"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [LockFile] + target_apis: [InterProcessLock] diff --git a/data/v2/migration/lockfile__fasteners__paratoolsinc@taucmdr__2a2c28a.yaml b/data/v2/migration/lockfile__fasteners__paratoolsinc@taucmdr__2a2c28a.yaml new file mode 100644 index 0000000..57fb785 --- /dev/null +++ b/data/v2/migration/lockfile__fasteners__paratoolsinc@taucmdr__2a2c28a.yaml @@ -0,0 +1,53 @@ +repo: paratoolsinc/taucmdr +commit: 2a2c28aeee469c514196ec5ca68592c9bf354146 +source: lockfile +target: fasteners +commit_url: https://github.com/paratoolsinc/taucmdr/commit/2a2c28ae +domain: Filesystem&Crypto +files: +- path: "packages/tau/cf/software/installation.py" + code_changes: + - lines: ["214:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [acquire] + target_apis: [] + - lines: ["220:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [release] + target_apis: [] + - lines: ["221:"] + cardinality: one-to-zero + source_program_elements: [exception] + target_program_elements: [] + properties: [] + source_apis: [NotLocked] + target_apis: [] + - lines: ["34:34"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lockfile.LockFile, lockfile.NotLocked] + target_apis: [fasteners] +- path: "packages/tau/cf/software/tau_installation.py" + code_changes: + - lines: [":37"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [fasteners] + - lines: [":499"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [decorator] + properties: [] + source_apis: [] + target_apis: [interprocess_locked] diff --git a/data/v2/migration/lockfile__fasteners__samschott@maestral__e4388ee.yaml b/data/v2/migration/lockfile__fasteners__samschott@maestral__e4388ee.yaml new file mode 100644 index 0000000..701ee3c --- /dev/null +++ b/data/v2/migration/lockfile__fasteners__samschott@maestral__e4388ee.yaml @@ -0,0 +1,16 @@ +repo: samschott/maestral +commit: e4388ee1a5ab8699e3a08055fb0d5e6485b9921d +source: lockfile +target: fasteners +commit_url: https://github.com/samschott/maestral/commit/e4388ee1 +domain: Filesystem&Crypto +files: +- path: "maestral/daemon.py" + code_changes: + - lines: ["24:29"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PIDLockFile, AlreadyLocked] + target_apis: [InterProcessLock] diff --git a/data/v2/migration/logbook__loguru__thombashi@sqlitebiter__311c7ce.yaml b/data/v2/migration/logbook__loguru__thombashi@sqlitebiter__311c7ce.yaml new file mode 100644 index 0000000..997d27f --- /dev/null +++ b/data/v2/migration/logbook__loguru__thombashi@sqlitebiter__311c7ce.yaml @@ -0,0 +1,23 @@ +repo: thombashi/sqlitebiter +commit: 311c7ce50a89316d5cab9bb2daef05315175faf2 +source: logbook +target: loguru +commit_url: https://github.com/thombashi/sqlitebiter/commit/311c7ce5 +domain: Logging/tracing +files: +- path: "sqlitebiter/sqlitebiter.py" + code_changes: + - lines: ["15-16:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [logbook, logbook.more] + target_apis: [loguru.logger] + - lines: ["68:64"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [disable] + target_apis: [disable] diff --git a/data/v2/migration/logbook__loguru__thombashi@tcconfig__7ba8676.yaml b/data/v2/migration/logbook__loguru__thombashi@tcconfig__7ba8676.yaml new file mode 100644 index 0000000..3c77214 --- /dev/null +++ b/data/v2/migration/logbook__loguru__thombashi@tcconfig__7ba8676.yaml @@ -0,0 +1,23 @@ +repo: thombashi/tcconfig +commit: 7ba8676b3b9347ef15142bfeba30d611822c154d +source: logbook +target: loguru +commit_url: https://github.com/thombashi/tcconfig/commit/7ba8676b +domain: Logging/tracing +files: +- path: "tcconfig/_logger.py" + code_changes: + - lines: ["29:20"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [enable] + target_apis: [enable] + - lines: ["6:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [logbook] + target_apis: [loguru.logger] diff --git a/data/v2/migration/logger__logging__prtg@pythonminiprobe__2b6a1ae.yaml b/data/v2/migration/logger__logging__prtg@pythonminiprobe__2b6a1ae.yaml new file mode 100644 index 0000000..df53040 --- /dev/null +++ b/data/v2/migration/logger__logging__prtg@pythonminiprobe__2b6a1ae.yaml @@ -0,0 +1,122 @@ +repo: prtg/pythonminiprobe +commit: 2b6a1aeb2a9ee1a722262d34752bbbff44f21951 +source: logger +target: logging +commit_url: https://github.com/prtg/pythonminiprobe/commit/2b6a1aeb +domain: Logging +files: +- path: "sensors/cpuload.py" + code_changes: + - lines: ["27:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [logger.Logger] + target_apis: [logging] + - lines: ["60:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Logger] + target_apis: [] + - lines: ["65-66:61-62"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [log_custom] + target_apis: [error] +- path: "sensors/diskspace.py" + code_changes: + - lines: ["28:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [logger.Logger] + target_apis: [logging] + - lines: ["61:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Logger] + target_apis: [] + - lines: ["66-67:62-63"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [log_custom] + target_apis: [error] +- path: "sensors/memory.py" + code_changes: + - lines: ["27:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [logger.Logger] + target_apis: [logger.Logger] + - lines: ["60:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Logger] + target_apis: [] + - lines: ["65-66:61-62"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [log_custom] + target_apis: [error] +- path: "sensors/ping.py" + code_changes: + - lines: ["143:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Logger] + target_apis: [] + - lines: ["148-149:144-145"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [log_custom] + target_apis: [error] + - lines: ["28:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [logger.Logger] + target_apis: [logger.Logger] +- path: "sensors/snmptraffic.py" + code_changes: + - lines: ["179-181:175-177", "33:29"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [log_custom] + target_apis: [error] + - lines: ["27:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [logger.Logger] + target_apis: [logger.Logger] + - lines: ["29:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Logger] + target_apis: [] diff --git a/data/v2/migration/lxml__defusedxml__haiwen@seafdav__5e1291f.yaml b/data/v2/migration/lxml__defusedxml__haiwen@seafdav__5e1291f.yaml new file mode 100644 index 0000000..c9efcc3 --- /dev/null +++ b/data/v2/migration/lxml__defusedxml__haiwen@seafdav__5e1291f.yaml @@ -0,0 +1,37 @@ +repo: haiwen/seafdav +commit: 5e1291f1cb8ed22e3ef5a78f46b1aa7534105764 +source: lxml +target: defusedxml +commit_url: https://github.com/haiwen/seafdav/commit/5e1291f1 +domain: Utility +files: +- path: "wsgidav/xml_tools.py" + code_changes: + - lines: ["23:24,29"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lxml.etree] + target_apis: [defusedxml.lxml.etree, defusedxml.ElementTree] + - lines: [":32"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [Element] + - lines: [":33"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [SubElement] + - lines: [":34"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function reference] + properties: [] + source_apis: [] + target_apis: [tostring] diff --git a/data/v2/migration/lxml__defusedxml__openvinotoolkit@open_model_zoo__7c2529f.yaml b/data/v2/migration/lxml__defusedxml__openvinotoolkit@open_model_zoo__7c2529f.yaml new file mode 100644 index 0000000..6e659a3 --- /dev/null +++ b/data/v2/migration/lxml__defusedxml__openvinotoolkit@open_model_zoo__7c2529f.yaml @@ -0,0 +1,16 @@ +repo: openvinotoolkit/open_model_zoo +commit: 7c2529f53bf8b8901685df88f898ce57089fe490 +source: lxml +target: defusedxml +commit_url: https://github.com/openvinotoolkit/open_model_zoo/commit/7c2529f5 +domain: Utility +files: +- path: "tools/accuracy_checker/accuracy_checker/utils.py" + code_changes: + - lines: ["38:34"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [etree] + target_apis: [ElementTree] diff --git a/data/v2/migration/lxml__defusedxml__synacktiv@eos__ac9596f.yaml b/data/v2/migration/lxml__defusedxml__synacktiv@eos__ac9596f.yaml new file mode 100644 index 0000000..17fe5da --- /dev/null +++ b/data/v2/migration/lxml__defusedxml__synacktiv@eos__ac9596f.yaml @@ -0,0 +1,30 @@ +repo: synacktiv/eos +commit: ac9596f942aaf733ebafd9eef94617710ac18864 +source: lxml +target: defusedxml +commit_url: https://github.com/synacktiv/eos/commit/ac9596f9 +domain: Utility +files: +- path: "eos/plugins/sources.py" + code_changes: + - lines: ["114-115:114"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [parse, getroot] + target_apis: [parse] + - lines: ["116:115", "117:116"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [findall] + target_apis: [getElementsByTagName] + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [lxml.etree] + target_apis: [defusedxml.minidom] diff --git a/data/v2/migration/m2crypto__cryptography__kevoreilly@capev2__abf58a7.yaml b/data/v2/migration/m2crypto__cryptography__kevoreilly@capev2__abf58a7.yaml new file mode 100644 index 0000000..421ac8c --- /dev/null +++ b/data/v2/migration/m2crypto__cryptography__kevoreilly@capev2__abf58a7.yaml @@ -0,0 +1,44 @@ +repo: kevoreilly/capev2 +commit: abf58a7deb32893febb4151f579d8428ffca3b8e +source: m2crypto +target: cryptography +commit_url: https://github.com/kevoreilly/capev2/commit/abf58a7d +domain: Crypto +files: +- path: "modules/processing/static.py" + code_changes: + - lines: ["47:48-51"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [M2Crypto.m2, M2Crypto.BIO, M2Crypto.X509, M2Crypto.SMIME] + target_apis: [cryptography, cryptography.hazmat.backends.openssl.backend.backend, cryptography.hazmat.backends.openssl.x509, cryptography.hazmat.primitives.hashes] + - lines: ["770:774"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [MemoryBuffer] + target_apis: [_bytes_to_bio] + - lines: ["775:779"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [bio_ptr] + target_apis: [bio] + - lines: ["775:779"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [argument addition, element name change] + source_apis: [pkcs7_read_bio_der] + target_apis: [d2i_PKCS7_bio] + - lines: ["779:783"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [argument addition, element name change] + source_apis: [PKCS7] + target_apis: [PKCS7_get0_signers] diff --git a/data/v2/migration/m2crypto__cryptography__yubico@python-u2flib-server__65c4665.yaml b/data/v2/migration/m2crypto__cryptography__yubico@python-u2flib-server__65c4665.yaml new file mode 100644 index 0000000..d274523 --- /dev/null +++ b/data/v2/migration/m2crypto__cryptography__yubico@python-u2flib-server__65c4665.yaml @@ -0,0 +1,51 @@ +repo: yubico/python-u2flib-server +commit: 65c46657d50fb2d38036b4533806d36997cedac5 +source: m2crypto +target: cryptography +commit_url: https://github.com/yubico/python-u2flib-server/commit/65c46657 +domain: Crypto +files: +- path: "u2flib_server/attestation/resolvers.py" + code_changes: + - lines: ["30:35-39"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [M2Crypto.X509] + target_apis: [cryptography.exceptions.InvalidSignature, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.asymmetric.padding, cryptography.x509.oid.NameOID, cryptography.x509] + - lines: ["65:69"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [load_cert_der_string] + target_apis: [load_pem_x509_certificate] + - lines: ["66:70"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [get_subject] + target_apis: [subject] + - lines: ["66:70", "73:94"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, attribute] + properties: [argument addition, element name change, output transformation] + source_apis: [as_text] + target_apis: [get_attributes_for_oid, value] + - lines: ["73:94"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [get_issuer] + target_apis: [issuer] + - lines: ["74:97"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [get_pubkey] + target_apis: [public_key] diff --git a/data/v2/migration/mechanize__requests__jorgecarleitao@public-contracts__70a229c.yaml b/data/v2/migration/mechanize__requests__jorgecarleitao@public-contracts__70a229c.yaml new file mode 100644 index 0000000..6ba9882 --- /dev/null +++ b/data/v2/migration/mechanize__requests__jorgecarleitao@public-contracts__70a229c.yaml @@ -0,0 +1,51 @@ +repo: jorgecarleitao/public-contracts +commit: 70a229cb5a3be1a56bdfa4f6df8019456276bf3f +source: mechanize +target: requests +commit_url: https://github.com/jorgecarleitao/public-contracts/commit/70a229cb +domain: HTTP Clients +files: +- path: "contracts/crawler.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [mechanize] + target_apis: [mechanize] + - lines: ["152:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Browser] + target_apis: [] + - lines: ["154:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [set_handle_robots] + target_apis: [] + - lines: ["157-159:"] + cardinality: one-to-zero + source_program_elements: [attribute] + target_program_elements: [] + properties: [] + source_apis: [addheaders] + target_apis: [] + - lines: ["163:157"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [open] + target_apis: [get] + - lines: ["164:158"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [read] + target_apis: [text] diff --git a/data/v2/migration/migrate__alembic__kickstandproject@payload__ffeff6a.yaml b/data/v2/migration/migrate__alembic__kickstandproject@payload__ffeff6a.yaml new file mode 100644 index 0000000..481899f --- /dev/null +++ b/data/v2/migration/migrate__alembic__kickstandproject@payload__ffeff6a.yaml @@ -0,0 +1,16 @@ +repo: kickstandproject/payload +commit: ffeff6a308ba1fcdf97b2eb91d0ae5f64787fef2 +source: migrate +target: alembic +commit_url: https://github.com/kickstandproject/payload/commit/ffeff6a3 +domain: Database +files: +- path: "stripe/db/sqlalchemy/migration.py" + code_changes: + - lines: ["20,24,54-56:21-23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [migrate, migrate.versioning.util, migrate.exceptions, migrate.versioning.api, migrate.versioning.repository.Repository] + target_apis: [alembic.command, alembic.config, alembic.migration] diff --git a/data/v2/migration/models__model__hwwang55@gcn-lpa__7a97486.yaml b/data/v2/migration/models__model__hwwang55@gcn-lpa__7a97486.yaml new file mode 100644 index 0000000..e3f9428 --- /dev/null +++ b/data/v2/migration/models__model__hwwang55@gcn-lpa__7a97486.yaml @@ -0,0 +1,16 @@ +repo: hwwang55/gcn-lpa +commit: 7a974861900be4415113d84baf00c49b82b2d8d9 +source: models +target: model +commit_url: https://github.com/hwwang55/gcn-lpa/commit/7a974861 +domain: Database +files: +- path: "src/train.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [models.GCN_LPA] + target_apis: [model.GCN_LPA] diff --git a/data/v2/migration/msgpack__u-msgpack-python__crossbario@autobahn-python__9e00896.yaml b/data/v2/migration/msgpack__u-msgpack-python__crossbario@autobahn-python__9e00896.yaml new file mode 100644 index 0000000..4209648 --- /dev/null +++ b/data/v2/migration/msgpack__u-msgpack-python__crossbario@autobahn-python__9e00896.yaml @@ -0,0 +1,30 @@ +repo: crossbario/autobahn-python +commit: 9e00896d3601b965e58b21eaac233fc9b9509272 +source: msgpack +target: u-msgpack-python +commit_url: https://github.com/crossbario/autobahn-python/commit/9e00896d +domain: Serialization +files: +- path: "autobahn/wamp/serializer.py" + code_changes: + - lines: ["250:251"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [msgpack] + target_apis: [umsgpack] + - lines: ["281:275"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [packb] + target_apis: [packb] + - lines: ["325-329:302", "340-344:312"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [unpackb] + target_apis: [unpackb] diff --git a/data/v2/migration/msgpack__u-msgpack-python__kushalp@serfclient-py__3adbf0f.yaml b/data/v2/migration/msgpack__u-msgpack-python__kushalp@serfclient-py__3adbf0f.yaml new file mode 100644 index 0000000..928a3ef --- /dev/null +++ b/data/v2/migration/msgpack__u-msgpack-python__kushalp@serfclient-py__3adbf0f.yaml @@ -0,0 +1,37 @@ +repo: kushalp/serfclient-py +commit: 3adbf0f1cebe37239a1ca2eda427ee91b4570207 +source: msgpack +target: u-msgpack-python +commit_url: https://github.com/kushalp/serfclient-py/commit/3adbf0f1 +domain: Serialization +files: +- path: "serfclient/connection.py" + code_changes: + - lines: ["1:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [msgpack] + target_apis: [umsgpack] + - lines: ["39:40", "42:43"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] + - lines: ["48:49"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [loads] + target_apis: [loads] + - lines: [":21"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [attribute] + properties: [] + source_apis: [] + target_apis: [compatibility] diff --git a/data/v2/migration/multiprocess__multiprocessing__axelrod-python@axelrod__70f3a35.yaml b/data/v2/migration/multiprocess__multiprocessing__axelrod-python@axelrod__70f3a35.yaml new file mode 100644 index 0000000..2c7797a --- /dev/null +++ b/data/v2/migration/multiprocess__multiprocessing__axelrod-python@axelrod__70f3a35.yaml @@ -0,0 +1,25 @@ +repo: axelrod-python/axelrod +commit: 70f3a3520291812966b68d443dd94289939e0537 +source: multiprocess +target: multiprocessing +commit_url: https://github.com/axelrod-python/axelrod/commit/70f3a352 +domain: Utility +files: +- path: "axelrod/tests/unit/test_tournament.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Queue, cpu_count] + target_apis: [Queue, cpu_count] +- path: "axelrod/tournament.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Process, Queue, cpu_count] + target_apis: [Process, Queue, cpu_count] diff --git a/data/v2/migration/multiprocess__multiprocessing__intelpni@brainiak__e62dc1d.yaml b/data/v2/migration/multiprocess__multiprocessing__intelpni@brainiak__e62dc1d.yaml new file mode 100644 index 0000000..f9c93ae --- /dev/null +++ b/data/v2/migration/multiprocess__multiprocessing__intelpni@brainiak__e62dc1d.yaml @@ -0,0 +1,23 @@ +repo: intelpni/brainiak +commit: e62dc1d02ad1a3f2e7f8ef909b035349cd5552c5 +source: multiprocess +target: multiprocessing +commit_url: https://github.com/intelpni/brainiak/commit/e62dc1d0 +domain: Utility +files: +- path: "brainiak/fcma/voxelselector.py" + code_changes: + - lines: ["31:31"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [multiprocess] + target_apis: [multiprocessing] + - lines: ["436:437"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Pool] + target_apis: [Pool] diff --git a/data/v2/migration/multiprocess__multiprocessing__markovmodel@msmtools__a3a152e.yaml b/data/v2/migration/multiprocess__multiprocessing__markovmodel@msmtools__a3a152e.yaml new file mode 100644 index 0000000..aa9a36f --- /dev/null +++ b/data/v2/migration/multiprocess__multiprocessing__markovmodel@msmtools__a3a152e.yaml @@ -0,0 +1,16 @@ +repo: markovmodel/msmtools +commit: a3a152ea77d571a6087149540350e3826ad92ab0 +source: multiprocess +target: multiprocessing +commit_url: https://github.com/markovmodel/msmtools/commit/a3a152ea +domain: Utility +files: +- path: "msmtools/estimation/sparse/effective_counts.py" + code_changes: + - lines: ["203:202"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Pool, MapResult] + target_apis: [Pool, MapResult] diff --git a/data/v2/migration/multiprocessing__multiprocess__czheo@syntax_sugar_python__1dbc1d4.yaml b/data/v2/migration/multiprocessing__multiprocess__czheo@syntax_sugar_python__1dbc1d4.yaml new file mode 100644 index 0000000..93afaa9 --- /dev/null +++ b/data/v2/migration/multiprocessing__multiprocess__czheo@syntax_sugar_python__1dbc1d4.yaml @@ -0,0 +1,37 @@ +repo: czheo/syntax_sugar_python +commit: 1dbc1d44855acd57f280cca03878681e8dc26b01 +source: multiprocessing +target: multiprocess +commit_url: https://github.com/czheo/syntax_sugar_python/commit/1dbc1d44 +domain: Utility +files: +- path: "syntax_sugar/pipe.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [multiprocessing] + target_apis: [pool] + - lines: ["4:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pool] + target_apis: [pool] + - lines: ["83:88"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [map] + target_apis: [map] + - lines: ["86:91"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Pool] + target_apis: [ThreadPool] diff --git a/data/v2/migration/multiprocessing__multiprocess__jhsmit@colicoords__a082ad5.yaml b/data/v2/migration/multiprocessing__multiprocess__jhsmit@colicoords__a082ad5.yaml new file mode 100644 index 0000000..7d69d9f --- /dev/null +++ b/data/v2/migration/multiprocessing__multiprocess__jhsmit@colicoords__a082ad5.yaml @@ -0,0 +1,37 @@ +repo: jhsmit/colicoords +commit: a082ad56448cf9db47ee5b14d1466d1c362c3cff +source: multiprocessing +target: multiprocess +commit_url: https://github.com/jhsmit/colicoords/commit/a082ad56 +domain: Utility +files: +- path: "colicoords/cell.py" + code_changes: + - lines: ["11:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [multiprocessing] + target_apis: [multiprocess] + - lines: ["1297:1297"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [Pool] + target_apis: [Pool] + - lines: ["1300:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [close] + target_apis: [] + - lines: ["1301:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [join] + target_apis: [] diff --git a/data/v2/migration/napalm-base__napalm__afourmy@e-napalm__1033665.yaml b/data/v2/migration/napalm-base__napalm__afourmy@e-napalm__1033665.yaml new file mode 100644 index 0000000..01c3c5c --- /dev/null +++ b/data/v2/migration/napalm-base__napalm__afourmy@e-napalm__1033665.yaml @@ -0,0 +1,16 @@ +repo: afourmy/e-napalm +commit: 1033665344fa7330a27b31883d6b14efa3f35547 +source: napalm-base +target: napalm +commit_url: https://github.com/afourmy/e-napalm/commit/10336653 +domain: Utility +files: +- path: "models.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [napalm_base.get_network_driver] + target_apis: [napalm.get_network_driver] diff --git a/data/v2/migration/netaddr__ipaddress__ovirt@vdsm__6eef802.yaml b/data/v2/migration/netaddr__ipaddress__ovirt@vdsm__6eef802.yaml new file mode 100644 index 0000000..0975a17 --- /dev/null +++ b/data/v2/migration/netaddr__ipaddress__ovirt@vdsm__6eef802.yaml @@ -0,0 +1,97 @@ +repo: ovirt/vdsm +commit: 6eef802af9194c702b2799d23527e85b152f0ad6 +source: netaddr +target: ipaddress +commit_url: https://github.com/ovirt/vdsm/commit/6eef802a +domain: HTTP Clients +files: +- path: "lib/vdsm/network/ipwrapper.py" + code_changes: + - lines: ["28:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [netaddr.core.AddrFormatError] + target_apis: [] + - lines: ["29:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [netaddr.IPAddress] + target_apis: [ipaddress.ip_address] + - lines: ["308:307", "410:409", "420:419"] + cardinality: one-to-one + source_program_elements: [function reference] + target_program_elements: [function reference] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["30:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [netaddr.IPNetwork] + target_apis: [netaddr.IPNetwork] + - lines: ["311:310", "314:313", "410:409", "419:418"] + cardinality: one-to-one + source_program_elements: [function reference] + target_program_elements: [function reference] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [ip_address] + - lines: ["65:"] + cardinality: one-to-zero + source_program_elements: [exception] + target_program_elements: [] + properties: [] + source_apis: [AddrFormatError] + target_apis: [] +- path: "lib/vdsm/network/netinfo/addresses.py" + code_changes: + - lines: ["25:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [netaddr.IPNetwork] + target_apis: [ipaddress] + - lines: ["45:47"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_interface] + - lines: ["46:48"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, attribute] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [network, ip_interface] +- path: "lib/vdsm/network/sourceroute.py" + code_changes: + - lines: ["24:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [netaddr] + target_apis: [ipaddress] + - lines: ["51:52"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, attribute] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_interface, network] + - lines: ["56:56"] + cardinality: many-to-one + source_program_elements: [function call, attribute] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [IPAddress, value] + target_apis: [ip_address] diff --git a/data/v2/migration/netaddr__py2-ipaddress__jimfunk@django-postgresql-netfields__a5a1118.yaml b/data/v2/migration/netaddr__py2-ipaddress__jimfunk@django-postgresql-netfields__a5a1118.yaml new file mode 100644 index 0000000..0200d62 --- /dev/null +++ b/data/v2/migration/netaddr__py2-ipaddress__jimfunk@django-postgresql-netfields__a5a1118.yaml @@ -0,0 +1,111 @@ +repo: jimfunk/django-postgresql-netfields +commit: a5a11184ffd33a0d12878881f055455b4818d282 +source: netaddr +target: py2-ipaddress +commit_url: https://github.com/jimfunk/django-postgresql-netfields/commit/a5a11184 +domain: HTTP Clients +files: +- path: "netfields/fields.py" + code_changes: + - lines: ["117:111"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [IPAddress, IPNetwork] + target_apis: [ip_interface, ip_network] + - lines: ["93:93"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_interface] + - lines: ["95:95"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, attribute] + properties: [element name change] + source_apis: [IPAddress, IPNetwork] + target_apis: [ip_interface, ip] + - lines: ["96:96"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [AddrFormatError] + target_apis: [ValueError] +- path: "netfields/forms.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [IPNetwork] + target_apis: [ip_interface, ip_network, _IPAddressBase, _BaseNetwork] + - lines: ["42:42"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [_IPAddressBase] + - lines: ["46:46"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_interface] + - lines: ["47:", "69:"] + cardinality: one-to-zero + source_program_elements: [exception] + target_program_elements: [] + properties: [] + source_apis: [AddrFormatError] + target_apis: [] + - lines: ["47:", "69:"] + cardinality: one-to-zero + source_program_elements: [exception] + target_program_elements: [] + properties: [] + source_apis: [TypeError] + target_apis: [] + - lines: ["64:64"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [_BaseNetwork] + - lines: ["68:68"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [ip_network] +- path: "netfields/managers.py" + code_changes: + - lines: ["176:176", "49:49", "83:83"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [_BaseNetwork] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [IPNetwork] + target_apis: [_BaseNetwork] diff --git a/data/v2/migration/netaddr__py2-ipaddress__nitmir@policyd-rate-limit__c024e06.yaml b/data/v2/migration/netaddr__py2-ipaddress__nitmir@policyd-rate-limit__c024e06.yaml new file mode 100644 index 0000000..4d1a778 --- /dev/null +++ b/data/v2/migration/netaddr__py2-ipaddress__nitmir@policyd-rate-limit__c024e06.yaml @@ -0,0 +1,37 @@ +repo: nitmir/policyd-rate-limit +commit: c024e06ab9313b2b4dae1e1962aa9c2a4de4d62e +source: netaddr +target: py2-ipaddress +commit_url: https://github.com/nitmir/policyd-rate-limit/commit/c024e06a +domain: HTTP Clients +files: +- path: "policyd_rate_limit/utils.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [netaddr] + target_apis: [ipaddress] + - lines: ["238:246,248"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [IPAddress] + target_apis: [IPv4Address, IPv6Address] + - lines: ["56:31,33"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [IPNetwork] + target_apis: [IPv4Network, IPv6Network] + - lines: [":247", ":32"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [exception] + properties: [] + source_apis: [] + target_apis: [AddressValueError] diff --git a/data/v2/migration/neutron__neutron-lib__openstack@networking-bagpipe__4bb14fa.yaml b/data/v2/migration/neutron__neutron-lib__openstack@networking-bagpipe__4bb14fa.yaml new file mode 100644 index 0000000..e5d6759 --- /dev/null +++ b/data/v2/migration/neutron__neutron-lib__openstack@networking-bagpipe__4bb14fa.yaml @@ -0,0 +1,16 @@ +repo: openstack/networking-bagpipe +commit: 4bb14fa0be826184e4e9c85793af63a121453613 +source: neutron +target: neutron-lib +commit_url: https://github.com/openstack/networking-bagpipe/commit/4bb14fa0 +domain: Utility +files: +- path: "networking_bagpipe/db/migration/alembic_migrations/env.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.db.model_base] + target_apis: [neutron_lib.db.model_base] diff --git a/data/v2/migration/neutron__neutron-lib__openstack@networking-fortinet__2365dcb.yaml b/data/v2/migration/neutron__neutron-lib__openstack@networking-fortinet__2365dcb.yaml new file mode 100644 index 0000000..2ec13fe --- /dev/null +++ b/data/v2/migration/neutron__neutron-lib__openstack@networking-fortinet__2365dcb.yaml @@ -0,0 +1,25 @@ +repo: openstack/networking-fortinet +commit: 2365dcbdf9a1b5bbd6b3c550cbf3428725156f90 +source: neutron +target: neutron-lib +commit_url: https://github.com/openstack/networking-fortinet/commit/2365dcbd +domain: Utility +files: +- path: "networking_fortinet/ml2/mech_fortinet.py" + code_changes: + - lines: ["23:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron_lib.constants] + target_apis: [neutron_lib.constants] +- path: "networking_fortinet/tests/tempest_plugin/tests/fwaas_client.py" + code_changes: + - lines: ["24:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.plugins.common.constants] + target_apis: [neutron_lib.constants] diff --git a/data/v2/migration/neutron__neutron-lib__openstack@networking-generic-switch__c6f4b71.yaml b/data/v2/migration/neutron__neutron-lib__openstack@networking-generic-switch__c6f4b71.yaml new file mode 100644 index 0000000..c0cdb63 --- /dev/null +++ b/data/v2/migration/neutron__neutron-lib__openstack@networking-generic-switch__c6f4b71.yaml @@ -0,0 +1,23 @@ +repo: openstack/networking-generic-switch +commit: c6f4b71bf3aad44ba8948f4226791a55ba95ce4c +source: neutron +target: neutron-lib +commit_url: https://github.com/openstack/networking-generic-switch/commit/c6f4b71b +domain: Utility +files: +- path: "networking_generic_switch/exceptions.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.plugins.ml2.common.exceptions] + target_apis: [neutron_lib.exceptions] + - lines: ["20:20"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [MechanismDriverError] + target_apis: [NeutronException] diff --git a/data/v2/migration/neutron__neutron-lib__openstack@networking-nec__ff1695d.yaml b/data/v2/migration/neutron__neutron-lib__openstack@networking-nec__ff1695d.yaml new file mode 100644 index 0000000..3067f68 --- /dev/null +++ b/data/v2/migration/neutron__neutron-lib__openstack@networking-nec__ff1695d.yaml @@ -0,0 +1,16 @@ +repo: openstack/networking-nec +commit: ff1695d591d2a78dc668cc02e62d029a1dad75f5 +source: neutron +target: neutron-lib +commit_url: https://github.com/openstack/networking-nec/commit/ff1695d5 +domain: Utility +files: +- path: "networking_nec/nwa/l2/models.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.db.model_base] + target_apis: [neutron_lib.db.model_base] diff --git a/data/v2/migration/neutron__neutron-lib__openstack@networking-odl__a40b9d9.yaml b/data/v2/migration/neutron__neutron-lib__openstack@networking-odl__a40b9d9.yaml new file mode 100644 index 0000000..c4d5505 --- /dev/null +++ b/data/v2/migration/neutron__neutron-lib__openstack@networking-odl__a40b9d9.yaml @@ -0,0 +1,61 @@ +repo: openstack/networking-odl +commit: a40b9d90d28d086b82f110d8e53d42ed13465ad7 +source: neutron +target: neutron-lib +commit_url: https://github.com/openstack/networking-odl/commit/a40b9d90 +domain: Utility +files: +- path: "networking_odl/common/exceptions.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.common.exceptions] + target_apis: [neutron_lib.exceptions] +- path: "networking_odl/l3/l3_odl.py" + code_changes: + - lines: ["22:29"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.common.constants] + target_apis: [neutron_lib.constants] +- path: "networking_odl/l3/l3_odl_v2.py" + code_changes: + - lines: ["19:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.common.constants] + target_apis: [neutron_lib.constants] +- path: "networking_odl/ml2/legacy_port_binding.py" + code_changes: + - lines: ["19:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [py] + target_apis: [neutron_lib.constants] +- path: "networking_odl/ml2/mech_driver.py" + code_changes: + - lines: ["26:32"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.common.exceptions] + target_apis: [neutron_lib.exceptions] +- path: "networking_odl/ml2/ovsdb_topology.py" + code_changes: + - lines: ["24:27"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [neutron.common.constants] + target_apis: [neutron.common.constants] diff --git a/data/v2/migration/node-semver__semantic-version__openstack@solar__8766f11.yaml b/data/v2/migration/node-semver__semantic-version__openstack@solar__8766f11.yaml new file mode 100644 index 0000000..d0220c2 --- /dev/null +++ b/data/v2/migration/node-semver__semantic-version__openstack@solar__8766f11.yaml @@ -0,0 +1,37 @@ +repo: openstack/solar +commit: 8766f11d9618c45f397a989eef67a800da166a21 +source: node-semver +target: semantic-version +commit_url: https://github.com/openstack/solar/commit/8766f11d +domain: HTTP Clients +files: +- path: "solar/core/resource/repository.py" + code_changes: + - lines: ["105:103", "127:124", "84:83"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [parse] + target_apis: [validate] + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [semver] + target_apis: [semantic_version] + - lines: ["302:299", "315-316:309-310"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [compare] + target_apis: [compare] + - lines: ["312:309", "319:318"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [match] + target_apis: [match] diff --git a/data/v2/migration/oauth2__oauthlib__discogs@discogs_client__c56f61a.yaml b/data/v2/migration/oauth2__oauthlib__discogs@discogs_client__c56f61a.yaml new file mode 100644 index 0000000..d605613 --- /dev/null +++ b/data/v2/migration/oauth2__oauthlib__discogs@discogs_client__c56f61a.yaml @@ -0,0 +1,30 @@ +repo: discogs/discogs_client +commit: c56f61aa1d190aa76db71005612a40540277e288 +source: oauth2 +target: oauthlib +commit_url: https://github.com/discogs/discogs_client/commit/c56f61aa +domain: Auth +files: +- path: "discogs_client/fetchers.py" + code_changes: + - lines: ["4:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [oauth2] + target_apis: [oauthlib.oauth1] + - lines: ["52,56,58:53"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [Consumer, Token, Client] + target_apis: [Client] + - lines: ["74:71"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [set_verifier] + target_apis: [verifier] diff --git a/data/v2/migration/openpyxl__xlsxwriter__bcgov@gwells__57d12c4.yaml b/data/v2/migration/openpyxl__xlsxwriter__bcgov@gwells__57d12c4.yaml new file mode 100644 index 0000000..114bed3 --- /dev/null +++ b/data/v2/migration/openpyxl__xlsxwriter__bcgov@gwells__57d12c4.yaml @@ -0,0 +1,23 @@ +repo: bcgov/gwells +commit: 57d12c42941e0afb07ac46fb51f8316d6c5a0cea +source: openpyxl +target: xlsxwriter +commit_url: https://github.com/bcgov/gwells/commit/57d12c42 +domain: File reader/writer +files: +- path: "app/backend/wells/management/commands/export.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [openpyxl.Workbook] + target_apis: [xlsxwriter.Workbook] + - lines: ["53:53"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [create_sheet] + target_apis: [add_worksheet] diff --git a/data/v2/migration/openstackclient__osc-lib__openstack@deb-python-ironic-inspector-client__c25d73e.yaml b/data/v2/migration/openstackclient__osc-lib__openstack@deb-python-ironic-inspector-client__c25d73e.yaml new file mode 100644 index 0000000..462d322 --- /dev/null +++ b/data/v2/migration/openstackclient__osc-lib__openstack@deb-python-ironic-inspector-client__c25d73e.yaml @@ -0,0 +1,25 @@ +repo: openstack/deb-python-ironic-inspector-client +commit: c25d73e554d78022f0b933473c3fe27074f5c951 +source: openstackclient +target: osc-lib +commit_url: https://github.com/openstack/deb-python-ironic-inspector-client/commit/c25d73e5 +domain: HTTP Clients +files: +- path: "ironic_inspector_client/shell.py" + code_changes: + - lines: ["25:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [openstackclient.common.utils] + target_apis: [osc_lib.utils] +- path: "ironic_inspector_client/test/test_shell.py" + code_changes: + - lines: ["17:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [openstackclient.tests.utils] + target_apis: [osc_lib.tests.utils] diff --git a/data/v2/migration/openstackclient__osc-lib__openstack@deb-python-muranoclient__e3a2b68.yaml b/data/v2/migration/openstackclient__osc-lib__openstack@deb-python-muranoclient__e3a2b68.yaml new file mode 100644 index 0000000..79c592e --- /dev/null +++ b/data/v2/migration/openstackclient__osc-lib__openstack@deb-python-muranoclient__e3a2b68.yaml @@ -0,0 +1,43 @@ +repo: openstack/deb-python-muranoclient +commit: e3a2b68f61d898c6a415ded9ba07a5fb6ce946d8 +source: openstackclient +target: osc-lib +commit_url: https://github.com/openstack/deb-python-muranoclient/commit/e3a2b68f +domain: HTTP Clients +files: +- path: "muranoclient/osc/plugin.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [utils] + target_apis: [utils] +- path: "muranoclient/osc/v1/category.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [utils] + target_apis: [utils] +- path: "muranoclient/osc/v1/environment.py" + code_changes: + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [utils] + target_apis: [utils] +- path: "muranoclient/tests/unit/osc/v1/fakes.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [utils] + target_apis: [utils] diff --git a/data/v2/migration/openstackclient__osc-lib__openstack@python-searchlightclient__0bc93d1.yaml b/data/v2/migration/openstackclient__osc-lib__openstack@python-searchlightclient__0bc93d1.yaml new file mode 100644 index 0000000..ac1d1f9 --- /dev/null +++ b/data/v2/migration/openstackclient__osc-lib__openstack@python-searchlightclient__0bc93d1.yaml @@ -0,0 +1,43 @@ +repo: openstack/python-searchlightclient +commit: 0bc93d17f7d9c7251064de6c2616d70fc850c0c8 +source: openstackclient +target: osc-lib +commit_url: https://github.com/openstack/python-searchlightclient/commit/0bc93d17 +domain: HTTP Clients +files: +- path: "searchlightclient/osc/plugin.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [common] + target_apis: [osc_lib] +- path: "searchlightclient/osc/v1/facet.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [common] + target_apis: [osc_lib] +- path: "searchlightclient/osc/v1/resource_type.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [common] + target_apis: [osc_lib] +- path: "searchlightclient/osc/v1/search.py" + code_changes: + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [common] + target_apis: [osc_lib] diff --git a/data/v2/migration/paramiko__fabric__aws@aws-parallelcluster__d49460a.yaml b/data/v2/migration/paramiko__fabric__aws@aws-parallelcluster__d49460a.yaml new file mode 100644 index 0000000..2b59220 --- /dev/null +++ b/data/v2/migration/paramiko__fabric__aws@aws-parallelcluster__d49460a.yaml @@ -0,0 +1,58 @@ +repo: aws/aws-parallelcluster +commit: d49460ac5ca5ac3c5728ef7f13471f0682d7e966 +source: paramiko +target: fabric +commit_url: https://github.com/aws/aws-parallelcluster/commit/d49460ac +domain: HTTP Clients +files: +- path: "tests/integration-tests/remote_command_executor.py" + code_changes: + - lines: ["102:96", "111:105"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [put] + target_apis: [put] + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [paramiko.AutoAddPolicy, paramiko.SSHClient] + target_apis: [fabric.Connection] + - lines: ["45-50:38-43"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call, function call, function call] + target_program_elements: [function call] + properties: [argument addition, argument name change, argument transformation, element name change] + source_apis: [AutoAddPolicy, SSHClient, connect, load_system_host_keys, set_missing_host_key_policy] + target_apis: [Connection] + - lines: ["51:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [open_sftp] + target_apis: [] + - lines: ["56:48"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [close] + target_apis: [close] + - lines: ["74:71"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument name change, element name change] + source_apis: [exec_command] + target_apis: [run] + - lines: ["80:74"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [return_code] + target_apis: [failed] diff --git a/data/v2/migration/pep8__pycodestyle__cyberbotics@urdf2webots__723168d.yaml b/data/v2/migration/pep8__pycodestyle__cyberbotics@urdf2webots__723168d.yaml new file mode 100644 index 0000000..a8c8c33 --- /dev/null +++ b/data/v2/migration/pep8__pycodestyle__cyberbotics@urdf2webots__723168d.yaml @@ -0,0 +1,30 @@ +repo: cyberbotics/urdf2webots +commit: 723168dbfff6132aa5591837d43c960679a0a2c4 +source: pep8 +target: pycodestyle +commit_url: https://github.com/cyberbotics/urdf2webots/commit/723168db +domain: Codestyle +files: +- path: "tests/test_pep8.py" + code_changes: + - lines: ["11:11"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [StandardReport] + target_apis: [StandardReport] + - lines: ["49:49"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [StyleGuide] + target_apis: [StyleGuide] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pep8] + target_apis: [pycodestyle] diff --git a/data/v2/migration/pep8__pycodestyle__fabioz@PyDev.Debugger__d535c19.yaml b/data/v2/migration/pep8__pycodestyle__fabioz@PyDev.Debugger__d535c19.yaml new file mode 100644 index 0000000..48910a3 --- /dev/null +++ b/data/v2/migration/pep8__pycodestyle__fabioz@PyDev.Debugger__d535c19.yaml @@ -0,0 +1,72 @@ +repo: fabioz/PyDev.Debugger +commit: d535c190c06df3fa968cdf55154359cbd3b0d828 +source: pep8 +target: pycodestyle +commit_url: https://github.com/fabioz/PyDev.Debugger/commit/d535c190 +domain: Codestyle +files: +- path: "third_party/pep8/autopep8.py" + code_changes: + - lines: ["177:178", "179:180"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [match] + target_apis: [match] + - lines: ["189:192", "374:384"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [register_check] + target_apis: [register_check] + - lines: ["2412:2554"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [BaseReport] + target_apis: [BaseReport] + - lines: ["2439:2584"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Checker] + target_apis: [Checker] + - lines: ["247:250", "368:373"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [expand_indent] + target_apis: [expand_indent] + - lines: ["3556:3592"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [ARITHMETIC_OP] + target_apis: [ARITHMETIC_OP] + - lines: ["61:60"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pep8] + target_apis: [pycodestyle] + - lines: [":1316"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [noqa] + - lines: [":3185"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [attribute] + properties: [] + source_apis: [] + target_apis: [__version__] diff --git a/data/v2/migration/pep8__pycodestyle__hhatto@autopep8__3e1c196.yaml b/data/v2/migration/pep8__pycodestyle__hhatto@autopep8__3e1c196.yaml new file mode 100644 index 0000000..7283d1f --- /dev/null +++ b/data/v2/migration/pep8__pycodestyle__hhatto@autopep8__3e1c196.yaml @@ -0,0 +1,65 @@ +repo: hhatto/autopep8 +commit: 3e1c196570204482d1376d4050633b8de6565533 +source: pep8 +target: pycodestyle +commit_url: https://github.com/hhatto/autopep8/commit/3e1c1965 +domain: Codestyle +files: +- path: "autopep8.py" + code_changes: + - lines: ["1207:1208"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [noqa] + target_apis: [noqa] + - lines: ["170:170", "172:172"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [match] + target_apis: [match] + - lines: ["182:182", "370:370"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [register_check] + target_apis: [register_check] + - lines: ["240:240", "361:361"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [expand_indent] + target_apis: [expand_indent] + - lines: ["2469-2470:2470-2471"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Checker] + target_apis: [Checker] + - lines: ["3443:3444"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [ARITHMETIC_OP] + target_apis: [ARITHMETIC_OP] + - lines: ["369:369"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [_checks] + target_apis: [_checks] + - lines: ["60:60"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pep8] + target_apis: [pycodestyle] diff --git a/data/v2/migration/pep8__pycodestyle__nchammas@flintrock__7323298.yaml b/data/v2/migration/pep8__pycodestyle__nchammas@flintrock__7323298.yaml new file mode 100644 index 0000000..549485b --- /dev/null +++ b/data/v2/migration/pep8__pycodestyle__nchammas@flintrock__7323298.yaml @@ -0,0 +1,23 @@ +repo: nchammas/flintrock +commit: 7323298d4a7827887d12f20787385255fccaaca4 +source: pep8 +target: pycodestyle +commit_url: https://github.com/nchammas/flintrock/commit/7323298d +domain: Codestyle +files: +- path: "tests/test_static.py" + code_changes: + - lines: ["35:35"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [StyleGuide] + target_apis: [StyleGuide] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pep8] + target_apis: [pycodestyle] diff --git a/data/v2/migration/pep8__pycodestyle__openstack@designate__2c9e9f5.yaml b/data/v2/migration/pep8__pycodestyle__openstack@designate__2c9e9f5.yaml new file mode 100644 index 0000000..37bb0f7 --- /dev/null +++ b/data/v2/migration/pep8__pycodestyle__openstack@designate__2c9e9f5.yaml @@ -0,0 +1,23 @@ +repo: openstack/designate +commit: 2c9e9f5f41d4fdf6a5f4f9870e0bb261c53d4e94 +source: pep8 +target: pycodestyle +commit_url: https://github.com/openstack/designate/commit/2c9e9f5f +domain: Codestyle +files: +- path: "designate/hacking/checks.py" + code_changes: + - lines: ["17:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pep8] + target_apis: [pycodestyle] + - lines: ["50:48"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [noqa] + target_apis: [noqa] diff --git a/data/v2/migration/pep8__pycodestyle__openstack@sahara__61b0b2e.yaml b/data/v2/migration/pep8__pycodestyle__openstack@sahara__61b0b2e.yaml new file mode 100644 index 0000000..be3edb8 --- /dev/null +++ b/data/v2/migration/pep8__pycodestyle__openstack@sahara__61b0b2e.yaml @@ -0,0 +1,23 @@ +repo: openstack/sahara +commit: 61b0b2e03846f3d743b8dafa604632e15ca47ea1 +source: pep8 +target: pycodestyle +commit_url: https://github.com/openstack/sahara/commit/61b0b2e0 +domain: Codestyle +files: +- path: "sahara/utils/hacking/checks.py" + code_changes: + - lines: ["109:109"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [noqa] + target_apis: [noqa] + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pep8] + target_apis: [pycodestyle] diff --git a/data/v2/migration/pep8__pycodestyle__schlamar@flake8-todo__fcd59c6.yaml b/data/v2/migration/pep8__pycodestyle__schlamar@flake8-todo__fcd59c6.yaml new file mode 100644 index 0000000..1201011 --- /dev/null +++ b/data/v2/migration/pep8__pycodestyle__schlamar@flake8-todo__fcd59c6.yaml @@ -0,0 +1,23 @@ +repo: schlamar/flake8-todo +commit: fcd59c6c0ba68ec7b394709fbf219418ecff14a5 +source: pep8 +target: pycodestyle +commit_url: https://github.com/schlamar/flake8-todo/commit/fcd59c6c +domain: Codestyle +files: +- path: "flake8_todo.py" + code_changes: + - lines: ["12:12"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [noqa] + target_apis: [noqa] + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pep8] + target_apis: [pycodestyle] diff --git a/data/v2/migration/pil__pillow__rcos@observatory-retired__f970b54.yaml b/data/v2/migration/pil__pillow__rcos@observatory-retired__f970b54.yaml new file mode 100644 index 0000000..7a8f26c --- /dev/null +++ b/data/v2/migration/pil__pillow__rcos@observatory-retired__f970b54.yaml @@ -0,0 +1,16 @@ +repo: rcos/observatory-retired +commit: f970b543dc349460492a32a11731738062bfcc09 +source: pil +target: pillow +commit_url: https://github.com/rcos/observatory-retired/commit/f970b543 +domain: Image processing +files: +- path: "observatory/dashboard/models/Screenshot.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Image] + target_apis: [PIL.Image] diff --git a/data/v2/migration/pil__pillow__shoebot@shoebot__0171fb9.yaml b/data/v2/migration/pil__pillow__shoebot@shoebot__0171fb9.yaml new file mode 100644 index 0000000..240049c --- /dev/null +++ b/data/v2/migration/pil__pillow__shoebot@shoebot__0171fb9.yaml @@ -0,0 +1,16 @@ +repo: shoebot/shoebot +commit: 0171fb9ff6ed2fed71dcfe82eef7ca723d609fcf +source: pil +target: pillow +commit_url: https://github.com/shoebot/shoebot/commit/0171fb9f +domain: Image processing +files: +- path: "shoebot/data/img.py" + code_changes: + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Image] + target_apis: [PIL.Image] diff --git a/data/v2/migration/prettytable__tabulate__educationaltestingservice@skll__f870a65.yaml b/data/v2/migration/prettytable__tabulate__educationaltestingservice@skll__f870a65.yaml new file mode 100644 index 0000000..dbd0480 --- /dev/null +++ b/data/v2/migration/prettytable__tabulate__educationaltestingservice@skll__f870a65.yaml @@ -0,0 +1,23 @@ +repo: educationaltestingservice/skll +commit: f870a65904a449103d8f147e9746e548965f27d1 +source: prettytable +target: tabulate +commit_url: https://github.com/educationaltestingservice/skll/commit/f870a659 +domain: Utility +files: +- path: "skll/experiments.py" + code_changes: + - lines: ["29:39"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [prettytable.PrettyTable, prettytable.ALL] + target_apis: [prettytable.PrettyTable, prettytable.ALL] + - lines: ["879-883,900:899-902"] + cardinality: many-to-one + source_program_elements: [function call, attribute, attribute, function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [PrettyTable, align, float_format, add_row] + target_apis: [tabulate] diff --git a/data/v2/migration/progressbar__tqdm__ozencb@yts-scraper__383401a.yaml b/data/v2/migration/progressbar__tqdm__ozencb@yts-scraper__383401a.yaml new file mode 100644 index 0000000..aa27c77 --- /dev/null +++ b/data/v2/migration/progressbar__tqdm__ozencb@yts-scraper__383401a.yaml @@ -0,0 +1,65 @@ +repo: ozencb/yts-scraper +commit: 383401ae9f95fed9132d26b4b9aed8e4c44d47b5 +source: progressbar +target: tqdm +commit_url: https://github.com/ozencb/yts-scraper/commit/383401ae +domain: Utility +files: +- path: "ytsscraper/scraper.py" + code_changes: + - lines: ["165:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [update] + target_apis: [] + - lines: ["43:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [wrap_stderr] + target_apis: [] + - lines: ["45:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [flush] + target_apis: [] + - lines: ["47-48:106"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call, function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [Timer, ETA, Bar, ProgressBar] + target_apis: [tqdm] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [progressbar] + target_apis: [tqdm.tqdm] + - lines: [":107"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [tqdm] + - lines: [":125,147,167,194,205,209,212,216"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [write] + - lines: [":126"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [close] diff --git a/data/v2/migration/progressbar__tqdm__redkyn@assigner__f132d03.yaml b/data/v2/migration/progressbar__tqdm__redkyn@assigner__f132d03.yaml new file mode 100644 index 0000000..d860418 --- /dev/null +++ b/data/v2/migration/progressbar__tqdm__redkyn@assigner__f132d03.yaml @@ -0,0 +1,30 @@ +repo: redkyn/assigner +commit: f132d03c9154401da28316e552fc6ca0bd51cf31 +source: progressbar +target: tqdm +commit_url: https://github.com/redkyn/assigner/commit/f132d03c +domain: Utility +files: +- path: "assigner/commands/get.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [progressbar.ProgressBar] + target_apis: [assigner.progress.Progress] + - lines: ["42:42"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [ProgressBar] + target_apis: [Progress] + - lines: ["44:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [update] + target_apis: [] diff --git a/data/v2/migration/progressbar__tqdm__rivuletstudio@rivuletpy__52068ad.yaml b/data/v2/migration/progressbar__tqdm__rivuletstudio@rivuletpy__52068ad.yaml new file mode 100644 index 0000000..966c9c8 --- /dev/null +++ b/data/v2/migration/progressbar__tqdm__rivuletstudio@rivuletpy__52068ad.yaml @@ -0,0 +1,37 @@ +repo: rivuletstudio/rivuletpy +commit: 52068adbb96160b27768f0d5bb64672dab109d99 +source: progressbar +target: tqdm +commit_url: https://github.com/rivuletstudio/rivuletpy/commit/52068adb +domain: Utility +files: +- path: "rivuletpy/trace.py" + code_changes: + - lines: ["1:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [progressbar] + target_apis: [tqdm] + - lines: ["284:288", "63:64"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [ProgressBar] + target_apis: [tqdm] + - lines: ["294:296", "73:72"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [update] + target_apis: [update] + - lines: [":248"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [close] diff --git a/data/v2/migration/progressbar__tqdm__wkentaro@fcn__399069a.yaml b/data/v2/migration/progressbar__tqdm__wkentaro@fcn__399069a.yaml new file mode 100644 index 0000000..46fc2b2 --- /dev/null +++ b/data/v2/migration/progressbar__tqdm__wkentaro@fcn__399069a.yaml @@ -0,0 +1,16 @@ +repo: wkentaro/fcn +commit: 399069ac568af1d295a5ac2d3b61b531af998898 +source: progressbar +target: tqdm +commit_url: https://github.com/wkentaro/fcn/commit/399069ac +domain: Utility +files: +- path: "scripts/fcn_train.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [progressbar] + target_apis: [tqdm] diff --git a/data/v2/migration/py-bcrypt__bcrypt__weasyl@weasyl__f6230c7.yaml b/data/v2/migration/py-bcrypt__bcrypt__weasyl@weasyl__f6230c7.yaml new file mode 100644 index 0000000..1047d1e --- /dev/null +++ b/data/v2/migration/py-bcrypt__bcrypt__weasyl@weasyl__f6230c7.yaml @@ -0,0 +1,16 @@ +repo: weasyl/weasyl +commit: f6230c731f662be1301bdc38f6ab9815c7441144 +source: py-bcrypt +target: bcrypt +commit_url: https://github.com/weasyl/weasyl/commit/f6230c73 +domain: Cryptography +files: +- path: "weasyl/login.py" + code_changes: + - lines: ["284:285", "76:77"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [checkpw] + target_apis: [checkpw] diff --git a/data/v2/migration/pyandoc__pypandoc__hustlzp@permission__d174a21.yaml b/data/v2/migration/pyandoc__pypandoc__hustlzp@permission__d174a21.yaml new file mode 100644 index 0000000..a0f73be --- /dev/null +++ b/data/v2/migration/pyandoc__pypandoc__hustlzp@permission__d174a21.yaml @@ -0,0 +1,23 @@ +repo: hustlzp/permission +commit: d174a21795ede39cdfce884a7f9757f50e29ca9b +source: pyandoc +target: pypandoc +commit_url: https://github.com/hustlzp/permission/commit/d174a217 +domain: Documentation +files: +- path: "makedoc.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pandoc] + target_apis: [pypandoc] + - lines: ["3-6,8:4"] + cardinality: many-to-one + source_program_elements: [attribute, function call, attribute, attribute] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [PANDOC_PATH, Document, markdown, rst] + target_apis: [convert] diff --git a/data/v2/migration/pycrypto__cryptography__freeopcua@opcua-asyncio__cdaff15.yaml b/data/v2/migration/pycrypto__cryptography__freeopcua@opcua-asyncio__cdaff15.yaml new file mode 100644 index 0000000..b9f8f38 --- /dev/null +++ b/data/v2/migration/pycrypto__cryptography__freeopcua@opcua-asyncio__cdaff15.yaml @@ -0,0 +1,16 @@ +repo: freeopcua/opcua-asyncio +commit: cdaff1575780a99ab035abb08a6ad13414cd4859 +source: pycrypto +target: cryptography +commit_url: https://github.com/freeopcua/opcua-asyncio/commit/cdaff157 +domain: Cryptography +files: +- path: "opcua/uacrypto.py" + code_changes: + - lines: ["8-15:3-7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Signature.PKCS1_v1_5, Crypto.Hash.SHA256, Crypto.Hash.SHA, Crypto.PublicKey.RSA, Crypto.Cipher.AES, Crypto.Cipher.PKCS1_OAEP, Crypto.Hash, Crypto.Random] + target_apis: [cryptography.x509, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.serialization, cryptography.hazmat.primitives.hashes, cryptography.hazmat.primitives.asymmetric.padding] diff --git a/data/v2/migration/pycrypto__pycryptodome__camptocamp@c2cgeoportal__14388c3.yaml b/data/v2/migration/pycrypto__pycryptodome__camptocamp@c2cgeoportal__14388c3.yaml new file mode 100644 index 0000000..a8f32e5 --- /dev/null +++ b/data/v2/migration/pycrypto__pycryptodome__camptocamp@c2cgeoportal__14388c3.yaml @@ -0,0 +1,39 @@ +repo: camptocamp/c2cgeoportal +commit: 14388c3d85ab164d7b36b1331534913a1c9d6c9a +source: pycrypto +target: pycryptodome +commit_url: https://github.com/camptocamp/c2cgeoportal/commit/14388c3d +domain: Cryptography +files: +- path: "geoportal/c2cgeoportal_geoportal/__init__.py" + code_changes: + - lines: ["322:326"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation] + source_apis: [new] + target_apis: [new] + - lines: ["323:327"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [decrypt] + target_apis: [decrypt_and_verify] +- path: "geoportal/c2cgeoportal_geoportal/scripts/urllogin.py" + code_changes: + - lines: ["48:48"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation] + source_apis: [new] + target_apis: [new] + - lines: ["53:53"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [encrypt_and_digest] diff --git a/data/v2/migration/pycrypto__pycryptodome__hhyo@archery__e192ca6.yaml b/data/v2/migration/pycrypto__pycryptodome__hhyo@archery__e192ca6.yaml new file mode 100644 index 0000000..c4db39a --- /dev/null +++ b/data/v2/migration/pycrypto__pycryptodome__hhyo@archery__e192ca6.yaml @@ -0,0 +1,16 @@ +repo: hhyo/archery +commit: e192ca69e2d610bc59a9f10165c7fd1c8ab9b157 +source: pycrypto +target: pycryptodome +commit_url: https://github.com/hhyo/archery/commit/e192ca69 +domain: Cryptography +files: +- path: "sql/utils/aes_decryptor.py" + code_changes: + - lines: ["26:26"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [encrypt] + target_apis: [encrypt] diff --git a/data/v2/migration/pycryptodome__cryptography__allencellmodeling@cookiecutter-pypackage__8d172cb.yaml b/data/v2/migration/pycryptodome__cryptography__allencellmodeling@cookiecutter-pypackage__8d172cb.yaml new file mode 100644 index 0000000..d22e7f5 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__allencellmodeling@cookiecutter-pypackage__8d172cb.yaml @@ -0,0 +1,30 @@ +repo: allencellmodeling/cookiecutter-pypackage +commit: 8d172cbc6f07c1f12c70670057dc609df0932e21 +source: pycryptodome +target: cryptography +commit_url: https://github.com/allencellmodeling/cookiecutter-pypackage/commit/8d172cbc +domain: Crypto +files: +- path: "{{cookiecutter.repo_name}}/travis_pypi_setup.py" + code_changes: + - lines: ["13-14:13-15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.RSA, Crypto.Cipher.PKCS1_v1_5] + target_apis: [cryptography.hazmat.primitives.serialization.load_pem_public_key, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.asymmetric.padding.PKCS1v15] + - lines: ["34-35:31,35"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [importKey, new] + target_apis: [load_pem_public_key, default_backend] + - lines: ["36:36"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, element name change] + source_apis: [encrypt] + target_apis: [encrypt, PKCS1v15] diff --git a/data/v2/migration/pycryptodome__cryptography__apache@libcloud__a68022d.yaml b/data/v2/migration/pycryptodome__cryptography__apache@libcloud__a68022d.yaml new file mode 100644 index 0000000..4a114f1 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__apache@libcloud__a68022d.yaml @@ -0,0 +1,30 @@ +repo: apache/libcloud +commit: a68022d1dff4daebafccff15106ba6988c9464d8 +source: pycryptodome +target: cryptography +commit_url: https://github.com/apache/libcloud/commit/a68022d1 +domain: Crypto +files: +- path: "libcloud/common/google.py" + code_changes: + - lines: ["529:526-530"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [importKey] + target_apis: [load_pem_private_key] + - lines: ["530-532:531-536"] + cardinality: many-to-many + source_program_elements: [function call, function call, function call, function call] + target_program_elements: [function call, function call, function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [SHA256, PKCS1_v1_5, urlsafe_b64encode, sign] + target_apis: [load_pem_private_key, sign, urlsafe_b64encode, PKCS1v15, SHA256] + - lines: ["92-96:92-95"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [SHA256, RSA, PKCS1_v1_5, Random] + target_apis: [default_backend, serialization, SHA256, PKCS1v15] diff --git a/data/v2/migration/pycryptodome__cryptography__cloudve@cloudbridge__27b217e.yaml b/data/v2/migration/pycryptodome__cryptography__cloudve@cloudbridge__27b217e.yaml new file mode 100644 index 0000000..3d037e3 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__cloudve@cloudbridge__27b217e.yaml @@ -0,0 +1,37 @@ +repo: cloudve/cloudbridge +commit: 27b217e070e5711a7fd21c76663d64918fcd9c6e +source: pycryptodome +target: cryptography +commit_url: https://github.com/cloudve/cloudbridge/commit/27b217e0 +domain: Crypto +files: +- path: "cloudbridge/cloud/providers/gce/helpers.py" + code_changes: + - lines: ["2:2-4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.RSA] + target_apis: [cryptography.hazmat.primitives.serialization, cryptography.hazmat.primitives.asymmetric.rsa, cryptography.hazmat.backends.default_backend] + - lines: ["6:8-11"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [generate] + target_apis: [generate_private_key] + - lines: ["7:16-18"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [publickey, exportKey] + target_apis: [public_key, public_bytes] + - lines: ["8:12-15"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [exportKey] + target_apis: [private_bytes] diff --git a/data/v2/migration/pycryptodome__cryptography__coresecurity@pysap__21fe13a.yaml b/data/v2/migration/pycryptodome__cryptography__coresecurity@pysap__21fe13a.yaml new file mode 100644 index 0000000..4edb049 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__coresecurity@pysap__21fe13a.yaml @@ -0,0 +1,37 @@ +repo: coresecurity/pysap +commit: 21fe13a08b83d6fcabbdbbddaf15c3c5dd53de77 +source: pycryptodome +target: cryptography +commit_url: https://github.com/coresecurity/pysap/commit/21fe13a0 +domain: Crypto +files: +- path: "examples/dlmanager_decrypt.py" + code_changes: + - lines: ["198:200"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["199:200-201"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [decryptor, update, finalize] + - lines: ["281:283", "32:33"] + cardinality: one-to-one + source_program_elements: [function reference] + target_program_elements: [function reference] + properties: [element name change] + source_apis: [AES] + target_apis: [Cipher] + - lines: ["30:30-31"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes] diff --git a/data/v2/migration/pycryptodome__cryptography__jvanovost@dc09_spt__08a9d0b.yaml b/data/v2/migration/pycryptodome__cryptography__jvanovost@dc09_spt__08a9d0b.yaml new file mode 100644 index 0000000..c912d1b --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__jvanovost@dc09_spt__08a9d0b.yaml @@ -0,0 +1,37 @@ +repo: jvanovost/dc09_spt +commit: 08a9d0b85bf03b9d4d55294a6f287e3068579834 +source: pycryptodome +target: cryptography +commit_url: https://github.com/jvanovost/dc09_spt/commit/08a9d0b8 +domain: Crypto +files: +- path: "dc09_spt/msg/dc09_msg.py" + code_changes: + - lines: ["100:100-101"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [encrypt] + target_apis: [encryptor, update, finalize] + - lines: ["109:110", "99:99"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["110:111-112"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [decryptor, update, finalize] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES] + target_apis: [cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes] diff --git a/data/v2/migration/pycryptodome__cryptography__leifj@pyxmlsecurity__b5d88c8.yaml b/data/v2/migration/pycryptodome__cryptography__leifj@pyxmlsecurity__b5d88c8.yaml new file mode 100644 index 0000000..f08e891 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__leifj@pyxmlsecurity__b5d88c8.yaml @@ -0,0 +1,58 @@ +repo: leifj/pyxmlsecurity +commit: b5d88c805e12296bc31d287f64f455523bcbe123 +source: pycryptodome +target: cryptography +commit_url: https://github.com/leifj/pyxmlsecurity/commit/b5d88c80 +domain: Crypto +files: +- path: "src/xmlsec/utils.py" + code_changes: + - lines: [":49"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [public_key] + - lines: [":5,6,7,8"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.serialization, cryptography.hazmat.primitives.asymmetric.rsa, cryptography.x509.load_pem_x509_certificate, cryptography.x509.load_der_x509_certificate] + - lines: [":50"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [RSAPublicKey] + - lines: [":54,55"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [public_bytes] + - lines: [":56"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [public_numbers] + - lines: [":65"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [load_pem_x509_certificate] + - lines: [":69"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [load_der_x509_certificate] diff --git a/data/v2/migration/pycryptodome__cryptography__mitya57@secretstorage__e637c3b.yaml b/data/v2/migration/pycryptodome__cryptography__mitya57@secretstorage__e637c3b.yaml new file mode 100644 index 0000000..daf1d95 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__mitya57@secretstorage__e637c3b.yaml @@ -0,0 +1,90 @@ +repo: mitya57/secretstorage +commit: e637c3b38bec3798f75fba190a597d37e1dcc3d6 +source: pycryptodome +target: cryptography +commit_url: https://github.com/mitya57/secretstorage/commit/e637c3b3 +domain: Crypto +files: +- path: "secretstorage/dhcrypto.py" + code_changes: + - lines: ["31:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [Crypto.Util.number.bytes_to_long] + target_apis: [] + - lines: ["33:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [bytes_to_long] + target_apis: [] + - lines: ["40:37"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Util.number.long_to_bytes] + target_apis: [cryptography.utils.int_to_bytes] + - lines: [":15"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [cryptography.utils.int_from_bytes] + - lines: [":30"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [int_from_bytes] +- path: "secretstorage/item.py" + code_changes: + - lines: ["101:104"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [update, finalize] + - lines: ["17:17-18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES.AESCipher, Crypto.Cipher.AES.MODE_CBC] + target_apis: [cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes, cryptography.hazmat.backends.default_backend] + - lines: ["99:100-103"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [AESCipher] + target_apis: [AES, Cipher, decryptor] +- path: "secretstorage/util.py" + code_changes: + - lines: ["102:100"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [update, finalize] + - lines: ["17:17-18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES.AESCipher, Crypto.Cipher.AES.MODE_CBC, Crypto.Cipher.AES.block_size] + target_apis: [cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes, cryptography.hazmat.backends.default_backend] + - lines: ["98:98-99"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [AESCipher] + target_apis: [AES, Cipher, encryptor] diff --git a/data/v2/migration/pycryptodome__cryptography__ojarva@python-sshpubkeys__e3ee2d2.yaml b/data/v2/migration/pycryptodome__cryptography__ojarva@python-sshpubkeys__e3ee2d2.yaml new file mode 100644 index 0000000..63af90f --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__ojarva@python-sshpubkeys__e3ee2d2.yaml @@ -0,0 +1,37 @@ +repo: ojarva/python-sshpubkeys +commit: e3ee2d2635e8489ef6e3a57520e3bf1b61d94962 +source: pycryptodome +target: cryptography +commit_url: https://github.com/ojarva/python-sshpubkeys/commit/e3ee2d26 +domain: Crypto +files: +- path: "sshpubkeys/keys.py" + code_changes: + - lines: ["26:25-27"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.RSA, Crypto.PublicKey.DSA] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicNumbers, cryptography.hazmat.primitives.asymmetric.dsa.DSAParameterNumbers, cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers] + - lines: ["277:278"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, element name change] + source_apis: [construct] + target_apis: [RSAPublicNumbers, public_key] + - lines: ["278:279", "301:318"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [size] + target_apis: [key_size] + - lines: ["300:316-317"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, element name change] + source_apis: [construct] + target_apis: [DSAParameterNumbers, DSAPublicNumbers, public_key] diff --git a/data/v2/migration/pycryptodome__cryptography__openstack@glance__5ebde90.yaml b/data/v2/migration/pycryptodome__cryptography__openstack@glance__5ebde90.yaml new file mode 100644 index 0000000..e0fb184 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__openstack@glance__5ebde90.yaml @@ -0,0 +1,51 @@ +repo: openstack/glance +commit: 5ebde9079b34544cc6642a73b40ec865bcef8580 +source: pycryptodome +target: cryptography +commit_url: https://github.com/openstack/glance/commit/5ebde907 +domain: Crypto +files: +- path: "glance/common/crypt.py" + code_changes: + - lines: ["22-24:24-27"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES, Crypto.Random, Crypto.Random.random] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.modes] + - lines: ["47:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [StrongRandom] + target_apis: [] + - lines: ["56:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [get_random_bytes] + target_apis: [] + - lines: ["57:63", "79:89"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["58:65-67"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [encryptor, update, finalize] + - lines: ["80:91-92"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [decryptor, update, finalize] diff --git a/data/v2/migration/pycryptodome__cryptography__openstack@keystonemiddleware__e23cb36.yaml b/data/v2/migration/pycryptodome__cryptography__openstack@keystonemiddleware__e23cb36.yaml new file mode 100644 index 0000000..606f643 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__openstack@keystonemiddleware__e23cb36.yaml @@ -0,0 +1,44 @@ +repo: openstack/keystonemiddleware +commit: e23cb36ac03c5e3a368cb8c493927cf8babc8dbc +source: pycryptodome +target: cryptography +commit_url: https://github.com/openstack/keystonemiddleware/commit/e23cb36a +domain: Crypto +files: +- path: "keystonemiddleware/auth_token/_memcache_crypt.py" + code_changes: + - lines: ["119:221", "128:140"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["121:133-134"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [encrypt] + target_apis: [encryptor, update, finalize] + - lines: ["130:145-146"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [decryptor, update, finalize] + - lines: ["44:41-45"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES] + target_apis: [cryptography.hazmat.backends, cryptography.hazmat.primitives.ciphers, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes, cryptography.hazmat.primitives.padding] + - lines: ["46,80:47,82"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [AES] + target_apis: [ciphers] diff --git a/data/v2/migration/pycryptodome__cryptography__privacyidea@privacyidea__bcd8a45.yaml b/data/v2/migration/pycryptodome__cryptography__privacyidea@privacyidea__bcd8a45.yaml new file mode 100644 index 0000000..4f76314 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__privacyidea@privacyidea__bcd8a45.yaml @@ -0,0 +1,81 @@ +repo: privacyidea/privacyidea +commit: bcd8a454b7ab53ac6f531a9f8d88061217ff9d67 +source: pycryptodome +target: cryptography +commit_url: https://github.com/privacyidea/privacyidea/commit/bcd8a454 +domain: Crypto +files: +- path: "privacyidea/lib/crypto.py" + code_changes: + - lines: ["118:119-120"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher, default_backend] + - lines: ["119:121-122", "364:371-372"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument name change, element name change] + source_apis: [decrypt] + target_apis: [decryptor, update, finalize] + - lines: ["363:368-370", "385:395-397"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher, default_backend, CBC] + - lines: ["387:393"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [block_size] + target_apis: [block_size] + - lines: ["389:398-399"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [encryptor, update, finalize] + - lines: ["56-57:56-57"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Hash.SHA256, Crypto.Cipher.AES] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes] + - lines: [":417"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [attribute] + properties: [] + source_apis: [] + target_apis: [block_size] +- path: "privacyidea/lib/importotp.py" + code_changes: + - lines: ["59:54-55"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes] + - lines: ["78:80-81"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["79:82-83"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [encryptor, update, finalize] diff --git a/data/v2/migration/pycryptodome__cryptography__rev112@pyope__48c294a.yaml b/data/v2/migration/pycryptodome__cryptography__rev112@pyope__48c294a.yaml new file mode 100644 index 0000000..51ce5fe --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__rev112@pyope__48c294a.yaml @@ -0,0 +1,30 @@ +repo: rev112/pyope +commit: 48c294a3fba2b424d75f0e7f541f31a1cc0421a6 +source: pycryptodome +target: cryptography +commit_url: https://github.com/rev112/pyope/commit/48c294a3 +domain: Crypto +files: +- path: "pyope/ope.py" + code_changes: + - lines: ["164:167-168"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [new] + target_apis: [AES, Cipher] + - lines: ["166:169,172"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [encryptor, update] + - lines: ["4-5:5-7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES, Crypto.Util.Counter] + target_apis: [cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers.modes.CTR] diff --git a/data/v2/migration/pycryptodome__cryptography__secdev@scapy__c24298b.yaml b/data/v2/migration/pycryptodome__cryptography__secdev@scapy__c24298b.yaml new file mode 100644 index 0000000..dc020da --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__secdev@scapy__c24298b.yaml @@ -0,0 +1,116 @@ +repo: secdev/scapy +commit: c24298b9569bd8b46114882cf404b03d8682cba3 +source: pycryptodome +target: cryptography +commit_url: https://github.com/secdev/scapy/commit/c24298b9 +domain: Crypto +files: +- path: "scapy/layers/ipsec.py" + code_changes: + - lines: ["149-154:146-152"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES, Crypto.Cipher.DES, Crypto.Cipher.DES3, Crypto.Cipher.CAST, Crypto.Cipher.Blowfish, Crypto.Util.Counter] + target_apis: [cryptography.exceptions.InvalidTag, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes] + - lines: ["204,206:205"] + cardinality: many-to-one + source_program_elements: [attribute, attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [MODE_GCM, MODE_CCM] + target_apis: [ModeWithAuthenticationTag] + - lines: ["275-276:264-268"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["278-279:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [new] + target_apis: [] + - lines: ["281:270-274"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["330-332:324,327-329"] + cardinality: many-to-many + source_program_elements: [function call, function call, function call] + target_program_elements: [function call, function call, function call, function call] + properties: [element name change] + source_apis: [update, encrypt, digest] + target_apis: [encryptor, authenticate_additional_data, update, finalize] + - lines: ["334:332"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [update, finalize] + - lines: ["361,363:357,361,366"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call, function call, function call] + properties: [element name change] + source_apis: [decrypt, update] + target_apis: [decryptor, authenticate_additional_data, update, finalize] + - lines: ["392:397", "397:400"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [AES] + target_apis: [AES] + - lines: ["393:398"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [MODE_CBC] + target_apis: [CBC] + - lines: ["398:401"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [MODE_CTR] + target_apis: [CTR] + - lines: ["439-444,453:434-436"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Hash.HMAC, Crypto.Hash.SHA, Crypto.Hash.MD5, Crypto.Hash.SHA256, Crypto.Hash.SHA384, Crypto.Hash.SHA512, Crypto.Hash.XCBCMAC] + target_apis: [cryptography.hazmat.primitives.hmac.HMAC, cryptography.hazmat.primitives.cmac.CMAC, cryptography.hazmat.primitives.hashes] + - lines: ["500:486"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [XCBCMAC] + target_apis: [CMAC] + - lines: [":367"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [exception] + properties: [] + source_apis: [] + target_apis: [InvalidTag] +- path: "scapy/layers/tls/__init__.py" + code_changes: + - lines: ["11:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto] + target_apis: [cryptography] diff --git a/data/v2/migration/pycryptodome__cryptography__spockbotmc@spockbot__4442170.yaml b/data/v2/migration/pycryptodome__cryptography__spockbotmc@spockbot__4442170.yaml new file mode 100644 index 0000000..2b82dac --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__spockbotmc@spockbot__4442170.yaml @@ -0,0 +1,88 @@ +repo: spockbotmc/spockbot +commit: 4442170e317a69d36df1b34f29c45652f1d296c2 +source: pycryptodome +target: cryptography +commit_url: https://github.com/spockbotmc/spockbot/commit/4442170e +domain: Crypto +files: +- path: "spock/plugins/core/auth.py" + code_changes: + - lines: ["130:132-133"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument name change, element name change] + source_apis: [new] + target_apis: [load_der_public_key, encrypt] + - lines: ["134-135:137-138"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [encrypt] + target_apis: [encrypt] + - lines: ["16-18:17-19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Random, Crypto.Cipher.PKCS1_v1_5, Crypto.PublicKey.RSA] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.serialization, cryptography.hazmat.primitives.asymmetric.padding] + - lines: ["70:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [get_random_bytes] + target_apis: [] + - lines: [":27"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [default_backend] +- path: "spock/plugins/core/net.py" + code_changes: + - lines: ["12:12-14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES] + target_apis: [cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes] + - lines: ["25:27"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["27:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [new] + target_apis: [] + - lines: ["31:30-34"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [encryptor, update] + - lines: ["34:31-37"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [decryptor, update] + - lines: [":22"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [default_backend] diff --git a/data/v2/migration/pycryptodome__cryptography__tgalal@python-axolotl__f74a936.yaml b/data/v2/migration/pycryptodome__cryptography__tgalal@python-axolotl__f74a936.yaml new file mode 100644 index 0000000..ac43fc8 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__tgalal@python-axolotl__f74a936.yaml @@ -0,0 +1,51 @@ +repo: tgalal/python-axolotl +commit: f74a936745db2c2f04575bd63308d6b6c0cc91ce +source: pycryptodome +target: cryptography +commit_url: https://github.com/tgalal/python-axolotl/commit/f74a9367 +domain: Crypto +files: +- path: "axolotl/sessioncipher.py" + code_changes: + - lines: ["230:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [new] + target_apis: [] + - lines: ["236:278"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["254:244"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["274:263,265"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [encrypt] + target_apis: [encryptor, update, finalize] + - lines: ["279:270-271"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [decryptor, update, finalize] + - lines: ["5-6:6-7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES, Crypto.Util.Counter] + target_apis: [cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes, cryptography.hazmat.backends.default_backend] diff --git a/data/v2/migration/pycryptodome__cryptography__twisted@twisted__e31995c.yaml b/data/v2/migration/pycryptodome__cryptography__twisted@twisted__e31995c.yaml new file mode 100644 index 0000000..72f5a47 --- /dev/null +++ b/data/v2/migration/pycryptodome__cryptography__twisted@twisted__e31995c.yaml @@ -0,0 +1,196 @@ +repo: twisted/twisted +commit: e31995c9894c04b916191913107943caef1f48e8 +source: pycryptodome +target: cryptography +commit_url: https://github.com/twisted/twisted/commit/e31995c9 +domain: Crypto +files: +- path: "twisted/conch/ssh/common.py" + code_changes: + - lines: ["19:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Util] + target_apis: [cryptography.utils.int_from_bytes, cryptography.utils.int_to_bytes] + - lines: ["51:72"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [long_to_bytes] + target_apis: [int_to_bytes] + - lines: ["70:91"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [bytes_to_long] + target_apis: [int_from_bytes] +- path: "twisted/conch/ssh/keys.py" + code_changes: + - lines: ["125:135"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, element name change] + source_apis: [construct] + target_apis: [RSAPublicNumbers, public_key] + - lines: ["128:138"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [construct] + target_apis: [DSAPublicNumbers, public_key] + - lines: ["19-21:15-18,20,23,26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.DES3, Crypto.Cipher.AES, Crypto.PublicKey.RSA, Crypto.PublicKey.DSA, Crypto.Util] + target_apis: [cryptography.exceptions.InvalidSignature, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.hashes, cryptography.hazmat.primitives.asymmetric.dsa, cryptography.hazmat.primitives.asymmetric.rsa, cryptography.hazmat.primitives.asymmetric.padding, cryptography.hazmat.primitives.asymmetric.utils.encode_dss_signature, cryptography.hazmat.primitives.asymmetric.utils.ecode_dss_signature, cryptography.hazmat.primitives.asymmetric.utils.encode_rfc6979_signature, cryptography.hazmat.primitives.asymmetric.utils.decode_rfc6979_signature, cryptography.hazmat.primitives.ciphers.Cipher, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes] + - lines: ["233:256"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [AES] + target_apis: [AES] + - lines: ["238:261"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [DES3] + target_apis: [TripleDES] + - lines: ["252:276"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [new] + target_apis: [Cipher] + - lines: ["254:280-281"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [decrypt] + target_apis: [decryptor, update, finalize] + - lines: ["276:307-315"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [construct] + target_apis: [RSAPrivateNumbers, private_key] + - lines: ["281:322-332"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [construct] + target_apis: [DSAPrivateNumbers, private_key] +- path: "twisted/conch/ssh/transport.py" + code_changes: + - lines: ["22:21-23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Util] + target_apis: [cryptography.exceptions.UnsupportedAlgorithm, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.ciphers.algorithms, cryptography.hazmat.primitives.ciphers.modes, cryptography.hazmat.primitives.ciphers.Cipher] + - lines: ["50:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [bytes_to_long] + target_apis: [] + - lines: [":187"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [Cipher] + - lines: [":304"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [exception] + properties: [] + source_apis: [] + target_apis: [UnsupportedAlgorithm] +- path: "twisted/conch/test/test_agent.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [DES3] + target_apis: [cryptography] + - lines: ["16:16", "23:23"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [Crypto] + target_apis: [cryptography] +- path: "twisted/conch/test/test_cftp.py" + code_changes: + - lines: ["14:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [twisted.conch.test.test_ssh.Crypto, twisted.conch.test.test_ssh.pyasn1] + target_apis: [cryptography] + - lines: ["17:24"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [Crypto] + target_apis: [cryptography] + - lines: [":21"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [cryptography] +- path: "twisted/conch/test/test_tap.py" + code_changes: + - lines: ["11:11", "23:23", "41:41"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [Crypto] + target_apis: [cryptography] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [DES3] + target_apis: [cryptography] +- path: "twisted/conch/test/test_transport.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [DES3] + target_apis: [cryptography] + - lines: ["18:18", "20:20", "27:27"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [Crypto] + target_apis: [cryptography] diff --git a/data/v2/migration/pycryptodome__pycryptodomex__azure@aztk__19dde42.yaml b/data/v2/migration/pycryptodome__pycryptodomex__azure@aztk__19dde42.yaml new file mode 100644 index 0000000..728d75a --- /dev/null +++ b/data/v2/migration/pycryptodome__pycryptodomex__azure@aztk__19dde42.yaml @@ -0,0 +1,64 @@ +repo: azure/aztk +commit: 19dde429a702c29bdcf86a69805053ecfd02edee +source: pycryptodome +target: pycryptodomex +commit_url: https://github.com/azure/aztk/commit/19dde429 +domain: Cryptography +files: +- path: "aztk/client.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.RSA] + target_apis: [Cryptodome.PublicKey.RSA] +- path: "aztk/node_scripts/install/create_user.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.RSA] + target_apis: [Cryptodome.PublicKey.RSA] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES, Crypto.Cipher.PKCS1_OAEP] + target_apis: [Crypto.Cipher.AES, Crypto.Cipher.PKCS1_OAEP] +- path: "aztk/spark/models/models.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.RSA] + target_apis: [Cryptodome.PublicKey.RSA] +- path: "aztk/utils/secure_utils.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.RSA] + target_apis: [Cryptodome.PublicKey.RSA] + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Random.get_random_bytes] + target_apis: [Cryptodome.Random.get_random_bytes] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES, Crypto.Cipher.PKCS1_OAEP] + target_apis: [Cryptodome.Cipher.AES, Cryptodome.Cipher.PKCS1_OAEP] diff --git a/data/v2/migration/pycryptodome__pycryptodomex__malwaredllc@byob__9291b54.yaml b/data/v2/migration/pycryptodome__pycryptodomex__malwaredllc@byob__9291b54.yaml new file mode 100644 index 0000000..d61892e --- /dev/null +++ b/data/v2/migration/pycryptodome__pycryptodomex__malwaredllc@byob__9291b54.yaml @@ -0,0 +1,109 @@ +repo: malwaredllc/byob +commit: 9291b54ed6a1c727030c571a6ebdf7b344781c8f +source: pycryptodome +target: pycryptodomex +commit_url: https://github.com/malwaredllc/byob/commit/9291b54e +domain: Cryptography +files: +- path: "byob/core/security.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Util.number] + target_apis: [Cryptodome.Util.number] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES] + target_apis: [Cryptodome.Cipher.AES] + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Hash.HMAC] + target_apis: [Cryptodome.Hash.HMAC] + - lines: ["23:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Hash.SHA256] + target_apis: [Cryptodome.Hash.SHA256] + - lines: ["41:41"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [bytes_to_long] + target_apis: [bytes_to_long] + - lines: ["43:43", "44:44", "46:46"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [long_to_bytes] + target_apis: [long_to_bytes] + - lines: ["46:46"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [digest] + target_apis: [digest] + - lines: ["46:46", "64: 64", "84: 84"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [new] + target_apis: [new] + - lines: ["64:64", "85: 85"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [MODE_OCB] + target_apis: [MODE_OCB] + - lines: ["84: 84", "84:84"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [block_size] + target_apis: [block_size] +- path: "byob/modules/ransom.py" + code_changes: + - lines: ["133:133"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [get_random_bytes] + target_apis: [get_random_bytes] + - lines: ["188:188", "213:213"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [importKey] + target_apis: [importKey] + - lines: ["131:131", "187:187", "212:212", "68:68"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [RsaKey] + target_apis: [RsaKey] + - lines: ["132:132", "75:75"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [new] + target_apis: [new] diff --git a/data/v2/migration/pycryptodome__pycryptodomex__snemes@malware-analysis__02b064b.yaml b/data/v2/migration/pycryptodome__pycryptodomex__snemes@malware-analysis__02b064b.yaml new file mode 100644 index 0000000..f061062 --- /dev/null +++ b/data/v2/migration/pycryptodome__pycryptodomex__snemes@malware-analysis__02b064b.yaml @@ -0,0 +1,37 @@ +repo: snemes/malware-analysis +commit: 02b064b4acc0ae26d6c61246ab3f1f45b750091a +source: pycryptodome +target: pycryptodomex +commit_url: https://github.com/snemes/malware-analysis/commit/02b064b4 +domain: Cryptography +files: +- path: "trickbot/trickbot_artifact_decrypter.py" + code_changes: + - lines: ["11:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Cipher.AES] + target_apis: [Cryptodome.Cipher.AES] + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Hash.SHA256, Crypto.Hash.SHA384] + target_apis: [Cryptodome.Hash.SHA256, Cryptodome.Hash.SHA384] + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.PublicKey.ECC] + target_apis: [Cryptodome.PublicKey.ECC] + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [Crypto.Signature.DSS] + target_apis: [Cryptodome.Signature.DSS] diff --git a/data/v2/migration/pycurl__requests__tasmota@decode-config__5be6141.yaml b/data/v2/migration/pycurl__requests__tasmota@decode-config__5be6141.yaml new file mode 100644 index 0000000..58dcc66 --- /dev/null +++ b/data/v2/migration/pycurl__requests__tasmota@decode-config__5be6141.yaml @@ -0,0 +1,30 @@ +repo: tasmota/decode-config +commit: 5be614174b1e282440fa0166e48c0d39bafb3ff1 +source: pycurl +target: requests +commit_url: https://github.com/tasmota/decode-config/commit/5be61417 +domain: HTTP Clients +files: +- path: "decode-config.py" + code_changes: + - lines: ["1635-1641,1643-1646:1634-1635,1637-1638"] + cardinality: many-to-one + source_program_elements: [function call, function call, function call, function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [Curl, BytesIO, HTTPHeader, setopt] + target_apis: [get] + - lines: ["1660:1643"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [argument transformation, element name change] + source_apis: [contenttype] + target_apis: [headers] + - lines: ["201:202"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pycurl] + target_apis: [requests] diff --git a/data/v2/migration/pycurl__requests__upstox@upstox-python__dce8760.yaml b/data/v2/migration/pycurl__requests__upstox@upstox-python__dce8760.yaml new file mode 100644 index 0000000..b67bf51 --- /dev/null +++ b/data/v2/migration/pycurl__requests__upstox@upstox-python__dce8760.yaml @@ -0,0 +1,23 @@ +repo: upstox/upstox-python +commit: dce87602c4bcc41ddee1cfb06c5fe1866a338fee +source: pycurl +target: requests +commit_url: https://github.com/upstox/upstox-python/commit/dce87602 +domain: HTTP Clients +files: +- path: "upstox_api/api.py" + code_changes: + - lines: ["1:9-10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pycurl] + target_apis: [requests, requests.auth.HTTPBasicAuth] + - lines: ["677:", "80:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Curl] + target_apis: [] diff --git a/data/v2/migration/pydotplus__pydot2__networkx@networkx__481f3e8.yaml b/data/v2/migration/pydotplus__pydot2__networkx@networkx__481f3e8.yaml new file mode 100644 index 0000000..01afa5d --- /dev/null +++ b/data/v2/migration/pydotplus__pydot2__networkx@networkx__481f3e8.yaml @@ -0,0 +1,61 @@ +repo: networkx/networkx +commit: 481f3e8e405cafc05c570e8fc5a2a4d531f86121 +source: pydotplus +target: pydot2 +commit_url: https://github.com/networkx/networkx/commit/481f3e8e +domain: Graphic +files: +- path: "examples/drawing/atlas.py" + code_changes: + - lines: ["67:67"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] +- path: "examples/drawing/circular_tree.py" + code_changes: + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] +- path: "examples/drawing/giant_component.py" + code_changes: + - lines: ["30:30"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] +- path: "examples/drawing/lanl_routes.py" + code_changes: + - lines: ["53:53"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] +- path: "examples/graph/atlas.py" + code_changes: + - lines: ["67:67"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] +- path: "examples/pygraphviz/write_dotfile.py" + code_changes: + - lines: ["31:31"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] diff --git a/data/v2/migration/pydotplus__pydot2__trungdong@prov__acb9b05.yaml b/data/v2/migration/pydotplus__pydot2__trungdong@prov__acb9b05.yaml new file mode 100644 index 0000000..1117429 --- /dev/null +++ b/data/v2/migration/pydotplus__pydot2__trungdong@prov__acb9b05.yaml @@ -0,0 +1,16 @@ +repo: trungdong/prov +commit: acb9b05f0bd99b3fbd58e5f1a684d1cfc28961f8 +source: pydotplus +target: pydot2 +commit_url: https://github.com/trungdong/prov/commit/acb9b05f +domain: Graphic +files: +- path: "prov/dot.py" + code_changes: + - lines: ["25:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] diff --git a/data/v2/migration/pydotplus__pydot__mathics@mathics__915daeb.yaml b/data/v2/migration/pydotplus__pydot__mathics@mathics__915daeb.yaml new file mode 100644 index 0000000..9fc7593 --- /dev/null +++ b/data/v2/migration/pydotplus__pydot__mathics@mathics__915daeb.yaml @@ -0,0 +1,23 @@ +repo: mathics/mathics +commit: 915daeb9cd029b666ac3156b1c8f52939f6d0198 +source: pydotplus +target: pydot +commit_url: https://github.com/mathics/mathics/commit/915daeb9 +domain: Graphic +files: +- path: "mathics/builtin/graphs.py" + code_changes: + - lines: ["46:46"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pydotplus] + target_apis: [pydot] + - lines: ["48:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [find_graphviz] + target_apis: [] diff --git a/data/v2/migration/pyfits__astropy__glue-viz@glue__5b2d7f9.yaml b/data/v2/migration/pyfits__astropy__glue-viz@glue__5b2d7f9.yaml new file mode 100644 index 0000000..cde09cc --- /dev/null +++ b/data/v2/migration/pyfits__astropy__glue-viz@glue__5b2d7f9.yaml @@ -0,0 +1,92 @@ +repo: glue-viz/glue +commit: 5b2d7f925fd49aac3654c7f288e87e9b6df347cf +source: pyfits +target: astropy +commit_url: https://github.com/glue-viz/glue/commit/5b2d7f92 +domain: Filesystem&Scientific +files: +- path: "glue/core/coordinates.py" + code_changes: + - lines: ["148:148"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [Header] + target_apis: [Header] + - lines: ["6:47"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits.core] + target_apis: [astropy.io.fits] +- path: "glue/core/data.py" + code_changes: + - lines: ["5:675"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [io] + - lines: ["677:677"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [open] + target_apis: [open] +- path: "glue/core/io.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [fits] + - lines: ["13:13"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [open] + target_apis: [open] + - lines: ["21:21"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [PrimaryHDU] + target_apis: [PrimaryHDU] + - lines: ["22:22"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [ImageHDU] + target_apis: [ImageHDU] +- path: "glue/core/subset.py" + code_changes: + - lines: ["197:197"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [writeto] + target_apis: [writeto] + - lines: ["203:204"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [open] + target_apis: [open] + - lines: ["3:196"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [fits] diff --git a/data/v2/migration/pyfits__astropy__icrar@ngas__fa8b714.yaml b/data/v2/migration/pyfits__astropy__icrar@ngas__fa8b714.yaml new file mode 100644 index 0000000..fbad01e --- /dev/null +++ b/data/v2/migration/pyfits__astropy__icrar@ngas__fa8b714.yaml @@ -0,0 +1,34 @@ +repo: icrar/ngas +commit: fa8b714cfe1a3644f4132b25932b614a2ed625a7 +source: pyfits +target: astropy +commit_url: https://github.com/icrar/ngas/commit/fa8b714c +domain: Filesystem&Scientific +files: +- path: "src/ngamsPlugIns/ngamsPlugIns/gleam/ngamsGLEAM_Fix_Phase2_JobPI.py" + code_changes: + - lines: ["46:46"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "src/ngamsPlugIns/ngamsPlugIns/mwa/ngamsMWA_MIT_FilterPlugin.py" + code_changes: + - lines: ["59:59"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "src/ngamsPlugIns/ngamsPlugIns/mwa/ngamsMWA_MIT_NoTape_FilterPI.py" + code_changes: + - lines: ["40:40"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] diff --git a/data/v2/migration/pyfits__astropy__spacetelescope@pysynphot__5b80ada.yaml b/data/v2/migration/pyfits__astropy__spacetelescope@pysynphot__5b80ada.yaml new file mode 100644 index 0000000..09afaa9 --- /dev/null +++ b/data/v2/migration/pyfits__astropy__spacetelescope@pysynphot__5b80ada.yaml @@ -0,0 +1,169 @@ +repo: spacetelescope/pysynphot +commit: 5b80ada45d2eb5fcdcca8959d073713ab3e84c7b +source: pyfits +target: astropy +commit_url: https://github.com/spacetelescope/pysynphot/commit/5b80ada4 +domain: Filesystem&Scientific +files: +- path: "commissioning/basecase.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "commissioning/doscalars.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "commissioning/extrap/extrap.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "pysynphot/catalog.py" + code_changes: + - lines: ["24:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "pysynphot/graphtab.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "pysynphot/locations.py" + code_changes: + - lines: ["37:37"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "pysynphot/observationmode.py" + code_changes: + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "pysynphot/reddening.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "pysynphot/spectrum.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "pysynphot/tables.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/cos_etc_tickets.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/test_graph.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/testspec.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/ticket146.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/ticket163.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/ticket85.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/ui_test.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] +- path: "test/ui_tickets.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyfits] + target_apis: [astropy.io.fits] diff --git a/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__89c7afc.yaml b/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__89c7afc.yaml new file mode 100644 index 0000000..8e22eac --- /dev/null +++ b/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__89c7afc.yaml @@ -0,0 +1,23 @@ +repo: milvus-io/bootcamp +commit: 89c7afc6548362e9bbf1dbf6142aabb02bc3bb93 +source: pymilvus-orm +target: pymilvus +commit_url: https://github.com/milvus-io/bootcamp/commit/89c7afc6 +domain: Database client +files: +- path: "benchmark_test/scripts/milvus_helpers.py" + code_changes: + - lines: ["2-7:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pymilvus_orm.connections, pymilvus_orm.Index, pymilvus_orm.types.DataType, pymilvus_orm.schema.FieldSchema, pymilvus_orm.schema.CollectionSchema, pymilvus_orm.collection.Collection] + target_apis: [pymilvus.connections, pymilvus.FieldSchema, pymilvus.CollectionSchema, pymilvus.DataType, pymilvus.Collection, pymilvus.utility] + - lines: ["98:96"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [drop] + target_apis: [drop_collection] diff --git a/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__a7f4c3f.yaml b/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__a7f4c3f.yaml new file mode 100644 index 0000000..9453dd7 --- /dev/null +++ b/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__a7f4c3f.yaml @@ -0,0 +1,16 @@ +repo: milvus-io/bootcamp +commit: a7f4c3f13e007116d88d9a2776f471a4e4f1fc81 +source: pymilvus-orm +target: pymilvus +commit_url: https://github.com/milvus-io/bootcamp/commit/a7f4c3f1 +domain: Database client +files: +- path: "solutions/question_answering_system/quick_deploy/server/src/milvus_helpers.py" + code_changes: + - lines: ["2-5,7:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pymilvus_orm.connections, pymilvus_orm.types.DataType, pymilvus_orm.schema.FieldSchema, pymilvus_orm.schema.CollectionSchema, pymilvus_orm.collection.Collection, pymilvus_orm.utility] + target_apis: [pymilvus.connections, pymilvus.FieldSchema, pymilvus.CollectionSchema, pymilvus.DataType, pymilvus.Collection, pymilvus.utility] diff --git a/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__e5073e4.yaml b/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__e5073e4.yaml new file mode 100644 index 0000000..0867900 --- /dev/null +++ b/data/v2/migration/pymilvus-orm__pymilvus__milvus-io@bootcamp__e5073e4.yaml @@ -0,0 +1,25 @@ +repo: milvus-io/bootcamp +commit: e5073e4c0c3e799822e939268d80c8f0601ea4cf +source: pymilvus-orm +target: pymilvus +commit_url: https://github.com/milvus-io/bootcamp/commit/e5073e4c +domain: Database client +files: +- path: "solutions/video_similarity_search/object_detection/server/src/milvus_helpers.py" + code_changes: + - lines: ["2-5,7:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pymilvus_orm.connections, pymilvus_orm.types.DataType, pymilvus_orm.schema.FieldSchema, pymilvus_orm.schema.CollectionSchema, pymilvus_orm.collection.Collection, pymilvus_orm.utility] + target_apis: [pymilvus.connections, pymilvus.FieldSchema, pymilvus.CollectionSchema, pymilvus.DataType, pymilvus.Collection, pymilvus.utility] +- path: "solutions/video_similarity_search/quick_deploy/server/src/milvus_helpers.py" + code_changes: + - lines: ["2-5,7:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pymilvus_orm.connections, pymilvus_orm.types.DataType, pymilvus_orm.schema.FieldSchema, pymilvus_orm.schema.CollectionSchema, pymilvus_orm.collection.Collection, pymilvus_orm.utility] + target_apis: [pymilvus.connections, pymilvus.FieldSchema, pymilvus.CollectionSchema, pymilvus.DataType, pymilvus.Collection, pymilvus.utility] diff --git a/data/v2/migration/pyopenssl__cryptography__RIPE-NCC@ripe-atlas-sagan__f6fc10c.yaml b/data/v2/migration/pyopenssl__cryptography__RIPE-NCC@ripe-atlas-sagan__f6fc10c.yaml new file mode 100644 index 0000000..9a0ecb4 --- /dev/null +++ b/data/v2/migration/pyopenssl__cryptography__RIPE-NCC@ripe-atlas-sagan__f6fc10c.yaml @@ -0,0 +1,72 @@ +repo: RIPE-NCC/ripe-atlas-sagan +commit: f6fc10c8f55b73a3229f4f5f5beea4d771994913 +source: pyopenssl +target: cryptography +commit_url: https://github.com/RIPE-NCC/ripe-atlas-sagan/commit/f6fc10c8 +domain: HTTP Clients&Crypto +files: +- path: "ripe/atlas/sagan/ssl.py" + code_changes: + - lines: ["123:67"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [get_notBefore] + target_apis: [not_valid_before] + - lines: ["124:68"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [get_notAfter] + target_apis: [not_valid_after] + - lines: ["24:23-25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [OpenSSL] + target_apis: [cryptography.x509, cryptography.hazmat.backends.openssl, cryptography.hazmat.primitives.hashes] + - lines: ["62-65:60"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [load_certificate] + target_apis: [load_pem_x509_certificate] + - lines: ["66:74"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [attribute] + properties: [element name change, output transformation] + source_apis: [get_subject, get_components] + target_apis: [subject] + - lines: ["67:78"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [attribute] + properties: [element name change, output transformation] + source_apis: [get_issuer, get_components] + target_apis: [issuer] + - lines: ["78:63"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument transformation, element name change, output transformation] + source_apis: [digest] + target_apis: [fingerprint, MD5] + - lines: ["79:64"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument transformation, element name change, output transformation] + source_apis: [digest] + target_apis: [fingerprint, SHA1] + - lines: ["80:65"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument transformation, element name change, output transformation] + source_apis: [digest] + target_apis: [fingerprint, SHA256] diff --git a/data/v2/migration/pyopenssl__cryptography__celery@celery__9b39fc4.yaml b/data/v2/migration/pyopenssl__cryptography__celery@celery__9b39fc4.yaml new file mode 100644 index 0000000..819108f --- /dev/null +++ b/data/v2/migration/pyopenssl__cryptography__celery@celery__9b39fc4.yaml @@ -0,0 +1,106 @@ +repo: celery/celery +commit: 9b39fc41998c708c6612f0c7bf4393bf48f72e9b +source: pyopenssl +target: cryptography +commit_url: https://github.com/celery/celery/commit/9b39fc41 +domain: HTTP Clients&Crypto +files: +- path: "celery/security/__init__.py" + code_changes: + - lines: ["44:41"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [OpenSSL.crypto] + target_apis: [cryptography] +- path: "celery/security/certificate.py" + code_changes: + - lines: ["13:10-12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [utils.crypto] + target_apis: [cryptography.x509.load_pem_x509_certificate, cryptography.hazmat.backends.default_backend, cryptography.hazmat.primitives.asymmetric.padding] + - lines: ["24:30-31"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [load_certificate] + target_apis: [load_pem_x509_certificate] + - lines: ["28:35"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [has_expired] + target_apis: [not_valid_after] + - lines: ["32:43"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [get_serial_number] + target_apis: [serial_number] + - lines: ["37:47"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [get_issuer, get_components] + target_apis: [issuer] + - lines: ["46:57-62"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation] + source_apis: [verify] + target_apis: [verify] + - lines: [":39"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [public_key] +- path: "celery/security/key.py" + code_changes: + - lines: ["17:22-25"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, element name change] + source_apis: [load_privatekey] + target_apis: [load_pem_private_key] + - lines: ["22:31-35"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion] + source_apis: [sign] + target_apis: [sign] + - lines: ["7:6-8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [utils.crypto] + target_apis: [cryptography.hazmat.primitives.serialization, cryptography.hazmat.primitives.asymmetric.padding, cryptography.hazmat.backends.default_backend] +- path: "celery/security/utils.py" + code_changes: + - lines: ["12:8-9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [OpenSSL.crypto] + target_apis: [cryptography.hazmat.primitives.hashes, cryptography.exceptions] + - lines: ["23:26"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [Error] + target_apis: [exceptions] diff --git a/data/v2/migration/pyopenssl__cryptography__openstack@neutron-lbaas__bb34d71.yaml b/data/v2/migration/pyopenssl__cryptography__openstack@neutron-lbaas__bb34d71.yaml new file mode 100644 index 0000000..ec09fa8 --- /dev/null +++ b/data/v2/migration/pyopenssl__cryptography__openstack@neutron-lbaas__bb34d71.yaml @@ -0,0 +1,23 @@ +repo: openstack/neutron-lbaas +commit: bb34d71c7772d1728d6ceaa04333856f8b6ea4d4 +source: pyopenssl +target: cryptography +commit_url: https://github.com/openstack/neutron-lbaas/commit/bb34d71c +domain: HTTP Clients&Crypto +files: +- path: "neutron_lbaas/common/tls_utils/cert_parser.py" + code_changes: + - lines: ["172-173:175-176"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [load_certificate] + target_apis: [load_pem_x509_certificate] + - lines: ["19-20:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [OpenSSL.crypto, OpenSSL.SSL] + target_apis: [cryptography.x509] diff --git a/data/v2/migration/pypcap__pcapy__openstack@steth__a981d2e.yaml b/data/v2/migration/pypcap__pcapy__openstack@steth__a981d2e.yaml new file mode 100644 index 0000000..850697c --- /dev/null +++ b/data/v2/migration/pypcap__pcapy__openstack@steth__a981d2e.yaml @@ -0,0 +1,23 @@ +repo: openstack/steth +commit: a981d2eff81eec01d3663c5530e79852619e9d7e +source: pypcap +target: pcapy +commit_url: https://github.com/openstack/steth/commit/a981d2ef +domain: HTTP Clients&Filesystem +files: +- path: "steth/agent/drivers/pcap_driver.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pypcap] + target_apis: [pcapy] + - lines: ["16:16"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pypcap] + target_apis: [pcapy] diff --git a/data/v2/migration/pyqt5__pyside2__catalystneuro@nwb-conversion-tools__a2ef335.yaml b/data/v2/migration/pyqt5__pyside2__catalystneuro@nwb-conversion-tools__a2ef335.yaml new file mode 100644 index 0000000..4dee0c7 --- /dev/null +++ b/data/v2/migration/pyqt5__pyside2__catalystneuro@nwb-conversion-tools__a2ef335.yaml @@ -0,0 +1,128 @@ +repo: catalystneuro/nwb-conversion-tools +commit: a2ef3358d8aa51f8f49b81debcd54b648e25b6da +source: pyqt5 +target: pyside2 +commit_url: https://github.com/catalystneuro/nwb-conversion-tools/commit/a2ef3358 +domain: Utility +files: +- path: "nwbn_conversion_tools/gui/classes/forms_base.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QCheckBox] + target_apis: [PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QCheckBox] +- path: "nwbn_conversion_tools/gui/classes/forms_behavior.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QVBoxLayout, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QCheckBox, PyQt5.QtWidgets.QMessageBox] + target_apis: [PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QVBoxLayout, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QCheckBox, PySide2.QtWidgets.QMessageBox] +- path: "nwbn_conversion_tools/gui/classes/forms_ecephys.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QVBoxLayout, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QCheckBox, PyQt5.QtWidgets.QMessageBox] + target_apis: [PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QVBoxLayout, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QCheckBox, PySide2.QtWidgets.QMessageBox] +- path: "nwbn_conversion_tools/gui/classes/forms_general.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QCheckBox] + target_apis: [PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QCheckBox] +- path: "nwbn_conversion_tools/gui/classes/forms_misc.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QCheckBox] + target_apis: [PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QCheckBox] +- path: "nwbn_conversion_tools/gui/classes/forms_ophys.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QVBoxLayout, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QCheckBox, PyQt5.QtWidgets.QMessageBox] + target_apis: [PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QVBoxLayout, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QCheckBox, PySide2.QtWidgets.QMessageBox] +- path: "nwbn_conversion_tools/gui/classes/tabs.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui] + target_apis: [PySide2.QtCore, PySide2.QtGui] + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.Qt] + target_apis: [PySide2.QtCore.Qt] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QWidget, PyQt5.QtWidgets.QApplication, PyQt5.QtWidgets.QAction, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QTabWidget, PyQt5.QtWidgets.QPushButton, PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QTextEdit, PyQt5.QtWidgets.QVBoxLayout, PyQt5.QtWidgets.QHBoxLayout, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QSplitter, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QFileDialog, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QScrollArea] + target_apis: [PySide2.QtWidgets.QWidget, PySide2.QtWidgets.QApplication, PySide2.QtWidgets.QAction, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QTabWidget, PySide2.QtWidgets.QPushButton, PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QTextEdit, PySide2.QtWidgets.QVBoxLayout, PySide2.QtWidgets.QHBoxLayout, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QSplitter, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QFileDialog, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QScrollArea] +- path: "nwbn_conversion_tools/gui/nwbn_conversion_gui.py" + code_changes: + - lines: ["179:179"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Vertical] + target_apis: [Vertical] + - lines: ["179:179", "190:190"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [QSplitter] + target_apis: [QSplitter] + - lines: ["190:190"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Horizontal] + target_apis: [Horizontal] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore] + target_apis: [PySide2.QtCore] + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.Qt] + target_apis: [PySide2.QtCore.Qt] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets.QMainWindow, PyQt5.QtWidgets.QWidget, PyQt5.QtWidgets.QApplication, PyQt5.QtWidgets.QAction, PyQt5.QtWidgets.QPushButton, PyQt5.QtWidgets.QLineEdit, PyQt5.QtWidgets.QTextEdit, PyQt5.QtWidgets.QVBoxLayout, PyQt5.QtWidgets.QGridLayout, PyQt5.QtWidgets.QSplitter, PyQt5.QtWidgets.QLabel, PyQt5.QtWidgets.QFileDialog, PyQt5.QtWidgets.QMessageBox, PyQt5.QtWidgets.QComboBox, PyQt5.QtWidgets.QScrollArea, PyQt5.QtWidgets.QStyle, PyQt5.QtWidgets.QGroupBox, PyQt5.QtWidgets.QCheckBox] + target_apis: [PySide2.QtWidgets.QMainWindow, PySide2.QtWidgets.QWidget, PySide2.QtWidgets.QApplication, PySide2.QtWidgets.QAction, PySide2.QtWidgets.QPushButton, PySide2.QtWidgets.QLineEdit, PySide2.QtWidgets.QTextEdit, PySide2.QtWidgets.QVBoxLayout, PySide2.QtWidgets.QGridLayout, PySide2.QtWidgets.QSplitter, PySide2.QtWidgets.QLabel, PySide2.QtWidgets.QFileDialog, PySide2.QtWidgets.QMessageBox, PySide2.QtWidgets.QComboBox, PySide2.QtWidgets.QScrollArea, PySide2.QtWidgets.QStyle, PySide2.QtWidgets.QGroupBox, PySide2.QtWidgets.QCheckBox] diff --git a/data/v2/migration/pyqt5__pyside2__sanpen@gridcal__39a5dd9.yaml b/data/v2/migration/pyqt5__pyside2__sanpen@gridcal__39a5dd9.yaml new file mode 100644 index 0000000..15c6cf6 --- /dev/null +++ b/data/v2/migration/pyqt5__pyside2__sanpen@gridcal__39a5dd9.yaml @@ -0,0 +1,441 @@ +repo: sanpen/gridcal +commit: 39a5dd91e4f42ccab5d18efbf899293f18330ec7 +source: pyqt5 +target: pyside2 +commit_url: https://github.com/sanpen/gridcal/commit/39a5dd91 +domain: Utility +files: +- path: "src/GridCal/Engine/Devices/wire.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore] + target_apis: [PySide2.QtCore] +- path: "src/GridCal/Engine/IO/file_handler.py" + code_changes: + - lines: ["245-247:245-247", "296-298:296-298"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] + - lines: ["36:36"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] +- path: "src/GridCal/Engine/Simulations/ContinuationPowerFlow/voltage_collapse_driver.py" + code_changes: + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] + - lines: ["238-240:238-240"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Engine/Simulations/Dynamics/transient_stability_driver.py" + code_changes: + - lines: ["17:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] + - lines: ["46-48:46-48"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Engine/Simulations/OPF/opf_driver.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QRunnable] + target_apis: [PySide2.QtCore.QRunnable] +- path: "src/GridCal/Engine/Simulations/OPF/opf_time_series_driver.py" + code_changes: + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] + - lines: ["231-233:231-233"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Engine/Simulations/Optimization/optimization_driver.py" + code_changes: + - lines: ["123-125:123-125"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] + - lines: ["17:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] +- path: "src/GridCal/Engine/Simulations/PowerFlow/power_flow_driver.py" + code_changes: + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QRunnable] + target_apis: [PySide2.QtCore.QRunnable] +- path: "src/GridCal/Engine/Simulations/PowerFlow/time_series_driver.py" + code_changes: + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] + - lines: ["339-341:339-341"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Engine/Simulations/ShortCircuit/short_circuit_driver.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QRunnable] + target_apis: [PySide2.QtCore.QRunnable] +- path: "src/GridCal/Engine/Simulations/StateEstimation/state_stimation_driver.py" + code_changes: + - lines: ["17:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QRunnable] + target_apis: [PySide2.QtCore.QRunnable] +- path: "src/GridCal/Engine/Simulations/Stochastic/blackout_driver.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] + - lines: ["95-97:95-97"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Engine/Simulations/Stochastic/lhs_driver.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] + - lines: ["30-32:30-32"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Engine/Simulations/Stochastic/monte_carlo_driver.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] + - lines: ["55-57:55-57"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Engine/Simulations/Stochastic/reliability_driver.py" + code_changes: + - lines: ["153-155:153-155"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore.QThread, PyQt5.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.Signal] +- path: "src/GridCal/Engine/Simulations/Topology/topology_driver.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PySide2.QtCore.QThread, PySide2.QtCore.QRunnable, PySide2.QtCore.pyqtSignal] + target_apis: [PySide2.QtCore.QThread, PySide2.QtCore.QRunnable, PySide2.QtCore.Signal] + - lines: ["166-168:166-168"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] +- path: "src/GridCal/Gui/Analysis/gui.py" + code_changes: + - lines: ["66:66", "67:67", "68:68"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [translate] + target_apis: [translate] + - lines: ["9:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets] + target_apis: [PySide2.QtCore, PySide2.QtGui, PySide2.QtWidgets] +- path: "src/GridCal/Gui/GridEditorWidget.py" + code_changes: + - lines: ["18-19:18-19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: ["PyQt5.QtCore.*", PyQt5.QtSvg.QSvgGenerator] + target_apis: ["PySide2.QtCore.*", PySide2.QtSvg.QSvgGenerator] +- path: "src/GridCal/Gui/GuiFunctions.py" + code_changes: + - lines: ["1049:1049", "1110:1110"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [clipboard] + target_apis: [clipboard] + - lines: ["107:107", "141:141", "175:175", "210:210", "46:46"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [element name change] + source_apis: [pyqtSlot] + target_apis: [Slot] + - lines: ["1186:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [QVariant] + target_apis: [] + - lines: ["1193:1193", "1213:1213"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [QStandardItemModel] + target_apis: [QStandardItemModel] + - lines: ["1198:1198", "1204:1204"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [QStandardItem] + target_apis: [QStandardItem] + - lines: ["129:129", "161:161", "198:198", "29:29", "87:87"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pyqtSignal] + target_apis: [Signal] + - lines: ["18-20:18-20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: ["PyQt5.QtWidgets.*", PyQt5.QtCore, "PyQt5.QtGui.*"] + target_apis: ["PySide2.QtWidgets.*", PySide2.QtCore, PySide2.QtWidgets, PySide2.QtGui, "PySide2.QtGui.*"] +- path: "src/GridCal/Gui/Main/GridCalMain.py" + code_changes: + - lines: ["57:57"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets] + target_apis: [PySide2.QtWidgets] +- path: "src/GridCal/Gui/Main/MainWindow.py" + code_changes: + - lines: ["2033:2051", "2034:2052", "2035:2053", "2036:2054", "2037:2055", "2038:2056", "2039:2057", "2040:2058", "2041:2059", "2042:2060", "2043:2061", "2044:2062", "2045:2063", "2046:2064", "2047:2065", "2048:2066", "2049:2067", "2050:2068", "2051:2069", "2052:2070", "2053:2071", "2054:2072", "2055:2073", "2056:2074", "2057:2075", "2058:2076", "2059:2077", "2060:2078", "2061:2079", "2062:2080", "2063:2081", "2064:2082", "2065:2083", "2066:2084", "2067:2085", "2068:2086", "2069:2087", "2070:2088", "2071:2089", "2072:2090", "2073:2091", "2074:2092", "2075:2093", "2076:2094", "2077:2095", "2078:2096", "2079:2097", "2080:2098", "2081:2099", "2082:2100", "2083:2101", "2084:2102", "2085:2103", "2086:2104", "2087:2105", "2088:2106", "2089:2107", "2090:2108", "2091:2109", "2092:2110", "2093:2111", "2094:2112", "2095:2113", "2096:2114", "2097:2115", "2098:2116", "2099:2117", "2100:2118", "2101:2119", "2102:2120", "2103:2121", "2104:2122", "2105:2123", "2106:2124", "2107:2125", "2108:2126", "2109:2127", "2110:2128", "2111:2129", "2112:2130", "2113:2131", "2114:2132", "2115:2133", "2116:2134", "2117:2135", "2118:2136", "2119:2137", "2120:2138", "2121:2139", "2122:2140", "2123:2141", "2124:2142", "2125:2143", "2126:2144", "2127:2145", "2128:2146", "2129:2147", "2130:2148", "2131:2149", "2132:2150", "2133:2151", "2134:2152", "2135:2153", "2136:2154", "2137:2155", "2138:2156", "2139:2157", "2140:2158", "2141:2159", "2142:2160", "2143:2161", "2144:2162", "2145:2163", "2146:2164", "2147:2165", "2148:2166", "2149:2167", "2150:2168", "2151:2169", "2152:2170", "2153:2171", "2154:2172", "2155:2173", "2156:2174", "2157:2175", "2158:2176", "2159:2177", "2160:2178", "2161:2179", "2162:2180", "2163:2181", "2164:2182", "2165:2183", "2166:2184", "2167:2185", "2168:2186", "2169:2187", "2170:2188", "2171:2189", "2172:2190", "2173:2191", "2174:2192", "2175:2193", "2176:2194", "2177:2195", "2178:2196", "2179:2197", "2180:2198", "2181:2199", "2182:2200", "2183:2201", "2184:2202", "2185:2203", "2186:2204", "2187:2205", "2188:2206", "2189:2207", "2190:2208", "2191:2209", "2192:2210", "2193:2211", "2194:2212", "2195:2213", "2196:2214", "2197:2215", "2198:2216", "2199:2217", "2200:2218", "2201:2219", "2202:2220", "2203:2221", "2204:2222", "2205:2223", "2206:2224", "2207:2225", "2208:2226", "2209:2227", "2210:2228", "2211:2229", "2212:2230", "2213:2231", "2214:2232", "2215:2233", "2216:2234", "2217:2235", "2218:2236", "2219:2237", "2220:2238", "2221:2239", "2222:2240", "2223:2241", "2224:2242", "2225:2243", "2226:2244", "2227:2245", "2228:2246", "2229:2247", "2230:2248", "2231:2249", "2232:2250", "2233:2251", "2234:2252", "2235:2253", "2236:2254", "2237:2255", "2238:2256", "2239:2257", "2240:2258", "2241:2259", "2242:2260", "2243:2261", "2244:2262", "2245:2263", "2246:2264", "2247:2265", "2248:2266", "2249:2267", "2250:2268", "2251:2269", "2252:2270", "2253:2271", "2254:2272", "2255:2273", "2256:2274", "2257:2275", "2258:2276", "2259:2277", "2260:2278", "2261:2279", "2262:2280", "2263:2281", "2264:2282", "2265:2283", "2266:2284", "2267:2285", "2268:2286", "2269:2287", "2270:2288", "2271:2289", "2272:2290", "2273:2291", "2274:2292", "2275:2293", "2276:2294", "2277:2295", "2278:2296", "2279:2297", "2280:2298", "2281:2299", "2282:2300", "2283:2301", "2284:2302", "2285:2303", "2286:2304", "2287:2305", "2288:2306", "2289:2307", "2290:2308", "2291:2309", "2292:2310", "2293:2311", "2294:2312", "2295:2313", "2296:2314", "2297:2315", "2298:2316"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [translate] + target_apis: [translate] + - lines: ["33:36"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [setContentsMargins] + target_apis: [setContentsMargins] + - lines: ["9:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets] + target_apis: [PySide2.QtCore, PySide2.QtGui, PySide2.QtWidgets] + - lines: [":848,899,959,1015,1109,1142,1171,1265,1307,1360,1426,1484,1515,1568,1635,1679,1718"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [setFrameShadow] +- path: "src/GridCal/Gui/Main/icons_rc.py" + code_changes: + - lines: ["184:184", "185:185", "186:186", "187:187", "188:188", "189:189", "190:190", "191:191", "192:192", "193:193", "194:194", "195:195", "196:196", "197:197"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [translate] + target_apis: [translate] + - lines: ["9:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets] + target_apis: [PySide2.QtCore, PySide2.QtGui, PySide2.QtWidgets] +- path: "src/GridCal/Gui/ProfilesInput/gui.py" + code_changes: + - lines: ["184:184", "185:185", "186:186", "187:187", "188:188", "189:189", "190:190", "191:191", "192:192", "193:193", "194:194", "195:195", "196:196", "197:197"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [translate] + target_apis: [translate] + - lines: ["9:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets] + target_apis: [PySide2.QtCore, PySide2.QtGui, PySide2.QtWidgets] +- path: "src/GridCal/Gui/ProfilesInput/icons_rc.py" + code_changes: + - lines: ["1502:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [qVersion] + target_apis: [] + - lines: ["9:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore] + target_apis: [PySide2.QtCore] +- path: "src/GridCal/Gui/TowerBuilder/LineBuilderDialogue.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: ["PyQt5.QtWidgets.*"] + target_apis: ["PySide2.QtWidgets.*"] +- path: "src/GridCal/Gui/TowerBuilder/gui.py" + code_changes: + - lines: ["225:225", "226:226", "227:227", "228:228", "229:229", "230:230", "231:231", "232:232", "233:233", "234:234", "235:235", "236:236", "237:237", "238:238", "239:239", "240:240", "241:241", "242:242", "243:243"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [translate] + target_apis: [translate] + - lines: ["9:11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets] + target_apis: [PySide2.QtCore, PySide2.QtGui, PySide2.QtWidgets] +- path: "src/GridCal/Gui/TowerBuilder/icons_rc.py" + code_changes: + - lines: ["915:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [qVersion] + target_apis: [] + - lines: ["9:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore] + target_apis: [PySide2.QtCore] +- path: "src/GridCal/Gui/TowerBuilder/tower_model.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore] + target_apis: [PySide2.QtCore] diff --git a/data/v2/migration/pyqt5__pyside6__toufool@auto-split__86244b6.yaml b/data/v2/migration/pyqt5__pyside6__toufool@auto-split__86244b6.yaml new file mode 100644 index 0000000..c8a3fd8 --- /dev/null +++ b/data/v2/migration/pyqt5__pyside6__toufool@auto-split__86244b6.yaml @@ -0,0 +1,268 @@ +repo: toufool/auto-split +commit: 86244b6c190f48200826788fa6af4bd8d26b230f +source: pyqt5 +target: pyside6 +commit_url: https://github.com/toufool/auto-split/commit/86244b6c +domain: Development framework/extension +files: +- path: "src/AutoSplit.py" + code_changes: + - lines: ["139:141"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [start] + target_apis: [start] + - lines: ["164:166", "881:883"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [Format_RGB888] + target_apis: [Format_RGB888] + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtTest, PyQt5.QtWidgets] + target_apis: [PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtTest, PyQt6.QtWidgets] + - lines: ["617:619", "680:682"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [AlignCenter] + target_apis: [AlignCenter] + - lines: ["968:961"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [exec_] + target_apis: [exec] +- path: "src/about.py" + code_changes: + - lines: ["32:34"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [Normal] + target_apis: [Normal] + - lines: ["32:34"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: ["Off"] + target_apis: ["Off"] + - lines: ["48:50"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [AlignCenter] + target_apis: [AlignCenter] + - lines: ["77:79"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [exec_] + target_apis: [exec] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets] + target_apis: [PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets] +- path: "src/design.py" + code_changes: + - lines: ["155:157"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [StrongFocus] + target_apis: [StrongFocus] + - lines: ["192:194", "198:200", "204:206", "210:212", "216:218", "222:224", "228:230", "234:236", "240:242", "249:251"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [Plain] + target_apis: [Plain] + - lines: ["194:196", "200:202", "236:238", "242:244"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [HLine] + target_apis: [HLine] + - lines: ["206:208", "212:214", "218:220", "224:226", "228:232", "251:253"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [VLine] + target_apis: [VLine] + - lines: ["262:264", "308:310"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [AlignCenter] + target_apis: [AlignCenter] + - lines: ["29:31"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [function call] + properties: [] + source_apis: [QSizePolicy] + target_apis: [QSizePolicy] + - lines: ["29:31", "29:31"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [Fixed] + target_apis: [Fixed] + - lines: ["317:319", "326:328"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [UpDownArrows] + target_apis: [UpDownArrows] + - lines: ["37:39", "37:39"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [Normal] + target_apis: [Normal] + - lines: ["37:39"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [function call] + properties: [] + source_apis: [QPixmap] + target_apis: [QPixmap] + - lines: ["40:42"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [LeftToRight] + target_apis: [LeftToRight] + - lines: ["456:458", "458:460", "460:462", "462:464", "464:466"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [function call] + properties: [element name change] + source_apis: [QAction] + target_apis: [QWidgetAction] + - lines: ["102: 104", "109: 111", "172:174", "176:178", "180:182", "184:186", "188:190", "312:314", "365:367", "373:375", "52:54", "77: 79", "90: 92", "94: 96", "98: 100"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [NoFocus] + target_apis: [NoFocus] + - lines: ["561:563"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [exec_] + target_apis: [exec] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets] + target_apis: [PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets] +- path: "src/error_messages.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets] + target_apis: [PyQt6.QtWidgets] +- path: "src/menu_bar.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets] + target_apis: [PyQt6.QtWidgets] +- path: "src/resources_rc.py" + code_changes: + - lines: ["9:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt6.QtWidgets] + target_apis: [PySide6.QtCore] +- path: "src/screen_region.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtTest, PyQt5.QtWidgets] + target_apis: [PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtTest, PyQt6.QtWidgets] + - lines: ["224:227", "258:261"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [FramelessWindowHint] + target_apis: [FramelessWindowHint] + - lines: ["229:232", "230:233"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [pos] + target_apis: [position] + - lines: ["257:260"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [CrossCursor] + target_apis: [CrossCursor] + - lines: ["268:271", "273:276"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [pos] + target_apis: [position, toPoint] + - lines: ["277:280"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [ArrowCursor] + target_apis: [ArrowCursor] +- path: "src/settings_file.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [PyQt5.QtWidgets] + target_apis: [PyQt6.QtWidgets] diff --git a/data/v2/migration/pyquery__beautifulsoup4__idan@telostats__f73354a.yaml b/data/v2/migration/pyquery__beautifulsoup4__idan@telostats__f73354a.yaml new file mode 100644 index 0000000..aad78ae --- /dev/null +++ b/data/v2/migration/pyquery__beautifulsoup4__idan@telostats__f73354a.yaml @@ -0,0 +1,37 @@ +repo: idan/telostats +commit: f73354ab6a11c665921a25d9bdfdbd74a33b55fb +source: pyquery +target: beautifulsoup4 +commit_url: https://github.com/idan/telostats/commit/f73354ab +domain: HTTP Clients&HTML +files: +- path: "telostats/stations/tasks.py" + code_changes: + - lines: ["18:20"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [dom] + target_apis: [find_all] + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyquery] + target_apis: [bs4.BeautifulSoup] + - lines: ["34:37"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [dom] + target_apis: [find_all] + - lines: ["34:37"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [text_content] + target_apis: [get_text] diff --git a/data/v2/migration/pyside2__qtpy__pypeit@pypeit__ba5e21a.yaml b/data/v2/migration/pyside2__qtpy__pypeit@pypeit__ba5e21a.yaml new file mode 100644 index 0000000..f689e6e --- /dev/null +++ b/data/v2/migration/pyside2__qtpy__pypeit@pypeit__ba5e21a.yaml @@ -0,0 +1,16 @@ +repo: pypeit/pypeit +commit: ba5e21ad19520001e4d4e8441910a43be9496115 +source: pyside2 +target: qtpy +commit_url: https://github.com/pypeit/pypeit/commit/ba5e21ad +domain: Utility +files: +- path: "pypeit/scripts/show_1dspec.py" + code_changes: + - lines: ["31:31"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pyside2] + target_apis: [qtpy] diff --git a/data/v2/migration/python-ldap__ldap3__cloud-custodian@cloud-custodian__cbaf252.yaml b/data/v2/migration/python-ldap__ldap3__cloud-custodian@cloud-custodian__cbaf252.yaml new file mode 100644 index 0000000..1c5a164 --- /dev/null +++ b/data/v2/migration/python-ldap__ldap3__cloud-custodian@cloud-custodian__cbaf252.yaml @@ -0,0 +1,16 @@ +repo: cloud-custodian/cloud-custodian +commit: cbaf252ff1eb554511b0384392ea02387887ed6c +source: python-ldap +target: ldap3 +commit_url: https://github.com/cloud-custodian/cloud-custodian/commit/cbaf252f +domain: Utilities +files: +- path: "tools/c7n_mailer/c7n_mailer/address.py" + code_changes: + - lines: ["19:16-20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ldap] + target_apis: [ldap3.Connection, ldap3.Server, ldap3.core.exceptions.LDAPSocketOpenError] diff --git a/data/v2/migration/python-ldap__ldap3__ictu@quality-time__cc47b42.yaml b/data/v2/migration/python-ldap__ldap3__ictu@quality-time__cc47b42.yaml new file mode 100644 index 0000000..0688ccb --- /dev/null +++ b/data/v2/migration/python-ldap__ldap3__ictu@quality-time__cc47b42.yaml @@ -0,0 +1,30 @@ +repo: ictu/quality-time +commit: cc47b42cf70b6968b22a3819bf0b9714135271c1 +source: python-ldap +target: ldap3 +commit_url: https://github.com/ictu/quality-time/commit/cc47b42c +domain: Utilities +files: +- path: "components/server/src/routes/auth.py" + code_changes: + - lines: ["11:13-14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ldap] + target_apis: [ldap3.Server, ldap3.Connection, ldap3.ALL, ldap3.core.exceptions] + - lines: ["47:66"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [initialize] + target_apis: [Server] + - lines: ["50-51:73"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [search_s] + target_apis: [search] diff --git a/data/v2/migration/python3-memcached__pymemcache__flan@staticdhcpd__0e64819.yaml b/data/v2/migration/python3-memcached__pymemcache__flan@staticdhcpd__0e64819.yaml new file mode 100644 index 0000000..370efc4 --- /dev/null +++ b/data/v2/migration/python3-memcached__pymemcache__flan@staticdhcpd__0e64819.yaml @@ -0,0 +1,23 @@ +repo: flan/staticdhcpd +commit: 0e648193ba476780ff951ede0cbbf9c871bc1aca +source: python3-memcached +target: pymemcache +commit_url: https://github.com/flan/staticdhcpd/commit/0e648193 +domain: HTTP Clients +files: +- path: "staticDHCPd/staticdhcpdlib/databases/_caching.py" + code_changes: + - lines: ["168:168"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [memcache] + target_apis: [pymemcache.client.base] + - lines: ["170:169-172"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation] + source_apis: [Client] + target_apis: [Client] diff --git a/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__haoxizhong@pytorch-worker__fa8de77.yaml b/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__haoxizhong@pytorch-worker__fa8de77.yaml new file mode 100644 index 0000000..88ee655 --- /dev/null +++ b/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__haoxizhong@pytorch-worker__fa8de77.yaml @@ -0,0 +1,32 @@ +repo: haoxizhong/pytorch-worker +commit: fa8de771a86df6130d7ff456319240bc1387804d +source: pytorch-pretrained-bert +target: pytorch-transformers +commit_url: https://github.com/haoxizhong/pytorch-worker/commit/fa8de771 +domain: Deep Learning +files: +- path: "formatter/nlp/BasicBertFormatter.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_pretrained_bert.tokenization.BertTokenizer] + target_apis: [pytorch_transformers.tokenization_bert.BertTokenizer] +- path: "model/nlp/BasicBert.py" + code_changes: + - lines: ["26:26"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [bert] + target_apis: [bert] + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_pretrained_bert.BertModel] + target_apis: [pytorch_transformers.BertModel] diff --git a/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__kaushaltrivedi@fast-bert__1c96992.yaml b/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__kaushaltrivedi@fast-bert__1c96992.yaml new file mode 100644 index 0000000..6b26295 --- /dev/null +++ b/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__kaushaltrivedi@fast-bert__1c96992.yaml @@ -0,0 +1,66 @@ +repo: kaushaltrivedi/fast-bert +commit: 1c96992f4e825e9dd8635a36007d498396d87eba +source: pytorch-pretrained-bert +target: pytorch-transformers +commit_url: https://github.com/kaushaltrivedi/fast-bert/commit/1c96992f +domain: Deep Learning +files: +- path: "fast_bert/data.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [tokenization] + target_apis: [pytorch_transformers] +- path: "fast_bert/learner.py" + code_changes: + - lines: ["27:29", "28:30"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [ConstantLR] + target_apis: [ConstantLRSchedule] + - lines: ["32:"] + cardinality: one-to-zero + source_program_elements: [type] + target_program_elements: [] + properties: [] + source_apis: [WarmupCosineWithWarmupRestartsSchedule] + target_apis: [] + - lines: ["5-6:5-6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_pretrained_bert.optimization.BertAdam, pytorch_pretrained_bert.optimization.ConstantLR, pytorch_pretrained_bert.optimization.WarmupCosineSchedule, pytorch_pretrained_bert.optimization.WarmupConstantSchedule, pytorch_pretrained_bert.optimization.WarmupLinearSchedule, pytorch_pretrained_bert.optimization.WarmupCosineWithWarmupRestartsSchedule, pytorch_pretrained_bert.optimization.WarmupCosineWithHardRestartsSchedule] + target_apis: [pytorch_transformers.AdamW, pytorch_transformers.ConstantLRSchedule, pytorch_transformers.WarmupCosineSchedule, pytorch_transformers.WarmupConstantSchedule, pytorch_transformers.WarmupLinearSchedule, pytorch_transformers.WarmupCosineWithHardRestartsSchedule] +- path: "fast_bert/lm-data.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [tokenization] + target_apis: [pytorch_transformers] +- path: "fast_bert/modeling.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [modeling] + target_apis: [pytorch_transformers] +- path: "fast_bert/prediction.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [tokenization] + target_apis: [pytorch_transformers] diff --git a/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__naver@claf__cffe499.yaml b/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__naver@claf__cffe499.yaml new file mode 100644 index 0000000..a072135 --- /dev/null +++ b/data/v2/migration/pytorch-pretrained-bert__pytorch-transformers__naver@claf__cffe499.yaml @@ -0,0 +1,16 @@ +repo: naver/claf +commit: cffe4993564244545f085ede95eb848b94d07bde +source: pytorch-pretrained-bert +target: pytorch-transformers +commit_url: https://github.com/naver/claf/commit/cffe4993 +domain: Deep Learning +files: +- path: "claf/tokens/embedding/bert_embedding.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_pretrained_bert.modeling.BertModel] + target_apis: [pytorch_transformers.BertModel] diff --git a/data/v2/migration/pytorch-pretrained-bert__transformers__tiiiger@bert_score__04376e1.yaml b/data/v2/migration/pytorch-pretrained-bert__transformers__tiiiger@bert_score__04376e1.yaml new file mode 100644 index 0000000..8924bf2 --- /dev/null +++ b/data/v2/migration/pytorch-pretrained-bert__transformers__tiiiger@bert_score__04376e1.yaml @@ -0,0 +1,23 @@ +repo: tiiiger/bert_score +commit: 04376e1e50d452f698b454a074d526d5ecd6a76b +source: pytorch-pretrained-bert +target: transformers +commit_url: https://github.com/tiiiger/bert_score/commit/04376e1e +domain: Deep Learning +files: +- path: "bert_score/score.py" + code_changes: + - lines: ["33:72", "85:134"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [from_pretrained] + target_apis: [from_pretrained] + - lines: ["6:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_pretrained_bert.BertTokenizer, pytorch_pretrained_bert.BertModel, pytorch_pretrained_bert.BertForMaskedLM] + target_apis: [transformers.AutoModel, transformers.AutoTokenizer] diff --git a/data/v2/migration/pytorch-transformers__transformers__allenai@abductive-commonsense-reasoning__abfeffc.yaml b/data/v2/migration/pytorch-transformers__transformers__allenai@abductive-commonsense-reasoning__abfeffc.yaml new file mode 100644 index 0000000..5e4c4ef --- /dev/null +++ b/data/v2/migration/pytorch-transformers__transformers__allenai@abductive-commonsense-reasoning__abfeffc.yaml @@ -0,0 +1,16 @@ +repo: allenai/abductive-commonsense-reasoning +commit: abfeffc58f4d5ccfccbadedcb70dea6fab981f82 +source: pytorch-transformers +target: transformers +commit_url: https://github.com/allenai/abductive-commonsense-reasoning/commit/abfeffc5 +domain: Deep Learning +files: +- path: "anlg/tokenizers.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers] + target_apis: [transformers] diff --git a/data/v2/migration/pytorch-transformers__transformers__calclavia@story-generation__8954fad.yaml b/data/v2/migration/pytorch-transformers__transformers__calclavia@story-generation__8954fad.yaml new file mode 100644 index 0000000..de514c2 --- /dev/null +++ b/data/v2/migration/pytorch-transformers__transformers__calclavia@story-generation__8954fad.yaml @@ -0,0 +1,52 @@ +repo: calclavia/story-generation +commit: 8954fad71993decf00cafa4407413a305ccd381c +source: pytorch-transformers +target: transformers +commit_url: https://github.com/calclavia/story-generation/commit/8954fad7 +domain: Deep Learning +files: +- path: "analysis/eval_csr.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.GPT2Tokenizer, pytorch_transformers.GPT2LMHeadModel, pytorch_transformers.GPT2Config] + target_apis: [transformers.GPT2Tokenizer, transformers.GPT2LMHeadModel, transformers.GPT2Config] +- path: "analysis/eval_ppl.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.GPT2Tokenizer, pytorch_transformers.GPT2LMHeadModel, pytorch_transformers.GPT2Config] + target_apis: [transformers.GPT2Tokenizer, transformers.GPT2LMHeadModel, transformers.GPT2Config] +- path: "analysis/eval_prompt_rank.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.GPT2Tokenizer, pytorch_transformers.GPT2LMHeadModel, pytorch_transformers.GPT2Config] + target_apis: [transformers.GPT2Tokenizer, transformers.GPT2LMHeadModel, transformers.GPT2Config] +- path: "analysis/generate.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.GPT2Tokenizer, pytorch_transformers.GPT2LMHeadModel, pytorch_transformers.GPT2Config] + target_apis: [transformers.GPT2Tokenizer, transformers.GPT2LMHeadModel, transformers.GPT2Config] +- path: "train.py" + code_changes: + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.GPT2Tokenizer, pytorch_transformers.GPT2LMHeadModel, pytorch_transformers.GPT2Config] + target_apis: [transformers.GPT2Tokenizer, transformers.GPT2LMHeadModel, transformers.GPT2Config] diff --git a/data/v2/migration/pytorch-transformers__transformers__huggingface@transfer-learning-conv-ai__16074b2.yaml b/data/v2/migration/pytorch-transformers__transformers__huggingface@transfer-learning-conv-ai__16074b2.yaml new file mode 100644 index 0000000..ed0aeda --- /dev/null +++ b/data/v2/migration/pytorch-transformers__transformers__huggingface@transfer-learning-conv-ai__16074b2.yaml @@ -0,0 +1,59 @@ +repo: huggingface/transfer-learning-conv-ai +commit: 16074b209c8a94c887c2b869d773ea5f56d8593b +source: pytorch-transformers +target: transformers +commit_url: https://github.com/huggingface/transfer-learning-conv-ai/commit/16074b20 +domain: Deep Learning +files: +- path: "convai_evaluation.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.OpenAIGPTDoubleHeadsModel, pytorch_transformers.OpenAIGPTLMHeadModel, pytorch_transformers.OpenAIGPTTokenizer, pytorch_transformers.GPT2DoubleHeadsModel, pytorch_transformers.GPT2LMHeadModel, pytorch_transformers.GPT2Tokenizer] + target_apis: [transformers.OpenAIGPTDoubleHeadsModel, transformers.OpenAIGPTLMHeadModel, transformers.OpenAIGPTTokenizer, transformers.GPT2DoubleHeadsModel, transformers.GPT2LMHeadModel, transformers.GPT2Tokenizer] +- path: "interact.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.OpenAIGPTLMHeadModel, pytorch_transformers.OpenAIGPTTokenizer, pytorch_transformers.GPT2LMHeadModel, pytorch_transformers.GPT2Tokenizer] + target_apis: [transformers.OpenAIGPTLMHeadModel, transformers.OpenAIGPTTokenizer, transformers.GPT2LMHeadModel, transformers.GPT2Tokenizer] +- path: "test_special_tokens.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.OpenAIGPTTokenizer, pytorch_transformers.GPT2Tokenizer] + target_apis: [transformers.OpenAIGPTTokenizer, transformers.GPT2Tokenizer] +- path: "train.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.AdamW, pytorch_transformers.OpenAIGPTDoubleHeadsModel, pytorch_transformers.OpenAIGPTTokenizer, pytorch_transformers.GPT2DoubleHeadsModel, pytorch_transformers.GPT2Tokenizer, pytorch_transformers.WEIGHTS_NAME, pytorch_transformers.CONFIG_NAME] + target_apis: [transformers.AdamW, transformers.OpenAIGPTDoubleHeadsModel, transformers.OpenAIGPTTokenizer, transformers.GPT2DoubleHeadsModel, transformers.GPT2Tokenizer, transformers.WEIGHTS_NAME, transformers.CONFIG_NAME] + - lines: ["263:263"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [WEIGHTS_NAME] + target_apis: [WEIGHTS_NAME] +- path: "utils.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.cached_path] + target_apis: [transformers.cached_path] diff --git a/data/v2/migration/pytorch-transformers__transformers__intellabs@nlp-architect__9f067f2.yaml b/data/v2/migration/pytorch-transformers__transformers__intellabs@nlp-architect__9f067f2.yaml new file mode 100644 index 0000000..688199f --- /dev/null +++ b/data/v2/migration/pytorch-transformers__transformers__intellabs@nlp-architect__9f067f2.yaml @@ -0,0 +1,120 @@ +repo: intellabs/nlp-architect +commit: 9f067f27667f622b94c71cf703716513d8a19ea8 +source: pytorch-transformers +target: transformers +commit_url: https://github.com/intellabs/nlp-architect/commit/9f067f27 +domain: Deep Learning +files: +- path: "nlp_architect/models/transformers/base_model.py" + code_changes: + - lines: ["22:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.XLNetConfig, pytorch_transformers.XLMConfig, pytorch_transformers.BertTokenizer, pytorch_transformers.BertConfig, pytorch_transformers.XLNetTokenizer, pytorch_transformers.XLMTokenizer, pytorch_transformers.AdamW, pytorch_transformers.WarmupLinearSchedule] + target_apis: [transformers.AdamW, transformers.BertConfig, transformers.BertTokenizer, transformers.RobertaConfig, transformers.RobertaTokenizer, transformers.WarmupLinearSchedule, transformers.XLMConfig, transformers.XLMTokenizer, transformers.XLNetConfig, transformers.XLNetTokenizer] + - lines: [":54"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [RobertaConfig] + - lines: [":54"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [RobertaTokenizer] +- path: "nlp_architect/models/transformers/quantized_bert.py" + code_changes: + - lines: ["27-43:27-35"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.modeling_bert.BertEmbeddings, pytorch_transformers.modeling_bert.BertLayerNorm, pytorch_transformers.modeling_bert.BertSelfAttention, pytorch_transformers.modeling_bert.BertSelfOutput, pytorch_transformers.modeling_bert.BertAttention, pytorch_transformers.modeling_bert.BertIntermediate, pytorch_transformers.modeling_bert.BertOutput, pytorch_transformers.modeling_bert.BertLayer, pytorch_transformers.modeling_bert.BertEncoder, pytorch_transformers.modeling_bert.BertPooler, pytorch_transformers.modeling_bert.BertModel, pytorch_transformers.modeling_bert.BertForQuestionAnswering, pytorch_transformers.modeling_bert.BertForSequenceClassification, pytorch_transformers.modeling_bert.BertForTokenClassification, pytorch_transformers.modeling_bert.ACT2FN, pytorch_transformers.modeling_bert.BertPreTrainedModel, pytorch_transformers.modeling_bert.BertConfig] + target_apis: [transformers.modeling_bert.ACT2FN, transformers.modeling_bert.BertAttention, transformers.modeling_bert.BertConfig, transformers.modeling_bert.BertEmbeddings, transformers.modeling_bert.BertEncoder, transformers.modeling_bert.BertForQuestionAnswering, transformers.modeling_bert.BertForSequenceClassification, transformers.modeling_bert.BertForTokenClassification, transformers.modeling_bert.BertIntermediate, transformers.modeling_bert.BertLayer, transformers.modeling_bert.BertLayerNorm, transformers.modeling_bert.BertModel, transformers.modeling_bert.BertOutput, transformers.modeling_bert.BertPooler, transformers.modeling_bert.BertPreTrainedModel, transformers.modeling_bert.BertSelfAttention, transformers.modeling_bert.BertSelfOutput] +- path: "nlp_architect/models/transformers/sequence_classification.py" + code_changes: + - lines: ["23-25:24-27"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertForSequenceClassification, pytorch_transformers.XLMForSequenceClassification, pytorch_transformers.XLNetForSequenceClassification] + target_apis: [transformers.BertForSequenceClassification, transformers.RobertaForSequenceClassification, transformers.XLMForSequenceClassification, transformers.XLNetForSequenceClassification] + - lines: ["53:55"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [XLMForSequenceClassification] + target_apis: [XLMForSequenceClassification] + - lines: [":56"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [RobertaForSequenceClassification] +- path: "nlp_architect/models/transformers/token_classification.py" + code_changes: + - lines: ["19:23-26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertForTokenClassification, pytorch_transformers.XLNetPreTrainedModel, pytorch_transformers.XLNetModel] + target_apis: [transformers.ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP, transformers.BertForTokenClassification, transformers.BertPreTrainedModel, transformers.RobertaConfig, transformers.RobertaModel, transformers.XLNetModel, transformers.XLNetPreTrainedModel] + - lines: ["50:61"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [BertForTokenClassification] + target_apis: [BertForTokenClassification] + - lines: ["82:95"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [] + source_apis: [XLNetPreTrainedModel] + target_apis: [XLNetPreTrainedModel] + - lines: [":135"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [BertPreTrainedModel] + - lines: [":143"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [RobertaConfig] + - lines: [":144"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [type] + properties: [] + source_apis: [] + target_apis: [ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP] + - lines: [":151"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [RobertaModel] + - lines: [":160"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [roberta] diff --git a/data/v2/migration/pytorch-transformers__transformers__jsybrandt@agatha__b570ef0.yaml b/data/v2/migration/pytorch-transformers__transformers__jsybrandt@agatha__b570ef0.yaml new file mode 100644 index 0000000..b33fe02 --- /dev/null +++ b/data/v2/migration/pytorch-transformers__transformers__jsybrandt@agatha__b570ef0.yaml @@ -0,0 +1,16 @@ +repo: jsybrandt/agatha +commit: b570ef0eed11a0d55f1e00d0291fccad62f06222 +source: pytorch-transformers +target: transformers +commit_url: https://github.com/jsybrandt/agatha/commit/b570ef0e +domain: Deep Learning +files: +- path: "pymoliere/construct/embedding_util.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers] + target_apis: [transformers] diff --git a/data/v2/migration/pytorch-transformers__transformers__nvidia@nemo__7866512.yaml b/data/v2/migration/pytorch-transformers__transformers__nvidia@nemo__7866512.yaml new file mode 100644 index 0000000..da46e4b --- /dev/null +++ b/data/v2/migration/pytorch-transformers__transformers__nvidia@nemo__7866512.yaml @@ -0,0 +1,79 @@ +repo: nvidia/nemo +commit: 786651234cc92e1bb1d14e44aa5e207867f85596 +source: pytorch-transformers +target: transformers +commit_url: https://github.com/nvidia/nemo/commit/78665123 +domain: Deep Learning +files: +- path: "collections/nemo_nlp/nemo_nlp/data/tokenizers/bert_tokenizer.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertTokenizer] + target_apis: [transformers.BertTokenizer] +- path: "collections/nemo_nlp/nemo_nlp/data/tokenizers/gpt2_tokenizer.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.GPT2Tokenizer] + target_apis: [transformers.GPT2Tokenizer] +- path: "collections/nemo_nlp/nemo_nlp/huggingface/bert.py" + code_changes: + - lines: ["7-10:4-7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertConfig, pytorch_transformers.BertModel, pytorch_transformers.BERT_PRETRAINED_MODEL_ARCHIVE_MAP, pytorch_transformers.BERT_PRETRAINED_CONFIG_ARCHIVE_MAP] + target_apis: [transformers.BertConfig, transformers.BertModel, transformers.BERT_PRETRAINED_MODEL_ARCHIVE_MAP, transformers.BERT_PRETRAINED_CONFIG_ARCHIVE_MAP] +- path: "examples/nlp/joint_intent_slot_infer.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertTokenizer] + target_apis: [transformers.BertTokenizer] +- path: "examples/nlp/joint_intent_slot_infer_b1.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertTokenizer] + target_apis: [transformers.BertTokenizer] +- path: "examples/nlp/joint_intent_slot_with_bert.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertTokenizer] + target_apis: [transformers.BertTokenizer] +- path: "examples/nlp/sentence_classification_with_bert.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BertTokenizer] + target_apis: [transformers.BertTokenizer] +- path: "scripts/get_decoder_params_from_bert.py" + code_changes: + - lines: ["2-3:2-3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytorch_transformers.BERT_PRETRAINED_MODEL_ARCHIVE_MAP, pytorch_transformers.file_utils.cached_path] + target_apis: [transformers.BERT_PRETRAINED_MODEL_ARCHIVE_MAP, transformers.file_utils.cached_path] diff --git a/data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__2c40713.yaml b/data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__2c40713.yaml new file mode 100644 index 0000000..40da155 --- /dev/null +++ b/data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__2c40713.yaml @@ -0,0 +1,16 @@ +repo: oddluck/limnoria-plugins +commit: 2c40713d3a2778d6f729d896372c3bcd74302104 +source: pytz +target: pendulum +commit_url: https://github.com/oddluck/limnoria-plugins/commit/2c40713d +domain: Utilities +files: +- path: "WorldTime/plugin.py" + code_changes: + - lines: ["12:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytz] + target_apis: [pendulum] diff --git a/data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__33c7a3f.yaml b/data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__33c7a3f.yaml new file mode 100644 index 0000000..58f64b3 --- /dev/null +++ b/data/v2/migration/pytz__pendulum__oddluck@limnoria-plugins__33c7a3f.yaml @@ -0,0 +1,25 @@ +repo: oddluck/limnoria-plugins +commit: 33c7a3fc0878d87ee803db91c17523a9e61af3ed +source: pytz +target: pendulum +commit_url: https://github.com/oddluck/limnoria-plugins/commit/33c7a3fc +domain: Utilities +files: +- path: "NBA/plugin.py" + code_changes: + - lines: ["50:40"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytz] + target_apis: [pendulum] +- path: "NHL/plugin.py" + code_changes: + - lines: ["35:26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pytz] + target_apis: [pendulum] diff --git a/data/v2/migration/pyuserinput__pynput__activitywatch@aw-watcher-afk__297b58c.yaml b/data/v2/migration/pyuserinput__pynput__activitywatch@aw-watcher-afk__297b58c.yaml new file mode 100644 index 0000000..72ff7fc --- /dev/null +++ b/data/v2/migration/pyuserinput__pynput__activitywatch@aw-watcher-afk__297b58c.yaml @@ -0,0 +1,30 @@ +repo: activitywatch/aw-watcher-afk +commit: 297b58cb7e65a05744dbf9aa30b2e179cd653e11 +source: pyuserinput +target: pynput +commit_url: https://github.com/activitywatch/aw-watcher-afk/commit/297b58cb +domain: Utility +files: +- path: "aw_watcher_afk/listeners.py" + code_changes: + - lines: ["23:27-28", "57:66-69"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [__init__] + target_apis: [Listener, start] + - lines: ["6:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pykeyboard.PyKeyboardEvent] + target_apis: [pymouse.PyMouseEvent] + - lines: ["7:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [pymouse.PyMouseEvent] + target_apis: [pynput.mouse] diff --git a/data/v2/migration/pyyaml__oyaml__cronyo@cronyo__edd0cc6.yaml b/data/v2/migration/pyyaml__oyaml__cronyo@cronyo__edd0cc6.yaml new file mode 100644 index 0000000..2ebaec4 --- /dev/null +++ b/data/v2/migration/pyyaml__oyaml__cronyo@cronyo__edd0cc6.yaml @@ -0,0 +1,16 @@ +repo: cronyo/cronyo +commit: edd0cc6078a1c0b6afaee0b71946ac61e14fdaed +source: pyyaml +target: oyaml +commit_url: https://github.com/cronyo/cronyo/commit/edd0cc60 +domain: Serialization +files: +- path: "cronyo/cron_rules.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [yaml] + target_apis: [oyaml] diff --git a/data/v2/migration/pyyaml__oyaml__gammapy@gammapy__848da63.yaml b/data/v2/migration/pyyaml__oyaml__gammapy@gammapy__848da63.yaml new file mode 100644 index 0000000..2c9ca40 --- /dev/null +++ b/data/v2/migration/pyyaml__oyaml__gammapy@gammapy__848da63.yaml @@ -0,0 +1,16 @@ +repo: gammapy/gammapy +commit: 848da6312d566b699888d77d3894ab2f1a9a8baf +source: pyyaml +target: oyaml +commit_url: https://github.com/gammapy/gammapy/commit/848da631 +domain: Serialization +files: +- path: "gammapy/utils/scripts.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [yaml] + target_apis: [oyaml] diff --git a/data/v2/migration/pyyaml__ruamel.yaml__cloud-custodian@cloud-custodian__ee4d526.yaml b/data/v2/migration/pyyaml__ruamel.yaml__cloud-custodian@cloud-custodian__ee4d526.yaml new file mode 100644 index 0000000..8c03f5b --- /dev/null +++ b/data/v2/migration/pyyaml__ruamel.yaml__cloud-custodian@cloud-custodian__ee4d526.yaml @@ -0,0 +1,34 @@ +repo: cloud-custodian/cloud-custodian +commit: ee4d52689e1f4965439b2d360c89eddf8767a935 +source: pyyaml +target: ruamel.yaml +commit_url: https://github.com/cloud-custodian/cloud-custodian/commit/ee4d5268 +domain: File reader/writer +files: +- path: "tools/c7n_mailer/c7n_mailer/cli.py" + code_changes: + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [yaml] + target_apis: [ruamel.yaml] +- path: "tools/c7n_mailer/c7n_mailer/replay.py" + code_changes: + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [yaml] + target_apis: [ruamel.yaml] +- path: "tools/c7n_mailer/c7n_mailer/utils.py" + code_changes: + - lines: ["18:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [yaml] + target_apis: [ruamel.yaml] diff --git a/data/v2/migration/pyyaml__ruamel.yaml__common-workflow-language@cwltool__b9b65c0.yaml b/data/v2/migration/pyyaml__ruamel.yaml__common-workflow-language@cwltool__b9b65c0.yaml new file mode 100644 index 0000000..cc97817 --- /dev/null +++ b/data/v2/migration/pyyaml__ruamel.yaml__common-workflow-language@cwltool__b9b65c0.yaml @@ -0,0 +1,16 @@ +repo: common-workflow-language/cwltool +commit: b9b65c0f4d7531c8a97690356ecf1a34214eaac2 +source: pyyaml +target: ruamel.yaml +commit_url: https://github.com/common-workflow-language/cwltool/commit/b9b65c0f +domain: File reader/writer +files: +- path: "draft-4/salad/schema_salad/jsonld_context.py" + code_changes: + - lines: ["3:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [yaml] + target_apis: [ruamel.yaml] diff --git a/data/v2/migration/pyyaml__ruamel.yaml__holgern@beem__f5ba90e.yaml b/data/v2/migration/pyyaml__ruamel.yaml__holgern@beem__f5ba90e.yaml new file mode 100644 index 0000000..2750449 --- /dev/null +++ b/data/v2/migration/pyyaml__ruamel.yaml__holgern@beem__f5ba90e.yaml @@ -0,0 +1,16 @@ +repo: holgern/beem +commit: f5ba90e2cc5bb88b29b173bae11ba46e06efecf7 +source: pyyaml +target: ruamel.yaml +commit_url: https://github.com/holgern/beem/commit/f5ba90e2 +domain: File reader/writer +files: +- path: "beem/utils.py" + code_changes: + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [yaml] + target_apis: [ruamel.yaml.YAML] diff --git a/data/v2/migration/raven__sentry-sdk__agdsn@sipa__ea23791.yaml b/data/v2/migration/raven__sentry-sdk__agdsn@sipa__ea23791.yaml new file mode 100644 index 0000000..f7acefd --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__agdsn@sipa__ea23791.yaml @@ -0,0 +1,23 @@ +repo: agdsn/sipa +commit: ea23791cfdc36d614189418a01a57c78859fa5e8 +source: raven +target: sentry-sdk +commit_url: https://github.com/agdsn/sipa/commit/ea23791c +domain: Logging/tracing +files: +- path: "sipa/initialization.py" + code_changes: + - lines: ["186-187:189-194"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [Sentry, init_app] + target_apis: [init, FlaskIntegration] + - lines: ["9-11:8,12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.setup_logging, raven.contrib.flask.Sentry, raven.handlers.logging.SentryHandler] + target_apis: [sentry_sdk, sentry_sdk.integrations.flask.FlaskIntegration] diff --git a/data/v2/migration/raven__sentry-sdk__city-of-helsinki@respa__4fecb97.yaml b/data/v2/migration/raven__sentry-sdk__city-of-helsinki@respa__4fecb97.yaml new file mode 100644 index 0000000..e8ff9b8 --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__city-of-helsinki@respa__4fecb97.yaml @@ -0,0 +1,39 @@ +repo: city-of-helsinki/respa +commit: 4fecb977083666abb353b203f661cdb0952a0764 +source: raven +target: sentry-sdk +commit_url: https://github.com/city-of-helsinki/respa/commit/4fecb977 +domain: HTTP Clients +files: +- path: "resources/importer/kirjastot.py" + code_changes: + - lines: ["64-65:64"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [Client, captureMessage] + target_apis: [capture_message] + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client] + target_apis: [raven.Client] +- path: "resources/importer/kirjastot_v2.py" + code_changes: + - lines: ["15:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client] + target_apis: [sentry_sdk.capture_message] + - lines: ["78-79:77"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [Client, captureMessage] + target_apis: [capture_message] diff --git a/data/v2/migration/raven__sentry-sdk__etalab@udata__9bc0f73.yaml b/data/v2/migration/raven__sentry-sdk__etalab@udata__9bc0f73.yaml new file mode 100644 index 0000000..942e0ac --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__etalab@udata__9bc0f73.yaml @@ -0,0 +1,30 @@ +repo: etalab/udata +commit: 9bc0f731c23bb6fc45765bb312aabf94e697de3c +source: raven +target: sentry-sdk +commit_url: https://github.com/etalab/udata/commit/9bc0f731 +domain: HTTP Clients +files: +- path: "udata/sentry.py" + code_changes: + - lines: ["34-36:45-47"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.contrib.celery.register_signal, raven.contrib.celery.register_logger_signal] + target_apis: [sentry_sdk, sentry_sdk.integrations.flask.FlaskIntegration, sentry_sdk.integrations.celery.CeleryIntegration] + - lines: ["42,66:49-63"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call, function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [Sentry, init_app] + target_apis: [init, FlaskIntegration, CeleryIntegration] + - lines: ["48-49:69"] + cardinality: many-to-one + source_program_elements: [attribute, attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [logging, level] + target_apis: [set_level] diff --git a/data/v2/migration/raven__sentry-sdk__habitissimo@myaas__0a65bcc.yaml b/data/v2/migration/raven__sentry-sdk__habitissimo@myaas__0a65bcc.yaml new file mode 100644 index 0000000..8574eb8 --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__habitissimo@myaas__0a65bcc.yaml @@ -0,0 +1,23 @@ +repo: habitissimo/myaas +commit: 0a65bcc2ce97a2e3ad9b028b1cf9bcc58499f5d9 +source: raven +target: sentry-sdk +commit_url: https://github.com/habitissimo/myaas/commit/0a65bcc2 +domain: Logging/tracing +files: +- path: "src/runserver.py" + code_changes: + - lines: ["7:6-7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.contrib.flask.Sentry] + target_apis: [sentry_sd, sentry_sdk.integrations.flask.FlaskIntegration] + - lines: ["8:9-12"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [Sentry] + target_apis: [init, FlaskIntegration] diff --git a/data/v2/migration/raven__sentry-sdk__kiwicom@the-zoo__e22070c.yaml b/data/v2/migration/raven__sentry-sdk__kiwicom@the-zoo__e22070c.yaml new file mode 100644 index 0000000..5fcc81a --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__kiwicom@the-zoo__e22070c.yaml @@ -0,0 +1,71 @@ +repo: kiwicom/the-zoo +commit: e22070c01d0beee9622d9dc393530ce1a6f254e5 +source: raven +target: sentry-sdk +commit_url: https://github.com/kiwicom/the-zoo/commit/e22070c0 +domain: HTTP Clients +files: +- path: "zoo/analytics/tasks/licenses.py" + code_changes: + - lines: ["35:35"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [captureException] + target_apis: [capture_exception] + - lines: ["3:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.contrib.django.raven_compat.models.client] + target_apis: [sentry_sdk] +- path: "zoo/auditing/runner.py" + code_changes: + - lines: ["142:142-144"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, attribute, function call] + properties: [element name change] + source_apis: [captureException] + target_apis: [fingerprint, capture_exception, push_scope] + - lines: ["8:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.contrib.django.raven_compat.models.client] + target_apis: [sentry_sdk] +- path: "zoo/base/settings.py" + code_changes: + - lines: [":13"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [sentry_sdk] + - lines: [":14"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [sentry_sdk.integrations.django.DjangoIntegration] +- path: "zoo/utils.py" + code_changes: + - lines: ["11:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [fetch_git_sha] + target_apis: [] + - lines: ["4:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [raven] + target_apis: [] diff --git a/data/v2/migration/raven__sentry-sdk__mozilla@addons-server__634c64f.yaml b/data/v2/migration/raven__sentry-sdk__mozilla@addons-server__634c64f.yaml new file mode 100644 index 0000000..cdfc87b --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__mozilla@addons-server__634c64f.yaml @@ -0,0 +1,23 @@ +repo: mozilla/addons-server +commit: 634c64f7d1a6e6183087ad996599f1c033e333b1 +source: raven +target: sentry-sdk +commit_url: https://github.com/mozilla/addons-server/commit/634c64f7 +domain: HTTP Clients +files: +- path: "src/olympia/amo/celery.py" + code_changes: + - lines: ["22-23:16,23-24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client, raven.contrib.celery.register_logger_signal, raven.contrib.celery.register_signal] + target_apis: [sentry_sdk, sentry_sdk.integrations.celery.CeleryIntegration, sentry_sdk.integrations.django.DjangoIntegration] + - lines: ["84,87,90,94:85-87"] + cardinality: many-to-many + source_program_elements: [function call, function call, function call, function call] + target_program_elements: [function call, function call, function call] + properties: [argument transformation, element name change] + source_apis: [Client, register_logger_signal, register_signal, register_logger_signal] + target_apis: [init, DjangoIntegration, CeleryIntegration] diff --git a/data/v2/migration/raven__sentry-sdk__onecodex@onecodex__120d961.yaml b/data/v2/migration/raven__sentry-sdk__onecodex@onecodex__120d961.yaml new file mode 100644 index 0000000..fa0c1ae --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__onecodex@onecodex__120d961.yaml @@ -0,0 +1,51 @@ +repo: onecodex/onecodex +commit: 120d9613fe1b8c7a6af247ec2dce8937127207c5 +source: raven +target: sentry-sdk +commit_url: https://github.com/onecodex/onecodex/commit/120d9613 +domain: HTTP Clients +files: +- path: "onecodex/utils.py" + code_changes: + - lines: ["283:284"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [captureException] + target_apis: [capture_exception] + - lines: ["310:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client] + target_apis: [sentry_sdk] + - lines: ["335:339"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [user_context] + target_apis: [set_user] + - lines: ["336:340,342"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument transformation, element name change] + source_apis: [extra_context] + target_apis: [set_extra, set_extra] + - lines: ["384:363"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [captureException] + target_apis: [capture_exception] + - lines: ["385:364-365"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [element name change] + source_apis: [clear] + target_apis: [configure_scope, clear] diff --git a/data/v2/migration/raven__sentry-sdk__pokainc@cfn-cross-region-export__f1120d3.yaml b/data/v2/migration/raven__sentry-sdk__pokainc@cfn-cross-region-export__f1120d3.yaml new file mode 100644 index 0000000..454f76e --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__pokainc@cfn-cross-region-export__f1120d3.yaml @@ -0,0 +1,23 @@ +repo: pokainc/cfn-cross-region-export +commit: f1120d34c2a71686e769995300ac7cf09f858e34 +source: raven +target: sentry-sdk +commit_url: https://github.com/pokainc/cfn-cross-region-export/commit/f1120d34 +domain: Logging/tracing +files: +- path: "exporter/lambda/cross_region_import_replication.py" + code_changes: + - lines: ["21-25:11"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [Client, captureException] + target_apis: [init, AwsLambdaIntegration] + - lines: ["8-9:8-9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client, raven.transport.HTTPTransport] + target_apis: [sentry_sdk, sentry_sdk.integrations.aws_lambda.AwsLambdaIntegration] diff --git a/data/v2/migration/raven__sentry-sdk__samuelcolvin@aiohttp-toolbox__3b7a2a3.yaml b/data/v2/migration/raven__sentry-sdk__samuelcolvin@aiohttp-toolbox__3b7a2a3.yaml new file mode 100644 index 0000000..a63fdb3 --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__samuelcolvin@aiohttp-toolbox__3b7a2a3.yaml @@ -0,0 +1,23 @@ +repo: samuelcolvin/aiohttp-toolbox +commit: 3b7a2a33f2b9eae5edd188752fad73ff36ff7c44 +source: raven +target: sentry-sdk +commit_url: https://github.com/samuelcolvin/aiohttp-toolbox/commit/3b7a2a33 +domain: HTTP Clients +files: +- path: "atoolbox/logs.py" + code_changes: + - lines: ["150:150"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client] + target_apis: [sentry_sdk] + - lines: ["153-158:153-158"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [Client] + target_apis: [init] diff --git a/data/v2/migration/raven__sentry-sdk__teamsempo@sempoblockchain__449990a.yaml b/data/v2/migration/raven__sentry-sdk__teamsempo@sempoblockchain__449990a.yaml new file mode 100644 index 0000000..eb5c4a1 --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__teamsempo@sempoblockchain__449990a.yaml @@ -0,0 +1,69 @@ +repo: teamsempo/sempoblockchain +commit: 449990a2f87b776eb6d498d542469408148c85ce +source: raven +target: sentry-sdk +commit_url: https://github.com/teamsempo/sempoblockchain/commit/449990a2 +domain: HTTP Clients +files: +- path: "app/server/__init__.py" + code_changes: + - lines: ["10:10-11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.contrib.flask.Sentry] + target_apis: [sentry_sdk, sentry_sdk.integrations.flask.FlaskIntegration] + - lines: ["128:129"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [captureException] + target_apis: [capture_exception] + - lines: ["216:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Sentry] + target_apis: [] + - lines: ["89:95"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, element name change] + source_apis: [init_app] + target_apis: [init] +- path: "whatsApp/whatsapp.py" + code_changes: + - lines: ["339:338"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [Client] + target_apis: [init] + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client] + target_apis: [sentry_sdk] +- path: "worker/__init__.py" + code_changes: + - lines: ["2:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.Client] + target_apis: [sentry_sdk] + - lines: ["7:7"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [Client] + target_apis: [init] diff --git a/data/v2/migration/raven__sentry-sdk__thespaghettidetective@thespaghettidetective__b86b375.yaml b/data/v2/migration/raven__sentry-sdk__thespaghettidetective@thespaghettidetective__b86b375.yaml new file mode 100644 index 0000000..e1dcb8b --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__thespaghettidetective@thespaghettidetective__b86b375.yaml @@ -0,0 +1,23 @@ +repo: thespaghettidetective/thespaghettidetective +commit: b86b375952cc3e965c32201caa8094998c56cde7 +source: raven +target: sentry-sdk +commit_url: https://github.com/thespaghettidetective/thespaghettidetective/commit/b86b3759 +domain: Logging/tracing +files: +- path: "web/app/notifications.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven.contrib.django.raven_compat.models.client] + target_apis: [sentry_sdk.capture_exception] + - lines: ["250:250", "256:256", "262:262", "268:268", "44:44", "49:49", "54:54", "60:60", "66:66"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [captureException] + target_apis: [capture_exception] diff --git a/data/v2/migration/raven__sentry-sdk__weasyl@weasyl__d10cb16.yaml b/data/v2/migration/raven__sentry-sdk__weasyl@weasyl__d10cb16.yaml new file mode 100644 index 0000000..4bb7d15 --- /dev/null +++ b/data/v2/migration/raven__sentry-sdk__weasyl@weasyl__d10cb16.yaml @@ -0,0 +1,25 @@ +repo: weasyl/weasyl +commit: d10cb162447d9e3a9506b76054851863b10ff27a +source: raven +target: sentry-sdk +commit_url: https://github.com/weasyl/weasyl/commit/d10cb162 +domain: Logging/tracing +files: +- path: "weasyl/define.py" + code_changes: + - lines: ["988:979"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [log_exc] + target_apis: [capture_exception] +- path: "weasyl/middleware.py" + code_changes: + - lines: ["8-9:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [raven, raven.processors] + target_apis: [sentry_sdk.capture_exception, sentry_sdk.capture_message, sentry_sdk.push_scope, sentry_sdk.set_user] diff --git a/data/v2/migration/redis__aioredis__walletconnect@py-walletconnect-bridge__c2d3db2.yaml b/data/v2/migration/redis__aioredis__walletconnect@py-walletconnect-bridge__c2d3db2.yaml new file mode 100644 index 0000000..9361868 --- /dev/null +++ b/data/v2/migration/redis__aioredis__walletconnect@py-walletconnect-bridge__c2d3db2.yaml @@ -0,0 +1,44 @@ +repo: walletconnect/py-walletconnect-bridge +commit: c2d3db2aa64cccab96d71f8786981fdbb82a2773 +source: redis +target: aioredis +commit_url: https://github.com/walletconnect/py-walletconnect-bridge/commit/c2d3db2a +domain: Database +files: +- path: "balance_bridge/keystore.py" + code_changes: + - lines: ["10:8"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, argument transformation, async transformation, element name change] + source_apis: [StrictRedis] + target_apis: [create_redis] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [redis] + target_apis: [aioredis] + - lines: ["24:62"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation, async transformation] + source_apis: [set] + target_apis: [set] + - lines: ["44:29", "59:44"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [get] + target_apis: [get] + - lines: ["46:31", "63:48"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [delete] + target_apis: [delete] diff --git a/data/v2/migration/requests-oauth2__oauthlib__mozilla@addons-server__5fd17b4.yaml b/data/v2/migration/requests-oauth2__oauthlib__mozilla@addons-server__5fd17b4.yaml new file mode 100644 index 0000000..ef4435e --- /dev/null +++ b/data/v2/migration/requests-oauth2__oauthlib__mozilla@addons-server__5fd17b4.yaml @@ -0,0 +1,23 @@ +repo: mozilla/addons-server +commit: 5fd17b43f241bb83c2cdb1d2d179b3b4369e644f +source: requests-oauth2 +target: oauthlib +commit_url: https://github.com/mozilla/addons-server/commit/5fd17b43 +domain: Auth +files: +- path: "mkt/api/tests/test_oauth.py" + code_changes: + - lines: ["11:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [oauth2] + target_apis: [oauthlib.oauth1] + - lines: ["41:43"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [SignatureMethod_HMAC_SHA1] + target_apis: [SIGNATURE_HMAC] diff --git a/data/v2/migration/requests-oauth2__requests-oauthlib__getsentry@sentry__0bfe540.yaml b/data/v2/migration/requests-oauth2__requests-oauthlib__getsentry@sentry__0bfe540.yaml new file mode 100644 index 0000000..2c66f10 --- /dev/null +++ b/data/v2/migration/requests-oauth2__requests-oauthlib__getsentry@sentry__0bfe540.yaml @@ -0,0 +1,16 @@ +repo: getsentry/sentry +commit: 0bfe540d62bd38483de26796e20ae014b2f06d54 +source: requests-oauth2 +target: requests-oauthlib +commit_url: https://github.com/getsentry/sentry/commit/0bfe540d +domain: Auth +files: +- path: "src/social_auth/backends/__init__.py" + code_changes: + - lines: ["45:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [oauth2.Consumer, oauth2.Token, oauth2.Request] + target_apis: [requests_oauthlib.OAuth1] diff --git a/data/v2/migration/requests-oauth2__requests-oauthlib__gunthercox@chatterbot__6c3b234.yaml b/data/v2/migration/requests-oauth2__requests-oauthlib__gunthercox@chatterbot__6c3b234.yaml new file mode 100644 index 0000000..fe2fb8f --- /dev/null +++ b/data/v2/migration/requests-oauth2__requests-oauthlib__gunthercox@chatterbot__6c3b234.yaml @@ -0,0 +1,44 @@ +repo: gunthercox/chatterbot +commit: 6c3b234d2eb6692976f96ca253b83c73d6fea00c +source: requests-oauth2 +target: requests-oauthlib +commit_url: https://github.com/gunthercox/chatterbot/commit/6c3b234d +domain: Auth +files: +- path: "chatterbot/apis/twitter.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [oauth2] + target_apis: [requests_oauthlib.OAuth1] + - lines: ["6:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Consumer] + target_apis: [] + - lines: ["7:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Token] + target_apis: [] + - lines: ["9:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Client] + target_apis: [] + - lines: [":36", ":49", ":64"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [OAuth1] diff --git a/data/v2/migration/requests-oauth2__requests-oauthlib__sarumont@py-trello__ede0ceb.yaml b/data/v2/migration/requests-oauth2__requests-oauthlib__sarumont@py-trello__ede0ceb.yaml new file mode 100644 index 0000000..6a97003 --- /dev/null +++ b/data/v2/migration/requests-oauth2__requests-oauthlib__sarumont@py-trello__ede0ceb.yaml @@ -0,0 +1,44 @@ +repo: sarumont/py-trello +commit: ede0ceb10b1e08451767f2b709b52445ada72f37 +source: requests-oauth2 +target: requests-oauthlib +commit_url: https://github.com/sarumont/py-trello/commit/ede0ceb1 +domain: Auth +files: +- path: "trello/__init__.py" + code_changes: + - lines: ["51:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Consumer] + target_apis: [] + - lines: ["52:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Token] + target_apis: [] + - lines: ["53:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Client] + target_apis: [] + - lines: ["6:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [oauth2] + target_apis: [requests_oauthlib.OAuth1] + - lines: [":44"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [OAuth1] diff --git a/data/v2/migration/requests-oauth2__requests__sybrenstuvel@flickrapi__c4f8d79.yaml b/data/v2/migration/requests-oauth2__requests__sybrenstuvel@flickrapi__c4f8d79.yaml new file mode 100644 index 0000000..0988ee6 --- /dev/null +++ b/data/v2/migration/requests-oauth2__requests__sybrenstuvel@flickrapi__c4f8d79.yaml @@ -0,0 +1,37 @@ +repo: sybrenstuvel/flickrapi +commit: c4f8d7940d28080bfa358e3460d2f7f6ff2176e4 +source: requests-oauth2 +target: requests +commit_url: https://github.com/sybrenstuvel/flickrapi/commit/c4f8d794 +domain: Auth&HTTP Clients +files: +- path: "flickrapi/auth.py" + code_changes: + - lines: ["111:115"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation, element name change] + source_apis: [Consumer] + target_apis: [OAuth1] + - lines: ["119:122"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [key] + target_apis: [client_key] + - lines: ["73:"] + cardinality: one-to-zero + source_program_elements: [attribute] + target_program_elements: [] + properties: [] + source_apis: [Token] + target_apis: [] + - lines: ["9:13-14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [oauth2] + target_apis: [requests, requests.auth.OAuth1] diff --git a/data/v2/migration/requests__aiohttp__aiortc@aiortc__d30c240.yaml b/data/v2/migration/requests__aiohttp__aiortc@aiortc__d30c240.yaml new file mode 100644 index 0000000..2e7a53f --- /dev/null +++ b/data/v2/migration/requests__aiohttp__aiortc@aiortc__d30c240.yaml @@ -0,0 +1,23 @@ +repo: aiortc/aiortc +commit: d30c24009196f6f520010f7cca1d24e7506163be +source: requests +target: aiohttp +commit_url: https://github.com/aiortc/aiortc/commit/d30c2400 +domain: HTTP Clients +files: +- path: "examples/apprtc/apprtc.py" + code_changes: + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aitohttp] + - lines: ["82-84:82-83,86"] + cardinality: many-to-many + source_program_elements: [function call, function call, function call] + target_program_elements: [function call, function call, function call] + properties: [async transformation, async transformation, element name change, output transformation] + source_apis: [post, raise_for_status, json] + target_apis: [ClientSession, post, text] diff --git a/data/v2/migration/requests__aiohttp__ictu@quality-time__d3a9a16.yaml b/data/v2/migration/requests__aiohttp__ictu@quality-time__d3a9a16.yaml new file mode 100644 index 0000000..9bec2ad --- /dev/null +++ b/data/v2/migration/requests__aiohttp__ictu@quality-time__d3a9a16.yaml @@ -0,0 +1,71 @@ +repo: ictu/quality-time +commit: d3a9a16a72348cece48c9788cf10db6cc043ec7c +source: requests +target: aiohttp +commit_url: https://github.com/ictu/quality-time/commit/d3a9a16a +domain: HTTP client/server +files: +- path: "components/collector/src/base_collectors/source_collector.py" + code_changes: + - lines: ["106:101"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, argument transformation] + source_apis: [get] + target_apis: [get] + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] +- path: "components/collector/src/collector_utilities/functions.py" + code_changes: + - lines: ["18:18"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [text] + target_apis: [text] +- path: "components/collector/src/collector_utilities/type.py" + code_changes: + - lines: ["15:16"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [Response] + target_apis: [ClientResponse] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] +- path: "components/collector/src/source_collectors/api_source_collectors/azure_devops.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] + - lines: ["31:31"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, async transformation] + source_apis: [post] + target_apis: [post] + - lines: ["122:122", "133:133", "157:158", "40:41", "52:53", "93:93"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [json] + target_apis: [json] diff --git a/data/v2/migration/requests__aiohttp__keselekpermen69@userbutt__a2dd44e.yaml b/data/v2/migration/requests__aiohttp__keselekpermen69@userbutt__a2dd44e.yaml new file mode 100644 index 0000000..a780d04 --- /dev/null +++ b/data/v2/migration/requests__aiohttp__keselekpermen69@userbutt__a2dd44e.yaml @@ -0,0 +1,44 @@ +repo: keselekpermen69/userbutt +commit: a2dd44e191e6539011d3ff3a38535cb167ceb2e5 +source: requests +target: aiohttp +commit_url: https://github.com/keselekpermen69/userbutt/commit/a2dd44e1 +domain: HTTP Clients +files: +- path: "userbot/modules/heroku.py" + code_changes: + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] + - lines: ["155:155-156"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["156:157"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [status_code] + target_apis: [status] + - lines: ["159:160"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [reason] + target_apis: [reason] + - lines: ["163:165"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [json] + target_apis: [json] diff --git a/data/v2/migration/requests__aiohttp__paradoxalarminterface@pai__fac6f80.yaml b/data/v2/migration/requests__aiohttp__paradoxalarminterface@pai__fac6f80.yaml new file mode 100644 index 0000000..51d839a --- /dev/null +++ b/data/v2/migration/requests__aiohttp__paradoxalarminterface@pai__fac6f80.yaml @@ -0,0 +1,37 @@ +repo: paradoxalarminterface/pai +commit: fac6f807b02028921310e48d14f3b71b365e283b +source: requests +target: aiohttp +commit_url: https://github.com/paradoxalarminterface/pai/commit/fac6f807 +domain: HTTP Clients +files: +- path: "paradox/connections/ip/connection.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] + - lines: ["346-348:345,347-349"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["349:350"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [status_code] + target_apis: [status] + - lines: ["350:351"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [json] + target_apis: [json] diff --git a/data/v2/migration/requests__aiohttp__raptor123471@dingolingo__1d8923a.yaml b/data/v2/migration/requests__aiohttp__raptor123471@dingolingo__1d8923a.yaml new file mode 100644 index 0000000..a8350da --- /dev/null +++ b/data/v2/migration/requests__aiohttp__raptor123471@dingolingo__1d8923a.yaml @@ -0,0 +1,30 @@ +repo: raptor123471/dingolingo +commit: 1d8923abae93915ad877774e0fdc812d6c53a70b +source: requests +target: aiohttp +commit_url: https://github.com/raptor123471/dingolingo/commit/1d8923ab +domain: HTTP client/server +files: +- path: "musicbot/linkutils.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] + - lines: ["35:36-37", "98:100-101"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["36:38", "99:102"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [function call] + properties: [async transformation, element name change] + source_apis: [content] + target_apis: [text] diff --git a/data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__a5c04bb.yaml b/data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__a5c04bb.yaml new file mode 100644 index 0000000..ef9a85d --- /dev/null +++ b/data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__a5c04bb.yaml @@ -0,0 +1,76 @@ +repo: talkpython/async-techniques-python-course +commit: a5c04bbd9b5614a8fc0317050c01e4c241b1b41d +source: requests +target: aiohttp +commit_url: https://github.com/talkpython/async-techniques-python-course/commit/a5c04bbd +domain: HTTP client/server +files: +- path: "src/10-async-web/acityscape_api/services/location_service.py" + code_changes: + - lines: ["21:22-23"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["24:26"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [json] + target_apis: [json] + - lines: ["4:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] +- path: "src/10-async-web/acityscape_api/services/sun_service.py" + code_changes: + - lines: ["21:21-22"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["24:24"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [json] + target_apis: [json] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] +- path: "src/10-async-web/acityscape_api/services/weather_service.py" + code_changes: + - lines: ["13:13-14"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["16:17"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [json] + target_apis: [json] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] diff --git a/data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__ab4e5fd.yaml b/data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__ab4e5fd.yaml new file mode 100644 index 0000000..86ffef6 --- /dev/null +++ b/data/v2/migration/requests__aiohttp__talkpython@async-techniques-python-course__ab4e5fd.yaml @@ -0,0 +1,30 @@ +repo: talkpython/async-techniques-python-course +commit: ab4e5fdd32982c97e9701d3e1fdb8c39882d4250 +source: requests +target: aiohttp +commit_url: https://github.com/talkpython/async-techniques-python-course/commit/ab4e5fdd +domain: HTTP client/server +files: +- path: "src/04-asyncio/web_scraping/async_scrape/program.py" + code_changes: + - lines: ["10:13-14"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["13:17"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [async transformation] + source_apis: [text] + target_apis: [text] + - lines: ["1:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] diff --git a/data/v2/migration/requests__aiohttp__usergeteam@userge-plugins__80a5434.yaml b/data/v2/migration/requests__aiohttp__usergeteam@userge-plugins__80a5434.yaml new file mode 100644 index 0000000..3983e7a --- /dev/null +++ b/data/v2/migration/requests__aiohttp__usergeteam@userge-plugins__80a5434.yaml @@ -0,0 +1,30 @@ +repo: usergeteam/userge-plugins +commit: 80a54344d8a36252079661cb3486f4a3c33aa092 +source: requests +target: aiohttp +commit_url: https://github.com/usergeteam/userge-plugins/commit/80a54344 +domain: HTTP Clients +files: +- path: "plugins/info.py" + code_changes: + - lines: ["62:64,69"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [async transformation, element name change] + source_apis: [get] + target_apis: [ClientSession, get] + - lines: ["62:70"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [async transformation, element name change] + source_apis: [json] + target_apis: [text] + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [requests] + target_apis: [aiohttp] diff --git a/data/v2/migration/restkit__requests__sporteasy@python-poeditor__5710859.yaml b/data/v2/migration/restkit__requests__sporteasy@python-poeditor__5710859.yaml new file mode 100644 index 0000000..4320491 --- /dev/null +++ b/data/v2/migration/restkit__requests__sporteasy@python-poeditor__5710859.yaml @@ -0,0 +1,51 @@ +repo: sporteasy/python-poeditor +commit: 571085905db10c4ddd07ce83f875ca711000f171 +source: restkit +target: requests +commit_url: https://github.com/sporteasy/python-poeditor/commit/57108590 +domain: HTTP Clients +files: +- path: "poeditor/client.py" + code_changes: + - lines: ["14:15"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [restkit.Resource, restkit.request] + target_apis: [requests] + - lines: ["378:381"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, element name change] + source_apis: [request] + target_apis: [get] + - lines: ["77,80:79-83"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument addition, argument name change, element name change] + source_apis: [Resource, post] + target_apis: [post] + - lines: ["82:85", "85:88"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [status_int] + target_apis: [status_code] + - lines: ["86:89"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [status] + target_apis: [reason] + - lines: ["89:92"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [attribute] + properties: [element name change, output transformation] + source_apis: [body_string] + target_apis: [text] diff --git a/data/v2/migration/retrying__tenacity__intelai@inference-model-manager__71aff3a.yaml b/data/v2/migration/retrying__tenacity__intelai@inference-model-manager__71aff3a.yaml new file mode 100644 index 0000000..c0c01df --- /dev/null +++ b/data/v2/migration/retrying__tenacity__intelai@inference-model-manager__71aff3a.yaml @@ -0,0 +1,71 @@ +repo: intelai/inference-model-manager +commit: 71aff3a0bd1ae2a7d7d91858dcbe721de152693e +source: retrying +target: tenacity +commit_url: https://github.com/intelai/inference-model-manager/commit/71aff3a0 +domain: Utilities +files: +- path: "management/management_api/tenants/tenants_utils.py" + code_changes: + - lines: ["109:108", "129:128"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying.retry] + target_apis: [tenacity.retry, tenacity.stop_after_attempt, tenacity.wait_fixed] +- path: "tests/conftest.py" + code_changes: + - lines: ["120:120"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying.retry] + target_apis: [tenacity.retry, tenacity.stop_after_attempt, tenacity.wait_fixed] +- path: "tests/management_api_tests/context.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying.retry] + target_apis: [tenacity.retry, tenacity.stop_after_attempt, tenacity.wait_fixed] + - lines: ["107:107", "70:70", "90:90"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] +- path: "tests/management_api_tests/endpoints/endpoint_utils.py" + code_changes: + - lines: ["108:108"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying.retry] + target_apis: [tenacity.retry, tenacity.stop_after_attempt] diff --git a/data/v2/migration/retrying__tenacity__openstack@aodh__7587ab9.yaml b/data/v2/migration/retrying__tenacity__openstack@aodh__7587ab9.yaml new file mode 100644 index 0000000..36732ff --- /dev/null +++ b/data/v2/migration/retrying__tenacity__openstack@aodh__7587ab9.yaml @@ -0,0 +1,39 @@ +repo: openstack/aodh +commit: 7587ab9bf362f3ed26c392e89aa4626429d95e7a +source: retrying +target: tenacity +commit_url: https://github.com/openstack/aodh/commit/7587ab9b +domain: Utility +files: +- path: "aodh/coordination.py" + code_changes: + - lines: ["175-179:164-169", "221-222:211-215"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["22:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity] +- path: "aodh/storage/__init__.py" + code_changes: + - lines: ["22:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity] + - lines: ["65-66:64-67"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] diff --git a/data/v2/migration/retrying__tenacity__openstack@ceilometer__380bb26.yaml b/data/v2/migration/retrying__tenacity__openstack@ceilometer__380bb26.yaml new file mode 100644 index 0000000..adfea2c --- /dev/null +++ b/data/v2/migration/retrying__tenacity__openstack@ceilometer__380bb26.yaml @@ -0,0 +1,55 @@ +repo: openstack/ceilometer +commit: 380bb26dbb8aec89ea853d8afd435c213fd72b0c +source: retrying +target: tenacity +commit_url: https://github.com/openstack/ceilometer/commit/380bb26d +domain: Utility +files: +- path: "ceilometer/coordination.py" + code_changes: + - lines: ["154-158:143-148", "200-201:190-194"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity] +- path: "ceilometer/dispatcher/gnocchi.py" + code_changes: + - lines: ["239-241:238-242"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["32:34"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity] +- path: "ceilometer/storage/__init__.py" + code_changes: + - lines: ["21:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity] + - lines: ["80-82:79-83"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] diff --git a/data/v2/migration/retrying__tenacity__openstack@ironic-inspector__f4648fa.yaml b/data/v2/migration/retrying__tenacity__openstack@ironic-inspector__f4648fa.yaml new file mode 100644 index 0000000..c7da325 --- /dev/null +++ b/data/v2/migration/retrying__tenacity__openstack@ironic-inspector__f4648fa.yaml @@ -0,0 +1,23 @@ +repo: openstack/ironic-inspector +commit: f4648facf76ff2ac742fc11bb81880f262e61ee2 +source: retrying +target: tenacity +commit_url: https://github.com/openstack/ironic-inspector/commit/f4648fac +domain: Utility +files: +- path: "ironic_inspector/common/ironic.py" + code_changes: + - lines: ["190-192:190-194"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument addition, argument name change, argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity] diff --git a/data/v2/migration/retrying__tenacity__openstack@ironic__b0607a2.yaml b/data/v2/migration/retrying__tenacity__openstack@ironic__b0607a2.yaml new file mode 100644 index 0000000..cac6119 --- /dev/null +++ b/data/v2/migration/retrying__tenacity__openstack@ironic__b0607a2.yaml @@ -0,0 +1,222 @@ +repo: openstack/ironic +commit: b0607a26687c55548af111b128e49dd1e625ba9f +source: retrying +target: tenacity +commit_url: https://github.com/openstack/ironic/commit/b0607a26 +domain: Utility +files: +- path: "ironic/common/glance_service/image_service.py" + code_changes: + - lines: ["115-120:115-120"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["28:30"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity] +- path: "ironic/common/neutron.py" + code_changes: + - lines: ["19:19-20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] + - lines: ["868-872:869-873", "907-911:908-912"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] +- path: "ironic/conductor/allocations.py" + code_changes: + - lines: ["190-193:190-196"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] +- path: "ironic/conductor/task_manager.py" + code_changes: + - lines: ["111:111"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] + - lines: ["280-283:279-284"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] +- path: "ironic/drivers/modules/agent_base.py" + code_changes: + - lines: ["1174-1178:1174-1179"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["25:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] +- path: "ironic/drivers/modules/agent_client.py" + code_changes: + - lines: ["106-110:106-111", "137-140:138-142"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["23:23"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] + - lines: ["303-306:305-310"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] +- path: "ironic/drivers/modules/agent_power.py" + code_changes: + - lines: ["182-188:182-188"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] +- path: "ironic/drivers/modules/ansible/deploy.py" + code_changes: + - lines: ["29:29"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] + - lines: ["630-634:630-636"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] +- path: "ironic/drivers/modules/drac/job.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] + - lines: ["94-97:94-98"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] +- path: "ironic/drivers/modules/ibmc/utils.py" + code_changes: + - lines: ["136-139:136-140"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["24:24"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] +- path: "ironic/drivers/modules/redfish/boot.py" + code_changes: + - lines: ["158-159:158-161"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] +- path: "ironic/drivers/modules/redfish/utils.py" + code_changes: + - lines: ["24:25"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] + - lines: ["303-307:303-308"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] +- path: "ironic/drivers/modules/storage/cinder.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying] + target_apis: [tenacity, tenacity.retry] + - lines: ["310-313:310-314"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [argument transformation] + source_apis: [retry] + target_apis: [retry] diff --git a/data/v2/migration/retrying__tenacity__pokainc@cfn-cross-region-export__8d0ec68.yaml b/data/v2/migration/retrying__tenacity__pokainc@cfn-cross-region-export__8d0ec68.yaml new file mode 100644 index 0000000..31f05e1 --- /dev/null +++ b/data/v2/migration/retrying__tenacity__pokainc@cfn-cross-region-export__8d0ec68.yaml @@ -0,0 +1,16 @@ +repo: pokainc/cfn-cross-region-export +commit: 8d0ec687838ea69612d7b1236e2341198aef7937 +source: retrying +target: tenacity +commit_url: https://github.com/pokainc/cfn-cross-region-export/commit/8d0ec687 +domain: Utilities +files: +- path: "importer/lambda/cross_region_importer.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [retrying.retry] + target_apis: [tenacity.retry, tenacity.retry_if_exception_type, tenacity.wait_random_exponential] diff --git a/data/v2/migration/rpi.gpio__gpiozero__raspberrypilearning@push-button-stop-motion__0b6cdad.yaml b/data/v2/migration/rpi.gpio__gpiozero__raspberrypilearning@push-button-stop-motion__0b6cdad.yaml new file mode 100644 index 0000000..2522553 --- /dev/null +++ b/data/v2/migration/rpi.gpio__gpiozero__raspberrypilearning@push-button-stop-motion__0b6cdad.yaml @@ -0,0 +1,30 @@ +repo: raspberrypilearning/push-button-stop-motion +commit: 0b6cdadb424feee7d6259966bbc1f6994e30320b +source: rpi.gpio +target: gpiozero +commit_url: https://github.com/raspberrypilearning/push-button-stop-motion/commit/0b6cdadb +domain: Utility +files: +- path: "code/animation.py" + code_changes: + - lines: ["11:12"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [wait_for_edge] + target_apis: [wait_for_press] + - lines: ["2:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [RPi.GPIO] + target_apis: [gpiozero.Button] + - lines: ["4-5:5"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [setmode, setup] + target_apis: [Button] diff --git a/data/v2/migration/ruamel.yaml__pyyaml__cloud-custodian@cloud-custodian__12e3e80.yaml b/data/v2/migration/ruamel.yaml__pyyaml__cloud-custodian@cloud-custodian__12e3e80.yaml new file mode 100644 index 0000000..b273a09 --- /dev/null +++ b/data/v2/migration/ruamel.yaml__pyyaml__cloud-custodian@cloud-custodian__12e3e80.yaml @@ -0,0 +1,34 @@ +repo: cloud-custodian/cloud-custodian +commit: 12e3e8084ddb2e7f5ccbc5ea3c3bd3e4c7e9c207 +source: ruamel.yaml +target: pyyaml +commit_url: https://github.com/cloud-custodian/cloud-custodian/commit/12e3e808 +domain: File reader/writer +files: +- path: "tools/c7n_mailer/c7n_mailer/cli.py" + code_changes: + - lines: ["15:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [ruamel.yaml] +- path: "tools/c7n_mailer/c7n_mailer/replay.py" + code_changes: + - lines: ["25:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [ruamel.yaml] +- path: "tools/c7n_mailer/c7n_mailer/utils.py" + code_changes: + - lines: ["28:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [ruamel.yaml] diff --git a/data/v2/migration/ruamel.yaml__pyyaml__microsoft@nni__b955ac9.yaml b/data/v2/migration/ruamel.yaml__pyyaml__microsoft@nni__b955ac9.yaml new file mode 100644 index 0000000..042065a --- /dev/null +++ b/data/v2/migration/ruamel.yaml__pyyaml__microsoft@nni__b955ac9.yaml @@ -0,0 +1,117 @@ +repo: microsoft/nni +commit: b955ac99a46094d2d701d447e9df07509767cc32 +source: ruamel.yaml +target: pyyaml +commit_url: https://github.com/microsoft/nni/commit/b955ac99 +domain: File reader/writer +files: +- path: "nni/experiment/config/base.py" + code_changes: + - lines: ["75:75"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [load] + target_apis: [safe_load] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [yaml] +- path: "nni/experiment/config/common.py" + code_changes: + - lines: ["121:121"] + cardinality: many-to-one + source_program_elements: [function call, function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [YAML, load] + target_apis: [safe_load] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml.YAML] + target_apis: [yaml] +- path: "nni/tools/nnictl/common_utils.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [yaml] + - lines: ["24:24"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [load] + target_apis: [safe_load] +- path: "nni/tools/package_utils/__init__.py" + code_changes: + - lines: ["218:218"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [load] + target_apis: [safe_load] + - lines: ["229:229"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [dump] + target_apis: [safe_dump] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [yaml] +- path: "test/nni_test/nnitest/run_tests.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [yaml] + - lines: ["83:83"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [dump] + target_apis: [safe_dump] +- path: "test/nni_test/nnitest/utils.py" + code_changes: + - lines: ["12:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ruamel.yaml] + target_apis: [yaml] + - lines: ["46:46"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [load] + target_apis: [safe_load] + - lines: ["51:51"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [dump] + target_apis: [safe_dump] diff --git a/data/v2/migration/simplejson__ujson__covid-projections@covid-data-model__95385ff.yaml b/data/v2/migration/simplejson__ujson__covid-projections@covid-data-model__95385ff.yaml new file mode 100644 index 0000000..4603a6e --- /dev/null +++ b/data/v2/migration/simplejson__ujson__covid-projections@covid-data-model__95385ff.yaml @@ -0,0 +1,16 @@ +repo: covid-projections/covid-data-model +commit: 95385ff8e825098f27b1c5aebe489c95fb84fd33 +source: simplejson +target: ujson +commit_url: https://github.com/covid-projections/covid-data-model/commit/95385ff8 +domain: Serialization +files: +- path: "pyseir/deployment/webui_data_adaptor_v1.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] diff --git a/data/v2/migration/simplejson__ujson__zulip@zulip__222ef67.yaml b/data/v2/migration/simplejson__ujson__zulip@zulip__222ef67.yaml new file mode 100644 index 0000000..6abfe1c --- /dev/null +++ b/data/v2/migration/simplejson__ujson__zulip@zulip__222ef67.yaml @@ -0,0 +1,215 @@ +repo: zulip/zulip +commit: 222ef672b555fda7d6bd35c1db84c8744fd6ecb8 +source: simplejson +target: ujson +commit_url: https://github.com/zulip/zulip/commit/222ef672 +domain: Serialization +files: +- path: "zephyr/context_processors.py" + code_changes: + - lines: ["14:14"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] +- path: "zephyr/lib/bugdown/__init__.py" + code_changes: + - lines: ["10:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] +- path: "zephyr/lib/bugdown/testing_mocks.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] + - lines: ["7:7"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [loads] + target_apis: [loads] +- path: "zephyr/lib/create_user.py" + code_changes: + - lines: ["17:17"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] +- path: "zephyr/lib/event_queue.py" + code_changes: + - lines: ["250:250", "254:254"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] + - lines: ["9:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] +- path: "zephyr/lib/queue.py" + code_changes: + - lines: ["106:106", "121:121"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [loads] + target_apis: [loads] + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] + - lines: ["87:87", "92:92"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] +- path: "zephyr/lib/response.py" + code_changes: + - lines: ["15:15", "23:23"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] +- path: "zephyr/lib/unminify.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] + - lines: ["95:95"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [load] + target_apis: [load] +- path: "zephyr/management/commands/expunge_logs.py" + code_changes: + - lines: ["20:20"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [loads] + target_apis: [loads] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] +- path: "zephyr/management/commands/subscribe_new_users.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] +- path: "zephyr/models.py" + code_changes: + - lines: ["120:120"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] + - lines: ["21:21"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] + - lines: ["342:342"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [loads] + target_apis: [loads] +- path: "zephyr/tornado_callbacks.py" + code_changes: + - lines: ["19:19"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] + - lines: ["355:355"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] +- path: "zephyr/tornadoviews.py" + code_changes: + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [simplejson] + target_apis: [ujson] + - lines: ["30:30"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [loads] + target_apis: [loads] diff --git a/data/v2/migration/slackclient__slack-sdk__alice-biometrics@petisco__9abf7b1.yaml b/data/v2/migration/slackclient__slack-sdk__alice-biometrics@petisco__9abf7b1.yaml new file mode 100644 index 0000000..b0ae835 --- /dev/null +++ b/data/v2/migration/slackclient__slack-sdk__alice-biometrics@petisco__9abf7b1.yaml @@ -0,0 +1,48 @@ +repo: alice-biometrics/petisco +commit: 9abf7b1f6ef8c55bdddcb9a5c2eff513f6a93130 +source: slackclient +target: slack-sdk +commit_url: https://github.com/alice-biometrics/petisco/commit/9abf7b1f +domain: API wrapper +files: +- path: "petisco/extra/slack/application/notifier/slack_notifier.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.WebClient] + target_apis: [slack.WebClient] + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.errors.SlackApiError] + target_apis: [slack_sdk.errors.SlackApiError] +- path: "petisco/extra/slack/is_slack_available.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack] + target_apis: [slack_sdk] +- path: "petisco/legacy/notifier/infrastructure/slack/slack_notifier.py" + code_changes: + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.WebClient] + target_apis: [slack.WebClient] + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.errors.SlackApiError] + target_apis: [slack_sdk.errors.SlackApiError] diff --git a/data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-events-api__813214e.yaml b/data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-events-api__813214e.yaml new file mode 100644 index 0000000..01cb294 --- /dev/null +++ b/data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-events-api__813214e.yaml @@ -0,0 +1,43 @@ +repo: slackapi/python-slack-events-api +commit: 813214e403c800722dd5a92449cb0a49b8b73abc +source: slackclient +target: slack-sdk +commit_url: https://github.com/slackapi/python-slack-events-api/commit/813214e4 +domain: API wrapper +files: +- path: "example/blueprint/example.py" + code_changes: + - lines: ["12:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.WebClient] + target_apis: [slack_sdk.web.WebClient] +- path: "example/current_app/main.py" + code_changes: + - lines: ["9:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.WebClient] + target_apis: [slack_sdk.web.WebClient] +- path: "example/example.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.WebClient] + target_apis: [slack_sdk.web.WebClient] +- path: "example/working_with_proxy/example.py" + code_changes: + - lines: ["12:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.WebClient] + target_apis: [slack_sdk.web.WebClient] diff --git a/data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-sdk__5f4d92a.yaml b/data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-sdk__5f4d92a.yaml new file mode 100644 index 0000000..9d5baad --- /dev/null +++ b/data/v2/migration/slackclient__slack-sdk__slackapi@python-slack-sdk__5f4d92a.yaml @@ -0,0 +1,39 @@ +repo: slackapi/python-slack-sdk +commit: 5f4d92a8048814fc4938753594e74d7cfc74c27a +source: slackclient +target: slack-sdk +commit_url: https://github.com/slackapi/python-slack-sdk/commit/5f4d92a8 +domain: API wrapper +files: +- path: "tutorial/PythOnBoardingBot/app.py" + code_changes: + - lines: ["4:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack.WebClient] + target_apis: [slack_sdk.web.WebClient] +- path: "tutorial/PythOnBoardingBot/async_app.py" + code_changes: + - lines: ["146:147"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [RTMClient] + target_apis: [RTMClient] + - lines: ["123:124", "42:43", "65:66", "94:95"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [] + source_apis: [run_on] + target_apis: [run_on] + - lines: ["7:7-8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack] + target_apis: [slack_sdk.web.WebClient, slack_sdk.rtm.RTMClient] diff --git a/data/v2/migration/slackclient__slack-sdk__zulip@python-zulip-api__2d9cf64.yaml b/data/v2/migration/slackclient__slack-sdk__zulip@python-zulip-api__2d9cf64.yaml new file mode 100644 index 0000000..2f3cfa8 --- /dev/null +++ b/data/v2/migration/slackclient__slack-sdk__zulip@python-zulip-api__2d9cf64.yaml @@ -0,0 +1,37 @@ +repo: zulip/python-zulip-api +commit: 2d9cf64db860ab5e5eabb8151254b0f3dab609bd +source: slackclient +target: slack-sdk +commit_url: https://github.com/zulip/python-zulip-api/commit/2d9cf64d +domain: API wrapper +files: +- path: "zulip/integrations/bridge_with_slack/run-slack-bridge" + code_changes: + - lines: ["10:10-11"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [slack] + target_apis: [slack_sdk, slack_sdk.rtm.RTMClient] + - lines: ["47:48"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [RTMClient] + target_apis: [RTMClient] + - lines: ["50:51"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [WebClient] + target_apis: [WebClient] + - lines: ["84:85"] + cardinality: one-to-one + source_program_elements: [decorator] + target_program_elements: [decorator] + properties: [] + source_apis: [run_on] + target_apis: [run_on] diff --git a/data/v2/migration/smbus-cffi__smbus2__pimoroni@inky__cba3651.yaml b/data/v2/migration/smbus-cffi__smbus2__pimoroni@inky__cba3651.yaml new file mode 100644 index 0000000..51c72fa --- /dev/null +++ b/data/v2/migration/smbus-cffi__smbus2__pimoroni@inky__cba3651.yaml @@ -0,0 +1,32 @@ +repo: pimoroni/inky +commit: cba36514eb8c881f8bd1d92b0b6a5bf12b4b72fb +source: smbus-cffi +target: smbus2 +commit_url: https://github.com/pimoroni/inky/commit/cba36514 +domain: Utility +files: +- path: "library/inky/eeprom.py" + code_changes: + - lines: ["7:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [smbus] + target_apis: [smbus2.SMBus] + - lines: ["98:98"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [SMBus] + target_apis: [SMBus] +- path: "library/inky/inky.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [smbus] + target_apis: [smbus2.SMBus] diff --git a/data/v2/migration/sphinx-rtd-theme__edx-sphinx-theme__edx@ecommerce__c1e120f.yaml b/data/v2/migration/sphinx-rtd-theme__edx-sphinx-theme__edx@ecommerce__c1e120f.yaml new file mode 100644 index 0000000..62882b0 --- /dev/null +++ b/data/v2/migration/sphinx-rtd-theme__edx-sphinx-theme__edx@ecommerce__c1e120f.yaml @@ -0,0 +1,23 @@ +repo: edx/ecommerce +commit: c1e120fbdbbf99c9d591698d585af802a2079b69 +source: sphinx-rtd-theme +target: edx-sphinx-theme +commit_url: https://github.com/edx/ecommerce/commit/c1e120fb +domain: Documentation +files: +- path: "docs/conf.py" + code_changes: + - lines: ["21:17"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [sphinx_rtd_theme] + target_apis: [edx_theme] + - lines: ["23:111"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [get_html_theme_path] + target_apis: [get_html_theme_path] diff --git a/data/v2/migration/sphinx-rtd-theme__guzzle-sphinx-theme__bashtage@arch__3620700.yaml b/data/v2/migration/sphinx-rtd-theme__guzzle-sphinx-theme__bashtage@arch__3620700.yaml new file mode 100644 index 0000000..4d2dd25 --- /dev/null +++ b/data/v2/migration/sphinx-rtd-theme__guzzle-sphinx-theme__bashtage@arch__3620700.yaml @@ -0,0 +1,23 @@ +repo: bashtage/arch +commit: 3620700332f821ba84bcee1c4bfd53118e4e90a1 +source: sphinx-rtd-theme +target: guzzle-sphinx-theme +commit_url: https://github.com/bashtage/arch/commit/36207003 +domain: Documentation +files: +- path: "doc/source/conf.py" + code_changes: + - lines: ["123:121"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [sphinx_rtd_theme] + target_apis: [guzzle_sphinx_theme] + - lines: ["126:124"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [get_html_theme_path] + target_apis: [html_theme_path] diff --git a/data/v2/migration/suds-py3__zeep__whynothugo@django-afip__827dd9f.yaml b/data/v2/migration/suds-py3__zeep__whynothugo@django-afip__827dd9f.yaml new file mode 100644 index 0000000..8cbd3dd --- /dev/null +++ b/data/v2/migration/suds-py3__zeep__whynothugo@django-afip__827dd9f.yaml @@ -0,0 +1,32 @@ +repo: whynothugo/django-afip +commit: 827dd9f05a0ab517c7f4833754c0d60ddee48f56 +source: suds-py3 +target: zeep +commit_url: https://github.com/whynothugo/django-afip/commit/827dd9f0 +domain: HTTP Clients +files: +- path: "django_afip/clients.py" + code_changes: + - lines: ["3:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [suds.Client] + target_apis: [zeep.Client] +- path: "django_afip/models.py" + code_changes: + - lines: ["3:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [suds] + target_apis: [zeep.exceptions.Fault] + - lines: ["506:506"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [WebFault] + target_apis: [Fault] diff --git a/data/v2/migration/suds__zeep__hbldh@pybankid__79e424c.yaml b/data/v2/migration/suds__zeep__hbldh@pybankid__79e424c.yaml new file mode 100644 index 0000000..ae8d473 --- /dev/null +++ b/data/v2/migration/suds__zeep__hbldh@pybankid__79e424c.yaml @@ -0,0 +1,37 @@ +repo: hbldh/pybankid +commit: 79e424cef579d6bffc1e40048e46febbd53aded5 +source: suds +target: zeep +commit_url: https://github.com/hbldh/pybankid/commit/79e424ce +domain: HTTP Clients +files: +- path: "bankid/client.py" + code_changes: + - lines: ["131:131"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [Collect] + target_apis: [Collect] + - lines: ["25-29:24-26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [suds.client.Client, suds.transport.http.HttpAuthenticated, suds.transport.Reply, suds.WebFault, suds.sax.text.Text] + target_apis: [zeep.Client, zeep.transports.Transport, zeep.exceptions.Error] + - lines: ["66-67:67"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [Client] + target_apis: [Client] + - lines: ["113:113", "132:132", "87:87"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [WebFault] + target_apis: [Error] diff --git a/data/v2/migration/suds__zeep__openstate@open-raadsinformatie__b56e481.yaml b/data/v2/migration/suds__zeep__openstate@open-raadsinformatie__b56e481.yaml new file mode 100644 index 0000000..7bdc51a --- /dev/null +++ b/data/v2/migration/suds__zeep__openstate@open-raadsinformatie__b56e481.yaml @@ -0,0 +1,23 @@ +repo: openstate/open-raadsinformatie +commit: b56e48128d3551841287efdeebfb3a11f378eb6e +source: suds +target: zeep +commit_url: https://github.com/openstate/open-raadsinformatie/commit/b56e4812 +domain: HTTP Clients +files: +- path: "ocd_backend/extractors/ibabs.py" + code_changes: + - lines: ["35:37-39"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call] + properties: [argument addition, element name change] + source_apis: [Client, set_options] + target_apis: [Client, Settings] + - lines: ["4:4-5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [suds.client.Client] + target_apis: [zeep.client.Client, zeep.client.Settings, zeep.helpers.serialize_object] diff --git a/data/v2/migration/tables__h5py__yoseflab@scvi__35163f0.yaml b/data/v2/migration/tables__h5py__yoseflab@scvi__35163f0.yaml new file mode 100644 index 0000000..61880ec --- /dev/null +++ b/data/v2/migration/tables__h5py__yoseflab@scvi__35163f0.yaml @@ -0,0 +1,23 @@ +repo: yoseflab/scvi +commit: 35163f01deaa5db099b52683453a5fc49f064e11 +source: tables +target: h5py +commit_url: https://github.com/yoseflab/scvi/commit/35163f01 +domain: Filesystem +files: +- path: "scvi/dataset/brain_large.py" + code_changes: + - lines: ["20:68"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [open_file] + target_apis: [File] + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [tables] + target_apis: [h5py] diff --git a/data/v2/migration/toml__tomlkit__greenbone@python-gvm__75a11ed.yaml b/data/v2/migration/toml__tomlkit__greenbone@python-gvm__75a11ed.yaml new file mode 100644 index 0000000..91218e0 --- /dev/null +++ b/data/v2/migration/toml__tomlkit__greenbone@python-gvm__75a11ed.yaml @@ -0,0 +1,23 @@ +repo: greenbone/python-gvm +commit: 75a11ed482b70b5ffceaac939294ebaad2d7fe58 +source: toml +target: tomlkit +commit_url: https://github.com/greenbone/python-gvm/commit/75a11ed4 +domain: Filesystem +files: +- path: "gvm/version.py" + code_changes: + - lines: ["27:27"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [toml] + target_apis: [tomlkit] + - lines: ["74:74"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [loads] + target_apis: [parse] diff --git a/data/v2/migration/toolz__cytoolz__nlesc@xtas__0dbf388.yaml b/data/v2/migration/toolz__cytoolz__nlesc@xtas__0dbf388.yaml new file mode 100644 index 0000000..d67ea12 --- /dev/null +++ b/data/v2/migration/toolz__cytoolz__nlesc@xtas__0dbf388.yaml @@ -0,0 +1,25 @@ +repo: nlesc/xtas +commit: 0dbf3884e1a63065efc1523505348a343a1c2764 +source: toolz +target: cytoolz +commit_url: https://github.com/nlesc/xtas/commit/0dbf3884 +domain: Utility +files: +- path: "xtas/tasks/cluster.py" + code_changes: + - lines: ["11:10"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [toolz] + target_apis: [cytoolz] +- path: "xtas/tasks/single.py" + code_changes: + - lines: ["18:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [toolz.identity, toolz.pipe] + target_apis: [cytoolz.identity, cytoolz.pipe] diff --git a/data/v2/migration/trollius__asyncio__popupcad@popupcad__d0526f6.yaml b/data/v2/migration/trollius__asyncio__popupcad@popupcad__d0526f6.yaml new file mode 100644 index 0000000..7f98fb6 --- /dev/null +++ b/data/v2/migration/trollius__asyncio__popupcad@popupcad__d0526f6.yaml @@ -0,0 +1,16 @@ +repo: popupcad/popupcad +commit: d0526f68ebc8ddafbaa0fd7a3abf238d196b587d +source: trollius +target: asyncio +commit_url: https://github.com/popupcad/popupcad/commit/d0526f68 +domain: Utility +files: +- path: "popupcad_gazebo/gazebo_controller.py" + code_changes: + - lines: ["9-10:9"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [trollius] + target_apis: [asyncio] diff --git a/data/v2/migration/twitter__tweepy__cloudbotirc@cloudbot__f824322.yaml b/data/v2/migration/twitter__tweepy__cloudbotirc@cloudbot__f824322.yaml new file mode 100644 index 0000000..b5fd526 --- /dev/null +++ b/data/v2/migration/twitter__tweepy__cloudbotirc@cloudbot__f824322.yaml @@ -0,0 +1,135 @@ +repo: cloudbotirc/cloudbot +commit: f82432236f86ae0139a4f910394e453d790c28c6 +source: twitter +target: tweepy +commit_url: https://github.com/cloudbotirc/cloudbot/commit/f8243223 +domain: Utility +files: +- path: "plugins/twitter.py" + code_changes: + - lines: ["100:102", "140:155", "78:78", "97:99"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [code] + target_apis: [code] + - lines: ["100:102", "78:78"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change, output transformation] + source_apis: [response_data] + target_apis: ["TweepError['message']"] + - lines: ["115:120"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [tweets] + target_apis: [search] + - lines: ["138:153"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [show] + target_apis: [get_user] + - lines: ["139:154", "55:45", "74:74", "96:98"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [TwitterHTTPError] + target_apis: [TweepError] + - lines: ["145:160"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [verified] + target_apis: [verified] + - lines: ["150:165", "151:166"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [location] + target_apis: [location] + - lines: ["155:170", "156:171"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [description] + target_apis: [description] + - lines: ["160-161:176-177"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [screen_name] + target_apis: [screen_name] + - lines: ["160-161:176-177"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [name] + target_apis: [name] + - lines: ["160-161:176-177"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [statuses_count] + target_apis: [statuses_count] + - lines: ["160-161:176-177"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [followers_count] + target_apis: [followers_count] + - lines: ["26:27-28,30"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, function call, function call] + properties: [element name change] + source_apis: [Twitter, OAuth] + target_apis: [OAuthHandler, set_access_token, API] + - lines: ["30:44"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [output transformation] + source_apis: [user] + target_apis: [user] + - lines: ["5-6:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [twitter.Twitter, twitter.OAuth] + target_apis: [tweepy] + - lines: ["54:43", "73:73"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, element name change] + source_apis: [show] + target_apis: [get_status] + - lines: ["75:75"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change, output transformation] + source_apis: [code] + target_apis: ["TweepError['code']"] + - lines: ["95:105"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument name change, argument transformation] + source_apis: [user_timeline] + target_apis: [user_timeline] diff --git a/data/v2/migration/twitter__tweepy__huntwelch@mongobot__bea008a.yaml b/data/v2/migration/twitter__tweepy__huntwelch@mongobot__bea008a.yaml new file mode 100644 index 0000000..81c7280 --- /dev/null +++ b/data/v2/migration/twitter__tweepy__huntwelch@mongobot__bea008a.yaml @@ -0,0 +1,23 @@ +repo: huntwelch/mongobot +commit: bea008ae61e1ea8304f429623ad87b036ac3649a +source: twitter +target: tweepy +commit_url: https://github.com/huntwelch/mongobot/commit/bea008ae +domain: Utility +files: +- path: "brainmeats/twitting.py" + code_changes: + - lines: ["11-14:11,19-20"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call, function call] + properties: [argument name change, element name change] + source_apis: [Api] + target_apis: [OAuthHandler, set_access_token, API] + - lines: ["1:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [twitter] + target_apis: [tweepy] diff --git a/data/v2/migration/ufolib__fonttools__googlefonts@cu2qu__3543e4f.yaml b/data/v2/migration/ufolib__fonttools__googlefonts@cu2qu__3543e4f.yaml new file mode 100644 index 0000000..13bcb46 --- /dev/null +++ b/data/v2/migration/ufolib__fonttools__googlefonts@cu2qu__3543e4f.yaml @@ -0,0 +1,32 @@ +repo: googlefonts/cu2qu +commit: 3543e4f24e3b6246deb206ca53c03e00d003497b +source: ufolib +target: fonttools +commit_url: https://github.com/googlefonts/cu2qu/commit/3543e4f2 +domain: Filesystem +files: +- path: "Lib/cu2qu/pens.py" + code_changes: + - lines: ["5:5"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ufoLib.pointPen.BasePointToSegmentPen] + target_apis: [fontTools.pens.pointPen.BasePointToSegmentPen] + - lines: ["6:6"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ufoLib.pointPen.ReverseContourPointPen] + target_apis: [fontTools.pens.pointPen.ReverseContourPointPen] +- path: "tests/__init__.py" + code_changes: + - lines: ["2:2"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ufoLib.glifLib.GlyphSet] + target_apis: [fontTools.ufoLib.glifLib.GlyphSet] diff --git a/data/v2/migration/ujson__rapidjson__htrc@htrc-feature-reader__7eae68a.yaml b/data/v2/migration/ujson__rapidjson__htrc@htrc-feature-reader__7eae68a.yaml new file mode 100644 index 0000000..474dbd5 --- /dev/null +++ b/data/v2/migration/ujson__rapidjson__htrc@htrc-feature-reader__7eae68a.yaml @@ -0,0 +1,16 @@ +repo: htrc/htrc-feature-reader +commit: 7eae68aa368f3e1bc41b36a4f504f8bbe6ff46c8 +source: ujson +target: rapidjson +commit_url: https://github.com/htrc/htrc-feature-reader/commit/7eae68aa +domain: Serialization +files: +- path: "htrc_features/feature_reader.py" + code_changes: + - lines: ["16:16"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ujson] + target_apis: [rapidjson] diff --git a/data/v2/migration/ujson__rapidjson__kinto@kinto__951dd25.yaml b/data/v2/migration/ujson__rapidjson__kinto@kinto__951dd25.yaml new file mode 100644 index 0000000..c597dbb --- /dev/null +++ b/data/v2/migration/ujson__rapidjson__kinto@kinto__951dd25.yaml @@ -0,0 +1,23 @@ +repo: kinto/kinto +commit: 951dd25ca87f6e4b47a87d254cc187331c4d031c +source: ujson +target: rapidjson +commit_url: https://github.com/kinto/kinto/commit/951dd25c +domain: Serialization +files: +- path: "kinto/core/utils.py" + code_changes: + - lines: ["12:38"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [dumps] + target_apis: [dumps] + - lines: ["14:14"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ujson] + target_apis: [rapidjso] diff --git a/data/v2/migration/ujson__rapidjson__murthylab@sleap__50721de.yaml b/data/v2/migration/ujson__rapidjson__murthylab@sleap__50721de.yaml new file mode 100644 index 0000000..e0e5fa5 --- /dev/null +++ b/data/v2/migration/ujson__rapidjson__murthylab@sleap__50721de.yaml @@ -0,0 +1,23 @@ +repo: murthylab/sleap +commit: 50721de04719ea3064650cacba3ffba6456e69b7 +source: ujson +target: rapidjson +commit_url: https://github.com/murthylab/sleap/commit/50721de0 +domain: Serialization +files: +- path: "sleap/io/dataset.py" + code_changes: + - lines: ["20:20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [ujson] + target_apis: [rapidjson] + - lines: ["21:46"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [] + source_apis: [loads] + target_apis: [loads] diff --git a/data/v2/migration/umsgpack__msgpack__logicaldash@lise__028d0b3.yaml b/data/v2/migration/umsgpack__msgpack__logicaldash@lise__028d0b3.yaml new file mode 100644 index 0000000..342e581 --- /dev/null +++ b/data/v2/migration/umsgpack__msgpack__logicaldash@lise__028d0b3.yaml @@ -0,0 +1,58 @@ +repo: logicaldash/lise +commit: 028d0b34a4dadc59b18c88fa3381967c23245e63 +source: umsgpack +target: msgpack +commit_url: https://github.com/logicaldash/lise/commit/028d0b34 +domain: Serialization +files: +- path: "LiSE/LiSE/engine.py" + code_changes: + - lines: ["13:13"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [umsgpack] + target_apis: [msgpack] + - lines: ["184:184", "187-189:187-189", "192-194:192-194", "197-199:197-199", "202:202", "205:205", "208:208", "211-213:211-213", "216-222:216-222", "225:225", "385:390"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [Ext] + target_apis: [ExtType] + - lines: ["184:184", "187-189:187-189", "192-194:192-194", "197-199:197-199", "202:202", "205:205", "208:208", "211-213:211-213"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument name change] + source_apis: [packb] + target_apis: [packb] + - lines: ["222:222", "225:225"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition] + source_apis: [packb] + target_apis: [packb] + - lines: ["228:228", "237:237", "252:252", "267:267", "297:297", "300:300", "303:303", "350:350", "395:407"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument name change, argument transformation] + source_apis: [unpackb] + target_apis: [unpackb] + - lines: ["282:282", "285:285", "288:288", "291:291", "294:294"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation] + source_apis: [unpackb] + target_apis: [unpackb] + - lines: ["392:404"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument name change, argument transformation] + source_apis: [packb] + target_apis: [packb] diff --git a/data/v2/migration/unicodecsv__csv__cfpb@cfgov-refresh__b4beec3.yaml b/data/v2/migration/unicodecsv__csv__cfpb@cfgov-refresh__b4beec3.yaml new file mode 100644 index 0000000..7fdca3b --- /dev/null +++ b/data/v2/migration/unicodecsv__csv__cfpb@cfgov-refresh__b4beec3.yaml @@ -0,0 +1,96 @@ +repo: cfpb/cfgov-refresh +commit: b4beec37d768262df8d6a0bb37707bb5d54f3bf9 +source: unicodecsv +target: csv +commit_url: https://github.com/cfpb/cfgov-refresh/commit/b4beec37 +domain: Filesystem +files: +- path: "cfgov/ask_cfpb/scripts/export_ask_data.py" + code_changes: + - lines: ["152:145"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [writer] + target_apis: [writer] + - lines: ["7:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unicodecsv] + target_apis: [unicodecsv] +- path: "cfgov/data_research/mortgage_utilities/fips_meta.py" + code_changes: + - lines: ["214:213"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [DictReader] + target_apis: [DictReader] + - lines: ["5:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unicodecsv] + target_apis: [unicodecsv] +- path: "cfgov/data_research/mortgage_utilities/s3_utils.py" + code_changes: + - lines: ["24:24"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [DictReader] + target_apis: [DictReader] + - lines: ["8:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unicodecsv] + target_apis: [unicodecsv] +- path: "cfgov/data_research/scripts/export_public_csvs.py" + code_changes: + - lines: ["160:161", "43:43"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument transformation] + source_apis: [writer] + target_apis: [writer] + - lines: ["5:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unicodecsv] + target_apis: [unicodecsv] +- path: "cfgov/data_research/scripts/process_mortgage_data.py" + code_changes: + - lines: ["7:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unicodecsv] + target_apis: [unicodecsv] +- path: "cfgov/scripts/export_enforcement_actions.py" + code_changes: + - lines: ["105:100"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [writer] + target_apis: [writer] + - lines: ["8:1"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unicodecsv] + target_apis: [unicodecsv] diff --git a/data/v2/migration/unicodecsv__csv__seed-platform@seed__119ba4b.yaml b/data/v2/migration/unicodecsv__csv__seed-platform@seed__119ba4b.yaml new file mode 100644 index 0000000..00981d3 --- /dev/null +++ b/data/v2/migration/unicodecsv__csv__seed-platform@seed__119ba4b.yaml @@ -0,0 +1,23 @@ +repo: seed-platform/seed +commit: 119ba4b7e75f38785c249fc635addb538d2877d9 +source: unicodecsv +target: csv +commit_url: https://github.com/seed-platform/seed/commit/119ba4b7 +domain: Filesystem +files: +- path: "seed/lib/mcm/reader.py" + code_changes: + - lines: ["18:18"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unicodecsv.DictReader, unicodecsv.Sniffer] + target_apis: [csv.DictReader, csv.Sniffer] + - lines: ["205:198"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion] + source_apis: [DictReader] + target_apis: [DictReader] diff --git a/data/v2/migration/unipath__pathlib__studentenportal@web__4842cff.yaml b/data/v2/migration/unipath__pathlib__studentenportal@web__4842cff.yaml new file mode 100644 index 0000000..24d0ecc --- /dev/null +++ b/data/v2/migration/unipath__pathlib__studentenportal@web__4842cff.yaml @@ -0,0 +1,30 @@ +repo: studentenportal/web +commit: 4842cff0ea80d0e29fe541ab096803c321a6fffd +source: unipath +target: pathlib +commit_url: https://github.com/studentenportal/web/commit/4842cff0 +domain: Filesystem +files: +- path: "config/settings.py" + code_changes: + - lines: ["24:24"] + cardinality: many-to-many + source_program_elements: [function call, function call] + target_program_elements: [function call, attribute] + properties: [argument deletion, element name change] + source_apis: [Path, ancestor] + target_apis: [Path, parents] + - lines: ["84:", "95:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [child] + target_apis: [] + - lines: ["8:8"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [unipath.Path] + target_apis: [pathlib.Path] diff --git a/data/v2/migration/urllib3__requests__byrnereese@uphold-sdk-python__14fd085.yaml b/data/v2/migration/urllib3__requests__byrnereese@uphold-sdk-python__14fd085.yaml new file mode 100644 index 0000000..4ad966b --- /dev/null +++ b/data/v2/migration/urllib3__requests__byrnereese@uphold-sdk-python__14fd085.yaml @@ -0,0 +1,44 @@ +repo: byrnereese/uphold-sdk-python +commit: 14fd08502a37cd98aaf4570f53d4082b3dafe3dd +source: urllib3 +target: requests +commit_url: https://github.com/byrnereese/uphold-sdk-python/commit/14fd0850 +domain: HTTP Clients +files: +- path: "bitreserve/bitreserve.py" + code_changes: + - lines: ["22:22"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [urllib3] + target_apis: [requests] + - lines: ["254:250"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [request_encode_body] + target_apis: [post] + - lines: ["255:251", "270:266"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [] + source_apis: [SSLError] + target_apis: [SSLError] + - lines: ["269:265"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [request] + target_apis: [get] + - lines: ["36-39:35"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [PoolManager] + target_apis: [Session] diff --git a/data/v2/migration/urllib3__requests__canonical@cloud-init__0fc887d.yaml b/data/v2/migration/urllib3__requests__canonical@cloud-init__0fc887d.yaml new file mode 100644 index 0000000..c18dce8 --- /dev/null +++ b/data/v2/migration/urllib3__requests__canonical@cloud-init__0fc887d.yaml @@ -0,0 +1,72 @@ +repo: canonical/cloud-init +commit: 0fc887d97626132e9024490b271888bed162c867 +source: urllib3 +target: requests +commit_url: https://github.com/canonical/cloud-init/commit/0fc887d9 +domain: HTTP Clients +files: +- path: "cloudinit/url_helper.py" + code_changes: + - lines: ["179:213"] + cardinality: one-to-one + source_program_elements: [exception] + target_program_elements: [exception] + properties: [element name change] + source_apis: [HTTPError] + target_apis: [RequestException] + - lines: ["28-30:25-26"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [urllib3.exceptions, urllib3.connectionpool, urllib3.util] + target_apis: [requests, requests.exceptions] + - lines: ["75:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [parse_url] + target_apis: [] + - lines: ["76:"] + cardinality: one-to-zero + source_program_elements: [attribute] + target_program_elements: [] + properties: [] + source_apis: [scheme] + target_apis: [] + - lines: ["80:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [connection_from_url] + target_apis: [] + - lines: ["90:"] + cardinality: one-to-zero + source_program_elements: [attribute] + target_program_elements: [] + properties: [] + source_apis: [request_uri] + target_apis: [] + - lines: [":132"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [request] + - lines: [":133"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [exception] + properties: [] + source_apis: [] + target_apis: [RequestException] + - lines: [":138"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [raise_for_status] diff --git a/data/v2/migration/urllib3__requests__finish06@pyunifi__3e53482.yaml b/data/v2/migration/urllib3__requests__finish06@pyunifi__3e53482.yaml new file mode 100644 index 0000000..c7aaef9 --- /dev/null +++ b/data/v2/migration/urllib3__requests__finish06@pyunifi__3e53482.yaml @@ -0,0 +1,44 @@ +repo: finish06/pyunifi +commit: 3e534821de914f023995719060a8723f6186bef6 +source: urllib3 +target: requests +commit_url: https://github.com/finish06/pyunifi/commit/3e534821 +domain: HTTP Clients +files: +- path: "pyunifi/controller.py" + code_changes: + - lines: ["26:4"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [urllib3] + target_apis: [requests] + - lines: [":124", ":279", ":85"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [post] + - lines: [":294", ":81"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [get] + - lines: [":59"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [disable_warnings] + - lines: [":61"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [Session] diff --git a/data/v2/migration/urllib3__requests__mixpanel@mixpanel-python__e8a9330.yaml b/data/v2/migration/urllib3__requests__mixpanel@mixpanel-python__e8a9330.yaml new file mode 100644 index 0000000..fdd33ac --- /dev/null +++ b/data/v2/migration/urllib3__requests__mixpanel@mixpanel-python__e8a9330.yaml @@ -0,0 +1,67 @@ +repo: mixpanel/mixpanel-python +commit: e8a9330448f8fd4ec2cdb1ab35e0de9a05d9717f +source: urllib3 +target: requests +commit_url: https://github.com/mixpanel/mixpanel-python/commit/e8a93304 +domain: HTTP Clients +files: +- path: "mixpanel/__init__.py" + code_changes: + - lines: ["568:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [disable_warnings] + target_apis: [] + - lines: ["571-574:570-571"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument deletion, element name change] + source_apis: [PoolManager] + target_apis: [HTTPAdapter] + - lines: ["614:612"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument transformation, element name change] + source_apis: [make_headers] + target_apis: [HTTPBasicAuth] + - lines: ["617-622:615-620"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [argument addition, argument deletion, element name change] + source_apis: [request] + target_apis: [post] + - lines: [":24-25"] + cardinality: not applicable + source_program_elements: [] + target_program_elements: [import] + properties: [] + source_apis: [] + target_apis: [requests, requests.auth.HTTPBasicAuth] + - lines: [":574"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [Session] + - lines: [":575"] + cardinality: zero-to-one + source_program_elements: [] + target_program_elements: [function call] + properties: [] + source_apis: [] + target_apis: [mount] +- path: "test_mixpanel.py" + code_changes: + - lines: ["13:"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [] + properties: [] + source_apis: [urllib3] + target_apis: [] diff --git a/data/v2/migration/watchdog__pyinotify__onitu@onitu__04575c8.yaml b/data/v2/migration/watchdog__pyinotify__onitu@onitu__04575c8.yaml new file mode 100644 index 0000000..1c93afa --- /dev/null +++ b/data/v2/migration/watchdog__pyinotify__onitu@onitu__04575c8.yaml @@ -0,0 +1,16 @@ +repo: onitu/onitu +commit: 04575c8dab8d632acc40fc30fd42046cdfca36db +source: watchdog +target: pyinotify +commit_url: https://github.com/onitu/onitu/commit/04575c8d +domain: Filesystem +files: +- path: "onitu/drivers/local_storage/local_storage.py" + code_changes: + - lines: ["4-5:3"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [watchdog.observers.Observer, watchdog.events.FileSystemEventHandler] + target_apis: [pyinotify] diff --git a/data/v2/migration/webapp2__flask__c4rlo@vimhelp__7a5fadf.yaml b/data/v2/migration/webapp2__flask__c4rlo@vimhelp__7a5fadf.yaml new file mode 100644 index 0000000..10d5409 --- /dev/null +++ b/data/v2/migration/webapp2__flask__c4rlo@vimhelp__7a5fadf.yaml @@ -0,0 +1,37 @@ +repo: c4rlo/vimhelp +commit: 7a5fadfd129ab995e783101a7e6a91c3702832c2 +source: webapp2 +target: flask +commit_url: https://github.com/c4rlo/vimhelp/commit/7a5fadfd +domain: Web Framework +files: +- path: "update.py" + code_changes: + - lines: ["16:19-20"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [webapp2] + target_apis: [flask, flask.views] + - lines: ["59:63"] + cardinality: one-to-one + source_program_elements: [type] + target_program_elements: [type] + properties: [element name change] + source_apis: [RequestHandler] + target_apis: [MethodView] + - lines: ["63:67"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [body] + target_apis: [data] + - lines: ["515:491", "69:69"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [] + source_apis: [query_string] + target_apis: [query_string] diff --git a/data/v2/migration/werkzeug__webob__dahlia@sqlalchemy-imageattach__7cd3ca5.yaml b/data/v2/migration/werkzeug__webob__dahlia@sqlalchemy-imageattach__7cd3ca5.yaml new file mode 100644 index 0000000..f9446d4 --- /dev/null +++ b/data/v2/migration/werkzeug__webob__dahlia@sqlalchemy-imageattach__7cd3ca5.yaml @@ -0,0 +1,44 @@ +repo: dahlia/sqlalchemy-imageattach +commit: 7cd3ca5b3e3d88540adf82b6a35f7e68d4db0c68 +source: werkzeug +target: webob +commit_url: https://github.com/dahlia/sqlalchemy-imageattach/commit/7cd3ca5b +domain: Web Framework&HTTP Clients +files: +- path: "tests/stores/fs_test.py" + code_changes: + - lines: ["64:", "89:"] + cardinality: one-to-zero + source_program_elements: [function call] + target_program_elements: [] + properties: [] + source_apis: [Client] + target_apis: [] + - lines: ["65:67", "67:70-71", "91:97-98"] + cardinality: one-to-many + source_program_elements: [function call] + target_program_elements: [function call, function call] + properties: [argument addition, element name change] + source_apis: [get] + target_apis: [blank, get_response] + - lines: ["102:110", "65:68", "69:73", "95:102"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [data] + target_apis: [text] + - lines: ["7-8:7"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [werkzeug.test.Client, werkzeug.test.Client] + target_apis: [webob.Request] + - lines: ["100:108", "70:74", "93:100"] + cardinality: one-to-one + source_program_elements: [attribute] + target_program_elements: [attribute] + properties: [element name change] + source_apis: [mimetype] + target_apis: [content_type] diff --git a/data/v2/migration/wget__requests__noaa-oar-arl@monet__590936b.yaml b/data/v2/migration/wget__requests__noaa-oar-arl@monet__590936b.yaml new file mode 100644 index 0000000..b58e717 --- /dev/null +++ b/data/v2/migration/wget__requests__noaa-oar-arl@monet__590936b.yaml @@ -0,0 +1,55 @@ +repo: noaa-oar-arl/monet +commit: 590936b7ab2e0aa49c04a5ecaed502eb1ab348b8 +source: wget +target: requests +commit_url: https://github.com/noaa-oar-arl/monet/commit/590936b7 +domain: HTTP Clients +files: +- path: "monet/obs/airnow.py" + code_changes: + - lines: ["148:153"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [wget] + target_apis: [requests] + - lines: ["154:159-160"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [download] + target_apis: [get] +- path: "monet/obs/aqs.py" + code_changes: + - lines: ["228:247"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [wget] + target_apis: [requests] + - lines: ["234:253-254"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [download] + target_apis: [get] +- path: "monet/obs/cems.py" + code_changes: + - lines: ["127:183"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [wget] + target_apis: [requests] + - lines: ["138:184-195"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change, output transformation] + source_apis: [download] + target_apis: [get] diff --git a/data/v2/migration/xlsxwriter__openpyxl__bcgov@gwells__472f336.yaml b/data/v2/migration/xlsxwriter__openpyxl__bcgov@gwells__472f336.yaml new file mode 100644 index 0000000..93035b1 --- /dev/null +++ b/data/v2/migration/xlsxwriter__openpyxl__bcgov@gwells__472f336.yaml @@ -0,0 +1,23 @@ +repo: bcgov/gwells +commit: 472f336f5db32ead27b6f4e171c6b8f782da8a02 +source: xlsxwriter +target: openpyxl +commit_url: https://github.com/bcgov/gwells/commit/472f336f +domain: File reader/writer +files: +- path: "app/backend/wells/management/commands/export.py" + code_changes: + - lines: ["11:12"] + cardinality: not applicable + source_program_elements: [import] + target_program_elements: [import] + properties: [] + source_apis: [xlsxwriter] + target_apis: [openpyxl.Workbook] + - lines: ["53:53"] + cardinality: one-to-one + source_program_elements: [function call] + target_program_elements: [function call] + properties: [element name change] + source_apis: [add_worksheet] + target_apis: [create_sheet]