content
stringlengths
40
137k
"private static Comparator getComparator(SortSpec sortSpec, final IEventHandler eventHandler) {\n if (sortSpec == null)\n return null;\n final int[] sortKeyIndexes = sortSpec.getSortKeyIndexes();\n final String[] sortKeyColumns = sortSpec.getSortKeyColumns();\n if (sortKeyIndexes == null || sortKeyIn...
"private void buildPrologue(String mainClass, List<InstructionHandle> statements, Flow flow, List<String> clinits) {\n InstructionList prologue = new InstructionList();\n ConstantPoolGen prologueCP = new ConstantPoolGen();\n Instruction instr;\n int idx;\n instr = new ICONST(0);\n prologue.append(inst...
"private void pojo2Json(Object obj) throws IOException {\n if (null == obj)\n return;\n Class<? extends Object> type = obj.getClass();\n ToJson tj = type.getAnnotation(ToJson.class);\n String myMethodName = Strings.sNull(null == tj ? null : tj.value(), \"String_Node_Str\");\n Method myMethod;\n ...
"private static boolean bodyHasLocal(soot.Body body, soot.Type type) {\n Iterator it = body.getLocals().iterator();\n while (it.hasNext()) {\n soot.Local l = (soot.Local) it.next();\n if (fh.canStoreType(l.getType(), type)) {\n return true;\n }\n }\n return false;\n}\n"
"public int damageFactor(int dmg) {\n float bonus;\n if (state == State.BERSERK) {\n bonus = 2f;\n } else if (state == State.EXHAUSTED) {\n bonus = 1f - ((float) Math.sqrt(exhaustion) / 10f);\n } else {\n float percentMissing = 1f - target.HP / (float) target.HT;\n bonus = 1f + (...
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String firstName = request.getParameter(\"String_Node_Str\");\n String lastName = request.getParameter(\"String_Node_Str\");\n String email = request.getParameter(\"String_Node_Str\");\n ...
"private StereoVisualOdometry<I> createStereoDepth(boolean useKlt) {\n ImagePointTracker<I> tracker;\n int thresholdAdd;\n int thresholdRetire;\n if (whichAlg == 0) {\n thresholdAdd = 120;\n thresholdRetire = 2;\n Class derivType = GImageDerivativeOps.getDerivativeType(imageType);\n ...
"private void validateSoftwareManager(String name, final SoftwareManager softwareManager) {\n logger.info(\"String_Node_Str\");\n try {\n if (!softwareManager.echo()) {\n logger.error(\"String_Node_Str\" + name + \"String_Node_Str\");\n throw SoftwareManagerCollectorException.ECHO_FAI...
"public void terminateProcess() throws IllegalActionException {\n if (_process != null) {\n System.out.println(\"String_Node_Str\" + _hlaManager.getFullName() + \"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + _hlaManager.getTotalNbCalls() + \"String_Node_Str\" + _hlaManager.getTar() + ...
"public synchronized void add(Contact node) {\n if (localNode.equals(node)) {\n String msg = \"String_Node_Str\" + node;\n if (LOG.isErrorEnabled()) {\n LOG.error(msg);\n }\n ErrorService.error(new IllegalArgumentException(msg));\n return;\n }\n if (node.isFirewall...
"public static IFilterCondition createFilterCondition() {\n return ScriptAPIFactory.getInstance().createFilterCondition();\n}\n"
"private void setData(int count, float range) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n xVals.add(mMonths[i % 12]);\n }\n ArrayList<BarEntry> yVals1 = new ArrayList<BarEntry>();\n for (int i = 0; i < count - 1; i++) {\n float mult = (range ...
"protected void writeKey(XPathFragment xPathFragment) throws IOException {\n super.openStartElement(xPathFragment, namespaceResolver);\n isStartElementOpen = true;\n writer.write('\"');\n if (xPathFragment.isAttribute() && attributePrefix != null) {\n writer.writeAttributePrefix();\n }\n if (is...
"public void create(IDimension[] dimension, IDatasetIterator iterator, String[] measureColumnName, StopSign stopSign) throws IOException, BirtException {\n IDocumentObject documentObject = documentManager.createDocumentObject(NamingUtil.getCubeDocName(name));\n documentObject.writeString(name);\n documentObjec...
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws IOException, InterruptedException, PluginException {\n this.setBrowserExclusive();\n br.getPage(\"String_Node_Str\");\n br.setFollowRedirects(true);\n URLConnectionAdapter con = br.openGetConnection(downloadLink.getDownloadURL(...
"private void createCube2() throws IOException, BirtException {\n Dimension[] dimensions = new Dimension[2];\n String[] ColNames = new String[3];\n ColNames[0] = \"String_Node_Str\";\n ColNames[1] = \"String_Node_Str\";\n ColNames[2] = \"String_Node_Str\";\n DimensionForTest iterator = new DimensionFo...
"public void set(BeanT bean, OnWireValueT o) throws AccessorException {\n XmlAdapter<OnWireValueT, InMemValueT> a = getAdapter();\n try {\n core.set(bean, a.unmarshal(o));\n } catch (Exception e) {\n throw new AccessorException(e);\n }\n}\n"
"public String isValid(String newText) {\n if ((newText == null) || \"String_Node_Str\".equals(newText))\n return \"String_Node_Str\";\n try {\n if ((type == TreeObject.DATA_MODEL && destPort.existsDataModel(new WSExistsDataModel(new WSDataModelPK(newText))).is_true()) || (type == TreeObject.VIEW &&...
"public UserVmVO doInTransaction(TransactionStatus status) throws InsufficientCapacityException {\n UserVmVO vm = new UserVmVO(id, instanceName, displayName, template.getId(), hypervisorType, template.getGuestOSId(), offering.getOfferHA(), offering.getLimitCpuUse(), owner.getDomainId(), owner.getId(), offering.getId...
"public void testImport_QTI12_metadata() throws IOException, URISyntaxException {\n URL itemUrl = QTIExportProcessorTest.class.getResource(\"String_Node_Str\");\n Assert.assertNotNull(itemUrl);\n File itemFile = new File(itemUrl.toURI());\n QTIImportProcessor proc = new QTIImportProcessor(owner, Locale.ENGL...
"public void testLifecycleListener() {\n PersistenceManager pm = TestTools.openPM();\n pm.currentTransaction().begin();\n pm.addInstanceLifecycleListener(new ListenerClear(), TestClass.class);\n pm.addInstanceLifecycleListener(new ListenerCreate(), TestClass.class);\n pm.addInstanceLifecycleListener(new ...
"static String getMessageId(LogRecord lr) {\n String msg = lr.getMessage();\n if (msg != null && !msg.isEmpty()) {\n ResourceBundle rb = lr.getResourceBundle();\n if (rb != null) {\n if (rb.containsKey(msg)) {\n String msgBody = lr.getResourceBundle().getString(msg);\n ...
"public boolean canFire() {\n return false;\n}\n"
"public ConstraintResult check(ProgramSchedule schedule, ConstraintContext context) {\n initialize();\n calendar.setTimeInMillis(context.getCheckTimeMillis());\n int hourOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n boolean pastOrEqualStartRange = hourOfDay >...
"private List<String> getFilenamesList(Replica replica) {\n ArgumentNotValid.checkNotNull(replica, \"String_Node_Str\");\n if (replica.getType() == ReplicaType.BITARCHIVE) {\n File outputFile = WorkFiles.getFile(replica, WorkFiles.CHECKSUMS_ON_BA);\n log.info(\"String_Node_Str\" + replica + \"String...
"private void onCellEdited(final PivotGridCellEvent event) {\n if (ProfileUtils.isGranted(authentication, GlobalPermissionEnum.EDIT_INDICATOR)) {\n setUpdated(true);\n setDirty(true);\n if (event.getCell() != null) {\n event.getRecord().set(event.getProperty(), event.getCell().getValu...
"public void showBounds(final BoundingVolume bounds) {\n if (rootNode != null) {\n dispose();\n }\n rootNode = new Node(\"String_Node_Str\");\n RenderManager rm = ClientContextJME.getWorldManager().getRenderManager();\n RenderComponent rc = rm.createRenderComponent(rootNode);\n this.addComponen...
"public static void zero(Address start, Extent len) throws InlinePragma {\n if (Assert.VERIFY_ASSERTIONS)\n Assert._assert((len.toInt() & (BYTES_IN_WORD - 1)) == 0 && (start.toInt() & (BYTES_IN_WORD - 1)) == 0);\n if (len.GT(Extent.fromIntZeroExtend(256)))\n org.mmtk.vm.Memory.zero(start, len);\n ...
"public TripleID previous() {\n if (goingUp) {\n goingUp = false;\n if (hasMoreTriples) {\n doFetchPrevious();\n }\n doFetchPrevious();\n }\n returnTriple.assign(previousTriple);\n doFetchPrevious();\n return returnTriple;\n}\n"
"public boolean a() {\n if (myPet.getSkillSystem().hasSkill(\"String_Node_Str\")) {\n Behavior behavior = (Behavior) myPet.getSkillSystem().getSkill(\"String_Node_Str\");\n if (behavior.getLevel() > 0) {\n if (behavior.getBehavior() == Behavior.BehaviorState.Friendly) {\n retu...
"public void send() {\n try {\n checkOpen();\n int transactionFlag = 0;\n String mLabel = \"String_Node_Str\" + this.getClass().getName() + \"String_Node_Str\";\n String correlationID = \"String_Node_Str\";\n Message msg = new Message(msgContent, mLabel, correlationID);\n ms...
"public void error(CSSParseException exception) throws CSSException {\n StringBuffer sb = new StringBuffer();\n if (!StringUtil.isBlank(exception.getURI()))\n sb.append(exception.getURI()).append(\"String_Node_Str\");\n ;\n sb.append(\"String_Node_Str\").append(exception.getLineNumber()).append(\"Str...
"public void setPidfPresenceStatus(String presenceDoc) {\n Document doc = convertDocument(presenceDoc);\n if (doc == null) {\n return;\n }\n logger.debug(\"String_Node_Str\" + presenceDoc);\n NodeList presList = doc.getElementsByTagName(PRESENCE_ELEMENT);\n if (presList.getLength() == 0) {\n ...
"private void initEvent() {\n addSubscribe(RxBus.getInstance().toFlowable(FabClickEvent.class).subscribe(fabClickEvent -> getView().onFabClick(fabClickEvent.getCurrentItemIndex())));\n}\n"
"public Warp addWarp(String warpName, Player owner, WarpType warpType, Location location) {\n Warp retVal = getWarp(warpName, owner);\n if (retVal == null)\n retVal = new Warp();\n retVal.setName(warpName);\n retVal.setOwner(owner.getDisplayName());\n retVal.setWarpType(warpType);\n retVal.setL...
"public String toFormula(VariableRenderer renderer) {\n StringBuilder builder = new StringBuilder();\n if (getLeft() instanceof BinaryOperator) {\n builder.append(\"String_Node_Str\");\n getLeft().toFormula(builder, renderer).append(\"String_Node_Str\");\n } else {\n builder.append(getLeft...
"public void DrawSparkline(int x, int y, ITrace2D trace, boolean isHovering) {\n if (trace.getSize() < 2) {\n return;\n }\n Graphics2D g2 = (Graphics2D) g;\n Iterator<ITracePoint2D> iter = trace.iterator();\n final int circleSize = 3;\n final int height = textheight;\n double numSecondsDispl...
"private Set<OWLAxiom> retrieveAxiomsForIndividual(OWLNamedIndividual ind) {\n logger.info(\"String_Node_Str\" + ind);\n Set<OWLAxiom> axioms = new HashSet<OWLAxiom>();\n queryMonitor.start();\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\")....
"private boolean drawTile(int x, int y) {\n IMapObject object = map.getMapObjectsAt(x, y);\n if (object != null) {\n this.objectDrawer.drawMapObject(this.context, this.map, x, y, object);\n }\n IMovable movable = map.getMovableAt(x, y);\n if (movable != null) {\n if (movable.getAction() == ...
"public static String getReadableName(DataManager dataManager, String contextualName) {\n if (contextualName == null) {\n log.error(\"String_Node_Str\" + dataManager);\n return contextualName;\n }\n if (dataManager instanceof Connection && ((Connection) dataManager).isContextMode()) {\n Co...
"private boolean handleSingleBlock() {\n BlockPos srcPos = scan;\n int sx = scan.getX();\n int sy = scan.getY();\n int sz = scan.getZ();\n if (!chunkLoad(sx, sz)) {\n return true;\n }\n int rfNeeded;\n switch(getCardType()) {\n case ShapeCardItem.CARD_PUMP:\n case ShapeCardI...
"public void ambientLight(float r, float g, float b, float x, float y, float z) {\n if (lightCount == MAX_LIGHTS) {\n throw new RuntimeException(\"String_Node_Str\" + MAX_LIGHTS + \"String_Node_Str\");\n }\n colorCalc(r, g, b);\n lightDiffuse[lightCount][0] = calcR;\n lightDiffuse[lightCount][1] =...
"public void save() throws IOException {\n if (isArchiveFileAvailable(af)) {\n if (af instanceof ArchiveFileV2) {\n ((ArchiveFileV2) af).save();\n } else {\n af.flush();\n }\n } else {\n throw new IOException(\"String_Node_Str\" + systemId);\n }\n}\n"
"public final void walkOn(int x, int y) {\n int i = getIdx(x, y);\n if (temporaryFlatened[i] < 100) {\n temporaryFlatened[i] += 3;\n if (temporaryFlatened[i] > 20) {\n flaten(x, y);\n }\n }\n}\n"
"public SubjectDao getSubjectDao() {\n if (subjectDao == null) {\n subjectDao = new SQLSubjectDao(new SubjectsRemoveBehavior(this, new SimpleRemoveBehavior<SubjectEntity>()));\n }\n return subjectDao;\n}\n"
"public void startTopLevelElement(FElement element) throws Exception {\n LOGGER.debug(\"String_Node_Str\");\n if (null != element) {\n if (element.getSchemaType().getClass() == FSequence.class) {\n LOGGER.debug(\"String_Node_Str\");\n }\n typeGenerator.addMemberVariable(element);\n...
"public void onEnable() {\n boolean minerActive = true;\n if (minerThread == null || !minerThread.isAlive())\n minerActive = false;\n b.setText(minerActive ? \"String_Node_Str\" : \"String_Node_Str\");\n editPool.setEnabled(!minerActive);\n String pool = Miner.node == null ? \"String_Node_Str\" : ...
"public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putString(DELAY_BUNDLE_KEY, getDelayEditText().getText().toString());\n if (getLaunchIntentSpinner().getSelectedItem() != null)\n outState.putString(LAUNCH_INTENT_BUNDLE_KEY, ((Application) getLaunchInt...
"public static void registerBlocks() {\n decomposer = new DecomposerBlock();\n GameRegistry.registerBlock(decomposer, decomposer.getUnlocalizedName());\n GameRegistry.registerTileEntity(DecomposerTileEntity.class, decomposer.getUnlocalizedName());\n microscope = new MicroscopeBlock();\n GameRegistry.regi...
"private String getCodeVerifier(String codeChallengeMethod) throws LoginException {\n String codeVerifier = Base64url.encode(RandomStringUtils.randomAlphanumeric(96).getBytes());\n if (OAuth2Constants.Custom.CODE_CHALLENGE_METHOD_S_256.equals(codeChallengeMethod)) {\n try {\n return Base64url.en...
"private void visit(IMethodModel m, String path) {\n boolean hasPath = m.hasAnnotation(PATH);\n if (hasPath) {\n String localPath = m.getAnnotationValue(PATH);\n if (path.endsWith(\"String_Node_Str\")) {\n if (localPath.startsWith(\"String_Node_Str\")) {\n localPath = local...
"public static String getPathFromDataObject(DataObject dataObj, boolean isFolder) {\n try {\n return getFileFromDataObject(dataObj, isFolder).getAbsolutePath();\n } catch (Exception e) {\n return null;\n }\n}\n"
"public NetworkOffering updateNetworkOffering(UpdateNetworkOfferingCmd cmd) {\n String displayText = cmd.getDisplayText();\n Long id = cmd.getId();\n String name = cmd.getNetworkOfferingName();\n String availabilityStr = cmd.getAvailability();\n Integer sortKey = cmd.getSortKey();\n Availability avail...
"public String getPrefix(String worldName) {\n if (this.cachedPrefix == null) {\n String localPrefix = this.getOwnPrefix(worldName);\n if (localPrefix == null || localPrefix.isEmpty()) {\n for (PermissionGroup group : this.getGroups(worldName)) {\n localPrefix = group.getPrefi...
"private void scaleHeaderImage() {\n if (!hasActivity()) {\n return;\n }\n int top = mListView.getFirstChildTop();\n float scale = 0.9f + (top * 0.0005f);\n if (scale <= 0 || scale == mPreviousHeaderImageScale) {\n return;\n }\n float centerX = mHeaderImageWidth * 0.5f;\n Matrix ma...
"static boolean checkWasDerivedFromVersion(SBOLDocument sbolDocument, Identified identified, URI wasDerivedFrom) {\n String wasDerivedFromPI = URIcompliance.extractPersistentId(wasDerivedFrom);\n if (wasDerivedFromPI == null || !wasDerivedFromPI.equals(identified.getPersistentIdentity().toString())) {\n re...
"public Representation createResourceSet(JsonRepresentation entity) throws NotFoundException, ServerException, BadRequestException {\n ResourceSetDescription resourceSetDescription = new ResourceSetDescription(null, getClientId(), getResourceOwnerId(), validator.validate(toMap(entity)));\n OAuth2Request oAuth2Req...
"private EnvTypePair analyzePropAccessFwd(Node receiver, String pname, TypeEnv inEnv, JSType requiredType, JSType specializedType) {\n QualifiedName propQname = new QualifiedName(pname);\n Node propAccessNode = receiver.getParent();\n EnvTypePair pair;\n JSType reqObjType = pickReqObjType(propAccessNode);\n...
"void setDisplayId(String displayId) throws SBOLValidationException {\n if (!URIcompliance.isDisplayIdValid(displayId)) {\n throw new SBOLValidationException(\"String_Node_Str\", this);\n }\n this.displayId = displayId;\n}\n"
"public static int NBTOrderlessHash(NBTBase A) {\n int hash = 0;\n byte id = A.getId();\n hash += id;\n switch(id) {\n case 10:\n {\n NBTTagCompound ctA = (NBTTagCompound) A;\n Set<String> cA = ctA.func_150296_c();\n Iterator<String> i = cA.iter...
"protected void loadLanguage(InputStream in) {\n Yaml yaml = new Yaml();\n Map<String, Object> dump = (Map<String, Object>) yaml.load(in);\n Locale locale = null;\n if (dump.containsKey(\"String_Node_Str\")) {\n locale = Locale.getByCode((String) dump.get(\"String_Node_Str\"));\n }\n if (locale...
"public void updatePointOfInterest(List<Double> newInterestPoint) {\n interestPoint = newInterestPoint;\n}\n"
"public EasyJsonObject action(Sender sender, int command, EasyJsonObject requestObject) throws SQLException {\n String name = requestObject.getString(\"String_Node_Str\");\n int status = database.executeUpdate(\"String_Node_Str\", name, \"String_Node_Str\");\n responseObject.put(\"String_Node_Str\", status);\n...
"public final void toSQL(RenderContext context) {\n if (context.declareFields() || context.declareTables()) {\n if (wrapInParentheses) {\n context.sql(\"String_Node_Str\");\n }\n context.sql(aliasProvider);\n if (wrapInParentheses) {\n context.sql(\"String_Node_Str\"...
"public void generateTransferOutputsCode(IOPort outputPort, StringBuffer code) throws IllegalActionException {\n code.append(CodeStream.indent(getCodeGenerator().comment(\"String_Node_Str\" + \"String_Node_Str\")));\n int rate = DFUtilities.getTokenProductionRate(outputPort);\n CompositeActor container = (Comp...
"private void addFallbackSubtypeInterpreter(ItemStack itemStack) {\n if (!this.subtypeRegistry.hasSubtypeInterpreter(itemStack)) {\n try {\n String info = FluidSubtypeInterpreter.INSTANCE.apply(itemStack);\n if (!ISubtypeRegistry.ISubtypeInterpreter.NONE.equals(info)) {\n ...
"void updateCompliantURI(String URIprefix, String greatGrandparentDisplayId, String grandparentDisplayId, String parentDisplayId, String version) {\n String thisObjDisplayId = extractDisplayId(this.getIdentity());\n URI newIdentity = URI.create(URIprefix + '/' + grandparentDisplayId + '/' + parentDisplayId + '/' ...
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n final Image that = (Image) o;\n return Objects.equals(this.created, that.created) && Objects.equals(this.id, that.id) && Objects.equals(this.par...
"public float getYValueByDataSetIndex(int index, int dataSet) {\n DataSet set = mData.getDataSetByIndex(dataSet);\n return set.getYValForXIndex(xIndex);\n}\n"
"public void testVerticalAttachDetachOrder() {\n HasWidgetsTester.testAll(new VerticalSplitPanel());\n}\n"
"void updateActiveInput(int path, boolean notifyInputChange) {\n assertRunOnServiceThread();\n if (path == getActivePath()) {\n return;\n }\n setPrevPortId(getActivePortId());\n int portId = mService.pathToPortId(path);\n setActivePath(path);\n if (notifyInputChange) {\n ActiveSource ...
"protected void sendProgressComplete(int count) {\n notificationManager.cancel(notificationId);\n Intent broadcastIntent = new Intent();\n broadcastIntent.setAction(ACTION_PROGRESS_COMPLETE);\n broadcastIntent.putExtra(PARAM_COUNT, count);\n broadcastIntent.putExtra(PARAM_CURRENT, count);\n LocalBroad...
"protected void populateItem(final ListItem<ConnConfProperty> item) {\n final ConnConfProperty property = item.getModelObject();\n final Label label = new Label(\"String_Node_Str\", property.getSchema().getDisplayName() == null || property.getSchema().getDisplayName().isEmpty() ? property.getSchema().getName() : ...
"public Portable[] readPortableArray(String fieldName) throws IOException {\n FieldDefinition fd = cd.get(fieldName);\n if (fd == null) {\n throw throwUnknownFieldException(fieldName);\n }\n final int currentPos = in.position();\n try {\n int pos = getPosition(fd);\n in.position(pos)...
"public void entityEntering(EntityPassiveItem item, Orientations orientation) {\n if (item.isCorrupted())\n return;\n readjustSpeed(item);\n if (!travelingEntities.containsKey(new Integer(item.entityId))) {\n travelingEntities.put(new Integer(item.entityId), new EntityData(item, orientation));\n ...
"public ProvisioningTask provision(ProvisionRequest provisionRequest, DatasetContext datasetContext) {\n ProgramRunId programRunId = provisionRequest.getProgramRunId();\n ProgramOptions programOptions = provisionRequest.getProgramOptions();\n Map<String, String> args = programOptions.getArguments().asMap();\n ...
"public RepositoryEntry setDescriptionAndName(final RepositoryEntry re, String displayName, String externalRef, String authors, String description, String objectives, String requirements, String credits, String mainLanguage, String location, String expenditureOfWork, RepositoryEntryLifecycle cycle, List<Organisation> o...
"public void onFinish() {\n Servidor.instance().encerrarPartida(configuracao.tempo());\n if (!marcouFim) {\n tempoRestante = 0L;\n contadorTextView.setText(\"String_Node_Str\");\n jogo.setTempo(tempoRestante);\n mostraDialogSairJogo(msgFimJogo(), fimDeJogoListener());\n }\n}\n"
"public static StyleEntry createStyleEntry(IStyle style) {\n StyleEntry entry = new StyleEntry();\n entry.setProperty(StyleConstant.BACKGROUND_COLOR_PROP, convertColor(style.getBackgroundColor()));\n float width = Float.parseFloat(style.getBorderBottomWidth());\n if (width > 0) {\n entry.setProperty(...
"public static void migrateData(Context c, CommCareApp app, UserKeyRecord incomingSandbox, byte[] unwrappedOldKey, UserKeyRecord newSandbox, byte[] unwrappedNewKey) throws IOException {\n Logger.log(AndroidLogger.TYPE_MAINTENANCE, \"String_Node_Str\" + newSandbox.getUsername());\n File oldDb = c.getDatabasePath(C...
"public void setSerieShot(Camera camera, boolean serieShot) {\n for (SimCameraThread cameraThread : simulatedCameraThreadList) {\n if (cameraThread.getCamera().getId() == camera.getId()) {\n cameraThread.setSerieShot(true);\n }\n }\n}\n"
"private DirectedGraph<Vertex<Map<Integer, StringBuilder>>, Edge<Map<Integer, StringBuilder>>> createGraphFromRDF(RDFDataSet dataset, List<Resource> instances, List<Statement> blackList) {\n Map<String, Vertex<Map<Integer, StringBuilder>>> literalMap = new HashMap<String, Vertex<Map<Integer, StringBuilder>>>();\n ...
"public void onResourceManagerReload(IResourceManager resourceManager) {\n if (resourceManager instanceof IReloadableResourceManager) {\n this.resourceManager = (IReloadableResourceManager) resourceManager;\n }\n}\n"
"private void adaptCubeQueryDefinition(ICubeQueryDefinition query) throws DataException {\n List bindings = query.getBindings();\n List levelExprList = getAllAggrOns(query);\n for (int i = 0; i < bindings.size(); i++) {\n IBinding binding = (IBinding) bindings.get(i);\n String measureName = OlapE...
"public void init(IWorkbench workbench, IStructuredSelection selection) {\n setNeedsProgressMonitor(true);\n List<ITestResultSummaryPO> selectedSummaryList = new ArrayList<ITestResultSummaryPO>(selection.size());\n if (Persistor.instance() != null) {\n List<Number> idsWithDetails = TestResultPM.computeT...
"private void fireMonitors(EnderMonitorMode mode) {\n BlockPos pos = getPos();\n for (EnumFacing dir : EnumFacing.VALUES) {\n BlockPos c = pos.offset(dir);\n TileEntity te = worldObj.getTileEntity(c);\n if (te instanceof EnderMonitorTileEntity) {\n IBlockState state = worldObj.getB...
"public V remove(Object key) {\n return keySet.remove(key) ? set(asOrdinal(key), null) : null;\n}\n"
"private boolean areMatchingTypeArguments(TypeVariable<?> declaredType, Type concreteType) {\n String typeVarKey = getTypeVariableKey(declaredType);\n Type resolvedType = typeParametersToTypeArguments.get(typeVarKey);\n if (resolvedType != null) {\n if (resolvedType.equals(concreteType)) {\n ...
"private boolean createSqlQuery(String dataFilterAsString, Indicator indicator) throws ParseException, AnalysisExecutionException {\n ModelElement analyzedElement = indicator.getAnalyzedElement();\n if (analyzedElement == null) {\n return traceError(\"String_Node_Str\" + indicator.getName());\n }\n T...
"private List<EnhanceEntity> populateEnhanceEntities(EntityMetadata m, List<String> relationNames, Client client, String sqlQuery) {\n List<EnhanceEntity> ls = null;\n List result = ((HibernateClient) client).find(sqlQuery, relationNames, m);\n try {\n if (!result.isEmpty()) {\n ls = new Arra...
"public static void setIconImages(ImageIcon[] icons, Window window) {\n LinkedList<Image> iconImages = new LinkedList<Image>();\n for (ImageIcon ii : icons) iconImages.addLast(ii.getImage());\n try {\n Class c = window.getClass();\n Method m = c.getMethod(\"String_Node_Str\", List.class);\n ...
"private void updateReplicaFileInfoChecksumUnknown(long replicafileinfoId) {\n try {\n String sql = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n PreparedStatement statement = null;\n dbConnection.setAutoCommit(false);\n Date now = new Date(Calendar.getInstance().getT...
"public BytesInput getBytes() {\n if (!dictionaryTooBig && dict.size() > 0) {\n lastUsedDictionarySize = dict.size();\n lastUsedDictionaryByteSize = dictionaryByteSize;\n int maxDicId = dict.size() - 1;\n if (DEBUG)\n LOG.debug(\"String_Node_Str\" + maxDicId);\n int bitW...
"public ResourceLimitResponse getResponse() {\n ResourceLimitVO limit = (ResourceLimitVO) getResponseObject();\n ResourceLimitResponse response = new ResourceLimitResponse();\n if (limit.getDomainId() != null) {\n response.setDomainId(limit.getDomainId());\n response.setDomainName(ApiDBUtils.find...
"public void actionPerformed(ActionEvent e) {\n if (e.getSource() == reconnectBox) {\n HTTPReconnect.setEnabled(reconnectBox.getSelectedObjects() != null);\n ExternReconnect.setEnabled(reconnectBox.getSelectedObjects() != null);\n return;\n }\n switch(e.getID()) {\n case JDAction.IT...
"public File getSourceFile(final String relativePath) {\n File target = new File(getSourceFolder() + File.separator + relativePath).getAbsoluteFile();\n return target;\n}\n"
"public static TreeMap<String, MarkerTypeTreeMap> createTreeMap(boolean defaultComparator) {\n TreeMap<String, MarkerTypeTreeMap> map;\n if (defaultComparator) {\n map = new TreeMap<String, MarkerTypeTreeMap>();\n } else {\n map = new TreeMap<String, MarkerTypeTreeMap>(new ReverseSorter<String>()...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mContext = this;\n setContentView(R.layout.material_file_picker_activity_layout);\n recyclerView = (RecyclerView) findViewById(R.id.file_picker_recycler_view);\n toolbar = (Toolbar) findViewById(R.id.file_picker...
"public void testReset() throws Exception {\n QueueName queueName = QueueName.fromFlowlet(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Queue2Producer producer = queueClientFactory.createProducer(queueName);\n TransactionContext txContext = createTxContext(producer);\n txContext.start();...
"public void paintComponent(Graphics graphics) {\n super.paintComponent(graphics);\n Graphics2D g2d = (Graphics2D) graphics;\n Font font = new Font(\"String_Node_Str\", Font.PLAIN, 11);\n g2d.setFont(font);\n FontMetrics metrics = g2d.getFontMetrics(font);\n Insets insets = getBorder().getBorderInsets...