亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? generatestats.m

?? 分析了ofdm系統(tǒng)的過程
?? M
?? 第 1 頁 / 共 2 頁
字號:
function stats = generateStats(dirName)
%generateReport Create a report for the given directory.
%
%   Example:
%     stats = generateStats(pwd);
%     metrics = computeMetrics(stats);
%     createReport(metrics,pwd)

% Pramod Kumar and Matthew Simoneau
% Copyright 2005-2006 The MathWorks, Inc.

% Get a listing of all files.
if ~isdir(dirName)
    error('"%s" is not a valid directory.',dirName);
end

% Get a listing of all the M-files, including subdirectories.
fileList = getFilenames(dirName);

% Since cloning is cross-file, compute this first.
cloneInfo = getCloneInfo(fileList,dirName);

% Now iterate over each file in fileList.
stats = struct('lines',{},'comments',{},'complexity',{},'help',{},'mlint',{},'clash',{},'clone',{});
for i = 1:size(fileList,2)
    file = fileList{i};
    stats(i,1).filename = removeBase(file,dirName);
    stats(i,1).name = hashFilename(file,dirName);
    [stats(i,1).lines,stats(i,1).comments] = getLineCounts(file);
    stats(i,1).complexity = cyclomaticComplexity(file);
    [stats(i,1).help,stats(i,1).helpmessages] = generatedHelpMetric(file);
    stats(i,1).mlintmessages = getMlintMessages(file);
    stats(i,1).mlint = numel(stats(i,1).mlintmessages);
    [stats(i,1).clash,stats(i,1).clashname] = getClash(file);
    cloneMatches = strmatch(stats(i,1).filename,{cloneInfo.file1},'exact');
    stats(i,1).clone = numel(cloneMatches);
    stats(i,1).cloneInfo = cloneInfo(cloneMatches);
end

%==========================================================================
function s = removeBase(s,base)
s = strrep(s,[base filesep],'');
s = strrep(s,filesep,'/');

%==========================================================================
function s = hashFilename(s,dirName)
s = strrep(s,[dirName filesep],'');
s = strrep(s,'\','_');

%==========================================================================
function filenames = getFilenames(root)
% getFilenames Returns all the M-files this directory and in subdirectories.

% Everything in this folder.
allFiles = dir([root filesep '*']);

% The files we need in this folder.
myFiles = dir([root filesep '*.m']);

% Build a list of all the files matching the regular expression in this folder.
filenames = {};
for k = 1:length(myFiles)
    filenames{k} = [root filesep myFiles(k).name];
end

% Do a recursive call of this function for every sub directory of this folder.
for k = 1:length(allFiles)
    if allFiles(k).isdir && ...
            ~strcmp(allFiles(k).name,'.') && ...
            ~strcmp(allFiles(k).name,'..')
        thisFolder = [root filesep allFiles(k).name];
        filenames = [filenames getFilenames(thisFolder)];
    end
end

%==========================================================================
function [lineCount,commentCount] = getLineCounts(filename)
% Returns the number of lines of code and comments in a file.

% Count code lines.  It does not include the lines of comments or blank
% lines. If a statement is continued on many lines it counts as only one
f = textread(filename,'%s','delimiter','\n','whitespace','','bufsize',4095*10);
[unused,bptok] = xmtok(f);
% The first line of code of a function is not counted in bptok
codeCount = sum(bptok)+1;

% Count comment lines.
percent = regexp(f, '\s*[%]','start', 'once');
linesWithPercent = sum(~cellfun('isempty',percent));
percentInQuotes = regexp(f, '''.*[%].*''','start', 'once');
linesWithPercentInQuotes = sum(~cellfun('isempty',percentInQuotes));
commentCount = linesWithPercent-linesWithPercentInQuotes;

% Sum for total.
lineCount = codeCount + commentCount;

%==========================================================================
function y = cyclomaticComplexity(fileName)
%CYCLOMATICCOMPLEXITY finds max Cyclomatic Complexity of functions in the file
%   y = CYCLOMATICCOMPLEXITY(myFile) calculates the cyclomatic complexity of
%   the function in "fileName". If the file has more than one function in
%   it then CYCLOMATICCOMPLEXITY calculates the cyclomatic complexity of
%   each function and reports the maximum
%
%   For example if you have 2 functions in the file with complexity of 7 and
%   9 this function will report a complexity value of 9

% Note that the "-cyc" flag is still undocumented and will change in a
% future release.
s = mlint('-cyc','-struct',fileName);

lfunctions = {};
lcomplexities = [];

p1 = 'The McCabe complexity of ''(\w+)'' is (\d+)\.';
p2 = 'The McCabe complexity is (\d+)\.';
for i = 1:length(s)
    m1 = regexp(s(i).message,p1,'tokens');
    m2 = regexp(s(i).message,p2,'tokens');
    if ~isempty(m1)
        lfunctions{end+1,1} = m1{1}{1};
        lcomplexities(end+1,1) = str2double(m1{1}{2});
    elseif ~isempty(m2)
        [unused,name,ext] = fileparts(fileName);
        lfunctions{end+1,1} = [name ext];
        lcomplexities(end+1,1) = str2double(m2{1}{1});        
    end
end

if isempty(lcomplexities)
    y = 0;
else
    y = max(lcomplexities);
end

%==========================================================================
function [metric,y] = generatedHelpMetric(fileName)
%This function generates a number for each file based on the help content
%of the file. H1, Help, and Example each could result in 1 warning. so if
%all three are missing 3 is returned. if two are missing 2 is returned etc.

temp = 0;
y = generateHelpInfo(fileName,0);
if(isempty(y.description))
    temp = temp+1;
end
if(isempty(y.example))
    temp = temp+1;
end
if(isempty(y.help))
    temp = temp+1;
end
metric = temp;

%==========================================================================
function helpInfo = generateHelpInfo(fileName, helpSubfunsDisplay)
%HELPRPT  Scan a file or directory for help.
strc = [];
if (helpSubfunsDisplay==1)
    callStrc = getcallinfo(fileName,'subfuns');
else
    callStrc = getcallinfo(fileName,'file');
end
for m = 1:length(callStrc)
    strc(end+1).filename = fileName;
    strc(end).name = callStrc(m).name;
    strc(end).type = callStrc(m).type;
    strc(end).firstLine = callStrc(m).firstline;
    if strcmp(strc(end).type,'subfunction')
        helpStr = helpfunc([strc(end).filename filemarker strc(end).name]);
    else
        helpStr = helpfunc(strc(end).filename);
    end
    strc(end).help = code2html(helpStr);
    % Remove any leading spaces and percent signs
    % Grab all the text up to the first carriage return
    helpTkn = regexp(helpStr,'^\s*%*\s*([^\n]*)\n','tokens','once');
    if isempty(helpTkn)
        strc(end).description = '';
    else
        strc(end).description = helpTkn{1};
    end
    % Now we grep through the function line by line looking for
    % copyright, example, and see-also information. Don't bother
    % looking for these things in a subfunction.
    % NOTE: This will not work for Japanese files
    if ~strcmp(strc(end).type,'subfunction')
        f = textread(fileName,'%s','delimiter','\n','whitespace','','bufsize',4095*10);
        strc(end).example = '';
        for i = 1:length(f)
            % The help report searches all comment lines in the file,
            % even if they occur after the typical "help block" at the
            % top of the file.
            % If there's no comment character, short circuit the loop.
            if isempty(strfind(f{i},'%'))
                continue
            end
            exTkn = regexpi(f{i},'^\s*%(\s*example)','tokens','once');
            if ~isempty(exTkn)
                exampleStr = {' ',exTkn{1}};
                strc(end).exampleLine = i;
                % Loop through and grep the entire example
                % We assume the example ends when there is a blank
                % line or when the comments end.
                exampleCompleteFlag = 0;
                for j = (i+1):length(f)
                    codeTkn = regexp(f{j},'^\s*%(\s*[^\s].*$)','tokens','once');
                    if isempty(codeTkn)
                        exampleCompleteFlag = 1;
                    else
                        exampleStr{end+1} = codeTkn{1};
                    end
                    if exampleCompleteFlag
                        break
                    end
                end
                strc(end).example = sprintf('%s\n',exampleStr{:});
            end
        end
    end
end
helpInfo= strc;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久久久综合| 国产综合色视频| 日韩欧美中文一区| 久久成人av少妇免费| 国产精品国产自产拍高清av| 欧美视频完全免费看| 精品一区二区三区在线视频| 亚洲欧美日韩国产手机在线| 日韩欧美综合在线| 在线视频亚洲一区| 国产一区二三区| 亚洲一区在线看| 欧美精品丝袜久久久中文字幕| 韩国一区二区在线观看| 亚洲欧美日韩国产成人精品影院| 日韩欧美成人午夜| 色成人在线视频| 日本一不卡视频| 国产精品九色蝌蚪自拍| 日韩精品资源二区在线| 色婷婷精品大在线视频| 国产呦精品一区二区三区网站| 亚洲人成网站在线| 欧美成人精品福利| 欧美日韩中字一区| 99在线精品免费| 极品销魂美女一区二区三区| 亚洲精品免费在线| 国产精品久久久久aaaa樱花| 欧美一区二区三区爱爱| 91国产免费观看| 成人综合在线视频| 精品在线一区二区| 奇米888四色在线精品| 亚洲天堂av一区| 久久久久国产一区二区三区四区| 在线观看日韩电影| 成人av影视在线观看| 久久丁香综合五月国产三级网站| 视频一区在线播放| 国产精品免费av| 国产无一区二区| 久久网这里都是精品| 欧美一区二区视频在线观看2022 | 一二三区精品视频| 中文字幕亚洲在| 欧美韩国日本一区| 国产喂奶挤奶一区二区三区| 亚洲精品一线二线三线无人区| 777久久久精品| 7777精品伊人久久久大香线蕉超级流畅| 国产精品1024| 国产麻豆精品视频| 国产成人综合自拍| 丰满放荡岳乱妇91ww| 美女脱光内衣内裤视频久久网站| 日韩中文字幕一区二区三区| 亚洲国产视频在线| 午夜精品久久久| 亚洲国产精品欧美一二99| 亚洲国产一二三| 午夜精品久久久久久不卡8050| 性欧美疯狂xxxxbbbb| 婷婷激情综合网| 青青草97国产精品免费观看| 美女视频第一区二区三区免费观看网站 | 激情五月激情综合网| 久久99九九99精品| 石原莉奈在线亚洲三区| 蜜臀av一区二区三区| 久久99久久久欧美国产| 国产精品18久久久久久久久久久久 | 国产老妇另类xxxxx| 国产精品一级二级三级| 不卡视频一二三| 91福利国产成人精品照片| 视频在线观看一区二区三区| 麻豆精品一二三| 日本一区二区免费在线 | 欧美丰满一区二区免费视频| 欧美伦理影视网| 欧美一二三在线| 99精品欧美一区二区三区小说| 99热国产精品| 日韩午夜小视频| 中文字幕制服丝袜成人av| 亚洲国产欧美日韩另类综合 | 精品久久免费看| 综合色天天鬼久久鬼色| 美美哒免费高清在线观看视频一区二区| 国产精品一区二区男女羞羞无遮挡| 一本色道久久综合狠狠躁的推荐 | 欧美在线观看一二区| 欧美不卡一区二区三区四区| 1024成人网| 久久精品99国产国产精| 欧美亚洲高清一区| 久久蜜桃香蕉精品一区二区三区| 亚洲综合免费观看高清完整版| 国内成+人亚洲+欧美+综合在线| 色成人在线视频| 国产精品毛片无遮挡高清| 青青草国产精品亚洲专区无| 99精品一区二区三区| 欧美成人r级一区二区三区| 亚洲精品视频观看| 不卡欧美aaaaa| 精品福利视频一区二区三区| 亚洲第一综合色| 99久久婷婷国产综合精品电影| 日韩视频一区二区在线观看| 亚洲精品高清在线观看| 国产69精品久久777的优势| 精品理论电影在线| 日韩成人精品在线| 欧美亚洲综合色| 亚洲日本在线观看| eeuss鲁片一区二区三区| 久久久久一区二区三区四区| 蜜桃久久久久久久| 欧美日韩一区二区三区不卡| 最新欧美精品一区二区三区| 国产一区二区三区四区在线观看| 91精品欧美综合在线观看最新| 亚洲国产综合色| 欧美性色aⅴ视频一区日韩精品| 中文字幕一区二区三区在线播放| 国产成人亚洲综合色影视| 精品日韩av一区二区| 免费人成精品欧美精品| 欧美久久久久久久久| 亚洲一二三四久久| 在线观看日韩电影| 亚洲自拍偷拍综合| 欧美亚男人的天堂| 亚洲一区在线免费观看| 在线精品视频免费播放| 一区二区三区加勒比av| 91成人免费电影| 亚洲五月六月丁香激情| 欧美日韩一本到| 日韩精品免费视频人成| 日韩欧美综合一区| 国产一区二区三区免费看| 久久久久亚洲综合| 成人蜜臀av电影| 国产精品入口麻豆原神| av电影在线观看一区| 亚洲精品视频自拍| 欧美精品久久久久久久多人混战| 日韩精品一卡二卡三卡四卡无卡| 欧美一区二区三区影视| 久久99精品国产麻豆婷婷| 国产网站一区二区| 91色在线porny| 亚洲1区2区3区4区| 欧美一区二区三区电影| 国产麻豆日韩欧美久久| 国产精品女主播在线观看| 91行情网站电视在线观看高清版| 亚洲不卡一区二区三区| 欧美刺激脚交jootjob| 国产麻豆视频一区| 亚洲精品福利视频网站| 欧美肥妇free| 国产精一区二区三区| 中文字幕日韩一区| 欧美精品久久久久久久久老牛影院 | 精品久久久久一区| 国产成人精品免费在线| 亚洲色图清纯唯美| 91精品国产乱码久久蜜臀| 国产伦精品一区二区三区在线观看| 亚洲国产精品av| 精品视频一区 二区 三区| 久久99精品国产91久久来源| 亚洲欧洲精品天堂一级 | 久久精品人人做人人综合| 成人aaaa免费全部观看| 亚洲成人av在线电影| 国产亚洲成年网址在线观看| 91小视频在线| 蓝色福利精品导航| 亚洲天堂成人在线观看| 日韩视频在线你懂得| 99re成人精品视频| 精品一区二区综合| 亚洲国产一区二区三区青草影视| 精品免费国产二区三区 | 色狠狠综合天天综合综合| 久久er精品视频| 艳妇臀荡乳欲伦亚洲一区| 2021久久国产精品不只是精品| 91蜜桃网址入口| 国产激情91久久精品导航| 天天av天天翘天天综合网色鬼国产 | 久久国产日韩欧美精品| 一区二区三区四区在线免费观看| 久久久夜色精品亚洲| 欧美精品xxxxbbbb|