content
stringlengths
40
137k
"private Long getBundleId(BundleRevision bundleRevision) {\n Bundle bundle = bundleRevision.getBundle();\n if (bundle != null) {\n return bundle.getBundleId();\n }\n if (bundleRevision instanceof BundleDescription) {\n BundleDescription bundleDescription = (BundleDescription) bundleRevision;\n...
"public void setSelectedIndex(int anIndex) {\n int size = dataModel.getSize();\n if (anIndex == -1) {\n setSelectedItem(null);\n } else if (anIndex >= size) {\n throw new IllegalArgumentException(\"String_Node_Str\" + anIndex + \"String_Node_Str\");\n } else {\n Object value = dataModel...
"private BaseMessage parsePayload(Object payload) throws Exception {\n if (payload instanceof BaseMessage) {\n return (BaseMessage) payload;\n } else if (payload instanceof String) {\n return (BaseMessage) BindingManager.getBinding(\"String_Node_Str\").fromOM((String) payload);\n }\n return ne...
"public void removeAllArrows(UUID gameId) {\n if (map.containsKey(gameId)) {\n Map<Type, List<Arrow>> innerMap = map.get(gameId);\n JPanel p = getArrowsPanel(gameId);\n synchronized (map) {\n if (p != null && p.getComponentCount() > 0) {\n p.removeAll();\n ...
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n if (savedInstanceState != null)\n log = savedInstanceState.getParcelable(\"String_Node_Str\");\n final TextView text = new TextView(getActivity());\n text.setPadding(10, 10, 10, 10);\n text.setMovementMethod(new ScrollingMovementMethod());\...
"public static Collection<Location> flatten(Collection<Location> members) {\n List<Location> flattened = new ArrayList<Location>(members);\n for (int i = 0; i < flattened.size(); i++) {\n Location member = flattened.get(i);\n if (!member.isContiguous()) {\n flattened.remove(i);\n ...
"public static synchronized GroovyIndentationService get(IJavaProject project) {\n if (lastIndenter != null && !project.equals(lastIndenter.project)) {\n disposeLastImpl();\n }\n if (lastIndenter == null) {\n lastIndenter = new GroovyIndentationService(project);\n }\n return lastIndenter;\n...
"private void autoVarSelCondition() throws IOException {\n for (ColumnConfig config : columnConfigList) {\n if (!config.isTarget() && !config.isMeta() && !config.isForceSelect() && config.isFinalSelect() && isHighMissingRateColumn(config)) {\n log.warn(\"String_Node_Str\", config.getColumnName());\...
"public void Refresh() throws WBIOException {\n synchronized (lock) {\n Map<String, WBWebPage> tempMapByID = new HashMap<String, WBWebPage>();\n Map<String, WBWebPage> tempMapByName = new HashMap<String, WBWebPage>();\n List<WBWebPage> recList = dataStorage.getAllRecords(WBWebPage.class);\n ...
"public void updateEntity() {\n super.updateEntity();\n if (!this.worldObj.isRemote) {\n for (int i = 0; i < this.getSizeInventory(); i++) {\n if (this.getStackInSlot(i) != null && CompatibilityModule.isHandler(this.getStackInSlot(i).getClass())) {\n long charge = CompatibilityMod...
"private void applyAggrFilters(AggregationDefinition[] aggregations, IAggregationResultSet[] resultSet, StopSign stopSign) throws IOException, DataException, BirtException {\n if (aggrFilters.isEmpty() == false || topbottomFilters.isEmpty() == false) {\n List oldFilters = new ArrayList(filters);\n addL...
"private boolean checkForDuplicate(Bookmark userData) {\n boolean dup = false;\n if (this.userResPairs.contains(userData.getUserID() + \"String_Node_Str\" + userData.getResourceID())) {\n dup = true;\n }\n this.userResPairs.add(userData.getUserID() + \"String_Node_Str\" + userData.getWikiID());\n ...
"public boolean isInSameLabelUpdateEventGroup(TurboIssueEvent e) {\n long timeDiffMs = Math.abs(getDate().getTime() - e.getDate().getTime());\n long timeDiffSec = TimeUnit.MILLISECONDS.toSeconds(timeDiffMs);\n return getActor().getLogin().equals(e.getActor().getLogin()) && timeDiffSec <= MAX_TIME_DIFF;\n}\n"
"protected void setMatrix(GL10 gl) {\n float sX = scaleX * scale;\n float sY = scaleY * scale;\n gl.glTranslatef((originX * Math.abs(sX)) + mPoint.x, (originY * Math.abs(sY)) + mPoint.y, 0f);\n if (angle != 0) {\n gl.glRotatef(angle, 0, 0, 1.0f);\n }\n gl.glScalef(sX, sY, 1.0f);\n gl.glTrans...
"public double getTax() {\n double sum = 0.0;\n if (hasTaxesCalculated()) {\n for (TicketTaxInfo tax : taxes) {\n sum += tax.getTax();\n }\n } else {\n for (TicketLineInfo line : m_aLines) {\n sum += line.getTax();\n }\n }\n return sum;\n}\n"
"private Representation readRepresentation(MPD mpd, Period period, AdaptationSet adaptationSet, Uri baseUrl, XmlPullParser parser, SegmentTemplate segmentTemplate) throws XmlPullParserException, IOException, DashParserException {\n Representation representation = new Representation();\n representation.id = getAtt...
"public void testGetViewsConnectionSchemaStringBoolean() {\n java.sql.Connection sqlConn = null;\n DatabaseMetaData metaData = null;\n String schemaName = \"String_Node_Str\";\n List<TdView> tableList = new ArrayList<TdView>();\n List<TdView> retableList = new ArrayList<TdView>();\n List<TdView> resul...
"protected final void loadResources() {\n Class implementingClass = getClass();\n String className = implementingClass.getName();\n synchronized (MsgBase.class) {\n resources = (ResourceBundle) resourceMap.get(className);\n if (resources == null) {\n Locale defaultLocale = Locale.getDe...
"public org.hl7.fhir.dstu2.model.Appointment convertAppointment(org.hl7.fhir.dstu3.model.Appointment src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Appointment tgt = new org.hl7.fhir.dstu2.model.Appointment();\n copyDomainResource(src, tgt);\n ...
"private File fetchDeduplicateIndex(List<MetadataEntry> metadataEntries) {\n List<Long> jobIDsForDuplicateReduction = parseJobIDsForDuplicateReduction(metadataEntries);\n return IndexClientFactory.getDedupCrawllogInstance().getIndex(new HashSet<Long>(jobIDsForDuplicateReduction)).getIndex();\n}\n"
"public String consumeString() throws ParseException {\n char quote = currentToken.length() > 0 ? currentToken.charAt(0) : '\\0';\n if ((quote != '\\\"') && (quote != '\\'')) {\n throw parseException(\"String_Node_Str\");\n }\n if ((currentToken.length() < 2) || (currentToken.charAt(currentToken.leng...
"public void onVehicleBlockCollision(VehicleBlockCollisionEvent event) {\n if (event.getBlock().getState() instanceof Dispenser && event.getVehicle() instanceof Minecart) {\n ItemStack item;\n if (event.getVehicle() instanceof PoweredMinecart) {\n item = new ItemStack(Material.POWERED_MINECA...
"public boolean hasOpponent(UUID playerToCheckId, Game game) {\n return !this.getId().equals(playerToCheckId) && game.isOpponent(this, playerToCheckId);\n}\n"
"private static String[] getJarsInDirectory(String dir) {\n File f = new File(dir);\n Assertions.productionAssertion(f.isDirectory(), \"String_Node_Str\" + dir);\n Collection<File> col = FileUtil.listFiles(dir, \"String_Node_Str\", true);\n String[] result = new String[col.size()];\n int i = 0;\n for ...
"protected int addPlates(int count) {\n if (!skinCompleted) {\n int addition = Math.min(count, Math.max(MAX_PLATE_COUNT - platesContained, 0));\n if (addition > 0) {\n platesContained += addition;\n plateLevel = platesContained / PLATE_PER_LEVEL_COUNT;\n if (platesConta...
"private ExprNode replaceLiteral(ExprNode node, QueryModel translatingModel, QueryModel innerModel, QueryModel validatingModel) throws ParserException {\n if (node != null && node.type == ExprNode.LITERAL) {\n final CharSequenceObjHashMap<String> map = translatingModel.getColumnToAliasMap();\n int inde...
"private String generateNewQuery() {\n if (realDBType != null) {\n dbType = realDBType;\n }\n if (node != null && node instanceof INode) {\n process = ((INode) node).getProcess();\n }\n if (this.realTableId != null && this.dbNameAndDbTypeMap.containsKey(this.realTableId)) {\n dbType ...
"public void modifyDomain(DomainInfo domain) throws PermissionException, MailManagerException {\n LdapFacade ldap = null;\n String domainName = domain.getName();\n String domaindn = domainDn(domainName);\n try {\n ldap = getLdap();\n ldap.modifyElementAttribute(domaindn, \"String_Node_Str\", b...
"public void run() {\n SettingsHandler.saveAllPrefs();\n if (!Browser.checkShowclixLink(SettingsHandler.getLastEvent())) {\n SettingsHandler.saveLastEvent(Browser.getShowclixLink());\n System.out.println(\"String_Node_Str\");\n }\n status = new Status();\n setStatusIconInBackground(getIconN...
"public static StringTree<String> getTree(String path) {\n synchronized (fileSettingsXmlList) {\n for (SimpleXml settingsXml : fileSettingsXmlList) {\n if (settingsXml.hasKey(path)) {\n return settingsXml.getTree(path);\n }\n }\n }\n for (SimpleXml settingsXml...
"private RevCommit commit(boolean fastForward) {\n RevCommit mergeCommit;\n if (fastForward) {\n mergeCommit = repository().getCommit(commits.get(0));\n } else {\n String commitMessage = message;\n if (commitMessage == null) {\n commitMessage = \"String_Node_Str\";\n ...
"protected Result buildResultForStoredFunction(ProcedureType storedProcedure, String returnType) {\n Result result = null;\n FunctionType storedFunction = (FunctionType) storedProcedure;\n ArgumentType rarg = storedFunction.getReturnArgument();\n DatabaseType rargDataType = rarg.getEnclosedType();\n if (...
"public int registerLocal(Object type) {\n int index = this.localIndex;\n if (type == LONG || type == DOUBLE) {\n this.ensureLocals(index + 2);\n this.locals[index] = type;\n this.locals[index + 1] = TOP;\n this.localIndex += 2;\n } else {\n this.ensureLocals(index + 1);\n ...
"public static boolean isBrandingChanged() {\n if (!initialized) {\n if (CommonUIPlugin.isFullyHeadless()) {\n isBrandingChanged = false;\n } else {\n IBrandingService brandingService = (IBrandingService) GlobalServiceRegister.getDefault().getService(IBrandingService.class);\n ...
"private IterableIndexResult<IndexedAIP> findAipsToDelete(IndexService index, List<String> activeJobsIds) {\n Filter aipsFilter = new Filter();\n activeJobsIds.forEach(e -> aipsFilter.add(new NotSimpleFilterParameter(RodaConstants.INGEST_JOB_ID, e)));\n aipsFilter.add(new SimpleFilterParameter(RodaConstants.AI...
"public JComponent getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {\n super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);\n if (value instanceof FilesystemTreeNode) {\n FilesystemTreeN...
"protected void handleVendorMessage(VendorMessage vm) {\n super.handleVendorMessage(vm);\n if (vm instanceof HopsFlowVendorMessage) {\n HopsFlowVendorMessage hops = (HopsFlowVendorMessage) vm;\n if (isSupernodeClientConnection())\n setBusy(hops.getHopValue() == 0);\n hopsFlowMax = ...
"public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {\n final ListCalc listCalc = compiler.compileList(call.getArg(0));\n final Calc calc1 = compiler.compileScalar(call.getArg(1), true);\n final Calc calc2 = call.getArgCount() > 2 ? compiler.compileScalar(call.getArg(2), true) : new ValueCalc(...
"protected void updateClusterParameters() {\n int kappa_n = kappa0 + size;\n int nu = nu0 + size;\n RealVector mu = xi_sum.mapDivide(size);\n RealVector mu_mu0 = mu.subtract(mu0);\n RealMatrix C = xi_square_sum.subtract((mu.outerProduct(mu)).scalarMultiply(size));\n RealMatrix psi = psi0.add(C.add((mu...
"public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {\n ChannelPipeline pipeline = e.getChannel().getPipeline();\n try {\n Object receive = e.getMessage();\n if (LOG.isDebugEnabled()) {\n LOG.debug(Markers.DETAIL, Messages.Receive, this.name, receive);...
"private void buildUrlParameters(ExecutableElement executableElement, RestDocumentation.Resource.Method doc, RestImplementationSupport implementationSupport) {\n RestDocumentation.Resource.UrlFields subs = doc.getUrlParameters();\n for (VariableElement var : executableElement.getParameters()) {\n String re...
"public Iterator iterator() {\n return getChildren().iterator();\n}\n"
"public void testCheckedMultiply() {\n for (long a : ALL_LONG_CANDIDATES) {\n for (long b : ALL_LONG_CANDIDATES) {\n BigInteger expectedResult = valueOf(a).multiply(valueOf(b));\n boolean expectedSuccess = fitsInLong(expectedResult);\n try {\n assertEquals(a * b...
"protected JcloudsSshMachineLocation createJcloudsSshMachineLocation(ComputeService computeService, NodeMetadata node, String vmHostname, Optional<HostAndPort> sshHostAndPort, ConfigBag setup) throws IOException {\n Map<?, ?> sshConfig = extractSshConfig(setup, node);\n String nodeAvailabilityZone = extractAvaila...
"public void testListDir() throws Exception {\n String key = prefix + \"String_Node_Str\";\n EtcdResponse result;\n result = this.client.set(key, \"String_Node_Str\", null);\n String keyTwo = prefix + \"String_Node_Str\";\n result = this.client.set(keyTwo, \"String_Node_Str\", null);\n List<EtcdNode> ...
"public void render(HttpServletRequest req, HttpServletResponse resp, Object obj) {\n if (sc >= 400)\n try {\n resp.sendError(sc);\n } catch (IOException e) {\n throw Lang.wrapThrow(e);\n }\n else\n resp.setStatus(sc);\n}\n"
"public Response getPeopleInfo(UriInfo uriInfo, SecurityContext securityContext, String userId, String format, String currentUserName, String updatedType) throws Exception {\n if (format.indexOf('.') > 0) {\n userId = new StringBuffer(userId).append(\"String_Node_Str\").append(format.substring(0, format.lastI...
"private void resolveFactStoragePartitions(CubeQueryContext cubeql) throws SemanticException {\n Iterator<CandidateFact> i = cubeql.getCandidateFactTables().iterator();\n while (i.hasNext()) {\n CandidateFact cfact = i.next();\n List<FactPartition> answeringParts = new ArrayList<FactPartition>();\n ...
"private void writeLetterSpacing(IStyle style) {\n int letterSpacing = PropertyUtil.getDimensionValue(style.getProperty(StyleConstants.STYLE_LETTER_SPACING));\n writeAttrTag(\"String_Node_Str\", WordUtil.milliPt2Twips(letterSpacing));\n}\n"
"public void fire() throws IllegalActionException {\n super.fire();\n Director director = getDirector();\n Time currentTime = director.getModelTime();\n int currentMicrostep = 1;\n if (director instanceof SuperdenseTimeDirector) {\n currentMicrostep = ((SuperdenseTimeDirector) director).getIndex()...
"public void feed(List<BarEntry> entries) {\n float size = entries.size() * phaseX;\n int dataSetOffset = (mDataSetCount - 1);\n float barSpaceHalf = mBarSpace / 2f;\n float groupSpaceHalf = mGroupSpace / 2f;\n float barWidth = 0.5f;\n for (int i = 0; i < size; i++) {\n BarEntry e = entries.get...
"private <T extends Object> T createProxyObject(T t) {\n T p = isImmutableElements ? t : ProxyHelper.createProxyIfAny(t);\n if (p instanceof FormProxyObject) {\n FormProxyObject fpo = (FormProxyObject) p;\n fpo.addFormProxyObjectListener(this);\n }\n return p;\n}\n"
"public void updateAttributeRemoveObjectFromCollection(String attributeName, Object mapKey, Object value) {\n DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName);\n if (mapping == null) {\n throw DescriptorException.mappingForAttributeIsMissing(...
"public boolean onCommand(CommandPerformEvent event) {\n if (event.getArgs().length != 1) {\n return false;\n }\n String channelName = event.getArgs()[0];\n if (!channelName.startsWith(\"String_Node_Str\")) {\n channelName = \"String_Node_Str\" + channelName;\n }\n event.respondWithPing(...
"protected boolean onCreateActionBar(Menu menu) {\n return true;\n}\n"
"public org.hl7.fhir.dstu2.model.Contract.ComputableLanguageComponent convertComputableLanguageComponent(org.hl7.fhir.dstu3.model.Contract.ComputableLanguageComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Contract.ComputableLanguageCompone...
"protected void populateSchemaList() {\n if (rootNode != null) {\n removeTreeItem(rootNode);\n }\n getAvailableSchema();\n if (schemaCombo.getItemCount() < 1) {\n schemaCombo.add(JdbcPlugin.getResourceString(\"String_Node_Str\"));\n schemaCombo.select(0);\n if (schemaList != null...
"private void loadSelectedCustomTemplatesFromDirectory(ConfigurationTemplateSettings.Builder settings) {\n String newDirectory = Utils.getDirectory(\"String_Node_Str\", settings.getConfigurationDirectory());\n if (newDirectory == null)\n return;\n settings.setConfigurationDirectory(newDirectory);\n F...
"private void addListeners() {\n dirBTN.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n setDirState(dirBTN.getSelection());\n }\n });\n archBTN.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEv...
"public boolean getBurning() {\n int meta = getBlockMetadata();\n if (meta > 0) {\n if (meta == 1) {\n return this.burning;\n } else {\n if (this.hasMaster()) {\n return this.getMasterTileEntity().isBurning();\n }\n }\n }\n return false;\n...
"private synchronized Decider getDecider() {\n if (decider == null) {\n decider = createDecider();\n if (isDebug()) {\n _logger.log(DEBUG_LEVEL, \"String_Node_Str\", decider.getClass().getName());\n }\n }\n return decider;\n}\n"
"protected void bindHolder(TransactionViewHolderBase holder, TransactionWrapper data, int position) {\n String amount = data.getAmount().toFriendlyString();\n if (amount.length() <= 10) {\n holder.txt_scale.setVisibility(View.GONE);\n holder.amount.setText(amount);\n } else {\n holder.txt_...
"public void loadWindowPreferences(Component window, Preferences windowPreferences, int defaultWidth, int defaultHeight) {\n if (defaultWidth > 0) {\n window.setSize(windowPreferences.getInt(\"String_Node_Str\", defaultWidth), windowPreferences.getInt(\"String_Node_Str\", defaultHeight));\n window.setLocat...
"public RunRecord getRun(Id.Namespace namespace, String adapterName, String runId) throws NotFoundException {\n Id.Program program = getProgramId(namespace, adapterName);\n RunRecordMeta runRecordMeta = store.getRun(program, runId);\n if (runRecordMeta != null && adapterName.equals(runRecordMeta.getAdapterName...
"public Result<Boolean> alias(String alias, AccountAliasForm form) {\n if (!Address.validAddress(form.getAddress())) {\n return Result.getFailed(AccountErrorCode.ADDRESS_ERROR);\n }\n if (StringUtils.isBlank(alias)) {\n return Result.getFailed(AccountErrorCode.PARAMETER_ERROR);\n }\n if (St...
"public ItemStack createPart(PartType mat, Enum varient) {\n try {\n ItemStack is = new ItemStack(this);\n mat.getPart().getConstructor(ItemStack.class).newInstance(is);\n } catch (Throwable e) {\n return null;\n }\n String name = varient == null ? mat.name() : mat.name() + \"String_Nod...
"public void applyContainerBottomStyle() {\n XlsContainer container = engine.getCurrentContainer();\n ContainerSizeInfo rule = container.getSizeInfo();\n StyleEntry entry = container.getStyle();\n int start = rule.getStartCoordinate();\n int col = engine.getAxis().getColumnIndexByCoordinate(start);\n ...
"private static Configuration buildDriverConfig(final Class<?> failMsgClass) {\n final Configuration driverConfig = DriverConfiguration.CONF.set(DriverConfiguration.GLOBAL_LIBRARIES, EnvironmentUtils.getClassLocation(FailDriver.class)).set(DriverConfiguration.DRIVER_IDENTIFIER, \"String_Node_Str\" + failMsgClass.get...
"public void setLowerBound(final InformationLoss<?> a) {\n node.lowerBound = InformationLoss.createInformationLoss(a, metric, DESERIALIZATION_CONTEXT_MIN_LEVEL, DESERIALIZATION_CONTEXT_MAX_LEVEL);\n}\n"
"protected void _generateNodeFile(String typeName, String parentTypeName, boolean isConcrete, boolean isSingleton, boolean isInterface, LinkedList methodList, LinkedList implList) throws IOException {\n File fdest = new File(typeName + \"String_Node_Str\");\n if (!fdest.createNewFile()) {\n fdest.delete();...
"private void fireProgressStateChanged(Date startDate, Date endDate, String[] keywords, int progress) {\n ProgressEvent event = new ProgressEvent(this, startDate, endDate, keywords, progress);\n synchronized (progressListeners) {\n Iterator iter = progressListeners.iterator();\n while (iter.hasNext(...
"private void assertSkip(final Model model, final String profileId, final boolean managed, final boolean deploy, final boolean state) {\n BuildBase build = null;\n if (profileId != null) {\n final List<Profile> profiles = model.getProfiles();\n if (profiles != null) {\n for (final Profile...
"public boolean applyStaticNats(Network config, List<? extends StaticNat> rules) throws ResourceUnavailableException {\n if (!canHandle(config, Service.StaticNat)) {\n return false;\n }\n boolean multiNetScalerDeployment = Boolean.valueOf(_configDao.getValue(Config.EIPWithMultipleNetScalersEnabled.key()...
"public boolean execute(ICommandSender sender, String[] args) throws Exception {\n if (args.length < 2 && args.length >= 3) {\n throw new BadUsageException(getUsage());\n }\n if (args[1].length() > 16 || !validUserPattern.matcher(args[1]).matches()) {\n throw new IllegalArgumentException(C(\"Stri...
"public boolean isMatchTableStillValid() {\n if (!table.isTournament()) {\n if (!(table.getState() == TableState.WAITING || table.getState() == TableState.STARTING || table.getState() == TableState.READY_TO_START)) {\n if (match == null) {\n logger.warn(\"String_Node_Str\");\n ...
"void loopForItemsElement(Environment env, TemplateElement nestedBlock, String loopVarName) throws NonSequenceOrCollectionException, TemplateModelException, InvalidReferenceException, TemplateException, IOException {\n try {\n if (alreadyEntered) {\n throw new _MiscTemplateException(env, \"String_N...
"public void recalculateSize() {\n float lowerX = Float.MAX_VALUE, lowerY = Float.MAX_VALUE, upperX = Float.MIN_VALUE, upperY = Float.MIN_VALUE;\n SnapshotArray<Entity> entities = nodeComponent.children;\n float cos = 0;\n float sin = 0;\n float x1, y1, x2, y2, x3, y3, x4, y4;\n float worldOriginX;\n ...
"public void testFixedTableLayout() throws EngineException {\n String designFile = \"String_Node_Str\";\n List pageAreas = getpageAreas(designFile);\n assertEquals(1, pageAreas.size());\n PageArea pageArea = (PageArea) pageAreas.get(0);\n ContainerArea body = (ContainerArea) pageArea.getBody();\n asse...
"public boolean isNew() {\n return getLocalTablePostId() >= 0;\n}\n"
"public void testAttributionByType() throws FileNotFoundException, IOException {\n Configuration configuration = configurationLoader(\"String_Node_Str\");\n commonPropertyTester(configuration, 4);\n}\n"
"String downloadTemplateFromSwiftToSecondaryStorage(long dcId, long templateId) {\n VMTemplateVO template = _tmpltDao.findById(templateId);\n if (template == null) {\n String errMsg = \"String_Node_Str\" + templateId;\n s_logger.warn(errMsg);\n return errMsg;\n }\n VMTemplateSwiftVO tmp...
"private Object getGenericRepositoryValue(GenericConnection connection, String value, IMetadataTable table) {\n if (connection == null) {\n return null;\n }\n String serialized = connection.getCompProperties();\n if (serialized != null) {\n Deserialized fromSerialized = ComponentProperties.fro...
"private void addCookieMiddleware() {\n httpClient.insertMiddleware(cookieMiddleware = new CookieMiddleware(this));\n}\n"
"public void testLatchDestroyed() throws Exception {\n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);\n HazelcastInstance hz1 = factory.newHazelcastInstance();\n HazelcastInstance hz2 = factory.newHazelcastInstance();\n final ICountDownLatch latch = hz1.getCountDownLatch(\"String_...
"public void onChange(ChangeEvent changeEvent) {\n String typeString = null;\n String version = null;\n String value = type.getSelectedValue();\n if (value.contains(RodaConstants.METADATA_VERSION_SEPARATOR)) {\n typeString = value.substring(0, value.lastIndexOf(RodaConstants.METADATA_VERSION_SEPARATO...
"public boolean test(Collection<? super T> c1) throws NotAppliedException, $.Break {\n if (c instanceof Collection) {\n return c1.retainAll((Collection) c);\n }\n List<T> list = C.list(iterable);\n return collection.retainAll(list);\n}\n"
"public void clear() {\n bitset.clear();\n numElements = 0;\n}\n"
"public boolean onOptionsItemSelected(final MenuItem item) {\n switch(item.getItemId()) {\n case R.id.menu_refresh:\n updateCommentList();\n return true;\n case android.R.id.home:\n if (isLargeOrXLarge()) {\n return super.onOptionsItemSelected(item);\n ...
"public EntryMessage newEntryMessage(final Message message) {\n return new SimpleEntryMessage(entryText, makeImmutable(message));\n}\n"
"private ArrayList<LayoutElementParcelable> listVideos() {\n ArrayList<LayoutElementParcelable> videos = new ArrayList<>();\n final String[] projection = { MediaStore.Images.Media.DATA };\n final Cursor cursor = c.getContentResolver().query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, projection, null, null, n...
"public void onResume() {\n super.onResume();\n BitmapManager.instance().allowAllDecoding();\n mGvs.setSizeChoice(Integer.parseInt(mPrefs.getString(\"String_Node_Str\", \"String_Node_Str\")));\n mGvs.requestFocus();\n String sortOrder = mPrefs.getString(\"String_Node_Str\", null);\n if (sortOrder != n...
"public void commit() {\n try {\n AudioFileIO.write(this.song);\n } catch (final CannotWriteException e) {\n Logging.log(\"String_Node_Str\", e);\n }\n}\n"
"public void testEL254937() {\n if (!isOnServer()) {\n EntityManager em = createEntityManager();\n beginTransaction(em);\n LargeProject lp1 = new LargeProject();\n lp1.setName(\"String_Node_Str\");\n em.persist(lp1);\n commitTransaction(em);\n em = createEntityManager...
"public static JSONObject toJSON(WebWorkspace workspace, URI baseLocation) {\n JSONObject result = WebElementResourceHandler.toJSON(workspace);\n JSONArray projects = workspace.getProjectsJSON();\n URI workspaceLocation = URIUtil.append(baseLocation, workspace.getId());\n URI projectBaseLocation = URIUtil.a...
"public static void diff(Node xml2, Node xml1, Writer out) throws DiffXException, IOException {\n try {\n DiffXConfig diffxConfig = new DiffXConfig();\n diffxConfig.setIgnoreWhiteSpace(false);\n diffxConfig.setPreserveWhiteSpace(true);\n log(xml1.getNodeName());\n log(\"String_Node...
"public void rotateLeft(IBuilderContext context) {\n IBlockState oldState = state;\n EnumFacing oldFacing = oldState.getValue(BlockBed.FACING);\n state = oldState.withProperty(BlockBed.FACING, oldFacing.rotateY());\n}\n"
"public <A extends Arg> BuildRule createBuildRule(TargetGraph targetGraph, BuildRuleParams params, BuildRuleResolver resolver, A args) throws NoSuchBuildTargetException {\n SourcePathResolver pathResolver = new SourcePathResolver(resolver);\n CxxPlatform cxxPlatform = cxxPlatforms.getValue(params.getBuildTarget()...
"public static DateTimeFormat getMediumDateFormat() {\n if (cachedMediumDateFormat == null) {\n String pattern = getDefaultDateTimeConstants().dateFormats()[MEDIUM_DATE_FORMAT];\n cachedMediumDateFormat = new DateTimeFormat(pattern);\n }\n return cachedMediumDateFormat;\n}\n"
"protected IFile createEmptyAnalysisFile() throws DataprofilerCoreException {\n AnalysisBuilder analysisBuilder = new AnalysisBuilder();\n boolean analysisInitialized = analysisBuilder.initializeAnalysis(analysisName, analysisType);\n if (!analysisInitialized) {\n throw new DataprofilerCoreException(ana...
"public DownloadLink getNextDownloadLink() {\n if (tabDownloadTable != null)\n return tabDownloadTable.getNextDownloadLink();\n return null;\n}\n"