content
stringlengths
40
137k
"public void loadChapter(String selChapter) throws IOException {\n undoStack.clear();\n try {\n chapter.load(selChapter);\n } catch (SerializationException ex) {\n if (ex.getCause() != null && ex.getCause() instanceof ClassNotFoundException) {\n EditorLogger.debug(\"String_Node_Str\");...
"private SDOType processSimpleComponentAnnotations(SDOType owningType, SimpleComponent simpleComponent, SDOProperty p, String targetNamespace, String defaultNamespace, SDOType sdoPropertyType) {\n String aliasNamesValue = (String) simpleComponent.getAttributesMap().get(SDOConstants.SDOXML_ALIASNAME_QNAME);\n if (...
"public int getPriority() {\n return PRIORITY.LOWER_STILL.getValue();\n}\n"
"public void serverControlChanges(List<ControlChange> changes) {\n for (ControlChange change : changes) if (change instanceof ControlChangeForPaddle)\n super.controlStateChanged(change.control, ((ControlChangeForPaddle) change).position);\n else\n super.controlStateChanged(change.control, change.sta...
"protected void addPriors() {\n PriorProbClassifier priorProbClassifier = new PriorProbClassifier(numClasses);\n priorProbClassifier.fit(dataSet, targetDistribution, weights);\n double[] probs = priorProbClassifier.getClassProbs();\n double[] scores = MathUtil.inverseSoftMax(probs);\n for (int i = 0; i <...
"public void install() {\n List<String> commands = ImmutableList.of(CommonCommands.installPackage(MutableMap.of(\"String_Node_Str\", \"String_Node_Str\"), \"String_Node_Str\"));\n newScript(INSTALLING).failOnNonZeroResultCode().body.append(commands).execute();\n}\n"
"protected void setup(String path, String outputFormat) {\n PRQACommandBuilder analysisCommand = report.getAnalysisTool().getBuilder();\n analysisCommand.prependArgument(PRQACommandBuilder.getProduct(report.getAnalysisTool()));\n analysisCommand.appendArgument(PRQACommandBuilder.getProjectFile(report.getReport...
"public static void enableWalkthroughStep(Step step, Activity activity) {\n DBAccessor dba = new DBAccessor(activity);\n WalkthroughStep ws = new WalkthroughStep(null);\n ws.set(step, false);\n dba.updateWalkthrough(ws);\n}\n"
"public void setGradientColor(float[] gradientColor) {\n this.gradientColor = gradientColor;\n setDisplayListDirty(true);\n}\n"
"public void APIInvocationFailure() throws Exception {\n String providerName = user.getUserName();\n APIRequest apiRequest = new APIRequest(APIName, APIContext, new URL(url));\n apiRequest.setTags(tags);\n apiRequest.setDescription(description);\n apiRequest.setVersion(APIVersion);\n apiRequest.setSan...
"private void notifyDataSetChanged() {\n runOnUiThread(new Runnable() {\n public void run() {\n if (mAdapter != null) {\n synchronized (mAdapter) {\n mAdapter.notifyDataSetChanged();\n }\n }\n }).show();\n }\n}\n"
"public PermissionCheckResult performCheck(String permission, String worldName) {\n try {\n PermissionUser user = PermissionsEx.getUser(this.player);\n String expression = user.getMatchingExpression(permission.toLowerCase(), worldName);\n if (expression != null || this.strictMode) {\n ...
"public int hashCode() {\n return value ? 1231 : 1237;\n}\n"
"private void validateManifest(final String manifestPath) throws Exception {\n final File manifest = new File(manifestPath);\n final File manifestParent = manifest.getParentFile();\n final String msg = sm.getString(\"String_Node_Str\", manifest.getParentFile().getAbsolutePath());\n if (manifestParent != nul...
"public By buildBy() {\n assertValidAnnotations();\n By defaultBy = buildDefaultBy();\n By mobileNativeBy = buildMobileNativeBy();\n if (defaultBy == null) {\n defaultBy = new ByIdOrName(((Field) annotatedElementContainer.getAnnotated()).getName());\n if (mobileNativeBy == null)\n mobileNat...
"public void saveLot(Lot lot, boolean saveFile) {\n Location corner1, corner2;\n corner1 = lot.getCorner1();\n corner2 = lot.getCorner2();\n String LotID = lot.getFullID();\n String value = \"String_Node_Str\";\n value += corner1.getX() + \"String_Node_Str\";\n value += corner1.getY() + \"String_No...
"public List<XWikiEclipseComment> getComments(XWikiEclipsePageSummary pageSummary) {\n List<XWikiEclipseComment> result = new ArrayList<XWikiEclipseComment>();\n List<Comment> comments = this.restRemoteStorage.getComments(pageSummary.getCommentsUrl());\n if (comments != null && comments.size() > 0) {\n ...
"private Set<ExposedPort> resolveExposedPorts(Map<String, Object> containerConfiguration, CreateContainerCmd createContainerCmd) {\n Set<ExposedPort> allExposedPorts = new HashSet<>();\n if (containerConfiguration.containsKey(PORT_BINDINGS)) {\n List<String> portBindings = asListOfString(containerConfigura...
"public void getProfile(HttpServiceRequest request, HttpServiceResponder responder, String userId) {\n Row row = profiles.get(new Get(userId));\n if (row.isEmpty()) {\n responder.sendError(404, \"String_Node_Str\");\n return;\n }\n responder.sendJson(200, toProfile(row));\n}\n"
"protected void addNewDefn(ColumnDefn defn) throws SemanticException {\n String name = defn.getColumnName();\n if (rsColumnMap != null) {\n if (rsColumnMap.get(name) != null) {\n name = getUniqueColumnName();\n defn.setColumnName(name);\n }\n ResultSetColumnHandle rsHand...
"public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {\n Object receive = e.getMessage();\n if (receive instanceof HttpResponse) {\n HttpResponse response = (HttpResponse) receive;\n if (NettyUtil.isError(response.getStatus())) {\n try {\n ...
"public void keyboardNextPage() {\n if (KeyboardPagingPolicy.CHANGE_PAGE == keyboardPagingPolicy) {\n setKeyboardSelectedRow(getPageSize(), true, false);\n } else if (KeyboardPagingPolicy.INCREASE_RANGE == keyboardPagingPolicy) {\n setKeyboardSelectedRow(getKeyboardSelectedRow() + PAGE_INCREMENT, tr...
"public void onClick(View view) {\n if (!checkSurveyData()) {\n return;\n }\n final ArrayList<String> selectedFacIds = new ArrayList<String>();\n if (!selectedFaculties.isEmpty()) {\n for (int j = 0; j < selectedFaculties.size(); j++) {\n for (int x = 0; x < fetchedFaculties.size();...
"public static void blockBreaks(BlockBreakEvent event) {\n dLocation location = new dLocation(event.getBlock().getLocation());\n for (Viewer viewer : viewers.values()) if (Utilities.isBlock(location, viewer.getLocation())) {\n event.getPlayer().sendMessage(ChatColor.RED + \"String_Node_Str\");\n eve...
"public void run() {\n if (report != null) {\n sb.append(report);\n }\n if (logFile != null) {\n try {\n sb.append(FileUtils.readTextFile(logFile, DROPBOX_MAX_SIZE, \"String_Node_Str\"));\n } catch (IOException e) {\n Slog.e(TAG, \"String_Node_Str\" + logFile, e);\n ...
"public static LevelNode getLevelNodeFromTree(LevelNode levelNode, int lineNum) {\n int nodeBeginLine = levelNode.getLocation().beginLine();\n int nodeEndLine = 0;\n if (levelNode instanceof TheoremNode) {\n nodeEndLine = ((TheoremNode) levelNode).getTheorem().getLocation().endLine();\n } else if (le...
"private boolean isAllowedPermutation(List<Integer> permutation) {\n List<Integer> seqClusterId = subunits.getSequenceClusterIds();\n for (int i = 0; i < permutation.size(); i++) {\n int j = permutation.get(i);\n if (seqClusterId.get(i) != seqClusterId.get(j)) {\n return false;\n }...
"public void testRowInstance() throws ScriptException {\n RowContent rowContent = (RowContent) reportContent.createRowContent();\n Map expressionMap = new HashMap();\n expressionMap.put(EXPRESSION, EXPRESSION_VALUE);\n IRowInstance rowInstance = new RowInstance(rowContent, null, null);\n rowInstance.setB...
"public static DynamicJAXBContext createContextFromOXM(ClassLoader classLoader, Map<String, ?> properties) throws JAXBException {\n if (properties == null || (properties.get(JAXBContextProperties.OXM_METADATA_SOURCE) == null && properties.get(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY) == null)) {\n throw new...
"protected void setupDatabase(Database database) throws Exception {\n dropAndCreateTable(new CreateTableStatement(null, TABLE_NAME).addPrimaryKeyColumn(\"String_Node_Str\", \"String_Node_Str\").addColumn(COL_NAME, DATA_TYPE), database);\n dropAndCreateTable(new CreateTableStatement(TestContext.ALT_SCHEMA, TABLE_N...
"private void drawChildren(Entity rootEntity, Batch batch, CompositeTransformComponent curCompositeTransformComponent, float parentAlpha) {\n NodeComponent nodeComponent = nodeMapper.get(rootEntity);\n Entity[] children = nodeComponent.children.begin();\n TransformComponent transform = transformMapper.get(root...
"protected void checkResourceAttachment(Match match) {\n final Comparison comparison = match.getComparison();\n if (comparison.getMatchedResources().isEmpty()) {\n return;\n }\n if (match.getLeft() == null && match.getRight() == null) {\n final String uri = match.getOrigin().eResource().getURI...
"public void mouseClicked(MouseEvent e) {\n Point2D_F32 latlon = new Point2D_F32();\n double scale = panelEqui.scale;\n int x = (int) (e.getX() / scale);\n int y = (int) (e.getY() / scale);\n if (!equi.isInBounds(x, y))\n return;\n distorter.getTools().equiToLonlatFV(x, y, latlon);\n distort...
"protected void customRun() throws InterruptedException {\n if (reconnection.get()) {\n Thread.sleep(50L);\n return;\n }\n try {\n boolean written = false;\n if (queue.size() > 0 || q.size() > 0) {\n queue.drainTo(q, q.available());\n Call call = q.poll();\n ...
"void fixGroupIndex(int j, int to, boolean infront) {\n for (Iterator it = _items.listIterator(j); it.hasNext() && (to < 0 || j <= to); ++j) {\n Object o = it.next();\n ((Listitem) o).setIndexDirectly(j);\n if (beginning != j && o instanceof Listgroup) {\n int[] g = getGroupsInfoAt(j ...
"public byte getMaxPlayers() {\n return getByte(20 + getString16Length(5) + getString16Length(13 + getString16Length(5)));\n}\n"
"public void write(DataOutput d) throws IOException {\n d.writeInt(type);\n d.writeInt(secondary_key);\n}\n"
"public Bundle perform(Bundle extras) throws Exception {\n QBChatDialog dialog = (QBChatDialog) extras.getSerializable(QBServiceConsts.EXTRA_DIALOG);\n long lastDateLoad = extras.getLong(QBServiceConsts.EXTRA_DATE_LAST_UPDATE_HISTORY);\n boolean isLoadOldMessages = extras.getBoolean(QBServiceConsts.EXTRA_LOAD_...
"public boolean removedByPlayer(IBlockState state, World world, BlockPos pos, EntityPlayer player, boolean willHarvest) {\n if (world.isRemote && player.capabilities.isCreativeMode) {\n RayTraceResult ray = Minecraft.getMinecraft().objectMouseOver;\n if (getDirection(world, pos) == ray.sideHit) {\n ...
"public Where<ModelClass> and(Condition condition) {\n mConditionQueryBuilder.and(condition);\n return this;\n}\n"
"AffineTransform getFrameXform(int frame) {\n int f1 = frame - 1;\n int f2 = frame + 1;\n int x1 = (f1 >= 0) ? perfX.get(f1) : perfX.get(0);\n int x2 = (f2 < perfX.size()) ? perfX.get(f2) : perfX.get(perfX.size() - 1);\n int y1 = (f1 >= 0) ? perfY.get(f1) : perfX.get(0);\n int y2 = (f2 < perfX.size())...
"protected String getData(Model model) {\n if (model == null || model.getInputConfig() == null || model.getInputConfig().getInput() == null) {\n return \"String_Node_Str\";\n }\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\");\n builder.append(\"String_Node_Str\...
"protected Object doHandle(Request request, Response response, Neo4jService service) {\n long start = System.currentTimeMillis(), time = start;\n time = trace(\"String_Node_Str\", time);\n String init = param(request, \"String_Node_Str\", DEFAULT_GRAPH);\n final Map geoff = service.mergeGeoff(init);\n ti...
"private void setRightFragment(int containerId, ControlFragment controlFrag, ThingListFragment<?> rightFrag) {\n if (isSinglePane) {\n setRightFragmentSinglePane(containerId, controlFrag, frag, false);\n } else {\n setRightFragmentMultiPane(containerId, controlFrag, rightFrag, false);\n }\n}\n"
"public void invokeGetValueShouldCallGetExpiry() {\n CountingExpiryPolicy expiryPolicy = new CountingExpiryPolicy();\n expiryPolicyServer.setExpiryPolicy(expiryPolicy);\n MutableConfiguration<Integer, Integer> config = new MutableConfiguration<>();\n config.setExpiryPolicyFactory(FactoryBuilder.factoryOf(ex...
"public IReportItemExecutor getNextChild() {\n if (null != childIterator && childIterator.hasNext()) {\n IContent child = (IContent) childIterator.next();\n return manager.createExecutor(child);\n }\n return null;\n}\n"
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n final PathStateDistribution other = (PathStateDistribution) obj;\n if (this.pathState...
"private synchronized void invalidateContainingBuildFile(Path path) throws IOException {\n Optional<Path> packageBuildFile = buildFileTreeCache.get().getBasePathOfAncestorTarget(path);\n packageBuildFiles.addAll(packageBuildFile.asSet());\n if (!enforceBuckPackageBoundary) {\n while (packageBuildFile.is...
"public static final long[][] bitwiseOr(final long[][] matrix1, final long[][] matrix2) {\n int rows = _rows(matrix1);\n int columns = _columns(matrix1);\n _checkSameDimension(\"String_Node_Str\", matrix1, matrix2);\n long[][] returnValue = new long[rows][columns];\n for (int i = 0; i < rows; i++) {\n ...
"protected Control createDialogArea(Composite parent) {\n try {\n parent.getShell().setText(\"String_Node_Str\");\n Composite composite = new Composite(parent, SWT.NULL);\n GridLayout layout = new GridLayout();\n layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_...
"private void registerPermanentServices() {\n ProblemsBP.getInstance();\n TestExecutionContributor.getInstance();\n propagateDataDir();\n Plugin.getDefault().getPreferenceStore().addPropertyChangeListener(new IPropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent event) {\n ...
"public boolean match(final String superClassInternalName) {\n if (superClassInternalName == null) {\n return false;\n }\n return false;\n}\n"
"public void run() {\n try {\n String token = GoogleAuthUtil.getTokenWithNotification(ctx, GetAccountName(ctx), GetOauth2Scope(), new Bundle());\n GDocsHelper.SaveAuthToken(ctx, token);\n Utilities.LogDebug(token);\n String gpsLoggerFolderId = GetFileIdFromFileName(token, \"String_Node_St...
"public void setColumnRealmObject(Dog columnRealmObject) {\n realmSetter$columnRealmObject(columnRealmObject);\n}\n"
"public void onOnGetInvitationEvent(OnOneInvitationEvent e) {\n mInvitation = e.get();\n if (mInvitation != null) {\n mHostControls.setVisibility(LinearLayout.GONE);\n mParticipantControls.setVisibility(LinearLayout.GONE);\n mStatusButton.setVisibility(Button.GONE);\n mAcceptButton.set...
"public void init(TableDefinition tableDefinition, ExecutionPlanContext executionPlanContext) {\n this.tableDefinition = tableDefinition;\n Connection con = null;\n int bloomFilterSize = RDBMSEventTableConstants.BLOOM_FILTER_SIZE;\n int bloomFilterHashFunctions = RDBMSEventTableConstants.BLOOM_FILTER_HASH_F...
"public void testInvalidBinding() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = colum...
"public void generate(final Generator generator) {\n String title = generator.getName();\n GeneratorUI ui = generator.getUI();\n if (ui != null) {\n ui.setup(generator);\n DialogDescriptor dd = new DialogDescriptor(ui.getPanel(), title);\n Object result = DialogDisplayer.getDefault().notif...
"public void should_be_able_to_create_http_await_strategy() {\n String containerDefinition = \"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\" + \"St...
"public void init() {\n data_out = outputs.create(widget.id, \"String_Node_Str\", Metadata.class, EMPTY);\n d(Player.onItemRefresh(refreshed -> refreshed.ifHasE(data, this::read)));\n cover.getPane().setDisable(true);\n cover.setBackgroundVisible(false);\n cover.setBorderToImage(false);\n cover.onFile...
"static boolean isUpdateAvailable(SitePluginModel plugin, WPOrgPluginModel pluginInfo) {\n if (pluginInfo == null || TextUtils.isEmpty(plugin.getVersion()) || TextUtils.isEmpty(pluginInfo.getVersion())) {\n return false;\n }\n Version currentVersion = new Version(plugin.getVersion());\n Version avail...
"public void testRevertToVMSnapshotCommand() {\n final Connection conn = Mockito.mock(Connection.class);\n final VMSnapshotTO snapshotTO = Mockito.mock(VMSnapshotTO.class);\n final List<VolumeObjectTO> volumeTOs = new ArrayList<VolumeObjectTO>();\n final RevertToVMSnapshotCommand vmSnapshot = new RevertToVM...
"private boolean collectProjectFilesFromDirectory(Collection files, File directory, Set directoriesVisited) {\n File[] contents = directory.listFiles();\n if (contents == null)\n return false;\n if (directoriesVisited == null) {\n directoriesVisited = new HashSet();\n try {\n di...
"public void saveDesign(ReportRunnable runnable) {\n RAOutputStream out = null;\n try {\n ReportDesignHandle design = runnable.getReport();\n out = archive.createRandomAccessStream(DESIGN_STREAM);\n ReportDesignHandle newDesign = DocumentUtil.serialize(design, out);\n designName = desi...
"public void testInlineHTML() {\n new TestInlineHTML();\n if (!GWT.isScript()) {\n try {\n new BrokenInlineHTML();\n throw new Error(ASSERTION_ERROR);\n } catch (AssertionError e) {\n }\n }\n}\n"
"public void onStop() {\n drone.events.removeDroneListener(this);\n resetDataStreamingForRcSetup();\n super.onStop();\n}\n"
"public void uiEvent(UIEvent uiEvent) {\n Vector<DownloadLink> newLinks;\n switch(uiEvent.getActionID()) {\n case UIEvent.UI_PAUSE_DOWNLOADS:\n logger.info(\"String_Node_Str\");\n pauseDownloads((Boolean) uiEvent.getParameter());\n break;\n case UIEvent.UI_START_DOWN...
"public synchronized void acceptRow(final Object[] row) throws IOException {\n try {\n while (!endReached && pendingRow != null) wait();\n if (endReached)\n throw new IOException(STREAM_ABORTED_MESSAGE);\n pendingRow = row;\n if (pendingRow == null)\n endReached = tr...
"public Response get(String path) {\n resp = Http.get(getBaseURL() + path);\n assertNotNull(resp);\n return resp;\n}\n"
"protected void sendPrivateMessage(QBChatMessage chatMessage, int opponentId, String dialogId) throws QBResponseException {\n QBPrivateChat privateChat = privateChatManager.getChat(opponentId);\n if (privateChat == null) {\n privateChat = createChatIfNotExist(opponentId);\n }\n if (!TextUtils.isEmpty...
"private Optional<ObjectId> resolveObject(final String refSpec) {\n ObjectId resolvedTo = null;\n Optional<Ref> ref = command(RefParse.class).setName(refSpec).call();\n if (ref.isPresent()) {\n resolvedTo = ref.get().getObjectId();\n } else {\n boolean hexPatternMatches = HEX_PATTERN.matcher(r...
"Optional<OpTime> getAppliedOpTime() {\n return Optional.ofNullable(appliedOpTime);\n}\n"
"private void reportWarning(String message) {\n this.setPageComplete(true);\n this.setMessage(message, DialogPage.WARNING);\n}\n"
"public static HttpResponseData doRequest(String method, String url, String etag, String body) throws Exception {\n if (RestServices.LOG.isDebugEnabled())\n RestServices.LOG.debug(\"String_Node_Str\" + url + \"String_Node_Str\" + etag + \"String_Node_Str\");\n HttpMethodBase request;\n if (\"String_Node...
"protected void populateItem(final ListItem<ConnConfProperty> item) {\n final ConnConfProperty property = item.getModelObject();\n final Label label = new Label(\"String_Node_Str\", property.getSchema().getDisplayName() == null || property.getSchema().getDisplayName().isEmpty() ? property.getSchema().getName() : ...
"protected void generateJsonMapper(TableDefinition table, JavaWriter out) {\n out.tab(1).println(\"String_Node_Str\");\n out.tab(1).println(\"String_Node_Str\", JsonObject.class.getName(), getStrategy().getFullJavaClassName(table, GeneratorStrategy.Mode.POJO));\n out.tab(2).println(\"String_Node_Str\", getStra...
"private Map<ImportItem, List<ImportItem>> getTestCaseItemMap(List<ImportItem> items) {\n Map<ImportItem, List<ImportItem>> map = new HashMap<ImportItem, List<ImportItem>>();\n ITestContainerProviderService testContainerService = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ITestContainer...
"protected void setUp() throws Exception {\n super.setUp();\n String reportFilename = gamePath + File.separator + gameName + \"String_Node_Str\" + Config.get(\"String_Node_Str\");\n File reportFile = new File(reportFilename);\n if (reportFile.exists()) {\n log.debug(\"String_Node_Str\" + reportFilena...
"public static void main(String[] args) {\n try {\n String policyFile = System.getProperty(\"String_Node_Str\");\n if (policyFile == null) {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n String configRoot = Bootstrap.getConfigurationRoot(Bootstrap.getRed5Root()...
"public IDataMember resolveField(Name name) {\n if (this.upperBound != null) {\n return this.upperBound.resolveField(name);\n }\n return null;\n}\n"
"public ValidationResult validateElementRef(ElementRef elementRef) {\n ValidationResult result = validateAccessor(elementRef);\n if (elementRef.getChoices().isEmpty()) {\n XmlTypeMirror baseType = elementRef.getBaseType();\n result.addError(elementRef.getPosition(), \"String_Node_Str\" + new QName(b...
"final boolean showDetails() {\n return showDetails;\n}\n"
"private TLResource buildTLResource() {\n return new ResourceBuilder().buildTL();\n}\n"
"public static PixelTransformAffine_F32 transformScale(ImageBase from, ImageBase to) {\n float scaleX = (float) (to.width - 1) / (float) (from.width - 1);\n float scaleY = (float) (to.height - 1) / (float) (from.height - 1);\n Affine2D_F32 affine = new Affine2D_F32(scaleX, 0, 0, scaleY, 0, 0);\n PixelTransf...
"private boolean isQueryConvertibleToCQL(KunderaQuery kunderaQuery) {\n EntityMetadata m = kunderaQuery.getEntityMetadata();\n if (kunderaQuery.isUpdateClause() && m.isCounterColumnType())\n return false;\n List<String> opsNotAllowed = Arrays.asList(new String[] { \"String_Node_Str\", \"String_Node_Str\...
"public boolean finish() {\n File sourceDir = new File(getSourceDirectoryName());\n if (!sourceDir.isDirectory()) {\n setErrorMessage(Messages.ImportTraceWizard_InvalidTraceDirectory);\n return false;\n }\n String sourceDirPath;\n try {\n sourceDirPath = sourceDir.getCanonicalPath();...
"private static boolean isCorrectSign(Sign sign, Block block) {\n return sign != null && (sign.getBlock() == block || getAttachedFace(sign) == block);\n}\n"
"public boolean requiresURL() {\n IModule localModule = applicationModule.getLocalModule();\n if (localModule == null) {\n return true;\n }\n AbstractApplicationDelegate delegate = ApplicationRegistry.getApplicationDelegate(localModule);\n return delegate == null || delegate.requiresURL();\n}\n"
"public byte readByte() {\n return source[startPosition + pos++];\n}\n"
"public static void main(String[] args) {\n BehaviorTreeBuilder treeBuilder = new BehaviorTreeBuilder();\n BehaviorNode node = treeBuilder.fromJson(\"String_Node_Str\");\n logger.info(\"String_Node_Str\", new DefaultBehaviorTreeRunner(node, null).step());\n treeBuilder.registerAction(\"String_Node_Str\", Pr...
"public int hashCode() {\n return hashCode;\n}\n"
"public static Plot getBottomPlot(World world, Plot plot) {\n if (plot.settings.getMerged(0)) {\n Plot p = PlotMain.getPlots(world).get(new PlotId(plot.id.x, plot.id.y - 1));\n if (p == null) {\n return plot;\n }\n return getBottomPlot(world, p);\n }\n if (plot.settings.g...
"public VMTemplateStoragePoolVO prepareTemplateForCreate(VMTemplateVO template, StoragePool pool) {\n template = _tmpltDao.findById(template.getId(), true);\n long poolId = pool.getId();\n long templateId = template.getId();\n VMTemplateStoragePoolVO templateStoragePoolRef = null;\n VMTemplateHostVO temp...
"public Pointcut concretize1(ResolvedType inAspect, ResolvedType declaringType, IntMap bindings) {\n if (isDeclare(bindings.getEnclosingAdvice())) {\n inAspect.getWorld().showMessage(IMessage.ERROR, WeaverMessages.format(WeaverMessages.CFLOW_IN_DECLARE, isBelow ? \"String_Node_Str\" : \"String_Node_Str\"), bi...
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (StatsActivity.STATS_TOUCH_DETECTED.equals(action)) {\n int tappedBar;\n if (mGraphView != null && (tappedBar = mGraphView.getTappedBar()) != -1) {\n mGraphView.highlightBar(tappedBar);\n ...
"public boolean equals(KDDMatrix matrix) {\n if (matrix.numberOfColumns() != nCols || matrix.numberOfRows() != nRows) {\n return false;\n }\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n if (!matrix.getElement(i, j).equals(getElement(i, j))) {\n ...
"private boolean removeAndIntrinsics(AliasTranslator translator, IntrinsicModel model, ExprNode node, RecordMetadata m) throws ParserException {\n switch(node.token) {\n case \"String_Node_Str\":\n return analyzeIn(translator, model, node, m);\n case \"String_Node_Str\":\n return ...
"public void mouseExit(MouseEvent e) {\n if (_tipShell != null && !_tipShell.isDisposed()) {\n Point pt = control.toDisplay(e.x, e.y);\n if (!_tipShell.getBounds().contains(pt)) {\n _tipShell.dispose();\n }\n }\n}\n"
"protected void setUp() throws Exception {\n super.setUp();\n ClassLoader testClassLoader = new TestVisibilityClassLoader(true);\n proxyTestClass = (Class<ProxyTest>) testClassLoader.loadClass(ProxyTest.class.getName());\n realClass = (Class<ProxyTestImpl>) testClassLoader.loadClass(ProxyTestImpl.class.getN...
"public static Class<?> getSuper(final boolean autobox, final Class<?>... classes) {\n outer: for (final Class<?> cls1 : classes) {\n for (final Class<?> cls2 : classes) {\n if (!ClassUtils.isAssignable(cls2, cls1, autobox)) {\n continue outer;\n }\n }\n retu...