首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到20条相似文献,搜索用时 146 毫秒
1.
目前使用的汉字有简体和繁体两大形式:中国大陆和新加坡等地使用简体字,我国港澳台地区和部分海外华人社区使用繁体字。其中大多数简体字的意义和用法与对应的繁体字是一样的,具有一一对应关系,这种情况通过查找简繁对照表就可以正确处理。然而,还有相当一部分简体字对应多个繁体字,这是简繁字转换的重点和难点。基于此背景提出基于对照表以及语义相关性的简繁汉字转换方法。在教育部语信司及中国中文信息学会联合举办的一对多简繁转换评测中,此一对多简繁转换系统以95.6%的准确率排名第一。  相似文献   

2.
相对于单一类型的代码异味,代码异味共存现象更具危害性。已有实证研究大多聚焦于分析桌面应用程序中代码异味的共存现象,缺少对Android应用程序中代码异味共存现象的研究。为了研究Android应用程序中代码异味的共存现象,并与桌面应用程序中代码异味共存现象进行比较,分别对285个Android应用程序和30个桌面应用程序进行检测,对检测出来的10种异味进行分析。首先,根据检测结果计算受到多种异味影响的类的百分比。然后,使用公式计算代码异味共存的频率,最后,使用Spearman相关系数分析代码异味共存与应用程序规模的关系。结论如下:a)在Android应用程序中受到一种以上代码异味共同干扰的类占有异味的类的总数的31.04%;b)在两个平台的应用程序中,两对代码异味brain class—brain method和god class—brain method共存的频率较高;c)一种异味、两种异味共存、三种异味共存与Android应用程序的规模具有较强的相关性。  相似文献   

3.
代码注释可以帮助开发人员理解代码的功能和实现方法。代码注释生成模型可以自动识别代码中的关键信息,并生成相关注释,提高代码的可读性和可维护性。现有的代码注释生成模型通常只使用抽象语法树结构信息来表示代码,导致模型生成注释质量不高。提出一种融合多结构信息的代码注释生成模型,该模型在代码抽象语法树的基础上,增加了数据流图结构信息来表示代码。模型使用Transformer的编码器对抽象语法树序列进行编码,捕获代码全局信息。使用图神经网络对数据流图进行特征提取,提供变量之间的计算依赖关系等信息。然后使用跨模态注意力机制融合抽象语法树和数据流2种特征,经过Transformer的解码器生成相应的注释。实验结果表明,与6种主流模型相比,所提出的模型在Java和Python数据集上的BLEU、METEOR和ROUGE-L指标得分均有提高,生成的注释也具有良好的可读性。  相似文献   

4.
华镕 《自动化博览》2005,22(3):77-78
1MBAP报文头(MBAP:ModbusApplicationProtocol,Modbus应用协议)分四个域,共7个字节,见表1。2Modbus功能代码共有三种类型分别为:·公共功能代码已定义好的功能码,保证其唯一性,由Modbus.org认可。·用户自定义功能代码有两组,分别为65~72和100~110,不需要认可,但不保证代码使用  相似文献   

5.
薛滨 《软件世界》1995,(7):9-11
1.一维传真压缩(CCITT) CCITT也是压缩二值数据的一种方法。一个数据行是由一系列可变长代码字组成。每个代码字表示一个全白或全黑的行程。(有时某一白行程或黑行程超过一定范围时,可以用两个代码字表示该行程)。黑色与白色行程由在表1和表2中的代码字来定义。代码字有两种类型:结束代码字和组成代码字。每个行程由0个或更多的组成代码字来表示,其后跟一个确定的结束代码字。 CCITT压缩过程可以如下描述: 1)像素个数0到63范围内的行程由它们适应的结  相似文献   

6.
创建WEB应用时,经常需要在不同的页面间传递服务器控件的值。在本文中,根据.NET面向对象的编程方法及其内在特性,讨论了使用内联代码和代码隐藏文件两种设计模式在页面间传递数据的方法。利于开发人员对.NET的理解和使用。  相似文献   

7.
8080微处理器指令组共有256种代码,其中有12个未被规定功能的代码,如同NOP-样。8085CPU中使用了其中的两个代码来处理中断,这就是RIM指令和SIM指令。剩下的十个代码称为“新的指令”。其中七个用来处理16位的操作。规定了两个新的状态位:溢出标志V和自定义标志X5。在8085以及8085A所提供的文本中并没有介绍它们的用途。新指令所用的机器码与文本规定的一致。  相似文献   

8.
冯士德 《微型电脑应用》2013,29(1):38-40,44
在软件项目的开发过程中,总是会存在一些涉及托管代码与非托管代码之间互操作的需求。由于这两类代码执行机制不同,造成了这两类代码间的交互存在一定的障碍。而C++/CLI代码却是一种特殊的编程技术,它介于托管代码与非托管代码之间。所以以C++/CLI代码作为中介,可以简单且高效的实现托管代码与非托管代码之间的交互。对如何使用C++/CLI代码实现托管代码与非托管代码之间的交互进行了研究,并以C#代码为例展示了其交互方式,最后通过一个试验,对此交互方式的执行效率进行了验证。  相似文献   

9.
在当今的经济业务当中,很多领域可能需要用到组织机构代码.所谓组织机构代码就是一组数据,这组数据表示某一件事物及其信息.一般来说,代码分有含义代码和无含义代码两种.  相似文献   

10.
结构遍历法和培根法是当前国际上使用最广泛的两种软件代码评审方法。在这两种代码评审方法的基础上,本文提出了一种新的程序代码评审方法-自动遍历法。由于采用软件自动遍历替代了人工遍历,提高了评审效率。  相似文献   

11.
Correcting software defects accounts for a significant amount of resources in a software project. To make best use of testing efforts, researchers have studied statistical models to predict in which parts of a software system future defects are likely to occur. By studying the mathematical relations between predictor variables used in these models, researchers can form an increased understanding of the important connections between development activities and software quality. Predictor variables used in past top-performing models are largely based on source code-oriented metrics, such as lines of code or number of changes. However, source code is the end product of numerous interlaced and collaborative activities carried out by developers. Traces of such activities can be found in the various repositories used to manage development efforts. In this paper, we develop statistical models to study the impact of social interactions in a software project on software quality. These models use predictor variables based on social information mined from the issue tracking and version control repositories of two large open-source software projects. The results of our case studies demonstrate the impact of metrics from four different dimensions of social interaction on post-release defects. Our findings show that statistical models based on social information have a similar degree of explanatory power as traditional models. Furthermore, our results demonstrate that social information does not substitute, but rather augments traditional source code-based metrics used in defect prediction models.  相似文献   

12.
Edwards  J. 《Computer》1998,31(10):11-13
Whether it's called freeware or open source software, the popularity of software that is either given away or provided at a nominal price along with its source code is growing rapidly. There are numerous examples of popular open source software, including the Linux operating system and the market leading Apache Web server. With its increasing popularity, freeware is beginning to challenge long held concepts about software development and distribution. Developers give away software for a number of reasons. Netscape recently turned Navigator into open source software in an effort to regain market share captured by Microsoft's Internet Explorer (which is also distributed at no cost but without the source code) and to boost the sale of Netscape's server software and related products. Developers also give away software and source code to get users to sample their creations or to encourage independent programmers to enhance a product. In addition, many developers give away software because they support an open, independent “freeware culture” in which software is available to all developers, who can then use, adapt, and improve it as they see fit  相似文献   

13.
沈力  刘洪星  李勇华 《计算机应用》2018,38(10):2996-3001
软件文档和源代码之间的可追踪性研究广泛使用了信息检索(IR)技术,但由于中文文档和源代码用不同的语言书写,使用传统IR技术进行自动跟踪时会导致精度不高。针对上述问题,提出一种基于版本控制的中文文档到源代码的自动跟踪方法。首先,结合文本到源代码的启发式规则,采用IR方法计算出文本和源代码之间的相似度得分;然后,使用软件开发和维护过程中提交到版本控制软件的更新信息来修正该分数;最后,根据设定的阈值确定中文文档与源代码之间的跟踪关系。实验结果表明,改进方法的精确度和召回率相比传统IR方法均有一定的提高,并且该方法能提取出传统IR方法中遗漏的跟踪关系。  相似文献   

14.
随着计算机应用的迅速普及,软件需求日益增长。应用程序的跨平台转换对资源重用、降低成本、提高软件开发的效率以及解决当前自主研发的操作系统平台有着大量的应用程序缺口等方面有着重大意义。论文借鉴逆向工程、模型驱动开发理念,提出一种基于模型的应用程序跨平台转换方法,讨论了转换过程中的相关策略;并应用该方法实现从Java源代码到PHP的转化。  相似文献   

15.
A new graphical representation, the Control Structure Diagram (CSD), has been created to visualize software at both the source code and program design language (PDL) level. The primary impetus for creation of the CSD was to improve the comprehension efficiency of software and, as a result, improve reliability and reduce costs. The CSD has the potential to replace traditional prettyprinted source code. As part of the GRASP (Graphical Representations of Algorithms, Structures, and Processes) research project at Auburn University, the GRASP software engineering tool has been successfully developed. GRASP automatically generates CSDs from source code written in Ada, C, C++, Java, and VHDL. The emphasis to this point has been on the automatic generation of the CSD to support development, maintenance, reverse engineering and reengineering through the use of GRASP. GRASP has been applied successfully to numerous programs ranging in size from several hundred to several thousand lines of source code and is efficient and sufficiently flexible for use in a production setting. To demonstrate the potential benefits of the CSD and its automatic generation using GRASP, a series of empirical studies has been planned and initiated. First, as reported in this article, the perceived usefulness of the CSD was evaluated using a preference instrument based on eleven performance characteristics in which a comparison was made with other well-known graphical representations for algorithms. Statistical analysis indicated numerous significant differences with a clear preference for the CSD in seven of the eleven performance characteristics. Further empirical studies, currently being implemented, will examine the effect of the CSD and GRASP on objective measures such as comprehension efficiency and effectiveness.  相似文献   

16.
在软件开发的过程中,开发人员通过复制粘贴式的开发方式或者模块化的开发方式来完成需求是十分常见的,这两种开发方式可以提高开发效率,但同时会导致软件系统中出现大量的相同代码或者相似代码,大量的相似代码会给软件维护等方面带来很大的困难,这也是最常见的重构对象。源代码相似性度量是指利用一定的检测方法分析程序源代码间的相似程度。该技术被应用于代码抄袭检测、代码克隆检测、软件知识产权保护、代码复用等多个领域。为了提高代码相似性度量的准确性,提出了一种基于多特征值的源代码相似性检测技术。构建了源代码注释、型构、代码文本语句与结构中特征提取的方法,并给出了源代码相似度检测的度量模型。通过与权威的代码相似检测系统Moss进行对比实验,结果表明该方法可以更准确地检测出相似代码。  相似文献   

17.
基于策略模式的中医数据挖掘平台   总被引:1,自引:0,他引:1  
随着数据挖掘技术的发展和中医信息化的逐渐深入,很多数据挖掘方法被应用到中医研究领域。针对面向对象软件设计模式中的策略模式在数据挖掘科研软件平台设计开发上的应用进行了研究,并提出了平台设计概要。在此基础之上,提出了一种中医数据挖掘研究的思想方法:将中医问题(数据)封装、将数据挖掘方法(算法)封装,实现统一的接口,从而实现在某一类中医问题中尝试不同的数据挖掘方法、将某一种数据挖掘方法应用于不同的中医问题。基于上述思想方法,实现了中医数据挖掘平台,用于中医相关领域的数据挖掘研究。  相似文献   

18.
基于System Generator系统级建模工具在Matlab/Simulink环境下完成了UART通讯模块的建模,并生成位流文件下载到Spartan 3E开发板的FPGA芯片中,实现UART通讯数据发送和接收功能。实验结果表明,System Generator系统级建模工具不仅消除了原先系统工程师与软硬件工程师之间的隔阂,而且简化了传统的FPGA开发流程。  相似文献   

19.
The evolution of a software project is a rich data source for analyzing and improving the software development process. Recently, several research groups have tried to cluster source code artifacts based on information about how the code of a software system evolves. The results of these evolutionary approaches seem promising, but a direct comparison to traditional software clustering approaches based on structural code dependencies is still missing. To fill this gap, we conducted several clustering experiments with an established software clustering tool comparing and combining the evolutionary and the structural approach. These experiments show that the evolutionary approach could produce meaningful clustering results. While the traditional approach provides better results because of a more reliable data density of the structural data, the combination of both approaches is able to improve the overall clustering quality. A review of related studies shows that this approach of combining dependency information is also successful in other software engineering applications.  相似文献   

20.
刘方军  唐平  高长青 《微机发展》2011,(11):163-166
中文学习平台需要适应不同地域环境和不同语言环境的中文学习者,其最终的实现要求用户对其进行配置、使用和维护。设计一款代码简洁、可重用性强、易于测试的软件是最终目标。传统的基于.NET平台Web软件开发采用的三层架构中的展现层中显示页面和后台代码耦合性高、测试困难、可重用性差。因此该文采用将MVC模式引入到三层架构中的方法,将三层架构中的显示和逻辑代码彻底分离,应用到中文学习平台架构的设计和开发中。设计和开发过程中重点分析了中文学习平台的各种灵活性和重用性需求,实验证明,引入MVC设计模式的三层架构很好地满足了开发要求,使软件易测试并具有很强的可移植性。  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号