scholarly journals Tree Slicing in Clone Detection: Syntactic Analysis Made (Semi)-Semantic

2015 ◽  
Vol 19 (6) ◽  
pp. 69-78 ◽  
Author(s):  
Marat Akhin ◽  
Vladimir Itsykson

Nowadays most of software contains code duplication that leads to serious problems in software maintenance. A lot of different clone detection approaches have been proposed over the years to deal with this problem, but almost all of them do not consider semantic properties of the source code. We propose to reinforce traditional tree-based clone detection algorithms by using additional information about variable slices. This allows to find intertwined/gapped clones on variables; preliminary evaluation confirms applicability of our approach to real-world software.

AI Matters ◽  
2021 ◽  
Vol 7 (1) ◽  
pp. 18-20
Author(s):  
Kartik Talamadupula

The marriage of Artificial Intelligence (AI) techniques to problems surrounding the generation, maintenance, and use of source code has come to the fore in recent years as an important AI application area1. A large chunk of this recent attention can be attributed to contemporaneous advancements in Natural Language Processing (NLP) techniques and sub-fields. The naturalness hypothesis, which states that "software is a form of human communication" and that code exhibits patterns that are similar to (human) natural languages (Devanbu, 2015; Hindle, Barr, Gabel, Su, & Devanbu, 2016), has allowed for the application of many of these NLP advances to code-centric usecases. This development has contributed to a spate of work in the community --- much of it captured in a survey by Allamanis, Barr, Devanbu, and Sutton (2018) that focuses on classifying these approaches by the type of probabilistic model applied to source code. This increase in the variety of AI techniques applied to source code has found various manifestations in the industry at large. Code and software form the backbone that underpins almost all modern technical advancements: it is thus natural that breakthroughs in this area should reflect in the emergence of real world deployments.


Author(s):  
Xing Hu ◽  
Ge Li ◽  
Xin Xia ◽  
David Lo ◽  
Shuai Lu ◽  
...  

Code summarization, aiming to generate succinct natural language description of source code, is extremely useful for code search and code comprehension. It has played an important role in software maintenance and evolution. Previous approaches generate summaries by retrieving summaries from similar code snippets. However, these approaches heavily rely on whether similar code snippets can be retrieved, how similar the snippets are, and fail to capture the API knowledge in the source code, which carries vital information about the functionality of the source code. In this paper, we propose a novel approach, named TL-CodeSum, which successfully uses API knowledge learned in a different but related task to code summarization. Experiments on large-scale real-world industry Java projects indicate that our approach is effective and outperforms the state-of-the-art in code summarization.


Technologies ◽  
2020 ◽  
Vol 9 (1) ◽  
pp. 3
Author(s):  
Gábor Antal ◽  
Zoltán Tóth ◽  
Péter Hegedűs ◽  
Rudolf Ferenc

Bug prediction aims at finding source code elements in a software system that are likely to contain defects. Being aware of the most error-prone parts of the program, one can efficiently allocate the limited amount of testing and code review resources. Therefore, bug prediction can support software maintenance and evolution to a great extent. In this paper, we propose a function level JavaScript bug prediction model based on static source code metrics with the addition of a hybrid (static and dynamic) code analysis based metric of the number of incoming and outgoing function calls (HNII and HNOI). Our motivation for this is that JavaScript is a highly dynamic scripting language for which static code analysis might be very imprecise; therefore, using a purely static source code features for bug prediction might not be enough. Based on a study where we extracted 824 buggy and 1943 non-buggy functions from the publicly available BugsJS dataset for the ESLint JavaScript project, we can confirm the positive impact of hybrid code metrics on the prediction performance of the ML models. Depending on the ML algorithm, applied hyper-parameters, and target measures we consider, hybrid invocation metrics bring a 2–10% increase in model performances (i.e., precision, recall, F-measure). Interestingly, replacing static NOI and NII metrics with their hybrid counterparts HNOI and HNII in itself improves model performances; however, using them all together yields the best results.


Author(s):  
Gwendolyn Rehrig ◽  
Reese A. Cullimore ◽  
John M. Henderson ◽  
Fernanda Ferreira

Abstract According to the Gricean Maxim of Quantity, speakers provide the amount of information listeners require to correctly interpret an utterance, and no more (Grice in Logic and conversation, 1975). However, speakers do tend to violate the Maxim of Quantity often, especially when the redundant information improves reference precision (Degen et al. in Psychol Rev 127(4):591–621, 2020). Redundant (non-contrastive) information may facilitate real-world search if it narrows the spatial scope under consideration, or improves target template specificity. The current study investigated whether non-contrastive modifiers that improve reference precision facilitate visual search in real-world scenes. In two visual search experiments, we compared search performance when perceptually relevant, but non-contrastive modifiers were included in the search instruction. Participants (NExp. 1 = 48, NExp. 2 = 48) searched for a unique target object following a search instruction that contained either no modifier, a location modifier (Experiment 1: on the top left, Experiment 2: on the shelf), or a color modifier (the black lamp). In Experiment 1 only, the target was located faster when the verbal instruction included either modifier, and there was an overall benefit of color modifiers in a combined analysis for scenes and conditions common to both experiments. The results suggest that violations of the Maxim of Quantity can facilitate search when the violations include task-relevant information that either augments the target template or constrains the search space, and when at least one modifier provides a highly reliable cue. Consistent with Degen et al. (2020), we conclude that listeners benefit from non-contrastive information that improves reference precision, and engage in rational reference comprehension. Significance statement This study investigated whether providing more information than someone needs to find an object in a photograph helps them to find that object more easily, even though it means they need to interpret a more complicated sentence. Before searching a scene, participants were either given information about where the object would be located in the scene, what color the object was, or were only told what object to search for. The results showed that providing additional information helped participants locate an object in an image more easily only when at least one piece of information communicated what part of the scene the object was in, which suggests that more information can be beneficial as long as that information is specific and helps the recipient achieve a goal. We conclude that people will pay attention to redundant information when it supports their task. In practice, our results suggest that instructions in other contexts (e.g., real-world navigation, using a smartphone app, prescription instructions, etc.) can benefit from the inclusion of what appears to be redundant information.


2019 ◽  
Vol 8 (6) ◽  
pp. 272 ◽  
Author(s):  
Iq Reviessay Pulshashi ◽  
Hyerim Bae ◽  
Hyunsuk Choi ◽  
Seunghwan Mun ◽  
Riska Asriana Sutrisnowati

Analysis of trajectory such as detection of an outlying trajectory can produce inaccurate results due to the existence of noise, an outlying point-locations that can change statistical properties of the trajectory. Some trajectories with noise are repairable by noise filtering or by trajectory-simplification. We herein propose the application of a trajectory-simplification approach in both batch and streaming environments, followed by benchmarking of various outlier-detection algorithms for detection of outlying trajectories from among simplified trajectories. Experimental evaluation in a case study using real-world trajectories from a shipyard in South Korea shows the benefit of the new approach.


2021 ◽  
Vol 6 (55) ◽  
pp. eabc3164
Author(s):  
Liangjun Zhang ◽  
Jinxin Zhao ◽  
Pinxin Long ◽  
Liyang Wang ◽  
Lingfeng Qian ◽  
...  

Excavators are widely used for material handling applications in unstructured environments, including mining and construction. Operating excavators in a real-world environment can be challenging due to extreme conditions—such as rock sliding, ground collapse, or excessive dust—and can result in fatalities and injuries. Here, we present an autonomous excavator system (AES) for material loading tasks. Our system can handle different environments and uses an architecture that combines perception and planning. We fuse multimodal perception sensors, including LiDAR and cameras, along with advanced image enhancement, material and texture classification, and object detection algorithms. We also present hierarchical task and motion planning algorithms that combine learning-based techniques with optimization-based methods and are tightly integrated with the perception modules and the controller modules. We have evaluated AES performance on compact and standard excavators in many complex indoor and outdoor scenarios corresponding to material loading into dump trucks, waste material handling, rock capturing, pile removal, and trenching tasks. We demonstrate that our architecture improves the efficiency and autonomously handles different scenarios. AES has been deployed for real-world operations for long periods and can operate robustly in challenging scenarios. AES achieves 24 hours per intervention, i.e., the system can continuously operate for 24 hours without any human intervention. Moreover, the amount of material handled by AES per hour is closely equivalent to an experienced human operator.


2020 ◽  
Vol 92 (12) ◽  
pp. 105-119
Author(s):  
O. Yu. Fomenko ◽  
S. V. Morozov ◽  
S. Mark Scott ◽  
H. Charles Knowles ◽  
D. A. Morozov ◽  
...  

This manuscript summarizes consensus reached by the International Anorectal Physiology Working Group (IAPWG) for the performance, terminology used, and interpretation of anorectal function testing including anorectal manometry (focused on high-resolution manometry), the rectal sensory test, and the balloon expulsion test. Based on these measurements, a classification system for disorders of anorectal function is proposed. Aim to provide information about methods of diagnosis and new classification of functional anorectal disorders to a wide range of specialists general practitioners, therapists, gastroenterologists, coloproctologists all who face the manifestations of these diseases in everyday practice and determine the diagnostic and therapeutic algorithm. Current paper provides agreed statements of IAPWG Consensus and comments (in italics) of Russian experts on real-world practice, mainly on methodology of examination. These comments in no way intended to detract from the provisions agreed by the international group of experts. We hope that these comments will help to improve the quality of examination based on the systematization of local experience with the use of the methods discussed and the results obtained. Key recommendations: the International Anorectal Physiology Working Group protocol for the performance of anorectal function testing recommends a standardized sequence of maneuvers to test rectoanal reflexes, anal tone and contractility, rectoanal coordination, and rectal sensation. Major findings not seen in healthy controls defined by the classification are as follows: rectoanal areflexia, anal hypotension and hypocontractility, rectal hyposensitivity, and hypersensitivity. Minor and inconclusive findings that can be present in health and require additional information prior to diagnosis include anal hypertension and dyssynergia.


2020 ◽  
Vol 3 (3a) ◽  
Author(s):  
Lasmini

Corona virus or covid 19 is a dangerous virus that attacks the human respiratory system. Corona virus able to change the order of almost all of life’s joints in the world of education. In order to break the chain of the covid 19, goverments introduce a pattern of long range learning by means online learning. Application of this learning model certainly brings its own impact to students. The puspose of this study is to know the impact students are experiencing class 5 country primary school Pandawei during the online learning system. The method used was qualitative research methods with data collection techniques thrugh interviews and observations. The analysis technique used is qualitative descriptive. The main find of this research is increased students study habits using this online learning methods because the students are becoming accustomed  with technology so they’re easier discovering additional information about the lesson materials received search school.


Author(s):  
Kirollos Hanna, PharmD, BCPS, BCOP ◽  
Kelley Mayden, MSN, FNP, AOCNP

Almost all patients with breast cancer will eventually receive chemotherapy drugs, the majority of which are administered as IV infusions. Real-world evidence indicates that while current treatment paradigms vary considerably from guideline recommendations, there is an increasing trend towards a preference for oral oncolytics among patients with breast cancer. Recent data have shown that oral anticancer therapeutics represent 25% of the oncology drug market share and that there is a high demand for these agents. Therefore, oral formulations of chemotherapy agents such as paclitaxel are currently under development. Although oral oncolytics are associated with several advantages over conventional intravenous drugs, maintaining adherence to therapy is a major barrier in achieving improved outcomes with these agents. Advanced practitioners can facilitate improved adherence to oral oncolytics by integrating evidence into practice to support better education and communication strategies to address patient concerns, overcome key hurdles, and ultimately, empower patients.


Sign in / Sign up

Export Citation Format

Share Document