}}} {{{ doItalicsAndBold
552749
function doItalicsAndBold(text) {

        text = text.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g, "<strong>$2</strong>");
        text = text.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, "<em>$2</em>");

        return text;
    }
927793
static String stripBold(String in) {
        String boldStart = "<b>";
        String boldEnd = "</b>";
        int pos = in.indexOf(boldStart);
        if (pos == -1)
            return in;
        InternalStringBuilder sb = new InternalStringBuilder(in.substring(0,pos));
        int fill = pos+boldStart.length();
        pos = in.indexOf(boldEnd,fill);
        if (pos == -1)
            return in;
        sb.append(in.substring(fill,pos));
        pos += boldEnd.length();
        sb.append(in.substring(pos));
        return sb.toString();
    }
1105087
private void addNthChild() {
        for (Node node : nodes) {
            int count = 1;
            Node n = DOMHelper.getPreviousSiblingElement(node);
            while (n != null) {
                count++;
                n = DOMHelper.getPreviousSiblingElement(n);
            }
            
            if (specifier.isMatch(count)) {
                result.add(node);
            }
        }
    }
311927
function mergeAndedSelectors(selectors) {

  // sort to ensure that e.g. if the user specified
  // $and: [{$gt: 'a'}, {$gt: 'b'}], then it's collapsed into
  // just {$gt: 'b'}
  var res = {};

  selectors.forEach(function (selector) {
    Object.keys(selector).forEach(function (field) {
      var matcher = selector[field];
      if (typeof matcher !== 'object') {
        matcher = {$eq: matcher};
      }

      if (isCombinationalField(field)) {
        if (matcher instanceof Array) {
          res[field] = matcher.map(function (m) {
            return mergeAndedSelectors([m]);
          });
        } else {
          res[field] = mergeAndedSelectors([matcher]);
        }
      } else {
        var fieldMatchers = res[field] = res[field] || {};
        Object.keys(matcher).forEach(function (operator) {
          var value = matcher[operator];

          if (operator === '$gt' || operator === '$gte') {
            return mergeGtGte(operator, value, fieldMatchers);
          } else if (operator === '$lt' || operator === '$lte') {
            return mergeLtLte(operator, value, fieldMatchers);
          } else if (operator === '$ne') {
            return mergeNe(value, fieldMatchers);
          } else if (operator === '$eq') {
            return mergeEq(value, fieldMatchers);
          }
          fieldMatchers[operator] = value;
        });
      }
    });
  });

  return res;
}
738006
def OnCellFontBold(self, event):
        """"""

        with undo.group(_("Bold")):
            try:
                try:
                    weight = getattr(wx, event.weight[2:])

                except AttributeError:
                    msg = _("Weight {weight} unknown").format(
                            weight=event.weight)
                    raise ValueError(msg)

                self.grid.actions.set_attr("fontweight", weight)

            except AttributeError:
                self.grid.actions.toggle_attr("fontweight")

        self.grid.ForceRefresh()

        self.grid.update_attribute_toolbar()

        event.Skip()
736220
def setFontBold(self, state):
        
        if state:
            weight = QFont.Bold
        else:
            weight = QFont.Normal
        
        self.setFontWeight(weight)
917582
function(data) {
            if (data.row.index === 5) {
                data.cell.styles.fillColor = [40, 170, 100];
            }

            if ((data.row.section === 'head' || data.row.section === 'foot') && data.column.dataKey === "expenses") {
                data.cell.text = '' // Use an icon in didDrawCell instead
            }

            if (data.row.index === 0 && data.row.section === 'body' && data.column.dataKey === 'city') {
                data.cell.text = 'とうきょう'
            }
        }
255589
function(or, and) {
			var aDiff = set.difference(or, and.values[0]);
			var bDiff = set.difference(or, and.values[1]);
			return set.union(aDiff, bDiff);
		}
195449
private function setBoldLabels()
    {
        $this->getActiveSheet()->getStyle(
            sprintf(
                '%s1:%s1',
                reset($this->headerColumns),
                end($this->headerColumns)
            )
        )->getFont()->setBold(true);
    }
9170
function( srcRgb, dstRgb, srcAlpha, dstAlpha ){
    this._dat[ 0|BLEND_FUNC_C_SRC ] = srcRgb;
    this._dat[ 0|BLEND_FUNC_C_DST ] = dstRgb;
    this._dat[ 0|BLEND_FUNC_A_SRC ] = srcAlpha;
    this._dat[ 0|BLEND_FUNC_A_DST ] = dstAlpha;
    this._set |= BLEND_FUNC_SET | BLEND_FUNC_A_SET;
    return this;
  }
596570
function(){var l=Date.now(),m=l,g=0,n=Infinity,o=0,h=0,p=Infinity,q=0,r=0,s=0,f=document.createElement("div");f.id="stats";f.addEventListener("mousedown",function(b){b.preventDefault();t(++s%2)},!1);f.style.cssText="width:80px;opacity:0.9;cursor:pointer";var a=document.createElement("div");a.id="fps";a.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#002";f.appendChild(a);var i=document.createElement("div");i.id="fpsText";i.style.cssText="color:#0ff;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px";
i.innerHTML="FPS";a.appendChild(i);var c=document.createElement("div");c.id="fpsGraph";c.style.cssText="position:relative;width:74px;height:30px;background-color:#0ff";for(a.appendChild(c);74>c.children.length;){var j=document.createElement("span");j.style.cssText="width:1px;height:30px;float:left;background-color:#113";c.appendChild(j)}var d=document.createElement("div");d.id="ms";d.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;display:none";f.appendChild(d);var k=document.createElement("div");
k.id="msText";k.style.cssText="color:#0f0;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px";k.innerHTML="MS";d.appendChild(k);var e=document.createElement("div");e.id="msGraph";e.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0";for(d.appendChild(e);74>e.children.length;)j=document.createElement("span"),j.style.cssText="width:1px;height:30px;float:left;background-color:#131",e.appendChild(j);var t=function(b){s=b;switch(s){case 0:a.style.display=
"block";d.style.display="none";break;case 1:a.style.display="none",d.style.display="block"}};return{REVISION:11,domElement:f,setMode:t,begin:function(){l=Date.now()},end:function(){var b=Date.now();g=b-l;n=Math.min(n,g);o=Math.max(o,g);k.textContent=g+" MS ("+n+"-"+o+")";var a=Math.min(30,30-30*(g/200));e.appendChild(e.firstChild).style.height=a+"px";r++;b>m+1E3&&(h=Math.round(1E3*r/(b-m)),p=Math.min(p,h),q=Math.max(q,h),i.textContent=h+" FPS ("+p+"-"+q+")",a=Math.min(30,30-30*(h/100)),c.appendChild(c.firstChild).style.height=
a+"px",m=b,r=0);return b},update:function(){l=this.end()}}}
818865
def smalruby_to_dxruby(color)
      if color.is_a?(String) || color.is_a?(Symbol)
        color = color.to_s.downcase
        if color == 'random'
          [rand(0..0xff), rand(0..0xff), rand(0..0xff)]
        elsif NAME_TO_CODE.key?(color)
          NAME_TO_CODE[color]
        else
          fail "色の指定が間違っています: #{color}"
        end
      else
        color
      end
    end
912502
function(d) {

            var self = this;

            $('#circle-info').html(d.name);
            console.log(d);

            var focus0 = self.focus; 
            self.focus = d;

            var transition = d3.transition()
                .duration(d3.event.altKey ? 7500 : 750)
                .tween("zoom", function(d) {
                    var i = d3.interpolateZoom(self.view, 
                             [self.focus.x, self.focus.y, 
                              self.focus.r * 2 + self.options.margin]);
                    return function(t) {
                        self.zoomTo(i(t));
                    };
                });

            transition.selectAll("text")
                .filter(function(d) {
                    return d.parent === self.focus ||
                           this.style.display === "inline" ||
                           d.parent === focus0;
                })
                .style("fill-opacity", function(d) {
                    return d.parent === self.focus ? 1 : 0.5;
                })
                .each("start", function(d) {
                    if (d.parent === self.focus) 
                        this.style.display = "inline";
                })
                .each("end", function(d) {
                    if (d.parent !== self.focus) 
                        this.style.display = "none";
                });

            // logos are opaque at root level only
            transition.selectAll("use")
                .style("opacity", function(d) {
                    return self.focus.depth === 0 ? 1 : 0.8;
                });
        }
531099
function checkCombinator2(i) {
  if (i + 1 >= tokensLength) return 0;

  if (tokens[i].type === TokenType.VerticalLine &&
      tokens[i + 1].type === TokenType.VerticalLine) return 2;

  if (tokens[i].type === TokenType.GreaterThanSign &&
      tokens[i + 1].type === TokenType.GreaterThanSign) return 2;

  return 0;
}
1055665
function assimilateSimilarTokens(xs, a) {
  var b  = last(xs)
  var ys = butLast(xs)
  return !b?       [a]
  :      /* _ */   ys.concat( b.canAssimilate(a)?  [b.assimilate(a)]
                            : /* otherwise */      [b, a]) }
26410
function (iBeginDragIndex, iControlCount) {
				if (iBeginDragIndex === iControlCount - 1) {
					sInsertAfterBeforePosition = INSERT_BEFORE;
					return iBeginDragIndex;
				}
				sInsertAfterBeforePosition = INSERT_AFTER;
				return iBeginDragIndex + 1;
			}
1127033
public void mTokens() throws RecognitionException {
        // BELScript.g:1:8: ( T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | T__115 | T__116 | T__117 | T__118 | T__119 | T__120 | T__121 | T__122 | T__123 | T__124 | T__125 | T__126 | T__127 | T__128 | T__129 | T__130 | DOCUMENT_COMMENT | STATEMENT_COMMENT | DOCUMENT_KEYWORD | STATEMENT_GROUP_KEYWORD | IDENT_LIST | VALUE_LIST | OBJECT_IDENT | QUOTED_VALUE | OPEN_PAREN | CLOSE_PAREN | NS_PREFIX | NEWLINE | WS )
        int alt17=120;
        alt17 = dfa17.predict(input);
        switch (alt17) {
            case 1 :
                // BELScript.g:1:10: T__24
                {
                mT__24(); 

                }
                break;
            case 2 :
                // BELScript.g:1:16: T__25
                {
                mT__25(); 

                }
                break;
            case 3 :
                // BELScript.g:1:22: T__26
                {
                mT__26(); 

                }
                break;
            case 4 :
                // BELScript.g:1:28: T__27
                {
                mT__27(); 

                }
                break;
            case 5 :
                // BELScript.g:1:34: T__28
                {
                mT__28(); 

                }
                break;
            case 6 :
                // BELScript.g:1:40: T__29
                {
                mT__29(); 

                }
                break;
            case 7 :
                // BELScript.g:1:46: T__30
                {
                mT__30(); 

                }
                break;
            case 8 :
                // BELScript.g:1:52: T__31
                {
                mT__31(); 

                }
                break;
            case 9 :
                // BELScript.g:1:58: T__32
                {
                mT__32(); 

                }
                break;
            case 10 :
                // BELScript.g:1:64: T__33
                {
                mT__33(); 

                }
                break;
            case 11 :
                // BELScript.g:1:70: T__34
                {
                mT__34(); 

                }
                break;
            case 12 :
                // BELScript.g:1:76: T__35
                {
                mT__35(); 

                }
                break;
            case 13 :
                // BELScript.g:1:82: T__36
                {
                mT__36(); 

                }
                break;
            case 14 :
                // BELScript.g:1:88: T__37
                {
                mT__37(); 

                }
                break;
            case 15 :
                // BELScript.g:1:94: T__38
                {
                mT__38(); 

                }
                break;
            case 16 :
                // BELScript.g:1:100: T__39
                {
                mT__39(); 

                }
                break;
            case 17 :
                // BELScript.g:1:106: T__40
                {
                mT__40(); 

                }
                break;
            case 18 :
                // BELScript.g:1:112: T__41
                {
                mT__41(); 

                }
                break;
            case 19 :
                // BELScript.g:1:118: T__42
                {
                mT__42(); 

                }
                break;
            case 20 :
                // BELScript.g:1:124: T__43
                {
                mT__43(); 

                }
                break;
            case 21 :
                // BELScript.g:1:130: T__44
                {
                mT__44(); 

                }
                break;
            case 22 :
                // BELScript.g:1:136: T__45
                {
                mT__45(); 

                }
                break;
            case 23 :
                // BELScript.g:1:142: T__46
                {
                mT__46(); 

                }
                break;
            case 24 :
                // BELScript.g:1:148: T__47
                {
                mT__47(); 

                }
                break;
            case 25 :
                // BELScript.g:1:154: T__48
                {
                mT__48(); 

                }
                break;
            case 26 :
                // BELScript.g:1:160: T__49
                {
                mT__49(); 

                }
                break;
            case 27 :
                // BELScript.g:1:166: T__50
                {
                mT__50(); 

                }
                break;
            case 28 :
                // BELScript.g:1:172: T__51
                {
                mT__51(); 

                }
                break;
            case 29 :
                // BELScript.g:1:178: T__52
                {
                mT__52(); 

                }
                break;
            case 30 :
                // BELScript.g:1:184: T__53
                {
                mT__53(); 

                }
                break;
            case 31 :
                // BELScript.g:1:190: T__54
                {
                mT__54(); 

                }
                break;
            case 32 :
                // BELScript.g:1:196: T__55
                {
                mT__55(); 

                }
                break;
            case 33 :
                // BELScript.g:1:202: T__56
                {
                mT__56(); 

                }
                break;
            case 34 :
                // BELScript.g:1:208: T__57
                {
                mT__57(); 

                }
                break;
            case 35 :
                // BELScript.g:1:214: T__58
                {
                mT__58(); 

                }
                break;
            case 36 :
                // BELScript.g:1:220: T__59
                {
                mT__59(); 

                }
                break;
            case 37 :
                // BELScript.g:1:226: T__60
                {
                mT__60(); 

                }
                break;
            case 38 :
                // BELScript.g:1:232: T__61
                {
                mT__61(); 

                }
                break;
            case 39 :
                // BELScript.g:1:238: T__62
                {
                mT__62(); 

                }
                break;
            case 40 :
                // BELScript.g:1:244: T__63
                {
                mT__63(); 

                }
                break;
            case 41 :
                // BELScript.g:1:250: T__64
                {
                mT__64(); 

                }
                break;
            case 42 :
                // BELScript.g:1:256: T__65
                {
                mT__65(); 

                }
                break;
            case 43 :
                // BELScript.g:1:262: T__66
                {
                mT__66(); 

                }
                break;
            case 44 :
                // BELScript.g:1:268: T__67
                {
                mT__67(); 

                }
                break;
            case 45 :
                // BELScript.g:1:274: T__68
                {
                mT__68(); 

                }
                break;
            case 46 :
                // BELScript.g:1:280: T__69
                {
                mT__69(); 

                }
                break;
            case 47 :
                // BELScript.g:1:286: T__70
                {
                mT__70(); 

                }
                break;
            case 48 :
                // BELScript.g:1:292: T__71
                {
                mT__71(); 

                }
                break;
            case 49 :
                // BELScript.g:1:298: T__72
                {
                mT__72(); 

                }
                break;
            case 50 :
                // BELScript.g:1:304: T__73
                {
                mT__73(); 

                }
                break;
            case 51 :
                // BELScript.g:1:310: T__74
                {
                mT__74(); 

                }
                break;
            case 52 :
                // BELScript.g:1:316: T__75
                {
                mT__75(); 

                }
                break;
            case 53 :
                // BELScript.g:1:322: T__76
                {
                mT__76(); 

                }
                break;
            case 54 :
                // BELScript.g:1:328: T__77
                {
                mT__77(); 

                }
                break;
            case 55 :
                // BELScript.g:1:334: T__78
                {
                mT__78(); 

                }
                break;
            case 56 :
                // BELScript.g:1:340: T__79
                {
                mT__79(); 

                }
                break;
            case 57 :
                // BELScript.g:1:346: T__80
                {
                mT__80(); 

                }
                break;
            case 58 :
                // BELScript.g:1:352: T__81
                {
                mT__81(); 

                }
                break;
            case 59 :
                // BELScript.g:1:358: T__82
                {
                mT__82(); 

                }
                break;
            case 60 :
                // BELScript.g:1:364: T__83
                {
                mT__83(); 

                }
                break;
            case 61 :
                // BELScript.g:1:370: T__84
                {
                mT__84(); 

                }
                break;
            case 62 :
                // BELScript.g:1:376: T__85
                {
                mT__85(); 

                }
                break;
            case 63 :
                // BELScript.g:1:382: T__86
                {
                mT__86(); 

                }
                break;
            case 64 :
                // BELScript.g:1:388: T__87
                {
                mT__87(); 

                }
                break;
            case 65 :
                // BELScript.g:1:394: T__88
                {
                mT__88(); 

                }
                break;
            case 66 :
                // BELScript.g:1:400: T__89
                {
                mT__89(); 

                }
                break;
            case 67 :
                // BELScript.g:1:406: T__90
                {
                mT__90(); 

                }
                break;
            case 68 :
                // BELScript.g:1:412: T__91
                {
                mT__91(); 

                }
                break;
            case 69 :
                // BELScript.g:1:418: T__92
                {
                mT__92(); 

                }
                break;
            case 70 :
                // BELScript.g:1:424: T__93
                {
                mT__93(); 

                }
                break;
            case 71 :
                // BELScript.g:1:430: T__94
                {
                mT__94(); 

                }
                break;
            case 72 :
                // BELScript.g:1:436: T__95
                {
                mT__95(); 

                }
                break;
            case 73 :
                // BELScript.g:1:442: T__96
                {
                mT__96(); 

                }
                break;
            case 74 :
                // BELScript.g:1:448: T__97
                {
                mT__97(); 

                }
                break;
            case 75 :
                // BELScript.g:1:454: T__98
                {
                mT__98(); 

                }
                break;
            case 76 :
                // BELScript.g:1:460: T__99
                {
                mT__99(); 

                }
                break;
            case 77 :
                // BELScript.g:1:466: T__100
                {
                mT__100(); 

                }
                break;
            case 78 :
                // BELScript.g:1:473: T__101
                {
                mT__101(); 

                }
                break;
            case 79 :
                // BELScript.g:1:480: T__102
                {
                mT__102(); 

                }
                break;
            case 80 :
                // BELScript.g:1:487: T__103
                {
                mT__103(); 

                }
                break;
            case 81 :
                // BELScript.g:1:494: T__104
                {
                mT__104(); 

                }
                break;
            case 82 :
                // BELScript.g:1:501: T__105
                {
                mT__105(); 

                }
                break;
            case 83 :
                // BELScript.g:1:508: T__106
                {
                mT__106(); 

                }
                break;
            case 84 :
                // BELScript.g:1:515: T__107
                {
                mT__107(); 

                }
                break;
            case 85 :
                // BELScript.g:1:522: T__108
                {
                mT__108(); 

                }
                break;
            case 86 :
                // BELScript.g:1:529: T__109
                {
                mT__109(); 

                }
                break;
            case 87 :
                // BELScript.g:1:536: T__110
                {
                mT__110(); 

                }
                break;
            case 88 :
                // BELScript.g:1:543: T__111
                {
                mT__111(); 

                }
                break;
            case 89 :
                // BELScript.g:1:550: T__112
                {
                mT__112(); 

                }
                break;
            case 90 :
                // BELScript.g:1:557: T__113
                {
                mT__113(); 

                }
                break;
            case 91 :
                // BELScript.g:1:564: T__114
                {
                mT__114(); 

                }
                break;
            case 92 :
                // BELScript.g:1:571: T__115
                {
                mT__115(); 

                }
                break;
            case 93 :
                // BELScript.g:1:578: T__116
                {
                mT__116(); 

                }
                break;
            case 94 :
                // BELScript.g:1:585: T__117
                {
                mT__117(); 

                }
                break;
            case 95 :
                // BELScript.g:1:592: T__118
                {
                mT__118(); 

                }
                break;
            case 96 :
                // BELScript.g:1:599: T__119
                {
                mT__119(); 

                }
                break;
            case 97 :
                // BELScript.g:1:606: T__120
                {
                mT__120(); 

                }
                break;
            case 98 :
                // BELScript.g:1:613: T__121
                {
                mT__121(); 

                }
                break;
            case 99 :
                // BELScript.g:1:620: T__122
                {
                mT__122(); 

                }
                break;
            case 100 :
                // BELScript.g:1:627: T__123
                {
                mT__123(); 

                }
                break;
            case 101 :
                // BELScript.g:1:634: T__124
                {
                mT__124(); 

                }
                break;
            case 102 :
                // BELScript.g:1:641: T__125
                {
                mT__125(); 

                }
                break;
            case 103 :
                // BELScript.g:1:648: T__126
                {
                mT__126(); 

                }
                break;
            case 104 :
                // BELScript.g:1:655: T__127
                {
                mT__127(); 

                }
                break;
            case 105 :
                // BELScript.g:1:662: T__128
                {
                mT__128(); 

                }
                break;
            case 106 :
                // BELScript.g:1:669: T__129
                {
                mT__129(); 

                }
                break;
            case 107 :
                // BELScript.g:1:676: T__130
                {
                mT__130(); 

                }
                break;
            case 108 :
                // BELScript.g:1:683: DOCUMENT_COMMENT
                {
                mDOCUMENT_COMMENT(); 

                }
                break;
            case 109 :
                // BELScript.g:1:700: STATEMENT_COMMENT
                {
                mSTATEMENT_COMMENT(); 

                }
                break;
            case 110 :
                // BELScript.g:1:718: DOCUMENT_KEYWORD
                {
                mDOCUMENT_KEYWORD(); 

                }
                break;
            case 111 :
                // BELScript.g:1:735: STATEMENT_GROUP_KEYWORD
                {
                mSTATEMENT_GROUP_KEYWORD(); 

                }
                break;
            case 112 :
                // BELScript.g:1:759: IDENT_LIST
                {
                mIDENT_LIST(); 

                }
                break;
            case 113 :
                // BELScript.g:1:770: VALUE_LIST
                {
                mVALUE_LIST(); 

                }
                break;
            case 114 :
                // BELScript.g:1:781: OBJECT_IDENT
                {
                mOBJECT_IDENT(); 

                }
                break;
            case 115 :
                // BELScript.g:1:794: QUOTED_VALUE
                {
                mQUOTED_VALUE(); 

                }
                break;
            case 116 :
                // BELScript.g:1:807: OPEN_PAREN
                {
                mOPEN_PAREN(); 

                }
                break;
            case 117 :
                // BELScript.g:1:818: CLOSE_PAREN
                {
                mCLOSE_PAREN(); 

                }
                break;
            case 118 :
                // BELScript.g:1:830: NS_PREFIX
                {
                mNS_PREFIX(); 

                }
                break;
            case 119 :
                // BELScript.g:1:840: NEWLINE
                {
                mNEWLINE(); 

                }
                break;
            case 120 :
                // BELScript.g:1:848: WS
                {
                mWS(); 

                }
                break;

        }

    }