content stringlengths 40 137k |
|---|
"public List<BankStatement> getBankStatements(EbicsPartner ebicsPartner) throws AxelorException, IOException {\n List<BankStatement> bankStatementList = Lists.newArrayList();\n EbicsUser transportEbicsUser = ebicsPartner.getTransportEbicsUser();\n if (ebicsPartner.getBankStatementFileFormatSet() == null || ebi... |
"public static void main(String[] args) {\n FiftyNineSecondConfig fnc = new FiftyNineSecondConfig();\n try {\n fnc.init();\n FiftyNineSecondsService fnss = new FiftyNineSecondsService(fnc);\n String xmlCats = fnss.getItemCats();\n List<Integer> cats = DBParserUtil.getAllCats(xmlCats);\... |
"private void postMessage(MPISendRequests requests) {\n MPIMessage message = requests.message;\n for (int i = 0; i < message.getBuffers().size(); i++) {\n try {\n MPIBuffer buffer = message.getBuffers().get(i);\n LOG.info(String.format(\"String_Node_Str\", executor, requests.rank, buf... |
"public CancelBundleTaskResponseType cancelBundleTask(final CancelBundleTaskType request) throws EucalyptusCloudException {\n final CancelBundleTaskResponseType reply = request.getReply();\n reply.set_return(true);\n final Context ctx = Contexts.lookup();\n try {\n final VmInstance v = VmInstances.lo... |
"private boolean synDishCategory() {\n boolean result = true;\n List<DishCategory> dishCategoryList = serviceHelper.getDishCategory();\n if (dishCategoryList == null) {\n result = false;\n } else {\n for (DishCategory dishCategory : dishCategoryList) {\n dbHelper.addDishCategory(dis... |
"private void optimizeOneClass(int classIndex) {\n int numDataPoints = dataSet.getNumDataPoints();\n double[] realLabels = new double[numDataPoints];\n double[] instanceWeights = new double[numDataPoints];\n IntStream.range(0, numDataPoints).parallel().forEach(i -> {\n double prob = logisticRegressio... |
"public void run() {\n CreatePatternWizard fileWizard = new CreatePatternWizard(folder) {\n public void dispose() {\n activeCount = 0;\n super.dispose();\n }\n };\n WizardDialog dialog = new WizardDialog(Display.getDefault().getActiveShell(), fileWizard) {\n public vo... |
"public static ERepositoryObjectType getType(String typeName) {\n for (ERepositoryObjectType type : (ERepositoryObjectType[]) values()) {\n if (type.getType().equals(typeName)) {\n return type;\n }\n }\n return type;\n}\n"
|
"public List<List<XMLDBModel>> getParents() {\n return _listParents;\n}\n"
|
"protected Data addDataContent(IDataContent data) {\n HyperlinkDef url = parseHyperLink(data);\n BookmarkDef bookmark = getBookmark(data);\n Data excelData = null;\n Object generateBy = data.getGenerateBy();\n IStyle style = data.getComputedStyle();\n DataFormatValue dataformat = style.getDataFormat()... |
"public void actionPerformed(ActionEvent e) {\n transportSelectorBox.getMenu().doClick();\n}\n"
|
"public boolean toBool() throws IOException {\n if (property.isList) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n }\n if (super.isEmpty() == false) {\n return get(0).toBool();\n }\n return false;\n}\n"
|
"private void fetchMedia(Uri mediaUri, final String mimeType) {\n if (!MediaUtils.isInMediaStore(mediaUri)) {\n Uri downloadedUri = null;\n try {\n downloadedUri = MediaUtils.downloadExternalMedia(MediaBrowserActivity.this, mediaUri);\n } catch (IllegalStateException e) {\n ... |
"private void prepareServerConfiguration() throws IOException {\n appFolder = new File(\"String_Node_Str\");\n cleanupConfiguration();\n appFolder.mkdir();\n appFolder.deleteOnExit();\n new File(\"String_Node_Str\" + File.separator + \"String_Node_Str\").mkdir();\n new File(\"String_Node_Str\" + File.... |
"public void run() {\n editor.setText(\"String_Node_Str\" + translate(\"String_Node_Str\") + \"String_Node_Str\");\n if (Configuration.getConfig(\"String_Node_Str\", true)) {\n decompiledEditor.setText(\"String_Node_Str\" + translate(\"String_Node_Str\") + \"String_Node_Str\");\n }\n DisassemblyListe... |
"public static void main(String[] args) throws Exception {\n LoggerCount loggerCount = new LoggerCount(logger);\n CommandLineParser cliParser = new GnuParser();\n cliOptions.addOption(\"String_Node_Str\", \"String_Node_Str\", true, \"String_Node_Str\");\n cliOptions.addOption(\"String_Node_Str\", \"String_N... |
"public static boolean showAsUsedType(Node node) {\n boolean ret = node instanceof VWA_Node;\n ret = ret || node instanceof BusinessObjectNode;\n ret = ret || node instanceof CoreObjectNode;\n if (node instanceof SimpleTypeNode) {\n return isShowingSimpleObjectsAsUsedType();\n }\n return ret;\n... |
"public void pushQueryContext(QueryContext context) {\n getScope().getQueries().push(context);\n}\n"
|
"public Lead save(Lead entity) {\n if (entity.getUser() != null && entity.getStatusSelect() == LEAD_STATUS_NEW) {\n entity.setStatusSelect(LEAD_STATUS_ASSIGNED);\n } else if (entity.getUser() == null && entity.getStatusSelect() == LEAD_STATUS_ASSIGNED) {\n entity.setStatusSelect(LEAD_STATUS_NEW);\n ... |
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n String[] appAndServiceId = arguments.get(ArgumentName.SERVICE.toString()).split(\"String_Node_Str\");\n if (appAndServiceId.length < 2) {\n throw new CommandInputError(this);\n }\n String appId = appAndServiceId[0];\n ... |
"public void after(Object target, Object[] args, Object result, Throwable throwable) {\n if (!InterceptorUtils.isSuccess(throwable)) {\n return;\n }\n final BasicDataSource basicDataSource = getBasicDatasource(target);\n if (basicDataSource instanceof DataSourceMonitorAccessor) {\n DbcpDataSou... |
"private CompilationResult createCompilationResult(ASTCssNode cssStyleSheet, LessSource lessSource, Configuration options) {\n LessSource cssDestination = options == null ? null : options.getCssResultLocation();\n if (cssDestination == null) {\n String guessedCssName = URIUtils.changeSuffix(lessSource.getN... |
"public IdentifiedDataSerializable createNew(Integer arg) {\n return new TxQueueItem();\n}\n"
|
"public boolean hasLocation(Object node) {\n if (node instanceof Locatable) {\n Locatable object = (Locatable) node;\n double[] location = object.getLocation();\n if (location != null && location.length == 2) {\n return true;\n }\n return false;\n}\n"
|
"protected LabelContent createLabelContent() {\n LabelContent content = (LabelContent) reportContent.createLabelContent();\n content.setLabelText(\"String_Node_Str\");\n content.setLabelKey(\"String_Node_Str\");\n return content;\n}\n"
|
"public void setRSSI(int power) {\n final int minp = -128 + RSSI_OFFSET;\n final int maxp = 128 + RSSI_OFFSET;\n if (power < minp) {\n power = -minp;\n }\n if (power > maxp) {\n power = maxp;\n }\n if (DEBUG)\n log(\"String_Node_Str\" + power);\n rssi = power;\n memory[RE... |
"public void handleEvent(Event event) {\n if (item != null || (coreItem instanceof AbstractItem)) {\n if (coreItem != null)\n item = (AbstractItem) coreItem;\n int yIncrease = 0;\n if (InventoryDialogue.getInventoryNPC() != null && InventoryDialogue.getNPCInventoryInteraction() == Inv... |
"protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n int widthMode = MeasureSpec.getMode(widthMeasureSpec);\n int heightMode = MeasureSpec.getMode(heightMeasureSpec);\n int widthSize = MeasureSpec.getSize(widthMeasureSpec);\n int heightSize = MeasureSpec.getSize(heightMeasureSpec);\n ... |
"protected <R> R read(final CratePersistentEntity<R> entity, final CrateDocument source, final Object parent) {\n final DefaultSpELExpressionEvaluator evaluator = new DefaultSpELExpressionEvaluator(source, spELContext);\n ParameterValueProvider<CratePersistentProperty> provider = getParameterProvider(entity, sour... |
"private String save(XMLDBModel xmlDBModel, DBConnection dbConnection) throws DBConnectionException, DBExecutionException, IllegalArgumentException, ModelAlreadyExistException, XMLDBModelParsingException, CircularDependencyException {\n String newModelId = null;\n try {\n if (xmlDBModel == null) {\n ... |
"protected TextContent createTextContent() {\n TextContent content = (TextContent) reportContent.createTextContent();\n content.setName(\"String_Node_Str\");\n content.setHeight(new DimensionType(10, \"String_Node_Str\"));\n ActionContent hyperlink = new ActionContent();\n hyperlink.setHyperlink(\"String... |
"private List<LatLng> getGcpCoordinates() {\n List<LatLng> result = new ArrayList<LatLng>();\n for (Gcp latLng : gcpList) {\n result.add(latLng.coord);\n }\n return result;\n}\n"
|
"private boolean captureChangeLog(Launcher launcher, FilePath workspace, BuildListener listener, Date lastBuildDate, Date currentDate, File changelogFile) throws IOException, InterruptedException {\n boolean result = true;\n SimpleDateFormat scm_datetime_formatter = new SimpleDateFormat(SURROUND_DATETIME_FORMAT_S... |
"public static Object[] getParameterValues(String args, String argsSplit, Class<?>[] parameterClasses) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n String[] argValues;\n if (!StringUtils.isEmpty(argsSplit)) {\n argValues = StringUtils.splitPres... |
"private SubjectKeyIdentifier createSubjectKeyId(PublicKey pubKey) {\n try {\n SubjectPublicKeyInfo info = new SubjectPublicKeyInfo((ASN1Sequence) ASN1Primitive.fromByteArray(pubKey.getEncoded()));\n return new SubjectKeyIdentifier(getDigest(info));\n } catch (Exception e) {\n throw new Runti... |
"private Object convertFromAvroPrimitive(Object inObj, Class inType) {\n if (inType == String.class) {\n String convertedObj = ((Utf8) inObj).toString();\n return convertedObj;\n } else if (curType == BytesWritable.class) {\n return new BytesWritable(((ByteBuffer) inObj).array());\n }\n ... |
"private void addFactory(final ComplexFactory complexFactory) {\n if (!complexFactory.getFactory().isMine()) {\n for (final ComplexFactory current : this.factories) {\n if (current.getFactory().equals(complexFactory.getFactory()) && current.getYield() == complexFactory.getYield()) {\n ... |
"int drainTo(E[] target, int maxElements) {\n int readLocation = this.consumerReadLocation;\n int i = 0;\n int writeLocation = this.locator.getWriterLocation();\n do {\n if (writeLocation == readLocation) {\n writeLocation = this.locator.getWriteLocation();\n if (writeLocation =... |
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n this.addPositionalNodes(xPathFragment, namespaceResolver);\n try {\n if (isStartElementOpen) {\n writer.write('>');\n }\n if (!isLastEventText) {\n if (numberOfTabs > 0) {... |
"public void testFunctionCallAfterLParen() throws Exception {\n OriginalParserImpl parser = createParser(\"String_Node_Str\");\n RhsFunctionCall rfc = parser.parse_function_call_after_lparen(false);\n assertNotNull(rfc);\n verifyStringSymbol((SymbolImpl) rfc.getName(), \"String_Node_Str\");\n List<RhsVal... |
"public void pickSuggestionManually(int index, CharSequence suggestion) {\n mComposingStateManager.onFinishComposingText();\n SuggestedWords suggestions = mSuggestionsView.getSuggestions();\n mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mSettingsValues.mWordSeparators);\n final Inpu... |
"private AccessTokenResult clientCredentialsAuthenticationRequest(HttpServletRequest request, HttpServletResponse response) {\n DefaultBasicApiAuthenticationRequest authenticationRequest = new DefaultBasicApiAuthenticationRequest(new DefaultHttpServletRequestWrapper(request));\n OAuthGrantRequestAuthenticationRes... |
"public boolean hasLeafElementType() {\n return leafElementType != null;\n}\n"
|
"public void onComponentTag(final Component component, final ComponentTag tag) {\n tag.put(\"String_Node_Str\", \"String_Node_Str\" + SyncopeApplication.IMG_PREFIX + kind + SyncopeApplication.IMG_SUFFIX);\n}\n"
|
"protected Control createDialogArea(Composite parent) {\n GridData layoutData = new GridData(GridData.FILL_BOTH);\n Composite composite = new Composite(parent, SWT.BORDER);\n GridLayout layout = new GridLayout();\n composite.setLayout(layout);\n composite.setLayoutData(layoutData);\n tableViewerCreato... |
"private void _actionPerformedFileDialog(ActionEvent e) {\n FileDialog fileDialog = new FileDialog(JOptionPane.getFrameForComponent(Query.this), \"String_Node_Str\", FileDialog.LOAD);\n if (_startingDirectory != null) {\n fileDialog.setDirectory(_startingDirectory.toString());\n }\n String fileName =... |
"public void setOutFocus() {\n descriptionText.setFocus();\n descriptionText.setText(descriptionText.getText().trim());\n int start = descriptionText.getText().length();\n int end = descriptionText.getSelection().y;\n descriptionText.setSelection(start);\n}\n"
|
"private File _findExecutableOnPath(String executableName) {\n if (_openModelicaSystemPath == null) {\n _openModelicaSystemPath = System.getenv(\"String_Node_Str\");\n }\n String[] pathDirs = systemPath.split(File.pathSeparator);\n File fullyQualifiedExecutable = null;\n for (String pathDir : path... |
"private void createIndicatorParameters(TreeItem indicatorItem, IndicatorUnit indicatorUnit) {\n TreeItem[] items = indicatorItem.getItems();\n if (indicatorItem != null && !indicatorItem.isDisposed()) {\n for (TreeItem treeItem : items) {\n if (DATA_PARAM.equals(treeItem.getData(DATA_PARAM))) {... |
"protected void agents() {\n Random randomGenerator = new Random();\n for (int i = 0; i < 50; i++) {\n addAgent(new LoansAgent(20, 2, AgentType.AC, randomGenerator.nextDouble(), randomGenerator.nextDouble()));\n }\n}\n"
|
"public void grant(HttpRequest httpRequest, HttpResponder httpResponder) throws Exception {\n ensureSecurityEnabled();\n GrantRequest request = parseBody(httpRequest, GrantRequest.class);\n verifyAuthRequest(request);\n Set<Action> actions = request.getActions() == null ? EnumSet.allOf(Action.class) : reque... |
"public void fireRuningItemChanged(boolean status) {\n this.runButton.setEnabled(status);\n if (status) {\n ((AnalysisEditor) getEditor()).setRefreshResultPage(true);\n refreshChart();\n }\n}\n"
|
"public void start() {\n connect();\n}\n"
|
"private int colorFromDB(double d) {\n return cma[levelFromDB(d, dBLowerBound, dBUpperBound, cma.length)] + 0xff000000;\n}\n"
|
"public static float[] getData(final Object oPixels, final int width, final int height, final Rectangle bounds, float[] buffer) {\n if (oPixels == null)\n return null;\n if (oPixels instanceof float[]) {\n float[] pixels = (float[]) oPixels;\n if (bounds != null && (bounds.x != 0 || bounds.y ... |
"private void chmodUnrar(String path) {\n Executer exec = new Executer(\"String_Node_Str\");\n exec.addParameter(\"String_Node_Str\");\n exec.addParameter(\"String_Node_Str\");\n exec.setRunin(path);\n exec.setWaitTimeout(-1);\n exec.start();\n exec.waitTimeout();\n}\n"
|
"public String getMavenText() {\n if (element instanceof LifecycleStrategyMappingRequirement) {\n return NLS.bind(\"String_Node_Str\", ((LifecycleStrategyMappingRequirement) element).getLifecycleMappingId());\n } else if (element instanceof MojoExecutionMappingRequirement) {\n MojoExecutionKey exec ... |
"public void changeSpeed(float delta) {\n float rate = Math.round((mService.getRate() + delta) * 100f) / 100f;\n if (rate < 0.25f || rate > 4f)\n return;\n mService.setRate(rate);\n mInfo.setText(getString(R.string.playback_speed) + \"String_Node_Str\" + rate + \"String_Node_Str\");\n if (mPlaybac... |
"private boolean computeVariable(REPLVariable field) {\n this.getClassName();\n MarkerList markers = new MarkerList();\n field.resolveTypes(markers, this);\n field.resolve(markers, this);\n field.checkTypes(markers, this);\n field.check(markers, this);\n if (this.reportErrors(markers)) {\n t... |
"protected static Object convert(String typeName, String value) {\n if (\"String_Node_Str\".equals(value)) {\n return null;\n }\n Class<?> type = toClass(typeName);\n if (type == null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + toParameter(null));\n }\n if ((type.isAssi... |
"private static boolean isRedditUri(Uri uri) {\n if (uri == null || uri.getHost() == null)\n return false;\n final String[] hostSegments = General.asciiLowercase(uri.getHost()).split(\"String_Node_Str\");\n if (hostSegments.length < 2)\n return false;\n if (hostSegments[hostSegments.length - 1... |
"public int optimizeFast(DataHandle handle, double records, double gsFactor, ARXListener listener) throws RollbackRequiredException {\n if (listener == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (handle == null) {\n throw new NullPointerException(\"String_Node_Str\");... |
"public static void forceInstallModules(Shell shell, IComponent component, List<ModuleNeeded> modules) {\n String text = Messages.getString(\"String_Node_Str\", component.getName());\n String title = Messages.getString(\"String_Node_Str\") + component.getName();\n if (!modules.isEmpty()) {\n Shell[] she... |
"public void adjustTargets(Ability ability, Game game) {\n if (this.isTransformed()) {\n card.getSecondCardFace().adjustTargets(ability, game);\n } else {\n card.adjustTargets(ability, game);\n }\n}\n"
|
"public void visitObjectMember(JsonObject parent, String memberName, JsonObject member, boolean isFirst) throws IOException {\n addCommaCheckingFirst(isFirst);\n writer.key(escaper.escapeJsonString(memberName));\n writer.fieldSeparator();\n}\n"
|
"public void valueChanged(ListSelectionEvent e) {\n if (e.getValueIsAdjusting() == false) {\n if (fileList.getSelectedIndex() == -1) {\n removeOldSelectedFileReferences();\n } else {\n removeOldSelectedFileReferences();\n for (File currentSelectedFile : fileList.getSele... |
"public void insertBefore(String src) throws CannotCompileException {\n declaringClass.checkModify();\n CodeAttribute ca = methodInfo.getCodeAttribute();\n if (ca == null)\n throw new CannotCompileException(\"String_Node_Str\");\n CodeIterator iterator = ca.iterator();\n Javac jv = new Javac(cc);\... |
"private IAggregationResultSet[] populateRs(CubeQueryExecutor executor, AggregationDefinition[] aggrDefns, CubeQueryExecutorHelper cubeQueryExcutorHelper, boolean saveToRD) throws IOException, BirtException {\n IAggregationResultSet[] rs;\n String id = null;\n if (executor.getCubeQueryDefinition().getQueryResu... |
"public Token convert(Token token) throws IllegalActionException {\n if (!isCompatible(token.getType())) {\n throw new IllegalArgumentException(Token.notSupportedConversionMessage(token, this.toString()));\n }\n RecordToken recordToken = (RecordToken) token;\n Object[] labelArray = recordToken.labelS... |
"protected void addField(Composite composite, Object instance) {\n if (instance == null) {\n return;\n }\n OpenJPAStateManager stateManager = manager.getContext().getStateManager(instance);\n if (stateManager == null) {\n throw new UserException(String.format(\"String_Node_Str\", targetFieldNa... |
"public void updateGlobalElements(ArrayList<JavaClass> classesToProcess) {\n for (JavaClass javaClass : classesToProcess) {\n if (helper.isAnnotationPresent(javaClass, XmlRootElement.class)) {\n XmlRootElement rootElemAnnotation = (XmlRootElement) helper.getAnnotation(javaClass, XmlRootElement.clas... |
"public InputStream getPlayerSkinStream(Boolean isCloak, String playerName) {\n if (skinURLs == null || cloakURLs == null || skinURLs.length <= 0 || cloakURLs.length <= 0)\n refreshSkinURL();\n InputStream S = null;\n for (String l : isCloak ? cloakURLs : skinURLs) {\n if (l == null || l.equalsIg... |
"private List<IJavaCompletionProposal> computeProposals(final ChainingAlgorithm algorithm) {\n final ChainTemplateProposalGenerator chainProposalGenerator = new ChainTemplateProposalGenerator();\n return chainProposalGenerator.generateJavaCompletionProposals(algorithm.getProposals(), jCtx, sw.getTime());\n}\n"
|
"public void checkTypes(MarkerList markers, IContext context) {\n if (this.tupleType instanceof TupleType) {\n ITypeList typeList = (ITypeList) this.tupleType;\n for (int i = 0; i < this.valueCount; i++) {\n IValue v1 = this.values[i].withType(typeList.getType(i));\n if (v1 != nul... |
"public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n String title = mWebView.getTitle();\n if (title != null && title.length() > 0) {\n mTitle.setText(title);\n }\n try {\n mSpinner.dismiss();\n } catch (Exception ignore) {\n }\n}\n"
|
"public ExecutionPlan schedule(Config cfg, DataFlowTaskGraph taskGraph, TaskSchedulePlan taskSchedule) {\n noOfThreads = ExecutorContext.threadsPerContainer(cfg);\n TaskPlan taskPlan = TaskPlanBuilder.build(resourcePlan, taskSchedule, taskIdGenerator);\n ParallelOperationFactory opFactory = new ParallelOperati... |
"public void start() {\n Log.i(TAG, \"String_Node_Str\");\n if (hasInitialized) {\n return;\n }\n synchronized (stateLock) {\n if (hasInitialized) {\n return;\n }\n Log.i(TAG, \"String_Node_Str\" + dataWedgeAction);\n applicationContext.registerReceiver(dataRece... |
"private void setUpDefaultImgs() throws PersistenceException {\n String destPath = System.getProperty(\"String_Node_Str\") + \"String_Node_Str\";\n String image1 = this.getClass().getResource(\"String_Node_Str\").getPath();\n String image2 = this.getClass().getResource(\"String_Node_Str\").getPath();\n Stri... |
"public org.hl7.fhir.dstu2.model.Practitioner convertPractitioner(org.hl7.fhir.dstu3.model.Practitioner src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Practitioner tgt = new org.hl7.fhir.dstu2.model.Practitioner();\n copyDomainResource(src, tgt)... |
"public void add(final EmergencyStopTask task) {\n checkNotNull(task, \"String_Node_Str\");\n this.tasks.add(task);\n}\n"
|
"public static boolean makeDirs(String filePath) {\n String folderName = getFolderName(filePath);\n File folder = new File(folderName);\n Logs.d(folder.getAbsolutePath() + \"String_Node_Str\" + folder.exists());\n if (folder.exists()) {\n return false;\n }\n File folder = new File(folderName);\... |
"public List<Sample> getChildSamplesFrom(int parentSampleAccession) {\n try {\n JaxbObject<SampleList> jaxb = new JaxbObject<SampleList>();\n SampleList list = (SampleList) ll.existsObject(\"String_Node_Str\" + parentSampleAccession + \"String_Node_Str\", \"String_Node_Str\", jaxb, new SampleList());\n... |
"protected XMPPID createIDFromName(String uname) {\n try {\n if (uname.lastIndexOf('@') == -1) {\n return new XMPPID(container.getConnectNamespace(), \"String_Node_Str\" + \"String_Node_Str\" + uname);\n }\n return new XMPPID(container.getConnectNamespace(), uname);\n } catch (fina... |
"public static String trimParameter(String value) {\n if (value == null) {\n return null;\n }\n int length = value.length();\n String result = removeQuotes(value);\n if (length > 1 && (((value.startsWith(\"String_Node_Str\") && value.endsWith(\"String_Node_Str\"))) || (value.startsWith(\"String_No... |
"public Token toToken() {\n return new Token(TokenType.BOOLEAN, this);\n}\n"
|
"public void renderImage(String imageId, OutputStream outputStream) throws RemoteException {\n assert (this.imageHandler != null);\n try {\n this.imageHandler.getImage(outputStream, this.imageDirectory, imageId);\n } catch (EngineException e) {\n AxisFault fault = new AxisFault(e.getLocalizedMess... |
"public ProcessWrapper launchTranscode(String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException {\n params.manageFastStart();\n boolean avisynth = avisynth();\n setAudioAndSubs(fileName, media, params, configuration);\n String subString = null;\n if (params.sid != ... |
"public String getText() {\n calculateText();\n if (runDirection == Bidi.DIRECTION_LEFT_TO_RIGHT) {\n return text;\n }\n}\n"
|
"public int getContentLength() {\n if (this.getContent() != null) {\n return getContent().length;\n } else {\n return -1;\n }\n}\n"
|
"public void testIObject12() throws Exception {\n testTypesWithExtraExterns(EXTERNS_WITH_IOBJECT_DECLS, LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"), LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n}\n"
|
"protected double[][] swap(double callerID, double[] neighborsID, int ttl, Random rand) {\n if (ttl <= 1) {\n double[][] res = new double[2][];\n res[0] = new double[] { this.getID(), this.getIndex() };\n res[1] = this.knownIDs;\n return res;\n } else {\n int[] out = this.getOut... |
"public static MetadataColumnsAndDbmsId<org.talend.core.model.metadata.builder.connection.MetadataColumn> loadMetadataColumnsAndDbmsIdFromFile(final File file) throws ParserConfigurationException, SAXException, IOException {\n final List<org.talend.core.model.metadata.builder.connection.MetadataColumn> listColumns =... |
"public void writeAllTo(OutputStream out) throws IOException {\n out.write(in, offset, length);\n}\n"
|
"public void detach(String key) {\n synchronized (mCallbacks) {\n Set<OnRemoteUpdateListener> cbs = mCallbacks.get(key);\n if (cbs != null && cbs.remove(pref) && cbs.isEmpty() && mCallbacks.remove(key) != null && mCallbacks.isEmpty()) {\n mContext.unregisterReceiver(mListener);\n ... |
"public void testSelectOverload() throws TypeMismatchException {\n FunctionType intFn = makeSimpleFT(Types.F_INT);\n FunctionType stringFn = makeSimpleFT(Types.F_STRING);\n FnID intFnID = new FnID(\"String_Node_Str\", \"String_Node_Str\");\n FnID stringFnID = new FnID(\"String_Node_Str\", \"String_Node_Str\... |
"public void randomDisplayTick(IBlockState state, World world, BlockPos pos, Random rand) {\n TileEntity tile = world.getTileEntity(pos);\n if (!(tile instanceof TileEntityBoiler)) {\n return;\n }\n TileEntityBoiler boiler = (TileEntityBoiler) tile;\n if (boiler.isBurning()) {\n EnumFacing ... |
"public void writeType(TypeRegistry registry, IndentedAppendable writer, RamlMediaType ramlMediaType, RamlResourceMethod method, RamlEntity type) throws IOException {\n writeBody(registry, writer, ramlMediaType, type);\n}\n"
|
"public void log(Level level, String msg, Throwable ex) {\n StringWriter sw = new StringWriter();\n if (ex != null) {\n ex.printStackTrace(new PrintWriter(sw));\n }\n log(level, msg, sw.toString());\n}\n"
|
"public void buttonClick(ClickEvent event) {\n MailSession mailSession = new MailSession(context.getOperationsService().findGlobalSettingsAsMap());\n try {\n mailSession.getTransport();\n CommonUiUtils.notify(\"String_Node_Str\", \"String_Node_Str\");\n } catch (AuthenticationFailedException e) {... |
"public void readSummaryFromParcel(Parcel in) {\n final int version = in.readInt();\n if (version != VERSION) {\n Slog.w(\"String_Node_Str\", \"String_Node_Str\" + version + \"String_Node_Str\" + VERSION + \"String_Node_Str\");\n return;\n }\n readHistory(in, true);\n mStartCount = in.readI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.