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

62 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.

Code dynamic completion method for large language model

The invention provides a code dynamic completion method for a large language model. The method comprises the following steps: constructing a mixed training data set; the method comprises the following steps of: initializing a Transform model architecture fused with probability space topological transformation; based on the mixed training data set, executing model training of collaborative optimization of the main target and the auxiliary target; in each step of decoding, the model calculates the probability distribution of the next token according to the current context; the generated probability distribution is restrained in an effective probability subspace through spherical probability mapping, and grammar error candidates are filtered in real time and the probability distribution is adjusted in combination with a tabu table mechanism; and dynamically selecting a sampling strategy according to the current decoding depth, sampling from the adjusted probability distribution to obtain a next code snippet, and finally generating a code completion suggestion conforming to abstract syntax tree rules and semantic constraints. According to the method, the probability distribution constraint and the taboo table mechanism are combined, the model can dynamically adjust the generated probability distribution, the more appropriate candidate token can obtain the higher probability, and therefore the accuracy of code completion is improved.
Owner:SHENZHEN HAIYUNAN NETWORK SECURITY TECH CO LTD

Method and device for determining code patch, equipment and storage medium

The invention provides a method and device for determining a code patch, equipment and a storage medium, and the method comprises the steps: generating a test case for a set fragment in a to-be-tested file by executing a first large language model; running the test case for the to-be-tested file; if the error description of the test failure is obtained, inputting the error description and the problem code block into a second large language model to obtain at least one code patch for the problem code block; wherein the at least one code patch is obtained by the second large language model according to at least one code repair strategy through a cluster search mode; the at least one code patch is in one-to-one correspondence with the at least one code repair strategy; a final patch is determined from the at least one code patch and the set segment is replaced. According to the method, the test case is automatically generated through the first large language model, the patch is automatically generated for the problem code block through the second large language model, and the automation degree and efficiency of the test are improved.
Owner:WEBANK (CHINA)

Data processing method and related equipment

The invention provides a data processing method and related equipment. The method comprises the steps of obtaining an original code file; determining a coding format corresponding to each code block in the original code file according to the compiling instruction; and compiling the at least one code block into a target execution file according to the coding format corresponding to each code block. The target execution file comprises at least one segment, and each segment comprises a segment identifier and at least one sub-module. The segment identifier is used for indicating the type of the code block corresponding to the segment. The sub-module includes a sub-module option and a sub-module code. The sub-module options are used for indicating coding formats corresponding to the sub-module codes. The sub-module code comprises at least one data sequence or identification information corresponding to the at least one data sequence, and each data sequence is determined according to a coding format indicated by the sub-module option and a corresponding code block. According to the method, the code blocks are coded in a standardized mode to generate the target execution file, so that cross-platform operation of the target execution file is realized, and the operation efficiency is improved.
Owner:HUAWEI TECH CO LTD

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 generation method and device, electronic equipment and storage medium

The invention discloses a code generation method and device, electronic equipment and a storage medium, and belongs to the technical field of software development, in the method, operation granularity information of MMA and tensor information of input tensor and output tensor are determined in response to an instruction for performing MMA intermediate representation on tensor, the input tensor comprises a left tensor and a right tensor, and the right tensor comprises a left tensor and a right tensor; partitioning the output tensor according to the tensor information and the operation granularity information of each tensor, and generating a code segment based on a corresponding left data block in the left tensor and a corresponding right data block in the right tensor of each region in the output tensor so as to write a matrix multiplication result of the left data block and the right data block into the region, and fusing the code segments corresponding to the regions to obtain an MMA intermediate representation. Therefore, no matter how many dimensions of each tensor are, the MMA intermediate representation can be automatically generated according to the target information, and developers do not need to develop loop codes and understand the memory layout of the tensors, so that the development difficulty is relatively low.
Owner:SHANGHAI BIREN TECH CO LTD

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

Code generation method, device, electronic device and storage medium

The present application discloses a code generation method, device, electronic device and storage medium, belonging to the field of software development technology. In this method, in response to an instruction to perform an intermediate representation of a tensor using MMA, the operation granularity information of the MMA, the tensor information of the input tensor and the output tensor are determined, the input tensor includes a left tensor and a right tensor, the output tensor is partitioned according to the tensor information and operation granularity information of each tensor, and a code segment is generated based on the left data block corresponding to each region in the output tensor in the left tensor and the right data block corresponding to each region in the right tensor, so that the matrix multiplication result of the left data block and the right data block is written into this region, and the code segments corresponding to each region are fused to obtain the intermediate representation of the MMA. In this way, regardless of the dimension of each tensor, the intermediate representation of the MMA can be automatically generated according to the target information, without the developer having to develop loop code or understand the memory layout of the tensor, so the development difficulty is relatively low.
Owner:SHANGHAI BIREN TECH CO LTD

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

Information processing device, non-transitory computer readable medium, and information processing system

An information processing device includes one or more processors. The one or more processors are configured to divide targets into a plurality of units for each predetermined identifier, define a set of a first predetermined number of said units as a sub-block from each of the units for the plurality of units; encode the sub-block by predetermined conversion, and obtain a code; and use the code as a key, and detect existence of another sub-block having identical content with the sub-block corresponding to the code when duplication of the key is detected.
Owner:FIXSTARS CORPORATION

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

An Encoding Dynamic Completion Method for Large Language Models

The present invention proposes a coding dynamic completion method for large language models. The method includes: constructing a mixed training dataset; initializing a Transformer model architecture that integrates probability space topological transformation; performing model training with collaborative optimization of the main objective and the auxiliary objective based on the mixed training dataset; at each decoding step, the model calculates the probability distribution of the next token according to the current context; constraining the generated probability distribution within the effective probability subspace through spherical probability mapping, and combining with the taboo table mechanism to filter syntax error candidates in real time and adjust the probability distribution; dynamically selecting a sampling strategy according to the current decoding depth, sampling from the adjusted probability distribution to obtain the next code snippet, and finally generating code completion suggestions that conform to the abstract syntax tree rules and semantic constraints. By combining the probability distribution constraint and the taboo table mechanism, the model of the present invention can dynamically adjust the generated probability distribution, enabling more appropriate candidate tokens to obtain higher probabilities, thereby improving the accuracy of code completion.
Owner:SHENZHEN HAIYUNAN NETWORK SECURITY TECH CO LTD

System and method for identifying and rectifying application program interface errors using quantum computing

A method includes analyzing codes of a plurality of applications. Errors in the codes of the plurality of applications are identified based on a plurality of rules. An initial quantum state is generated and one or more iterations are performed on the initial quantum state to determine a final quantum state. Performing an iteration of the one or more iterations includes applying an oracle operator and a diffusion operator to the current quantum state. Based on the final quantum state, one or more APIs of the plurality of applications that correspond to the errors are determined. A first application corresponding to a first API of the one or more APIs is identified. A first code fix for a first code of the first application is determined. The first code fix is applied to the first code of the first application to determine a first fixed code of the first application.
Owner:BANK OF AMERICA CORP

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

A method, device, medium, and equipment for detecting code vulnerabilities

The present application discloses a code vulnerability detection method, device, medium and equipment. After obtaining a sample code set, it can identify and delete the annotation information in each sample code included in the sample code set to obtain each desensitized code. Then, according to a preset adjustment strategy, each desensitized code is adjusted to obtain at least one enhanced code with the same code identifier as the desensitized code. Subsequently, by combining each code segment belonging to the same code identifier, multiple composite codes corresponding to one code identifier can be obtained. Furthermore, through these composite codes, a test set is constructed to adjust the vulnerability detection model through the test set, and code vulnerability detection is performed through the adjusted vulnerability detection model. Thus, in subsequent actual applications, the recognition accuracy of the vulnerability detection model can be significantly improved.
Owner:ZHEJIANG LAB

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

Code detection method and device, equipment, medium and product

The invention discloses a code detection method, device and equipment, a medium and a product. The method comprises the following steps: in response to an access control distribution request comprising object information, determining code detection demand information corresponding to the access control distribution request; the object information comprises project attribute information corresponding to the to-be-deployed assembly line or code attribute information of the to-be-merged code; the code detection demand information at least comprises an access control configuration type; under the condition that the access control configuration type is a preset type, determining a target quality inspection template from the at least one to-be-selected quality inspection template based on the code detection demand information and the object information; the to-be-selected quality inspection template comprises at least one code entrance guard and detection parameters of the code entrance guard; and based on the target quality inspection template, executing a code detection task corresponding to the access control distribution request. According to the technical scheme provided by the invention, the high efficiency, accuracy and reliability of code detection are improved, and the technical effect of guaranteeing the code quality is achieved.
Owner:AGRICULTURAL BANK OF CHINA