The existing software bug localization models treat the source file as natural language, which leads to the loss of syntactical and structure information of the source file. A bug localization model based on syntactic...The existing software bug localization models treat the source file as natural language, which leads to the loss of syntactical and structure information of the source file. A bug localization model based on syntactical and semantic information of source code is proposed. Firstly, abstract syntax tree(AST) is divided based on node category to obtain statement sequence. The statement tree is encoded into vectors to capture lexical and syntactical knowledge at the statement level.Secondly, the source code is transformed into vector representation by the sequence naturalness of the statement. Therefore,the problem of gradient vanishing and explosion caused by a large AST size is obviated when using AST to the represent source code. Finally, the correlation between bug reports and source files are comprehensively analyzed from three aspects of syntax, semantics and text to locate the buggy code. Experiments show that compared with other standard models, the proposed model improves the performance of bug localization, and it has good advantages in mean reciprocal rank(MRR), mean average precision(MAP) and Top N Rank.展开更多
Set-nets are common alongshore fishing gear used in Haizhou Bay, which rely on flow to catch fish. The catch per unit effort(CPUE) of set-net is affected by spatial-temporal and environmental factors but no research h...Set-nets are common alongshore fishing gear used in Haizhou Bay, which rely on flow to catch fish. The catch per unit effort(CPUE) of set-net is affected by spatial-temporal and environmental factors but no research has been conducted on this subject. In this study, we used generalized additive models(GAMs) to explore the influence of spatial-temporal and environmental factors on CPUEs of species aggregated, small yellow croaker(Larimichthys polyactis), and octopus(Octopus variabilis) based on logbooks investigations conducted at 4 stations in an alongshore area of Haizhou Bay from 2011 to 2012. The results showed that all CPUEs exhibited significant spatial-temporal differences at various scales. Aggregated CPUE was high when the sea surface temperature(SST) was 15-18℃ and 20-23℃, which was mainly determined by life history traits of the octopus and small yellow croaker(optimal SSTs 14-17℃ and 19-24℃, respectively). Chlorophyll-a concentration had significant influences on the aggregated, small yellow croaker and octopus CPUEs at optimal ranges of 3.8-6.2 mg m^(-3), 4.2-4.8 mg m^(-3) and 4.5-5.5 mg m^(-3), respectively. Flow through the net had positive relationships with CPUEs. The approximate logarithmic trends in regression curves had a critical point of 2.5 Mm^3 d^(-1), which was the dividing point that differentiated whether the major factor affecting CPUEs was the flow velocity or the fishery resource. Our results from this study will help guide fishery production and improve catch rate of set-net fishing in Haizhou Bay.展开更多
基金supported by the National Key R&D Program of China (2018YFB1702700)。
文摘The existing software bug localization models treat the source file as natural language, which leads to the loss of syntactical and structure information of the source file. A bug localization model based on syntactical and semantic information of source code is proposed. Firstly, abstract syntax tree(AST) is divided based on node category to obtain statement sequence. The statement tree is encoded into vectors to capture lexical and syntactical knowledge at the statement level.Secondly, the source code is transformed into vector representation by the sequence naturalness of the statement. Therefore,the problem of gradient vanishing and explosion caused by a large AST size is obviated when using AST to the represent source code. Finally, the correlation between bug reports and source files are comprehensively analyzed from three aspects of syntax, semantics and text to locate the buggy code. Experiments show that compared with other standard models, the proposed model improves the performance of bug localization, and it has good advantages in mean reciprocal rank(MRR), mean average precision(MAP) and Top N Rank.
基金funded through the Special Fund for Agro-Scientific Research in the Public Interestthe Special Public Welfare Industry (agriculture) Research-Research and Demonstration of Fisheries Fishing Technology and Fishing Gear (No. 201203018)the National Natural Science Foundation of China (No. 31402350)
文摘Set-nets are common alongshore fishing gear used in Haizhou Bay, which rely on flow to catch fish. The catch per unit effort(CPUE) of set-net is affected by spatial-temporal and environmental factors but no research has been conducted on this subject. In this study, we used generalized additive models(GAMs) to explore the influence of spatial-temporal and environmental factors on CPUEs of species aggregated, small yellow croaker(Larimichthys polyactis), and octopus(Octopus variabilis) based on logbooks investigations conducted at 4 stations in an alongshore area of Haizhou Bay from 2011 to 2012. The results showed that all CPUEs exhibited significant spatial-temporal differences at various scales. Aggregated CPUE was high when the sea surface temperature(SST) was 15-18℃ and 20-23℃, which was mainly determined by life history traits of the octopus and small yellow croaker(optimal SSTs 14-17℃ and 19-24℃, respectively). Chlorophyll-a concentration had significant influences on the aggregated, small yellow croaker and octopus CPUEs at optimal ranges of 3.8-6.2 mg m^(-3), 4.2-4.8 mg m^(-3) and 4.5-5.5 mg m^(-3), respectively. Flow through the net had positive relationships with CPUEs. The approximate logarithmic trends in regression curves had a critical point of 2.5 Mm^3 d^(-1), which was the dividing point that differentiated whether the major factor affecting CPUEs was the flow velocity or the fishery resource. Our results from this study will help guide fishery production and improve catch rate of set-net fishing in Haizhou Bay.