Whether or not the Class Slots are being watched.
186252
def watch_slots(self, flag):
        """"""
        lib.EnvSetDefclassWatchSlots(self._env, int(flag), self._cls)
5101
def can_view(self, user):
        """"""
        return user.is_admin or self == user \
            or set(self.classes).intersection(user.admin_for)
1006645
def checkAndCreateClasses(self, classes):
        
        actual_classes = self['puppetclasses'].keys()
        for i in classes:
            if i not in actual_classes:
                self['puppetclasses'].append(i)
        self.reload()
        return set(classes).issubset(set((self['puppetclasses'].keys())))
628634
def check_classes(self, scope=-1):
        
        for entry in self[scope].values():
            if entry.class_ is None:
                syntax_error(entry.lineno, "Unknown identifier '%s'" % entry.name)
551914
private boolean isMonitorAccessibleFromClassLoader(ClassLoader loader) {
        if (loader == null) {
            return false;
        }
        boolean isMonitorAccessible = true;
        InputStream monitorInputStream = null;
        try {
            monitorInputStream = loader.getResourceAsStream(COVERAGE_MONITOR_RESOURCE);
            if (monitorInputStream == null) {
                isMonitorAccessible = false;
            }
        } catch (Exception ex1) {
            isMonitorAccessible = false;
            try {
                if (monitorInputStream != null) {
                    monitorInputStream.close();
                }
            } catch (IOException ex2) {
                // do nothing
            }
        }
        return isMonitorAccessible;
    }
767668
private boolean hasEagerSingletonBinding() {
    for (Key<?> key : bindings.keySet()) {
      GinScope scope = determineScope(key);
      if (GinScope.EAGER_SINGLETON.equals(scope)) {
        return true;
      }
    }

    return false;
  }
462739
boolean isMonitored(HttpSession session) {
		boolean monitor = false;
		if (null != session && session.getAttribute(Constants.Options.OPTIONS) != null) {
			monitor = ((Options) session.getAttribute(Constants.Options.OPTIONS)).isMonitor();
		}
		return monitor;
	}
1368358
private <T> void check(T t, BiConsumer<T, AddOnModel> specific) {
        if (!shouldCheck()) {
            return;
        }
        secureAccess.doElevated(this::getAddOnModelForClassLoader)
            .ifPresent(addOnModel ->
                    secureAccess.doElevated(() -> specific.accept(t, addOnModel)));
    }
852523
public boolean isWatching() {
        BasicKeyChain.State basicState = basic.isWatching();
        BasicKeyChain.State activeState = BasicKeyChain.State.EMPTY;
        if (chains != null && !chains.isEmpty()) {
            if (getActiveKeyChain().isWatching())
                activeState = BasicKeyChain.State.WATCHING;
            else
                activeState = BasicKeyChain.State.REGULAR;
        }
        if (basicState == BasicKeyChain.State.EMPTY) {
            if (activeState == BasicKeyChain.State.EMPTY)
                throw new IllegalStateException("Empty key chain group: cannot answer isWatching() query");
            return activeState == BasicKeyChain.State.WATCHING;
        } else if (activeState == BasicKeyChain.State.EMPTY)
            return basicState == BasicKeyChain.State.WATCHING;
        else {
            if (activeState != basicState)
                throw new IllegalStateException("Mix of watching and non-watching keys in wallet");
            return activeState == BasicKeyChain.State.WATCHING;
        }
    }
689273
def _pred(aclass):
    
    isaclass = inspect.isclass(aclass)
    return isaclass and aclass.__module__ == _pred.__module__
257031
private boolean isExcludedClass(Class<?> clazz) {
    for (Class<?> c : excludedClasses) {
      if (c.isAssignableFrom(clazz)) {
        return true;
      }
    }
    return false;
  }
1233344
function observes(array) {
		var key = array.$instanceid;
		return edb.Array._observers[key] ? true : false;
	}
369059
def can_view(self, user):
        """"""
        return user.is_admin or user in self.users \
            or self.project.class_ in user.admin_for
951737
public static boolean check(Class<?> clz) {
        if (Config.CACHE_SEEN_CLASSES_V) {
            int index = hash(clz);
            if (CACHE[index] == clz) {
                return true;
            }
            CACHE[index] = clz;
        }
        return false;
    }
1337707
public function isWatching(Item $item)
    {
        return (bool) $this->watching()->where('items.item_id', $item->itemId)->count();
    }
77245
function isWatching(fileName) {
    for (var i=0;i<watching.length;i++) {
        if (fileName.endsWith(watching[i])) {
            return true;
        }
    }
    //noinspection RedundantIfStatementJS
    if (fileName.toLowerCase().lastIndexOf("restart.livesync") === (fileName.length - 16)) {
        return true;
    }
    //noinspection RedundantIfStatementJS
    if (fileName.toLowerCase().lastIndexOf("restart.liveedit") === (fileName.length - 16)) {
        return true;
    }
    return false;
}
1331758
private static boolean isSupportedClass(Class<?> clazz) {
        return Observable.class.isAssignableFrom(clazz) ||
               Maybe.class.isAssignableFrom(clazz) ||
               Single.class.isAssignableFrom(clazz) ||
               Completable.class.isAssignableFrom(clazz);
    }