Movatterモバイル変換


[0]ホーム

URL:


CN115480809A - Method and device for determining code submission amount, storage medium and electronic device - Google Patents

Method and device for determining code submission amount, storage medium and electronic device
Download PDF

Info

Publication number
CN115480809A
CN115480809ACN202211049025.1ACN202211049025ACN115480809ACN 115480809 ACN115480809 ACN 115480809ACN 202211049025 ACN202211049025 ACN 202211049025ACN 115480809 ACN115480809 ACN 115480809A
Authority
CN
China
Prior art keywords
code
submission
determining
code submission
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211049025.1A
Other languages
Chinese (zh)
Inventor
杨倩茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co LtdfiledCriticalQingdao Haier Technology Co Ltd
Priority to CN202211049025.1ApriorityCriticalpatent/CN115480809A/en
Publication of CN115480809ApublicationCriticalpatent/CN115480809A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The application discloses a method and a device for determining code submission amount, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the method for determining the code submission amount comprises the following steps: accessing a code management platform through a first component, and determining a code warehouse set, wherein the code warehouse set comprises a plurality of code warehouses, and each code warehouse in the plurality of code warehouses has a code submitting behavior within a preset time; determining a code submission record corresponding to each of the plurality of code warehouses to obtain a plurality of code submission records corresponding to the plurality of code warehouses; and determining the code submission amount of the target object in the preset time through the plurality of code submission records. By adopting the technical scheme, the problem that the accuracy of counting the code submission amount is low in the conventional method is solved.

Description

Translated fromChinese
代码提交量的确定方法及装置、存储介质及电子装置Method and device for determining code submission amount, storage medium and electronic device

技术领域technical field

本申请涉及智慧家庭技术领域,具体而言,涉及一种代码提交量的确定方法及装置、存储介质及电子装置。The present application relates to the technical field of smart home, in particular, to a method and device for determining the amount of submitted codes, a storage medium and an electronic device.

背景技术Background technique

随着应用程序的功能越来越多,通常应用程序的开发都是通过一个团队来完成,由于程序开发最重要的一环就是输出代码,完成功能的开发上线,进而针对程序开发的团队而言,如果要实现团队成员成果的量化管理,就一定绕不开代码统计。代码统计是一项很直观的数据,在一定程度上可以反应团队成员的输出成果。但目前的代码提交量的统计都是通过管理人员手动的进行统计,导致准确度较低。With more and more functions of the application program, the development of the application program is usually completed by a team, because the most important part of the program development is to output the code, complete the development of the function and go online, and then for the program development team , if you want to achieve quantitative management of team member results, you must not bypass code statistics. Code statistics is a very intuitive data, which can reflect the output of team members to a certain extent. However, the current statistics of the amount of code submissions are performed manually by managers, resulting in low accuracy.

针对相关技术中,现有方法统计代码提交量的准确性较低的问题,目前尚未提出有效的解决方案。Aiming at the problem of low accuracy of counting code submissions in the existing methods in related technologies, no effective solution has been proposed yet.

因此,有必要对相关技术予以改良以克服相关技术中的所述缺陷。Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology.

发明内容Contents of the invention

本发明实施例提供了一种代码提交量的确定方法及装置、存储介质及电子装置,以至少解决现有方法统计代码提交量的准确性较低的问题。Embodiments of the present invention provide a method and device, a storage medium, and an electronic device for determining the amount of code submissions, so as to at least solve the problem of low accuracy of counting the amount of code submissions in the existing method.

根据本发明实施例的一方面,提供一种代码提交量的确定方法,包括:通过第一组件访问代码管理平台,确定代码仓库集合,其中,所述代码仓库集合包括多个代码仓库,所述多个代码仓库中的每个代码仓库在预设时间内存在代码提交行为;确定所述多个代码仓库中每个代码仓库对应的代码提交记录,得到所述多个代码仓库对应的多个代码提交记录;通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量。According to an aspect of an embodiment of the present invention, a method for determining the amount of code submission is provided, including: accessing the code management platform through a first component, and determining a code repository set, wherein the code repository set includes a plurality of code repositories, the Each code warehouse in the multiple code warehouses has a code submission behavior within a preset time; determine the code submission record corresponding to each code warehouse in the multiple code warehouses, and obtain multiple codes corresponding to the multiple code warehouses Commitment records; determine the amount of code submissions of the target object within the preset time by using the plurality of code submission records.

在一个示例性的实施例中,通过第一组件访问代码管理平台,包括:获取与所述代码管理平台预先约定的访问密钥;指示所述第一组件根据所述访问密钥访问所述代码管理平台。In an exemplary embodiment, accessing the code management platform through the first component includes: obtaining an access key pre-agreed with the code management platform; instructing the first component to access the code according to the access key management platform.

在一个示例性的实施例中,确定所述多个代码仓库中每个代码仓库对应的代码提交记录,包括:确定所述每个代码仓库所包含的多个子仓库,并确定所述多个子仓库中每个子仓库对应的子代码提交记录,得到多个子代码提交记录;将所述每个代码仓库中的多个子代码提交记录进行合并,确定所述每个代码仓库对应的代码提交记录。In an exemplary embodiment, determining the code submission record corresponding to each code warehouse in the multiple code warehouses includes: determining the multiple sub-warehouses contained in each code warehouse, and determining the multiple sub-warehouses Sub-code submission records corresponding to each sub-warehouse in , to obtain multiple sub-code submission records; merge the multiple sub-code submission records in each code warehouse, and determine the code submission records corresponding to each code warehouse.

在一个示例性的实施例中,通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量,包括:将所述多个代码提交记录进行合并,得到目标代码提交记录;通过第二组件将所述目标代码提交记录转化为目标表格,其中,所述目标表格中具有不同对象的代码提交量;通过所述目标对象的对象标识在所述目标表格中查找所述目标对象对应的代码提交量。In an exemplary embodiment, determining the code submission amount of the target object within the preset time through the multiple code submission records includes: merging the multiple code submission records to obtain the target code submission record ; Convert the target code submission record into a target table through the second component, wherein the target table has the code submission amount of different objects; find the target in the target table through the object identification of the target object The amount of code submissions corresponding to the object.

在一个示例性的实施例中,通过第二组件将所述目标代码提交记录转化为目标表格之后,所述方法还包括:响应于查询指令,从所述目标表格中确定代码提交量大于预设阈值的多个对象的标识,其中,所述查询指令中携带有所述预设阈值;将所述多个对象的标识按照对应的代码提交量从大到小进行排序,并返回排序后的所述多个对象的标识。In an exemplary embodiment, after converting the target code submission record into a target table by the second component, the method further includes: in response to a query instruction, determining from the target table that the amount of code submission is greater than a preset The identifiers of multiple objects with a threshold value, wherein the query command carries the preset threshold value; sort the identifiers of the multiple objects according to the corresponding code submission amount from large to small, and return all sorted The identities of the multiple objects described above.

在一个示例性的实施例中,通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量之后,所述方法还包括:确定所述目标对象在所述预设时间内的代码提交量是否位于预设范围内;在确定所述目标对象在所述预设时间内的代码提交量不位于预设范围内的情况下,再次确定所述多个代码仓库中每个代码仓库对应的代码提交记录,并通过确定得到的多个代码提交记录再次确定所述目标对象在所述预设时间内的代码提交量。In an exemplary embodiment, after the code submission amount of the target object within the preset time is determined through the plurality of code submission records, the method further includes: determining that the target object within the preset time Whether the code submission amount within the preset range is within the preset range; if it is determined that the code submission amount of the target object within the preset time is not within the preset range, determine again that each of the multiple code repositories code submission records corresponding to the code warehouse, and determine again the code submission volume of the target object within the preset time by determining the obtained multiple code submission records.

在一个示例性的实施例中,所述代码提交记录中的每条记录,包括:代码提交标识,代码提交标题,代码提交对象,代码提交量,代码提交地址。In an exemplary embodiment, each record in the code submission records includes: a code submission identifier, a code submission title, a code submission object, a code submission amount, and a code submission address.

根据本发明实施例的另一方面,还提供了一种代码提交量的确定装置,包括:第一确定模块,用于通过第一组件访问代码管理平台,确定代码仓库集合,其中,所述代码仓库集合包括多个代码仓库,所述多个代码仓库中的每个代码仓库在预设时间内存在代码提交行为;第二确定模块,用于确定所述多个代码仓库中每个代码仓库对应的代码提交记录,得到所述多个代码仓库对应的多个代码提交记录;第三确定模块,用于通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量。According to another aspect of the embodiments of the present invention, there is also provided an apparatus for determining the amount of code submissions, including: a first determination module, configured to access the code management platform through a first component, and determine a set of code warehouses, wherein the code The warehouse set includes multiple code warehouses, and each code warehouse in the multiple code warehouses has a code submission behavior within a preset time; the second determination module is used to determine that each code warehouse in the multiple code warehouses corresponds to code submission records to obtain a plurality of code submission records corresponding to the plurality of code repositories; a third determination module is configured to determine the amount of code submission of the target object within the preset time by using the plurality of code submission records.

在一个示例性的实施例中,第一确定模块还包括:访问单元,用于获取与所述代码管理平台预先约定的访问密钥;指示所述第一组件根据所述访问密钥访问所述代码管理平台。In an exemplary embodiment, the first determination module further includes: an access unit, configured to obtain an access key pre-agreed with the code management platform; instruct the first component to access the Code management platform.

在一个示例性的实施例中,第二确定模块,还用于确定所述每个代码仓库所包含的多个子仓库,并确定所述多个子仓库中每个子仓库对应的子代码提交记录,得到多个子代码提交记录;将所述每个代码仓库中的多个子代码提交记录进行合并,确定所述每个代码仓库对应的代码提交记录。In an exemplary embodiment, the second determination module is further configured to determine the multiple sub-warehouses contained in each code warehouse, and determine the sub-code submission record corresponding to each sub-warehouse in the multiple sub-warehouses, to obtain A plurality of subcode submission records; combining the plurality of subcode submission records in each code repository to determine the code submission record corresponding to each code repository.

在一个示例性的实施例中,第三确定模块,还用于将所述多个代码提交记录进行合并,得到目标代码提交记录;通过第二组件将所述目标代码提交记录转化为目标表格,其中,所述目标表格中具有不同对象的代码提交量;通过所述目标对象的对象标识在所述目标表格中查找所述目标对象对应的代码提交量。In an exemplary embodiment, the third determining module is further configured to combine the plurality of code submission records to obtain the target code submission record; convert the target code submission record into a target form through the second component, Wherein, the target table has code submission amounts of different objects; the code submission amount corresponding to the target object is searched in the target table through the object identifier of the target object.

在一个示例性的实施例中,上述装置还包括:处理模块,用于在通过第二组件将所述目标代码提交记录转化为目标表格之后,响应于查询指令,从所述目标表格中确定代码提交量大于预设阈值的多个对象的标识,其中,所述查询指令中携带有所述预设阈值;将所述多个对象的标识按照对应的代码提交量从大到小进行排序,并返回排序后的所述多个对象的标识。In an exemplary embodiment, the above device further includes: a processing module, configured to determine the code from the target table in response to a query instruction after converting the target code submission record into the target table by the second component The identifiers of multiple objects whose submission amount is greater than a preset threshold, wherein the query instruction carries the preset threshold; sort the identifiers of the multiple objects according to the corresponding code submission amount from large to small, and Returns the sorted identifiers of the plurality of objects.

在一个示例性的实施例中,处理模块,还用于在通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量之后,确定所述目标对象在所述预设时间内的代码提交量是否位于预设范围内;在确定所述目标对象在所述预设时间内的代码提交量不位于预设范围内的情况下,再次确定所述多个代码仓库中每个代码仓库对应的代码提交记录,并通过确定得到的多个代码提交记录再次确定所述目标对象在所述预设时间内的代码提交量。In an exemplary embodiment, the processing module is further configured to, after determining the code submission amount of the target object within the preset time through the plurality of code submission records, determine Whether the code submission amount within the preset time is within the preset range; if it is determined that the code submission amount of the target object within the preset time is not within the preset range, determine again whether each of the multiple code repositories code submission records corresponding to each code repository, and determine the number of code submissions of the target object within the preset time by determining the multiple code submission records obtained.

在一个示例性的实施例中,所述代码提交记录中的每条记录,包括:代码提交标识,代码提交标题,代码提交对象,代码提交量,代码提交地址。In an exemplary embodiment, each record in the code submission records includes: a code submission identifier, a code submission title, a code submission object, a code submission amount, and a code submission address.

根据本发明实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述代码提交量的确定方法。According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above-mentioned code submission volume when running. method of determination.

根据本发明实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述代码提交量的确定方法。According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the above code through the computer program The method for determining the amount submitted.

本发明,通过第一组件访问代码管理平台,确定存在代码提交行为的多个代码仓库,并确定多个代码仓库中每个代码仓库对应的代码提交记录,得到多个代码仓库对应的多个代码提交记录,并通过多个代码提交记录确定目标对象在所述预设时间内的代码提交量。由于通过组件的方式来自动统计代码提交量,使得统计代码提交量的准确性较高,进而解决了现有方法统计代码提交量的准确性较低的问题。The present invention accesses the code management platform through the first component, determines multiple code warehouses with code submission behaviors, and determines the code submission records corresponding to each code warehouse in the multiple code warehouses, and obtains multiple codes corresponding to multiple code warehouses Submit records, and determine the amount of code submitted by the target object within the preset time through multiple code submission records. Since the code submission volume is automatically counted by means of components, the accuracy of counting the code submission volume is high, thereby solving the problem of low accuracy of counting the code submission volume in the existing method.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.

图1是根据本申请实施例的一种代码提交量的确定方法的硬件环境示意图;FIG. 1 is a schematic diagram of a hardware environment of a method for determining a code submission amount according to an embodiment of the present application;

图2是根据本发明实施例的代码提交量的确定方法的流程图(一);FIG. 2 is a flowchart (1) of a method for determining a code submission amount according to an embodiment of the present invention;

图3是根据本发明实施例的代码提交量的确定方法的流程图(二);FIG. 3 is a flow chart (2) of a method for determining a code submission amount according to an embodiment of the present invention;

图4是根据本发明实施例的代码提交量的确定装置的结构框图(一);FIG. 4 is a structural block diagram (1) of a device for determining a code submission amount according to an embodiment of the present invention;

图5是根据本发明实施例的代码提交量的确定装置的结构框图(二)。FIG. 5 is a structural block diagram (2) of an apparatus for determining a code submission amount according to an embodiment of the present invention.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

根据本申请实施例的一个方面,提供了一种代码提交量的确定方法。该代码提交量的确定方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(IntelligenceHouse)生态等全屋智能数字化控制应用场景。可选地,在本实施例中,上述代码提交量的确定方法可以应用于如图1所示的由终端设备102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端设备102进行连接,可用于为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器104提供数据存储服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,用于为服务器104提供数据运算服务。According to an aspect of the embodiments of the present application, a method for determining the amount of code submissions is provided. The method of determining the number of code submissions is widely used in smart home (Smart Home), smart home, smart home equipment ecology, smart house (IntelligenceHouse) ecology and other intelligent digital control application scenarios of the whole house. Optionally, in this embodiment, the above method for determining the amount of code submissions may be applied to a hardware environment composed of aterminal device 102 and aserver 104 as shown in FIG. 1 . As shown in Figure 1, theserver 104 is connected to theterminal device 102 through the network, and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. To provide data storage services for theserver 104, cloud computing and/or edge computing services may be configured on the server or independently of the server to provide data computing services for theserver 104.

上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The foregoing network may include but not limited to at least one of the following: a wired network and a wireless network. The above-mentioned wired network may include but not limited to at least one of the following: wide area network, metropolitan area network, and local area network, and the above-mentioned wireless network may include but not limited to at least one of the following: WIFI (Wireless Fidelity, Wireless Fidelity), Bluetooth. Theterminal device 102 is not limited to PC, mobile phone, tablet computer, smart air conditioner, smart hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing device, smart dishwasher, smart projection device , smart TV, smart drying rack, smart curtain, smart video, smart socket, smart audio, smart speaker, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, Smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.

为了解决上述问题,在本实施例中提供了一种代码提交量的确定方法,包括但不限于应用在代码提交量的统计系统中,图2是根据本发明实施例的代码提交量的确定方法的流程图(一),该流程包括如下步骤:In order to solve the above problems, a method for determining the amount of code submissions is provided in this embodiment, including but not limited to application in a statistical system for the amount of code submissions. Figure 2 is a method for determining the amount of code submissions according to an embodiment of the present invention The flow chart (1), this process comprises the following steps:

步骤S202:通过第一组件访问代码管理平台,确定代码仓库集合,其中,所述代码仓库集合包括多个代码仓库,所述多个代码仓库中的每个代码仓库在预设时间内存在代码提交行为;Step S202: access the code management platform through the first component, and determine a code warehouse set, wherein the code warehouse set includes multiple code warehouses, and each code warehouse in the multiple code warehouses has a code submission within a preset time Behavior;

需要说明的是,上述第一组件包括但不限于ptyhon中的gitlab包。gitlab包可以获取所有的gitlab代码仓库、子仓库、每个子仓库的代码提交记录、每条记录的提交人、增加删除总代码量、提交地址、提交信息等数据,进而将获取到的数据进行汇总。It should be noted that the above-mentioned first component includes but not limited to the gitlab package in ptyhon. The gitlab package can obtain data such as all gitlab code warehouses, sub-warehouses, code submission records of each sub-warehouse, submitter of each record, total code volume added and deleted, submission address, submission information, etc., and then summarize the obtained data .

上述代码管理平台包括但不限于gitlab。进行程序开发的人员会将程序的代码都保存在代码管理平台中。代码管理平台用于管理代码,其管理的代码包括但不限于代码管理平台管理的目标程序对应的代码,其中,目标程序为目标对象所在的团队开发正在开发的程序。代码管理平台为了方便代码的管理,可以根据代码所述的项目将代码划分至不同的代码仓库。也就是说,通过第一组件访问代码管理平台是为了从代码管理平台管理的代码仓库中确定出代码仓库集合。The aforementioned code management platforms include but are not limited to gitlab. The person who develops the program will save the code of the program in the code management platform. The code management platform is used to manage codes, and the managed codes include but not limited to the code corresponding to the target program managed by the code management platform, wherein the target program is the program being developed by the team where the target object belongs to. In order to facilitate code management, the code management platform can divide the code into different code warehouses according to the items described in the code. That is to say, the purpose of accessing the code management platform through the first component is to determine a set of code warehouses from the code warehouses managed by the code management platform.

在一个示例性的实施例中,通过第一组件访问代码管理平台,包括:获取与所述代码管理平台预先约定的访问密钥;指示所述第一组件根据所述访问密钥访问所述代码管理平台。In an exemplary embodiment, accessing the code management platform through the first component includes: obtaining an access key pre-agreed with the code management platform; instructing the first component to access the code according to the access key management platform.

需要说明的是,为了保障信息安全,进而只有具有访问密钥才可以访问代码管理平台,上述访问密钥包括但不限于token。It should be noted that, in order to ensure information security, only those who have an access key can access the code management platform. The above access key includes but is not limited to token.

需要说明的是,上述预设时间通过管理人员进行设置,可以为1天,也可以为一个星期,进而通过在预设时间内,目标对象的代码提交量。It should be noted that the above-mentioned preset time is set by the management personnel, which can be 1 day or a week, and further depends on the amount of code submitted by the target object within the preset time.

步骤S204:确定所述多个代码仓库中每个代码仓库对应的代码提交记录,得到多个代码仓库对应的多个代码提交记录;Step S204: Determine the code submission records corresponding to each code warehouse in the multiple code warehouses, and obtain multiple code submission records corresponding to the multiple code warehouses;

在一个示例性的实施例中,上述步骤S204可以通过以下方式实现:确定所述每个代码仓库所包含的多个子仓库,并确定所述多个子仓库中每个子仓库对应的子代码提交记录,得到多个子代码提交记录;将所述每个代码仓库中的多个子代码提交记录进行合并,确定所述每个代码仓库对应的代码提交记录。In an exemplary embodiment, the above step S204 can be implemented in the following manner: determine the multiple sub-warehouses contained in each code warehouse, and determine the sub-code submission record corresponding to each sub-warehouse in the multiple sub-warehouses, Obtaining multiple sub-code submission records; merging the multiple sub-code submission records in each code warehouse to determine the code submission record corresponding to each code warehouse.

需要说明的是,子代码提交记录以及代码提交记录中包括多条代码提交记录。It should be noted that the subcode submission record and the code submission record include multiple code submission records.

在一个示例性的实施例中,子代码提交记录以及代码提交记录中的每条记录,包括:代码提交标识,代码提交标题,代码提交对象,代码提交量,代码提交地址。In an exemplary embodiment, the subcode submission record and each record in the code submission record include: a code submission identifier, a code submission title, a code submission object, a code submission amount, and a code submission address.

其中,代码提交标识用于唯一标识这一条代码提交记录,代码提交标题用于说明此条代码提交记录对应的主要内容(例如:修改了什么功能,新增了什么功能),代码提交对象为提交这条代码记录的用户,代码提交量可以通过提交的代码的行数来确定,代码提交地址用于指示代码提交的位置(例如:代码管理平台)。Among them, the code submission identifier is used to uniquely identify this code submission record, the code submission title is used to explain the main content of this code submission record (for example: what functions have been modified, what functions have been added), and the object of code submission is Submit This code records the user, the amount of code submission can be determined by the number of lines of code submitted, and the code submission address is used to indicate the location of the code submission (for example: code management platform).

步骤S206:通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量。Step S206: Determine the code submission amount of the target object within the preset time period according to the multiple code submission records.

在一个示例性的实施例中,上述步骤S206可以通过以下方式实现:将所述多个代码提交记录进行合并,得到目标代码提交记录;通过第二组件将所述目标代码提交记录转化为目标表格,其中,所述目标表格中具有不同对象的代码提交量;通过所述目标对象的对象标识在所述目标表格中查找所述目标对象对应的代码提交量。In an exemplary embodiment, the above step S206 can be implemented in the following manner: combining the multiple code submission records to obtain the target code submission record; converting the target code submission record into a target form through the second component , wherein, the target table has the code submission amount of different objects; the code submission amount corresponding to the target object is searched in the target table through the object identifier of the target object.

需要说明的是,目标代码提交记录可以表示在预设时间内,目标对象所在的团队开发目标程序的时候所有的代码提交记录。上述第二组件包括但不限于python中的xlwt包。可以通过xlwt包提供的生成excel能力,将所需的目标代码提交记录以excel的形式输出,来快速实现代码统计。It should be noted that the target code submission record may represent all code submission records when the target program is developed by the team of the target object within a preset time period. The above-mentioned second component includes, but is not limited to, the xlwt package in python. The ability to generate excel provided by the xlwt package can be used to output the required object code submission records in the form of excel to quickly realize code statistics.

在一个示例性的实施例中,通过第二组件将所述目标代码提交记录转化为目标表格之后,所述方法还包括:响应于查询指令,从所述目标表格中确定代码提交量大于预设阈值的多个对象的标识,其中,所述查询指令中携带有所述预设阈值;将所述多个对象的标识按照对应的代码提交量从大到小进行排序,并返回排序后的所述多个对象的标识。In an exemplary embodiment, after converting the target code submission record into a target table by the second component, the method further includes: in response to a query instruction, determining from the target table that the amount of code submission is greater than a preset The identifiers of multiple objects with a threshold value, wherein the query command carries the preset threshold value; sort the identifiers of the multiple objects according to the corresponding code submission amount from large to small, and return all sorted The identities of the multiple objects described above.

需要说明的是,查询指令是用于查询团队中代码提交量大于预设阈值的对象。可选的,在返回排序后的多个对象的标识的时候,还会对应返回多个对象中每个对象对应的代码提交量。It should be noted that the query instruction is used to query the objects whose code submission volume in the team is greater than the preset threshold. Optionally, when the identifiers of the sorted multiple objects are returned, the amount of code submission corresponding to each object in the multiple objects will also be returned correspondingly.

上述步骤,通过第一组件访问代码管理平台,确定存在代码提交行为的多个代码仓库,并确定多个代码仓库中每个代码仓库对应的代码提交记录,得到多个代码仓库对应的多个代码提交记录,并通过多个代码提交记录确定目标对象在所述预设时间内的代码提交量。由于通过组件的方式来自动统计代码提交量,使得统计代码提交量的准确性较高,进而解决了现有方法统计代码提交量的准确性较低的问题。In the above steps, access the code management platform through the first component, determine multiple code warehouses with code submission behaviors, and determine the code submission records corresponding to each code warehouse in the multiple code warehouses, and obtain multiple codes corresponding to multiple code warehouses Submit records, and determine the amount of code submitted by the target object within the preset time through multiple code submission records. Since the code submission volume is automatically counted by means of components, the accuracy of counting the code submission volume is high, thereby solving the problem of low accuracy of counting the code submission volume in the existing method.

在一个示例性的实施例中,在执行完上述步骤S206之后,还具有以下步骤:确定所述目标对象在所述预设时间内的代码提交量是否位于预设范围内;在确定所述目标对象在所述预设时间内的代码提交量不位于预设范围内的情况下,再次确定所述多个代码仓库中每个代码仓库对应的代码提交记录,并通过确定得到的多个代码提交记录再次确定所述目标对象在所述预设时间内的代码提交量。In an exemplary embodiment, after the above step S206 is performed, the following steps are further included: determining whether the code submission amount of the target object within the preset time is within a preset range; after determining the target If the code submission amount of the object within the preset time is not within the preset range, determine the code submission record corresponding to each code warehouse in the multiple code warehouses again, and submit The record determines again the code submission amount of the target object within the preset time.

需要说明的是,如果目标对象在预设时间内的代码提交量不位于预设范围内,则说明代码量的统计错误的概率超过预设概率(例如,80%),进而需要重新进行统计,即再次确定多个代码仓库中每个代码仓库对应的代码提交记录,并通过确定得到的多个代码提交记录再次确定目标对象在预设时间内的代码提交量。It should be noted that if the amount of code submitted by the target object within the preset time is not within the preset range, it means that the probability of statistical errors in the amount of code exceeds the preset probability (for example, 80%), and further statistics need to be performed again. That is, re-determining the code submission records corresponding to each code warehouse in the multiple code repositories, and re-determining the code submission volume of the target object within the preset time through the determined multiple code submission records.

显然,上述所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。为了更好的理解上述方法,以下结合实施例对上述过程进行说明,但不用于限定本发明实施例的技术方案,具体地:Apparently, the above-described embodiments are only part of the embodiments of the present invention, not all of them. In order to better understand the above method, the above process is described below in conjunction with the examples, but it is not intended to limit the technical solutions of the examples of the present invention, specifically:

图3是根据本发明实施例的代码提交量的确定方法的流程图(二),如图3所示(需要说明的是,在图3中,S1与S4是异步执行的,S2与S3是异步执行的),代码量的统计,首先需要搭建python环境,下载gitlab、xlwt三方依赖包。与此同时,需要登录gitlab(相当于上述实施例中的代码管理平台)进行接口调用授权、获取到token以及仓库id。根据这些数据,就可以调用gitlab提供的方法,获取所有的项目(相当于上述实施例中的代码仓库)、项目下所有的分支(相当于上述实施例中的子仓库)、分支下所有的提交,通过三层循环遍历,获取到开发人员所有的提交信息,最后将信息告知xlwt,xlwt可以依据数据生成excel并输出到指定路径。Fig. 3 is a flowchart (2) of a method for determining the amount of code submission according to an embodiment of the present invention, as shown in Fig. 3 (it should be noted that in Fig. 3, S1 and S4 are executed asynchronously, and S2 and S3 are executed asynchronously. Asynchronous execution), the statistics of the amount of code, first need to build a python environment, download the three-party dependency packages of gitlab and xlwt. At the same time, it is necessary to log in to gitlab (equivalent to the code management platform in the above embodiment) to authorize interface calls and obtain tokens and warehouse ids. According to these data, you can call the method provided by gitlab to obtain all projects (equivalent to the code warehouse in the above embodiment), all branches under the project (equivalent to the sub-warehouse in the above embodiment), and all submissions under the branch , through three-layer loop traversal, get all the submission information of the developer, and finally inform xlwt of the information, xlwt can generate excel based on the data and output it to the specified path.

也就是说,本发明通过在python中引入gitlab和xlwt包来提供调用gitlab接口获取数据和输出excel格式统计数据的能力。gitlab包可以获取所有的gitlab代码仓库、仓库分支、每个分支的代码提交记录、每条记录的提交人、增加删除总代码量、提交网址、提交信息等数据,将获取到的数据进行汇总,然后通过xlwt包提供的生成excel能力,将所需数据以excel的形式输出,来快速实现代码统计。That is to say, the present invention provides the ability to call the gitlab interface to obtain data and output statistical data in excel format by introducing gitlab and xlwt packages in python. The gitlab package can obtain data such as all gitlab code warehouses, warehouse branches, code submission records of each branch, submitter of each record, total code volume added and deleted, submission URL, submission information, etc., and summarize the obtained data. Then, through the ability to generate excel provided by the xlwt package, the required data is output in the form of excel to quickly realize code statistics.

需要说明的是,在本申请实施例中,需要保障提供的token的准确度以及环境搭建的完整性。It should be noted that in the embodiment of this application, the accuracy of the provided token and the integrity of the environment construction need to be guaranteed.

需要说明的是,团队成员成果的输出不能单单依靠主观印象,更需要数据支撑。而代码输出量就是其中一个比较重要的维度,那么数据的准确性就极其重要。依靠python来进行数据统计可以极大的提升代码统计的准确度、提升统计效率、减少统计耗时。而且可扩展性高,所有用户提交的数据都可以获取到,那么后续如果需要更全面的数据,就可以轻松处理,此外,本申请将原来手动化操作实现的功能用自动化的方式进行实现,规避了手动方式可能出现的遗漏、数据准确度差等问题,极大的提升了工作效率,且本申请上述技术方案特别适合批量获取团队成员的代码提交数据统计。It should be noted that the output of team members' achievements cannot rely solely on subjective impressions, but also requires data support. The code output is one of the more important dimensions, so the accuracy of the data is extremely important. Relying on python for data statistics can greatly improve the accuracy of code statistics, improve statistical efficiency, and reduce statistical time-consuming. Moreover, the scalability is high, and all the data submitted by users can be obtained, so if more comprehensive data is needed in the future, it can be easily processed. In addition, this application realizes the functions realized by the original manual operation in an automated way to avoid Problems such as omissions and poor data accuracy that may occur in manual methods are eliminated, and work efficiency is greatly improved, and the above-mentioned technical solution of this application is particularly suitable for batch acquisition of code submission data statistics of team members.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the method of each embodiment of the present invention.

在本实施例中还提供了一种代码提交量的确定装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的设备较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for determining the amount of code submission is also provided, and the device is used to implement the above embodiments and preferred implementation modes, and those that have already been described will not be described again. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

图4是根据本发明实施例的代码提交量的确定装置的结构框图(一),该装置包括:Fig. 4 is a structural block diagram (1) of a device for determining the amount of code submission according to an embodiment of the present invention, the device includes:

第一确定模块42,用于通过第一组件访问代码管理平台,确定代码仓库集合,其中,所述代码仓库集合包括多个代码仓库,所述多个代码仓库中的每个代码仓库在预设时间内存在代码提交行为;The first determiningmodule 42 is configured to access the code management platform through the first component, and determine a set of code warehouses, wherein the set of code warehouses includes a plurality of code warehouses, and each code warehouse in the plurality of code warehouses is preset There is a code submission behavior within the time;

需要说明的是,上述第一组件包括但不限于ptyhon中的gitlab包。gitlab包可以获取所有的gitlab代码仓库、子仓库、每个子仓库的代码提交记录、每条记录的提交人、增加删除总代码量、提交地址、提交信息等数据,进而将获取到的数据进行汇总。上述代码管理平台包括但不限于gitlab。进行程序开发的人员会将程序的代码都保存在代码管理平台中。代码管理平台用于管理代码,其管理的代码包括但不限于代码管理平台管理的目标程序对应的代码,其中,目标程序为目标对象所在的团队开发正在开发的程序。代码管理平台为了方便代码的管理,可以根据代码所述的项目将代码划分至不同的代码仓库。It should be noted that the above-mentioned first component includes but not limited to the gitlab package in ptyhon. The gitlab package can obtain data such as all gitlab code warehouses, sub-warehouses, code submission records of each sub-warehouse, submitter of each record, total code volume added and deleted, submission address, submission information, etc., and then summarize the obtained data . The aforementioned code management platforms include but are not limited to gitlab. The person who develops the program will save the code of the program in the code management platform. The code management platform is used to manage codes, and the managed codes include but not limited to the code corresponding to the target program managed by the code management platform, wherein the target program is the program being developed by the team where the target object belongs to. In order to facilitate code management, the code management platform can divide the code into different code warehouses according to the items described in the code.

需要说明的是,上述预设时间通过管理人员进行设置,可以为1天,也可以为一个星期,进而通过在预设时间内,目标对象的代码提交量。It should be noted that the above-mentioned preset time is set by the management personnel, which can be 1 day or a week, and further depends on the amount of code submitted by the target object within the preset time.

第二确定模块44,用于确定所述多个代码仓库中每个代码仓库对应的代码提交记录,得到所述多个代码仓库对应的多个代码提交记录;The second determiningmodule 44 is configured to determine a code submission record corresponding to each code warehouse in the plurality of code warehouses, and obtain a plurality of code submission records corresponding to the plurality of code warehouses;

第三确定模块46,用于通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量。The third determiningmodule 46 is configured to determine the amount of code submission of the target object within the preset time by using the plurality of code submission records.

上述装置,通过第一组件访问代码管理平台,确定存在代码提交行为的多个代码仓库,并确定多个代码仓库中每个代码仓库对应的代码提交记录,得到多个代码仓库对应的多个代码提交记录,并通过多个代码提交记录确定目标对象在所述预设时间内的代码提交量。由于通过组件的方式来自动统计代码提交量,使得统计代码提交量的准确性较高,进而解决了现有方法统计代码提交量的准确性较低的问题。The above device accesses the code management platform through the first component, determines multiple code warehouses with code submission behaviors, and determines the code submission records corresponding to each code warehouse in the multiple code warehouses, and obtains multiple code warehouses corresponding to multiple code warehouses Submit records, and determine the amount of code submitted by the target object within the preset time through multiple code submission records. Since the code submission volume is automatically counted by means of components, the accuracy of counting the code submission volume is high, thereby solving the problem of low accuracy of counting the code submission volume in the existing method.

在一个示例性的实施例中,第一确定模块42还包括:访问单元,用于获取与所述代码管理平台预先约定的访问密钥;指示所述第一组件根据所述访问密钥访问所述代码管理平台。In an exemplary embodiment, thefirst determination module 42 further includes: an access unit, configured to obtain an access key pre-agreed with the code management platform; instruct the first component to access the The above code management platform.

在一个示例性的实施例中,第二确定模块44,还用于确定所述每个代码仓库所包含的多个子仓库,并确定所述多个子仓库中每个子仓库对应的子代码提交记录,得到多个子代码提交记录;将所述每个代码仓库中的多个子代码提交记录进行合并,确定所述每个代码仓库对应的代码提交记录。In an exemplary embodiment, thesecond determination module 44 is further configured to determine the multiple sub-warehouses contained in each code warehouse, and determine the sub-code submission record corresponding to each sub-warehouse in the multiple sub-warehouses, Obtaining multiple sub-code submission records; merging the multiple sub-code submission records in each code warehouse to determine the code submission record corresponding to each code warehouse.

在一个示例性的实施例中,第三确定模块46,还用于将所述多个代码提交记录进行合并,得到目标代码提交记录;通过第二组件将所述目标代码提交记录转化为目标表格,其中,所述目标表格中具有不同对象的代码提交量;通过所述目标对象的对象标识在所述目标表格中查找所述目标对象对应的代码提交量。In an exemplary embodiment, thethird determination module 46 is further configured to merge the plurality of code submission records to obtain the target code submission record; convert the target code submission record into a target form through the second component , wherein, the target table has the code submission amount of different objects; the code submission amount corresponding to the target object is searched in the target table through the object identifier of the target object.

图5是根据本发明实施例的代码提交量的确定装置的结构框图(二),在一个示例性的实施例中,上述装置还包括:处理模块48,用于在通过第二组件将所述目标代码提交记录转化为目标表格之后,响应于查询指令,从所述目标表格中确定代码提交量大于预设阈值的多个对象的标识,其中,所述查询指令中携带有所述预设阈值;将所述多个对象的标识按照对应的代码提交量从大到小进行排序,并返回排序后的所述多个对象的标识。Fig. 5 is a structural block diagram (2) of a device for determining the amount of code submission according to an embodiment of the present invention. In an exemplary embodiment, the above-mentioned device further includes: aprocessing module 48, which is used to convert the After the target code submission record is converted into a target table, in response to a query instruction, determine the identifiers of multiple objects whose code submission amount is greater than a preset threshold value from the target table, wherein the query command carries the preset threshold value ; Sort the identifiers of the multiple objects according to the corresponding code submission amount from large to small, and return the sorted identifiers of the multiple objects.

在一个示例性的实施例中,处理模块48,还用于在通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量之后,确定所述目标对象在所述预设时间内的代码提交量是否位于预设范围内;在确定所述目标对象在所述预设时间内的代码提交量不位于预设范围内的情况下,再次确定所述多个代码仓库中每个代码仓库对应的代码提交记录,并通过确定得到的多个代码提交记录再次确定所述目标对象在所述预设时间内的代码提交量。In an exemplary embodiment, theprocessing module 48 is further configured to, after determining the code submission amount of the target object within the preset time through the multiple code submission records, determine that the target object Whether the code submission amount within the preset time is within the preset range; if it is determined that the code submission amount of the target object within the preset time is not within the preset range, determine again whether the code submission amount in the multiple code warehouses is within the preset range The code submission records corresponding to each code warehouse, and the number of code submissions of the target object within the preset time is re-determined by determining the obtained multiple code submission records.

需要说明的是,如果目标对象在预设时间内的代码提交量不位于预设范围内,则说明代码量的统计错误的概率超过预设概率(例如,80%),进而需要重新进行统计,即再次确定多个代码仓库中每个代码仓库对应的代码提交记录,并通过确定得到的多个代码提交记录再次确定目标对象在预设时间内的代码提交量。It should be noted that if the amount of code submitted by the target object within the preset time is not within the preset range, it means that the probability of statistical errors in the amount of code exceeds the preset probability (for example, 80%), and further statistics need to be performed again. That is, re-determining the code submission records corresponding to each code warehouse in the multiple code repositories, and re-determining the code submission volume of the target object within the preset time through the determined multiple code submission records.

在一个示例性的实施例中,所述代码提交记录中的每条记录,包括:代码提交标识,代码提交标题,代码提交对象,代码提交量,代码提交地址。In an exemplary embodiment, each record in the code submission records includes: a code submission identifier, a code submission title, a code submission object, a code submission amount, and a code submission address.

需要说明的是,代码提交标识用于唯一标识这一条代码提交记录,代码提交标题用于说明此条代码提交记录对应的主要内容(例如:修改了什么功能,新增了什么功能),代码提交对象为提交这条代码的用户,代码提交量可以通过提交的代码的行数来确定,代码提交地址用于指示代码提交的位置(例如:代码管理平台)。It should be noted that the code submission identifier is used to uniquely identify this code submission record, the code submission title is used to explain the main content of this code submission record (for example: what functions have been modified, what functions have been added), and the code submission The object is the user who submits this code. The amount of code submission can be determined by the number of lines of code submitted. The code submission address is used to indicate the location of the code submission (for example: code management platform).

本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:

S1,通过第一组件访问代码管理平台,确定代码仓库集合,其中,所述代码仓库集合包括多个代码仓库,所述多个代码仓库中的每个代码仓库在预设时间内存在代码提交行为;S1, accessing the code management platform through the first component, and determining a code warehouse set, wherein the code warehouse set includes multiple code warehouses, and each code warehouse in the multiple code warehouses has a code submission behavior within a preset time ;

S2,确定所述多个代码仓库中每个代码仓库对应的代码提交记录,得到所述多个代码仓库对应的多个代码提交记录;S2. Determine the code submission records corresponding to each code warehouse in the multiple code warehouses, and obtain multiple code submission records corresponding to the multiple code warehouses;

S3,通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量。S3. Determine the code submission amount of the target object within the preset time according to the multiple code submission records.

在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details are not repeated in this embodiment.

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

S1,通过第一组件访问代码管理平台,确定代码仓库集合,其中,所述代码仓库集合包括多个代码仓库,所述多个代码仓库中的每个代码仓库在预设时间内存在代码提交行为;S1, accessing the code management platform through the first component, and determining a code warehouse set, wherein the code warehouse set includes multiple code warehouses, and each code warehouse in the multiple code warehouses has a code submission behavior within a preset time ;

S2,确定所述多个代码仓库中每个代码仓库对应的代码提交记录,得到所述多个代码仓库对应的多个代码提交记录;S2. Determine the code submission records corresponding to each code warehouse in the multiple code warehouses, and obtain multiple code submission records corresponding to the multiple code warehouses;

S3,通过所述多个代码提交记录确定目标对象在所述预设时间内的代码提交量。S3. Determine the code submission amount of the target object within the preset time according to the multiple code submission records.

在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details are not repeated in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be performed in an order different from that shown here. Or described steps, or they are made into individual integrated circuit modules, or multiple modules or steps among them are made into a single integrated circuit module to realize. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above description is only the preferred embodiment of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, some improvements and modifications can also be made. These improvements and modifications are also It should be regarded as the protection scope of this application.

Claims (10)

CN202211049025.1A2022-08-302022-08-30 Method and device for determining code submission amount, storage medium and electronic devicePendingCN115480809A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211049025.1ACN115480809A (en)2022-08-302022-08-30 Method and device for determining code submission amount, storage medium and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211049025.1ACN115480809A (en)2022-08-302022-08-30 Method and device for determining code submission amount, storage medium and electronic device

Publications (1)

Publication NumberPublication Date
CN115480809Atrue CN115480809A (en)2022-12-16

Family

ID=84423226

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211049025.1APendingCN115480809A (en)2022-08-302022-08-30 Method and device for determining code submission amount, storage medium and electronic device

Country Status (1)

CountryLink
CN (1)CN115480809A (en)

Similar Documents

PublicationPublication DateTitle
RU2488166C2 (en)Service-oriented conveyor-based architecture
CN114675928A (en) Method and device for constructing container image, storage medium and electronic device
CN111008873B (en)User determination method, device, electronic equipment and storage medium
CN115687349A (en)Database table generation method and device, storage medium and electronic device
CN111124480A (en)Application package generation method and device, electronic equipment and storage medium
CN117573320A (en)Task node execution method and device, storage medium and electronic device
CN111782672B (en)Multi-field data management method and related device
CN112241474B (en) Information processing method, device and storage medium
WO2017117870A1 (en)Processing method and apparatus for trap instruction trap
CN113626863A (en)Data processing method and device
CN115480809A (en) Method and device for determining code submission amount, storage medium and electronic device
CN118860399A (en) Node replacement method and device, storage medium and electronic device
CN114896006B (en)Page menu creation method and device, storage medium and electronic device
CN116467173A (en) Determination method and device, storage medium and electronic device of key test
CN114818709A (en) Method and device for acquiring field name of data table, storage medium and electronic device
WO2022048201A1 (en)Data processing method and apparatus, and electronic device and storage medium
CN115390466A (en)Behavior preference table generation method and device, storage medium and electronic device
CN115563147A (en) A database audit method, system, storage medium and electronic device
CN115048392A (en)Data deletion method and device, storage medium and electronic device
CN114783156A (en)Reminding item broadcasting method, storage medium and electronic device
CN111625711A (en)New house source push processing method and device, electronic equipment and storage medium
CN116303535A (en) Data query method and device, storage medium and electronic device
CN116521767A (en)Data information determining method and device, storage medium and electronic device
CN115695413A (en)Data downloading method and device, storage medium and electronic device
CN116521673A (en)Database operation method and device, storage medium and electronic device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp