content
stringlengths
40
137k
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (debug)\n Log.i(TAG, \"String_Node_Str\" + requestCode + \"String_Node_Str\" + resultCode);\n switch(requestCode) {\n case REQUEST_CODE_DECRYPT:\n if (resultCode == RESULT_OK && data != null) {\n ...
"public List<Artifact> quickSearch(String queryString) throws Exception {\n List<Artifact> artifacts = new ArrayList<Artifact>();\n List<String> observableRepos = xmlRpcUserRepositories.getObservableRepositories();\n SearchResultLimits limits = new SearchResultLimits(SearchResultLimits.ALL_PAGES);\n SearchR...
"public static void getTargetListInfo(HandlerContext handlerCtx) {\n String applicationName = (String) handlerCtx.getInputValue(\"String_Node_Str\");\n String prefix = (String) GuiUtil.getSessionValue(REST_URL);\n List<String> clusters = TargetUtil.getClusters();\n List<String> standalone = TargetUtil.getSt...
"private void outputSfnts(PrintStream out) {\n out.println(\"String_Node_Str\");\n String[] tablesDesired = { \"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_S...
"public boolean contains(Class<?> clazz) {\n final Shard shard = getShard(clazz);\n synchronized (shard) {\n return shard.containsKey(clazz);\n }\n}\n"
"public Object toObject(byte[] byteArray) {\n if (byteArray == null || byteArray.length == 0) {\n return null;\n }\n this.bbis.set(byteArray, byteArray.length);\n final Object obj = toObject(this.bbis);\n this.bbis.set(null, 0);\n return obj;\n}\n"
"public Iterator<DRow> getAllRowsAllColumns(Tenant tenant, String storeName) {\n checkState();\n String keyspace = storeToCQLName(tenant.getKeyspace());\n String tableName = storeToCQLName(storeName);\n return new CQLRowIterator(executeQuery(Query.SELECT_ALL_ROWS_ALL_COLUMNS, keyspace, tableName));\n}\n"
"protected void makeInactive() {\n this.context.makeInactive();\n this.context = null;\n isActive = false;\n}\n"
"public Long resizeCluster(final String clusterName, final String nodeGroupName, final int instanceNum) throws Exception {\n logger.info(\"String_Node_Str\" + nodeGroupName + \"String_Node_Str\" + clusterName + \"String_Node_Str\" + instanceNum);\n final ClusterEntity cluster = ClusterEntity.findClusterEntityByNa...
"public static File sendMMSRequest(Project project, HttpRequestBase request) throws IOException, ServerException, URISyntaxException {\n File targetFile = File.createTempFile(\"String_Node_Str\", null);\n targetFile.deleteOnExit();\n HttpEntityEnclosingRequest httpEntityEnclosingRequest = null;\n boolean lo...
"public int compare(MapUpgrade u1, MapUpgrade u2) {\n if (u1 instanceof TileHexUpgrade && u2 instanceof TileHexUpgrade) {\n TileHexUpgrade tu1 = (TileHexUpgrade) u1;\n TileHexUpgrade tu2 = (TileHexUpgrade) u2;\n return ComparisonChain.start().compare(tu1.getAction(), tu2.getAction()).compare(tu1...
"private File createFile(IncomingFileTransferRequest fileTransferRequest) {\n File downloadFile = null;\n File downloadDir = null;\n String incomingFileName = fileTransferRequest.getFileName();\n try {\n downloadDir = GuiActivator.getFileAccessService().getDefaultDownloadDirectory();\n if (!do...
"private void startTestSuite(ITestSuitePO testSuite, Locale locale, IProgressMonitor monitor, String noRunOptMode) {\n Validate.notNull(testSuite, \"String_Node_Str\");\n ICapPO firstCap = null;\n m_expectedNumberOfSteps = 0;\n m_trav = new Traverser(testSuite, locale);\n try {\n monitor.subTask(M...
"private void parseQueryIpV6Mask(String strQuery, BigDecimal[] ipV6) {\n final int lowLimitShift = 64;\n long maskRangeBytes = 0;\n if (numMask > 0) {\n maskRangeBytes = lowLimitShift * 2 - numMask;\n }\n int lowShift = (int) maskRangeBytes;\n BigDecimal powDecimalBase = BigDecimal.valueOf(2L);...
"private void loadImages() {\n mBufferIDs = new int[13];\n mImages = new Allocation[13];\n mAllocIDs = Allocation.createSized(mRS, Element.USER_F32(mRS), mBufferIDs.length);\n Element ie = Element.RGB_565(mRS);\n mImages[0] = Allocation.createFromBitmapResourceBoxed(mRS, mRes, R.drawable.p01, ie, true);\...
"private void initConfig() {\n ConfigEntry ce, conditionEntry;\n final SubConfiguration subConfig = getPluginConfig();\n config.setGroup(new ConfigGroup(getHost(), getIconKey()));\n config.addEntry(conditionEntry = new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_USE_...
"public void testGetRepositoryResolveByRepositoryApiClassConstantCompatibility() {\n String result = \"String_Node_Str\" + '\\u0151' + \"String_Node_Str\" + '\\u0185' + \"String_Node_Str\";\n if (Integer.parseInt(PluginManager.getPlugin(PluginId.getId(\"String_Node_Str\")).getVersion().replace(\"String_Node_Str\"...
"public View getView(int index, View convertView, ViewGroup parent) {\n ImageView imageView = null;\n View view = null;\n try {\n if (convertView == null) {\n LayoutInflater inflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View rowView = inflater...
"public void closeRequested(final ChannelHandlerContext ctx, final ChannelStateEvent e) throws Exception {\n childChannels.close().addListener(new ChannelGroupFutureListener() {\n public void operationComplete(ChannelGroupFuture future) throws Exception {\n ctx.sendDownstream(e);\n }\n }\...
"public synchronized void stop() {\n if (env.getStatus() != ServerEnvironment.Status.started) {\n logger.fine(\"String_Node_Str\");\n return;\n }\n env.setStatus(ServerEnvironment.Status.stopping);\n try {\n events.send(new Event(EventTypes.PREPARE_SHUTDOWN), false);\n } catch (Excep...
"private TxnPacket receiveTxnProposal(TxnPacket pkt) {\n String request = pkt.getRequest();\n try {\n UUID txnID = pkt.getID();\n if (participantTxns.containsKey(txnID)) {\n writeError(\"String_Node_Str\");\n fail();\n }\n writeOutput(\"String_Node_Str\" + txnID +...
"public void init() {\n fakeRoot = makeFakeRootNode();\n Key k = new Key(fakeRoot.getMethod(), fakeRoot.getContext());\n registerNode(k, fakeRoot);\n fakeWorldClinit = makeFakeWorldClinitNode();\n k = new Key(fakeWorldClinit.getMethod(), fakeWorldClinit.getContext());\n registerNode(k, fakeWorldClinit...
"public boolean getAsBoolean() {\n Boolean result = entireInputMatched;\n return result != null ? result.booleanValue() : isEntrieInputMatchesAndStoreResults();\n}\n"
"public ArrayList<String> hitInputs() {\n ArrayList<String> inputs = new ArrayList<String>();\n if (profile != null) {\n for (String s : profile.btnToCode.keySet()) {\n if (btnHit(s))\n inputs.add(s);\n }\n }\n return inputs;\n}\n"
"public void shouldLogMessageIncludingNullSession() throws Exception {\n new TransportExceptionMonitor().exceptionCaught(new NullPointerException(EXCEPTION_MESSAGE), null);\n checkLogMessageRule.setExpectedPatterns(Arrays.asList(\"String_Node_Str\"));\n}\n"
"public void optimize(Logger logger, Program program) throws UserException {\n boolean changed;\n do {\n FuncCallFinder finder = new FuncCallFinder();\n TreeWalk.walk(logger, program, finder);\n pruneBuiltins(logger, program, finder);\n Pair<MultiMap<String, String>, Set<String>> actio...
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n if (noStructureExists) {\n ...
"private static int extractNextIndex(String text, String[] args) {\n int start = text.indexOf(\"String_Node_Str\");\n int end = text.indexOf(\"String_Node_Str\", start);\n if (start != -1 && end != -1) {\n String val = text.substring(start + \"String_Node_Str\".length(), end);\n try {\n ...
"public List<CurrencyConversionLine> getCurrencyConfigurationLineList() {\n AppBase appBase = getAppBase();\n if (appBase != null) {\n return appBase.getCurrencyConversionLineList();\n } else {\n return null;\n }\n}\n"
"private void createDataArea() {\n fDataArea = new ScrolledComposite(foSashForm, SWT.VERTICAL);\n {\n GridLayout gl = new GridLayout();\n fDataArea.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_VERTICAL);\n fDataArea.setLayoutData(gd);\n fDataArea.setExpandHorizontal...
"protected void doSave(OutputStream outputStream, Map options) throws IOException {\n if (getContents().size() > 0) {\n ByteArray byteArray = (ByteArray) getContents().get(0);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(outputStream);\n bufferedOutputStream.write(byteA...
"private String computeQuestionBetterPerformance(QueryTree<N> lgg, List<QueryTree<N>> negTrees, List<String> knownResources) throws TimeOutException {\n startTime = System.currentTimeMillis();\n this.lgg = lgg;\n this.negTrees = negTrees;\n if (userAnsweredWithNo()) {\n noSequences.add(lastSequence);...
"public ObjectBuilder<T> createObjectBuilder(FullQueryBuilder<?, ?> queryBuilder, Map<String, Object> optionalParameters, EntityViewConfiguration entityViewConfiguration, boolean isSubview) {\n boolean hasOffset = tupleOffset != 0;\n ObjectBuilder<T> result;\n result = new ViewTypeObjectBuilder<T>(this, queryB...
"public void getOptions() {\n autoSelect = options.autoSelect.isSelected();\n if (fullColour != options.fullColour.isSelected()) {\n formatChange = true;\n forceNonincremental = true;\n }\n fullColour = options.fullColour.isSelected();\n if (!fullColour) {\n int newLowColourLevel = (...
"public int hashCode() {\n if (systemId != null)\n return lineNum ^ systemId.hashCode();\n return lineNum;\n}\n"
"private void clearCachedValues() {\n cachedNumberFormats = null;\n cachedNumberFormat = null;\n cachedTemplateDateFormats = null;\n cachedXSTemplateDateFormatFactory = cachedXSTemplateDateFormatFactorySysDefTZ = null;\n cachedISOTemplateDateFormatFactory = cachedISOTemplateDateFormatFactorySysDefTZ = nu...
"public void setSchema(String schema) throws SQLException {\n if (DataSourceObjectBuilder.isJDBC41()) {\n checkValidity();\n Class<?>[] valueTypes = new Class<?>[] { String.class };\n try {\n getMethodExecutor().invokeMethod(con, \"String_Node_Str\", valueTypes, schema);\n } ca...
"public void viewCellMoved(CellID viewCellID, CellTransform worldTransform) {\n Vector3f worldTranslation = worldTransform.getTranslation(null);\n synchronized (worldProxBounds) {\n BoundingVolume currentContainer = null;\n int currentContainerIndex = -1;\n int i = 0;\n while (i < worl...
"public static JSONArray createJsonArrayOfJsonNames(List<? extends Enum<?>> parameterList, int sdlVersion) throws JSONException {\n JSONArray result = new JSONArray();\n for (Enum<?> name : parameterList) {\n result.put(name);\n }\n return result;\n}\n"
"public void loadAll_NotStarted() {\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>());\n cache.stop();\n try {\n cache.loadAll(null, true, null);\n fail(\"String_Node_Str\");\n } catch (IllegalStateException e) ...
"private void refreshValues() {\n resultList.clear();\n if (columnChooser.isEnabled()) {\n String queryExpr = null;\n for (Iterator iter = columnList.iterator(); iter.hasNext(); ) {\n ResultSetColumnHandle column = (ResultSetColumnHandle) iter.next();\n if (column.getColumnName...
"public List<RemoteAccessVpnVO> searchForRemoteAccessVpns(ListRemoteAccessVpnsCmd cmd) {\n Account caller = UserContext.current().getCaller();\n Long ipAddressId = cmd.getPublicIpId();\n List<Long> permittedAccounts = new ArrayList<Long>();\n if (ipAddressId != null) {\n PublicIpAddress publicIp = _n...
"protected AGLEventListener createGLEventListener(ECommandType glViewType, int iParentCanvasID, boolean bRegisterToOverallMediator) {\n IGeneralManager generalManager = GeneralManager.get();\n ISet set = generalManager.getUseCase().getSet();\n CmdCreateGLEventListener cmdView = (CmdCreateGLEventListener) gener...
"public void topLevelAspectDoesNotExistNoBuildFile() throws Exception {\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n reporter.removeHandler(failFastHandler);\n try {\n AnalysisResult result = update(ImmutableList.of(\"String_Node_Str\"), \"String_Node_Str\");\n assertThat(keepGoing...
"public void delete() {\n LOGGER.info(\"String_Node_Str\" + getContext());\n if (ltExpiryFuture != null) {\n ltExpiryFuture.cancel(false);\n }\n super.delete();\n}\n"
"private void startTask() {\n Log.d(TAG, \"String_Node_Str\" + mCurrentRequest);\n if (mCurrentRequest != null) {\n mTask = new MyTask();\n mTask.execute(mCurrentRequest);\n }\n}\n"
"private void createIndicatorParameters(TreeItem indicatorItem, IndicatorUnit indicatorUnit) {\n TreeItem[] items = indicatorItem.getItems();\n if (indicatorItem != null && !indicatorItem.isDisposed()) {\n for (TreeItem treeItem : items) {\n if (DATA_PARAM.equals(treeItem.getData(DATA_PARAM))) {...
"public boolean pig$isSaddled() {\n return (this.dataWatcher.getWatchableObjectByte(16) & 1) != 0;\n}\n"
"public void onClick(ClickEvent event) {\n List<FilterParameter> filterList = new ArrayList<>();\n for (String field : values.keySet()) {\n for (String value : values.get(field)) {\n if (StringUtils.isNotBlank(value)) {\n tableFilter.add(new SimpleFilterParameter(field, value));\n...
"private void doFinish(IPath containerName, String fileName, final String templateFileName, final InputStream templateStream, String cheatSheetId, boolean showCheatSheet, boolean isUseDefaultLibrary, LibraryHandle library, IProgressMonitor monitor) throws CoreException {\n monitor.beginTask(CREATING + fileName, 2);\...
"private File mediaCacheFile(String url, int width, int height, String mimeType) {\n if (null == url) {\n return null;\n }\n String filename;\n if (url.startsWith(\"String_Node_Str\")) {\n filename = url;\n } else {\n String downloadableUrl = downloadableUrl(url, width, height);\n ...
"protected void accessQuery(ReportItemDesign design, IContentEmitter emitter) {\n ListingDesign listing = (ListingDesign) design;\n rsetCursor = -1;\n outputEmitter = emitter;\n int groupCount = listing.getGroupCount();\n int NONE_GROUP = groupCount + 1;\n int groupIndex;\n int pageBreakInterval = ...
"public void execute() {\n propagateInput();\n if (!oldMetaDataList.isEmpty() && !newMetaDataList.isEmpty() && !oldMetaDataList.get(0).sameMetadataAs(newMetaDataList.get(0))) {\n node.setPropertyValue(EParameterName.SCHEMA_TYPE.getName(), EmfComponent.BUILTIN);\n }\n metadataOutputChanges.clear();\n ...
"private static void printUsageAndExit() {\n String printUsageFlags = Joiner.on(\"String_Node_Str\").join(PRINT_USAGE_FLAGS);\n List<String> opts = ImmutableList.of(printUsageFlags, USE_CURRENT_DIR_AS_HOME + \"String_Node_Str\" + USE_SPECIFIED_DIR_AS_HOME + \"String_Node_Str\", START_HEADLESS, LOAD_LAST_GAME, NO_...
"public void testMultiSource() throws Exception {\n ETLBatchConfig etlConfig = ETLBatchConfig.builder(\"String_Node_Str\").addStage(new ETLStage(\"String_Node_Str\", MockSource.getPlugin(\"String_Node_Str\"))).addStage(new ETLStage(\"String_Node_Str\", MockSource.getPlugin(\"String_Node_Str\"))).addStage(new ETLStag...
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n unmarshalRecord.removeNullCapableValue(this);\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (null == xmlDescriptor) {\n ...
"public void run() {\n while (true) {\n if (stopFlag) {\n return;\n }\n if (inputEndpoint == null) {\n continue;\n }\n int length = usbDeviceConnection.bulkTransfer(inputEndpoint, readBuffer, readBuffer.length, 0);\n if (length > 0) {\n byte[...
"protected void onEvent(Event event) {\n log.info(\"String_Node_Str\" + event.getClass());\n ClusterTerminatingEvent clusterTerminatingEvent = (ClusterTerminatingEvent) event;\n String appId = clusterTerminatingEvent.getAppId();\n String clusterId = clusterTerminatingEvent.getClusterId();\n AbstractClust...
"private boolean changeSize() {\n int newWidth = this.mapView.getWidth();\n int newHeight = this.mapView.getHeight();\n if (newWidth > 0 && newHeight > 0) {\n if (this.width == newWidth && this.height == newHeight) {\n this.changeSizeNeeded = false;\n this.redrawNeeded = false;\n ...
"public void testLoopedRepeatIndexFetches() throws Exception {\n FormParseInit fpi = new FormParseInit(\"String_Node_Str\");\n FormEntryController fec = initFormEntry(fpi);\n fec.stepToNextEvent();\n fec.stepToNextEvent();\n fec.answerQuestion(new IntegerData(2));\n while (fec.stepToNextEvent() != For...
"public void receiveData(MAVLinkMessage msg) {\n if (drone.getParameters().processMessage(msg)) {\n return;\n }\n drone.getWaypointManager().processMessage(msg);\n drone.getCalibrationSetup().processMessage(msg);\n switch(msg.msgid) {\n case msg_attitude.MAVLINK_MSG_ID_ATTITUDE:\n ...
"private IDiskArray getTopbottomFilterPositions(Dimension dimension, IDiskArray dimPosition, List filterList) throws IOException, DataException {\n IDiskArray result = null;\n ILevel[] levels = dimension.getHierarchy().getLevels();\n for (int i = 0; i < filterList.size(); i++) {\n IJSTopBottomFilterHelp...
"private String getStringConnection() {\n String s = null;\n String versionStr = dbVersionCombo.getText();\n if (isContextMode()) {\n s = DBConnectionContextUtils.getUrlConnectionString(connectionItem, true);\n } else {\n if (EDatabaseTypeName.HIVE.getDisplayName().equals(dbTypeCombo.getText()...
"public void init(Bundle savedInstanceState) {\n allowArrowAnimation();\n final MaterialSection home = newSection(\"String_Node_Str\", new HomeFragment());\n MaterialSection addserver = newSection(\"String_Node_Str\", new Intent(this, AddServerActivity.class));\n MaterialSection settings = newSection(\"Stri...
"public static void makeIndex(final File genomeFile, final File outputDir) throws IOException {\n if (genomeFile == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (outputDir == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n LOGGER.info(...
"public synchronized void setLastCommittedTx(long txId) {\n long current = getRecord(3);\n if ((current + 1) != txId && !isInRecoveryMode()) {\n throw new InvalidRecordException(\"String_Node_Str\" + txId + \"String_Node_Str\" + current + \"String_Node_Str\");\n }\n setRecord(3, txId);\n if (lastC...
"public Inventory islandGuardPanel(Player player) {\n UUID uuid = player.getUniqueId();\n Island island = plugin.getGrid().getProtectedIslandAt(player.getLocation());\n List<IPItem> ip = new ArrayList<IPItem>();\n Inventory newPanel = null;\n if (island == null) {\n ip.add(new IPItem(Material.MAP,...
"void setEqualsSignLocation(SourceLocation.Point equalsSignPoint, SourceLocation.Point stateTransitionPoint) {\n checkNotNull(equalsSignPoint);\n if (attributeName == null) {\n errorReporter.report(stateTransitionPoint.asLocation(filePath), FOUND_EQ_WITH_ATTRIBUTE_IN_ANOTHER_BLOCK);\n throw new Abor...
"public void replyToStatus(String content, String replyTo) throws ArchivedGroupException {\n Status originalStatus = statusRepository.findStatusById(replyTo);\n Group group = null;\n if (originalStatus.getGroupId() != null) {\n group = groupService.getGroupById(originalStatus.getDomain(), originalStatus...
"private void updateScrollStateForRemovedChild(View removedChild) {\n int startingPosition = getPositionInLinearLayout(removedChild);\n int childHeight = getIntrinsicHeight(removedChild) + mPaddingBetweenElements;\n int endPosition = startingPosition + childHeight;\n if (endPosition <= mOwnScrollY) {\n ...
"public boolean prepareToSafeShutdown(long timeout, TimeUnit unit) {\n long timeoutInMillis = unit.toMillis(timeout);\n int sleep = 1000;\n while (timeoutInMillis > 0) {\n while (timeoutInMillis > 0 && shouldWaitMigrationOrBackups(Level.INFO)) {\n try {\n Thread.sleep(sleep);\n...
"public void setSite(ViewPart viewSite) {\n fSite = viewSite;\n fSite.getSite().setSelectionProvider(fSelProvider);\n Object serviceObject = fSite.getSite().getWorkbenchWindow().getService(IContextService.class);\n IContextService service = (IContextService) serviceObject;\n service.activateContext(\"Str...
"public IModule[] createModules(IProject project) {\n if (canCreateModule(project)) {\n IModule module = createModule(project.getName(), project.getName(), CloudFoundryServer.ID_JAVA_STANDALONE_APP, CloudFoundryServer.ID_JAVA_STANDALONE_APP_VERSION, project);\n if (module != null) {\n return...
"public void onProgressChanged(WebView view, int progress) {\n if (progress == 100)\n progress = 0;\n progressBar.setProgress(progress);\n if (showSwipeRefreshLayout) {\n if (swipeRefreshLayout.isRefreshing() && progress == 100) {\n swipeRefreshLayout.post(new Runnable() {\n ...
"public static void clearPropertyBindingMap(DataSetHandle dsHandle, Map dataSetMap, Map dataSourceMap) throws SemanticException {\n if (dsHandle.getExtends() != null) {\n return;\n }\n if (dsHandle instanceof JointDataSetHandle) {\n Iterator iter = ((JointDataSetHandle) dsHandle).dataSetsIterator...
"public static void saveDataFile(File dataFeedFile, BackupTubeDataFile dataFile) {\n if (dataFeedFile.exists()) {\n dataFeedFile.delete();\n }\n try {\n String json = BackupTubeCommon.getPrettyGson().toJson(dataFile, BackupTubeDataFile.class);\n PrintWriter writer = new PrintWriter(dataFee...
"protected void doRun() {\n ISelection selection = getSelection();\n Object obj = ((IStructuredSelection) selection).getFirstElement();\n final RepositoryNode node = (RepositoryNode) obj;\n final String title = DefaultMessagesImpl.getString(\"String_Node_Str\");\n String message = null;\n if (node.get...
"public Object getValueAt(int row, int col) {\n try {\n switch(col) {\n case 0:\n return data.getMaltName(row);\n case 1:\n return SBStringUtils.df1.format(data.getMaltAmountAs(row, data.getMaltUnits(row)));\n case 2:\n return data....
"protected void writeObject(DataOutput out, Object obj) throws IOException {\n if (obj == null) {\n out.writeByte(0);\n }\n if (obj instanceof Long) {\n out.writeByte(1);\n out.writeLong((Long) obj);\n } else if (obj instanceof Integer) {\n out.writeByte(2);\n out.writeInt...
"public final Size compute(IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc) throws ChartException {\n final Legend lg = cm.getLegend();\n if (!lg.isSetOrientation()) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GENERATION, \"String_Node_Str\", Messages.getResou...
"public String getLibraryVersion(LibraryNode lib) {\n NamespaceHandler nsHandler = lib.getNsHandler();\n ProjectItem projectItem = lib.getProjectItem();\n String version = \"String_Node_Str\";\n NamespaceHandler nsHandler = null;\n if (lib != null) {\n nsHandler = lib.getNsHandler();\n Proj...
"public void vertexAdded(final Spot v) {\n writeLock.lock();\n try {\n final int t = v.getTimepoint();\n Stats stats = timepointToStats.get(t);\n if (stats == null) {\n stats = new Stats(graph.vertexRef());\n timepointToStats.put(t, stats);\n }\n stats.add(...
"public boolean reset() {\n this.uniqueValueCount = UNIQUE_VALUE_COUNT_EDEFAULT;\n if (isUsedMapDBMode()) {\n distintObjects = initValueForDBSet(StandardDBName.computeProcessSet.name());\n if (distintObjects != null) {\n ((DBSet<Object>) distintObjects).clear();\n }\n duplic...
"public void addTosystem(MRIDTransformationRule toSystem) {\n if (this.toSystem != null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n this.toSystem = toSystem;\n}\n"
"protected void renderStubLeftSide(GL2 gl, Rectangle2D loc, Rectangle2D locTarget, boolean isWindow, PathwayMultiFormInfo info, PathwayMultiFormInfo infoTarget, boolean start) {\n if (this.isAngleTooSmall) {\n renderLeftOffsetStub(gl, loc, locTarget, isWindow, info, infoTarget, start);\n return;\n }...
"public void testCount() {\n Long count = blockDao.getCount();\n Log.info(\"String_Node_Str\" + count);\n}\n"
"private void validateAnswerCode(List<ValidationMessage> errors, WrapperElement answer, NodeStack stack, Questionnaire qSrc, QuestionnaireItemComponent qItem) {\n WrapperElement v = answer.getNamedChild(\"String_Node_Str\");\n NodeStack ns = stack.push(v, -1, null, null);\n if (qItem.getOption().size() > 0)\n ...
"public String getValue(String str) {\n int iSeparator = str.indexOf(SEPARATOR) + SEPARATOR.length();\n if (iSeparator == (-1 + SEPARATOR.length())) {\n iSeparator = 0;\n }\n sTmp = serviceprovider.getValue(sTmp);\n if (sTmp == null || \"String_Node_Str\".equals(sTmp)) {\n sTmp = Messages.g...
"private static List<StopTime> createStopTimes(List<ProtoRouteStop> prss, Map<ProtoRouteStop, Stop> prsStops, boolean reverse, double speed, Trip trip, int tripStart, int firstStopTimeSequence) {\n List<StopTime> newStopTimes = new ArrayList<StopTime>();\n double firstStopDist = 0;\n for (int i = 0; i < prss.s...
"private <T> void postSaveOperations(Object entity, DBObject dbObj, DBCollection dbColl, LinkedHashMap<Object, DBObject> involvedObjects) {\n Mapper mapr = morphia.getMapper();\n MappedClass mc = mapr.getMappedClass(entity);\n mapr.updateKeyInfo(entity, dbObj);\n firePostPersistForChildren(involvedObjects, ...
"public void testDeleteRelations() {\n TDQReportItem item = mock(TDQReportItem.class);\n IFile file = mock(IFile.class);\n when(file.exists()).thenReturn(false);\n IFolder folder = mock(IFolder.class);\n when(folder.exists()).thenReturn(true);\n Property prop = mock(Property.class);\n when(item.get...
"public void close() throws Exception {\n pool.remove();\n}\n"
"public static void main(String[] args) throws IOException, Exception {\n checkUserHome();\n Set<String> tasks = new HashSet<>();\n parseArgs(args, tasks);\n if (url == null || url.isEmpty()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n SSLContext ctx = createSSLContext();...
"void add(AvatarImiJME avatar) {\n if (!(avatar.getCell() instanceof ViewCell))\n return;\n }\n String username = ((ViewCell) avatar.getCell()).getIdentity().getUsername();\n avatarMap.put(username, avatar);\n if (frame != null) {\n frame.add(username);\n }\n}\n"
"public Element createElement() {\n final Element outerElem = DOM.createDiv();\n if (isMac) {\n DOM.setInnerHTML(outerElem, \"String_Node_Str\");\n DeferredCommand.addCommand(new Command() {\n public void execute() {\n DOM.setStyleAttribute(outerElem, \"String_Node_Str\", \...
"public void setHome(msg_mission_item msg) {\n this.coordinate = new LatLng(msg.x, msg.y);\n this.altitude = new Altitude(msg.z);\n myDrone.events.notifyDroneEvent(DroneEventsType.HOME);\n}\n"
"public void delete() throws VirtException {\n try {\n stop();\n } catch (VirtException e) {\n e.printStackTrace();\n }\n for (StorageVol volume : storageVols) {\n volume.delete();\n }\n domain.undefine();\n}\n"
"public void onCreate(Vector3 position) {\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(0, 1, 0), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(new Vector3(1, 1, 0), position), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(worldObj, Vector3.add(n...
"public <T extends OpenmrsObject> T saveObject(T object, OpenmrsSerializer serializer) throws DAOException {\n Class<? extends OpenmrsObject> baseType = getRegisteredTypeForObject(object);\n if (baseType == null) {\n throw new DAOException(\"String_Node_Str\" + object.getClass() + \"String_Node_Str\");\n ...
"private void captureImage() {\n Image image;\n try {\n final CameraFile cf = cameraGphoto.captureImage();\n if (cf != null) {\n Shooting activeShooting = shootingService.searchIsActive();\n if (activeShooting != null) {\n int imageID = imageService.getNextImageI...