content
stringlengths
40
137k
"private void setSuggestionStripShownInternal(final boolean shown, final boolean needsInputViewShown) {\n if (onEvaluateInputViewShown() && mSuggestionStripView != null) {\n final boolean inputViewShown = mKeyboardSwitcher.isShowingMainKeyboardOrEmojiPalettes();\n final boolean shouldShowSuggestions = shown && (needsInputViewShown ? inputViewShown : true);\n if (isFullscreenMode()) {\n mSuggestionStripView.setVisibility(shouldShowSuggestions ? View.VISIBLE : View.GONE);\n } else {\n mSuggestionStripView.setVisibility(shouldShowSuggestions ? View.VISIBLE : View.INVISIBLE);\n }\n }\n}\n"
"public static MapFileHeader readFromStream(InputStream stream) throws IOException {\n try {\n DataInputStream in = new DataInputStream(stream);\n for (byte b : START_BYTES) {\n if (in.readByte() != b) {\n throw new IOException(\"String_Node_Str\");\n }\n }\n int version = in.readShort();\n if (version < MIN_VERSION) {\n throw new IOException(\"String_Node_Str\");\n }\n String typeStr = in.readUTF();\n MapType type = MapType.valueOf(typeStr);\n String name = in.readUTF();\n String description = in.readUTF();\n short width = in.readShort();\n short height = in.readShort();\n short minplayer = in.readShort();\n short maxplayer = in.readShort();\n short[] bgimage = new short[PREVIEW_IMAGE_SIZE * PREVIEW_IMAGE_SIZE];\n for (int i = 0; i < PREVIEW_IMAGE_SIZE * PREVIEW_IMAGE_SIZE; i++) {\n bgimage[i] = in.readShort();\n }\n ;\n Date date = null;\n if (type == MapType.SAVED_SINGLE) {\n long datetime = in.readLong();\n date = new Date(datetime);\n }\n return new MapFileHeader(type, name, description, width, height, minplayer, maxplayer, date, bgimage);\n } catch (Throwable t) {\n if (t instanceof IOException) {\n throw (IOException) t;\n } else {\n throw new IOException(t);\n }\n }\n}\n"
"public NewAccount createAccount() {\n String userID = userIDField.getText();\n char[] password = passField.getPassword();\n char[] password2 = pass2Field.getPassword();\n String server = serverField.getText();\n int port = 5222;\n try {\n port = Integer.parseInt(portField.getText());\n } catch (NumberFormatException e) {\n }\n if (new String(password).equals(new String(password2))) {\n boolean result = createJabberAccount(server, 5222, userID, new String(password));\n if (result == true) {\n return new NewAccount(getCompleteUserID(userID, server), password, server, port);\n }\n } else {\n showErrorMessage(Resources.getString(\"String_Node_Str\"));\n }\n return null;\n}\n"
"public void onSubscriptionsChanged(final Collection<String> subscriptions) {\n RedditSubredditManager.getInstance(context, user).getSubreddits(subscriptions, TimestampBound.ANY, new RequestResponseHandler<HashMap<String, RedditSubreddit>, SubredditRequestFailure>() {\n\n public void onRequestFailed(SubredditRequestFailure failureReason) {\n onError(failureReason.asError(context));\n }\n public void onRequestSuccess(HashMap<String, RedditSubreddit> result, long timeCached) {\n adapter.setSubreddits(result.values());\n }\n });\n if (loadingView != null)\n loadingView.setDone(R.string.download_done);\n}\n"
"public static void addLockAndWriteColumnToScan(Column column, Scan scan) {\n if (!(scan.getFamilyMap().containsKey(ColumnUtil.LOCK_FAMILY_NAME) && scan.getFamilyMap().get(ColumnUtil.LOCK_FAMILY_NAME) == null)) {\n Column lockColumn = ColumnUtil.getLockColumn(column);\n scan.addColumn(lockColumn.getFamily(), lockColumn.getQualifier());\n }\n Column writeColumn = ColumnUtil.getPutColumn(column);\n scan.addColumn(writeColumn.getFamily(), writeColumn.getQualifier());\n Column deleteColumn = ColumnUtil.getDeleteColumn(column);\n scan.addColumn(deleteColumn.getFamily(), deleteColumn.getQualifier());\n}\n"
"protected ViewModel onValidSubmit(HttpServletRequest request, HttpServletResponse response, Form form) throws Exception {\n String password = form.getFieldValue(\"String_Node_Str\");\n Application application = (Application) request.getAttribute(Application.class.getName());\n String sptoken = form.getFieldValue(\"String_Node_Str\");\n if (isJsonPreferred(request, response)) {\n Map<String, Object> model = new HashMap<String, Object>();\n try {\n Account account = application.resetPassword(sptoken, password);\n if (autoLogin) {\n model.put(\"String_Node_Str\", \"String_Node_Str\");\n model.put(\"String_Node_Str\", accountModelFactory.toMap(account, Collections.EMPTY_LIST));\n } else {\n return new DefaultViewModel(\"String_Node_Str\");\n }\n } catch (ResourceException re) {\n model = errorMap.toErrorMap(re.getStormpathError());\n } catch (Exception e) {\n Map<String, Object> exceptionErrorMap = new HashMap<String, Object>();\n exceptionErrorMap.put(\"String_Node_Str\", e.getMessage());\n exceptionErrorMap.put(\"String_Node_Str\", 400);\n DefaultError error = new DefaultError(exceptionErrorMap);\n model = errorMap.toErrorMap(error);\n }\n return new DefaultViewModel(\"String_Node_Str\", model);\n }\n application.resetPassword(sptoken, password);\n String next;\n if (autoLogin) {\n next = loginNextUri;\n } else {\n next = this.nextUri;\n }\n return new DefaultViewModel(next).setRedirect(true);\n}\n"
"public void addSourceConnection(ConnectionFigure sourceConnection) {\n if (!sourceDummyMap.keySet().contains(sourceConnection)) {\n if (connection != null) {\n connection.disposeColors();\n connection = new ConnectionFigure(sourceConnection.getConnection(), sourceConnection.getConnectionProperty(), node);\n connection.setTargetDecoration(null);\n add(connection);\n if (dummy) {\n connection.setAlpha(255);\n connection.setVisible(true);\n } else {\n connection.setVisible(false);\n }\n this.sourceDummyMap.put(sourceConnection, connection);\n newSourceConnections.add(sourceConnection);\n }\n}\n"
"public String toString() {\n return \"String_Node_Str\" + packetQueue.size() + \"String_Node_Str\" + processableQueue.size() + \"String_Node_Str\" + node.master() + \"String_Node_Str\" + node.getMasterAddress();\n}\n"
"public void tearDown() {\n hazelcastFactory.shutdownAll();\n}\n"
"private SortedSet<ContentKey> handleNext(DirectionQuery query) {\n SortedSet<ContentKey> keys = new TreeSet<>();\n Traces traces = ActiveTraces.getLocal();\n DateTime endTime = TimeUtil.time(query.isStable());\n DateTime markerTime = query.getContentKey().getTime().minusMinutes(1);\n int queryItems = Math.min(s3MaxQueryItems, query.getCount());\n do {\n String channel = query.getChannelName();\n ListObjectsRequest request = new ListObjectsRequest().withBucketName(s3BucketName).withPrefix(channel + BATCH_INDEX).withMarker(channel + BATCH_INDEX + TimeUtil.Unit.MINUTES.format(markerTime)).withMaxKeys(queryItems);\n SortedSet<MinutePath> paths = listMinutePaths(channel, request, traces, false);\n if (paths.isEmpty()) {\n return keys;\n }\n for (MinutePath path : paths) {\n getKeysForMinute(channel, path, traces, item -> {\n ContentKey contentKey = ContentKey.fromUrl(item.asText()).get();\n if (contentKey.compareTo(query.getContentKey()) > 0 && keys.size() < query.getCount()) {\n keys.add(contentKey);\n }\n });\n markerTime = path.getTime();\n }\n } while (keys.size() < query.getCount() && markerTime.isBefore(endTime));\n return keys;\n}\n"
"public void accept(String line) {\n if (line.startsWith(\"String_Node_Str\"))\n return;\n double ppm = 40;\n String[] vals = line.split(\"String_Node_Str\");\n try {\n windows.add(new Window(30 - Double.parseDouble(vals[0]) / FacadeTool.pixelsPerMeter, Double.parseDouble(vals[1]) / FacadeTool.pixelsPerMeter, 30 - Double.parseDouble(vals[2]) / FacadeTool.pixelsPerMeter, Double.parseDouble(vals[3]) / FacadeTool.pixelsPerMeter));\n } catch (Throwable th) {\n System.err.println(\"String_Node_Str\" + line + \"String_Node_Str\");\n th.printStackTrace();\n }\n}\n"
"public void decryptAndVerify(Bundle params) {\n params.putBoolean(OpenPgpConstants.PARAMS_REQUEST_ASCII_ARMOR, true);\n InputStream is = getInputstream(true);\n final ByteArrayOutputStream os = new ByteArrayOutputStream();\n OpenPgpApi api = new OpenPgpApi(this, mCryptoServiceConnection.getService());\n api.decryptAndVerify(params, is, os, new MyCallback(true, os, REQUEST_CODE_DECRYPT_AND_VERIFY));\n}\n"
"private Composite createParamSection(ScalarParameter param, Composite parent) {\n boolean isRequired = param.getHandle().isRequired();\n boolean isStringType = param.getHandle().getDataType().equals(DesignChoiceConstants.PARAM_TYPE_STRING);\n if (isRequired) {\n isRequiredParameters.add(param.getHandle().getName());\n }\n Composite container = new Composite(parent, SWT.NONE);\n container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n container.setLayout(layout);\n new Label(container, SWT.NONE).setText(param.getHandle().getDisplayLabel() + \"String_Node_Str\");\n if (param instanceof StaticTextParameter) {\n final StaticTextParameter textParam = (StaticTextParameter) param;\n String value = textParam.getDefaultValue();\n dataTypeCheckList.add(textParam);\n Text input = new Text(container, SWT.BORDER);\n input.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n input.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n Text input = (Text) e.getSource();\n paramValues.put(textParam.getHandle().getName(), input.getText());\n }\n });\n if (paramValues.containsKey(textParam.getHandle().getName())) {\n value = paramValues.get(textParam.getHandle().getName()).toString();\n }\n if (value != null) {\n input.setText(value);\n }\n } else if (param instanceof RadioParameter) {\n final RadioParameter radioParameter = (RadioParameter) param;\n Object value = null;\n try {\n value = radioParameter.converToDataType(radioParameter.getDefaultValue());\n } catch (BirtException e) {\n }\n if (paramValues.containsKey(radioParameter.getHandle().getName())) {\n value = paramValues.get(radioParameter.getHandle().getName());\n }\n List list = radioParameter.getValueList();\n if (!isRequired) {\n list.add(InputParameterDialog.nullValueChoice);\n }\n for (int i = 0; i < list.size(); i++) {\n if (i > 0) {\n new Label(container, SWT.NONE);\n }\n IParameterSelectionChoice choice = (IParameterSelectionChoice) list.get(i);\n Button button = new Button(container, SWT.RADIO);\n button.setText(choice.getLabel());\n button.setData(choice.getValue());\n if (choice.getValue() != null && choice.getValue().equals(value)) {\n button.setSelection(true);\n } else if (value == null && choice.getLabel().equals(NULL_VALUE_STR)) {\n button.setSelection(true);\n }\n button.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n Button button = (Button) e.getSource();\n paramValues.put(radioParameter.getHandle().getName(), button.getData());\n }\n });\n }\n } else if (param instanceof ListingParameter) {\n final ListingParameter listParam = (ListingParameter) param;\n Object value = null;\n try {\n value = listParam.converToDataType(listParam.getDefaultValue());\n } catch (BirtException e) {\n }\n if (paramValues.containsKey(listParam.getHandle().getName())) {\n value = paramValues.get(listParam.getHandle().getName());\n if (value != null) {\n listParam.setSelectionValue(value.toString());\n }\n }\n Combo combo = new Combo(container, SWT.BORDER);\n combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n List list = new ArrayList();\n if (isStringType && !isRequired) {\n list.add(blankValueChoice);\n list.addAll(listParam.getValueList());\n } else {\n list = listParam.getValueList();\n }\n if (!isRequired) {\n list.add(InputParameterDialog.nullValueChoice);\n }\n for (Iterator iterator = list.iterator(); iterator.hasNext(); ) {\n IParameterSelectionChoice choice = (IParameterSelectionChoice) iterator.next();\n String label = (choice.getLabel() == null ? String.valueOf(choice.getValue()) : choice.getLabel());\n if (label != null) {\n combo.add(label);\n combo.setData(label, choice.getValue());\n }\n }\n if (value == null && !isRequired) {\n combo.select(combo.getItemCount() - 1);\n } else {\n for (int i = 0; i < combo.getItemCount(); i++) {\n if (combo.getData(combo.getItem(i)).equals(value)) {\n combo.select(i);\n break;\n }\n }\n }\n combo.addSelectionListener(new SelectionListener() {\n public void widgetDefaultSelected(SelectionEvent e) {\n }\n public void widgetSelected(SelectionEvent e) {\n Combo combo = (Combo) e.getSource();\n paramValues.put(listParam.getHandle().getName(), combo.getData(combo.getItem(combo.getSelectionIndex())));\n if (listParam.getParentGroup() instanceof CascadingParameterGroup) {\n CascadingParameterGroup group = (CascadingParameterGroup) listParam.getParentGroup();\n if (group.getPostParameter(listParam) != null) {\n try {\n createParameters();\n } catch (RuntimeException e1) {\n e1.printStackTrace();\n }\n }\n }\n }\n });\n }\n return container;\n}\n"
"void addViewUpdateListener(CellID cellID, ViewUpdateListener listener) {\n synchronized (viewUpdateListeners) {\n viewUpdateListeners.put(cellID, new ViewUpdateListenerContainer(cellID, listener));\n }\n}\n"
"public void listChanged(ListEvent<E> listChanges) {\n while (listChanges.nextBlock()) {\n int startIndex = listChanges.getBlockStartIndex();\n int endIndex = listChanges.getBlockEndIndex();\n int changeType = listChanges.getType();\n tableModelEvent.setValues(startIndex, endIndex, changeType);\n fireTableChanged(tableModelEvent);\n }\n}\n"
"public int compare(Location t1, Location t2) {\n if (t1.getTime() > t2.getTime()) {\n return -1;\n }\n if (t2.getTime() > t1.getTime()) {\n return -1;\n }\n return 0;\n}\n"
"private void pushExpressionDefinition(String identifier) {\n if (expressionDefinitions.contains(identifier)) {\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", identifier));\n }\n expressionDefinitions.push(new ExpressionDefinitionContext(identifier));\n}\n"
"public Symbol readIdentifierOrContextVariable(String t) {\n ContextVariableInfo info = ContextVariableInfo.get(predefinedSyms, decider.top_goal, decider.bottom_goal, t);\n if (info.getValue() != null) {\n return info.getValue();\n }\n if (t.charAt(0) == '@') {\n t = t.substring(1);\n }\n if (t.length() < 2 || !Character.isLetter(t.charAt(0))) {\n return null;\n final char letter = Character.toUpperCase(t.charAt(0));\n long number = 1;\n try {\n number = Long.parseLong(t.substring(1));\n } catch (NumberFormatException e) {\n return null;\n }\n return syms.findIdentifier(letter, number);\n}\n"
"private void createSetField(final CtClass ctClass, final XMLStreamReader reader) throws ModelXmlCompilingException {\n createField(ctClass, getStringAttribute(reader, NAME), \"String_Node_Str\");\n}\n"
"public boolean support(QueryParam queryParam) {\n return queryParam instanceof DomainSearchByNsLdhNameParam;\n}\n"
"public void setRelativeFocusedTask(boolean forward, boolean stackTasksOnly, boolean animated, boolean cancelWindowAnimations, int timerIndicatorDuration) {\n Task focusedTask = getFocusedTask();\n int newIndex = mStack.indexOfStackTask(focusedTask);\n if (focusedTask != null) {\n if (stackTasksOnly) {\n List<Task> tasks = mStack.getStackTasks();\n if (mFocusedTask.isFreeformTask()) {\n TaskView tv = getFrontMostTaskView(stackTasksOnly);\n if (tv != null) {\n newIndex = mStack.indexOfStackTask(tv.getTask());\n }\n } else {\n int tmpNewIndex = newIndex + (forward ? -1 : 1);\n if (0 <= tmpNewIndex && tmpNewIndex < tasks.size()) {\n Task t = tasks.get(tmpNewIndex);\n if (!t.isFreeformTask()) {\n newIndex = tmpNewIndex;\n }\n }\n }\n } else {\n int taskCount = mStack.getTaskCount();\n newIndex = (newIndex + (forward ? -1 : 1) + taskCount) % taskCount;\n }\n } else {\n float stackScroll = mStackScroller.getStackScroll();\n ArrayList<Task> tasks = mStack.getStackTasks();\n int taskCount = tasks.size();\n if (forward) {\n for (newIndex = taskCount - 1; newIndex >= 0; newIndex--) {\n float taskP = mLayoutAlgorithm.getStackScrollForTask(tasks.get(newIndex));\n if (Float.compare(taskP, stackScroll) <= 0) {\n break;\n }\n }\n } else {\n for (newIndex = 0; newIndex < taskCount; newIndex++) {\n float taskP = mLayoutAlgorithm.getStackScrollForTask(tasks.get(newIndex));\n if (Float.compare(taskP, stackScroll) >= 0) {\n break;\n }\n }\n }\n }\n if (newIndex != -1) {\n boolean willScroll = setFocusedTask(newIndex, true, true, timerIndicatorDuration);\n if (willScroll && cancelWindowAnimations) {\n EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(null));\n }\n }\n}\n"
"private IValue withElementType(IType type, IType elementType) {\n if (!this.value1.isType(elementType)) {\n return null;\n }\n IValue value2 = this.value2.withType(elementType);\n if (value2 == null) {\n return null;\n }\n this.value1 = value1;\n this.value2 = value2;\n this.type = type;\n this.elementType = elementType;\n return this;\n}\n"
"public void testImportInnerClass() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
"public void changed(File changedFile) {\n synchronized (gfHandlers) {\n try {\n Map<String, String> props = getLoggingProperties();\n if (props == null)\n return;\n Set<String> keys = props.keySet();\n for (String a : keys) {\n if (a.endsWith(\"String_Node_Str\")) {\n String n = a.substring(0, a.lastIndexOf(\"String_Node_Str\"));\n Level l = Level.parse(props.get(a));\n Logger appLogger = logMgr.getLogger(n);\n if (appLogger != null) {\n appLogger.setLevel(l);\n loggerReference.add(appLogger);\n } else if (gfHandlers.containsKey(n)) {\n Handler h = (Handler) gfHandlers.get(n);\n h.setLevel(l);\n } else if (n.equals(\"String_Node_Str\")) {\n Logger logger = Logger.global.getParent();\n Handler[] h = logger.getHandlers();\n for (int i = 0; i < h.length; i++) {\n String name = h[i].toString();\n if (name.contains(\"String_Node_Str\"))\n h[i].setLevel(l);\n }\n }\n } else if (a.equals(SERVER_LOG_FILE_PROPERTY)) {\n if (!props.get(a).equals(serverLogFileDetail)) {\n PropertyChangeEvent pce = new PropertyChangeEvent(this, a, serverLogFileDetail, props.get(a));\n UnprocessedChangeEvents ucel = new UnprocessedChangeEvents(new UnprocessedChangeEvent(pce, \"String_Node_Str\"));\n List<UnprocessedChangeEvents> b = new ArrayList();\n b.add(ucel);\n ucl.unprocessedTransactedEvents(b);\n }\n } else if (a.equals(HANDLER_PROPERTY)) {\n if (!props.get(a).equals(handlerDetail)) {\n generateAttributeChangeEvent(HANDLER_PROPERTY, handlerDetail, props);\n }\n } else if (a.equals(CONSOLEHANDLER_FORMATTER_PROPERTY)) {\n if (!props.get(a).equals(consoleHandlerFormatterDetail)) {\n generateAttributeChangeEvent(CONSOLEHANDLER_FORMATTER_PROPERTY, consoleHandlerFormatterDetail, props);\n }\n } else if (a.equals(GFFILEHANDLER_FORMATTER_PROPERTY)) {\n if (!props.get(a).equals(gffileHandlerFormatterDetail)) {\n generateAttributeChangeEvent(GFFILEHANDLER_FORMATTER_PROPERTY, gffileHandlerFormatterDetail, props);\n }\n } else if (a.equals(ROTATIONTIMELIMITINMINUTES_PROPERTY)) {\n if (!props.get(a).equals(rotationOnTimeLimitInMinutesDetail)) {\n generateAttributeChangeEvent(ROTATIONTIMELIMITINMINUTES_PROPERTY, rotationOnTimeLimitInMinutesDetail, props);\n }\n } else if (a.equals(FLUSHFREQUENCY_PROPERTY)) {\n if (!props.get(a).equals(flushFrequencyDetail)) {\n generateAttributeChangeEvent(FLUSHFREQUENCY_PROPERTY, flushFrequencyDetail, props);\n }\n } else if (a.equals(FILEHANDLER_LIMIT_PROPERTY)) {\n if (!props.get(a).equals(filterHandlerDetails)) {\n generateAttributeChangeEvent(FILEHANDLER_LIMIT_PROPERTY, filterHandlerDetails, props);\n }\n } else if (a.equals(LOGTOCONSOLE_PROPERTY)) {\n if (!props.get(a).equals(logToConsoleDetail)) {\n generateAttributeChangeEvent(LOGTOCONSOLE_PROPERTY, logToConsoleDetail, props);\n }\n } else if (a.equals(ROTATIONLIMITINBYTES_PROPERTY)) {\n if (!props.get(a).equals(rotationInTimeLimitInBytesDetail)) {\n generateAttributeChangeEvent(ROTATIONLIMITINBYTES_PROPERTY, rotationInTimeLimitInBytesDetail, props);\n }\n } else if (a.equals(USESYSTEMLOGGING_PROPERTY)) {\n if (!props.get(a).equals(useSystemLoggingDetail)) {\n generateAttributeChangeEvent(USESYSTEMLOGGING_PROPERTY, useSystemLoggingDetail, props);\n }\n } else if (a.equals(FILEHANDLER_COUNT_PROPERTY)) {\n if (!props.get(a).equals(fileHandlerCountDetail)) {\n generateAttributeChangeEvent(FILEHANDLER_COUNT_PROPERTY, fileHandlerCountDetail, props);\n }\n } else if (a.equals(RETAINERRORSSTATICTICS_PROPERTY)) {\n if (!props.get(a).equals(retainErrorsStaticticsDetail)) {\n generateAttributeChangeEvent(RETAINERRORSSTATICTICS_PROPERTY, retainErrorsStaticticsDetail, props);\n }\n } else if (a.equals(LOG4J_VERSION_PROPERTY)) {\n if (!props.get(a).equals(log4jVersionDetail)) {\n generateAttributeChangeEvent(LOG4J_VERSION_PROPERTY, log4jVersionDetail, props);\n }\n } else if (a.equals(MAXHISTORY_FILES_PROPERTY)) {\n if (!props.get(a).equals(maxHistoryFilesDetail)) {\n generateAttributeChangeEvent(MAXHISTORY_FILES_PROPERTY, maxHistoryFilesDetail, props);\n }\n } else if (a.equals(ROTATIONONDATECHANGE_PROPERTY)) {\n if (!props.get(a).equals(rotationOnDateChangeDetail)) {\n generateAttributeChangeEvent(ROTATIONONDATECHANGE_PROPERTY, rotationOnDateChangeDetail, props);\n }\n } else if (a.equals(FILEHANDLER_PATTERN_PROPERTY)) {\n if (!props.get(a).equals(fileHandlerPatternDetail)) {\n generateAttributeChangeEvent(FILEHANDLER_PATTERN_PROPERTY, fileHandlerPatternDetail, props);\n }\n } else if (a.equals(FILEHANDLER_FORMATTER_PROPERTY)) {\n if (!props.get(a).equals(fileHandlerFormatterDetail)) {\n generateAttributeChangeEvent(FILEHANDLER_FORMATTER_PROPERTY, fileHandlerFormatterDetail, props);\n }\n } else if (a.equals(LOGFORMAT_DATEFORMAT_PROPERTY)) {\n if (!props.get(a).equals(logFormatDateFormatDetail)) {\n generateAttributeChangeEvent(LOGFORMAT_DATEFORMAT_PROPERTY, logFormatDateFormatDetail, props);\n }\n }\n }\n logger.log(Level.INFO, \"String_Node_Str\");\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"String_Node_Str\", e);\n }\n }\n}\n"
"public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attr) throws IOException {\n if (dir.getFileName().toString().charAt(0) == '_' || !isResource(dir)) {\n return FileVisitResult.SKIP_SUBTREE;\n }\n return FileVisitResult.CONTINUE;\n}\n"
"public void updateLimits(CacheLimits cacheLimits) {\n if (cacheLimits == null)\n return;\n maxFullGeocacheLimit = cacheLimits.getMaxGeocacheCount();\n Editor editor = mPreferences.edit();\n if (currentFullGeocacheLimit > cacheLimits.getCurrentCacheCount() || (currentFullGeocacheLimit == 0 && cacheLimits.getCurrentCacheCount() > 0)) {\n currentFullGeocacheLimit = cacheLimits.getCurrentCacheCount();\n Calendar c = Calendar.getInstance();\n c.add(Calendar.MINUTE, (int) fullGeocacheLimitPeriod);\n renewFullGeocacheLimit = c.getTime();\n editor.putLong(PrefConstants.RESTRICTION__MAX_FULL_GEOCACHE_LIMIT, maxFullGeocacheLimit);\n editor.putLong(PrefConstants.RESTRICTION__CURRENT_FULL_GEOCACHE_LIMIT, currentFullGeocacheLimit);\n editor.putLong(PrefConstants.RESTRICTION__RENEW_FULL_GEOCACHE_LIMIT, renewFullGeocacheLimit.getTime());\n } else {\n currentFullGeocacheLimit = cacheLimits.getCurrentCacheCount();\n editor.putLong(PrefConstants.RESTRICTION__MAX_FULL_GEOCACHE_LIMIT, maxFullGeocacheLimit);\n editor.putLong(PrefConstants.RESTRICTION__CURRENT_FULL_GEOCACHE_LIMIT, currentFullGeocacheLimit);\n }\n editor.putBoolean(PrefConstants.RESTRICTION__PREMIUM_MEMBER, maxFullGeocacheLimit > 1000);\n editor.apply();\n}\n"
"public void setDefaultGroup(PermissionGroup group, String worldName) {\n ConfigurationSection groups = this.permissions.getConfigurationSection(\"String_Node_Str\");\n String defaultGroupProperty = \"String_Node_Str\";\n if (worldName != null) {\n defaultGroupProperty = buildPath(\"String_Node_Str\", worldName, defaultGroupProperty);\n }\n for (Map.Entry<String, Object> entry : groups.getValues(false).entrySet()) {\n if (entry.getValue() instanceof ConfigurationSection) {\n ConfigurationSection groupSection = (ConfigurationSection) entry.getValue();\n groupSection.set(defaultGroupProperty, false);\n if (!entry.getValue().equals(group.getName())) {\n groupSection.set(defaultGroupProperty, null);\n } else {\n groupSection.set(defaultGroupProperty, true);\n }\n }\n }\n this.save();\n}\n"
"public static <ModelClass extends Model> void loadFromCursor(ModelClass model, Cursor cursor) {\n TableStructure<ModelClass> tableStructure = FlowManager.getManagerForTable(model.getClass()).getTableStructureForClass((Class<ModelClass>) model.getClass());\n Set<Field> fields = tableStructure.getColumns();\n for (Field field : fields) {\n try {\n Object value = getModelValueFromCursor(cursor, tableStructure, field, tableStructure.getColumnName(field), field.getType());\n if (value != null) {\n field.setAccessible(true);\n field.set(model, value);\n }\n } catch (IllegalArgumentException e) {\n FlowLog.logError(e);\n } catch (IllegalAccessException e) {\n FlowLog.logError(e);\n } catch (SecurityException e) {\n FlowLog.logError(e);\n }\n }\n}\n"
"public XDR send(XDR out, int xid) {\n super.send(out, xid);\n out.writeBoolean(true);\n if (postOpDirAttr == null) {\n postOpDirAttr = new Nfs3FileAttributes();\n }\n postOpDirAttr.serialize(out);\n if (getStatus() == Nfs3Status.NFS3_OK) {\n out.writeLongAsHyper(cookieVerf);\n for (EntryPlus3 f : dirListPlus.getEntries()) {\n out.writeBoolean(true);\n f[i].seralize(out);\n }\n out.writeBoolean(false);\n out.writeBoolean(dirListPlus.getEof());\n }\n return out;\n}\n"
"public static Object getOuter(Object object) {\n Class clazz = object.getClass();\n if (!isInner(clazz)) {\n return null;\n }\n if (object instanceof Inner) {\n return ((Inner) object).getOuter();\n }\n Field field = _outers.get(clazz);\n if (field == null) {\n Class dclazz = clazz.getDeclaringClass();\n for (Field ofield : clazz.getDeclaredFields()) {\n if (ofield.isSynthetic() && ofield.getType() == eclazz && ofield.getName().startsWith(\"String_Node_Str\")) {\n field = ofield;\n break;\n }\n }\n field.setAccessible(true);\n _outers.put(clazz, field);\n }\n try {\n return field.get(object);\n } catch (IllegalAccessException e) {\n return null;\n }\n}\n"
"public ClassDefinition readClassDumpRecord(Map<Integer, ClassDefinition> loadedClasses) throws IOException {\n int objectId = readInt(in);\n ClassDefinition cls = loadedClasses.get(objectId);\n if (cls == null) {\n throw new IllegalStateException(\"String_Node_Str\" + objectId);\n }\n cls.setObjectId(objectId);\n cls.setStackTraceSerial(readInt(in));\n cls.setSuperClassObjectId(readInt(in));\n cls.setClassLoaderObjectId(readInt(in));\n cls.setSignersObjectId(readInt(in));\n cls.setProtectionDomainObjectId(readInt(in));\n skip(in, 8);\n cls.setInstanceSize(readInt(in));\n short constantCount = readShort(in);\n List<ConstantField> constantFields = constantCount > 0 ? new ArrayList<ConstantField>() : null;\n cls.setConstantFields(constantFields);\n for (int i = 0; i < constantCount; i++) {\n short poolIndex = readShort(in);\n BasicType type = BasicType.fromType(readByte(in));\n byte[] value = read(in, type.size);\n constantFields.add(new ConstantField(poolIndex, type, value));\n }\n short staticCount = readShort(in);\n ArrayList<StaticField> staticFields = staticCount > 0 ? new ArrayList<StaticField>() : null;\n cls.setStaticFields(staticFields);\n for (int i = 0; i < staticCount; i++) {\n int nameId = readInt(in);\n BasicType type = BasicType.fromType(readByte(in));\n byte[] value = read(in, type.size);\n staticFields.add(new StaticField(type, value, nameId));\n }\n short fieldCount = readShort(in);\n ArrayList<InstanceField> instanceFields = fieldCount > 0 ? new ArrayList<InstanceField>() : null;\n cls.setInstanceFields(instanceFields);\n for (int i = 0; i < fieldCount; i++) {\n int nameId = readInt(in);\n BasicType type = BasicType.fromType(readByte(in));\n instanceFields.add(new InstanceField(type, nameId));\n }\n return cls;\n}\n"
"private static void processQueryMode(LearningProblem lp, ReasoningService rs) {\n logger.info(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n String queryStr = \"String_Node_Str\";\n do {\n System.out.print(\"String_Node_Str\");\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n queryStr = input.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (!queryStr.equals(\"String_Node_Str\")) {\n Description concept = null;\n boolean parsedCorrectly = true;\n try {\n concept = KBParser.parseConcept(queryStr);\n } catch (ParseException e1) {\n e1.printStackTrace();\n System.err.println(\"String_Node_Str\");\n parsedCorrectly = false;\n } catch (TokenMgrError e) {\n e.printStackTrace();\n System.err.println(\"String_Node_Str\");\n parsedCorrectly = false;\n }\n if (parsedCorrectly) {\n SortedSet<NamedClass> occurringConcepts = new TreeSet<NamedClass>(new ConceptComparator());\n occurringConcepts.addAll(Helper.getAtomicConcepts(concept));\n SortedSet<ObjectProperty> occurringRoles = new TreeSet<ObjectProperty>(new RoleComparator());\n occurringRoles.addAll(Helper.getAtomicRoles(concept));\n for (NamedClass ac : rs.getAtomicConcepts()) occurringConcepts.remove(ac);\n for (ObjectProperty ar : rs.getAtomicRoles()) occurringRoles.remove(ar);\n boolean nonExistingConstructs = false;\n if (occurringConcepts.size() != 0 || occurringRoles.size() != 0) {\n System.out.println(\"String_Node_Str\");\n if (occurringConcepts.size() > 0)\n System.out.println(\"String_Node_Str\" + occurringConcepts);\n if (occurringRoles.size() > 0)\n System.out.println(\"String_Node_Str\" + occurringRoles);\n nonExistingConstructs = true;\n }\n if (!nonExistingConstructs) {\n if (!queryStr.startsWith(\"String_Node_Str\") && (queryStr.contains(\"String_Node_Str\") || queryStr.contains(\"String_Node_Str\"))) {\n System.out.println(\"String_Node_Str\");\n }\n System.out.println(\"String_Node_Str\" + concept + \"String_Node_Str\");\n Set<Individual> result = null;\n result = rs.retrieval(concept);\n System.out.println(\"String_Node_Str\" + result.size() + \"String_Node_Str\" + result);\n Score score = lp.computeScore(concept);\n System.out.println(score);\n }\n }\n }\n } while (!queryStr.equals(\"String_Node_Str\"));\n}\n"
"private void addProximityListener(boolean live) {\n ProximityComponentMO component = cellRef.get().getComponent(ProximityComponentMO.class);\n if (component == null) {\n logger.warning(\"String_Node_Str\" + \"String_Node_Str\" + cellID);\n return;\n }\n if (proximityListenerRef != null) {\n ConeOfSilenceProximityListener proximityListener = proximityListenerRef.get();\n proximityListener.remove();\n component.removeProximityListener(proximityListener);\n }\n if (live == true) {\n BoundingVolume[] boundingVolume = new BoundingVolume[1];\n if (boundsType.equals(COSBoundsType.CELL_BOUNDS)) {\n boundingVolume[0] = cellRef.get().getLocalBounds();\n logger.warning(\"String_Node_Str\" + boundingVolume[0]);\n } else if (boundsType.equals(COSBoundsType.BOX)) {\n boundingVolume[0] = new BoundingBox(new Vector3f(), bounds.getX(), bounds.getY(), bounds.getZ());\n logger.warning(\"String_Node_Str\" + boundingVolume[0]);\n } else {\n boundingVolume[0] = new BoundingSphere(bounds.getX(), new Vector3f());\n logger.warning(\"String_Node_Str\" + boundingVolume[0]);\n }\n proximityListener = new ConeOfSilenceProximityListener(cellRef.get(), name, outsideAudioVolume);\n component.addProximityListener(proximityListener, boundingVolume);\n } else {\n proximityListener = null;\n }\n}\n"
"private Object getConnection() {\n if (isBoundTransaction() && this.connection != null) {\n return this.connection;\n }\n Jedis conn = factory.getConnection();\n if (settings != null) {\n for (String key : settings.keySet()) {\n conn.configSet(key, settings.get(key).toString());\n }\n }\n if (resource != null && resource.isActive()) {\n return ((RedisTransaction) resource).bindResource(conn);\n } else {\n this.connection = conn;\n return conn;\n }\n}\n"
"public synchronized void onSettingsChanged(Uri uri) {\n if (uri == null || uri.equals(DISPLAY_CABC)) {\n updateCABCMode();\n }\n if (uri == null || uri.equals(DISPLAY_AUTO_CONTRAST)) {\n updateAutoContrast();\n }\n if (uri == null || uri.equals(DISPLAY_COLOR_ENHANCE)) {\n updateColorEnhancement();\n }\n if (uri == null || uri.equals(DISPLAY_COLOR_ADJUSTMENT)) {\n copyColors(getColorAdjustment(), mColorAdjustment);\n updateColorAdjustment();\n }\n}\n"
"boolean isNextToRightBound() {\n return (dragView.getLeft() - getDragViewMarginRight()) > getWidth() * QUARTER;\n}\n"
"public static void merge(ViewInstanceJoin conjunction) {\n ListMultimap<String, ViewInstance> nameToInstance = conjunction.getInstancesGroupedByParent();\n for (Entry<String, Collection<ViewInstance>> entry : nameToInstance.asMap().entrySet()) {\n List<ViewInstance> list = (List<ViewInstance>) entry.getValue();\n eliminateSelfJoins(list);\n }\n}\n"
"public Object runSave() {\n thresholdSpinner = new JSpinner(new SpinnerNumberModel(threshold, 0, 360, 1));\n thresholdSpinner.setToolTipText(\"String_Node_Str\");\n btLoadBackgroundImage = new JButton(JDL.L(\"String_Node_Str\", \"String_Node_Str\"));\n btCreateBackgroundFilter = new JButton(JDL.L(\"String_Node_Str\", \"String_Node_Str\"));\n Color defColor = Color.WHITE;\n if (dialogImage != null)\n defColor = new Color(dialogImage.getColor());\n colorChooser = new JColorChooser(defColor);\n btColorChoose = new JButton(JDL.L(\"String_Node_Str\", \"String_Node_Str\"));\n btPreview = new JButton(JDL.L(\"String_Node_Str\", \"String_Node_Str\"));\n if (dialogImage == null)\n btPreview.setEnabled(false);\n colorModeBox = new JComboBox(ColorMode.cModes);\n colorModeBox.setSelectedItem(new ColorMode(colorMode));\n btFinished = new JButton(JDL.L(\"String_Node_Str\", \"String_Node_Str\"));\n return null;\n}\n"
"public void testListValue() throws IOException {\n if (typeOfMap == TypeOfMap.STATELESS)\n return;\n ChronicleMapBuilder<String, List<String>> builder = ChronicleMapBuilder.of(String.class, (Class<List<String>>) (Class) List.class).valueMarshaller(ListMarshaller.of(new StringMarshaller(8)));\n try (ChronicleMap<String, List<String>> map = newInstance(builder)) {\n map.put(\"String_Node_Str\", Collections.<String>emptyList());\n map.put(\"String_Node_Str\", asList(\"String_Node_Str\"));\n List<String> list1 = new ArrayList<>();\n try (WriteContext wc = map.acquireUsingLocked(\"String_Node_Str\", list1)) {\n list1.add(\"String_Node_Str\");\n assertEquals(Arrays.asList(\"String_Node_Str\"), list1);\n }\n List<String> list2 = new ArrayList<>();\n try (ReadContext rc = map.getUsingLocked(\"String_Node_Str\", list2)) {\n assertTrue(rc.present());\n assertEquals(Arrays.asList(\"String_Node_Str\"), list2);\n }\n try (ReadContext rc = map.getUsingLocked(\"String_Node_Str\", list2)) {\n assertTrue(rc.present());\n list2.add(\"String_Node_Str\");\n assertEquals(Arrays.asList(\"String_Node_Str\", \"String_Node_Str\"), list2);\n }\n try (WriteContext wc = map.acquireUsingLocked(\"String_Node_Str\", list1)) {\n list1.add(\"String_Node_Str\");\n assertEquals(Arrays.asList(\"String_Node_Str\", \"String_Node_Str\"), list1);\n }\n try (ReadContext rc = map.getUsingLocked(\"String_Node_Str\", list2)) {\n assertTrue(rc.present());\n assertEquals(Arrays.asList(\"String_Node_Str\", \"String_Node_Str\"), list2);\n }\n }\n}\n"
"public void applySettings() {\n InstallSettings.SCAN_FILES.setValue(true);\n Collection<File> manage;\n Collection<File> exclude = new HashSet<File>();\n if (manualButton.isSelected()) {\n LibraryManagerModel model = treeTable.getLibraryModel();\n manage = model.getRootChildrenAsFiles();\n exclude = model.getAllExcludedSubfolders();\n } else {\n manage = AutoDirectoryManageConfig.getDefaultManagedDirectories(libraryData);\n exclude = Collections.emptySet();\n }\n libraryData.setManagedOptions(manage, exclude, libraryData.getManagedCategories());\n}\n"
"protected void buildLogicContainerProperties(IContent content, LayoutContext context) {\n IStyle style = content.getStyle();\n if (style != null && !style.isEmpty()) {\n boxStyle = new BoxStyle();\n IStyle cs = content.getComputedStyle();\n Color color = PropertyUtil.getColor(cs.getProperty(IStyle.STYLE_BACKGROUND_COLOR));\n if (color != null) {\n boxStyle.setBackgroundColor(color);\n }\n String url = style.getBackgroundImage();\n if (url != null) {\n boxStyle.setBackgroundImage(new BackgroundImageInfo(getImageUrl(url), cs.getProperty(IStyle.STYLE_BACKGROUND_REPEAT), getDimensionValue(cs.getProperty(IStyle.STYLE_BACKGROUND_POSITION_X), 100), getDimensionValue(cs.getProperty(IStyle.STYLE_BACKGROUND_POSITION_Y), 100), 0, 0));\n }\n if (!isInInlineStacking) {\n pageBreakAfter = cs.getProperty(IStyle.STYLE_PAGE_BREAK_AFTER);\n pageBreakInside = cs.getProperty(IStyle.STYLE_PAGE_BREAK_INSIDE);\n pageBreakBefore = cs.getProperty(IStyle.STYLE_PAGE_BREAK_BEFORE);\n }\n } else {\n hasStyle = false;\n boxStyle = BoxStyle.DEFAULT;\n localProperties = LocalProperties.DEFAULT;\n }\n bookmark = content.getBookmark();\n action = content.getHyperlinkAction();\n}\n"
"public void buildStyleSheet(StyleSheet styleSheet) {\n int baseSize = editorPane.getFont().getSize();\n String rule = String.format(\"String_Node_Str\", Math.round((double) baseSize * 7 / 6), Math.round((double) baseSize * 5 / 6));\n styleSheet.addRule(rule);\n rule = String.format(\"String_Node_Str\", baseSize * 2);\n styleSheet.addRule(rule);\n rule = String.format(\"String_Node_Str\", Math.round(baseSize * 1.5));\n styleSheet.addRule(rule);\n rule = String.format(\"String_Node_Str\", Math.round(baseSize * 1.17));\n styleSheet.addRule(rule);\n rule = String.format(\"String_Node_Str\", baseSize);\n styleSheet.addRule(rule);\n rule = String.format(\"String_Node_Str\", Math.round(baseSize * 10 / 6));\n styleSheet.addRule(rule);\n}\n"
"private static SqlParameterSource prepareUserParameterSource(User user) {\n return new MapSqlParameterSource(\"String_Node_Str\", trimToNull(user.getProvider())).addValue(\"String_Node_Str\", trimToNull(user.getUsername())).addValue(\"String_Node_Str\", trimToNull(user.getEmail())).addValue(\"String_Node_Str\", trimToNull(user.getDisplayName())).addValue(\"String_Node_Str\", user.getEnabled()).addValue(\"String_Node_Str\", user.getEmailNotification()).addValue(\"String_Node_Str\", ObjectUtils.firstNonNull(user.getMemberSince(), new Date())).addValue(\"String_Node_Str\", user.getSkipOwnNotifications()).addValue(\"String_Node_Str\", user.getUserMetadataRaw());\n}\n"
"public void incrementalUpdate(OutputStream outputStream, OutputStream rowLensStream, int originalRowCount, Map<String, StringTable> stringTable, Map<String, IIndexSerializer> map, List<IBinding> cacheRequestMap) throws DataException {\n Set resultSetNameSet = ResultSetUtil.getRsColumnRequestMap(cacheRequestMap);\n try {\n int rowCount = originalRowCount + this.diskBasedResultSet.getCount();\n int colCount = this.rsMeta.getFieldCount();\n IOUtil.writeInt(outputStream, rowCount);\n if (outputStream instanceof RAOutputStream)\n ((RAOutputStream) outputStream).seek(((RAOutputStream) outputStream).length());\n if (rowLensStream instanceof RAOutputStream)\n ((RAOutputStream) rowLensStream).seek(((RAOutputStream) rowLensStream).length());\n DataOutputStream dos = new DataOutputStream(outputStream);\n DataOutputStream rlos = new DataOutputStream(rowLensStream);\n int currIndex = this.currResultIndex;\n this.reset();\n long offset = 4;\n if (outputStream instanceof RAOutputStream)\n offset = ((RAOutputStream) outputStream).length();\n for (int i = 0; i < rowCount - originalRowCount; i++) {\n IOUtil.writeLong(rlos, offset);\n offset += ResultSetUtil.writeResultObject(dos, this.diskBasedResultSet.nextRow(), colCount, resultSetNameSet, stringTable, map, i + originalRowCount);\n }\n this.reset();\n this.moveTo(currIndex);\n } catch (IOException e) {\n throw new DataException(ResourceConstants.RD_SAVE_ERROR, e);\n }\n}\n"
"private void refreshJobEditorTitle(Item item) {\n String label = item.getProperty().getLabel();\n label = label.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n IWorkbenchPage activePage = getActivePage();\n IEditorReference[] editorReferences = activePage.getEditorReferences();\n if (editorReferences != null) {\n for (IEditorReference editorPart : editorReferences) {\n IEditorInput editorInput = editorPart.getEditor(false).getEditorInput();\n if (editorInput instanceof ProcessEditorInput) {\n ProcessEditorInput processInput = (ProcessEditorInput) editorInput;\n ProcessItem jobItem = (ProcessItem) processInput.getItem();\n MultiPageTalendEditor jobEditor = (MultiPageTalendEditor) editorPart.getEditor(false);\n if (jobItem.getProperty().getLabel().equals(label)) {\n jobEditor.refreshName();\n break;\n }\n }\n }\n }\n}\n"
"public static void main(String[] args) {\n new RobobuggyLogicNotification(\"String_Node_Str\", RobobuggyMessageLevel.NOTE);\n try {\n JNISetup.setupJNI();\n } catch (NoSuchFieldException | SecurityException | IllegalAccessException | IllegalArgumentException e1) {\n e1.printStackTrace();\n }\n RobobuggyConfigFile.loadConfigFile();\n new RobobuggyLogicNotification(\"String_Node_Str\", RobobuggyMessageLevel.NOTE);\n robot = TransistorDataCollection.getInstance();\n new RobobuggyLogicNotification(\"String_Node_Str\", RobobuggyMessageLevel.NOTE);\n Gui.getInstance();\n new RobobuggyLogicNotification(\"String_Node_Str\", RobobuggyMessageLevel.NOTE);\n robot.startNodes();\n try {\n new JettyServer();\n new RobobuggyLogicNotification(\"String_Node_Str\", RobobuggyMessageLevel.NOTE);\n } catch (Exception e) {\n e.printStackTrace();\n }\n}\n"
"private boolean canResolveTextDirection() {\n switch(getRawTextDirection()) {\n case TEXT_DIRECTION_INHERIT:\n return (mParent != null) && mParent.canResolveTextDirection();\n default:\n return true;\n }\n}\n"
"public void onRefreshStarted() {\n if (!isAdded()) {\n return;\n }\n if (!NetworkUtils.checkConnection(getActivity())) {\n setRefreshing(false);\n updateEmptyView(EmptyViewMessageType.NETWORK_ERROR);\n return;\n }\n if (hasLocalChanges()) {\n confirmRequestPosts();\n } else {\n requestPosts(false);\n }\n}\n"
"public void tearDown() throws Exception {\n for (Object val : col.values()) {\n em.remove(val);\n }\n em.close();\n emf.close();\n if (cli != null) {\n cli.dropTable(\"String_Node_Str\");\n cli.stopCluster(\"String_Node_Str\");\n }\n LuceneCleanupUtilities.cleanLuceneDirectory(\"String_Node_Str\");\n}\n"
"public static CustomTimeFormat createIfSupported(final String[] options) {\n if (options == null || options.length == 0 || options.length > 1) {\n return null;\n }\n final FixedFormat type = FixedFormat.lookup(options[0]);\n return type == null ? null : new CustomTimeFormat(type);\n}\n"
"public void render() throws Exception {\n setupRenderOption();\n IContentEmitter emitter = createContentEmitter();\n String format = executionContext.getOutputFormat();\n IReportExecutor executor = new ReportletExecutor(executionContext, offset);\n executor = createRenderExtensionExecutor(executor);\n executor = new SuppressDuplciateReportExecutor(executor);\n executor = new LocalizedReportExecutor(executionContext, executor);\n executionContext.setExecutor(executor);\n initializeContentEmitter(emitter);\n IReportLayoutEngine layoutEngine = createReportLayoutEngine(pagination, renderOptions);\n layoutEngine.setPageHandler(new LayoutPageHandler(((HTMLReportLayoutEngine) layoutEngine).getContext()));\n layoutEngine.setLocale(executionContext.getLocale());\n if (ExtensionManager.PAPER_SIZE_PAGINATION.equals(pagination)) {\n emitter = new LayoutEngine(executor, ((HTMLReportLayoutEngine) layoutEngine).getContext(), emitter, renderOptions, executionContext, getDocumentTotalPage());\n }\n startRender();\n IReportContent report = executor.execute();\n emitter.start(report);\n layoutEngine.layout(executor, report, emitter, false);\n layoutEngine.close();\n emitter.end(report);\n closeRender();\n executor.close();\n outputPageCount = layoutEngine.getPageCount();\n}\n"
"public Response getBuildPlanInstance(final String plan, final String instance, final UriInfo uriInfo) {\n return this.planService.getPlanInstance(plan, instance, uriInfo, csarId, serviceTemplate, null, PLAN_TYPE);\n}\n"
"protected Hashtable buildFieldTypes() {\n Hashtable fieldTypeMapping;\n fieldTypeMapping = new Hashtable();\n fieldTypeMapping.put(Boolean.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Integer.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Long.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Float.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Double.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Short.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Byte.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.math.BigInteger.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.math.BigDecimal.class, new FieldTypeDefinition(\"String_Node_Str\", 38));\n fieldTypeMapping.put(Number.class, new FieldTypeDefinition(\"String_Node_Str\", 38));\n fieldTypeMapping.put(String.class, new FieldTypeDefinition(\"String_Node_Str\", DEFAULT_VARCHAR_SIZE));\n fieldTypeMapping.put(Character.class, new FieldTypeDefinition(\"String_Node_Str\", 1));\n fieldTypeMapping.put(Byte[].class, new FieldTypeDefinition(\"String_Node_Str\", 64000));\n fieldTypeMapping.put(Character[].class, new FieldTypeDefinition(\"String_Node_Str\", 64000));\n fieldTypeMapping.put(byte[].class, new FieldTypeDefinition(\"String_Node_Str\", 64000));\n fieldTypeMapping.put(char[].class, new FieldTypeDefinition(\"String_Node_Str\", 64000));\n fieldTypeMapping.put(java.sql.Blob.class, new FieldTypeDefinition(\"String_Node_Str\", 64000));\n fieldTypeMapping.put(java.sql.Clob.class, new FieldTypeDefinition(\"String_Node_Str\", 64000));\n fieldTypeMapping.put(java.sql.Date.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.sql.Time.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(java.sql.Timestamp.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n return fieldTypeMapping;\n}\n"
"private void parseNewChangeCommand(final ReceiveCommand cmd) {\n if (newChange != null) {\n reject(cmd, \"String_Node_Str\");\n return;\n }\n newChange = cmd;\n String destBranchName = cmd.getRefName().substring(NEW_CHANGE.length());\n if (!destBranchName.startsWith(Constants.R_REFS)) {\n destBranchName = Constants.R_HEADS + destBranchName;\n }\n try {\n destBranch = db.branches().get(new Branch.NameKey(proj.getNameKey(), destBranchName));\n } catch (OrmException e) {\n log.error(\"String_Node_Str\" + proj + \"String_Node_Str\" + destBranchName, e);\n reject(cmd, \"String_Node_Str\");\n return;\n }\n if (destBranch == null) {\n String n = destBranchName;\n if (n.startsWith(Constants.R_HEADS))\n n = n.substring(Constants.R_HEADS.length());\n reject(cmd, \"String_Node_Str\" + n + \"String_Node_Str\");\n return;\n }\n try {\n final RevWalk walk = rp.getRevWalk();\n final RevFlag SIDE_NEW = walk.newFlag(\"String_Node_Str\");\n final RevFlag SIDE_HAVE = walk.newFlag(\"String_Node_Str\");\n final RevFlagSet COMMON = new RevFlagSet();\n COMMON.add(SIDE_NEW);\n COMMON.add(SIDE_HAVE);\n walk.carry(COMMON);\n walk.reset();\n walk.sort(RevSort.TOPO);\n walk.sort(RevSort.REVERSE, true);\n final RevCommit tip = walk.parseCommit(newChange.getNewId());\n tip.add(CONNECTED);\n walk.markStart(tip);\n final List<RevCommit> heads = new ArrayList<RevCommit>();\n for (final Ref r : rp.getAdvertisedRefs().values()) {\n if (isHead(r) || isTag(r)) {\n try {\n final RevCommit h = walk.parseCommit(r.getObjectId());\n walk.markUninteresting(h);\n heads.add(h);\n } catch (IOException e) {\n continue;\n }\n }\n }\n if (!heads.isEmpty()) {\n while (walk.next() != null) {\n }\n boolean isConnected = false;\n for (final RevCommit c : heads) {\n if (c.has(CONNECTED)) {\n isConnected = true;\n break;\n }\n }\n if (!isConnected) {\n reject(newChange, \"String_Node_Str\");\n return;\n }\n }\n } catch (IOException e) {\n newChange.setResult(Result.REJECTED_MISSING_OBJECT);\n log.error(\"String_Node_Str\", e);\n return;\n }\n}\n"
"public boolean canTriviallyCast(JReferenceType type, JReferenceType qType) {\n JClassType jlo = program.getTypeJavaLangObject();\n if (type == qType || qType == jlo) {\n return true;\n }\n if (type instanceof JArrayType) {\n JArrayType aType = (JArrayType) type;\n if (qType instanceof JArrayType) {\n JArrayType qaType = (JArrayType) qType;\n JType leafType = aType.getLeafType();\n JType qLeafType = qaType.getLeafType();\n int dims = aType.getDims();\n int qDims = qaType.getDims();\n if (dims > qDims && (qLeafType == jlo || qLeafType instanceof JNullType)) {\n return true;\n }\n if (dims == qDims) {\n if (leafType instanceof JReferenceType && qLeafType instanceof JReferenceType) {\n return canTriviallyCast((JReferenceType) leafType, (JReferenceType) qLeafType);\n }\n }\n }\n } else if (type instanceof JClassType) {\n JClassType cType = (JClassType) type;\n if (qType instanceof JClassType) {\n return isSuperClass(cType, (JClassType) qType);\n } else if (qType instanceof JInterfaceType) {\n return getOrCreate(implementsMap, cType).contains(qType);\n }\n } else if (type instanceof JInterfaceType) {\n JInterfaceType iType = (JInterfaceType) type;\n if (qType instanceof JInterfaceType) {\n return getOrCreate(superInterfaceMap, iType).contains(qType);\n }\n } else if (type instanceof JNullType) {\n return true;\n }\n return false;\n}\n"
"private void scrollChanged(int firstVisibleItem) {\n if (adapter == null || adapter.getCount() == 0 || !areHeadersSticky)\n return;\n firstVisibleItem = getFixedFirstVisibleItem(firstVisibleItem);\n long newHeaderId = adapter.delegate.getHeaderId(firstVisibleItem);\n if (currentHeaderId == null || currentHeaderId != newHeaderId) {\n headerPosition = firstVisibleItem;\n header = adapter.delegate.getHeaderView(headerPosition, header, this);\n measureHeader();\n }\n currentHeaderId = newHeaderId;\n final int childCount = getChildCount();\n if (childCount != 0) {\n WrapperView viewToWatch = null;\n int watchingChildDistance = 99999;\n for (int i = 0; i < childCount; i++) {\n WrapperView child = (WrapperView) super.getChildAt(i);\n int secondChildDistance;\n if (clippingToPadding) {\n secondChildDistance = Math.abs((child.getTop() - getPaddingTop()) - headerHeight);\n } else {\n secondChildDistance = Math.abs(child.getTop() - headerHeight);\n }\n if (!viewToWatch.hasHeader() || (child.hasHeader() && secondChildDistance < firstChildDistance)) {\n viewToWatch = child;\n }\n }\n if (viewToWatch.hasHeader()) {\n if (firstVisibleItem == 0 && super.getChildAt(0).getTop() > 0 && !clippingToPadding) {\n headerBottomPosition = 0;\n } else {\n if (clippingToPadding) {\n headerBottomPosition = Math.min(viewToWatch.getTop(), headerHeight + getPaddingTop());\n headerBottomPosition = headerBottomPosition < getPaddingTop() ? headerHeight + getPaddingTop() : headerBottomPosition;\n } else {\n headerBottomPosition = Math.min(viewToWatch.getTop(), headerHeight);\n headerBottomPosition = headerBottomPosition < 0 ? headerHeight : headerBottomPosition;\n }\n }\n } else {\n headerBottomPosition = headerHeight;\n if (clippingToPadding) {\n headerBottomPosition += getPaddingTop();\n }\n }\n }\n int top = clippingToPadding ? getPaddingTop() : 0;\n for (int i = 0; i < childCount; i++) {\n WrapperView child = (WrapperView) super.getChildAt(i);\n if (child.hasHeader()) {\n View childHeader = child.header;\n if (child.getTop() < top) {\n childHeader.setVisibility(View.INVISIBLE);\n } else {\n childHeader.setVisibility(View.VISIBLE);\n }\n }\n }\n}\n"
"public void onStreamReceived(Session session, Stream stream) {\n if (contains(jsEvents, sessionPreface + \"String_Node_Str\") || contains(componentEvents, sessionPreface + \"String_Node_Str\")) {\n ConcurrentHashMap<String, Stream> mSubscriberStreams = sharedState.getSubscriberStreams();\n mSubscriberStreams.put(stream.getStreamId(), stream);\n WritableMap streamInfo = prepareStreamMap(stream);\n sendEventMap(this.getReactApplicationContext(), sessionPreface + \"String_Node_Str\", streamInfo);\n }\n Log.i(TAG, \"String_Node_Str\" + stream.getStreamId() + \"String_Node_Str\" + session.getSessionId());\n}\n"
"public void enterTelephoneNumber() {\n AppController.storeString(Constants.TELEPHONE, null);\n phoneConfirimationCodeEt.setHint(getString(R.string.hint_telephone_field));\n phoneConfirimationCodeEt.setText(\"String_Node_Str\");\n login_get_verification_tv.setText(getString(R.string.sign_up));\n secondBtnTv.setText(\"String_Node_Str\");\n secondBtnLay.setOnClickListener(enterVerificationCodeState);\n loginGetVerificationBtn.setOnClickListener(enterPhoneNumber);\n}\n"
"public int update(Uri uri, ContentValues values, String where, String[] whereArgs) {\n SQLiteDatabase db = mOpenDbHelper.getWritableDatabase();\n int affected;\n switch(sUriMatcher.match(uri)) {\n case VIDEOS:\n affected = getDb().update(VIDEO_TABLE_NAME, values, where, whereArgs);\n break;\n case VIDEO_ID:\n String videoId = uri.getPathSegments().get(1);\n affected = db.update(VIDEO_TABLE_NAME, values, BaseColumns._ID + \"String_Node_Str\" + videoId + (!TextUtils.isEmpty(where) ? \"String_Node_Str\" + where + ')' : \"String_Node_Str\"), whereArgs);\n break;\n default:\n throw new IllegalArgumentException(\"String_Node_Str\" + uri);\n }\n getContext().getContentResolver().notifyChange(uri, null);\n return affected;\n}\n"
"private void start(int udpPort, LinkListener listener) {\n if (this.linkConn == null || udpPort != this.linkPort) {\n if (isStarted.get()) {\n stop();\n }\n this.linkConn = new UdpConnection(handler, udpPort, UDP_BUFFER_SIZE, true, 42);\n this.linkConn.setIpConnectionListener(this);\n this.udpPort = udpPort;\n }\n Log.d(TAG, \"String_Node_Str\");\n handler.removeCallbacks(reconnectTask);\n isStarted.set(true);\n this.linkConn.connect();\n this.linkListener = listener;\n}\n"
"public void customize() {\n OsDetails osDetails = getMachine().getMachineDetails().getOsDetails();\n List<String> commands = Lists.newLinkedList();\n String vmArgsTemplate = processTemplate(entity.getConfig(RiakNode.RIAK_VM_ARGS_TEMPLATE_URL));\n DynamicTasks.queueIfPossible(newScript(CUSTOMIZING).body.append(\"String_Node_Str\").newTask());\n DynamicTasks.queueIfPossible(SshEffectorTasks.put(getRunDir() + \"String_Node_Str\").contents(Streams.newInputStreamWithContents(vmArgsTemplate)).machine(getMachine()).summary(\"String_Node_Str\"));\n commands.add(sudo(\"String_Node_Str\" + getRunDir() + \"String_Node_Str\"));\n commands.add(sudo(\"String_Node_Str\" + getRunDir() + \"String_Node_Str\" + getEtcDir()));\n commands.add(sudo(format(\"String_Node_Str\", getPrivateIp(), getAppConfigLocation())));\n if (osDetails.isMac())\n commands.add(\"String_Node_Str\");\n else if (osDetails.isLinux()) {\n commands.add(sudo(\"String_Node_Str\" + getRunDir() + \"String_Node_Str\"));\n }\n commands.add(sudo(\"String_Node_Str\" + getRunDir() + \"String_Node_Str\" + getEtcDir()));\n commands.add(sudo(format(\"String_Node_Str\", getPrivateIp(), getAppConfigLocation())));\n ScriptHelper customizeScript = newScript(CUSTOMIZING).failOnNonZeroResultCode().body.append(commands);\n if (!isRiakOnPath) {\n Map<String, String> newPathVariable = ImmutableMap.of(\"String_Node_Str\", sbinPath);\n log.warn(\"String_Node_Str\", getShellEnvironment(), newPathVariable);\n customizeScript.environmentVariablesReset(newPathVariable);\n }\n customizeScript.execute();\n entity.setAttribute(RiakNode.RIAK_NODE_NAME, format(\"String_Node_Str\", getHostname()));\n}\n"
"private static void setDatabaseValueForjavadb(DatabaseConnection connection, INode node, String repositoryValue) {\n if (\"String_Node_Str\".equals(repositoryValue)) {\n String value = getParameterValue(connection, node, \"String_Node_Str\");\n if (value != null) {\n connection.setSID(value);\n }\n }\n if (\"String_Node_Str\".equals(param.getRepositoryValue())) {\n String value = getParameterValue(connection, node, param);\n if (value != null) {\n connection.setDBRootPath(value);\n }\n }\n}\n"
"public Set<QueryableEntry> getSubRecordsBetween(Comparable from, Comparable to) {\n beforeRead();\n try {\n MultiResultSet results = new MultiResultSet();\n if (attributeType != null) {\n indexStore.getSubRecordsBetween(results, convert(from), convert(to));\n }\n return results;\n } finally {\n afterRead();\n }\n return results;\n}\n"
"public static ColumnChunkProperties get(ColumnPath path, PrimitiveTypeName type, CompressionCodecName codec, Set<Encoding> encodings) {\n return properties.canonicalize(new ColumnChunkProperties(codec, path, type, encodings));\n}\n"
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n if (factory.isUserReadOnlyOnCurrentProject()) {\n canWork = false;\n }\n if (canWork) {\n Object o = selection.getFirstElement();\n RepositoryNode node = (RepositoryNode) o;\n switch(node.getType()) {\n case SIMPLE_FOLDER:\n case SYSTEM_FOLDER:\n ERepositoryObjectType nodeType = (ERepositoryObjectType) node.getProperties(EProperties.CONTENT_TYPE);\n if (nodeType != CamelRepositoryNodeType.repositoryBeansType) {\n canWork = false;\n }\n if (node.getObject() != null && node.getObject().isDeleted()) {\n canWork = false;\n }\n break;\n default:\n canWork = false;\n }\n if (canWork && !ProjectManager.getInstance().isInCurrentMainProject(node)) {\n canWork = false;\n }\n }\n setEnabled(canWork);\n}\n"
"public void widgetSelected(SelectionEvent e) {\n int buttonId = ((Integer) e.widget.getData()).intValue();\n if (IDialogConstants.OK_ID != buttonId)\n return;\n String server = dialog.getServer();\n String username = dialog.getUsernameText();\n String password = dialog.getPasswordText();\n String universe = dialog.getUniverse();\n dialog.close();\n Authenticator.setDefault(null);\n try {\n XtentisServerObjectsRetriever retriever = new XtentisServerObjectsRetriever(server, username, password, universe);\n new ProgressMonitorDialog(view.getSite().getShell()).run(true, true, retriever);\n if (!retriever.isExistUniverse()) {\n return;\n }\n TreeParent serverRoot = retriever.getServerRoot();\n TreeParent invisibleRoot = view.getTreeContentProvider().getInvisibleRoot();\n TreeObject[] serverRoots = invisibleRoot.getChildren();\n boolean found = false;\n for (int i = 0; i < serverRoots.length; i++) {\n if (serverRoots[i].getDisplayName().equals(serverRoot.getDisplayName())) {\n if (serverRoots[i].getWsKey().equals(serverRoot.getWsKey())) {\n if (serverRoots[i].getUser().getUniverse().equalsIgnoreCase(serverRoot.getUser().getUniverse())) {\n found = true;\n ((TreeParent) serverRoots[i]).synchronizeWith(serverRoot);\n }\n }\n }\n }\n if (!found)\n invisibleRoot.addChild(serverRoot);\n view.getViewer().refresh();\n view.getViewer().expandToLevel(serverRoot, 1);\n } catch (InterruptedException ie) {\n return;\n } catch (InvocationTargetException ite) {\n ite.printStackTrace();\n MessageDialog.openError(dialog.getShell(), \"String_Node_Str\", \"String_Node_Str\" + ite.getCause().getLocalizedMessage());\n }\n}\n"
"private void generateElementDefinition(StructureDefinition source, ElementDefinition ed, ElementDefinition parent) throws Exception {\n String id = ed.getPath().replace(\"String_Node_Str\", \"String_Node_Str\");\n if (id.length() > 64)\n id = id.substring(0, 64);\n if (!id.contains(\"String_Node_Str\"))\n return;\n if (!ed.hasType())\n return;\n if (Utilities.existsInList(ed.getType().get(0).getCode(), \"String_Node_Str\", \"String_Node_Str\"))\n return;\n StructureDefinition de;\n if (des.containsKey(id)) {\n de = des.get(\"String_Node_Str\" + id);\n de.getSnapshot().getElement().clear();\n de.getExtension().clear();\n } else {\n de = new StructureDefinition();\n de.setId(id);\n des.put(id, de);\n de.setUrl(\"String_Node_Str\" + de.getId());\n if (de.getId().contains(\"String_Node_Str\"))\n definitions.addNs(de.getUrl(), \"String_Node_Str\" + ed.getPath(), definitions.getSrcFile(de.getId().substring(0, de.getId().indexOf(\"String_Node_Str\"))) + \"String_Node_Str\" + de.getId());\n if (dataElements != null)\n dataElements.addEntry().setResource(de).setFullUrl(de.getUrl());\n }\n if (ed.hasBase())\n throw new Exception(\"String_Node_Str\");\n if (!de.hasMeta())\n de.setMeta(new Meta());\n de.getMeta().setLastUpdatedElement(new InstantType(genDate));\n de.setName(ed.getPath());\n de.setStatus(PublicationStatus.DRAFT);\n de.setExperimental(true);\n de.setTitle(de.getName());\n de.setDate(genDate.getTime());\n de.setPublisher(\"String_Node_Str\");\n de.addContact().getTelecom().add(Factory.newContactPoint(ContactPointSystem.URL, \"String_Node_Str\"));\n de.setDescription(\"String_Node_Str\" + ed.getPath());\n de.setPurpose(\"String_Node_Str\");\n de.setFhirVersion(version);\n de.setKind(StructureDefinitionKind.LOGICAL);\n de.setAbstract(false);\n de.setType(de.getName());\n de.setBaseDefinition(\"String_Node_Str\");\n de.setDerivation(TypeDerivationRule.SPECIALIZATION);\n de.getMapping().addAll(source.getMapping());\n ElementDefinition ted = ed.copy();\n de.getSnapshot().addElement(ted);\n}\n"
"public void returnResource(final T resource) {\n try {\n internalPool.returnObject(resource);\n } catch (Exception e) {\n throw new RuntimeException(\"String_Node_Str\", e);\n }\n}\n"
"private void hideNotificationContent() {\n if (!mContentShowing) {\n return;\n }\n mContentShowing = false;\n final View contentView = mPeekView.findViewById(R.id.notification_content);\n LinearLayout contentTextLayout = (LinearLayout) contentView.findViewById(R.id.content_layout);\n contentTextLayout.animate().translationY(50).setInterpolator(new AccelerateInterpolator()).start();\n contentView.animate().alpha(0f).setInterpolator(new AccelerateInterpolator()).setListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n mPeekView.removeView(contentView);\n }\n }).start();\n contentTextView.animate().translationY(50).setInterpolator(new AccelerateInterpolator()).start();\n mNotificationText.animate().alpha(1f).setInterpolator(new AccelerateInterpolator()).start();\n if (mClockTextView != null) {\n mClockTextView.animate().alpha(1f).setInterpolator(new AccelerateInterpolator()).start();\n }\n}\n"
"public static BakedQuad replaceShade(BakedQuad quad, int shade) {\n int[] data = quad.getVertexData();\n int step = data.length / 4;\n data = Arrays.copyOf(data, data.length);\n boolean colour = quad instanceof IColoredBakedQuad;\n for (int i = 0; i < 4; i++) {\n data[i * ARRAY_SIZE + SHADE] = shade;\n }\n return colour ? new ColoredBakedQuad(data, quad.getTintIndex(), quad.getFace()) : new BakedQuad(data, quad.getTintIndex(), quad.getFace());\n}\n"
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xmlCollectionReferenceMapping.usesSingleNode()) {\n XPathFragment groupingFragment = marshalRecord.openStartGroupingElements(namespaceResolver);\n if (xPathFragment.isAttribute()) {\n marshalRecord.attribute(xPathFragment, namespaceResolver, (String) value);\n marshalRecord.closeStartGroupingElements(groupingFragment);\n } else {\n marshalRecord.closeStartGroupingElements(groupingFragment);\n marshalRecord.characters((String) value);\n }\n } else {\n QName schemaType;\n Object fieldValue = xmlCollectionReferenceMapping.buildFieldValue(value, xmlField, session);\n if (fieldValue == null) {\n return false;\n }\n schemaType = getSchemaType(xmlField, fieldValue, session);\n String stringValue = getValueToWrite(schemaType, fieldValue, (XMLConversionManager) session.getDatasourcePlatform().getConversionManager(), marshalRecord);\n if (stringValue != null) {\n marshalRecord.openStartElement(xPathFragment, namespaceResolver);\n XPathFragment nextFragment = xPathFragment.getNextFragment();\n if (nextFragment.isAttribute()) {\n marshalRecord.attribute(nextFragment, namespaceResolver, stringValue);\n marshalRecord.closeStartElement();\n } else {\n marshalRecord.closeStartElement();\n marshalRecord.characters(stringValue);\n }\n marshalRecord.endElement(xPathFragment, namespaceResolver);\n }\n }\n return true;\n}\n"
"public void ifClientSendsCookieRetrieveAndResetIt() {\n Http.Cookie mockCookie = mock(Http.Cookie.class);\n doReturn(\"String_Node_Str\").when(mockCookie).value();\n Http.Request mockRequest = mock(Http.Request.class);\n doReturn(mockCookie).when(mockRequest).cookie(BridgeConstants.SESSION_TOKEN_HEADER);\n Http.Context context = mock(Http.Context.class);\n when(context.request()).thenReturn(mockRequest);\n Http.Response mockResponse = mock(Http.Response.class);\n when(context.response()).thenReturn(mockResponse);\n Http.Context.current.set(context);\n BaseController controller = new SchedulePlanController();\n controller.setBridgeConfig(mockConfig);\n String token = controller.getSessionToken();\n assertEquals(\"String_Node_Str\", token);\n verify(mockResponse).setCookie(BridgeConstants.SESSION_TOKEN_HEADER, \"String_Node_Str\", BridgeConstants.BRIDGE_SESSION_EXPIRE_IN_SECONDS, \"String_Node_Str\", BridgeConfigFactory.getConfig().get(\"String_Node_Str\"), false, false);\n}\n"
"public Object coerceToBean(Object val, Component comp, BindContext ctx) {\n if (val != null) {\n final Tree tree = (Tree) comp;\n final TreeModel<?> model = tree.getModel();\n if (model != null) {\n final String varnm = (String) ((Treeitem) val).getAttribute(BinderImpl.VAR);\n if (varnm != null) {\n return ((Treeitem) val).getAttribute(varnm);\n } else {\n return ((Treeitem) val).getValue();\n }\n } else {\n return ((Treeitem) val).getValue();\n }\n }\n return null;\n}\n"
"public void saveWorldInfoWithPlayer(WorldInfo worldInformation, NBTTagCompound tagCompound) {\n NBTTagCompound nbttagcompound1 = worldInformation.cloneNBTCompound(tagCompound);\n NBTTagCompound nbttagcompound2 = new NBTTagCompound();\n nbttagcompound2.setTag(\"String_Node_Str\", nbttagcompound1);\n if (this.worldDirectory.getParentFile() == null || (FMLCommonHandler.instance().getSide() == Side.CLIENT && this.worldDirectory.getParentFile().equals(FMLCommonHandler.instance().getSavesDirectory()))) {\n net.minecraftforge.fml.common.FMLCommonHandler.instance().handleWorldDataSave((SaveHandler) (Object) this, worldInformation, nbttagcompound2);\n }\n try {\n File file1 = new File(this.worldDirectory, \"String_Node_Str\");\n File file2 = new File(this.worldDirectory, \"String_Node_Str\");\n File file3 = new File(this.worldDirectory, \"String_Node_Str\");\n CompressedStreamTools.writeCompressed(nbttagcompound2, new FileOutputStream(file1));\n if (file2.exists()) {\n file2.delete();\n }\n file3.renameTo(file2);\n if (file3.exists()) {\n file3.delete();\n }\n file1.renameTo(file3);\n if (file1.exists()) {\n file1.delete();\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n try {\n File spongeFile1 = new File(this.worldDirectory, \"String_Node_Str\");\n File spongeFile2 = new File(this.worldDirectory, \"String_Node_Str\");\n File spongeFile3 = new File(this.worldDirectory, \"String_Node_Str\");\n CompressedStreamTools.writeCompressed(((IMixinWorldInfo) worldInformation).getSpongeRootLevelNbt(), new FileOutputStream(spongeFile1));\n if (spongeFile2.exists()) {\n spongeFile2.delete();\n }\n spongeFile3.renameTo(spongeFile2);\n if (spongeFile3.exists()) {\n spongeFile3.delete();\n }\n spongeFile1.renameTo(spongeFile3);\n if (spongeFile1.exists()) {\n spongeFile1.delete();\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n}\n"
"private void checkPlanScoping(TestPlanArtifactInfo parent, Model model) {\n if (parent.isScoped()) {\n Artifact parentPlan = getPlan(parent);\n Set<Artifact> children = parentPlan.getDependents();\n for (Artifact child : children) {\n if (PLAN_TYPE.equals(child.getType())) {\n String childPlanName = child.getName();\n String unscopedChildPlanName = parent.getChildPlan().getName();\n String expectedChildPlanName = model.getScopeName() + SCOPE_SEPARATOR + unscopedChildPlanName;\n assertEquals(expectedChildPlanName, childPlanName);\n }\n }\n }\n}\n"
"public void testWrongLocationType() {\n given().param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").when().get(getEndPointName()).then().body(\"String_Node_Str\", is(IsochronesErrorCodes.INVALID_PARAMETER_VALUE)).statusCode(400);\n}\n"
"protected IPath getItemFullPath(TDQSourceFileItem item) {\n String statePathStr = null;\n if (item.getState() != null) {\n statePathStr = item.getState().getPath();\n if (!statePathStr.equals(\"String_Node_Str\")) {\n statePathStr = \"String_Node_Str\" + statePathStr;\n }\n }\n String fileName = item.getName() + \"String_Node_Str\" + item.getProperty().getVersion() + \"String_Node_Str\" + item.getExtension();\n IPath typedPath = ResourceManager.getSourceFileFolder().getLocation();\n IPath fullpath = typedPath.append(statePathStr + \"String_Node_Str\" + fileName);\n return fullpath;\n}\n"
"public void onAttach(Activity host) {\n super.onAttach(host);\n router = MediaRouter.getInstance(host);\n provider = new DemoRouteProvider(getActivity());\n router.addProvider(provider);\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Player damagedPlayer = game.getPlayer(targetPointer.getFirst(game, source));\n if (damagedPlayer == null) {\n return false;\n }\n FilterCard filter = new FilterCard(\"String_Node_Str\" + damagedPlayer.getName() + \"String_Node_Str\");\n filter.add(new OwnerIdPredicate(damagedPlayer.getId()));\n filter.add(Predicates.or(new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY)));\n Target target = new TargetCardInGraveyard(filter);\n if (controller.chooseTarget(Outcome.PlayForFree, target, source, game)) {\n Card card = game.getCard(target.getFirstTarget());\n if (card != null) {\n you.cast(card.getSpellAbility(), game, true);\n game.addEffect(new WrexialReplacementEffect(card.getId()), source);\n }\n }\n }\n return false;\n}\n"
"private void fillChildren(Node<TYPE> topNode, int currentDepth, int maxDepth) {\n int arity = topNode.getArity();\n if (currentDepth < maxDepth - 1) {\n for (int i = 0; i < arity; i++) {\n int randomIndex = (int) Math.floor(Math.random() * model.getFunctions().size());\n Node<TYPE> child = (Node<TYPE>) model.getFunctions().get(randomIndex).clone();\n topNode.setChild(child, i);\n fillChildren(child, (currentDepth + 1), maxDepth);\n }\n } else {\n for (int i = 0; i < arity; i++) {\n int randomIndex = (int) Math.floor(Math.random() * model.getTerminals().size());\n Node<TYPE> child = (Node<TYPE>) model.getTerminals().get(randomIndex).clone();\n topNode.setChild(child, i);\n }\n }\n}\n"
"public void removeAll(Set<Data> keys, int completionId) {\n final long now = Clock.currentTimeMillis();\n final Set<Data> localKeys = new HashSet<Data>(keys.isEmpty() ? records.keySet() : keys);\n try {\n deleteAllCacheEntry(localKeys);\n } finally {\n final Set<Data> keysToClean = new HashSet<Data>(keys.isEmpty() ? records.keySet() : keys);\n for (Data key : keysToClean) {\n eventsBatchingEnabled = true;\n final R record = records.get(key);\n if (localKeys.contains(key) && record != null) {\n final boolean isExpired = processExpiredEntry(key, record, now);\n if (!isExpired) {\n deleteRecord(key, IGNORE_COMPLETION);\n if (isStatisticsEnabled()) {\n statistics.increaseCacheRemovals(1);\n }\n }\n keys.add(key);\n } else {\n keys.remove(key);\n }\n eventsBatchingEnabled = false;\n hasExpiringEntry = false;\n }\n int orderKey = keys.hashCode();\n publishBatchedEvents(name, CacheEventType.REMOVED, orderKey);\n if (isEventsEnabled()) {\n publishEvent(createCacheCompleteEvent(completionId));\n }\n }\n}\n"
"private static List<PFile> extractUsingRegExp(PFile pFile) {\n List<PFile> result = new ArrayList<PFile>();\n PArchive pArchive = pFile.getPArchive();\n Map<String, File> files = extractFilesForRegExp(pArchive.getFile(), pArchive.getType(), pFile.getRelativePath());\n for (String relativePath : files.keySet()) {\n PFile aClone = ModelUtils.clonePFile(pFile, relativePath, files.get(relativePath));\n result.add(aClone);\n }\n if (result.size() == 0) {\n result.add(pFile);\n }\n return result;\n}\n"
"public void updatePatientVisitsData(boolean errorOccurred) {\n final List<Fragment> fragments = getSupportFragmentManager().getFragments();\n for (final Fragment fragment : fragments) {\n this.runOnUiThread(new Runnable() {\n public void run() {\n recreateFragmentView(fragment);\n }\n });\n }\n }\n stopLoader(errorOccurred);\n}\n"
"public boolean performDrop(Object transfer, Object target, int operation, DNDLocation location) {\n if (transfer instanceof Object[]) {\n if (((Object[]) transfer).length == 1) {\n return performDrop(((Object[]) transfer)[0], target, operation, location);\n }\n return result;\n }\n for (Iterator iterator = this.dropAdapterList.iterator(); iterator.hasNext(); ) {\n IDropAdapter dropAdapter = (IDropAdapter) iterator.next();\n int result = dropAdapter.canDrop(transfer, target, operation, location);\n if (result == LOGIC_TRUE)\n return dropAdapter.performDrop(transfer, target, operation, location);\n }\n return false;\n}\n"
"public void testPublishWithDiffMerge() throws OseeCoreException {\n modifyOption(\"String_Node_Str\", true);\n modifyOption(\"String_Node_Str\", rootBranch);\n modifyOption(\"String_Node_Str\", LinkType.INTERNAL_DOC_REFERENCE_USE_PARAGRAPH_NUMBER);\n List<Artifact> artifacts = new ArrayList<Artifact>();\n Artifact updateDoc = ArtifactQuery.getArtifactFromId(docFolder.getArtId(), updateBranch);\n artifacts.add(updateDoc);\n renderer.publish(singleTemplate, null, artifacts, options);\n String resultPath = renderer.getStringOption(IRenderer.RESULT_PATH_RETURN);\n Assert.assertNotEquals(String.format(\"String_Node_Str\", method.getQualifiedTestName()), resultPath, null);\n String contents;\n try {\n contents = getFileAsString(resultPath);\n String mergeContent1 = \"String_Node_Str\";\n String mergeContent2 = \"String_Node_Str\";\n Assert.assertTrue(\"String_Node_Str\", contents.contains(mergeContent1) || contents.contains(mergeContent2));\n Assert.assertTrue(\"String_Node_Str\", contents.contains(\"String_Node_Str\"));\n basicDocumentCheck(contents, \"String_Node_Str\", true);\n } catch (IOException ex) {\n }\n}\n"
"public double getMin() {\n if (lowMap.isEmpty()) {\n return Double.NEGATIVE_INFINITY;\n } else if (lowMap.isEmpty()) {\n return highMap.firstKey();\n } else {\n return lowMap.firstKey();\n }\n}\n"
"public EditPart createEditPart(EditPart context, Object model) {\n EditPart editPart = new DummyEditpart(model);\n if (model instanceof ReportItemHandle && !((ReportItemHandle) model).isValidLayoutForCompoundElement()) {\n return new DestroyEditPart(model);\n } else if (model instanceof ReportDesignHandle) {\n return new ReportDesignEditPart(model);\n } else if (model instanceof MasterPageHandle) {\n return new MasterPageEditPart(model);\n } else if (model instanceof ImageHandle) {\n return new ImageEditPart(model);\n }\n if (model instanceof TableHandle) {\n return new TableEditPart(model);\n }\n if (model instanceof CellHandle) {\n return new TableCellEditPart(model);\n }\n if (model instanceof AutoTextHandle) {\n return new AutoTextEditPart(model);\n }\n if (model instanceof LabelHandle) {\n return new LabelEditPart(model);\n }\n if (model instanceof TextItemHandle) {\n return new TextEditPart(model);\n }\n if (model instanceof DataItemHandle) {\n return new DataEditPart(model);\n }\n if (model instanceof TextDataHandle) {\n return new TextDataEditPart(model);\n }\n if (model instanceof ReportElementModel && (((ReportElementModel) model).getElementHandle() instanceof SimpleMasterPageHandle)) {\n return new AreaEditPart(model);\n }\n if (model instanceof GridHandle) {\n return new GridEditPart(model);\n }\n if (model instanceof ListHandle) {\n return new ListEditPart(model);\n }\n if (model instanceof ListBandProxy) {\n return new ListBandEditPart(model);\n }\n if (model instanceof TemplateElementHandle) {\n return new PlaceHolderEditPart(model);\n }\n IExtension extension = new IExtension.Stub() {\n public String getExtendsionIdentify() {\n return GuiExtensionManager.DESIGNER_FACTORY;\n }\n };\n Object obj = GuiExtensionManager.doExtension(extension, model);\n if (obj != null) {\n return (EditPart) obj;\n }\n return editPart;\n}\n"
"private static boolean configureVimParentKeymap(final String path, final Document document, final boolean showNotification) throws IOException {\n final Element rootElement = document.getRootElement();\n final String parentKeymapName = rootElement.getAttributeValue(\"String_Node_Str\");\n final VimKeymapDialog vimKeymapDialog = new VimKeymapDialog(parentKeymapName);\n vimKeymapDialog.show();\n if (vimKeymapDialog.getExitCode() != DialogWrapper.OK_EXIT_CODE) {\n return false;\n }\n rootElement.removeAttribute(\"String_Node_Str\");\n final Keymap selectedKeymap = vimKeymapDialog.getSelectedKeymap();\n final String keymapName = selectedKeymap.getName();\n rootElement.setAttribute(\"String_Node_Str\", keymapName);\n VimPlugin.getInstance().setPreviousKeyMap(keymapName);\n VimKeymapConflictResolveUtil.resolveConflicts(rootElement, selectedKeymap);\n JDOMUtil.writeDocument(document, path, \"String_Node_Str\");\n if (showNotification) {\n Notifications.Bus.notify(new Notification(VimPlugin.IDEAVIM_NOTIFICATION_ID, VimPlugin.IDEAVIM_NOTIFICATION_TITLE, \"String_Node_Str\" + selectedKeymap.getPresentableName(), NotificationType.INFORMATION));\n }\n return true;\n}\n"
"private void copyAttachments() throws GenieException {\n if (this.attachments != null) {\n for (final FileAttachment attachment : this.job.getAttachments()) {\n if (attachment.getName() == null || attachment.getName().isEmpty()) {\n final String msg = \"String_Node_Str\";\n LOG.error(msg);\n throw new GeniePreconditionException(msg);\n }\n if (attachment.getData() == null) {\n final String msg = \"String_Node_Str\";\n LOG.error(msg);\n throw new GeniePreconditionException(msg);\n }\n try (final FileOutputStream output = new FileOutputStream(this.jobDir + File.separator + attachment.getName())) {\n output.write(attachment.getData());\n } catch (final IOException e) {\n final String msg = \"String_Node_Str\" + attachment.getName();\n LOG.error(msg);\n throw new GenieServerException(msg, e);\n }\n }\n }\n}\n"
"public void triggerShot(KeyEvent keyEvent) {\n String keystoke = keyEvent.getText();\n int index = -1;\n String messageString = \"String_Node_Str\";\n switch(keystoke) {\n case \"String_Node_Str\":\n index = 0;\n break;\n case \"String_Node_Str\":\n index = 1;\n break;\n case \"String_Node_Str\":\n index = 2;\n break;\n case \"String_Node_Str\":\n index = 3;\n break;\n case \"String_Node_Str\":\n index = 4;\n break;\n case \"String_Node_Str\":\n index = 5;\n break;\n case \"String_Node_Str\":\n index = 6;\n break;\n case \"String_Node_Str\":\n index = 7;\n break;\n case \"String_Node_Str\":\n index = 8;\n break;\n default:\n index = -1;\n return;\n }\n LOGGER.debug(\"String_Node_Str\" + keystoke);\n int numberOfPositions = 0;\n int numberOfCameras = 0;\n Profile.PairCameraPosition pairCameraPosition = null;\n Profile activeProfile = null;\n List<Camera> cameras = new ArrayList<>();\n try {\n if (profileservice != null) {\n activeProfile = profileservice.getActiveProfile();\n numberOfPositions = activeProfile.getPairCameraPositions().size();\n }\n } catch (ServiceException e) {\n activeProfile = null;\n LOGGER.error(\"String_Node_Str\", e);\n }\n String os = System.getProperty(\"String_Node_Str\");\n try {\n if (cameraHandler != null && !os.startsWith(\"String_Node_Str\")) {\n cameras = cameraHandler.getCameras();\n numberOfCameras = cameras.size();\n }\n } catch (CameraException e) {\n cameras = new ArrayList<>();\n LOGGER.error(\"String_Node_Str\", e);\n }\n if (index >= 0) {\n messageString = \"String_Node_Str\" + index + \"String_Node_Str\";\n } else {\n messageString = \"String_Node_Str\";\n }\n LOGGER.debug(messageString, keystoke);\n if (numberOfPositions > index && index >= 0) {\n messageString = \"String_Node_Str\";\n pairCameraPosition = activeProfile.getPairCameraPositions().get(index);\n int shotType = pairCameraPosition.getShotType();\n Camera camera = pairCameraPosition.getCamera();\n if (shotType == Profile.PairCameraPosition.SHOT_TYPE_MULTIPLE) {\n if (cameras.contains(camera)) {\n cameraHandler.setSerieShot(camera, true);\n LOGGER.debug(\"String_Node_Str\");\n } else {\n LOGGER.debug(\"String_Node_Str\");\n }\n } else if (shotType == Profile.PairCameraPosition.SHOT_TYPE_TIMED) {\n if (cameras.contains(camera)) {\n cameraHandler.setCountdown(camera, 8);\n LOGGER.debug(\"String_Node_Str\");\n } else\n LOGGER.debug(\"String_Node_Str\");\n } else {\n LOGGER.debug(\"String_Node_Str\");\n }\n if (cameras.contains(camera)) {\n cameraHandler.captureImage(camera);\n return;\n } else {\n LOGGER.debug(\"String_Node_Str\");\n return;\n }\n } else if (index >= 0) {\n messageString = \"String_Node_Str\";\n } else {\n messageString = \"String_Node_Str\";\n }\n LOGGER.debug(messageString);\n}\n"
"public IResource getResource() {\n return (IResource) folder;\n}\n"
"public static INodeProvider createProvider(Object object) {\n if (object instanceof ReportDesignHandle) {\n return new ReportDesignNodeProvider();\n }\n if (object instanceof LibraryHandle) {\n return new LibraryNodeProvider();\n } else if (object instanceof ReportElementModel) {\n ReportElementModel model = (ReportElementModel) object;\n DesignElementHandle handle = model.getElementHandle();\n if (handle instanceof ModuleHandle) {\n switch(model.getSlotId()) {\n case ReportDesignHandle.BODY_SLOT:\n return new BodyNodeProvider();\n case ModuleHandle.COMPONENT_SLOT:\n return new ComponentsProvider();\n case ILibraryModel.THEMES_SLOT:\n {\n if (model.getElementHandle() instanceof LibraryHandle) {\n ThemesNodeProvider themesProvider = new ThemesNodeProvider();\n themesProvider.setSorter(new AlphabeticallyComparator());\n return themesProvider;\n }\n StylesNodeProvider provider = new StylesNodeProvider();\n provider.setSorter(new AlphabeticallyComparator());\n return provider;\n }\n case ModuleHandle.PAGE_SLOT:\n return new MasterPagesNodeProvider();\n case ModuleHandle.DATA_SOURCE_SLOT:\n return new DataSourcesNodeProvider();\n case ModuleHandle.PARAMETER_SLOT:\n return new ParametersNodeProvider();\n case ModuleHandle.DATA_SET_SLOT:\n return new DataSetsNodeProvider();\n }\n } else if (handle instanceof TableHandle || handle instanceof TableGroupHandle) {\n return new TableBandProvider();\n } else if (handle instanceof ListHandle || handle instanceof ListGroupHandle) {\n return new ListBandProvider();\n } else if (handle instanceof MasterPageHandle) {\n return new MasterPageBandProvider();\n }\n } else if (object instanceof DesignElementHandle) {\n String elementName = ((DesignElementHandle) object).getDefn().getName();\n IProviderFactory factory = ExtensionPointManager.getInstance().getProviderFactory(elementName);\n if (factory != null) {\n return factory.createProvider(object);\n }\n if (object instanceof CellHandle) {\n return new CellProvider();\n } else if (object instanceof GridHandle) {\n return new GridProvider();\n } else if (object instanceof StyleHandle) {\n return new StyleNodeProvider();\n } else if (object instanceof ListHandle) {\n return new ListProvider();\n } else if (object instanceof TableHandle) {\n return new TableProvider();\n } else if (object instanceof TableGroupHandle || object instanceof ListGroupHandle) {\n return new GroupProvider();\n } else if (object instanceof RowHandle) {\n return new RowProvider();\n } else if (object instanceof DataItemHandle) {\n return new DataProvider();\n } else if (object instanceof LabelHandle) {\n return new LabelProvider();\n } else if (object instanceof MasterPageHandle) {\n return new MasterPageNodeProvider();\n } else if (object instanceof DataSourceHandle) {\n return new DataSourceNodeProvider();\n } else if (object instanceof DataSetHandle) {\n return new DataSetNodeProvider();\n } else if (object instanceof ParameterGroupHandle) {\n if (object instanceof CascadingParameterGroupHandle) {\n return new CascadingParameterGroupNodeProvider();\n }\n return new ParameterGroupNodeProvider();\n } else if (object instanceof ParameterHandle) {\n return new ParameterNodeProvider();\n } else if (object instanceof ThemeHandle) {\n return new ThemeNodeProvider();\n }\n } else if (object instanceof DataSetItemModel) {\n return new DataSetColumnProvider();\n } else if (object instanceof DataSetParameterHandle) {\n return new DataSetParameterProvider();\n } else if (object instanceof EmbeddedImageNode) {\n return new EmbeddedImagesNodeProvider();\n } else if (object instanceof EmbeddedImageHandle) {\n return new EmbeddedImageNodeProvider();\n } else if (object instanceof LibraryNode) {\n return new LibrariesNodeProvider();\n }\n return getDefaultProvider();\n}\n"
"public void setUp() throws Exception {\n this.createTestMetadata();\n MetadataManager.removeInstance(this.getTestConfig());\n CubeManager.removeInstance(this.getTestConfig());\n CubeRealizationManager.removeInstance(this.getTestConfig());\n cubeMgr = CubeManager.getInstance(this.getTestConfig());\n}\n"
"private CacheConnection newConnection() throws DataException {\n CacheConnection conn = new CacheConnection();\n conn.odaConn = ConnectionManager.getInstance().openConnection(driverName, connectionProps, appContext);\n int max = conn.odaConn.getMaxQueries();\n if (max != 0)\n conn.maxStatements = max;\n this.getOdaConnections().add(conn);\n return conn;\n}\n"
"private boolean computeDP(String id, String id2) {\n if (this.doDP == false) {\n return false;\n }\n Logger logger = Logger.getLogger(SmithWatermanGotoh.class.getName());\n logger.setLevel(Level.OFF);\n logger = Logger.getLogger(MatrixLoader.class.getName());\n logger.setLevel(Level.OFF);\n Overlap ovl = this.ovlInfo.get(getOvlName(id, id2));\n jaligner.Sequence s1 = new jaligner.Sequence(this.dataSeq[Integer.parseInt(ovl.id1) - 1].getString().substring(ovl.afirst, ovl.asecond));\n jaligner.Sequence s2 = null;\n if (ovl.isFwd) {\n s2 = new jaligner.Sequence(this.dataSeq[Integer.parseInt(ovl.id2) - 1].toString().substring(ovl.bfirst, ovl.bsecond));\n } else {\n s2 = new jaligner.Sequence(this.dataSeq[Integer.parseInt(ovl.id2) - 1].getReverseCompliment().toString().substring(ovl.bfirst, ovl.bsecond));\n }\n Alignment alignment;\n try {\n alignment = SmithWatermanGotoh.align(s1, s2, MatrixLoader.load(\"String_Node_Str\"), 2f, 1f);\n } catch (MatrixLoaderException e) {\n return false;\n }\n return (AlignmentHashRun.getScoreWithNoTerminalGaps(alignment) > MIN_IDENTITY);\n}\n"
"private long byteBufferToLong(final ByteBuffer byteBuffer) throws IOException {\n long l = 0;\n if (SIZEOFLONG > byteBuffer.limit()) {\n throw new IOException(\"String_Node_Str\" + byteBuffer.limit() + \"String_Node_Str\");\n }\n for (int i = 0; i < SIZEOFLONG; ++i) {\n l |= (byteBuffer.get((SIZEOFLONG - 1) - i) & 0xffL) << (i << 3);\n }\n return l;\n}\n"
"public void processString(String template, Object model, Writer out) {\n if (template == null || template.length() == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (model == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (out == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n try {\n long startTime = 0;\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + template);\n startTime = System.currentTimeMillis();\n }\n Template t = getStringConfig(PATH, template).getTemplate(PATH);\n if (t != null) {\n try {\n t.process(model, out);\n } catch (Throwable err) {\n throw new TemplateException(MSG_ERROR_TEMPLATE_FAIL, new Object[] { err.getMessage() }, err);\n }\n } else {\n throw new TemplateException(MSG_ERROR_NO_TEMPLATE, new Object[] { template });\n }\n } catch (IOException ioerr) {\n throw new TemplateException(MSG_ERROR_TEMPLATE_IO, new Object[] { template }, ioerr);\n }\n}\n"
"public void close(Player player) {\n sessionMap.remove(player);\n}\n"
"private static void initCache(Context context) throws SQLException {\n if (id2schema != null && name2schema != null)\n return;\n synchronized (MetadataSchema.class) {\n if (id2schema == null && name2schema == null) {\n log.info(\"String_Node_Str\");\n HashMap new_id2schema = new HashMap();\n HashMap new_name2schema = new HashMap();\n TableRowIterator tri = DatabaseManager.queryTable(context, \"String_Node_Str\", \"String_Node_Str\");\n try {\n while (tri.hasNext()) {\n TableRow row = tri.next();\n MetadataSchema s = new MetadataSchema(row);\n new_id2schema.put(new Integer(s.schemaID), s);\n new_name2schema.put(s.name, s);\n }\n } finally {\n if (tri != null)\n tri.close();\n }\n } finally {\n if (tri != null)\n tri.close();\n }\n }\n}\n"
"public void deleteMediaFilesForPost(Post post) {\n db.delete(MEDIA_TABLE, \"String_Node_Str\" + post.getLocalTableBlogId() + \"String_Node_Str\" + post.getLocalTablePostId(), null);\n}\n"