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

43 results about "AN codes" patented technology

AN codes are error-correcting code that are used in arithmetic applications. Arithmetic codes were commonly used in computer processors to ensure the accuracy of its arithmetic operations when electronics were more unreliable. Arithmetic codes help the processor to detect when an error is made and correct it. Without these codes, processors would be unreliable since any errors would go undetected. AN codes are arithmetic codes that are named for the integers and that are used to encode and decode the codewords.

Joint context and application optimization HARQ

The invention relates to a hybrid automatic repeat request (HARQ) with joint context and application optimization. For example, an apparatus is disclosed that is configured to process a data unit comprising one or more representations based on a signal received from a base station, each of the representations comprising one or more data blocks, where each data block comprises a weight, and wherein each of the data blocks is assigned to a code block group (CBG) of a plurality of code block groups (CBG) based on the weight of the corresponding data block; determining the total weight of the successfully decoded data block; and comparing the total weight to a total weight threshold for the data unit.
Owner:APPLE INC

Code annotation generation method and system based on token-level semantic matching

The invention belongs to the technical field of software engineering, and discloses a token-level semantic matching-based code annotation generation method and system, and the method comprises the following steps: obtaining a target code and a data set, carrying out the preprocessing and dividing, and obtaining a training set as a corpus; performing word segmentation on the codes in the corpus by using a word segmentation device of a pre-trained large language model, and extracting and storing a context semantic embedding vector of each token in the codes to form a code semantic warehouse; calculating the lexical similarity between the target code and the code in the corpus, and taking the top k high examples as candidate examples; according to the method, a target code and a candidate sample are subjected to token-level semantic matching, the most similar token in another code segment is matched, the accuracy rate and the recall rate are combined to obtain an F1 score, and the sample with the highest score is reused, the context semantic feature of fine granularity is considered in the aspect of retrieval, the code annotation generation precision is improved, extra training is not needed, and the retrieval efficiency is improved. And the method has good applicability to different scenes.
Owner:HANGZHOU DIANZI UNIV

Code detection method, system and device, electronic equipment, storage medium and program product

The embodiment of the invention provides a code detection method, system and device, electronic equipment, a storage medium and a program product. According to the scheme provided by the embodiment of the invention, the received change code data comprises at least one change code line, and the change code line is a code line of which the content is changed relative to the previous version source code in the current version source code. Based on the current version source code and the change code data, extracting at least one code program segment from the current version source code; one code program segment comprises one change code line or a plurality of change code lines with continuous line numbers or a plurality of change code lines with discontinuous line numbers. Furthermore, the change classification corresponding to the code program segment can be determined. And based on the code program segment and a risk rule associated with the change classification corresponding to the code program segment, determining a risk detection result of the change code line in the code program segment.
Owner:ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Code processing method and device, electronic equipment, storage medium and computer program product

The invention relates to a code processing method and device, electronic equipment, a storage medium and a computer program product. The code processing method comprises the following steps: performing word segmentation processing on a to-be-processed code to obtain a code sequence comprising at least one code unit; on the basis of the characteristic parameters of any code unit in the code sequence, the correlation degree between any code unit and other code units except any code unit in the code sequence is determined; wherein the correlation degree is used for representing the degree of dependence between any code unit and other code units; based on the correlation degree corresponding to each code unit, respectively determining a highlight parameter of each code unit; wherein the highlight parameter is used for performing highlight display on the code unit. According to the embodiment of the invention, code highlighting can be realized by using the same word segmentation rule in different programming languages, so that the universality of realizing code highlighting is improved.
Owner:BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Request processing method and device

The invention provides a request processing method and device, and the method comprises the steps: responding to a received current code merging request associated with a target branch, and obtaining the states of a plurality of code merging entrance guards associated with the current code merging request; on the basis of the weight and the state corresponding to each code merging entrance guard, determining a merging readiness score of the current code merging request; in response to the fact that the merging readiness score is smaller than a set score threshold value, determining a target access control with the maximum weight from at least one unpassed code merging access control; according to the access control failure log associated with the target access control and the first incremental code difference between the source branch and the target branch associated with the current code merging request, merging blocking information is generated and visually displayed, and therefore the automation and intelligence level of the code merging process is improved, and the code merging efficiency is improved. And the problem repairing period is shortened, so that the stability and delivery efficiency of the target branch are improved.
Owner:BEIJING PACTERA JINXIN TECH LTD

Project defect code determination method and device, equipment, medium and product

The invention discloses a project defect code determination method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a current defect report and code change information of a current project, carrying out the word embedding coding processing of the current defect report and the code change information, and obtaining a defect report input vector and at least one code block input vector; performing language coding processing on the defect report input vector and each code block input vector by utilizing a pre-trained defect positioning model to obtain a defect report feature vector and at least one code block feature vector; and performing defect positioning classification processing on the defect report feature vector and each code block feature vector by using a pre-trained defect positioning model to obtain at least one association probability, and determining a defect code of the current defect report according to each association probability. According to the method, the current defect report can be automatically analyzed, and the defect code of the current defect report is accurately and efficiently determined according to the association probability of the current defect report and each code block.
Owner:AGRICULTURAL BANK OF CHINA

Error Correction Data Transmission Method, Communications Apparatus, and Storage Medium

PendingUS20260205229A1Programming languageCoding block
A data transmission method includes generating a first code block, where the first code block includes a first load and a first redundancy code, the first load includes N second code blocks, the first redundancy code is used to perform error correction on the first load, an ith second code block includes a second load and a second redundancy code, the second redundancy code is used to perform error detection on the second load in the ith second code block, a value of i is an integer ranging from 1 to N, and Nis an integer greater than or equal to 1; and sending the first code block to a receive end.
Owner:YINWANG INTELLIGENT TECHNOLOGIES CO LTD

A method for generating a defect code and related apparatus

The application discloses a defect code generation method and related device, and the method comprises the steps of: obtaining at least one code segment pair from a code library; analyzing the modification reason between the first code segment before modification and the second code segment after modification in each code segment pair through a first language model, and identifying the defect type of the first code segment in each code segment pair indicating defect repair; obtaining at least one code segment pair corresponding to each defect type as a target code segment pair, and calling a second language model to learn each target code segment pair with the generation of defect code as a learning target to obtain a learned second language model; and generating a defect code segment corresponding to the target code segment through the learned second language model. The method can realize the automatic generation of defect code, improve the generation efficiency of defect code, improve the generation quality of defect code, and enhance the comprehensiveness and authenticity of the generated defect code.
Owner:ZHIWEI CHUANGXIN (NANJING) TECHNOLOGY CO LTD

Code presentation arrangement

A code presentation arrangement (10) consists of a carrier (20) and a card (30) attached to the carrier (20) or consists only of a card (30), wherein the card (30) or the carrier (20) respectively has a code presentation side (21b) on which a code (12) is applied. To enable more pleasant exposure of the code and more reliable detection of a code that has already been exposed, the code (12) on the code presentation side (21b) is covered by an opaque cover section (24) of the carrier (20) or an opaque cover section of the card (30), wherein the respective cover section is attached to the code presentation side (21b) by permanent adhesive strips (25) positioned along the edges of the code (12), and wherein the respective cover section in the area of the code (12) between the permanent adhesive strips (25) has a detachable tear-off tab (26) through which the code (12) can be exposed by pulling from the side facing away from the code (12).
Owner:TRANSACT ELEKTRONISCHE ZAHLUNGSSYSTEME GMBH

Vulnerability reduction for syntactically incomplete code

Example solutions performing software code vulnerability reduction. An input code portion is extracted from input software code. The input code passage may be syntactically incomplete and / or syntactically incorrect. A code vulnerability is detected in the input code portion. A correction of the code vulnerability is made, and an output code portion is generated including the correction. In some examples, a code vulnerability detection tool take, as input, the output from a code completion tool. The output is thus annotated or corrected in real-time, as a user is developing the code.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

A code completion method based on multi-modal two-stage fine-tuning

The application discloses to the technical field of code completion, specifically a code completion method based on a multimodal two-stage fine-tuning, comprising the following specific steps: S1, constructing a code completion fine-tuning dataset D1: collecting source codes from public channels to construct an original code sample dataset D0; then generating three kinds of modal representation structures corresponding to each source code to construct a code completion fine-tuning dataset D1. The two-stage fine-tuning model proposed in the application combines prefix fine-tuning and adapter fine-tuning, not only reduces resource consumption, but also accurately adjusts the parameters of the model, and the type-code predictor is associated with the direct relationship between the specific code during prediction and the type label, so that it better adapts to the code completion task, and thus the accuracy and efficiency of code completion are improved.
Owner:GUANGDONG UNIV OF TECH

Code processing method and apparatus, device, and storage medium

ActiveCN122111498BCoding blockAlgorithm
The application discloses a code processing method and device, equipment and storage medium, and belongs to the computer technical field. The method comprises the following steps: acquiring source code in a code warehouse, wherein the source code comprises at least two functions; a code flow chart of the source code is displayed in a visual area, the code flow chart comprises a plurality of flow nodes, each flow node in the plurality of flow nodes corresponds to at least one code block in the source code, and each flow node is used for displaying at least one of a logic summary and a called function list of the code block corresponding to the flow node; wherein the node type of the flow node comprises at least one of the following: data declaration and initialization; guard statement and parameter check; function call and error handling; concurrency and synchronization; result construction and return; entry and exit nodes; and conditional loop nodes.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Test code generation method and device

The invention discloses a test code generation method and device, and relates to the technical field of software test processing. A specific embodiment of the method comprises the steps of obtaining a target function code, and splitting the target function code into a plurality of test units; obtaining at least one code block in the test unit; wherein the code block is used for executing logic processing corresponding to a logic type; determining the code block as a to-be-tested method included in the test unit; for each to-be-tested method, generating a test case corresponding to the to-be-tested method according to a logic type corresponding to the to-be-tested method; and generating a test code corresponding to the test unit according to the virtual object of each test case corresponding to the test unit. According to the embodiment, the software testing efficiency and the branch coverage rate can be improved.
Owner:CHINA CONSTRUCTION BANK +1

Electronic apparatus and control method thereof

An electronic apparatus including a code generation model is provided. The apparatus includes memory, including one or more storage media, storing instructions, and at least one processor communicatively coupled to the memory, wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic apparatus to acquire a user command for training the code generation model, acquire source code corresponding to a code learning model, acquire a first code block and a second code block by partitioning the source code into preset units, acquire first error message information including at least one detailed error message related to the first code block and second error message information including at least one detailed error message related to the second code block, acquire a first check score corresponding to the first error message information and a second check score corresponding to the second error message information, determine a sampling block from among the first code block and the second code block based on the first check score and the second check score, and train the code generation model by using the sampling block.
Owner:SAMSUNG ELECTRONICS CO LTD

Code positioning method and related equipment

The embodiment of the invention discloses a code positioning method and related equipment, and relates to the technical field of computers. According to the embodiment of the invention, after a trigger action aiming at a target page is detected, a trigger event is obtained, the trigger event carries position information of the trigger event, then at least one code calling instruction is generated based on the trigger event, and an event processing code corresponding to the trigger event is called based on the code calling instruction. According to the event processing code and the position information, a code jump instruction corresponding to the trigger event is screened out from a preset code calling instruction set, then based on the code jump instruction, a target code corresponding to the trigger event is positioned in the code of the target page, and finally a code positioning page is displayed. The code positioning page comprises the code position of the code associated with the trigger action. According to the method and the device, the code position corresponding to the current page element can be quickly positioned.
Owner:SHENZHEN WANGYU COMPUTER NETWORK CO LTD

Code block identification method and apparatus

Embodiments of this application provide example code block identification methods and example apparatuses. One example method includes obtaining, by a communication apparatus, a code block stream, and obtaining an ith code block, an (i−1)th code block, and an (i+1)th code block that are adjacent to each other in the code block stream. The communication apparatus determines a to-be-identified bit pattern based on bit patterns corresponding to the three adjacent code blocks. The communication apparatus determines the ith code block as a start boundary code block based on the to-be-identified bit pattern and a template bit pattern.
Owner:HUAWEI TECH CO LTD

Code testing method and equipment

The embodiment of the invention provides a code testing method and equipment, and the method comprises the steps: obtaining a plurality of pieces of first burying point information and a plurality of pieces of second burying point information corresponding to codes of an application program within a preset duration, and carrying out the testing of the codes to be tested for a plurality of modified codes to be tested, obtaining calling times corresponding to the plurality of to-be-tested codes from the plurality of pieces of first burying point information, and determining test priorities of the plurality of to-be-tested codes according to the calling times corresponding to the plurality of to-be-tested codes; according to the sequence of the test priorities of the multiple to-be-tested codes from high to low, selecting a target code which needs to be tested currently from the multiple to-be-tested codes; and for each selected target code, obtaining at least one code calling link comprising the target code from a plurality of code calling links corresponding to the plurality of pieces of second burying point information, determining a plurality of associated codes associated with the target code on the at least one code calling link, and performing code testing on the target code and the plurality of associated codes. The code testing accuracy can be improved.
Owner:BEIJING YOUZHUJU NETWORK TECH CO LTD

System and method for automated review and implementation of code changes in an application

A system for implementing code changes comprises a code repository that stores replacement lines of code that each have a relevancy ranking and a safety ranking. The system is configured to receive a notice from an external source hosting an application that a previous set of code associated with the application needs to be changed. The system then identifies a new set of codes from the code repository with high relevance and safety values. It implements a virtual secured environment that simulates the application with the identified new set of code and one or more other external source components. Feedback is then received from the virtual secured environment and recorded in a log. The new set of code is then sent to the external source for implementation when the feedback does not indicate a failure.
Owner:BANK OF AMERICA CORP

Source code processing method and device, electronic equipment and storage medium

Embodiments of the present application disclose a source code processing method, comprising: displaying source code and annotation information of the source code; wherein the source code comprises at least one code block, each code block comprises at least one code segment; the annotation information comprises first-level annotation content corresponding to each code block and second-level annotation content corresponding to each code segment; obtaining a processing operation; synchronously or sequentially executing the processing operation on a first content block and a second content block; the first content block is one of a target code segment and target second-level annotation content; the second content block is the other of the target code segment and the target second-level annotation content; and the target second-level annotation content and the target code segment have a corresponding relationship. Embodiments of the present application also provide a source code processing device, an electronic device and a storage medium.
Owner:LENOVO (BEIJING) LTD

Code reconstruction method and device, equipment, medium and chip

The invention discloses a code reconstruction method and device, equipment, a medium and a chip, and belongs to the field of artificial intelligence. Comprising the steps of generating a UML class diagram according to a call chain of a source code of a to-be-upgraded application; the UML class diagram is a code class relation diagram meeting the reconstruction requirement of the source code; performing function marking on a plurality of functions contained in the source code to obtain function marking information; generating at least one code reconstruction request according to the source code, the reconstruction demand of the source code and the function mark information; a target code is obtained through a pre-trained code reconstruction model according to the code reconstruction request, and the code reconstruction model is obtained through training based on a GPT large language model: a target code framework is obtained through the pre-trained code reconstruction model according to the UML class diagram and the function marking information; and splicing the target code with the target code framework to obtain a reconstructed code of the source code.
Owner:CHINA TELECOM CLOUD TECH CO LTD

Code generation method and device

The invention provides a code generation method and device. The method comprises the following steps: receiving a program code input by a user; wherein the program code comprises an object, the class to which the object belongs comprises N codes related to the object, and N is an integer greater than or equal to 1; aiming at the program code, generating M candidate codes and the adoption probability of each candidate code in the M candidate codes by utilizing a first code generation model; m is an integer greater than or equal to 1; based on the N codes, obtaining K candidate codes from the M candidate codes; each candidate code in the K candidate codes is partially or completely the same as at least one code in the N codes, K is an integer greater than or equal to 1, and K is less than or equal to M; obtaining a target code related to the program code from the K candidate codes based on the adoption probability of the K candidate codes; updating a program code; the updated program code comprises the target code. According to the method, the code generation accuracy can be improved.
Owner:HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Error correction data transmission method, communications apparatus, and storage medium

A data transmission method includes generating a first code block, where the first code block includes a first load and a first redundancy code, the first load includes N second code blocks, the first redundancy code is used to perform error correction on the first load, an ith second code block includes a second load and a second redundancy code, the second redundancy code is used to perform error detection on the second load in the ith second code block, a value of i is an integer ranging from 1 to N, and N is an integer greater than or equal to 1; and sending the first code block to a receive end.
Owner:YINWANG INTELLIGENT TECHNOLOGIES CO LTD

An evaluation and defense method against code language model attack

The present application relates to a kind of evaluation and defense methods for code language model attack, including data construction, two data sets are constructed, one is used to fine-tune code language model to improve its evaluation accuracy, another data set is used to fine-tune code language model to improve its purification accuracy;A piece of code is input into fine-tuned one code language model to be evaluated, when evaluation value is less than predetermined threshold, it indicates that input code has been attacked;Then the piece of code is input into fine-tuned another code language model to be purified, and output purified code.The method is at least 93% in evaluation ability, consistent with human evaluation in different attack scenarios, tolerance is 1.In terms of defense ability, in most attack combinations, its performance exceeds the commonly used countermeasures fine-tuning method, and the maximum improvement is more than 83.63%.
Owner:CHONGQING UNIV

Rotary encoder

A rotary encoder which detects a rotation of a rotating disk 100 provided with an annular code pattern 110 by using a detecting unit 120 and which calculates an angle of rotation of the rotating disk 100 by using an encoder processing unit 130, wherein the code pattern 110 is constituted of a concentric first code pattern 111 and a concentric second code pattern 112, the first code pattern 111 is constituted of a plurality of first patterns having a first inclination with respect to a radial direction, the second code pattern 112 is constituted of a plurality of second patterns having a second inclination in a direction that differs from the first inclination with respect to the radial direction, and the encoder processing unit 130 calculates an eccentricity of the code pattern 110, based on a detection result of the first code pattern 111 by the detecting unit 120 and a detection result of the second code pattern 112 by the detecting unit 120 and corrects the angle of rotation according to the calculated eccentricity.
Owner:TAMAGAWA SEIKI CO LTD

Synchronising datasets updates

An apparatus, computer-implemented method and computer program are disclosed for synchronising dataset updates. For example, the method may comprise providing a first code branch associated with a plurality of code sets which, when executed, produce respective time-series datasets for provision to a downstream process linked to the first code branch. The method may also comprise generating a second code branch, based on the first code branch, the second code branch executing the plurality of code sets as part of an updating process and, if successful, storing respective time-series datasets to respective memory locations associated with the second code branch. Another part of the method may comprise determining if all code sets executed by the second code branch have successfully committed. Responsive to a positive determination, one or more pointers, e.g. all pointers, associated with the first code branch may be updated to point to the respective memory locations associated with the second code branch in order that the respective successfully-committed time-series datasets are provided to the downstream process.
Owner:PALANTIR TECHNOLOGIES INC

Detecting code anomalies in source code using machine learning techniques

Methods, apparatus, and processor-readable storage media for detecting code anomalies using machine learning techniques are provided herein. An example computer-implemented method includes parsing source code from at least one code repository to create a plurality of tokens based on a syntax corresponding to a programming language of the source code; processing the plurality of tokens using a first machine learning model to create a corresponding plurality of input embeddings; processing the plurality of input embeddings using a second machine learning model, wherein the second machine learning model is configured to detect one or more code anomalies across a plurality of programming languages and trained based at least in part on a training dataset corresponding to the at least one code repository; and causing one or more automated actions to be performed in response to the second machine learning model detecting at least one anomaly in the source code.
Owner:DELL PROD LP

Automatically generating code using a codebase-specific structure configuration

Code examples of the codebase are obtained, and a structure configuration is generated using the obtained code examples and a standard configuration dataset, and includes code components specific to the codebase. Labels that are indicative of component attributes are assigned to the code components of the structure configuration. A code generation request is received, and the request is converted into a plurality of feature-prompts. At least one code component is mapped to each feature prompt based on semantic similarity of the feature prompt to a label of the mapped code component. Application code is generated using the mapped code components.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC