content stringlengths 40 137k |
|---|
"private NodeList addElements(XPathFragment fragment, XMLField xmlField, Node parent, Object value, boolean forceCreate, Element sibling, DocumentPreservationPolicy docPresPolicy, AbstractSession session) {\n if (!forceCreate) {\n NodeList nodes = unmarshalXPathEngine.selectElementNodes(parent, fragment, getN... |
"private ImportEndpoint createAndRegisterProxy(final EndpointDescription endpointDescription, IRemoteServiceContainer rsContainer, IRemoteServiceReference selectedRsReference) throws Exception {\n final BundleContext proxyServiceFactoryContext = getProxyServiceFactoryContext(endpointDescription);\n if (proxyServi... |
"public void messageReceived(WonderlandClientSender sender, WonderlandClientID clientID, CellMessage message) {\n if (receiver == null) {\n receiver = receiverRef.get();\n }\n receiver.messageReceived(sender, clientID, message);\n}\n"
|
"private Node readNode(String path, Revision rev) {\n String id = Node.convertPathToDocumentId(path);\n Map<String, Object> map = store.find(DocumentStore.Collection.NODES, id);\n if (map == null) {\n return null;\n }\n if (isDeleted(map, rev)) {\n return null;\n }\n Node n = new Node... |
"private Container lazyorToRun(ArrayContainer x) {\n if (isFull())\n return this.clone();\n RunContainer answer = new RunContainer(0, new short[2 * (this.nbrruns + x.getCardinality())]);\n int rlepos = 0;\n PeekableShortIterator i = (PeekableShortIterator) x.getShortIterator();\n while (i.hasNext(... |
"public Object[] getChildren(Object parentElement) {\n TableNode tableNode = (TableNode) parentElement;\n List<TableNode> child = tableNode.getChildren();\n boolean extended = false;\n if (!child.isEmpty()) {\n for (TableNode node : child) {\n if (node.getType() == TableNode.TABLE) {\n ... |
"protected Map<String, String> getTunnelInfo(final CloudFoundryOperations client, final String serviceName, IProgressMonitor monitor) throws CoreException {\n monitor.setTaskName(\"String_Node_Str\");\n int attempts = 10;\n long sleepTime = 2000;\n Map<String, String> info = new AbstractWaitWithProgressJob<... |
"protected Object readObject(DataInputStream dis) throws IOException {\n int fieldCount = IOUtil.readInt(dis);\n if (fieldCount == NULL_VALUE) {\n return null;\n }\n Object[] objects = new Object[fieldCount];\n for (int i = 0; i < objects.length; i++) {\n objects[i] = IOUtil.readObject(dis,... |
"private void send(final String parentMessageId, final String messageId, final UserInfos user, final Handler<Either<String, JsonObject>> result) {\n if (validationParamsError(user, result, messageId))\n return;\n String attachmentsRetrieval = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" ... |
"public int execute(StratosCommandContext context, String[] args) throws CommandException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\", getName());\n }\n if ((args == null) || (args.length <= 0)) {\n context.getStratosApplication().printUsage(getName());\n return C... |
"protected void configureResourceBundle(String locale, AbstractFlexCompilerMojo<?, ?> cfg) {\n cfg.localesCompiled = new String[] { locale };\n cfg.localesRuntime = null;\n if (locale.contains(\"String_Node_Str\")) {\n cfg.classifier = locale.split(\"String_Node_Str\")[0];\n } else {\n cfg.cla... |
"private void verifyCommonLoggingForSignIns() throws Exception {\n verifyMetrics();\n verify(response).setCookie(BridgeConstants.SESSION_TOKEN_HEADER, TEST_SESSION_TOKEN, BridgeConstants.BRIDGE_SESSION_EXPIRE_IN_SECONDS, \"String_Node_Str\", WEBSERVICES_URL, true, true);\n verify(cacheProvider).updateRequestIn... |
"public static Record create(ResultSet rs) {\n try {\n Record re = new Record();\n ResultSetMetaData meta = rs.getMetaData();\n int count = meta.getColumnCount();\n for (int i = 1; i <= count; i++) {\n String name = meta.getColumnLabel(i);\n if (meta.getColumnType(i)... |
"public void buildGraph() {\n GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n model.clearSupervisors();\n if (graphModel.isUndirected()) {\n previewGraph = factory.createPreviewGraph(model, graphModel.getUndirectedGraphVisible());\n } else if (graphModel.isDire... |
"public void start(Map<String, String> stringParams) {\n if (started) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n Map<Object, Object> params = getDefaultParams();\n for (String key : stringParams.keySet()) {\n params.put(key, stringParams.get(key));\n }\n config = new... |
"public List<List<GraphTargetItem>> getSubs() {\n List<List<GraphTargetItem>> ret = new ArrayList<>();\n if (firstCommands != null) {\n ret.add(firstCommands);\n }\n if (commands != null) {\n ret.add(commands);\n }\n if (finalCommands != null) {\n ret.add(finalCommands);\n }\n ... |
"public void removedService(ServiceReference reference, Object service) {\n InterestedListener listener = (InterestedListener) service;\n machine.removeEndpointListener(listener.getListener(), listener.getInterest());\n}\n"
|
"public String[] getValues(String name, String key, String[] defValue) {\n String[] value = defValue;\n IniGroup group = getOrCreateGroup(name);\n IniRecord record = group.getRecord(key);\n if (record != null) {\n value = record.getValues();\n }\n return value;\n}\n"
|
"protected void _execute() throws Exception {\n if (_DEBUG) {\n System.out.println(\"String_Node_Str\");\n System.out.println(getDescription());\n if (_context != null) {\n System.out.println(\"String_Node_Str\" + _context.getFullName());\n }\n }\n if (_context != null) {... |
"public JsonValue apply(Representation representation) throws AuditException {\n try {\n if (!representation.isEmpty() && ((JacksonRepresentation) representation).getObject() instanceof Map) {\n return extractValues((Map<String, Object>) ((JacksonRepresentation) representation).getObject());\n ... |
"public final Result doCompile(MxmlcConfigurationHolder cfg, boolean synchronize) throws Exception {\n if (isUpdateSecuritySandbox()) {\n truster.updateSecuritySandbox(PathUtil.getCanonicalFile(cfg.getConfiguration().getOutput()).getParentFile());\n truster.updateSecuritySandbox(PathUtil.getCanonicalFi... |
"private void switchCacheMap(IBaseDataSetDesign dataSetDesign) {\n if (needsToJVMCache(dataSetDesign)) {\n cacheMapManager = JVMLevelCacheMapManager;\n } else {\n cacheMapManager = DteLevelCacheMapManager;\n }\n}\n"
|
"public FinalSetOperationSubqueryBuilder<T> endSet() {\n subListener.verifySubqueryBuilderEnded();\n listener.onBuilderEnded(this);\n if (!isEmpty()) {\n prepareAndCheck();\n }\n return (FinalSetOperationSubqueryBuilder<T>) (FinalSetOperationSubqueryBuilder) finalSetOperationBuilder;\n}\n"
|
"private RDSaveUtil getRdSaveUtil() {\n if (this.rdSaveUtil == null) {\n rdSaveUtil = new RDSaveUtil(context, queryDefn, queryResults.getID());\n }\n return this.rdSaveUtil;\n}\n"
|
"public int getY() {\n return y;\n}\n"
|
"public static StructureIdentifier loadIdentifier(String id) {\n try {\n return new SubstructureIdentifier(id, cache);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"String_Node_Str\" + id, e);\n }\n}\n"
|
"private void attachLiteralTypes(Node n) {\n switch(n.getType()) {\n case Token.NULL:\n n.setJSType(getNativeType(NULL_TYPE));\n break;\n case Token.VOID:\n n.setJSType(getNativeType(VOID_TYPE));\n break;\n case Token.STRING:\n n.setJSType(g... |
"private void fireValueChangedEvent() {\n if (hasPropertyChangeListener()) {\n List<Form> forms = getSubProperties().getForms();\n for (Form f : forms) {\n if (f.isRefreshUI()) {\n this.pcs.firePropertyChange(IElementParameterEventProperties.EVENT_PROPERTY_VALUE_CHANGED, null,... |
"public IReportItemInstance[] getInstancesByElementId(int elementId) throws ScriptException {\n ArrayList<IReportItemInstance> instances = new ArrayList<IReportItemInstance>();\n for (IContent content : contents) {\n Object generateBy = content.getGenerateBy();\n if (generateBy instanceof ReportElem... |
"private void addBrowserControlActions(List<Action> actions) {\n if (!browsers.isEmpty()) {\n BrowserStartupAction browserStartupAction = new BrowserStartupAction(browsers, getServerAddress());\n capturedBrowsers.addObserver(browserStartupAction);\n actions.add(0, browserStartupAction);\n ... |
"private String buildErrorMessage() {\n String jobId = saltJobRunner.getJid().getJobId();\n StringBuilder errorMessageBuilder = new StringBuilder();\n errorMessageBuilder.append(String.format(\"String_Node_Str\", jobId, saltJobRunner.getTarget()));\n if (saltJobRunner.getNodesWithError() != null) {\n ... |
"public synchronized boolean containsKey(long h, K key) {\n int hash = intHashFor(h);\n smallMap.startSearch(hash);\n boolean found = false;\n while (true) {\n int pos = smallMap.nextInt();\n if (pos == IntIntMultiMap.UNSET) {\n Object key2 = key instanceof CharSequence ? key.toStri... |
"private void loadEntityMetadata(String persistenceUnit) {\n if (persistenceUnit == null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + persistenceUnit);\n }\n KunderaMetadata kunderaMetadata = KunderaMetadata.INSTANCE;\n Map<String, PersistenceUnitMetadata> persistentUnitMetadataMap =... |
"public void paintTo(GL2 gl, GlimpseBounds bounds, Axis2D axis) {\n if (lineCount == 0)\n return;\n if (!bufferInitialized) {\n bufferHandle = new int[1];\n gl.glGenBuffers(1, bufferHandle, 0);\n bufferInitialized = true;\n }\n gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, bufferHandle[0]... |
"public void loadDefinitionsFromXML(InputStream stream) throws ParserConfigurationException, IOException, SAXException {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = dbFactory.newDocumentBuilder();\n Document document = builder.parse(stream);\n Eleme... |
"private void computeImageMatrix() {\n final int viewWidth = getWidth() - getPaddingLeft() - getPaddingRight();\n final int viewHeight = getHeight() - getPaddingTop() - getPaddingBottom();\n if (cropType != CropType.NONE && viewHeight > 0 && viewWidth > 0) {\n final Matrix matrix = getImageMatrix();\n ... |
"private void submitNewJobs() throws Exception {\n harvestScheduler.submitNewJobs();\n ((JMSConnectionMockupMQ) JMSConnectionMockupMQ.getInstance()).waitForConcurrentTasksToFinish();\n}\n"
|
"protected DownloadResults doDownload() {\n DownloadStatus status = DownloadStatus.SUCCESS;\n try {\n transport.open();\n } catch (IOException e) {\n status = DownloadStatus.IO_ERROR;\n }\n ReadData readData = new ReadData(transport);\n List<EGVRecord> recentRecords = new ArrayList<>();\... |
"protected void fireEditingCancelled() {\n for (CellEditorListener l : editorListeners.toArray(new CellEditorListener[] {})) {\n if (l != null) {\n l.editingCanceled(new ChangeEvent(this));\n }\n }\n}\n"
|
"private void updateStatistics(SharedPreferences sp, Context context) {\n boolean firstAppInstall = false;\n boolean firstVersionInstall = false;\n final String FIRST_APP_VERSION_INSTALL = context.getString(R.string.settings_key_first_app_version_installed);\n if (!sp.contains(FIRST_APP_VERSION_INSTALL)) {\... |
"public boolean isEnabled() {\n Node n = getFirstSelected();\n Node rn = mc.getCurrentNode_ResourceView();\n return true;\n}\n"
|
"public void contractNumberChanged() {\n Pool p = TestUtil.createPool(owner, TestUtil.createProduct(owner));\n p.setContractNumber(\"String_Node_Str\");\n Pool p1 = TestUtil.clone(p);\n p1.setQuantity(2000L);\n p1.setContractNumber(\"String_Node_Str\");\n List<Pool> existingPools = new LinkedList<Pool... |
"public void connectionRemoved(Connection connection) {\n if (connection.equals(this.conn)) {\n for (Integer threadId : locks.keySet()) {\n ThreadContext.get().setCallContext(getCallContext(threadId));\n Map<IMap, List<Data>> mapOfLocks = locks.get(threadId);\n for (IMap map :... |
"public void refresh(ContactDTO contactDTO) {\n view.setImageProvider(imageProvider);\n if (!isOfflineMode()) {\n dispatch.execute(new GetContactHistory(contactDTO.getId()), new CommandResultHandler<ListResult<ContactHistory>>() {\n\n protected void onCommandSuccess(ListResult<ContactHistory> result... |
"private void warnIfNotFullProfile(String description) {\n if (ejbContainerUtilImpl.isEJBLite()) {\n _logger.log(Level.WARNING, WARN_FEATURE_REQUIRES_FULL_PROFILE, description);\n }\n}\n"
|
"public void updateStatusReceived(String monitored, Long time) {\n getMonitor(monitored).setUp(true);\n getMonitor(monitored).setCreatingConnection(false);\n if (fd != null) {\n fd.messageReceived(monitored, time, MessageType.PING);\n }\n}\n"
|
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof RemoveOnCancelFuture)) {\n return false;\n }\n LoggingDelegatingFuture<?> that = (LoggingDelegatingFuture<?>) o;\n return delegate.equals(that.delegate);\n}\n"
|
"public String[] getFrameworkVMArguments(IPath installPath, IPath configPath, IPath deployPath, boolean isTestEnv) {\n String configPathStr = deployPath.makeAbsolute().append(\"String_Node_Str\").toPortableString();\n String vmArgs = \"String_Node_Str\" + configPathStr;\n return new String[] { vmArgs };\n}\n"
|
"public void handle(RoutingContext context) {\n DataBase database = DataBase.getInstance();\n SafeResultSet resultSet;\n EasyJsonObject responseObject = new EasyJsonObject();\n EasyJsonObject tempObject = new EasyJsonObject();\n EasyJsonArray tempArray = new EasyJsonArray();\n try {\n if (!cont... |
"public void onListItemClick(int position) {\n RecentSearchToken data = (RecentSearchToken) getAdapter().getItem(position + 1);\n this.keyword = data.getSeed();\n Intent intent = new Intent(getActivity(), SearchActivity.class);\n intent.putExtra(SearchActivity.KEYWORD, keyword);\n if (getActivity().getLo... |
"public byte[] getLogoBytes() {\n if (logo != null && !logo.isEmpty()) {\n try {\n InputStream logoStream = FileUtils.resolveResourceAsStream(AddonSpecification.class, logo);\n return FileUtils.toByteArray(logoStream);\n } catch (FileNotFoundException e) {\n logger.erro... |
"private Method getSetter() {\n return this.set;\n}\n"
|
"public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) {\n try {\n PropertyDescription retPD = definition != null ? definition.getReturnType() : null;\n return NGConversions.INSTANCE.convertSabloComponentToRhinoValue(session.getService(serviceName).executeServiceCall(defin... |
"public boolean performFinish() {\n final ItemRecord[] records = importPage.getElements();\n IRunnableWithProgress op = new IRunnableWithProgress() {\n public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n monitor.beginTask(\"String_Node_Str\", reco... |
"void setScope(Node n) {\n if (inLoop) {\n currentScope = n.isFunction() ? n : getEnclosingScope(n);\n }\n}\n"
|
"public static Map<String, String> generateBufferAEAD(DeviceHandler device, String nonce, int keyHandle) throws YubiHSMInputException, YubiHSMCommandFailedException, YubiHSMErrorException {\n byte[] nonceBA = Utils.validateNonce(Utils.hexToByteArray(nonce), true);\n byte[] cmdBuffer = Utils.concatAllArrays(nonceB... |
"public Void doInBackground() {\n getWizard().setNextFinishButtonEnabled(false);\n try {\n oreMan.initPelletReasoner();\n RecentManager.getInstance().add(currentURI);\n if (oreMan.consistentOntology()) {\n oreMan.getReasoner().classify();\n oreMan.getReasoner().realise()... |
"private static void populateColumnList(List list, IBaseExpression expression, String indicator) throws DataException {\n if (expression != null) {\n List l = new ArrayList();\n try {\n if (expression instanceof IScriptExpression && !(BaseExpression.constantId.equals(expression.getScriptId()... |
"public void getWords(final WordComposer codes, final WordCallback callback, final ProximityInfo proximityInfo) {\n synchronized (mUpdatingLock) {\n if (mRequiresReload)\n startDictionaryLoadingTaskLocked();\n if (mUpdatingDictionary)\n return;\n }\n getWordsInner(codes, cal... |
"public void mouseDoubleClick(MouseEvent e) {\n TreeItem[] treeSelection = tree.getSelection();\n if (treeSelection.length > 0) {\n TreeItem item = treeSelection[0];\n Object indicatorobj = item.getData(INDICATOR_UNIT_KEY);\n Object tableobj = item.getData(TABLE_INDICATOR_KEY);\n if (t... |
"public org.w3c.dom.Text createTextNode(String data) {\n byte[] textarray = TidyUtils.getBytes(data);\n Node node = new Node(NodeType.TextNode, textarray, 0, textarray.length);\n return (org.w3c.dom.Text) node.getAdapter();\n}\n"
|
"private void write(ISqlTransaction transaction, List<EntityData> inputRows) {\n for (EntityData inputRow : inputRows) {\n for (TargetTableDefintion targetTableDefinition : targetTables) {\n if (updateFirst) {\n TargetTable modelTable = targetTableDefinition.getUpdateTable();\n ... |
"public static List<VirtualFile> getAllSpecFiles(Project project) {\n Collection<VirtualFile> virtualFiles = FileBasedIndex.getInstance().getContainingFiles(FileTypeIndex.NAME, SpecFileType.INSTANCE, GlobalSearchScope.projectScope(project));\n return new ArrayList<>(virtualFiles);\n}\n"
|
"public void updatePlaylist(Playlist p, boolean fireUpdate) {\n inst.getPlaylistService().updatePlaylist(p);\n inst.getEventService().firePlaylistChanged(p);\n}\n"
|
"protected boolean isIconOverlapping(int size, int buffer, double remainingSpaceX, int pixelX, int nextStartPixel) {\n return (size + buffer > remainingSpaceX && getOverlapRenderingMode() == Overfull) || (pixelX + size + buffer > nextStartPixel && getOverlapRenderingMode() == Intersecting);\n}\n"
|
"public void testWhitespace() throws InvalidArtifactRangeException {\n ArtifactRange range = ArtifactRange.parse(NamespaceId.DEFAULT, \"String_Node_Str\");\n Assert.assertEquals(new ArtifactRange(NamespaceId.DEFAULT, \"String_Node_Str\", new ArtifactVersion(\"String_Node_Str\"), true, new ArtifactVersion(\"String... |
"public void onRightClick(Player player, HumanNPC npc) {\n if (!PermissionManager.generic(player, \"String_Node_Str\")) {\n Messaging.sendError(player, MessageUtils.noPermissionsMessage);\n return;\n }\n if (!AlchemistManager.hasClickedOnce(player.getName())) {\n if (recipes.size() == 0) {... |
"private boolean isValidBiomeEssence(ItemStack stackEssence, NBTTagCompound essenceCompound) {\n Block essenceBlock = getBlock(stackEssence);\n if (essenceBlock != ModBlocks.biomeAbsorberBlock) {\n return false;\n }\n if (essenceCompound == null) {\n return false;\n }\n int absorbing = e... |
"private String getAssigneesStr(IAtsWorkItem workItem, ArtifactReadable action) {\n String results = \"String_Node_Str\";\n if (isShowHeaderFull()) {\n results = workItem.getStateMgr().getAssigneesStr();\n } else {\n String currState = action.getSoleAttributeAsString(AtsAttributeTypes.CurrentStat... |
"protected Collection<? extends String> createFixedColumns(int columnSize) {\n List<String> columnNames = new ArrayList<String>();\n columnNames.add(MatchAnalysisConstant.BLOCK_KEY);\n additionalColumnPosition = new ColumnPosition(columnSize + 1);\n columnNames.add(MatchAnalysisConstant.GID);\n sortState... |
"public void testGetHadoopDistributionsDisplay_withCustom__Sorted() {\n String[] hadoopDistributionsDisplay = HadoopDistributionsHelper.HADOOP.getDistributionsDisplay(true);\n Assert.assertArrayEquals(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_... |
"public void clearLatestPositions() {\n latestPositionRenderer.clearPositionsAndTitlesAndAlerts();\n}\n"
|
"protected void updatePage(TextDocument page, HttpServletRequest httpRequest, HttpServletResponse httpResponse, WaybackRequest wbRequest, CaptureSearchResult result, Resource resource, ResultURIConverter uriConverter, CaptureSearchResults results) throws ServletException, IOException {\n page.resolveCSSUrls();\n ... |
"static String createErrorMessage(final String text, final int errorPos) {\n int sampleLen = errorPos + 20;\n String sampleText;\n if (text.length() <= sampleLen + 3) {\n sampleText = text;\n } else {\n sampleText = text.substring(0, sampleLen).concat(\"String_Node_Str\");\n }\n if (erro... |
"private Collection<Issue> getAllIssuesForCommand() {\n List<Issue> issuesForCommand = new ArrayList<>();\n for (Issue issue : qskos.getAllIssues()) {\n String command = jc.getParsedCommand();\n if ((issue.getType() == Issue.IssueType.ANALYTICAL && command.equals(CMD_NAME_ANALYZE)) || (issue.getType... |
"private void addRosterListeners() {\n roster.onItemAdded(new Listener<RosterItem>() {\n public void onEvent(final RosterItem item) {\n final String message = i18n().userAdded(item.getName());\n fireMessage(message);\n }\n });\n roster.onItemChanged(new Listener<RosterItem>(... |
"public void fireMessageListeners(ID sender, String msg) {\n for (Iterator i = msgListeners.iterator(); i.hasNext(); ) {\n IIMMessageListener l = (IIMMessageListener) i.next();\n l.handleMessageEvent(new ChatRoomMessageEvent(sender, new ChatRoomMessage(sender, targetID, msg)));\n }\n}\n"
|
"protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String relUrl = request.getRequestURI();\n relUrl = relUrl.substring(request.getContextPath().length());\n boolean propagateJsessionId = response.encodeURL(\"String_Node_Str\").contains(\"... |
"private boolean mandatoryPropertiesSet(NodeRef nodeRef, List<String> missingProperties) {\n boolean result = true;\n Map<QName, Serializable> nodeRefProps = this.nodeService.getProperties(nodeRef);\n QName nodeRefType = this.nodeService.getType(nodeRef);\n TypeDefinition typeDef = this.dictionaryService.ge... |
"private BufferedImage extractImage(BufferedImage page, Region region, File outputDirFile, int padding) {\n BufferedImage splitImage = null;\n if (region.rotate) {\n BufferedImage srcImage = page.getSubimage(region.left, region.top, region.height, region.width);\n splitImage = new BufferedImage(regi... |
"protected void prepareCacheQuery(IQuery odiQuery) {\n if (temporaryComputedColumns != null && temporaryComputedColumns.size() > 0) {\n if (odiQuery instanceof org.eclipse.birt.data.engine.executor.dscache.DataSourceQuery) {\n ((org.eclipse.birt.data.engine.executor.dscache.DataSourceQuery) odiQuer... |
"public void widgetSelected(SelectionEvent e) {\n System.out.println(\"String_Node_Str\");\n windowShell = decomposeHandler.windowShell;\n decomposeHandler.location = windowShell.getLocation();\n windowShell.close();\n if (windowShell != null) {\n if (windowShell.isDisposed()) {\n Syste... |
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptRulesetComponent convertTestScriptRulesetComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptRulesetComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.Tes... |
"public Object get(String name, Scriptable start) {\n if (ScriptConstants.OUTER_RESULT_KEYWORD.equalsIgnoreCase(name)) {\n if (parent == null) {\n throw Context.reportRuntimeError(DataResourceHandle.getInstance().getMessage(ResourceConstants.NO_OUTER_RESULTS_EXIST));\n } else {\n ... |
"public Builder proxySource(Entity projectile) {\n this.indirect = checkNotNull(projectile);\n return (B) this;\n}\n"
|
"public void moveTo(Session session, int newPos) throws SQLException {\n store.logUndo(this, data);\n PageDataOverflow p2 = PageDataOverflow.create(store, newPos, type, parentPageId, nextPage, data, start, size);\n store.update(p2);\n if (nextPage != 0) {\n PageDataOverflow p3 = (PageDataOverflow) st... |
"public static DataEntity getActivityStream(ExoSocialActivity activity, Identity authentiatedUsed) {\n DataEntity as = new DataEntity();\n IdentityManager identityManager = CommonsUtils.getService(IdentityManager.class);\n Identity owner = identityManager.getOrCreateIdentity(OrganizationIdentityProvider.NAME, ... |
"private void updateUi(int punch1, int punch2) {\n Spinner taskSpinnerIn = (Spinner) findViewById(R.id.taskSpinnerIn);\n Spinner taskSpinnerOut = (Spinner) findViewById(R.id.taskSpinnerOut);\n Chronos chron = new Chronos(this);\n tasks = chron.getAllTasks();\n ArrayAdapter spinnerAdapter = new ArrayAdapt... |
"private void parseQuotedValue(char prev) {\n ch = input.nextChar();\n while (!(prev == quote && (ch <= ' ' || ch == delimiter || ch == newLine))) {\n if (ch != quote && ch != quoteEscape) {\n if (prev == quote) {\n if (parseUnescapedQuotes) {\n output.appender.... |
"public void setup() {\n MockitoAnnotations.initMocks(this);\n underTest = new BigtableDataGrpcClient(channelPool, executorService, retryExecutorService, RetryOptionsUtil.createTestRetryOptions(nanoClock), clientCallService);\n when(channelPool.newCall(any(MethodDescriptor.class), any(CallOptions.class))).then... |
"private void update(boolean validateCredentials) {\n isFinished = true;\n setWizardError(null);\n String selection = urlWidget.getURLSelection();\n if (CloudFoundryURLNavigation.canEnableCloudFoundryNavigation(selection)) {\n cfSignupButton.setVisible(true);\n } else {\n cfSignupButton.set... |
"private void foreachArray(Context context, ForeachLoop loop) throws UserException, UndefinedTypeException {\n Var arrayVar = exprWalker.eval(context, loop.getArrayVarTree(), loop.findArrayType(context), false, null);\n VariableUsageInfo bodyVU = loop.getBody().checkedGetVariableUsage();\n List<Var> writtenVar... |
"static double roundIntermediate(double x, RoundingMode mode) {\n if (!isFinite(x)) {\n throw new ArithmeticException(\"String_Node_Str\");\n }\n switch(mode) {\n case UNNECESSARY:\n checkRoundingUnnecessary(isMathematicalInteger(x));\n return x;\n case FLOOR:\n ... |
"public void showGroup(Group group) {\n if (group != null) {\n if (!group.getActive()) {\n llBottomPanel.setVisibility(VISIBLE);\n }\n setToolbarTitle(getString(R.string.group) + \"String_Node_Str\" + group.getName());\n tv_fullName.setText(group.getName());\n tv_externa... |
"public Response getServiceInstances(String serviceId) {\n if (serviceId == null || serviceId.isEmpty()) {\n return Response.status(Status.BAD_REQUEST).build();\n }\n logger.debug(\"String_Node_Str\" + serviceId + \"String_Node_Str\" + serviceId);\n Service service;\n try {\n service = serv... |
"public DequeueResult dequeue(QueueConsumer consumer, ReadPointer readPointer) throws OperationException {\n final QueueConfig config = consumer.getQueueConfig();\n if (LOG.isTraceEnabled()) {\n LOG.trace(getLogMessage(\"String_Node_Str\" + this.dequeueReturns.get() + \"String_Node_Str\" + consumer + \"Str... |
"public void process(Map.Entry<String, Requirement> instance) {\n String definitionVersion = ParsingContextExecution.getDefinitionVersion();\n switch(definitionVersion) {\n case \"String_Node_Str\":\n case \"String_Node_Str\":\n case \"String_Node_Str\":\n capabilityOrNodeReference... |
"public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position1) {\n final ViewHolder holder = (ZipAdapter.ViewHolder) viewHolder;\n if (position1 == 0) {\n holder.rl.setMinimumHeight(zipViewer.paddingTop);\n return;\n }\n final ZipObj rowItem = enter.get(position1 - 1);\n f... |
"public void setText(final String text) {\n final String escaped = TextUtils.escape(text);\n final NodeList nodes = element.getChildNodes();\n for (int index = 0; index < nodes.getLength(); index++) {\n final Node child = nodes.item(index);\n if (child.getNodeType() == Node.TEXT_NODE) {\n ... |
"public static void spawnExperience(World world, Location corner, int amount) {\n int xpSplit = getXPSplit(amount);\n if (amount < 0)\n return;\n for (int current = 0; current < amount; current += xpSplit) {\n ExperienceOrb orb = world.spawn(corner, ExperienceOrb.class);\n orb.setExperienc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.