language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
@Override public InjectionBinding<AdministeredObjectDefinition> createInjectionBinding(AdministeredObjectDefinition annotation, Class<?> instanceClass, Member member, String jndiName) throws InjectionException { InjectionBinding<AdministeredObjectDefinition> injectionBinding = new Ad...
java
@Override public List<Namespace> getNamespaces(Kam kam) { if (kam == null) throw new InvalidArgument("kam", kam); if (!exists(kam)) return null; return getNamespaces(kam.getKamInfo()); }
java
public static int getAgeByIdCard(String idCard, Date dateToCompare) { String birth = getBirthByIdCard(idCard); return DateUtil.age(DateUtil.parse(birth, "yyyyMMdd"), dateToCompare); }
java
public void setCustomAttributes(java.util.Collection<SchemaAttributeType> customAttributes) { if (customAttributes == null) { this.customAttributes = null; return; } this.customAttributes = new java.util.ArrayList<SchemaAttributeType>(customAttributes); }
python
def cmd_fence_move(self, args): '''handle fencepoint move''' if len(args) < 1: print("Usage: fence move FENCEPOINTNUM") return if not self.have_list: print("Please list fence points first") return idx = int(args[0]) if idx <= 0 or ...
java
public void setEffectiveLabelFrequencyCaps(com.google.api.ads.admanager.axis.v201811.LabelFrequencyCap[] effectiveLabelFrequencyCaps) { this.effectiveLabelFrequencyCaps = effectiveLabelFrequencyCaps; }
python
def fit_delta_ts(data, livetime, fit_background=True): """Fits gaussians to delta t for each PMT pair. Parameters ---------- data: 2d np.array: x = PMT combinations (465), y = time, entry = frequency livetime: length of data taking in seconds fit_background: if True: fits gaussian with offset, ...
python
def add_item(self, assessment_id, item_id): """Adds an existing ``Item`` to an assessment. arg: assessment_id (osid.id.Id): the ``Id`` of the ``Assessment`` arg: item_id (osid.id.Id): the ``Id`` of the ``Item`` raise: NotFound - ``assessment_id`` or ``item_id`` no...
python
def get_block_symbol_data(editor, block): """ Gets the list of ParenthesisInfo for specific text block. :param editor: Code editor instance :param block: block to parse """ def list_symbols(editor, block, character): """ Retuns a list of symbols found in the block text ...
python
def plot_qq_unf(fignum, D, title, subplot=False, degrees=True): """ plots data against a uniform distribution in 0=>360. Parameters _________ fignum : matplotlib figure number D : data title : title for plot subplot : if True, make this number one of two subplots degrees : if True, a...
java
public static <M extends PMessage<M,F>, F extends PField> MessageNamedArgumentFinder<M,F> forMessage(@Nonnull M message, @Nonnull FieldType... fieldTypes) { return new MessageNamedArgumentFinder<>(null, message, makeFieldTypes(fieldTypes)); }
java
@SuppressWarnings("unchecked") private void toJson(MarcRecord marcRecord, StringBuilder sb) { if (marcRecord.isEmpty()) { return; } if (top) { top = false; if (style == Style.ELASTICSEARCH_BULK) { writeMetaDataLine(marcRecord); ...
python
def is_to_be_built_or_is_installed(self, shutit_module_obj): """Returns true if this module is configured to be built, or if it is already installed. """ shutit_global.shutit_global_object.yield_to_draw() cfg = self.cfg if cfg[shutit_module_obj.module_id]['shutit.core.module.build']: return True return s...
java
public void write(byte[] b, int off, int len) throws IOException { // Sanity checks if (compressor.finished()) { throw new IOException("write beyond end of stream"); } if (b == null) { throw new NullPointerException(); } else if ((off < 0) || (off > b.length) || (len < 0) || ...
python
def digital_read(self, pin): """ Retrieve the last data update for the specified digital pin. It is intended for a polling application. :param pin: Digital pin number :returns: Last value reported for the digital pin """ task = asyncio.ensure_future(self.core.di...
java
public void setLayerIds(java.util.Collection<String> layerIds) { if (layerIds == null) { this.layerIds = null; return; } this.layerIds = new com.amazonaws.internal.SdkInternalList<String>(layerIds); }
java
public static <T extends ExecutorService> T requireNotShutdown(final T executorService) { if (executorService.isShutdown()) { throw new IllegalArgumentException("ExecutorService is shutdown"); } return executorService; }
java
public boolean hasLogger(final String name, final Class<? extends MessageFactory> messageFactoryClass) { return getOrCreateInnerMap(factoryClassKey(messageFactoryClass)).containsKey(name); }
python
def drop_dimension(self, dimensions): """Drops dimension(s) from keys Args: dimensions: Dimension(s) to drop Returns: Clone of object with with dropped dimension(s) """ dimensions = [dimensions] if np.isscalar(dimensions) else dimensions dims = [...
python
def set_schema_location(self, ns_uri, schema_location, replace=False): """Sets the schema location of the given namespace. If ``replace`` is ``True``, then any existing schema location is replaced. Otherwise, if the schema location is already set to a different value, an exception is r...
java
public static boolean isAssignableFrom(MappedField destination,MappedField source) { return isAssignableFrom(destination.getValue(), source.getValue()); }
java
@Override public <BD extends BehaviorData, B extends Behavior<BD, ?>> BD getBehaviorData(final Class<B> behaviorClass) { BD data = null; final B behavior = getBehavior(behaviorClass); if (behavior != null) { data = behavior.data(); } return data; }
python
def _find_year_for_season(league): """ Return the necessary seaons's year based on the current date. Since all sports start and end at different times throughout the year, simply using the current year is not sufficient to describe a season. For example, the NCAA Men's Basketball season begins in N...
java
public static byte[] getResourceAsBytes(String name) throws IOException { InputStream is = getResourceAsStream(name); ByteArrayOutputStream os = new ByteArrayOutputStream(); try { byte[] buffer = new byte[4096]; int length = 0; while((length = is.read(buffer)) != -1) { ...
python
def number_of_changes(slots, events, original_schedule, X, **kwargs): """ A function that counts the number of changes between a given schedule and an array (either numpy array of lp array). """ changes = 0 original_array = schedule_to_array(original_schedule, events=events, ...
python
def customdata(self, lookup, default=None): """ Args: lookup: the custom data file default: the optional value to return if lookup failed; returns None if not set Returns: The custom data returned from the file 'lookup' or default/None if no match found """ try: if lookup in ...
java
private void processOPCPackage(OPCPackage pkg) throws FormatNotUnderstoodException { LOG.debug("Processing OPCPackage in low footprint mode"); // check if signature should be verified if (this.hocr.getVerifySignature()) { LOG.info("Verifying signature of document"); SignatureConfig sic = new SignatureConf...
java
protected String getProcessDescription(OptionsAndArgs pOpts, VirtualMachineHandler pHandler) { if (pOpts.getPid() != null) { return "PID " + pOpts.getPid(); } else if (pOpts.getProcessPattern() != null) { StringBuffer desc = new StringBuffer("process matching \"") ...
java
public void assign(WorkerSlot slot, Collection<ExecutorDetails> executors) { for (ExecutorDetails executor : executors) { this.executorToSlot.put(executor, slot); } }
java
public static pq_stats get(nitro_service service) throws Exception{ pq_stats obj = new pq_stats(); pq_stats[] response = (pq_stats[])obj.stat_resources(service); return response[0]; }
java
public PythonStreamExecutionEnvironment create_remote_execution_environment( String host, int port, String... jar_files) { return new PythonStreamExecutionEnvironment( StreamExecutionEnvironment.createRemoteEnvironment(host, port, jar_files), new Path(localTmpPath), scriptName); }
java
private final void waitForActivityIfNotAvailable(){ if(activityStack.isEmpty() || activityStack.peek().get() == null){ if (activityMonitor != null) { Activity activity = activityMonitor.getLastActivity(); while (activity == null){ sleeper.sleepMini(); activity = activityMonitor.getLastActivity()...
java
protected boolean verifyStringMatch(String text) { if (text == null) { return false; } if (!this.caseSensitive) { text = text.toLowerCase(); } return text.equals(this.expectedString); }
python
def punsubscribe(self, *args): """ Unsubscribe from the supplied patterns. If empty, unsubscribe from all patterns. """ if args: args = list_or_args(args[0], args[1:]) patterns = self._normalize_keys(dict.fromkeys(args)) else: patterns ...
python
def merge(self, other): """ Merge all children stats. """ for this, other in zip(self.stats, other.stats): this.merge(other)
java
@Override public void onOpenDocument(final PdfWriter writer, final Document document) { try { bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); cb = writer.getDirectContent(); template = cb.createTemplate(50, 50); } catch (final DocumentException de) { throw n...
java
@Override public void unsafe_set(int row, int col, double value) { int index = nz_index(row,col); if( index < 0 ) addItem( row,col,value); else { nz_value.data[index] = value; } }
java
public static String getEntryNameForMapKey(String property, Integer index) { return getEntryNameForMap(property, true, index); }
java
public void restoreOriginalParams() { for (int i = 0, N = mHost.getChildCount(); i < N; i++) { View view = mHost.getChildAt(i); ViewGroup.LayoutParams params = view.getLayoutParams(); if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "should restore " + view + ...
python
def sink_update( self, project, sink_name, filter_, destination, unique_writer_identity=False ): """API call: update a sink resource. :type project: str :param project: ID of the project containing the sink. :type sink_name: str :param sink_name: the name of the si...
java
public Configuration addOptions(Option... options) { EnumSet<Option> opts = EnumSet.noneOf(Option.class); opts.addAll(this.options); opts.addAll(asList(options)); return Configuration.builder().jsonProvider(jsonProvider).mappingProvider(mappingProvider).options(opts).evaluationListener(e...
python
def sge_submit(nslave, worker_args, worker_envs): """ customized submit script, that submit nslave jobs, each must contain args as parameter note this can be a lambda function containing additional parameters in input Parameters nslave number of slave process to start up args arg...
python
def unpublish(scm, published_branch, verbose, fake): """Removes a published branch from the remote repository.""" scm.fake = fake scm.verbose = fake or verbose scm.repo_check(require_remote=True) branch = scm.fuzzy_match_branch(published_branch) if not branch: scm.display_available_bra...
python
def save(self, dst, overwrite=False, compression=0): """Save MDF to *dst*. If overwrite is *True* then the destination file is overwritten, otherwise the file name is appended with '.<cntr>', were '<cntr>' is the first counter that produces a new file name (that does not already exist in...
java
public static ConfusionMatrix parseFromText(String text) throws IllegalArgumentException { try { String[] lines = text.split("\n"); String[] l = lines[0].split("\\s+"); List<String> labels = new ArrayList<>(); for (String aL : l) { ...
java
public static boolean delete( String path ) { if (path == null || path.trim().length() == 0) return false; return delete(new File(path)); }
python
def get_neighbor_sentence_ngrams( mention, d=1, attrib="words", n_min=1, n_max=1, lower=True ): """Get the ngrams that are in the neighoring Sentences of the given Mention. Note that if a candidate is passed in, all of its Mentions will be searched. :param mention: The Mention whose neighbor Sentences...
java
protected void applyContext( ShuttleListBinding binding, Map context ) { if( context.containsKey(MODEL_KEY) ) { binding.setModel((ListModel) context.get(MODEL_KEY)); } if( context.containsKey(SELECTABLE_ITEMS_HOLDER_KEY) ) { binding.setSelectableItemsHolder((ValueModel) c...
java
protected final void validateForMSBuild() throws MojoExecutionException { if ( !MSBuildPackaging.isValid( mavenProject.getPackaging() ) ) { throw new MojoExecutionException( "Please set packaging to one of " + MSBuildPackaging.validPackaging() ); } findMSBuild(); ...
java
static public List<String> hasIssues(Vertex.RuntimeVertex vertex) { List<String> issues = new ArrayList<>(ElementChecker.hasIssues(vertex)); if (vertex.getName() == null) { issues.add("Name of vertex cannot be null"); } else { if (vertex.getName().isEmpty()) { issues.add("Name of vertex...
java
private final DiceOperand getDiceOperand(final DiceContext ctx) { final Dice dice; // Parsed dice final Integer quantity; // Number of dice final Integer sides; // Number of sides final Iterator<TerminalNode> digits; // Parsed digits ...
java
public boolean updatePostAuthor(final long postId, final long authorId) throws SQLException { Connection conn = null; PreparedStatement stmt = null; try { conn = connectionSupplier.getConnection(); stmt = conn.prepareStatement(updatePostAuthorSQL); stmt.setLong(1, authorId)...
java
public DescribeEnvironmentsResult withEnvironments(Environment... environments) { if (this.environments == null) { setEnvironments(new java.util.ArrayList<Environment>(environments.length)); } for (Environment ele : environments) { this.environments.add(ele); } ...
python
def _prepare_defaults(self): """Trigger assignment of default values.""" for name, field in self.__fields__.items(): if field.assign: getattr(self, name)
python
def translate(self, dct): """ Translate leaf names using a dictionary of names :param dct: Dictionary of current names -> updated names :return: Copy of tree with names changed """ new_tree = self.copy() for leaf in new_tree._tree.leaf_node_iter(): cur...
java
public ServiceFuture<List<ApplicationInfoResponse>> listAsync(ListAppsOptionalParameter listOptionalParameter, final ServiceCallback<List<ApplicationInfoResponse>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(listOptionalParameter), serviceCallback); }
java
public static double[] getReal(ComplexNumber[] cn) { double[] n = new double[cn.length]; for (int i = 0; i < n.length; i++) { n[i] = cn[i].real; } return n; }
java
public void printStream(final ByteArrayOutputStream stream, final String hostName, final String printerName, final String documentName) throws IOException { String controlFile = ""; byte buffer[] = new byte[1000]; String s; String strJobNumber; strJobNumber = "" + jo...
python
def where_entry_category(query, category, recurse=False): """ Generate a where clause for a particular category """ category = str(category) if category and recurse: # We're recursing and aren't in /, so add the prefix clause return orm.select( e for e in query if e....
java
public TypeInfo getSchemaTypeInfo() { // dynamic load to support jre 1.4 and 1.5 try { Method m = element.getClass().getMethod("getSchemaTypeInfo", new Class[] {}); return (TypeInfo) m.invoke(element, ArrayUtil.OBJECT_EMPTY); } catch (Exception e) { throw new PageRuntimeException(Caster.toPageExcepti...
java
private void authenticatePacketHMCSHA1(RawPacket pkt, int rocIn) { ByteBuffer buf = pkt.getBuffer(); buf.rewind(); int len = buf.remaining(); buf.get(tempBuffer, 0, len); mac.update(tempBuffer, 0, len); rbStore[0] = (byte) (rocIn >> 24); rbStore[1] = (byte) (rocIn >> 16); rbStore[2] = (byte) (rocIn >> 8...
java
private ScriptValidationContext getScriptValidationContext() { if (scriptValidationContext == null) { scriptValidationContext = new ScriptValidationContext(messageType.toString()); getAction().getValidationContexts().add(scriptValidationContext); } return scriptValidati...
java
public static URI asURI(final String s) { try { return new URI(s); } catch (final URISyntaxException e) { throw new TechnicalException("Cannot make an URI from: " + s, e); } }
java
@SuppressWarnings("unchecked") static final <T> Beans<T> of(Class<T> clazz) { return ((CachedBeans<T>)CachedBeans.CACHE).getBeans(clazz); }
python
def get_view(self, columns: Sequence[str], query: str = None) -> PopulationView: """Get a time-varying view of the population state table. The requested population view can be used to view the current state or to update the state with new values. Parameters ---------- c...
java
protected final void reinit() { pad.set(AnswerAnnotation.class, flags.backgroundSymbol); pad.set(GoldAnswerAnnotation.class, flags.backgroundSymbol); featureFactory.init(flags); defaultReaderAndWriter = makeReaderAndWriter(); if (flags.readerAndWriter != null && flags.readerAndWri...
java
public static List<CmsRelationType> filterWeak(Collection<CmsRelationType> relationTypes) { List<CmsRelationType> result = new ArrayList<CmsRelationType>(relationTypes); Iterator<CmsRelationType> it = result.iterator(); while (it.hasNext()) { CmsRelationType type = it.next(); ...
python
def sync_from_spec(redis, schema): """ Takes an input experiment spec and creates/modifies/archives the existing experiments to match the spec. If there's an experiment in the spec that currently doesn't exist, it will be created along with the associated choices. If there's an experiment in t...
java
@NonNegative public int frequency(@NonNull E e) { if (isNotInitialized()) { return 0; } int hash = spread(e.hashCode()); int start = (hash & 3) << 2; int frequency = Integer.MAX_VALUE; for (int i = 0; i < 4; i++) { int index = indexOf(hash, i); int count = (int) ((table[inde...
python
def filter_by_hoys(self, hoys): """Filter the Data Collection based onva list of hoys. Args: hoys: A List of hours of the year 0..8759 Return: A new Data Collection with filtered data """ existing_hoys = self.header.analysis_period.hoys hoys = [h ...
python
def warning_ret(f, *args, **kwargs): """Automatically log progress on function entry and exit. Logging value: warning. The function's return value will be included in the logs. *Logging with values contained in the parameters of the decorated function* Message (args[0]) may be a string to be formatted ...
java
private boolean skipCellVersion(Cell cell) { return skipColumn != null && skipColumn.matchingRow(cell.getRowArray(), cell.getRowOffset(), cell.getRowLength()) && skipColumn.matchingColumn(cell.getFamilyArray(), cell.getFamilyOffset(), cell.getFamilyLength(), cell.get...
python
def pairwise(fun, v): """ >>> pairwise(operator.sub, [4,3,2,1,-10]) [1, 1, 1, 11] >>> import numpy >>> pairwise(numpy.subtract, numpy.array([4,3,2,1,-10])) array([ 1, 1, 1, 11]) """ if not hasattr(v, 'shape'): return list(ipairwise(fun,v)) else: return fun(v[:-1],v[...
java
public final void copyTo(int offset, MemorySegment target, int targetOffset, int numBytes) { final byte[] thisHeapRef = this.heapMemory; final byte[] otherHeapRef = target.heapMemory; final long thisPointer = this.address + offset; final long otherPointer = target.address + targetOffset; if ((numBytes | offs...
python
def list_tables(self): ''' Load existing tables and their descriptions. :return: ''' if not self._tables: for table_name in os.listdir(self.db_path): self._tables[table_name] = self._load_table(table_name) return self._tables.keys()
python
def set_result(self, result): """Complete all tasks. """ for future in self.traverse(): # All cancelled futures should have callbacks to removed itself # from this linked list. However, these callbacks are scheduled in # an event loop, so we could still find them in o...
python
def check_alert(self, text): """ Assert an alert is showing with the given text. """ try: alert = Alert(world.browser) if alert.text != text: raise AssertionError( "Alert text expected to be {!r}, got {!r}.".format( text, alert.text)) ...
java
@Override public boolean eIsSet(int featureID) { switch (featureID) { case BpsimPackage.GAMMA_DISTRIBUTION_TYPE__SCALE: return isSetScale(); case BpsimPackage.GAMMA_DISTRIBUTION_TYPE__SHAPE: return isSetShape(); } return super.eIsSet(featureID); }
python
def increase_reads_in_units( current_provisioning, units, max_provisioned_reads, consumed_read_units_percent, log_tag): """ Increase the current_provisioning with units units :type current_provisioning: int :param current_provisioning: The current provisioning :type units: int :para...
java
public static void writeLong(byte[] buf, int pos, long v) { checkBoundary(buf, pos, 8); buf[pos++] = (byte) (0xff & (v >> 56)); buf[pos++] = (byte) (0xff & (v >> 48)); buf[pos++] = (byte) (0xff & (v >> 40)); buf[pos++] = (byte) (0xff & (v >> 32)); buf[pos++] = (byte) (0xff & (v >> 24)); buf[...
java
public void cancel() { try { executorService.shutdown(); if (!executorService.awaitTermination(30, TimeUnit.MINUTES)) { executorService.shutdownNow(); // Cancel currently executing tasks if (!executorService.awaitTermination(30, TimeUnit.MINUTES)) { LOGGER.error("Pool did not t...
java
private boolean pushEdge(final KamEdge edge, final SetStack<KamNode> nodeStack, final SetStack<KamEdge> edgeStack) { if (edgeStack.contains(edge)) { return false; } final KamNode currentNode = nodeStack.peek(); final KamNode edgeOppositeNode = ...
python
def namedb_get_all_names( cur, current_block, offset=None, count=None, include_expired=False ): """ Get a list of all names in the database, optionally paginated with offset and count. Exclude expired names. Include revoked names. """ unexpired_query = "" unexpired_args = () if not inclu...
java
public <U extends T> OngoingMatchingR0<T, U, R> when( DecomposableMatchBuilder0<U> decomposableMatchBuilder) { return new OngoingMatchingR0<>(this, decomposableMatchBuilder.build()); }
python
def build_self_reference(filename, clean_wcs=False): """ This function creates a reference, undistorted WCS that can be used to apply a correction to the WCS of the input file. Parameters ---------- filename : str Filename of image which will be corrected, and which will form the basis ...
java
public void marshall(SubscriptionFilter subscriptionFilter, ProtocolMarshaller protocolMarshaller) { if (subscriptionFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(subscriptionFilter.getFil...
python
def _clean_html(html): """\ Removes links (``<a href="...">...</a>``) from the provided HTML input. Further, it replaces "&#x000A;" with ``\n`` and removes "¶" from the texts. """ content = html.replace(u'&#x000A;', u'\n').replace(u'¶', '') content = _LINK_PATTERN.sub(u'', content) content =...
python
def from_learner(cls, learn: Learner, ds_type:DatasetType=DatasetType.Valid): "Create an instance of `ClassificationInterpretation`" preds = learn.get_preds(ds_type=ds_type, with_loss=True) return cls(learn, *preds)
python
def reverseComplement(self, isRNA=None): """ Reverse complement this sequence in-place. :param isRNA: if True, treat this sequence as RNA. If False, treat it as DNA. If None (default), inspect the sequence and make a guess as to whether it is RNA or DNA. """ ...
java
public static <GeneralVisitor extends Visitor> GeneralVisitor visit( Visitable visitable, GeneralVisitor visitor ) { if (visitable != null) visitable.accept(visitor); return visitor; }
java
@SuppressWarnings("deprecation") public void failedTask( TaskInProgress tip, TaskAttemptID taskid, String reason, TaskStatus.Phase phase, boolean isFailed, String trackerName, TaskTrackerInfo ttStatus) { TaskStatus.State state = isFailed ? TaskStatus.State.FAILED: TaskStatus.Stat...
java
public static Service createService(Enum<?> classNameKey,String defaultClassName,ConfigurationHolder configurationHolder,String propertyPart) { //validate input if(classNameKey==null) { throw new FaxException("Service class name key not provided."); } //convert t...
python
def to_docx( self, filename=None, input_dataset=True, summary_table=True, recommendation_details=True, recommended_model=True, all_models=False, ): """ Write batch sessions to a Word file. Parameters ---------- filename...
java
@Nonnull public static <T> Supplier<T> supplierFrom(Consumer<SupplierBuilder<T>> buildingFunction) { SupplierBuilder builder = new SupplierBuilder(); buildingFunction.accept(builder); return builder.build(); }
python
def _create_connection(self): """Create a connection. :return: """ attempts = 0 while True: attempts += 1 if self._stopped.is_set(): break try: self._connection = Connection(self.hostname, ...
python
def _detect(self): """ Detects pragma statements that allow for outdated solc versions. :return: Returns the relevant JSON data for the findings. """ # Detect all version related pragmas and check if they are disallowed. results = [] pragma = self.slither.pragma_d...
python
def dotted_completion(cls, line, sorted_keys, compositor_defs): """ Supply the appropriate key in Store.options and supply suggestions for further completion. """ completion_key, suggestions = None, [] tokens = [t for t in reversed(line.replace('.', ' ').split())] ...
java
public Collection<String> getJobNames() { List<String> names = new ArrayList<>(); for (Job j : allItems(Job.class)) names.add(j.getFullName()); names.sort(String.CASE_INSENSITIVE_ORDER); return names; }
java
private void readBitmap() { // (sub)image position & size. header.currentFrame.ix = readShort(); header.currentFrame.iy = readShort(); header.currentFrame.iw = readShort(); header.currentFrame.ih = readShort(); int packed = read(); // 1 - local color table flag i...
java
public List<LDAPEntry> getParentUserGroupEntries(LDAPConnection ldapConnection, String userDN) throws GuacamoleException { // Do not return any user groups if base DN is not specified String groupBaseDN = confService.getGroupBaseDN(); if (groupBaseDN == null) return Coll...