content
stringlengths
40
137k
"public ActivityInfo getActivityInfo(ComponentName component, int flags, int userId) {\n if (!sUserManager.exists(userId))\n return null;\n enforceCrossUserPermission(Binder.getCallingUid(), userId, false, false, \"String_Node_Str\");\n synchronized (mPackages) {\n PackageParser.Activity a = mAct...
"protected void tearDown() throws Exception {\n super.tearDown();\n fEventProvider.dispose();\n fSyntheticEventProvider.dispose();\n}\n"
"private void updateStatusViews() {\n if (!isAdded() || mComment == null) {\n return;\n }\n final int statusTextResId;\n final int statusColor;\n CommentStatus commentStatus = CommentStatus.fromString(mComment.getStatus());\n switch(commentStatus) {\n case APPROVED:\n statusTe...
"public void basicTest() throws Exception {\n String htmlSource = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n HTMLDocumentImpl doc = loadPage(htmlSource);\n assertTrue(HEAD.equals(doc.getElementById(\"String_Node_Str\").getNodeName()));\n}\n"
"private void writeSound(final InputStream ais, final InputStreamInfo isInfo, final Sound[] result) throws SoundTransformException {\n final long neutral = this.getNeutral(isInfo.getSampleSize());\n for (int position = 0; position < (int) isInfo.getFrameLength(); position++) {\n final byte[] frame = new by...
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(targetPointer.getFirst(game, source));\n Permanent permanent = game.getPermanent(source.getSourceId());\n if (player == null || permanent == null) {\n return false;\n }\n int targetCount = game.getBattlefield().cou...
"public static String validateCredentials(Project project, String ticket) throws ServerException, IOException, URISyntaxException {\n URIBuilder requestUri = MMSUtils.getServiceUri(project);\n if (requestUri == null) {\n return \"String_Node_Str\";\n }\n requestUri.setPath(requestUri.getPath() + \"St...
"protected Actor _getNextActorToFire() throws IllegalActionException {\n if (_eventQueue == null) {\n throw new IllegalActionException(\"String_Node_Str\");\n }\n Actor actorToFire = null;\n DEEvent lastFoundEvent = null;\n DEEvent nextEvent = null;\n while (!_stopRequested) {\n if (_sto...
"protected Object createComponent(IComponent component, org.eclipse.swt.graphics.Point location) {\n if (component == null) {\n return null;\n }\n Object newNode;\n Event e = new Event();\n e.x = location.x;\n e.y = location.y;\n e.button = 1;\n e.count = 1;\n e.stateMask = 0;\n e.w...
"private String _momlAnnotate(NamedObj entity, String color, String expression) {\n String colorProperty = null;\n ColorAttribute currentColor = (ColorAttribute) (entity.getAttribute(\"String_Node_Str\"));\n if ((currentColor != null) && (color == null)) {\n colorProperty = \"String_Node_Str\";\n } e...
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n ...
"protected static Map<String, Object> docIterationMap(DocumentIteration doc, Map<String, String> contentInputs) {\n Map<String, Object> params = new HashMap<>();\n setParam(params, WORKSPACE_ID_KEY, doc.getWorkspaceId(), 0.6f);\n setParam(params, DOCUMENT_ID_KEY, doc.getDocumentRevision().getDocumentMasterId()...
"public boolean equals(Object o) {\n if (o instanceof GRCandidateProgram) {\n GRCandidateProgram prog = (GRCandidateProgram) o;\n return prog.toString().equals(this.toString());\n } else {\n return thisParseTree.equals(progParseTree);\n }\n}\n"
"public FactorGraph getClamped(VarConfig clampVars) {\n FactorGraph clmpFg = new FactorGraph();\n for (Var v : this.vars) {\n clmpFg.addVar(v);\n }\n for (Factor origFactor : this.getFactors()) {\n if (origFactor instanceof ClampFactor) {\n clmpFg.addFactor(origFactor);\n } e...
"void checkmark_green() {\n resetBkg();\n checkmarkGreen.setSelected(true);\n icon = NotificationItem.CHECKMARK_GREEN;\n}\n"
"private Relationship fetchNextRelOrNull() {\n boolean stopped = this.stop || this.sharedStop.value;\n boolean hasComeTooFarEmptyHanded = this.sharedFrozenDepth.value != null && this.sharedCurrentDepth.value > this.sharedFrozenDepth.value && !this.haveFoundSomething;\n if (stopped || hasComeTooFarEmptyHanded) ...
"public static <T> T deepCopy(T value, JAXBContext jc) {\n try {\n JAXBElement<?> elem;\n Class<?> valueClass;\n if (value instanceof JAXBElement<?>) {\n log.debug(\"String_Node_Str\");\n elem = (JAXBElement<?>) value;\n valueClass = elem.getDeclaredType();\n ...
"public int count(FilterCard filter, UUID playerId, Game game) {\n int result = 0;\n for (UUID card : this) {\n if (filter.match(game.getCard(card), sourceId, playerId, game)) {\n result++;\n }\n return result;\n}\n"
"static final AutoScale computeScale(IDisplayServer xs, OneAxis ax, DataSetIterator dsi, int iType, double dStart, double dEnd, Scale scModel, DataElement axisOriginal, FormatSpecifier fs, RunTimeContext rtc, int direction, double zoomFactor, int iMarginPercent) throws ChartException {\n final Label la = ax.getLabel...
"public void recordSetCovariance(final Spot vertex) {\n final UndoableEditRef ref = createRef();\n boolean createNewEdit = true;\n if (nextEditIndex > 0) {\n final UndoableEditRef edit = get(nextEditIndex - 1, ref);\n createNewEdit = !setVertexCovariance.isInstance(edit) || edit.isUndoPoint();\n ...
"public boolean performItemAction(MenuItem item, int flags) {\n MenuItemImpl itemImpl = (MenuItemImpl) item;\n if (itemImpl == null || !itemImpl.isEnabled()) {\n return false;\n }\n boolean invoked = itemImpl.invoke();\n final ActionProvider provider = item.getActionProvider();\n final boolean ...
"public void create(int stepNum) throws Exception {\n switch(stepNum) {\n case 0:\n if (properties.getAlarmName() == null) {\n properties.setAlarmName(getDefaultPhysicalResourceId());\n }\n ServiceConfiguration configuration = Topology.lookup(CloudWatch.class);\...
"private EJBLocalHomeImpl instantiateEJBLocalHomeImpl() throws Exception {\n EJBLocalHomeInvocationHandler invHandler = new EJBLocalHomeInvocationHandler(ejbDescriptor, localHomeIntf, proxyInvocationInfoMap);\n EJBLocalHomeImpl homeImpl = invHandler;\n Set proxyInterfacesSet = new LinkedHashSet();\n proxyIn...
"protected void okPressed() {\n try {\n inputGroup.setName(nameEditor.getText());\n String newToc = UIUtil.convertToModelString(tocEditor.getText(), true);\n if (newToc != inputGroup.getTocExpression()) {\n if (newToc == null || !newToc.equals(inputGroup.getTocExpression())) {\n ...
"private void assumeAllClassesCanObserveUninitializedSubclassFields(JProgram program) {\n canObserveSubclassFields.addAll(program.getDeclaredTypes());\n}\n"
"public void startup(PlatformConfig config) throws BirtException {\n IPlatformContext context = config.getPlatformContext();\n if (context == null) {\n throw new BirtException(\"String_Node_Str\", new Object[] { \"String_Node_Str\" });\n }\n String root = context.getPlatform();\n platformDirectory...
"public void updateIssue(Issue issue) throws IOException, AuthenticationException, NotFoundException, RedmineException {\n String query = getUpdateIssueURI(issue.getId());\n HttpPut httpRequest = new HttpPut(query);\n String NO_PROJECT_KEY = null;\n String xmlBody = RedmineXMLGenerator.toXML(NO_PROJECT_KEY,...
"public int compare(IntDoublePair o1, IntDoublePair o2) {\n int cmp = 0;\n if (firstIsKey) {\n cmp = Integer.compare(o1.v1, o2.v1);\n } else {\n if (o1.v2 < o2.v2) {\n cmp = -1;\n } else if (o1.v2 > o2.v2) {\n cmp = 1;\n }\n }\n if (!ascending) {\n ...
"public List executeQuery(String cqlQuery, Class clazz, List<String> relationalField, CassandraDataHandler dataHandler) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(clazz);\n CqlResult result = null;\n List returnedEntities = new ArrayList();\n try {\n MetamodelImpl me...
"public Result runBuild(DynamicBuild build, BuildExecutionContext buildExecutionContext, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {\n Map<String, Object> buildEnvironment = build.getEnvironmentWithChangeSet(listener);\n Map config = new GroovyYamlTemplateProcessor(getDot...
"private void setNodeTemplateName(ClusterRead clusterRead, String templateId) {\n NodeTemplateEntity template = null;\n if (templateId != null) {\n template = this.nodeTemplateDAO.findByMoid(templateId);\n }\n if (template != null) {\n clusterRead.setTemplateName(template.getName());\n } el...
"private boolean printToSocket() throws IOException {\n log.info(\"String_Node_Str\" + socketHost.get() + \"String_Node_Str\" + socketPort.get());\n Socket socket = null;\n DataOutputStream out = null;\n try {\n socket = new Socket(socketHost.get(), socketPort.get());\n out = new DataOutputStr...
"protected void action() {\n switch(state) {\n case AGGRESSIVE:\n break;\n case HITTING:\n hitEnemy(enemy);\n if (state != ESoldierState.HITTING) {\n break;\n }\n if (enemy.getHealth() <= 0) {\n enemy = null;\n ...
"private static boolean isCustomAnnotation(Annotation annotation) {\n Class annotationType = annotation.annotationType();\n if (customAnnotationTypes.contains(annotationType)) {\n return true;\n }\n isJavaLang = annotationType.getName().startsWith(\"String_Node_Str\");\n if (isJavaLang) {\n ...
"private EtcdResponse execute(HttpUriRequest request) throws EtcdClientException {\n try {\n return httpClient.execute(request, new JsonResponseHandler());\n } catch (IOException e) {\n throw unwrap(e);\n }\n}\n"
"public static List<IContainerEntry> getErrors() {\n List<IContainerEntry> input = new ArrayList<IContainerEntry>();\n try {\n Item item = null;\n IProxyRepositoryFactory proxyRepositoryFactory = CorePlugin.getDefault().getRepositoryService().getProxyRepositoryFactory();\n ITalendSynchronizer...
"private static boolean explodeFuncCalls(Logger logger, Function fn, ExecContext execCx, Block block) {\n boolean changed = false;\n Set<String> empty = Collections.emptySet();\n ListIterator<Instruction> it = block.instructionIterator();\n while (it.hasNext()) {\n Instruction i = it.next();\n ...
"public boolean shallBlock(AuRequest request) {\n final String cmd = request.getCommand();\n if (Events.ON_OPEN.equals(cmd))\n return false;\n return super.shallBlock(request);\n}\n"
"public void testNearCacheStats() throws Exception {\n String mapName = randomMapName();\n Config config = new Config();\n config.getMapConfig(mapName).setNearCacheConfig(new NearCacheConfig().setInvalidateOnChange(true));\n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);\n Haze...
"public static void handlePlotGenerationForSelectedTab(TopsoilTabPane tabs) {\n TopsoilTableController tableController = tabs.getSelectedTab().getTableController();\n TopsoilPlotType plotType = new PlotChoiceDialog(tableController.getTable().getIsotopeType()).select();\n if (plotType != null) {\n List<S...
"public void testBackSpaceCorrectlyWhenEditingManuallyPickedWord() {\n TestInputConnection inputConnection = (TestInputConnection) mAnySoftKeyboardUnderTest.getCurrentInputConnection();\n verifyNoSuggestionsInteractions();\n mAnySoftKeyboardUnderTest.simulateTextTyping(\"String_Node_Str\");\n verifySuggesti...
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws IOException, PluginException {\n this.setBrowserExclusive();\n br.getHeaders().put(\"String_Node_Str\", RandomUserAgent.generate());\n br.setCookie(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n String fileID...
"public List<MarkerSource> getMarkers() {\n List<MarkerSource> markers = new ArrayList<MarkerSource>();\n for (MissionItemRender itemRender : mMissionItems) {\n MarkerSource markerSource = itemRender.getMarkerSource();\n if (markerSource != null)\n markers.add(itemRender.getMarkerSource()...
"public Long resumeClusterCreation(String clusterName) throws Exception {\n logger.info(\"String_Node_Str\" + clusterName);\n ClusterEntity cluster = clusterEntityMgr.findByName(clusterName);\n if (cluster == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n throw...
"protected void nextLine() throws BuildException {\n int ch = -1;\n int eolcount = 0;\n eolStr.setLength(0);\n line.setLength(0);\n try {\n ch = reader.read();\n while (ch != -1 && ch != '\\r' && ch != '\\n') {\n line.append((char) ch);\n ch = reader.read();\n }...
"private HttpHeaders buildHeaders() {\n return buildHeaders(true);\n}\n"
"public InstanceType getDefaultInstanceType() {\n return DEFAULT_INSTANCE_TYPE;\n}\n"
"public void validateCountIndicator(IndicatorForm indicatorForm, Errors errors) {\n if (indicatorForm != null) {\n validateCohortIndicator(indicatorForm, errors);\n if (indicatorForm.getCohortDefinition() == null) {\n ValidationUtils.rejectIfEmpty(errors, \"String_Node_Str\", \"String_Node_S...
"public void setIaasConfigs(IaasConfig[] iaasConfigs) {\n this.iaasConfigs = ArrayUtils.clone(iaasConfigs);\n}\n"
"public String getSummary(Locale locale) throws SystemException {\n String userSegmentQueryRuleContains = _contains ? \"String_Node_Str\" : \"String_Node_Str\";\n String userSegmentQueryRuleAndOperator = _andOperator ? \"String_Node_Str\" : \"String_Node_Str\";\n return UnicodeLanguageUtil.format(portletConfig...
"public GraphTransaction<G, V, E> map(TLFGraph graph) throws Exception {\n Set<V> vertices = Sets.newHashSet();\n Set<E> edges = Sets.newHashSet();\n GradoopIdSet graphIds = GradoopIdSet.fromExisting(graphHead.getId());\n Map<Integer, GradoopId> vertexIdMap;\n vertexIdMap = Maps.newHashMap();\n for (T...
"public void onRestoreInstanceState(Parcelable state) {\n SavedState ss = (SavedState) state;\n mCurrentDate.set(ss.getSelectedDay(), ss.getSelectedMonth(), ss.getSelectedYear());\n mCurrentView = ss.getCurrentView();\n mMinDate.setTimeInMillis(ss.getMinDate());\n mMaxDate.setTimeInMillis(ss.getMaxDate()...
"public boolean check(RequirementsContext context) {\n if (context.mode.getMode() == RequirementsMode.Mode.NONE || context.list.isEmpty()) {\n return true;\n }\n dB.echoDebug(ChatColor.YELLOW + \"String_Node_Str\", context.scriptName);\n dB.echoDebug(\"String_Node_Str\", context.mode.getMode().toStri...
"protected NavigableMap<Long, TransactionManager.InProgressTx> decodeInProgress(BinaryDecoder decoder) throws IOException {\n int size = decoder.readInt();\n NavigableMap<Long, TransactionManager.InProgressTx> inProgress = Maps.newTreeMap();\n while (size != 0) {\n for (int remaining = size; remaining >...
"public boolean isAdmin(Player player) {\n return hasPermission(player, ADMIN_PERMISSION);\n}\n"
"private void showHelp() {\n LayoutInflater li = LayoutInflater.from(this);\n View view = li.inflate(R.layout.layout_help, null);\n StringBuilder msg = new StringBuilder();\n msg.append(getString(R.string.help_text_1));\n msg.append(\"String_Node_Str\");\n msg.append(R.string.help_text_2);\n msg.ap...
"public void open(PageView pageView) {\n boolean isHidden = hiddenPages.contains(pageView);\n if (view.hasPageView(pageView) || isHidden) {\n if (currentPageView != pageView) {\n this.previouslyVisiblePageView = currentPageView;\n if (currentPageView != null) {\n curren...
"final void activityStoppedLocked(ActivityRecord r, Bundle icicle, PersistableBundle persistentState, CharSequence description) {\n if (r.state != ActivityState.STOPPING) {\n Slog.i(TAG, \"String_Node_Str\" + r);\n mHandler.removeMessages(STOP_TIMEOUT_MSG, r);\n return;\n }\n if (persisten...
"public void update() {\n if (visible = (pos < Dungeon.level.heroFOV.length && Dungeon.level.heroFOV[pos])) {\n super.update();\n if ((delay -= Game.elapsed) <= 0) {\n delay = Random.Float(DELAY);\n ((FlowParticle) recycle(FlowParticle.class)).reset(x + Random.Float(DungeonTilemap...
"public XmlOutput createWriter(OutputStream os, String encoding) throws JAXBException {\n if (encoding.equals(\"String_Node_Str\")) {\n Encoded[] table = context.getUTF8NameTable();\n if (isFormattedOutput())\n out = new IndentingUTF8XmlOutput(os, indent, table);\n else {\n ...
"private void postResponseCleanup() {\n RequestContext context = requests.poll();\n currentResponse = null;\n listener.requestFinished(this, context);\n if (!keepAlive) {\n if (terminate == null)\n terminate(RequestFuture.SHUTTING_DOWN, true);\n if (disconnectIfNonKeepAliveRequest &...
"public void reset(PlotConfiguration settings, boolean hard) {\n for (PlotSettingsSubPanel subPanel : subPanels) {\n subPanel.reset(settings, hard);\n }\n updateState();\n}\n"
"protected Product readProductNodesImpl() throws IOException {\n productDirectory = RapidEyeReader.getInput(getInput());\n String metadataFileName = productDirectory.findFirst(RapidEyeConstants.METADATA_FILE_SUFFIX);\n File metadataFile = productDirectory.getFile(metadataFileName);\n if (metadataFile.exists...
"public void storeViewRowsExp() {\n tempViewRowsExp = storeTdExpValuesFromText(tab2_viewRows);\n}\n"
"private void checkSupport() throws IOException {\n if (tree.getAttributeTypeCodeArray() != null || tree.getTypeCodeArray() != null) {\n }\n}\n"
"protected int sizeOf(String key, Bitmap value) {\n return value.getRowBytes() * value.getHeight() / 1024;\n}\n"
"public String toString() {\n if (Operator.STARTS.equals(op)) {\n return (not ? \"String_Node_Str\" : \"String_Node_Str\") + getName() + \"String_Node_Str\" + getValue() + \"String_Node_Str\";\n }\n if (Operator.ENDS.equals(op)) {\n return (not ? \"String_Node_Str\" : \"String_Node_Str\") + getNa...
"private static OArchitectOProperty convertOPropertyFromJson(JSONObject jsonObject) {\n String name = !jsonObject.isNull(NAME) ? jsonObject.getString(NAME) : null;\n OType type = !jsonObject.isNull(TYPE) ? OType.valueOf(jsonObject.getString(TYPE)) : null;\n OArchitectOProperty property = null;\n if (!String...
"public void done(final Talk talk, ParseException e) {\n if (e != null) {\n Toast.makeText(TalkActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n return;\n }\n if (talk == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n TalkDetailsFragment fragment = (TalkDe...
"public boolean upgradeVmDb(long vmId, long serviceOfferingId) {\n VMInstanceVO vmForUpdate = _vmDao.createForUpdate();\n vmForUpdate.setServiceOfferingId(serviceOfferingId);\n ServiceOffering newSvcOff = _entityMgr.findById(ServiceOffering.class, serviceOfferingId);\n vmForUpdate.setHaEnabled(newSvcOff.get...
"public static void cleanupSemantic(final List diffs) {\n boolean changes = false;\n Stack equalities = new Stack();\n String lastEquality = null;\n int lengthChangesPre = 0;\n int lengthChangesPost = 0;\n ListIterator pointer = diffs.listIterator();\n Difference curDiff = pointer.hasNext() ? (Diff...
"public static void generateChunk(MinecraftServer server, int x, int z, int dimensionID) {\n ChunkProviderServer cps = server.worldServerForDimension(dimensionID).getChunkProvider();\n if (!chunkPrepared(cps, x, z, dimensionID)) {\n cps.provideChunk(x, z).needsSaving(true);\n cps.provideChunk(x, z +...
"private static boolean isCorrectSign(Sign sign, Block block) {\n return sign != null && sign.getBlock() == block || getAttachedFace(sign) == block;\n}\n"
"String getPrologHalf(boolean hideUuidIfNoId) {\n final StringBuilder sb = new StringBuilder(128).append('<').append(_tagnm);\n if ((!hideUuidIfNoId && !shallHideId()) || getId().length() > 0)\n sb.append(\"String_Node_Str\").append(getUuid()).append('\"');\n if (_props != null) {\n for (Iterator...
"public boolean equals(Object o) {\n if (o instanceof CacheKey) {\n CacheKey fk = (CacheKey) o;\n return fk.pattern.equals(pattern) && fk.locale.equals(locale);\n }\n return false;\n}\n"
"private void editWhiteSpace() {\n String[] values = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n XSDWhiteSpaceFacet currentValue = std.getWhiteSpaceFacet();\n String stringValue = \"String_Node_Str\";\n if (currentValue != null)\n stringValue = currentValue.getLexicalValue();...
"public void toOWLOntology(OWLAPIOntologyCollector owlAPIOntologyCollector) {\n OWLDataFactory factory = owlAPIOntologyCollector.getFactory();\n OWLIndividual me = factory.getOWLIndividual(getURI());\n for (ClassNode one : classes) {\n OWLClass c = factory.getOWLClass(one.getURI());\n OWLAxiom ax...
"private void loop(int port) {\n Socket socket = null;\n while (true) {\n try {\n socket = server.accept();\n connects++;\n if (connects > maxConnects) {\n LOG.debug(\"String_Node_Str\");\n socket.close();\n continue;\n ...
"private Set<String> validateRoleCategoryDependencies(ApiComponentInfo apiOriginComponentInfo, Set<String> allRoles) {\n List<String> masterRoles = new ArrayList<String>();\n List<String> slaveRoles = new ArrayList<String>();\n Set<String> NotExistDenpendencies = new HashSet<String>();\n ComponentCategory c...
"public InternalBuffer duplicate() throws IOException, InterruptedException {\n this.fileBufferManager.increaseBufferCounter(this.gateID, this.fileID);\n final FileBuffer dup = new FileBuffer((int) this.bufferSize, this.gateID, this.fileBufferManager);\n dup.writeMode = this.writeMode;\n dup.fileID = this.f...
"private void openAndCloseStartElement() {\n try {\n String namespaceURI = xPathFragment.getNamespaceURI();\n if (null == namespaceURI) {\n Iterator attributesIterator = null;\n if (null != attributes) {\n attributesIterator = attributes.iterator();\n }\n...
"private void readHeaders(InputStream in) throws IOException, RarException {\n markHead = null;\n newMhd = null;\n headers.clear();\n long position = 0;\n long read = 0;\n byte[] baseBlockBuffer = new byte[BaseBlock.BaseBlockSize];\n byte[] buff = BufferPool.getByteArray();\n BaseBlock block;\n ...
"private List<UpdateResult> checkNodeSchemaFromRepository(final Node node, boolean onlySimpleShow) {\n if (node == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> schemaResults = new ArrayList<UpdateResult>();\n List<IProcess2> openedProcesses = UpdateManagerUtils.getOpenedProcess(...
"private void printGenerateMainScript(GenericIndicator<?> indicator, String rFileName, String latexFileName) throws IOException {\n FileWriter os = new FileWriter(rFileName, true);\n String output = \"String_Node_Str\";\n os.write(output + \"String_Node_Str\");\n String problemList = \"String_Node_Str\";\n ...
"public ITmfContext seekEvent(final double ratio) {\n final ITmfContext context = seekEvent(Math.round(ratio * getNbEvents()));\n return context;\n}\n"
"private Multimap<Long, RecommendedItem> split(File dataDir, File trainingFile, double trainPercentage, double evaluationPercentage, RescorerProvider provider) throws IOException {\n DataFileContents dataFileContents = readDataFile(dataDir, evaluationPercentage, provider);\n Multimap<Long, RecommendedItem> data =...
"protected void selectionEvent(TableViewerCreatorColumnNotModifiable column, Object bean) {\n ITableEntry tableEntry = (ITableEntry) bean;\n if (!mapperManager.componentIsReadOnly()) {\n boolean removeEntry = MessageDialog.openConfirm(getShell(), Messages.getString(\"String_Node_Str\"), Messages.getString(...
"private int findDarkAnimationOriginIndex(PointF screenLocation) {\n if (screenLocation == null || screenLocation.y < mTopPadding) {\n return AnimationEvent.DARK_ANIMATION_ORIGIN_INDEX_ABOVE;\n }\n if (screenLocation.y > getBottomMostNotificationBottom()) {\n return AnimationEvent.DARK_ANIMATION_...
"private void drawYLabels() {\n if (!mDrawYLabels)\n return;\n mYLabelPaint.setTypeface(mYLabels.getTypeface());\n mYLabelPaint.setTextSize(mYLabels.getTextSize());\n mYLabelPaint.setColor(mYLabels.getTextColor());\n PointF c = getCenterOffsets();\n float factor = getFactor();\n int labelCou...
"public void run() {\n removeChild(index);\n}\n"
"public void deleteSchedule(Id.Program programId, SchedulableProgramType programType, String scheduleName) {\n StreamSizeScheduleTask scheduleTask = scheduleTasks.remove(getScheduleId(programId, programType, scheduleName));\n if (scheduleTask != null && scheduleTask.isRunning()) {\n activeTasks.decrementAn...
"public Object calculate(Object value) {\n if (value == null) {\n return new Double(-1);\n }\n if (intervalStart == null) {\n return new Double(Math.floor(DateTimeUtil.diffHour(defaultStart, (Date) value) / getDateIntervalRange()));\n } else {\n if (DateTimeUtil.diffHour((Date) interval...
"protected DbMaintainTask createDbMaintainTask() {\n return new MarkErrorScriptPerformedTask(getDbMaintainDatabases());\n}\n"
"public PurchaseOrder mergePurchaseOrders(List<PurchaseOrder> purchaseOrderList, Currency currency, Partner supplierPartner, Company company, Partner contactPartner, PriceList priceList) throws AxelorException {\n String numSeq = \"String_Node_Str\";\n String externalRef = \"String_Node_Str\";\n for (PurchaseO...
"private void saveValuesTo(ConWord saveWord) {\n if (((PTextField) txtConWord).isDefaultText() || saveWord == null) {\n return;\n }\n saveWord.setValue(txtConWord.getText());\n saveWord.setDefinition(txtDefinition.getText());\n saveWord.setLocalWord(((PTextField) txtLocalWord).isDefaultText() ? \"...
"private void addFamilyOrColumn(Delete delete, HBaseColumn col, Schema fieldSchema) {\n switch(fieldSchema.getType()) {\n case UNION:\n int index = getResolvedUnionIndex(fieldSchema);\n Schema resolvedSchema = fieldSchema.getTypes().get(index);\n addFamilyOrColumn(delete, col,...
"public boolean run(VerbRunner cb) {\n String p = w.getCustomProperty(prop);\n int v = 0;\n if (p != null) {\n try {\n v = Integer.parseInt(p);\n } catch (NumberFormatException e) {\n }\n }\n v += value;\n World.getInstance().setCustomProperty(prop, Integer.toString(v))...
"public static List<String> getAsList(Map params, String propName) {\n Object result = params.get(propName);\n if (result == null)\n return null;\n List<String> elements = new ArrayList<String>();\n if (result.getClass().isArray()) {\n int length = Array.getLength(result);\n for (int i ...
"private StereoVisualOdometry<I> createStereoDepth(boolean useKlt) {\n ImagePointTracker<I> tracker;\n if (useKlt) {\n Class derivType = GImageDerivativeOps.getDerivativeType(imageType);\n tracker = FactoryPointSequentialTracker.klt(600, new int[] { 1, 2, 4, 8 }, 3, 3, 2, imageType, derivType);\n ...
"protected void composeActivityDefinitionInner(ActivityDefinition element) throws IOException {\n composeDomainResourceElements(element);\n if (element.hasUrlElement()) {\n composeUriCore(\"String_Node_Str\", element.getUrlElement(), false);\n composeUriExtras(\"String_Node_Str\", element.getUrlElem...