CloneSet265


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18340.964class_member_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118670
plugins/content/geshi/geshi.php
218701
plugins/content/geshi/geshi.php
318920
plugins/content/geshi/geshi.php
Clone Instance
1
Line Count
18
Source Line
670
Source File
plugins/content/geshi/geshi.php

    /**
     * Sets the style for a keyword group. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param int     The key of the keyword group to change the styles of
     * @param string  The style to make the keywords
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
    function set_keyword_group_style($key, $style, $preserve_defaults=  FALSE) {
        if (!$preserve_defaults) {
            $this->language_data['STYLES']['KEYWORDS'][$key]=  $style;
          }
        else {
            $this->language_data['STYLES']['KEYWORDS'][$key].=  $style;
          }
      }

    /**
     * Turns highlighting on/off for a keyword group
     *
     * @param int     The key of the keyword group to turn on or off
     * @param boolean Whether to turn highlighting for that group on or off
     * @since 1.0.0
     */
    function set_keyword_group_highlighting($key, $flag=  TRUE) {
        $this->lexic_permissions['KEYWORDS'][$key]=  ($flag)
                                                     ?         TRUE
                                                     :                FALSE;
      }


Clone Instance
2
Line Count
18
Source Line
701
Source File
plugins/content/geshi/geshi.php

    /**
     * Sets the styles for comment groups.  If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param int     The key of the comment group to change the styles of
     * @param string  The style to make the comments
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
    function set_comments_style($key, $style, $preserve_defaults=  FALSE) {
        if (!$preserve_defaults) {
            $this->language_data['STYLES']['COMMENTS'][$key]=  $style;
          }
        else {
            $this->language_data['STYLES']['COMMENTS'][$key].=  $style;
          }
      }

    /**
     * Turns highlighting on/off for comment groups
     *
     * @param int     The key of the comment group to turn on or off
     * @param boolean Whether to turn highlighting for that group on or off
     * @since 1.0.0
     */
    function set_comments_highlighting($key, $flag=  TRUE) {
        $this->lexic_permissions['COMMENTS'][$key]=  ($flag)
                                                     ?         TRUE
                                                     :                FALSE;
      }


Clone Instance
3
Line Count
18
Source Line
920
Source File
plugins/content/geshi/geshi.php

    /**
     * Sets the styles for regexps. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the regular expression matches
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
    function set_regexps_style($key, $style, $preserve_defaults=  FALSE) {
        if (!$preserve_defaults) {
            $this->language_data['STYLES']['REGEXPS'][$key]=  $style;
          }
        else {
            $this->language_data['STYLES']['REGEXPS'][$key].=  $style;
          }
      }

    /**
     * Turns highlighting on/off for regexps
     *
     * @param int     The key of the regular expression group to turn on or off
     * @param boolean Whether to turn highlighting for the regular expression group on or off
     * @since 1.0.0
     */
    function set_regexps_highlighting($key, $flag) {
        $this->lexic_permissions['REGEXPS'][$key]=  ($flag)
                                                    ?         TRUE
                                                    :                FALSE;
      }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
     * Sets the style for a keyword group. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param int     The key of the keyword group to change the styles of
     * @param string  The style to make the keywords
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
/**
     * Sets the styles for comment groups.  If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param int     The key of the comment group to change the styles of
     * @param string  The style to make the comments
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
/**
     * Sets the styles for regexps. If $preserve_defaults is
     * true, then styles are merged with the default styles, with the
     * user defined styles having priority
     *
     * @param string  The style to make the regular expression matches
     * @param boolean Whether to merge the new styles with the old or just
     *                to overwrite them
     * @since 1.0.0
     */
function [[#variable4c6fe160]]($key,$style,$preserve_defaults=FALSE) {
  if (!$preserve_defaults) {
    $this->language_data['STYLES'][ [[#variable4c6fe140]]][$key]=$style;
  }
  else {
    $this->language_data['STYLES'][ [[#variable4c6fe140]]][$key].=$style;
  }
}

/**
     * Turns highlighting on/off for a keyword group
     *
     * @param int     The key of the keyword group to turn on or off
     * @param boolean Whether to turn highlighting for that group on or off
     * @since 1.0.0
     */
/**
     * Turns highlighting on/off for comment groups
     *
     * @param int     The key of the comment group to turn on or off
     * @param boolean Whether to turn highlighting for that group on or off
     * @since 1.0.0
     */
/**
     * Turns highlighting on/off for regexps
     *
     * @param int     The key of the regular expression group to turn on or off
     * @param boolean Whether to turn highlighting for the regular expression group on or off
     * @since 1.0.0
     */
function [[#variable5226b000]]($key, [[#variable4c6fe000]]) {
  $this->lexic_permissions[ [[#variable4c6fe140]]][$key]=($flag)
                                                         ? TRUE
                                                         : FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4c6fe160]]
set_keyword_group_style 
12[[#4c6fe160]]
set_comments_style 
13[[#4c6fe160]]
set_regexps_style 
21[[#4c6fe140]]
'KEYWORDS' 
22[[#4c6fe140]]
'COMMENTS' 
23[[#4c6fe140]]
'REGEXPS' 
31[[#5226b000]]
set_keyword_group_highlighting 
32[[#5226b000]]
set_comments_highlighting 
33[[#5226b000]]
set_regexps_highlighting 
41[[#4c6fe000]]
$flag=TRUE 
42[[#4c6fe000]]
$flag=TRUE 
43[[#4c6fe000]]
$flag