Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

275 results about "Code line" patented technology

Creating an optimal test suite

A system and a method for creating an optimal test suite. The system may receive code coverage data from a set of testing channels. Further, a combined dataset is created by merging the code coverage data received from the set of testing channels. The combined dataset is analyzed to identify a line of code being executed by two or more test cases corresponding to two or more testing channels of the set of testing channels. Further, at least one test case from the two or more test cases having less efficiency is eliminated to create an optimal test suite. The efficiency is determined based on at least one of execution time, execution cost, and resources required to execute the line of code.
Owner:WEBOMATES INC

Sentiment analysis using magnitude of entities

Aspects of the present disclosure provide systems, methods, and computer-readable storage media that support automated source code review using sentiment analysis with magnitude of entities. Known compliant and non-compliant source code may be used to generate dictionaries for evaluating lines of code using AI and ML techniques, such as by clustering data entities (lines of software code) and performing sentiment analysis on the data entities (lines of software code) which accounts for a magnitude of the data entities in the software code. The dictionaries enable automated review and correction of non-compliant code, such as vulnerable or insecure code, during the coding process. For example, sentiment analysis may be performed using the dictionaries on in-development code to determine a polarity and magnitude score for each line of code. The scores for each line can be compared to one or more conditions to determine a remediation action for individual lines of code.
Owner:ACCENTURE GLOBAL SOLUTIONS LTD

Method and device for detecting code quality

The invention discloses a method and device for detecting code quality, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: acquiring a code file of which the quality is to be detected, and matching an analyzer according to attribute information of the code file; processing the code file by using a parser to obtain an abstract syntax tree; traversing the abstract syntax tree, and determining the circle complexity of the code file through a strategy of counting and judging the number of nodes; and counting the code line number of the code file, determining a quality analysis result of the code file according to one or more of the circle complexity and the code line number, and triggering an alarm in response to the condition that the quality analysis result is greater than or equal to a preset threshold value. According to the implementation mode, the abstract syntax tree aiming at the code characteristics can be generated, the code quality is systematically evaluated from multiple dimensions, and developers are helped to quickly identify complexity and potential problems in the codes, so that subsequent continuous improvement and optimization of the codes are facilitated.
Owner:JINGDONG ALLIANZ GENERAL INSURANCE CO LTD

Automatic invalid code elimination method and device, medium and product

The invention discloses an invalid code automatic elimination method and device, a medium and a product, and the method comprises the steps: carrying out compiling analysis processing on each program file in a to-be-processed target program item, generating a syntax tree model, and testing the compiled program file to obtain a program test result; unused variables in all the variables are identified through a syntax tree model, and uncovered code lines are positioned in combination with a test result; analyzing logic judgment conditions of uncovered code lines based on the syntax tree structure, and judging the code lines which cannot be triggered as unreachable codes; unused variables and unreachable codes in the program files are removed, new program items are obtained, and when the new program items are correctly compiled and executed, the new program items are used for replacing the target program items. Program redundancy is reduced, and execution efficiency is improved.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Source code hierarchy positioning method, electronic equipment and medium

The invention relates to the technical field of computers, in particular to a source code hierarchical positioning method, electronic equipment and a medium. Determining a target hierarchy corresponding to a target code line, a code range corresponding to the target hierarchy and code ranges of all target sub-hierarchies based on the code line hierarchical structure information of the code file; and displaying the code lines belonging to the target hierarchy, the code range corresponding to the target hierarchy and the code range of the target sub-hierarchy in the code lines in the visual range by adopting different display identifiers. According to the invention, code levels concerned by a user can be quickly and accurately positioned.
Owner:SHANGHAI UNIVISTA IND SOFTWARE GRP CO LTD +1

User-defined script dynamic editing execution method and system of Unity engine

The invention provides a user-defined script dynamic editing and executing method and system of a Unity engine. The method comprises the following steps that codes are input and preprocessed; executing text cleaning, word segmentation and annotation preprocessing according to the line feed as a code line set; grammatical analysis and semantic understanding; constructing an abstract syntax tree, identifying a syntax structure, and combining context analysis semantics to generate a symbol table; processing errors in real time; positioning an error line through a multi-stage matching strategy, highlighting an error position through a visual interface, and generating a repair suggestion in combination with a line number mapping table, error propagation analysis and a multi-evidence fusion mechanism; executing dynamic codes; explaining and executing the corrected script, and feeding back an execution result; through interaction with a Unity engine, operation control of a script on a game object and a scene is realized; through three core technologies of semantic weight dynamic matching, an anti-interference navigation state machine and a hybrid sorting algorithm, the long-standing problems of low matching precision, poor interaction experience and the like in the field of code completion are solved.
Owner:SHENZHEN LIUFENG TECHNOLOGY CO LTD

Code adoption rate determination method and device, equipment, storage medium and product

The invention discloses a code adoption rate determination method and device, equipment, a storage medium and a product, and relates to the technical field of software development, the code adoption rate determination method comprises the steps that a code line information base comprising a first code is constructed, and a reverse index corresponding to the first code is constructed based on the code line information base, the first code comprises one of the following: an auxiliary code generated by a large language model, and a new code of a target code warehouse within a target time period after the auxiliary code is generated by the large language model; and matching a second code with the first code through the code line information base and the reverse index to determine the code adoption rate corresponding to the auxiliary code. Therefore, the technical problem that the actual contribution of the large language model in the software development process is difficult to quantitatively evaluate can be solved, and the technical effect of determining the actual contribution of the large language model based on the code adoption rate is achieved.
Owner:JINAN INSPUR DATA TECH CO LTD

Formal verification method based on hierarchical verification framework

The invention discloses a formal verification method based on a hierarchical verification framework, which comprises the following steps of: firstly, dividing a target program into a C code and an assembly code, modeling and verifying the assembly code, then modeling and verifying the C code, and in the modeling process of the C code, carrying out verification on the C code; and defining a specific state and an abstract state of each data structure, establishing mapping through a refinement relationship, defining a function model based on the abstract state, constructing a function API specification, and finally defining system properties for a target program according to the function model and verifying the system properties. According to the method, a hierarchical verification framework and a formalization tool are combined, formalization verification is carried out on the target program from specific implementation to abstract division into three layers, comprehensive verification from bottom-layer codes to high-layer system properties is realized, the risk of security vulnerabilities is reduced, and the reliability of the target program is improved.
Owner:UNIV OF ELECTRONICS SCI & TECH OF CHINA

Hybrid model driven reentrant vulnerability maintenance method and device and computer equipment

The invention relates to a hybrid model-driven reentrant vulnerability maintenance method and device and computer equipment, and the method comprises the steps: obtaining a slice set of a target function corresponding to a preset character in a to-be-repaired code, the preset character being associated with a to-be-repaired vulnerability of the code; performing classification training on the features of the slice set to obtain code snippets containing the to-be-repaired vulnerabilities; calculating the attention score of each code line in the code snippets, and selecting a specified number of target code lines with high attention scores from the code lines according to the sorting of the attention scores; and obtaining a repair template of the pre-trained large language model according to the target code line, inputting the to-be-repaired code to the large language model, and outputting the repaired code. By adopting the method, the bug repairing accuracy in the code can be improved.
Owner:HANGZHOU HIGH-TECH ZONE (BINJIANG) INSTITUTE OF BLOCKCHAIN & DATA SECURITY +1

Computer network security software debugging method and system

The invention provides a computer network security software debugging method and system, and the method comprises the steps: setting a plurality of test nodes of a source program in target network security software, and positioning a key test node based on the execution state of each test node; constructing a target search domain when the source program is tested through the program context information of the key test node; determining a plurality of abnormal program slices in the source program based on the static control flow diagram and the dynamic control flow diagram of the program code in the target search domain; determining the test overhead of each program slice according to the test coverage information of each program slice and the path complexity when the source program executes the test data; determining the constraint level of each program slice according to all the test overhead and the membership relationship among the program slices; and debugging each program slice through the constraint level of each program slice. According to the scheme, on the basis of the constraint level of each program slice, the problem code line can be accurately pointed in the network security software debugging process.
Owner:CHENZHOU VOCATIONAL & TECH COLLEGE

Electric power information system security risk detection and defense method and system

PendingCN119961178AError detection/correctionBiological modelsAttackInformation systems security
The invention relates to the technical field of software security detection and defense, in particular to a power information system security risk detection and defense method and system. Identifying potential component vulnerabilities of the source code and the binary file based on an LSTM and an optimization recombination algorithm; setting a hook at the key point to monitor the running environment of the application program in real time, and discovering a potential vulnerability attack behavior; a dynamic stain tracking algorithm and a transparent object proxy mode are adopted to monitor a context executed by an application program and a source of a tracking variable, so that whether the application program is attacked or not is judged; when the attack is judged, an attack code line is accurately positioned by utilizing a context sensing method and a self-protection mechanism, so that real-time measures are conveniently taken to prevent the attack from being successful; the high heuristic algorithm based on the attack behavior defends unknown vulnerability attacks. Potential safety copper leakage in the codes can be found in time, the use environment of the software is monitored, potential attack behaviors are found and stopped, and the safety of the system software is guaranteed.
Owner:ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD

Slow SQL code positioning method, device and system and storage medium

The invention discloses a slow SQL code positioning method, device and system and a storage medium, and the method comprises the steps: configuring an SQL monitoring module in a target business system, so as to generate slow SQL log information under the condition that the SQL query time consumption of the target business system exceeds a threshold value; acquiring slow SQL log information, analyzing the slow SQL log information, and determining target analysis information; according to the version control information and the code positioning information, positioning a code line of the target code of the corresponding version, and obtaining submission information of the code line, the submission information comprising a code submission object; adding comment information in the code line, wherein the comment information comprises part or all of the target analysis information; in response to the adding operation of the comment information, a prompt message is sent to the code submission object, and the prompt message comprises part or all of the comment information. Therefore, the slow SQL can be detected, the corresponding code line can be automatically positioned, the comment information is added in the code line, the code submission object is notified in time, and the timeliness and convenience of maintenance can be improved.
Owner:ZHUHAI CHENGMI TECH CO LTD

Vulnerability reachability analysis and detection system based on calling link JavaScript component

The invention relates to the field of information security, in particular to a vulnerability reachability analysis and detection system based on a calling link JavaScr ipt component, and the system comprises an acquisition module which is used for acquiring a plurality of risk files from a project source code; the construction module is used for constructing an AST syntax tree according to a calling function of a code line in any risk file; the link generation module accesses the AST syntax tree through a traversal technology, obtains a function expression, obtains function calling information based on the function expression so as to construct a basic function calling link, and sequentially identifies and expands the basic function calling link into a multi-level function calling link according to the hierarchical structure of the basic function calling link; and the vulnerability detection module is used for querying by utilizing the vulnerability link rule and the multi-level function calling link, determining that the vulnerability is reachable if a vulnerability calling link fragment is queried, collecting the vulnerability and generating a vulnerability report. And the accuracy of vulnerability detection is improved.
Owner:BILING (ZHUHAI HENGQIN) TECHNOLOGY CO LTD

Systems and methods for intelligent interrogation and tagging of a codebase

Systems, methods, and devices are provided to intelligently interrogate and tag a codebase. A behavioral model of the codebase is accessed that represents a run-time behavior of the codebase. The behavioral model and codebase are interrogated to identify locations for placing bidirectional tags within the behavioral model and the codebase. The bidirectional tags include links for connecting portions of the behavioral model to corresponding lines of code within the codebase. Selection of a bidirectional tag of the behavioral model causes focus of a user interface to change from a view of a visual depiction of the behavioral model to a view of a corresponding tag in the codebase. Selection of a bidirectional tag of the codebase causes focus of the user interface to change from a view of the codebase to a view of a corresponding tag in the visual depiction of the behavioral model.
Owner:APPLAND INC

Method and system for real-time collaboration, task linking, and code design and maintenance in software development

A real-time software development method including receiving a code file, generating a shadow code file including the code file content and a link to the code file, receiving an annotation to the shadow code file from a user, and saving the received annotation in the shadow code file as an annotation record, including annotation content, a time stamp, a creating user indication, a code line identifying at least one line of code comprised by the shadow code filed associated with the received annotation, and at least one of an action item and an assigned user. The annotation record does not change the content of the code file and can be viewed and edited by a plurality of users.
Owner:MADISETTI VIJAY

Error log supervision method, device and system and storage medium

The invention discloses an error log supervision method, device and system and a storage medium. The error log supervision method comprises the steps of obtaining error log information of a target business system; analyzing the error log information, and determining target analysis information; a code line of a target code is positioned according to the target analysis information, submission information of the code line is obtained, and the submission information comprises a code submission object; adding comment information in the code line, wherein the comment information comprises part or all of the target analysis information; in response to the adding operation of the comment information, a prompt message is sent to the code submission object, and the prompt message comprises part or all of the comment information. Therefore, the corresponding code line can be automatically positioned, the analyzed error log information is added into the comment, and the code submission object can be notified in time, so that the convenience of code maintenance is improved.
Owner:ZHUHAI CHENGMI TECH CO LTD

Vulnerability detection method and system based on incremental code

The invention provides a vulnerability detection method and system based on incremental codes, and belongs to the technical field of software security detection. Aiming at the technical problems that the software vulnerability detection in the prior art needs to carry out full scanning on codes, the detection efficiency is low and the method is difficult to adapt to rapid iterative development, whether patch codes can trigger potential software vulnerabilities or not is identified by analyzing the influence of code patches on the behavior logic of original codes. A code attribute graph is constructed by adopting a static code analysis technology, and changes of a data flow and a control flow are analyzed; comparing and analyzing the addition and deletion codes in the patches before and after; and an extensible detection framework is designed, and flexible configuration of different types of vulnerability detection rules is supported. According to the method, repeated scanning of full-quantity codes is avoided, and the vulnerability detection efficiency is remarkably improved; the security risk introduced by the patch is accurately positioned through an incremental analysis method; the adoption of an extensible architecture facilitates continuous integration of new detection capabilities.
Owner:WUHAN TEXTILE UNIV

Software defect prediction method based on code local features and long-distance dependency relationship

The invention discloses a software defect prediction method based on code local features and a long-distance dependency relationship. According to the method, firstly, semantic features are selected by adopting a time convolutional neural network to retain potential semantic features related to defects, so that the effectiveness and accuracy of prediction are improved. Combining the reserved semantic features with traditional features, firstly inputting a CNN model, extracting local features on input data through a sliding convolution kernel, and effectively capturing a local mode and a grammar structure in a code; two continuous BILSTM layers are input, and long-distance dependency relationships in software codes, such as complex logic across multiple time steps, function call relationships and the like, are captured, which is crucial for understanding code behaviors and predicting defects. Through the steps, a more comprehensive and effective software defect prediction model is constructed, the accuracy of defect prediction is remarkably improved, and then effective support is provided for software quality guarantee and maintenance efficiency improvement.
Owner:HANGZHOU DIANZI UNIV

Test code debugging method and device and test code debugging system

The invention provides a test code debugging method and device and a test code debugging system.The method comprises the steps that test information in a database is obtained, and the test information comprises a test code and identification information; a test breakpoint is added to a test line of the test code, the test code is executed, under the condition that the test code is executed to the test breakpoint, execution of the test code is suspended, a code of the test line corresponding to the test breakpoint serves as a to-be-debugged code, and the test line is any line in all code lines included in the test code; modifying the to-be-debugged code to obtain a target code, replacing the to-be-debugged code with the target code, and recovering execution of the test code until execution of the target code and the test line after the target code is completed; and under the condition that the test code is successfully executed, updating the corresponding test information in the database by adopting the target code according to the identification information. The method solves the problem that in the prior art, the test code debugging efficiency is low.
Owner:中国邮政储蓄银行股份有限公司

Executable file burning method, executable file running method, executable file burning device, executable file running device, executable file equipment and medium

The invention discloses an executable file burning method, an executable file running method, an executable file burning device, executable file running equipment and a medium, and relates to the technical field of computers. Burning a second executable file in the compiled executable file to a Flash memory based on an on-chip execution mode; wherein the first executable file is configured with a target jump address, and the target jump address is a storage head address corresponding to a second executable file in the Flash memory, so that in the process of running the compiled executable file by the preset embedded processor, when the preset embedded processor runs to a code line where the target jump address in the first executable file is located, the target jump address in the first executable file is located; and skipping from the block random access memory to the Flash memory to read and run the second executable file. According to the application, the Flash memory and the block random access memory are used for jointly storing the compiled executable file, so that the running memory space is expanded.
Owner:SONOSCAPE MEDICAL (WUHAN) CORP

Data flow compliance detection method and device based on code semantic rule driven LLM

The invention relates to the technical field of code security, in particular to a data stream compliance detection method and device based on code semantic rule-driven LLM, and the method comprises the steps: carrying out the normalization processing of a to-be-detected source code: removing annotation, null lines, unifying branch circulation into an if-else structure, and establishing lt; code lines and line numbers gt; performing mapping; constructing a code semantic rule knowledge base; generating a code intermediate expression by using LLM; generating an execution path for the intermediate expression, constructing a symbol table, and reasoning and positioning non-compliant variables and corresponding code lines according to a data flow rule; generating a detection report; the device comprises a code standardization processing function module, a knowledge base construction function module and other function modules for achieving the method, manual intervention is not needed, C / C + + code compliance can be automatically detected, the detection precision and efficiency are remarkably improved, and non-compliance positions can be accurately traced.
Owner:SICHUAN ZHONGKE ZHUOXIN TESTING & CERTIFICATION CO LTD

Intra-macro identifier position information acquisition method, electronic equipment and medium

The invention relates to the technical field of macro text processing, in particular to an intra-macro identifier position information acquisition method, electronic equipment and a medium, and the method comprises the following steps: setting a corresponding macro virtual file for each macro reference in a chip design code original file; loading a chip design code original file, and obtaining initial position information of an identifier in each macro based on a macro virtual file corresponding to each macro reference; expanding each target macro reference in a target code line in the original file of the chip design code to obtain a target macro expanded text; obtaining a column position offset and a row position offset corresponding to each target macro reference based on the target macro expanded text and the macro initial expanded text of each target macro reference; and generating position information of the intra-macro identifier in each target macro reference in the target macro expanded text based on the column position offset and the row position offset corresponding to each target macro reference and the initial position information of the intra-macro identifier in each target macro reference.
Owner:BEIJING NORI INTEGRATED CIRCUIT DESIGN CO LTD +2

Methods and apparatus for code editing, and device and storage medium

The embodiments of the present disclosure relate to methods and an apparatus for code editing, and a device and a storage medium. A method provided herein comprises: displaying a code editing interface, wherein the code editing interface comprises a code editing area used for editing a code line; on the basis of a received first preset operation, presenting an interaction component in the code editing area, wherein the interaction component comprises an input control; on the basis of a first input acquired via the input control, providing first response content for the first input while maintaining the display of the interaction component; and on the basis of a second input acquired via the input control of the interaction component, providing second response content for the second input, wherein the second response content is generated on the basis of context information associated with the first response content. In this way, the embodiments of the present disclosure can enable a user to perform multiple rounds of code editing operations in a code editing interface, thereby enhancing the efficiency of code editing.
Owner:DOUYIN VISION CO LTD

Method and system for evaluating test coverage rate based on Java call link

The invention discloses a method and a system for evaluating a test coverage rate based on a Java call link, and relates to the field of software testing. The method comprises the following steps: identifying a difference function according to a first comparison result, and constructing a call chain tree structure by taking the difference function as a root node based on a code call relation graph; analyzing the difference function to obtain a direct code change line of the difference function, based on a call chain tree structure, identifying a related code line on a call chain where each call point is located as a call point code line, and summarizing the direct code change line and the call point code line; and analyzing the code coverage rate data to obtain an actually covered code line, comparing the to-be-tested code line with the actually covered code line, determining coverage rate index data based on a call chain according to a second comparison result, and determining a test coverage rate evaluation result according to the coverage rate index data. The test coverage rate can be evaluated more comprehensively and accurately.
Owner:BEIJING YULORE INNOVATION TECH

Code generation method and system fusing two-dimensional code representation and dependent coding

The invention discloses a code generation method and system fusing two-dimensional code representation and dependent coding in the technical field of artificial intelligence, and aims at solving the optimization problem of an existing code generation method. The method comprises the following steps: modeling obtained code data into a two-dimensional structure to obtain a two-dimensional code; inputting the two-dimensional code into the trained code generation model; performing word embedding on the two-dimensional code through an embedding layer to obtain a word embedding vector; performing inter-line masking on the two-dimensional code through an in-line attention mask to obtain a mask matrix; performing dependency modeling on the word embedding vector through a sparse auto-encoder to obtain a dependency code of a dependency relationship between code lines; according to the word embedding vector, the mask matrix and the dependency code, performing attention calculation by utilizing a self-attention mechanism to obtain an intermediate representation of each character; and performing model prediction through a multi-layer perceptron and a softmax layer according to the intermediate representation of each character.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Cloud-based 3D printer intelligent control method and system

The invention discloses a cloud-based 3D printer intelligent control method and system, and the method comprises the steps: after receiving an STL model file and printing parameters uploaded by a user at a cloud, executing a slicing operation to generate G code data, and transmitting the G code data to a printer; then, the cloud end continuously receives a G code line number currently executed by the printer, context analysis is carried out on G code data according to the G code line number, and a real-time printing context vector reflecting the current working state and the expected action of the printer is generated; meanwhile, in combination with a camera video frame collected by a printer, AI reasoning based on context perception is carried out on visual data by utilizing the real-time context vector, so that a more accurate exception decision is generated and an alarm is sent to a client. In this way, the accuracy and robustness of printing anomaly detection are remarkably improved, and therefore more intelligent, efficient and reliable remote printing experience is provided for a user.
Owner:XIANYANG VOCATIONAL TECHN COLLEGE

Method and system for generating coverage loop boundary test case based on program slices

The invention discloses a method and a system for generating a test case for covering a loop boundary based on program slices. The method comprises the following steps of: inputting a source code to be tested and a target loop line number; the method comprises the following steps: analyzing a to-be-tested source code based on an abstract syntax tree technology, and extracting key node information to construct a program dependency graph; collecting related code lines through graph traversal by taking a loop structure needing to be analyzed as a criterion, and generating a minimum executable loop slice; performing symbolic execution on the minimum executable loop slice, simulating a loop execution process, capturing condition judgment nodes, and forming a track dictionary; determining a strategy based on the trajectory dictionary and the variable state, and when the strategy is numerical search, performing parameter space exploration; when the strategy is symbolic analysis, analyzing the cyclic condition expression and solving the optimal parameter; generating candidate test cases based on the analysis result; executing the candidate test case, calculating the number of loop iterations, and determining whether an expected state is reached; and if the expected state is reached, outputting a final test case.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Vulnerability influence software library version detection method based on weighting inter-method program dependency graph

The invention belongs to the technical field of computer software security, and particularly relates to a vulnerability influence software library version detection method based on a weighting inter-method program dependency graph. The vulnerability influence software library version detection method comprises the following steps: generating a vulnerability signature and a patch signature for each vulnerability, and representing the vulnerability signature and the patch signature as weighted IPDG; potential vulnerability signatures and potential patch signatures of the candidate software library versions are generated, similarity comparison is carried out on the potential vulnerability signatures and the potential patch signatures and the original signatures, and which software library versions are affected by vulnerabilities are detected. The modified code line in the patch is utilized to generate the vulnerability signature and the patch signature, so that the limitation that the vulnerability signature cannot be generated under the condition that the code line is not deleted in the prior art is overcome. In addition, a key method is selected through an HITS algorithm, key variables and the dependency relationship thereof are identified through taint analysis to determine key statements, and therefore the detection accuracy is further improved. According to the method, the accuracy and efficiency of vulnerability detection in the open source software supply chain can be effectively improved.
Owner:FUDAN UNIVERSITY