content
stringlengths
40
137k
"public int getBrightnessForRender(float par1) {\n return brightness > 0 ? brightness : super.getBrightnessForRender(par1);\n}\n"
"public static Index create(InputSplit genericSplit, TaskAttemptContext context) {\n Configuration conf = context.getConfiguration();\n Class<?> indexClass = conf.getClass(\"String_Node_Str\", null);\n try {\n LOG.debug(\"String_Node_Str\" + indexClass.toString() + \"String_Node_Str\" + guiceModule.toSt...
"public void registerBlockRenderers() {\n super.registerBlockRenderers();\n ClientRegistry.bindTileEntitySpecialRenderer(TileArchitect.class, new RenderArchitect());\n ClientRegistry.bindTileEntitySpecialRenderer(TileFiller.class, new RenderFiller());\n ClientRegistry.bindTileEntitySpecialRenderer(TileBuild...
"private String getXml(String filename) {\n try {\n String xmlFilePath = Script.findScript(scriptsDir, filename);\n if (xmlFilePath == null) {\n throw new Exception(\"String_Node_Str\" + filename);\n }\n try (FileReader fr = new FileReader(xmlFilePath);\n BufferedRea...
"public static void importSaltAndEncryptedKeyMaterial(Context context, String[] saltAndEncryptedKeyMaterial) throws GeneralSecurityException, InvalidMacException, IOException {\n Log.d(TAG, \"String_Node_Str\");\n Optional<String> masterPassphrase = KeyStore.getMasterPassphrase(context);\n if (!masterPassphras...
"private double precision(String referenceSparqlQuery, String learnedSPARQLQuery) {\n List<String> referenceResources = getResult(referenceSparqlQuery);\n if (referenceResources.isEmpty()) {\n logger.error(\"String_Node_Str\" + referenceSparqlQuery);\n return 0;\n }\n if (learnedSPARQLQuery.eq...
"private void addCallArgs(Expression[] args, JMethodCall call, MethodBinding binding) {\n if (args == null) {\n args = new Expression[0];\n }\n TypeBinding[] params = binding.parameters;\n int n = params.length;\n if (binding.isVarargs()) {\n --n;\n }\n if (args.length < n) {\n ...
"public void onIssueOpenRequest(Issue item) {\n if (item != null) {\n IssueInfo info = new IssueInfo();\n info.repoInfo = repoInfo;\n info.num = item.number;\n if (item.pullRequest == null) {\n Intent intent = IssueDetailActivity.createLauncherIntent(getActivity(), info);\n ...
"public MWAttributeDeclaration attribute(String namespaceUrl, String attributeName) {\n if (namespaceUrl == null || \"String_Node_Str\".equals(namespaceUrl)) {\n namespaceUrl = targetNamespaceUrl();\n }\n return this.namespaceForUrl(namespaceUrl).attribute(attributeName);\n}\n"
"public boolean isTilePainted(Tile tile) {\n return !(displayMapImage && tile.isPrepainted());\n}\n"
"public List<VcCluster> getVcResourcePoolByNameList(String[] names) {\n logger.debug(\"String_Node_Str\" + Arrays.toString(names));\n if (names == null || names.length == 0) {\n return null;\n }\n Map<String, VcCluster> clusterMap = new HashMap<String, VcCluster>();\n for (String name : names) {\n...
"public void correctDownloadLink(DownloadLink link) throws Exception {\n this.setBrowserExclusive();\n br.setCookie(link.getDownloadURL(), \"String_Node_Str\", \"String_Node_Str\");\n if (!Regex.matches(link.getDownloadURL(), \"String_Node_Str\")) {\n if (!Regex.matches(link.getDownloadURL(), \"String_N...
"public void createApplicationClusters(String appId, ApplicationClusterContextDTO[] appClustersContexts) throws ApplicationClusterRegistrationException {\n if (appClustersContexts == null || appClustersContexts.length == 0) {\n String errorMsg = \"String_Node_Str\";\n LOG.error(errorMsg);\n thro...
"private void writeTrampoline(String stubIntr) {\n for (String mangledName : toImplement(stubIntr)) {\n for (Method method : jsoData.getDeclarations(mangledName)) {\n Method toCall = new Method(method.getName(), method.getDescriptor());\n MethodVisitor mv = super.visitMethod(Opcodes.ACC_...
"public void dispose() {\n super.dispose();\n fLock.lock();\n try {\n IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n if (window != null) {\n window.getSelectionService().removePostSelectionListener(this);\n }\n fView.setSDFindProvider(nu...
"private CrateSQLStatement initSelectStatement(Class<?> entityClass, String tableName) {\n CratePersistentEntity<?> entity = getPersistentEntityFor(entityClass);\n boolean isVersioned = entity.hasVersionProperty();\n Set<String> columns = isVersioned ? entity.getPropertyNames(entity.getVersionProperty().getFie...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_article);\n if (savedInstanceState == null) {\n HSKBItem kbItem = (HSKBItem) getIntent().getSerializableExtra(\"String_Node_Str\");\n ArticleFragment sectionFragment = HS...
"public long fileModified(String name) throws IOException {\n if (shouldPerformOperationOnActualDirectory(name)) {\n return dir.fileModified(name);\n }\n fetchFileIfNotExists(name);\n return localCacheDir.fileModified(name);\n}\n"
"public boolean handle(TemplatePlanContext templateContext, AbstractOperation operation, AbstractImplementationArtifact ia, Map<AbstractParameter, Variable> param2propertyMapping) {\n AbstractNodeTemplate infrastructureNodeTemplate = this.findInfrastructureNode(templateContext.getInfrastructureNodes());\n if (inf...
"private void activateListing() {\n boolean listingactive = showListing.isSelected(0);\n bestOnlyEl.setVisible(listingactive);\n bestOnlyEl.select(yesOrNoKeys[1], true);\n numTableRows.setVisible(listingactive);\n}\n"
"private String createDisplayNameFromEmail() {\n String username = mEmailAddress.split(\"String_Node_Str\")[0].replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n String[] array = username.split(\"String_Node_Str\");\n StringBuilder builder = new StringBuilder();\n for (String s : array) {\n Stri...
"public T get() {\n if (persistence == null) {\n synchronized (this) {\n if (persistence == null) {\n this.persistence = build(conn, databases);\n }\n }\n }\n if (disableCaching) {\n persistence.disableCaching();\n }\n return persistence;\n}\n"
"private boolean basicCache() {\n if (dataSetDesign == null)\n return false;\n if (this.cacheOption == DISABLE) {\n return false;\n } else if (this.cacheOption == ALWAYS) {\n if (this.alwaysCacheRowCount == 0)\n return false;\n } else if (dataSetDesign.getCacheRowCount() == 0...
"public void onStart() {\n super.onStart();\n if (mReloadPager) {\n refreshFragmentsUi();\n }\n scrollToPageRequiresSetup();\n mReloadPager = false;\n}\n"
"V remove(final DirectBytes keyBytes, final V expectedValue, int hash2) {\n lock();\n try {\n hash2 = hashLookup.startSearch(hash2);\n while (true) {\n final int pos = hashLookup.nextPos();\n if (pos < 0) {\n return null;\n } else {\n fi...
"public void testStartModuleInvalidToken() throws Exception {\n harness.createProjectAndAddModule(\"String_Node_Str\");\n IModule[] modules = server.getModules();\n assertEquals(\"String_Node_Str\" + Arrays.toString(modules), 1, modules.length);\n int moduleState = server.getModulePublishState(modules);\n ...
"public void widgetSelected(SelectionEvent e) {\n KeyWrapper[] selectedKeys = getSelectedKeys();\n if (selectedKeys.length == 0) {\n return;\n FieldWrapper[] selectedFields = getSelectedFields();\n if (selectedFields.length == 0)\n return;\n if (getAllFields().length == selectedFields.lengt...
"private void deserialize(String labelString) {\n labels = new HashMap();\n if (\"String_Node_Str\".equals(labelString)) {\n return;\n }\n StringTokenizer tokenizer = new StringTokenizer(labelString, \"String_Node_Str\");\n while (tokenizer.hasMoreTokens()) {\n String labelToken = tokenizer...
"public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {\n Set<UUID> possibleTargets = new HashSet<>();\n for (StackObject stackObject : game.getStack()) {\n Spell spell = game.getStack().getSpell(stackObject.getId());\n if (spell != null && filter.match(spell, null, sourceControllerI...
"public void testCacheFetch() throws InterruptedException, IOException {\n try (InMemoryArtifactCache inMemoryArtifactCache = new InMemoryArtifactCache();\n TwoLevelArtifactCacheDecorator twoLevelCache = new TwoLevelArtifactCacheDecorator(inMemoryArtifactCache, new ProjectFilesystem(tmp.getRoot()), BuckEventB...
"private void showDialog(IndicatorDTO indicator, FormDialogCallback callback) {\n final IndicatorForm form = new IndicatorForm(dispatcher);\n form.getBinding().bind(indicator);\n form.setIdVisible(false);\n form.setGroupVisible(false);\n dialog = new FormDialogImpl<IndicatorForm>(form);\n dialog.setHe...
"public void execute(Player player, String message) {\n String name = extractArgument(message);\n if (name == null) {\n if (player.isAttemptLock()) {\n player.setAttemptedAction(null);\n player.addTMessage(Color.GRAY, \"String_Node_Str\");\n return;\n } else {\n ...
"public RelaxedDmvSolution solveRelaxation() {\n try {\n Status status = runDWAlgo(cplex, mp);\n if (tempDir != null) {\n cplex.exportModel(new File(tempDir, \"String_Node_Str\").getAbsolutePath());\n }\n log.info(\"String_Node_Str\" + status);\n if (status != Status.Opt...
"public void testMultiInheritance() {\n final DefaultFeatureType metropolis = metropolis();\n final DefaultFeatureType capital = capital();\n final DefaultFeatureType metroCapital = new DefaultFeatureType(name(\"String_Node_Str\"), false, new DefaultFeatureType[] { metropolis, capital }, new DefaultAttributeTy...
"public synchronized void init(JobEngineConfig jobEngineConfig) throws SchedulerException {\n if (!initialized) {\n initialized = true;\n } else {\n return;\n }\n this.jobEngineConfig = jobEngineConfig;\n RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000, 3);\n this.zkClient = C...
"private void updateBackgroundBounds() {\n mBackgroundBounds.left = (int) getX();\n mBackgroundBounds.right = (int) (getX() + getWidth());\n if (!mIsExpanded) {\n mBackgroundBounds.top = 0;\n mBackgroundBounds.bottom = 0;\n }\n ActivatableNotificationView firstView = mFirstVisibleBackground...
"protected void innerScale(float scale) {\n scale = PApplet.constrain(mapDisplay.innerScale * scale, minScale, maxScale);\n if (tweening) {\n scaleIntegrator.target(scale);\n } else {\n mapDisplay.innerScale = scale;\n mapDisplay.calculateInnerMatrix();\n }\n}\n"
"public Alarm patch(String tenantId, String alarmId, AlarmState state) {\n Alarm alarm = repo.findById(tenantId, alarmId);\n state = state == null ? alarm.getState() : state;\n updateInternal(tenantId, alarm, alarm.getState(), state);\n alarm.setState(state);\n return alarm;\n}\n"
"public GLElement create(GLElementFactoryContext context) {\n EDetailLevel detailLevel = context.get(EDetailLevel.class, EDetailLevel.LOW);\n boolean blurNotSelected = context.is(\"String_Node_Str\");\n IHeatMapDataProvider data;\n EDimension dim;\n Function<? super Integer, Double> id2double;\n Funct...
"MSimpleDecl eval1Decl(IASTDeclaration decla) throws DOMException {\n MyLogger.log(\"String_Node_Str\");\n IASTSimpleDeclaration simpleDeclaration = (IASTSimpleDeclaration) decla;\n assert (simpleDeclaration.getDeclarators().length == 1);\n List<MExpression> inits = evaluateDeclarationReturnInitializers(sim...
"private IWizardPage getNextPageODAV2() {\n DataSetTypeElement dataSetElement = (DataSetTypeElement) ((IStructuredSelection) dataSetTypeChooser.getSelection()).getFirstElement();\n if (m_designSession != null)\n m_designSession = null;\n if (dataSetElement instanceof OdaDataSetTypeElement) {\n Od...
"private IRDSave getRdSave() throws DataException {\n if (this.rdSave == null)\n this.rdSave = RDUtil.newSave(this.context, this.queryDefn, isDummyQuery(this.queryDefn, this.odiResult) ? 1 : odiResult.getRowCount(), new QueryResultInfo(this.idInfo.getQueryResultID(), this.idInfo.getsubQueryName(), this.idInfo...
"public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException {\n super.setup(resolver, objectModel, src, par);\n try {\n this.request = ObjectModelHelper.getRequest(objectModel);\n this.response = ObjectModelHelper.get...
"public final void renderer(Canvas canvas) {\n int width = mContentRect.width();\n int height = mContentRect.height();\n if (mDrawBitmap == null || (mDrawBitmap.get().getWidth() != width) || (mDrawBitmap.get().getHeight() != height)) {\n if (width > 0 && height > 0) {\n mDrawBitmap = new Weak...
"public static String buildSelectByPk(EntityPK pk, Class<?> clazz, int tableIndex) throws SQLException {\n Field[] fields = ReflectUtil.getFields(clazz);\n String tableName = ReflectUtil.getTableName(clazz, tableIndex);\n StringBuilder whereSql = new StringBuilder();\n for (int i = 0; i < pk.getPkNames().le...
"private Cipher _getCipher(int operationMode, String cipherAlgorithm, byte[] cipherKey, byte[] cipherText) throws IllegalArgumentException {\n String[] tokens = cipherAlgorithm.split(\"String_Node_Str\");\n if (tokens.length < 1) {\n throw new IllegalArgumentException(\"String_Node_Str\" + cipherAlgorithm)...
"public void bundleLoaded(String bundleName) {\n if (fromSource) {\n if (loadingOverlay) {\n loadOverlay(xulSrc);\n } else if (removingOverlay) {\n removeOverlay(xulSrc);\n } else {\n generateXulContainer(xulSrc);\n }\n return;\n }\n try {\n ...
"public void discover(Properties databaseProperties, Properties columnProperties, Collection<String> tables) throws DatabaseAnonymizerException {\n log.info(\"String_Node_Str\");\n IMetaData metaData = MetaDataFactory.fetchMetaData(databaseProperties);\n List<ColumnMetaData> map = metaData.getMetaData();\n ...
"public RPCResponse internal_cleanup_start(InetSocketAddress server, boolean removeZombies, boolean removeDeadVolumes, boolean lostAndFound, String password) {\n xtreemfs_cleanup_startRequest rq = new xtreemfs_cleanup_startRequest(removeZombies, removeDeadVolumes, lostAndFound);\n UserCredentials creds = new User...
"public void mobPress(Mob mob) {\n int cell = mob.pos;\n if (pit[cell] && !mob.flying) {\n Chasm.mobFall(mob);\n return;\n }\n Trap trap = null;\n switch(map[cell]) {\n case Terrain.TRAP:\n trap = traps.get(cell);\n break;\n case Terrain.DOOR:\n ...
"public static void handleOnCreate(ContainerContent content, ExecutionContext context) {\n try {\n ReportItemDesign listDesign = (ReportItemDesign) content.getGenerateBy();\n IListInstance list = new ListInstance(content, context);\n if (handleJS(list, listDesign.getOnCreate(), context).didRun()...
"public String toString() {\n return new String(buffer.array(), 0, buffer.position(), CHARSET_ISO_8859_1);\n}\n"
"public boolean isChoiceProperty(Object o) {\n boolean choice = false;\n if (isColorProperty(o)) {\n return false;\n }\n if (o instanceof GroupPropertyHandle) {\n if (((GroupPropertyHandle) o).getPropertyDefn().getAllowedChoices() != null) {\n IChoice[] choices = ((GroupPropertyHand...
"public boolean startInstrumentation(ComponentName className, String profileFile, int flags, Bundle arguments, IInstrumentationWatcher watcher, IUiAutomationConnection uiAutomationConnection, int userId) {\n enforceNotIsolatedCaller(\"String_Node_Str\");\n userId = handleIncomingUser(Binder.getCallingPid(), Binde...
"private void processLineSelection(Editor editor, boolean update) {\n if (ExEntryPanel.getInstance().isActive()) {\n ExEntryPanel.getInstance().deactivate(false);\n }\n ExOutputModel.getInstance(editor).clear();\n if (update) {\n if (CommandState.getInstance(editor).getMode() == CommandState.M...
"private void addSystemInfo(GatewayManagementBean gatewayBean) {\n final HostManagementBean systemManagementBean = new HostManagementBeanImpl(gatewayBean, InternalSystemProperty.MANAGEMENT_SUMMARY_DATA_LIMIT.getIntProperty(configuration));\n for (ManagementServiceHandler handler : managementServiceHandlers) {\n ...
"public static org.hl7.fhir.dstu2016may.model.VisionPrescription convertVisionPrescription(org.hl7.fhir.dstu3.model.VisionPrescription src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.VisionPrescription tgt = new org.hl7.fhir.dstu2016may.model....
"public Control createContents(Composite parent) {\n initPropertyBinding();\n int size = propList.size();\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayout(new GridLayout(3, false));\n GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_F...
"public void startGame() {\n sendMessage(team.BOTH, plugin.d + \"String_Node_Str\");\n for (Player p : plugin.players.keySet()) {\n plugin.p(p).resetScore();\n spawnPlayer(p, true);\n }\n t1 = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new tick(), 40L, 40L);\n t2 = ...
"public void leaveArcade(final String playername) {\n if (players.contains(playername)) {\n players.remove(playername);\n }\n if (arena.containsPlayer(playername)) {\n arena.removePlayer(playername);\n }\n if (minigames.get(currentindex).getArenas().size() > 0) {\n if (minigames.get(...
"private boolean insertChild(Object parent, Object child) {\n Set<Object> children = childrenMap.get(parent);\n if (children == null) {\n children = new HashSet<Object>();\n fChildrenMap.put(parent, children);\n }\n return children.add(child);\n}\n"
"void updatePermissionEntries() {\n for (Map.Entry<String, List<AcEntry>> entry : entries.entrySet()) {\n String principalName = entry.getKey();\n NodeBuilder principalRoot = permissionRoot.child(principalName);\n if (!principalRoot.hasProperty(JCR_PRIMARYTYPE)) {\n principalRoot.setP...
"private void populateConnectionProp() throws SQLException {\n if (jdbcConn != null) {\n if (this.autoCommit != null)\n jdbcConn.setAutoCommit(this.autoCommit);\n if (this.isolationMode != Constants.TRANSCATION_ISOLATION_DEFAULT)\n jdbcConn.setTransactionIsolation(this.isolationMo...
"private void checkTableData(final String sourceConnectorId, final Connection sourceConnection, final SourceDatabaseConfiguration sourceConfiguration, final TableMetaData sourceTableMetaData, final String targetConnectorId, final Connection targetConnection, final SourceDatabaseConfiguration targetConfiguration, final ...
"public long getRemainingQueueTime() {\n System.out.println(\"String_Node_Str\" + remainingQueueTime);\n return remainingQueueTime;\n}\n"
"public void selectToKeep(VodAddress from, List<VodDescriptor> descriptors) {\n if (from.equals(self.getAddress())) {\n return;\n }\n LinkedList<ViewEntry> entriesSentToThisPeer = new LinkedList<ViewEntry>();\n ViewEntry fromEntry = d2e.get(from.getId());\n if (fromEntry != null) {\n entrie...
"public static void main(String[] args) {\n Env.init(args);\n if (Env.getArgCount() != 6) {\n usage();\n }\n String stream_hash = Env.getArg(0);\n String start_date = Env.getArg(1);\n String end_date = Env.getArg(2);\n String sources = Env.getArg(3);\n double sample = Double.parseDouble(E...
"public static DatabaseQuery buildEJBQLDatabaseQuery(String queryName, String jpql, Session session, Enum lockMode, Map<String, Object> hints, ClassLoader classLoader) {\n boolean isCacheable = (queryName == null) && (hints == null);\n DatabaseQuery databaseQuery = null;\n if (isCacheable) {\n databaseQ...
"public boolean isCustomTranslationActive(final String key, final String locale) {\n if (getTenantCustomTranslationsCache().containsKey(key) && getTenantCustomTranslationsCache().get(key).containsKey(locale)) {\n return getTenantCustomTranslationsCache().get(key).get(locale) != null;\n }\n return false;...
"protected void printRatioTable(Coverage ratio, StringBuilder buf) {\n String percent = percentFormat.format(ratio.getPercentageFloat());\n String numerator = intFormat.format(ratio.getMissed());\n String denominator = intFormat.format(ratio.getCovered());\n int maximumCovered = 1;\n if (ratio.getType()....
"private void checkSmartLockPasswordAndStartLogin() {\n if (!mSmartLockCompleted && mSmartLockHelper == null) {\n mSmartLockHelper = new SmartLockHelper(this);\n smartLockStarted = mSmartLockHelper.initSmartLockForPasswords();\n }\n if (!smartLockStarted) {\n startLogin();\n }\n}\n"
"public boolean shouldBackup() {\n return response != null && backupRecord != null;\n}\n"
"private void updateView(Object arg) {\n if (arg == null || arg instanceof Contact || arg instanceof String || arg instanceof GroupCommand) {\n mTitleLabel.setText(Utils.chatTitle(mValue));\n }\n if (arg == null || arg instanceof Contact || arg instanceof String) {\n Utils.fixedSetWebImageImage(m...
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n ChannelBuffer buf = (ChannelBuffer) msg;\n buf.readUnsignedByte();\n buf.readUnsignedShort();\n int index = buf.readUnsignedByte() >> 3;\n if (channel != null) {\n ChannelBuffer response = Chann...
"public Response removeNetworkPartition(String networkPartitionId) throws RestAPIException {\n try {\n PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext();\n StratosApiV41Utils.removeNetworkPartition(networkPartitionId, carbonContext.getTenantId());\n } catc...
"public void testLoadComponents() {\n ComponentService componentService = ComponentsUtils.getComponentService();\n Set<ComponentDefinition> componentDefinitions = componentService.getAllComponents();\n Set<IComponent> coms = ComponentsFactoryProvider.getInstance().getComponents();\n List<IComponent> comList...
"public boolean emulateOP(long maxCycles) {\n int pc = readRegister(PC);\n long startCycles = cycles;\n if (cycles >= nextEventCycles) {\n executeEvents();\n }\n if (interruptsEnabled && servicedInterrupt == -1 && interruptMax >= 0) {\n pc = serviceInterrupt(pc);\n }\n if (cpuOff) {\n...
"public void testPreferences() throws Exception {\n Id.Namespace invalidNamespace = Id.Namespace.from(\"String_Node_Str\");\n namespaceClient.create(new NamespaceMeta.Builder().setId(invalidNamespace.getId()).build());\n Map<String, String> propMap = client.getInstancePreferences();\n Assert.assertEquals(Im...
"public void invoke() throws Exception {\n while (!terminationRequested()) {\n notifyMonitor(IterationMonitoring.Event.SYNC_STARTING, currentIteration);\n if (log.isInfoEnabled()) {\n log.info(formatLogString(\"String_Node_Str\" + currentIteration + \"String_Node_Str\"));\n }\n ...
"public void update() {\n if (requestedRestart) {\n for (GameObject g : objects) {\n g.endNoChildren();\n }\n dispose();\n init();\n }\n if (requestedEnd) {\n valid = false;\n dispose();\n if (Bdx.scenes.contains(this))\n Bdx.scenes.remove(...
"public void run() {\n ColumnBindingInfo[] headers = null;\n List<?> dataList = null;\n try {\n headers = getDataServiceProvider().getPreviewHeadersInfo();\n if (dataProvider.isLivePreviewEnabled()) {\n dataList = getPreviewData();\n }\n final ColumnBindingInfo[] headerIn...
"public void testBoxedWorldGetSet() {\n facet.set(0, 1, 4, Integer.valueOf(8));\n Assert.assertEquals(Integer.valueOf(8), facet.get(0, 1, 4));\n}\n"
"public Image getImage(Object obj) {\n if (obj instanceof XSDElementDeclaration) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n boolean isConcept = false;\n EList l = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = l.iterator(); iter.hasNext(); ) {\n ...
"protected int initColumns() {\n groupListCtr.addColumnDescriptor(new BusinessGroupNameColumnDescriptor(TABLE_ACTION_LAUNCH, getLocale()));\n groupListCtr.addColumnDescriptor(false, new DefaultColumnDescriptor(Cols.key.i18n(), Cols.key.ordinal(), null, getLocale()));\n if (groupModule.isManagedBusinessGroups()...
"public static List<Boolean> createBooleans(String response) {\n List<Boolean> returnedArray = new ArrayList<>();\n JSONArray tracksContainedArray = JSONArray.fromObject(response);\n for (Object tracksContainedString : tracksContainedArray) {\n if (String.valueOf(tracksContainedString).equals(\"String_N...
"private static void setType(TRelationshipTemplate relationshipTemplate, Resource relationType) {\n String namespace = getXMLNamespace(relationType);\n QName type;\n try {\n type = new QName(namespace, relationType.getLocalName(), getNSPrefix(relationType));\n } catch (NoPrefixMappingFoundException e...
"public static boolean isMsfUpdateAvailable() {\n boolean exitForError = true;\n String branch = System.getSettings().getString(\"String_Node_Str\", \"String_Node_Str\");\n String localVersion = System.getLocalMsfVersion();\n try {\n String name = String.format(LOCAL_MSF_NAME, branch);\n Strin...
"private void composeDoc(XhtmlDocument doc) throws IOException {\n for (XhtmlNode c : doc.getChildNodes()) writeNode(\"String_Node_Str\", c, null);\n}\n"
"protected void formatIntent(Intent intent) {\n mTempFile = getFileStreamPath(\"String_Node_Str\");\n mTempFile.getParentFile().mkdirs();\n int width = getWallpaperDesiredMinimumWidth();\n int height = getWallpaperDesiredMinimumHeight();\n intent.putExtra(\"String_Node_Str\", width);\n intent.putExtra...
"public void mouseClicked(MouseEvent e) {\n for (int i = 0; i < chart.getData().size(); i++) {\n int idx = chart.getIndexAt(i, e.getX(), e.getY());\n for (SelectionListener sl : selectionListeners) {\n sl.selected(i, idx);\n }\n }\n}\n"
"public void testDecompileWicketJarDirectory() throws DecompilationException, IOException {\n final Decompiler dec = this.getDecompiler();\n File archive = new File(\"String_Node_Str\");\n File outputFolder = new File(testTempDir, \"String_Node_Str\");\n File unzippedDir = new File(outputFolder, \"String_No...
"static void refreshPreferences() {\n prefs = new XSharedPreferences(new File(Environment.getDataDirectory(), \"String_Node_Str\" + HookMethods.PACKAGE_NAME + \"String_Node_Str\" + HookMethods.PACKAGE_NAME + \"String_Node_Str\" + \"String_Node_Str\"));\n prefs.reload();\n prefs.makeWorldReadable();\n select...
"public void run() {\n try {\n queryLoop();\n } catch (Throwable t) {\n RouterService.error(t);\n }\n}\n"
"private static GenericTopLevel parseGenericTopLevel(SBOLDocument SBOLDoc, TopLevelDocument<QName> topLevel) {\n URI persistentIdentity = null;\n String version = null;\n String displayId = null;\n String name = null;\n String description = null;\n URI wasDerivedFrom = null;\n List<Annotation> anno...
"private void prepareEmfTreeFromMdm(MDMConnection connection, String selectedConcept) {\n if (connection == null || selectedConcept == null) {\n return;\n }\n EList<Concept> schemas = connection.getSchemas();\n Concept selected = null;\n for (int i = 0; i < schemas.size(); i++) {\n Concept ...
"protected HL7TreeNode addElement(HL7TreeNode current, String currentPath, String newPath, String defaultValue) {\n String name = newPath.substring(newPath.lastIndexOf(\"String_Node_Str\") + 1);\n String parentPath = \"String_Node_Str\";\n if (newPath.contains(\"String_Node_Str\")) {\n parentPath = newP...
"private int rotateMeta(Block block, int meta, SpaceProjectorSetup.BlockInformation information, int rotMode) {\n Item item = Item.getItemFromBlock(block);\n if (item != null && item.getHasSubtypes()) {\n return meta;\n }\n switch(information.getRotateInfo()) {\n case SpaceProjectorSetup.Block...
"void setupUI() {\n setupTermfilterSpinners();\n JPanel termfilterPanel = new JPanel();\n termfilterPanel.setLayout(new BoxLayout(termfilterPanel, BoxLayout.X_AXIS));\n termfilterPanel.add(new JLabel(\"String_Node_Str\"));\n termfilterPanel.add(tpSpinner);\n termfilterPanel.add(new JLabel(\"String_Nod...
"public MenuTester call() throws Exception {\n MenuTester menuTester = null;\n Iterator<Window> iter = WindowsUtil.getWindowIterator();\n long timeout = TimeoutConstants.SERVER_TIMEOUT_WAIT_FOR_POPUP;\n long done = System.currentTimeMillis() + timeout;\n long now;\n do {\n if (!iter.hasNext()) ...
"public void startDependencyOnTermination(String instanceId) throws TopologyInConsistentException, MonitorNotFoundException, PolicyValidationException, PartitionValidationException {\n List<ApplicationChildContext> applicationContexts = this.startupDependencyTree.getStarAbleDependenciesByTermination(this, instanceId...