content stringlengths 40 137k |
|---|
"public void actionPerformed(ActionEvent e) {\n synchronized (getComponentLock()) {\n if (getCurrentComponent() != null && getCurrentComponent().isShowing() && SwingUtilities.getWindowAncestor(getCurrentComponent()) != null && SwingUtilities.getWindowAncestor(getCurrentComponent()).getFocusOwner() != null) {\... |
"protected String toStringInternal() {\n if (rootId == null) {\n return relativeId.toExternalForm();\n }\n return rootId.toExternalForm() + \"String_Node_Str\" + relativeId.toExternalForm();\n}\n"
|
"public InputStream getResourceStream(String filename) throws IOException {\n if (filename == null) {\n logSpecial(\"String_Node_Str\", null);\n return null;\n }\n try {\n File f = getResourceFile(filename);\n if (f != null && f.exists()) {\n return new FileInputStream(f)... |
"public void renderLegend(Canvas c) {\n if (!mLegend.isEnabled())\n return;\n Typeface tf = mLegend.getTypeface();\n if (tf != null)\n mLegendLabelPaint.setTypeface(tf);\n mLegendLabelPaint.setTextSize(mLegend.getTextSize());\n mLegendLabelPaint.setColor(mLegend.getTextColor());\n float ... |
"public SearchResult find(final SearchCriteria searchCriteria) {\n throw new UnsupportedOperationException(CANNOT_FIND_ENTITY_FOR_DYNAMIC_DATA_DEFINITION);\n}\n"
|
"private static String getSide() {\n return FMLCommonHandler.instance().getSide().toString().toLowerCase(Locale.ENGLISH);\n}\n"
|
"public double calculatePerNodeMaxRecordStoreSize(RecordStore recordStore) {\n MapConfig mapConfig = recordStore.getMapContainer().getMapConfig();\n MaxSizeConfig maxSizeConfig = mapConfig.getMaxSizeConfig();\n NodeEngine nodeEngine = mapServiceContext.getNodeEngine();\n int configuredMaxSize = maxSizeConfi... |
"private AbstractStatement haveRecursivelyTheSameParent(List<AbstractStatement> list) {\n Map<AbstractStatement, Integer> depthOfNestingMap = new LinkedHashMap<AbstractStatement, Integer>();\n for (AbstractStatement statement : copiedList) {\n int depthOfNesting = 0;\n AbstractStatement parentStatem... |
"protected void updatePathwayPortals() {\n PathwayMultiFormInfo info = null;\n if (portalFocusWindow != null) {\n if (portalFocusWindow.info instanceof PathwayMultiFormInfo) {\n info = (PathwayMultiFormInfo) portalFocusWindow.info;\n }\n }\n for (PathwayMultiFormInfo i : pathwayInfo... |
"public Set keySet() {\n int length = getDOM().getChildNodes().getLength();\n HashSet keys = new HashSet(length);\n for (int index = 0; index < length; index++) {\n keys.add(getDOM().getChildNodes().item(index).getNodeName());\n }\n return keys;\n}\n"
|
"public boolean contains(Location l, int radius) {\n if (!l.getWorld().getName().equals(world.getName()) || !isDefined()) {\n return false;\n }\n int x = l.getBlockX();\n int y = l.getBlockY();\n int z = l.getBlockZ();\n if (lobbySetup) {\n if ((x + radius >= l1.getBlockX() && x - radius... |
"public void write(DataOutput out) throws IOException {\n byte[] schemaBytes = Bytes.toBytes(record.getSchema().toString());\n out.writeInt(schemaBytes.length);\n out.write(schemaBytes);\n byte[] recordBytes = Bytes.toBytes(StructuredRecordStringConverter.toJsonString(record));\n out.writeInt(recordBytes... |
"public void onChunkLoad(ChunkLoadEvent event) {\n List<Entity> entities = Arrays.asList(event.getChunk().getEntities());\n for (Entity entity : entities) {\n if (entity instanceof Wolf) {\n Wolf wolf = (Wolf) entity;\n if (wolf.isTamed()) {\n if (wolfManager.hasWolf(wo... |
"public int isProvidingStrongPower(IBlockAccess world, int x, int y, int z, int meta) {\n TileEntity te = world.getTileEntity(x, y, z);\n TilePlayerDetectorAdvanced detector = (te != null && te instanceof TilePlayerDetectorAdvanced) ? (TilePlayerDetectorAdvanced) te : null;\n if (detector != null)\n if ... |
"private NodeGroupEntity convertGroup(Gson gson, ClusterEntity clusterEntity, NodeGroupCreate group, String distro, boolean validateWhiteList) {\n NodeGroupEntity groupEntity = new NodeGroupEntity();\n if (group.getRoles() == null || group.getRoles().isEmpty()) {\n throw ClusterConfigException.NO_HADOOP_RO... |
"private List<DispoAnnotationData> copyCoverageData(ArtifactReadable source, DispoItem dest, OperationReport report) {\n boolean madeChange = false;\n List<String> covearageItems = source.getAttributeValues(CoverageUtil.Item);\n Map<String, Discrepancy> textToDiscrepancyMap = getTextToDiscrepancyMap(dest);\n ... |
"void serviceTimeout(ProcessRecord proc) {\n String anrMessage = null;\n synchronized (mAm) {\n if (proc.executingServices.size() == 0 || proc.thread == null) {\n return;\n }\n final long now = SystemClock.uptimeMillis();\n final long maxTime = now - (proc.execServicesFg ? S... |
"public void updateCRL(File file, String principal) {\n FileInputStream in = null;\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n try {\n if (file.exists() && file.length() > 0) {\n L.info(\"String_Node_Str\" + file + \"String_Node_Str\");\n in = new FileInputStrea... |
"private static void getAccounts() {\n List<AwsAccount> accounts = AccountDao.getAllAccountsWithBucket();\n for (AwsAccount account : accounts) {\n String name = account.getName();\n if (!ACCOUNT_MAP.containsKey(name)) {\n ACCOUNT_MAP.put(name, account);\n ACCOUNT_LIST.addEleme... |
"public void setGame(Game game, Direction human) {\n biddingPane = theWindow.getContentPane();\n biddingPane.setVisible(false);\n playPane = new JPanel();\n playPane.setPreferredSize(new Dimension(800, 750));\n theWindow.setContentPane(playPane);\n PlayControls playControls = new PlayControls(this);\n... |
"public void align4() throws IOException {\n int extra = 4 - (growingByteBuffer.position() % 4);\n if (extra > 0 && extra != 4) {\n growingByteBuffer.ensureExtraCapacity(extra);\n dataOutputStream.write(new byte[extra]);\n }\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD);\n if (controller != null) {\n for (UUID opponentId : game.getState().getPlayersInRange(cont... |
"protected Bounds getInnerRectangle(ArcRenderEvent are) {\n Bounds rctInner;\n if (are.getInnerRadius() > 0) {\n double radio = are.getHeight() / are.getWidth();\n rctInner = BoundsImpl.create(are.getTopLeft().getX() + (are.getWidth() - 2 * are.getInnerRadius()) / 2, are.getTopLeft().getY() + (are.g... |
"public void createControl(Composite parent) {\n if (getParameter().getFolderProvider() == null || getParameter().getFolderProvider().isNull()) {\n FolderProvider defaultFolder = new FolderProvider();\n defaultFolder.setFolderResource(getStoredFolder());\n getParameter().setFolderProvider(defaul... |
"private void onTextPaste() {\n String textToPaste;\n int currentapiVersion = android.os.Build.VERSION.SDK_INT;\n if (currentapiVersion >= android.os.Build.VERSION_CODES.HONEYCOMB) {\n ClipboardManager clipboard = (ClipboardManager) getContext().getSystemService(Context.CLIPBOARD_SERVICE);\n Clip... |
"public void start(Executor bossExecutor, Executor workerExecutor) {\n this.server = new ZMQServer();\n int port = this.config.getInteger(\"String_Node_Str\");\n server.listen(port, this, true);\n this.connectionReaper.schedule(new TimerTask() {\n public void run() {\n try {\n ... |
"public long length() {\n File f;\n try {\n f = topFS.loadFile(fullPath);\n } catch (IOException e) {\n return 0L;\n }\n return f.length();\n}\n"
|
"protected void unbindProducers(Module module) {\n MessageChannel outputChannel = module.getComponent(MODULE_OUTPUT_CHANNEL, MessageChannel.class);\n if (outputChannel != null) {\n messageBus.unbindProducer(getOutputChannelName(module), outputChannel);\n String tapChannelName = buildTapChannelName(m... |
"public static void writeJSONString(Object value, Writer out) throws IOException {\n if (value == null) {\n out.write(\"String_Node_Str\");\n return;\n }\n JSONFormatter formatter = formatters.get(value.getClass());\n if (formatter != null) {\n out.write(formatter.toJSONString(value));\... |
"public static boolean isSelinuxEnforcing() {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2) {\n return false;\n }\n try {\n final Process process = new ProcessBuilder(\"String_Node_Str\").start();\n try {\n final BufferedReader reader = new BufferedReader(new... |
"default SubscriptionCollection acquireSubscription(RequestContext requestContext) {\n Class<? extends SubscriptionCollection> subscriptionType = requestContext.getSubscriptionType();\n requestContext.viewType(subscriptionType);\n return acquireView(subscriptionType, requestContext);\n}\n"
|
"public int popFront() {\n final DoubleLinkedIntListItem item = head.next;\n item.next.prev = head;\n head.next = item.next;\n size--;\n return item;\n}\n"
|
"public void run() {\n if (worker != null) {\n view.getProgressBar().setVisible(true);\n view.getProgressBar().setIndeterminate(indeterminate);\n view.getProgressBar().setValue(0);\n worker.addPropertyChangeListener(new PropertyChangeListener() {\n public void propertyChange(Pr... |
"public void addAttribute(AttributeInfo attribute) {\n synchronized (attributes) {\n attributes.add(attribute);\n this.info = null;\n }\n}\n"
|
"public static boolean syncConfig() {\n enableRetrogen = configFile.get(\"String_Node_Str\", \"String_Node_Str\", enableRetrogen).getBoolean(enableRetrogen);\n boolean BoP = false;\n if (Loader.isModLoaded(\"String_Node_Str\")) {\n BoP = true;\n }\n babyHeatscarMinimum = configFile.get(\"String_No... |
"private final IContentProvider getProvider(Context context, String name) {\n synchronized (mProviderMap) {\n final ProviderRecord pr = mProviderMap.get(name);\n if (pr != null) {\n return pr.mProvider;\n }\n }\n IActivityManager.ContentProviderHolder holder = null;\n try {\n... |
"public void addGlobalElements(HashMap<QName, ElementDeclaration> additionalElements) {\n for (Entry<QName, ElementDeclaration> entry : additionalElements.entrySet()) {\n QName next = entry.getKey();\n if (next != null) {\n ElementDeclaration nextElement = additionalElements.get(next);\n ... |
"public boolean handleRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws ServletException, IOException {\n String urlString = translateRequestPathQuery(httpRequest);\n urlString = UrlOperations.fixupHTTPUrlWithOneSlash(urlString);\n boolean handled = true;\n WaybackRequest wbRe... |
"public void close() {\n synchronized (this) {\n if (client != null) {\n this.client.close();\n }\n }\n}\n"
|
"private ByteProcessor buildByteProcessor(String urlString, int mipmapLevel) {\n ByteProcessor byteProcessor = null;\n if (urlString != null) {\n final ImagePlus imagePlus = Utils.openImagePlusUrl(urlString);\n if (imagePlus == null) {\n LOG.error(\"String_Node_Str\", urlString);\n ... |
"public static void saveAppSettings(Context context) {\n if (apps == null)\n return;\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n StringBuilder tordApps = new StringBuilder();\n for (int i = 0; i < apps.length; i++) {\n if (apps[i].isTorified()) {\n ... |
"public MultivariateGaussian getLocalStateBelief() {\n if (!this.pathState.isOnRoad()) {\n return this.distribution;\n } else {\n final Vector mean = Preconditions.checkNotNull(this.pathState.getEdge().getCheckedStateOnEdge(this.distribution.getMean(), MotionStateEstimatorPredictor.getEdgeLengthErro... |
"public static void apply(ClassNode classNode) {\n injectInterface(classNode, MVC_HANDLER_TYPE);\n injectMethod(classNode, new MethodNode(BUILD_MVC_GROUP, ACC_PUBLIC, MVCGROUP_CLASS, params(param(ClassHelper.STRING_TYPE, MVC_TYPE)), ClassNode.EMPTY_ARRAY, returns(call(mvcGroupManagerInstance(), BUILD_MVC_GROUP, a... |
"public Set<MetaDataJson> getMetaData(User one, String hash) {\n Stack stack = stackRepository.findStackByHash(hash);\n if (stack != null && !stack.getInstanceMetaData().isEmpty()) {\n return metaDataConverter.convertAllEntityToJson(stack.getInstanceMetaData());\n }\n throw new NotFoundException(\"St... |
"public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n final float maxVelocity = 2500;\n if (velocityY > maxVelocity) {\n velocityY = maxVelocity;\n } else if (velocityY < -maxVelocity) {\n velocityY = -maxVelocity;\n }\n select(SELECT_NONE, false);\n ... |
"public IParameterDefn[] getParameterDefn() {\n return new IParameterDefn[] { new ParameterDefn(Constants.EXPRESSION_NAME, Constants.EXPRESSION_DISPLAY_NAME, false, true, SupportedDataTypes.CALCULATABLE, \"String_Node_Str\"), new ParameterDefn(\"String_Node_Str\", Messages.getString(\"String_Node_Str\"), true, false... |
"public Result execute(String command) throws IOException {\n Pattern pattern = Pattern.compile(\"String_Node_Str\");\n Matcher matcher = pattern.matcher(command.trim());\n int number = 0;\n String cmd = \"String_Node_Str\";\n String parameter;\n while (matcher.find()) {\n parameter = matcher.g... |
"public IValue convertValueTo(IValue value, IType targetType, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (!this.isConvertibleTo(targetType)) {\n return null;\n }\n final LiteralConversion conversion = new LiteralConversion(value, LazyTypes.UNWRAP);\n conversion.setType(thi... |
"protected SearchCacheEntry getSearchCacheEntry(SearchRequest searchRequest) {\n SearchCacheEntry searchCacheEntry;\n if (searchRequest.getOffset().orElse(0) == 0 || !searchRequestCache.containsKey(searchRequest.hashCode())) {\n SearchEntity searchEntity = new SearchEntity();\n searchEntity.setSourc... |
"public void pin() throws Exception {\n _tport1.getFD().pin(FailureDetectorImpl.OPEN_PIN);\n _tport2.getFD().pin(FailureDetectorImpl.OPEN_PIN);\n FDUtil.ensureFD(_tport1.getFD());\n FDUtil.ensureFD(_tport2.getFD());\n Assert.assertTrue(_tport1.getFD().getMembers().getMembers().size() == 2);\n Assert.a... |
"private void handleSystemQueryOptionInlineCount(final String inlineCount) throws UriParserException {\n if (\"String_Node_Str\".equals(inlineCount))\n uriResult.setInlineCount(InlineCount.ALLPAGES);\n else if (\"String_Node_Str\".equals(inlineCount))\n uriResult.setInlineCount(InlineCount.NONE);\n ... |
"public Report saveReport(Report report, String description) {\n boolean isPersisted = persistReportToDisk(report);\n if (isPersisted) {\n ReportRequest request = Context.getService(ReportService.class).getReportRequest(report.getRequest().getId());\n request.setStatus(Status.SAVED);\n reques... |
"public static URL computePURootURL(URL pxmlURL) throws IOException {\n String protocol = pxmlURL.getProtocol();\n if (\"String_Node_Str\".equals(protocol)) {\n result = new URL(pxmlURL, \"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(protocol)) {\n JarURLConnection conn = JarURLCon... |
"public final Postfix_expressionContext postfix_expression(int _p) throws RecognitionException {\n ParserRuleContext _parentctx = _ctx;\n int _parentState = getState();\n Postfix_expressionContext _localctx = new Postfix_expressionContext(_ctx, _parentState, _p);\n Postfix_expressionContext _prevctx = _loca... |
"public boolean hasNext() {\n if (this.traversalStack.isEmpty()) {\n if (this.numVisitedEntryVertices < 0) {\n return false;\n }\n numVisitedEntryVertices++;\n if (forward) {\n if (executionGraph.getNumberOfInputVertices(this.startStage) <= numVisitedEntryVertices) {... |
"public boolean transitTo(V vo, E e, Long id, StateDao<S, E, V> dao) {\n S currentState = vo.getState();\n S nextState = getNextState(currentState, e);\n boolean transitionStatus = true;\n if (nextState == null) {\n transitionStatus = false;\n }\n for (StateListener<S, E, V> listener : _listene... |
"public static OSMO parseOSMORootData(TupleQueryResult qres) {\n OSMO osmo = new OSMO();\n try {\n BindingSet b = qres.next();\n Set names = b.getBindingNames();\n for (Object n : names) {\n if (((String) n).equalsIgnoreCase(\"String_Node_Str\")) {\n String str = (b.... |
"public void setCovariance(RealMatrix covariance) {\n this.covariance = covariance;\n CholeskyDecomposition decomposition = new CholeskyDecomposition(covariance);\n this.inverseCovariance = decomposition.getSolver().getInverse();\n this.detCovariance = decomposition.getDeterminant();\n}\n"
|
"private void fetchTimeline(Intent intent) {\n if (App.DEBUG) {\n Log.d(TAG, \"String_Node_Str\");\n }\n List<Status> statuses = null;\n int page = intent.getIntExtra(EXTRA_PAGE, 0);\n String id = intent.getStringExtra(EXTRA_ID);\n String sinceId = intent.getStringExtra(EXTRA_SINCE_ID);\n St... |
"public static void startProgram(String[] args) {\n boolean doUpdate = true;\n boolean checkPax = true;\n boolean checkShowclix = true;\n boolean autoStart = false;\n boolean commandLine = false;\n if (args.length > 0) {\n System.out.println(\"String_Node_Str\");\n argsCycle: for (int a ... |
"private MDMServerDef getSelectedMDMServerDef() {\n IStructuredSelection selection = (IStructuredSelection) descCombo.getSelection();\n if (selection.isEmpty())\n return null;\n return (MDMServerDef) selection.getFirstElement();\n}\n"
|
"public static List<ServerList> loadServerList(String defaultUrl) {\n {\n Settings settings = SettingsManager.getInstance().getSettings();\n List<ServerList> slList = new ArrayList<ServerList>();\n Set<String> urls = new HashSet<String>();\n urls.add(defaultUrl);\n urls.addAll(sett... |
"protected void writeTestDataEntry(GuiParamValueConverter conv, int dataSetRow) {\n String oldTd = null;\n final IParamDescriptionPO desc = conv.getDesc();\n try {\n oldTd = dataManager.getCell(dataSetRow, desc);\n } catch (IndexOutOfBoundsException e) {\n }\n String td = createOrUpdateTestData... |
"private ReturnCode evaluateByMDM(String sqlStatement, ReturnCode returnCode) {\n if (mdmWebserviceConn == null || tdXmlDocument == null) {\n returnCode.setOk(false);\n return returnCode;\n }\n MdmStatement statement = mdmWebserviceConn.createStatement();\n String[] resultSet = null;\n this... |
"private void uploadAll() {\n if (BaseActivity.currentAuthState != AuthEvent.SIGNED_IN) {\n return;\n }\n if (!uploading) {\n final List<TrackFile> tracks = Services.trackStore.getLocalTracks();\n if (!tracks.isEmpty()) {\n TrackFile firstTrackFile = tracks.get(0);\n ... |
"public boolean transform(List<String> code, List<Long> lineNumbers, Object sourceInfo) {\n oldParameters = new ArrayList<VariableModel>();\n oldParametersCode = new ArrayList<String>();\n oldParametersLineNumbers = new ArrayList<Long>();\n newCode = new ArrayList<String>();\n parsed = true;\n Iterato... |
"public boolean onBreak(Player p, Block b, SlimefunItem item, UnregisterReason reason) {\n BlockMenu inv = BlockStorage.getInventory(b);\n if (inv != null) {\n for (int slot : getFuelSlots()) {\n if (inv.getItemInSlot(slot) != null) {\n b.getWorld().dropItemNaturally(b.getLocation... |
"public int generateNextValue(int reference) throws NoSuchValueException {\n Between between = (Between) expression;\n int candidate = new EveryFieldValueGenerator(between.getEvery()).generateNextValue(reference);\n if (candidate > between.getTo()) {\n throw new NoSuchValueException();\n }\n retur... |
"public int getMaxPlayers() {\n return this.getConfig().getInt(\"String_Node_Str\", Defaults.MAX_PLAYERS);\n}\n"
|
"public String getElementValue(Node subject, String namespace, String xmlLine, String attrName) {\n String ret = \"String_Node_Str\";\n Element subjectElement = (Element) subject;\n NodeList xmlNode = subjectElement.getElementsByTagNameNS(namespace, xmlLine);\n Node xmlNodeValue = xmlNode.item(0);\n try ... |
"public void windowDeiconified(WindowEvent e) {\n String title = getTitle();\n if (title.startsWith(\"String_Node_Str\")) {\n setTitle(title.substring(1, title.length()));\n }\n}\n"
|
"public static void removeServiceGroup(String name, int tenantId) throws RestAPIException, AutoscalerServiceCartridgeGroupNotFoundExceptionException, CloudControllerServiceCartridgeNotFoundExceptionException {\n AutoscalerServiceClient asServiceClient = getAutoscalerServiceClient();\n StratosManagerServiceClient ... |
"private Validator constructAndInitValidator(AnnotationBag annotationBag) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException {\n final BaseValidator validatorInstance = (BaseValidator) validatorClass.getConstructor().newInstance();\n validatorInstance.init(anno... |
"public void bindView(View view, Context context, Cursor cursor) {\n ViewHolder viewHolder = (ViewHolder) view.getTag();\n String avatarUrl = null;\n String senderName;\n MessageCache messageCache = ChatDatabaseManager.getMessageCacheFromCursor(cursor);\n boolean ownMessage = isOwnMessage(messageCache.ge... |
"public void doAllocate() throws IOException {\n int dataBlocks = (int) ((getPhysicalFile().length() + ProdosVirtualDisk.BLOCK_SIZE - 1) / ProdosVirtualDisk.BLOCK_SIZE);\n int treeBlocks = (((dataBlocks * 2) + (ProdosVirtualDisk.BLOCK_SIZE - 2)) / ProdosVirtualDisk.BLOCK_SIZE);\n if (treeBlocks > 1)\n t... |
"public void closeFunctionEntity(final CAstEntity n, WalkContext parentContext, WalkContext functionContext) {\n functionContext.cfg().makeExitBlock(functionContext.cfg().newBlock(true));\n SymbolTable symtab = ((AbstractScope) functionContext.currentScope()).getUnderlyingSymtab();\n Map<IBasicBlock, TypeRefer... |
"private void assignUnknownController(GCController controller) {\n for (int playerIndex = 0; playerIndex < NUM_PLAYERS; playerIndex++) {\n APAPlayer player = players.get(playerIndex);\n if (player == null) {\n player = new APAPlayer();\n players.set(playerIndex, player);\n ... |
"public boolean isInstalled() {\n DependencyFacet deps = project.getFacet(DependencyFacet.class);\n boolean hasDependency = deps.hasDependency(dep);\n return hasDependency && getEntityPackageFile().exists() && getConfigFile().exists();\n}\n"
|
"public boolean isReplaceable(IBlockAccess worldIn, BlockPos pos) {\n return base.getBlock().isReplaceable(new UCWBlockAccess(worldIn, false), pos);\n}\n"
|
"public void savePictureHash() {\n profilePictureSyncHash = profilePicture != null ? profilePicture.hashCode() : 0;\n}\n"
|
"public static void addStarFadeColors(Item fireworkStar, DyeColor... colors) {\n if (fireworkStar == null || fireworkStar.getType() != ItemType.FireworkStar) {\n return;\n }\n if (colors == null || colors.length < 1) {\n return;\n }\n if (verifyTags(fireworkStar, \"String_Node_Str\", COMPOU... |
"public String call() throws Exception {\n final int columnCount = adapter.getColumnCount();\n if (columnCount > 0) {\n int startIndex = getStartingColIndex(searchType) - 1;\n List<TableColumn> columns = ((TableView) getRealComponent()).getVisibleLeafColumns();\n for (int i = startIndex; i < ... |
"protected void refreshTopLevelNode() {\n RepositoryNode topLevelNode = getTopLevelNode();\n if (topLevelNode != null) {\n topLevelNode.setInitialized(false);\n topLevelNode.getChildren().clear();\n if (topLevelNode.getParent() instanceof ProjectRepositoryNode) {\n ((ProjectReposit... |
"public static synchronized boolean commit(Transaction tx) {\n Set<byte[]> changeSet = committingChangeSets.remove(tx.getWritePointer());\n if (changeSet != null) {\n if (hasConflicts(tx, changeSet)) {\n return false;\n }\n if (committedChangeSets.containsKey(nextWritePointer)) {\n... |
"public void preStartup() {\n super.preStartup();\n RunProcessPlugin.getDefault();\n CodeGeneratorActivator.getDefault();\n PerspectiveReviewUtil.resetPerspective();\n LoginTaskRegistryReader loginTaskRegistryReader = new LoginTaskRegistryReader();\n IRunnableWithProgress[] allLoginTasks = loginTaskRe... |
"double evaluateRPN() throws ParsingException {\n for (int i = 0; i < rpnExpression.length(); ++i) {\n char currentChar = rpnExpression.charAt(i);\n if (symbolIsDigit(currentChar)) {\n double result = Character.getNumericValue(currentChar);\n if (result == -1) {\n t... |
"public String toText() {\n NamedTrainToken token = getNameToken();\n if (token == null) {\n return super.toText();\n } else {\n return getId() + \"String_Node_Str\" + token.getId() + \"String_Node_Str\";\n }\n}\n"
|
"private static void createInitFunction(List<String> r, DbOperations dbOps) {\n r.add(\"String_Node_Str\");\n r.add(\"String_Node_Str\");\n for (Table table : dbOps.getDatabase().getTables()) {\n String sqlTableName = dbOps.convertToSqlName(table.getName());\n r.add(\"String_Node_Str\" + sqlTable... |
"public TranslatedLibrary resolveLibrary(VersionedIdentifier libraryIdentifier, List<CqlTranslatorException> errors) {\n if (libraryIdentifier == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (libraryIdentifier.getId() == null || libraryIdentifier.getId().equals(\"String_No... |
"protected void addDependencies(Model model) {\n try {\n getProcessorDependenciesManager().updateDependencies(null, model);\n final List<Dependency> dependencies = model.getDependencies();\n addCodesDependencies(dependencies);\n addChildrenDependencies(dependencies);\n } catch (Process... |
"public Suggestion makeSuggestion(Game game, Suggestion suggestion) throws InvalidSuggestionException {\n if (em.contains(game))\n em.refresh(game, LockModeType.PESSIMISTIC_WRITE);\n else\n game = em.find(game.getClass(), game.getId());\n Move move = suggestion.listMove();\n List<GamePlayer> p... |
"private void output(File intermediate) throws IOException {\n if (fArguments.size() >= 3) {\n File output = new File(fArguments.get(2));\n intermediate.renameTo(output);\n } else {\n try (FileInputStream iStream = new FileInputStream(intermediate)) {\n IOUtils.copy(iStream, System... |
"public void testCustomComponentWithFormProperty() throws RepositoryException, JSONException {\n Form form = solution.getForm(\"String_Node_Str\");\n Assert.assertNotNull(form);\n DataAdapterList dataAdapterList = new DataAdapterList(new TestFormController(form, client));\n Form tabForm = solution.createNew... |
"private void configureHeader() {\n headerPanel.add(headerLabel);\n headerPanel.setBorder(noBorder);\n headerPanel.setOpaque(false);\n menu.addMouseListener(menuHider);\n headerLabel.addMouseListener(new MouseAdapter() {\n public void mouseEntered(MouseEvent e) {\n headerPanel.setBorder... |
"public void savePostSettings() {\n Post post = mActivity.getPost();\n if (post == null)\n return;\n String password = (mPasswordEditText.getText() != null) ? mPasswordEditText.getText().toString() : \"String_Node_Str\";\n String pubDate = (mPubDateText.getText() != null) ? mPubDateText.getText().toS... |
"private void resetMySQL(AbstractSession session) {\n ArrayRecord record = null;\n try {\n record = (ArrayRecord) session.executeSQL(\"String_Node_Str\").get(0);\n session.executeNonSelectingSQL(\"String_Node_Str\" + record.get(\"String_Node_Str\"));\n } catch (DatabaseException x) {\n Abs... |
"private void checkAndCleanDataForTreeModels() throws IOException {\n String alg = super.getModelConfig().getTrain().getAlgorithm();\n if (!CommonUtils.isDesicionTreeAlgorithm(alg)) {\n return;\n }\n for (ColumnConfig columnConfig : columnConfigList) {\n if (columnConfig.isFinalSelect() && !co... |
"private File getCacheFile(int cacheIndex) {\n String tempDirStr = tempDir + this.fileNamePrefix;\n if (dir == null) {\n dir = new File(tempDirStr);\n dir.mkdirs();\n }\n return new File(tempDirStr + File.separatorChar + cacheIndex + \"String_Node_Str\");\n}\n"
|
"public Integer call() throws Exception {\n do {\n final Span span = queue.poll(5, TimeUnit.SECONDS);\n if (span != null) {\n final long start = System.currentTimeMillis();\n try {\n final String spanAsString = base64.encodeToString(spanToBytes(span));\n ... |
"private int create2ValueComposite(Composite condition) {\n if (expressionValue1 != null && !expressionValue1.isDisposed()) {\n return 0;\n }\n if (valueListComposite != null && !valueListComposite.isDisposed()) {\n valueListComposite.dispose();\n valueListComposite = null;\n }\n Gri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.