content
stringlengths
40
137k
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n Object collection = unmarshalRecord.getContainerInstance(this);\n UnmarshalRecord childRecord = unmarshalRecord.getChildRecord();\n if (null != childRecord) {\n if (!xmlAnyCollectionMapping.usesXMLRoot()) {\n Object objectValue = childRecord.getCurrentObject();\n if (xmlAnyCollectionMapping.getConverter() != null) {\n objectValue = xmlAnyCollectionMapping.getConverter().convertDataValueToObjectValue(objectValue, unmarshalRecord.getSession(), unmarshalRecord.getUnmarshaller());\n }\n unmarshalRecord.addAttributeValue(this, objectValue);\n } else {\n Object childObject = childRecord.getCurrentObject();\n XMLDescriptor workingDescriptor = childRecord.getDescriptor();\n if (workingDescriptor != null) {\n String prefix = xPathFragment.getPrefix();\n if ((prefix == null) && (xPathFragment.getNamespaceURI() != null)) {\n prefix = unmarshalRecord.resolveNamespaceUri(xPathFragment.getNamespaceURI());\n }\n childObject = workingDescriptor.wrapObjectInXMLRoot(childObject, xPathFragment.getNamespaceURI(), xPathFragment.getLocalName(), prefix, false, unmarshalRecord.isNamespaceAware());\n if (xmlAnyCollectionMapping.getConverter() != null) {\n childObject = xmlAnyCollectionMapping.getConverter().convertDataValueToObjectValue(childObject, unmarshalRecord.getSession(), unmarshalRecord.getUnmarshaller());\n }\n unmarshalRecord.addAttributeValue(this, childObject);\n }\n }\n unmarshalRecord.setChildRecord(null);\n } else {\n SAXFragmentBuilder builder = unmarshalRecord.getFragmentBuilder();\n UnmarshalKeepAsElementPolicy keepAsElementPolicy = xmlAnyCollectionMapping.getKeepAsElementPolicy();\n if ((((keepAsElementPolicy == UnmarshalKeepAsElementPolicy.KEEP_UNKNOWN_AS_ELEMENT) || (keepAsElementPolicy == UnmarshalKeepAsElementPolicy.KEEP_ALL_AS_ELEMENT))) && (builder.getNodes().size() > 1)) {\n setOrAddAttributeValueForKeepAsElement(builder, xmlAnyCollectionMapping, xmlAnyCollectionMapping.getConverter(), unmarshalRecord, true, null);\n } else {\n if (xmlAnyCollectionMapping.isMixedContent()) {\n endElementProcessText(unmarshalRecord, xmlAnyCollectionMapping.getConverter(), xPathFragment, null);\n } else {\n unmarshalRecord.resetStringBuffer();\n }\n }\n }\n}\n"
"static final AutoScale computeScale(IDisplayServer xs, OneAxis ax, DataSetIterator dsi, int iType, double dStart, double dEnd, Scale scModel, AxisOrigin axisOrigin, FormatSpecifier fs, RunTimeContext rtc, int direction, double zoomFactor, int iMarginPercent) throws ChartException {\n final Label la = ax.getLabel();\n final int iLabelLocation = ax.getLabelPosition();\n final int iOrientation = ax.getOrientation();\n DataElement oMinimum = scModel.getMin();\n DataElement oMaximum = scModel.getMax();\n final Double oStep = scModel.isSetStep() ? new Double(scModel.getStep()) : null;\n final Integer oStepNumber = scModel.isSetStepNumber() ? Integer.valueOf(scModel.getStepNumber()) : null;\n AutoScale sc = null;\n AutoScale scCloned = null;\n final Object oMinValue, oMaxValue;\n final boolean bIsPercent = ax.getModelAxis().isPercent();\n if (scModel.isSetFactor() && (iType & LINEAR) == LINEAR && !ax.isCategoryScale()) {\n double factor = scModel.getFactor() * 72 / xs.getDpiResolution();\n Object oValue;\n double dValue, dMinValue = Double.MAX_VALUE, dMaxValue = -Double.MAX_VALUE;\n dsi.reset();\n double dPrecision = 0;\n while (dsi.hasNext()) {\n oValue = dsi.next();\n if (oValue == null) {\n continue;\n }\n dValue = ((Double) oValue).doubleValue();\n if (dValue < dMinValue)\n dMinValue = dValue;\n if (dValue > dMaxValue)\n dMaxValue = dValue;\n dPrecision = getPrecision(dPrecision, dValue, fs, rtc.getULocale(), bIsPercent);\n }\n if (oMinimum != null && oMinimum instanceof NumberDataElement) {\n dMinValue = ((NumberDataElement) oMinimum).getValue();\n }\n double length = Math.abs(dEnd - dStart);\n double valueLength = length * factor;\n dMaxValue = dMinValue + valueLength;\n double dStep = 1;\n double dDelta = dMaxValue - dMinValue;\n if (dDelta == 0) {\n dStep = dPrecision;\n } else {\n dStep = Math.floor(Math.log(dDelta) / LOG_10);\n dStep = Math.pow(10, dStep);\n if (dStep < dPrecision) {\n dStep = dPrecision;\n }\n }\n ScaleInfo info = new ScaleInfo(plotComp, iType, rtc, fs, ax, direction, scModel.isAutoExpand()).dZoomFactor(zoomFactor).iMarginPercent(iMarginPercent).dPrecision(dPrecision).bStepFixed(true).dsiData(dsi).dFactor(factor);\n sc = new AutoScale(info);\n sc.setMinimum(Double.valueOf(0));\n sc.setMaximum(Double.valueOf(0));\n sc.setStep(new Double(dStep));\n sc.setStepNumber(oStepNumber);\n setStepToScale(sc, oStep, null, rtc);\n oMinValue = new Double(dMinValue);\n oMaxValue = new Double(dMaxValue);\n sc.setMinimum(oMinValue);\n sc.setMaximum(oMaxValue);\n sc.computeTicks(xs, la, iLabelLocation, iOrientation, dStart, dEnd, false, null);\n sc.setData(dsi);\n return sc;\n }\n if ((iType & TEXT) == TEXT || ax.isCategoryScale()) {\n ScaleInfo info = new ScaleInfo(iType, rtc, fs, ax, direction, scModel.isAutoExpand()).dZoomFactor(zoomFactor).iMarginPercent(iMarginPercent);\n sc = new AutoScale(info);\n sc.setData(dsi);\n sc.computeTicks(xs, ax.getLabel(), iLabelLocation, iOrientation, dStart, dEnd, false, null);\n oMinValue = null;\n oMaxValue = null;\n } else if ((iType & LINEAR) == LINEAR) {\n Object oValue;\n double dValue, dMinValue = Double.MAX_VALUE, dMaxValue = -Double.MAX_VALUE;\n dsi.reset();\n double dPrecision = 0;\n while (dsi.hasNext()) {\n oValue = dsi.next();\n if (oValue == null) {\n continue;\n }\n dValue = ((Double) oValue).doubleValue();\n if (dValue < dMinValue)\n dMinValue = dValue;\n if (dValue > dMaxValue)\n dMaxValue = dValue;\n dPrecision = getPrecision(dPrecision, dValue, fs, rtc.getULocale(), bIsPercent);\n }\n if (axisOrigin != null && axisOrigin.getType().equals(IntersectionType.VALUE_LITERAL) && axisOrigin.getValue() instanceof NumberDataElement) {\n double origin = asDouble(axisOrigin.getValue()).doubleValue();\n if (oMinimum == null && origin < dMinValue) {\n oMinimum = axisOrigin.getValue();\n }\n if (oMaximum == null && origin > dMaxValue) {\n oMaximum = axisOrigin.getValue();\n }\n }\n final double dAbsMax = Math.abs(dMaxValue);\n final double dAbsMin = Math.abs(dMinValue);\n double dStep = Math.max(dAbsMax, dAbsMin);\n double dDelta = dMaxValue - dMinValue;\n if (dDelta == 0) {\n dStep = dPrecision;\n } else {\n dStep = Math.floor(Math.log(dDelta) / LOG_10);\n dStep = Math.pow(10, dStep);\n if (dStep < dPrecision) {\n dStep = dPrecision;\n }\n }\n ScaleInfo info = new ScaleInfo(iType, rtc, fs, ax, direction, scModel.isAutoExpand()).dZoomFactor(zoomFactor).iMarginPercent(iMarginPercent).dPrecision(dPrecision);\n sc = new AutoScale(info);\n sc.setMaximum(Double.valueOf(0));\n sc.setMinimum(Double.valueOf(0));\n sc.setStep(new Double(dStep));\n sc.setStepNumber(oStepNumber);\n sc.setData(dsi);\n setNumberMinMaxToScale(sc, oMinimum, oMaximum, rtc, ax);\n setStepToScale(sc, oStep, oStepNumber, rtc);\n oMinValue = new Double(dMinValue);\n oMaxValue = new Double(dMaxValue);\n sc.updateAxisMinMax(oMinValue, oMaxValue);\n } else if ((iType & LOGARITHMIC) == LOGARITHMIC) {\n Object oValue;\n double dValue, dMinValue = Double.MAX_VALUE, dMaxValue = -Double.MAX_VALUE;\n if ((iType & PERCENT) == PERCENT) {\n dMinValue = 0;\n dMaxValue = 100;\n } else {\n dsi.reset();\n while (dsi.hasNext()) {\n oValue = dsi.next();\n if (oValue == null) {\n continue;\n }\n dValue = ((Double) oValue).doubleValue();\n if (dValue < dMinValue)\n dMinValue = dValue;\n if (dValue > dMaxValue)\n dMaxValue = dValue;\n }\n if (axisOrigin != null && axisOrigin.getType().equals(IntersectionType.VALUE_LITERAL) && axisOrigin.getValue() instanceof NumberDataElement) {\n double origin = asDouble(axisOrigin.getValue()).doubleValue();\n if (oMinimum == null && origin < dMinValue) {\n oMinimum = axisOrigin.getValue();\n }\n if (oMaximum == null && origin > dMaxValue) {\n oMaximum = axisOrigin.getValue();\n }\n }\n if (dMinValue == 0) {\n dMinValue = dMaxValue > 0 ? 1 : -1;\n }\n }\n ScaleInfo info = new ScaleInfo(iType, rtc, fs, ax, direction, scModel.isAutoExpand()).dZoomFactor(zoomFactor).iMarginPercent(iMarginPercent);\n sc = new AutoScale(info);\n sc.setMaximum(Double.valueOf(0));\n sc.setMinimum(Double.valueOf(0));\n sc.setStep(new Double(10));\n sc.setStepNumber(oStepNumber);\n sc.setData(dsi);\n setNumberMinMaxToScale(sc, oMinimum, oMaximum, rtc, ax);\n setStepToScale(sc, oStep, oStepNumber, rtc);\n oMinValue = new Double(dMinValue);\n oMaxValue = new Double(dMaxValue);\n sc.updateAxisMinMax(oMinValue, oMaxValue);\n if ((iType & PERCENT) == PERCENT) {\n sc.info.bStepFixed(true);\n sc.info.bMaximumFixed(true);\n sc.info.bMinimumFixed(true);\n sc.computeTicks(xs, ax.getLabel(), iLabelLocation, iOrientation, dStart, dEnd, false, null);\n return sc;\n }\n } else if ((iType & DATE_TIME) == DATE_TIME) {\n Calendar cValue;\n Calendar caMin = null, caMax = null;\n dsi.reset();\n while (dsi.hasNext()) {\n cValue = (Calendar) dsi.next();\n if (cValue == null) {\n continue;\n }\n if (caMin == null) {\n caMin = cValue;\n }\n if (caMax == null) {\n caMax = cValue;\n }\n if (cValue.before(caMin))\n caMin = cValue;\n else if (cValue.after(caMax))\n caMax = cValue;\n }\n oMinValue = new CDateTime(caMin);\n oMaxValue = new CDateTime(caMax);\n if (axisOrigin != null && axisOrigin.getType().equals(IntersectionType.VALUE_LITERAL) && axisOrigin.getValue() instanceof DateTimeDataElement) {\n CDateTime origin = asDateTime(axisOrigin.getValue());\n if (oMinimum == null && origin.before(oMinValue)) {\n oMinimum = axisOrigin.getValue();\n }\n if (oMaximum == null && origin.after(oMaxValue)) {\n oMaximum = axisOrigin.getValue();\n }\n }\n int iUnit;\n if (oStep != null || oStepNumber != null) {\n iUnit = ChartUtil.convertUnitTypeToCalendarConstant(scModel.getUnit());\n } else {\n iUnit = CDateTime.getPreferredUnit((CDateTime) oMinValue, (CDateTime) oMaxValue);\n }\n if (iUnit == 0)\n iUnit = Calendar.SECOND;\n CDateTime cdtMinAxis = ((CDateTime) oMinValue).backward(iUnit, 1);\n CDateTime cdtMaxAxis = ((CDateTime) oMaxValue).forward(iUnit, 1);\n cdtMinAxis.clearBelow(iUnit);\n cdtMaxAxis.clearBelow(iUnit);\n ScaleInfo info = new ScaleInfo(DATE_TIME, rtc, fs, ax, direction, scModel.isAutoExpand()).dZoomFactor(zoomFactor).iMarginPercent(iMarginPercent).iMinUnit(oMinValue.equals(oMaxValue) ? getUnitId(iUnit) : getMinUnitId(fs, rtc));\n sc = new AutoScale(info);\n sc.setMaximum(cdtMaxAxis);\n sc.setMinimum(cdtMinAxis);\n sc.setStep(Integer.valueOf(1));\n sc.setStepNumber(oStepNumber);\n sc.context.setUnit(Integer.valueOf(iUnit));\n if (oMinimum != null) {\n if (oMinimum instanceof DateTimeDataElement) {\n sc.setMinimum(((DateTimeDataElement) oMinimum).getValueAsCDateTime());\n sc.info.oMinimumFixed(((DateTimeDataElement) oMinimum).getValueAsCDateTime());\n } else {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, \"String_Node_Str\", new Object[] { oMinimum, ax.getModelAxis().getType().getName() }, Messages.getResourceBundle(rtc.getULocale()));\n }\n sc.info.bMinimumFixed(true);\n }\n if (oMaximum != null) {\n if (oMaximum instanceof DateTimeDataElement) {\n sc.setMaximum(((DateTimeDataElement) oMaximum).getValueAsCDateTime());\n sc.info.oMaximumFixed(((DateTimeDataElement) oMaximum).getValueAsCDateTime());\n } else {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, \"String_Node_Str\", new Object[] { sc.getMaximum(), ax.getModelAxis().getType().getName() }, Messages.getResourceBundle(rtc.getULocale()));\n }\n sc.info.bMaximumFixed(true);\n }\n if (sc.info.bMaximumFixed && sc.info.bMinimumFixed) {\n if (((CDateTime) sc.getMinimum()).after(sc.getMaximum())) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, \"String_Node_Str\", new Object[] { sc.getMinimum(), sc.getMaximum() }, Messages.getResourceBundle(rtc.getULocale()));\n }\n }\n setStepToScale(sc, oStep, oStepNumber, rtc);\n sc.updateAxisMinMax(oMinValue, oMaxValue);\n } else {\n oMinValue = null;\n oMaxValue = null;\n }\n if ((iType & TEXT) != TEXT && !ax.isCategoryScale()) {\n sc.computeTicks(xs, la, iLabelLocation, iOrientation, dStart, dEnd, false, null);\n dStart = sc.dStart;\n dEnd = sc.dEnd;\n boolean bFirstFit = sc.checkFit(xs, la, iLabelLocation);\n boolean bFits = bFirstFit;\n boolean bZoomSuccess = false;\n for (int i = 0; bFits == bFirstFit && i < 50; i++) {\n bZoomSuccess = true;\n scCloned = (AutoScale) sc.clone();\n if (sc.info.bStepFixed || rtc.getSharedScale() != null && rtc.getSharedScale().isShared()) {\n break;\n }\n if (bFirstFit) {\n if (!bFits) {\n break;\n }\n bZoomSuccess = sc.zoomIn();\n } else {\n if (!bFits && sc.getTickCordinates().size() == 2) {\n break;\n }\n bZoomSuccess = sc.zoomOut();\n }\n if (!bZoomSuccess)\n break;\n sc.updateAxisMinMax(oMinValue, oMaxValue);\n sc.computeTicks(xs, la, iLabelLocation, iOrientation, dStart, dEnd, false, null);\n bFits = sc.checkFit(xs, la, iLabelLocation);\n if (!bFits && sc.getTickCordinates().size() == 2) {\n sc = scCloned;\n break;\n }\n }\n if (scCloned != null && bFirstFit && bZoomSuccess) {\n sc = scCloned;\n }\n updateSharedScaleContext(rtc, iType, sc.tmpSC);\n }\n sc.setData(dsi);\n return sc;\n}\n"
"public void testGetStatSummary() throws InterruptedException, TimeoutException, ExecutionException {\n try {\n handler.getStatsSummary(SUMMONER_ID_1, Season.SEASON3).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
"void clearIfAutomaticCreation() {\n if (createAutomatically) {\n Object testClassInstance = injectionState.getCurrentTestClassInstance();\n if (testSucceeded) {\n Object testedObject = FieldReflection.getFieldValue(testedField, testClassInstance);\n if (testedObject != null) {\n Class<?> testedClass = testedField.getType();\n executePreDestroyMethodIfAny(testedClass, testedObject);\n }\n }\n FieldReflection.setFieldValue(testedField, testClassInstance, null);\n }\n}\n"
"URLConnection connect(URL originalUrl, ImmutableMap<String, String> requestHeaders) throws IOException {\n if (Thread.interrupted()) {\n throw new InterruptedIOException();\n }\n URL url = originalUrl;\n if (HttpUtils.isProtocol(url, \"String_Node_Str\")) {\n return url.openConnection();\n }\n List<Throwable> suppressions = new ArrayList<>();\n int retries = 0;\n int redirects = 0;\n int connectTimeout = MIN_CONNECT_TIMEOUT_MS;\n while (true) {\n HttpURLConnection connection = null;\n try {\n connection = (HttpURLConnection) url.openConnection(proxyHelper.createProxyIfNeeded(url));\n boolean isAlreadyCompressed = COMPRESSED_EXTENSIONS.contains(HttpUtils.getExtension(url.getPath())) || COMPRESSED_EXTENSIONS.contains(HttpUtils.getExtension(originalUrl.getPath()));\n for (Map.Entry<String, String> entry : requestHeaders.entrySet()) {\n if (isAlreadyCompressed && Ascii.equalsIgnoreCase(entry.getKey(), \"String_Node_Str\")) {\n continue;\n }\n connection.setRequestProperty(entry.getKey(), entry.getValue());\n }\n connection.setConnectTimeout(connectTimeout);\n connection.setReadTimeout(READ_TIMEOUT_MS);\n int code;\n try {\n connection.connect();\n code = connection.getResponseCode();\n } catch (FileNotFoundException ignored) {\n code = connection.getResponseCode();\n } catch (UnknownHostException e) {\n String message = \"String_Node_Str\" + e.getMessage();\n eventHandler.handle(Event.progress(message));\n throw new UnrecoverableHttpException(message);\n } catch (IllegalArgumentException e) {\n throw new UnrecoverableHttpException(e.getMessage());\n } catch (IOException e) {\n if (e.getMessage() == null || !e.getMessage().startsWith(\"String_Node_Str\")) {\n throw e;\n }\n code = connection.getResponseCode();\n }\n if (code == 200 || code == 206) {\n return connection;\n } else if (code == 301 || code == 302 || code == 303 || code == 307) {\n readAllBytesAndClose(connection.getInputStream());\n if (++redirects == MAX_REDIRECTS) {\n eventHandler.handle(Event.progress(\"String_Node_Str\" + originalUrl));\n throw new UnrecoverableHttpException(\"String_Node_Str\");\n }\n url = HttpUtils.getLocation(connection);\n if (code == 301) {\n originalUrl = url;\n }\n } else if (code == 403) {\n throw new IOException(describeHttpResponse(connection));\n } else if (code == 408) {\n throw new IOException(describeHttpResponse(connection));\n } else if (code < 500 || code == 501 || code == 502 || code == 505) {\n readAllBytesAndClose(connection.getErrorStream());\n throw new UnrecoverableHttpException(describeHttpResponse(connection));\n } else {\n throw new IOException(describeHttpResponse(connection));\n }\n } catch (UnrecoverableHttpException e) {\n throw e;\n } catch (IOException e) {\n if (connection != null) {\n connection.disconnect();\n }\n int timeout = IntMath.pow(2, retries) * MIN_RETRY_DELAY_MS;\n if (e instanceof SocketTimeoutException) {\n eventHandler.handle(Event.progress(\"String_Node_Str\" + url));\n connectTimeout = Math.min(connectTimeout * 2, MAX_CONNECT_TIMEOUT_MS);\n timeout = 1;\n } else if (e instanceof InterruptedIOException) {\n throw e;\n }\n if (++retries == MAX_RETRIES) {\n if (!(e instanceof SocketTimeoutException)) {\n eventHandler.handle(Event.progress(format(\"String_Node_Str\", url, e.getMessage())));\n }\n for (Throwable suppressed : suppressions) {\n e.addSuppressed(suppressed);\n }\n throw e;\n }\n suppressions.add(e);\n eventHandler.handle(Event.progress(format(\"String_Node_Str\", url, timeout)));\n url = originalUrl;\n try {\n sleeper.sleepMillis(timeout);\n } catch (InterruptedException translated) {\n throw new InterruptedIOException();\n }\n } catch (RuntimeException e) {\n if (connection != null) {\n connection.disconnect();\n }\n eventHandler.handle(Event.progress(format(\"String_Node_Str\", url, e)));\n throw e;\n }\n }\n}\n"
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n return new MaterialDialog.Builder(getActivity()).content(R.string.progress_download_geocache).negativeText(R.string.button_cancel).progress(true, 0).build();\n}\n"
"public void setOnSelect(JavaScriptObject aSelectFunction) {\n if (selectFunction != aSelectFunction) {\n selectFunction = aSelectFunction;\n if (selectFunction != null && getPublishedField() != null) {\n selectButton = new TextButton(\"String_Node_Str\");\n selectButton.setEnabled(editable);\n selectButton.setTabIndex(2);\n complex.add(selectButton, new HorizontalLayoutData(-1, 1));\n selectHandlerRegistration = selectButton.addSelectHandler(new SelectHandler() {\n public void onSelect(SelectEvent event) {\n Runnable onSelect = ControlsUtils.createScriptSelector(getEventsThis(), selectFunction, getPublishedField());\n onSelect.run();\n target.focus();\n }\n });\n } else {\n if (selectButton != null) {\n selectHandlerRegistration.removeHandler();\n selectHandlerRegistration = null;\n selectButton.removeFromParent();\n selectButton = null;\n }\n }\n reregisterFocusBlur();\n }\n}\n"
"static void addCompressedChunk(JsonParsingContext context) {\n if (context.doubleValues != null && context.stringValues == null) {\n context.doubleChunks.add(new CompressedDoubleArrayChunk(context.offset, context.uncompressedLength, context.doubleValues.toArray(), context.stepLengths.toArray()));\n context.doubleValues = null;\n context.stepLengths = null;\n context.uncompressedLength = -1;\n } else if (context.stringValues != null) {\n context.stringChunks.add(new CompressedStringArrayChunk(context.offset, context.uncompressedLength, context.stringValues.toArray(new String[context.stringValues.size()]), context.stepLengths.toArray()));\n context.stringValues = null;\n context.stepLengths = null;\n context.uncompressedLength = -1;\n } else {\n throw new AssertionError(\"String_Node_Str\");\n }\n}\n"
"public void doRun() {\n runningThread = Thread.currentThread();\n ThreadContext.get().setCallContext(callContext);\n try {\n clientOperationHandler.handle(node, packet);\n node.clientService.getClientEndpoint(packet.conn).removeRequest(this);\n clientOperationHandler.postHandle(packet);\n } catch (Throwable e) {\n logger.log(Level.WARNING, e.getMessage(), e);\n if (node.isActive()) {\n throw new RuntimeException(error);\n }\n }\n}\n"
"public static Object[][] primeNumbers() throws IOException {\n return new Object[][] { { \"String_Node_Str\", new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", PERSON, of(11.25, 43.75, -6.25), none()));\n }\n } }, { \"String_Node_Str\", new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", PERSON, of(11.25, 43.75, -6.25), none()));\n add(new Result(\"String_Node_Str\", PERSON, of(0., 60., 0.), none()));\n add(new Result(\"String_Node_Str\", LOCATION, of(76.25, 5.0, -10.0), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", DATE, of(0., 0., 0.), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n }\n } }, { \"String_Node_Str\", new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", PERSON, of(0.0, 30.0, 18.75), none()));\n add(new Result(\"String_Node_Str\", PERSON, of(0.0, 20.0, 8.75), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", DATE, of(0., 0., 0.), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n }\n } }, { \"String_Node_Str\", new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", ORGANIZATION, of(0.0, 0.0, 3.75), none()));\n add(new Result(\"String_Node_Str\", LOCATION, of(46.25, -5.0, 15.0), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", LOCATION, of(5.0, 0.0, 0.0), none()));\n add(new Result(\"String_Node_Str\", UNKNOWN, of(0., 0., 0.), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n }\n } }, { new String(Files.readAllBytes(Paths.get(\"String_Node_Str\"))), new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", LOCATION, of(10.0, 0.0, 0.0), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", DATE, of(0., 0., 0.), none()));\n add(new Result(\"String_Node_Str\", PERSON, of(0., 7.5, -7.5), none()));\n add(new Result(\"String_Node_Str\", LOCATION, of(11.25, 15., 0.), none()));\n add(new Result(\"String_Node_Str\", PERSON, of(0., 35., -20.), none()));\n add(new Result(\"String_Node_Str\", UNKNOWN, of(0., 0., 0.), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", UNKNOWN, of(0., 0., 0.), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", UNKNOWN, of(0., 0., 0.), none()));\n add(new Result(\"String_Node_Str\", ORGANIZATION, of(0., 0., 18.75), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", UNKNOWN, of(0., 0., 0.), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", LOCATION, of(0., 0., 0.), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", LOCATION, of(36.25, 30.0, -20.0), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", LOCATION, of(36.25, 30.0, -20.0), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", LOCATION, of(43.75, -20.0, 15.0), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n }\n } }, { \"String_Node_Str\", new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", PERSON, of(0., 15., 0.0), none()));\n add(new Result(\"String_Node_Str\", PERSON, of(0., 15., 0.), none()));\n add(new Result(\"String_Node_Str\", UNKNOWN, of(0., 0., 0.), none()));\n }\n } }, { new String(Files.readAllBytes(Paths.get(\"String_Node_Str\"))), new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", DATE, of(0.0, 0.0, 0.0), none()));\n add(new Result(\"String_Node_Str\", DATE, of(0.0, 0.0, 0.0), none()));\n add(new Result(\"String_Node_Str\", DATE, of(0.0, 0.0, 0.0), ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\")));\n add(new Result(\"String_Node_Str\", DATE, of(0.0, 0.0, 0.0), none()));\n add(new Result(\"String_Node_Str\", DATE, of(0.0, 0.0, 0.0), none()));\n add(new Result(\"String_Node_Str\", UNKNOWN, of(0.0, 0.0, 0.0), none()));\n add(new Result(\"String_Node_Str\", DATE, of(0.0, 0.0, 0.0), none()));\n }\n } }, { \"String_Node_Str\", new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", PERSON, of(26.25, 63.75, -6.25), none()));\n add(new Result(\"String_Node_Str\", PERSON, of(11.25, 43.75, -6.25), none()));\n }\n } } };\n}\n"
"public void drawBackgroundImage(String imageURI, float x, float y, float width, float height, float imageWidth, float imageHeight, float positionX, float positionY, int repeat) throws IOException {\n if (imageURI == null || imageURI.length() == 0) {\n return;\n }\n org.eclipse.birt.report.engine.layout.emitter.Image image = EmitterUtil.parseImage(null, IImageContent.IMAGE_URL, imageURI, null, null);\n byte[] imageData = image.getData();\n if (imageWidth == 0 || imageHeight == 0) {\n int resolutionX = image.getPhysicalWidthDpi();\n int resolutionY = image.getPhysicalHeightDpi();\n if (0 == resolutionX || 0 == resolutionY) {\n resolutionX = 96;\n resolutionY = 96;\n }\n imageWidth = ((float) image.getWidth()) / resolutionX * 72;\n imageHeight = ((float) image.getHeight()) / resolutionY * 72;\n }\n Position imageSize = new Position(imageWidth, imageHeight);\n Position areaPosition = new Position(x, y);\n Position areaSize = new Position(width, height);\n Position imagePosition = new Position(x + positionX, y + positionY);\n BackgroundImageLayout layout = new BackgroundImageLayout(areaPosition, areaSize, imagePosition, imageSize);\n Collection positions = layout.getImagePositions(repeat);\n gSave();\n setColor(Color.WHITE);\n out.println(\"String_Node_Str\");\n drawRawRect(x, y, width, height);\n out.println(\"String_Node_Str\");\n Iterator iterator = positions.iterator();\n while (iterator.hasNext()) {\n Position position = (Position) iterator.next();\n try {\n drawImage(imageURI, new ByteArrayInputStream(imageData), position.getX(), position.getY(), imageSize.getX(), imageSize.getY());\n } catch (Exception e) {\n log.log(Level.WARNING, e.getLocalizedMessage());\n }\n }\n gRestore();\n}\n"
"public GChoice leaveProjection(ScribNode parent, ScribNode child, Projector proj, ScribNode visited) throws ScribbleException {\n GChoice gc = (GChoice) visited;\n List<LProtocolBlock> blocks = gc.getBlocks().stream().map((b) -> (LProtocolBlock) ((ProjectionEnv) b.del().env()).getProjection()).collect(Collectors.toList());\n LChoice projection = null;\n blocks = blocks.stream().filter((b) -> !b.isEmpty()).collect(Collectors.toList());\n if (!blocks.isEmpty()) {\n List<LChoice> cs = blocks.stream().map((b) -> AstFactoryImpl.FACTORY.LChoice(AstFactoryImpl.FACTORY.DummyProjectionRoleNode(), Arrays.asList(b))).collect(Collectors.toList());\n LChoice merged = cs.get(0);\n for (int i = 1; i < cs.size(); i++) {\n merged = merged.merge(cs.get(i));\n }\n projection = merged;\n }\n proj.pushEnv(proj.popEnv().setProjection(projection));\n return (GChoice) GCompoundInteractionNodeDel.super.leaveProjection(parent, child, proj, gc);\n}\n"
"public boolean onMenuItemClick(MenuItem menuItem) {\n final CharSequence text = ((AppCompatTextView) v).getText();\n try {\n final String FileName = text.toString();\n final AppCompatDialog dialog = new AppCompatDialog(activity);\n dialog.setTitle(R.string.setname);\n dialog.setContentView(R.layout.dialog_input);\n final AppCompatButton bGo = (AppCompatButton) dialog.findViewById(R.id.bGoBackup);\n final AppCompatEditText etFileName = (AppCompatEditText) dialog.findViewById(R.id.etFileName);\n final File path = isRecovery ? Const.PathToRecoveryBackups : Const.PathToKernelBackups;\n switch(menuItem.getItemId()) {\n case R.id.iRestore:\n File backup = new File(path, FileName);\n FlashUtil RestoreUtil = new FlashUtil(mActivity, backup, mPager.getCurrentItem() == 1 ? FlashUtil.JOB_RESTORE_RECOVERY : FlashUtil.JOB_RESTORE_KERNEL);\n RestoreUtil.execute();\n return true;\n case R.id.iRename:\n etFileName.setHint(FileName);\n bGo.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n String Name;\n if (etFileName.getText() != null && etFileName.isEnabled() && !etFileName.getText().toString().equals(\"String_Node_Str\")) {\n Name = etFileName.getText().toString();\n } else {\n Name = String.valueOf(etFileName.getHint());\n }\n if (!Name.endsWith(activity.getDevice().getRecoveryExt())) {\n Name = Name + activity.getDevice().getRecoveryExt();\n }\n File renamedBackup = new File(path, Name);\n if (renamedBackup.exists()) {\n Toast.makeText(activity, R.string.backupalready, Toast.LENGTH_SHORT).show();\n } else {\n File Backup = new File(path, FileName);\n if (Backup.renameTo(renamedBackup)) {\n loadBackups(activity.getDevice(), adapter, isRecovery);\n } else {\n Toast.makeText(activity, R.string.rename_failed, Toast.LENGTH_SHORT).show();\n }\n }\n dialog.dismiss();\n }\n });\n dialog.show();\n return true;\n case R.id.iDeleteBackup:\n if (new File(path, text.toString()).delete()) {\n Toast.makeText(activity, activity.getString(R.string.bak_deleted), Toast.LENGTH_SHORT).show();\n ArrayAdapter<String> adapter;\n if (isRecovery) {\n adapter = pagerAdapter.getRecoveryBackupFragment().getAdapter();\n } else {\n adapter = pagerAdapter.getKernelBackupFragment().getAdapter();\n }\n loadBackups(activity.getDevice(), adapter, isRecovery);\n }\n return true;\n default:\n return false;\n }\n } catch (Exception e) {\n if (e.getMessage().contains(\"String_Node_Str\") && text.toString().contains(\"String_Node_Str\")) {\n AlertDialog.Builder adialog = new AlertDialog.Builder(activity);\n adialog.setMessage(R.string.check_name);\n adialog.setMessage(R.string.ok);\n adialog.show();\n }\n activity.addError(Const.RASHR_TAG, e, false);\n return false;\n }\n}\n"
"private void onTerminationOfInstance(String childId, String instanceId) {\n removeInstanceFromFromInactiveMap(childId, instanceId);\n removeInstanceFromFromTerminatingMap(childId, instanceId);\n GroupInstance instance = (GroupInstance) instanceIdToInstanceMap.get(instanceId);\n if (instance != null) {\n if (instance.getStatus() == GroupStatus.Terminating || instance.getStatus() == GroupStatus.Terminated) {\n ServiceReferenceHolder.getInstance().getGroupStatusProcessorChain().process(id, appId, instanceId);\n } else {\n boolean active = verifyGroupStatus(childId, instanceId, GroupStatus.Active);\n if (!active) {\n onTerminationOfInstance(childId, instanceId);\n } else {\n log.info(\"String_Node_Str\" + instanceId + \"String_Node_Str\" + \"String_Node_Str\" + childId);\n }\n }\n } else {\n log.warn(\"String_Node_Str\" + id);\n }\n}\n"
"public int[] getAccessibleSlotsFromSide(int side) {\n int metadata = this.getBlockMetadata();\n if (isInlet()) {\n return kInletExposed;\n } else {\n return new int[] { SLOT_OUTLET };\n }\n}\n"
"private boolean check() throws Exception {\n SanityCheckDecoder y = new SanityCheckDecoder();\n ByteBuf test = allocator.buffer(bytes.readableBytes());\n try {\n y.decode(null, compressed, Collections.<Object>singletonList(test));\n compressed.resetReaderIndex();\n byte[] a = new byte[bytes.readableBytes()];\n bytes.readBytes(a);\n byte[] b = new byte[test.readableBytes()];\n test.readBytes(b);\n if (!Arrays.equals(a, b)) {\n throw new IllegalStateException(\"String_Node_Str\" + a.length + \"String_Node_Str\" + b.length + \"String_Node_Str\" + new String(a) + \"String_Node_Str\" + new String(b));\n }\n bytes.resetReaderIndex();\n } finally {\n test.release();\n }\n return true;\n}\n"
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n if (canWork) {\n Object o = selection.getFirstElement();\n repositoryNode = (RepositoryNode) o;\n switch(repositoryNode.getType()) {\n case REPOSITORY_ELEMENT:\n if (repositoryNode.getObject().getRepositoryStatus() == ERepositoryStatus.DELETED) {\n canWork = false;\n }\n if (repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CONNECTIONS && repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CON_QUERY) {\n canWork = false;\n }\n if (canWork) {\n if (isUnderDBConnection(repositoryNode)) {\n DatabaseConnectionItem item = (DatabaseConnectionItem) repositoryNode.getObject().getProperty().getItem();\n DatabaseConnection dbConn = (DatabaseConnection) item.getConnection();\n String dbType = dbConn.getDatabaseType();\n if (EDatabaseTypeName.HIVE.getXmlName().equalsIgnoreCase(dbType) || EDatabaseTypeName.HBASE.getXmlName().equalsIgnoreCase(dbType)) {\n canWork = false;\n break;\n }\n }\n }\n break;\n default:\n canWork = false;\n }\n if (canWork && !isLastVersion(repositoryNode)) {\n canWork = false;\n }\n }\n setEnabled(canWork);\n}\n"
"public void calculate(WorkPlace defaultWorkPlace) {\n clearCalculate();\n WorkPlace actualWorkPlace = workPlace;\n if (actualWorkPlace == null) {\n actualWorkPlace = defaultWorkPlace;\n }\n DateTime beginDateTime = null;\n if (beginTime != null) {\n beginDateTime = BASE_DATE.toDateTime(beginTime);\n }\n DateTime finishDateTime = null;\n if (finishTime != null) {\n finishDateTime = BASE_DATE.toDateTime(finishTime);\n }\n if (beginDateTime != null && finishDateTime != null) {\n if (!beginDateTime.isBefore(finishDateTime)) {\n finishDateTime = finishDateTime.plusDays(1);\n }\n Interval workTimeInterval = new Interval(beginDateTime, finishDateTime);\n this.actualWorkingMinute = actualWorkPlace.calculateWorkingMinute(workTimeInterval);\n if (actualWorkingMinute < DEFAULT_ACTUAL_WORKING_MINUTE && isWorkDay()) {\n this.compensationMinute = DEFAULT_ACTUAL_WORKING_MINUTE - actualWorkingMinute;\n }\n this.midnightWorkingMinute = actualWorkPlace.truncateWithTimeUnit(MidnightTime.INSTANCE.calculateContainsMinute(workTimeInterval));\n } else {\n if (finishTime != null) {\n setFinishTime(null);\n }\n }\n if (isWorkDay()) {\n this.tardyOrEarlyLeaving = actualWorkPlace.isTardyOrEarlyLeaving(beginTime, finishTime);\n if (tardyOrEarlyLeaving) {\n this.compensationMinute = 0;\n } else if (beginTime == null && !StringUtils.hasLength(specialWorkCode)) {\n this.absence = true;\n }\n }\n}\n"
"public void init(final VertexFeature<?, V, ?> feature, final V vertex) {\n super.init();\n final int vi = vertexUndoIdBimap.getId(vertex);\n final int fi = featureStore.createFeatureUndoId();\n final int fuid = feature.getUniqueFeatureId();\n featureStore.store(fi, feature, vertex);\n final long dataIndex = dataStack.getWriteDataIndex();\n dataStack.out.writeInt(vi);\n dataStack.out.writeInt(fi);\n dataStack.out.writeInt(fuid);\n ref.setDataIndex(dataIndex);\n}\n"
"Type getGenericReturnType(Method m) {\n try {\n return m.getGenericReturnType();\n } catch (Throwable ex) {\n ex.printStackTrace();\n System.err.println(\"String_Node_Str\" + m + \"String_Node_Str\");\n return m.getReturnType();\n }\n}\n"
"public String printName() {\n return StringUtils.encodeXML(m_sProdName);\n}\n"
"public List<ECodePart> getAvailableCodeParts() {\n return Collections.emptyList();\n}\n"
"private void DownloadMoreItems() {\n String username = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getString(\"String_Node_Str\", null);\n if (username != null) {\n NewsReaderDetailFragment ndf = getNewsReaderDetailFragment();\n OwnCloud_Reader.getInstance().Start_AsyncTask_GetOldItems(NewsReaderListActivity.this, onAsyncTaskComplete, ndf.getIdFeed(), ndf.getIdFolder());\n Toast.makeText(this, getString(R.string.toast_GettingMoreItems), Toast.LENGTH_SHORT).show();\n }\n}\n"
"protected JPanel createParametersPanel() {\n JPanel paramsPanel = new JPanel();\n BoxLayout layout = new BoxLayout(paramsPanel, BoxLayout.PAGE_AXIS);\n paramsPanel.setLayout(layout);\n AbstractButton addParamBut = ToolButtonFactory.createButton(UIUtils.loadImageIcon(Bundle.Icon_Add()), false);\n addParamBut.setText(\"String_Node_Str\");\n addParamBut.setMaximumSize(new Dimension(150, controlHeight));\n addParamBut.setAlignmentX(Component.LEFT_ALIGNMENT);\n addParamBut.setAlignmentY(Component.TOP_ALIGNMENT);\n paramsPanel.add(addParamBut);\n JScrollPane tableScrollPane = new JScrollPane(paramsTable);\n tableScrollPane.setAlignmentX(Component.LEFT_ALIGNMENT);\n paramsPanel.add(tableScrollPane);\n addParamBut.addActionListener(e -> {\n paramsTable.addParameterToTable();\n });\n return paramsPanel;\n}\n"
"public void insert() {\n executeTransaction(new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<TModel>() {\n public void processModel(TModel model) {\n model.insert();\n }\n }).add(model).build());\n}\n"
"public void onSnapshotMade(final Snapshot snapshot) {\n dispatcher.checkInDispatcher();\n if (snapshot.getValue() == null)\n throw new RuntimeException(\"String_Node_Str\");\n Map<Long, Reply> requestHistory = new HashMap<Long, Reply>(executedRequests);\n for (int i = executeUB - 1; i >= snapshot.getNextInstanceId(); i--) {\n List<Reply> ides = executedDifference.get(i);\n if (ides == null)\n continue;\n for (Reply reply : ides) {\n requestHistory.put(reply.getRequestId().getClientId(), reply);\n }\n }\n while (!executedDifference.isEmpty() && executedDifference.firstKey() < snapshot.getNextInstanceId()) {\n executedDifference.pollFirstEntry();\n }\n snapshot.setLastReplyForClient(requestHistory);\n paxos.onSnapshotMade(snapshot);\n}\n"
"public void testGetMasterIteratorNoRange() throws Exception {\n Long wideRowsPerIndex = 2L;\n Long totalObjectsPerWideRange = 100L;\n Long totalObjectsPerShard = 10L;\n CKeyspaceDefinition ckdef = CKeyspaceDefinition.fromJsonFile(\"String_Node_Str\");\n Map<String, CDefinition> cdefs = ckdef.getDefinitions();\n Integer totalIndexCount = 0;\n for (String cdefKey : cdefs.keySet()) {\n totalIndexCount += cdefs.get(cdefKey).getIndexes().size();\n }\n FakeR faker1 = new FakeR(ckdef, wideRowsPerIndex, totalObjectsPerWideRange, totalObjectsPerShard);\n Iterator<Map<String, Object>> iterator = faker1.getMasterIterator(CObjectOrdering.ASCENDING, null, null);\n Map<String, Map<String, Object>> materializedObjects1 = Maps.newHashMap();\n while (iterator.hasNext()) {\n Map<String, Object> next = iterator.next();\n assertTrue(next.containsKey(\"String_Node_Str\"));\n assertFalse(\"String_Node_Str\", materializedObjects1.containsKey(next.get(\"String_Node_Str\").toString()));\n materializedObjects1.put(next.get(\"String_Node_Str\").toString(), next);\n }\n assertFalse(materializedObjects1.isEmpty());\n assertEquals((wideRowsPerIndex * totalObjectsPerWideRange) * totalIndexCount, materializedObjects1.size());\n System.out.printf(\"String_Node_Str\", wideRowsPerIndex, totalObjectsPerWideRange, totalObjectsPerShard, materializedObjects1.size());\n Thread.sleep(500);\n FakeR faker2 = new FakeR(ckdef, wideRowsPerIndex, totalObjectsPerWideRange, totalObjectsPerShard);\n iterator = faker2.getMasterIterator(CObjectOrdering.ASCENDING, null, null);\n Map<String, Map<String, Object>> materializedObjects2 = Maps.newHashMap();\n while (iterator.hasNext()) {\n Map<String, Object> next = iterator.next();\n assertTrue(next.containsKey(\"String_Node_Str\"));\n assertFalse(\"String_Node_Str\", materializedObjects2.containsKey(next.get(\"String_Node_Str\").toString()));\n materializedObjects2.put(next.get(\"String_Node_Str\").toString(), next);\n }\n assertFalse(materializedObjects2.isEmpty());\n assertEquals((wideRowsPerIndex * totalObjectsPerWideRange) * totalIndexCount, materializedObjects2.size());\n assertEquals(materializedObjects1, materializedObjects2);\n}\n"
"public boolean execute(LocalDataArea lda) {\n if (lda.stack.isEmpty()) {\n return false;\n }\n lda.stack.push(DecrementActionItem.getResult(lda.popAsNumber()));\n return true;\n}\n"
"public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n classExtendsCapturedType = false;\n if (capturedTypeDesc.equals(superName)) {\n classExtendsCapturedType = true;\n throw VisitInterruptedException.INSTANCE;\n }\n boolean haveInterfaces = interfaces != null && interfaces.length > 0;\n if (haveInterfaces) {\n interruptVisitIfClassImplementsAnInterface(interfaces);\n }\n if (superName != null) {\n if (!\"String_Node_Str\".contains(superName)) {\n searchSuperType(superName);\n }\n if (haveInterfaces) {\n for (String implementedInterface : interfaces) {\n searchSuperType(implementedInterface);\n }\n }\n }\n throw VisitInterruptedException.INSTANCE;\n}\n"
"public Sequence getOldSequence(DataObject dataObject) {\n if ((dataObject == null) || (!isDeleted(dataObject) && ((dataObject.getChangeSummary() != null) && (dataObject.getChangeSummary() != this)))) {\n return null;\n }\n if (!isCreated(dataObject) && dataObject.getType().isSequenced()) {\n if (getOldSequences().containsKey(dataObject)) {\n return (SDOSequence) getOldSequences().get(dataObject);\n }\n SDOSequence originalSeq = (SDOSequence) getOriginalSequences().get(dataObject);\n if (originalSeq == null) {\n originalSeq = (SDOSequence) dataObject.getSequence();\n }\n SDOSequence seqWithDeepCopies = new SDOSequence((SDODataObject) dataObject);\n for (int i = 0; i < originalSeq.size(); i++) {\n Object nextOriginalSettingValue = originalSeq.getValue(i);\n if (nextOriginalSettingValue == null) {\n continue;\n }\n Property nextOriginalSettingProp = originalSeq.getProperty(i);\n if (nextOriginalSettingProp == null) {\n seqWithDeepCopies.addText(nextOriginalSettingValue.toString());\n } else if (nextOriginalSettingProp.getType().isDataType()) {\n seqWithDeepCopies.addSettingWithoutModifyingDataObject(nextOriginalSettingProp, nextOriginalSettingValue, false);\n } else {\n seqWithDeepCopies.addSettingWithoutModifyingDataObject(nextOriginalSettingProp, getOrCreateDeepCopy((DataObject) nextOriginalSettingValue), false);\n }\n }\n getOldSequences().put(dataObject, seqWithDeepCopies);\n return seqWithDeepCopies;\n }\n return null;\n}\n"
"public <T> T fastInsert(T obj) {\n EntityOperator opt = _optBy(obj);\n opt.addInsertSelfOnly();\n opt.exec();\n return obj;\n}\n"
"protected void writeObject(Object object) throws IOException {\n if (object == null) {\n randomAccessFile.writeShort(NULL_VALUE);\n return;\n }\n IStructure cachedObject = (IStructure) object;\n Object[] objects = cachedObject.getFieldValues();\n randomAccessFile.writeShort((short) objects.length);\n if (fieldWriters == null || fieldWriters.length < objects.length) {\n createReadersAndWriters(objects.length);\n }\n for (int i = 0; i < objects.length; i++) {\n if (i >= fieldWriters.length) {\n fieldWriters[fieldWriters.length - 1].write(randomAccessFile, objects[i]);\n } else {\n fieldWriters[i].write(randomAccessFile, objects[i]);\n }\n }\n}\n"
"public static void setup() throws Exception {\n EdmImplProv edmImplProv = new EdmImplProv(new EdmTestProvider());\n EdmServiceMetadata serviceMetadata = edmImplProv.getServiceMetadata();\n metadata = StringHelper.inputStreamToString(serviceMetadata.getMetadata());\n Map<String, String> prefixMap = new HashMap<String, String>();\n prefixMap.put(null, \"String_Node_Str\");\n prefixMap.put(\"String_Node_Str\", \"String_Node_Str\");\n prefixMap.put(\"String_Node_Str\", \"String_Node_Str\");\n prefixMap.put(\"String_Node_Str\", \"String_Node_Str\");\n prefixMap.put(\"String_Node_Str\", \"String_Node_Str\");\n NamespaceContext ctx = new SimpleNamespaceContext(prefixMap);\n XMLUnit.setXpathNamespaceContext(ctx);\n}\n"
"protected List<String> call() {\n BlockPos blockpos = new BlockPos(this.mc.getRenderViewEntity().posX, this.mc.getRenderViewEntity().getEntityBoundingBox().minY, this.mc.getRenderViewEntity().posZ);\n if (this.isReducedDebug()) {\n return Lists.newArrayList(new String[] { \"String_Node_Str\" + this.mc.getVersion() + \"String_Node_Str\" + ClientBrandRetriever.getClientModName() + \"String_Node_Str\", this.mc.debug, this.mc.renderGlobal.getDebugInfoRenders(), this.mc.renderGlobal.getDebugInfoEntities(), \"String_Node_Str\" + this.mc.effectRenderer.getStatistics() + \"String_Node_Str\" + this.mc.theWorld.getDebugLoadedEntities(), this.mc.theWorld.getProviderName(), \"String_Node_Str\", String.format(\"String_Node_Str\", new Object[] { Integer.valueOf(blockpos.getX() & 15), Integer.valueOf(blockpos.getY() & 15), Integer.valueOf(blockpos.getZ() & 15) }) });\n } else {\n Entity entity = this.mc.getRenderViewEntity();\n EnumFacing enumfacing = entity.getHorizontalFacing();\n String s = \"String_Node_Str\";\n switch(enumfacing.ordinal() - 1) {\n case 1:\n s = \"String_Node_Str\";\n break;\n case 2:\n s = \"String_Node_Str\";\n break;\n case 3:\n s = \"String_Node_Str\";\n break;\n case 4:\n s = \"String_Node_Str\";\n }\n ArrayList<String> arraylist = Lists.newArrayList(new String[] { \"String_Node_Str\" + this.mc.getVersion() + \"String_Node_Str\" + ClientBrandRetriever.getClientModName() + \"String_Node_Str\", this.mc.debug, this.mc.renderGlobal.getDebugInfoRenders(), this.mc.renderGlobal.getDebugInfoEntities(), \"String_Node_Str\" + this.mc.effectRenderer.getStatistics() + \"String_Node_Str\" + this.mc.theWorld.getDebugLoadedEntities(), this.mc.theWorld.getProviderName(), \"String_Node_Str\", String.format(\"String_Node_Str\", new Object[] { Double.valueOf(this.mc.getRenderViewEntity().posX), Double.valueOf(this.mc.getRenderViewEntity().getEntityBoundingBox().minY), Double.valueOf(this.mc.getRenderViewEntity().posZ) }), String.format(\"String_Node_Str\", new Object[] { Integer.valueOf(blockpos.getX()), Integer.valueOf(blockpos.getY()), Integer.valueOf(blockpos.getZ()) }), String.format(\"String_Node_Str\", new Object[] { Integer.valueOf(blockpos.getX() & 15), Integer.valueOf(blockpos.getY() & 15), Integer.valueOf(blockpos.getZ() & 15), Integer.valueOf(blockpos.getX() >> 4), Integer.valueOf(blockpos.getY() >> 4), Integer.valueOf(blockpos.getZ() >> 4) }), String.format(\"String_Node_Str\", new Object[] { enumfacing, s, Float.valueOf(MathHelper.wrapAngleTo180_float(entity.rotationYaw)), Float.valueOf(MathHelper.wrapAngleTo180_float(entity.rotationPitch)) }) });\n if (this.mc.theWorld != null && this.mc.theWorld.isBlockLoaded(blockpos)) {\n Chunk chunk = this.mc.theWorld.getChunkFromBlockCoords(blockpos);\n arraylist.add(\"String_Node_Str\" + chunk.getBiome(blockpos, this.mc.theWorld.getWorldChunkManager()).biomeName);\n arraylist.add(\"String_Node_Str\" + chunk.getLightSubtracted(blockpos, 0) + \"String_Node_Str\" + chunk.getLightFor(EnumSkyBlock.SKY, blockpos) + \"String_Node_Str\" + chunk.getLightFor(EnumSkyBlock.BLOCK, blockpos) + \"String_Node_Str\");\n DifficultyInstance difficultyinstance = this.mc.theWorld.getDifficultyForLocation(blockpos);\n if (this.mc.isIntegratedServerRunning() && this.mc.getIntegratedServer() != null) {\n EntityPlayerMP entityplayermp = this.mc.getIntegratedServer().getConfigurationManager().getPlayerByUUID(this.mc.thePlayer.getUniqueID());\n if (entityplayermp != null) {\n difficultyinstance = entityplayermp.worldObj.getDifficultyForLocation(new BlockPos(entityplayermp));\n }\n }\n arraylist.add(String.format(\"String_Node_Str\", new Object[] { Float.valueOf(difficultyinstance.getAdditionalDifficulty()), Long.valueOf(this.mc.theWorld.getWorldTime() / 24000L) }));\n }\n if (this.mc.entityRenderer != null && this.mc.entityRenderer.isShaderActive()) {\n arraylist.add(\"String_Node_Str\" + this.mc.entityRenderer.getShaderGroup().getShaderGroupName());\n }\n if (this.mc.objectMouseOver != null && this.mc.objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && this.mc.objectMouseOver.getBlockPos() != null) {\n BlockPos blockpos1 = this.mc.objectMouseOver.getBlockPos();\n arraylist.add(String.format(\"String_Node_Str\", new Object[] { Integer.valueOf(blockpos1.getX()), Integer.valueOf(blockpos1.getY()), Integer.valueOf(blockpos1.getZ()) }));\n if (!this.mc.objectMouseOver.getBlockPos().equals(this.cursorPos)) {\n SpongeModMessageHandler.INSTANCE.sendToServer(new MessageTrackerDataRequest(0, -1, blockpos1.getX(), blockpos1.getY(), blockpos1.getZ()));\n }\n arraylist.add(\"String_Node_Str\" + this.blockOwner);\n arraylist.add(\"String_Node_Str\" + this.blockNotifier);\n this.cursorPos = this.mc.objectMouseOver.getBlockPos();\n } else if (this.mc.objectMouseOver != null && this.mc.objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.ENTITY) {\n Entity target = this.mc.objectMouseOver.entityHit;\n BlockPos blockPos = target.getPosition();\n if (!blockPos.equals(this.cursorPos)) {\n SpongeModMessageHandler.INSTANCE.sendToServer(new MessageTrackerDataRequest(1, target.getEntityId(), blockPos.getX(), blockPos.getY(), blockPos.getZ()));\n }\n arraylist.add(\"String_Node_Str\" + this.blockOwner);\n arraylist.add(\"String_Node_Str\" + this.blockNotifier);\n this.cursorPos = blockPos;\n }\n return arraylist;\n }\n}\n"
"protected void addFields() {\n Group ftpParameterGroup = new Group(this, SWT.NULL);\n ftpParameterGroup.setText(\"String_Node_Str\");\n GridLayout ftpParameterLayout = new GridLayout();\n ftpParameterLayout.numColumns = 2;\n ftpParameterGroup.setLayout(ftpParameterLayout);\n GridData gridData = new GridData(GridData.FILL_HORIZONTAL);\n ftpParameterGroup.setLayoutData(gridData);\n ftpUsernameText = new LabelledText(ftpParameterGroup, Messages.getString(\"String_Node_Str\"), true);\n ftpPasswordText = new LabelledText(ftpParameterGroup, Messages.getString(\"String_Node_Str\"), 1, SWT.BORDER | SWT.PASSWORD);\n ftpHostText = new LabelledText(ftpParameterGroup, Messages.getString(\"String_Node_Str\"), true);\n ftpPortText = new LabelledText(ftpParameterGroup, Messages.getString(\"String_Node_Str\"), true);\n Composite com = new Composite(ftpParameterGroup, SWT.NONE);\n layoutGroup = new GridLayout(2, false);\n com.setLayout(layoutGroup);\n List<String> codeList = new ArrayList<String>();\n codeList.add(ENCODING);\n codeList.add(\"String_Node_Str\");\n codeList.add(CUSTOM);\n encodeCombo = new LabelledCombo(com, \"String_Node_Str\", \"String_Node_Str\", codeList);\n if (getConnection().getEcoding() == null || \"String_Node_Str\".equals(getConnection().getEcoding())) {\n encodeCombo.setText(ENCODING);\n getConnection().setEcoding(encodeCombo.getText());\n }\n customText = new Text(ftpParameterGroup, SWT.BORDER | SWT.SINGLE);\n GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);\n gridData.horizontalSpan = 1;\n customText.setLayoutData(gd);\n List<String> connList = new ArrayList<String>();\n connList.add(\"String_Node_Str\");\n connList.add(\"String_Node_Str\");\n connModelCombo = new LabelledCombo(ftpParameterGroup, Messages.getString(\"String_Node_Str\"), \"String_Node_Str\", connList);\n if (getConnection().getMode() == null || \"String_Node_Str\".equals(getConnection().getMode())) {\n connModelCombo.setText(Messages.getString(\"String_Node_Str\"));\n getConnection().setMode(connModelCombo.getText());\n }\n buildGroup = new Group(this, SWT.NULL);\n buildGroup.setText(\"String_Node_Str\");\n layoutGroup = new GridLayout(1, false);\n buildGroup.setLayout(layoutGroup);\n gridData = new GridData(GridData.FILL_HORIZONTAL);\n buildGroup.setLayoutData(gridData);\n Composite checkButtonCom = new Composite(buildGroup, SWT.NONE);\n layoutGroup = new GridLayout(2, false);\n checkButtonCom.setLayout(layoutGroup);\n gridData = new GridData(GridData.FILL_HORIZONTAL);\n checkButtonCom.setLayoutData(gridData);\n sftpSuppBut = new Button(checkButtonCom, SWT.CHECK);\n sftpSuppBut.setText(Messages.getString(\"String_Node_Str\"));\n ftpsSuppBut = new Button(checkButtonCom, SWT.CHECK);\n ftpsSuppBut.setText(Messages.getString(\"String_Node_Str\"));\n String[] methodComboStr = { PUBLIC_KEY, PASSWORD };\n tetsCom = new Composite(buildGroup, SWT.NONE);\n layoutGroup = new GridLayout(1, false);\n tetsCom.setLayout(layoutGroup);\n gridData = new GridData(GridData.FILL_HORIZONTAL);\n tetsCom.setLayoutData(gridData);\n sftpChildCom = new Composite(tetsCom, SWT.NONE);\n layoutGroup = new GridLayout(3, false);\n sftpChildCom.setLayout(layoutGroup);\n sftpChildComGridData = new GridData(GridData.FILL_HORIZONTAL);\n gridData.minimumWidth = 300;\n gridData.minimumHeight = 120;\n gridData.widthHint = 300;\n gridData.heightHint = 110;\n sftpChildCom.setLayoutData(sftpChildComGridData);\n methodCombo = new LabelledCombo(sftpChildCom, Messages.getString(\"String_Node_Str\"), \"String_Node_Str\", methodComboStr, 2, false, SWT.NONE);\n String[] extensions = { \"String_Node_Str\" };\n privatekeyText = new LabelledFileField(sftpChildCom, Messages.getString(\"String_Node_Str\"), extensions);\n passphraseText = new LabelledText(sftpChildCom, Messages.getString(\"String_Node_Str\"), 1, SWT.BORDER | SWT.PASSWORD);\n ftpsChildCom = new Composite(tetsCom, SWT.NONE);\n layoutGroup = new GridLayout(3, false);\n ftpsChildCom.setLayout(layoutGroup);\n ftpsChildComGridData = new GridData(GridData.FILL_HORIZONTAL);\n gridData.minimumWidth = 300;\n gridData.minimumHeight = 120;\n gridData.widthHint = 300;\n gridData.heightHint = 90;\n ftpsChildCom.setLayoutData(ftpsChildComGridData);\n keyFileText = new LabelledFileField(ftpsChildCom, Messages.getString(\"String_Node_Str\"), extensions);\n keyPasswordText = new LabelledText(ftpsChildCom, Messages.getString(\"String_Node_Str\"), 1, SWT.BORDER | SWT.PASSWORD);\n proxyCom = new Composite(buildGroup, SWT.NONE);\n layoutGroup = new GridLayout(1, false);\n proxyCom.setLayout(layoutGroup);\n gridData = new GridData(GridData.FILL_HORIZONTAL);\n proxyCom.setLayoutData(gridData);\n useSocksBut = new Button(proxyCom, SWT.CHECK);\n useSocksBut.setText(Messages.getString(\"String_Node_Str\"));\n proxyChildCom = new Composite(proxyCom, SWT.NONE);\n layoutGroup = new GridLayout(2, false);\n proxyChildCom.setLayout(layoutGroup);\n proxyChildComGridData = new GridData(GridData.FILL_HORIZONTAL);\n proxyChildCom.setLayoutData(proxyChildComGridData);\n proxyHostText = new LabelledText(proxyChildCom, Messages.getString(\"String_Node_Str\"), true);\n proxyPortText = new LabelledText(proxyChildCom, Messages.getString(\"String_Node_Str\"), true);\n proxyUsernameText = new LabelledText(proxyChildCom, Messages.getString(\"String_Node_Str\"), true);\n proxyPasswordText = new LabelledText(proxyChildCom, Messages.getString(\"String_Node_Str\"), 1, SWT.BORDER | SWT.PASSWORD);\n checkFieldsValue();\n}\n"
"public Properties getQueryParameters(URL url) {\n Properties properties = new Properties();\n String query = url.getQuery();\n if (query == null) {\n return properties;\n String[] params = StringUtil.split(query, \"String_Node_Str\");\n for (int i = 0; i < params.length; i++) {\n String[] keyValuePair = StringUtil.split(params[i], \"String_Node_Str\");\n if (keyValuePair.length != 2) {\n Log.warning(\"String_Node_Str\" + params[i]);\n continue;\n }\n String key = urlDecode(keyValuePair[0]);\n if (key == null) {\n Log.warning(\"String_Node_Str\" + keyValuePair[0]);\n continue;\n }\n String value = urlDecode(keyValuePair[1]);\n if (value == null) {\n Log.warning(\"String_Node_Str\" + keyValuePair[1]);\n continue;\n }\n properties.setProperty(key, value);\n }\n return properties;\n}\n"
"public void schedule() {\n if (Level > 0 && MPet.Status == PetState.Here) {\n timeCounter--;\n if (timeCounter <= 0) {\n MPet.getPet().getHandle().heal(1, EntityRegainHealthEvent.RegainReason.REGEN);\n timeCounter = HealtregenTime - Level;\n }\n }\n}\n"
"public static ArrayList<Order> getFreeOrders() {\n String reqUrl = getRequestUrl(null, ORDER_PAGE);\n Bundle params = new Bundle();\n params.putString(ORDER_QUERY_KEY, ORDER_STATUS_FREE);\n String respStr = RequestHelper.doRequestPost(reqUrl, params);\n try {\n return ResponseParser.parseOrders(respStr);\n } catch (JSONException e) {\n LogUtils.logE(e.getMessage());\n } catch (Exception e) {\n LogUtils.logD(e.getMessage());\n }\n return null;\n}\n"
"public CallAndType getEnclosingMethodCallExpression() {\n List<CallAndType> enclosingCalls = getAllEnclosingMethodCallExpressions();\n return (!enclosingCalls.isEmpty() ? enclosingCalls.get(enclosingCalls.size() - 1) : null);\n}\n"
"public synchronized ITmfEvent readNextEvent(final ITmfContext context) {\n final ITmfEvent event = parseEvent(context);\n if (event != null) {\n updateAttributes(previousContext, event.getTimestamp());\n TmfExperimentContext expContext = (TmfExperimentContext) context;\n int trace = expContext.getLastTrace();\n if (trace != TmfExperimentContext.NO_TRACE) {\n TmfExperimentLocation location = (TmfExperimentLocation) expContext.getLocation();\n location.getLocation().getLocations()[trace] = expContext.getContexts()[trace].getLocation();\n }\n context.increaseRank();\n processEvent(event);\n }\n return event;\n}\n"
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n try {\n if (level.isFirst()) {\n level.setFirst(false);\n } else {\n writer.write(',');\n }\n if (xPathFragment.nameIsText()) {\n if (level.isCollection() && level.isEmptyCollection()) {\n writer.write('[');\n level.setEmptyCollection(false);\n level.setNeedToOpenComplex(false);\n charactersAllowed = true;\n level = new Level(true, true, level);\n return;\n }\n }\n if (level.needToOpenComplex) {\n writer.write('{');\n level.needToOpenComplex = false;\n level.needToCloseComplex = true;\n }\n if (!(level.isCollection() && !level.isEmptyCollection())) {\n writeKey(xPathFragment);\n if (level.isCollection() && level.isEmptyCollection()) {\n writer.write('[');\n level.setEmptyCollection(false);\n }\n }\n charactersAllowed = true;\n level = new Level(true, true, level);\n } catch (IOException e) {\n throw XMLMarshalException.marshalException(e);\n }\n}\n"
"public static void main(String[] args) throws FileNotFoundException, IOException, ParseException {\n String[] files = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n File owlFile = new File(\"String_Node_Str\");\n Program program = null;\n long startTime, duration;\n String time;\n System.out.print(\"String_Node_Str\");\n startTime = System.nanoTime();\n String content = \"String_Node_Str\";\n for (String file : files) {\n content += Files.readFile(new File(prologDirectory + file));\n }\n duration = System.nanoTime() - startTime;\n time = Helper.prettyPrintNanoSeconds(duration, false, false);\n System.out.println(\"String_Node_Str\" + time + \"String_Node_Str\");\n System.out.print(\"String_Node_Str\");\n startTime = System.nanoTime();\n PrologParser pp = new PrologParser();\n program = pp.parseProgram(content);\n duration = System.nanoTime() - startTime;\n time = Helper.prettyPrintNanoSeconds(duration, false, false);\n System.out.println(\"String_Node_Str\" + time + \"String_Node_Str\");\n KB kb = new KB();\n createChemElementsMapping();\n createNewGroups();\n NamedClass atomClass = getAtomicConcept(\"String_Node_Str\");\n for (String element : chemElements.values()) {\n NamedClass elClass = getAtomicConcept(element);\n SubClassAxiom sc = new SubClassAxiom(elClass, atomClass);\n kb.addAxiom(sc);\n }\n String kbString = \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n if (!ignoreAmes) {\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n }\n if (includeMutagenesis) {\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n }\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n kbString += getURI2(\"String_Node_Str\") + \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n KB kb2 = KBParser.parseKBFile(kbString);\n kb.addKB(kb2);\n System.out.print(\"String_Node_Str\");\n startTime = System.nanoTime();\n ArrayList<Clause> clauses = program.getClauses();\n for (Clause clause : clauses) {\n List<Axiom> axioms = mapClause(clause);\n for (Axiom axiom : axioms) kb.addAxiom(axiom);\n }\n if (includeMutagenesis)\n addMutagenesis(kb);\n for (String compound : compounds) {\n if (!ignoreAmes && !compoundsAmes.contains(compound)) {\n BooleanDatatypePropertyAssertion ames = getBooleanDatatypePropertyAssertion(compound, \"String_Node_Str\", false);\n kb.addAxiom(ames);\n }\n }\n String[] mainClasses = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n Set<String> mainClassesSet = new HashSet<String>(Arrays.asList(mainClasses));\n DisjointClassesAxiom disjointAtomTypes = getDisjointClassesAxiom(mainClassesSet);\n kb.addAxiom(disjointAtomTypes);\n duration = System.nanoTime() - startTime;\n time = Helper.prettyPrintNanoSeconds(duration, false, false);\n System.out.println(\"String_Node_Str\" + time + \"String_Node_Str\");\n System.out.print(\"String_Node_Str\");\n startTime = System.nanoTime();\n OWLAPIReasoner.exportKBToOWL(owlFile, kb, ontologyURI);\n duration = System.nanoTime() - startTime;\n time = Helper.prettyPrintNanoSeconds(duration, false, false);\n System.out.println(\"String_Node_Str\" + time + \"String_Node_Str\");\n File confTrainFile = new File(\"String_Node_Str\");\n Files.clearFile(confTrainFile);\n String confHeader = \"String_Node_Str\";\n confHeader += \"String_Node_Str\";\n confHeader += \"String_Node_Str\";\n confHeader += \"String_Node_Str\";\n confHeader += \"String_Node_Str\" + getURI2(\"String_Node_Str\") + \"String_Node_Str\";\n confHeader += \"String_Node_Str\";\n confHeader += \"String_Node_Str\";\n confHeader += \"String_Node_Str\";\n confHeader += \"String_Node_Str\";\n Files.appendFile(confTrainFile, confHeader);\n File trainingFilePositives = new File(prologDirectory + \"String_Node_Str\");\n File trainingFileNegatives = new File(prologDirectory + \"String_Node_Str\");\n List<Individual> posTrainExamples = getExamples(trainingFilePositives);\n List<Individual> negTrainExamples = getExamples(trainingFileNegatives);\n appendPosExamples(confTrainFile, posTrainExamples);\n appendNegExamples(confTrainFile, negTrainExamples);\n File confPTE1File = new File(\"String_Node_Str\");\n Files.clearFile(confPTE1File);\n File testPTE1Positives = new File(prologDirectory + \"String_Node_Str\");\n File testPTE1Negatives = new File(prologDirectory + \"String_Node_Str\");\n List<Individual> posPTE1Examples = getExamples(testPTE1Positives);\n List<Individual> negPTE1Examples = getExamples(testPTE1Negatives);\n appendPosExamples(confTrainFile, posPTE1Examples);\n appendNegExamples(confTrainFile, negPTE1Examples);\n if (createPTE1Conf) {\n Files.clearFile(confPTE1File);\n Files.appendFile(confPTE1File, \"String_Node_Str\");\n appendPosExamples(confPTE1File, posPTE1Examples);\n appendNegExamples(confPTE1File, negPTE1Examples);\n }\n if (createPTE2Conf) {\n File confPTE2File = new File(\"String_Node_Str\");\n Files.clearFile(confPTE2File);\n Files.appendFile(confPTE2File, \"String_Node_Str\");\n Files.appendFile(confPTE2File, getPTE2Examples());\n }\n}\n"
"private void genDefinedStringPattern(DefinedStringPattern dsp) throws Exception {\n String dspType = dsp.getSchema();\n String dspTypeName = dspType.endsWith(\"String_Node_Str\") ? dspType.substring(0, dspType.length() - 1) : dspType;\n Resource dspTypeRes = RDFTypeMap.xsd_type_for(dspTypeName, owlTarget);\n FHIRResource dspRes = fact.fhir_class(dsp.getCode(), dsp.getBase()).addDefinition(dsp.getDefinition());\n if (dspRes != null) {\n if (dspType.endsWith(\"String_Node_Str\")) {\n if (!owlTarget) {\n List<Resource> facets = new ArrayList<Resource>(1);\n facets.add(fact.fhir_pattern(dsp.getRegex()));\n dspRes.restriction(fact.fhir_restriction(value, fact.fhir_datatype_restriction(dspTypeRes == XSD.xstring ? XSD.normalizedString : dspTypeRes, facets)));\n } else\n dspRes.restriction(fact.fhir_restriction(value, dspTypeRes));\n } else\n dspRes.restriction(fact.fhir_restriction(value, dspTypeRes));\n }\n}\n"
"public void addDest(MRIDRule dest) {\n if (this.dest != null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n this.dest = dest;\n}\n"
"public void ensureMemberInjected(Errors errors, Object toInject) throws ErrorsException {\n injector.memberInjector.ensureInjected(errors, toInject);\n}\n"
"public void checkArguments(MarkerList markers, IValue instance, IArguments arguments, ITypeContext typeContext) {\n int len = arguments.size();\n Parameter par;\n IType parType;\n if (instance != null && (this.modifiers & Modifiers.INFIX) == Modifiers.INFIX) {\n Parameter par = this.parameters[0];\n parType = par.getType(typeContext);\n IValue instance1 = instance.withType(parType);\n if (instance1 == null) {\n Marker marker = markers.create(instance.getPosition(), \"String_Node_Str\", par.name);\n marker.addInfo(\"String_Node_Str\" + parType);\n marker.addInfo(\"String_Node_Str\" + instance.getType());\n }\n if ((this.modifiers & Modifiers.VARARGS) != 0) {\n par = this.parameters[this.parameterCount - 1];\n arguments.checkVarargsValue(this.parameterCount - 2, par, markers, typeContext);\n }\n return;\n } else if (instance == null && (this.modifiers & Modifiers.PREFIX) == Modifiers.PREFIX) {\n parType = this.theClass.getType();\n instance = arguments.getFirstValue();\n IValue instance1 = instance.withType(parType);\n if (instance1 == null) {\n Marker marker = markers.create(instance.getPosition(), \"String_Node_Str\", this.name);\n marker.addInfo(\"String_Node_Str\" + parType);\n marker.addInfo(\"String_Node_Str\" + instance.getType());\n }\n return;\n }\n if ((this.modifiers & Modifiers.VARARGS) != 0) {\n len = this.parameterCount - 1;\n par = this.parameters[len];\n arguments.checkVarargsValue(len, par, markers, typeContext);\n for (int i = 0; i < len; i++) {\n par = this.parameters[i];\n arguments.checkValue(i, par, markers, typeContext);\n }\n return;\n }\n for (int i = 0; i < this.parameterCount; i++) {\n par = this.parameters[i];\n arguments.checkValue(i, par, markers, typeContext);\n }\n}\n"
"public void onBindViewHolder(MovieViewHolder holder, int position) {\n MoviePreview movie = movies.get(position);\n Picasso.with(context).load(context.getString(R.string.movies_db_poster_base_url_poster_w342) + movie.getPosterUrl()).placeholder(R.drawable.poster_ph).into(holder.poster);\n}\n"
"protected void parseFile(BufferedReader reader) throws IOException {\n initializeDataContainers();\n swtGuiManager.setProgressBarText(\"String_Node_Str\" + dataSetDescription.getDataSetName());\n float progressBarFactor = 100f / numberOfLinesInFile;\n for (int countHeaderLines = 0; countHeaderLines < dataSetDescription.getNumberOfHeaderLines(); countHeaderLines++) {\n reader.readLine();\n }\n ArrayList<ColumnDescription> parsingPattern = dataSetDescription.getParsingPattern();\n int lineCounter = 0;\n String numberParsingErrorMessage = \"String_Node_Str\" + dataSetDescription.getDataSetName() + \"String_Node_Str\" + filePath + \"String_Node_Str\";\n boolean parsingErrorOccured = false;\n IDSpecification rowIDSpecification = dataSetDescription.getRowIDSpecification();\n IDCategory rowIDCategory = IDCategory.getIDCategory(rowIDSpecification.getIdCategory());\n IDType fromIDType = IDType.getIDType(rowIDSpecification.getIdType());\n IDType toIDType;\n if (dataDomain.isColumnDimension())\n toIDType = dataDomain.getRecordIDType();\n else\n toIDType = dataDomain.getDimensionIDType();\n IDMappingManager rowIDMappingManager = IDMappingManagerRegistry.get().getIDMappingManager(rowIDCategory);\n int columnOfRowIDs = dataSetDescription.getColumnOfRowIds();\n MappingType mappingType = rowIDMappingManager.createMap(fromIDType, toIDType, false, true);\n IDTypeParsingRules parsingRules = toIDType.getIdTypeParsingRules();\n String line;\n while ((line = reader.readLine()) != null) {\n String[] splitLine = line.split(dataSetDescription.getDelimiter());\n String id = splitLine[columnOfRowIDs];\n id = convertID(id, parsingRules);\n rowIDMappingManager.addMapping(mappingType, id, lineCounter - startParsingAtLine);\n for (int count = 0; count < parsingPattern.size(); count++) {\n ColumnDescription column = parsingPattern.get(count);\n String cellContent = splitLine[column.getColumn()];\n if (column.getDataType().equalsIgnoreCase(\"String_Node_Str\")) {\n float[] targetColumn = (float[]) targetColumns.get(count);\n Float value;\n try {\n value = Float.parseFloat(cellContent);\n } catch (NumberFormatException nfe) {\n parsingErrorOccured = true;\n numberParsingErrorMessage += \"String_Node_Str\" + (column.getColumn()) + \"String_Node_Str\" + (lineCounter + dataSetDescription.getNumberOfHeaderLines()) + \"String_Node_Str\" + cellContent + \"String_Node_Str\";\n value = Float.NaN;\n }\n if (lineCounter < targetColumn.length) {\n targetColumn[lineCounter] = value;\n } else {\n System.out.println(\"String_Node_Str\" + lineCounter + \"String_Node_Str\" + count);\n }\n } else if (column.getDataType().equalsIgnoreCase(\"String_Node_Str\")) {\n ArrayList<String> targetColumn = (ArrayList<String>) targetColumns.get(count);\n targetColumn.add(splitLine[column.getColumn()]);\n }\n if (lineCounter % 100 == 0) {\n swtGuiManager.setProgressBarPercentage((int) (progressBarFactor * lineCounter));\n }\n }\n lineCounter++;\n }\n if (parsingErrorOccured) {\n Logger.log(new Status(IStatus.ERROR, GeneralManager.PLUGIN_ID, numberParsingErrorMessage));\n }\n}\n"
"protected void runStepInternal(final Step step, final Optional<BuildTarget> buildTarget) throws StepFailedException {\n Preconditions.checkNotNull(step);\n if (context.getVerbosity().shouldPrintCommand()) {\n context.getStdErr().println(step.getDescription(context));\n }\n context.postEvent(StepEvent.started(step, step.getDescription(context)));\n int exitCode = 1;\n try {\n exitCode = step.execute(context);\n } catch (Throwable t) {\n throw StepFailedException.createForFailingStepWithException(step, context, t, buildTarget);\n } finally {\n context.postEvent(StepEvent.finished(step, step.getDescription(context), exitCode));\n }\n if (exitCode != 0) {\n throw StepFailedException.createForFailingStep(step, context, exitCode, buildTarget);\n }\n}\n"
"private void parsePair(String name, JsonValue jsonValue) throws SAXException {\n if (jsonValue == null) {\n return;\n }\n ValueType valueType = jsonValue.getValueType();\n if (valueType == ValueType.ARRAY) {\n JsonArray jsonArray = (JsonArray) jsonValue;\n String parentLocalName = name;\n if (attributePrefix != null && parentLocalName.startsWith(attributePrefix)) {\n return;\n }\n String uri = Constants.EMPTY_STRING;\n if (namespaceAware && namespaces != null) {\n if (parentLocalName.length() > 2) {\n int nsIndex = parentLocalName.indexOf(namespaceSeparator, 1);\n if (nsIndex > -1) {\n String prefix = parentLocalName.substring(0, nsIndex);\n uri = namespaces.resolveNamespacePrefix(prefix);\n }\n if (uri == null) {\n uri = namespaces.getDefaultNamespaceURI();\n } else {\n parentLocalName = parentLocalName.substring(nsIndex + 1);\n }\n } else {\n uri = namespaces.getDefaultNamespaceURI();\n }\n }\n boolean isTextValue = isTextValue(parentLocalName);\n int arraySize = jsonArray.size();\n if (arraySize == 0) {\n if (contentHandler instanceof UnmarshalRecord) {\n UnmarshalRecord ur = (UnmarshalRecord) contentHandler;\n XPathNode node = ur.getNonAttributeXPathNode(uri, parentLocalName, parentLocalName, null);\n if (node != null) {\n NodeValue nv = node.getNodeValue();\n if (nv == null && node.getTextNode() != null) {\n nv = node.getTextNode().getUnmarshalNodeValue();\n }\n if (nv != null && nv.isContainerValue()) {\n ur.getContainerInstance(((ContainerValue) nv));\n }\n }\n }\n }\n startCollection();\n XPathFragment groupingXPathFragment = null;\n XPathFragment itemXPathFragment = null;\n if (contentHandler instanceof UnmarshalRecord) {\n UnmarshalRecord unmarshalRecord = (UnmarshalRecord) contentHandler;\n if (unmarshalRecord.getUnmarshaller().isWrapperAsCollectionName()) {\n XPathNode unmarshalRecordXPathNode = unmarshalRecord.getXPathNode();\n if (null != unmarshalRecordXPathNode) {\n XPathFragment currentFragment = new XPathFragment();\n currentFragment.setLocalName(parentLocalName);\n currentFragment.setNamespaceURI(uri);\n currentFragment.setNamespaceAware(namespaceAware);\n XPathNode groupingXPathNode = unmarshalRecordXPathNode.getNonAttributeChildrenMap().get(currentFragment);\n if (groupingXPathNode != null) {\n if (groupingXPathNode.getUnmarshalNodeValue() instanceof CollectionGroupingElementNodeValue) {\n groupingXPathFragment = groupingXPathNode.getXPathFragment();\n contentHandler.startElement(uri, parentLocalName, parentLocalName, new AttributesImpl());\n XPathNode itemXPathNode = groupingXPathNode.getNonAttributeChildren().get(0);\n itemXPathFragment = itemXPathNode.getXPathFragment();\n } else if (groupingXPathNode.getUnmarshalNodeValue() == null) {\n XPathNode itemXPathNode = groupingXPathNode.getNonAttributeChildren().get(0);\n if (itemXPathNode != null) {\n if (((MappingNodeValue) itemXPathNode.getUnmarshalNodeValue()).isContainerValue()) {\n groupingXPathFragment = groupingXPathNode.getXPathFragment();\n contentHandler.startElement(uri, parentLocalName, parentLocalName, new AttributesImpl());\n itemXPathFragment = itemXPathNode.getXPathFragment();\n }\n }\n }\n }\n }\n }\n for (int i = 0; i < arraySize; i++) {\n JsonValue nextArrayValue = jsonArray.get(i);\n if (nextArrayValue.getValueType() == ValueType.NULL) {\n ((UnmarshalRecord) contentHandler).setNil(true);\n }\n if (!isTextValue) {\n if (null != itemXPathFragment) {\n contentHandler.startElement(itemXPathFragment.getNamespaceURI(), itemXPathFragment.getLocalName(), itemXPathFragment.getLocalName(), attributes.setValue(nextArrayValue, attributePrefix, namespaces, namespaceSeparator, namespaceAware));\n } else {\n contentHandler.startElement(uri, parentLocalName, parentLocalName, attributes.setValue(nextArrayValue, attributePrefix, namespaces, namespaceSeparator, namespaceAware));\n }\n }\n parseValue(nextArrayValue);\n if (!isTextValue) {\n if (null != itemXPathFragment) {\n contentHandler.endElement(itemXPathFragment.getNamespaceURI(), itemXPathFragment.getLocalName(), itemXPathFragment.getLocalName());\n } else {\n contentHandler.endElement(uri, parentLocalName, parentLocalName);\n }\n }\n }\n }\n if (null != groupingXPathFragment) {\n contentHandler.endElement(uri, groupingXPathFragment.getLocalName(), groupingXPathFragment.getLocalName());\n }\n endCollection();\n } else {\n String qualifiedName = name;\n if (attributePrefix != null && qualifiedName.startsWith(attributePrefix)) {\n return;\n }\n String localName = qualifiedName;\n String uri = Constants.EMPTY_STRING;\n if (namespaceAware && namespaces != null) {\n if (localName.length() > 2) {\n int nsIndex = localName.indexOf(namespaceSeparator, 1);\n String prefix = Constants.EMPTY_STRING;\n if (nsIndex > -1) {\n prefix = localName.substring(0, nsIndex);\n }\n uri = namespaces.resolveNamespacePrefix(prefix);\n if (uri == null) {\n uri = namespaces.getDefaultNamespaceURI();\n } else {\n localName = localName.substring(nsIndex + 1);\n }\n if (localName.equals(Constants.SCHEMA_TYPE_ATTRIBUTE) && uri != null && uri.equals(javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI)) {\n return;\n }\n } else {\n uri = namespaces.getDefaultNamespaceURI();\n }\n }\n if (contentHandler instanceof XMLRootRecord || contentHandler instanceof DeferredContentHandler) {\n if (!namespaceAware && localName.equals(Constants.SCHEMA_TYPE_ATTRIBUTE)) {\n return;\n }\n if (textWrapper != null && textWrapper.equals(localName)) {\n parseValue(jsonValue);\n return;\n }\n } else if (contentHandler instanceof UnmarshalRecord && ((UnmarshalRecord) contentHandler).getXPathNode() != null) {\n if (!namespaceAware && localName.equals(Constants.SCHEMA_TYPE_ATTRIBUTE) && !((UnmarshalRecord) contentHandler).getXPathNode().hasTypeChild()) {\n return;\n }\n boolean isTextValue = isTextValue(localName);\n if (isTextValue) {\n parseValue(jsonValue);\n return;\n }\n }\n if (jsonValue != null && jsonValue.getValueType() == valueType.NULL) {\n contentHandler.setNil(true);\n }\n contentHandler.startElement(uri, localName, localName, attributes.setValue(jsonValue, attributePrefix, namespaces, namespaceSeparator, namespaceAware));\n parseValue(jsonValue);\n contentHandler.endElement(uri, localName, localName);\n }\n}\n"
"protected boolean isInputAllowed() {\n final String newProjectName = getProjectNameFieldValue();\n boolean isInputAllowed = true;\n if (StringUtils.isBlank(newProjectName) || !ProjectNameBP.isValidProjectName(newProjectName, true)) {\n setErrorMessage(Messages.SaveProjectAsActionInvalidName);\n isInputAllowed = false;\n }\n if (ProjectPM.doesProjectNameExist(newProjectName)) {\n setErrorMessage(Messages.SaveProjectAsActionDoubleOrInvalidName);\n isInputAllowed = false;\n }\n return isInputAllowed;\n}\n"
"public void actionPerformed(ActionEvent e) {\n filechooser.showOpenDialog(null);\n for (File file : filechooser.getSelectedFiles()) {\n if (!folderlist.contains(file.getAbsolutePath())) {\n folderlist.add(file.getAbsolutePath());\n addListModelEntry(list, file.getAbsolutePath());\n folderlistHasChanged = true;\n }\n }\n}\n"
"public void onRow(Object[] args) {\n if (!countByColumn || args == null || args.length == 0) {\n if (countByColumn) {\n countByColumn = false;\n }\n ++count;\n } else if (args.length > 0 && args[0] != null) {\n ++count;\n }\n}\n"
"public void modifyText(ModifyEvent e) {\n String min = minValue.getText();\n if (min == \"String_Node_Str\") {\n updateStatus(IStatus.ERROR, MSG_EMPTY);\n } else if (!CheckValueUtils.isNumberValue(min)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_NUMBER);\n } else {\n updateStatus(IStatus.OK, MSG_OK);\n parameter.setMinValue(Double.valueOf(min));\n }\n}\n"
"private boolean isViewAttached(int viewID) {\n if (PlatformUI.getWorkbench().getActiveWorkbenchWindow() == null) {\n return true;\n }\n IWorkbenchPage workbenchPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n IView view = retrieveView(viewID);\n if (view instanceof CaleydoViewPart) {\n return ((CaleydoViewPart) view).isAttached();\n } else if (view instanceof AView) {\n CaleydoViewPart relatedView = getRelatedViewPart(view);\n if (relatedView != null) {\n return relatedView.isAttached();\n }\n }\n return isAttached;\n}\n"
"public void onItemUse(PlayerUseItemEvent event) {\n if (event == null)\n return;\n Item item = event.item.getItem();\n if (item instanceof IEurekaItem) {\n IEurekaItem eurekaItem = (IEurekaItem) item;\n if (!eurekaItem.isAllowed(event.entityPlayer)) {\n event.setCanceled(true);\n if (event.entityPlayer != null)\n event.entityPlayer.addChatComponentMessage(new ChatComponentText(eurekaItem.getMessage()));\n }\n }\n}\n"
"public String getFullXmlPath() {\n return this.rootXmlPath + XmlElement.SEPARATOR + this.relativePath;\n}\n"
"protected IArea createBlockTextArea(String text, ITextContent content, FontInfo fi, Dimension contentDimension) {\n AbstractArea textArea = (AbstractArea) AreaFactory.createTextArea(content, text, fi);\n textArea.setWidth(Math.min(context.getMaxWidth(), contentDimension.getWidth()));\n textArea.setHeight(Math.min(context.getMaxHeight(), contentDimension.getHeight()));\n return textArea;\n}\n"
"protected boolean buy(String playerName, BuyStartItem boughtItem) {\n StartItem item = boughtItem.getStartItem();\n int lastBid = item.getBid();\n String errMsg = null;\n Player player = playerManager.getCurrentPlayer();\n int price = 0;\n int sharePrice = 0;\n String shareCompName = \"String_Node_Str\";\n while (true) {\n if (!boughtItem.setSharePriceOnly()) {\n if (item.getStatus() != StartItem.BUYABLE) {\n errMsg = LocalText.getText(\"String_Node_Str\");\n break;\n }\n price = item.getBasePrice();\n if (item.getBid() > price)\n price = item.getBid();\n if (player.getFreeCash() < price) {\n errMsg = LocalText.getText(\"String_Node_Str\");\n break;\n }\n } else {\n price = item.getBid();\n }\n if (boughtItem.hasSharePriceToSet()) {\n shareCompName = boughtItem.getCompanyToSetPriceFor();\n sharePrice = boughtItem.getAssociatedSharePrice();\n if (sharePrice == 0) {\n errMsg = LocalText.getText(\"String_Node_Str\", shareCompName);\n break;\n }\n }\n break;\n }\n if (errMsg != null) {\n System.out.println(errMsg);\n DisplayBuffer.add(this, LocalText.getText(\"String_Node_Str\", playerName, item.getName(), errMsg));\n return false;\n }\n assignItem(player, item, price, sharePrice);\n if (lastBid == 0) {\n playerManager.setPriorityPlayerToNext();\n }\n playerManager.setCurrentToNextPlayer();\n numPasses.set(0);\n auctionItemState.set(null);\n return result;\n}\n"
"private void setErrorPageContentType(Response response, String location, Context context) {\n if (response.getContentType() == null && location != null) {\n String str = location.substring(location.lastIndexOf('.') + 1);\n str = context.findMimeMapping(str.toLowerCase(Locale.ENGLISH));\n if (str != null)\n ((ServletResponse) response).setContentType(str);\n }\n}\n"
"public void modifyNetwork(final String name, final String ip, final String dnsType) {\n NetworkAdd networkAdd = new NetworkAdd();\n networkAdd.setName(name);\n try {\n if (!CommandsUtils.isBlank(ip) && dnsType.toUpperCase().equals(NetworkDnsType.DYNAMIC.toString())) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_NETWORK, Constants.OUTPUT_OP_ADD, Constants.OUTPUT_OP_RESULT_FAIL, Constants.PARAMS_EXCLUSION_PAIR_NETWORK_ADD_STATIC_DDNS + Constants.PARAMS_EXCLUSION);\n return;\n }\n if (ip != null) {\n if (!validateIP(ip, Constants.OUTPUT_OP_MODIFY)) {\n return;\n }\n networkAdd.setIpBlocks(transferIpInfo(ip));\n }\n if (dnsType != null) {\n networkAdd.setDnsType(NetworkDnsType.valueOf(dnsType.toUpperCase()));\n }\n networkRestClient.update(networkAdd);\n CommandsUtils.printCmdSuccess(Constants.OUTPUT_OBJECT_NETWORK, Constants.OUTPUT_OP_RESULT_MODIFY);\n } catch (IllegalArgumentException ex) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_NETWORK, Constants.OUTPUT_OP_ADD, Constants.OUTPUT_OP_RESULT_FAIL, Constants.INVALID_VALUE + \"String_Node_Str\" + \"String_Node_Str\" + dnsType);\n } catch (Exception e) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_NETWORK, Constants.OUTPUT_OP_MODIFY, Constants.OUTPUT_OP_RESULT_FAIL, e.getMessage());\n }\n}\n"
"private static Table massageTableForOracle(Table table) {\n Table massaged = cloneTable(table);\n if (hasAutomaticPrimaryKey(massaged)) {\n massaged.getPrimaryKeyColumns()[0].setAutoIncrement(false);\n }\n return massaged;\n}\n"
"protected void saveMessageToCache(String dialogId, QBChatMessage qbChatMessage, State state) {\n DialogOccupant dialogOccupant;\n if (qbChatMessage.getSenderId() == null) {\n dialogOccupant = databaseManager.getDialogOccupantManager().getDialogOccupant(dialogId, chatCreator.getId());\n } else {\n dialogOccupant = databaseManager.getDialogOccupantManager().getDialogOccupant(dialogId, qbChatMessage.getSenderId());\n }\n boolean isDialogNotification = qbChatMessage.getProperty(ChatNotificationUtils.PROPERTY_NOTIFICATION_TYPE) != null;\n if (isDialogNotification) {\n saveDialogNotificationToCache(dialogOccupant, qbChatMessage);\n } else {\n Message message = ChatUtils.createLocalMessage(qbChatMessage, dialogOccupant, state);\n if (qbChatMessage.getAttachments() != null && !qbChatMessage.getAttachments().isEmpty()) {\n ArrayList<QBAttachment> attachmentsList = new ArrayList<QBAttachment>(qbChatMessage.getAttachments());\n Attachment attachment = ChatUtils.createLocalAttachment(attachmentsList.get(0));\n message.setAttachment(attachment);\n databaseManager.getAttachmentManager().createOrUpdate(attachment);\n }\n databaseManager.getMessageManager().createOrUpdate(message);\n }\n}\n"
"public void doExplode() {\n float radius = this.getRadius();\n if (this.world().isRemote) {\n for (int i = 0; i < 200; i++) {\n Vector3 diDian = new Vector3();\n diDian.x_$eq(Math.random() * radius / 2 - radius / 4);\n diDian.y_$eq(Math.random() * radius / 2 - radius / 4);\n diDian.z_$eq(Math.random() * radius / 2 - radius / 4);\n diDian.multiply(Math.min(radius, callCount) / 10);\n if (diDian.magnitude() <= radius) {\n diDian.translate(this.position);\n ICBMExplosion.proxy.spawnParticle(\"String_Node_Str\", this.world(), diDian, (Math.random() - 0.5) / 2, (Math.random() - 0.5) / 2, (Math.random() - 0.5) / 2, this.red, this.green, this.blue, 7.0F, 8);\n }\n }\n }\n AxisAlignedBB bounds = AxisAlignedBB.getBoundingBox(position.x() - radius, position.y() - radius, position.z() - radius, position.x() + radius, position.y() + radius, position.z() + radius);\n List<EntityLivingBase> allEntities = world().getEntitiesWithinAABB(EntityLivingBase.class, bounds);\n for (EntityLivingBase entity : allEntities) {\n if (this.isContagious) {\n ICBMExplosion.contagios_potion.poisonEntity(position, entity);\n }\n if (this.isPoisonous) {\n ICBMExplosion.poisonous_potion.poisonEntity(position, entity);\n }\n if (this.isConfuse) {\n entity.addPotionEffect(new CustomPotionEffect(Potion.confusion.id, 18 * 20, 0));\n entity.addPotionEffect(new CustomPotionEffect(Potion.digSlowdown.id, 20 * 60, 0));\n entity.addPotionEffect(new CustomPotionEffect(Potion.moveSlowdown.id, 20 * 60, 2));\n }\n }\n if (this.isMutate) {\n new BlastMutation(world(), this.exploder, position.x(), position.y(), position.z(), this.getRadius()).explode();\n }\n if (this.playShortSoundFX) {\n world().playSoundEffect(position.x() + 0.5D, position.y() + 0.5D, position.z() + 0.5D, Reference.PREFIX + \"String_Node_Str\", 4.0F, (1.0F + (world().rand.nextFloat() - world().rand.nextFloat()) * 0.2F) * 1F);\n }\n if (this.callCount > this.duration) {\n this.controller.endExplosion();\n }\n}\n"
"public Object get(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, Object refer) {\n if (null == name)\n return Json.fromJson(type, refer.toString());\n NutMap map = Json.fromJson(NutMap.class, refer.toString());\n Object theObj = map.get(name);\n if (null == theObj)\n return null;\n Class<?> clazz = Lang.getTypeClass(type);\n return Castors.me().castTo(theObj, clazz);\n}\n"
"public View configureView(View view) {\n final CommentUserNoteBlockHolder noteBlockHolder = (CommentUserNoteBlockHolder) view.getTag();\n noteBlockHolder.nameTextView.setText(Html.fromHtml(\"String_Node_Str\" + getNoteText().toString() + \"String_Node_Str\"));\n noteBlockHolder.agoTextView.setText(DateTimeUtils.timeSpanFromTimestamp(getTimestamp(), WordPress.getContext()));\n if (!TextUtils.isEmpty(getMetaHomeTitle()) || !TextUtils.isEmpty(getMetaSiteUrl())) {\n noteBlockHolder.bulletTextView.setVisibility(View.VISIBLE);\n noteBlockHolder.siteTextView.setVisibility(View.VISIBLE);\n if (!TextUtils.isEmpty(getMetaHomeTitle())) {\n noteBlockHolder.siteTextView.setText(getMetaHomeTitle());\n } else {\n noteBlockHolder.siteTextView.setText(getMetaSiteUrl().replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\"));\n }\n } else {\n noteBlockHolder.bulletTextView.setVisibility(View.GONE);\n noteBlockHolder.siteTextView.setVisibility(View.GONE);\n }\n if (hasImageMediaItem()) {\n String imageUrl = GravatarUtils.fixGravatarUrl(getNoteMediaItem().optString(\"String_Node_Str\", \"String_Node_Str\"), getAvatarSize());\n noteBlockHolder.avatarImageView.setImageUrl(imageUrl, WPNetworkImageView.ImageType.AVATAR);\n if (!TextUtils.isEmpty(getUserUrl())) {\n noteBlockHolder.avatarImageView.setOnTouchListener(mOnGravatarTouchListener);\n } else {\n noteBlockHolder.avatarImageView.setOnTouchListener(null);\n }\n } else {\n noteBlockHolder.avatarImageView.showDefaultGravatarImageAndNullifyUrl();\n noteBlockHolder.avatarImageView.setOnTouchListener(null);\n }\n noteBlockHolder.commentTextView.setText(NotificationsUtils.getSpannableContentForRanges(getNoteData().optJSONObject(\"String_Node_Str\"), noteBlockHolder.commentTextView, getOnNoteBlockTextClickListener(), false));\n int paddingLeft = view.getPaddingLeft();\n int paddingTop = view.getPaddingTop();\n int paddingRight = view.getPaddingRight();\n int paddingBottom = view.getPaddingBottom();\n if (mCommentStatus == CommentStatus.UNAPPROVED) {\n if (hasCommentNestingLevel()) {\n paddingLeft = mIndentedLeftPadding;\n view.setBackgroundResource(R.drawable.comment_reply_unapproved_background);\n } else {\n view.setBackgroundResource(R.drawable.comment_unapproved_background);\n }\n noteBlockHolder.dividerView.setVisibility(View.INVISIBLE);\n noteBlockHolder.agoTextView.setTextColor(mUnapprovedTextColor);\n noteBlockHolder.bulletTextView.setTextColor(mUnapprovedTextColor);\n noteBlockHolder.siteTextView.setTextColor(mUnapprovedTextColor);\n noteBlockHolder.nameTextView.setTextColor(mUnapprovedTextColor);\n noteBlockHolder.commentTextView.setTextColor(mUnapprovedTextColor);\n } else {\n if (hasCommentNestingLevel()) {\n paddingLeft = mIndentedLeftPadding;\n view.setBackgroundResource(R.drawable.comment_reply_background);\n noteBlockHolder.dividerView.setVisibility(View.INVISIBLE);\n } else {\n view.setBackgroundColor(mNormalBackgroundColor);\n noteBlockHolder.dividerView.setVisibility(View.VISIBLE);\n }\n noteBlockHolder.agoTextView.setTextColor(mAgoTextColor);\n noteBlockHolder.bulletTextView.setTextColor(mAgoTextColor);\n noteBlockHolder.siteTextView.setTextColor(mAgoTextColor);\n noteBlockHolder.nameTextView.setTextColor(mNormalTextColor);\n noteBlockHolder.commentTextView.setTextColor(mNormalTextColor);\n }\n view.setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom);\n if (mStatusChanged) {\n mStatusChanged = false;\n view.setAlpha(0.4f);\n view.animate().alpha(1.0f).start();\n }\n return view;\n}\n"
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n mInflater = LayoutInflater.from(getActivity());\n if (Utils.isOnline(getActivity())) {\n new Builder<>(String.class, Person.class).addParameter(getArguments().getString(Const.EXTRA_PLUS_ID)).setOnBackgroundExecuteListener(new CommonAsyncTask.OnBackgroundExecuteListener<String, Person>() {\n public Person doInBackground(String... params) {\n if (isAdded()) {\n return GdgNavDrawerActivity.getPersonSync(((GdgNavDrawerActivity) getActivity()).getGoogleApiClient(), params[0]);\n } else {\n return null;\n }\n }\n }).setOnPostExecuteListener(new CommonAsyncTask.OnPostExecuteListener<String, Person>() {\n public void onPostExecute(String[] params, Person person) {\n if (person != null) {\n updateChapterUIFrom(person);\n updateOrganizersOnline(person);\n }\n }\n }).buildAndExecute();\n } else {\n App.getInstance().getModelCache().getAsync(Const.CACHE_KEY_PERSON + chapterPlusId, false, new ModelCache.CacheListener() {\n\n public void onGet(Object item) {\n final Person chachedChapter = (Person) item;\n updateChapterUIFrom(chachedChapter);\n for (int chapterIndex = 0; chapterIndex < chachedChapter.getUrls().size(); chapterIndex++) {\n Person.Urls url = chachedChapter.getUrls().get(chapterIndex);\n if (url.getValue().contains(\"String_Node_Str\") && !url.getValue().contains(\"String_Node_Str\")) {\n String org = url.getValue();\n try {\n String id = getGPlusIdFromPersonUrl(url);\n final int indexAsFinal = chapterIndex;\n App.getInstance().getModelCache().getAsync(Const.CACHE_KEY_PERSON + id, false, new ModelCache.CacheListener() {\n public void onGet(Object item) {\n addOrganizerToUI((Person) item);\n if (indexAsFinal == chachedChapter.getUrls().size()) {\n setIsLoading(false);\n }\n }\n public void onNotFound(String key) {\n addUnknowOrganizerToUI();\n if (indexAsFinal == chachedChapter.getUrls().size()) {\n setIsLoading(false);\n }\n }\n });\n } catch (Exception ex) {\n Snackbar snackbar = Snackbar.make(getView(), getString(R.string.bogus_organizer, org), Snackbar.LENGTH_SHORT);\n ColoredSnackBar.alert(snackbar).show();\n }\n }\n }\n }\n public void onNotFound(String key) {\n Snackbar snackbar = Snackbar.make(getView(), R.string.offline_alert, Snackbar.LENGTH_SHORT);\n ColoredSnackBar.alert(snackbar).show();\n }\n });\n }\n}\n"
"public void setColumnModel(TableColumnModel columnModel) {\n if (filenameEditor != null)\n columnModel.getColumn(convertColumnIndexToView(Columns.NAME)).setCellEditor(filenameEditor);\n if (usesTableHeaderRenderingProperties())\n setTableHeaderRenderingProperties();\n}\n"
"public void run() {\n AppLog.e(T.STATS, this.getClass().getName() + \"String_Node_Str\");\n StatsUtils.logVolleyErrorDetails(volleyError);\n mResponseObjectModel = volleyError;\n EventBus.getDefault().post(new StatsEvents.SectionUpdated(mEndpointName, mRequestBlogId, mTimeframe, mDate, mResponseObjectModel));\n checkAllRequestsFinished(currentRequest);\n}\n"
"private void parseCrawlLog(File file) throws IOFailure {\n boolean disregardSeedUrls = Settings.getBoolean(HarvesterSettings.DISREGARD_SEEDURL_INFORMATION_IN_CRAWLLOG);\n BufferedReader in = null;\n try {\n in = new BufferedReader(new FileReader(file));\n String line;\n int lineCnt = 0;\n while ((line = in.readLine()) != null) {\n ++lineCnt;\n try {\n processHarvestLine(line, disregardSeedUrls);\n } catch (ArgumentNotValid e) {\n final String message = \"String_Node_Str\" + file.getAbsolutePath() + \"String_Node_Str\" + lineCnt + \"String_Node_Str\" + line + \"String_Node_Str\" + e.getMessage();\n System.out.println(message);\n LOG.debug(message);\n }\n }\n } catch (IOException e) {\n String msg = \"String_Node_Str\" + file.getAbsolutePath() + \"String_Node_Str\";\n LOG.warn(msg, e);\n throw new IOFailure(msg, e);\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (IOException e) {\n LOG.debug(\"String_Node_Str\" + file, e);\n }\n }\n }\n}\n"
"private void addEnvironmentProperties(ScopeType scope, Iterator envItr, Collection<JNDIBinding> jndiBindings) {\n while (envItr.hasNext()) {\n EnvironmentProperty next = (EnvironmentProperty) envItr.next();\n if (!dependencyAppliesToScope(next, scope)) {\n continue;\n }\n if (next.hasAValue()) {\n String name = descriptorToLogicalJndiName(next);\n Object value;\n if (next.hasLookupName()) {\n value = namingUtils.createLazyNamingObjectFactory(name, next.getLookupName(), true);\n } else if (next.getMappedName().length() > 0) {\n value = namingUtils.createLazyNamingObjectFactory(name, next.getMappedName(), true);\n } else {\n value = namingUtils.createSimpleNamingObjectFactory(name, next.getValueObject());\n }\n jndiBindings.add(new CompEnvBinding(name, value));\n }\n }\n}\n"
"public void setWarpType() throws Exception {\n Player mockPlayerOne = Mockito.mock(Player.class);\n when(mockPlayerOne.getDisplayName()).thenReturn(PLAYER_ONE_NAME);\n List<Warp> warpList = new ArrayList<Warp>();\n warpList.add(new Warp(\"String_Node_Str\", PLAYER_ONE_NAME, WarpType.LISTED, WORLD_NAME, 0, 0, 0, 1f, 2f));\n UnitTestPersistenceProvider testPersistenceProvider = new UnitTestPersistenceProvider();\n testPersistenceProvider.setWarpList(warpList);\n Warp warpToModify = warpList.get(0);\n String warpToModifyName = warpToModify.getName();\n WarpType newType = WarpType.PRIVATE;\n WarpManager warpManager = new WarpManager(mockNiftyWarpPlugin);\n warpManager.setWarpType(warpToModifyName, newType, mockPlayerOne, testPersistenceProvider);\n Warp warpAfterMod = testPersistenceProvider.getAllWarps().get(0);\n assertEquals(WarpType.PRIVATE, warpAfterMod.getWarpType());\n}\n"
"public void testWriter() throws Exception {\n LabelHandle labelHandle = getLabel();\n labelHandle.setProperty(Label.X_PROP, \"String_Node_Str\");\n labelHandle.setProperty(Label.HEIGHT_PROP, \"String_Node_Str\");\n labelHandle.setProperty(Label.STYLE_PROP, null);\n OdaDataSet dataSet = (OdaDataSet) design.findDataSet(\"String_Node_Str\");\n assertNotNull(dataSet);\n labelHandle.setProperty(Label.DATA_SET_PROP, null);\n labelHandle.setProperty(Label.NAME_PROP, \"String_Node_Str\");\n ActionHandle action = labelHandle.getActionHandle();\n assertNotNull(action);\n action.setURI(\"String_Node_Str\");\n labelHandle = (LabelHandle) designHandle.findElement(\"String_Node_Str\");\n assertEquals(ReportDesign.BODY_SLOT, labelHandle.getContainer().findContentSlot(labelHandle));\n labelHandle.setProperty(Style.COLOR_PROP, \"String_Node_Str\");\n assertEquals(ReportDesign.BODY_SLOT, labelHandle.getContainer().findContentSlot(labelHandle));\n labelHandle.setText(\"String_Node_Str\");\n labelHandle.setWidth(\"String_Node_Str\");\n labelHandle.setTextKey(\"String_Node_Str\");\n labelHandle.setHelpText(\"String_Node_Str\");\n labelHandle.setHelpTextKey(\"String_Node_Str\");\n labelHandle.setTagType(\"String_Node_Str\");\n labelHandle.setLanguage(\"String_Node_Str\");\n labelHandle.setAltText(\"String_Node_Str\");\n labelHandle.setOrder(1);\n labelHandle.setCustomXml(\"String_Node_Str\");\n labelHandle.setProperty(IStyleModel.WIDOWS_PROP, \"String_Node_Str\");\n labelHandle.setProperty(IStyleModel.ORPHANS_PROP, \"String_Node_Str\");\n assertEquals(ReportDesign.BODY_SLOT, labelHandle.getContainer().findContentSlot(labelHandle));\n labelHandle = (LabelHandle) designHandle.findElement(\"String_Node_Str\");\n labelHandle.setPushDown(true);\n save();\n assertTrue(compareFile(goldenFileName));\n}\n"
"public String getUsername() {\n return unfixEscapeInNode(username);\n}\n"
"int calcNumEndpointsThatFitIn() {\n final long availableBandwidth = receivedRembs.getLast();\n long remainingBandwidth = availableBandwidth;\n int numEndpointsThatFitIn = 0;\n final Iterator<Endpoint> it = null;\n final Endpoint thisEndpoint = channel.getEndpoint();\n while (it.hasNext()) {\n Endpoint endpoint = it.next();\n if (endpoint != null && !endpoint.equals(thisEndpoint)) {\n long endpointBitrate = getEndpointBitrate(endpoint);\n if (remainingBandwidth >= endpointBitrate) {\n numEndpointsThatFitIn += 1;\n remainingBandwidth -= endpointBitrate;\n } else {\n break;\n }\n }\n }\n return numEndpointsThatFitIn;\n}\n"
"public void flagsUpdated(int msn, Flags flags, Long uid) {\n _modifiedFlags.put(Integer.valueOf(msn), new FlagUpdate(msn, uid, flags));\n}\n"
"private void configurePageSize(long size, long maxPageSize) {\n setPageSize(maxPageSize);\n ensurePagesListCapacity(size);\n this.size = size;\n}\n"
"public static boolean hasAggregation(String expression) {\n if (expression == null)\n return false;\n try {\n return ExpressionParserUtility.hasAggregation(expression, true);\n } catch (BirtException e) {\n return false;\n }\n}\n"
"public void addElements(final ModelElementIndicator[] elements) {\n TdColumn[] columns = new TdColumn[elements.length];\n for (int i = 0; i < elements.length; i++) {\n columns[i] = (TdColumn) elements[i].getModelElement();\n }\n List<Column> oriColumns = getColumnSetMultiValueList();\n for (Column column : columns) {\n if (!oriColumns.contains(column)) {\n oriColumns.add(column);\n }\n }\n setInput(oriColumns.toArray());\n updateBindConnection(masterPage, tree);\n}\n"
"public boolean isAnySuccessorCPUBottleneck(Map<ManagementGroupVertex, Boolean> successorCPUBottleneckMap) {\n Boolean anySuccessorIsCPUBottleneck = successorCPUBottleneckMap.get(this.managementGroupVertex);\n if (anySuccessorIsCPUBottleneck == null) {\n for (int i = 0; i < this.managementGroupVertex.getNumberOfForwardEdges(); i++) {\n final ManagementGroupVertex targetVertex = this.managementGroupVertex.getForwardEdge(i).getTarget();\n final GroupVertexVisualizationData groupVertexVisualizationData = (GroupVertexVisualizationData) targetVertex.getAttachment();\n groupVertexVisualizationData.updateCPUBottleneckFlag(successorCPUBottleneckMap);\n if (groupVertexVisualizationData.isCPUBottleneck() || groupVertexVisualizationData.isAnySuccessorCPUBottleneck(successorCPUBottleneckMap)) {\n successorCPUBottleneckMap.put(this.managementGroupVertex, Boolean.valueOf(true));\n return true;\n }\n }\n successorCPUBottleneckMap.put(this.managementGroupVertex, new Boolean(false));\n return false;\n }\n return anySuccessorIsCPUBottleneck.booleanValue();\n}\n"
"private List<OrientEdge> createEdge(final OrientVertex vertex, final Object joinCurrentValue, Object result) {\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", joinCurrentValue, result);\n if (result == null) {\n switch(unresolvedLinkAction) {\n case CREATE:\n if (joinCurrentValue != null) {\n if (lookup != null) {\n final String[] lookupParts = lookup.split(\"String_Node_Str\");\n final OrientVertex linkedV = pipeline.getGraphDatabase().addTemporaryVertex(lookupParts[0]);\n linkedV.setProperty(lookupParts[1], joinCurrentValue);\n if (targetVertexFields != null) {\n for (String f : targetVertexFields.fieldNames()) linkedV.setProperty(f, resolve(targetVertexFields.field(f)));\n }\n linkedV.save();\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", linkedV.getRecord());\n result = linkedV;\n } else {\n throw new OConfigurationException(\"String_Node_Str\");\n }\n }\n break;\n case ERROR:\n processor.getStats().incrementErrors();\n log(OETLProcessor.LOG_LEVELS.ERROR, \"String_Node_Str\", getName(), joinCurrentValue);\n break;\n case WARNING:\n processor.getStats().incrementWarnings();\n log(OETLProcessor.LOG_LEVELS.INFO, \"String_Node_Str\", getName(), joinCurrentValue);\n break;\n case SKIP:\n return null;\n case HALT:\n throw new OETLProcessHaltedException(\"String_Node_Str\" + joinCurrentValue + \"String_Node_Str\");\n }\n }\n if (result != null) {\n final List<OrientEdge> edges;\n if (OMultiValue.isMultiValue(result)) {\n final int size = OMultiValue.getSize(result);\n if (size == 0)\n return null;\n edges = new ArrayList<OrientEdge>(size);\n } else\n edges = new ArrayList<OrientEdge>(1);\n for (Object o : OMultiValue.getMultiValueIterable(result)) {\n final OrientVertex targetVertex = pipeline.getGraphDatabase().getVertex(o);\n try {\n final OrientEdge edge;\n if (directionOut)\n edge = (OrientEdge) vertex.addEdge(edgeClass, targetVertex);\n else\n edge = (OrientEdge) targetVertex.addEdge(edgeClass, vertex);\n if (edgeFields != null) {\n for (String f : edgeFields.fieldNames()) edge.setProperty(f, resolve(edgeFields.field(f)));\n }\n edges.add(edge);\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", edge);\n } catch (ORecordDuplicatedException e) {\n if (skipDuplicates) {\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\");\n continue;\n } else {\n log(OETLProcessor.LOG_LEVELS.ERROR, \"String_Node_Str\");\n throw e;\n }\n }\n edges.add(edge);\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", edge);\n }\n return edges;\n }\n return null;\n}\n"
"public List<DavResource> getResources(String url) throws SardineException {\n HttpPropFind propFind = new HttpPropFind(url);\n propFind.setEntity(SardineUtil.getResourcesEntity());\n HttpResponse response = this.executeWrapper(propFind);\n StatusLine statusLine = response.getStatusLine();\n if (!SardineUtil.isGoodResponse(statusLine.getStatusCode()))\n throw new SardineException(\"String_Node_Str\", url, statusLine.getStatusCode(), statusLine.getReasonPhrase());\n Multistatus multistatus = SardineUtil.getMulitstatus(this.factory.getUnmarshaller(), response, url);\n List<Response> responses = multistatus.getResponse();\n List<DavResource> resources = new ArrayList<DavResource>(responses.size());\n String path = responses.get(0).getHref().get(0);\n for (Response resp : responses) {\n String href = resp.getHref().get(0);\n if (href.equals(path))\n continue;\n String name = href.substring(path.length(), href.length());\n if (name.equals(\"String_Node_Str\"))\n continue;\n if (name.endsWith(\"String_Node_Str\"))\n name = name.substring(0, name.length() - 1);\n Prop prop = resp.getPropstat().get(0).getProp();\n String creationdate = null;\n Creationdate gcd = prop.getCreationdate();\n if (gcd != null && gcd.getContent().size() == 1)\n creationdate = gcd.getContent().get(0);\n String modifieddate = null;\n Getlastmodified glm = prop.getGetlastmodified();\n if (glm != null)\n modifieddate = glm.getContent().get(0);\n else\n modifieddate = creationdate;\n String contentType = \"String_Node_Str\";\n Getcontenttype gtt = prop.getGetcontenttype();\n if (gtt != null)\n contentType = gtt.getContent().get(0);\n String contentLength = \"String_Node_Str\";\n Getcontentlength gcl = prop.getGetcontentlength();\n if (gcl != null)\n contentLength = gcl.getContent().get(0);\n DavResource dr = new DavResource(url, name, SardineUtil.parseDate(creationdate), SardineUtil.parseDate(modifieddate), contentType, Long.valueOf(contentLength));\n resources.add(dr);\n }\n return resources;\n}\n"
"public void run() {\n YamlConfiguration player = new YamlConfiguration();\n int index = 0;\n for (final File f : plugin.getPlayersFolder().listFiles()) {\n String fileName = f.getName();\n if (fileName.endsWith(\"String_Node_Str\")) {\n try {\n String playerUUIDString = fileName.substring(0, fileName.length() - 4);\n final UUID playerUUID = UUID.fromString(playerUUIDString);\n if (playerUUID == null) {\n plugin.getLogger().warning(\"String_Node_Str\");\n plugin.getLogger().info(\"String_Node_Str\" + playerUUIDString);\n }\n player.load(f);\n index++;\n if (index % 1000 == 0) {\n plugin.getLogger().info(\"String_Node_Str\" + index + \"String_Node_Str\");\n }\n int islandLevel = player.getInt(\"String_Node_Str\", 0);\n String teamLeaderUUID = player.getString(\"String_Node_Str\", \"String_Node_Str\");\n if (islandLevel > 0) {\n if (!player.getBoolean(\"String_Node_Str\")) {\n topTenAddEntry(playerUUID, islandLevel);\n } else if (!teamLeaderUUID.isEmpty() && teamLeaderUUID.equals(playerUUIDString)) {\n topTenAddEntry(playerUUID, islandLevel);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n plugin.getLogger().info(\"String_Node_Str\" + index + \"String_Node_Str\");\n topTenSave();\n plugin.getServer().getScheduler().runTask(plugin, new Runnable() {\n public void run() {\n if (sender != null) {\n sender.sendMessage(ChatColor.YELLOW + plugin.myLocale().adminTopTenfinished);\n } else {\n plugin.getLogger().warning(\"String_Node_Str\");\n }\n }\n });\n}\n"
"public void parse1() throws UnsupportedEncodingException {\n final String line = \"String_Node_Str\";\n List<BgpRisEntry> parsed = parse(line);\n assertEquals(1, parsed.size());\n assertEquals(new Asn(4200003018L), parsed.get(0).origin);\n assertEquals(IpRange.parse(\"String_Node_Str\"), parsed.get(0).prefix);\n assertEquals(3, parsed.get(0).visibility);\n}\n"
"protected void verifyProgramRuns(final Id.Program program, final String status, final int expected) throws Exception {\n Tasks.waitFor(true, new Callable<Boolean>() {\n public Boolean call() throws Exception {\n return getProgramRuns(program, status).size() > expected;\n }\n }, 60, TimeUnit.SECONDS);\n}\n"
"private void setPageLayout() {\n removeAllAvailableDbObjects();\n enableSchemaComponent(isSchemaSupported);\n setRootElement();\n sourceViewerConfiguration.getContentAssistProcessor().setDataSourceHandle(this.getDataSetDesign().getDataSourceDesign());\n populateAvailableDbObjects(false);\n try {\n if (metaDataProvider.getConnection() == null || this.getDataSetDesign().getQueryText() == null || this.getDataSetDesign().getQueryText().trim().length() == 0)\n return;\n MetaDataRetriever retriever = new MetaDataRetriever(this.odaConnectionProvider, this.getDataSetDesign().getQueryText(), this.getDataSetDesign().getOdaExtensionDataSetId());\n IResultSetMetaData rsMeta = retriever.getResultSetMetaData();\n if (rsMeta == null) {\n retriever.close();\n return;\n }\n if (this.getDataSetDesign().getPrimaryResultSet() == null) {\n this.shouldUpdateDataSetDesign = true;\n retriever.close();\n return;\n }\n ResultSetColumns rsc = this.getDataSetDesign().getPrimaryResultSet().getResultSetColumns();\n if (rsMeta.getColumnCount() != rsc.getResultColumnDefinitions().size()) {\n this.shouldUpdateDataSetDesign = true;\n retriever.close();\n return;\n }\n for (int i = 0; i < rsc.getResultColumnDefinitions().size(); i++) {\n ColumnDefinition cd = (ColumnDefinition) rsc.getResultColumnDefinitions().get(i);\n if (!(cd.getAttributes().getName().equals(rsMeta.getColumnName(i + 1)) && cd.getAttributes().getNativeDataTypeCode() == rsMeta.getColumnType(i + 1))) {\n this.shouldUpdateDataSetDesign = true;\n retriever.close();\n return;\n }\n }\n retriever.close();\n } catch (OdaException e) {\n logger.log(Level.FINE, e.getMessage(), e);\n }\n}\n"
"public static RPCRequest decodeRequest(String encodedRequest, Class type) throws SerializationException {\n if (encodedRequest == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (encodedRequest.length() == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n ServerSerializationStreamReader streamReader = new ServerSerializationStreamReader(serializableTypeOracle);\n streamReader.prepareToRead(encodedRequest);\n String serviceIntfName = streamReader.readString();\n if (type != null) {\n if (!implementsInterface(type, serviceIntfName)) {\n throw new SecurityException(\"String_Node_Str\" + serviceIntfName + \"String_Node_Str\" + printTypeName(type) + \"String_Node_Str\");\n }\n }\n Class serviceIntf;\n try {\n serviceIntf = getClassFromSerializedName(serviceIntfName);\n if (!RemoteService.class.isAssignableFrom(serviceIntf)) {\n throw new SecurityException(\"String_Node_Str\" + TypeInfo.getSourceRepresentation(serviceIntf, \"String_Node_Str\") + \"String_Node_Str\");\n }\n } catch (ClassNotFoundException e) {\n SecurityException securityException = new SecurityException(\"String_Node_Str\" + serviceIntfName + \"String_Node_Str\");\n securityException.initCause(e);\n throw securityException;\n }\n String serviceMethodName = streamReader.readString();\n int paramCount = streamReader.readInt();\n Class[] parameterTypes = new Class[paramCount];\n for (int i = 0; i < parameterTypes.length; i++) {\n String paramClassName = streamReader.readString();\n try {\n parameterTypes[i] = getClassFromSerializedName(paramClassName);\n } catch (ClassNotFoundException e) {\n throw new SerializationException(\"String_Node_Str\" + i + \"String_Node_Str\" + paramClassName + \"String_Node_Str\", e);\n }\n }\n Method method = findInterfaceMethod(serviceIntf, serviceMethodName, parameterTypes, true);\n if (method == null) {\n throw new SecurityException(formatMethodNotFoundErrorMessage(serviceIntf, serviceMethodName, parameterTypes));\n }\n Object[] parameterValues = new Object[parameterTypes.length];\n for (int i = 0; i < parameterValues.length; i++) {\n parameterValues[i] = streamReader.deserializeValue(parameterTypes[i]);\n }\n return new RPCRequest(method, parameterValues);\n}\n"
"protected double getAggregate() {\n double[] values = getValues();\n double[] weights = getWeights();\n double result = 1.0d;\n for (int i = 0; i < values.length; i++) {\n result *= Math.pow((values[i] + 1d) * weights[i], 1.0d / (double) values.length) - 1d;\n }\n return result;\n}\n"
"public void stopWatchdog() {\n if (watchdogTimerTask != null) {\n watchdogTimerTask.cancel();\n }\n}\n"
"public boolean isSafeToRunMigration() throws JDBCException {\n return Mode.OUTPUT_SQL_MODE.equals(getMode()) || Mode.OUTPUT_CHANGELOG_ONLY_SQL_MODE.equals(getMode()) || getDatabase().getConnectionURL().indexOf(\"String_Node_Str\") >= 0;\n}\n"
"public void run(IAction action) {\n InputStream javaFileIStream = null;\n OutputStreamWriter testFileOSWriter = null;\n FileOutputStream fos = null;\n boolean refreshFlag = true;\n String projectName = null;\n String testCaseDirResource = null;\n String testCaseResource = null;\n try {\n IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();\n String testTargetClassname = null;\n String testCaseFilename = null;\n String testCaseClassname = null;\n String testCaseCreateDirpath = null;\n StructuredSelection structuredSelection = null;\n if (selection instanceof StructuredSelection)\n structuredSelection = (StructuredSelection) selection;\n if (structuredSelection != null && structuredSelection.size() == 0) {\n Shell shell = new Shell();\n MessageDialog.openWarning(shell, STR.Dialog.Common.TITLE, STR.Dialog.Common.REQUIRED);\n refreshFlag = false;\n } else if (structuredSelection != null && structuredSelection.size() > 1) {\n Shell shell = new Shell();\n MessageDialog.openWarning(shell, STR.Dialog.Common.TITLE, STR.Dialog.Common.SELECT_ONLY_ONE);\n refreshFlag = false;\n } else {\n String pathFromProjectRoot = ResourcePathUtil.getPathStartsFromProjectRoot(structuredSelection);\n String[] dirArrFromProjectRoot = pathFromProjectRoot.split(STR.DIR_SEP);\n String selected = STR.EMPTY;\n int len = dirArrFromProjectRoot.length;\n for (int i = 2; i < len - 1; i++) selected += dirArrFromProjectRoot[i] + STR.DIR_SEP;\n selected += dirArrFromProjectRoot[len - 1];\n projectName = dirArrFromProjectRoot[1];\n String testTargetClassFilename = dirArrFromProjectRoot[dirArrFromProjectRoot.length - 1];\n testTargetClassname = testTargetClassFilename.replace(STR.JAVA_EXP, STR.EMPTY);\n testCaseClassname = testTargetClassname + STR.SUFFIX_OF_TESTCASE;\n testCaseFilename = testCaseClassname + STR.JAVA_EXP;\n String projectRootPath = workspaceRoot.getLocation() + STR.DIR_SEP + projectName + STR.DIR_SEP;\n testCaseResource = selected.replace(STR.SRC_MAIN_JAVA, STR.SRC_TEST_JAVA).replace(STR.JAVA_EXP, STR.SUFFIX_OF_TESTCASE + STR.JAVA_EXP);\n String[] selectedDirArr = selected.split(STR.DIR_SEP);\n testCaseDirResource = \"String_Node_Str\";\n int selectedDirArrLength = selectedDirArr.length;\n for (int i = 0; i < selectedDirArrLength - 1; i++) testCaseDirResource += selectedDirArr[i] + STR.DIR_SEP;\n testCaseDirResource = testCaseDirResource.replace(STR.SRC_MAIN_JAVA, STR.SRC_TEST_JAVA);\n testCaseCreateDirpath = projectRootPath + testCaseDirResource;\n File testDir = new File(testCaseCreateDirpath);\n String[] dirArr = testCaseCreateDirpath.split(STR.DIR_SEP);\n String tmpDirPath = STR.EMPTY;\n String tmpResourceDirPath = STR.EMPTY;\n for (String each : dirArr) {\n tmpDirPath += STR.DIR_SEP + each;\n File tmpDir = new File(tmpDirPath);\n if (tmpDir.getPath().length() <= projectRootPath.length())\n continue;\n tmpResourceDirPath += STR.DIR_SEP + each;\n if (!tmpDir.exists()) {\n if (!tmpDir.mkdir())\n System.err.println(\"String_Node_Str\" + tmpDir.getPath());\n if (!ResourceRefreshUtil.refreshLocal(null, projectName + STR.DIR_SEP + tmpResourceDirPath + \"String_Node_Str\")) {\n String msg = STR.Dialog.Common.RESOURCE_REFRESH_ERROR;\n MessageDialog.openWarning(new Shell(), STR.Dialog.Common.TITLE, msg);\n System.err.println(\"String_Node_Str\");\n }\n }\n }\n if (!testDir.mkdirs())\n System.err.println(\"String_Node_Str\");\n if (!ResourceRefreshUtil.refreshLocal(null, projectName + STR.DIR_SEP + testCaseDirResource)) {\n MessageDialog.openWarning(new Shell(), STR.Dialog.Common.TITLE, STR.Dialog.Common.RESOURCE_REFRESH_ERROR);\n System.err.println(\"String_Node_Str\");\n }\n try {\n File outputFile = new File(testCaseCreateDirpath + STR.DIR_SEP + testCaseFilename);\n String msg = STR.Dialog.Common.ALREADY_EXIST + \"String_Node_Str\" + testCaseFilename + \"String_Node_Str\" + STR.LINE_FEED + STR.Dialog.Common.CONFIRM_PROCEED;\n if (!outputFile.exists() || MessageDialog.openConfirm(new Shell(), STR.Dialog.Common.TITLE, msg)) {\n String targetClass = \"String_Node_Str\" + projectName + \"String_Node_Str\" + selected;\n IResource targetClassResource = workspaceRoot.findMember(targetClass);\n IFile file = (IFile) targetClassResource;\n List<GeneratingMethodInfo> testMethods = TestCaseGenerateUtil.getTestMethodsFromTarget(file);\n fos = new FileOutputStream(testCaseCreateDirpath + STR.DIR_SEP + testCaseFilename);\n testFileOSWriter = new OutputStreamWriter(fos);\n StringBuffer sb = new StringBuffer();\n String CRLF = STR.CARRIAGE_RETURN + STR.LINE_FEED;\n String testPackageString = STR.EMPTY;\n String[] tmpDirArr = selected.split(STR.DIR_SEP);\n StringBuffer dirSb = new StringBuffer();\n int packageArrLen = tmpDirArr.length - 2;\n for (int i = 3; i < packageArrLen; i++) {\n dirSb.append(tmpDirArr[i]);\n dirSb.append(\"String_Node_Str\");\n }\n dirSb.append(tmpDirArr[packageArrLen]);\n testPackageString = dirSb.toString();\n sb.append(\"String_Node_Str\");\n sb.append(testPackageString);\n sb.append(\"String_Node_Str\");\n sb.append(CRLF);\n sb.append(CRLF);\n sb.append(\"String_Node_Str\");\n sb.append(CRLF);\n boolean enabledNotBlankMethods = Activator.getDefault().getPreferenceStore().getBoolean(STR.Preference.TestMethodGen.METHOD_SAMPLE_IMPLEMENTATION);\n if (enabledNotBlankMethods) {\n sb.append(CRLF);\n List<String> importedPackageList = testMethods.get(0).importList;\n for (String importedPackage : importedPackageList) {\n sb.append(\"String_Node_Str\");\n sb.append(importedPackage);\n sb.append(\"String_Node_Str\");\n sb.append(CRLF);\n }\n }\n sb.append(CRLF);\n sb.append(\"String_Node_Str\");\n sb.append(testCaseClassname);\n sb.append(\"String_Node_Str\");\n sb.append(CRLF);\n sb.append(CRLF);\n for (GeneratingMethodInfo testMethod : testMethods) {\n sb.append(\"String_Node_Str\");\n sb.append(testMethod.testMethodName);\n sb.append(\"String_Node_Str\");\n sb.append(CRLF);\n sb.append(\"String_Node_Str\");\n sb.append(STR.AUTO_GEN_MSG_TODO);\n sb.append(CRLF);\n if (enabledNotBlankMethods) {\n String notBlankSourceCode = TestCaseGenerateUtil.getNotBlankTestMethodSource(testMethod, testMethods, testTargetClassname);\n sb.append(notBlankSourceCode);\n }\n sb.append(\"String_Node_Str\");\n sb.append(CRLF);\n sb.append(CRLF);\n }\n sb.append(\"String_Node_Str\");\n sb.append(CRLF);\n testFileOSWriter.write(sb.toString());\n }\n } catch (FileNotFoundException fnfe) {\n fnfe.printStackTrace();\n } finally {\n FileResourceUtil.close(testFileOSWriter);\n FileResourceUtil.close(fos);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n FileResourceUtil.close(javaFileIStream);\n FileResourceUtil.close(testFileOSWriter);\n }\n if (refreshFlag && !ResourceRefreshUtil.refreshLocal(null, projectName + STR.DIR_SEP + testCaseDirResource + \"String_Node_Str\")) {\n MessageDialog.openWarning(new Shell(), STR.Dialog.Common.TITLE, STR.Dialog.Common.RESOURCE_REFRESH_ERROR);\n System.err.println(\"String_Node_Str\");\n } else {\n int retryCount = 0;\n IEditorPart editorPart = null;\n ThreadUtil.sleep(1500);\n while (true) {\n try {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n IWorkspaceRoot root = workspace.getRoot();\n IProject project = root.getProject(projectName);\n IFile testCaseFile = project.getFile(testCaseResource);\n String editorId = IDE.getEditorDescriptor(testCaseFile.getName()).getId();\n IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n editorPart = IDE.openEditor(page, testCaseFile, editorId);\n if (editorPart == null)\n throw new NullPointerException();\n break;\n } catch (Exception e) {\n retryCount++;\n if (retryCount > 3)\n break;\n ThreadUtil.sleep(1500);\n }\n }\n editorPart.setFocus();\n }\n}\n"
"public String getBundleLocation() {\n Bundle bundle = this.getBundle();\n if (bundle == null) {\n return this.bundleDescription.getLocation();\n }\n return bundle.getLocation();\n}\n"
"public org.hl7.fhir.dstu2.model.Attachment convertAttachment(org.hl7.fhir.dstu3.model.Attachment src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Attachment tgt = new org.hl7.fhir.dstu2.model.Attachment();\n copyElement(src, tgt);\n tgt.setContentType(src.getContentType());\n tgt.setLanguage(src.getLanguage());\n tgt.setData(src.getData());\n tgt.setUrl(src.getUrl());\n tgt.setSize(src.getSize());\n tgt.setHash(src.getHash());\n tgt.setTitle(src.getTitle());\n tgt.setCreation(src.getCreation());\n return tgt;\n}\n"
"private File buildJobJar(Job job, File tempDir) throws IOException, URISyntaxException {\n File jobJar = new File(tempDir, \"String_Node_Str\");\n LOG.debug(\"String_Node_Str\", jobJar);\n if (MapReduceTaskContextProvider.isLocal(job.getConfiguration())) {\n JarOutputStream output = new JarOutputStream(new FileOutputStream(jobJar));\n output.close();\n return jobJar;\n }\n final HadoopClassExcluder hadoopClassExcluder = new HadoopClassExcluder();\n ApplicationBundler appBundler = new ApplicationBundler(new ClassAcceptor() {\n public boolean accept(String className, URL classUrl, URL classPathUrl) {\n if (className.startsWith(\"String_Node_Str\") || classPathUrl.toString().contains(\"String_Node_Str\")) {\n return false;\n }\n return hadoopClassExcluder.accept(className, classUrl, classPathUrl);\n }\n });\n Set<Class<?>> classes = Sets.newHashSet();\n classes.add(MapReduce.class);\n classes.add(MapperWrapper.class);\n classes.add(ReducerWrapper.class);\n classes.add(SLF4JBridgeHandler.class);\n if (cConf.getBoolean(Constants.AppFabric.MAPREDUCE_INCLUDE_CUSTOM_CLASSES)) {\n try {\n Class<? extends InputFormat<?, ?>> inputFormatClass = job.getInputFormatClass();\n classes.add(inputFormatClass);\n if (MapReduceStreamInputFormat.class.isAssignableFrom(inputFormatClass)) {\n Class<? extends StreamEventDecoder> decoderType = MapReduceStreamInputFormat.getDecoderClass(job.getConfiguration());\n if (decoderType != null) {\n classes.add(decoderType);\n }\n }\n } catch (Throwable t) {\n LOG.debug(\"String_Node_Str\", t.getMessage(), t);\n }\n try {\n Class<? extends OutputFormat<?, ?>> outputFormatClass = job.getOutputFormatClass();\n classes.add(outputFormatClass);\n } catch (Throwable t) {\n LOG.debug(\"String_Node_Str\", t.getMessage(), t);\n }\n }\n if (SecureStoreUtils.isKMSBacked(cConf) && SecureStoreUtils.isKMSCapable()) {\n classes.add(SecureStoreUtils.getKMSSecureStore());\n }\n Class<? extends HBaseDDLExecutor> ddlExecutorClass = new HBaseDDLExecutorFactory(cConf, hConf).get().getClass();\n try {\n Class<?> hbaseTableUtilClass = HBaseTableUtilFactory.getHBaseTableUtilClass(cConf);\n classes.add(hbaseTableUtilClass);\n classes.add(ddlExecutorClass);\n } catch (ProvisionException e) {\n LOG.warn(\"String_Node_Str\");\n }\n ClassLoader oldCLassLoader = ClassLoaders.setContextClassLoader(getClass().getClassLoader());\n try {\n appBundler.createBundle(Locations.toLocation(jobJar), classes);\n } finally {\n ClassLoaders.setContextClassLoader(oldCLassLoader);\n }\n LOG.debug(\"String_Node_Str\", jobJar.toURI());\n return jobJar;\n}\n"
"protected void writeCharacters(char[] chars, int start, int length) {\n try {\n characters(chars, start, length);\n } catch (SAXException e) {\n throw XMLMarshalException.marshalException(e);\n }\n}\n"
"public <T> T invokeEntryProcessor(K key, EntryProcessor<K, V, T> entryProcessor, Object... arguments) {\n ensureOpen();\n if (keys == null) {\n throw new NullPointerException();\n }\n if (entryProcessor == null) {\n throw new NullPointerException();\n }\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n T result = null;\n lockManager.lock(key);\n try {\n long now = System.currentTimeMillis();\n RICacheEventDispatcher<K, V> dispatcher = new RICacheEventDispatcher<K, V>();\n Object internalKey = keyConverter.toInternal(key);\n RICachedValue cachedValue = entries.get(internalKey);\n if (statisticsEnabled()) {\n if (cachedValue == null) {\n statistics.increaseCacheMisses(1);\n } else {\n statistics.increaseCacheHits(1);\n }\n }\n if (statisticsEnabled()) {\n statistics.addGetTimeNano(System.nanoTime() - start);\n }\n start = statisticsEnabled() ? System.nanoTime() : 0;\n EntryProcessorEntry entry = new EntryProcessorEntry(key, cachedValue, now, dispatcher);\n try {\n result = entryProcessor.process(entry, arguments);\n } catch (Throwable t) {\n throw new CacheException(t);\n }\n Duration duration;\n long expiryTime;\n switch(entry.operation) {\n case NONE:\n break;\n case CREATE:\n RIEntry<K, V> e = new RIEntry<K, V>(key, entry.value);\n writeCacheEntry(e);\n try {\n duration = expiryPolicy.getExpiryForCreatedEntry(e);\n } catch (Throwable t) {\n duration = getDefaultDuration();\n }\n expiryTime = duration.getAdjustedTime(now);\n cachedValue = new RICachedValue(valueConverter.toInternal(entry.value), now, expiryTime);\n if (cachedValue.isExpiredAt(now)) {\n V previousValue = valueConverter.fromInternal(cachedValue.get());\n dispatcher.addEvent(CacheEntryExpiredListener.class, new RICacheEntryEvent<K, V>(this, key, previousValue, EXPIRED));\n }\n entries.put(internalKey, cachedValue);\n dispatcher.addEvent(CacheEntryCreatedListener.class, new RICacheEntryEvent<K, V>(this, key, entry.value, CREATED));\n if (statisticsEnabled()) {\n statistics.increaseCachePuts(1);\n statistics.addPutTimeNano(System.nanoTime() - start);\n }\n break;\n case UPDATE:\n V oldValue = valueConverter.fromInternal(cachedValue.get());\n e = new RIEntry<K, V>(key, entry.value, oldValue);\n writeCacheEntry(e);\n try {\n duration = expiryPolicy.getExpiryForModifiedEntry(e);\n if (duration != null) {\n expiryTime = duration.getAdjustedTime(now);\n cachedValue.setExpiryTime(expiryTime);\n }\n } catch (Throwable t) {\n }\n cachedValue.setInternalValue(valueConverter.toInternal(entry.value), now);\n dispatcher.addEvent(CacheEntryUpdatedListener.class, new RICacheEntryEvent<K, V>(this, key, entry.value, oldValue, UPDATED));\n if (statisticsEnabled()) {\n statistics.increaseCachePuts(1);\n statistics.addPutTimeNano(System.nanoTime() - start);\n }\n break;\n case REMOVE:\n deleteCacheEntry(key);\n oldValue = valueConverter.fromInternal(cachedValue.get());\n entries.remove(internalKey);\n dispatcher.addEvent(CacheEntryRemovedListener.class, new RICacheEntryEvent<K, V>(this, key, oldValue, REMOVED));\n if (statisticsEnabled()) {\n statistics.increaseCacheRemovals(1);\n statistics.addRemoveTimeNano(System.nanoTime() - start);\n }\n break;\n default:\n break;\n }\n dispatcher.dispatch(listenerRegistrations);\n } finally {\n lockManager.unLock(key);\n }\n return result;\n}\n"
"private MethodNode getCovariantImplementation(final MethodNode oldMethod, final MethodNode overridingMethod, Map genericsSpec) {\n if (!oldMethod.getName().equals(overridingMethod.getName()))\n return null;\n if ((overridingMethod.getModifiers() & ACC_BRIDGE) != 0)\n return null;\n boolean normalEqualParameters = equalParametersNormal(overridingMethod, oldMethod);\n boolean genericEqualParameters = equalParametersWithGenerics(overridingMethod, oldMethod, genericsSpec);\n if (!normalEqualParameters && !genericEqualParameters)\n return null;\n ClassNode mr = overridingMethod.getReturnType();\n ClassNode omr = oldMethod.getReturnType();\n boolean equalReturnType = mr.equals(omr);\n ClassNode testmr = correctToGenericsSpec(genericsSpec, omr);\n if (!isAssignable(mr, testmr)) {\n throw new RuntimeParserException(\"String_Node_Str\" + overridingMethod.getTypeDescriptor() + \"String_Node_Str\" + overridingMethod.getDeclaringClass().getName() + \"String_Node_Str\" + testmr.getName() + \"String_Node_Str\" + oldMethod.getDeclaringClass().getName(), overridingMethod);\n }\n if (equalReturnType && normalEqualParameters)\n return null;\n if ((oldMethod.getModifiers() & ACC_FINAL) != 0) {\n throw new RuntimeParserException(\"String_Node_Str\" + oldMethod.getTypeDescriptor() + \"String_Node_Str\" + oldMethod.getDeclaringClass().getName(), overridingMethod);\n }\n if (oldMethod.isStatic() != overridingMethod.isStatic()) {\n throw new RuntimeParserException(\"String_Node_Str\" + oldMethod.getTypeDescriptor() + \"String_Node_Str\" + oldMethod.getDeclaringClass().getName() + \"String_Node_Str\", overridingMethod);\n }\n if (!equalReturnType) {\n boolean oldM = ClassHelper.isPrimitiveType(oldMethod.getReturnType());\n boolean newM = ClassHelper.isPrimitiveType(overridingMethod.getReturnType());\n if (oldM || newM) {\n String message = \"String_Node_Str\";\n if (oldM && newM) {\n message = \"String_Node_Str\";\n } else if (newM) {\n message = \"String_Node_Str\";\n } else {\n message = \"String_Node_Str\";\n }\n throw new RuntimeParserException(\"String_Node_Str\" + oldMethod.getTypeDescriptor() + \"String_Node_Str\" + oldMethod.getDeclaringClass().getName() + message, overridingMethod);\n }\n }\n MethodNode newMethod = new MethodNode(oldMethod.getName(), overridingMethod.getModifiers() | ACC_SYNTHETIC | ACC_BRIDGE, GenericsUtils.nonGeneric(oldMethod.getReturnType()), cleanParameters(oldMethod.getParameters()), oldMethod.getExceptions(), null);\n List instructions = new ArrayList(1);\n instructions.add(new BytecodeInstruction() {\n public void visit(MethodVisitor mv) {\n mv.visitVarInsn(ALOAD, 0);\n Parameter[] para = oldMethod.getParameters();\n Parameter[] goal = overridingMethod.getParameters();\n int doubleSlotOffset = 0;\n for (int i = 0; i < para.length; i++) {\n ClassNode type = para[i].getType();\n BytecodeHelper.load(mv, type, i + 1 + doubleSlotOffset);\n if (type.redirect() == ClassHelper.double_TYPE || type.redirect() == ClassHelper.long_TYPE) {\n doubleSlotOffset++;\n }\n if (!type.equals(goal[i].getType())) {\n BytecodeHelper.doCast(mv, goal[i].getType());\n }\n }\n mv.visitMethodInsn(INVOKEVIRTUAL, BytecodeHelper.getClassInternalName(classNode), overridingMethod.getName(), BytecodeHelper.getMethodDescriptor(overridingMethod.getReturnType(), overridingMethod.getParameters()), false);\n BytecodeHelper.doReturn(mv, oldMethod.getReturnType());\n }\n });\n newMethod.setCode(new BytecodeSequence(instructions));\n return newMethod;\n}\n"
"public static List<ResourceLocation> getTextures() {\n List<ResourceLocation> locations = new ArrayList<>();\n for (CableCoreType coreType : CableCoreType.values()) {\n for (AEColor color : AEColor.values()) {\n locations.add(coreType.getTexture(color));\n }\n }\n for (AECableType cableType : AECableType.VALIDCABLES) {\n for (AEColor color : AEColor.values()) {\n locations.add(getConnectionTexture(cableType, color));\n }\n }\n Collections.addAll(locations, SmartCableTextures.SMART_CHANNELS_TEXTURES);\n return locations;\n}\n"
"protected void writePrefixMappings() {\n try {\n if (!prefixMappings.isEmpty()) {\n for (java.util.Iterator<String> keys = prefixMappings.keySet().iterator(); keys.hasNext(); ) {\n String prefix = keys.next();\n outputStreamWrite(SPACE);\n outputStreamWrite(XMLConstants.XMLNS.getBytes(XMLConstants.DEFAULT_XML_ENCODING));\n if (null != prefix && prefix.length() > 0) {\n outputStreamWrite((byte) XMLConstants.COLON);\n outputStreamWrite(prefix.getBytes(XMLConstants.DEFAULT_XML_ENCODING));\n }\n outputStreamWrite((byte) '=');\n outputStreamWrite((byte) '\"');\n outputStreamWrite(prefixMappings.get(prefix).getBytes(XMLConstants.DEFAULT_XML_ENCODING));\n outputStreamWrite(CLOSE_ATTRIBUTE_VALUE);\n }\n prefixMappings.clear();\n }\n } catch (IOException e) {\n throw XMLMarshalException.marshalException(e);\n }\n}\n"
"private void newJDBCExplorerMenuItemActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n if (jdbcDriverClassName == null || jdbcDriverClassName.trim().length() == 0 || jdbcConnectionUrl == null || jdbcConnectionUrl.trim().length() == 0) {\n throw new Exception(\"String_Node_Str\" + this.jdbcDriverClassName + \"String_Node_Str\" + this.jdbcConnectionUrl);\n }\n final JInternalFrame jf = new JInternalFrame();\n jf.setTitle(getResourceConverter().getFormattedString(\"String_Node_Str\", \"String_Node_Str\", new String[] { jdbcConnectionUrl }));\n Class.forName(jdbcDriverClassName);\n java.sql.Connection conn = null;\n if (jdbcUsername != null && jdbcUsername.length() > 0 && jdbcPassword != null && jdbcPassword.length() > 0) {\n conn = java.sql.DriverManager.getConnection(jdbcConnectionUrl, jdbcUsername, jdbcPassword);\n } else {\n conn = java.sql.DriverManager.getConnection(jdbcConnectionUrl);\n }\n JDBCExplorer jdbce = new JDBCExplorer(conn);\n jf.getContentPane().add(jdbce);\n jf.setBounds(0, 0, 500, 480);\n jf.setClosable(true);\n jf.setIconifiable(true);\n jf.setMaximizable(true);\n jf.setResizable(true);\n jf.setVisible(true);\n desktopPane.add(jf);\n jf.show();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, getResourceConverter().getFormattedString(\"String_Node_Str\", \"String_Node_Str\", new String[] { ex.getLocalizedMessage() }), getResourceConverter().getString(\"String_Node_Str\", \"String_Node_Str\"), JOptionPane.ERROR_MESSAGE);\n LOGGER.error(\"String_Node_Str\", ex);\n }\n}\n"