[codeface] Re: AW: Re: Preparing time series data - sloccount analysis

  • From: Wolfgang Mauerer <wm@xxxxxxxxxxxxxxxx>
  • To: codeface@xxxxxxxxxxxxx
  • Date: Mon, 02 Mar 2015 17:20:59 +0100


Am 02/03/2015 um 11:23 schrieb Matthias Gemmer:
>> Von: codeface-bounce@xxxxxxxxxxxxx <codeface-bounce@xxxxxxxxxxxxx> im 
>> Auftrag von Wolfgang Mauerer <wm@xxxxxxxxxxxxxxxx>
>> Gesendet: Freitag, 27. Februar 2015 21:35
>> An: codeface@xxxxxxxxxxxxx
>> Betreff: [codeface] Re: Preparing time series data - sloccount analysis
>>
>> Am 27/02/2015 um 20:30 schrieb Mitchell Joblin:
>>> Hi Matthias,
>>>
>>> On Fri, Feb 27, 2015 at 5:09 PM, Matthias Gemmer
>>> <matthias.gemmer@xxxxxxxxxxxxxxxxxxxx> wrote:
>>>> Codeface is checked out from the branch mitchell-updates (hash: 88db2d5).
>>>>
>>>>
>>>> Performing the analysis of the projects linux-kernel (tagging: 'feature',
>>>> 'proximity'), openssl and jquery raises an error during preparing time
>>>> series data.
>>>>
>>>> The Traceback occurs in every project-analysis after the first sloccount
>>>> analysis.
>>>>
>>>>
>>>> 2015-02-22 16:58:46 [codeface.R.complexity] INFO: Performing sloccount
>>>> analysis for acf102237f9e26c1b864bf6e432f65040b477851
>>>> 2015-02-22 16:58:47 [codeface.R] INFO: Traceback:
>>>>   0:
>>>>   1: config.script.run({
>>>>          conf <- config.from.args(positional.args = list("rep
>>>>   2: withCallingHandlers(expr, error = function(e) {
>>>>          if (!interactive()) {
>>>>
>>>>   3: do.complexity.analysis(conf)
>>>>   4: mclapply.db(conf, 1:nrow(commits.list), function(conf, i) {
>>>>          logdevinfo(s
>>>>   5: mclapply(X, function(i) {
>>>>          conf <- init.db.global(conf)
>>>>          res.local <- F
>>>>   6: lapply(X = X, FUN = FUN, ...)
>>>>   7: FUN(1:18[[1]], ...)
>>>>   8: FUN(conf, i)
>>>>   9: add.sloccount.ts(conf, sloccount.plot.id, commit.date, res)
>>>>  10: cbind(plotId = plot.id, time = commit.date, values$metrics)
>>>>  11: cbind(deparse.level, ...)
>>>>  12: data.frame(..., check.names = FALSE)
>>>>  13: stop(gettextf("arguments imply differing number of rows: %s",
>>>> paste(unique(
>>>> 2015-02-22 16:58:47 [codeface.R] CRITICAL: arguments imply differing number
>>>> of rows: 0, 1
>>>> 2015-02-22 16:58:47 [codeface.R] INFO: Error dump was written to
>>>> 'error.dump.rda'.
>>>> 2015-02-22 16:58:47 [codeface.R] INFO: To debug, launch R and run
>>>> 'load("error.dump.rda"); debugger(error.dump)'
>>>
>>> You can use this recommendation above to load the error.dump then
>>> check for any odd values in the working variables. That will give you
>>> a hint of what went wrong. I have recently analyzed jquery and linux
>>
>> in particular, please go to call frame #9 and check the content
>> of commit.date and values (use function print). As the error message
>> says,  "arguments imply differing number of rows", so there seems
>> to be something wrong with the output gathered from sloccount.
>>
> 
> Which output is expected from sloccount at this point?
> 
> Enter an environment number, or 0 to exit  Selection: 9
> Browsing in the environment with call:
>    add.sloccount.ts(conf, sloccount.plot.id, commit.date, res)
> Called from: debugger.look(ind)
> Browse[1]> ls()
> [1] "commit.date" "conf"        "plot.id"     "values"
> Browse[1]> print(commit.date)
> [1] "2006-09-05 20:20:16 UTC"
> Browse[1]> print(values)
> $lang.info
>   lang lines  fraction
> 1  xml    98 0.5833333
> 2 perl    70 0.4166667
> 
> $metrics
>   person.months total.cost schedule.months avg.devel
> 1          0.37       4426            1.71      0.22

that looks alright -- is plot.id properly assigned?

Best regards, Wolfgang Mauerer

Other related posts: