Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

43 results about "Snippet" patented technology

Snippet is a programming term for a small region of re-usable source code, machine code, or text. Ordinarily, these are formally defined operative units to incorporate into larger programming modules. Snippet management is a feature of some text editors, program source code editors, IDEs, and related software. It allows the user to avoid repetitive typing in the course of routine edit operations.

Code snippet recommendation method based on sequence-to-sequence model

The invention discloses a code snippet recommendation method based on a sequence-to-sequence model. The method comprises the steps of collecting and cleaning code snippets and corresponding queries; extracting code information; performing an identifier replacement operation on the code snippets; combining the code snippets after the identifier replacement operation and the corresponding queries into a set of (code, query) pairs, and taking the set as a training set of a query generation model; training a query generation model by using the sequence-to-sequence model; generating a query for thecode snippets of the recommendation code library; inputting a query, and executing similarity calculation between the query and the generated query; and according to a similarity calculation result,constructing a generated query list according to a descending order of similarity scores, and retrieving code snippets corresponding to queries in the list from a recommendation code library to serveas code snippet recommendation results. The method is superior to some existing research works, the code snippet recommendation effect can be effectively improved, and the software development efficiency is improved.
Owner:NANJING UNIV OF AERONAUTICS & ASTRONAUTICS

Program semantic confusion method and system based on natural language processing

PendingCN114580371AAchieving Semantic InductionAchieving vague obfuscation purposesNatural language data processingProgram/content distribution protectionReverse analysisEngineering
The invention belongs to the technical field of network security, and particularly relates to a program semantic confusion method and system based on natural language process.The method comprises the steps that firstly, a text sequence used for describing a program execution process is extracted from a flow description text corpus, and a confusion corpus material library with induction and fuzzy functions is constructed; secondly, vectorizing the target program code snippets, selecting text sequences irrelevant to the target program code snippets from the obfuscated corpus material library according to the semantic information as prompt output class codes, and fusing the prompt output class codes to the positions of the target program code snippets; according to the method, the semantic confusion corpus with inductivity and fuzziness is fused into the target code, the confusion code with semantic analysis resistance is generated, understanding of reverse analysts on real functions of a program can be misguided, the code understanding difficulty is increased, legal software can be effectively prevented from being pirated or maliciously tampered, and the method has good application prospects.
Owner:PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU

Method and apparatus for query formulation

To the standard operations of an inverted index database, a new “To” operator is added. The “To” operator treats the standard single-level linear collection of records as being organized into localized clusters. Techniques for hierarchical clusters are presented. During indexing, hierarchical clusters are serialized according to a uniform visitation procedure. Serialization produces bit maps, one for each hierarchical level, that preserve the hierarchical level of each record and its location in the serialization sequence. The “To” operator accepts a list of records, each at a same hierarchical level in a cluster, and a specification of a hierarchical level that all the input records should be converted into. The “To” operator outputs a list of records, representing a conversion of the input records to the specified new level.When searching a Corpus-of-Interest for an Object-of-Interest, techniques are presented for greatly improving the process by which Exclude Terms are identified. Exclude Terms are particularly useful when the lexical units, representing an Object-of-Interest, are ambiguous. When in the mode of searching for Exclude Terms, the Object-of-Interest of interest is sought, in the Corpus-of-Interest, in a broader context than when the Exclude Terms are utilized as part of an actual query. The Object-of-Interest can match anywhere in a snippet, rather than just in the focus sentence. Using the “To” operator, the focus sentences thus found are converted into role values. Statistical sampling of the role values may be used to reduce the data for the next step of processing. The role values are subjected to frequency and cluster analysis, at the lexical unit level, in order to identify candidate Exclude Terms that a user can select. Frequency and clustering information, is presented to the user, to aid in the decision process. The search for Exclude Terms can be repeated, using the Exclude Terms located thus far.
Owner:NETBASE SOLUTIONS INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products