content stringlengths 40 137k |
|---|
"public boolean isActorReady() throws PtalonRuntimeException {\n if (_currentActorTree == null) {\n throw new PtalonRuntimeException(\"String_Node_Str\");\n }\n if ((_currentTree.created) && (!inNewWhileIteration())) {\n return false;\n }\n if (isReady()) {\n return _currentTree.isRe... |
"public void removeCubeCache(String cubeName) {\n CubeManager.getInstance(this.getConfig()).removeCubeCacheLocal(cubeName);\n}\n"
|
"public void close(VirtualConnection inVC, Exception e) {\n synchronized (linkStatusSync) {\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {\n Tr.debug(tc, \"String_Node_Str\" + linkStatus + \"String_Node_Str\" + this.hashCode());\n }\n if ((linkStatus == LINK_STAT... |
"private static void fillSynonmsForOracle(IMetadataConnection iMetadataConnection, List<TdColumn> metadataColumns, NamedColumnSet table, String tableName) throws SQLException {\n String synSQL = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Nod... |
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n Boolean ownerSelection = config.getBooleanSafe(COEditController.CONFIG_KEY_EMAILTOOWNERS);\n Boolean coacheSelection = config.getBooleanSafe(COEditController.CONFIG_KEY_EMAILTOCOACHES_ALL) || config.getBooleanSafe(CO... |
"public void onPatternDetected(List<LockPatternView.Cell> pattern) {\n if (mLockPatternUtils.checkPattern(pattern)) {\n mCallback.reportSuccessfulUnlockAttempt();\n mLockPatternView.setDisplayMode(LockPatternView.DisplayMode.Correct);\n mTotalFailedPatternAttempts = 0;\n mCallback.dismiss... |
"public ResponseEntity<Object> handleInternal(final RuntimeException ex, final WebRequest request, final HttpServletResponse response) {\n logger.info(response.getHeader(\"String_Node_Str\"));\n logger.error(\"String_Node_Str\", ex);\n final String message = \"String_Node_Str\" + ex.getLocalizedMessage();\n ... |
"private void tryInit() {\n try {\n Configuration conf = getSnapshotConfiguration();\n if (conf != null) {\n this.storage = new HDFSTransactionStateStorage(conf, new SnapshotCodecProvider(conf));\n this.storage.startAndWait();\n this.snapshotRefreshFrequency = conf.getL... |
"private static long sumOfEvents(Map<String, Long> map) {\n long count = 0;\n for (long val : map.values()) {\n count += val;\n }\n return count;\n}\n"
|
"private void layout() {\n User currentUser = ((HeadsUpSession) getSession()).getUser();\n boolean userHasPermission = Manager.getSecurityInstance().userHasPermission(currentUser, new MilestoneEditPermission(), project);\n Object o = getDefaultModel().getObject();\n WebMarkupContainer commentTitle = new Web... |
"private static IInitializer load(String fullClassName) throws Exception {\n ODependencyLoader loader = injector.getInstance(ODependencyLoader.class);\n return loader.newInstance(fullClassName);\n}\n"
|
"public void newParameters(Element root) {\n ArgumentNotValid.checkNotNull(root, \"String_Node_Str\");\n List<Element> tmp;\n tmp = root.elements(Constants.DEPLOY_CLASS_PATH);\n if (tmp.size() > 0) {\n classPaths = tmp;\n }\n tmp = root.elements(Constants.JAVA_OPTIONS_BRANCH);\n if (tmp.size... |
"protected void parseConfigVars(HttpServletRequest request, Collection parameterList) {\n this.configMap = new HashMap();\n String reportConfigName = ParameterAccessor.getConfigFileName(this.reportDesignName);\n if (reportConfigName == null)\n return;\n SessionHandle sessionHandle = DesignEngine.newS... |
"protected IBaseResultSet doExecuteCube(IBaseResultSet parentResult, ICubeQueryDefinition query, boolean useCache) {\n String queryID = (String) queryIDMap.get(query);\n try {\n String resultSetID = loadResultSetID(parentResult, queryID);\n IBaseQueryResults queryResults = null;\n query.setQu... |
"private int getTimestampIndex(QueryModel model, ExprNode node, RecordMetadata m) throws ParserException {\n int index = getTimestampIndexQuiet(model, node, m);\n int pos = model.getJournalName() != null ? model.getJournalName().position : 0;\n switch(index) {\n case -1:\n throw QueryError.po... |
"public void onStartInputView(final EditorInfo attribute, final boolean restarting) {\n Logger.v(TAG, \"String_Node_Str\", attribute.imeOptions, attribute.inputType, restarting);\n super.onStartInputView(attribute, restarting);\n if (mVoiceRecognitionTrigger != null) {\n mVoiceRecognitionTrigger.onStart... |
"protected void handleAddElement(ModelElementChangeRightTarget addElement) {\n EObject rightElement = addElement.getRightElement();\n TdColumn columnSetSwitch = SwitchHelpers.COLUMN_SWITCH.doSwitch(rightElement);\n if (columnSetSwitch != null) {\n ColumnSet columnSet = null;\n if (selectedObj ins... |
"public void inspectExec() throws IOException {\n String containerName = \"String_Node_Str\" + new SecureRandom().nextInt();\n CreateContainerResponse container = dockerClient.createContainerCmd(\"String_Node_Str\").withCmd(\"String_Node_Str\", \"String_Node_Str\").withName(containerName).exec();\n LOG.info(\"... |
"void addNode(Node n) {\n if (operations.containsKey(n.path)) {\n String msg = \"String_Node_Str\" + n.path;\n LOG.error(msg);\n throw new MicroKernelException(msg);\n }\n operations.put(n.path, n.asOperation(true));\n addedNodes.add(n.path);\n}\n"
|
"protected HearthTreeNode<BoardState> use_core(int thisCardIndex, int playerIndex, int minionIndex, HearthTreeNode<BoardState> boardState, Deck deck) throws HSInvalidPlayerIndexException {\n if (playerIndex > 0 || minionIndex > 0)\n return null;\n HearthTreeNode<BoardState> toRet = boardState;\n boardSt... |
"public void run() {\n ISelection selection = this.getSelection();\n boolean onlyDeleteReportFile = true;\n for (Object obj : ((IStructuredSelection) selection).toArray()) {\n if (obj instanceof RepositoryNode) {\n RepositoryNode node = (RepositoryNode) obj;\n if (node instanceof R... |
"private void checkDependency(ItemRecord record) {\n for (ModelElement melement : record.getDependencyMap().values()) {\n if (melement.eIsProxy()) {\n InternalEObject inObject = (InternalEObject) melement;\n record.addError(\"String_Node_Str\" + record.getName() + \"String_Node_Str\" + i... |
"private void deleteRepositoryNode(IRepositoryNode repositoryNode, IProxyRepositoryFactory factory) throws PersistenceException, BusinessException {\n if (repositoryNode.getType() == ENodeType.SIMPLE_FOLDER) {\n IPath path = RepositoryNodeUtilities.getPath((RepositoryNode) repositoryNode);\n ERepositor... |
"public void merge(T in) {\n if (in != null) {\n fields.putAll(in.fields);\n }\n}\n"
|
"public EclipseTypeMunger build(ClassScope classScope) {\n EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope);\n resolveOnType(classScope);\n if (ignoreFurtherInvestigation)\n return null;\n binding = classScope.referenceContext.binding.resolveTypesFor(binding);\n if (bin... |
"protected void onBindView(View view) {\n super.onBindView(view);\n SeekBar seekbar = (SeekBar) view.findViewById(com.android.internal.R.id.seekbar_preference);\n if (seekbar != null) {\n if (mMax > 0)\n seekbar.setMax(mMax);\n if (mThumb != null)\n seekbar.setThumb(mThumb);... |
"public void intervalAdded(ListDataEvent e) {\n final Product[] propertySourceProducts = container.getValue(\"String_Node_Str\");\n final Product[] newSourceProducts = sourceProductList.getSourceProducts();\n for (Product newSourceProduct : newSourceProducts) {\n if ((propertySourceProducts == null || !... |
"private void replaceBiomeBlocks(int x, int z, ChunkPrimer primer, Biome[] biomesIn) {\n if (!net.minecraftforge.event.ForgeEventFactory.onReplaceBiomeBlocks(this, x, z, primer, this.worldObj))\n return;\n double d0 = 0.03125D;\n this.depthBuffer = this.surfaceNoise.getRegion(this.depthBuffer, (double) ... |
"public static void onShutdown(final Runnable runnable) {\n currentDisplay.getShells()[0].addListener(org.eclipse.swt.SWT.Close, new org.eclipse.swt.widgets.Listener() {\n\n public void handleEvent(final org.eclipse.swt.widgets.Event event) {\n runnable.run();\n }\n });\n}\n"
|
"public void addTemplateClip(Clip clip) throws IOException, JSONException {\n mTemplate.getScene(0).addClip(clip);\n mAddClipsPagerAdapter = new AddClipsPagerAdapter(mFm, mTemplate, mScene);\n mAddClipsViewPager.setAdapter(mAddClipsPagerAdapter);\n mAddClipsViewPager.setCurrentItem(mTemplate.getScene(0).get... |
"public String getReport() {\n String report = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + (isDirected ? \"String_Node_Str\" : \"String_Node_Str\") + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + componentCount + \"String_Node_Str\... |
"public void onCreate(Bundle savedInstanceState) {\n try {\n super.onCreate(savedInstanceState);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n initAnalyticsObjects();\n readShortcutCameraId();\n if (!liveViewCameraId.isEmpty()) {\n startingCam... |
"public static DataOnMemory samplingNumberOfSamples(int numberOfSamples, DataBase dataBase) {\n Random random = new Random(0);\n DataOnMemoryListContainer dataOnMemoryList = new DataOnMemoryListContainer(dataBase.getAttributes());\n int count = 0;\n for (DataInstance instance : dataBase) {\n if (coun... |
"private static void append00(CharSink sink, int val) {\n int v = Math.abs(val);\n if (v < 10) {\n sink.put('0').put('0');\n } else if (val < 100) {\n sink.put('0');\n }\n Numbers.append(sink, val);\n}\n"
|
"public EvaluationResult<T> build() {\n return new EvaluationResult<>(result, errors, catastrophe, walkableGraph);\n}\n"
|
"protected IStorageUtilityIndexed<FormInstance> getFixtureStorage() {\n return (IStorageUtilityIndexed<FormInstance>) StorageManager.getStorage(FormInstance.STORAGE_KEY);\n}\n"
|
"private void appendImageLink(StringBuffer sb, String prefix, BidirectionalRepositoryLayout layout, ArchivaArtifact artifact) {\n String type = artifact.getType();\n String linkText = \"String_Node_Str\" + req.getContextPath() + \"String_Node_Str\" + type + \"String_Node_Str\";\n appendLink(sb, prefix, repo, a... |
"private void createTargetProduct() {\n targetProduct = new Product(sourceProduct.getName() + PRODUCT_SUFFIX, sourceProduct.getProductType(), sourceProduct.getSceneRasterWidth(), sourceProduct.getSceneRasterHeight());\n ProductUtils.copyProductNodes(sourceProduct, targetProduct);\n for (String key : targetMap.... |
"public boolean equals(IEntryContentProvider otherProvider) {\n boolean retVal = false;\n if (otherProvider != null && otherProvider instanceof IEntryContentProvider) {\n IEntryContentProvider provider = (IEntryContentProvider) otherProvider;\n if (this == otherProvider) {\n retVal = true... |
"public void end() {\n if (gl.active())\n gl.active(false);\n }\n scene.end();\n}\n"
|
"protected void createPage1() {\n IProcess2 process = getProcess();\n codeEditor = CodeEditorFactory.getInstance().getCodeEditor(getCurrentLang(), process);\n ((Process) process).setEditor(this);\n processor = ProcessorUtilities.getProcessor(process, process.getProperty(), process.getContextManager().getDef... |
"public GDo leaveWFChoiceCheck(ModelNode parent, ModelNode child, WellFormedChoiceChecker checker, ModelNode visited) throws ScribbleException {\n WellFormedChoiceEnv env = checker.popEnv();\n {\n env = env.leaveWFChoiceCheck(checker);\n }\n setEnv(env);\n checker.pushEnv(checker.popEnv().mergeCon... |
"private void handleSystemQueryOptionFormat(final String format) throws UriParserException {\n if (\"String_Node_Str\".equals(format))\n uriResult.setFormat(Format.ATOM);\n else if (\"String_Node_Str\".equals(format))\n uriResult.setFormat(Format.JSON);\n else if (\"String_Node_Str\".equals(forma... |
"public void execute(final ScriptEntry scriptEntry) throws CommandExecutionException {\n List<dEntity> entities = (List<dEntity>) scriptEntry.getObject(\"String_Node_Str\");\n dEntity target = (dEntity) scriptEntry.getObject(\"String_Node_Str\");\n boolean cancel = scriptEntry.hasObject(\"String_Node_Str\");\n... |
"public IConditionalExpression createConditionalExpression(String testExpression, String operator, String value1, String value2) {\n ConditionalExpression expression = new ConditionalExpression(testExpression, DataAdapterUtil.adaptModelFilterOperator(operator), value1, value2);\n return ExpressionUtil.transformCo... |
"protected void loadStoredAccounts(BundleContext bundleContext) {\n String sourcePackageName = getFactoryImplPackageName();\n ServiceReference confReference = bundleContext.getServiceReference(ConfigurationService.class.getName());\n ConfigurationService configurationService = (ConfigurationService) bundleCont... |
"private String stringFromSQLTime(Time sourceTime, QName schemaType) {\n if (XMLConstants.DATE_TIME_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(ne... |
"protected void populateTableList() {\n if (rootNode != null) {\n availableDbObjectsTree.removeAll();\n setRootElement();\n }\n String namePattern = null;\n String[] tableType = null;\n cachedSearchTxt = searchTxt.getText();\n namePattern = getTailoredSearchText(searchTxt.getText());\n ... |
"public static JSONValue parse(String jsonString) {\n if (jsonString == null) {\n throw new NullPointerException();\n }\n if (jsonString.length() == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n try {\n return evaluate(jsonString, strict);\n } catch (JavaSc... |
"private void removeAllQueries() {\n for (QueryPanel qp : new ArrayList<QueryPanel>(queries)) {\n deleted(qp);\n }\n queries.clear();\n}\n"
|
"public IProgressMonitor shutdown(String instanceId) throws IOException {\n String instanceUrl = getInstanceUrl(instanceId);\n HttpPut put = new HttpPut(MessageFormat.format(\"String_Node_Str\", instanceUrl));\n try {\n execute(put);\n return new ProgressMonitor(instanceUrl, SHUTDOWN_OPERATIONS, ... |
"private void processTransaction(String actorType, ActorFactory actorFactory, byte[] bytes, final RP rp) throws Exception {\n makeRootJid();\n transactionListJid.iAdd(-1);\n TransactionActorJid transactionActorJid = (TransactionActorJid) transactionListJid.iGet(-1);\n if (actorType != null) {\n if (b... |
"public void onSelectionChange(SelectionChangeEvent event) {\n if (!reactToSelChange)\n return;\n ParamsBuilder.getCurrent().setVal(name, ssm.getSelectedObject().getId().toString());\n ElementReceiver.get().queryPage();\n}\n"
|
"protected String putHeaderFooterVars(String text) {\n String formatted = text;\n Calendar time = Calendar.getInstance();\n int hour = time.get(Calendar.HOUR_OF_DAY);\n int minute = time.get(Calendar.MINUTE);\n int second = time.get(Calendar.SECOND);\n formatted = StringUtils.replace(formatted, \"Stri... |
"void updateWebXml(String context) {\n final String[] PRIOR_ELEMENTS_SERVLET = { \"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\" };\n final String[] PRIO... |
"public void testMapCertificate_CertificateMapFailedException() throws Exception {\n final com.ibm.websphere.security.CertificateMapFailedException certMapFailedException = new com.ibm.websphere.security.CertificateMapFailedException(EXPECTED_EXCEPTION_MESSAGE);\n mockery.checking(new Expectations() {\n {\... |
"public Result validPassword(Account account, String password) {\n if (null == account) {\n return Result.getFailed(AccountErrorCode.PARAMETER_ERROR);\n }\n boolean rs = account.validatePassword(password);\n if (!rs) {\n return Result.getFailed(AccountErrorCode.PARAMETER_ERROR);\n }\n re... |
"public boolean onKeyDown(int keyCode, KeyEvent event) {\n InputConnection ic = getCurrentInputConnection();\n if (!mPredictionLandscape) {\n commitTyped(ic);\n mPredicting = false;\n }\n if (DEBUG)\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + event.getKeyCode() + \"String_Node_St... |
"public Object getValue(String exprName) throws BirtException {\n checkStarted();\n logger.logp(Level.FINER, ResultIterator.class.getName(), \"String_Node_Str\", \"String_Node_Str\" + LogUtil.toString(exprName));\n if (this.isFirstRowPepared)\n this.prepareCurrentRow();\n if (!this.boundColumnValueMa... |
"private void handleUnescapedQuoteInValue() {\n switch(quoteHandling) {\n case STOP_AT_CLOSING_QUOTE:\n case STOP_AT_DELIMITER:\n output.appender.append(quote);\n prev = ch;\n parseValueProcessingEscape();\n break;\n default:\n handleValueSk... |
"public void addFail(String reason) {\n text.append(reason);\n if (pass == 1) {\n failPass1.incrementAndGet();\n }\n if (pass == 2) {\n failPass2.incrementAndGet();\n }\n}\n"
|
"public void serialize(Volumes volumes, JsonGenerator jsonGen, SerializerProvider serProvider) throws IOException, JsonProcessingException {\n jsonGen.writeStartObject();\n for (Volume volume : volumes.getVolumes()) {\n jsonGen.writeFieldName(volume.getPath());\n jsonGen.writeStartObject();\n ... |
"public CoverageWriter createCoverageWriter(String testOut, PrintStream out) {\n if (testOut.length() > 0) {\n try {\n File testOutDir = new File(testOut);\n if (!testOutDir.exists()) {\n testOutDir.mkdirs();\n }\n File coverageFile = new File(testOut... |
"public void test_invalid_handle_not_exist() throws Exception {\n String notExistHandle = \"String_Node_Str\";\n mockMvc.perform(put(URI_DOMAIN_U + notExistHandle).contentType(MediaType.parseMediaType(rdapJson)).content(\"String_Node_Str\")).andExpect(status().isNotFound()).andExpect(content().contentType(rdapJso... |
"private void restoreInstanceState(Bundle savedInstanceState) {\n mTrendingAnthology = Anthology.getParcelable(savedInstanceState);\n mTrendingAdapter = new TrendingAdapter(mTrendingAnthology.getStories());\n mTrendingView.setAdapterForRecyclerView(mTrendingAdapter);\n}\n"
|
"public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n SmartLockScreenSettings.this.position = position;\n drawerLayout.closeDrawers();\n}\n"
|
"public static void createTableIfNotExists(DynamoDBReplicationGroup group, DynamoDBReplicationGroupMember createMember, AccountMapToAwsAccess awsAccess) throws Exception {\n String accountNumber = new DynamoDBArn().withArnString(createMember.getArn()).getAccountNumber();\n AwsAccess accountAccess = awsAccess.getA... |
"private static Map<String, PsiVariable> getTypesOnArrayIndex(ArrayAccessExpression arrayAccessExpression) {\n HashMap<String, PsiVariable> collectedTypes = new HashMap<String, PsiVariable>();\n ArrayIndex arrayIndex = arrayAccessExpression.getIndex();\n if (arrayIndex != null && arrayIndex.getValue() instance... |
"public void setCallback(final Checkbox menuItem) {\n if (callback != null) {\n _native.removeItemListener(callback);\n }\n callback = menuItem.getCallback();\n if (callback != null) {\n callback = new ActionListener() {\n final ActionListener cb = menuItem.getCallback();\n ... |
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRuleComponent convertTestScriptRuleComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptRuleComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRu... |
"public StyleHandle getStyle() {\n Object value = ((Structure) getStructure()).getLocalProperty(getModule(), HighlightRule.STYLE_MEMBER);\n if (value instanceof ElementRefValue) {\n ElementRefValue refValue = (ElementRefValue) value;\n if (refValue.isResolved()) {\n Style style = (Style) ... |
"public List<AlarmStateHistory> find(String tenantId, Map<String, String> dimensions, DateTime startTime, DateTime endTime, String offset, int limit) throws Exception {\n List<String> alarmIdList = findAlarmIds(this.mysql, tenantId, dimensions);\n if (alarmIdList == null || alarmIdList.isEmpty()) {\n retur... |
"private int checkSendBecomingNoisyIntent(int device, int state) {\n int delay = 0;\n if ((state == 0) && ((device & mBecomingNoisyIntentDevices) != 0)) {\n int devices = 0;\n for (int i = 0; i < mConnectedDevices.size(); i++) {\n int dev = mConnectedDevices.valueAt(i).mDeviceType;\n ... |
"public void terminateInstance(MemberContext memberContext) throws InvalidCartridgeTypeException, InvalidMemberException {\n synchronized (MockIaasService.class) {\n MockMember mockMember = membersMap.get(memberContext.getMemberId());\n if (mockMember != null) {\n mockMember.terminate();\n ... |
"public void run() {\n if (MessageDialog.openConfirm(RosterView.this.getViewSite().getShell(), \"String_Node_Str\", \"String_Node_Str\")) {\n ua.getInputHandler().disconnect();\n }\n}\n"
|
"protected Pair<String, String> createVDIFromSnapshot(long userId, SnapshotVO snapshot, StoragePoolVO pool) {\n String vdiUUID = null;\n Long snapshotId = snapshot.getId();\n Long volumeId = snapshot.getVolumeId();\n String primaryStoragePoolNameLabel = pool.getUuid();\n Long dcId = snapshot.getDataCente... |
"private void initFunction() {\n cmbFunction.setItems(getFunctionDisplayNames());\n if (binding == null) {\n cmbFunction.select(0);\n handleFunctionSelectEvent();\n return;\n }\n try {\n String functionString = getFunctionDisplayName(DataAdapterUtil.adaptModelAggregationType(bind... |
"protected void process(Session sess, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n final String errClient = request.getHeader(\"String_Node_Str\");\n if (errClient != null)\n if (log.debugable())\n log.debug(\"String_Node_Str\" + errClient + ... |
"private void _setContainerRates(Map externalRates) throws NotSchedulableException, IllegalActionException {\n Director director = (Director) getContainer();\n CompositeActor container = (CompositeActor) director.getContainer();\n Iterator ports = container.portList().iterator();\n while (ports.hasNext()) {... |
"protected Set<Inequality> _customTypeConstraints() {\n Set<Inequality> result = new HashSet<Inequality>();\n if (isBackwardTypeInferenceEnabled()) {\n boolean enforceLength = false;\n int length = 1;\n try {\n enforceLength = ((BooleanToken) enforceArrayLength.getToken()).booleanV... |
"public String toString() {\n return name + \"String_Node_Str\" + color.name() + \"String_Node_Str\" + turn;\n}\n"
|
"public TaskCancelResult cancelTask() {\n ExecutionState previousState = this.executionState.get();\n int retry = 1000;\n while (previousState == ExecutionState.STARTING) {\n if (--retry == 0) {\n return new TaskCancelResult(getID(), AbstractTaskResult.ReturnCode.ILLEGAL_STATE);\n }\n ... |
"private void syncState() {\n this.data.clear();\n this.currentCmd = null;\n this.currentXmlns = null;\n this.popped = null;\n for (StackFrameStep step : frame.getSteps()) {\n if (SessionFrame.STATE_DATUM_VAL.equals(step.getType())) {\n String key = step.getId();\n String val... |
"private void runOperation(DispoProgram program, DispoSet setToEdit, DispoSetData newSet) {\n OperationReport report = new OperationReport();\n String operation = newSet.getOperation();\n ArtifactReadable author = getQuery().findUser();\n if (operation.equals(DispoStrings.Operation_Import)) {\n try {... |
"protected void fillSector() {\n TileRecord record = new TileRecord(-1, false, filledAttributes);\n records.add(record);\n record.exited = false;\n for (Coordinate c : clockwise) record.coordinates.add(c);\n record.holes.addAll(filledHoles);\n}\n"
|
"public static void showError(Context context, String error) {\n Toast.makeText(context, error, Toast.LENGTH_LONG).show();\n}\n"
|
"public void run(ProgressStatus progressStatus) {\n progressStatus.setDescription(\"String_Node_Str\");\n if (ProjectUtilities.isFromEsiServer(project.getPrimaryProject()) && EsiUtils.getLoggedUserName() == null) {\n Utils.guilog(\"String_Node_Str\");\n return;\n }\n if (!TicketUtils.isTicketS... |
"public static String addQuotesIfNotExist(String text) {\n if (text == null) {\n return null;\n }\n if (!text.startsWith(quote)) {\n text = quote + text;\n }\n if (!text.endsWith(QUOTATION_MARK)) {\n text = text + QUOTATION_MARK;\n }\n return text;\n}\n"
|
"protected void reduce(IndexKey key, Iterable<IndexValue> values, Context context) throws IOException, InterruptedException {\n if (key.getType() != TYPE.NEW_DATA_MARKER) {\n handleNoNewData(key, values);\n } else {\n BlurRecord prevBlurRecord = null;\n String prevRecordId = null;\n fo... |
"public void addToRegistry() {\n if (ServerHelper.isServerWorld(worldObj)) {\n RegistryEnderAttuned.getRegistry().add(this);\n }\n}\n"
|
"public <T> List<T> getAll(Class<T> interfaceClass, IPentahoSession curSession, Map<String, String> properties) throws ObjectFactoryException {\n List<IPentahoObjectReference<T>> referenceList = new ArrayList<IPentahoObjectReference<T>>();\n for (IPentahoObjectFactory fact : factories) {\n if (fact.objectD... |
"public boolean shouldExpandBeyond(ExpansionSource source) {\n return this.uniquness.check(source, false) && !this.pruning.pruneAfter(source.position());\n}\n"
|
"public boolean postfire() throws IllegalActionException {\n Time currentTime = getDirector().getModelTime();\n if (_currentOutput != null) {\n _delayedOutputTokens.take();\n }\n if (_delayedInputTokensList.size() != 0 && _delayedTokens.isEmpty()) {\n DoubleToken delayToken = (DoubleToken) _de... |
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n Core core = new Core(getActivity());\n MenuItem itemOption = menu.findItem(R.id.menu_option1);\n if (itemOption != null) {\n itemOption.setVisible(true);\n itemOption.setShowAsAc... |
"private String getFileLocation(String fileName) {\n String ret = null;\n URL lurl = RangerConfiguration.class.getClassLoader().getResource(fileName);\n if (lurl == null) {\n lurl = RangerConfiguration.class.getClassLoader().getResource(\"String_Node_Str\" + fileName);\n }\n return lurl;\n}\n"
|
"private void injectCache(File file, String avatarUrl) throws IOException {\n final SimpleDateFormat sdf = new SimpleDateFormat(\"String_Node_Str\", Locale.ROOT);\n final long currentTimeMs = System.currentTimeMillis();\n final Date currentTime = new Date(currentTimeMs);\n final long fiveMinutesLaterMs = cu... |
"public void use(AbstractPlayer p, AbstractMonster m) {\n AbstractDungeon.actionManager.addToBottom((new DamageAction((AbstractCreature) m, new DamageInfo(p, this.damage, this.damageTypeForTurn), AbstractGameAction.AttackEffect.SLASH_HEAVY)));\n AbstractDungeon.actionManager.addToBottom(new DestructiveFinishActio... |
"private void loginToTwitter() {\n try {\n requestToken = twitter.getOAuthRequestToken(OAUTH_CALLBACK);\n } catch (TwitterException ex) {\n ex.printStackTrace();\n try {\n Looper.prepare();\n } catch (Exception e) {\n }\n restartLogin();\n }\n}\n"
|
"protected void initEnrichers() {\n super.initEnrichers();\n propagateMasterAttribute(MySqlNode.HOSTNAME);\n propagateMasterAttribute(MySqlNode.ADDRESS);\n propagateMasterAttribute(MySqlNode.SUBNET_HOSTNAME);\n propagateMasterAttribute(MySqlNode.SUBNET_ADDRESS);\n propagateMasterAttribute(MySqlNode.MY... |
"private void generateBudgets(User user, int month, int year) {\n LocalDate now = LocalDate.now();\n List<Budget> originalBudgets = budgetDAO.findBudgets(user, now.getMonthValue(), now.getYear(), false);\n if (originalBudgets.isEmpty()) {\n Date latestDate = budgetDAO.findLatestBudget(user);\n Lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.