/*
private static Object get(Object obj) { Map<Object,Object> list = touch(); return list.get(obj);
}
480201
public static Object get(Object object, RefBoolean before) {
	if (!isInside()) {
	    reset();
	    setIsInside(true);
	    before.setValue(false);
	}
	else before.setValue(true);

	Map<Object, Object> list = touch(false);
	return list == null ? null : list.get(object);
    }
735523
@Override
	public List<V> get(Object key) {
		return (List<V>) super.get(key);
	}
787010
@Override
    public Object touch(Object coll, Collection.Key key) throws PageException {
	Object o = getCollection(coll, key, null);
	if (o != null) return o;
	return set(coll, key, new StructImpl());
    }
669411
function (object) {
            var result = [],
                key;
            for (key in object) {
                if (object.hasOwnProperty(key)) {
                    result.push(key);
                }
            }
            return result;
        }
1309177
@Override
    public final <B extends Data> B toData(Object obj) {
        return toData(obj, globalPartitioningStrategy);
    }
742505
@SuppressWarnings("unchecked")
    public static <E> E get(Object list, int i) {
        if (list == null)
            throw new IndexOutOfBoundsException();

        if (list instanceof List)
            return (E) ((List<?>) list).get(i);

        if (i == 0)
            return (E) list;

        throw new IndexOutOfBoundsException();
    }
215518
private ImmutableNode toNode(final Builder builder, final Object obj) {
        assert !(obj instanceof List);

        if (obj instanceof Map) {
            return mapToNode(builder, (Map<String, Object>) obj);
        } else {
            return valueToNode(builder, obj);
        }
    }
1247796
public static Map<String, Object> getProperties(Object obj) {
		Map<String, Object> map = new HashMap<String, Object>();

		Class<?> objClass = obj.getClass();

		// Get all fields
		for (Field field : objClass.getFields()) {
			try {
				if (matchField(field, field.getName())) {
					String name = field.getName();
					Object value = field.get(obj);
					map.put(name, value);
				}
			} catch (Throwable t) {
				// Ignore exception
			}
		}

		// Get all properties
		for (Method method : objClass.getMethods()) {
			try {
				if (method.getName().startsWith("get") && matchPropertyGetter(method, method.getName())) {
					String name = method.getName().substring(3);
					name = name.substring(0, 1).toLowerCase() + name.substring(1);
					Object value = method.invoke(obj);
					map.put(name, value);
				}
			} catch (Throwable t) {
				// Ignore exception
			}
		}

		return map;
	}
1152479
function keys(obj) {
    var keyArray = [];
    var key;

    for (key in obj) {
        if (obj.hasOwnProperty(key)) {
            keyArray.push(key);
        }
    }

    return keyArray;
}
17087
function () {
            return [{
                        evt : this.touchEventMap.touchmove,
                        cb : {
                            fn : this._pinchMove,
                            scope : this
                        }
                    }, {
                        evt : this.touchEventMap.touchend,
                        cb : {
                            fn : this._pinchEnd,
                            scope : this
                        }
                    }];
        }
1115648
@SuppressWarnings("unchecked")
  @Nullable
  static List<?> getList(Map<String, ?> obj, String key) {
    assert key != null;
    if (!obj.containsKey(key)) {
      return null;
    }
    Object value = obj.get(key);
    if (!(value instanceof List)) {
      throw new ClassCastException(
          String.format("value '%s' for key '%s' in '%s' is not List", value, key, obj));
    }
    return (List<?>) value;
  }
1058939
private static Map<String, Object> getMap(Object obj) {
    // Using a LinkedHashMap to maintain the original order of insertions. This is done to help
    // with handling unused parameters and makes testing easier as well.
    Map<String, Object> map = new LinkedHashMap<String, Object>();
    for (Map.Entry<String, Object> entry : Data.mapOf(obj).entrySet()) {
      Object value = entry.getValue();
      if (value != null && !Data.isNull(value)) {
        map.put(entry.getKey(), value);
      }
    }
    return map;
  }
501791
@Override
    public Object get(Object key) {
        if (INSTALL_KERNEL_INIT_CODE.equals(key))
            return initValidate();
        if (INSTALL_KERNEL_INIT_ERROR_MESSAGE.equals(key) ||
            RUNTIME_INSTALL_DIR.equals(key))
            return data.get(key);
        if (installKernelMap == null) {
            throw new RuntimeException(getMessage("MAPBASED_ERROR_KERNEL_NOT_INIT"));
        }
        return installKernelMap.get(key);
    }
969188
function( obj ){
      if( obj == null ){
        return obj;
      } if( $$.is.array(obj) ){
        return obj.slice();
      } else if( $$.is.plainObject(obj) ){
        return $$.util.clone( obj );
      } else {
        return obj;
      }
    }
820479
function getTouchList(ev/*, eventType*/) {
      // get the fake pointerEvent touchlist
      if(ionic.Gestures.HAS_POINTEREVENTS) {
        return ionic.Gestures.PointerEvent.getTouchList();
      }
      // get the touchlist
      else if(ev.touches) {
        return ev.touches;
      }
      // make fake touchlist from mouse position
      else {
        ev.identifier = 1;
        return [ev];
      }
    }
1123184
public double[] get(T object) {
    double[] v = map.get(object);
    if(v == null) {
      return null;
    }
    return v.clone();
  }
713780
function() {
      var self = this;
      var touchlist = [];

      // we can use forEach since pointerEvents only is in IE10
      Object.keys(self.pointers).sort().forEach(function(id) {
        touchlist.push(self.pointers[id]);
      });
      return touchlist;
    }