/* (non-Javadoc)
@see com.tvd12.ezyfox.core.command.UpdateUser#exclude(java.lang.String[])
487100
@Override
	public UpdateUser exclude(String... varnames) {
	    excludedVars.addAll(Arrays.asList(varnames));
	    return this;
	}
730468
@Nullable
    private static <T> ArrayList<T> excludeObject(@Nullable ArrayList<T> list, @Nullable T target, boolean exclude) {
        if (target != null) {
            if (exclude) {
                list = ArrayListManager.add(list, target);
            } else {
                list = ArrayListManager.remove(list, target);
            }
        }
        return list;
    }
1309411
public ServerUpdater removeRolesFromUser(User user, Collection<Role> roles) {
        delegate.removeRolesFromUser(user, roles);
        return this;
    }
1362796
@Override
	public synchronized ID removeOnline(final USER user)
	{
		final ID sessionId = super.removeOnline(user);
		if (sessionId != null)
		{
			sessionIdToSession.remove(sessionId);
		}
		return sessionId;
	}
56860
protected String[] parseUserpass(final String userpass) {
		if (userpass == null || userpass.equals("-")) {
			return null;
		}
		int index = userpass.indexOf(':');
		if (index <= 0) {
			throw new RuntimeException("Unable to parse: " + userpass);
		}
		return new String[] { userpass.substring(0, index), userpass.substring(index + 1) };
	}
1190471
public ReflectionToStringBuilder setExcludeFieldNames(final String... excludeFieldNamesParam) {
        if (excludeFieldNamesParam == null) {
            this.excludeFieldNames = null;
        } else {
            //clone and remove nulls
            this.excludeFieldNames = toNoNullStringArray(excludeFieldNamesParam);
            Arrays.sort(this.excludeFieldNames);
        }
        return this;
    }
878015
private boolean isExcluded(String uri) {
		if (excludeList == null || excludeList.isEmpty()) {
			return false;
		}

		for (String ex : excludeList) {
			if (uri.matches(ex)) {
				return true;
			}
		}
		return false;
	}
577898
public void setDayExcluded (final Calendar day, final boolean exclude)
  {
    if (exclude)
    {
      if (isDayExcluded (day))
      {
        return;
      }

      m_aExcludeDays.add (day);
      m_bDataSorted = false;
    }
    else
    {
      if (!isDayExcluded (day))
      {
        return;
      }

      removeExcludedDay (day, true);
    }
  }
1181386
@Override
	public UpdateUser include(String... varnames) {
	    includedVars.addAll(Arrays.asList(varnames));
	    return this;
	}
1254685
static String[] removeArgsNotAffectingState(String[] args) {
        String[] out = new String[args.length];
        int j = 0;
        for (int i = 0; i<args.length; ++i) {
            if (args[i].equals("-j")) {
                // Just skip it and skip following value
                i++;
            } else if (args[i].startsWith("--server:")) {
                // Just skip it.
            } else if (args[i].startsWith("--log=")) {
                // Just skip it.
            } else if (args[i].equals("--compare-found-sources")) {
                // Just skip it and skip verify file name
                i++;
            } else {
                // Copy argument.
                out[j] = args[i];
                j++;
            }
        }
        String[] ret = new String[j];
        System.arraycopy(out, 0, ret, 0, j);
        return ret;
    }
702465
public ServerUpdater removeRoleFromUser(User user, Role role) {
        delegate.removeRoleFromUser(user, role);
        return this;
    }
418058
public void removeExpiredTokens(CmsUser user, long now) {

        List<String> toRemove = Lists.newArrayList();
        for (Map.Entry<String, Object> entry : user.getAdditionalInfo().entrySet()) {
            String key = entry.getKey();
            if (key.startsWith(KEY_PREFIX)) {
                try {
                    long expiry = Long.parseLong((String)entry.getValue());
                    if (expiry < now) {
                        toRemove.add(key);
                    }
                } catch (NumberFormatException e) {
                    toRemove.add(key);
                }
            }
        }
        LOG.info("Removing " + toRemove.size() + " expired tokens for user " + user.getName());
        for (String removeKey : toRemove) {
            user.getAdditionalInfo().remove(removeKey);
        }
    }
1333004
function conditionalExtend(user, args) {
    var extra = _.omit(args, options.updateUser.omit)
    _.map(extra, function(val, key) {
      if (!key.match(/\$/)) {
        user[key] = val
      }
    })
  }
311808
public String unsetUser(String uid, List<String> properties)
      throws ExecutionException, InterruptedException, IOException {
    return unsetUser(uid, properties, new DateTime());
  }
485787
public void clearCommandsWithExclude(final String... exclude) throws DevFailed {
        final String[] toExclude = new String[exclude.length];
        for (int i = 0; i < toExclude.length; i++) {
            toExclude[i] = exclude[i].toLowerCase(Locale.ENGLISH);
        }
        for (final String cmdName : dynamicCommands.keySet()) {
            if (!ArrayUtils.contains(toExclude, cmdName)) {
                removeCommand(cmdName);
            }
        }
    }
786001
public com.google.api.ads.admanager.axis.v201902.Technology[] getExcludedOperatingSystemVersions() {
        return excludedOperatingSystemVersions;
    }
354378
public void setExcludedLocations(com.google.api.ads.admanager.axis.v201902.Location[] excludedLocations) {
        this.excludedLocations = excludedLocations;
    }