162 research outputs found

    Learning to Represent Patches

    Full text link
    Patch representation is crucial in automating various software engineering tasks, like determining patch accuracy or summarizing code changes. While recent research has employed deep learning for patch representation, focusing on token sequences or Abstract Syntax Trees (ASTs), they often miss the change's semantic intent and the context of modified lines. To bridge this gap, we introduce a novel method, Patcherizer. It delves into the intentions of context and structure, merging the surrounding code context with two innovative representations. These capture the intention in code changes and the intention in AST structural modifications pre and post-patch. This holistic representation aptly captures a patch's underlying intentions. Patcherizer employs graph convolutional neural networks for structural intention graph representation and transformers for intention sequence representation. We evaluated Patcherizer's embeddings' versatility in three areas: (1) Patch description generation, (2) Patch accuracy prediction, and (3) Patch intention identification. Our experiments demonstrate the representation's efficacy across all tasks, outperforming state-of-the-art methods. For example, in patch description generation, Patcherizer excels, showing an average boost of 19.39% in BLEU, 8.71% in ROUGE-L, and 34.03% in METEOR scores

    CodeGrid: A Grid Representation of Code

    Get PDF
    peer reviewedCode representation is a key step in the application of AI in software engineering. Generic NLP representations are effective but do not exploit all the rich structure inherent to code. Recent work has focused on extracting abstract syntax trees (AST) and integrating their structural information into code representations.These AST-enhanced representations advanced the state of the art and accelerated new applications of AI to software engineering. ASTs, however, neglect important aspects of code structure, notably control and data flow, leaving some potentially relevant code signal unexploited. For example, purely image-based representations perform nearly as well as AST-based representations, despite the fact that they must learn to even recognize tokens, let alone their semantics. This result, from prior work, is strong evidence that these new code representations can still be improved; it also raises the question of just what signal image-based approaches are exploiting. We answer this question. We show that code is spatial and exploit this fact to propose , a new representation that embeds tokens into a grid that preserves code layout. Unlike some of the existing state of the art, is agnostic to the downstream task: whether that task is generation or classification, can complement the learning algorithm with spatial signal. For example, we show that CNNs, which are inherently spatially-aware models, can exploit outputs to effectively tackle fundamental software engineering tasks, such as code classification, code clone detection and vulnerability detection. PixelCNN leverages 's grid representations to achieve code completion. Through extensive experiments, we validate our spatial code hypothesis, quantifying model performance as we vary the degree to which the representation preserves the grid. To demonstrate its generality, we show that augments models, improving their performance on a range of tasks, On clone detection, improves ASTNN's performance by 3.3% F1 score

    Stage progression and neurological symptoms in Trypanosoma brucei rhodesiense sleeping sickness: role of the CNS inflammatory response

    Get PDF
    Background: Human African trypanosomiasis progresses from an early (hemolymphatic) stage, through CNS invasion to the late (meningoencephalitic) stage. In experimental infections disease progression is associated with neuroinflammatory responses and neurological symptoms, but this concept requires evaluation in African trypanosomiasis patients, where correct diagnosis of the disease stage is of critical therapeutic importance. Methodology/Principal Findings: This was a retrospective study on a cohort of 115 T.b.rhodesiense HAT patients recruited in Eastern Uganda. Paired plasma and CSF samples allowed the measurement of peripheral and CNS immunoglobulin and of CSF cytokine synthesis. Cytokine and immunoglobulin expression were evaluated in relation to disease duration, stage progression and neurological symptoms. Neurological symptoms were not related to stage progression (with the exception of moderate coma). Increases in CNS immunoglobulin, IL-10 and TNF-α synthesis were associated with stage progression and were mirrored by a reduction in TGF-β levels in the CSF. There were no significant associations between CNS immunoglobulin and cytokine production and neurological signs of disease with the exception of moderate coma cases. Within the study group we identified diagnostically early stage cases with no CSF pleocytosis but intrathecal immunoglobulin synthesis and diagnostically late stage cases with marginal CSF pleocytosis and no detectable trypanosomes in the CSF. Conclusions: Our results demonstrate that there is not a direct linkage between stage progression, neurological signs of infection and neuroinflammatory responses in rhodesiense HAT. Neurological signs are observed in both early and late stages, and while intrathecal immunoglobulin synthesis is associated with neurological signs, these are also observed in cases lacking a CNS inflammatory response. While there is an increase in inflammatory cytokine production with stage progression, this is paralleled by increases in CSF IL-10. As stage diagnostics, the CSF immunoglobulins and cytokines studied do not have sufficient sensitivity to be of clinical value

    Sheep Updates 2005 - Part 3

    Get PDF
    This session covers seven papers from different authors: CUSTOMER 1. Benefits VIAscanR to producers and WAMMCO, Rob Davidson, Supply Development Manager, David Pethick, School of Veterinary and Biomedical Studies, Murdock University. 2. Healthy fats in lamb: how WA lambs compare with others, C. F. Engelke Animal Biology, University of Western Australia, bCSIRO Livestock Industries, Western Australia B.D. Siebert, Department of Animal Science, University of Adelaide, South Australia, K. Gregg, Centre for High-Throughput Agricultural Genetic Analysis, Murdoch University, Western Australia. A-D.G. Wright CSIRO Livestock Industries, Western Australia, P.E Vercoe Animal Biology, University of Western Australia 3. Shelf life of fresh lamb meat: lamb age & electrical stimulation, Dr Robin Jacob, Department of Agriculture, Western Australia 4. Pastures from space - An evaluation of adoption of by Australian woolgrowers, Russell Barnett, Australian Venture Consultants, Joanne Sneddon, University of Western Australia 5. Your clients can learn from ASHEEP\u27s example, Sandra Brown Department of Agriculture Western Australia 6. Lifetime Wool - Farmers attitudes affect their adoption of recommended ewe management, G. Rose Department of Agriculture Western Australia, C. Kabore, Kazresearch, Lower Templestowe Vic, J. Dart, Clear Horizons, Hastings Vic 7. Sustainable certification of Australian Merino, what will customers be looking for? Stuart Adams, i-merino / iZWool International Pty Lt

    Learning to Represent Patches

    Get PDF
    Patch representation is crucial in automating various software engineering tasks, like determining patch accuracy or summarizing code changes. While recent research has employed deep learning for patch representation, focusing on token sequences or Abstract Syntax Trees (ASTs), they often miss the change's semantic intent and the context of modified lines. To bridge this gap, we introduce a novel method, Patcherizer. It delves into the intentions of context and structure, merging the surrounding code context with two innovative representations. These capture the intention in code changes and the intention in AST structural modifications pre and post-patch. This holistic representation aptly captures a patch's underlying intentions. Patcherizer employs graph convolutional neural networks for structural intention graph representation and transformers for intention sequence representation. We evaluated Patcherizer's embeddings' versatility in three areas: (1) Patch description generation, (2) Patch accuracy prediction, and (3) Patch intention identification. Our experiments demonstrate the representation's efficacy across all tasks, outperforming state-of-the-art methods. For example, in patch description generation, Patcherizer excels, showing an average boost of 19.39% in BLEU, 8.71% in ROUGE-L, and 34.03% in METEOR scores

    Untreated Human Infections by Trypanosoma brucei gambiense Are Not 100% Fatal

    Get PDF
    The final outcome of infection by Trypanosoma brucei gambiense, the main agent of sleeping sickness, has always been considered as invariably fatal. While scarce and old reports have mentioned cases of self-cure in untreated patients, these studies suffered from the lack of accurate diagnostic tools available at that time. Here, using the most specific and sensitive tools available to date, we report on a long-term follow-up (15 years) of a cohort of 50 human African trypanosomiasis (HAT) patients from the Ivory Coast among whom 11 refused treatment after their initial diagnosis. In 10 out of 11 subjects who continued to refuse treatment despite repeated visits, parasite clearance was observed using both microscopy and polymerase chain reaction (PCR). Most of these subjects (7/10) also displayed decreasing serological responses, becoming progressively negative to trypanosome variable antigens (LiTat 1.3, 1.5 and 1.6). Hence, in addition to the “classic” lethal outcome of HAT, we show that alternative natural progressions of HAT may occur: progression to an apparently aparasitaemic and asymptomatic infection associated with strong long-lasting serological responses and progression to an apparently spontaneous resolution of infection (with negative results in parasitological tests and PCR) associated with a progressive drop in antibody titres as observed in treated cases. While this study does not precisely estimate the frequency of the alternative courses for this infection, it is noteworthy that in the field national control programs encounter a significant proportion of subjects displaying positive serologic test results but negative results in parasitological testing. These findings demonstrate that a number of these subjects display such infection courses. From our point of view, recognising that trypanotolerance exists in humans, as is now widely accepted for animals, is a major step forward for future research in the field of HAT

    System-level determinants of immunization coverage disparities among health districts in Burkina Faso: a multiple case study

    Get PDF
    <p>Abstract</p> <p>Background</p> <p>Despite rapid and tangible progress in vaccine coverage and in premature mortality rates registered in sub-Saharan Africa, inequities to access remain firmly entrenched, large pockets of low vaccination coverage persist, and coverage often varies considerably across regions, districts, and health facilities' areas of responsibility. This paper focuses on system-related factors that can explain disparities in immunization coverage among districts in Burkina Faso.</p> <p>Methods</p> <p>A multiple-case study was conducted of six districts representative of different immunization trends and overall performance. A participative process that involved local experts and key actors led to a focus on key factors that could possibly determine the efficiency and efficacy of district vaccination services: occurrence of disease outbreaks and immunization days, overall district management performance, resources available for vaccination services, and institutional elements. The methodology, geared toward reconstructing the evolution of vaccine services performance from 2000 to 2006, is based on data from documents and from individual and group interviews in each of the six health districts. The process of interpreting results brought together the field personnel and the research team.</p> <p>Results</p> <p>The districts that perform best are those that assemble a set of favourable conditions. However, the leadership of the district medical officer (DMO) appears to be the main conduit and the rallying point for these conditions. Typically, strong leadership that is recognized by the field teams ensures smooth operation of the vaccination services, promotes the emergence of new initiatives and offers some protection against risks related to outbreaks of epidemics or supplementary activities that can hinder routine functioning. The same is true for the ability of nurse managers and their teams to cope with new situations (epidemics, shortages of certain stocks).</p> <p>Conclusion</p> <p>The discourse on factors that determine the performance or breakdown of local health care systems in lower and middle income countries remains largely concentrated on technocratic and financial considerations, targeting institutional reforms, availability of resources, or accessibility of health services. The leadership role of those responsible for the district, and more broadly, of those we label "the human factor", in the performance of local health care systems is mentioned only marginally. This study shows that strong and committed leadership promotes an effective mobilization of teams and creates the conditions for good performance in districts, even when they have only limited access to supports provided by external partners.</p> <p>Abstract in French</p> <p>See the full article online for a translation of this abstract in French.</p

    MasakhaNER 2.0: Africa-centric Transfer Learning for Named Entity Recognition

    Get PDF
    African languages are spoken by over a billion people, but are underrepresented in NLP research and development. The challenges impeding progress include the limited availability of annotated datasets, as well as a lack of understanding of the settings where current methods are effective. In this paper, we make progress towards solutions for these challenges, focusing on the task of named entity recognition (NER). We create the largest human-annotated NER dataset for 20 African languages, and we study the behavior of state-of-the-art cross-lingual transfer methods in an Africa-centric setting, demonstrating that the choice of source language significantly affects performance. We show that choosing the best transfer language improves zero-shot F1 scores by an average of 14 points across 20 languages compared to using English. Our results highlight the need for benchmark datasets and models that cover typologically-diverse African languages
    corecore