48 research outputs found

    AdaCCD: Adaptive Semantic Contrasts Discovery based Cross Lingual Adaptation for Code Clone Detection

    Full text link
    Code Clone Detection, which aims to retrieve functionally similar programs from large code bases, has been attracting increasing attention. Modern software often involves a diverse range of programming languages. However, current code clone detection methods are generally limited to only a few popular programming languages due to insufficient annotated data as well as their own model design constraints. To address these issues, we present AdaCCD, a novel cross-lingual adaptation method that can detect cloned codes in a new language without any annotations in that language. AdaCCD leverages language-agnostic code representations from pre-trained programming language models and propose an Adaptively Refined Contrastive Learning framework to transfer knowledge from resource-rich languages to resource-poor languages. We evaluate the cross-lingual adaptation results of AdaCCD by constructing a multilingual code clone detection benchmark consisting of 5 programming languages. AdaCCD achieves significant improvements over other baselines, and it is even comparable to supervised fine-tuning.Comment: 10 page

    CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Code

    Full text link
    Automatically generating function summaries for binaries is an extremely valuable but challenging task, since it involves translating the execution behavior and semantics of the low-level language (assembly code) into human-readable natural language. However, most current works on understanding assembly code are oriented towards generating function names, which involve numerous abbreviations that make them still confusing. To bridge this gap, we focus on generating complete summaries for binary functions, especially for stripped binary (no symbol table and debug information in reality). To fully exploit the semantics of assembly code, we present a control flow graph and pseudo code guided binary code summarization framework called CP-BCS. CP-BCS utilizes a bidirectional instruction-level control flow graph and pseudo code that incorporates expert knowledge to learn the comprehensive binary function execution behavior and logic semantics. We evaluate CP-BCS on 3 different binary optimization levels (O1, O2, and O3) for 3 different computer architectures (X86, X64, and ARM). The evaluation results demonstrate CP-BCS is superior and significantly improves the efficiency of reverse engineering.Comment: EMNLP 2023 Main Conferenc

    Risk factors for overweight and obesity, and changes in body mass index of Chinese adults in Shanghai

    Get PDF
    <p>Abstract</p> <p>Background</p> <p>Over the past two decades, the prevalence of overweight or obesity has increased in China. The aims of this study were to firstly assess the baseline prevelences and the risk factors for overweight and obesity, and secondly to detect the changes of body mass index (BMI) over a follow-up period in Chinese adults in Shanghai.</p> <p>Methods</p> <p>The data set of a population-based longitudinal study was analyzed. Anthropometric and biochemical data were collected for 5364 subjects (aged 25–95 years) during a period of 1998–2001. Among those individuals, 3032 subjects were interviewed and reexamined at the second survey from 2003 to 2004. Then the standardized prevalences for overweight and obesity were calculated using baseline data; the possible contributing factors of overweight and obesity were detected using binary logistic regression analysis; and the changes of BMI were evaluated after an average of 3.6-year follow-up period.</p> <p>Results</p> <p>(1) According to the WHO standard and the Chinese standard, the sex- and age-standardized prevalences were 27.5% and 32.4% for overweight, and 3.7% and 9.1% for obesity, respectively. (2) The risks of overweight and obesity differed among different age groups. Family history of obesity increased the risk of overweight and obesity by about 1.2-fold for both genders. Current male smokers had a lower risk of overweight and obesity (OR = 0.76, <it>p </it>< 0.05) than nonsmokers. In contrast, current male drinkers had a higher risk of overweight and obesity (OR = 1.42, <it>p </it>< 0.05) than nondrinkers. Compared with low-educated women, medium- and high- educated women were at lower risk of overweight and obesity, and the corresponding ORs (95% CIs) were 0.64 (0.52–0.79) and 0.50(0.36–0.68), respectively. (3) The annual changes of BMI means ranged from an increase of 0.1 kg/m<sup>2 </sup>to a decrease of 0.2 kg/m<sup>2 </sup>(by genders and age groups). Meanwhile, the BMI increase was statistically significant in the 35–44 years age group, and the BMI decrease was significant above 65 years for both genders.</p> <p>Conclusion</p> <p>This study showed high prevalence of overweight and obesity in Shanghai metropolis populations. The risk factors of overweight and obesity were multifactorial and gender specific. After 3.6 years, BMI means changed slightly, BMI increased mainly in middle-aged individuals and decreased in old individuals.</p

    Association analyses of East Asian individuals and trans-ancestry analyses with European individuals reveal new loci associated with cholesterol and triglyceride levels

    Get PDF
    Large-scale meta-analyses of genome-wide association studies (GWAS) have identified >175 loci associated with fasting cholesterol levels, including total cholesterol (TC), high-density lipoprotein cholesterol (HDL-C), low-density lipoprotein cholesterol (LDL-C), and triglycerides (TG). With differences in linkage disequilibrium (LD) structure and allele frequencies between ancestry groups, studies in additional large samples may detect new associations. We conducted staged GWAS meta-analyses in up to 69,414 East Asian individuals from 24 studies with participants from Japan, the Philippines, Korea, China, Singapore, and Taiwan. These meta-analyses identified (P < 5 × 10-8) three novel loci associated with HDL-C near CD163-APOBEC1 (P = 7.4 × 10-9), NCOA2 (P = 1.6 × 10-8), and NID2-PTGDR (P = 4.2 × 10-8), and one novel locus associated with TG near WDR11-FGFR2 (P = 2.7 × 10-10). Conditional analyses identified a second signal near CD163-APOBEC1. We then combined results from the East Asian meta-analysis with association results from up to 187,365 European individuals from the Global Lipids Genetics Consortium in a trans-ancestry meta-analysis. This analysis identified (log10Bayes Factor ≥6.1) eight additional novel lipid loci. Among the twelve total loci identified, the index variants at eight loci have demonstrated at least nominal significance with other metabolic traits in prior studies, and two loci exhibited coincident eQTLs (P < 1 × 10-5) in subcutaneous adipose tissue for BPTF and PDGFC. Taken together, these analyses identified multiple novel lipid loci, providing new potential therapeutic targets

    Nitric Oxide Plays a Central Role in Water Stress-Induced Tanshinone Production in Salvia miltiorrhiza Hairy Roots

    No full text
    Nitric oxide (NO), a well-known signaling molecule plays an important role in abiotic and biotic stress-induced production of plant secondary metabolites. In this study, roles of NO in water stress-induced tanshinone production in Salvia miltiorrhiza hairy roots were investigated. The results showed that accumulations of four tanshinone compounds in S. miltiorrhiza hairy roots were significantly stimulated by sodium nitroprusside (SNP, a NO donor) at 100 μM. Effects of SNP were just partially arrested by the mevalonate (MVA) pathway inhibitor (mevinolin), but were completely inhibited by the 2-C-methyl-d-erythritol-4-phosphate pathway (MEP) inhibitor (fosmidomycin). The increase of tanshinone accumulation and the up-regulation of HMGR and DXR expression by PEG and ABA treatments were partially inhibited by an inhibitor of NO biosynthesis (Nω-nitro-L-arginine methyl ester (L-NAME)) and a NO scavenger (2-(4-Carboxyphenyl)- 4,4,5,5-tetramethylimidazoline-1-oxyl-3-oxide (c-PTIO)). Simultaneously, NO generation in the hairy roots was triggered by PEG and ABA, and the effects were also arrested by c-PTIO and L-NAME. These results indicated that NO signaling probably plays a central role in water stress-induced tanshinone production in S. miltiorrhiza hairy roots. SNP mainly stimulated the MEP pathway to increase tanshinone accumulation

    Design and Realization of Experiential Teaching Based on Knowledge Feature Transformation of Course Teaching

    No full text
    Experiential teaching, which combines real environment with virtual environment, helps students understand and internalize knowledge. To a certain extent, the organization and design of experiential teaching can promote the education reform in the new era. The existing studies on experiential teaching mostly emphasize theoretical applications, without paying much attention to teaching process and practical methods. Therefore, this paper designs and realizes experiential teaching based on knowledge feature transformation of course teaching. Firstly, node betweenness was selected as the reference metric for allocating the initial granularity importance to the knowledge points of physical education (PE) course teaching, and the macro-importance of the course was proportionally allocated to the known granularity of knowledge points. Next, a knowledge network was established for PE course teaching, and the named entities were identified based on course teaching knowledge features. The purpose is to extract the knowledge points of experiential PE teaching units, with class hour as the unit, and to determine their teaching sequence. After that, the design frameworks were established for experiential teaching scenarios and experiential learning activities, and the course evaluation strategy was provided for students majoring in sports dance, a professional PE course. Experimental results show that our approach achieves excellent effects on designing and implementing experiential learning activities

    Spatial Pattern of Land Use Change and Its Driving Force in Jiangsu Province

    No full text
    Scientific interpretation of the mechanism of land use change is important for government planning and management activities. This study analyzes the land use change in Jiangsu Province using three land use maps of 2000, 2005 and 2008. The study results show that there was a significant change in land use. The change was mainly characterized by a continuous built-up land expansion primarily at the expense of cropland loss, and the trend became increasingly rapid. There was an obvious regional difference, as most of the cropland loss or built-up land expansion took place in southern Jiangsu, where the rate of built-up land expansion was faster than in central and northern Jiangsu. Meanwhile, the spatial pattern changed remarkably; in general, the number of patches (NumP) showed a declining trend, and the mean patch size (MPS) and patch size standard deviation (PSSD) displayed increase trends. Furthermore, the relative importance of selected driven factors was identified by principal component analysis (PCA) and general linear model (GLM). The results showed that not only the relative importance of a specific driving factor may vary, but the driven factors may as well. The most important driven factor changed from urban population (UP), secondary gross domestic product (SGDP) and gross domestic product (GDP) during 2000–2005 to resident population (RP), population density (POD) and UP during 2005–2008, and the deviance explained (DE) decreased from 91.60% to 81.04%. Policies also had significant impacts on land use change, which can be divided into direct and indirect impacts. Development policies usually had indirect impacts, particularly economic development policies, which promote the economic development to cause land use change, while land management policies had direct impacts. We suggest that the government should think comprehensively and cautiously when proposing a new development strategy or plan
    corecore