content
stringlengths
40
137k
"public String getSqlStatement() {\n return joinType.getSqlKeyword() + \"String_Node_Str\" + Utility.getTableName(model) + \"String_Node_Str\" + modelField1.getSqlKeyword() + \"String_Node_Str\" + modelField2.getSqlKeyword();\n}\n"
"public void run() {\n String message = getString(mIsPage ? R.string.error_publish_empty_page : R.string.error_publish_empty_post);\n ToastUtils.showToast(EditPostActivity.this, message, Duration.SHORT);\n}\n"
"public void onWailaBlockDescription(ItemStack stack, List<String> tooltip, IWailaDataAccessor access, IWailaConfigHandler config) {\n MovingObjectPosition pos = access.getPosition();\n Block block = access.getBlock();\n ItemStack item = access.getPlayer().getHeldItem();\n String tool = (block != null) ? block.getHarvestTool(access.getMetadata()) : \"String_Node_Str\";\n int blockLevel = block.getHarvestLevel(access.getMetadata());\n int itemLevel = (item != null) ? item.getItem().getHarvestLevel(item, tool) : 0;\n if (tool != null && tool.equalsIgnoreCase(\"String_Node_Str\")) {\n if (block == Blocks.stone)\n tool = \"String_Node_Str\";\n if (block == Blocks.planks)\n tool = \"String_Node_Str\";\n }\n if (item != null && (item.getItem().getToolClasses(item).contains(tool) || ModuleTinkers.canHarvest(item, tool))) {\n if (config.getConfig(showHarvestable) && (blockLevel <= itemLevel || blockLevel == 0))\n tooltip.add(StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + ((EnumChatFormatting.DARK_GREEN + StatCollector.translateToLocal(\"String_Node_Str\"))));\n else {\n tooltip.add(StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + EnumChatFormatting.RED + StatCollector.translateToLocal(\"String_Node_Str\"));\n if (config.getConfig(showTier))\n tooltip.add(StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + blockLevel);\n }\n return;\n }\n if (tool != null && config.getConfig(showTool))\n tooltip.add(StatCollector.translateToLocal(\"String_Node_Str\") + \"String_Node_Str\" + Utilities.upperCase(tool));\n}\n"
"protected ListenableFuture<ODataResponse> oDataExecute(Request request) {\n ODataURL oDataURL = request.getUrl();\n oDataURL.prependPathComponent(urlComponent);\n addCustomParametersToODataRequest(request, getParameters(), getHeaders());\n return parent.oDataExecute(request);\n}\n"
"public int hashCode() {\n int code = this.axis ^ this.test ^ (this.name == null ? 0 : this.name.hashCode()) ^ (this.literal == null ? 0 : this.literal.hashCode()) ^ (this.namespace == null ? 0 : this.namespace.hashCode());\n for (XPathExpression xpe : predicates) {\n code |= xpe.hashCode();\n }\n return code;\n}\n"
"public void run() {\n try {\n CacheObject<String> object = get(imageUrl, urlList);\n String imagePath = (object == null ? null : object.getData());\n if (StringUtils.isEmpty(imagePath) || !FileUtils.isFileExist(imagePath)) {\n remove(imageUrl);\n String failedException = \"String_Node_Str\";\n FailedReason failedReason = new FailedReason(FailedType.ERROR_IO, failedException);\n handler.sendMessage(handler.obtainMessage(WHAT_GET_IMAGE_FAILED, new MessageObject(imageUrl, imagePath, failedReason)));\n } else {\n handler.sendMessage(handler.obtainMessage(WHAT_GET_IMAGE_SUCCESS, new MessageObject(imageUrl, imagePath)));\n }\n } catch (OutOfMemoryError e) {\n MessageObject msg = new MessageObject(imageUrl, null, new FailedReason(FailedType.ERROR_OUT_OF_MEMORY, e));\n handler.sendMessage(handler.obtainMessage(WHAT_GET_IMAGE_FAILED, msg));\n }\n}\n"
"public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n Cursor cursor = ((SimpleCursorAdapter) getListAdapter()).getCursor();\n cursor.moveToPosition(info.position);\n switch(item.getItemId()) {\n case 0:\n startAccountListEditActivity(cursor.getInt(cursor.getColumnIndex(TableAccountList.ACCOUNTID)));\n break;\n case 1:\n showDialogDeleteAccount(cursor.getInt(cursor.getColumnIndex(TableAccountList.ACCOUNTID)));\n break;\n }\n return false;\n}\n"
"public int compare(WrappedStack wrappedStack1, WrappedStack wrappedStack2) {\n if (wrappedStack1.wrappedStack instanceof ItemStack) {\n if (wrappedStack2.wrappedStack instanceof ItemStack) {\n int compareResult = ItemHelper.compare((ItemStack) wrappedStack1.wrappedStack, (ItemStack) wrappedStack2.wrappedStack);\n if (compareResult == 0) {\n return wrappedStack1.stackSize - wrappedStack2.stackSize;\n } else {\n return compareResult;\n }\n } else {\n return 1;\n }\n } else if (wrappedStack1.wrappedStack instanceof OreStack) {\n if (wrappedStack2.wrappedStack instanceof ItemStack) {\n return -1;\n } else if (wrappedStack2.wrappedStack instanceof OreStack) {\n return OreStack.compare((OreStack) wrappedStack1.wrappedStack, (OreStack) wrappedStack2.wrappedStack);\n } else {\n return 1;\n }\n } else if (wrappedStack1.wrappedStack instanceof FluidStack) {\n if (wrappedStack2.wrappedStack instanceof ItemStack || wrappedStack2.wrappedStack instanceof OreStack) {\n return -1;\n } else if (wrappedStack2.wrappedStack instanceof FluidStack) {\n return FluidHelper.compare((FluidStack) wrappedStack1.wrappedStack, (FluidStack) wrappedStack2.wrappedStack);\n } else {\n return 1;\n }\n } else if (wrappedStack1.wrappedStack == null) {\n if (wrappedStack2.wrappedStack != null) {\n return -1;\n } else {\n return 0;\n }\n }\n return 0;\n}\n"
"private MessageRenderer loadMessageRenderer(String[] options) {\n if (formats != null && formats.length > 0) {\n final String format = formats[0].toUpperCase(Locale.ROOT);\n switch(format) {\n case \"String_Node_Str\":\n return new JAnsiMessageRenderer(formats);\n case \"String_Node_Str\":\n return new HtmlMessageRenderer(formats);\n }\n }\n return null;\n}\n"
"public Garden getGarden(String serverId) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httpget = new HttpGet(getString(R.string.server_url) + \"String_Node_Str\" + serverId + \"String_Node_Str\");\n String result = \"String_Node_Str\";\n try {\n HttpResponse response = httpclient.execute(httpget);\n HttpEntity entity = response.getEntity();\n result = EntityUtils.toString(entity);\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n System.out.println(\"String_Node_Str\" + result);\n Garden garden = gson.fromJson(result, Garden.class);\n GardenGnome.addGardenServer(garden);\n getPlots(garden);\n getImages(garden);\n return garden;\n}\n"
"public void testEmployeeXmlTypeOverride() {\n if (shouldGenerateSchema) {\n outputResolver = generateSchema(CONTEXT_PATH, PATH, 1);\n shouldGenerateSchema = false;\n }\n String src = PATH + \"String_Node_Str\";\n String result = validateAgainstSchema(src, EMPTY_NAMESPACE, outputResolver);\n assertTrue(\"String_Node_Str\" + result, result == null);\n}\n"
"public void initModel(String modelXML, HashMap<String, String> modelTypes) throws Exception {\n MoMLParser parser = _createMoMLParser();\n _topLevelActor = (CompositeActor) parser.parse(modelXML);\n for (Object obj : getTopLevelActor().deepEntityList()) {\n ComponentEntity actor = (ComponentEntity) obj;\n if (actor instanceof RemoteSink) {\n RemoteSink remoteSink = (RemoteSink) actor;\n remoteSink.setTokenPublisher(_tokenPublisher);\n _remoteSinkMap.put(remoteSink.getTargetEntityName(), remoteSink);\n } else if (actor instanceof RemoteSource) {\n RemoteSource remoteSource = (RemoteSource) actor;\n RemoteSourceData remoteSourceData = new RemoteSourceData(remoteSource, this);\n remoteSource.setRemoteSourceData(remoteSourceData);\n getRemoteSourceMap().put(remoteSource.getTargetEntityName(), remoteSourceData);\n }\n Type type;\n for (Object portObject : actor.portList()) {\n if (portObject instanceof TypedIOPort) {\n TypedIOPort port = (TypedIOPort) portObject;\n StringAttribute targetPortName = (StringAttribute) port.getAttribute(\"String_Node_Str\");\n if (targetPortName != null) {\n type = modelTypes.get(targetPortName.getExpression());\n if (type != null) {\n port.setTypeEquals(type);\n }\n port.typeConstraints().clear();\n } else if ((type = BaseType.forName(modelTypes.get(port.getFullName()))) != null) {\n port.setTypeEquals(type);\n port.typeConstraints().clear();\n } else {\n throw new IllegalActionException(port, \"String_Node_Str\");\n }\n }\n }\n for (Typeable attribute : actor.attributeList(Typeable.class)) {\n if ((type = BaseType.forName(modelTypes.get(((Nameable) attribute).getFullName()))) != null) {\n attribute.setTypeEquals(type);\n attribute.typeConstraints().clear();\n }\n }\n }\n _initRemoteAttributes(_topLevelActor);\n}\n"
"public String suggestedName() {\n if (StringUtil.isEmptyOrSpaces(myScriptPath)) {\n return null;\n }\n final String name = new File(myScriptPath).getName();\n final String dotAndExtension = \"String_Node_Str\" + TheRFileType.INSTANCE.getDefaultExtension();\n if (name.length() > dotAndExtension.length() && StringUtil.endsWithIgnoreCase(name, dotAndExtension)) {\n return name.substring(0, name.length() - dotAndExtension.length());\n }\n return name;\n}\n"
"public Object executeTransform(final Object input) {\n if (input instanceof OIdentifiable) {\n final ORecord rec = ((OIdentifiable) input).getRecord();\n if (rec instanceof ODocument) {\n final ODocument doc = (ODocument) rec;\n if (setOperation) {\n final Object newValue;\n if (expression != null) {\n if (sqlFilter == null)\n sqlFilter = new OSQLFilter(expression, context, null);\n newValue = sqlFilter.evaluate(doc, null, context);\n } else\n newValue = value;\n doc.field(fieldName, newValue);\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", fieldName, newValue, doc);\n } else {\n final Object prev = doc.removeField(fieldName);\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", fieldName, prev, doc);\n }\n }\n }\n return input;\n}\n"
"public Boolean call() throws Exception {\n if (to.equals(from)) {\n getLogger().log(Level.FINEST, \"String_Node_Str\" + toString());\n return Boolean.TRUE;\n }\n if (from == null) {\n getLogger().log(Level.FINEST, \"String_Node_Str\" + toString());\n }\n final Node node = ((FactoryImpl) hazelcast).node;\n PartitionManager pm = node.concurrentMapManager.getPartitionManager();\n try {\n Member target = pm.getMember(to);\n if (target == null) {\n getLogger().log(Level.WARNING, \"String_Node_Str\" + toString());\n return Boolean.FALSE;\n }\n CostAwareRecordList costAwareRecordList = pm.getActivePartitionRecords(partitionId, replicaIndex, to, diffOnly);\n DistributedTask task = new DistributedTask(new MigrationTask(partitionId, costAwareRecordList, replicaIndex, from), target);\n Future future = node.factory.getExecutorService().submit(task);\n return (Boolean) future.get(400, TimeUnit.SECONDS);\n } catch (Throwable e) {\n Level level = Level.WARNING;\n if (e instanceof ExecutionException) {\n e = e.getCause();\n }\n if (e instanceof MemberLeftException || e instanceof IllegalStateException) {\n level = Level.FINEST;\n }\n getLogger().log(level, e.getMessage(), e);\n }\n return Boolean.FALSE;\n}\n"
"private <T> void createBinding(Object source, boolean shouldPreload, BindingImpl<T> binding) {\n putBinding(binding);\n if (binding.getScope() == Scopes.SINGLETON) {\n if (stage == Stage.PRODUCTION || shouldPreload) {\n eagerSingletonCreators.add(new EagerSingletonCreator(binding.key, binding.internalFactory));\n }\n } else {\n if (shouldPreload) {\n addError(source, ErrorMessages.PRELOAD_NOT_ALLOWED);\n }\n }\n}\n"
"public void applyPatch(TypeDefPatch patch) throws AtlasBaseException {\n String typeName = patch.getTypeName();\n AtlasBaseTypeDef typeDef = typeRegistry.getTypeDefByName(typeName);\n if (typeDef == null) {\n throw new AtlasBaseException(AtlasErrorCode.PATCH_FOR_UNKNOWN_TYPE, patch.getAction(), typeName);\n }\n AtlasBaseTypeDef typeDef = typeRegistry.getTypeDefByName(typeName);\n if (isPatchApplicable(patch, typeDef)) {\n if (typeDef.getClass().equals(AtlasEntityDef.class)) {\n AtlasEntityDef updatedDef = new AtlasEntityDef((AtlasEntityDef) typeDef);\n for (AtlasAttributeDef attributeDef : patch.getAttributeDefs()) {\n updatedDef.addAttribute(attributeDef);\n }\n updatedDef.setTypeVersion(patch.getUpdateToVersion());\n typeDefStore.updateEntityDefByName(typeName, updatedDef);\n } else if (typeDef.getClass().equals(AtlasClassificationDef.class)) {\n AtlasClassificationDef updatedDef = new AtlasClassificationDef((AtlasClassificationDef) typeDef);\n for (AtlasAttributeDef attributeDef : patch.getAttributeDefs()) {\n updatedDef.addAttribute(attributeDef);\n }\n updatedDef.setTypeVersion(patch.getUpdateToVersion());\n typeDefStore.updateClassificationDefByName(typeName, updatedDef);\n } else if (typeDef.getClass().equals(AtlasStructDef.class)) {\n AtlasStructDef updatedDef = new AtlasStructDef((AtlasStructDef) typeDef);\n for (AtlasAttributeDef attributeDef : patch.getAttributeDefs()) {\n updatedDef.addAttribute(attributeDef);\n }\n updatedDef.setTypeVersion(patch.getUpdateToVersion());\n typeDefStore.updateStructDefByName(typeName, updatedDef);\n } else {\n throw new AtlasBaseException(AtlasErrorCode.PATCH_NOT_APPLICABLE_FOR_TYPE, patch.getAction(), typeDef.getClass().getSimpleName());\n }\n } else {\n LOG.info(\"String_Node_Str\", patch.getTypeName(), patch.getApplyToVersion(), patch.getUpdateToVersion());\n }\n}\n"
"protected VDI getVDIbyUuid(Connection conn, String uuid) {\n try {\n return VDI.getByUuid(conn, uuid);\n } catch (XenAPIException e) {\n String msg = \"String_Node_Str\" + uuid + \"String_Node_Str\" + e.toString();\n s_logger.warn(msg, e);\n throw new CloudRuntimeException(msg, e);\n } catch (Exception e) {\n String msg = \"String_Node_Str\" + e.getClass().getName() + \"String_Node_Str\" + uuid + \"String_Node_Str\" + e.toString();\n s_logger.debug(msg);\n throw new CloudRuntimeException(msg, e);\n }\n}\n"
"public int extractItem(IComputerAccess computer, Object te, ItemStack stack, ForgeDirection direction) {\n if (stack == null) {\n return 0;\n }\n IAEItemStack request = Util.createItemStack(stack);\n if (request == null) {\n return 0;\n }\n IAEItemStack returned = getGrid(te).getCellArray().extractItems(request);\n if (returned == null) {\n return 0;\n }\n IAEItemStack giveBack = null;\n int requestAmount = stack.stackSize;\n if (!(te instanceof TileEntity)) {\n return 0;\n }\n TileEntity tile = (TileEntity) te;\n IInventory inventory = InventoryUtils.getInventory(tile.worldObj, tile.xCoord, tile.yCoord, tile.zCoord, direction);\n if (inventory == null) {\n giveBack = returned.copy();\n } else {\n ItemStack returnedStack = returned.getItemStack();\n InventoryUtils.insertItemIntoInventory(inventory, returnedStack, direction.getOpposite());\n giveBack = Util.createItemStack(returnedStack.copy());\n }\n if (giveBack != null) {\n getGrid(te).getCellArray().addItems(giveBack);\n }\n if (giveBack != null) {\n return requestAmount - (int) giveBack.getStackSize();\n }\n return requestAmount;\n}\n"
"protected TypedReturnCode<TdDataProvider> getRefreshedDataProvider(TdDataProvider oldDataProvider) {\n TypedReturnCode<TdProviderConnection> tdProviderConnection = DataProviderHelper.getTdProviderConnection(oldDataProvider);\n String urlString = tdProviderConnection.getObject().getConnectionString();\n String driverClassName = tdProviderConnection.getObject().getDriverClassName();\n Properties properties = new Properties();\n properties.setProperty(PluginConstant.USER_PROPERTY, TaggedValueHelper.getValue(PluginConstant.USER_PROPERTY, tdProviderConnection.getObject()));\n properties.setProperty(org.talend.dq.PluginConstant.PASSWORD_PROPERTY, DataProviderHelper.getClearTextPassword(oldDataProvider));\n DBConnectionParameter connectionParameters = new DBConnectionParameter();\n connectionParameters.setName(oldDataProvider.getName());\n connectionParameters.setAuthor(TaggedValueHelper.getAuthor(oldDataProvider));\n connectionParameters.setDescription(TaggedValueHelper.getDescription(oldDataProvider));\n connectionParameters.setPurpose(TaggedValueHelper.getPurpose(oldDataProvider));\n connectionParameters.setStatus(TaggedValueHelper.getDevStatus(oldDataProvider).getLiteral());\n connectionParameters.setJdbcUrl(urlString);\n connectionParameters.setDriverClassName(driverClassName);\n connectionParameters.setParameters(properties);\n TypedReturnCode<TdDataProvider> returnProvider = ConnectionService.createConnection(connectionParameters);\n return returnProvider;\n}\n"
"public void storeAll(Map map) {\n for (Map.Entry entry : (Set<Map.Entry>) map.entrySet()) {\n Object key = entry.getKey();\n Object value = entry.getValue();\n store(key, value);\n }\n}\n"
"public void testLeafRejectIncoming() throws Exception {\n Properties props = new Properties();\n props.put(HeaderNames.X_ULTRAPEER, \"String_Node_Str\");\n HostCatcher hc = RouterService.getHostCatcher();\n hc.add(MessageTestUtils.createPongWithFreeLeafSlots());\n HandshakeResponse headers = HandshakeResponse.createResponse(props);\n HandshakeResponse hr = HandshakeResponse.createLeafRejectIncomingResponse(headers, HandshakeStatus.NO_HEADERS);\n assertTrue(hr.hasXTryUltrapeers());\n}\n"
"public void handleMethod(Object stageInstance, Method paramMethod, Object[] arguments, InvocationMode mode) throws Throwable {\n if (paramMethod.isSynthetic()) {\n return;\n if (paramMethod.isAnnotationPresent(AfterStage.class) || paramMethod.isAnnotationPresent(BeforeStage.class) || paramMethod.isAnnotationPresent(BeforeScenario.class) || paramMethod.isAnnotationPresent(AfterScenario.class) || paramMethod.isAnnotationPresent(Hidden.class))\n return;\n update(stageInstance);\n if (paramMethod.isAnnotationPresent(IntroWord.class)) {\n listener.introWordAdded(paramMethod.getName());\n } else {\n listener.stepMethodInvoked(paramMethod, Arrays.asList(arguments), mode);\n }\n}\n"
"public int getMaxExpandHeight(ExpandableView view) {\n int maxContentHeight = view.getMaxContentHeight();\n if (view.isSummaryWithChildren() && view.getParent() == this) {\n mGroupExpandedForMeasure = true;\n ExpandableNotificationRow row = (ExpandableNotificationRow) view;\n mGroupManager.toggleGroupExpansion(row.getStatusBarNotification());\n row.setForceUnlocked(true);\n mAmbientState.setLayoutHeight(mMaxLayoutHeight);\n mStackScrollAlgorithm.getStackScrollState(mAmbientState, mCurrentStackScrollState);\n mAmbientState.setLayoutHeight(getLayoutHeight());\n mGroupManager.toggleGroupExpansion(row.getStatusBarNotification());\n mGroupExpandedForMeasure = false;\n row.setForceUnlocked(false);\n int height = mCurrentStackScrollState.getViewStateForView(view).height;\n return Math.min(height, maxContentHeight);\n }\n return maxContentHeight;\n}\n"
"public DataCenter editZone(UpdateZoneCmd cmd) {\n Long zoneId = cmd.getId();\n String zoneName = cmd.getZoneName();\n String dns1 = cmd.getDns1();\n String dns2 = cmd.getDns2();\n String internalDns1 = cmd.getInternalDns1();\n String internalDns2 = cmd.getInternalDns2();\n List<String> dnsSearchOrder = cmd.getDnsSearchOrder();\n Boolean isPublic = cmd.isPublic();\n String allocationStateStr = cmd.getAllocationState();\n String dhcpProvider = cmd.getDhcpProvider();\n Map<?, ?> detailsMap = cmd.getDetails();\n String networkDomain = cmd.getDomain();\n Map<String, String> newDetails = new HashMap<String, String>();\n if (detailsMap != null) {\n Collection<?> zoneDetailsCollection = detailsMap.values();\n Iterator<?> iter = zoneDetailsCollection.iterator();\n while (iter.hasNext()) {\n HashMap<?, ?> detail = (HashMap<?, ?>) iter.next();\n String key = (String) detail.get(\"String_Node_Str\");\n String value = (String) detail.get(\"String_Node_Str\");\n if ((key == null) || (value == null)) {\n throw new InvalidParameterValueException(\"String_Node_Str\");\n }\n newDetails.put(key, value);\n }\n }\n if (dnsSearchOrder != null) {\n for (String dom : dnsSearchOrder) {\n if (!NetUtils.verifyDomainName(dom)) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n }\n newDetails.put(ZoneConfig.DnsSearchOrder.getName(), StringUtils.join(dnsSearchOrder, \"String_Node_Str\"));\n }\n DataCenterVO zone = _zoneDao.findById(zoneId);\n if (zone == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + zoneId);\n }\n if (zoneName == null) {\n zoneName = zone.getName();\n }\n if (!validZone(zoneId)) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + zoneId + \"String_Node_Str\");\n }\n String oldZoneName = zone.getName();\n if (zoneName == null) {\n zoneName = oldZoneName;\n }\n if (dns1 == null) {\n dns1 = zone.getDns1();\n }\n if (dns2 == null) {\n dns2 = zone.getDns2();\n }\n if (internalDns1 == null) {\n internalDns1 = zone.getInternalDns1();\n }\n if (networkDomain != null && !networkDomain.isEmpty()) {\n if (!NetUtils.verifyDomainName(networkDomain)) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n } else {\n networkDomain = zone.getDomain();\n }\n boolean checkForDuplicates = !zoneName.equals(oldZoneName);\n checkZoneParameters(zoneName, dns1, dns2, internalDns1, internalDns2, checkForDuplicates, null, allocationStateStr);\n zone.setName(zoneName);\n zone.setDns1(dns1);\n zone.setDns2(dns2);\n zone.setInternalDns1(internalDns1);\n zone.setInternalDns2(internalDns2);\n zone.setDomain(networkDomain);\n if (isPublic != null && isPublic) {\n zone.setDomainId(null);\n zone.setDomain(null);\n }\n Transaction txn = Transaction.currentTxn();\n txn.start();\n Map<String, String> updatedDetails = new HashMap<String, String>();\n _zoneDao.loadDetails(zone);\n if (zone.getDetails() != null) {\n updatedDetails.putAll(zone.getDetails());\n }\n updatedDetails.putAll(newDetails);\n zone.setDetails(updatedDetails);\n if (allocationStateStr != null && !allocationStateStr.isEmpty()) {\n Grouping.AllocationState allocationState = Grouping.AllocationState.valueOf(allocationStateStr);\n zone.setAllocationState(allocationState);\n }\n if (dhcpProvider != null) {\n zone.setDhcpProvider(dhcpProvider);\n }\n if (!_zoneDao.update(zoneId, zone)) {\n throw new CloudRuntimeException(\"String_Node_Str\");\n }\n txn.commit();\n return zone;\n}\n"
"public void attachShutDownHookForceStopDockerContainers(BeforeSuite event, final CubeRegistry cubeRegistry) {\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n final List<Cube<?>> cubes = cubeRegistry.getCubes();\n for (Cube cube : cubes) {\n try {\n cube.stop();\n } catch (final Throwable e) {\n Logger.getLogger(ForceStopDockerContainersShutdownHook.class.getName()).log(Level.WARNING, \"String_Node_Str\" + cube.getId(), e);\n } finally {\n try {\n cube.destroy();\n } catch (final Throwable ignore) {\n }\n }\n }\n }));\n}\n"
"protected CreateIpAliasCommand generateCreateIpAliasCommand() {\n List<IpAliasTO> aliases = new ArrayList<>();\n aliases.add(new IpAliasTO(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n aliases.add(new IpAliasTO(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n aliases.add(new IpAliasTO(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n CreateIpAliasCommand cmd = new CreateIpAliasCommand(\"String_Node_Str\", aliases);\n cmd.setAccessDetail(NetworkElementCommand.ROUTER_NAME, ROUTERNAME);\n return cmd;\n}\n"
"private HashMap<String, StockQuote> loadQuotes() {\n if (mCachedQuotes != null && !mCachedQuotes.isEmpty()) {\n return mCachedQuotes;\n }\n HashMap<String, StockQuote> quotes = new HashMap<>();\n String savedQuotesString = this.appStorage.getString(\"String_Node_Str\", \"String_Node_Str\");\n String timeStamp = this.appStorage.getString(\"String_Node_Str\", \"String_Node_Str\");\n if (!savedQuotesString.equals(\"String_Node_Str\")) {\n JSONObject savedQuotes = new JSONObject();\n try {\n savedQuotes = new JSONObject(savedQuotesString);\n } catch (JSONException ignored) {\n }\n try {\n String key;\n JSONObject details;\n for (Iterator iter = savedQuotes.keys(); iter.hasNext(); ) {\n key = (String) iter.next();\n details = savedQuotes.getJSONObject(key);\n quotes.put(key, new StockQuote(details.getString(\"String_Node_Str\"), details.getString(\"String_Node_Str\"), details.getString(\"String_Node_Str\"), details.getString(\"String_Node_Str\"), details.getString(\"String_Node_Str\"), details.getString(\"String_Node_Str\"), details.getString(\"String_Node_Str\"), Locale.getDefault()));\n }\n } catch (Exception e) {\n quotes = new HashMap<>();\n }\n }\n mCachedQuotes = quotes;\n mTimeStamp = timeStamp;\n return quotes;\n}\n"
"private void sendTerminatingEventOnNotification(List<ApplicationChildContext> terminationList, String notifier, boolean terminateAll, String instanceId) {\n Monitor monitor;\n for (ApplicationChildContext terminationContext : terminationList) {\n monitor = this.aliasToActiveChildMonitorsMap.get(terminationContext.getId());\n if (monitor != null) {\n if (monitor instanceof GroupMonitor) {\n if (terminateAll || !notifier.equals(monitor.getId())) {\n ApplicationBuilder.handleGroupTerminatingEvent(this.appId, terminationContext.getId(), instanceId);\n }\n } else {\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\" + appId + \"String_Node_Str\" + this.id + \"String_Node_Str\" + terminationContext.getId());\n }\n ClusterStatusEventPublisher.sendClusterStatusClusterTerminatingEvent(this.appId, ((ClusterMonitor) monitor).getServiceId(), terminationContext.getId(), instanceId);\n }\n } else {\n log.warn(\"String_Node_Str\" + terminationContext.getId() + \"String_Node_Str\" + appId + \"String_Node_Str\");\n }\n }\n}\n"
"private static void edit_feed(String old_feed_name, String feed_name, String feed_url, String old_group, String feed_group) {\n List<String> feeds = read_file_to_list_static(\"String_Node_Str\", 0);\n (new File(storage + \"String_Node_Str\")).delete();\n for (int i = 0; i < feeds.size(); i++) {\n if (feeds.get(i).contains(old_feed_name))\n append_string_to_file_static(\"String_Node_Str\", \"String_Node_Str\" + feed_name + \"String_Node_Str\" + feed_url + \"String_Node_Str\" + feed_group + \"String_Node_Str\");\n else\n append_string_to_file_static(\"String_Node_Str\", feeds.get(i) + \"String_Node_Str\");\n }\n if (!old_feed_name.equals(feed_name)) {\n (new File(storage + \"String_Node_Str\" + old_feed_name + \"String_Node_Str\")).renameTo((new File(storage + \"String_Node_Str\" + feed_name + \"String_Node_Str\")));\n }\n if (!old_group.equals(feed_group)) {\n File group_file = new File(storage + \"String_Node_Str\" + feed_group + \"String_Node_Str\");\n append_string_to_file_static(\"String_Node_Str\" + feed_group + \"String_Node_Str\", \"String_Node_Str\" + feed_name + \"String_Node_Str\" + feed_url + \"String_Node_Str\");\n feeds = read_file_to_list_static(\"String_Node_Str\" + old_group + \"String_Node_Str\", 0);\n group_file = new File(storage + \"String_Node_Str\" + old_group + \"String_Node_Str\");\n group_file.delete();\n Boolean append = false;\n for (int i = 0; i < feeds.size(); i++) {\n if (!feeds.get(i).contains(old_feed_name)) {\n append_string_to_file_static(\"String_Node_Str\" + old_group + \"String_Node_Str\", \"String_Node_Str\" + feed_name + \"String_Node_Str\" + feed_url + \"String_Node_Str\");\n append = true;\n }\n }\n if (append == false) {\n feeds = read_file_to_list_static(\"String_Node_Str\", 0);\n group_file = new File(storage + \"String_Node_Str\");\n group_file.delete();\n for (int i = 0; i < feeds.size(); i++) {\n if (!feeds.get(i).contains(old_group))\n append_string_to_file_static(\"String_Node_Str\", feeds.get(i) + \"String_Node_Str\");\n }\n }\n }\n (new File(storage + \"String_Node_Str\")).delete();\n feed_adapter temp = feed_manage.return_feed_adapter();\n temp.clear_list();\n update_feeds_list();\n for (int i = 0; i < feed_titles.size(); i++) {\n temp.add_list(feed_titles.get(i), feed_urls.get(i) + \"String_Node_Str\" + feed_groups.get(i));\n temp.notifyDataSetChanged();\n }\n update_groups();\n if (!old_group.equals(feed_group)) {\n (new File(storage + \"String_Node_Str\" + old_group + \"String_Node_Str\")).delete();\n }\n}\n"
"private Map doRecordHarvest(String from, String until, String set, String metadataPrefix, int offset) throws OAIInternalServerError, BadArgumentException {\n Context context = null;\n String schemaURL = getCrosswalks().getSchemaURL(metadataPrefix);\n Map results = new HashMap();\n if (schemaURL == null) {\n return null;\n }\n List records = new LinkedList();\n try {\n context = new Context();\n DSpaceObject scope = resolveSet(context, set);\n boolean includeAll = ConfigurationManager.getBooleanProperty(\"String_Node_Str\", true);\n List itemInfos = Harvest.harvest(context, scope, from, until, offset, MAX_RECORDS, true, true, true, includeAll);\n Iterator i = itemInfos.iterator();\n while (i.hasNext()) {\n HarvestedItemInfo itemInfo = (HarvestedItemInfo) i.next();\n try {\n String recordXML = getRecordFactory().create(itemInfo, schemaURL, metadataPrefix);\n records.add(recordXML);\n } catch (CannotDisseminateFormatException cdfe) {\n if (log.isDebugEnabled()) {\n log.debug(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + metadataPrefix + \"String_Node_Str\" + itemInfo.handle));\n }\n }\n }\n results.put(\"String_Node_Str\", records.iterator());\n log.info(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + records.size()));\n if (records.size() >= MAX_RECORDS) {\n String resumptionToken = makeResumptionToken(from, until, set, metadataPrefix, offset + MAX_RECORDS);\n if (log.isDebugEnabled()) {\n log.debug(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\" + resumptionToken));\n }\n results.put(\"String_Node_Str\", getResumptionMap(resumptionToken));\n }\n } catch (SQLException se) {\n log.warn(LogManager.getHeader(context, \"String_Node_Str\", \"String_Node_Str\"), se);\n throw new OAIInternalServerError(se.toString());\n } catch (ParseException pe) {\n throw new OAIInternalServerError(pe.toString());\n } finally {\n if (context != null) {\n context.abort();\n }\n }\n return results;\n}\n"
"private void appendToOutputChunk(StreamEventCloner streamEventCloner, List<ComplexEventChunk<StreamEvent>> complexEventChunks, long currentTime) {\n ComplexEventChunk<StreamEvent> newEventChunk = new ComplexEventChunk<StreamEvent>(true);\n ComplexEventChunk<StreamEvent> sentEventChunk = new ComplexEventChunk<StreamEvent>(true);\n if (currentEventChunk.getFirst() != null) {\n if (expiredEventChunk.getFirst() != null) {\n expiredEventChunk.reset();\n while (expiredEventChunk.hasNext()) {\n StreamEvent expiredEvent = expiredEventChunk.next();\n if (outputExpectsExpiredEvents) {\n StreamEvent toExpireEvent = streamEventCloner.copyStreamEvent(expiredEvent);\n toExpireEvent.setTimestamp(currentTime);\n newEventChunk.add(toExpireEvent);\n }\n StreamEvent toSendEvent = streamEventCloner.copyStreamEvent(expiredEvent);\n toSendEvent.setType(ComplexEvent.Type.CURRENT);\n sentEventChunk.add(toSendEvent);\n }\n }\n StreamEvent toResetEvent = streamEventCloner.copyStreamEvent(resetEvent);\n toResetEvent.setTimestamp(currentTime);\n newEventChunk.add(toResetEvent);\n newEventChunk.add(sentEventChunk.getFirst());\n if (preserveCurrentEvents || storeExpiredEvents) {\n currentEventChunk.reset();\n while (currentEventChunk.hasNext()) {\n StreamEvent currentEvent = currentEventChunk.next();\n StreamEvent toExpireEvent = streamEventCloner.copyStreamEvent(currentEvent);\n toExpireEvent.setType(StreamEvent.Type.EXPIRED);\n expiredEventChunk.add(toExpireEvent);\n }\n }\n newEventChunk.add(currentEventChunk.getFirst());\n }\n currentEventChunk.clear();\n if (newEventChunk.getFirst() != null) {\n complexEventChunks.add(newEventChunk);\n }\n}\n"
"public Address getNextReturnAddressAddress() {\n if (mapId >= 0) {\n if (VM.TraceStkMaps) {\n VM.sysWrite(\"String_Node_Str\");\n VM.sysWrite(mapId);\n VM.sysWrite(\"String_Node_Str\");\n }\n return Address.zero();\n }\n mapIndex = maps.getNextJSRReturnAddrIndex(mapIndex);\n if (VM.TraceStkMaps) {\n VM.sysWrite(\"String_Node_Str\");\n VM.sysWrite(mapIndex);\n VM.sysWrite(\"String_Node_Str\");\n }\n if (mapIndex == VM_QuickReferenceMaps.NOMORE) {\n return Address.zero();\n } else {\n int location = maps.getLocation(mapId, mapIndex);\n if (VM.TraceStkMaps) {\n VM.sysWrite(\"String_Node_Str\");\n VM.sysWrite(location);\n VM.sysWriteln();\n }\n if (VM_QuickCompiler.isRegister(location))\n return registerLocations.get(VM_QuickCompiler.locationToRegister(location)).toAddress();\n else\n return framePtr.plus(VM_QuickCompiler.locationToOffset(location));\n }\n}\n"
"protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n int msgIdKey = Integer.MIN_VALUE;\n int fromKey = Integer.MIN_VALUE;\n String valStr = value.toString();\n String[] splits = StringUtils.splitByWholeSeparatorPreserveAllTokens(valStr, separator);\n if (splits != null && splits.length > 0) {\n if (splits.length > refsIdx) {\n String from = EmailUtility.cleanUpEmailAddress(splits[fromIdx]);\n fromKey = fromDictionary.get(from);\n }\n if (splits.length > refsIdx) {\n String[] theRefs = EmailUtility.parseReferences(splits[refsIdx]);\n if (theRefs != null && theRefs.length > 0) {\n msgIdKey = msgIdDictionary.get(theRefs[0]);\n context.getCounter(Counters.REFERENCE).increment(1);\n }\n }\n }\n if (msgIdKey == Integer.MIN_VALUE) {\n String keyStr = key.toString();\n int idx = keyStr.lastIndexOf('/');\n if (idx != -1) {\n String msgId = keyStr.substring(idx + 1);\n msgIdKey = msgIdDictionary.get(msgId);\n context.getCounter(Counters.ORIGINAL).increment(1);\n }\n }\n if (msgIdKey != Integer.MIN_VALUE && fromKey != Integer.MIN_VALUE) {\n context.write(new Text(fromKey + \"String_Node_Str\" + msgIdKey), new LongWritable(1));\n }\n}\n"
"public void testCursorModel5() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = this.creator.createQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new ScriptExpression(\"String_Node_Str\"));\n rowGrandTotal.addAggregateOn(\"String_Node_Str\");\n rowGrandTotal.addAggregateOn(\"String_Node_Str\");\n IBinding rowGrandAvg = new Binding(\"String_Node_Str\");\n rowGrandAvg.setAggrFunction(IBuildInAggregation.TOTAL_AVE_FUNC);\n rowGrandAvg.setExpression(new ScriptExpression(\"String_Node_Str\"));\n rowGrandAvg.addAggregateOn(\"String_Node_Str\");\n rowGrandAvg.addAggregateOn(\"String_Node_Str\");\n cqd.addBinding(rowGrandTotal);\n cqd.addBinding(rowGrandAvg);\n BirtCubeView cubeView = new BirtCubeView(new CubeQueryExecutor(cqd, de.getSession(), this.scope, de.getContext()));\n CubeCursor dataCursor = cubeView.getCubeCursor(new StopSign());\n List columnEdgeBindingNames = new ArrayList();\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n columnEdgeBindingNames.add(\"String_Node_Str\");\n List rowEdgeBindingNames = new ArrayList();\n rowEdgeBindingNames.add(\"String_Node_Str\");\n rowEdgeBindingNames.add(\"String_Node_Str\");\n List measureBindingNames = new ArrayList();\n measureBindingNames.add(\"String_Node_Str\");\n List rowGrandTotalNames = new ArrayList();\n rowGrandTotalNames.add(\"String_Node_Str\");\n rowGrandTotalNames.add(\"String_Node_Str\");\n try {\n testOut.print(creator.printCubeAlongEdge(dataCursor, columnEdgeBindingNames, rowEdgeBindingNames, measureBindingNames, rowGrandTotalNames, null, null, null));\n this.checkOutputFile();\n } catch (Exception e) {\n fail(\"String_Node_Str\");\n }\n}\n"
"public static Node createFolderNode(final Session session, final PentahoJcrConstants pentahoJcrConstants, final Serializable parentFolderId, final RepositoryFile folder) throws RepositoryException {\n checkName(folder.getName());\n Node parentFolderNode;\n if (parentFolderId != null) {\n parentFolderNode = session.getNodeByIdentifier(parentFolderId.toString());\n } else {\n parentFolderNode = session.getRootNode();\n }\n Assert.notNull(parentFolderNode);\n Node folderNode = parentFolderNode.addNode(folder.getName(), pentahoJcrConstants.getPHO_NT_PENTAHOFOLDER());\n folderNode.setProperty(pentahoJcrConstants.getPHO_HIDDEN(), folder.isHidden());\n Node localeNodes = null;\n if (folder.getTitle() != folder.getName()) {\n localeNodes = folderNode.addNode(pentahoJcrConstants.getPHO_LOCALES(), pentahoJcrConstants.getPHO_NT_LOCALE());\n Map<String, Properties> localPropertiesMap = new HashMap<String, Properties>();\n String defaultLocale = LocalizationUtil.DEFAULT;\n Properties titleProps = new Properties();\n titleProps.put(\"String_Node_Str\", folder.getTitle());\n localPropertiesMap.put(defaultLocale, titleProps);\n setLocalePropertiesMap(session, pentahoJcrConstants, localeNodes, localPropertiesMap);\n }\n if (folder.isVersioned()) {\n folderNode.addMixin(pentahoJcrConstants.getPHO_MIX_VERSIONABLE());\n }\n folderNode.addNode(pentahoJcrConstants.getPHO_METADATA(), JcrConstants.NT_UNSTRUCTURED);\n folderNode.addMixin(pentahoJcrConstants.getMIX_REFERENCEABLE());\n return folderNode;\n}\n"
"public void actionApplySelectedTransformation() {\n final WorkerTransform worker = new WorkerTransform(model);\n main.showProgressDialog(Resources.getMessage(\"String_Node_Str\"), worker);\n if (worker.getError() != null) {\n main.showErrorDialog(\"String_Node_Str\", Resources.getMessage(\"String_Node_Str\"), worker.getError());\n return;\n }\n if (worker.getResult() != null) {\n this.model.setOutput(worker.getResult(), model.getSelectedNode());\n this.update(new ModelEvent(this, ModelPart.OUTPUT, worker.getResult()));\n this.model.getViewConfig().setMode(Mode.GROUPED);\n this.updateViewConfig(true);\n this.update(new ModelEvent(this, ModelPart.VIEW_CONFIG, model.getOutput()));\n }\n}\n"
"public void run() throws Exception {\n CollectionService service = getService();\n for (Map.Entry<String, CollectionContainer> entry : migrationData.entrySet()) {\n String name = entry.getKey();\n CollectionContainer container = entry.getValue();\n container.init(getNodeEngine());\n service.addContainer(name, container);\n }\n}\n"
"public String getDecoration() {\n String decoration = \"String_Node_Str\";\n if (this instanceof TypeProvider && !(this instanceof ImpliedNode))\n decoration += \"String_Node_Str\" + ((TypeProvider) this).getWhereUsedNode().getWhereUsedCount() + \"String_Node_Str\";\n if (isDeleted())\n decoration += \"String_Node_Str\";\n if (isDeprecated())\n decoration += \"String_Node_Str\";\n if (this instanceof ExtensionOwner) {\n if (getLibrary() != null)\n getLibrary().checkExtension(this);\n String extensionTxt = \"String_Node_Str\";\n ComponentNode exBase = (ComponentNode) getExtendsType();\n if (exBase != null) {\n extensionTxt += \"String_Node_Str\" + exBase.getNameWithPrefix() + \"String_Node_Str\";\n if (getChain() != null)\n extensionTxt += \"String_Node_Str\";\n }\n if (getChain() != null) {\n if (isInHead())\n if (getLibrary().isMajorVersion())\n extensionTxt += \"String_Node_Str\";\n else if (isNewToChain())\n extensionTxt += \"String_Node_Str\";\n else\n extensionTxt += \"String_Node_Str\";\n else\n extensionTxt += \"String_Node_Str\" + getTlVersion();\n if (isEditable())\n extensionTxt += \"String_Node_Str\";\n }\n if (isEditable()) {\n if (getChain() == null)\n extensionTxt += \"String_Node_Str\";\n else if (isInHead())\n if (isNewToChain())\n extensionTxt += \"String_Node_Str\";\n else\n extensionTxt += \"String_Node_Str\";\n else if (this instanceof VersionedObjectInterface)\n extensionTxt += \"String_Node_Str\";\n }\n decoration += surround(extensionTxt);\n }\n return decoration;\n}\n"
"private void switchLocation() {\n enableLocation = !enableLocation;\n OptionHelper.saveBoolean(mContext, R.string.option_location_enable, enableLocation);\n if (App.DEBUG)\n log(\"String_Node_Str\" + enableLocation);\n if (enableLocation) {\n iLocationIcon.setImageResource(R.drawable.ic_bar_geoon);\n if (mLocationProvider != null) {\n mLocationManager.requestLocationUpdates(mLocationProvider, 0, 0, mLocationMonitor);\n }\n } else {\n iLocationIcon.setImageResource(R.drawable.ic_bar_geooff);\n mLocationManager.removeUpdates(mLocationMonitor);\n }\n}\n"
"private boolean validateFields() {\n boolean valid = true;\n ConnectionBean connection = getConnection();\n boolean isRemote = LoginHelper.isRemoteConnection(connection);\n boolean serverIsLocal = !isAuthenticationNeeded();\n if (valid && getConnection() == null) {\n valid = false;\n } else if (valid && !getConnection().isComplete()) {\n valid = false;\n } else if (valid && !serverIsLocal && connection.getUser().length() == 0) {\n valid = false;\n } else if (valid && usesMailCheck && !Pattern.matches(RepositoryConstants.MAIL_PATTERN, getUser().getLogin())) {\n valid = false;\n }\n if (valid && !serverIsLocal && connection.getPassword().length() == 0) {\n valid = false;\n }\n return valid;\n}\n"
"private static List<String> getColumnList(IElement element, String context) {\n List<String> columnList = new ArrayList<String>();\n IMetadataTable table = null;\n if (element instanceof INode) {\n table = ((INode) element).getMetadataFromConnector(context);\n if (table == null) {\n List<IMetadataTable> tableList = ((INode) element).getMetadataList();\n if (tableList.size() == 1) {\n table = tableList.get(0);\n } else {\n for (IMetadataTable itable : tableList) {\n if (itable.getAttachedConnector() != null && !itable.getAttachedConnector().equals(\"String_Node_Str\")) {\n table = itable;\n break;\n }\n }\n }\n }\n } else if (element instanceof IConnection) {\n table = ((IConnection) element).getMetadataTable();\n }\n if (table != null) {\n for (IMetadataColumn column : table.getListColumns()) {\n String label = column.getLabel();\n columnList.add(label);\n }\n }\n return columnList;\n}\n"
"private void cloneBaseHCatalogConnection(HCatalogConnection connection) {\n temConnection = EcoreUtil.copy(connection);\n EList<Package> dataPackage = connection.getDataPackage();\n Collection<Package> newDataPackage = EcoreUtil.copyAll(dataPackage);\n ConnectionHelper.addPackages(newDataPackage, temConnection);\n}\n"
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n if (context.getDBName().isEmpty()) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_ACCEPTABLE, \"String_Node_Str\");\n return;\n }\n if (context.getCollectionName().isEmpty() || context.getCollectionName().startsWith(\"String_Node_Str\")) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_ACCEPTABLE, \"String_Node_Str\");\n return;\n }\n DBObject content = context.getContent();\n if (content == null) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_ACCEPTABLE, \"String_Node_Str\");\n return;\n }\n if (content instanceof BasicDBList) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_ACCEPTABLE, \"String_Node_Str\");\n return;\n }\n if (content.containsField(Relationship.RELATIONSHIPS_ELEMENT_NAME)) {\n try {\n Relationship.getFromJson(content);\n } catch (InvalidMetadataException ex) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_NOT_ACCEPTABLE, \"String_Node_Str\" + ex.getMessage(), ex);\n return;\n }\n }\n ObjectId etag = RequestHelper.getUpdateEtag(exchange);\n if (etag == null) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_CONFLICT, \"String_Node_Str\" + Headers.ETAG + \"String_Node_Str\");\n logger.warn(\"String_Node_Str\", Headers.ETAG);\n return;\n }\n int SC = CollectionDAO.upsertCollection(context.getDBName(), context.getCollectionName(), content, etag, true, true);\n if (context.getWarnings() != null && !context.getWarnings().isEmpty()) {\n DocumentRepresentationFactory.sendDocument(exchange.getRequestPath(), exchange, context, new BasicDBObject());\n }\n exchange.endExchange();\n}\n"
"public List<Integer> retrieveConnectionIDs(int userID, String permissionType) {\n if (checkSystemAdministratorAccess(userID))\n return connectionService.getAllConnectionIDs();\n ConnectionPermissionExample example = new ConnectionPermissionExample();\n example.createCriteria().andUser_idEqualTo(userID).andPermissionEqualTo(permissionType);\n example.setDistinct(true);\n List<ConnectionPermissionKey> connectionPermissions = connectionPermissionDAO.selectByExample(example);\n List<Integer> connectionIDs = new ArrayList<Integer>(connectionPermissions.size());\n for (ConnectionPermissionKey permission : connectionPermissions) connectionIDs.add(permission.getConnection_id());\n return connectionIDs;\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_matching_patients);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n if (toolbar != null) {\n toolbar.setTitle(getString(R.string.matching_patients_toolbar_tittle));\n setSupportActionBar(toolbar);\n }\n MatchingPatientsFragment matchingPatientsFragment = (MatchingPatientsFragment) getSupportFragmentManager().findFragmentById(R.id.matchingPatientsContentFrame);\n if (matchingPatientsFragment == null) {\n matchingPatientsFragment = MatchingPatientsFragment.newInstance();\n }\n if (!matchingPatientsFragment.isAdded()) {\n addFragmentToActivity(getSupportFragmentManager(), matchingPatientsFragment, R.id.matchingPatientsContentFrame);\n }\n if (getIntent().getExtras().getBoolean(ApplicationConstants.BundleKeys.CALCULATED_LOCALLY, false)) {\n showToast(getString(R.string.registration_core_info));\n }\n PatientAndMatchesWrapper patientAndMatchesWrapper = (PatientAndMatchesWrapper) getIntent().getSerializableExtra(ApplicationConstants.BundleKeys.PATIENTS_AND_MATCHES);\n new MatchingPatientsPresenter(matchingPatientsFragment, patientAndMatchesWrapper.getMatchingPatients());\n}\n"
"public void testLifeCycle() throws Exception {\n String name = \"String_Node_Str\";\n DateTime start = new DateTime(2014, 12, 3, 20, 45, DateTimeZone.UTC);\n ContentKey key1 = new ContentKey(start, \"String_Node_Str\");\n lastContentPath.initialize(name, key1, BASE_PATH);\n assertEquals(key1, lastContentPath.get(name, new ContentKey(), BASE_PATH));\n ContentKey key2 = new ContentKey(start.plusMillis(1), \"String_Node_Str\");\n contentKeyValue.updateIncrease(key2, name, \"String_Node_Str\");\n assertEquals(key2, contentKeyValue.get(name, new ContentKey(), \"String_Node_Str\"));\n ContentKey key3 = new ContentKey(start.minusMillis(1), \"String_Node_Str\");\n contentKeyValue.updateIncrease(key3, name, \"String_Node_Str\");\n assertEquals(key2, contentKeyValue.get(name, new ContentKey(), \"String_Node_Str\"));\n ContentKey key4 = new ContentKey(start.plusMinutes(1), \"String_Node_Str\");\n contentKeyValue.updateIncrease(key4, name, \"String_Node_Str\");\n assertEquals(key4, contentKeyValue.get(name, new ContentKey(), \"String_Node_Str\"));\n contentKeyValue.delete(name, \"String_Node_Str\");\n ContentKey contentKey = new ContentKey();\n assertEquals(contentKey, contentKeyValue.get(name, contentKey, \"String_Node_Str\"));\n}\n"
"public void test() {\n try {\n if (testMode == 0) {\n mapping.writeFromObjectIntoRow(actor, databaseRow, (AbstractSession) getSession(), WriteType.UNDEFINED);\n } else if (testMode == 1) {\n mapping.writeFromObjectIntoRowWithChangeRecord((org.eclipse.persistence.internal.sessions.ChangeRecord) changeRecord, databaseRow, (AbstractSession) getSession());\n } else if (testMode == 2) {\n mapping.writeFromObjectIntoRowForWhereClause(deleteObjectQuery, databaseRow);\n } else {\n throw new org.eclipse.persistence.testing.framework.TestProblemException(\"String_Node_Str\");\n }\n } catch (EclipseLinkException exception) {\n caughtException = exception;\n }\n}\n"
"public void process(ComplexEventChunk complexEventChunk) {\n complexEventChunk.reset();\n while (complexEventChunk.hasNext()) {\n ComplexEvent event = complexEventChunk.next();\n if (((event.getType() != StreamEvent.Type.CURRENT || !allowCurrentEvents) && (event.getType() != StreamEvent.Type.EXPIRED || !allowExpiredEvents))) {\n complexEventChunk.remove();\n }\n }\n complexEventChunk.reset();\n if (complexEventChunk.hasNext()) {\n try {\n reentrantLock.lock();\n outputPublisher.send(complexEventChunk.getFirst());\n } finally {\n reentrantLock.unlock();\n }\n }\n}\n"
"private Object mergeEntity(MergeContext mergeContext, final Object obj, Object previous, Expression expr, Object parent, String propertyName) {\n if (obj != null || previous != null)\n log.debug(\"String_Node_Str\", ObjectUtil.toString(obj), ObjectUtil.toString(previous), obj == previous ? \"String_Node_Str\" : \"String_Node_Str\");\n Object dest = obj;\n Object p = null;\n if (obj instanceof Lazyable && !((Lazyable) obj).isInitialized()) {\n final EntityDescriptor desc = dataManager.getEntityDescriptor(obj);\n if (desc.getIdPropertyName() != null) {\n p = entitiesByUid.find(new Matcher() {\n public boolean match(Object o) {\n return o.getClass().getName().equals(obj.getClass().getName()) && dataManager.getProperty(obj, desc.getIdPropertyName()).equals(dataManager.getProperty(o, desc.getIdPropertyName()));\n }\n });\n if (p != null) {\n previous = p;\n dest = previous;\n }\n }\n } else if (obj instanceof Identifiable) {\n p = entitiesByUid.get(obj.getClass().getName() + \"String_Node_Str\" + getUid((Identifiable) obj));\n if (p != null) {\n if (obj == p)\n return obj;\n previous = p;\n dest = previous;\n }\n }\n dataManager.stopTracking(previous, parent);\n if (dest != previous && previous != null && (ObjectUtil.objectEquals(dataManager, previous, obj) || (parent != null && !(previous instanceof Identifiable))))\n dest = previous;\n if (dest == obj && p == null && obj != null && mergeContext.getSourceEntityManager() != null) {\n try {\n dest = TypeUtil.newInstance(obj.getClass(), Object.class);\n if (obj instanceof Identifiable)\n ((Identifiable) dest).setUid(((Identifiable) obj).getUid());\n } catch (Exception e) {\n throw new RuntimeException(\"String_Node_Str\" + obj.getClass(), e);\n }\n }\n if (obj instanceof Lazyable && !((Lazyable) obj).isInitialized() && ObjectUtil.objectEquals(dataManager, previous, obj)) {\n EntityDescriptor desc = dataManager.getEntityDescriptor(obj);\n if (desc.getVersionPropertyName() != null) {\n log.debug(\"String_Node_Str\");\n dirtyCheckContext.markNotDirty(previous, null);\n return previous;\n }\n }\n if (dest instanceof Lazyable && !((Lazyable) dest).isInitialized())\n log.debug(\"String_Node_Str\", dest.toString());\n if (dest != null && dest instanceof Identifiable && dest == obj) {\n log.debug(\"String_Node_Str\", obj.toString(), this.id);\n }\n boolean fromCache = (p != null && dest == p);\n if (!fromCache && dest instanceof Identifiable)\n entitiesByUid.put((Identifiable) dest);\n mergeContext.putInCache(obj, dest);\n boolean ignore = false;\n if (dest instanceof Identifiable) {\n EntityDescriptor desc = dataManager.getEntityDescriptor(dest);\n if (mergeContext.isUninitializing() && parent instanceof Identifiable && propertyName != null) {\n if (desc.getVersionPropertyName() != null && dataManager.getProperty(obj, desc.getVersionPropertyName()) != null && dataManager.getEntityDescriptor(parent).isLazy(propertyName)) {\n if (defineProxy(desc, dest, obj))\n return dest;\n }\n }\n attachEntity((Identifiable) dest, false);\n if (previous != null && dest == previous) {\n if (desc.getVersionPropertyName() != null && !mergeContext.isResolvingConflict()) {\n Number newVersion = (Number) dataManager.getProperty(obj, desc.getVersionPropertyName());\n Number oldVersion = (Number) dataManager.getProperty(dest, desc.getVersionPropertyName());\n if ((newVersion != null && oldVersion != null && newVersion.longValue() < oldVersion.longValue() || (newVersion == null && oldVersion != null))) {\n log.warn(\"String_Node_Str\", dest.toString(), oldVersion, newVersion);\n ignore = true;\n } else if ((newVersion != null && oldVersion != null && newVersion.longValue() > oldVersion.longValue()) || (newVersion != null && oldVersion == null)) {\n mergeContext.markVersionChanged(dest);\n if (mergeContext.getExternalDataSessionId() != null && dirtyCheckContext.isEntityChanged((Identifiable) dest)) {\n log.error(\"String_Node_Str\", dest.toString(), oldVersion, newVersion);\n if (dirtyCheckContext.checkAndMarkNotDirty((Identifiable) dest, (Identifiable) obj)) {\n mergeContext.addConflict((Identifiable) dest, (Identifiable) obj);\n ignore = true;\n } else\n mergeContext.setMergeUpdate(true);\n } else\n mergeContext.setMergeUpdate(true);\n } else {\n if (dirtyCheckContext.isEntityChanged((Identifiable) dest))\n mergeContext.setMergeUpdate(false);\n else\n mergeContext.setMergeUpdate(true);\n }\n } else if (!mergeContext.isResolvingConflict())\n mergeContext.markVersionChanged(dest);\n } else\n mergeContext.markVersionChanged(dest);\n if (!ignore)\n defaultMerge(mergeContext, obj, dest, expr, parent, propertyName);\n } else\n defaultMerge(mergeContext, obj, dest, expr, parent, propertyName);\n if (dest != null && !ignore && !mergeContext.isResolvingConflict()) {\n if (mergeContext.isMergeUpdate() && ((dest instanceof Identifiable && mergeContext.hasVersionChanged(dest)) || (!(dest instanceof Identifiable) && parent instanceof Identifiable && mergeContext.hasVersionChanged(parent))))\n dirtyCheckContext.markNotDirty(dest, dest instanceof Identifiable ? null : (Identifiable) parent);\n else if (dest instanceof Identifiable && obj instanceof Identifiable)\n dirtyCheckContext.checkAndMarkNotDirty((Identifiable) dest, (Identifiable) obj);\n }\n if (dest != null)\n log.debug(\"String_Node_Str\", dest.toString());\n dataManager.startTracking(dest, parent);\n return dest;\n}\n"
"public String generate(NamedObj toplevel) throws IllegalActionException {\n String className = toplevel.getClass().getName();\n String code = new String();\n String importCode = new String();\n CompositeEntity compositeModel;\n _importList = new LinkedList();\n if (!(toplevel instanceof CompositeEntity)) {\n throw new IllegalActionException(toplevel, \"String_Node_Str\");\n }\n compositeModel = (CompositeEntity) toplevel;\n String sanitizedName = _name(compositeModel);\n code += \"String_Node_Str\" + sanitizedName + \"String_Node_Str\" + _getClassName(compositeModel) + \"String_Node_Str\" + _indent(1) + \"String_Node_Str\" + sanitizedName + \"String_Node_Str\" + \"String_Node_Str\" + _indent(2) + \"String_Node_Str\" + _indent(2) + \"String_Node_Str\";\n code += _indent(2) + \"String_Node_Str\" + _getClassName(compositeModel) + \"String_Node_Str\";\n code += _generateAttributes(compositeModel);\n code += _generateComponents(compositeModel);\n code += _indent(2) + \"String_Node_Str\" + _indent(3) + \"String_Node_Str\" + _indent(2) + \"String_Node_Str\" + _indent(1) + \"String_Node_Str\" + \"String_Node_Str\";\n _insertIfUnique(\"String_Node_Str\", _importList);\n _insertIfUnique(\"String_Node_Str\", _importList);\n _insertIfUnique(\"String_Node_Str\", _importList);\n try {\n Iterator iter = _importList.iterator();\n while (iter.hasNext()) {\n String p = (String) (iter.next());\n importCode += \"String_Node_Str\" + p + \"String_Node_Str\";\n }\n code = importCode + \"String_Node_Str\" + code;\n } catch (Exception ex) {\n throw new IllegalActionException(ex.getMessage() + \"String_Node_Str\" + \"String_Node_Str\" + importCode + \"String_Node_Str\");\n }\n return code;\n}\n"
"public void allocate(TestCase testCase) {\n int w = Integer.parseInt(testCase.getParam(\"String_Node_Str\"));\n int h = Integer.parseInt(testCase.getParam(\"String_Node_Str\"));\n int d = Integer.parseInt(testCase.getParam(\"String_Node_Str\"));\n grid = new BlockArrayGrid(w, h, d, voxel_size, slice_height, new int[] { 4, 4, 4 }, BlockType.Array);\n}\n"
"public static void registerJBossXMLParsers() {\n DeployerChainAddHandler.addDeploymentProcessor(ServerService.SERVER_NAME, Phase.STRUCTURE, Phase.STRUCTURE_REGISTER_JBOSS_ALL_DEPLOYMENT_DEPS, new JBossAllXmlParserRegisteringProcessor<DeploymentDependencies>(ROOT_1_0, DeploymentDependencies.ATTACHMENT_KEY, DeploymentDependenciesParserV_1_0.INSTANCE));\n}\n"
"public void handleRemoteExecution(Packet packet) {\n log(\"String_Node_Str\" + packet);\n final Data callableData = IOUtil.doTake(packet.value);\n final RemoteExecutionId remoteExecutionId = new RemoteExecutionId(packet.conn.getEndPoint(), packet.longValue);\n final SimpleExecution se = new SimpleExecution(remoteExecutionId, executor, null, callableData, null, false);\n mapRemoteExecutions.put(remoteExecutionId, se);\n executeLocally(se);\n packet.returnToContainer();\n}\n"
"public void writeExternal(final ObjectOutput out) throws IOException {\n finalizeStep();\n final int dimension = (currentState == null) ? -1 : currentState.length;\n out.writeInt(dimension);\n for (int i = 0; i < dimension; ++i) {\n out.writeDouble(yDotKLast[0][i]);\n out.writeDouble(yDotKLast[1][i]);\n out.writeDouble(yDotKLast[2][i]);\n }\n super.writeExternal(out);\n}\n"
"private boolean isExistTable(IHDFSNode node) {\n if (node != null && node.getType() == EHadoopFileTypes.FILE) {\n String tabName = MetadataToolHelper.validateTableName(node.getTable().getName());\n return HDFSSchemaUtil.getTableByName(getConnection(), tabName) != null;\n }\n return false;\n}\n"
"public void readPayload(int id, PacketBuffer bufIn, Side side) throws IOException {\n PacketBufferBC buffer = PacketBufferBC.asPacketBufferBc(bufIn);\n if (msgSide == Side.CLIENT) {\n if (id == NET_CREATE_ITEM) {\n EnumFacing from = buffer.readEnumValue(EnumFacing.class);\n EnumFacing to = MessageUtil.readEnumOrNull(buffer, EnumFacing.class);\n EnumDyeColor colour = MessageUtil.readEnumOrNull(buffer, EnumDyeColor.class);\n int delay = buffer.readInt();\n int stackId = buffer.readInt();\n int stackSize = buffer.readShort();\n Supplier<ItemStack> link = BuildCraftObjectCaches.retrieveItemStack(stackId);\n TravellingItem item = new TravellingItem(link, stackSize);\n item.from = from;\n item.to = to;\n item.colour = colour;\n long now = pipe.getHolder().getPipeWorld().getTotalWorldTime();\n item.tickStarted = now;\n item.tickFinished = now + delay;\n item.state = EnumTravelState.CLIENT_RUNNING;\n items.add(delay, item);\n }\n }\n}\n"
"public void adjustLocalOrRemoteStreamVolume(int streamType, int direction) {\n if (streamType != STREAM_MUSIC) {\n Log.w(TAG, \"String_Node_Str\" + streamType);\n }\n IAudioService service = getService();\n try {\n service.adjustLocalOrRemoteStreamVolume(streamType, direction, mContext.getOpPackageName());\n } catch (RemoteException e) {\n Log.e(TAG, \"String_Node_Str\", e);\n }\n}\n"
"public List<CacheEntry> getObjectList(final String bucketName, final String objectNamePrefix, final String delimiter, Set<String> returnedPrefixes) throws IOException {\n LOG.debug(\"String_Node_Str\", bucketName, objectNamePrefix, delimiter);\n Preconditions.checkArgument(delimiter == null || \"String_Node_Str\".equals(delimiter), \"String_Node_Str\", delimiter);\n StorageResourceId listBase;\n if (Strings.isNullOrEmpty(objectNamePrefix)) {\n listBase = new StorageResourceId(bucketName);\n } else {\n int indexOfDelim = objectNamePrefix.lastIndexOf('/');\n if (indexOfDelim == -1) {\n listBase = new StorageResourceId(bucketName);\n } else {\n String objectToList = objectNamePrefix.substring(0, indexOfDelim + 1);\n listBase = new StorageResourceId(bucketName, objectToList);\n }\n }\n LOG.debug(\"String_Node_Str\", listBase);\n Preconditions.checkState(listBase != null, \"String_Node_Str\");\n validateResourceId(listBase);\n final Path listBasePath = getMirrorPath(listBase);\n File listBaseFile = listBasePath.toFile();\n if (!listBaseFile.exists()) {\n LOG.debug(\"String_Node_Str\", listBaseFile, listBase);\n return null;\n }\n final List<CacheEntry> cacheEntries = new ArrayList<>();\n final Path bucketBasePath = getMirrorPath(new StorageResourceId(bucketName));\n final FileCallback fileVisitor = new FileCallback() {\n public void run(File candidateFile) throws IOException {\n Path objectNamePath = bucketBasePath.relativize(candidateFile.toPath());\n String objectNamePathString = objectNamePath.toString();\n if (candidateFile.isDirectory()) {\n objectNamePathString = StorageResourceId.convertToDirectoryPath(objectNamePathString);\n }\n StorageResourceId objectId = new StorageResourceId(bucketName, objectNamePathString);\n CacheEntry entry = new CacheEntry(objectId, candidateFile.lastModified());\n if (isCacheEntryExpired(entry)) {\n LOG.debug(\"String_Node_Str\", objectId);\n removeResourceId(objectId);\n } else {\n String objectName = objectId.getObjectName();\n String matchedName = GoogleCloudStorageStrings.matchListPrefix(objectNamePrefix, delimiter, objectName);\n if (matchedName != null && objectName.equals(matchedName)) {\n LOG.debug(\"String_Node_Str\", objectId);\n cacheEntries.add(entry);\n }\n }\n }\n };\n if (delimiter != null) {\n File[] fileList = listBaseFile.listFiles();\n if (fileList != null) {\n for (File object : fileList) {\n fileVisitor.run(object);\n }\n } else {\n LOG.warn(\"String_Node_Str\", listBaseFile);\n return null;\n }\n } else {\n Files.walkFileTree(listBasePath, new SimpleFileVisitor<Path>() {\n public FileVisitResult postVisitDirectory(Path dir, IOException ioe) throws IOException {\n if (!listBasePath.equals(dir)) {\n fileVisitor.run(dir.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n fileVisitor.run(file.toFile());\n return FileVisitResult.CONTINUE;\n }\n });\n }\n return cacheEntries;\n}\n"
"private Map addProfileProviderService(Map appContext) {\n Map providerAppContext = appContext;\n if (providerAppContext == null)\n providerAppContext = new HashMap();\n if (!providerAppContext.containsKey(IPropertyProvider.ODA_CONSUMER_ID)) {\n providerAppContext.put(IPropertyProvider.ODA_CONSUMER_ID, DTP_CONN_PROFILE_APPL_ID);\n if (getLogger().isLoggable(Level.FINE))\n getLogger().logp(Level.FINE, sm_className, \"String_Node_Str\", \"String_Node_Str\" + DTP_CONN_PROFILE_APPL_ID);\n }\n return providerAppContext;\n}\n"
"public void handleSelectionUpdate(ISelectionDelta selectionDelta, boolean scrollToSelection, String info) {\n if (selectionDelta.getIDType().getCategory() == EIDCategory.GENE && dataDomain == EDataDomain.GENETIC_DATA) {\n contentSelectionManager.setDelta(selectionDelta);\n ISelectionDelta internalDelta = contentSelectionManager.getCompleteDelta();\n initForAddedElements();\n handleConnectedElementRep(internalDelta);\n reactOnExternalSelection(scrollToSelection);\n setDisplayListDirty();\n } else if (selectionDelta.getIDType() == EIDType.EXPERIMENT_INDEX) {\n storageSelectionManager.setDelta(selectionDelta);\n handleConnectedElementRep(storageSelectionManager.getCompleteDelta());\n reactOnExternalSelection(scrollToSelection);\n setDisplayListDirty();\n }\n}\n"
"protected void setInput(MatchRule matchRule, AbsMatchAnalysisTableComposite<?> matchRuleComposite) {\n List<MatchKeyAndSurvivorDefinition> generatedSurvivorKeyList = generateSurvivorKeyByMatchKey(matchRule, Boolean.FALSE);\n ((MatchKeyAndSurvivorTableComposite) matchRuleComposite).setInput(generatedSurvivorKeyList);\n}\n"
"public IAccess applyState(CompilerState state, IContext context) {\n super.applyState(state, context);\n this.arguments.replaceAll(v -> v.applyState(state, context));\n if (state == CompilerState.RESOLVE) {\n return AccessResolver.resolve(context, this);\n } else {\n super.applyState(state, context);\n if (this.instance != null) {\n this.instance = this.instance.applyState(state, context);\n }\n this.arguments.replaceAll(v -> v.applyState(state, context));\n return this;\n }\n return this;\n}\n"
"private StringBuffer generateComponentsCode(NodesSubTree subProcess, INode node, ECodePart part, String incomingName, ETypeGen typeGen) throws CodeGeneratorException {\n StringBuffer codeComponent = new StringBuffer();\n Boolean isMarked = subProcess.isMarkedNode(node, part);\n boolean isIterate = isSpecifyInputNode(node, incomingName, EConnectionType.ITERATE);\n if ((isMarked != null) && (!isMarked)) {\n switch(part) {\n case BEGIN:\n codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.BEGIN, typeGen));\n codeComponent.append(generateComponentCode(subProcess, node, ECodePart.BEGIN, incomingName, typeGen));\n break;\n case MAIN:\n if (isIterate) {\n codeComponent.append(generateTypedComponentCode(EInternalTemplate.ITERATE_SUBPROCESS_HEADER, node, ECodePart.BEGIN, incomingName, subProcess));\n codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.BEGIN, typeGen));\n codeComponent.append(generateComponentCode(subProcess, node, ECodePart.BEGIN, incomingName, typeGen));\n codeComponent.append(generateComponentCode(subProcess, node, ECodePart.MAIN, incomingName, typeGen));\n codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.MAIN, typeGen));\n codeComponent.append(generateComponentCode(subProcess, node, ECodePart.END, incomingName, typeGen));\n codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.END, typeGen));\n codeComponent.append(generateTypedComponentCode(EInternalTemplate.ITERATE_SUBPROCESS_FOOTER, node, ECodePart.END, incomingName, subProcess));\n } else {\n if (ETypeGen.CAMEL == typeGen) {\n if (node.getIncomingConnections() != null && node.getIncomingConnections().size() > 0) {\n if (!(node.getIncomingConnections().get(0).getLineStyle().equals(EConnectionType.ROUTE))) {\n codeComponent.append(generateTypedComponentCode(EInternalTemplate.CAMEL_SPECIALLINKS, node));\n }\n }\n }\n codeComponent.append(generateComponentCode(subProcess, node, ECodePart.MAIN, incomingName, typeGen));\n if (ETypeGen.CAMEL == typeGen) {\n if (node.getIncomingConnections().size() < 1 && node.isStart()) {\n String label = null;\n IElementParameter parameter = node.getElementParameter(\"String_Node_Str\");\n if (parameter != null && !\"String_Node_Str\".equals(parameter.getValue())) {\n label = (String) parameter.getValue();\n }\n if (label == null) {\n label = node.getUniqueName();\n } else {\n label += \"String_Node_Str\" + node.getUniqueName();\n }\n if (!\"String_Node_Str\".equals(node.getComponent().getName())) {\n codeComponent.append(\"String_Node_Str\" + label + \"String_Node_Str\");\n }\n } else {\n codeComponent.append(\"String_Node_Str\" + node.getUniqueName() + \"String_Node_Str\");\n }\n }\n boolean isNextOnRowsEnd = false;\n IConnection conn = null;\n if (node.getOutgoingConnections(EConnectionType.ON_ROWS_END).size() == 1) {\n conn = node.getOutgoingConnections(EConnectionType.ON_ROWS_END).get(0);\n isNextOnRowsEnd = isSpecifyInputNode(conn.getTarget(), conn.getName(), EConnectionType.ON_ROWS_END);\n }\n if (isNextOnRowsEnd && conn != null && (onRowsEndCode.getMarked(conn.getTarget().getUniqueName()) == null)) {\n StringBuffer buffer = new StringBuffer();\n onRowsEndCode.add(buffer);\n onRowsEndCode.increase();\n buffer.append(generatesTreeCode(subProcess, conn.getTarget(), ECodePart.BEGIN, typeGen));\n buffer.append(generateComponentCode(subProcess, conn.getTarget(), ECodePart.BEGIN, incomingName, typeGen));\n buffer.append(generateComponentCode(subProcess, conn.getTarget(), ECodePart.MAIN, incomingName, typeGen));\n buffer.append(generatesTreeCode(subProcess, conn.getTarget(), ECodePart.MAIN, typeGen));\n buffer.append(generateComponentCode(subProcess, conn.getTarget(), ECodePart.END, incomingName, typeGen));\n buffer.append(generatesTreeCode(subProcess, conn.getTarget(), ECodePart.END, typeGen));\n }\n codeComponent.append(generatesTreeCode(subProcess, node, ECodePart.MAIN, typeGen));\n }\n break;\n case END:\n boolean isOnRowsEnd = isSpecifyInputNode(node, incomingName, EConnectionType.ON_ROWS_END);\n if (isOnRowsEnd) {\n onRowsEndCode.decrease();\n if (onRowsEndCode.getCount() == 0) {\n for (int i = 0; i < onRowsEndCode.getBuffers().size(); i++) {\n codeComponent.append(onRowsEndCode.getBuffers().get(i));\n }\n onRowsEndCode.clear();\n }\n } else {\n codeComponent.append(generateComponentCode(subProcess, node, ECodePart.END, incomingName, typeGen));\n codeComponent.append(generatesTreeCode(subProcess, node, part, typeGen));\n }\n break;\n default:\n }\n subProcess.markNode(node, part);\n }\n return codeComponent;\n}\n"
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset) {\n final TileEntity te = world.getTileEntity(x, y, z);\n if (!player.isSneaking())\n if (!world.isRemote && te != null && te instanceof PlotoniumChestTE)\n player.displayGUIChest((IInventory) te);\n return true;\n}\n"
"public void updateDismissView(boolean visible) {\n int oldVisibility = mDismissView.willBeGone() ? GONE : mDismissView.getVisibility();\n int newVisibility = visible ? VISIBLE : GONE;\n if (oldVisibility != newVisibility) {\n if (newVisibility != GONE) {\n if (mDismissView.willBeGone()) {\n mDismissView.cancelAnimation();\n } else {\n mDismissView.setInvisible();\n mDismissView.setVisibility(newVisibility);\n }\n mDismissView.setWillBeGone(false);\n updateContentHeight();\n } else {\n mDismissView.setWillBeGone(true);\n mDismissView.performVisibilityAnimation(false, new Runnable() {\n public void run() {\n mDismissView.setVisibility(GONE);\n mDismissView.setWillBeGone(false);\n updateContentHeight();\n }\n });\n }\n }\n}\n"
"public void setInventorySlotContents(int par1, ItemStack par2ItemStack) {\n if (worldObj.getBlockMetadata(xCoord, yCoord, zCoord) == 1) {\n this.furnaceItemStacks[par1] = par2ItemStack;\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit()) {\n par2ItemStack.stackSize = this.getInventoryStackLimit();\n }\n } else if (worldObj.getBlockMetadata(xCoord, yCoord, zCoord) > 0) {\n getPrimaryTileEntity().setInventorySlotContents(par1, par2ItemStack);\n }\n}\n"
"private void revalidateImpl(final RepositorySelection newRepoSelection) {\n if (label.isDisposed() || !isCurrentPage())\n return;\n final ListRemoteOperation listRemoteOp;\n try {\n final URIish uri = newRepoSelection.getURI();\n final Repository db = FileRepositoryBuilder.create(new File(\"String_Node_Str\"));\n int timeout = Activator.getDefault().getPreferenceStore().getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT);\n listRemoteOp = new ListRemoteOperation(db, uri, timeout);\n if (credentials != null)\n listRemoteOp.setCredentialsProvider(new EGitCredentialsProvider(credentials.getUser(), credentials.getPassword()));\n getContainer().run(true, true, new IRunnableWithProgress() {\n public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n listRemoteOp.run(monitor);\n }\n });\n } catch (InvocationTargetException e) {\n Throwable why = e.getCause();\n transportError(why);\n if (showDetailedFailureDialog())\n SourceBranchFailureDialog.show(getShell(), uri);\n return;\n } catch (IOException e) {\n transportError(UIText.SourceBranchPage_cannotCreateTemp);\n return;\n } catch (InterruptedException e) {\n transportError(UIText.SourceBranchPage_remoteListingCancelled);\n return;\n }\n final Ref idHEAD = listRemoteOp.getRemoteRef(Constants.HEAD);\n head = null;\n boolean headIsMaster = false;\n final String masterBranchRef = Constants.R_HEADS + Constants.MASTER;\n for (final Ref r : listRemoteOp.getRemoteRefs()) {\n final String n = r.getName();\n if (!n.startsWith(Constants.R_HEADS))\n continue;\n availableRefs.add(r);\n if (idHEAD == null || headIsMaster)\n continue;\n if (r.getObjectId().equals(idHEAD.getObjectId())) {\n headIsMaster = masterBranchRef.equals(r.getName());\n if (head == null || headIsMaster)\n head = r;\n }\n }\n Collections.sort(availableRefs, new Comparator<Ref>() {\n public int compare(final Ref o1, final Ref o2) {\n return o1.getName().compareTo(o2.getName());\n }\n });\n if (idHEAD != null && head == null) {\n head = idHEAD;\n availableRefs.add(0, idHEAD);\n }\n validatedRepoSelection = newRepoSelection;\n refsViewer.setInput(availableRefs);\n refsViewer.setAllChecked(true);\n checkPage();\n checkForEmptyRepo();\n}\n"
"private void appendValue(StringBuffer buf, Hashtable oidSymbols, ASN1ObjectIdentifier oid, String value) {\n String sym = (String) oidSymbols.get(oid);\n if (sym != null) {\n buf.append(sym);\n } else {\n buf.append(oid.getId());\n }\n buf.append('=');\n int index = buf.length();\n int start = index;\n buf.append(value);\n int end = buf.length();\n if (value.length() >= 2 && value.charAt(0) == '\\\\' && value.charAt(1) == '#') {\n index += 2;\n }\n while (index != end) {\n if ((buf.charAt(index) == ',') || (buf.charAt(index) == '\"') || (buf.charAt(index) == '\\\\') || (buf.charAt(index) == '+') || (buf.charAt(index) == '=') || (buf.charAt(index) == '<') || (buf.charAt(index) == '>') || (buf.charAt(index) == ';')) {\n buf.insert(index, \"String_Node_Str\");\n index++;\n end++;\n }\n index++;\n }\n while (start < buf.length() && buf.charAt(start) == ' ') {\n buf.insert(start, \"String_Node_Str\");\n start += 2;\n }\n int endBuf = buf.length() - 1;\n while (endBuf >= 0 && buf.charAt(endBuf) == ' ') {\n buf.insert(endBuf, '\\\\');\n endBuf--;\n }\n}\n"
"private void injectByName(Object arg, String fdname) {\n if (arg != null) {\n final String mdname = Classes.toMethodName(fdname, \"String_Node_Str\");\n final Class parmcls = arg.getClass();\n final Class tgtcls = _controller.getClass();\n try {\n final Method md = Classes.getCloseMethod(tgtcls, mdname, new Class[] { parmcls });\n if (!injectByMethod(md, parmcls, parmcls, arg, fdname)) {\n injectFieldByName(arg, tgtcls, parmcls, fdname);\n }\n } catch (NoSuchMethodException ex) {\n injectFieldByName(arg, tgtcls, parmcls, fdname);\n }\n } catch (NoSuchMethodException ex) {\n injectFieldByName(arg, tgtcls, parmcls, fdname);\n } catch (Exception ex) {\n throw UiException.Aide.wrap(ex);\n }\n}\n"
"private void determineType(FetchedFile file) throws Exception {\n if (file.getResources().isEmpty()) {\n file.getErrors().clear();\n Element e = null;\n try {\n if (file.getContentType().contains(\"String_Node_Str\"))\n e = loadFromJson(file);\n else if (file.getContentType().contains(\"String_Node_Str\"))\n e = loadFromXml(file);\n else\n throw new Exception(\"String_Node_Str\" + file.getName());\n } catch (Exception ex) {\n throw new Exception(\"String_Node_Str\" + file.getName() + \"String_Node_Str\" + ex.getMessage(), ex);\n }\n FetchedResource r = file.addResource();\n String id = e.getChildValue(\"String_Node_Str\");\n if (Utilities.noString(id))\n throw new Exception(\"String_Node_Str\" + file.getPath());\n r.setElement(e).setId(id).setTitle(e.getChildValue(\"String_Node_Str\"));\n Element m = e.getNamedChild(\"String_Node_Str\");\n if (m != null) {\n List<Element> profiles = m.getChildrenByName(\"String_Node_Str\");\n for (Element p : profiles) r.getProfiles().add(p.getValue());\n }\n igpkp.findConfiguration(file, r);\n }\n}\n"
"protected T handleRealize(T proxy) {\n T ret = createInstance(proxy);\n PropertyResolverConverter prc = getPropertyResolverConverter();\n for (Map.Entry<String, Object> entry : values.entrySet()) {\n String propertyName = entry.getKey();\n Object value = entry.getValue();\n int mappedIndicatorIndx = propertyName.indexOf(':');\n if (mappedIndicatorIndx < 0) {\n try {\n PropertyResolver.setValue(propertyName, ret, value, prc);\n } catch (WicketRuntimeException e) {\n e.printStackTrace();\n }\n } else {\n String propertyExp = propertyName.substring(0, mappedIndicatorIndx);\n String fieldExp = propertyName.substring(mappedIndicatorIndx + 1);\n Object object = ret;\n int subObject = propertyExp.lastIndexOf('.');\n if (subObject >= 0) {\n object = PropertyResolver.getValue(propertyExp.substring(0, subObject), object);\n propertyExp = propertyExp.substring(subObject + 1);\n }\n if (object != null) {\n String methodName = \"String_Node_Str\" + propertyExp.substring(0, 1).toUpperCase() + propertyExp.substring(1);\n Method[] methods = object.getClass().getMethods();\n try {\n for (Method method : methods) {\n if (method.getName().equals(methodName)) {\n Class<?>[] paramTypes = method.getParameterTypes();\n if (paramTypes.length == 2 && paramTypes[0].isAssignableFrom(String.class) && (value == null || paramTypes[1].isInstance(value))) {\n method.invoke(object, fieldExp, value);\n break;\n }\n }\n }\n } catch (Exception e) {\n }\n }\n }\n }\n realized = ret;\n return ret;\n}\n"
"public void addChatTab(MetaContact contact) {\n OperationSetBasicInstantMessaging contactIMOperationSet = this.mainFrame.getProtocolIM(contact.getDefaultContact().getProtocolProvider());\n if (chatTabbedPane == null) {\n this.setCurrentChatPanel(new ChatPanel(this, contactIMOperationSet));\n this.currentChatPanel.addContactToChat(contact, status);\n chatTabbedPane = new SIPCommTabbedPane(true);\n chatTabbedPane.addCloseListener(new CloseListener() {\n public void closeOperation(MouseEvent e) {\n int selectedIndex = chatTabbedPane.getOverTabIndex();\n removeContactTab(selectedIndex);\n }\n });\n chatTabbedPane.addChangeListener(new ChangeListener() {\n public void stateChanged(ChangeEvent e) {\n ChatPanel chatPanel = (ChatPanel) chatTabbedPane.getSelectedComponent();\n if (chatPanel != null) {\n setTitle(chatPanel.getDefaultContact().getDisplayName());\n setCurrentChatPanel(chatPanel);\n }\n }\n });\n this.getContentPane().add(this.currentChatPanel, BorderLayout.CENTER);\n this.currentChatPanel.setTabIndex(0);\n this.contactTabsTable.put(contact.getDisplayName(), currentChatPanel);\n this.setTitle(contact.getDisplayName());\n } else {\n if (chatTabbedPane.getTabCount() > 0) {\n this.setCurrentChatPanel(new ChatPanel(this, contactIMOperationSet));\n this.currentChatPanel.addContactToChat(contact);\n chatTabbedPane.addTab(contact.getDisplayName(), currentChatPanel);\n chatTabbedPane.getParent().validate();\n this.currentChatPanel.setTabIndex(chatTabbedPane.getTabCount() - 1);\n this.contactTabsTable.put(contact.getDisplayName(), currentChatPanel);\n } else {\n chatTabbedPane.addTab(currentChatPanel.getDefaultContact().getDisplayName(), currentChatPanel);\n this.setCurrentChatPanel(new ChatPanel(this, contactIMOperationSet));\n this.currentChatPanel.addContactToChat(contact);\n chatTabbedPane.addTab(contact.getDisplayName(), currentChatPanel);\n currentChatPanel.setTabIndex(chatTabbedPane.getTabCount() - 1);\n this.contactTabsTable.put(contact.getDisplayName(), currentChatPanel);\n }\n this.getContentPane().add(chatTabbedPane, BorderLayout.CENTER);\n this.getContentPane().validate();\n }\n}\n"
"private void measureVertical(int widthMeasureSpec, int heightMeasureSpec) {\n int hSize = MeasureSpec.getSize(heightMeasureSpec) - (getPaddingTop() + getPaddingBottom());\n int count = getChildCount();\n int columnHeight = 0;\n int totalWidth = 0, maxColumnHeight = 0;\n int columnMaxWidth = 0;\n int childWidth;\n int childHeight;\n if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED)\n hSize = Integer.MAX_VALUE;\n for (int i = 0; i < count; i++) {\n final View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0);\n final LayoutParams lp = (LayoutParams) child.getLayoutParams();\n childWidth = child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin;\n childHeight = child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin;\n columnMaxWidth = Math.max(columnMaxWidth, childWidth);\n if (childHeight + columnHeight > hSize) {\n totalWidth += columnMaxWidth;\n maxColumnHeight = Math.max(maxColumnHeight, columnHeight);\n columnHeight = childHeight;\n columnMaxWidth = childWidth;\n } else {\n columnHeight += childHeight;\n }\n }\n }\n if (columnHeight != 0) {\n maxColumnHeight = Math.max(maxColumnHeight, columnHeight);\n totalWidth += columnMaxWidth;\n }\n if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED)\n hSize = maxColumnHeight + (getPaddingTop() + getPaddingBottom());\n setMeasuredDimension(resolveSize(totalWidth + getPaddingRight() + getPaddingLeft(), widthMeasureSpec), resolveSize(hSize, heightMeasureSpec));\n}\n"
"private boolean upgradeNineteenTwenty(SQLiteDatabase db) {\n db.beginTransaction();\n try {\n List<String> allIndexedFixtures = IndexedFixturePathUtils.getAllIndexedFixtureNames(db);\n for (String fixtureName : allIndexedFixtures) {\n String tableName = StorageIndexedTreeElementModel.getTableName(fixtureName);\n SqlStorage<StorageIndexedTreeElementModel> storageForThisFixture = new SqlStorage<>(tableName, StorageIndexedTreeElementModel.class, new ConcreteAndroidDbHelper(c, db));\n StorageIndexedTreeElementModel exampleChildElement = storageForThisFixture.iterate().nextRecord();\n IndexedFixturePathUtils.buildFixtureIndices(db, tableName, exampleChildElement.getIndexColumnNames());\n }\n db.setTransactionSuccessful();\n return true;\n } finally {\n db.endTransaction();\n }\n}\n"
"private void setSteps(final CoordinateOperation[] steps) throws FactoryException {\n final List<CoordinateOperation> flattened = new ArrayList<CoordinateOperation>(steps.length);\n initialize(null, steps, flattened, DefaultFactories.forBuildin(MathTransformFactory.class), (coordinateOperationAccuracy == null), (domainOfValidity == null));\n operations = UnmodifiableArrayList.wrap(flattened.toArray(new SingleOperation[flattened.size()]));\n}\n"
"public void invite(String name, Player player, String inviteeName) {\n if (warpList.containsKey(name)) {\n Warp warp = warpList.get(name);\n if (warp.playerIsCreator(player.getName())) {\n if (warp.playerIsInvited(inviteeName)) {\n player.sendMessage(ChatColor.RED + inviteeName + \"String_Node_Str\");\n } else if (warp.playerIsCreator(inviteeName)) {\n player.sendMessage(Color.RED + inviteeName + \"String_Node_Str\");\n } else {\n warp.invite(inviteeName);\n WarpDataSource.updatePermissions(warp);\n player.sendMessage(Color.AQUA + \"String_Node_Str\" + inviteeName + \"String_Node_Str\" + name + \"String_Node_Str\");\n if (warp.publicAll) {\n player.sendMessage(Color.RED + \"String_Node_Str\" + name + \"String_Node_Str\");\n }\n Player match = server.getPlayer(inviteeName);\n if (match != null) {\n match.sendMessage(Color.AQUA + \"String_Node_Str\" + name + \"String_Node_Str\" + player.getName());\n match.sendMessage(\"String_Node_Str\" + Color.RED + \"String_Node_Str\" + name + Color.WHITE + \"String_Node_Str\");\n }\n }\n } else {\n player.sendMessage(Color.RED + \"String_Node_Str\" + name + \"String_Node_Str\");\n }\n } else {\n player.sendMessage(Color.RED + \"String_Node_Str\" + name + \"String_Node_Str\");\n }\n}\n"
"public void addUser(final User user) throws SQLCannotConnectException {\n for (Session session : _allSessions) {\n if (session.getUser() == user) {\n return;\n }\n }\n MetaDataSession session = user.getMetaDataSession();\n if (session != null)\n addSession(user.getMetaDataSession());\n}\n"
"public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n tvX.setText(\"String_Node_Str\" + (mSeekBarX.getProgress() + 1));\n tvY.setText(\"String_Node_Str\" + (mSeekBarY.getProgress()));\n ArrayList<BarEntry> yVals1 = new ArrayList<BarEntry>();\n for (int i = 0; i < mSeekBarX.getProgress() + 1; i++) {\n float mult = (mSeekBarY.getProgress() + 1);\n float val1 = (float) (Math.random() * mult) + mult / 3;\n yVals1.add(new BarEntry((int) val1, i));\n }\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < mSeekBarX.getProgress() + 1; i++) {\n xVals.add((int) yVals1.get(i).getVal() + \"String_Node_Str\");\n }\n BarDataSet set1 = new BarDataSet(yVals1, \"String_Node_Str\");\n set1.setColors(ColorTemplate.VORDIPLOM_COLORS);\n set1.setDrawValues(false);\n ArrayList<IBarDataSet> dataSets = new ArrayList<IBarDataSet>();\n dataSets.add(set1);\n BarData data = new BarData(xVals, dataSets);\n mChart.setData(data);\n mChart.invalidate();\n}\n"
"public org.hl7.fhir.dstu2.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.dstu3.model.DeviceUseStatement src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement();\n copyDomainResource(src, tgt);\n tgt.setBodySite(convertType(src.getBodySite()));\n tgt.setWhenUsed(convertPeriod(src.getWhenUsed()));\n tgt.setDevice(convertReference(src.getDevice()));\n for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));\n for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getIndication()) tgt.addIndication(convertCodeableConcept(t));\n for (org.hl7.fhir.dstu3.model.StringType t : src.getNotes()) tgt.addNotes(t.getValue());\n tgt.setRecordedOn(src.getRecordedOn());\n tgt.setSubject(convertReference(src.getSubject()));\n tgt.setTiming(convertType(src.getTiming()));\n return tgt;\n}\n"
"public static int themeIndex() {\n int themeIndex = 1;\n try {\n themeIndex = Integer.parseInt(defaultPrefs.getString(\"String_Node_Str\", \"String_Node_Str\"));\n } catch (Exception e) {\n Timber.e(e);\n }\n return themeIndex;\n}\n"
"public void autoPageBreak() throws BirtException {\n if (parent != null) {\n return parent.autoPageBreak();\n }\n}\n"
"public SyncopeUser update(final SyncopeUser user, final UserMod userMod, final Set<Long> mandatoryRoles, final Set<String> mandatoryResources) throws WorkflowException, PropagationException {\n Map.Entry<SyncopeUser, PropagationByResource> updated = userService.update(user, userMod);\n Set<String> mandatoryResourceNames = userService.getMandatoryResourceNames(user, mandatoryRoles, mandatoryResources);\n if (!mandatoryResourceNames.isEmpty()) {\n LOG.debug(\"String_Node_Str\", mandatoryResourceNames);\n }\n propagationManager.update(user, userMod.getPassword(), null, updated.getValue(), mandatoryResourceNames);\n return updated.getKey();\n}\n"
"public void prepareClosing(int response) {\n if (response == SWT.OK || response == SWT.APPLICATION_MODAL) {\n setMapperResponse(SWT.OK);\n }\n if (response == SWT.CANCEL) {\n removeUnsavedOutputsFromProcess();\n } else {\n mapperManager.getAbstractMapComponent().restoreMapperModelFromInternalData();\n }\n saveCurrentUIProperties();\n if (response == SWT.OK || response == SWT.APPLICATION_MODAL) {\n createVisualMapImage();\n closeWithoutPrompt = true;\n Map<IConnection, Set<String>> preColumnSets = mapperUI.getPreColumnSet();\n List<InputTable> inputTables = mapperManager.getInputTables();\n List<OutputTable> outputTables = mapperManager.getOutputTables();\n setTraceFilterParaMapper(preColumnSets, inputTables, changedNameColumns);\n setTraceFilterParaMapper(preColumnSets, outputTables, changedNameColumns);\n refreshVisualMapImage();\n }\n mapperManager.updateEmfParameters(EParameterName.PREVIEW.getName());\n}\n"
"static ByteString unescapeBytes(CharSequence input) throws InvalidEscapeSequence {\n byte[] result = new byte[input.length()];\n int pos = 0;\n for (int i = 0; i < input.length(); i++) {\n char c = input.charAt(i);\n if (c == '\\\\') {\n if (i + 1 < input.length()) {\n ++i;\n c = input.charAt(i);\n if (isOctal(c)) {\n int code = digitValue(c);\n if ((i + 1 < input.length()) && isOctal(input.charAt(i + 1))) {\n ++i;\n code = code * 8 + digitValue(input.charAt(i));\n }\n if ((i + 1 < input.length()) && isOctal(input.charAt(i + 1))) {\n ++i;\n code = code * 8 + digitValue(input.charAt(i));\n }\n result[pos++] = (byte) code;\n } else {\n switch(c) {\n case 'a':\n result[pos++] = 0x07;\n break;\n case 'b':\n result[pos++] = '\\b';\n break;\n case 'f':\n result[pos++] = '\\f';\n break;\n case 'n':\n result[pos++] = '\\n';\n break;\n case 'r':\n result[pos++] = '\\r';\n break;\n case 't':\n result[pos++] = '\\t';\n break;\n case 'v':\n result[pos++] = 0x0b;\n break;\n case '\\\\':\n result[pos++] = '\\\\';\n break;\n case '\\'':\n result[pos++] = '\\'';\n break;\n case '\"':\n result[pos++] = '\\\"';\n break;\n case 'x':\n int code = 0;\n if ((i + 1 < input.length()) && isHex(input.charAt(i + 1))) {\n ++i;\n code = digitValue(input.charAt(i));\n } else {\n throw new InvalidEscapeSequence(\"String_Node_Str\");\n }\n if ((i + 1 < input.length()) && isHex(input.charAt(i + 1))) {\n ++i;\n code = code * 16 + digitValue(input.charAt(i));\n }\n result[pos++] = (byte) code;\n break;\n case 'u':\n code = (16 * 3 * digitValue(input.charAt(i + 1))) + (16 * 2 * digitValue(input.charAt(i + 2))) + (16 * digitValue(input.charAt(i + 3))) + digitValue(input.charAt(i + 4));\n i = i + 4;\n result[pos++] = (byte) code;\n break;\n default:\n throw new InvalidEscapeSequence(\"String_Node_Str\" + c + \"String_Node_Str\");\n }\n }\n } else {\n throw new InvalidEscapeSequence(\"String_Node_Str\");\n }\n } else {\n result[pos++] = (byte) c;\n }\n }\n return ByteString.copyFrom(result, 0, pos);\n}\n"
"public List<String> getAllRepositoryNames() throws IOException {\n return repositoryService.getAllRepositoriesNames(getUserId());\n}\n"
"private void checkChunkUpdates(Point currentPosition) {\n priorityChunkSendQueue.clear();\n chunkSendQueue.clear();\n chunkFreeQueue.clear();\n chunkInitQueue.clear();\n World world = currentPosition.getWorld();\n int bx = (int) currentPosition.getX();\n int by = (int) currentPosition.getY();\n int bz = (int) currentPosition.getZ();\n Point playerChunkBase = Chunk.pointToBase(currentPosition);\n for (Point p : initializedChunks) {\n if (p.getManhattanDistance(playerChunkBase) > blockViewDistance) {\n chunkFreeQueue.add(p);\n }\n }\n int cx = bx >> Chunk.BLOCKS.BITS;\n int cy = by >> Chunk.BLOCKS.BITS;\n int cz = bz >> Chunk.BLOCKS.BITS;\n Iterator<IntVector3> itr = new OutwardIterator(cx, cy, cz, viewDistance);\n int distance = 0;\n while (itr.hasNext()) {\n IntVector3 v = itr.next();\n Point base = new Point(world, v.getX() << Chunk.BLOCKS.BITS, v.getY() << Chunk.BLOCKS.BITS, v.getZ() << Chunk.BLOCKS.BITS);\n if (!activeChunks.contains(base)) {\n if (inTargetArea) {\n priorityChunkSendQueue.add(base);\n } else {\n chunkSendQueue.add(base);\n }\n }\n if (!initializedChunks.contains(base)) {\n chunkInitQueue.add(base);\n }\n }\n}\n"
"public void allocate() {\n scoreTimer = TimerPool.getTimer(\"String_Node_Str\");\n pruneTimer = TimerPool.getTimer(\"String_Node_Str\");\n growTimer = TimerPool.getTimer(\"String_Node_Str\");\n totalTokensScored = StatisticsVariable.getStatisticsVariable(\"String_Node_Str\");\n curTokensScored = StatisticsVariable.getStatisticsVariable(\"String_Node_Str\");\n tokensCreated = StatisticsVariable.getStatisticsVariable(\"String_Node_Str\");\n try {\n linguist.allocate();\n pruner.allocate();\n scorer.allocate();\n } catch (IOException e) {\n throw new RuntimeException(toString() + \"String_Node_Str\", e);\n }\n}\n"
"protected void onRegistrationError(final String errorId) {\n OPFPushLog.methodD(ADMService.class, \"String_Node_Str\", errorId);\n final OPFError error = convertError(errorId);\n OPFPushLog.d(\"String_Node_Str\" + error);\n OPFPush.getHelper().getReceivedMessageHandler().onError(NAME, error);\n}\n"
"private InjectionResolver<Param> getInjector(AdminCommand command, ParameterMap parameters, MultiMap<String, File> map) {\n CommandModel model = command instanceof CommandModelProvider ? ((CommandModelProvider) command).getModel() : new CommandModelImpl(command.getClass());\n return new MapInjectionResolver(model, parameters, map);\n}\n"
"public void addClassIndicatorFieldToRow(AbstractRecord databaseRow) {\n if (hasClassExtractor()) {\n return;\n }\n DatabaseField field = getClassIndicatorField();\n Object value = getClassIndicatorValue();\n boolean namespaceAware = ((XMLRecord) databaseRow).isNamespaceAware() || ((XMLRecord) databaseRow).hasCustomNamespaceMapper();\n if (!namespaceAware && value instanceof String) {\n int colonIndex = ((String) value).indexOf(XMLConstants.COLON);\n if (colonIndex > -1) {\n value = ((String) value).substring(colonIndex + 1);\n }\n } else if (namespaceAware && value instanceof String) {\n if (((XMLRecord) databaseRow).getNamespaceSeparator() != XMLConstants.COLON) {\n value = ((String) value).replace(XMLConstants.COLON, ((XMLRecord) databaseRow).getNamespaceSeparator());\n }\n }\n databaseRow.put(field, value);\n}\n"
"private void longTimeoutRetrofitInitialization() {\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n longTimeOutHttpClient = new OkHttpClient.Builder().readTimeout(120, TimeUnit.SECONDS).connectTimeout(120, TimeUnit.SECONDS).addInterceptor(new Interceptor() {\n public Response intercept(Interceptor.Chain chain) throws IOException {\n Request request = chain.request().newBuilder().build();\n return chain.proceed(request);\n }\n }).addInterceptor(logging).build();\n longTimeoutRetrofitBuilder = new Retrofit.Builder().addConverterFactory(GsonConverterFactory.create()).client(httpClient);\n longTimeOutRetrofit = longTimeoutRetrofitBuilder.baseUrl(URIs.BASE_URL + URIs.API_VERSION).build();\n longTimeoutService = longTimeOutRetrofit.create(RestAPI.class);\n}\n"
"public void setInterceptors(IServerInterceptor... theList) {\n myInterceptors.clear();\n if (theList != null) {\n myInterceptors.addAll(theList);\n }\n}\n"
"public void onUpdate() {\n super.onUpdate();\n if (prevRotationPitch == 0.0F && prevRotationYaw == 0.0F) {\n float var1 = MathHelper.sqrt(motionX * motionX + motionZ * motionZ);\n prevRotationYaw = rotationYaw = (float) (Math.atan2(motionX, motionZ) * 180.0D / Math.PI);\n prevRotationPitch = rotationPitch = (float) (Math.atan2(motionY, var1) * 180.0D / Math.PI);\n }\n IBlockState state = world.getBlockState(tilePos);\n Block block = state.getBlock();\n if (block != null) {\n if (state.getMaterial() != Material.AIR) {\n AxisAlignedBB aabb = block.getCollisionBoundingBox(state, world, tilePos);\n if (aabb != null && aabb.contains(new Vec3d(posX, posY, posZ))) {\n inGround = true;\n }\n }\n }\n if (arrowShake > 0) {\n --arrowShake;\n }\n if (inGround && block != null) {\n int meta = block.getMetaFromState(state);\n if (block == inTile && meta == inData) {\n ++ticksInGround;\n if (ticksInGround == 1200) {\n setDead();\n }\n } else {\n inGround = false;\n motionX *= (double) (rand.nextFloat() * 0.2F);\n motionY *= (double) (rand.nextFloat() * 0.2F);\n motionZ *= (double) (rand.nextFloat() * 0.2F);\n ticksInGround = 0;\n ticksInAir = 0;\n }\n } else {\n ++ticksInAir;\n Vec3d posVec = new Vec3d(posX, posY, posZ);\n Vec3d motionVec = new Vec3d(posX + motionX, posY + motionY, posZ + motionZ);\n RayTraceResult rayTraceResult = world.rayTraceBlocks(posVec, motionVec, false, true, false);\n posVec = new Vec3d(posX, posY, posZ);\n motionVec = new Vec3d(posX + motionX, posY + motionY, posZ + motionZ);\n if (rayTraceResult != null) {\n motionVec = rayTraceResult.hitVec;\n }\n Entity entity = null;\n List<Entity> entities = world.getEntitiesWithinAABBExcludingEntity(this, getEntityBoundingBox().grow(motionX, motionY, motionZ).expand(1.0D, 1.0D, 1.0D));\n double d1 = 0.0D;\n float f1 = 0.3F;\n for (Entity entity1 : entities) {\n if (entity1.canBeCollidedWith() && (entity1 != shootingEntity || ticksInAir >= 5)) {\n AxisAlignedBB aabb = entity1.getEntityBoundingBox().expand((double) f1, (double) f1, (double) f1);\n RayTraceResult intercept = aabb.calculateIntercept(posVec, motionVec);\n if (intercept != null) {\n double distanceTo = posVec.distanceTo(intercept.hitVec);\n if (distanceTo < d1 || d1 == 0.0D) {\n entity = entity1;\n d1 = distanceTo;\n }\n }\n }\n }\n if (entity != null) {\n rayTraceResult = new RayTraceResult(entity);\n }\n if (rayTraceResult != null) {\n if (rayTraceResult.entityHit != null) {\n int damage = (int) this.damage;\n DamageSource source;\n if (shootingEntity == null || silenced) {\n source = DamageSource.causeThrownDamage(this, this);\n } else {\n source = DamageSource.causeThrownDamage(this, shootingEntity);\n }\n if (isBurning() && !(rayTraceResult.entityHit instanceof EntityEnderman)) {\n rayTraceResult.entityHit.setFire(5);\n }\n if (rayTraceResult.entityHit.attackEntityFrom(source, damage)) {\n if (rayTraceResult.entityHit instanceof EntityLiving) {\n EntityLiving entityHit = (EntityLiving) rayTraceResult.entityHit;\n if (!world.isRemote) {\n entityHit.setArrowCountInEntity(entityHit.getArrowCountInEntity() + 1);\n }\n }\n if (!(rayTraceResult.entityHit instanceof EntityEnderman)) {\n setDead();\n }\n } else {\n motionX *= -0.10000000149011612D;\n motionY *= -0.10000000149011612D;\n motionZ *= -0.10000000149011612D;\n rotationYaw += 180.0F;\n prevRotationYaw += 180.0F;\n ticksInAir = 0;\n }\n } else {\n tilePos = rayTraceResult.getBlockPos();\n IBlockState inState = world.getBlockState(tilePos);\n inTile = inState.getBlock();\n inData = inTile.getMetaFromState(inState);\n motionX = (double) ((float) (rayTraceResult.hitVec.x - posX));\n motionY = (double) ((float) (rayTraceResult.hitVec.y - posY));\n motionZ = (double) ((float) (rayTraceResult.hitVec.z - posZ));\n float root = MathHelper.sqrt(motionX * motionX + motionY * motionY + motionZ * motionZ);\n posX -= motionX / (double) root * 0.05000000074505806D;\n posY -= motionY / (double) root * 0.05000000074505806D;\n posZ -= motionZ / (double) root * 0.05000000074505806D;\n inGround = true;\n arrowShake = 7;\n if (inTile != null) {\n inTile.onEntityCollidedWithBlock(world, tilePos, inState, this);\n }\n }\n }\n posX += motionX;\n posY += motionY;\n posZ += motionZ;\n rotationYaw = (float) (Math.atan2(motionX, motionZ) * 180.0D / Math.PI);\n while (rotationPitch - prevRotationPitch >= 180.0F) {\n prevRotationPitch += 360.0F;\n }\n while (rotationYaw - prevRotationYaw < -180.0F) {\n prevRotationYaw -= 360.0F;\n }\n while (rotationYaw - prevRotationYaw >= 180.0F) {\n prevRotationYaw += 360.0F;\n }\n rotationPitch = prevRotationPitch + (rotationPitch - prevRotationPitch) * 0.2F;\n rotationYaw = prevRotationYaw + (rotationYaw - prevRotationYaw) * 0.2F;\n float f3 = 0.99F;\n f1 = 0.05F;\n if (this.isInWater()) {\n double f2 = 0.25D;\n for (int i = 0; i < 4; ++i) {\n world.spawnParticle(EnumParticleTypes.WATER_BUBBLE, posX - motionX * f2, posY - motionY * f2, posZ - motionZ * f2, motionX, motionY, motionZ);\n }\n f3 = 0.8F;\n }\n motionX *= (double) f3;\n motionY *= (double) f3;\n motionZ *= (double) f3;\n motionY -= (double) f1;\n setPosition(posX, posY, posZ);\n }\n}\n"
"public void writeTOC(String tocText, int level, boolean middleInline) {\n if (!middleInline) {\n writer.openTag(\"String_Node_Str\");\n }\n if (color != null || !color.isEmpty()) {\n writer.openTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", color);\n writer.closeTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n } else {\n writer.openTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n }\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", bookmarkId);\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\" + tocText);\n writer.closeTag(\"String_Node_Str\");\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", bookmarkId++);\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n writeField(true);\n writeTocText(tocText, level);\n writeField(false);\n if (!middleInline) {\n writer.closeTag(\"String_Node_Str\");\n }\n}\n"
"public boolean handle(Object receive) throws Exception {\n if (receive instanceof HttpResponse) {\n HttpResponse response = (HttpResponse) receive;\n boolean done = response.isChunked() == false;\n RiakObject<_> ro = new AbstractRiakObject<_>() {\n public _ getContent() {\n return _._;\n }\n };\n RestRiakOperations.this.factory.convertHeaders(response, ro);\n handler.begin(ro);\n if (done) {\n try {\n handler.handle(RestRiakOperations.this.support.newResponse(response.getContent()));\n } finally {\n handler.end();\n }\n }\n return done;\n } else if (receive instanceof HttpChunk) {\n HttpChunk chunk = (HttpChunk) receive;\n boolean done = chunk.isLast();\n if (done) {\n handler.end();\n } else {\n handler.handle(RestRiakOperations.this.support.newResponse(chunk.getContent()));\n }\n return done;\n }\n return false;\n}\n"
"private void selectAllToggleButtons(boolean selection) {\n for (int i = 0; i < listAlignmentButtons.size(); i++) {\n listAlignmentButtons.get(i).setSelection(selection);\n }\n}\n"
"public synchronized IContentObserver getObserver() {\n if (mObserverBridge == null) {\n mObserverBridge = new SelfContentObserver(this);\n }\n return null;\n}\n"
"public void finishTransaction() {\n if (null != em && em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n em.close();\n }\n em = null;\n}\n"
"private boolean updateNotification(String description) {\n int currentNotificationIdex = getCurrentNotificationIndex(mNotificationsContainer, description);\n mNotificationsContainer.removeViewAt(currentNotificationIdex);\n int nextNotificationIndex = mNotificationsContainer.getChildCount() - 1;\n if (nextNotificationIndex >= 0) {\n StatusBarNotification nextNotification = (StatusBarNotification) mNotificationsContainer.getChildAt(nextNotificationIndex).getTag();\n if (nextNotification.getNotification().largeIcon != null) {\n mNotificationIcon.setImageDrawable(NotificationPeekViewUtils.getRoundedShape(getResources(), nextNotification.getNotification().largeIcon));\n } else {\n mNotificationIcon.setImageDrawable(NotificationPeekViewUtils.getIconFromResource(this, nextNotification));\n }\n mNotificationText.setText(NotificationPeekViewUtils.getNotificationDisplayText(this, nextNotification));\n mNotificationView.setTranslationX(0);\n mNotificationView.animate().alpha(1f).start();\n mNotificationView.setTag(nextNotification);\n if (nextNotification.getNotification().contentIntent != null) {\n NotificationClicker mNotificationClicker = new NotificationClicker(nextNotification, mPeek);\n mNotificationIcon.setOnClickListener(mNotificationClicker);\n }\n if (nextNotificationIndex == 0) {\n mNotificationsContainer.getChildAt(nextNotificationIndex).setVisibility(View.GONE);\n } else {\n mNotificationsContainer.getChildAt(nextNotificationIndex).setAlpha(1);\n }\n mPeek.updateNotificationTextAlpha(1);\n return true;\n }\n return false;\n}\n"