content
stringlengths
40
137k
"public LabeledPoint call(double[] tokens) throws ModelServiceException {\n try {\n double response = tokens[responseIndex];\n double[] features = new double[tokens.length - 1];\n for (int i = 0; i < tokens.length - 1; i++) {\n if (responseIndex != i) {\n features[i] = tokens[i];\n }\n }\n return new LabeledPoint(response, Vectors.dense(features));\n } catch (Exception e) {\n throw new ModelServiceException(\"String_Node_Str\" + e.getMessage(), e);\n }\n}\n"
"protected void cleanup() {\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.finest(\"String_Node_Str\");\n }\n synchronized (_activeCollections) {\n for (ActiveCollection ac : _activeCollections.values()) {\n try {\n ac.cleanup();\n } catch (Exception e) {\n LOG.log(Level.SEVERE, \"String_Node_Str\" + ac.getName() + \"String_Node_Str\", e);\n }\n if (ac.getHighWaterMark() > 0) {\n if (ac.getHighWaterMarkWarningIssued()) {\n if (ac.getSize() < ac.getHighWaterMark()) {\n LOG.info(\"String_Node_Str\" + ac.getName() + \"String_Node_Str\" + ac.getHighWaterMark() + \"String_Node_Str\");\n ac.setHighWaterMarkWarningIssued(false);\n }\n } else if (ac.getSize() > ac.getHighWaterMark()) {\n LOG.warning(\"String_Node_Str\" + ac.getName() + \"String_Node_Str\" + ac.getHighWaterMark() + \"String_Node_Str\");\n ac.setHighWaterMarkWarningIssued(true);\n }\n }\n }\n }\n}\n"
"public Long execute() {\n Long attempts = null;\n Float score = scoreEvaluation.getScore();\n Boolean passed = scoreEvaluation.getPassed();\n saveNodeScore(courseNode, assessedIdentity, score, cpm);\n saveNodePassed(courseNode, assessedIdentity, passed, cpm);\n saveAssessmentID(courseNode, assessedIdentity, scoreEvaluation.getAssessmentID(), cpm);\n if (incrementUserAttempts) {\n attempts = incrementNodeAttemptsProperty(courseNode, assessedIdentity, cpm);\n }\n if (courseNode instanceof AssessableCourseNode) {\n userCourseEnv.getScoreAccounting().scoreInfoChanged((AssessableCourseNode) courseNode, scoreEvaluation);\n EfficiencyStatementManager esm = EfficiencyStatementManager.getInstance();\n esm.updateUserEfficiencyStatement(userCourseEnv);\n }\n if (passed != null && passed.booleanValue() && course.getCourseConfig().isAutomaticCertificationEnabled()) {\n CertificatesManager certificatesManager = CoreSpringFactory.getImpl(CertificatesManager.class);\n if (certificatesManager.isRecertificationAllowed(assessedIdentity, courseEntry)) {\n CertificateTemplate template = null;\n Long templateId = course.getCourseConfig().getCertificateTemplate();\n if (templateId != null) {\n template = certificatesManager.getTemplateById(templateId);\n }\n CertificateInfos certificateInfos = new CertificateInfos(assessedIdentity, score, passed);\n MailerResult result = new MailerResult();\n certificatesManager.generateCertificate(certificateInfos, courseEntry, template, result);\n }\n }\n return attempts;\n}\n"
"private Feature computeNextFeature() {\n float[] feature = new float[featureLength];\n float[] mfc3f = cepstraBuffer[jf3++];\n float[] mfc2f = cepstraBuffer[jf2++];\n float[] mfc1f = cepstraBuffer[jf1++];\n float[] current = cepstraBuffer[currentPosition++];\n float[] mfc1p = cepstraBuffer[jp1++];\n float[] mfc2p = cepstraBuffer[jp2++];\n float[] mfc3p = cepstraBuffer[jp3++];\n int j = cepstrumLength - 1;\n System.arraycopy(current, 1, feature, 0, j);\n for (int k = 1; k < mfc2f.length; k++) {\n feature[j++] = (mfc2f[k] - mfc2p[k]);\n }\n feature[j++] = current[0];\n feature[j++] = mfc2f[0] - mfc2p[0];\n for (int k = 0; k < mfc3f.length; k++) {\n feature[j++] = (mfc3f[k] - mfc1p[k]) - (mfc1f[k] - mfc3p[k]);\n }\n if (jp3 > cepstraBufferEdge) {\n jf3 %= cepstraBufferSize;\n jf2 %= cepstraBufferSize;\n jf1 %= cepstraBufferSize;\n currentPosition %= cepstraBufferSize;\n jp1 %= cepstraBufferSize;\n jp2 %= cepstraBufferSize;\n jp3 %= cepstraBufferSize;\n }\n return (new Feature(feature));\n}\n"
"private void fileChecksumVote(long fileId) {\n List<Long> rfiGuids = retrieveReplicaFileInfoGuidsForFile(fileId);\n List<ReplicaFileInfo> rfis = retrieveReplicaFileInfosWithChecksum(rfiGuids);\n if (rfis.size() == 0) {\n log.warn(\"String_Node_Str\" + retrieveFilenameForFileId(fileId) + \"String_Node_Str\");\n return;\n }\n Set<String> hs = new HashSet<String>(rfis.size());\n for (ReplicaFileInfo rfi : rfis) {\n if (rfi.getFileListState() == FileListStatus.OK) {\n hs.add(rfi.getChecksum());\n }\n }\n if (hs.size() == 0) {\n String errMsg = \"String_Node_Str\" + fileId + \"String_Node_Str\";\n log.warn(errMsg);\n NotificationsFactory.getInstance().errorEvent(errMsg);\n return;\n }\n if (hs.size() <= 1) {\n log.trace(\"String_Node_Str\" + fileId + \"String_Node_Str\");\n for (ReplicaFileInfo rfi : rfis) {\n updateReplicaFileInfoChecksumOk(rfi.getGuid());\n }\n return;\n }\n int[] csCount = new int[hs.size()];\n String[] uniqueCs = hs.toArray(new String[hs.size()]);\n for (ReplicaFileInfo rfi : rfis) {\n for (int i = 0; i < hs.size(); i++) {\n if (rfi.getChecksum().equals(uniqueCs[i])) {\n csCount[i]++;\n }\n }\n }\n int largest = 0;\n boolean unique = false;\n int index = -1;\n for (int i = 0; i < csCount.length; i++) {\n if (csCount[i] > largest) {\n largest = csCount[i];\n unique = true;\n index = i;\n } else if (csCount[i] == largest) {\n unique = false;\n }\n }\n if (unique) {\n for (ReplicaFileInfo rfi : rfis) {\n if (!rfi.getChecksum().equals(uniqueCs[index])) {\n updateReplicaFileInfoChecksumCorrupt(rfi.getGuid());\n } else {\n updateReplicaFileInfoChecksumOk(rfi.getGuid());\n }\n }\n } else {\n String errMsg = \"String_Node_Str\" + \"String_Node_Str\" + retrieveFilenameForFileId(fileId) + \"String_Node_Str\";\n log.error(errMsg);\n NotificationsFactory.getInstance().errorEvent(errMsg);\n for (ReplicaFileInfo rfi : rfis) {\n updateReplicaFileInfoChecksumUnknown(rfi.getGuid());\n }\n }\n}\n"
"public void evaluate(List<List<T>> annotatorResults, List<List<T>> goldStandard, EvaluationResultContainer results) {\n for (int i = 0; i < annotatorResults.size(); ++i) {\n matchingCounts.add(matchingsCounter.countMatchings(annotatorResults.get(i), goldStandard.get(i)));\n }\n List<List<int[]>> matchingCounts = matchingsCounter.getCounts();\n List<List<double[]>> measures = calculateMeasures(matchingCounts);\n results.addResults(calculateMicroFMeasure(measures));\n results.addResults(calculateMacroFMeasure(measures));\n}\n"
"public WorkflowTask updateTask(String taskId, Map<QName, Serializable> properties, Map<QName, List<NodeRef>> add, Map<QName, List<NodeRef>> remove) {\n String engineId = BPMEngineRegistry.getEngineId(taskId);\n TaskComponent component = getTaskComponent(engineId);\n String originalAsignee = (String) component.getTaskById(taskId).getProperties().get(ContentModel.PROP_OWNER);\n WorkflowTask task = component.updateTask(taskId, properties, add, remove);\n if (add != null && add.containsKey(WorkflowModel.ASSOC_PACKAGE)) {\n WorkflowInstance instance = task.getPath().getInstance();\n workflowPackageComponent.setWorkflowForPackage(instance);\n }\n String assignee = (String) properties.get(ContentModel.PROP_OWNER);\n if (assignee != null && assignee.length() != 0) {\n if (!assignee.equals(originalAsignee)) {\n String instanceId = task.getPath().getInstance().getId();\n WorkflowTask startTask = component.getStartTask(instanceId);\n if (startTask != null) {\n Boolean sendEMailNotification = (Boolean) startTask.getProperties().get(WorkflowModel.PROP_SEND_EMAIL_NOTIFICATIONS);\n if (Boolean.TRUE.equals(sendEMailNotification) == true) {\n String workflowDefId = task.getPath().getInstance().getDefinition().getName();\n if (workflowDefId.indexOf('$') != -1 && (workflowDefId.indexOf('$') < workflowDefId.length() - 1)) {\n workflowDefId = workflowDefId.substring(workflowDefId.indexOf('$') + 1);\n }\n workflowNotificationUtils.sendWorkflowAssignedNotificationEMail(taskId, null, assignee, false);\n }\n }\n }\n }\n return task;\n}\n"
"public boolean equals(Object o) {\n if (o instanceof ITopic) {\n return getName().equals(((ITopic) o).getName());\n } else {\n return false;\n }\n}\n"
"private PatternEmbeddingsMap growPattern(int[] graph, int minEdgeId, int[] parentPattern, int[][] parentEmbeddings, int[] rightmostPath) {\n PatternEmbeddingsMap currentChildMap = PatternEmbeddingsMap.getEmptyOne();\n for (int m = 0; m < parentEmbeddings.length / 2; m++) {\n int[] parentVertexIds = parentEmbeddings[2 * m];\n int[] parentEdgeIds = parentEmbeddings[2 * m + 1];\n int forwardsTime = graphUtils.getVertexCount(parentPattern);\n int rightmostTime = rightmostPath[0];\n for (int edgeId = minEdgeId; edgeId < graphUtils.getEdgeCount(graph); edgeId++) {\n if (!ArrayUtils.contains(parentEdgeIds, edgeId)) {\n int edgeFromId = graphUtils.getFromId(graph, edgeId);\n int fromTime = ArrayUtils.indexOf(parentVertexIds, edgeFromId);\n int edgeToId = graphUtils.getToId(graph, edgeId);\n int toTime = ArrayUtils.indexOf(parentVertexIds, edgeToId);\n if (fromTime == rightmostTime && toTime >= 0) {\n int[] childPattern = dfsCodeUtils.addExtension(parentPattern, fromTime, graphUtils.getFromLabel(graph, edgeId), getExtensionIsOutgoing(graph, edgeId, true), graphUtils.getEdgeLabel(graph, edgeId), toTime, graphUtils.getToLabel(graph, edgeId));\n int[] childVertexIds = parentVertexIds.clone();\n int[] childEdgeIds = ArrayUtils.add(parentEdgeIds, edgeId);\n currentChildMap.put(childPattern, childVertexIds, childEdgeIds);\n } else if (toTime == rightmostTime && fromTime >= 0) {\n int[] childPattern = dfsCodeUtils.addExtension(parentPattern, toTime, graphUtils.getToLabel(graph, edgeId), getExtensionIsOutgoing(graph, edgeId, false), graphUtils.getEdgeLabel(graph, edgeId), fromTime, graphUtils.getFromLabel(graph, edgeId));\n int[] childVertexIds = parentVertexIds.clone();\n int[] childEdgeIds = ArrayUtils.add(parentEdgeIds, edgeId);\n currentChildMap.put(childPattern, childVertexIds, childEdgeIds);\n } else {\n for (int rightmostPathTime : rightmostPath) {\n if (fromTime == rightmostPathTime && toTime < 0) {\n int[] childPattern = dfsCodeUtils.addExtension(parentPattern, fromTime, graphUtils.getFromLabel(graph, edgeId), getExtensionIsOutgoing(graph, edgeId, true), graphUtils.getEdgeLabel(graph, edgeId), forwardsTime, graphUtils.getToLabel(graph, edgeId));\n int[] childVertexIds = ArrayUtils.add(parentVertexIds, edgeToId);\n int[] childEdgeIds = ArrayUtils.add(parentEdgeIds, edgeId);\n currentChildMap.put(childPattern, childVertexIds, childEdgeIds);\n break;\n } else if (toTime == rightmostPathTime && fromTime < 0) {\n int[] childPattern = dfsCodeUtils.addExtension(parentPattern, toTime, graphUtils.getToLabel(graph, edgeId), getExtensionIsOutgoing(graph, edgeId, false), graphUtils.getEdgeLabel(graph, edgeId), forwardsTime, graphUtils.getFromLabel(graph, edgeId));\n int[] childVertexIds = ArrayUtils.add(parentVertexIds, edgeFromId);\n int[] childEdgeIds = ArrayUtils.add(parentEdgeIds, edgeId);\n currentChildMap.put(childPattern, childVertexIds, childEdgeIds);\n break;\n }\n }\n }\n }\n }\n }\n return currentChildMap;\n}\n"
"public ServerManager getServerManager() {\n return getById(\"String_Node_Str\", ServerManager.class);\n}\n"
"protected void updateNoSims() {\n boolean hasNoSims = mHasMobileDataFeature && mMobileSignalControllers.size() == 0;\n if (hasNoSims != mHasNoSims) {\n mHasNoSims = hasNoSims;\n mCallbackHandler.setNoSims(mHasNoSims);\n }\n}\n"
"public static PostBody parse(String body) {\n HashMap<String, String> fieldMap = new HashMap<>();\n String[] fields = body.split(\"String_Node_Str\");\n for (String field : fields) {\n String[] keyValue = field.split(\"String_Node_Str\");\n if (keyValue.length == 1) {\n fieldMap.put(keyValue[0], \"String_Node_Str\");\n } else if (keyValue.length == 3) {\n fieldMap.put(keyValue[0], keyValue[1] + \"String_Node_Str\" + keyValue[2]);\n } else if (keyValue.length == 2) {\n fieldMap.put(keyValue[0], keyValue[1]);\n }\n }\n return new PostBody(fieldMap);\n}\n"
"public String toString() {\n StringBuilder buf = new StringBuilder(\"String_Node_Str\");\n buf.append(\"String_Node_Str\");\n buf.append(this.toolTipText);\n return buf.toString();\n}\n"
"public void testActivationKeyNameUnique() {\n ActivationKey ak = mock(ActivationKey.class);\n ActivationKey akOld = mock(ActivationKey.class);\n ActivationKeyCurator akc = mock(ActivationKeyCurator.class);\n Owner o = mock(Owner.class);\n OwnerCurator oc = mock(OwnerCurator.class);\n when(ak.getName()).thenReturn(\"String_Node_Str\");\n when(akc.lookupForOwner(eq(\"String_Node_Str\"), eq(o))).thenReturn(akOld);\n when(oc.lookupByKey(eq(\"String_Node_Str\"))).thenReturn(o);\n OwnerResource or = new OwnerResource(oc, akc, null, null, i18n, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, contentOverrideValidator, serviceLevelValidator, null, null, null, null, null);\n or.createActivationKey(\"String_Node_Str\", ak);\n}\n"
"public String getMessage(String resourceKey, ULocale locale) {\n if (StringUtil.isBlank(resourceKey))\n return null;\n if (locale == null)\n locale = ThreadResources.getLocale();\n String msg = translations.getMessage(resourceKey, locale);\n if (msg != null)\n return msg;\n String baseName = getStringProperty(this, INCLUDE_RESOURCE_PROP);\n if (baseName == null)\n return \"String_Node_Str\";\n msg = BundleHelper.getHelper(this, baseName).getMessage(resourceKey, locale);\n return msg;\n}\n"
"public Map loadMap(String map) {\n Reader<Map> reader = new Reader<Map>();\n MapLoader loader = new MapLoader();\n return reader.read(Game.GAME_MAPS_PATH + \"String_Node_Str\" + map + \"String_Node_Str\", loader);\n}\n"
"public void removeDependencies() {\n removeDependency(input, output);\n}\n"
"private ArrayList<Object> getComplexTypeDefinitionChildren(XSDComplexTypeDefinition complexTypeDefinition) {\n XSDComplexTypeContent xsdComplexTypeContent = complexTypeDefinition.getContent();\n ArrayList<Object> list = new ArrayList<Object>();\n if (xsdComplexTypeContent == null) {\n XSDTypeDefinition typeDefinition = complexTypeDefinition.getBaseTypeDefinition();\n if (typeDefinition instanceof XSDSimpleTypeDefinition) {\n list.add(typeDefinition);\n return list;\n } else {\n }\n xsdComplexTypeContent = ((XSDComplexTypeDefinition) typeDefinition).getContent();\n }\n if (complexTypeDefinition.getAttributeContents() != null) {\n list.addAll(complexTypeDefinition.getAttributeContents());\n if (xsdComplexTypeContent instanceof XSDSimpleTypeDefinition) {\n list.add(xsdComplexTypeContent);\n return list;\n }\n if (xsdComplexTypeContent instanceof XSDParticle) {\n if (((XSDParticle) xsdComplexTypeContent).getTerm() instanceof XSDModelGroup) {\n list.add(((XSDParticle) xsdComplexTypeContent).getTerm());\n return list;\n } else {\n list.add(((XSDParticle) xsdComplexTypeContent).getTerm());\n return list;\n }\n }\n list.add(xsdComplexTypeContent);\n return list;\n}\n"
"public void checkTypes(MarkerList markers, IContext context) {\n if (this.instance != null) {\n this.instance.checkTypes(markers, context);\n int valueTag = this.instance.valueTag();\n if (valueTag == APPLY_METHOD_CALL) {\n ApplyMethodCall call = (ApplyMethodCall) this.instance;\n IValue instance1 = call.instance;\n IArguments arguments1 = call.arguments.addLastValue(call);\n IType type = instance1.getType();\n IMethod match = IContext.resolveMethod(type, instance1, Name.update, arguments1);\n if (match != null) {\n this.updateMethod = match;\n } else {\n Marker marker = markers.create(this.position, \"String_Node_Str\");\n marker.addInfo(\"String_Node_Str\" + type);\n }\n } else if (valueTag == FIELD_ACCESS) {\n FieldAccess fa = (FieldAccess) this.instance;\n if (fa.field != null) {\n fa.field.checkAssign(markers, this.instance.getPosition(), this.instance, this);\n }\n }\n }\n if (this.method != null) {\n this.method.checkArguments(markers, this.position, context, this.instance, this.arguments, this.getGenericData());\n }\n this.arguments.checkTypes(markers, context);\n}\n"
"private void handleSetVMOrFwdMessage() {\n if (DBG) {\n log(\"String_Node_Str\");\n }\n boolean success = true;\n boolean fwdFailure = false;\n String exceptionMessage = \"String_Node_Str\";\n if (mForwardingChangeResults != null) {\n for (int i = 0; i < mForwardingChangeResults.length; i++) {\n if (mForwardingChangeResults[i].exception != null) {\n exceptionMessage = mForwardingChangeResults[i].exception.getMessage();\n success = false;\n fwdFailure = true;\n break;\n }\n }\n }\n if (success && mVoicemailChangeResult.exception != null) {\n exceptionMessage = mVoicemailChangeResult.exception.getMessage();\n success = false;\n }\n if (success) {\n if (DBG)\n log(\"String_Node_Str\");\n handleVMAndFwdSetSuccess(MSG_VM_OK);\n } else {\n if (fwdFailure) {\n log(\"String_Node_Str\" + exceptionMessage);\n showVMDialog(MSG_FW_SET_EXCEPTION);\n } else {\n log(\"String_Node_Str\" + exceptionMessage);\n showVMDialog(MSG_VM_EXCEPTION);\n }\n }\n updateVoiceNumberField();\n}\n"
"private static DenseFactor getProductOfAllFactors(FactorGraph fg, boolean logDomain) {\n DenseFactor joint = new DenseFactor(new VarSet(), logDomain ? 0.0 : 1.0);\n for (int a = 0; a < fg.getNumFactors(); a++) {\n if (fg.getFactor(a) instanceof DenseFactor) {\n DenseFactor factor = (DenseFactor) fg.getFactor(a);\n if (logDomain) {\n joint.add(factor);\n } else {\n joint.prod(factor);\n }\n } else {\n joint.prod(factor);\n }\n }\n return joint;\n}\n"
"protected void paintFigure(Graphics graphics) {\n Rectangle rect = getBounds().getCopy();\n graphics.setXORMode(true);\n graphics.setForegroundColor(ColorConstants.white);\n graphics.setBackgroundColor(ColorManager.getColor(31, 31, 31));\n graphics.translate(getLocation());\n PointList outline = new PointList();\n outline.addPoint(0, 0);\n outline.addPoint(rect.width, 0);\n outline.addPoint(rect.width - 1, 0);\n outline.addPoint(rect.width - 1, rect.height - 1);\n outline.addPoint(0, rect.height - 1);\n graphics.fillPolygon(outline);\n PointList innerLine = new PointList();\n innerLine.addPoint(rect.width - 0 - 1, 0);\n innerLine.addPoint(rect.width - 0 - 1, 0);\n innerLine.addPoint(rect.width - 1, 0);\n innerLine.addPoint(rect.width - 0 - 1, 0);\n innerLine.addPoint(0, 0);\n innerLine.addPoint(0, rect.height - 1);\n innerLine.addPoint(rect.width - 1, rect.height - 1);\n innerLine.addPoint(rect.width - 1, 0);\n graphics.drawPolygon(innerLine);\n graphics.drawLine(rect.width - 0 - 1, 0, rect.width - 1, 0);\n graphics.translate(getLocation().getNegated());\n}\n"
"private void refreshChooser() {\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel();\n comboBoxModel.addElement(NO_SELECTION);\n comboBoxModel.setSelectedItem(NO_SELECTION);\n if (model != null) {\n List<LayoutBuilder> builders = new ArrayList<LayoutBuilder>(Lookup.getDefault().lookupAll(LayoutBuilder.class));\n Collections.sort(builders, new Comparator() {\n public int compare(Object o1, Object o2) {\n return ((LayoutBuilder) o1).getName().compareTo(((LayoutBuilder) o2).getName());\n }\n });\n for (LayoutBuilder builder : builders) {\n LayoutBuilderWrapper item = new LayoutBuilderWrapper(builder);\n comboBoxModel.addElement(item);\n if (model.getSelectedLayout() != null && builder == model.getSelectedBuilder()) {\n comboBoxModel.setSelectedItem(item);\n }\n }\n }\n layoutCombobox.setModel(comboBoxModel);\n if (model != null) {\n layoutCombobox.setEnabled(!model.isRunning());\n }\n}\n"
"public void storeCalendar(SchedulingContext context, String name, Calendar calendar, boolean replaceExisting, boolean updateTriggers) throws ObjectAlreadyExistsException, JobPersistenceException {\n synchronized (lock) {\n if (!setAccessor()) {\n throw new JobPersistenceException(\"String_Node_Str\");\n }\n try {\n CalendarWrapper cw = new CalendarWrapper(calendar, name);\n if (retrieveCalendar(context, name) == null) {\n logger.debug(\"String_Node_Str\", name);\n accessor.getConnection().create(accessor, getCreateRequest(getCalendarsRepoId(name), cw.getValue().asMap()));\n } else {\n if (!replaceExisting) {\n throw new ObjectAlreadyExistsException(name);\n }\n CalendarWrapper oldCw = getCalendarWrapper(name);\n logger.debug(\"String_Node_Str\", name);\n UpdateRequest r = Requests.newUpdateRequest(getCalendarsRepoId(name), cw.getValue());\n r.setRevision(oldCw.getRevision());\n accessor.getConnection().update(accessor, r);\n }\n if (updateTriggers) {\n List<TriggerWrapper> twList = getTriggerWrappersForCalendar(name);\n for (TriggerWrapper tw : twList) {\n Trigger t = tw.getTrigger();\n boolean removed = removeWaitingTrigger(t);\n t.updateWithNewCalendar(calendar, getMisfireThreshold());\n tw.updateTrigger(t);\n logger.debug(\"String_Node_Str\", new Object[] { tw.getName(), tw.getGroup() });\n updateTriggerInRepo(tw.getGroup(), tw.getName(), tw, tw.getRevision());\n if (removed) {\n addWaitingTrigger(t);\n }\n }\n }\n } catch (Exception e) {\n logger.warn(\"String_Node_Str\", name, e);\n throw new JobPersistenceException(\"String_Node_Str\", e);\n }\n }\n}\n"
"public static void addRows(IloLPMatrix mat, IloRange[] ranges) throws IloException {\n if (ranges == null) {\n return;\n }\n for (int i = 0; i < ranges.length; i++) {\n addRow(mat, ranges[i]);\n }\n}\n"
"protected void finalize() throws Throwable {\n helpDestroy();\n super.finalize();\n}\n"
"public static boolean isSupportedUbuntuVMNodeType(QName nodeType) {\n if (nodeType.equals(Types.ubuntuNodeType)) {\n return true;\n }\n String nodeTypeNS = nodeType.getNamespaceURI();\n String nodeTypeLN = nodeType.getLocalPart();\n if (nodeTypeNS.equals(\"String_Node_Str\") && PluginUtils.isProperUbuntuLocalName(nodeTypeLN)) {\n return true;\n }\n return false;\n}\n"
"public void createXaManagerMBean(XaDataSourceManager datasourceMananger) {\n if (!register(new XaManager.AsMXBean(instance.id, datasourceMananger))) {\n if (!register(new XaManager(instance.id, datasourceMananger)))\n failedToRegister(\"String_Node_Str\");\n }\n}\n"
"public ServiceInfo buildserviceinformation(ServiceInfo serviceinfo) throws Exception {\n ServiceDiscoveryHelper sdh;\n if (serviceinfo.getAuthConfig() != null && serviceinfo.getWsdlUri().indexOf(\"String_Node_Str\") == 0) {\n sdh = new ServiceDiscoveryHelper(serviceinfo.getWsdlUri(), serviceinfo.getAuthConfig());\n } else {\n sdh = new ServiceDiscoveryHelper(serviceinfo.getWsdlUri());\n }\n List<Definition> defs = sdh.getDefinitions();\n wsdlTypes = createSchemaFromTypes(defs);\n collectAllXmlSchemaElement();\n collectAllXmlSchemaType();\n Map services = defs.get(0).getServices();\n if (services != null) {\n Iterator svcIter = services.values().iterator();\n while (svcIter.hasNext()) {\n populateComponent(serviceinfo, (Service) svcIter.next());\n }\n }\n return serviceinfo;\n}\n"
"public List<TypedNamedEntity> performTask2(Document document) throws GerbilException {\n return getDocumentMarkings(document.getDocumentURI(), document.getText().length(), TypedNamedEntity.class);\n}\n"
"public ITypedElement getRight() {\n return CompareUtils.getFileRevisionTypedElement(gitPath, remoteCommit, repo, baseId);\n}\n"
"private void parseItems(final PageDefinition pgdef, final NodeInfo parent, Collection items, AnnotationHelper annHelper, boolean bNativeContent) throws Exception {\n LanguageDefinition parentlang = getLanguageDefinition(parent);\n if (parentlang == null)\n parentlang = pgdef.getLanguageDefinition();\n final boolean bZkSwitch = isZkSwitch(parent);\n ComponentInfo pi = null;\n String textAs = null;\n StringBuffer textAsBuffer = null;\n for (NodeInfo p = parent; p != null; p = p.getParent()) if (p instanceof ComponentInfo) {\n pi = (ComponentInfo) p;\n textAs = pi.getTextAs();\n if (textAs != null && pi == parent)\n textAsBuffer = new StringBuffer();\n break;\n }\n final boolean isXHTML = \"String_Node_Str\".equals(parentlang.getName());\n final boolean isAllBlankPreserved = !\"String_Node_Str\".equals(Library.getProperty(\"String_Node_Str\"));\n boolean breakLine = false;\n NativeInfo preNativeInfo = null;\n for (Iterator it = items.iterator(); it.hasNext(); ) {\n final Object o = it.next();\n if (o instanceof Element)\n parseItem(pgdef, parent, (Element) o, annHelper, bNativeContent, ParsingState.FIRST);\n }\n for (Iterator it = items.iterator(); it.hasNext(); ) {\n final Object o = it.next();\n if (o instanceof Element) {\n breakLine = false;\n preNativeInfo = (NativeInfo) parseItem(pgdef, parent, (Element) o, annHelper, bNativeContent, ParsingState.SECOND);\n } else if (o instanceof ProcessingInstruction) {\n breakLine = false;\n parse(pgdef, (ProcessingInstruction) o);\n } else if (o instanceof Comment) {\n breakLine = false;\n if (parentlang.isNative() || isXHTML) {\n String label = \"String_Node_Str\" + ((Item) o).getText() + \"String_Node_Str\";\n final ComponentInfo labelInfo = parentlang.newLabelInfo(parent, label);\n labelInfo.addProperty(\"String_Node_Str\", \"String_Node_Str\", null);\n }\n } else if ((o instanceof Text) || (o instanceof CData)) {\n String label = ((Item) o).getText(), trimLabel = !isXHTML ? label.trim() : label;\n if (breakLine && (o instanceof Text) && label.trim().isEmpty()) {\n List<NodeInfo> children = parent.getChildren();\n final String labelAttr = parentlang.getLabelAttribute();\n for (Property prop : ((ComponentInfo) children.get(children.size() - 1)).getProperties()) {\n if (prop.getName().equals(labelAttr)) {\n prop.setRawValue(prop.getRawValue() + trimLabel);\n }\n }\n continue;\n }\n if (label.length() == 0)\n continue;\n if (bZkSwitch) {\n if (trimLabel.length() == 0)\n continue;\n throw new UiException(message(\"String_Node_Str\", (Item) o));\n }\n if (trimLabel.length() == 0 && ((pi != null && !pi.isBlankPreserved() && !isNativeText(pi))))\n continue;\n else if (label.trim().isEmpty() && !isAllBlankPreserved)\n continue;\n if (!isXHTML && (o instanceof Text) && label.trim().isEmpty())\n breakLine = true;\n if (isNativeText(pi)) {\n String newLabel = label.trim();\n if (newLabel.startsWith(\"String_Node_Str\") && newLabel.endsWith(\"String_Node_Str\")) {\n label = newLabel.substring(9, newLabel.length() - 3);\n }\n if (!(parent instanceof ShadowInfo)) {\n new TextInfo(parent, label);\n }\n } else {\n if (textAs != null) {\n if (trimLabel.length() != 0)\n if (textAsBuffer != null)\n textAsBuffer.append(label);\n else if (!(parent instanceof TemplateInfo))\n throw new UnsupportedOperationException(message(\"String_Node_Str\", ((Item) o).getParent()));\n } else {\n if (parent instanceof ShadowInfo) {\n if (trimLabel.isEmpty())\n continue;\n }\n if (isTrimLabel() && !parentlang.isRawLabel()) {\n if (trimLabel.length() == 0)\n continue;\n label = trimLabel;\n }\n if (isXHTML && preNativeInfo != null && label.trim().length() == 0) {\n preNativeInfo.addEpilogChild(new TextInfo(null, label));\n } else {\n final ComponentInfo labelInfo = parentlang.newLabelInfo(parent, label);\n if (trimLabel.length() == 0)\n labelInfo.setReplaceableText(label);\n }\n }\n }\n } else {\n breakLine = false;\n }\n }\n if (textAsBuffer != null) {\n String trimLabel = textAsBuffer.toString();\n if (pi == null || !pi.isBlankPreserved())\n trimLabel = trimLabel.trim();\n if (trimLabel.length() != 0)\n pi.addProperty(textAs, trimLabel, null);\n }\n}\n"
"public void setCourseConfig(CourseConfig cc) {\n courseConfig = (cc == null ? null : cc.clone());\n}\n"
"public static void main(String[] args) throws Exception {\n final Configuration conf = new Configuration();\n final String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();\n if (otherArgs.length != 4) {\n System.err.println(\"String_Node_Str\");\n System.exit(2);\n }\n final Job job = new Job(conf, \"String_Node_Str\");\n job.setJarByClass(ExtractData.class);\n job.setMapperClass(ExtractMapper.class);\n job.setNumReduceTasks(1);\n job.setInputFormatClass(RawFileInputFormat.class);\n RawFileInputFormat.addInputPath(job, new Path(otherArgs[2]));\n job.setOutputFormatClass(TextOutputFormat.class);\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(Text.class);\n conf.setInt(\"String_Node_Str\", -1);\n conf.set(FsEntryHBaseOutputFormat.ENTRY_TABLE, otherArgs[0]);\n conf.set(\"String_Node_Str\", otherArgs[3]);\n FileOutputFormat.setOutputPath(job, new Path(otherArgs[3]));\n final URI extents = new Path(otherArgs[1]).toUri();\n LOG.info(\"String_Node_Str\" + extents);\n DistributedCache.addCacheFile(extents, job.getConfiguration());\n conf.set(\"String_Node_Str\", extents.toString());\n System.exit(job.waitForCompletion(true) ? 0 : 1);\n}\n"
"protected Schema buildNewSchema(String uri, NamespaceResolver nr, int schemaCount, SchemaModelGeneratorProperties properties) {\n Schema schema = new Schema();\n schema.setName(SCHEMA_FILE_NAME + schemaCount + SCHEMA_FILE_EXT);\n schemaCount++;\n String defaultNamespace = null;\n if (nr != null) {\n defaultNamespace = nr.getDefaultNamespaceURI();\n if (defaultNamespace != null) {\n schema.setDefaultNamespace(defaultNamespace);\n schema.getNamespaceResolver().setDefaultNamespaceURI(defaultNamespace);\n }\n }\n if (!uri.equals(EMPTY_STRING)) {\n schema.setTargetNamespace(uri);\n String prefix = null;\n if (nr != null) {\n prefix = nr.resolveNamespaceURI(uri);\n }\n if (prefix == null && !uri.equals(defaultNamespace)) {\n prefix = schema.getNamespaceResolver().generatePrefix();\n schema.getNamespaceResolver().put(prefix, uri);\n }\n }\n if (properties != null) {\n Properties props = properties.getProperties(uri);\n if (props != null) {\n if (props.containsKey(SchemaModelGeneratorProperties.ELEMENT_FORM_QUALIFIED_KEY)) {\n schema.setElementFormDefault((Boolean) props.get(SchemaModelGeneratorProperties.ELEMENT_FORM_QUALIFIED_KEY));\n }\n if (props.containsKey(SchemaModelGeneratorProperties.ATTRIBUTE_FORM_QUALIFIED_KEY)) {\n schema.setAttributeFormDefault((Boolean) props.get(SchemaModelGeneratorProperties.ATTRIBUTE_FORM_QUALIFIED_KEY));\n }\n }\n }\n return schema;\n}\n"
"public final MapArray<String, ICell<T>> getColumn(int colNum) {\n int rowsCount = -1;\n if (count > 0)\n rowsCount = count;\n else if (headers != null && (headers.length > 0))\n rowsCount = headers.length;\n if (rowsCount > 0 && rowsCount < colNum)\n asserter.exception(format(\"String_Node_Str\", colNum, rowsCount));\n try {\n return new MapArray<>(count(), rowNum -> headers()[rowNum], rowNum -> table.cell(new Column(colNum), new Row(rowNum + 1)));\n } catch (Exception ex) {\n throw throwRowsException(colNum + \"String_Node_Str\", ex);\n }\n}\n"
"public void run() {\n updateTablePreview(headerInfo, data);\n WizardBase.showException(errorMsg);\n}\n"
"private Object _performAsymmetricCrypto(int operationMode, Object input, Key key, String cipherAlgorithm) throws IllegalActionException {\n Cipher cipher = null;\n try {\n cipher = Cipher.getInstance(cipherAlgorithm);\n } catch (NoSuchAlgorithmException | NoSuchPaddingException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + input, e);\n }\n try {\n cipher.init(operationMode, key);\n } catch (InvalidKeyException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + input + \"String_Node_Str\" + e.getMessage());\n }\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n try {\n byteArrayOutputStream.write(cipher.doFinal(_toJavaBytes(input)));\n } catch (IllegalBlockSizeException | BadPaddingException | IOException e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + input + \"String_Node_Str\" + e.getMessage());\n }\n return _toJSArray(byteArrayOutputStream.toByteArray());\n}\n"
"public boolean postData() {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\"String_Node_Str\");\n try {\n List<BasicNameValuePair> nameValuePairs = new ArrayList<BasicNameValuePair>(2);\n nameValuePairs.add(new BasicNameValuePair(\"String_Node_Str\", \"String_Node_Str\"));\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n HttpResponse response = httpclient.execute(httppost);\n InputStream is = response.getEntity().getContent();\n BufferedInputStream bis = new BufferedInputStream(is);\n final ByteArrayBuffer baf = new ByteArrayBuffer(20);\n int current = 0;\n while ((current = bis.read()) != -1) {\n baf.append((byte) current);\n }\n String text = new String(baf.toByteArray());\n String status = null;\n String error_msg = null;\n try {\n JSONObject obj = new JSONObject(text);\n status = obj.getString(\"String_Node_Str\");\n error_msg = obj.getString(\"String_Node_Str\");\n if (status.equals(\"String_Node_Str\") && !error_msg.isEmpty()) {\n latest = true;\n }\n if (status.equals(\"String_Node_Str\") && error_msg.isEmpty()) {\n latest = false;\n }\n } catch (Throwable t) {\n Log.e(\"String_Node_Str\", \"String_Node_Str\" + text + \"String_Node_Str\");\n latest = false;\n }\n } catch (ClientProtocolException e) {\n latest = false;\n } catch (IOException e) {\n latest = false;\n }\n return latest;\n}\n"
"public ValidationType[] useFor() {\n return (overrides != null && overrides.containsKey(JavaEESecConstants.USE_FOR)) ? (ValidationType[]) overrides.get(JavaEESecConstants.USE_FOR) : new ValidationType[] { ValidationType.PROVIDE_GROUPS, ValidationType.VALIDATE };\n}\n"
"public static void checkReceiver(final Context context, final Intent broadcastIntent, final String receiverName, final String permission) {\n final PackageManager packageManager = context.getPackageManager();\n final String packageName = context.getPackageName();\n final List<ResolveInfo> receivers = packageManager.queryBroadcastReceivers(broadcastIntent, PackageManager.GET_INTENT_FILTERS);\n if (receivers.isEmpty()) {\n throw new IllegalStateException(\"String_Node_Str\" + OPFUtils.toString(broadcastIntent));\n }\n ResolveInfo neededReceiver = null;\n for (ResolveInfo receiver : receivers) {\n if ((receiverName == null || receiver.activityInfo.name.equals(receiverName)) && receiver.activityInfo.packageName.equals(packageName)) {\n neededReceiver = receiver;\n break;\n }\n }\n if (neededReceiver == null) {\n throw new IllegalStateException(\"String_Node_Str\" + receiverName + \"String_Node_Str\");\n }\n if (permission != null && !permission.equals(neededReceiver.activityInfo.permission)) {\n throw new IllegalStateException(\"String_Node_Str\" + permission + \"String_Node_Str\" + receiverName);\n }\n}\n"
"public String getPattern() {\n return determinePattern(\"String_Node_Str\");\n}\n"
"protected void getInheritedChildPermissions(Permission perm, List<String> list, boolean invert) {\n if (perm == null) {\n return;\n }\n for (Map.Entry<String, Boolean> entry : perm.getChildren().entrySet()) {\n boolean has = entry.getValue() ^ invert;\n String node = (has ? \"String_Node_Str\" : \"String_Node_Str\") + entry.getKey();\n if (!list.contains(node)) {\n list.add(node);\n getInheritedChildPermissions(node, list, !has);\n }\n }\n}\n"
"private void printHistogram(BufferedWriter out, FormatUtil formatter) throws IOException {\n if (this.histograms.isEmpty()) {\n return;\n }\n java.util.Set<HKEY> keys = new TreeSet<HKEY>(histograms.get(0).comparator());\n for (Histogram<HKEY> histo : histograms) {\n if (histo != null)\n keys.addAll(histo.keySet());\n }\n out.append(HISTO_HEADER + this.histograms.get(0).keySet().iterator().next().getClass().getName());\n out.newLine();\n out.append(StringUtil.assertCharactersNotInString(this.histograms.get(0).getBinLabel(), '\\t', '\\n'));\n for (Histogram<HKEY> histo : this.histograms) {\n out.append(SEPARATOR);\n out.append(StringUtil.assertCharactersNotInString(histo.getValueLabel(), '\\t', '\\n'));\n }\n out.newLine();\n for (HKEY key : keys) {\n out.append(key.toString());\n for (Histogram<HKEY> histo : this.histograms) {\n Histogram<HKEY>.Bin bin = histo.get(key);\n final double value = (bin == null ? 0 : bin.getValue());\n out.append(SEPARATOR);\n out.append(formatter.format(value));\n }\n out.newLine();\n }\n}\n"
"public void testDIDGet() throws ParserConfigurationException {\n CardApplicationPath cardApplicationPath = new CardApplicationPath();\n CardApplicationPathType cardApplicationPathType = new CardApplicationPathType();\n cardApplicationPathType.setCardApplication(cardApplication);\n cardApplicationPath.setCardAppPathRequest(cardApplicationPathType);\n CardApplicationPathResponse cardApplicationPathResponse = instance.cardApplicationPath(cardApplicationPath);\n CardApplicationConnect parameters = new CardApplicationConnect();\n CardAppPathResultSet cardAppPathResultSet = cardApplicationPathResponse.getCardAppPathResultSet();\n parameters.setCardApplicationPath(cardAppPathResultSet.getCardApplicationPathResult().get(0));\n CardApplicationConnectResponse result = instance.cardApplicationConnect(parameters);\n assertEquals(ECardConstants.Major.OK, result.getResult().getResultMajor());\n DIDList didList = new DIDList();\n didList.setConnectionHandle(result.getConnectionHandle());\n DIDQualifierType didQualifier = new DIDQualifierType();\n didQualifier.setApplicationIdentifier(cardApplication);\n didQualifier.setObjectIdentifier(ECardConstants.Protocol.GENERIC_CRYPTO);\n didQualifier.setApplicationFunction(\"String_Node_Str\");\n didList.setFilter(didQualifier);\n DIDListResponse didListResponse = instance.didList(didList);\n assertTrue(didListResponse.getDIDNameList().getDIDName().size() > 0);\n DIDGet didGet = new DIDGet();\n didGet.setConnectionHandle(result.getConnectionHandle());\n didGet.setDIDName(didListResponse.getDIDNameList().getDIDName().get(0));\n didGet.setDIDScope(DIDScopeType.LOCAL);\n DIDGetResponse didGetResponse = instance.didGet(didGet);\n assertEquals(ECardConstants.Major.OK, didGetResponse.getResult().getResultMajor());\n org.openecard.crypto.common.sal.CryptoMarkerType cryptoMarker = new org.openecard.crypto.common.sal.CryptoMarkerType((CryptoMarkerType) didGetResponse.getDIDStructure().getDIDMarker());\n assertEquals(cryptoMarker.getCertificateRefs().get(0).getDataSetName(), \"String_Node_Str\");\n}\n"
"private boolean connectAndDownload(RemoteFileDesc rfd) {\n HTTPDownloader dloader = null;\n dloader = establishConnection(rfd);\n if (dloader == null)\n return true;\n boolean http11 = true;\n while (http11) {\n boolean wasQueued = false;\n int connected;\n http11 = !(rfd.getUrns().isEmpty());\n while (true) {\n int[] a = { -1 };\n connected = assignAndRequest(dloader, a, http11);\n if (connected != 1)\n break;\n if (!wasQueued) {\n synchronized (this) {\n queuedCount++;\n }\n wasQueued = true;\n }\n try {\n if (a[0] > 0)\n Thread.sleep(a[0]);\n } catch (InterruptedException ix) {\n debug(\"String_Node_Str\" + dloader);\n synchronized (this) {\n queuedCount--;\n }\n dloader.stop();\n return true;\n }\n }\n if (wasQueued) {\n synchronized (this) {\n queuedCount--;\n }\n }\n Assert.that(connected == 0 || connected == 2 || connected == 3, \"String_Node_Str\" + connected);\n if (connected == 0) {\n dloader.stop();\n return true;\n else if (connected == 3)\n return false;\n doDownload(dloader, http11);\n }\n return true;\n}\n"
"protected TAPColumn getValidColMeta(final DBColumn typeFromQuery, final TAPColumn typeFromResult) {\n if (typeFromQuery != null && typeFromQuery instanceof TAPColumn) {\n TAPColumn colMeta = (TAPColumn) typeFromQuery;\n if (colMeta.getDatatype().isUnknown() && typeFromResult != null && !typeFromResult.getDatatype().isUnknown())\n colMeta.setDatatype(typeFromResult.getDatatype());\n return colMeta;\n } else if (typeFromResult != null) {\n if (typeFromQuery != null)\n return (TAPColumn) typeFromResult.copy(typeFromQuery.getDBName(), typeFromQuery.getADQLName(), null);\n else\n return (TAPColumn) typeFromResult.copy();\n } else\n return new TAPColumn((typeFromQuery != null) ? typeFromQuery.getADQLName() : \"String_Node_Str\", new DBType(DBDatatype.VARCHAR), \"String_Node_Str\");\n}\n"
"private void closeTargetReport() {\n if (targetReportHandle instanceof ReportDesignHandle) {\n ((ReportDesignHandle) targetReportHandle).close();\n } else if (targetReportHandle instanceof IReportDocument) {\n ((IReportDocument) targetReportHandle).close();\n }\n}\n"
"private GraphTargetItem member(Reference<Boolean> needsActivation, List<String> importedClasses, List<Integer> openedNamespaces, GraphTargetItem obj, HashMap<String, Integer> registerVars, boolean inFunction, boolean inMethod, List<AssignableAVM2Item> variables) throws IOException, ParseException {\n GraphTargetItem ret = obj;\n ParsedSymbol s = lex();\n while (s.isType(SymbolType.DOT, SymbolType.BRACKET_OPEN)) {\n ParsedSymbol s2 = lex();\n boolean attr = false;\n if (s.type == SymbolType.ATTRIBUTE) {\n attr = true;\n s = lex();\n }\n expected(s, lexer.yyline(), SymbolType.IDENTIFIER);\n String propName = s.value.toString();\n s = lex();\n GraphTargetItem ns = null;\n if (s.type == SymbolType.NAMESPACE_OP) {\n s = lex();\n expected(s, lexer.yyline(), SymbolType.IDENTIFIER);\n ns = new UnresolvedAVM2Item(new ArrayList<String>(), importedClasses, false, null, lexer.yyline(), propName, null, openedNamespaces);\n variables.add((UnresolvedAVM2Item) ns);\n propName = s.value.toString();\n s = lex();\n }\n GraphTargetItem index = null;\n if (s.type == SymbolType.BRACKET_OPEN) {\n index = expression(needsActivation, importedClasses, openedNamespaces, registerVars, inFunction, inMethod, true, variables);\n expectedType(SymbolType.BRACKET_CLOSE);\n } else {\n lexer.pushback(s);\n }\n if (ns != null) {\n ret = new NamespacedAVM2Item(index, ns, propName, ret, attr, openedNamespaces, null);\n } else {\n ret = new PropertyAVM2Item(ret, (attr ? \"String_Node_Str\" : \"String_Node_Str\") + propName, index, abc, otherABCs, openedNamespaces, new ArrayList<MethodBody>());\n }\n s = lex();\n }\n lexer.pushback(s);\n return ret;\n}\n"
"private void createGraph() throws OpenRDFException {\n graph = new DirectedMultigraph<>(NamedEdge.class);\n Iterator<Resource> conceptIt = new MonitoredIterator<>(involvedConcepts.getResult().getData(), progressMonitor);\n while (conceptIt.hasNext()) {\n Resource concept = conceptIt.next();\n Collection<Relation> relations = findRelations(concept);\n for (Relation relation : relations) {\n addNodesToGraph(relation.sourceConcept, relation.targetConcept, relation.property);\n }\n }\n}\n"
"public void getProgramRuntimeArgs(HttpRequest request, HttpResponder responder, String namespaceId, String appId, String programType, String programId) {\n ProgramType type = ProgramType.valueOfCategoryName(programType);\n if (type == null || type == ProgramType.WEBAPP) {\n responder.sendStatus(HttpResponseStatus.NOT_FOUND);\n return;\n }\n Id.Program id = Id.Program.from(namespaceId, appId, type, programId);\n if (!store.programExists(id)) {\n responder.sendString(HttpResponseStatus.NOT_FOUND, \"String_Node_Str\");\n return;\n }\n}\n"
"protected void okPressed() {\n fChannelInfo = new ChannelInfo(fChannelNameText.getText());\n fChannelInfo.setSubBufferSize(Long.parseLong(fSubBufferSizeText.getText()));\n fChannelInfo.setNumberOfSubBuffers(Integer.parseInt(fNumberOfSubBuffersText.getText()));\n fChannelInfo.setSwitchTimer(Long.parseLong(fSwitchTimerText.getText()));\n fChannelInfo.setReadTimer(Long.parseLong(fReadTimerText.getText()));\n fChannelInfo.setOverwriteMode(fOverwriteModeButton.getSelection());\n fIsKernel = fKernelButton.getSelection();\n if (!fChannelInfo.getName().matches(\"String_Node_Str\")) {\n MessageDialog.openError(getShell(), Messages.TraceControl_EnableChannelDialogTitle, Messages.TraceControl_InvalidChannelNameError + \"String_Node_Str\" + fChannelInfo.getName() + \"String_Node_Str\");\n return;\n }\n if (fDomain != null && fDomain.containsChild(fChannelInfo.getName())) {\n MessageDialog.openError(getShell(), Messages.TraceControl_EnableChannelDialogTitle, Messages.TraceControl_ChannelAlreadyExistsError + \"String_Node_Str\" + fChannelInfo.getName() + \"String_Node_Str\");\n return;\n }\n super.okPressed();\n}\n"
"private void sendPingMessage(WebSocketSession session, TextMessage pingMessage) {\n try {\n webSocketflushExecutor.execute(new OrderedWebSocketFlushRunnable(session, pingMessage, true));\n } catch (RuntimeException e) {\n logger.warn(\"String_Node_Str\", e.getMessage(), e);\n }\n}\n"
"public void run() {\n parentComposite.addKeyListener(fpsKeyListener);\n}\n"
"protected void startGroupTOCEntry(IGroupContent group) {\n TOCBuilder tocBuilder = context.getTOCBuilder();\n if (tocBuilder != null) {\n TOCEntry entry = getParentTOCEntry();\n String hiddenFormats = group.getStyle().getVisibleFormat();\n long elementId = getElementId(group);\n tocEntry = tocBuilder.startGroupEntry(entry, group.getTOC(), group.getBookmark(), hiddenFormats, elementId);\n String tocId = tocEntry.getNode().getNodeID();\n if (group.getBookmark() == null) {\n group.setBookmark(tocId);\n }\n }\n}\n"
"public Pair<JobInfo.Status, String> handleVmWorkJob(VmWork work) throws Exception {\n Method method = getHandlerMethod(work.getClass());\n if (method != null) {\n try {\n if (s_logger.isDebugEnabled())\n s_logger.debug(\"String_Node_Str\" + work.getClass().getName() + _gsonLogger.toJson(work));\n Object obj = method.invoke(_target, work);\n if (s_logger.isDebugEnabled())\n s_logger.debug(\"String_Node_Str\" + work.getClass().getName() + _gsonLogger.toJson(work));\n assert (obj instanceof Pair);\n return (Pair<JobInfo.Status, String>) obj;\n } catch (InvocationTargetException e) {\n s_logger.error(\"String_Node_Str\" + e.getCause());\n if (e.getCause() != null && e.getCause() instanceof Exception) {\n s_logger.info(\"String_Node_Str\" + e.getCause());\n throw (Exception) e.getCause();\n }\n throw e;\n }\n } else {\n s_logger.error(\"String_Node_Str\" + work.getClass().getName() + _gsonLogger.toJson(work));\n RuntimeException e = new RuntimeException(\"String_Node_Str\" + work.getClass().getName() + _gsonLogger.toJson(work));\n String exceptionJson = JobSerializerHelper.toSerializedString(e);\n s_logger.error(\"String_Node_Str\" + exceptionJson);\n return new Pair<JobInfo.Status, String>(JobInfo.Status.FAILED, exceptionJson);\n }\n}\n"
"public void removeIndex(Snip snip) {\n try {\n reader = IndexReader.open(indexFile);\n System.err.println(\"String_Node_Str\" + reader.delete(new Term(\"String_Node_Str\", snip.getName().hashCode() + \"String_Node_Str\")));\n } catch (IOException e) {\n System.err.println(\"String_Node_Str\" + snip.getName() + \"String_Node_Str\");\n }\n return;\n}\n"
"public static void init(Context context) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n boolean hasUserOptedOut = !prefs.getBoolean(\"String_Node_Str\", true);\n if (hasUserOptedOut != mHasUserOptedOut) {\n mHasUserOptedOut = hasUserOptedOut;\n }\n}\n"
"public void testPutAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {\n Future<Object> future = map4.putAsync(\"String_Node_Str\", \"String_Node_Str\");\n future.get();\n}\n"
"public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n if (glRemoteRenderingView != null || this.getViewType().equals(\"String_Node_Str\") || this.getViewType().equals(\"String_Node_Str\") || this.getViewType().equals(\"String_Node_Str\")) {\n viewFrustum.considerAspectRatio(true);\n } else {\n Rectangle frame = parentGLCanvas.getBounds();\n viewFrustum.setLeft(0);\n viewFrustum.setBottom(0);\n float value = (float) frame.height / (float) frame.width * 8.0f;\n viewFrustum.setTop(value);\n viewFrustum.setRight(8);\n bIsDisplayListDirtyLocal = true;\n bIsDisplayListDirtyRemote = true;\n bHasFrustumChanged = true;\n }\n GL gl = drawable.getGL();\n fAspectRatio = (float) height / (float) width;\n gl.glViewport(x, y, width, height);\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glLoadIdentity();\n viewFrustum.setProjectionMatrix(gl, fAspectRatio);\n}\n"
"public void endGroup(IGroupContent groupContent) {\n int groupLevel = groupContent.getGroupLevel();\n int height = 0;\n height = updateUnresolvedCell(groupLevel, false);\n height += updateUnresolvedCell(groupLevel, true);\n assert (!groupStack.isEmpty());\n groupStack.pop();\n}\n"
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n isConcept = false;\n if (selection.getFirstElement() instanceof XSDModelGroup) {\n TreePath tPath = ((TreeSelection) selection).getPaths()[0];\n for (int i = 0; i < tPath.getSegmentCount(); i++) {\n if (tPath.getSegment(i) instanceof XSDElementDeclaration)\n decl = (XSDElementDeclaration) tPath.getSegment(i);\n else if (tPath.getSegment(i) instanceof XSDParticle)\n decl = (XSDElementDeclaration) ((XSDParticle) tPath.getSegment(i)).getTerm();\n }\n checkConcept();\n } else if (selection.getFirstElement() instanceof XSDElementDeclaration || declNew != null) {\n decl = (XSDElementDeclaration) selection.getFirstElement();\n if (declNew != null) {\n decl = declNew;\n }\n checkConcept();\n } else {\n if (selection.getFirstElement() != null) {\n decl = (XSDElementDeclaration) ((XSDParticle) selection.getFirstElement()).getTerm();\n }\n }\n if (showDlg) {\n dialog = new ComplexTypeInputDialog(this, page.getSite().getShell(), schema, decl.getTypeDefinition(), Util.getComplexTypes(decl.getSchema()), isXSDModelGroup);\n dialog.setBlockOnOpen(true);\n int ret = dialog.open();\n if (ret == Dialog.CANCEL) {\n return Status.CANCEL_STATUS;\n }\n }\n if (!showDlg && !validateType()) {\n return Status.CANCEL_STATUS;\n }\n XSDFactory factory = XSDSchemaBuildingTools.getXSDFactory();\n boolean anonymous = (typeName == null) || (\"String_Node_Str\".equals(typeName));\n boolean alreadyExists = false;\n XSDComplexTypeDefinition complexType = null;\n XSDParticle subParticle = null;\n XSDParticle groupParticle = null;\n XSDElementDeclaration subElement = null;\n XSDElementDeclaration parent = null;\n if (Util.getParent(decl) instanceof XSDElementDeclaration)\n parent = (XSDElementDeclaration) Util.getParent(decl);\n else if (Util.getParent(decl) instanceof XSDComplexTypeDefinition)\n complexType = (XSDComplexTypeDefinition) Util.getParent(decl);\n if (!anonymous) {\n EList list = schema.getTypeDefinitions();\n String ns = \"String_Node_Str\";\n if (typeName.lastIndexOf(\"String_Node_Str\") != -1) {\n ns = typeName.substring(typeName.lastIndexOf(\"String_Node_Str\") + 3);\n typeName = typeName.substring(0, typeName.lastIndexOf(\"String_Node_Str\"));\n }\n for (Iterator iter = list.iterator(); iter.hasNext(); ) {\n XSDTypeDefinition td = (XSDTypeDefinition) iter.next();\n if ((td.getName().equals(typeName) && (td instanceof XSDComplexTypeDefinition))) {\n alreadyExists = true;\n complexType = (XSDComplexTypeDefinition) td;\n break;\n }\n }\n } else {\n if (parent.getTypeDefinition() instanceof XSDComplexTypeDefinition)\n complexType = (XSDComplexTypeDefinition) parent.getTypeDefinition();\n if (complexType != null && complexType.getName() == null) {\n alreadyExists = true;\n }\n }\n if (complexType != null) {\n XSDParticleImpl partCnt = (XSDParticleImpl) complexType.getContent();\n XSDModelGroupImpl mdlGrp = (XSDModelGroupImpl) partCnt.getTerm();\n if (isChoice)\n mdlGrp.setCompositor(XSDCompositor.CHOICE_LITERAL);\n else if (isAll) {\n mdlGrp.setCompositor(XSDCompositor.ALL_LITERAL);\n } else {\n mdlGrp.setCompositor(XSDCompositor.SEQUENCE_LITERAL);\n }\n parent.updateElement();\n }\n if (decl.getTypeDefinition() instanceof XSDSimpleTypeDefinition)\n alreadyExists = false;\n if (!alreadyExists) {\n subElement = factory.createXSDElementDeclaration();\n subElement.setName(\"String_Node_Str\");\n subElement.setTypeDefinition(schema.resolveSimpleTypeDefinition(schema.getSchemaForSchemaNamespace(), \"String_Node_Str\"));\n subParticle = factory.createXSDParticle();\n subParticle.setMinOccurs(1);\n subParticle.setMaxOccurs(1);\n subParticle.setContent(subElement);\n subParticle.updateElement();\n XSDModelGroup group = factory.createXSDModelGroup();\n if (isChoice)\n group.setCompositor(XSDCompositor.CHOICE_LITERAL);\n else if (isAll)\n group.setCompositor(XSDCompositor.ALL_LITERAL);\n else\n group.setCompositor(XSDCompositor.SEQUENCE_LITERAL);\n group.getContents().add(0, subParticle);\n group.updateElement();\n complexType = factory.createXSDComplexTypeDefinition();\n if (!anonymous) {\n complexType.setName(typeName);\n schema.getContents().add(complexType);\n }\n complexType.updateElement();\n groupParticle = factory.createXSDParticle();\n groupParticle.setMinOccurs(1);\n groupParticle.setMaxOccurs(1);\n groupParticle.setContent(group);\n groupParticle.updateElement();\n complexType.setContent(groupParticle);\n complexType.updateElement();\n }\n if (anonymous)\n decl.setAnonymousTypeDefinition(complexType);\n else {\n decl.setTypeDefinition(complexType);\n }\n if (isConcept) {\n ArrayList keys = new ArrayList();\n EList list = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = list.iterator(); iter.hasNext(); ) {\n XSDIdentityConstraintDefinition icd = (XSDIdentityConstraintDefinition) iter.next();\n if (icd.getIdentityConstraintCategory().equals(XSDIdentityConstraintCategory.UNIQUE_LITERAL))\n keys.add(icd);\n }\n decl.getIdentityConstraintDefinitions().removeAll(keys);\n XSDElementDeclaration firstDecl = null;\n if (complexType.getContent() instanceof XSDParticle) {\n if (((XSDParticle) complexType.getContent()).getTerm() instanceof XSDModelGroup) {\n XSDModelGroup group = (XSDModelGroup) ((XSDParticle) complexType.getContent()).getTerm();\n EList gpl = group.getContents();\n for (Iterator iter = gpl.iterator(); iter.hasNext(); ) {\n XSDParticle part = (XSDParticle) iter.next();\n if (part.getTerm() instanceof XSDElementDeclaration) {\n firstDecl = (XSDElementDeclaration) part.getTerm();\n break;\n }\n }\n }\n }\n if (firstDecl != null) {\n XSDIdentityConstraintDefinition uniqueKey = factory.createXSDIdentityConstraintDefinition();\n uniqueKey.setIdentityConstraintCategory(XSDIdentityConstraintCategory.UNIQUE_LITERAL);\n uniqueKey.setName(decl.getName());\n XSDXPathDefinition selector = factory.createXSDXPathDefinition();\n selector.setVariety(XSDXPathVariety.SELECTOR_LITERAL);\n selector.setValue(\"String_Node_Str\");\n uniqueKey.setSelector(selector);\n XSDXPathDefinition field = factory.createXSDXPathDefinition();\n field.setVariety(XSDXPathVariety.FIELD_LITERAL);\n field.setValue(firstDecl.getAliasName());\n uniqueKey.getFields().add(field);\n decl.getIdentityConstraintDefinitions().add(uniqueKey);\n }\n }\n decl.updateElement();\n page.refresh();\n declNew = null;\n page.markDirty();\n } catch (Exception e) {\n e.printStackTrace();\n MessageDialog.openError(page.getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\" + e.getLocalizedMessage());\n return Status.CANCEL_STATUS;\n }\n return Status.OK_STATUS;\n}\n"
"public void visitFunctionCall(FunctionCallTree functionCall) {\n ExpressionTree callee = functionCall.callee();\n if (callee.is(Kind.NAMESPACE_NAME) && \"String_Node_Str\".equals(((NamespaceNameTree) callee).fullName())) {\n SeparatedList<ExpressionTree> arguments = functionCall.arguments();\n if (!arguments.isEmpty()) {\n ExpressionTree firstArgument = arguments.get(0);\n if (firstArgument.is(Kind.REGULAR_STRING_LITERAL)) {\n String constantName = ((LiteralTree) firstArgument).value();\n checkConstantName(firstArgument, constantName.substring(1, constantName.length() - 1));\n }\n }\n }\n super.visitFunctionCall(functionCall);\n}\n"
"public void validateOnSubmitDriver(DriverBean driverBean) {\n clearErrorsAndMessages();\n String alpha = \"String_Node_Str\";\n String alphaNumeric = \"String_Node_Str\";\n Pattern namePattern = Pattern.compile(alpha);\n Pattern alphaNumericPattern = Pattern.compile(alphaNumeric);\n Matcher matcher = namePattern.matcher(driverBean.getLastName());\n if (!matcher.matches()) {\n addFieldError(\"String_Node_Str\", \"String_Node_Str\");\n }\n matcher = namePattern.matcher(driverBean.getFirstName());\n if (!matcher.matches()) {\n addFieldError(\"String_Node_Str\", \"String_Node_Str\");\n }\n matcher = stringtitle.matcher(driverBean.getTitle());\n if (!matcher.matches()) {\n addFieldError(\"String_Node_Str\", \"String_Node_Str\");\n }\n if (StringUtils.isBlank(driverBean.getLicenseNumber())) {\n addFieldError(\"String_Node_Str\", getText(\"String_Node_Str\"));\n }\n if (StringUtils.isBlank(driverBean.getLastName())) {\n addFieldError(\"String_Node_Str\", getText(\"String_Node_Str\"));\n }\n if (StringUtils.isBlank(driverBean.getFirstName())) {\n addFieldError(\"String_Node_Str\", getText(\"String_Node_Str\"));\n }\n if (StringUtils.isBlank(driverBean.getTitle())) {\n addFieldError(\"String_Node_Str\", getText(\"String_Node_Str\"));\n }\n}\n"
"private boolean doProcess(GroupActivatedEvent event, Topology topology) {\n Application application = topology.getApplication(event.getAppId());\n if (application == null) {\n if (log.isWarnEnabled()) {\n log.warn(String.format(\"String_Node_Str\", event.getAppId()));\n }\n return false;\n }\n Group group = application.getGroupRecursively(event.getGroupId());\n if (group == null) {\n if (log.isWarnEnabled()) {\n log.warn(String.format(\"String_Node_Str\", event.getAppId(), event.getGroupId()));\n }\n } else {\n group.setStatus(Status.Activated);\n if (log.isInfoEnabled()) {\n log.info(String.format(\"String_Node_Str\", group.getUniqueIdentifier()));\n }\n }\n notifyEventListeners(event);\n return true;\n}\n"
"protected void checkAnnotatedRule() {\n if (executableElement.getParameters().size() != 1) {\n throw new TgDaoException(String.format(\"String_Node_Str\", executableElement.getSimpleName().toString()));\n }\n ModelConditions modelConditions = executableElement.getAnnotation(ModelConditions.class);\n if (modelConditions != null) {\n whereSqlGen = new ModelWhereSqlGen(executableElement, tableInfo, SqlMode.COMMON, modelConditions);\n }\n}\n"
"private static void processMembers(List members, PrintWriter writer, boolean declaringTypeIsInterface) throws DocException {\n for (Iterator it = members.iterator(); it.hasNext(); ) {\n IProgramElement member = (IProgramElement) it.next();\n if (member.getKind().isType()) {\n if (!member.getParent().getKind().equals(IProgramElement.Kind.METHOD) && !StructureUtil.isAnonymous(member)) {\n processTypeDeclaration(member, writer);\n }\n } else {\n String formalComment = addDeclID(member, member.getFormalComment());\n ;\n writer.println(formalComment);\n String signature = \"String_Node_Str\";\n if (!member.getKind().equals(IProgramElement.Kind.POINTCUT) && !member.getKind().equals(IProgramElement.Kind.ADVICE)) {\n signature = member.getSourceSignature();\n if (member.getKind().equals(IProgramElement.Kind.ENUM_VALUE)) {\n int index = members.indexOf(member);\n if ((index + 1 < members.size()) && ((IProgramElement) members.get(index + 1)).getKind().equals(IProgramElement.Kind.ENUM_VALUE)) {\n signature = signature + \"String_Node_Str\";\n } else {\n signature = signature + \"String_Node_Str\";\n }\n }\n }\n if (member.getKind().isDeclare()) {\n } else if (signature != null && signature != \"String_Node_Str\" && !member.getKind().isInterTypeMember() && !member.getKind().equals(IProgramElement.Kind.INITIALIZER) && !StructureUtil.isAnonymous(member)) {\n writer.print(signature);\n } else {\n }\n if (member.getKind().equals(IProgramElement.Kind.METHOD) || member.getKind().equals(IProgramElement.Kind.CONSTRUCTOR)) {\n if (member.getParent().getKind().equals(IProgramElement.Kind.INTERFACE) || signature.indexOf(\"String_Node_Str\") != -1) {\n writer.println(\"String_Node_Str\");\n } else {\n writer.println(\"String_Node_Str\");\n }\n } else if (member.getKind().equals(IProgramElement.Kind.FIELD)) {\n }\n }\n }\n}\n"
"private void logIt(int toolFlag, boolean messageIsRequest, IHttpRequestResponse messageInfo, IInterceptedProxyMessage message) {\n if (loggerPreferences.isEnabled()) {\n if (messageInfo == null && message != null) {\n messageInfo = message.getMessageInfo();\n }\n IRequestInfo analyzedReq = helpers.analyzeRequest(messageInfo);\n URL uUrl = analyzedReq.getUrl();\n if (!loggerPreferences.isRestrictedToScope() || callbacks.isInScope(uUrl)) {\n boolean isValidTool = (loggerPreferences.isEnabled4All() || (loggerPreferences.isEnabled4Proxy() && toolFlag == callbacks.TOOL_PROXY) || (loggerPreferences.isEnabled4Intruder() && toolFlag == callbacks.TOOL_INTRUDER) || (loggerPreferences.isEnabled4Repeater() && toolFlag == callbacks.TOOL_REPEATER) || (loggerPreferences.isEnabled4Scanner() && toolFlag == callbacks.TOOL_SCANNER) || (loggerPreferences.isEnabled4Sequencer() && toolFlag == callbacks.TOOL_SEQUENCER) || (loggerPreferences.isEnabled4Spider() && toolFlag == callbacks.TOOL_SPIDER) || (loggerPreferences.isEnabled4Extender() && toolFlag == callbacks.TOOL_EXTENDER) || (loggerPreferences.isEnabled4TargetTab() && toolFlag == callbacks.TOOL_TARGET));\n if (isValidTool) {\n if (messageIsRequest && toolFlag == callbacks.TOOL_PROXY) {\n } else if (!messageIsRequest) {\n LogEntry entry = new LogEntry(toolFlag, messageIsRequest, callbacks.saveBuffersToTempFiles(messageInfo), uUrl, analyzedReq, message, logTable, loggerPreferences, stderr, stderr, isValidTool, callbacks);\n for (ColorFilter colorFilter : colorFilters.values()) {\n entry.testColorFilter(colorFilter, false);\n }\n synchronized (log) {\n int row = log.size();\n log.add(entry);\n logTable.getModel().fireTableRowsInserted(row, row);\n }\n if (loggerPreferences.getAutoSave()) {\n optionsJPanel.autoLogItem(entry);\n }\n }\n }\n }\n }\n}\n"
"public void reset(final Activity activity, final CommentListingFragment fragment, final RedditPreparedComment comment, final ActiveTextView.OnLinkClickedListener listener) {\n if (this.comment != null)\n this.comment.unbind(this);\n this.comment = comment;\n comment.bind(this);\n final int paddingPixelsPerIndent = General.dpToPixels(activity, 10.0f);\n leftIndent.getLayoutParams().width = paddingPixelsPerIndent * comment.indentation;\n leftDividerLine.setVisibility(comment.indentation == 0 ? GONE : VISIBLE);\n if (!comment.isCollapsed()) {\n header.setText(comment.header);\n } else {\n header.setText(\"String_Node_Str\" + comment.header);\n }\n bodyHolder.removeAllViews();\n final ViewGroup commentBody = comment.getBody(activity, 13.0f * fontScale, bodyCol);\n bodyHolder.addView(commentBody);\n commentBody.getLayoutParams().width = ViewGroup.LayoutParams.MATCH_PARENT;\n ((MarginLayoutParams) commentBody.getLayoutParams()).topMargin = General.dpToPixels(activity, 1);\n updateVisibility(activity);\n}\n"
"public void executeExtraValueFormForEdit(JoinPoint joinPoint) {\n HttpServletRequest request = ServletActionContext.getRequest();\n PageAction action = (PageAction) joinPoint.getTarget();\n String pageCode = action.getSelectedNode();\n IPage page = action.getPage(pageCode);\n if (null != page && page.getMetadata() instanceof SeoPageMetadata) {\n SeoPageMetadata pageMetadata = (SeoPageMetadata) page.getMetadata();\n request.setAttribute(PARAM_FRIENDLY_CODE, pageMetadata.getFriendlyCode());\n request.setAttribute(PARAM_USE_EXTRA_DESCRIPTIONS, pageMetadata.isUseExtraDescriptions());\n ApsProperties props = pageMetadata.getDescriptions();\n if (null != props) {\n Iterator<Object> iter = props.keySet().iterator();\n while (iter.hasNext()) {\n String key = (String) iter.next();\n PageMetatag metatag = (PageMetatag) props.get(key);\n request.setAttribute(PARAM_DESCRIPTION_PREFIX + key, metatag.getValue());\n request.setAttribute(PARAM_DESCRIPTION_USE_DEFAULT_PREFIX + key, metatag.isUseDefaultLangValue());\n }\n }\n ApsProperties keywords = pageMetadata.getKeywords();\n if (null != keywords) {\n Iterator<Object> iter = keywords.keySet().iterator();\n while (iter.hasNext()) {\n String key = (String) iter.next();\n PageMetatag metatag = (PageMetatag) keywords.get(key);\n request.setAttribute(PARAM_KEYWORDS_PREFIX + key, metatag.getValue());\n request.setAttribute(PARAM_KEYWORDS_USE_DEFAULT_PREFIX + key, metatag.isUseDefaultLangValue());\n }\n }\n Map<String, Map<String, PageMetatag>> seoParameters = pageMetadata.getComplexParameters();\n if (null != seoParameters) {\n Lang defaultLang = this.getLangManager().getDefaultLang();\n Map<String, Map<String, PageMetatag>> metas = SeoPageExtraConfigDOM.extractRightParams(seoParameters, defaultLang);\n request.setAttribute(PARAM_METATAGS, metas);\n }\n request.setAttribute(PARAM_METATAG_ATTRIBUTE_NAMES, Metatag.getAttributeNames());\n }\n}\n"
"public T deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n Object entity = instantiateClass(getValueClass());\n BeanWrapper wrapper = BeanWrapper.create(entity, conversionService);\n ResourceMapping domainMapping = config.getResourceMappingForDomainType(getValueClass());\n for (JsonToken tok = jp.nextToken(); tok != JsonToken.END_OBJECT; tok = jp.nextToken()) {\n String name = jp.getCurrentName();\n switch(tok) {\n case FIELD_NAME:\n {\n if (\"String_Node_Str\".equals(name)) {\n URI uri = URI.create(jp.nextTextValue());\n TypeDescriptor entityType = TypeDescriptor.forObject(entity);\n if (uriDomainClassConverter.matches(URI_TYPE, entityType)) {\n entity = uriDomainClassConverter.convert(uri, URI_TYPE, entityType);\n }\n continue;\n }\n if (\"String_Node_Str\".equals(name)) {\n continue;\n }\n PersistentProperty persistentProperty = persistentEntity.getPersistentProperty(name);\n if (null == persistentProperty) {\n String errMsg = \"String_Node_Str\" + name + \"String_Node_Str\" + getValueClass().getName();\n if (null == domainMapping) {\n throw new HttpMessageNotReadableException(errMsg);\n }\n String propertyName = domainMapping.getNameForPath(name);\n if (null == propertyName) {\n throw new HttpMessageNotReadableException(errMsg);\n }\n persistentProperty = persistentEntity.getPersistentProperty(propertyName);\n if (null == persistentProperty) {\n throw new HttpMessageNotReadableException(errMsg);\n }\n }\n Object val = null;\n if (\"String_Node_Str\".equals(name)) {\n if ((tok = jp.nextToken()) == JsonToken.START_ARRAY) {\n while ((tok = jp.nextToken()) != JsonToken.END_ARRAY) {\n }\n } else if (tok == JsonToken.VALUE_NULL) {\n } else {\n throw new HttpMessageNotReadableException(\"String_Node_Str\");\n }\n continue;\n }\n if (null == persistentProperty) {\n continue;\n }\n if (persistentProperty.isCollectionLike()) {\n Class<? extends Collection> ctype = (Class<? extends Collection>) persistentProperty.getType();\n Collection c = (Collection) wrapper.getProperty(persistentProperty, ctype, false);\n if (null == c || c == Collections.EMPTY_LIST || c == Collections.EMPTY_SET) {\n if (Collection.class.isAssignableFrom(ctype)) {\n c = new ArrayList();\n } else if (Set.class.isAssignableFrom(ctype)) {\n c = new HashSet();\n }\n }\n if ((tok = jp.nextToken()) == JsonToken.START_ARRAY) {\n while ((tok = jp.nextToken()) != JsonToken.END_ARRAY) {\n Object cval = jp.readValueAs(persistentProperty.getComponentType());\n c.add(cval);\n }\n val = c;\n } else if (tok == JsonToken.VALUE_NULL) {\n val = null;\n } else {\n throw new HttpMessageNotReadableException(\"String_Node_Str\" + tok + \"String_Node_Str\");\n }\n } else if (persistentProperty.isMap()) {\n Class<? extends Map> mtype = (Class<? extends Map>) persistentProperty.getType();\n Map m = (Map) wrapper.getProperty(persistentProperty, mtype, false);\n if (null == m || m == Collections.EMPTY_MAP) {\n m = new HashMap();\n }\n if ((tok = jp.nextToken()) == JsonToken.START_OBJECT) {\n do {\n name = jp.getCurrentName();\n tok = jp.nextToken();\n Object mval = jp.readValueAs(persistentProperty.getMapValueType());\n m.put(name, mval);\n } while ((tok = jp.nextToken()) != JsonToken.END_OBJECT);\n val = m;\n } else if (tok == JsonToken.VALUE_NULL) {\n val = null;\n } else {\n throw new HttpMessageNotReadableException(\"String_Node_Str\" + tok + \"String_Node_Str\");\n }\n } else {\n if ((tok = jp.nextToken()) != JsonToken.VALUE_NULL) {\n val = jp.readValueAs(persistentProperty.getType());\n }\n }\n wrapper.setProperty(persistentProperty, val, false);\n break;\n }\n }\n }\n return (T) entity;\n}\n"
"private void writeStatsToFile(boolean force) {\n synchronized (mFileLock) {\n mCal.setTimeInMillis(System.currentTimeMillis());\n final int curDay = mCal.get(Calendar.DAY_OF_YEAR);\n final boolean dayChanged = curDay != mLastWriteDay;\n long currElapsedTime = SystemClock.elapsedRealtime();\n if (!force) {\n if (((currElapsedTime - mLastWriteElapsedTime) < FILE_WRITE_INTERVAL) && (!dayChanged)) {\n return;\n }\n }\n mFileLeaf = getCurrentDateStr(FILE_PREFIX);\n File backupFile = null;\n if (mFile != null && mFile.exists()) {\n backupFile = new File(mFile.getPath() + \"String_Node_Str\");\n if (!backupFile.exists()) {\n if (!mFile.renameTo(backupFile)) {\n Slog.w(TAG, \"String_Node_Str\");\n return;\n }\n } else {\n mFile.delete();\n }\n }\n try {\n writeStatsFLOCK();\n mLastWriteElapsedTime = currElapsedTime;\n if (dayChanged) {\n mLastWriteDay = curDay;\n synchronized (mStats) {\n mStats.clear();\n }\n mFile = new File(mDir, mFileLeaf);\n checkFileLimitFLOCK();\n }\n if (backupFile != null) {\n backupFile.delete();\n }\n } catch (IOException e) {\n Slog.w(TAG, \"String_Node_Str\" + mFile);\n if (backupFile != null) {\n mFile.delete();\n backupFile.renameTo(mFile);\n }\n }\n }\n}\n"
"private boolean getDiscardNextActionUp() {\n if (this.mBaseEditor == null) {\n return false;\n }\n try {\n return this.mDiscardNextActionUpField.getBoolean(this.mEditor);\n } catch (Exception e) {\n return false;\n }\n}\n"
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws IOException, PluginException {\n this.setBrowserExclusive();\n br.setFollowRedirects(true);\n br.getHeaders().put(\"String_Node_Str\", downloadLink.getDownloadURL());\n br.getPage(\"String_Node_Str\");\n if (!br.getURL().equals(downloadLink.getDownloadURL()))\n br.getPage(downloadLink.getDownloadURL());\n if (br.containsHTML(\"String_Node_Str\"))\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\n String fileName = br.getRegex(\"String_Node_Str\").getMatch(0);\n if (fileName == null) {\n fileName = br.getRegex(\"String_Node_Str\").getMatch(0);\n }\n String fileSize = br.getRegex(\"String_Node_Str\").getMatch(1);\n if (fileName == null)\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\n fileSize = fileSize.replace(\"String_Node_Str\", \"String_Node_Str\");\n fileSize = fileSize.replace(\"String_Node_Str\", \"String_Node_Str\");\n fileSize = fileSize.replace(\"String_Node_Str\", \"String_Node_Str\");\n fileSize = fileSize.replace(\"String_Node_Str\", \"String_Node_Str\");\n if (!fileSize.endsWith(\"String_Node_Str\"))\n fileSize = fileSize + \"String_Node_Str\";\n downloadLink.setName(fileName.trim());\n if (fileSize != null)\n downloadLink.setDownloadSize(Regex.getSize(fileSize.trim().replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\")));\n return AvailableStatus.TRUE;\n}\n"
"private long getCallTimeout(long callTimeout) {\n if (callTimeout > 0) {\n return callTimeout;\n }\n final long defaultCallTimeout = nodeEngine.operationService.getDefaultCallTimeout();\n if (op instanceof WaitSupport) {\n final long waitTimeoutMillis = ((WaitSupport) op).getWaitTimeoutMillis();\n if (waitTimeoutMillis > 0 && waitTimeoutMillis < Long.MAX_VALUE) {\n final long max = Math.max(waitTimeoutMillis, MIN_TIMEOUT);\n return Math.min(max, defaultCallTimeout);\n }\n }\n return defaultCallTimeout;\n}\n"
"public static void init() {\n nei = Loader.isModLoaded(Names.Mods.nei);\n harvestcraft = Loader.isModLoaded(Names.Mods.harvestcraft);\n natura = Loader.isModLoaded(Names.Mods.natura);\n weeeFlowers = Loader.isModLoaded(Names.Mods.weeeFlowers);\n forestry = Loader.isModLoaded(Names.Mods.forestry);\n thaumicTinkerer = Loader.isModLoaded(Names.Mods.thaumicTinkerer);\n hungerOverhaul = Loader.isModLoaded(Names.Mods.hungerOverhaul);\n exNihilo = Loader.isModLoaded(Names.Mods.exNihilo);\n plantMegaPack = Loader.isModLoaded(Names.Mods.plantMegaPack);\n magicalCrops = Loader.isModLoaded(Names.Mods.magicalCrops);\n railcraft = Loader.isModLoaded(Names.Mods.railcraft);\n thaumcraft = Loader.isModLoaded(Names.Mods.thaumcraft);\n mfr = Loader.isModLoaded(Names.Mods.mfr);\n waila = Loader.isModLoaded(Names.Mods.waila);\n chococraft = Loader.isModLoaded(Names.Mods.chococraft);\n mcMultipart = Loader.isModLoaded(Names.Mods.mcMultipart);\n minetweaker = Loader.isModLoaded(Names.Mods.minetweaker);\n extraUtilities = Loader.isModLoaded(Names.Mods.extraUtilities);\n botania = Loader.isModLoaded(Names.Mods.botania);\n tconstruct = Loader.isModLoaded(Names.Mods.tconstruct);\n LogHelper.debug(\"String_Node_Str\");\n LogHelper.debug(\"String_Node_Str\" + nei);\n LogHelper.debug(\"String_Node_Str\" + harvestcraft);\n LogHelper.debug(\"String_Node_Str\" + natura);\n LogHelper.debug(\"String_Node_Str\" + weeeFlowers);\n LogHelper.debug(\"String_Node_Str\" + forestry);\n LogHelper.debug(\"String_Node_Str\" + thaumicTinkerer);\n LogHelper.debug(\"String_Node_Str\" + hungerOverhaul);\n LogHelper.debug(\"String_Node_Str\" + exNihilo);\n LogHelper.debug(\"String_Node_Str\" + plantMegaPack);\n LogHelper.debug(\"String_Node_Str\" + magicalCrops);\n LogHelper.debug(\"String_Node_Str\" + railcraft);\n LogHelper.debug(\"String_Node_Str\" + thaumcraft);\n LogHelper.debug(\"String_Node_Str\" + mfr);\n LogHelper.debug(\"String_Node_Str\" + waila);\n LogHelper.debug(\"String_Node_Str\" + chococraft);\n LogHelper.debug(\"String_Node_Str\" + mcMultipart);\n LogHelper.debug(\"String_Node_Str\" + minetweaker);\n LogHelper.debug(\"String_Node_Str\" + extraUtilities);\n LogHelper.debug(\"String_Node_Str\" + botania);\n LogHelper.debug(\"String_Node_Str\" + tconstruct);\n LogHelper.debug(\"String_Node_Str\");\n}\n"
"public static Trainer getModel(CommandLine cmd) throws ParseException {\n final String algorithm = cmd.hasOption(\"String_Node_Str\") ? cmd.getOptionValue(\"String_Node_Str\") : \"String_Node_Str\";\n final int iterations = cmd.hasOption(\"String_Node_Str\") ? Integer.parseInt(cmd.getOptionValue(\"String_Node_Str\")) : 10;\n final String modelName = cmd.hasOption(\"String_Node_Str\") ? cmd.getOptionValue(\"String_Node_Str\") : \"String_Node_Str\";\n final String parserName = cmd.hasOption(\"String_Node_Str\") ? cmd.getOptionValue(\"String_Node_Str\") : \"String_Node_Str\";\n final IlpFormulation formulation = cmd.hasOption(\"String_Node_Str\") ? IlpFormulation.getById(cmd.getOptionValue(\"String_Node_Str\")) : IlpFormulation.DP_PROJ;\n final double lambda = cmd.hasOption(\"String_Node_Str\") ? Double.parseDouble(cmd.getOptionValue(\"String_Node_Str\")) : 0.1;\n final int numThreads = cmd.hasOption(\"String_Node_Str\") ? Integer.valueOf(cmd.getOptionValue(\"String_Node_Str\")) : 2;\n Trainer trainer = null;\n if (algorithm.equals(\"String_Node_Str\")) {\n ViterbiParser parser;\n MStep<DepTreebank> mStep;\n ModelFactory modelFactory;\n if (modelName.equals(\"String_Node_Str\")) {\n if (parserName.equals(\"String_Node_Str\")) {\n parser = new IlpViterbiParser(formulation, numThreads);\n } else if (parserName.equals(\"String_Node_Str\")) {\n parser = new IlpViterbiCorpusParser(formulation, numThreads);\n } else {\n throw new ParseException(\"String_Node_Str\" + parserName);\n }\n mStep = new DmvMStep(lambda);\n modelFactory = new DmvModelFactory(new RandomWeightGenerator(lambda));\n } else {\n throw new ParseException(\"String_Node_Str\" + modelName);\n }\n trainer = new ViterbiTrainer(parser, mStep, modelFactory, iterations);\n } else {\n throw new ParseException(\"String_Node_Str\" + algorithm);\n }\n return trainer;\n}\n"
"public void viewDirection(ActionRequest request, ActionResponse response) {\n try {\n Company company = AuthUtils.getUser().getActiveCompany();\n if (company == null) {\n response.setFlash(I18n.get(IExceptionMessage.PRODUCT_NO_ACTIVE_COMPANY));\n return;\n }\n Address departureAddress = company.getAddress();\n if (departureAddress == null) {\n response.setFlash(I18n.get(IExceptionMessage.ADDRESS_7));\n return;\n }\n if (appBaseService.getAppBase().getMapApiSelect() != AppBaseRepository.MAP_API_GOOGLE) {\n response.setFlash(I18n.get(IExceptionMessage.ADDRESS_6));\n return;\n }\n departureAddress = addressService.checkLatLang(departureAddress, false);\n BigDecimal dLat = departureAddress.getLatit();\n BigDecimal dLon = departureAddress.getLongit();\n BigDecimal zero = BigDecimal.ZERO;\n if (zero.compareTo(dLat) == 0 || zero.compareTo(dLon) == 0) {\n response.setFlash(String.format(I18n.get(IExceptionMessage.ADDRESS_5), departureAddress.getFullName()));\n return;\n }\n Address arrivalAddress = request.getContext().asType(Address.class);\n arrivalAddress = addressService.checkLatLang(arrivalAddress, false);\n BigDecimal aLat = arrivalAddress.getLatit();\n BigDecimal aLon = arrivalAddress.getLongit();\n if (zero.compareTo(aLat) == 0 || zero.compareTo(aLon) == 0) {\n response.setFlash(String.format(I18n.get(IExceptionMessage.ADDRESS_5), arrivalAddress.getFullName()));\n return;\n }\n Map<String, Object> mapView = new HashMap<String, Object>();\n mapView.put(\"String_Node_Str\", \"String_Node_Str\");\n mapView.put(\"String_Node_Str\", mapService.getDirectionUrl(key, dLat, dLon, aLat, aLon));\n mapView.put(\"String_Node_Str\", \"String_Node_Str\");\n response.setView(mapView);\n response.setReload(true);\n } catch (Exception e) {\n TraceBackService.trace(response, e);\n }\n}\n"
"public Community[] getCommunityCommunities(Integer communityId, String expand, Integer limit, Integer offset, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\" + communityId + \"String_Node_Str\");\n org.dspace.core.Context context = null;\n ArrayList<Community> communities = null;\n try {\n context = createContext(getUser(headers));\n org.dspace.content.Community dspaceCommunity = findCommunity(context, communityId, org.dspace.core.Constants.READ);\n writeStats(dspaceCommunity, UsageEvent.Action.VIEW, user_ip, user_agent, xforwarderfor, headers, request, context);\n if (!((limit != null) && (limit >= 0) && (offset != null) && (offset >= 0))) {\n log.warn(\"String_Node_Str\");\n limit = 100;\n offset = 0;\n }\n communities = new ArrayList<Community>();\n org.dspace.content.Community[] dspaceCommunities = dspaceCommunity.getSubcommunities();\n for (int i = offset; (i < (offset + limit)) && (i < dspaceCommunities.length); i++) {\n if (AuthorizeManager.authorizeActionBoolean(context, dspaceCommunities[i], org.dspace.core.Constants.READ)) {\n communities.add(new Community(dspaceCommunities[i], expand, context));\n writeStats(dspaceCommunities[i], UsageEvent.Action.VIEW, user_ip, user_agent, xforwarderfor, headers, request);\n }\n }\n context.complete();\n } catch (SQLException e) {\n processException(\"String_Node_Str\" + communityId + \"String_Node_Str\" + e, context);\n } catch (ContextException e) {\n processException(\"String_Node_Str\" + communityId + \"String_Node_Str\" + e.getMessage(), context);\n } finally {\n processFinally(context);\n }\n log.trace(\"String_Node_Str\" + communityId + \"String_Node_Str\");\n return communities.toArray(new Community[0]);\n}\n"
"protected List<ModuleToInstall> getModulesToBeInstalled() {\n List<ModuleToInstall> theInputList = tableViewerCreator.getInputList();\n List<ModuleToInstall> toInstall = new ArrayList<ModuleToInstall>();\n for (ModuleToInstall module : theInputList) {\n if (!MavenConstants.DOWNLOAD_MANUAL.equals(module.getDistribution()) && !jarsInstalledSuccuss.contains(module.getName()) && ELibraryInstallStatus.INSTALLED != ModuleStatusProvider.getStatusMap().get(module.getMavenUri())) {\n toInstall.add(module);\n }\n }\n return toInstall;\n}\n"
"public boolean select(Viewer viewer, Object parentElement, Object element) {\n if (parentElement instanceof TreePath || element instanceof TreePath) {\n this.getClass();\n }\n if (parentElement instanceof RepositoryNode && element instanceof RepositoryNode) {\n return selectRepositoryNode(viewer, (RepositoryNode) parentElement, (RepositoryNode) element);\n }\n return true;\n}\n"
"public <U> Stream<U> mapToObj(IntFunction<? extends U> mapper) {\n ThrowingIntFunction<? extends U, ? extends X> f = mapper::apply;\n return ThrowingBridge.of(getDelegate().mapToObj(f), getExceptionClass());\n}\n"
"public void shellActivated(ShellEvent e) {\n dialog.getShell().setFocus();\n IContext context = HelpSystem.getContext(HelpPlugin.INDICATOR_SELECTOR_HELP_ID);\n PlatformUI.getWorkbench().getHelpSystem().displayHelp(context);\n}\n"
"public void sourcesQuery() throws Exception {\n final String response = DummyWhoisClient.query(NrtmServer.getPort(), \"String_Node_Str\");\n assertThat(response, containsString(\"String_Node_Str\"));\n}\n"
"private final String bringUpServiceLocked(ServiceRecord r, int intentFlags, boolean execInFg, boolean whileRestarting) {\n if (r.app != null && r.app.thread != null) {\n sendServiceArgsLocked(r, execInFg, false);\n return null;\n }\n if (!whileRestarting && r.restartDelay > 0) {\n return null;\n }\n if (DEBUG_SERVICE)\n Slog.v(TAG, \"String_Node_Str\" + r + \"String_Node_Str\" + r.intent);\n if (mRestartingServices.remove(r)) {\n clearRestartingIfNeededLocked(r);\n }\n if (r.delayed) {\n if (DEBUG_DELAYED_STARTS)\n Slog.v(TAG, \"String_Node_Str\" + r);\n getServiceMap(r.userId).mDelayedStartList.remove(r);\n r.delayed = false;\n }\n if (mAm.mStartedUsers.get(r.userId) == null) {\n String msg = \"String_Node_Str\" + r.appInfo.packageName + \"String_Node_Str\" + r.appInfo.uid + \"String_Node_Str\" + r.intent.getIntent() + \"String_Node_Str\" + r.userId + \"String_Node_Str\";\n Slog.w(TAG, msg);\n bringDownServiceLocked(r);\n return msg;\n }\n try {\n AppGlobals.getPackageManager().setPackageStoppedState(r.packageName, false, r.userId);\n } catch (RemoteException e) {\n } catch (IllegalArgumentException e) {\n Slog.w(TAG, \"String_Node_Str\" + r.packageName + \"String_Node_Str\" + e);\n }\n final boolean isolated = (r.serviceInfo.flags & ServiceInfo.FLAG_ISOLATED_PROCESS) != 0;\n final String procName = r.processName;\n ProcessRecord app;\n if (!isolated) {\n app = mAm.getProcessRecordLocked(procName, r.appInfo.uid, false);\n if (DEBUG_MU)\n Slog.v(TAG_MU, \"String_Node_Str\" + r.appInfo.uid + \"String_Node_Str\" + app);\n if (app != null && app.thread != null) {\n try {\n app.addPackage(r.appInfo.packageName, mAm.mProcessStats);\n realStartServiceLocked(r, app, execInFg);\n return null;\n } catch (RemoteException e) {\n Slog.w(TAG, \"String_Node_Str\" + r.shortName, e);\n }\n }\n } else {\n app = r.isolatedProc;\n }\n if (app == null) {\n if ((app = mAm.startProcessLocked(procName, r.appInfo, true, intentFlags, \"String_Node_Str\", r.name, false, isolated, false)) == null) {\n String msg = \"String_Node_Str\" + r.appInfo.packageName + \"String_Node_Str\" + r.appInfo.uid + \"String_Node_Str\" + r.intent.getIntent() + \"String_Node_Str\";\n Slog.w(TAG, msg);\n bringDownServiceLocked(r);\n return msg;\n }\n if (isolated) {\n r.isolatedProc = app;\n }\n }\n if (!mPendingServices.contains(r)) {\n mPendingServices.add(r);\n }\n if (r.delayedStop) {\n r.delayedStop = false;\n if (r.startRequested) {\n if (DEBUG_DELAYED_STATS)\n Slog.v(TAG, \"String_Node_Str\" + r);\n stopServiceLocked(r);\n }\n }\n return null;\n}\n"
"public boolean equals(Object o) {\n if (!(o instanceof ReceivedDeletedBlockInfo)) {\n return false;\n }\n ReceivedDeletedBlockInfo other = (ReceivedDeletedBlockInfo) o;\n return this.block.equals(other.getBlock()) && this.status == other.status && this.delHints != null && this.delHints.equals(other.delHints);\n}\n"
"public void run() throws Exception {\n ReplicatedMapService service = getService();\n ReplicatedRecordStore store = service.getReplicatedRecordStore(name, true, key);\n store.merge(key, entryView, policy);\n}\n"
"public void testBug1541077() throws Exception {\n if (!isApplicable()) {\n return;\n }\n MondrianProperties props = MondrianProperties.instance();\n propSaver.set(props.UseAggregates, false);\n String mdx = \"String_Node_Str\";\n Result result = getTestContext().executeQuery(mdx);\n Object v = result.getCell(new int[] { 0 }).getFormattedValue();\n propSaver.set(props.UseAggregates, true);\n Result result1 = getCubeTestContext().executeQuery(mdx);\n Object v1 = result1.getCell(new int[] { 0 }).getFormattedValue();\n assertTrue(v.equals(v1));\n}\n"
"protected void onNewIntent(final Intent intent) {\n super.onNewIntent(intent);\n final Tag mTag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n if (mTag != null) {\n new SimpleAsyncTask() {\n\n private Tag mTag;\n private IsoDep mTagcomm;\n private EMVCard mCard;\n private boolean mException;\n protected void onPreExecute() {\n super.onPreExecute();\n if (mDialog == null) {\n mDialog = ProgressDialog.show(HomeActivity.this, getString(R.string.card_reading), getString(R.string.card_reading_desc), true, false);\n } else {\n mDialog.show();\n }\n }\n protected void doInBackground() {\n mTag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n mTagcomm = IsoDep.get(mTag);\n if (mTagcomm == null) {\n display(getText(R.string.error_communication_nfc), false);\n return;\n }\n mException = false;\n try {\n mTagcomm.connect();\n IProvider prov = new Provider(mTagcomm);\n EMVParser parser = new EMVParser(prov, true);\n mCard = parser.readEmvCard();\n } catch (IOException e) {\n mException = true;\n } finally {\n if (mTagcomm != null) {\n try {\n mTagcomm.close();\n } catch (IOException e) {\n }\n }\n }\n }\n protected void onPostExecute(final Object result) {\n if (mDialog != null) {\n mDialog.cancel();\n }\n if (!mException) {\n if (mCard != null && StringUtils.isNotBlank(mCard.getCardNumber())) {\n if (!mList.contains(mCard)) {\n mList.add(mCard);\n mAdapter.notifyDataSetChanged();\n display(getText(R.string.card_added), true);\n } else {\n display(getText(R.string.error_card_already_added), false);\n }\n } else {\n display(getText(R.string.error_card_unknown), false);\n }\n } else {\n display(getResources().getText(R.string.error_communication_nfc), false);\n }\n }\n }.execute();\n}\n"
"private void exportAllReferenceJobs(ProcessItem routeProcess) throws InvocationTargetException, InterruptedException {\n for (NodeType cTalendJob : EmfModelUtils.getComponentsByName(routeProcess, \"String_Node_Str\")) {\n String jobId = null;\n String jobVersion = null;\n String jobContext = null;\n for (Object o : cTalendJob.getElementParameter()) {\n if (!(o instanceof ElementParameterType)) {\n continue;\n }\n ElementParameterType ept = (ElementParameterType) o;\n String eptName = ept.getName();\n if (\"String_Node_Str\".equals(eptName) && \"String_Node_Str\".equals(ept.getValue())) {\n break;\n }\n if (\"String_Node_Str\".equals(eptName)) {\n jobId = ept.getValue();\n } else if (\"String_Node_Str\".equals(eptName)) {\n jobVersion = ept.getValue();\n } else if (\"String_Node_Str\".equals(eptName)) {\n jobContext = ept.getValue();\n }\n }\n if (jobId == null || jobVersion == null) {\n continue;\n }\n IRepositoryNode referencedJobNode;\n try {\n referencedJobNode = getJobRepositoryNode(jobId, ERepositoryObjectType.PROCESS);\n } catch (PersistenceException e) {\n throw new InvocationTargetException(e);\n }\n if (RelationshipItemBuilder.LATEST_VERSION.equals(jobVersion)) {\n jobVersion = referencedJobNode.getObject().getVersion();\n }\n String jobName = referencedJobNode.getObject().getProperty().getDisplayName();\n File jobFile;\n try {\n jobFile = File.createTempFile(\"String_Node_Str\", FileConstants.JAR_FILE_SUFFIX, new File(getTempDir()));\n } catch (IOException e) {\n throw new InvocationTargetException(e);\n }\n String jobBundleVersion = jobVersion;\n if (getArtifactVersion().endsWith(\"String_Node_Str\")) {\n jobArtifactVersion += \"String_Node_Str\";\n }\n BundleModel jobModel = new BundleModel(getJobGroupId(jobId, jobName), jobName + \"String_Node_Str\", jobArtifactVersion, jobFile);\n if (featuresModel.addBundle(jobModel)) {\n exportRouteUsedJobBundle(referencedJobNode, jobFile, jobVersion, jobName, jobVersion, routeNode.getObject().getProperty().getDisplayName(), version, jobContext);\n }\n }\n}\n"
"public void onGuildMemberLeave(GuildMemberLeaveEvent event) {\n if (event.getMember().getUser().getIdLong() == bot.getJda().getSelfUser().getIdLong())\n return;\n if (!event.getGuild().isAvailable())\n return;\n try {\n GuildWelcomeMessages queryResult = messageDao.queryForId(event.getGuild().getIdLong());\n if (queryResult == null) {\n try {\n queryResult = initGuild(event.getGuild());\n } catch (SQLException ex) {\n logger.error(\"String_Node_Str\", ex);\n return;\n }\n }\n if (!queryResult.isLeaveEnabled())\n return;\n String msg = formatMessage(queryResult.getLeave(), event.getGuild(), event.getMember(), DEFAULT_LEAVE);\n event.getGuild().getPublicChannel().sendMessage(Context.truncate(msg)).queue();\n } catch (SQLException e) {\n logger.warn(\"String_Node_Str\", e);\n }\n}\n"
"public void testCreateDataSourceWithSameName() {\n SlotHandle parent = getReportDesignHandle().getDataSources();\n assertEquals(0, parent.getCount());\n createDataSource();\n assertEquals(1, parent.getCount());\n DataSourceHandle dataSource2 = getElementFactory().newOdaDataSource(DATA_SOURCE_NAME);\n HashMap map = new HashMap();\n map.put(DesignerConstants.KEY_NEWOBJECT, dataSource2);\n CreateCommand command = new CreateCommand(map);\n command.setParent(parent);\n command.execute();\n assertEquals(2, parent.getCount());\n assertEquals(dataSource2, parent.get(1));\n assertTrue(!dataSource2.getName().equals(DATA_SOURCE_NAME));\n}\n"
"public Vector2 getMinimumTranslationVector() {\n return intersection ? overlapV : Vector2.ZERO;\n}\n"
"public String colorBySymmetry() {\n List<List<Integer>> units = helixAxisAligner.getHelixLayers().getByLargestContacts().getLayerLines();\n units = orientLayerLines(units);\n QuatSymmetrySubunits subunits = helixAxisAligner.getSubunits();\n List<Integer> modelNumbers = subunits.getModelNumbers();\n List<String> chainIds = subunits.getChainIds();\n List<Integer> clusterIds = subunits.getSequenceClusterIds();\n int clusterCount = Collections.max(clusterIds) + 1;\n Map<Color4f, List<String>> colorMap = new HashMap<Color4f, List<String>>();\n int maxLen = 0;\n for (List<Integer> unit : units) {\n maxLen = Math.max(maxLen, unit.size());\n }\n Color4f[] colors = getSymmetryColors(subunits.getSubunitCount());\n int count = 0;\n for (int i = 0; i < maxLen; i++) {\n for (int j = 0; j < units.size(); j++) {\n int m = units.get(j).size();\n if (i < m) {\n int subunit = units.get(j).get(i);\n int cluster = clusterIds.get(subunit);\n float scale = 0.3f + 0.7f * (cluster + 1) / clusterCount;\n Color4f c = new Color4f(colors[count]);\n count++;\n c.scale(scale);\n List<String> ids = colorMap.get(c);\n if (ids == null) {\n ids = new ArrayList<String>();\n colorMap.put(c, ids);\n }\n String id = getChainSpecification(modelNumbers, chainIds, subunit);\n ids.add(id);\n }\n }\n }\n String coloring = defaultColoring + getJmolColorScript(colorMap);\n return coloring;\n}\n"
"private static RoleType getRole(ServiceConfiguration configuration, String roleName, String effectiveUserId) throws Exception {\n RoleType retVal = null;\n boolean seenAllRoles = false;\n String RoleMarker = null;\n while (!seenAllRoles && retVal == null) {\n ListRolesType listRolesType = MessageHelper.createMessage(ListRolesType.class, effectiveUserId);\n if (RoleMarker != null) {\n listRolesType.setMarker(RoleMarker);\n }\n ListRolesResponseType listRolesResponseType = AsyncRequests.<ListRolesType, ListRolesResponseType>sendSync(configuration, listRolesType);\n if (Boolean.TRUE.equals(listRolesResponseType.getListRolesResult().getIsTruncated())) {\n RoleMarker = listRolesResponseType.getListRolesResult().getMarker();\n } else {\n seenAllRoles = true;\n }\n if (listRolesResponseType.getListRolesResult().getRoles() != null && listRolesResponseType.getListRolesResult().getRoles().getMember() != null) {\n for (RoleType roleType : listRolesResponseType.getListRolesResult().getRoles().getMember()) {\n if (roleType.getRoleName().equals(roleName)) {\n retVal = roleType;\n break;\n }\n }\n }\n }\n return retVal;\n}\n"
"public static String getExpression() {\n if (tableNode == null) {\n return null;\n }\n expression.delete(0, expression.length());\n expression.append(\"String_Node_Str\");\n expression.append(tableNode);\n expression.append(\"String_Node_Str\");\n expression.append(tableNode);\n expression.append(\"String_Node_Str\");\n expression.append(startNum);\n expression.append(\"String_Node_Str\");\n expression.append(ROWS_PER_PAGE);\n expression.append(\"String_Node_Str\");\n expression.append(tableNode);\n expression.append(\"String_Node_Str\");\n expression.append(columnNodeNameArraystr == null ? \"String_Node_Str\" + tableNode : columnNodeNameArraystr);\n expression.append(\"String_Node_Str\");\n return expression.toString();\n}\n"
"protected int getColumnPos(int rowId, Cell cell) {\n if (rowId < 0 || rowId >= rows.size())\n return 0;\n LayoutRow row = getLayoutRow(rowId);\n return row.findCellColumnPos(cell);\n}\n"
"public ConvertOutput toSourceOutput(boolean processJumps, boolean isStatic, int classIndex, java.util.HashMap<Integer, GraphTargetItem> localRegs, Stack<GraphTargetItem> stack, Stack<GraphTargetItem> scopeStack, ABC abc, ConstantPool constants, MethodInfo[] method_info, MethodBody body, int start, int end, HashMap<Integer, String> localRegNames, List<String> fullyQualifiedNames, boolean[] visited) throws ConvertException {\n boolean debugMode = DEBUG_MODE;\n if (debugMode) {\n System.out.println(\"String_Node_Str\" + start + \"String_Node_Str\" + end + \"String_Node_Str\" + code.get(start).toString() + \"String_Node_Str\" + code.get(end).toString());\n }\n if (visited == null) {\n visited = new boolean[code.size()];\n }\n toSourceCount++;\n if (toSourceLimit > 0) {\n if (toSourceCount > toSourceLimit) {\n throw new ConvertException(\"String_Node_Str\" + toSourceLimit + \"String_Node_Str\", start);\n }\n }\n List<GraphTargetItem> output = new ArrayList<GraphTargetItem>();\n String ret = \"String_Node_Str\";\n int ip = start;\n try {\n int addr;\n iploop: while (ip <= end) {\n if (ignoredIns.contains(ip)) {\n ip++;\n continue;\n }\n boolean processTry = processJumps;\n addr = pos2adr(ip);\n int ipfix = fixIPAfterDebugLine(ip);\n int addrfix = pos2adr(ipfix);\n int maxend = -1;\n if (processTry) {\n List<ABCException> catchedExceptions = new ArrayList<ABCException>();\n for (int e = 0; e < body.exceptions.length; e++) {\n if (addrfix == fixAddrAfterDebugLine(body.exceptions[e].start)) {\n if (!body.exceptions[e].isFinally()) {\n if ((fixAddrAfterDebugLine(body.exceptions[e].end) > maxend) && (!parsedExceptions.contains(body.exceptions[e]))) {\n catchedExceptions.clear();\n maxend = fixAddrAfterDebugLine(body.exceptions[e].end);\n catchedExceptions.add(body.exceptions[e]);\n } else if (fixAddrAfterDebugLine(body.exceptions[e].end) == maxend) {\n catchedExceptions.add(body.exceptions[e]);\n }\n }\n }\n }\n if (catchedExceptions.size() > 0) {\n ip = ipfix;\n addr = addrfix;\n parsedExceptions.addAll(catchedExceptions);\n int endpos = adr2pos(fixAddrAfterDebugLine(catchedExceptions.get(0).end));\n List<List<GraphTargetItem>> catchedCommands = new ArrayList<List<GraphTargetItem>>();\n if (code.get(endpos).definition instanceof JumpIns) {\n int afterCatchAddr = pos2adr(endpos + 1) + code.get(endpos).operands[0];\n int afterCatchPos = adr2pos(afterCatchAddr);\n Collections.sort(catchedExceptions, new Comparator<ABCException>() {\n public int compare(ABCException o1, ABCException o2) {\n try {\n return fixAddrAfterDebugLine(o1.target) - fixAddrAfterDebugLine(o2.target);\n } catch (ConvertException ex) {\n return 0;\n }\n }\n });\n List<GraphTargetItem> finallyCommands = new ArrayList<GraphTargetItem>();\n int returnPos = afterCatchPos;\n for (int e = 0; e < body.exceptions.length; e++) {\n if (body.exceptions[e].isFinally()) {\n if (addr == fixAddrAfterDebugLine(body.exceptions[e].start)) {\n if (afterCatchPos + 1 == adr2pos(fixAddrAfterDebugLine(body.exceptions[e].end))) {\n AVM2Instruction jmpIns = code.get(adr2pos(fixAddrAfterDebugLine(body.exceptions[e].end)));\n if (jmpIns.definition instanceof JumpIns) {\n int finStart = adr2pos(fixAddrAfterDebugLine(body.exceptions[e].end) + jmpIns.getBytes().length + jmpIns.operands[0]);\n finallyJumps.add(finStart);\n if (unknownJumps.contains(finStart)) {\n unknownJumps.remove((Integer) finStart);\n }\n for (int f = finStart; f <= end; f++) {\n if (code.get(f).definition instanceof LookupSwitchIns) {\n AVM2Instruction swins = code.get(f);\n if (swins.operands.length >= 3) {\n if (swins.operands[0] == swins.getBytes().length) {\n if (adr2pos(pos2adr(f) + swins.operands[2]) < finStart) {\n finallyCommands = toSourceOutput(processJumps, isStatic, scriptIndex, classIndex, localRegs, stack, scopeStack, abc, constants, method_info, body, finStart, f - 1, localRegNames, fullyQualifiedNames, visited).output;\n returnPos = f + 1;\n break;\n }\n }\n }\n }\n }\n break;\n }\n }\n }\n }\n }\n for (int e = 0; e < catchedExceptions.size(); e++) {\n int eendpos;\n if (e < catchedExceptions.size() - 1) {\n eendpos = adr2pos(fixAddrAfterDebugLine(catchedExceptions.get(e + 1).target)) - 2;\n } else {\n eendpos = afterCatchPos - 1;\n }\n Stack<GraphTargetItem> substack = new Stack<GraphTargetItem>();\n substack.add(new ExceptionTreeItem(catchedExceptions.get(e)));\n catchedCommands.add(toSourceOutput(processJumps, isStatic, classIndex, localRegs, substack, new Stack<GraphTargetItem>(), abc, constants, method_info, body, adr2pos(fixAddrAfterDebugLine(catchedExceptions.get(e).target)), eendpos, localRegNames, fullyQualifiedNames, visited).output);\n }\n List<GraphTargetItem> tryCommands = toSourceOutput(processJumps, isStatic, classIndex, localRegs, stack, scopeStack, abc, constants, method_info, body, ip, endpos - 1, localRegNames, fullyQualifiedNames, visited).output;\n output.add(new TryTreeItem(tryCommands, catchedExceptions, catchedCommands, finallyCommands));\n ip = returnPos;\n addr = pos2adr(ip);\n }\n }\n }\n if (ip > end) {\n break;\n }\n if (unknownJumps.contains(ip)) {\n unknownJumps.remove(new Integer(ip));\n throw new UnknownJumpException(stack, ip, output);\n }\n if (visited[ip]) {\n Logger.getLogger(AVM2Code.class.getName()).warning(\"String_Node_Str\" + Helper.formatAddress(pos2adr(ip)) + \"String_Node_Str\" + ip);\n break;\n }\n visited[ip] = true;\n AVM2Instruction ins = code.get(ip);\n if (debugMode) {\n System.err.println(\"String_Node_Str\" + ip + \"String_Node_Str\" + ins.toString() + \"String_Node_Str\" + Highlighting.stripHilights(stack.toString()) + \"String_Node_Str\" + Highlighting.stripHilights(scopeStack.toString()));\n }\n if (ins.definition instanceof NewFunctionIns) {\n if (ip + 1 <= end) {\n if (code.get(ip + 1).definition instanceof PopIns) {\n ip += 2;\n continue;\n }\n }\n }\n if ((ip + 8 < code.size())) {\n if (ins.definition instanceof SetLocalTypeIns) {\n if (code.get(ip + 1).definition instanceof PushByteIns) {\n AVM2Instruction jmp = code.get(ip + 2);\n if (jmp.definition instanceof JumpIns) {\n if (jmp.operands[0] == 0) {\n if (code.get(ip + 3).definition instanceof LabelIns) {\n if (code.get(ip + 4).definition instanceof PopIns) {\n if (code.get(ip + 5).definition instanceof LabelIns) {\n AVM2Instruction gl = code.get(ip + 6);\n if (gl.definition instanceof GetLocalTypeIns) {\n if (((GetLocalTypeIns) gl.definition).getRegisterId(gl) == ((SetLocalTypeIns) ins.definition).getRegisterId(ins)) {\n AVM2Instruction ki = code.get(ip + 7);\n if (ki.definition instanceof KillIns) {\n if (ki.operands[0] == ((SetLocalTypeIns) ins.definition).getRegisterId(ins)) {\n if (code.get(ip + 8).definition instanceof ReturnValueIns) {\n ip = ip + 8;\n continue;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n if ((ins.definition instanceof GetLocalTypeIns) && (!output.isEmpty()) && (output.get(output.size() - 1) instanceof SetLocalTreeItem) && (((SetLocalTreeItem) output.get(output.size() - 1)).regIndex == ((GetLocalTypeIns) ins.definition).getRegisterId(ins)) && isKilled(((SetLocalTreeItem) output.get(output.size() - 1)).regIndex, start, end)) {\n SetLocalTreeItem slt = (SetLocalTreeItem) output.remove(output.size() - 1);\n stack.push(slt.getValue());\n ip++;\n } else if ((ins.definition instanceof SetLocalTypeIns) && (ip + 1 <= end) && (isKilled(((SetLocalTypeIns) ins.definition).getRegisterId(ins), ip, end))) {\n AVM2Instruction insAfter = code.get(ip + 1);\n if ((insAfter.definition instanceof GetLocalTypeIns) && (((GetLocalTypeIns) insAfter.definition).getRegisterId(insAfter) == ((SetLocalTypeIns) ins.definition).getRegisterId(ins))) {\n GraphTargetItem before = stack.peek();\n ins.definition.translate(isStatic, classIndex, localRegs, stack, scopeStack, constants, ins, method_info, output, body, abc, localRegNames, fullyQualifiedNames);\n stack.push(before);\n ip += 2;\n continue iploop;\n } else {\n ins.definition.translate(isStatic, classIndex, localRegs, stack, scopeStack, constants, ins, method_info, output, body, abc, localRegNames, fullyQualifiedNames);\n ip++;\n continue iploop;\n }\n } else if (ins.definition instanceof DupIns) {\n int nextPos;\n do {\n AVM2Instruction insAfter = code.get(ip + 1);\n AVM2Instruction insBefore = ins;\n if (ip - 1 >= start) {\n insBefore = code.get(ip - 1);\n }\n if (insAfter.definition instanceof ConvertBIns) {\n ip++;\n addr = pos2adr(ip);\n insAfter = code.get(ip + 1);\n }\n boolean isAnd;\n if (processJumps && (insAfter.definition instanceof IfFalseIns)) {\n isAnd = true;\n } else if (processJumps && (insAfter.definition instanceof IfTrueIns)) {\n isAnd = false;\n } else if (insAfter.definition instanceof SetLocalTypeIns) {\n int reg = (((SetLocalTypeIns) insAfter.definition).getRegisterId(insAfter));\n for (int t = ip + 1; t <= end - 1; t++) {\n if (code.get(t).definition instanceof KillIns) {\n if (code.get(t).operands[0] == reg) {\n break;\n }\n }\n if (code.get(t).definition instanceof GetLocalTypeIns) {\n if (((GetLocalTypeIns) code.get(t).definition).getRegisterId(code.get(t)) == reg) {\n if (code.get(t + 1).definition instanceof KillIns) {\n if (code.get(t + 1).operands[0] == reg) {\n ConvertOutput assignment = toSourceOutput(processJumps, isStatic, classIndex, localRegs, stack, scopeStack, abc, constants, method_info, body, ip + 2, t - 1, localRegNames, fullyQualifiedNames, visited);\n stack.push(assignment.output.remove(assignment.output.size() - 1));\n ip = t + 2;\n continue iploop;\n }\n }\n }\n }\n }\n if (!isKilled(reg, 0, end)) {\n for (int i = ip; i >= start; i--) {\n if (code.get(i).definition instanceof DupIns) {\n GraphTargetItem v = stack.pop();\n stack.push(new LocalRegTreeItem(ins, reg, v));\n stack.push(v);\n } else {\n break;\n }\n }\n } else {\n ins.definition.translate(isStatic, classIndex, localRegs, stack, scopeStack, constants, ins, method_info, output, body, abc, localRegNames, fullyQualifiedNames);\n }\n ip++;\n break;\n } else {\n ins.definition.translate(isStatic, classIndex, localRegs, stack, scopeStack, constants, ins, method_info, output, body, abc, localRegNames, fullyQualifiedNames);\n ip++;\n break;\n }\n } while (ins.definition instanceof DupIns);\n } else if ((ins.definition instanceof ReturnValueIns) || (ins.definition instanceof ReturnVoidIns) || (ins.definition instanceof ThrowIns)) {\n ins.definition.translate(isStatic, classIndex, localRegs, stack, scopeStack, constants, ins, method_info, output, body, abc, localRegNames, fullyQualifiedNames);\n ip = end + 1;\n break;\n } else if (ins.definition instanceof NewFunctionIns) {\n String functionName = \"String_Node_Str\";\n if ((ip >= start + 2) && (ip <= end - 4)) {\n AVM2Instruction prev2 = code.get(ip - 2);\n if (prev2.definition instanceof NewObjectIns) {\n if (prev2.operands[0] == 0) {\n if (code.get(ip - 1).definition instanceof PushWithIns) {\n boolean hasDup = false;\n int plus = 0;\n if (code.get(ip + 1).definition instanceof DupIns) {\n hasDup = true;\n plus = 1;\n }\n AVM2Instruction psco = code.get(ip + 1 + plus);\n if (psco.definition instanceof GetScopeObjectIns) {\n if (psco.operands[0] == scopeStack.size() - 1) {\n if (code.get(ip + plus + 2).definition instanceof SwapIns) {\n if (code.get(ip + plus + 4).definition instanceof PopScopeIns) {\n if (code.get(ip + plus + 3).definition instanceof SetPropertyIns) {\n functionName = abc.constants.constant_multiname[code.get(ip + plus + 3).operands[0]].getName(constants, fullyQualifiedNames);\n scopeStack.pop();\n output.remove(output.size() - 1);\n ip = ip + plus + 4;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n ins.definition.translate(isStatic, classIndex, localRegs, stack, scopeStack, constants, ins, method_info, output, body, abc, localRegNames, fullyQualifiedNames);\n NewFunctionTreeItem nft = (NewFunctionTreeItem) stack.peek();\n nft.functionName = functionName;\n ip++;\n } else {\n ins.definition.translate(isStatic, classIndex, localRegs, stack, scopeStack, constants, ins, method_info, output, body, abc, localRegNames, fullyQualifiedNames);\n ip++;\n addr = pos2adr(ip);\n }\n }\n if (debugMode) {\n System.out.println(\"String_Node_Str\" + start + \"String_Node_Str\" + end + \"String_Node_Str\" + code.get(start).toString() + \"String_Node_Str\" + code.get(end).toString());\n }\n return new ConvertOutput(stack, output);\n } catch (ConvertException cex) {\n throw cex;\n }\n}\n"
"protected static void bubbleSortLines(FastQueue<Segment> segments) {\n for (int i = 0; i < 4; i++) {\n int bestValue = segments.get(i).index0;\n int bestIndex = i;\n for (int j = i + 1; j < segments.size; j++) {\n Segment b = segments.get(j);\n if (b.index0 < bestValue) {\n bestIndex = j;\n bestValue = b.index0;\n }\n }\n if (bestIndex != i) {\n Segment tmp = segments.data[i];\n segments.data[i] = segments.data[bestIndex];\n segments.data[bestIndex] = tmp;\n }\n }\n}\n"
"public void createCriteria(ModelConfiguration config) {\n config.removeAllCriteria();\n if (this.kAnonymityModel != null && this.kAnonymityModel.isActive() && this.kAnonymityModel.isEnabled()) {\n config.addCriterion(this.kAnonymityModel.getCriterion(this));\n }\n if (this.dPresenceModel != null && this.dPresenceModel.isActive() && this.dPresenceModel.isEnabled()) {\n config.addCriterion(this.dPresenceModel.getCriterion(this));\n }\n for (Entry<String, ModelLDiversityCriterion> entry : this.lDiversityModel.entrySet()) {\n if (entry.getValue() != null && entry.getValue().isActive() && entry.getValue().isEnabled()) {\n config.addCriterion(entry.getValue().getCriterion(this));\n }\n }\n for (Entry<String, ModelTClosenessCriterion> entry : this.tClosenessModel.entrySet()) {\n if (entry.getValue() != null && entry.getValue().isActive() && entry.getValue().isEnabled()) {\n config.addCriterion(entry.getValue().getCriterion(this));\n }\n }\n if (!config.containsCriterion(DPresence.class)) {\n DataSubset subset = DataSubset.create(getInputConfig().getInput(), getInputConfig().getResearchSubset());\n config.addCriterion(new Inclusion(subset));\n }\n}\n"