Today, listen to a colleague said that there is a cloc tool can also quickly count the number of lines of source code so, I went to understand the next, of course, this tool is written in Perl open source tools, it must be said that the GNU Open Source Foundation and Epel are a good platform, Of course, the GNU official website can also be downloaded to the Cloc source package, but in order to use the confi
Here is a tool cloc for the number of lines of statistical code for a Mac system.1, first, install homebrew, have installed please skip.Open Terminal Tools terminal and enter the following commands. The process will let you press the return key and enter the Mac desktop password, follow the prompts to do the following:" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "2, download and install
The Code line count tool Cloc, it can not only count the number of lines of code, but also automatically filter out the comments in the code, the use is also very convenient, strongly recommended.Installation is very convenient, Ubuntu directly Udo Apt-get install Cloc can beLet's use MySQL to make an example, first enter the MySQL source code folder:[emailprotected] ~/aproject $ cd mysql-5.6.19/[emailprote
, a, B ){// Determine whether data is sorted. If so, search for the attribute.Var a = this. dataIndex! = Num? A. cells [num]. innerHTML: a. cells [num]. getAttribute ('data '),B = this. dataIndex! = Num? B. cells [num]. innerHTML: B. cells [num]. getAttribute ('data ');// Num is passed by the bind method. Find the content in the cell to be sorted.Var x = a. toString (). toLowerCase () | '', y = B. toString (). toLowerCase () | '',NC = String. fromCharCode (0 ),XN = x. replace (this. re, nC + '$
orderYn = This.file!=num?yn:yn.reverse ()
IF (XD yd XD return-1;else if (XD yd XD > yd)return 1;For (var cloc=0, nums = Math.max (Xn.length, yn.length); cloc if ((parsefloat (xn[cloc) | | xn[cloc]) cannot be converted to Floatnumber for direct alphabetic comparisons, such as ' A ' return-1;else if ((parsefloat (
sorted if it is. Find attributes
var a=this.dataindex!=num?a.cells[num].innerhtml:a.cells[num].getattribute (' Data '),
B=this.dataindex!=num?b.cells[num].innerhtml:b.cells[num].getattribute (' data ');
Num is passed by the bind method to find the contents of the cell that needs to be sorted
var x = a.tostring (). toLowerCase () | | ", y = b.tostring (). toLowerCase () | | '',
NC = String.fromCharCode (0),
XN = X.replace (this.re, NC + ' "+ NC). Split (NC),//split string into groups
YN =
How to read the number of lines of code and the number of lines of code
Use CLOC (Count Line of Code)
Prerequisites: 1. preinstalled with perl
2. Download CLOC. http://cloc.sourceforge.net/
Unzip the installation package to get the cloc-version.pl
Open the command line, locate the folder of the extracted file, and then tap the command
Perperl
:
Source code line statistics Tool (Perl Version)
1.Code line counter
This is a paid software,There are also free versions, but there are limits that only 10 files can be counted at a time.
:
Http://codelinecounter.bistonesoft.com/clcperl.htm
Download and install
The running interface is as follows:
2.Cloc
This should be a lot of tools.
It can count the number of various types of files in a path, the total number of spaces, code, and comments. I
Http://redotheweb.com/codeflower/can display"CodeFlowers ". For details, refer to the introduction on this webpage.
How can we make the software developed under win Blossom?
Download cloc-1.56.exe. Other versions should also be supported.
Run in DOS, D: \ tools \ cloc> cloc-1.56.exe symfony-master -- CSV -- by-file -- Report-file = symfony.
How to count your own code? Here are two ways to do this:First, Cloc1, first, install homebrew, have installed please skip.Open Terminal Tools terminal and enter the following commands. The process will let you press the return key and enter the Mac desktop password, follow the prompts to do the following:" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "It is important to note that the Ruturn key is the ENTER key2, download and install
known why you want to know. cloccan accurately calculate the number of lines of code, the comments and spaces are separated. If you are a legendary project manager, start today with cloc a salary for your men. The following screenshot is attached:$cloc/usr/include/9628textfiles.9308 uniquefiles.434filesignored. t=39.0s (227.6NBSP;FILES/S,NBSP;39948.2NBSP;LINES/S)--------------------------------------------
To do what you want, you must first sharpen your skills! Manage the list of my tools here:
Team suite-Gforge, fusionforge
Version Control: Subversion, git, bazaar
Mac OS: Svnx, scplugin, versions
Windows: Tortoises SVN
Linux: Kdesvn
Loc counting: Beyond compare, cloc in Perl
UML tools: Visual paradigm, bouml, argouml
Installation utility: Inno Setup
Source Codes reading: Kscope, sourceinsight (not free)
Unit Test Framework: Cppunit, Google test, pyu
Duplicity rsyncrypto
Encrypted backup tools
Ledger
Terminal-based Bill Management System
Nethack slash 'em
Still the most complex game in the world
Taskwarrior
Terminal Task Manager
Lftp
Ftp client, supports images, a bit like rsync
Curl
Your favorite HTTP toolbox
Ack
A better grep
Rtorrent aria2
Command line download Tool
Calcurse remind + wyrd
Calendar System
Ttytter earthquake
Trendy titter client :)
Newsbeuter rsstail
Command Line RSS reader
Vifm ranger
Alternative to mi
process one thousand cycles in one second, while a machine with slow processing speed may only process 30 cycles. The animation frame rates of the two machines are completely different, and the bullet speed is also completely different, what should I do?
Fortunately, pygame has helped us do this for a long time. We only need to do this so that all the machines can have the same speed.
The pygame. time module provides a Clock () object for us to easily control the frame rate:
Clock = pygame. tim
Describe
Weight factor
Simple
Less than 5 analysis classes
5
So so
5-10 Analysis Classes
10
Complex
Over 10 analysis classes
15
3.6 Length to measure the size of software Halstead methodLOCSpecification and length of design3.8 LOC (line of Code)LOC = Ncloc + CLOCNcloc:non-commented line of code non-comment row cloc:commented lines of code comment lineNote density:
from cow A to cow B in the Cloc Kwise direction.OutputLine 1: A single line with A single integer This is the number of groups successfully dancing the Round Dance.Sample Input5 42 43 51 24 1Sample Output1HintExplanation of the sample:ASCII Art for Round Dancing is challenging. Nevertheless, here is a representation of the cows around the stock tank: _1___ 5/****** 2 //**tank**| \ \********/ \ \******/ 3 \ 4____/ / \_______
"Handsome Z" Introduction, the group implementation is good, in the application group promotion also waits for time, because our design sucks, the UI and the logic coupling degree is too high); introduced the Cppcheck to do static check (application Leader "H elder brother" introduces, Find out a lot of basic programming problems, now too many novice); introduced the code line number calculation tool Cloc (Dr Tang introduced, replaced the script writ
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.