System and method for visualizing source code statistics through three dimensional landscapes

The system visualizes source code statistics as three-dimensional landscapes, addressing the challenge of managing complex codebases by providing a clear overview of code changes, author contributions, and test coverage, thus enhancing development efficiency and error prevention.

WO2024175969A1PCT designated stage expired Publication Date: 2024-08-29BHATT SUCHITRA VIMALKUMAR +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/IB2023/054276
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-24
Filing Date
2023-04-26
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Current software development tools lack an effective means to provide a comprehensive visualization of source code statistics, making it difficult for developers to manage and understand complex codebases, leading to slower and riskier development processes.

Method used

A system and method that utilizes a processing subsystem to extract metadata from third-party tools and visualize it as three-dimensional landscapes, with towers representing code instructions, revisions, test coverage, author contributions, and code issues, enabling a clearer overview of source code evolution and potential issues.

Benefits of technology

Facilitates better management and understanding of source code statistics, allowing developers to identify 'hotspots' of potential issues, thereby improving development efficiency and reducing the risk of errors by providing a visual representation of code changes, author contributions, and test coverage over time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure IB2023054276_29082024_PF_FP_ABST
    Figure IB2023054276_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A system and a method for visualizing source code statistics is disclosed. The system (100) includes a receiving module (120) to extract metadata of a plurality of reports from a repository (190). A visual representation module (130) to visualize the metadata in the form of corresponding landscape three-dimensional towers pertaining to shades of grayscale. A test coverage module (140) to display a cover wrapped around a portion of the three-dimensional towers. An author depiction module (150) to display one or more authors (180) of the plurality of code instructions by representing color-coded blocks on three-dimensional towers. A time lapse view module (160) to represent the development of files, packages and modules over a period of time that the user selects through one or more date filters. A mesh sphere module (170) to display one or more issues in the file in response to analysis of the plurality of code instructions.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] SYSTEM AND METHOD FOR VISUALIZING SOURCE CODE STATISTICS THROUGH THREE DIMENSIONAL LANDSCAPES

[0002] EARLIEST PRIORITY DATE

[0003] This Application claims priority from a Complete patent application filed in India having Patent Application No. 202321012753, filed on February 24, 2023, and titled “SYSTEM AND METHOD FOR VISUALIZING SOURCE CODE STATISTICS THROUGH THREE DIMENSIONAL LANDSCAPES”.

[0004] FIELD OF INVENTION

[0005] Embodiments of the present disclosure relate to the field of visualization, and more particularly, a system and method for visualizing source code statistics through three dimensional landscapes.

[0006] BACKGROUND

[0007] Traditionally, all software development activities are completely driven by coding. In the technology industry, a source code is a group of instructions developed by a programmer using computer programming languages. The programmer is a professional in technology who writes code for websites and applications. Further, the programmer can develop and implement the source code in several applications, depending on the company they work for and the project size. Once the programmer writes a set of source code, it is implemented in a website, application or another type of computer program to give it instructions for functioning. Further, it is common practice to modify the source code to update and enhance an existing application, only to discover insights into system design and potential vulnerabilities.

[0008] Understanding the coding can be optimized using software analysis tools and techniques beyond standard debuggers including advanced debug techniques, performance tools and code coverage functionality that can ensure higher system quality. Software analysis tools and techniques can help tackle the costly, hard-to-find errors that frustrate and delay development, testing and deployment. They help to identify issues before they cause problems downstream or for the customer. Further, source lines of codes (SLOC) is used to measure the size of the source code by counting the number of lines in the text. SLOC is essential to predict the effort that is required to develop the program as well as to estimate programming productivity once the program is produced. There are multiple analytical tools that are available that does static analysis of the source code. However, the analytical tools require expertise to understand the statistics of the source code.

[0009] Software development entails not only writing new code but also delving into existing source code to improve and expand functionality and features. Tools such as "Find all references" and debuggers can assist users in navigating between files and inspecting code paths, the users cannot provide a comprehensive picture. The development will be slower, riskier, and more difficult to manage if the users don't have a reliable overview of code. It's easy to lose sight of the big picture when working in the weeds of complex architecture. Although the users may have some outlines of future state and a hierarchical filing system, theoretical documents and a few folders will not help users to understand what code looks like.

[0010] Hence, there is a need for an improved system and method for visualizing source code statistics which helps address the aforementioned issue(s).

[0011] BRIEF DESCRIPTION

[0012] In accordance with an embodiment of the present disclosure, a system for visualizing source code statistics is provided. The system includes a processing subsystem hosted on a server. The processing subsystem is configured to execute on a network to control bidirectional communications among a plurality of modules. The processing subsystem includes a receiving module operatively coupled to the processing subsystem wherein the receiving module is configured to extract metadata of a plurality of reports from a repository wherein the code repository stores the metadata collected from a plurality of third party tools. The processing subsystem also includes a visual representation module operatively coupled to the receiving module wherein the visual representation module is configured to visualize the metadata in the form of corresponding landscape three-dimensional towers pertaining to a shade in grayscale, wherein the height of each tower represents the plurality of code instructions, and the shades in grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame. The processing subsystem further includes a test coverage module operatively coupled to the visual representation module wherein the test coverage module is configured to display a cover wrapped around a portion of the three-dimensional towers, wherein the portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time. Further, the processing subsystem includes an author depiction module operatively coupled to the visual representation module wherein the author depiction module is configured to display the one or more authors of the plurality of code instructions by representing color coded blocks on top of three-dimensional towers. Furthermore, the processing subsystem includes a time lapse view module operatively coupled to the visual representation module wherein the time lapse view module is configured to represent the development of at least one or more files, packages and modules over a period of time that the user selects through one or more date filters. Additionally, the processing subsystem includes a mesh sphere module operatively coupled to the visual representation module wherein the mesh sphere module is configured to display one or more outcomes in response to analysis of the plurality of code instructions, wherein the one or more outcomes are represented as one or more mesh spheres on top of the three-dimensional towers.

[0013] In accordance with another embodiment of the present disclosure, a method for visualizing source code statistics is provided. The method includes extracting, by a receiving module of a processing subsystem, metadata of a plurality of reports from a repository wherein the repository stores the metadata from a plurality of third party tools. The method also includes visualizing, by a visual representation module of the processing subsystem, the metadata in the form of corresponding landscape three-dimensional towers pertaining to a shade in grayscale, wherein the height of each tower represents the plurality of code instructions, and the shades in grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame. Further, the method includes displaying, by a test coverage module of the processing subsystem, a cover wrapped around a portion of the three-dimensional towers, wherein the portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time. Further, the method includes displaying, by an author depiction module of the processing subsystem, the one or more authors of the plurality of code instructions by representing color coded blocks on top of three-dimensional towers. Furthermore, the method includes representing, by a time lapse view module of the processing subsystem, the development of at least one or more files, packages and modules over a period of time that the user selects through one or more date filters. Additionally, the method includes displaying, by a mesh sphere module of the processing subsystem, one or more outcomes in response to analysis of the plurality of code instructions, wherein the one or more outcomes are represented as one or more mesh spheres on top of the three-dimensional towers.

[0014] To further clarify the advantages and features of the present disclosure, a more particular description of the disclosure will follow by reference to specific embodiments thereof, which are illustrated in the appended figures. It is to be appreciated that these figures depict only typical embodiments of the disclosure and are therefore not to be considered limiting in scope. The disclosure will be described and explained with additional specificity and detail with the appended figures.

[0015] BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The disclosure will be described and explained with additional specificity and detail with the accompanying figures in which:

[0017] FIG. 1 is a block diagram representation of a system for visualizing source code statistics in accordance with an embodiment of the present disclosure;

[0018] FIG. 2 is a visualization of a three-dimensional landscape view for visualizing source code statistics in accordance with an embodiment of the present disclosure;

[0019] FIG. 3 is a visualization of the three-dimensional landscape view of test coverage in the file in accordance with an embodiment of the present disclosure;

[0020] FIG. 4 is a visualization of the three-dimensional landscape view of authors in the file in accordance with an embodiment of the present disclosure;

[0021] FIG. 5 illustrates the author’s contribution for each file described in FIG.4 in accordance with an embodiment of the present disclosure;

[0022] FIG. 6 is a visualization of the three-dimensional landscape view of code issues in the file in accordance with an embodiment of the present disclosure; FIG. 7 is a block diagram of a computer or a server in accordance with an embodiment of the present disclosure; and

[0023] FIG. 8 illustrates a flow chart representing the steps involved in a method for visualizing source code statistics in accordance with an embodiment of the present disclosure.

[0024] Further, those skilled in the art will appreciate that elements in the figures are illustrated for simplicity and may not have necessarily been drawn to scale. Furthermore, in terms of the construction of the device, one or more components of the device may have been represented in the figures by conventional symbols, and the figures may show only those specific details that are pertinent to understanding the embodiments of the present disclosure so as not to obscure the figures with details that will be readily apparent to those skilled in the art having the benefit of the description herein.

[0025] DETAILED DESCRIPTION

[0026] For the purpose of promoting an understanding of the principles of the disclosure, reference will now be made to the embodiment illustrated in the figures and specific language will be used to describe them. It will nevertheless be understood that no limitation of the scope of the disclosure is thereby intended. Such alterations and further modifications in the illustrated system, and such further applications of the principles of the disclosure as would normally occur to those skilled in the art are to be construed as being within the scope of the present disclosure.

[0027] The terms “comprises”, “comprising”, or any other variations thereof, are intended to cover a nonexclusive inclusion, such that a process or method that comprises a list of steps does not include only those steps but may include other steps not expressly listed or inherent to such a process or method. Similarly, one or more devices or subsystems or elements or structures or components preceded by "comprises... a" does not, without more constraints, preclude the existence of other devices, sub-systems, elements, structures, components, additional devices, additional subsystems, additional elements, additional structures or additional components. Appearances of the phrase "in an embodiment", "in another embodiment" and similar language throughout this specification may, but not necessarily do, all refer to the same embodiment. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this disclosure belongs. The system, methods, and examples provided herein are only illustrative and not intended to be limiting.

[0028] In the following specification and the claims, reference will be made to a number of terms, which shall be defined to have the following meanings. The singular forms “a”, “an”, and “the” include plural references unless the context clearly dictates otherwise.

[0029] As used herein, a ‘user’ may refer to a non-technical user or a senior management personnel.

[0030] In accordance with an embodiment of the present disclosure, a system for visualizing source code statistics is provided. The system includes a processing subsystem hosted on a server. The processing subsystem is configured to execute on a network to control bidirectional communications among a plurality of modules. The processing subsystem includes a receiving module operatively coupled to the processing subsystem wherein the receiving module is configured to extract metadata of a plurality of reports from a repository wherein the repository stores the metadata collected from a plurality of third party tools. The processing subsystem also includes a visual representation module operatively coupled to the receiving module wherein the visual representation module is configured to visualize the metadata in the form of corresponding landscape three-dimensional towers pertaining to a shade in grayscale, wherein the height of each tower represents the plurality of code instructions, and the shades in grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame. The processing subsystem further includes a test coverage module operatively coupled to the visual representation module wherein the test coverage module is configured to display a cover wrapped around a portion of the three-dimensional towers, wherein the portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time. Further, the processing subsystem includes an author depiction module operatively coupled to the visual representation module wherein the author depiction module is configured to display the one or more authors of the plurality of code instructions by representing color coded blocks on top of three-dimensional towers. Furthermore, the processing subsystem includes a time lapse view module operatively coupled to the visual representation module wherein the time lapse view module is configured to represent the development of at least one or more files, packages and modules over a period of time that the user selects through one or more date filters. Additionally, the processing subsystem includes a mesh sphere module operatively coupled to the visual representation module wherein the mesh sphere module is configured to display one or more outcomes in response to analysis of the plurality of code instructions, wherein the one or more outcomes are represented as one or more mesh spheres on top of the three-dimensional towers.

[0031] FIG. 1 is a block diagram representation of a system for visualizing source code statistics in accordance with an embodiment of the present disclosure. The system (100) includes a processing subsystem (105) hosted on a server (108). In one embodiment, the server (108) may include a cloud-based server. In another embodiment, parts of the server (108) may be a local server coupled to a user device (not shown in FIG.l). The processing subsystem (105) is configured to execute on a network (115) to control bidirectional communications among a plurality of modules. In one example, the network (115) may be a private or public local area network (LAN) or Wide Area Network (WAN), such as the Internet. In another embodiment, the network (115) may include both wired and wireless communications according to one or more standards and / or via one or more transport mediums. In one example, the network (115) may include wireless communications according to one of the 802.11 or Bluetooth specification sets, or another standard or proprietary wireless communication protocol. In yet another embodiment, the network (115) may also include communications over a terrestrial cellular network, including, a global system for mobile communications (GSM), code division multiple access (CDMA), and / or enhanced data for global evolution (EDGE) network.

[0032] The system (100) includes a receiving module (120) operatively coupled to the processing subsystem (105). The receiving module (120) is configured to extract metadata of a plurality of reports from a repository (190). The repository (190) stores the metadata collected from a plurality of third-party tools. The third-party tools includes, but is not limited to, GIT®, SonarQube® and JIRA® that provides code check-in details, code issues and story ticket details respectively. Specifically, the GIT® provides information related to files / packages / modules, check-in details, file sizes and the like. Likewise, SonarQube® provides issues and test coverage details for each file. Further, JIRA® provides ticketing information on ongoing projects and all the source code files undergoing changes for the said projects. Each of the plurality of reports wherein each report includes meta data fetched from the plurality of tools). The one or more authors (180) refers to a programmer who creates a set of instructions and statements using a programming language such as Python, Ruby, Java, JavaScript, C, C++, C# and the like. Typically, the metadata is structured reference data that aids in the classification and identification of attributes of the source code and the metadata summarizes basic information about source code. Metadata may be created manually to be more accurate, or automatically to be more basic. For example, the metadata of a document file may include author, date created, date modified, and file size.

[0033] The system (100) also includes a visual representation module (130) operatively coupled to the receiving module (120). The visual representation module (130) is configured to visualize the metadata in the form of corresponding landscape three-dimensional (3D) towers pertaining to shades of grayscale. Each tower has a specific color of grayscale ranging from transparent to full black. The transparent shade indicates that no changes were made in the file whereas the black shade indicates a maximum number of changes made in the file or code churn. ‘Code churn’ may be defined as the number of lines added plus the number of lines deleted in the source code file. In other words, the code churn depicts the number of changes made to the code. Further, the shade of the grayscale depends on the number of revisions / changes done in the file within a given timeframe. The height of each tower represents the plurality of code instructions, and the shades of grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame. Typically, the visual representation module (130) is configured to assist one or more managers to review performance of the one or more authors. It must be noted that the visual representation module (130) is configured to provide statistical data fetched from other tools that connect to the system (100) to assist the managers.

[0034] The system (100) further includes a test coverage module (140) operatively coupled to the visual representation module (130). The test coverage module (140) is configured to display a cover wrapped around a portion of the three-dimensional towers. In a specific embodiment, the cover is blue color. However, it must be noted that the cover may be customized by the user with his / her color choice. The portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time. In other words, the portion is a static information depicting the number of test cases written for a given source code file at the time when the report was generated. It must be noted that the portion (coverage of test cases written for the code instructions) is fetched from other tools, for instance SonarQube. Therefore, the cover around each tower (file) depicts how much is the code covered with test cases. The height of the cover around the tower indicates the coverage for that file (source code).

[0035] Further, the system (100) includes an author depiction module (150) operatively coupled to the visual representation module (130). The author depiction module (150) is configured to display the one or more authors of the plurality of code instructions by representing color coded blocks on top of three-dimensional towers. Typically, the one or more authors (180) are represented as distinct colored rectangular cubes positioned on top of a corresponding three-dimensional tower and the user is allowed to choose one or more authors by selecting a desired colored rectangular cube thereby depicting contribution of the one or more authors (180) to the corresponding file. Typically, the author who makes the most changes to the file has the largest cube size. In the entire three-dimensional landscape, each author is represented by a unique color. In other words, a bigger block positioned at a bottom-most spot on the three-dimensional towers represents the author who made maximum number of changes to the corresponding plurality of code instructions. Likewise, a smallest block positioned at a top-most position on the three-dimensional towers represents the author who made minimal or least number of changes to the corresponding plurality of code instructions.

[0036] Furthermore, the system (100) includes a time lapse view module (160) operatively coupled to the visual representation module (130). The time lapse view module (160) is configured to represent the development (or transition) of one or more files / packages / modules over a period of time that the user selects through one or more date filters. The date filters specifies the timeframe and time interval to visualize the transition of the one or more files / packages / modules within the 3D landscape. Further, the user selects the one or more files / packages / modules via a filter. For instance, the transition view for a selected timeframe may display the changes in the grayscale shades of the tower indicating code revisions and also display new files (towers / blocks) being added to a package. In one embodiment, the user can choose the time interval (for example, day, week, month) to see the changes across the timeframe. In such an embodiment, the speed of the transition depends on the time interval that the user selects. For instance, a large time interval for a given timeframe implies a shorter transition visual displayed to the user. Further, it must be noted that the transition is an auto-applied animated view on the 3D landscape and runs until the end of the timeframe. Typically, the time lapse view module (160) includes a filter unit that allows the user to search the landscape for the required file over a specific time period.

[0037] Additionally, the system (100) includes a mesh sphere module (170) operatively coupled to the visual representation module (130). The mesh sphere module (170) is configured to display one or more issues in the code file in response to analysis of the plurality of code instructions. In one embodiment, the one or more issues in the code file are fetched by another tool, for instance SonarQube. Further, the one or more issues in the code files are represented as one or more mesh spheres on top of the three-dimensional towers. In other words, each mesh sphere positioned on top of the 3D tower depicts an issue in that code / file. Further, each mesh sphere is represented with a distinct colour indicating the severity of the one or more issues in the code file. For example, a yellow color may indicate minor changes and a red color may indicate critical issues in the code. The details of the one or more issues are fetched by another tool, such as SonarQube. The mesh sphere module (170) displays code issues as colored spheres on top of the corresponding files. Typically, color of the sphere represents the issue category, such as critical, major, and minor, and absence of spheres on the file tower indicates that no code issues have been identified.

[0038] It must be noted that the visual representation module (130), test coverage module (140), author depiction module (150) and mesh sphere module (170) collectively allows the user to view the 3D landscape to identify one or more ‘hotspots’. The hotspots are user interpretations after viewing the 3D landscape. Typically, the one or more hotspots indicates examination of the corresponding files in response to one or more changes made to the files thereby preventing one or more errors upon release of the files. In other words, the ‘examination’ indicates that the corresponding files should be handled carefully and changes to the said files must be reviewed thoroughly since such changes might cause production errors upon release. For instance, tall towers represent files that are large in size, towers pertaining to dark shades of grayscale / black color signifies that the file had been modified several times, towers with multiple blocks on top represents multiple authors who had worked for that particular file, towers with multiple mesh spheres represents multiple issues in the source code and towers with a small cover or no cover signifies the amount of test cases Therefore, such ‘hotspots’ are identified by the user as potential issues and can be subsequently resolved with specific actions such as, increase the code coverage, resolve the coding issues, make sure each change to the file is "reviewed" carefully and the like. Specifically, the one or more hotspots are the height of the tower in shades of grayscale indicating the number of lines in the corresponding file, the cover around the tower indicating the coverage of test cases, one or more blocks positioned on top of the tower indicating one or more authors and the mesh spheres positioned on top of the tower indicating the occurrence of potential issues in the file.

[0039] It is to be noted that examples of the user device includes, but is not limited to, a mobile phone, desktop computer, portable digital assistant (PDA), smart phone, tablet, ultra-book, netbook, laptop, multi-processor system, microprocessor-based or programmable consumer electronic system, or any other communication device that a user may use. In some embodiments, the system may comprise a display module (not shown) to display information (for example, in the form of user interfaces). In further embodiments, the system may comprise one or more touch screens, accelerometers, gyroscopes, cameras, microphones, global positioning system (GPS) devices, and so forth.

[0040] In one embodiment, the various functional components of the system may reside on a single computer, or they may be distributed across several computers in various arrangements. The various components of the system may, furthermore, access one or more databases, and each of the various components of the system may be in communication with one another. Further, while the components of FIG. 1 are discussed in the singular sense, it will be appreciated that in other embodiments multiple instances of the components may be employed.

[0041] FIG. 2 is a visualization of a three-dimensional landscape view for visualizing source code statistics in accordance with an embodiment of the present disclosure. The 3D landscape view represents a square shaped module (202) comprising of a plurality of square shaped packages (also referred as ‘folders’), for instance package (204). Each of the packages include one or more blocks that represents a file (206). Typically, the file (206) is the smallest unit of the module (202) and is represented as a tower positioned on top of a corresponding package. The height of the tower corresponds to the number of lines of code in the file (206). Further, each tower is represented with a distinct shade of grayscale. The distinct shade of grayscale represents the number of changes made to the file. The file that has not changed in a specified time may be displayed with a nearly transparent frame (208). The darker the shade of the tower indicates the occurrence of a greater number of changes. Further, the shade is determined by the number of commits by default. The commits consider the number of modified files that are checked into the source code repository at any given time and allows users to customize shade to be based on Code Churn.

[0042] In one embodiment, the users are allowed to auto rotate the 3D landscape view.

[0043] The 3D landscape view also displays code issues as one or more spheres (210) of different colors positioned on top of the respective file (tower). The code issues may be generated as a result of static code analysis. The absence of the spheres (210) on the tower signifies that there were no code issues identified in the source code. In one embodiment, a mouse over action on the one or more spheres (210) results in the display of an issue category, issue type and the author who caused the said issue in the source code. In yet another embodiment, a double-click action on the one or more spheres (210) results in the display of the issue panel with additional details about the said issue.

[0044] Further, the 3D landscape view displays authors (212) of a file as different colored rectangular cubes positioned on top of the file (tower). An author is typically a person who has created or written lines of codes (source code) in a corresponding file. Each file may have multiple authors who may modify the files over a period. The size of the rectangular cube corresponds to the number of changes in the source code made by the author. For example, a big rectangular cube signifies that the author has made a large number of changes to the source code.

[0045] In one embodiment, the user is allowed to show or hide specific authors. In another embodiment, the user is allowed to select one or more authors using an ‘Author panel’. Further, all the files corresponding to the selected one or more authors are highlighted. Consequently, the ‘reach’ of the author can be analyzed across a selected codebase (files, packages, modules). Additionally, multiple authors may be compared based on their respective ‘reach’ in the said codebase.

[0046] FIG. 3 is a visualization of the three-dimensional landscape view of test coverage in the file in accordance with an embodiment of the present disclosure. The visual representation of the test coverage (or code coverage) (302) is an essential feature of the present disclosure. The code coverage is represented as a colored cover over the file (tower). In one embodiment, the default color of the cover is ‘blue’ however the said color may be customized based on the requirement of the user. Typically, the test coverage displays the percentage of code coverage for each file as a cover wrapped around the entire height of the file.

[0047] FIG. 4 is a visualization of the three-dimensional landscape view of authors on file in accordance with an embodiment of the present disclosure. The visual representation of the authors (304) is another essential feature of the present disclosure Typically, the authors are displayed as rectangular cubes on top of the file. The author who has made most code changes to the file may have a large cube size. Typically, the file may have multiple authors over a period.

[0048] It must be noted that the color is unique for each author throughout the entire code landscape. Further, a file may have multiple authors over a period of time and therefore may be represented with different colored rectangular cubes positioned on top of the file.

[0049] FIG. 5 illustrates the author’s contribution for each file described in FIG.4 in accordance with an embodiment of the present disclosure. The user is allowed to select one or more authors using an ‘Author panel’. In such a scenario, all the files pertaining to the selected author are highlighted as translucent vertical bars (306) on top of the files. Typically, the user can view author details such as where the author has contributed to each file, and the author details such as author name, code churn, and commits. Code churn is a metric of how frequently a file changes and the commit is an operation that sends the most recent changes to the source code repository.

[0050] For example, the author details such as programmer @ mycompany .com

[0051] Commits: 2

[0052] Code churn: 8

[0053] In one embodiment, the user is allowed to customize the translucent vertical bars. Further, a mouse over action on a specific author displays the author’s email address. Likewise, a double click action on the author displays the ‘Author panel’ with additional information.

[0054] FIG. 6 is a visualization of the three-dimensional landscape view of code issues in the file in accordance with an embodiment of the present disclosure. The code issues are displayed as colored spheres (308) on top of the corresponding files. The color of the sphere represents the issue category, such as critical, major, minor, and the like. The absence of spheres on the file block indicates that no code issues have been identified.

[0055] In one embodiment, a mouse over action on the code issue displays the issue category, issue type and the author who was accountable for the code issue. Likewise, a double click action on the code issue displays the issue panel with additional details about the code issue.

[0056] FIG. 7 is a block diagram of a computer or a server in accordance with an embodiment of the present disclosure. The server (200) includes processor(s) (230), and memory (210) operatively coupled to the bus (220). The processor(s) (230), as used herein, means any type of computational circuit, such as, but not limited to, a microprocessor, a microcontroller, a complex instruction set computing microprocessor, a reduced instruction set computing microprocessor, a very long instruction word microprocessor, an explicitly parallel instruction computing microprocessor, a digital signal processor, or any other type of processing circuit, or a combination thereof.

[0057] The memory (210) includes several subsystems stored in the form of executable program which instructs the processor (230) to perform the method steps illustrated in FIG. 1. The memory (210) includes a processing subsystem (105) of FIG.l. The processing subsystem (105) further has following modules: receiving module (120), visual representation module (130), test coverage module (140), author depiction module (150), time lapse view module (160) and a mesh sphere module (170).

[0058] In accordance with an embodiment of the present disclosure, a system for visualizing source code statistics is provided. The system includes a processing subsystem (105) hosted on a server (108) The processing subsystem (105) is configured to execute on a network to control bidirectional communications among a plurality of modules. The processing subsystem (105) includes a receiving module (120) operatively coupled to the processing subsystem (105) wherein the receiving module (120) is configured to extract metadata of a plurality of reports from a repository (190) wherein the repository (190) stores the metadata collected from a plurality of third-party tools. The processing subsystem (105) also includes a visual representation module (130) operatively coupled to the receiving module (120) wherein the visual representation module (130) is configured to visualize the metadata in the form of corresponding landscape three-dimensional towers pertaining to a shade of grayscale, wherein the height of each tower represents the plurality of code instructions, and the shade of grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame. The processing subsystem (105) further includes a test coverage module (140) operatively coupled to the visual representation module (130) wherein the test coverage module (140) is configured to display a cover wrapped around a portion of the three-dimensional towers, wherein the portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time. Further, the processing subsystem (105) includes an author depiction module (150) operatively coupled to the visual representation module (130) wherein the author depiction module (150) is configured to display the one or more authors (180) of the plurality of code instructions by representing color coded blocks positioned on top of three-dimensional towers. Furthermore, the processing subsystem (105) includes a time lapse view module (160) operatively coupled to the visual representation module (130) wherein the time lapse view module (160) is configured to represent the development of at least one or more files, packages and modules over a period of time that the user selects through one or more date filters. Additionally, the processing subsystem (105) includes a mesh sphere module (170) operatively coupled to the visual representation module (130) wherein the mesh sphere module (170) is configured to display one or more outcomes in response to analysis of the plurality of code instructions, wherein the one or more outcomes are represented as one or more mesh spheres on top of the three-dimensional towers.

[0059] The bus (220) as used herein refers to internal memory channels or computer network that is used to connect computer components and transfer data between them. The bus (220) includes a serial bus or a parallel bus, wherein the serial bus transmits data in bit-serial format and the parallel bus transmits data across multiple wires. The bus (220) used herein may include but not limited to, a system bus, an internal bus, an external bus, an expansion bus, a frontside bus, a backside bus and the like.

[0060] FIG. 8 illustrates a flow chart representing the steps involved in a method (300) for visualizing code statistics in accordance with an embodiment of the present disclosure. The method (300) includes extracting, by a receiving module of a processing subsystem, metadata of a plurality of reports from a repository wherein the repository stores the metadata collected from a plurality of third-party tools in step 310. Typically, the repository is a location where log files are stored. A table of contents, as well as metadata, are frequently stored. The metadata includes information about the source code files / packages / modules and its associated issues, how many changes were done and on which files over a period and by which authors, various projects / stories to which the files are associated and the like. Further, the metadata is collated from several other third-party tools, for instance, Git®, SonarQube® and JIRA®.

[0061] The method (300) also includes visualizing, by a visual representation module of the processing subsystem, the metadata in the form of corresponding landscape three-dimensional towers pertaining to a shade of grayscale, wherein the height of each tower represents the plurality of code instructions, and the shades of grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame in step 320. Typically, code statistics are represented by a tool as visual information that allows the user to analyze the visualization. The visualization tools used herein may be a web-based application.

[0062] It must be noted that the hierarchy herein begins with a project. Each project comprises of a plurality of modules. Likewise, each module comprises a plurality of packages. Further, each package comprises a plurality of files. Each file is represented as a vertical 3D block (tower) and denotes one program unit. The height of each tower indicates the number of lines of code in the respective file.

[0063] In one embodiment, the method (300) allows the user to double-click on the 3D module name that subsequently opens a module panel with additional details pertaining to the said 3D module.

[0064] In one embodiment, the term “code” refers to any type of symbolic language that may be used for computer programming. As described herein, “visualization” refers to the presentation of code statistics in a pictorial form, such as a graphical representation.

[0065] Further, the method (300) includes displaying, by a test coverage module of the processing subsystem, a cover wrapped around a portion of the three-dimensional towers, wherein the portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time in step 330. Typically, the test coverage specifies how much of the application code is tested and whether the test cases cover the entire application. Further, the method (300) also includes displaying, by an author depiction module of the processing subsystem, the one or more authors of the plurality of code instructions by representing color coded blocks pertaining to different sizes positioned on top of three-dimensional towers in step 340. Particularly, every author is illustrated by a unique color coded block.

[0066] In one embodiment, the three-dimensional towers represented as a variation of spatial position (x position, y position) in cartesian coordinate system, color (hue, luminance), texture (size, orientation, height (z dimension) in Cartesian coordinate system, and transparency may be used to represent attribute values of a software component.

[0067] Furthermore, the method (300) includes representing, by a time lapse view module of the processing subsystem, the development of at least one of the files, packages and modules over a period of time that the user selects through one or more date filters in step 350. In other words, the time lapse shows the color changes in the tower indicating how the file evolved over the said period of time, say for instance month by month over a year. Further, the user may specify the period by selecting a date range via the aid of filters.

[0068] Additionally, the method (300) includes displaying, by a mesh sphere module of the processing subsystem, one or more issues in response to analysis of the plurality of code instructions, wherein the one or more issues are represented as one or more mesh spheres on top of the three-dimensional towers in step 360.

[0069] The method (300) helps the user to identify one or more ‘hotspots’ by visualizing the 3D landscape. Typically, the ‘hotspots’ are one or more three-dimensional towers (files) that are identified by the user from the overall 3D landscape. Such three-dimensional towers are tall towers that are dark gray or black in colour, has less code coverage (a small cover around the tower), has multiple authors working on the files (tower having multiple author blocks) and has coding issues (mesh spheres on top of the tower). Further, such files, that are modified often by multiple authors and have coding issues are prone to cause production issues upon releasing the changes in the files. Therefore, the ‘hotspots’ indicate the need of examination of the corresponding files by the user to prevent one or more errors upon release of the files. In one embodiment, the method (300) provides a plurality of setting options to the user. An exemplary setting option allows the user to hide unchanged files and hide empty packages.

[0070] Various embodiments of the system and method for visualizing source code statistics as described above provides the user to view how the source code evolved over time. The user is able to identify hotspots in the 3D landscape that signifies potential issues in the source code. Upon identification of the hotspots, the user can take necessary actions to resolve the issues. The visual representation of the code statistics in an easy-to-view format facilitates non-technical users to understand and analyze the code statistics. Further, the visual representation enables users to identify hotspots thereby understanding parts of the source code that needs improvement. Furthermore, the visual representation in dynamic view enables the users to understand the overall work and spread of the authors across the source code for instance, the number of files the author has worked on, the number of changes the author has made to the source code over a period of time, the number of times the authors have made the changes and the primary owner of the file.

[0071] The techniques described in this disclosure may be implemented, at least in part, in hardware, software, firmware, or any combination thereof. For example, various aspects of the described techniques may be implemented within one or more processors, including one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or any other equivalent integrated or discrete logic circuitry, as well as any combinations of such components. The term “processor” or “processing subsystem” may generally refer to any of the foregoing logic circuitry, alone or in combination with other logic circuitry, or any other equivalent circuitry. A control unit including hardware may also perform one or more of the techniques of this disclosure.

[0072] Such hardware, software, and firmware may be implemented within the same device or within separate devices to support the various techniques described in this disclosure. In addition, any of the described units, modules, or components may be implemented together or separately as discrete but interoperable logic devices. Depiction of different features as modules or units is intended to highlight different functional aspects and does not necessarily imply that such modules or units must be realized by separate hardware, firmware, or software components. Rather, functionality associated with one or more modules or units may be performed by separate hardware, firmware, or software components, or integrated within common or separate hardware, firmware, or software components.

[0073] It will be understood by those skilled in the art that the foregoing general description and the following detailed description are exemplary and explanatory of the disclosure and are not intended to be restrictive thereof.

[0074] While specific language has been used to describe the disclosure, any limitations arising on account of the same are not intended. As would be apparent to a person skilled in the art, various working modifications may be made to the method in order to implement the inventive concept as taught herein. The figures and the foregoing description give examples of embodiments. Those skilled in the art will appreciate that one or more of the described elements may well be combined into a single functional element. Alternatively, certain elements may be split into multiple functional elements. Elements from one embodiment may be added to another embodiment. For example, the order of processes described herein may be changed and are not limited to the manner described herein. Moreover, the actions of any flow diagram need not be implemented in the order shown; nor do all of the acts need to be necessarily performed. Also, those acts that are not dependent on other acts may be performed in parallel with the other acts. The scope of embodiments is by no means limited by these specific examples.

Claims

CLAIM:

1. A system (100) for visualizing source code statistics comprising: a processing subsystem (105) hosted on a server (108) wherein the processing subsystem (105) is configured to execute on a network (115) to control bidirectional communications among a plurality of modules comprising: a receiving module (120) operatively coupled to the processing subsystem (105) wherein the receiving module (120) is configured to extract metadata of a plurality of reports from a repository (190) wherein the repository (190) stores the metadata collected from a plurality of third party tools; a visual representation module (130) operatively coupled to the receiving module (120) wherein the visual representation module (130) is configured to visualize the metadata in the form of corresponding landscape three-dimensional towers pertaining to a shade in grayscale, wherein the height of each tower represents the plurality of code instructions, and the shades in grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame; a test coverage module (140) operatively coupled to the visual representation module (130) wherein the test coverage module (140) is configured to display a cover wrapped around a portion of the three-dimensional towers, wherein the portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time; an author depiction module (150) operatively coupled to the visual representation module (130) wherein the author depiction module (150) is configured to display the one or more authors (180) of the plurality of code instructions by representing color coded blocks on top of three-dimensional towers, wherein each of the color coded blocks indicates the number of changes made to the plurality of code instructions by the one or more authors ( 180) via a corresponding size and position of the color coded blocks on the three-dimensional towers; a time lapse view module (160) operatively coupled to the visual representation module (130) wherein the time lapse view module (160) is configured to represent the development of at least one of files, packages and modules over a period of time that the user selects through one or more date filters; anda mesh sphere module (170) operatively coupled to the visual representation module (130) wherein the mesh sphere module (170) is configured to display one or more issues in the file in response to analysis of the plurality of code instructions, wherein the one or more issues in the file are represented as one or more corresponding mesh spheres positioned on top of the three-dimensional towers.

2. The system (100) as claimed in claim 1 wherein the mesh spheres pertain to multiple colours based on the severity of the corresponding issues in the file.

3. The system (100) as claimed in claim 1 wherein the plurality of reports is generated within the time frame.

4. The system (100) as claimed in claim 1 wherein the visual representation module (130), the test coverage module (140), the author depiction module (150) and the mesh sphere module (170) allows the user to identify one or more hotspots within the three-dimensional landscape wherein the one or more hotspots indicates examination of the corresponding files in response to one or more changes made to the files thereby preventing one or more errors upon release of the files.

5. The system (100) as claimed in claim 1 wherein the repository stores multiple modules wherein each module comprises multiple packages and wherein each package comprises multiple files.

6. The system (100) as claimed in claim 1 wherein a user is allowed to visualize the three- dimensional towers based on preference through one or more filters.

7. The system (100) as claimed in claim 1 wherein the one or more authors are represented as distinct colored rectangular cubes positioned on top of a corresponding three-dimensional tower.

8. The system (100) as claimed in claim 7 wherein the user is allowed to choose one or more authors by selecting a desired colored rectangular cube thereby depicting contribution of the one or more authors to the corresponding file.

9. A method (300) for visualizing source code statistics comprising: extracting, by a receiving module of a processing subsystem, metadata of a plurality of reports from a repository wherein the repository stores the metadata collected from a plurality of third party tools; (310) visualizing, by a visual representation module of the processing subsystem, the metadata in the form of corresponding landscape three-dimensional towers pertaining to shades in grayscale, wherein the height of each tower represents the plurality of code instructions, and the shades in grayscale of the towers represents number of revisions made to the plurality of code instructions within a time frame; (320) displaying, by a test coverage module of the processing subsystem, a cover wrapped around a portion of the three-dimensional towers, wherein the portion represents a corresponding percentage of test cases performed on the corresponding plurality of code instructions at a particular point of time; (330) displaying, by an author depiction module of the processing subsystem, the one or more authors of the plurality of code instructions by representing color coded blocks on top of three-dimensional towers; (340) representing, by a time lapse view module of the processing subsystem, the development of at least one of files, packages and modules over a period of time that the user selects through one or more date filters; (350) and displaying, by a mesh sphere module of the processing subsystem, one or more issues in code in response to analysis of the plurality of code instructions, wherein the one or more issues in code are represented as one or more mesh spheres on top of the three-dimensional towers. (360)0. The method (330) as claimed in claim 9 comprises identifying one or more three- dimensional towers as corresponding one or more hotspots by the user wherein the one or more hotspots indicates examination of the corresponding files in response to one or more changes made to the files thereby preventing one or more errors upon release of the files.