# code_analysis **Repository Path**: fanzhaonan/code_analysis ## Basic Information - **Project Name**: code_analysis - **Description**: 一多代码复用情况分析 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-13 - **Last Updated**: 2022-10-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CodeAnalysis ## 功能 分析应用一多代码复用情况 ## 安装 1. 从[官网](https://www.python.org/)下载及安装python3 2. 安装三方库 ```shell pip install -r requirements.txt ``` ## 运行 1. 修改statistic.py中common、features和product目录的位置 2. 运行脚本即可 ```shell python statistic.py ``` ## 示例 目录结构如下所示,其中code_analysis目录中存放的是本项目源码,applications_launcher目录中存放的是[launcher仓](https://gitee.com/openharmony/applications_launcher)中的代码。 ``` ./ ├── code_analysis └── applications_launcher ``` 在statistic.py文件中,正确配置common、features和product目录的路径,随后运行该脚本,即可得到应用的代码复用情况。 ![image-20221031110237524](assets/image-20221031110237524.png)