content
stringlengths
40
137k
"public boolean doesItemMatch(ItemStack keyStack, ItemStack checkedStack) {\n boolean isGood = false;\n for (RoutingFocusLogic logic : logicList) {\n if (isFirst) {\n isGood = logic.getDefaultMatch(keyStack, checkedStack);\n isFirst = false;\n continue;\n }\n }\n ...
"public boolean addFacet() {\n if (!hasFacet()) {\n try {\n IFacetedProject facetedProject = ProjectFacetsManager.create(project);\n if (facetedProject != null) {\n facetedProject.installProjectFacet(FACET.getDefaultVersion(), null, null);\n return true;\n ...
"private IndicatorUnit createPlainIndicatorUnit(IndicatorEnum indicatorEnum, Indicator indicator) {\n if (indicator == null) {\n IndicatorsFactory factory = IndicatorsFactory.eINSTANCE;\n indicator = (Indicator) factory.create(indicatorEnum.getIndicatorType());\n int sqlType = this.tdColumn.getJ...
"public byte[] downloadAttachmentContent(Attachment issueAttachment) throws IOException {\n byte[] result = null;\n URL url = new URL(issueAttachment.getContentURL());\n BufferedReader inputReader = null;\n try {\n final URL url = new URL(issueAttachment.getContentURL());\n final InputStream i...
"private List<AllocatedResource> collectAvailableResources() {\n List<AllocatedResource> availableResources;\n if (this.vertexToShareInstancesWith.get() != null) {\n availableResources = this.vertexToShareInstancesWith.get().collectAvailableResources();\n } else {\n availableResources = new Array...
"public void playCard(Player activePlayer, Supply supply, Card cardToPlay) {\n if (!this.cardsInPlay.contains(cardToPlay)) {\n if (!this.playedCards.contains(cardToPlay)) {\n this.cardsInPlay.add(cardToPlay);\n }\n }\n this.playedCards.add(cardToPlay);\n activePlayer.playCard(cardTo...
"public List getNullCapableValues() {\n return xPathObjectBuilder.getNullCapableValues();\n}\n"
"private void modifySourceMethod() {\n AST ast = sourceMethodDeclaration.getAST();\n MethodInvocation extractedMethodInvocation = ast.newMethodInvocation();\n sourceRewriter.set(extractedMethodInvocation, MethodInvocation.NAME_PROPERTY, ast.newSimpleName(slice.getExtractedMethodName()), null);\n ListRewrite...
"public boolean retainAll(Collection values) {\n getReadWriteLock().writeLock().lock();\n try {\n if (!isWritable())\n throw new IllegalStateException(\"String_Node_Str\");\n boolean changed = false;\n for (ListIterator i = listIterator(); i.hasNext(); ) {\n if (!values....
"private String getHiveTableName(String streamId) {\n return String.format(\"String_Node_Str\", streamId);\n}\n"
"public void basicSelect() {\n ClusterName targetCluster = new ClusterName(\"String_Node_Str\");\n List<LogicalStep> logicalSteps = new ArrayList<>();\n TableName tableName = new TableName(\"String_Node_Str\", \"String_Node_Str\");\n List<ColumnName> columnList = new ArrayList<>();\n ColumnName columnNam...
"public static int getTimestampLength(boolean supportsTimestampNanoseconds) {\n return supportsTimestampNanoseconds ? DRDAConstants.JDBC_TIMESTAMP_LENGTH : DRDAConstants.DRDA_OLD_TIMESTAMP_LENGTH;\n}\n"
"public void updateCraftingLogic(IGrid grid, IEnergyGrid eg, CraftingGridCache cc) {\n if (myLastLink != null) {\n if (myLastLink.isCanceled()) {\n myLastLink = null;\n cancel();\n }\n }\n if (isComplete) {\n if (inventory.getItemList().isEmpty())\n return;...
"public void measureBandwidth() {\n bandwidthTracker.measureBandwidth(getTotalAmountRead());\n}\n"
"public void onOptionClick(IconMenu.OptionClickEvent event) {\n event.setWillClose(false);\n event.setWillDestroy(false);\n IconMenu menu = event.getMenu();\n switch(event.getPosition()) {\n case 5:\n event.setWillClose(true);\n event.setWillDestroy(true);\n return;\n...
"public void testPBES2ConformanceTestDes() throws Exception {\n byte[] data = Base64.decode(\"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\" + \"Str...
"public List<ArtifactReadable> getRelatedArtifacts(ArtifactReadable art, IRelationTypeSide relationTypeSide) {\n if (art instanceof MockArtifact) {\n MockArtifact mArt = (MockArtifact) art;\n RelationsReadable readable = mArt.getRelatedArtifacts(relationTypeSide);\n return readable.getList();\n ...
"private static void checkThirdPartyRuleHasLicense(Rule rule, Package.Builder pkgBuilder, EventHandler eventHandler) {\n if (isThirdPartyPackage(rule.getLabel().getPackageIdentifier())) {\n License license = rule.getLicense();\n if (license == null) {\n license = pkgBuilder.getDefaultLicense...
"private void createChildrenNode(Tree tree, TreeItemContainer parentItem, TreeColumn[] treeColumns, IIndicatorNode[] branchNodes) {\n boolean expanded = false;\n for (int i = 0; i < branchNodes.length; i++) {\n IIndicatorNode indicatorNode = branchNodes[i];\n if (!indicatorNode.getLabel().equals(\"S...
"protected void beforeUpdate(AuthenticatedUser user, UserModel model) throws GuacamoleException {\n super.beforeUpdate(user, model);\n if (model.getIdentifier() == null || model.getIdentifier().trim().isEmpty())\n throw new GuacamoleClientException(\"String_Node_Str\");\n UserModel existing = userMapper...
"private static ImageDescriptor createDescriptor2(String path) {\n ImageDescriptor desc;\n try {\n java.net.URL url = new java.net.URL(path);\n url.openConnection();\n return ImageDescriptor.createFromURL(url);\n } catch (Exception e) {\n e.printStackTrace();\n desc = null;\n...
"public void updateChangeRecord(Object sourceClone, Object newValue, Object oldValue, ObjectChangeSet objectChangeSet, UnitOfWorkImpl uow) throws DescriptorException {\n AggregateChangeRecord changeRecord = (AggregateChangeRecord) objectChangeSet.getChangesForAttributeNamed(this.getAttributeName());\n if (changeR...
"public List<ObjectIDM> execute() throws UserException, BimDeadlockException, BimDatabaseException {\n Condition condition = new IsOfTypeCondition(StorePackage.eINSTANCE.getObjectIDM());\n Map<Long, ObjectIDM> result = getDatabaseSession().query(condition, ObjectIDM.class, false, null);\n List<ObjectIDM> mapTo...
"public void testStreamSizeSchedule() throws Exception {\n scheduleStore.persist(PROGRAM_ID, PROGRAM_TYPE, STREAM_SCHEDULE_1, 0L, 0L, 0L, 0L, true);\n scheduleStore.persist(PROGRAM_ID, PROGRAM_TYPE, STREAM_SCHEDULE_2, 1000L, 10L, 1000L, 10L, false);\n Assert.assertEquals(ImmutableList.of(new StreamSizeSchedule...
"public boolean checkTrigger(GameEvent event, Game game) {\n DamagedPlayerEvent damageEvent = (DamagedPlayerEvent) event;\n Permanent damageSource = game.getPermanentOrLKIBattlefield(event.getSourceId());\n if (damageEvent.isCombatDamage() && damageSource != null && damageSource.getAttachments().contains(this....
"public void run() {\n if (npc == null || player == null || player.getHandle().activeContainer == player.getHandle().defaultContainer) {\n kill();\n return;\n }\n if (player.getHandle().inventory.j() == null)\n return;\n if (mode == Mode.STOCK)\n return;\n int count = 0;\n ...
"public void run() {\n if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n log(\"String_Node_Str\");\n }\n if (handleLocalNumber(c))\n return;\n ContactInfoCache cache = ContactInfoCache.getInstance();\n ContactInfoCache.CacheEntry entry = cache.getContactInfo(number);\n synchronized (Cache...
"private boolean acquireSynchronizationObject(String name, long msec) {\n ReferenceCountingLock lock;\n synchronized (activationSynchronization) {\n lock = activationSynchronization.get(name);\n if (lock == null) {\n lock = new ReferenceCountingLock();\n activationSynchronizati...
"public int hashCode() {\n return path.hashCode();\n}\n"
"public void testEndWith() throws Exception {\n FilterDescriptor nameFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.END_WITH, \"String_Node_Str\");\n Map<String, Object> queryParams = MybatisQueryProvider.getWhereQueryParamMap(ProductView.class, \"String_Node_Str\", nameFil...
"public static MetaHistoryService getMetaHistoryService() {\n if (metaHistoryService == null) {\n metaHistoryService = ServiceUtils.getService(bundleContext, MetaHistoryService.class);\n }\n return metaHistoryService;\n}\n"
"public void saveOntology(File file, org.dllearner.core.OntologyFormat format) {\n String kaon2Format = null;\n if (format.equals(org.dllearner.core.OntologyFormat.RDF_XML))\n kaon2Format = OntologyFileFormat.OWL_RDF;\n else {\n System.err.println(\"String_Node_Str\" + format + \"String_Node_Str\...
"public void run() {\n holder[0] = Localizer.processArguments(\"String_Node_Str\", res);\n}\n"
"public T getEmbeddedByTargetPath(String targetPath) {\n if (this.instances.containsKey(targetPath)) {\n return this.instances.get(targetPath);\n }\n return null;\n}\n"
"public NetworkDiscoveryResult discoverNetwork(Set<ConnectionDetails> connectionDetailsList, int depth) {\n nodes.clear();\n Set<ConnectionDetails> discoveredConnectionDetails = new HashSet<ConnectionDetails>();\n Map<String, List<Future<NodeDiscoveryResult>>> nodeNeighbourFuturesMap = new HashMap<String, List...
"public void testCursorModel1() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = creator.createMirroredQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new Scri...
"private void enhandMethod() {\n for (Method method : methodArray) {\n String methodName = method.getName();\n String methodDesc = Type.getMethodDescriptor(method);\n int methodAccess = getAccess(method.getModifiers());\n MethodVisitor mv = cw.visitMethod(methodAccess, methodName, methodD...
"public void setName(String name) {\n if (name != null && this.name.equals(name)) {\n return;\n }\n this.name = name;\n RosterPacket packet = new RosterPacket();\n packet.setType(IQ.Type.SET);\n packet.addRosterItem(toRosterItem(this));\n connection.sendPacket(packet);\n}\n"
"public void widgetSelected(SelectionEvent e) {\n if (refCombo.getText().length() > 0) {\n elementNameText.setText(\"String_Node_Str\");\n elementNameText.setEditable(false);\n } else {\n elementNameText.setEditable(true);\n }\n}\n"
"private void updateEnabledAlarm(boolean b) {\n String blockName = \"String_Node_Str\" + mStat.getName() + \"String_Node_Str\";\n if (!mTaskerMode) {\n SharedPreferences prefs = getActivity().getSharedPreferences(\"String_Node_Str\" + \"String_Node_Str\", Context.MODE_WORLD_READABLE);\n SharedPrefer...
"protected QueueAction<?, ? extends Throwable> getLastHistoryItem() {\n synchronized (queueThreadHistory) {\n if (queueThreadHistory.size() == 0) {\n return null;\n }\n return this.queueThreadHistory.get(this.queueThreadHistory.size() - 1);\n }\n}\n"
"public QueueEntry pop(QueueConsumer consumer, QueuePartitioner partitioner) throws InterruptedException {\n if (head == null) {\n waitForPush();\n return pop(consumer, partitioner);\n }\n ConsumerGroup group = null;\n if (!this.consumerGroups.containsKey(consumer.getGroupId())) {\n gro...
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(source.getFirstTarget());\n MageObject sourceObject = source.getSourceObject(game);\n if (permanent != null && sourceObject != null) {\n if (permanent.moveToExile(source.getSourceId(), sourceObject.getIdName(), ...
"public void setToolbarRightPadding(int paddingRight) {\n ViewCompat.setPaddingRelative(mToolbar, ViewCompat.getPaddingStart(mToolbar), mToolbar.getPaddingTop(), paddingRight, mToolbar.getPaddingBottom());\n}\n"
"public void testPrivilegesManager() throws Exception {\n privilegesManager.grant(NS, ALICE, EnumSet.allOf(Action.class));\n privilegesManager.grant(APP, ALICE, Collections.singleton(Action.ADMIN));\n privilegesManager.grant(PROGRAM, ALICE, Collections.singleton(Action.EXECUTE));\n authorizationEnforcer.enf...
"public void infer() throws TypeException {\n TypeEnv.initialize(root);\n boolean typeDefined = false;\n Membrane typedefmem = null;\n for (Membrane topmem : root.mems) if (TypeEnv.getMemName(topmem).equals(\"String_Node_Str\")) {\n typedefmem = topmem;\n break;\n }\n TypeChecker tc = ne...
"public List<ConfigCustomizationToken> getPresentConfigCustomizationTokens(String runtimeType) throws NoSuchFieldException, IllegalAccessException {\n List<ConfigCustomizationToken> ctk = new ArrayList<ConfigCustomizationToken>();\n ClassLoader cl = this.getClass().getClassLoader();\n classesField.setAccessibl...
"public boolean hasMutex(String mutexId) {\n return getMutexSupport().hasMutex(mutexId);\n}\n"
"private Composite createUniqueConstraintPanel(Composite parent) {\n Composite thePanel = WidgetFactory.createPanel(parent, SWT.NONE, 1, 2);\n GridLayoutFactory.fillDefaults().numColumns(2).margins(10, 10).applyTo(thePanel);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(thePanel);\n if (isRelati...
"protected List<FrameworkMethod> getChildren() {\n final List<FrameworkMethod> children = super.getChildren();\n Collections.shuffle(new LinkedList<FrameworkMethod>(children));\n return children;\n}\n"
"public static boolean acceptLine(String line) {\n String[] split = line.split(\"String_Node_Str\");\n String realLabel = split[1];\n return (map.containsKey(realLabel) && !split[5].trim().equals(\"String_Node_Str\"));\n}\n"
"public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n if (request.getMethod().equals(\"String_Node_Str\") && request.getParameter(\"String_Node_Str\") == null) {\n return mapping.findForward(\"String_Node_Str\");\n ...
"void invalidateIfBuckConfigHasChanged(Cell cell, Path buildFile) {\n ImmutableMap<String, ImmutableMap<String, Optional<String>>> usedConfigs;\n try (AutoCloseableLock readLock = rawAndComputedNodesLock.readLock()) {\n usedConfigs = buildFileConfigs.get(buildFile);\n }\n if (usedConfigs == null) {\n...
"public void rotateGridCCW() {\n Grid g = createGrid(3, 3);\n List<EllipseRotated_F64> original = new ArrayList<>();\n original.addAll(g.ellipses);\n DetectAsymmetricCircleGrid<?> alg = new DetectAsymmetricCircleGrid(3, 3, null, null, null);\n alg.rotateGridCCW(g);\n assertEquals(9, g.ellipses.size())...
"protected void updateTextArea() {\n if (chartEvents != null) {\n int count = 0;\n StringBuilder dataString = new StringBuilder();\n for (Map.Entry entry : chartEvents) {\n if (count >= chartData.getTop()) {\n break;\n }\n dataString.append(entry.g...
"protected boolean askNewNameAndCategory(AbstractTestCaseEditor editor) {\n TestCaseTreeDialog dialog = new TestCaseTreeDialog(getActiveShell(), Messages.SelectCategoryDialogTitle, Messages.SelectCategoryDialogMessage, null, Messages.SelectCategoryDialogTitle, SWT.SINGLE, IconConstants.OPEN_TC_DIALOG_IMAGE);\n di...
"public synchronized void collect() throws IOException {\n try {\n webUrl = getResourceManager().toString();\n logsUrl = webUrl + \"String_Node_Str\";\n lastCollectFailed = false;\n } catch (Exception e) {\n if (!lastCollectFailed) {\n LOG.warn(\"String_Node_Str\", e);\n ...
"public void setLayoutPageHint(IPageHint pageHint) {\n if (pageHint != null) {\n pageNumber = pageHint.getPageNumber();\n masterPage = pageHint.getMasterPage();\n int count = pageHint.getTableColumnHintCount();\n for (int i = 0; i < count; i++) {\n columnHints.add(pageHint.getT...
"public void setToolbarLeftPadding(int paddingLeft) {\n ViewCompat.setPaddingRelative(mToolbar, paddingLeft, mToolbar.getPaddingTop(), mToolbar.getPaddingRight(), mToolbar.getPaddingBottom());\n}\n"
"protected void loadNodes(ProcessType process, Hashtable<String, Node> nodesHashtable) throws PersistenceException {\n EList nodeList;\n NodeType nType;\n nodeList = process.getNode();\n Node nc;\n EList listParamType;\n boolean isCurrentProject = ProjectManager.getInstance().isInCurrentMainProject(th...
"public void writeReport(String prefix, MessagePart part, Manifest m, Attributes attr) {\n StringBuilder sb = new StringBuilder();\n getCombinedMessages(this, sb);\n attr.putValue(\"String_Node_Str\", sb.toString());\n if (part.getProps().size() > 0) {\n String keys = null;\n for (Map.Entry en...
"public ARXResult anonymize(final Data data, ARXConfiguration config) throws IOException {\n if (((DataHandleInput) data.getHandle()).isLocked()) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (data.getDefinition().getSensitiveAttributes().size() > 1 && config.isProtectSensitiveAssociatio...
"protected void paintInPanel(AffineTransform tran, Graphics2D g2) {\n DetectQrCodeControlPanel controls = (DetectQrCodeControlPanel) DetectQrCodeApp.this.controls;\n g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, ...
"public void checkPaymentVoucherField(PaymentVoucher paymentVoucher, Company company, Account paymentModeAccount, Journal journal) throws AxelorException {\n if (paymentVoucher.getRemainingAmount().compareTo(BigDecimal.ZERO) < 0) {\n throw new AxelorException(String.format(\"String_Node_Str\", GeneralService....
"public void testJsonSerialization() {\n Document document = new Document();\n document.set(\"String_Node_Str\", null);\n document.set(\"String_Node_Str\", \"String_Node_Str\");\n Document childDocument = new Document(\"String_Node_Str\");\n document.set(\"String_Node_Str\", childDocument);\n document...
"public Object createCopyWithEmptyList() {\n return new HighScoreFlexiTableModel(new ArrayList<>(), anonymous, placeholder, ownId);\n}\n"
"public void modifyText(ModifyEvent e) {\n String newPath = filePathTemp.getTextControl(parent).getText();\n File file = new File(newPath);\n if (!file.exists() && !\"String_Node_Str\".equals(newPath)) {\n filePathTemp.showErrorMessage();\n setValid(false);\n } else {\n setValid(true);\...
"public PlanDto get(RouterObject routerObject) throws NotFoundException {\n return getItem(new RouterObjectId(routerObject.getId(), routerObject.getRouterId()));\n}\n"
"protected void fireChatMessage(ID fromID, ID threadID, Type type, String subject, String body, Map properties) {\n fireMessageEvent(new ChatMessageEvent(fromID, new ChatMessage(fromID, threadID, createMessageType(type), subject, body, properties)));\n}\n"
"public void addOrUpdateItem(Item item, boolean fromMigration) {\n if (!loaded) {\n loadRelations();\n }\n ProcessType processType = null;\n if (item instanceof ProcessItem) {\n processType = ((ProcessItem) item).getProcess();\n }\n if (item instanceof JobletProcessItem) {\n proce...
"private Bytes getBytesValue(String jpaFieldName, EntityMetadata m, Object value) {\n Attribute idCol = m.getIdAttribute();\n MetamodelImpl metaModel = (MetamodelImpl) KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());\n EntityType entity = metaModel.entity(m.getEntityClazz...
"public void onEnable() {\n boolean minerActive = true;\n if (minerThread == null || !minerThread.isAlive())\n minerActive = false;\n b.setText(minerActive ? \"String_Node_Str\" : \"String_Node_Str\");\n editPool.setEnabled(!minerActive);\n String pool = Miner.node.isEmpty() ? \"String_Node_Str\" ...
"public boolean accept(File pathname) {\n return pathname.isFile();\n}\n"
"protected IPath getItemFullPath(TDQSourceFileItem item) {\n String statePathStr = null;\n if (item.getState() != null) {\n statePathStr = item.getState().getPath();\n if (!statePathStr.equals(\"String_Node_Str\")) {\n org.eclipse.core.runtime.IPath path = new Path(statePathStr);\n ...
"private void toBytes(byte[] where, int offset, Set proxies, IpPort address) {\n int neededSpace = getSizeBytes(proxies);\n if (address != null) {\n if (FWTVersion > 0)\n neededSpace += 6;\n } else\n FWTVersion = 0;\n if (where.length - offset < neededSpace)\n throw new Illeg...
"public Cursor runQuery(CharSequence constraint) {\n return app.getSql().getPreviousGallerySearches(constraint.toString());\n}\n"
"public boolean identityMatch(Atom[] cAlphaAtoms, String chainId, int modelNumber, int structureId, String sequence) {\n UniqueSequenceList u = uniqueSequenceList.get(0);\n String refSequence = u.getSeqResSequence();\n boolean seqMatch = refSequence.equals(sequence);\n if (seqMatch) {\n List<Integer>...
"public void finish() {\n if (this.modelRunner != null) {\n this.modelRunner.close();\n }\n if (modelConfig.isClassification()) {\n return;\n }\n BufferedWriter writer = null;\n Configuration jobConf = UDFContext.getUDFContext().getJobConf();\n String scoreOutput = jobConf.get(Constan...
"private void finalizeInternalData() {\n markReachableMethods();\n for (Iterator<IVarAbstraction> it = allocations.iterator(); it.hasNext(); ) {\n IVarAbstraction po = it.next();\n AllocNode obj = (AllocNode) po.getWrappedNode();\n SootMethod sm = obj.getMethod();\n if (sm != null && f...
"public void run() {\n try {\n sampleAll();\n } catch (Throwable e) {\n LOG.error(\"String_Node_Str\", e);\n }\n}\n"
"public void activate() {\n Char target = Actor.findChar(pos);\n if (target == null) {\n for (Char ch : Actor.chars()) {\n Ballistica bolt = new Ballistica(pos, ch.pos, Ballistica.PROJECTILE);\n if (bolt.collisionPos == ch.pos && (target == null || Dungeon.level.distance(pos, ch.pos) ...
"public Void operate(Dao<OrderReason, String> dao) throws SQLException {\n saveReasons(dao, reasons, savedReasons);\n return null;\n}\n"
"public void updateSearchPos() {\n searchPos.setText((foundPos + 1) + \"String_Node_Str\" + found.size());\n setSource(found.get(foundPos), true);\n TagTreeModel ttm = (TagTreeModel) Main.mainFrame.tagTree.getModel();\n TreePath tp = ttm.getTagPath(found.get(foundPos));\n Main.mainFrame.tagTree.setSelect...
"private void cloneBaseConnection(SalesforceSchemaConnection connection) {\n temConnection = EcoreUtil.copy(connection);\n EList<Package> dataPackage = connection.getDataPackage();\n Collection<Package> newDataPackage = EcoreUtil.copyAll(dataPackage);\n ConnectionHelper.addPackages(newDataPackage, temConnec...
"private static String generateWriteBody(DataValueModel<?> dvModel, SortedSet<Class> imported) {\n StringBuilder write = new StringBuilder();\n Map.Entry<String, FieldModel>[] entries = heapSizeOrderedFields(dvModel);\n for (Map.Entry<String, FieldModel> entry : entries) {\n String name = entry.getKey()...
"public static void setup() throws Exception {\n SConfiguration sConf = SConfiguration.create();\n sConf.set(Constants.Security.Store.FILE_PASSWORD, \"String_Node_Str\");\n CConfiguration cConf = createCConf();\n final Injector injector = AppFabricTestHelper.getInjector(cConf, sConf, new AbstractModule() {\...
"public void createView() {\n if (prompt.isRequired()) {\n cg = new CustomChoiceGroup(\"String_Node_Str\" + prompt.getLongText(), ChoiceGroup.EXCLUSIVE, true);\n } else {\n cg = new CustomChoiceGroup(prompt.getLongText(), ChoiceGroup.EXCLUSIVE, true);\n }\n Enumeration itr = (prompt.getSelectC...
"public static File getUserSettingsDir() {\n if (isWindows()) {\n return getCurrentDirectory();\n }\n final File HOME_DIR = new File(getUserHomeDir(), \"String_Node_Str\");\n if (!HOME_DIR.isDirectory()) {\n HOME_DIR.mkdirs();\n }\n return HOME_DIR;\n}\n"
"public void testMarshallerCharacterEscapeHandler() throws Exception {\n String SUN_CHARACTER_ESCAPE_HANDLER_MARSHALLER = \"String_Node_Str\";\n String SUN_JSE_CHARACTER_ESCAPE_HANDLER_MARSHALLER = \"String_Node_Str\";\n CharacterEscapeHandler handler = new CustomCharacterEscapeHandler();\n m.setProperty(Ma...
"public void earlyStartup() {\n WorkspaceClassPathFinder finder = new WorkspaceClassPathFinder();\n WorkspaceClasspathManager.registerClassPathFinder(finder);\n String projectClassPaths = finder.getClassPath();\n if (projectClassPaths == null) {\n projectClassPaths = \"String_Node_Str\";\n }\n ...
"public static void endOfGame(Result r) {\n if (isPlayback)\n return;\n Object[] options = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n String toDisplay;\n System.out.println(r.isDraw());\n if (r.isDraw())\n toDisplay = \"String_Node_Str\" + \"String_Nod...
"public static IAnswerData getAnswerData(DataBinding binding, Element node) {\n String value = XFormParser.getXMLText(node, false);\n if (value == null)\n return null;\n switch(binding.getDataType()) {\n case Constants.DATATYPE_DATE:\n value = (String) node.getChild(0);\n re...
"private Renderer[] knownRenderers() {\n Properties props = new Properties();\n return new Renderer[] { new HTMLRenderer(props), new SummaryHTMLRenderer(props), new CSVRenderer(props), new XMLRenderer(props), new TextRenderer(props), new VBHTMLRenderer(props) };\n}\n"
"public List<Project> parseProject(final File pom) throws ManipulationException {\n final List<PomPeek> peeked = peekAtPomHierarchy(pom);\n return readModelsForManipulation(pom.getAbsoluteFile(), peeked);\n}\n"
"public void init(InstructionHandle stih, InstructionHandle endih) {\n WCETBasicBlock wcbb = null;\n if (stih.getInstruction() instanceof InvokeInstruction && (((InvokeInstruction) stih.getInstruction()).getClassName(getCpg())).indexOf(\"String_Node_Str\") == -1) {\n wcbb = new WCETBasicBlock(stih, endih, ...
"public DictAndProximity createDictAndProximity(final Locale locale) {\n final int script = getScriptFromLocale(locale);\n final ProximityInfo proximityInfo = ProximityInfo.createSpellCheckerProximityInfo(SpellCheckerProximityInfo.getProximityForScript(script), SpellCheckerProximityInfo.ROW_SIZE, SpellCheckerProx...
"public List<Artifact> getArtifactVersions(String groupId, String artifactId) throws Exception {\n List<Artifact> artifacts = new ArrayList<Artifact>();\n List<String> observableRepos = xmlRpcUserRepositories.getObservableRepositories();\n BrowsingResults results = repoBrowsing.selectArtifactId(\"String_Node_S...
"protected static CharArraySet getStopWordsForNonLuceneLangFromFile(Version version, Language language) {\n try {\n String langCode = language.getLangCode();\n String fileName = STOP_WORDS + langCode + \"String_Node_Str\";\n InputStream stream = FileUtils.openInputStream(new File(fileName));\n ...
"private void initGitContext(RepositoryInformation repositoryInformation) {\n log.info(\"String_Node_Str\");\n int tenantId = Integer.parseInt(repositoryInformation.getTenantId());\n String gitLocalRepoPath = repositoryInformation.getRepoPath();\n RepositoryContext gitRepoCtx = new RepositoryContext();\n ...
"public void testGetMasteries() throws InterruptedException, ExecutionException, TimeoutException {\n try {\n handler.getMasteries(MasteryData.ALL).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"