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

59 results about "Type inference" patented technology

Type inference refers to the automatic detection of the data type of an expression in a programming language. It is a feature present in some strongly statically typed languages. It is often characteristic of functional programming languages in general. Some languages that include type inference include C++11, C# (starting with version 3.0), Chapel, Clean, Crystal, D, F#, FreeBASIC, Go, Haskell, Java (starting with version 10), Julia, Kotlin, ML, Nim, OCaml, Opa, RPython, Rust, Scala, Swift, Vala and Visual Basic (starting with version 9.0). The majority of them use a simple form of type inference; the Hindley-Milner type system can provide more complete type inference. The ability to infer types automatically makes many programming tasks easier, leaving the programmer free to omit type annotations while still permitting type checking.

Python resource sensitive defect code detecting method based on depth neural network

The invention provides a Python resource sensitive defect code detecting method based on a depth neural network. The Python resource sensitive defect code detecting method comprises the following steps of 1, obtaining a source code of the historical version of the same software and a source code of a to-be-detected version; 2, utilizing type deduction to extract resource sensitive code modes of all versions; 3, extracting relevant characteristics of the resource sensitive code modes; 4, calculating all characteristic similarities between a defect code mode and a safe code mode and between thedefect code mode and a to-be-detected code mode to generate characteristic vectors and obtaining a training set and a testing set; 5, using the training set to train a depth neural network model to combine the characteristics, then using the mode with a testing set to calculate relevance of the depth neural network model and ranking the relevance; 6, conducting prompt, assisting development and maintenance on possibly wrong resource object operations according to a relevance ranking result in a program development and maintenance period. The Python resource sensitive defect code detecting method based on the depth neural network solves the problems that currently, an automated method aiming at Python language resource sensitive code recognition and defect code detection is lack, then the software risk is lowered, the software quality is improved, and thus the efficiency for a developer and a maintainer to develop and maintain software is improved.
Owner:NANJING UNIV

Configuration item type constraint inference method based on name semantics

The invention discloses a configuration item type constraint inference method based on name semantics, and provides a configuration item type inference and related constraint extraction method based on name semantics, wherein semantic information in a name and a type of a configuration item are fully mined, and consequently an aim of promoting configuration constraint extraction precision and eliminating constraint extraction boundedness is realized. A technical scheme comprises the following steps: firstly, reading a configuration file of a software system in advance, and obtaining the configuration item in the configuration file through parsing; secondly, finding out mapping between the system configuration item and a program source code through a characteristic mode; then, obtaining thetype of the configuration item through name analysis and program source code analysis; completing verification for the configuration type; and finally, inferring out the configuration constraint in cooperation with program analysis through a predefined template. According to the method provided by the invention, the semantic information in the name of the configuration item, particularly the constraint information contained in the configuration item type, is mined fully. The type of the configuration item is inferred through the name of the configuration item, meanwhile, grammar and semanticconstraint of the configuration item are extracted, difficulty in extraction of the configuration constraint is reduced greatly, the configuration constraint can be described in a fine granularity mode at the same time, and the method has good application scenes.
Owner:NAT UNIV OF DEFENSE TECH

Smart socket-based electrical appliance type inference method and device

The invention discloses a smart socket-based electrical appliance type inference method and device, wherein the method comprises the following steps: constructing a user power data set according to electrical appliance power consumption data, and constructing an electrical appliance power consumption characteristic model library according to the electrical appliance power consumption characteristic; constructing an electrical appliance behavior data set according to the user power data set and the electrical appliance power consumption characteristic model library; constructing a characteristic vector extracting model according to the electrical appliance behavior data set so as to construct a power consumption characteristic vector data set; constructing an electrical appliance type classifier according to the power consumption characteristic vector data set and a machine learning algorithm; detecting the power consumption data of a to-be-measured electrical appliance and determiningthe electrical type of the to-be-measured electrical appliance through the model and the classifier. According to the method, the power data of the user is collected through a smart socket; by extracting the characteristics of the range of the power consumption of the household appliances, the duty ratio of the power consumption and the duration of time of power consumption, the power utilizationbehavior of the user is inferred, an electrical appliance behavior event data set is generated, and an electrical appliance type classifier is constructed based on the machine learning model, so thatthe type of the utilized electrical appliance can be inferred in real time; the robustness is high; and the method is simple and easy to implement.
Owner:BEIHANG UNIV +1
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