content
stringlengths
40
137k
"public boolean seekRank(final long rank) {\n boolean ret = false;\n ret = super.seekIndex(rank);\n if (ret) {\n curLocation.setLocation(getCurrentEvent().getTimestampValue());\n return ret;\n}\n"
"public DbGenerationManager getGenerationManager() {\n if (generationManager == null) {\n IElementParameter elementParameter = getElementParameter(\"String_Node_Str\");\n String value = (String) elementParameter.getValue();\n if (value.contains(\"String_Node_Str\")) {\n generationMana...
"public org.hl7.fhir.dstu2.model.PaymentReconciliation.NotesComponent convertNotesComponent(org.hl7.fhir.dstu3.model.PaymentReconciliation.NotesComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.PaymentReconciliation.NotesComponent tgt = new ...
"private void flushEventManagerCalls() {\n final EventManager eventManager = factory.eventManagerProxy();\n if (eventManager != null) {\n ServiceProxyUtils.flushServiceProxy(eventManager);\n factory().clearEventManagerProxy();\n }\n}\n"
"public MetaJsonField save(MetaJsonField metajsonField) {\n AppBuilder appBuilder = metajsonField.getAppBuilder();\n if (appBuilder != null) {\n metajsonField.setIncludeIf(\"String_Node_Str\" + appBuilder.getCode() + \"String_Node_Str\");\n }\n return super.save(metajsonField);\n}\n"
"public void encodeEnd(FacesContext context, UIComponent component) throws IOException {\n if (!component.isRendered()) {\n return;\n }\n ColorPicker colorPicker = (ColorPicker) component;\n ResponseWriter rw = context.getResponseWriter();\n String clientId = colorPicker.getClientId();\n int sp...
"public AbstractParseState jumpTo() {\n if ((StringUtil.compareVersion(handler.getVersion(), \"String_Node_Str\") < 0) && (Action.URI_MEMBER.equalsIgnoreCase(name) || Action.TARGET_BOOKMARK_MEMBER.equalsIgnoreCase(name))) {\n CompatibleURIState state = new CompatibleURIState(handler, element);\n state....
"public org.eclipse.mylyn.reviews.tasks.core.ReviewResult mapCurrentReviewResult(ITaskProperties taskProperties) {\n Assert.isNotNull(taskProperties);\n if (taskProperties.getNewCommentText() == null || \"String_Node_Str\".equals(taskProperties.getNewCommentText()))\n return null;\n ReviewResult result ...
"private void checkDifficultyTransitions(StoredBlock storedPrev, StoredBlock storedNext) throws BlockStoreException, VerificationException {\n Block prev = storedPrev.getHeader();\n Block next = storedNext.getHeader();\n if ((storedPrev.getHeight() + 1) % params.interval != 0) {\n if (next.getDifficulty...
"protected JstCompletion createCompletion(ObjectLiteral astNode, boolean isAfterSource) {\n JstCompletion completion = null;\n CategorizedProblem problem = findProblem();\n if (problem != null) {\n int problemStart = problem.getSourceStart();\n char[] source = m_ctx.getOriginalSource();\n ...
"public void run() {\n while (!stopChunkPackageTimeoutClean) {\n if (!tempTrunkPackages.isEmpty()) {\n Map<Long, RpcDataPackage> currentCheckPackage;\n currentCheckPackage = new HashMap<Long, RpcDataPackage>(tempTrunkPackages);\n Iterator<Entry<Long, RpcDataPackage>> iter = cu...
"protected void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n mPhone = PhoneFactory.getDefaultPhone();\n addPreferencesFromResource(R.xml.call_feature_setting);\n mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n PreferenceScreen prefSet = getPreferenceScreen();\n mSubM...
"private static double[] _cosDFT(double[] x, int size, int order) {\n switch(size) {\n case 0:\n return new double[0];\n case 1:\n {\n double[] retval = new double[1];\n retval[0] = x[0];\n return retval;\n }\n case 2:...
"public <T> T updateWith(T obj, String regex) {\n EntityOperator opt = this._optBy(obj);\n if (null == opt)\n return null;\n Lang.each(obj, new Each<Object>() {\n public void invoke(int index, Object ele, int length) throws ExitLoop, ContinueLoop, LoopException {\n EntityOperator opt =...
"public void process(ISchemaType type, ISerializationNode node) {\n List<ISchemaProperty> properties = type.getProperties();\n if (properties == null) {\n return;\n }\n for (ISchemaProperty prop : properties) {\n ISchemaType childType = prop instanceof IMapSchemaProperty ? ((IMapSchemaProperty...
"public boolean isSubtype(JSType that) {\n if (JSType.isSubtypeHelper(this, that)) {\n return true;\n }\n if (that.isFunctionType()) {\n FunctionType other = that.toMaybeFunctionType();\n if (other.isInterface()) {\n return true;\n }\n if (isInterface()) {\n ...
"private String resolveType(final IType jdtDeclaringType, final String unresolvedType) {\n final int arrayCount = Signature.getArrayCount(unresolvedType);\n String toResolve = unresolvedType.substring(arrayCount);\n if (typeParameters != null && toResolve.startsWith(\"String_Node_Str\")) {\n String type...
"private SimpleName addSourceClassParameterToMovedMethod(MethodDeclaration newMethodDeclaration) {\n AST ast = newMethodDeclaration.getAST();\n SingleVariableDeclaration parameter = ast.newSingleVariableDeclaration();\n SimpleName typeName = ast.newSimpleName(sourceTypeDeclaration.getName().getIdentifier());\n...
"FunctionType specialize(FunctionType other) {\n if (other == null || other.isQmarkFunction() || !this.isLoose() && other.isLoose()) {\n return this;\n }\n FunctionType result = meet(this, other);\n if (this.isLoose() && !result.isLoose()) {\n result = result.withLoose();\n }\n return re...
"public static void spongePopupateList(IMixinEntityVillagerForge mixinEntityVillager, VillagerRegistry.VillagerProfession professionForge, int careerNumberId, int careerLevel, Random rand) {\n if (!mixinEntityVillager.getProfession().isPresent()) {\n mixinEntityVillager.setProfession(SpongeForgeVillagerRegist...
"public Authorizable setAutoMembership(String... autoMembership) {\n this.autoMembership = new HashSet<String>();\n for (String groupName : autoMembership) {\n if (!groupName.trim().isEmpty()) {\n this.autoMembership.add(groupName.trim());\n }\n }\n return this;\n}\n"
"public static long lock(FilesFacade ff, Path path) {\n long fd = ff.openRW(path);\n if (fd == -1) {\n LOG.error().$(\"String_Node_Str\").$(path).$(\"String_Node_Str\").$(ff.errno()).$(']').$();\n return -1L;\n }\n if (ff.lock(fd) != 0) {\n LOG.error().$(\"String_Node_Str\").$(path).$(\...
"public Object clone() {\n try {\n AxisTickCoordinates cl = (AxisTickCoordinates) super.clone();\n cl.size = this.size;\n cl.dStart = this.dStart;\n cl.dEnd = this.dEnd;\n cl.dStep = this.dStep;\n cl.isTickBetweenCategory = this.isTickBetweenCategory;\n return cl;\n ...
"private double computeLocalIlluminatedArea(final int xMin, final int yMin, final int x, final int y, final LocalGeometry lg, final double[][] localDEM, final double demNoDataValue) {\n if (lg.t00Height == demNoDataValue || lg.t01Height == demNoDataValue || lg.t10Height == demNoDataValue || lg.t11Height == demNoData...
"public void valueChanged(ListSelectionEvent e) {\n currentlySelectedObject = getSelectedValue();\n}\n"
"private static void addOverlapBetween(MapArea area1, MapArea area2) {\n for (MapAreaSegment area1Segment : area1.getAreaSegments()) {\n for (MapAreaSegment area2Segment : area2.getAreaSegments()) {\n if (area1Segment.sharesBothNodes(area2Segment)) {\n MapOverlapAA newOverlap = new M...
"private void cancelOrKillExecution(final boolean cancel) {\n final Thread replayThread = this.environment.getExecutingThread();\n Thread encapsulatedThread = null;\n if (this.encapsulatedTask != null) {\n encapsulatedThread = this.encapsulatedTask.getRuntimeEnvironment().getExecutingThread();\n }\n ...
"public static void dumpStack(Address ip, Address fp) {\n ++inDumpStack;\n if (inDumpStack > 1 && inDumpStack <= VM.maxSystemTroubleRecursionDepth + VM.maxSystemTroubleRecursionDepthBeforeWeStopVMSysWrite) {\n VM.sysWrite(\"String_Node_Str\");\n VM.sysWrite(inDumpStack);\n VM.sysWriteln(\"Str...
"public void canCreateView() throws Exception {\n SWTBotTreeItem viewNode = serverTree.expandNode(\"String_Node_Str\").getNode(\"String_Node_Str\");\n viewNode.contextMenu(\"String_Node_Str\").click();\n bot.shell(\"String_Node_Str\").activate();\n bot.comboBoxWithLabel(\"String_Node_Str\").setSelection(\"S...
"public void basicTest() throws Exception {\n String htmlSource = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n HTMLDocumentImpl doc = loadPage(htmlSource);\n assertTrue(CANVAS.equals(doc.getElementById(\"String_Node_Str\").getNodeName()));\n}\n"
"public EnumFacing getPointSide(ItemStack item) {\n NBTTagCompound cpt = NBTUtils.getItemData(item);\n if (cpt.hasKey(\"String_Node_Str\") && cpt.getByte(\"String_Node_Str\") == 0) {\n return EnumFacing.values()[cpt.getByte(\"String_Node_Str\")];\n } else {\n return null;\n }\n}\n"
"private static JarFileModule getFromPlugin(String fileName) throws IOException {\n URL url = getFileURLFromPlugin(fileName);\n return (url == null) ? null : new JarFileModule(new JarFile(filePathFromURL(url)));\n}\n"
"public int getServiceAvailabilitySpecification() {\n return availability;\n}\n"
"private void updateUI(IJobChangeEvent event) {\n final List<String> information = new ArrayList<String>();\n setEnabled(true);\n if (fExtensionDownloaded > 0) {\n for (IEcosComponent componet : fInstalledComponents) {\n File file = new File(componet.getInstalledLocation());\n List...
"private void saveClicked() {\n try {\n if (!isPassphraseSet()) {\n throw new PGPMain.GeneralException(this.getString(R.string.setAPassPhrase));\n }\n Intent intent = new Intent(this, ApgService.class);\n intent.putExtra(ApgService.EXTRA_ACTION, ApgService.ACTION_SAVE_KEYRING);...
"public void shutdownSlaveMember_whilePartitionsMigrating() {\n Config config = new Config().setProperty(GroupProperty.PARTITION_COUNT.getName(), \"String_Node_Str\").setProperty(GroupProperty.PARTITION_MIGRATION_INTERVAL.getName(), \"String_Node_Str\");\n HazelcastInstance hz1 = factory.newHazelcastInstance(conf...
"public Object findAttribute(Map<String, String> tenantId, String entityName, Object id, Map<String, Object> properties, String attribute) {\n EntityManager em = getEmf().createEntityManager(tenantId);\n try {\n Object object = em.find(getClass(entityName), id, properties);\n ClassDescriptor descrip...
"protected Map<String, Double> updateTrustAfterVotes(Proposition proposition, int votes, double overallMovement) {\n Map<String, Double> newTrustValue = new HashMap<String, Double>();\n String proposer = proposition.getProposer();\n double proposerTrust;\n if (!this.getDataModel().getId().equals(proposer)) ...
"public void mergeSelection(ArrayList<Integer> iAlNewSelectionID, ArrayList<Integer> iAlNewSelectionGroup, ArrayList<Integer> iAlNewOptional) {\n if (iAlSelectionID == null) {\n iAlSelectionID = new ArrayList<Integer>();\n if (iAlNewSelectionGroup != null) {\n iAlSelectionGroup = new ArrayLi...
"private void createPublishAccumulatorWithoutIncludeValue(AccumulatorInfo info) {\n Data data = context.getSerializationService().toData(info.getPredicate());\n ClientMessage request = EnterpriseMapPublisherCreateCodec.encodeRequest(info.getMapName(), info.getCacheName(), data, info.getBatchSize(), info.getBuffer...
"private void updateVhmMasterMoid(String clusterName) {\n ClusterEntity cluster = getClusterEntityMgr().findByName(clusterName);\n if (cluster.getVhmMasterMoid() == null) {\n List<NodeEntity> nodes = getClusterEntityMgr().findAllNodes(clusterName);\n for (NodeEntity node : nodes) {\n if (...
"public Object asPrimitive() {\n return isPrimitive() && !isCollection() ? value : null;\n}\n"
"public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch(msg.what) {\n case 0:\n if (msg.getData().containsKey(\"String_Node_Str\"))\n Toast.makeText(getContext(), msg.getData().getString(\"String_Node_Str\"), Toast.LENGTH_SHORT).show();\n Object a...
"protected void setUp() throws Exception {\n super.setUp();\n final String dexCache = getContext().getCacheDir().getPath();\n System.setProperty(\"String_Node_Str\", dexCache);\n rootFile = new File(Environment.getExternalStorageDirectory(), \"String_Node_Str\");\n FileGenerator.generate(rootFile);\n ...
"public void run() {\n while (true) {\n Connection connection = null;\n Packet packet = null;\n try {\n packet = reader.readPacket(connection);\n Call c = callMap.remove(packet.getCallId());\n if (c != null) {\n synchronized (c) {\n ...
"public WORKER_RESULT compute(WorkerContext<MASTER_RESULT, WORKER_RESULT> context) throws IOException {\n if (context.isFirstIteration()) {\n if (this.isLoaded.compareAndSet(false, true)) {\n init(context);\n long start = System.nanoTime();\n preLoad(context);\n lon...
"protected boolean enableNeededLibraries(ModuleNeeded module) {\n if (module.getBundleName() == null) {\n return !isExcludedLib(module.getModuleName());\n }\n return false;\n}\n"
"private void applyOperationToNode(final OpenSimObjectNode objectNode) {\n Children ch = objectNode.getChildren();\n if (ch.getNodesCount() > 0) {\n Node[] childNodes = ch.getNodes();\n for (int child = 0; child < childNodes.length; child++) {\n if (!(childNodes[child] instanceof OpenSimO...
"void onItemSelected(int position) {\n if (SETTING_UP_PROVIDER.equals(mConfigState.getAction()) || SHOW_FAILED_DIALOG.equals(mConfigState.getAction())) {\n return;\n }\n provider = adapter.getItem(position);\n if (provider != null && !provider.isDefault()) {\n mConfigState.setAction(SETTING_UP...
"public void addLine(Item item, String quantityReq, String quantityIssued, String remarks) {\n int req = 0;\n int issued = 0;\n try {\n req = checkNum(quantityReq);\n issued = checkNum(quantityIssued);\n } catch (Exception e) {\n }\n addLine(item, req, issued, remarks);\n}\n"
"public boolean isTxnOpen() {\n return entityManager != null && entityManager.isOpen() && entityManager.getTransaction() != null && entityManager.getTransaction().isActive();\n}\n"
"public void setPortfolio(Portfolio portfolio) {\n String oldTransactionCurrency = getTransactionCurrencyCode();\n if (DEPOSIT.equals(portfolio))\n firePropertyChange(Properties.security.name(), this.security, this.security = null);\n firePropertyChange(Properties.portfolio.name(), this.portfolio, this....
"protected void onSubmit(AjaxRequestTarget target, Form<?> form) {\n target.add(accordion.setActiveTab(accordion.getLastTabIndex()));\n}\n"
"protected Property removeProperty(String propertyName) {\n if (propertyName == null)\n throw new NullPointerException(\"String_Node_Str\");\n synchronized (properties) {\n oldProperty = properties.remove(propertyName);\n }\n}\n"
"public void process(JCas jCas) throws AnalysisEngineProcessException {\n String pmId = getHeaderDocId(jCas);\n try {\n for (Annotation a : jCas.getAnnotationIndex()) {\n if (a.getClass().getName().equals(annotationClass)) {\n String featureStr;\n if (featureName !=...
"public void testXmlJavaTypeAdapterOnPackage() {\n Class[] classesToProcess = new Class[] { org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.packagelevel.MyClass.class, SomeLameClass.class };\n MySchemaOutputResolver outputResolver = new MySchemaOutputResolver();\n JAXBContext jaxbContext =...
"public static void preInit() {\n CHAMELEON_SPAWNS = registerSpawnNormal(new PrimitiveMobsSpawnEntry(EntityChameleon.class, 0.25F) {\n public boolean isBiomeSuitable(Biome biome) {\n return BiomeDictionary.hasType(biome, BiomeDictionary.Type.PLAINS) && super.isBiomeSuitable(biome);\n }\n ...
"public static boolean verifyExpression(IndicatorDefinition indicatorDefinition) {\n if (0 == indicatorDefinition.getSqlGenericExpression().size()) {\n return false;\n }\n for (Expression exp : indicatorDefinition.getSqlGenericExpression()) {\n if (null == exp.getBody()) {\n return fal...
"public void addData(Properties meta, Triple[] data) {\n String taskID = meta.getProperty(COMMON.EXPERIMENT_TASK_ID_KEY);\n String[] strArr = taskToDir.get(taskID);\n StringBuilder dir = new StringBuilder(strArr[0]);\n Integer extraLength = (Integer) meta.get(CONSTANTS.LENGTH_EXTRA_META_KEY);\n StringBui...
"void drawText(Canvas canvas) {\n canvas.save();\n float textSize = mTextSize * mScaleFactor;\n float textX = mTextBaseX + mTextX;\n float textY = mTextBaseY + mTextY;\n canvas.rotate(mDegree, textX, textY);\n mTextPaint.setTextSize(textSize < 255.f ? textSize : 255.f);\n canvas.drawText(mData.getT...
"public org.hl7.fhir.dstu2.model.Conformance.ConformanceRestOperationComponent convertConformanceRestOperationComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceRestOperationComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Conformanc...
"private static void hook(final XHook hook, ClassLoader classLoader, String secret) {\n Hook md = PrivacyManager.getHook(hook.getRestrictionName(), hook.getSpecifier());\n if (md == null) {\n String message = \"String_Node_Str\" + hook;\n mListHookError.add(message);\n Util.log(hook, Log.ERRO...
"private long[] extractInfix(long[] v, int startPos, int endPos) {\n if (endPos < startPos) {\n return null;\n }\n int start = startPos >>> 6;\n int end = endPos >>> 6;\n long[] inf = new long[end - start + 1];\n System.arraycopy(v, start, inf, 0, inf.length);\n if ((endPos & 0x3F) < 63) {\n...
"protected void handleUDPConnectBackRequest(UDPConnectBackVendorMessage udp, Connection source) {\n GUID guidToUse = udp.getConnectBackGUID();\n int portToContact = udp.getConnectBackPort();\n InetAddress sourceAddr = source.getInetAddress();\n Message msg = new UDPConnectBackRedirect(guidToUse, sourceAddr,...
"private IAggregationResultSet[] onePassExecute(AggregationDefinition[] aggregations, StopSign stopSign) throws DataException, IOException, BirtException {\n IDiskArray[] dimPosition = getFilterResult();\n int count = 0;\n for (int i = 0; i < dimPosition.length; i++) {\n if (dimPosition[i] != null) {\n ...
"public void startNewGame() {\n if (data.getBoard() == null) {\n data.setBoard(new Board(10, 20));\n }\n if (data.getSequence() == null) {\n data.setSequence(new PieceSequence(new ShufflePieceSelector()));\n }\n data.clear();\n new NewTetrominoCommand(data).execute();\n}\n"
"public void onStatusChanged(String provider, int status, Bundle extras) {\n switch(status) {\n case LocationProvider.AVAILABLE:\n if (mLocation != null) {\n mLocationDialog.setMessage(StringUtils.getStringRobust(this, R.string.location_accuracy, \"String_Node_Str\" + (int) mLocation...
"public void updateTable(AssemblyStatsTable table, File reportDir) throws IOException {\n log.info(\"String_Node_Str\" + reportDir.getCanonicalPath());\n Collection<File> cegmaFiles = FileUtils.listFiles(reportDir, new String[] { \"String_Node_Str\" }, true);\n for (File cf : cegmaFiles) {\n String asmN...
"public void testMissingTypesForGeneratedBindingsGivesNPE_GRE273() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\...
"public Collection<ITransaction> getCommittedArtifactTransactionIds(IAtsTeamWorkflow teamWf) {\n ArtifactReadable artifactReadable = (ArtifactReadable) teamWf.getStoreObject();\n List<ITransaction> transactionIds = commitArtifactIdMap.get(artifactReadable.getLocalId());\n if (transactionIds == null) {\n ...
"public void clear() {\n m_tableViewer.getControl().getDisplay().syncExec(new Runnable() {\n\n public void run() {\n m_tableViewer.setSelection(StructuredSelection.EMPTY);\n m_tableViewer.setInput(null);\n m_tableViewer.refresh();\n }\n });\n}\n"
"public void setStringAttribute(String key, String value) {\n throw notSupportedOnClient();\n}\n"
"protected void notifyStatusChange(Object data, IStatus status) {\n if (status == null) {\n status = Status.OK_STATUS;\n }\n notifyChange(new PartChangeEvent(data, status, this, eventType));\n}\n"
"public MoneySource getMoneySource() {\n return selectedCard;\n}\n"
"public final Exclusive_or_expressionContext exclusive_or_expression() throws RecognitionException {\n Exclusive_or_expressionContext _localctx = new Exclusive_or_expressionContext(_ctx, getState());\n enterRule(_localctx, 60, RULE_exclusive_or_expression);\n int _la;\n try {\n enterOuterAlt(_localct...
"public String toString() {\n final Date dt = toDateTime();\n return dt == null ? NULL_STR : getDateformat().format(dt) + getNanosformat().format(value % NANOS_PER_SECOND);\n}\n"
"private Element getValueForDiscriminator(Object appContext, List<ValidationMessage> errors, Element element, String discriminator, ElementDefinition criteria, NodeStack stack) throws FHIRException, IOException {\n String p = stack.getLiteralPath() + \"String_Node_Str\" + element.getName();\n Element focus = elem...
"private void unregisterForWiredHeadsetIntentBroadcast() {\n mRemoteLogger.v(\"String_Node_Str\");\n try {\n mContext.unregisterReceiver(mWiredHeadsetReceiver);\n } catch (IllegalArgumentException e) {\n mRemoteLogger.w(\"String_Node_Str\");\n }\n mWiredHeadsetReceiver = null;\n}\n"
"private static void _createActorsIn(CompositeActor model, HashSet createdSet, String phaseName, ConstVariableModelAnalysis constAnalysis, Map options) {\n for (Iterator i = model.deepEntityList().iterator(); i.hasNext(); ) {\n Entity entity = (Entity) i.next();\n String className = entity.getClass().g...
"private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n int numAux = receipttwo.countNumberAuxiliar();\n int ini = receipttwo.getJticketLine().getSelectedIndex();\n for (int i = ini; i <= ini + numAux; i++) {\n TicketLineInfo line = receipttwo.getSelectedLine();\n if (line != nu...
"public void addInstanceListener(InstanceListener listener) {\n check(listener);\n if (instanceListenerManager().noInstanceListenerRegistered()) {\n Call c = instanceListenerManager().createNewAddListenerCall(proxyHelper);\n proxyHelper.doCall(c);\n }\n client.getListenerManager().getInstanceL...
"private Pair<ManagedObjectReference, String> prepareNetworkFromNicInfo(HostMO hostMo, NicTO nicTo, boolean configureVServiceInNexus, VirtualMachine.Type vmType) throws Exception {\n Ternary<String, String, String> switchDetails = getTargetSwitch(nicTo);\n nicTo.getType();\n VirtualSwitchType switchType = Virt...
"private void generateManyValueClass(ClassWriter cw, TypeMappingInfo typeMappingInfo, String namespace, Class superType, String classNameSeparatedBySlash, JavaClass componentType, JavaClass containerType) {\n String componentClassNameSeparatedBySlash = getObjectType(componentType).getQualifiedName().replace(DOT_CHR,...
"public String running() {\n StringBuilder resultBuilder = new StringBuilder();\n TaskState[] states;\n StackTraceElement[] stackTrace;\n for (Overseer overseer : overseers) {\n states = overseer.getTaskStates();\n for (TaskState state : states) {\n resultBuilder.append(\"String_Nod...
"public IDataMember resolveField(Name name) {\n return this.getSafeUpperBound().resolveField(name);\n}\n"
"private void runMonitor(NoSqlEntityManager mgr, MonitorDbo monitor, DateTime now) {\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + monitor.getId());\n PlayOrmCronJob p = CopyUtil.copy(monitor);\n fireToListener(p);\n monitor.setLastRun(now);\n mgr.put(monitor);\n mgr.flush();\n}...
"protected void onEvent(Event event) {\n if (initialized) {\n return;\n }\n try {\n TopologyManager.acquireReadLock();\n for (Service service : TopologyManager.getTopology().getServices()) {\n for (Cluster cluster : service.getClusters()) {\n for (Member member : ...
"public long createNote(String title, String body, byte[] data) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_TITLE, title);\n initialValues.put(KEY_BODY, body);\n if (data != null) {\n initialValues.put(KEY_DATA, data);\n return mDb.insert(DATABASE_TABLE, null, in...
"public void testExecuteOnMembers_withEmptyCollection() {\n final IExecutorService service = client.getExecutorService(randomString());\n final String mapName = randomString();\n final Collection<Member> collection = new ArrayList<Member>();\n service.executeOnMembers(new MapPutRunnable(mapName), collection...
"protected void __init(HttpServletRequest request) throws Exception {\n if (ParameterAccessor.isGetImageOperator(request) && (IBirtConstants.SERVLET_PATH_FRAMESET.equalsIgnoreCase(request.getServletPath()) || IBirtConstants.SERVLET_PATH_OUTPUT.equalsIgnoreCase(request.getServletPath()) || IBirtConstants.SERVLET_PATH...
"public void run() {\n TreeObject selected = (TreeObject) ((IStructuredSelection) view.getViewer().getSelection()).getFirstElement();\n Map<TreeObject, Object> keyTrackMap = new HashMap<TreeObject, Object>();\n try {\n super.run();\n if (this.view == null) {\n MessageDialog.openError(v...
"public void testBugNPE() {\n File projectLocation = new File(\"String_Node_Str\");\n AstorMain main1 = new AstorMain();\n Launcher launcher = new Launcher();\n launcher.addInputResource(\"String_Node_Str\");\n Factory factory = launcher.createFactory();\n factory.getEnvironment().setComplianceLevel(6...
"public void setUp() throws Exception {\n MockitoAnnotations.initMocks(this);\n dispatcher = new SupportFragmentLightCycleDispatcher();\n dispatcher.attachLightCycle(lifeCycleComponent1);\n dispatcher.attachLightCycle(lifeCycleComponent2);\n}\n"
"public String toString() {\n return name;\n}\n"
"Principal getPrincipal(HttpRequest request) throws Exception {\n List<String> header = request.getHttpHeaders().getRequestHeader(\"String_Node_Str\");\n String auth = null;\n if (null != header && header.size() > 0) {\n auth = header.get(0);\n }\n if (auth != null && auth.toUpperCase().startsWith...
"public Object editLoginDetails(Person person, EditLoginDetailsForm form, UiUtils ui) {\n ui.validate(form, form, \"String_Node_Str\");\n User user = form.getUserToSave(person);\n String newPassword = form.getPassword().equals(form.PLACEHOLDER) ? null : form.getPassword();\n if (user.getUserId() == null) {\...
"protected void calcYValueSum(List<? extends DataSet<?>> dataSets) {\n mYValueSum = 0;\n if (mDataSets == null)\n return;\n for (int i = 0; i < dataSets.size(); i++) {\n mYValueSum += Math.abs(dataSets.get(i).getYValueSum());\n }\n}\n"
"public void write(ParsedMessage message) throws Exception {\n TopicPartition topicPartition = new TopicPartition(message.getTopic(), message.getKafkaPartition());\n long offset = mOffsetTracker.getAdjustedCommittedOffsetCount(topicPartition);\n LogFilePath path = new LogFilePath(mLocalPrefix, mConfig.getGener...
"public void doAfterCompose(Component comp) throws Exception {\n super.doAfterCompose(comp);\n boolean isEE = \"String_Node_Str\".equals(Version.getEdition());\n UserActionManager uam = ss.getUserActionManager();\n uam.registerHandler(DefaultUserActionManagerCtrl.Category.AUXACTION.getName(), AuxAction.NEW_...
"public Object build(Object message, Object partialBuildObject) {\n int noOfMessages = 1;\n if (message instanceof List) {\n noOfMessages = ((List) message).size();\n }\n OutMessage sendMessage = (OutMessage) partialBuildObject;\n ChannelMessage channelMessage = sendMessage.getMPIMessage();\n i...