CloneSet126


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27201.000Cases[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127539
Closure/closure/goog/i18n/datetimeparse.js
227585
Closure/closure/goog/locale/datetimeparse.js
Clone Instance
1
Line Count
27
Source Line
539
Source File
Closure/closure/goog/i18n/datetimeparse.js

    case 'd': // DATE
      cal.day=  value;
      return true;
    case 'S': // FRACTIONAL_SECOND
      return this.subParseFractionalSeconds_(value, pos, start, cal);
    case 'h': // HOUR (1..12)
      if (value==  12) {
        value=  0;
                       }
    case 'K': // HOUR (0..11)
    case 'H': // HOUR_OF_DAY (0..23)
    case 'k': // HOUR_OF_DAY (1..24)
      cal.hours=  value;
      return true;
    case 'm': // MINUTE
      cal.minutes=  value;
      return true;
    case 's': // SECOND
      cal.seconds=  value;
      return true;

    case 'z': // ZONE_OFFSET
    case 'Z': // TIMEZONE_RFC
    case 'v': // TIMEZONE_GENERIC
      return this.subparseTimeZoneInGMT_(text, pos, cal);
    default:
      return false;


Clone Instance
2
Line Count
27
Source Line
585
Source File
Closure/closure/goog/locale/datetimeparse.js

    case 'd': // DATE
      cal.day=  value;
      return true;
    case 'S': // FRACTIONAL_SECOND
      return this.subParseFractionalSeconds_(value, pos, start, cal);
    case 'h': // HOUR (1..12)
      if (value==  12) {
        value=  0;
                       }
    case 'K': // HOUR (0..11)
    case 'H': // HOUR_OF_DAY (0..23)
    case 'k': // HOUR_OF_DAY (1..24)
      cal.hours=  value;
      return true;
    case 'm': // MINUTE
      cal.minutes=  value;
      return true;
    case 's': // SECOND
      cal.seconds=  value;
      return true;

    case 'z': // ZONE_OFFSET
    case 'Z': // TIMEZONE_RFC
    case 'v': // TIMEZONE_GENERIC
      return this.subparseTimeZoneInGMT_(text, pos, cal);
    default:
      return false;


Clone AbstractionParameter Count: 0Parameter Bindings

case 'd': // DATE
  cal.day=value;
  return true;
case 'S': // FRACTIONAL_SECOND
  return this.subParseFractionalSeconds_(value,pos,start,cal);
case 'h': // HOUR (1..12)
  if (value==12)
    { value=0;
    }
case 'K': // HOUR (0..11)
case 'H': // HOUR_OF_DAY (0..23)
case 'k': // HOUR_OF_DAY (1..24)
  cal.hours=value;
  return true;
case 'm': // MINUTE
  cal.minutes=value;
  return true;
case 's': // SECOND
  cal.seconds=value;
  return true;
case 'z': // ZONE_OFFSET
case 'Z': // TIMEZONE_RFC
case 'v': // TIMEZONE_GENERIC
  return this.subparseTimeZoneInGMT_(text,pos,cal);
default:
  return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None