test_class.declarator: contentType =
        new MediaType(
            MediaType.APPLICATION_JSON.getType(),
            MediaType.APPLICATION_JSON.getSubtype(),
            Charset.forName("utf8"))
test_class.modifier: private
test_class.original_string: private MediaType contentType =
        new MediaType(
            MediaType.APPLICATION_JSON.getType(),
            MediaType.APPLICATION_JSON.getSubtype(),
            Charset.forName("utf8"));
test_class.type: MediaType
test_class.var_name: contentType
test_class.declarator: mockMvc
test_class.modifier: private
test_class.original_string: private MockMvc mockMvc;
test_class.type: MockMvc
test_class.var_name: mockMvc
test_class.declarator: mappingJackson2HttpMessageConverter
test_class.modifier: private
test_class.original_string: private HttpMessageConverter<?> mappingJackson2HttpMessageConverter;
test_class.type: HttpMessageConverter<?>
test_class.var_name: mappingJackson2HttpMessageConverter
test_class.declarator: bugRepository
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private BugRepository bugRepository;
test_class.type: BugRepository
test_class.var_name: bugRepository
test_class.declarator: cidRepository
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private ConstructIdRepository cidRepository;
test_class.type: ConstructIdRepository
test_class.var_name: cidRepository
test_class.declarator: ccRepository
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private ConstructChangeRepository ccRepository;
test_class.type: ConstructChangeRepository
test_class.var_name: ccRepository
test_class.declarator: libRepository
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private LibraryRepository libRepository;
test_class.type: LibraryRepository
test_class.var_name: libRepository
test_class.declarator: libIdRepository
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private LibraryIdRepository libIdRepository;
test_class.type: LibraryIdRepository
test_class.var_name: libIdRepository
test_class.declarator: afflibRepository
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private AffectedLibraryRepository afflibRepository;
test_class.type: AffectedLibraryRepository
test_class.var_name: afflibRepository
test_class.declarator: webApplicationContext
test_class.modifier: @Autowired private
test_class.original_string: @Autowired private WebApplicationContext webApplicationContext;
test_class.type: WebApplicationContext
test_class.var_name: webApplicationContext
test_class.declarator: BUG_JSON =
        "{\"id\":1,\"bugId\":\"CVE-2014-0050\",\"source\":\"NVD\",\"description\":\"MultipartStream.java"
            + " in Apache Commons FileUpload before 1.3.1, as used in Apache"
            + " [...]\",\"url\":\"https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0050\",\"constructChanges\":[{\"repo\":\"svn.apache.org\",\"commit\":\"123456\",\"path\":\"/branch/1.x/src/main/java/com/acme/Foo.java\",\"constructId\":{\"lang\":\"JAVA\",\"type\":\"CLAS\",\"qname\":\"com.acme.Foo\"},\"committedAt\":\"2016-05-13T14:35:50.274+0000\",\"changeType\":\"MOD\"},{\"repo\":\"svn.apache.org\",\"commit\":\"123456\",\"path\":\"/trunk/src/main/java/com/acme/Foo.java\",\"constructId\":{\"lang\":\"JAVA\",\"type\":\"CLAS\",\"qname\":\"com.acme.Foo\"},\"committedAt\":\"2016-05-13T14:35:50.274+0000\",\"changeType\":\"MOD\"}],\"countConstructChanges\":2}"
test_class.modifier: private static final
test_class.original_string: private static final String BUG_JSON =
        "{\"id\":1,\"bugId\":\"CVE-2014-0050\",\"source\":\"NVD\",\"description\":\"MultipartStream.java"
            + " in Apache Commons FileUpload before 1.3.1, as used in Apache"
            + " [...]\",\"url\":\"https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0050\",\"constructChanges\":[{\"repo\":\"svn.apache.org\",\"commit\":\"123456\",\"path\":\"/branch/1.x/src/main/java/com/acme/Foo.java\",\"constructId\":{\"lang\":\"JAVA\",\"type\":\"CLAS\",\"qname\":\"com.acme.Foo\"},\"committedAt\":\"2016-05-13T14:35:50.274+0000\",\"changeType\":\"MOD\"},{\"repo\":\"svn.apache.org\",\"commit\":\"123456\",\"path\":\"/trunk/src/main/java/com/acme/Foo.java\",\"constructId\":{\"lang\":\"JAVA\",\"type\":\"CLAS\",\"qname\":\"com.acme.Foo\"},\"committedAt\":\"2016-05-13T14:35:50.274+0000\",\"changeType\":\"MOD\"}],\"countConstructChanges\":2}";
test_class.type: String
test_class.var_name: BUG_JSON
test_class.declarator: BUG_ID = "CVE-2014-0050"
test_class.modifier: private static final
test_class.original_string: private static final String BUG_ID = "CVE-2014-0050";
test_class.type: String
test_class.var_name: BUG_ID
test_class.declarator: BUG_URL1 =
        "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0050"
test_class.modifier: private static final
test_class.original_string: private static final String BUG_URL1 =
        "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-0050";
test_class.type: String
test_class.var_name: BUG_URL1
test_class.declarator: BUG_URL2 = "http://svn.apache.org/r1565143"
test_class.modifier: private static final
test_class.original_string: private static final String BUG_URL2 = "http://svn.apache.org/r1565143";
test_class.type: String
test_class.var_name: BUG_URL2
test_class.declarator: BUG_DESCR =
        "MultipartStream.java in Apache Commons FileUpload before 1.3.1, as used in Apache Tomcat,"
            + " JBoss Web, and other products, allows remote attackers to cause a denial of service"
            + " (infinite loop and CPU consumption) via a crafted Content-Type header that bypasses"
            + " a loop&#039;s intended exit conditions."
test_class.modifier: private static final
test_class.original_string: private static final String BUG_DESCR =
        "MultipartStream.java in Apache Commons FileUpload before 1.3.1, as used in Apache Tomcat,"
            + " JBoss Web, and other products, allows remote attackers to cause a denial of service"
            + " (infinite loop and CPU consumption) via a crafted Content-Type header that bypasses"
            + " a loop&#039;s intended exit conditions.";
test_class.type: String
test_class.var_name: BUG_DESCR
test_class.file: rest-backend/src/test/java/org/eclipse/steady/backend/rest/BugControllerTest.java
test_class.identifier: BugControllerTest
test_case.body: @Test
    public void testGetBug() throws Exception {
      final Bug bug = this.createExampleBug(BUG_ID, BUG_DESCR);
      this.bugRepository.customSave(bug, true);
      mockMvc
          .perform(get("/bugs/" + bug.getBugId()))
          .andExpect(status().isOk())
          .andExpect(content().contentType(contentType))
          .andExpect(jsonPath("$.bugId", is(BUG_ID)))
          .andExpect(jsonPath("$.reference[0]", is(BUG_URL1)))
          .andExpect(jsonPath("$.reference[1]", is(BUG_URL2)))
          .andExpect(jsonPath("$.description", is(BUG_DESCR)));
  
      // Repo must contain 1
      assertEquals(1, this.bugRepository.count());
    }
test_case.class_method_signature: BugControllerTest.testGetBug()
test_case.full_signature: @Test public void testGetBug()
test_case.identifier: testGetBug
test_case.invocations: createExampleBug customSave andExpect andExpect andExpect andExpect andExpect andExpect perform get getBugId isOk status contentType content jsonPath is jsonPath is jsonPath is jsonPath is assertEquals count
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBug()
focal_class.declarator: log = LoggerFactory.getLogger(BugController.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger log = LoggerFactory.getLogger(BugController.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: bugRepository
focal_class.modifier: private final
focal_class.original_string: private final BugRepository bugRepository;
focal_class.type: BugRepository
focal_class.var_name: bugRepository
focal_class.declarator: afflibRepository
focal_class.modifier: private final
focal_class.original_string: private final AffectedLibraryRepository afflibRepository;
focal_class.type: AffectedLibraryRepository
focal_class.var_name: afflibRepository
focal_class.declarator: libRepository
focal_class.modifier: private final
focal_class.original_string: private final LibraryRepository libRepository;
focal_class.type: LibraryRepository
focal_class.var_name: libRepository
focal_class.declarator: tenantRepository
focal_class.modifier: private final
focal_class.original_string: private final TenantRepository tenantRepository;
focal_class.type: TenantRepository
focal_class.var_name: tenantRepository
focal_class.file: rest-backend/src/main/java/org/eclipse/steady/backend/rest/BugController.java
focal_class.identifier: BugController
focal_class.class_method_signature: BugController.BugController(
        BugRepository bugRepository,
        AffectedLibraryRepository afflibRepository,
        LibraryRepository libRepository,
        TenantRepository tenantRepository)
focal_class.full_signature: @Autowired  BugController(
        BugRepository bugRepository,
        AffectedLibraryRepository afflibRepository,
        LibraryRepository libRepository,
        TenantRepository tenantRepository)
focal_class.identifier: BugController
focal_class.modifiers: @Autowired
focal_class.parameters: (
        BugRepository bugRepository,
        AffectedLibraryRepository afflibRepository,
        LibraryRepository libRepository,
        TenantRepository tenantRepository)
focal_class.signature:  BugController(
        BugRepository bugRepository,
        AffectedLibraryRepository afflibRepository,
        LibraryRepository libRepository,
        TenantRepository tenantRepository)
focal_class.class_method_signature: BugController.getBugs(
        @RequestParam(value = "lang", required = false) ProgrammingLanguage lang)
focal_class.full_signature: @RequestMapping( value = "", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.Default.class) public Iterable<Bug> getBugs(
        @RequestParam(value = "lang", required = false) ProgrammingLanguage lang)
focal_class.identifier: getBugs
focal_class.modifiers: @RequestMapping( value = "", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.Default.class) public
focal_class.parameters: (
        @RequestParam(value = "lang", required = false) ProgrammingLanguage lang)
focal_class.return: Iterable<Bug>
focal_class.signature: Iterable<Bug> getBugs(
        @RequestParam(value = "lang", required = false) ProgrammingLanguage lang)
focal_class.class_method_signature: BugController.getBugAffLibIds()
focal_class.full_signature: @RequestMapping( value = "/dump", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public Iterable<Bug> getBugAffLibIds()
focal_class.identifier: getBugAffLibIds
focal_class.modifiers: @RequestMapping( value = "/dump", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public
focal_class.parameters: ()
focal_class.return: Iterable<Bug>
focal_class.signature: Iterable<Bug> getBugAffLibIds()
focal_class.class_method_signature: BugController.createBug(@RequestBody Bug bug)
focal_class.full_signature: @RequestMapping( value = "", method = RequestMethod.POST, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) public ResponseEntity<Bug> createBug(@RequestBody Bug bug)
focal_class.identifier: createBug
focal_class.modifiers: @RequestMapping( value = "", method = RequestMethod.POST, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) public
focal_class.parameters: (@RequestBody Bug bug)
focal_class.return: ResponseEntity<Bug>
focal_class.signature: ResponseEntity<Bug> createBug(@RequestBody Bug bug)
focal_class.class_method_signature: BugController.createAllBugs(@RequestBody Bug[] bugs)
focal_class.full_signature: @RequestMapping( value = "/dump", method = RequestMethod.POST, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public ResponseEntity<Bug[]> createAllBugs(@RequestBody Bug[] bugs)
focal_class.identifier: createAllBugs
focal_class.modifiers: @RequestMapping( value = "/dump", method = RequestMethod.POST, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public
focal_class.parameters: (@RequestBody Bug[] bugs)
focal_class.return: ResponseEntity<Bug[]>
focal_class.signature: ResponseEntity<Bug[]> createAllBugs(@RequestBody Bug[] bugs)
focal_class.class_method_signature: BugController.getBug(@PathVariable String bugid)
focal_class.full_signature: @RequestMapping( value = "/{bugid}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public ResponseEntity<Bug> getBug(@PathVariable String bugid)
focal_class.identifier: getBug
focal_class.modifiers: @RequestMapping( value = "/{bugid}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public
focal_class.parameters: (@PathVariable String bugid)
focal_class.return: ResponseEntity<Bug>
focal_class.signature: ResponseEntity<Bug> getBug(@PathVariable String bugid)
focal_class.class_method_signature: BugController.isBugExisting(@PathVariable String bugid)
focal_class.full_signature: @RequestMapping(value = "/{bugid}", method = RequestMethod.OPTIONS) public ResponseEntity<Bug> isBugExisting(@PathVariable String bugid)
focal_class.identifier: isBugExisting
focal_class.modifiers: @RequestMapping(value = "/{bugid}", method = RequestMethod.OPTIONS) public
focal_class.parameters: (@PathVariable String bugid)
focal_class.return: ResponseEntity<Bug>
focal_class.signature: ResponseEntity<Bug> isBugExisting(@PathVariable String bugid)
focal_class.class_method_signature: BugController.updateBug(@PathVariable String bugid, @RequestBody Bug bug)
focal_class.full_signature: @RequestMapping( value = "/{bugid}", method = RequestMethod.PUT, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) public ResponseEntity<Bug> updateBug(@PathVariable String bugid, @RequestBody Bug bug)
focal_class.identifier: updateBug
focal_class.modifiers: @RequestMapping( value = "/{bugid}", method = RequestMethod.PUT, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) public
focal_class.parameters: (@PathVariable String bugid, @RequestBody Bug bug)
focal_class.return: ResponseEntity<Bug>
focal_class.signature: ResponseEntity<Bug> updateBug(@PathVariable String bugid, @RequestBody Bug bug)
focal_class.class_method_signature: BugController.deleteBug(@PathVariable String bugid)
focal_class.full_signature: @RequestMapping(value = "/{bugid}", method = RequestMethod.DELETE) @CacheEvict(value = "bug") public ResponseEntity<Resource<Bug>> deleteBug(@PathVariable String bugid)
focal_class.identifier: deleteBug
focal_class.modifiers: @RequestMapping(value = "/{bugid}", method = RequestMethod.DELETE) @CacheEvict(value = "bug") public
focal_class.parameters: (@PathVariable String bugid)
focal_class.return: ResponseEntity<Resource<Bug>>
focal_class.signature: ResponseEntity<Resource<Bug>> deleteBug(@PathVariable String bugid)
focal_class.class_method_signature: BugController.createAffectedLibrary(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.full_signature: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.POST, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibs.class) public ResponseEntity<List<AffectedLibrary>> createAffectedLibrary(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.identifier: createAffectedLibrary
focal_class.modifiers: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.POST, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibs.class) public
focal_class.parameters: (
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.return: ResponseEntity<List<AffectedLibrary>>
focal_class.signature: ResponseEntity<List<AffectedLibrary>> createAffectedLibrary(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.class_method_signature: BugController.addAffectedLibrary(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.full_signature: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.PUT, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibs.class) public ResponseEntity<List<AffectedLibrary>> addAffectedLibrary(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.identifier: addAffectedLibrary
focal_class.modifiers: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.PUT, consumes = {"application/json;charset=UTF-8"}, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibs.class) public
focal_class.parameters: (
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.return: ResponseEntity<List<AffectedLibrary>>
focal_class.signature: ResponseEntity<List<AffectedLibrary>> addAffectedLibrary(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source,
        @RequestBody AffectedLibrary[] affectedLibraries)
focal_class.class_method_signature: BugController.getAllAffectedLibraries(
        @PathVariable String bugid,
        @RequestParam(value = "resolved", required = false, defaultValue = "false") Boolean resolved,
        @RequestParam(value = "source", required = false) AffectedVersionSource source,
        @RequestParam(value = "onlyWellKnown", required = false, defaultValue = "false")
            Boolean onlyWellknown)
focal_class.full_signature: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibs.class) public ResponseEntity<List<AffectedLibrary>> getAllAffectedLibraries(
        @PathVariable String bugid,
        @RequestParam(value = "resolved", required = false, defaultValue = "false") Boolean resolved,
        @RequestParam(value = "source", required = false) AffectedVersionSource source,
        @RequestParam(value = "onlyWellKnown", required = false, defaultValue = "false")
            Boolean onlyWellknown)
focal_class.identifier: getAllAffectedLibraries
focal_class.modifiers: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibs.class) public
focal_class.parameters: (
        @PathVariable String bugid,
        @RequestParam(value = "resolved", required = false, defaultValue = "false") Boolean resolved,
        @RequestParam(value = "source", required = false) AffectedVersionSource source,
        @RequestParam(value = "onlyWellKnown", required = false, defaultValue = "false")
            Boolean onlyWellknown)
focal_class.return: ResponseEntity<List<AffectedLibrary>>
focal_class.signature: ResponseEntity<List<AffectedLibrary>> getAllAffectedLibraries(
        @PathVariable String bugid,
        @RequestParam(value = "resolved", required = false, defaultValue = "false") Boolean resolved,
        @RequestParam(value = "source", required = false) AffectedVersionSource source,
        @RequestParam(value = "onlyWellKnown", required = false, defaultValue = "false")
            Boolean onlyWellknown)
focal_class.class_method_signature: BugController.getAffectedLibrariesByGA(
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.full_signature: @RequestMapping( value = "/{bugid}/affectedLibIds/{mvnGroup:.+}/{artifact:.+}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibsDetails.class) public ResponseEntity<List<AffectedLibrary>> getAffectedLibrariesByGA(
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.identifier: getAffectedLibrariesByGA
focal_class.modifiers: @RequestMapping( value = "/{bugid}/affectedLibIds/{mvnGroup:.+}/{artifact:.+}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibsDetails.class) public
focal_class.parameters: (
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.return: ResponseEntity<List<AffectedLibrary>>
focal_class.signature: ResponseEntity<List<AffectedLibrary>> getAffectedLibrariesByGA(
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.class_method_signature: BugController.getAffectedLibraryDetails(
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @PathVariable String version,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.full_signature: @RequestMapping( value = "/{bugid}/affectedLibIds/{mvnGroup:.+}/{artifact:.+}/{version:.+}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibsDetails.class) public ResponseEntity<List<AffectedLibrary>> getAffectedLibraryDetails(
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @PathVariable String version,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.identifier: getAffectedLibraryDetails
focal_class.modifiers: @RequestMapping( value = "/{bugid}/affectedLibIds/{mvnGroup:.+}/{artifact:.+}/{version:.+}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugAffLibsDetails.class) public
focal_class.parameters: (
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @PathVariable String version,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.return: ResponseEntity<List<AffectedLibrary>>
focal_class.signature: ResponseEntity<List<AffectedLibrary>> getAffectedLibraryDetails(
        @PathVariable String bugid,
        @PathVariable String mvnGroup,
        @PathVariable String artifact,
        @PathVariable String version,
        @RequestParam(value = "source", required = false) AffectedVersionSource source)
focal_class.class_method_signature: BugController.areBugAffectedLibrariesExisting(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.full_signature: @RequestMapping(value = "/{bugid}/affectedLibIds", method = RequestMethod.OPTIONS) public ResponseEntity<List<AffectedLibrary>> areBugAffectedLibrariesExisting(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.identifier: areBugAffectedLibrariesExisting
focal_class.modifiers: @RequestMapping(value = "/{bugid}/affectedLibIds", method = RequestMethod.OPTIONS) public
focal_class.parameters: (
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.return: ResponseEntity<List<AffectedLibrary>>
focal_class.signature: ResponseEntity<List<AffectedLibrary>> areBugAffectedLibrariesExisting(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.class_method_signature: BugController.deleteAffectedLibraries(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.full_signature: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.DELETE, produces = {"application/json;charset=UTF-8"}) public ResponseEntity<List<AffectedLibrary>> deleteAffectedLibraries(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.identifier: deleteAffectedLibraries
focal_class.modifiers: @RequestMapping( value = "/{bugid}/affectedLibIds", method = RequestMethod.DELETE, produces = {"application/json;charset=UTF-8"}) public
focal_class.parameters: (
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.return: ResponseEntity<List<AffectedLibrary>>
focal_class.signature: ResponseEntity<List<AffectedLibrary>> deleteAffectedLibraries(
        @PathVariable String bugid,
        @RequestParam(value = "source", required = true) AffectedVersionSource source)
focal_class.class_method_signature: BugController.getAllBugLibraries(@PathVariable String bugid)
focal_class.full_signature: @RequestMapping( value = "/{bugid}/libraries", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.Default.class) public ResponseEntity<List<Library>> getAllBugLibraries(@PathVariable String bugid)
focal_class.identifier: getAllBugLibraries
focal_class.modifiers: @RequestMapping( value = "/{bugid}/libraries", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.Default.class) public
focal_class.parameters: (@PathVariable String bugid)
focal_class.return: ResponseEntity<List<Library>>
focal_class.signature: ResponseEntity<List<Library>> getAllBugLibraries(@PathVariable String bugid)
focal_method.body: @RequestMapping(
        value = "/{bugid}",
        method = RequestMethod.GET,
        produces = {"application/json;charset=UTF-8"})
    @JsonView(Views.BugDetails.class)
    public ResponseEntity<Bug> getBug(@PathVariable String bugid) {
      final StopWatch sw = new StopWatch("GET bug [" + bugid + "]").start();
      try {
        final Bug b = BugRepository.FILTER.findOne(this.bugRepository.findByBugId(bugid));
        this.bugRepository.updateCachedCveData(b, false);
        sw.stop();
        return new ResponseEntity<Bug>(b, HttpStatus.OK);
      } catch (EntityNotFoundException enfe) {
        sw.stop(enfe);
        return new ResponseEntity<Bug>(HttpStatus.NOT_FOUND);
      } catch (Exception e) {
        sw.stop(e);
        return new ResponseEntity<Bug>(HttpStatus.INTERNAL_SERVER_ERROR);
      }
    }
focal_method.class_method_signature: BugController.getBug(@PathVariable String bugid)
focal_method.full_signature: @RequestMapping( value = "/{bugid}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public ResponseEntity<Bug> getBug(@PathVariable String bugid)
focal_method.identifier: getBug
focal_method.invocations: start findOne findByBugId updateCachedCveData stop stop stop
focal_method.modifiers: @RequestMapping( value = "/{bugid}", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @JsonView(Views.BugDetails.class) public
focal_method.parameters: (@PathVariable String bugid)
focal_method.return: ResponseEntity<Bug>
focal_method.signature: ResponseEntity<Bug> getBug(@PathVariable String bugid)