content stringlengths 40 137k |
|---|
"public LabeledPoint call(double[] tokens) throws ModelServiceException {\n try {\n double response = tokens[responseIndex];\n double[] features = new double[tokens.length - 1];\n for (int i = 0; i < tokens.length - 1; i++) {\n if (responseIndex != i) {\n features[i] = ... |
"protected void cleanup() {\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.finest(\"String_Node_Str\");\n }\n synchronized (_activeCollections) {\n for (ActiveCollection ac : _activeCollections.values()) {\n try {\n ac.cleanup();\n } catch (Exception e) {\n ... |
"public Long execute() {\n Long attempts = null;\n Float score = scoreEvaluation.getScore();\n Boolean passed = scoreEvaluation.getPassed();\n saveNodeScore(courseNode, assessedIdentity, score, cpm);\n saveNodePassed(courseNode, assessedIdentity, passed, cpm);\n saveAssessmentID(courseNode, assessedId... |
"private Feature computeNextFeature() {\n float[] feature = new float[featureLength];\n float[] mfc3f = cepstraBuffer[jf3++];\n float[] mfc2f = cepstraBuffer[jf2++];\n float[] mfc1f = cepstraBuffer[jf1++];\n float[] current = cepstraBuffer[currentPosition++];\n float[] mfc1p = cepstraBuffer[jp1++];\n ... |
"private void fileChecksumVote(long fileId) {\n List<Long> rfiGuids = retrieveReplicaFileInfoGuidsForFile(fileId);\n List<ReplicaFileInfo> rfis = retrieveReplicaFileInfosWithChecksum(rfiGuids);\n if (rfis.size() == 0) {\n log.warn(\"String_Node_Str\" + retrieveFilenameForFileId(fileId) + \"String_Node_S... |
"public void evaluate(List<List<T>> annotatorResults, List<List<T>> goldStandard, EvaluationResultContainer results) {\n for (int i = 0; i < annotatorResults.size(); ++i) {\n matchingCounts.add(matchingsCounter.countMatchings(annotatorResults.get(i), goldStandard.get(i)));\n }\n List<List<int[]>> matchi... |
"public WorkflowTask updateTask(String taskId, Map<QName, Serializable> properties, Map<QName, List<NodeRef>> add, Map<QName, List<NodeRef>> remove) {\n String engineId = BPMEngineRegistry.getEngineId(taskId);\n TaskComponent component = getTaskComponent(engineId);\n String originalAsignee = (String) component... |
"public boolean equals(Object o) {\n if (o instanceof ITopic) {\n return getName().equals(((ITopic) o).getName());\n } else {\n return false;\n }\n}\n"
|
"private PatternEmbeddingsMap growPattern(int[] graph, int minEdgeId, int[] parentPattern, int[][] parentEmbeddings, int[] rightmostPath) {\n PatternEmbeddingsMap currentChildMap = PatternEmbeddingsMap.getEmptyOne();\n for (int m = 0; m < parentEmbeddings.length / 2; m++) {\n int[] parentVertexIds = parent... |
"public ServerManager getServerManager() {\n return getById(\"String_Node_Str\", ServerManager.class);\n}\n"
|
"protected void updateNoSims() {\n boolean hasNoSims = mHasMobileDataFeature && mMobileSignalControllers.size() == 0;\n if (hasNoSims != mHasNoSims) {\n mHasNoSims = hasNoSims;\n mCallbackHandler.setNoSims(mHasNoSims);\n }\n}\n"
|
"public static PostBody parse(String body) {\n HashMap<String, String> fieldMap = new HashMap<>();\n String[] fields = body.split(\"String_Node_Str\");\n for (String field : fields) {\n String[] keyValue = field.split(\"String_Node_Str\");\n if (keyValue.length == 1) {\n fieldMap.put(k... |
"public String toString() {\n StringBuilder buf = new StringBuilder(\"String_Node_Str\");\n buf.append(\"String_Node_Str\");\n buf.append(this.toolTipText);\n return buf.toString();\n}\n"
|
"public void testActivationKeyNameUnique() {\n ActivationKey ak = mock(ActivationKey.class);\n ActivationKey akOld = mock(ActivationKey.class);\n ActivationKeyCurator akc = mock(ActivationKeyCurator.class);\n Owner o = mock(Owner.class);\n OwnerCurator oc = mock(OwnerCurator.class);\n when(ak.getName(... |
"public String getMessage(String resourceKey, ULocale locale) {\n if (StringUtil.isBlank(resourceKey))\n return null;\n if (locale == null)\n locale = ThreadResources.getLocale();\n String msg = translations.getMessage(resourceKey, locale);\n if (msg != null)\n return msg;\n String b... |
"public Map loadMap(String map) {\n Reader<Map> reader = new Reader<Map>();\n MapLoader loader = new MapLoader();\n return reader.read(Game.GAME_MAPS_PATH + \"String_Node_Str\" + map + \"String_Node_Str\", loader);\n}\n"
|
"public void removeDependencies() {\n removeDependency(input, output);\n}\n"
|
"private ArrayList<Object> getComplexTypeDefinitionChildren(XSDComplexTypeDefinition complexTypeDefinition) {\n XSDComplexTypeContent xsdComplexTypeContent = complexTypeDefinition.getContent();\n ArrayList<Object> list = new ArrayList<Object>();\n if (xsdComplexTypeContent == null) {\n XSDTypeDefinition... |
"public void checkTypes(MarkerList markers, IContext context) {\n if (this.instance != null) {\n this.instance.checkTypes(markers, context);\n int valueTag = this.instance.valueTag();\n if (valueTag == APPLY_METHOD_CALL) {\n ApplyMethodCall call = (ApplyMethodCall) this.instance;\n ... |
"private void handleSetVMOrFwdMessage() {\n if (DBG) {\n log(\"String_Node_Str\");\n }\n boolean success = true;\n boolean fwdFailure = false;\n String exceptionMessage = \"String_Node_Str\";\n if (mForwardingChangeResults != null) {\n for (int i = 0; i < mForwardingChangeResults.length;... |
"private static DenseFactor getProductOfAllFactors(FactorGraph fg, boolean logDomain) {\n DenseFactor joint = new DenseFactor(new VarSet(), logDomain ? 0.0 : 1.0);\n for (int a = 0; a < fg.getNumFactors(); a++) {\n if (fg.getFactor(a) instanceof DenseFactor) {\n DenseFactor factor = (DenseFactor... |
"protected void paintFigure(Graphics graphics) {\n Rectangle rect = getBounds().getCopy();\n graphics.setXORMode(true);\n graphics.setForegroundColor(ColorConstants.white);\n graphics.setBackgroundColor(ColorManager.getColor(31, 31, 31));\n graphics.translate(getLocation());\n PointList outline = new ... |
"private void refreshChooser() {\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel();\n comboBoxModel.addElement(NO_SELECTION);\n comboBoxModel.setSelectedItem(NO_SELECTION);\n if (model != null) {\n List<LayoutBuilder> builders = new ArrayList<LayoutBuilder>(Lookup.getDefault().lookupA... |
"public void storeCalendar(SchedulingContext context, String name, Calendar calendar, boolean replaceExisting, boolean updateTriggers) throws ObjectAlreadyExistsException, JobPersistenceException {\n synchronized (lock) {\n if (!setAccessor()) {\n throw new JobPersistenceException(\"String_Node_Str... |
"public static void addRows(IloLPMatrix mat, IloRange[] ranges) throws IloException {\n if (ranges == null) {\n return;\n }\n for (int i = 0; i < ranges.length; i++) {\n addRow(mat, ranges[i]);\n }\n}\n"
|
"protected void finalize() throws Throwable {\n helpDestroy();\n super.finalize();\n}\n"
|
"public static boolean isSupportedUbuntuVMNodeType(QName nodeType) {\n if (nodeType.equals(Types.ubuntuNodeType)) {\n return true;\n }\n String nodeTypeNS = nodeType.getNamespaceURI();\n String nodeTypeLN = nodeType.getLocalPart();\n if (nodeTypeNS.equals(\"String_Node_Str\") && PluginUtils.isProp... |
"public void createXaManagerMBean(XaDataSourceManager datasourceMananger) {\n if (!register(new XaManager.AsMXBean(instance.id, datasourceMananger))) {\n if (!register(new XaManager(instance.id, datasourceMananger)))\n failedToRegister(\"String_Node_Str\");\n }\n}\n"
|
"public ServiceInfo buildserviceinformation(ServiceInfo serviceinfo) throws Exception {\n ServiceDiscoveryHelper sdh;\n if (serviceinfo.getAuthConfig() != null && serviceinfo.getWsdlUri().indexOf(\"String_Node_Str\") == 0) {\n sdh = new ServiceDiscoveryHelper(serviceinfo.getWsdlUri(), serviceinfo.getAuthCo... |
"public List<TypedNamedEntity> performTask2(Document document) throws GerbilException {\n return getDocumentMarkings(document.getDocumentURI(), document.getText().length(), TypedNamedEntity.class);\n}\n"
|
"public ITypedElement getRight() {\n return CompareUtils.getFileRevisionTypedElement(gitPath, remoteCommit, repo, baseId);\n}\n"
|
"private void parseItems(final PageDefinition pgdef, final NodeInfo parent, Collection items, AnnotationHelper annHelper, boolean bNativeContent) throws Exception {\n LanguageDefinition parentlang = getLanguageDefinition(parent);\n if (parentlang == null)\n parentlang = pgdef.getLanguageDefinition();\n ... |
"public void setCourseConfig(CourseConfig cc) {\n courseConfig = (cc == null ? null : cc.clone());\n}\n"
|
"public static void main(String[] args) throws Exception {\n final Configuration conf = new Configuration();\n final String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();\n if (otherArgs.length != 4) {\n System.err.println(\"String_Node_Str\");\n System.exit(2);\n }\n ... |
"protected Schema buildNewSchema(String uri, NamespaceResolver nr, int schemaCount, SchemaModelGeneratorProperties properties) {\n Schema schema = new Schema();\n schema.setName(SCHEMA_FILE_NAME + schemaCount + SCHEMA_FILE_EXT);\n schemaCount++;\n String defaultNamespace = null;\n if (nr != null) {\n ... |
"public final MapArray<String, ICell<T>> getColumn(int colNum) {\n int rowsCount = -1;\n if (count > 0)\n rowsCount = count;\n else if (headers != null && (headers.length > 0))\n rowsCount = headers.length;\n if (rowsCount > 0 && rowsCount < colNum)\n asserter.exception(format(\"String_... |
"public void run() {\n updateTablePreview(headerInfo, data);\n WizardBase.showException(errorMsg);\n}\n"
|
"private Object _performAsymmetricCrypto(int operationMode, Object input, Key key, String cipherAlgorithm) throws IllegalActionException {\n Cipher cipher = null;\n try {\n cipher = Cipher.getInstance(cipherAlgorithm);\n } catch (NoSuchAlgorithmException | NoSuchPaddingException e) {\n throw new ... |
"public boolean postData() {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\"String_Node_Str\");\n try {\n List<BasicNameValuePair> nameValuePairs = new ArrayList<BasicNameValuePair>(2);\n nameValuePairs.add(new BasicNameValuePair(\"String_Node_Str\", \"Str... |
"public ValidationType[] useFor() {\n return (overrides != null && overrides.containsKey(JavaEESecConstants.USE_FOR)) ? (ValidationType[]) overrides.get(JavaEESecConstants.USE_FOR) : new ValidationType[] { ValidationType.PROVIDE_GROUPS, ValidationType.VALIDATE };\n}\n"
|
"public static void checkReceiver(final Context context, final Intent broadcastIntent, final String receiverName, final String permission) {\n final PackageManager packageManager = context.getPackageManager();\n final String packageName = context.getPackageName();\n final List<ResolveInfo> receivers = packageM... |
"public String getPattern() {\n return determinePattern(\"String_Node_Str\");\n}\n"
|
"protected void getInheritedChildPermissions(Permission perm, List<String> list, boolean invert) {\n if (perm == null) {\n return;\n }\n for (Map.Entry<String, Boolean> entry : perm.getChildren().entrySet()) {\n boolean has = entry.getValue() ^ invert;\n String node = (has ? \"String_Node_... |
"private void printHistogram(BufferedWriter out, FormatUtil formatter) throws IOException {\n if (this.histograms.isEmpty()) {\n return;\n }\n java.util.Set<HKEY> keys = new TreeSet<HKEY>(histograms.get(0).comparator());\n for (Histogram<HKEY> histo : histograms) {\n if (histo != null)\n ... |
"public void testDIDGet() throws ParserConfigurationException {\n CardApplicationPath cardApplicationPath = new CardApplicationPath();\n CardApplicationPathType cardApplicationPathType = new CardApplicationPathType();\n cardApplicationPathType.setCardApplication(cardApplication);\n cardApplicationPath.setCa... |
"private boolean connectAndDownload(RemoteFileDesc rfd) {\n HTTPDownloader dloader = null;\n dloader = establishConnection(rfd);\n if (dloader == null)\n return true;\n boolean http11 = true;\n while (http11) {\n boolean wasQueued = false;\n int connected;\n http11 = !(rfd.get... |
"protected TAPColumn getValidColMeta(final DBColumn typeFromQuery, final TAPColumn typeFromResult) {\n if (typeFromQuery != null && typeFromQuery instanceof TAPColumn) {\n TAPColumn colMeta = (TAPColumn) typeFromQuery;\n if (colMeta.getDatatype().isUnknown() && typeFromResult != null && !typeFromResult... |
"private void closeTargetReport() {\n if (targetReportHandle instanceof ReportDesignHandle) {\n ((ReportDesignHandle) targetReportHandle).close();\n } else if (targetReportHandle instanceof IReportDocument) {\n ((IReportDocument) targetReportHandle).close();\n }\n}\n"
|
"private GraphTargetItem member(Reference<Boolean> needsActivation, List<String> importedClasses, List<Integer> openedNamespaces, GraphTargetItem obj, HashMap<String, Integer> registerVars, boolean inFunction, boolean inMethod, List<AssignableAVM2Item> variables) throws IOException, ParseException {\n GraphTargetIte... |
"private void createGraph() throws OpenRDFException {\n graph = new DirectedMultigraph<>(NamedEdge.class);\n Iterator<Resource> conceptIt = new MonitoredIterator<>(involvedConcepts.getResult().getData(), progressMonitor);\n while (conceptIt.hasNext()) {\n Resource concept = conceptIt.next();\n Co... |
"public void getProgramRuntimeArgs(HttpRequest request, HttpResponder responder, String namespaceId, String appId, String programType, String programId) {\n ProgramType type = ProgramType.valueOfCategoryName(programType);\n if (type == null || type == ProgramType.WEBAPP) {\n responder.sendStatus(HttpRespon... |
"protected void okPressed() {\n fChannelInfo = new ChannelInfo(fChannelNameText.getText());\n fChannelInfo.setSubBufferSize(Long.parseLong(fSubBufferSizeText.getText()));\n fChannelInfo.setNumberOfSubBuffers(Integer.parseInt(fNumberOfSubBuffersText.getText()));\n fChannelInfo.setSwitchTimer(Long.parseLong(f... |
"private void sendPingMessage(WebSocketSession session, TextMessage pingMessage) {\n try {\n webSocketflushExecutor.execute(new OrderedWebSocketFlushRunnable(session, pingMessage, true));\n } catch (RuntimeException e) {\n logger.warn(\"String_Node_Str\", e.getMessage(), e);\n }\n}\n"
|
"public void run() {\n parentComposite.addKeyListener(fpsKeyListener);\n}\n"
|
"protected void startGroupTOCEntry(IGroupContent group) {\n TOCBuilder tocBuilder = context.getTOCBuilder();\n if (tocBuilder != null) {\n TOCEntry entry = getParentTOCEntry();\n String hiddenFormats = group.getStyle().getVisibleFormat();\n long elementId = getElementId(group);\n tocEn... |
"public Pair<JobInfo.Status, String> handleVmWorkJob(VmWork work) throws Exception {\n Method method = getHandlerMethod(work.getClass());\n if (method != null) {\n try {\n if (s_logger.isDebugEnabled())\n s_logger.debug(\"String_Node_Str\" + work.getClass().getName() + _gsonLogger... |
"public void removeIndex(Snip snip) {\n try {\n reader = IndexReader.open(indexFile);\n System.err.println(\"String_Node_Str\" + reader.delete(new Term(\"String_Node_Str\", snip.getName().hashCode() + \"String_Node_Str\")));\n } catch (IOException e) {\n System.err.println(\"String_Node_Str\"... |
"public static void init(Context context) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n boolean hasUserOptedOut = !prefs.getBoolean(\"String_Node_Str\", true);\n if (hasUserOptedOut != mHasUserOptedOut) {\n mHasUserOptedOut = hasUserOptedOut;\n }\n}\n"
|
"public void testPutAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {\n Future<Object> future = map4.putAsync(\"String_Node_Str\", \"String_Node_Str\");\n future.get();\n}\n"
|
"public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n if (glRemoteRenderingView != null || this.getViewType().equals(\"String_Node_Str\") || this.getViewType().equals(\"String_Node_Str\") || this.getViewType().equals(\"String_Node_Str\")) {\n viewFrustum.considerAspectRatio(tr... |
"public void endGroup(IGroupContent groupContent) {\n int groupLevel = groupContent.getGroupLevel();\n int height = 0;\n height = updateUnresolvedCell(groupLevel, false);\n height += updateUnresolvedCell(groupLevel, true);\n assert (!groupStack.isEmpty());\n groupStack.pop();\n}\n"
|
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n isConcept = false;\n if (selection.getFirstElement() instanceof XSDModelGroup) {\n TreePath tPath = ((TreeSelection) selection).getPaths()[0];\n ... |
"public void visitFunctionCall(FunctionCallTree functionCall) {\n ExpressionTree callee = functionCall.callee();\n if (callee.is(Kind.NAMESPACE_NAME) && \"String_Node_Str\".equals(((NamespaceNameTree) callee).fullName())) {\n SeparatedList<ExpressionTree> arguments = functionCall.arguments();\n if (... |
"public void validateOnSubmitDriver(DriverBean driverBean) {\n clearErrorsAndMessages();\n String alpha = \"String_Node_Str\";\n String alphaNumeric = \"String_Node_Str\";\n Pattern namePattern = Pattern.compile(alpha);\n Pattern alphaNumericPattern = Pattern.compile(alphaNumeric);\n Matcher matcher =... |
"private boolean doProcess(GroupActivatedEvent event, Topology topology) {\n Application application = topology.getApplication(event.getAppId());\n if (application == null) {\n if (log.isWarnEnabled()) {\n log.warn(String.format(\"String_Node_Str\", event.getAppId()));\n }\n return... |
"protected void checkAnnotatedRule() {\n if (executableElement.getParameters().size() != 1) {\n throw new TgDaoException(String.format(\"String_Node_Str\", executableElement.getSimpleName().toString()));\n }\n ModelConditions modelConditions = executableElement.getAnnotation(ModelConditions.class);\n ... |
"private static void processMembers(List members, PrintWriter writer, boolean declaringTypeIsInterface) throws DocException {\n for (Iterator it = members.iterator(); it.hasNext(); ) {\n IProgramElement member = (IProgramElement) it.next();\n if (member.getKind().isType()) {\n if (!member.ge... |
"private void logIt(int toolFlag, boolean messageIsRequest, IHttpRequestResponse messageInfo, IInterceptedProxyMessage message) {\n if (loggerPreferences.isEnabled()) {\n if (messageInfo == null && message != null) {\n messageInfo = message.getMessageInfo();\n }\n IRequestInfo analyze... |
"public void reset(final Activity activity, final CommentListingFragment fragment, final RedditPreparedComment comment, final ActiveTextView.OnLinkClickedListener listener) {\n if (this.comment != null)\n this.comment.unbind(this);\n this.comment = comment;\n comment.bind(this);\n final int paddingPi... |
"public void executeExtraValueFormForEdit(JoinPoint joinPoint) {\n HttpServletRequest request = ServletActionContext.getRequest();\n PageAction action = (PageAction) joinPoint.getTarget();\n String pageCode = action.getSelectedNode();\n IPage page = action.getPage(pageCode);\n if (null != page && page.ge... |
"public T deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n Object entity = instantiateClass(getValueClass());\n BeanWrapper wrapper = BeanWrapper.create(entity, conversionService);\n ResourceMapping domainMapping = config.getResourceMappingForDomainType(ge... |
"private void writeStatsToFile(boolean force) {\n synchronized (mFileLock) {\n mCal.setTimeInMillis(System.currentTimeMillis());\n final int curDay = mCal.get(Calendar.DAY_OF_YEAR);\n final boolean dayChanged = curDay != mLastWriteDay;\n long currElapsedTime = SystemClock.elapsedRealtime(... |
"private boolean getDiscardNextActionUp() {\n if (this.mBaseEditor == null) {\n return false;\n }\n try {\n return this.mDiscardNextActionUpField.getBoolean(this.mEditor);\n } catch (Exception e) {\n return false;\n }\n}\n"
|
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws IOException, PluginException {\n this.setBrowserExclusive();\n br.setFollowRedirects(true);\n br.getHeaders().put(\"String_Node_Str\", downloadLink.getDownloadURL());\n br.getPage(\"String_Node_Str\");\n if (!br.getURL().equ... |
"private long getCallTimeout(long callTimeout) {\n if (callTimeout > 0) {\n return callTimeout;\n }\n final long defaultCallTimeout = nodeEngine.operationService.getDefaultCallTimeout();\n if (op instanceof WaitSupport) {\n final long waitTimeoutMillis = ((WaitSupport) op).getWaitTimeoutMillis... |
"public static void init() {\n nei = Loader.isModLoaded(Names.Mods.nei);\n harvestcraft = Loader.isModLoaded(Names.Mods.harvestcraft);\n natura = Loader.isModLoaded(Names.Mods.natura);\n weeeFlowers = Loader.isModLoaded(Names.Mods.weeeFlowers);\n forestry = Loader.isModLoaded(Names.Mods.forestry);\n t... |
"public static Trainer getModel(CommandLine cmd) throws ParseException {\n final String algorithm = cmd.hasOption(\"String_Node_Str\") ? cmd.getOptionValue(\"String_Node_Str\") : \"String_Node_Str\";\n final int iterations = cmd.hasOption(\"String_Node_Str\") ? Integer.parseInt(cmd.getOptionValue(\"String_Node_St... |
"public void viewDirection(ActionRequest request, ActionResponse response) {\n try {\n Company company = AuthUtils.getUser().getActiveCompany();\n if (company == null) {\n response.setFlash(I18n.get(IExceptionMessage.PRODUCT_NO_ACTIVE_COMPANY));\n return;\n }\n Addre... |
"public Community[] getCommunityCommunities(Integer communityId, String expand, Integer limit, Integer offset, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\" + communityId + \"String_Node_Str\")... |
"protected List<ModuleToInstall> getModulesToBeInstalled() {\n List<ModuleToInstall> theInputList = tableViewerCreator.getInputList();\n List<ModuleToInstall> toInstall = new ArrayList<ModuleToInstall>();\n for (ModuleToInstall module : theInputList) {\n if (!MavenConstants.DOWNLOAD_MANUAL.equals(module... |
"public boolean select(Viewer viewer, Object parentElement, Object element) {\n if (parentElement instanceof TreePath || element instanceof TreePath) {\n this.getClass();\n }\n if (parentElement instanceof RepositoryNode && element instanceof RepositoryNode) {\n return selectRepositoryNode(viewer... |
"public <U> Stream<U> mapToObj(IntFunction<? extends U> mapper) {\n ThrowingIntFunction<? extends U, ? extends X> f = mapper::apply;\n return ThrowingBridge.of(getDelegate().mapToObj(f), getExceptionClass());\n}\n"
|
"public void shellActivated(ShellEvent e) {\n dialog.getShell().setFocus();\n IContext context = HelpSystem.getContext(HelpPlugin.INDICATOR_SELECTOR_HELP_ID);\n PlatformUI.getWorkbench().getHelpSystem().displayHelp(context);\n}\n"
|
"public void sourcesQuery() throws Exception {\n final String response = DummyWhoisClient.query(NrtmServer.getPort(), \"String_Node_Str\");\n assertThat(response, containsString(\"String_Node_Str\"));\n}\n"
|
"private final String bringUpServiceLocked(ServiceRecord r, int intentFlags, boolean execInFg, boolean whileRestarting) {\n if (r.app != null && r.app.thread != null) {\n sendServiceArgsLocked(r, execInFg, false);\n return null;\n }\n if (!whileRestarting && r.restartDelay > 0) {\n return ... |
"public boolean equals(Object o) {\n if (!(o instanceof ReceivedDeletedBlockInfo)) {\n return false;\n }\n ReceivedDeletedBlockInfo other = (ReceivedDeletedBlockInfo) o;\n return this.block.equals(other.getBlock()) && this.status == other.status && this.delHints != null && this.delHints.equals(other.... |
"public void run() throws Exception {\n ReplicatedMapService service = getService();\n ReplicatedRecordStore store = service.getReplicatedRecordStore(name, true, key);\n store.merge(key, entryView, policy);\n}\n"
|
"public void testBug1541077() throws Exception {\n if (!isApplicable()) {\n return;\n }\n MondrianProperties props = MondrianProperties.instance();\n propSaver.set(props.UseAggregates, false);\n String mdx = \"String_Node_Str\";\n Result result = getTestContext().executeQuery(mdx);\n Object ... |
"protected void onNewIntent(final Intent intent) {\n super.onNewIntent(intent);\n final Tag mTag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);\n if (mTag != null) {\n new SimpleAsyncTask() {\n\n private Tag mTag;\n private IsoDep mTagcomm;\n private EMVCard mCard;\n priv... |
"private void exportAllReferenceJobs(ProcessItem routeProcess) throws InvocationTargetException, InterruptedException {\n for (NodeType cTalendJob : EmfModelUtils.getComponentsByName(routeProcess, \"String_Node_Str\")) {\n String jobId = null;\n String jobVersion = null;\n String jobContext = nu... |
"public void onGuildMemberLeave(GuildMemberLeaveEvent event) {\n if (event.getMember().getUser().getIdLong() == bot.getJda().getSelfUser().getIdLong())\n return;\n if (!event.getGuild().isAvailable())\n return;\n try {\n GuildWelcomeMessages queryResult = messageDao.queryForId(event.getGui... |
"public void testCreateDataSourceWithSameName() {\n SlotHandle parent = getReportDesignHandle().getDataSources();\n assertEquals(0, parent.getCount());\n createDataSource();\n assertEquals(1, parent.getCount());\n DataSourceHandle dataSource2 = getElementFactory().newOdaDataSource(DATA_SOURCE_NAME);\n ... |
"public Vector2 getMinimumTranslationVector() {\n return intersection ? overlapV : Vector2.ZERO;\n}\n"
|
"public String colorBySymmetry() {\n List<List<Integer>> units = helixAxisAligner.getHelixLayers().getByLargestContacts().getLayerLines();\n units = orientLayerLines(units);\n QuatSymmetrySubunits subunits = helixAxisAligner.getSubunits();\n List<Integer> modelNumbers = subunits.getModelNumbers();\n List... |
"private static RoleType getRole(ServiceConfiguration configuration, String roleName, String effectiveUserId) throws Exception {\n RoleType retVal = null;\n boolean seenAllRoles = false;\n String RoleMarker = null;\n while (!seenAllRoles && retVal == null) {\n ListRolesType listRolesType = MessageHel... |
"public static String getExpression() {\n if (tableNode == null) {\n return null;\n }\n expression.delete(0, expression.length());\n expression.append(\"String_Node_Str\");\n expression.append(tableNode);\n expression.append(\"String_Node_Str\");\n expression.append(tableNode);\n expressi... |
"protected int getColumnPos(int rowId, Cell cell) {\n if (rowId < 0 || rowId >= rows.size())\n return 0;\n LayoutRow row = getLayoutRow(rowId);\n return row.findCellColumnPos(cell);\n}\n"
|
"public ConvertOutput toSourceOutput(boolean processJumps, boolean isStatic, int classIndex, java.util.HashMap<Integer, GraphTargetItem> localRegs, Stack<GraphTargetItem> stack, Stack<GraphTargetItem> scopeStack, ABC abc, ConstantPool constants, MethodInfo[] method_info, MethodBody body, int start, int end, HashMap<Int... |
"protected static void bubbleSortLines(FastQueue<Segment> segments) {\n for (int i = 0; i < 4; i++) {\n int bestValue = segments.get(i).index0;\n int bestIndex = i;\n for (int j = i + 1; j < segments.size; j++) {\n Segment b = segments.get(j);\n if (b.index0 < bestValue) {\... |
"public void createCriteria(ModelConfiguration config) {\n config.removeAllCriteria();\n if (this.kAnonymityModel != null && this.kAnonymityModel.isActive() && this.kAnonymityModel.isEnabled()) {\n config.addCriterion(this.kAnonymityModel.getCriterion(this));\n }\n if (this.dPresenceModel != null && ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.