取得key=eventSubmit_doXyz, value不为空的参数。
556873
private String getEventName() {
        String event = null;

        @SuppressWarnings("unchecked")
        Enumeration<String> e = request.getParameterNames();

        while (e.hasMoreElements()) {
            String originalKey = e.nextElement();
            String paramKey = StringUtil.toLowerCaseWithUnderscores(originalKey);

            if (paramKey.startsWith(DEFAULT_EVENT_PATTERN) && !StringUtil.isBlank(request.getParameter(originalKey))) {
                int startIndex = DEFAULT_EVENT_PATTERN.length();
                int endIndex = paramKey.length();

                // 支持<input type="image">
                if (paramKey.endsWith(IMAGE_BUTTON_SUFFIX_1)) {
                    endIndex -= IMAGE_BUTTON_SUFFIX_1.length();
                } else if (paramKey.endsWith(IMAGE_BUTTON_SUFFIX_2)) {
                    endIndex -= IMAGE_BUTTON_SUFFIX_2.length();
                } else if (paramKey.endsWith(IMAGE_BUTTON_SUFFIX_3)) {
                    endIndex -= IMAGE_BUTTON_SUFFIX_3.length();
                } else if (paramKey.endsWith(IMAGE_BUTTON_SUFFIX_4)) {
                    endIndex -= IMAGE_BUTTON_SUFFIX_4.length();
                }

                event = StringUtil.trimToNull(paramKey.substring(startIndex, endIndex));

                if (event != null) {
                    break;
                }
            }
        }

        return event;
    }
827814
def _occ(self, value, typ, datatype=None):
        
        self._handler.occurrence(typ, value, datatype)
1007293
function(eventType) {
    var copy;
    if (typeof eventType === "string" && eventType) {
      copy = _deepCopy(_handlers[eventType]) || null;
    } else {
      copy = _deepCopy(_handlers);
    }
    return copy;
  }
482944
def key_exists(self, key):
        
        assert isinstance(key, str)
        cursor = self.conn.cursor()
        with contextlib.closing(cursor):
            cursor.execute('SELECT COUNT(*) FROM events WHERE uuid=?', (key,))
            res = cursor.fetchone()
            count = res[0]
        if count == 0:
            return False
        else:
            assert count in (0, 1), \
                "Duplicate event ids detected: {0}".format(count)
            return True
576564
def publish_event_from_dict(self, event_type, data):
        
        for key, value in self.additional_publish_event_data.items():
            if key in data:
                return {'result': 'error', 'message': 'Key should not be in publish_event data: {}'.format(key)}
            data[key] = value

        self.runtime.publish(self, event_type, data)
        return {'result': 'success'}
552468
public RpcInternalContext setAttachment(String key, Object value) {
        if (key == null) {
            return this;
        }
        if (!ATTACHMENT_ENABLE) {
            // 未开启附件传递功能，只能传递隐藏key("." 开头的Key）
            if (!isHiddenParamKey(key)) {
                return this;
            }
        } else {
            if (!isValidInternalParamKey(key)) { // 打开附件传递功能，只能传 "_" 和 "." 开头的Key
                throw new IllegalArgumentException("key must start with" + RpcConstants.INTERNAL_KEY_PREFIX
                    + " or " + RpcConstants.HIDE_KEY_PREFIX);
            }
        }
        if (value == null) {
            attachments.remove(key);
        } else {
            attachments.put(key, value);
        }
        return this;
    }
723830
public void event(double value, long time) {
    int barIndex = getBarIndex(value);
    Bar bar = bars.get(barIndex);
    long before = bar.count();
    bar.insert(value, time);
    long after = bar.count();
    size += (after - before);
    if (after > maxBarSize(barIndex)) {
      split(bar, barIndex);
    }
  }
961676
function(eventType, attributeKey, attributeValue) {
    var attrsKey = this._event_attributes_key(eventType);
    for(var i = 0; i < this._events.length ; i++) {
      var evt = this._events[i];
      if ( (evt.eventType === eventType) && (evt[attrsKey][attributeKey] === attributeValue) ) {
        return evt;
      }
    }
    return null;
  }
262387
function set(key, value, opt_force, opt_data) {

    var type   = this.getType(key);
    var old    = this[type][key];
    var isFire = false;

    //设置value
    if (type === 'nodes'){
      this._setNode(key, value);
    } else{
      this[type][key] = value;
    }

    //判断时候触发事件
    if (type === 'attributes'){
      if (value != old || opt_force === true) isFire = true;
    } else {
      if (opt_force) isFire = 1;
    }

    //触发事件
    if (isFire && opt_force !== false){

      opt_data = opt_data || {};
      opt_data.old = old;
      opt_data.now = value;
      opt_data.target = this;

      this.emit('change:' + key, opt_data);
      isFire === true && this.emit('change:' + key + ':'+value, opt_data);

    }

    return this;
  }
538071
def ne(self, event_property, value):
        
        c = self.copy()
        c.filters.append(filters.NE(event_property, value))
        return c
1027829
def on_key(self, event):
        """"""

        if self.main_window.grid.actions.pasting and \
           event.GetKeyCode() == wx.WXK_ESCAPE:
            self.aborted = True

        event.Skip()
948371
static String getExpressValue(final String key) {
    if (isExpression(key)) {
      String keyValue = getSystemProperty(key.substring(2, key.length() - 1));
      return keyValue == null ? key : keyValue;
    } else {
      return key;
    }
  }
346330
public int subscribe_event(int event, int max_size, boolean stateless) throws DevFailed {
        if (!useEvents())
            Except.throw_exception("NO_EVENT", "Event system not available");
        return deviceProxyDAO.subscribe_event(this, event, max_size, stateless);
    }
781244
@Override
	protected void submitRedoPut(final K key, final V value) {
		if (!useRedo) {
			return;
		}
		createRedoThread();
		final ByteBuffer buf = bufstack.pop();
		buf.put((byte) 0x0A); // PUT HEADER
		key.serialize(buf);
		value.serialize(buf);
		buf.put((byte) 0x0A); // PUT FOOTER
		buf.flip();
		if (useRedoThread) {
			try {
				redoQueue.put(buf);
			} catch (InterruptedException e) {
				log.error("InterruptedException in submitRedoPut(key, value)", e);
			}
		} else {
			redoStore.write(buf);
			bufstack.push(buf);
		}
	}
1234846
function keyEvent(evt) {
            if (evt.keyCode !== 8) {
                lxSelect.activeSelectedIndex = -1;
            }

            if (!LxDropdownService.isOpen('dropdown-' + lxSelect.uuid)) {
                lxSelect.activeChoiceIndex = -1;
            }

            switch (evt.keyCode) {
                case 8:
                    _keyRemove();
                    break;

                case 13:
                    _keySelect();
                    evt.preventDefault();
                    break;

                case 37:
                    if (lxSelect.activeChoiceIndex > -1) {
                        _keyLeft();
                        evt.preventDefault();
                    }
                    break;

                case 38:
                    _keyUp();
                    evt.preventDefault();
                    break;

                case 39:
                    if (lxSelect.activeChoiceIndex > -1) {
                        _keyRight();
                        evt.preventDefault();
                    }
                    break;


                case 40:
                    _keyDown();
                    evt.preventDefault();
                    break;

                default:
                    break;
            }
        }
896454
function(eventName, eventParams) {
    if (Object.prototype.toString.call(name) === '[object String]' && ! _contains(sentEvents, eventName)) {
      sentEvents.push(eventName);
      UT.Expression._postInstance().track(eventName, eventParams);
    }
  }
211994
private static String getNoSign(Map<String, Object> params, boolean includeEmptyParam) {
        //对参数按照key做升序排序，对map的所有value进行处理，转化成string类型
        //拼接成key=value&key=value&....格式的字符串
        StringBuilder content = new StringBuilder();

        // 按照key做排序
        List<String> keys = new ArrayList<String>(params.keySet());
        Collections.sort(keys);

        String value = null;
        Object object = null;
        boolean isFirstParm = true;
        for (int i = 0; i < keys.size(); i++) {
            String key = (String) keys.get(i);
            object = params.get(key);

            if (object == null) {
                value = "";
            }else if (object instanceof String) {
                value = (String) object;
            } else {
                value = String.valueOf(object);
            }

            if (includeEmptyParam || !TextUtils.isEmpty(value)) {
                content.append((isFirstParm ? "" : "&") + key + "=" + value);
                isFirstParm = false;
            } else {
                continue;
            }
        }

        //待签名的字符串
        return content.toString();
    }