content
stringlengths
40
137k
"public Object execute(Object object) throws JMException {\n Solution solution = (Solution) object;\n if (!solutionTypeIsValid(solution)) {\n Configuration.logger_.severe(\"String_Node_Str\" + \"String_Node_Str\" + solution.getType() + \"String_Node_Str\");\n Class cls = java.lang.String.class;\n ...
"public Element writeXML(Document document) {\n Element modelE = document.createElement(\"String_Node_Str\");\n Element resultsE = document.createElement(\"String_Node_Str\");\n for (Map.Entry<StatisticsUI, String> entry : resultMap.entrySet()) {\n if (entry.getValue() != null && !entry.getValue().isEmp...
"private void stopContext() {\n if (context != null && context.isRunning()) {\n context.stop();\n context.close();\n }\n}\n"
"public void applyModelTransform(Node modelBG) {\n if (getModelScale() != null)\n modelBG.setLocalScale(getModelScale());\n if (getModelTranslation() != null)\n modelBG.setLocalTranslation(getModelTranslation());\n if (getModelRotation() != null)\n modelBG.setLocalRotation(getModelRotation...
"private void refreshAxisCombo() {\n ArrayList<String> itemList = new ArrayList<String>();\n int axisNum = ChartUIUtil.getOrthogonalAxisNumber(getChart());\n for (int i = 1; i <= axisNum; i++) {\n itemList.add(Messages.getString(\"String_Node_Str\") + i);\n }\n itemList.add(Messages.getString(\"St...
"public File getSystemVMKeyFile() {\n URL url = this.getClass().getClassLoader().getResource(\"String_Node_Str\");\n File keyFile = null;\n if (url != null) {\n keyFile = new File(url.getPath());\n }\n if (keyFile == null || !keyFile.exists()) {\n keyFile = new File(\"String_Node_Str\" + \"...
"private void optimizeLoop(Logger logger, Loop loop) {\n List<BlockingVar> closedVars = loop.closedLoopVars();\n if (closedVars.isEmpty()) {\n return;\n }\n Block outerBlock = loop.parent();\n ListIterator<Statement> outerInsertPoint = outerBlock.statementEndIterator();\n List<Statement> outerF...
"public Object fetchVar() {\n if (left instanceof AccessOpt) {\n return ((AccessOpt) left).fetchVar();\n }\n if (left instanceof Operator) {\n return ((Operator) left).calculate();\n }\n if (left instanceof Elobj) {\n Object obj = ((Elobj) left).fetchVal();\n if (right instanc...
"protected Control createDialogArea(final Composite parent) {\n parent.setLayout(new GridLayout());\n text = new StyledText(parent, SWT.BORDER | SWT.MULTI | SWT.WRAP);\n text.setLayoutData(SWTUtil.createFillGridData());\n text.setText(this.queryString);\n text.addModifyListener(new ModifyListener() {\n ...
"public boolean setMemFactorLocked(int memFactor, boolean screenOn, long now) {\n mMemFactorLowered = memFactor < mLastMemOnlyState;\n mLastMemOnlyState = memFactor;\n if (screenOn) {\n memFactor += ProcessStats.ADJ_SCREEN_ON;\n }\n if (memFactor != mProcessStats.mMemFactor) {\n if (mProces...
"public synchronized void addExemptPlayer(String player, String name) {\n exemptPlayers.add(player);\n log.info(\"String_Node_Str\" + name + \"String_Node_Str\" + player + \"String_Node_Str\");\n plugin.getConfig().set(\"String_Node_Str\", exemptPlayers.toString());\n plugin.saveConfig();\n}\n"
"void addNewTransactionIfNeeded(Transaction tx) {\n lock.lock();\n try {\n log.info(\"String_Node_Str\");\n Transaction storedTx = getTransaction(tx.getFullHash());\n if (storedTx == null) {\n log.info(\"String_Node_Str\");\n rawtransactions.put(new Sha256Hash(tx.getFull...
"public CommutativeMessage clone() {\n CommutativeMessage clone = copy();\n for (CommutativeMessage m : msgs) {\n clone.msgs.add(m.copy());\n }\n return clone;\n}\n"
"public void putChildren(RolapMember member, ArrayList children) {\n ChildrenList childrenList = new ChildrenList(this, member, children);\n CachePool.SoftCacheableReference ref = new CachePool.SoftCacheableReference(childrenList);\n final CachePool cachePool = CachePool.instance();\n if (cachePool.isRegist...
"public List<TdColumn> getColumns(String catalogName, String schemaPattern, String tablePattern, String columnPattern) throws SQLException {\n List<TdColumn> tableColumns = new ArrayList<TdColumn>();\n ResultSet columns = getConnectionMetadata(connection).getColumns(catalogName, schemaPattern, tablePattern, colum...
"public void writeLOB(DatabaseField field, Object value, ResultSet resultSet, AbstractSession session) throws SQLException {\n if (isBlob(field.getType())) {\n java.sql.Blob blob = (java.sql.Blob) resultSet.getObject(field.getName());\n blob.setBytes(1, (byte[]) value);\n session.log(SessionLog....
"protected static Object getReferenceWhenCopiedTo(Object obj, Address to) {\n if (ADDRESS_BASED_HASHING && !DYNAMIC_HASH_OFFSET) {\n Word statusWord = VM_Magic.getWordAtOffset(obj, STATUS_OFFSET);\n Word hashState = statusWord.and(HASH_STATE_MASK);\n if (hashState.EQ(HASH_STATE_HASHED) && !DYNAM...
"public void transferredResourceAdded(TransferredResource resource, boolean commit) {\n try {\n if (resource.getAncestorsPaths() != null && resource.getAncestorsPaths().size() > 0) {\n for (String ancestor : resource.getAncestorsPaths()) {\n TransferredResource resourceAncestor = Fol...
"public List<Record<FSEntry>> getFolderContents(List<Record<FSEntry>> folderRecordPath) {\n FSEntry lastEntry = folderRecordPath.get(folderRecordPath.size() - 1).getUserObject();\n if (lastEntry instanceof FSFolder) {\n FSEntry[] entryArray = ((FSFolder) lastEntry).list();\n ArrayList<Record<FSEntry...
"private Channel acquireUploadChannel() throws InterruptedException {\n Promise<Channel> channelReady = eventLoop.next().newPromise();\n channelPool.acquire().addListener((Future<Channel> channelAcquired) -> {\n if (!channelAcquired.isSuccess()) {\n channelReady.setFailure(channelAcquired.cause(...
"public Result createSynapse(String userId) throws Exception {\n UserSession session = getAuthenticatedSession(DEVELOPER);\n Study study = studyService.getStudy(session.getStudyIdentifier());\n Long userIdNum = Long.parseLong(userId);\n studyService.createSynapseProjectTeam(userIdNum, study);\n return ok...
"public boolean sell(CommandSender player, String[] s) {\n int amtSold = 1;\n int price = 0;\n MaterialData item = new MaterialData(0);\n if (!BSutils.hasPermission(player, \"String_Node_Str\", true)) {\n return true;\n }\n if ((s.length > 2) || (s.length == 0)) {\n return false;\n } ...
"private void registerDefaultMethodConverters(ClassInfo classInfo) {\n for (MethodInfo methodInfo : classInfo.methodsInfo().methods()) {\n if (!methodInfo.hasConverter()) {\n if (methodInfo.getDescriptor().contains(dateSignature) || (methodInfo.getTypeParameterDescriptor() != null && methodInfo.get...
"public String getStormpathApplicationHref() {\n return getProperty(ENTERPRISE_STORMPATH_APPLICATION_HREF);\n}\n"
"public Dimension dimension() {\n return dimension;\n}\n"
"public List getAllProblemMessages() {\n List ret = new ArrayList(_problemMessages);\n for (Iterator iter = _confReports.values().iterator(); iter.hasNext(); ) {\n ConfigurationResolveReport r = (ConfigurationResolveReport) iter.next();\n IvyNode[] unresolved = r.getUnresolvedDependencies();\n ...
"private void updateCountsAfterSamplingLabel(int sampleNumber, int p, int i) {\n labelPriorsCounts[p][labelsSamples[sampleNumber][p][i]]++;\n for (int j = 0; j < numberOfFunctions; j++) confusionMatrixCounts[p][clusterAssignmentSamples[sampleNumber][p][j]][labelsSamples[sampleNumber][p][i]][functionOutputsArray[j...
"public String toString() {\n StrBuilder httpString = new StrBuilder();\n httpString.append(protocolVersion).append(\"String_Node_Str\").append(statusCode).append(\"String_Node_Str\").append(statusMessage);\n httpString.appendNewLine();\n httpString.appendWithSeparators(headers, SystemUtils.LINE_SEPARATOR);...
"public String writeBundledImage(TreeLogger logger, GeneratorContext context) throws UnableToCompleteException {\n int nextLeft = 0;\n int maxHeight = 0;\n for (Iterator iter = orderedImageRects.iterator(); iter.hasNext(); ) {\n ImageRect imageRect = (ImageRect) iter.next();\n imageRect.left = ne...
"public TaskPlan getTaskPlan() {\n return plan;\n}\n"
"public boolean checkIfGrabsInput(THEvent event) {\n return (event instanceof GenericKeyboardEvent || event instanceof GenericClickEvent);\n}\n"
"private ArrayList createSchemaList(ResultSet schemaRs) {\n if (schemaRs == null) {\n return null;\n }\n ArrayList schemas = new ArrayList();\n try {\n while (schemaRs.next()) {\n rs = metaDataProvider.getAlltables(metaDataProvider.getCatalog(), schemaRs.getString(\"String_Node_Str\...
"private boolean addManagedFile(LibraryFileData newData, File file) {\n Category category = categoryManager.getCategoryForFile(file);\n if (category != Category.DOCUMENT && category != Category.PROGRAM) {\n newData.addManagedFile(file);\n return true;\n }\n return false;\n}\n"
"public void onSetupConfig(AppSetup setup) throws BadConfigurationException {\n appInfo = setup.getAppInfo();\n Config config = setup.getConfig();\n this.projectConfig = new ProjectConfig(config);\n this.projectName = projectConfig.getProjectName();\n File outDir = projectConfig.getOutDir();\n Config....
"public void run() {\n if (!waitingForCallback && isConnectedToNetwork() && lastBatch != null) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\", waitingForCallback, isConnectedToNetwork(), lastBatch);\n }\n makeNetworkRequest(lastBatch, false);\n } else {\n if...
"private void resolveTypeInternal(IJstType type, ResolutionResult rr) {\n promoteGlobals(type, m_controller.getJstTypeSpaceMgr(), rr);\n m_typeLinkerVisitor.setCurrentType(type);\n m_typeLinkerVisitor.setGroupName(type.getPackage().getGroupName());\n JstExpressionTypeLinkerTraversal.accept(type, m_typeLinke...
"private boolean initialSync() throws TryAgainException, FatalErrorException {\n LOGGER.info(\"String_Node_Str\");\n callback.setConsistentState(false);\n HostAndPort syncSource;\n try {\n syncSource = syncSourceProvider.newSyncSource();\n LOGGER.info(\"String_Node_Str\" + syncSource + \"Strin...
"public void setShortAttribute(String key, short value) {\n throw notSupportedOnClient();\n}\n"
"public void run() {\n Class<T> clazz = (Class<T>) type;\n try {\n injector.initializeBinding(binding);\n } catch (ResolveFailedException e) {\n injector.errorHandler.handle(source, e.getMessage());\n createBinding(source, shouldPreload, invalidBinding(injector, key, source));\n }\n}\n"...
"public TypeAbstraction meet(TypeAbstraction rhs) {\n if (rhs == TOP) {\n return this;\n } else {\n if (rhs instanceof PointType) {\n PointType other = (PointType) rhs;\n if (type.equals(other.type)) {\n return this;\n } else if (type.isArrayClass() ||...
"private void updateChangeSummaryWithOriginalValues() {\n if (isLogging() && (!((SDOChangeSummary) getChangeSummary()).isDirty(this)) && (!((SDOChangeSummary) getChangeSummary()).isCreated(this))) {\n ((SDOChangeSummary) getChangeSummary()).getOriginalValueStores().put(this, _getCurrentValueStore());\n ...
"public Conditional<Instruction> apply(FeatureExpr ctx, Integer aref) {\n if (aref == MJIEnv.NULL) {\n pushCtx = Conditional.andNot(pushCtx, ctx);\n return new One<>(new EXCEPTION(ArrayLoadInstruction.this, \"String_Node_Str\", \"String_Node_Str\"));\n }\n final ElementInfo e = ti.getElementInfoW...
"public void onCreateCustom(SQLiteDatabase db) {\n String CREATE_TABLE_Cameras = \"String_Node_Str\" + TABLE_CAMERA + \"String_Node_Str\" + KEY_ID + \"String_Node_Str\" + \"String_Node_Str\" + KEY_CAMERA_ID + \"String_Node_Str\" + \"String_Node_Str\" + KEY_CAMERA_NAME + \"String_Node_Str\" + \"String_Node_Str\" + KE...
"public void run() {\n if (fTable.isDisposed()) {\n return;\n int topIndex = fTable.getTopIndex();\n if (topIndex != 0) {\n fTableTopEventRank += topIndex;\n refreshTable();\n fSlider.setSelection(fTableTopEventRank);\n fTable.setTopIndex(0);\n }\n}\n"
"public void execute(AdminCommandContext context) {\n ActionReport report = context.getActionReport();\n if (serviceName == null) {\n report.setMessage(localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\"));\n report.setActionExitCode(ActionReport.ExitCode.FAILURE);\n return;\...
"private List<Instant> getInstants(ExecutionTime executionTime, ZonedDateTime startTime, ZonedDateTime endTime) {\n List<Instant> instantList = new ArrayList<>();\n Optional<ZonedDateTime> onext = executionTime.nextExecution(startTime);\n ZonedDateTime next = onext.orElse(null);\n while (next != null && nex...
"protected CategoryItem[] parseItems(SessionConfig config) throws IOException {\n if (config == null) {\n return new CategoryItem[0];\n }\n ItemConfig[] confItems = config.getItems();\n CategoryItem[] rval = new CategoryItem[confItems.length];\n String base = config.getItemBase();\n for (int i ...
"private static String jsonizeQuestion(Question question) throws SurveyException {\n String options = jsonizeOptions(Arrays.asList(question.getOptListByIndex()));\n String branchMap = jsonizeBranchMap(question.branchMap);\n StringBuilder qtext = new StringBuilder();\n try {\n for (Component q : quest...
"public void widgetSelected(SelectionEvent event) {\n if (fileFieldJSON.getResult() == null) {\n return;\n }\n String text = fileFieldJSON.getText();\n if (isContextMode()) {\n ContextType contextType = ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection(), true);...
"public void handleEvent(Event e) {\n try {\n String connectionID = null;\n StructuredSelection sel = (StructuredSelection) comboViewer.getSelection();\n if (sel.getFirstElement() instanceof FtpConnectionProperties) {\n connectionID = ((FtpConnectionProperties) sel.getFirstElement())....
"public static void navigateToAlbumDetail(Context context, ImageView view, String transName, String albumName, long id) {\n Fragment fragment = AlbumDetailFragment.newInstance(transName, albumName, id);\n FragmentTransaction transaction = ((AppCompatActivity) context).getSupportFragmentManager().beginTransaction(...
"public void onConnectivityUpdate(RCDevice device, RCConnectivityStatus connectivityStatus) {\n handleConnectivityUpdate(connectivityStatus, null);\n}\n"
"protected void handlePacket(NEDataPacket packet) {\n String[] data = packet.getData();\n Channel ioChannel = packet.getChannel();\n if (data.length == 0) {\n return;\n }\n String eventType = data[0];\n System.err.println(\"String_Node_Str\" + eventType + \"String_Node_Str\");\n if (eventTyp...
"public static Object invokeBinaryMethod(String binary, Object target, Object[] values, Stream[] streams, String[] prefixes, File taskSandboxWorkingDir) {\n Object retValue = null;\n try {\n retValue = GenericInvoker.invokeBinaryMethod(binary, values, streams, prefixes, taskSandboxWorkingDir, System.out, S...
"public static boolean isTicketValid(Project project) throws ServerException, IOException, URISyntaxException {\n if (!isTicketSet(project)) {\n return false;\n }\n String ticket = ticketMappings.get(project).getTicket();\n return MMSUtils.validateCredentials(project, ticket).equals(username);\n}\n"
"private void measureThroughput(List<Event> eventList) {\n String threadName = Thread.currentThread().getName();\n long receivedTimeNanos = System.nanoTime();\n long producerIndex = 0;\n long timeStampNanos = 0;\n if (continuityCheckEnabled && !isEventsContinuous(eventList)) {\n log.warn(\"String_...
"private void loadAvatar() {\n if (userCustomData != null && !TextUtils.isEmpty(userCustomData.getAvatar_url())) {\n ImageLoader.getInstance().displayImage(userCustomData.getAvatar_url(), avatarImageView, Consts.UIL_USER_AVATAR_DISPLAY_OPTIONS);\n }\n}\n"
"public void testInterceptContinueFormELImmediate() throws Exception {\n isInterceptedMethod = true;\n hamClass = FORM_CLASS;\n ltci.setMPP(mpp);\n final String elValue = \"String_Node_Str\";\n final String elWrapped = \"String_Node_Str\" + elValue + \"String_Node_Str\";\n Properties props = new Prope...
"public void onReceiveNewSession(QBRTCSession session) {\n Log.d(CALL_INTEGRATION, \"String_Node_Str\");\n if (getVideoChatHelperState().ordinal() < VideoHelperStates.RTC_CLIENT_PROCESS_CALLS.ordinal()) {\n setVideoChatHelperState(VideoHelperStates.RTC_CLIENT_PROCESS_CALLS);\n Log.d(CALL_INTEGRATION...
"public void putCachedUpdateCalls(Vector updateFields, Vector updateCalls) {\n Vector vectorToCache = updateCalls;\n if (!updateCalls.isEmpty()) {\n int updateCallsSize = updateCalls.size();\n vectorToCache = new NonSynchronizedVector(updateCallsSize);\n for (int i = 0; i < updateCallsSize; i...
"public List<Flow> getFlows(String flowId) {\n String where = \"String_Node_Str\";\n Value parameters = Values.parameters(\"String_Node_Str\", flowId);\n return loadFlows(where, parameters);\n}\n"
"public Object[] currentState() {\n return new Object[] { expiredEventChunk.getFirst(), count };\n}\n"
"public void hardShouldConquerEasy() throws MapLoadException {\n holdBattleBetween(EPlayerType.AI_HARD, EPlayerType.AI_EASY, 75 * MINUTES);\n}\n"
"private Point[] genRelativeControls(Point start, Point end, int numofcontrols) {\n if (numofcontrols < 3 || numofcontrols > 4) {\n return null;\n }\n calc.distanceBetween(start, end);\n double angle = Math.atan2(end.y - start.y, end.x - start.x);\n ArrayList<Point> result = new ArrayList<Point>()...
"public SDOType getType(Class interfaceClass) {\n SDOType type = (SDOType) getInterfacesToSDOTypeHashMap().get(interfaceClass);\n if (type != null) {\n return type;\n }\n Iterator iter = getTypesHashMap().keySet().iterator();\n while (iter.hasNext()) {\n QName key = (QName) iter.next();\n ...
"public void testAddQualifiedFieldType() throws Exception {\n javaClass.addField().setName(\"String_Node_Str\").setType(String.class.getName()).setStringInitializer(\"String_Node_Str\").setPrivate();\n Field fld = javaClass.getFields().get(javaClass.getFields().size() - 1);\n fld.getOrigin();\n assertEquals...
"public Image getImage(Object obj) {\n if (obj instanceof XSDElementDeclaration) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n boolean isConcept = false;\n EList l = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = l.iterator(); iter.hasNext(); ) {\n ...
"private Map<String, String>[] getGeneralizationFunctions(String[][][] hierarchies, int index) {\n Map<String, String>[] result = new HashMap[hierarchies[index][0].length];\n for (int level = 0; level < hierarchies[index][0].length; level++) {\n Map<String, String> map = new HashMap<String, String>();\n ...
"public static String getJavaRegexp(Pattern pattern) {\n return getRegexp(pattern, \"String_Node_Str\");\n}\n"
"public static void removeComponentImage(String name) {\n if (name != null && !name.equals(\"String_Node_Str\")) {\n for (IComponent component : ComponentsFactoryProvider.getInstance().getComponents()) {\n if (name.equals(component.getName())) {\n String md5Desc16 = MD5.getMD5(compon...
"public static void loadConfiguration(String configDir) {\n if (configDir == null) {\n LOG.warn(\"String_Node_Str\");\n return;\n }\n final File confDirFile = new File(configDir);\n if (!(confDirFile.exists() && confDirFile.isDirectory())) {\n LOG.warn(\"String_Node_Str\" + configDir + ...
"protected Properties getConfiguration(String configPrefix, FilterConfig filterConfig) throws ServletException {\n Properties props = new Properties();\n Enumeration<?> names = filterConfig.getInitParameterNames();\n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n ...
"protected void internalProcessHttpErrorResponse(HttpWebRequest httpWebResponse, Exception webException, TraceFlags responseHeadersTraceFlag, TraceFlags responseTraceFlag) throws Exception {\n EwsUtilities.EwsAssert(500 != httpWebResponse.getResponseCode(), \"String_Node_Str\", \"String_Node_Str\");\n this.proces...
"public StackDescription describeStack(User user, Stack stack, Credential credential) {\n AwsTemplate awsTemplate = (AwsTemplate) stack.getTemplate();\n AwsCredential awsCredential = (AwsCredential) credential;\n DescribeStacksResult stackResult = null;\n DescribeInstancesResult instancesResult = null;\n ...
"protected List<String> getRelatedJobFolderNames(ProcessItem process, Set<String> jobNameVersionChecked) {\n List<String> jobFolderNames = new ArrayList<String>();\n String jobName = process.getProperty().getLabel();\n String jobVersion = process.getProperty().getVersion();\n String id = projectName + \"Str...
"public int doProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException {\n String buttonPressed = Util.getSubmitButton(request, NEXT_BUTTON);\n Item item = subInfo.getSubmissionItem().getIte...
"private void detach(boolean fromDelete, boolean updateSequence) {\n SDOProperty containmentProperty = getContainmentProperty();\n if ((containmentProperty != null) && containmentProperty.isReadOnly()) {\n throw new UnsupportedOperationException(\"String_Node_Str\" + containmentProperty.getName() + \"Strin...
"public void cleanupUnmodified() {\n Iterator<Long> iterator = resultModel.keySet().iterator();\n while (iterator.hasNext()) {\n Long oid = iterator.next();\n IdEObject idEObject = resultModel.get(oid);\n IdEObject originalObject = oldModel.get(oid);\n if (originalObject != null) {\n ...
"public ArrayList<MapEntry> getAllEntries() {\n ArrayList<MapEntry> allEntries = new ArrayList<MapEntry>();\n for (int address = 0; address < entries.length; address++) {\n MapEntry entry = getEntry(address);\n if (entry != null) {\n allEntries.add(entry);\n }\n }\n return al...
"public MethodInfo identityGetter() {\n for (MethodInfo methodInfo : methodsInfo().getters()) {\n AnnotationInfo annotationInfo = methodInfo.getAnnotations().get(GraphId.CLASS);\n if (annotationInfo != null) {\n if (methodInfo.getTypeDescriptor().equals(\"String_Node_Str\")) {\n ...
"public Double getMedian() {\n return median;\n}\n"
"public void start(Context context) {\n if (!initialized) {\n initialized = true;\n final List<TrackFile> trackFiles = TrackFiles.getTracks(context);\n for (TrackFile trackFile : trackFiles) {\n trackState.put(trackFile, new TrackState.TrackNotUploaded(trackFile));\n }\n } e...
"private boolean isDependency(ZipNode module, TinkerConfig config, ModStateManager sm) throws IOException {\n int numDependencies = 0;\n for (Mod mod : sm.getMods()) {\n try {\n if (modHasArchive(mod) && ModStructure.inspectArchive(config, mod).usesModule(module)) {\n numDependenc...
"public void dumpState() {\n Log.d(TAG, \"String_Node_Str\" + mRS);\n Log.d(TAG, \"String_Node_Str\" + mRollo);\n ApplicationInfo.dumpApplicationInfoList(TAG, \"String_Node_Str\", mAllAppsList);\n Log.d(TAG, \"String_Node_Str\" + mArrowNavigation);\n Log.d(TAG, \"String_Node_Str\" + mStartedScrolling);\n...
"public void selectionChanged(SelectionChangedEvent event) {\n StructuredSelection selection = (StructuredSelection) event.getSelection();\n CatalogIndicator firstElement = (CatalogIndicator) selection.getFirstElement();\n if (firstElement != null) {\n schemaTableViewer.setInput(firstElement.getSchemaIn...
"public void endRow(IRowContent row) {\n DimensionType height = row.getHeight();\n double rowHeight = height != null ? ExcelUtil.covertDimensionType(height, 0) / 1000 : 0;\n engine.endRow(rowHeight);\n}\n"
"public void execute() throws IllegalActionException {\n super.execute();\n if (_destinations != null) {\n Iterator destinations = _destinations.iterator();\n Iterator channels = _numbers.iterator();\n Iterator variables = _variables.iterator();\n while (destinations.hasNext()) {\n ...
"protected Template resoloveTemplate(Component templateComp, Component comp, Object data, int index, int size, String defaultName) {\n if (comp.getPage() == null)\n return null;\n final Binder binder = BinderUtil.getBinder(comp, true);\n final TemplateResolver resolver = ((BinderCtrl) binder).getTemplat...
"private void update() {\n if (model == null || model.getInputConfig() == null || model.getInputConfig().getInput() == null) {\n return;\n }\n DataHandle handle = model.getInputConfig().getInput().getHandle();\n root.setRedraw(false);\n for (TableItem item : features.getItems()) {\n item.di...
"protected void process(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner) {\n if (streamEventChunk.getFirst() == null) {\n return;\n }\n List<ComplexEventChunk<StreamEvent>> complexEventChunks = new ArrayList<ComplexEventChunk<StreamEvent>>();...
"private ICompletionProposal[][] guessParameters(char[][] parameterNames) throws JavaModelException {\n int count = parameterNames.length;\n fPositions = new Position[count];\n fChoices = new ICompletionProposal[count][];\n String[] parameterTypes = getParameterTypes();\n ParameterGuesser guesser = new P...
"private void performCubicInterpolation(RealVector currentPoint, RealVector currentDirection, double objectiveValueAtCurrentPoint, double dotProductOfObjectiveGradientAndDirection) {\n double previousStepSize = mostRecentStepSizes[0];\n double a0 = mostRecentStepSizes[1];\n double a1 = mostRecentStepSizes[0];\...
"protected void drawValues() {\n if (mDrawYValues && mCurrentData.getYValCount() < mMaxVisibleCount * mScaleX) {\n ArrayList<BarDataSet> dataSets = ((BarData) mCurrentData).getDataSets();\n float posOffset = 0f;\n float negOffset = 0f;\n if (mDrawValueAboveBar) {\n posOffset = ...
"public int getColumnCount() {\n return this.layer.getMatrix().getCols() + 1;\n}\n"
"public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {\n _name = name;\n ComponentLocator locator = ComponentLocator.getCurrentLocator();\n ConfigurationDao configDao = locator.getDao(ConfigurationDao.class);\n if (configDao == null) {\n s_logger.error(\"St...
"public Set<K> keySet() {\n return ((ReplicatedMapKeySet) invoke(new ClientReplicatedMapKeySetRequest(getName()))).getKeySet();\n}\n"
"public void showSession(IVoiceInteractionService service, Bundle args, int flags) {\n synchronized (this) {\n if (mImpl == null || mImpl.mService == null || service.asBinder() != mImpl.mService.asBinder()) {\n throw new SecurityException(\"String_Node_Str\");\n }\n final int callingP...
"public VirtualPath getParent() {\n Path normalizedPath = path.normalize();\n if (normalizedPath.getParent() != null) {\n return new VirtualPath(normalizedPath.getParent(), this.dir);\n }\n VirtualPath parent = new VirtualPath(path.getParent(), this.dir);\n return parent;\n}\n"
"public void forward(Date date) {\n if (hasNext()) {\n long a = next.getDate().getTime();\n long b = date.getTime();\n long m = 1000 * 60 * 60 * 24;\n long db = b / m;\n long da = (a - m) / m;\n if (db < da) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"String...
"public void run() {\n model.setSuggestList(result);\n Iterator<EvaluatedDescription> it = result.iterator();\n while (it.hasNext()) {\n Iterator<OWLOntology> ont = model.getOWLEditorKit().getModelManager().getActiveOntologies().iterator();\n EvaluatedDescription eval = it.next();\n while ...