content stringlengths 40 137k |
|---|
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n Object collection = unmarshalRecord.getContainerInstance(this);\n UnmarshalRecord childRecord = unmarshalRecord.getChildRecord();\n if (null != childRecord) {\n if (!xmlAnyCollectionMapping.usesXMLRoot()) {\n ... |
"static final AutoScale computeScale(IDisplayServer xs, OneAxis ax, DataSetIterator dsi, int iType, double dStart, double dEnd, Scale scModel, AxisOrigin axisOrigin, FormatSpecifier fs, RunTimeContext rtc, int direction, double zoomFactor, int iMarginPercent) throws ChartException {\n final Label la = ax.getLabel();... |
"public void testGetStatSummary() throws InterruptedException, TimeoutException, ExecutionException {\n try {\n handler.getStatsSummary(SUMMONER_ID_1, Season.SEASON3).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
|
"void clearIfAutomaticCreation() {\n if (createAutomatically) {\n Object testClassInstance = injectionState.getCurrentTestClassInstance();\n if (testSucceeded) {\n Object testedObject = FieldReflection.getFieldValue(testedField, testClassInstance);\n if (testedObject != null) {\n ... |
"URLConnection connect(URL originalUrl, ImmutableMap<String, String> requestHeaders) throws IOException {\n if (Thread.interrupted()) {\n throw new InterruptedIOException();\n }\n URL url = originalUrl;\n if (HttpUtils.isProtocol(url, \"String_Node_Str\")) {\n return url.openConnection();\n ... |
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n return new MaterialDialog.Builder(getActivity()).content(R.string.progress_download_geocache).negativeText(R.string.button_cancel).progress(true, 0).build();\n}\n"
|
"public void setOnSelect(JavaScriptObject aSelectFunction) {\n if (selectFunction != aSelectFunction) {\n selectFunction = aSelectFunction;\n if (selectFunction != null && getPublishedField() != null) {\n selectButton = new TextButton(\"String_Node_Str\");\n selectButton.setEnable... |
"static void addCompressedChunk(JsonParsingContext context) {\n if (context.doubleValues != null && context.stringValues == null) {\n context.doubleChunks.add(new CompressedDoubleArrayChunk(context.offset, context.uncompressedLength, context.doubleValues.toArray(), context.stepLengths.toArray()));\n co... |
"public void doRun() {\n runningThread = Thread.currentThread();\n ThreadContext.get().setCallContext(callContext);\n try {\n clientOperationHandler.handle(node, packet);\n node.clientService.getClientEndpoint(packet.conn).removeRequest(this);\n clientOperationHandler.postHandle(packet);\n... |
"public static Object[][] primeNumbers() throws IOException {\n return new Object[][] { { \"String_Node_Str\", new ArrayList<Result>() {\n {\n add(new Result(\"String_Node_Str\", PERSON, of(11.25, 43.75, -6.25), none()));\n }\n } }, { \"String_Node_Str\", new ArrayList<Result>() {\n ... |
"public void drawBackgroundImage(String imageURI, float x, float y, float width, float height, float imageWidth, float imageHeight, float positionX, float positionY, int repeat) throws IOException {\n if (imageURI == null || imageURI.length() == 0) {\n return;\n }\n org.eclipse.birt.report.engine.layout... |
"public GChoice leaveProjection(ScribNode parent, ScribNode child, Projector proj, ScribNode visited) throws ScribbleException {\n GChoice gc = (GChoice) visited;\n List<LProtocolBlock> blocks = gc.getBlocks().stream().map((b) -> (LProtocolBlock) ((ProjectionEnv) b.del().env()).getProjection()).collect(Collectors... |
"public boolean onMenuItemClick(MenuItem menuItem) {\n final CharSequence text = ((AppCompatTextView) v).getText();\n try {\n final String FileName = text.toString();\n final AppCompatDialog dialog = new AppCompatDialog(activity);\n dialog.setTitle(R.string.setname);\n dialog.setConten... |
"private void onTerminationOfInstance(String childId, String instanceId) {\n removeInstanceFromFromInactiveMap(childId, instanceId);\n removeInstanceFromFromTerminatingMap(childId, instanceId);\n GroupInstance instance = (GroupInstance) instanceIdToInstanceMap.get(instanceId);\n if (instance != null) {\n ... |
"public int[] getAccessibleSlotsFromSide(int side) {\n int metadata = this.getBlockMetadata();\n if (isInlet()) {\n return kInletExposed;\n } else {\n return new int[] { SLOT_OUTLET };\n }\n}\n"
|
"private boolean check() throws Exception {\n SanityCheckDecoder y = new SanityCheckDecoder();\n ByteBuf test = allocator.buffer(bytes.readableBytes());\n try {\n y.decode(null, compressed, Collections.<Object>singletonList(test));\n compressed.resetReaderIndex();\n byte[] a = new byte[byt... |
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n if (canWork) {\n Object o = selection.getFirstElement();\n repositoryNode = (RepositoryNode) o;\n switch(repositoryNode.getType()) {\n case RE... |
"public void calculate(WorkPlace defaultWorkPlace) {\n clearCalculate();\n WorkPlace actualWorkPlace = workPlace;\n if (actualWorkPlace == null) {\n actualWorkPlace = defaultWorkPlace;\n }\n DateTime beginDateTime = null;\n if (beginTime != null) {\n beginDateTime = BASE_DATE.toDateTime(... |
"public void init(final VertexFeature<?, V, ?> feature, final V vertex) {\n super.init();\n final int vi = vertexUndoIdBimap.getId(vertex);\n final int fi = featureStore.createFeatureUndoId();\n final int fuid = feature.getUniqueFeatureId();\n featureStore.store(fi, feature, vertex);\n final long data... |
"Type getGenericReturnType(Method m) {\n try {\n return m.getGenericReturnType();\n } catch (Throwable ex) {\n ex.printStackTrace();\n System.err.println(\"String_Node_Str\" + m + \"String_Node_Str\");\n return m.getReturnType();\n }\n}\n"
|
"public String printName() {\n return StringUtils.encodeXML(m_sProdName);\n}\n"
|
"public List<ECodePart> getAvailableCodeParts() {\n return Collections.emptyList();\n}\n"
|
"private void DownloadMoreItems() {\n String username = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getString(\"String_Node_Str\", null);\n if (username != null) {\n NewsReaderDetailFragment ndf = getNewsReaderDetailFragment();\n OwnCloud_Reader.getInstance().Start_AsyncTa... |
"protected JPanel createParametersPanel() {\n JPanel paramsPanel = new JPanel();\n BoxLayout layout = new BoxLayout(paramsPanel, BoxLayout.PAGE_AXIS);\n paramsPanel.setLayout(layout);\n AbstractButton addParamBut = ToolButtonFactory.createButton(UIUtils.loadImageIcon(Bundle.Icon_Add()), false);\n addPara... |
"public void insert() {\n executeTransaction(new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<TModel>() {\n public void processModel(TModel model) {\n model.insert();\n }\n }).add(model).build());\n}\n"
|
"public void onSnapshotMade(final Snapshot snapshot) {\n dispatcher.checkInDispatcher();\n if (snapshot.getValue() == null)\n throw new RuntimeException(\"String_Node_Str\");\n Map<Long, Reply> requestHistory = new HashMap<Long, Reply>(executedRequests);\n for (int i = executeUB - 1; i >= snapshot.ge... |
"public void testGetMasterIteratorNoRange() throws Exception {\n Long wideRowsPerIndex = 2L;\n Long totalObjectsPerWideRange = 100L;\n Long totalObjectsPerShard = 10L;\n CKeyspaceDefinition ckdef = CKeyspaceDefinition.fromJsonFile(\"String_Node_Str\");\n Map<String, CDefinition> cdefs = ckdef.getDefiniti... |
"public boolean execute(LocalDataArea lda) {\n if (lda.stack.isEmpty()) {\n return false;\n }\n lda.stack.push(DecrementActionItem.getResult(lda.popAsNumber()));\n return true;\n}\n"
|
"public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n classExtendsCapturedType = false;\n if (capturedTypeDesc.equals(superName)) {\n classExtendsCapturedType = true;\n throw VisitInterruptedException.INSTANCE;\n }\n boolean haveI... |
"public Sequence getOldSequence(DataObject dataObject) {\n if ((dataObject == null) || (!isDeleted(dataObject) && ((dataObject.getChangeSummary() != null) && (dataObject.getChangeSummary() != this)))) {\n return null;\n }\n if (!isCreated(dataObject) && dataObject.getType().isSequenced()) {\n if ... |
"public <T> T fastInsert(T obj) {\n EntityOperator opt = _optBy(obj);\n opt.addInsertSelfOnly();\n opt.exec();\n return obj;\n}\n"
|
"protected void writeObject(Object object) throws IOException {\n if (object == null) {\n randomAccessFile.writeShort(NULL_VALUE);\n return;\n }\n IStructure cachedObject = (IStructure) object;\n Object[] objects = cachedObject.getFieldValues();\n randomAccessFile.writeShort((short) objects... |
"public static void setup() throws Exception {\n EdmImplProv edmImplProv = new EdmImplProv(new EdmTestProvider());\n EdmServiceMetadata serviceMetadata = edmImplProv.getServiceMetadata();\n metadata = StringHelper.inputStreamToString(serviceMetadata.getMetadata());\n Map<String, String> prefixMap = new Hash... |
"protected List<String> call() {\n BlockPos blockpos = new BlockPos(this.mc.getRenderViewEntity().posX, this.mc.getRenderViewEntity().getEntityBoundingBox().minY, this.mc.getRenderViewEntity().posZ);\n if (this.isReducedDebug()) {\n return Lists.newArrayList(new String[] { \"String_Node_Str\" + this.mc.get... |
"protected void addFields() {\n Group ftpParameterGroup = new Group(this, SWT.NULL);\n ftpParameterGroup.setText(\"String_Node_Str\");\n GridLayout ftpParameterLayout = new GridLayout();\n ftpParameterLayout.numColumns = 2;\n ftpParameterGroup.setLayout(ftpParameterLayout);\n GridData gridData = new G... |
"public Properties getQueryParameters(URL url) {\n Properties properties = new Properties();\n String query = url.getQuery();\n if (query == null) {\n return properties;\n String[] params = StringUtil.split(query, \"String_Node_Str\");\n for (int i = 0; i < params.length; i++) {\n String[] ... |
"public void schedule() {\n if (Level > 0 && MPet.Status == PetState.Here) {\n timeCounter--;\n if (timeCounter <= 0) {\n MPet.getPet().getHandle().heal(1, EntityRegainHealthEvent.RegainReason.REGEN);\n timeCounter = HealtregenTime - Level;\n }\n }\n}\n"
|
"public static ArrayList<Order> getFreeOrders() {\n String reqUrl = getRequestUrl(null, ORDER_PAGE);\n Bundle params = new Bundle();\n params.putString(ORDER_QUERY_KEY, ORDER_STATUS_FREE);\n String respStr = RequestHelper.doRequestPost(reqUrl, params);\n try {\n return ResponseParser.parseOrders(r... |
"public CallAndType getEnclosingMethodCallExpression() {\n List<CallAndType> enclosingCalls = getAllEnclosingMethodCallExpressions();\n return (!enclosingCalls.isEmpty() ? enclosingCalls.get(enclosingCalls.size() - 1) : null);\n}\n"
|
"public synchronized ITmfEvent readNextEvent(final ITmfContext context) {\n final ITmfEvent event = parseEvent(context);\n if (event != null) {\n updateAttributes(previousContext, event.getTimestamp());\n TmfExperimentContext expContext = (TmfExperimentContext) context;\n int trace = expConte... |
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n try {\n if (level.isFirst()) {\n level.setFirst(false);\n } else {\n writer.write(',');\n }\n if (xPathFragment.nameIsText()) {\n if (level.isCollection() &... |
"public static void main(String[] args) throws FileNotFoundException, IOException, ParseException {\n String[] files = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n File owlFile = new File(\"Str... |
"private void genDefinedStringPattern(DefinedStringPattern dsp) throws Exception {\n String dspType = dsp.getSchema();\n String dspTypeName = dspType.endsWith(\"String_Node_Str\") ? dspType.substring(0, dspType.length() - 1) : dspType;\n Resource dspTypeRes = RDFTypeMap.xsd_type_for(dspTypeName, owlTarget);\n ... |
"public void addDest(MRIDRule dest) {\n if (this.dest != null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n this.dest = dest;\n}\n"
|
"public void ensureMemberInjected(Errors errors, Object toInject) throws ErrorsException {\n injector.memberInjector.ensureInjected(errors, toInject);\n}\n"
|
"public void checkArguments(MarkerList markers, IValue instance, IArguments arguments, ITypeContext typeContext) {\n int len = arguments.size();\n Parameter par;\n IType parType;\n if (instance != null && (this.modifiers & Modifiers.INFIX) == Modifiers.INFIX) {\n Parameter par = this.parameters[0];\n... |
"public void onBindViewHolder(MovieViewHolder holder, int position) {\n MoviePreview movie = movies.get(position);\n Picasso.with(context).load(context.getString(R.string.movies_db_poster_base_url_poster_w342) + movie.getPosterUrl()).placeholder(R.drawable.poster_ph).into(holder.poster);\n}\n"
|
"protected void parseFile(BufferedReader reader) throws IOException {\n initializeDataContainers();\n swtGuiManager.setProgressBarText(\"String_Node_Str\" + dataSetDescription.getDataSetName());\n float progressBarFactor = 100f / numberOfLinesInFile;\n for (int countHeaderLines = 0; countHeaderLines < dataS... |
"protected void runStepInternal(final Step step, final Optional<BuildTarget> buildTarget) throws StepFailedException {\n Preconditions.checkNotNull(step);\n if (context.getVerbosity().shouldPrintCommand()) {\n context.getStdErr().println(step.getDescription(context));\n }\n context.postEvent(StepEven... |
"private void parsePair(String name, JsonValue jsonValue) throws SAXException {\n if (jsonValue == null) {\n return;\n }\n ValueType valueType = jsonValue.getValueType();\n if (valueType == ValueType.ARRAY) {\n JsonArray jsonArray = (JsonArray) jsonValue;\n String parentLocalName = name... |
"protected boolean isInputAllowed() {\n final String newProjectName = getProjectNameFieldValue();\n boolean isInputAllowed = true;\n if (StringUtils.isBlank(newProjectName) || !ProjectNameBP.isValidProjectName(newProjectName, true)) {\n setErrorMessage(Messages.SaveProjectAsActionInvalidName);\n ... |
"public void actionPerformed(ActionEvent e) {\n filechooser.showOpenDialog(null);\n for (File file : filechooser.getSelectedFiles()) {\n if (!folderlist.contains(file.getAbsolutePath())) {\n folderlist.add(file.getAbsolutePath());\n addListModelEntry(list, file.getAbsolutePath());\n ... |
"public void onRow(Object[] args) {\n if (!countByColumn || args == null || args.length == 0) {\n if (countByColumn) {\n countByColumn = false;\n }\n ++count;\n } else if (args.length > 0 && args[0] != null) {\n ++count;\n }\n}\n"
|
"public void modifyText(ModifyEvent e) {\n String min = minValue.getText();\n if (min == \"String_Node_Str\") {\n updateStatus(IStatus.ERROR, MSG_EMPTY);\n } else if (!CheckValueUtils.isNumberValue(min)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_NUMBER);\n } else {\n updateStatus(IStatus... |
"private boolean isViewAttached(int viewID) {\n if (PlatformUI.getWorkbench().getActiveWorkbenchWindow() == null) {\n return true;\n }\n IWorkbenchPage workbenchPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n IView view = retrieveView(viewID);\n if (view instanceof C... |
"public void onItemUse(PlayerUseItemEvent event) {\n if (event == null)\n return;\n Item item = event.item.getItem();\n if (item instanceof IEurekaItem) {\n IEurekaItem eurekaItem = (IEurekaItem) item;\n if (!eurekaItem.isAllowed(event.entityPlayer)) {\n event.setCanceled(true);... |
"public String getFullXmlPath() {\n return this.rootXmlPath + XmlElement.SEPARATOR + this.relativePath;\n}\n"
|
"protected IArea createBlockTextArea(String text, ITextContent content, FontInfo fi, Dimension contentDimension) {\n AbstractArea textArea = (AbstractArea) AreaFactory.createTextArea(content, text, fi);\n textArea.setWidth(Math.min(context.getMaxWidth(), contentDimension.getWidth()));\n textArea.setHeight(Math... |
"protected boolean buy(String playerName, BuyStartItem boughtItem) {\n StartItem item = boughtItem.getStartItem();\n int lastBid = item.getBid();\n String errMsg = null;\n Player player = playerManager.getCurrentPlayer();\n int price = 0;\n int sharePrice = 0;\n String shareCompName = \"String_Node... |
"private void setErrorPageContentType(Response response, String location, Context context) {\n if (response.getContentType() == null && location != null) {\n String str = location.substring(location.lastIndexOf('.') + 1);\n str = context.findMimeMapping(str.toLowerCase(Locale.ENGLISH));\n if (st... |
"public void modifyNetwork(final String name, final String ip, final String dnsType) {\n NetworkAdd networkAdd = new NetworkAdd();\n networkAdd.setName(name);\n try {\n if (!CommandsUtils.isBlank(ip) && dnsType.toUpperCase().equals(NetworkDnsType.DYNAMIC.toString())) {\n CommandsUtils.printCm... |
"private static Table massageTableForOracle(Table table) {\n Table massaged = cloneTable(table);\n if (hasAutomaticPrimaryKey(massaged)) {\n massaged.getPrimaryKeyColumns()[0].setAutoIncrement(false);\n }\n return massaged;\n}\n"
|
"protected void saveMessageToCache(String dialogId, QBChatMessage qbChatMessage, State state) {\n DialogOccupant dialogOccupant;\n if (qbChatMessage.getSenderId() == null) {\n dialogOccupant = databaseManager.getDialogOccupantManager().getDialogOccupant(dialogId, chatCreator.getId());\n } else {\n ... |
"public void doExplode() {\n float radius = this.getRadius();\n if (this.world().isRemote) {\n for (int i = 0; i < 200; i++) {\n Vector3 diDian = new Vector3();\n diDian.x_$eq(Math.random() * radius / 2 - radius / 4);\n diDian.y_$eq(Math.random() * radius / 2 - radius / 4);... |
"public Object get(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, Object refer) {\n if (null == name)\n return Json.fromJson(type, refer.toString());\n NutMap map = Json.fromJson(NutMap.class, refer.toString());\n Object theObj = map.get(name);\n if (null == theObj)\n ret... |
"public View configureView(View view) {\n final CommentUserNoteBlockHolder noteBlockHolder = (CommentUserNoteBlockHolder) view.getTag();\n noteBlockHolder.nameTextView.setText(Html.fromHtml(\"String_Node_Str\" + getNoteText().toString() + \"String_Node_Str\"));\n noteBlockHolder.agoTextView.setText(DateTimeUti... |
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n mInflater = LayoutInflater.from(getActivity());\n if (Utils.isOnline(getActivity())) {\n new Builder<>(String.class, Person.class).addParameter(getArguments().getString(Const.EXTRA_PLUS_ID)).setO... |
"public void setColumnModel(TableColumnModel columnModel) {\n if (filenameEditor != null)\n columnModel.getColumn(convertColumnIndexToView(Columns.NAME)).setCellEditor(filenameEditor);\n if (usesTableHeaderRenderingProperties())\n setTableHeaderRenderingProperties();\n}\n"
|
"public void run() {\n AppLog.e(T.STATS, this.getClass().getName() + \"String_Node_Str\");\n StatsUtils.logVolleyErrorDetails(volleyError);\n mResponseObjectModel = volleyError;\n EventBus.getDefault().post(new StatsEvents.SectionUpdated(mEndpointName, mRequestBlogId, mTimeframe, mDate, mResponseObjectModel... |
"private void parseCrawlLog(File file) throws IOFailure {\n boolean disregardSeedUrls = Settings.getBoolean(HarvesterSettings.DISREGARD_SEEDURL_INFORMATION_IN_CRAWLLOG);\n BufferedReader in = null;\n try {\n in = new BufferedReader(new FileReader(file));\n String line;\n int lineCnt = 0;\n... |
"private void addEnvironmentProperties(ScopeType scope, Iterator envItr, Collection<JNDIBinding> jndiBindings) {\n while (envItr.hasNext()) {\n EnvironmentProperty next = (EnvironmentProperty) envItr.next();\n if (!dependencyAppliesToScope(next, scope)) {\n continue;\n }\n if (... |
"public void setWarpType() throws Exception {\n Player mockPlayerOne = Mockito.mock(Player.class);\n when(mockPlayerOne.getDisplayName()).thenReturn(PLAYER_ONE_NAME);\n List<Warp> warpList = new ArrayList<Warp>();\n warpList.add(new Warp(\"String_Node_Str\", PLAYER_ONE_NAME, WarpType.LISTED, WORLD_NAME, 0, ... |
"public void testWriter() throws Exception {\n LabelHandle labelHandle = getLabel();\n labelHandle.setProperty(Label.X_PROP, \"String_Node_Str\");\n labelHandle.setProperty(Label.HEIGHT_PROP, \"String_Node_Str\");\n labelHandle.setProperty(Label.STYLE_PROP, null);\n OdaDataSet dataSet = (OdaDataSet) desi... |
"public String getUsername() {\n return unfixEscapeInNode(username);\n}\n"
|
"int calcNumEndpointsThatFitIn() {\n final long availableBandwidth = receivedRembs.getLast();\n long remainingBandwidth = availableBandwidth;\n int numEndpointsThatFitIn = 0;\n final Iterator<Endpoint> it = null;\n final Endpoint thisEndpoint = channel.getEndpoint();\n while (it.hasNext()) {\n ... |
"public void flagsUpdated(int msn, Flags flags, Long uid) {\n _modifiedFlags.put(Integer.valueOf(msn), new FlagUpdate(msn, uid, flags));\n}\n"
|
"private void configurePageSize(long size, long maxPageSize) {\n setPageSize(maxPageSize);\n ensurePagesListCapacity(size);\n this.size = size;\n}\n"
|
"public static boolean hasAggregation(String expression) {\n if (expression == null)\n return false;\n try {\n return ExpressionParserUtility.hasAggregation(expression, true);\n } catch (BirtException e) {\n return false;\n }\n}\n"
|
"public void addElements(final ModelElementIndicator[] elements) {\n TdColumn[] columns = new TdColumn[elements.length];\n for (int i = 0; i < elements.length; i++) {\n columns[i] = (TdColumn) elements[i].getModelElement();\n }\n List<Column> oriColumns = getColumnSetMultiValueList();\n for (Colum... |
"public boolean isAnySuccessorCPUBottleneck(Map<ManagementGroupVertex, Boolean> successorCPUBottleneckMap) {\n Boolean anySuccessorIsCPUBottleneck = successorCPUBottleneckMap.get(this.managementGroupVertex);\n if (anySuccessorIsCPUBottleneck == null) {\n for (int i = 0; i < this.managementGroupVertex.getNu... |
"private List<OrientEdge> createEdge(final OrientVertex vertex, final Object joinCurrentValue, Object result) {\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", joinCurrentValue, result);\n if (result == null) {\n switch(unresolvedLinkAction) {\n case CREATE:\n if (joinC... |
"public List<DavResource> getResources(String url) throws SardineException {\n HttpPropFind propFind = new HttpPropFind(url);\n propFind.setEntity(SardineUtil.getResourcesEntity());\n HttpResponse response = this.executeWrapper(propFind);\n StatusLine statusLine = response.getStatusLine();\n if (!Sardine... |
"public void run() {\n YamlConfiguration player = new YamlConfiguration();\n int index = 0;\n for (final File f : plugin.getPlayersFolder().listFiles()) {\n String fileName = f.getName();\n if (fileName.endsWith(\"String_Node_Str\")) {\n try {\n String playerUUIDString =... |
"public void parse1() throws UnsupportedEncodingException {\n final String line = \"String_Node_Str\";\n List<BgpRisEntry> parsed = parse(line);\n assertEquals(1, parsed.size());\n assertEquals(new Asn(4200003018L), parsed.get(0).origin);\n assertEquals(IpRange.parse(\"String_Node_Str\"), parsed.get(0).p... |
"protected void verifyProgramRuns(final Id.Program program, final String status, final int expected) throws Exception {\n Tasks.waitFor(true, new Callable<Boolean>() {\n public Boolean call() throws Exception {\n return getProgramRuns(program, status).size() > expected;\n }\n }, 60, TimeU... |
"private void setPageLayout() {\n removeAllAvailableDbObjects();\n enableSchemaComponent(isSchemaSupported);\n setRootElement();\n sourceViewerConfiguration.getContentAssistProcessor().setDataSourceHandle(this.getDataSetDesign().getDataSourceDesign());\n populateAvailableDbObjects(false);\n try {\n ... |
"public static RPCRequest decodeRequest(String encodedRequest, Class type) throws SerializationException {\n if (encodedRequest == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (encodedRequest.length() == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n ... |
"protected double getAggregate() {\n double[] values = getValues();\n double[] weights = getWeights();\n double result = 1.0d;\n for (int i = 0; i < values.length; i++) {\n result *= Math.pow((values[i] + 1d) * weights[i], 1.0d / (double) values.length) - 1d;\n }\n return result;\n}\n"
|
"public void stopWatchdog() {\n if (watchdogTimerTask != null) {\n watchdogTimerTask.cancel();\n }\n}\n"
|
"public boolean isSafeToRunMigration() throws JDBCException {\n return Mode.OUTPUT_SQL_MODE.equals(getMode()) || Mode.OUTPUT_CHANGELOG_ONLY_SQL_MODE.equals(getMode()) || getDatabase().getConnectionURL().indexOf(\"String_Node_Str\") >= 0;\n}\n"
|
"public void run(IAction action) {\n InputStream javaFileIStream = null;\n OutputStreamWriter testFileOSWriter = null;\n FileOutputStream fos = null;\n boolean refreshFlag = true;\n String projectName = null;\n String testCaseDirResource = null;\n String testCaseResource = null;\n try {\n ... |
"public String getBundleLocation() {\n Bundle bundle = this.getBundle();\n if (bundle == null) {\n return this.bundleDescription.getLocation();\n }\n return bundle.getLocation();\n}\n"
|
"public org.hl7.fhir.dstu2.model.Attachment convertAttachment(org.hl7.fhir.dstu3.model.Attachment src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Attachment tgt = new org.hl7.fhir.dstu2.model.Attachment();\n copyElement(src, tgt);\n tgt.setCon... |
"private File buildJobJar(Job job, File tempDir) throws IOException, URISyntaxException {\n File jobJar = new File(tempDir, \"String_Node_Str\");\n LOG.debug(\"String_Node_Str\", jobJar);\n if (MapReduceTaskContextProvider.isLocal(job.getConfiguration())) {\n JarOutputStream output = new JarOutputStream... |
"protected void writeCharacters(char[] chars, int start, int length) {\n try {\n characters(chars, start, length);\n } catch (SAXException e) {\n throw XMLMarshalException.marshalException(e);\n }\n}\n"
|
"public <T> T invokeEntryProcessor(K key, EntryProcessor<K, V, T> entryProcessor, Object... arguments) {\n ensureOpen();\n if (keys == null) {\n throw new NullPointerException();\n }\n if (entryProcessor == null) {\n throw new NullPointerException();\n }\n long start = statisticsEnabled(... |
"private MethodNode getCovariantImplementation(final MethodNode oldMethod, final MethodNode overridingMethod, Map genericsSpec) {\n if (!oldMethod.getName().equals(overridingMethod.getName()))\n return null;\n if ((overridingMethod.getModifiers() & ACC_BRIDGE) != 0)\n return null;\n boolean norma... |
"public static List<ResourceLocation> getTextures() {\n List<ResourceLocation> locations = new ArrayList<>();\n for (CableCoreType coreType : CableCoreType.values()) {\n for (AEColor color : AEColor.values()) {\n locations.add(coreType.getTexture(color));\n }\n }\n for (AECableType ... |
"protected void writePrefixMappings() {\n try {\n if (!prefixMappings.isEmpty()) {\n for (java.util.Iterator<String> keys = prefixMappings.keySet().iterator(); keys.hasNext(); ) {\n String prefix = keys.next();\n outputStreamWrite(SPACE);\n outputStreamW... |
"private void newJDBCExplorerMenuItemActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n if (jdbcDriverClassName == null || jdbcDriverClassName.trim().length() == 0 || jdbcConnectionUrl == null || jdbcConnectionUrl.trim().length() == 0) {\n throw new Exception(\"String_Node_Str\" + this.jdb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.