content stringlengths 40 137k |
|---|
"public void updateSoundLevel(int soundLevel) {\n int range = 1;\n if ((minSoundLevel > -1) && (maxSoundLevel > -1) && (minSoundLevel < maxSoundLevel)) {\n range = maxSoundLevel - minSoundLevel;\n if (soundLevel < 40)\n soundLevel = minSoundLevel;\n else if (soundLevel > 85)\n ... |
"public void clientDisconnected(WonderlandClientSender sender, WonderlandClientID clientID) {\n PresenceInfo info = presenceInfoMap.get(clientID.getID());\n logger.warning(\"String_Node_Str\" + clientID.getID() + \"String_Node_Str\" + info);\n if (info == null) {\n logger.warning(\"String_Node_Str\" + c... |
"protected DiscoverResult retrieveResult(Context context, DiscoverQuery query, QueryResponse solrQueryResponse) throws SQLException {\n DiscoverResult result = new DiscoverResult();\n if (solrQueryResponse != null) {\n result.setSearchTime(solrQueryResponse.getQTime());\n result.setStart(query.getSt... |
"private void genTargets(final IndexTerm indexTerm, final TopicrefElement obj) {\n final TopicrefElement topicref = obj;\n final IndexTermTarget target = new IndexTermTarget();\n String targetURI = null;\n final String href = obj.getHref();\n final StringBuilder buffer = new StringBuilder();\n if (!hr... |
"public void processClassesAndProperties(JavaClass[] classes) {\n typeInfoClasses = new ArrayList<JavaClass>();\n typeInfo = new HashMap<String, TypeInfo>();\n typeQNames = new ArrayList<QName>();\n userDefinedSchemaTypes = new HashMap<String, QName>();\n packageToNamespaceMappings = new HashMap<String, ... |
"public void updateMemberAttribute(String uuid, MemberAttributeOperationType operationType, String key, Object value) {\n lock.lock();\n try {\n MemberImpl member = membershipManager.getMember(uuid);\n if (!member.equals(getLocalMember())) {\n member.updateAttribute(operationType, key, va... |
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute == arguments) {\n try {\n _argumentsTree = (ASTPtArrayConstructNode) _parser.generateParseTree(arguments.getExpression());\n } catch (ClassCastException e) {\n throw new IllegalActio... |
"public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) {\n AdapterView.AdapterContextMenuInfo info;\n try {\n info = (AdapterView.AdapterContextMenuInfo) menuInfo;\n } catch (ClassCastException e) {\n Log.e(TAG, \"String_Node_Str\", e);\n return;\n }\n ... |
"public static void main(String[] args) throws TimeOutException {\n Color[][] colors = MapDriver.readMap();\n GameMap gameMap = new GameMap(colors);\n ConsolePrinter.printMap(gameMap);\n Score score = new Score();\n Color color = Color.BLACK;\n score.init(gameMap, color);\n long time = System.curre... |
"private int renameAS2Identifiers(RenameType renameType, Map<String, String> selected) {\n actionsMap = new HashMap<>();\n allFunctions = new ArrayList<>();\n allVariableNames = new HashMap<>();\n allStrings = new HashMap<>();\n List<Object> objs = new ArrayList<>();\n int ret = 0;\n objs.addAll(ta... |
"Drawable getDrawableForMimetype(File file, String mimetype) {\n if (mimetype == null) {\n return null;\n }\n PackageManager pm = context.getPackageManager();\n if (mimetype.equals(MIME_APK)) {\n String path = file.getPath();\n PackageInfo pInfo = pm.getPackageArchiveInfo(path, PackageM... |
"public boolean apply(Game game, Ability source) {\n if (!conditionChecked) {\n result = condition.apply(game, source);\n conditionChecked = true;\n }\n return result;\n}\n"
|
"private void addAdminFolder() {\n DLNAResource res = new VirtualFolder(Messages.getString(\"String_Node_Str\"), null);\n DLNAResource vsf = getVideoSettingssFolder();\n if (vsf != null) {\n res.addChild(vsf);\n }\n res.addChild(new VirtualFolder(Messages.getString(\"String_Node_Str\"), null) {\n ... |
"public AppenderSet build() {\n if (configuration == null) {\n LOGGER.error(\"String_Node_Str\", this);\n return null;\n }\n if (node == null) {\n LOGGER.error(\"String_Node_Str\", this);\n return null;\n }\n final List<Node> children = node.getChildren();\n final Map<Strin... |
"public void onInitRender() {\n removeAttribute(ATTR_ON_INIT_RENDER_POSTED);\n final Renderer renderer = new Renderer();\n try {\n int pgsz, ofs;\n if (inPagingMold()) {\n pgsz = _pgi.getPageSize();\n ofs = _pgi.getActivePage() * pgsz;\n } else {\n pgsz = g... |
"public void drawTooltips(Minecraft minecraft, int mouseX, int mouseY) {\n if (isMouseOver(mouseX, mouseY)) {\n if (shouldShowDeleteItemTooltip(minecraft)) {\n String deleteItem = Translator.translateToLocal(\"String_Node_Str\");\n TooltipRenderer.drawHoveringText(minecraft, deleteItem, ... |
"public void widgetSelected(SelectionEvent event) {\n if (!\"String_Node_Str\".equals(newItemText.getText()))\n if (!Arrays.asList(itemsList.getItems()).contains(newItemText.getText())) {\n itemsList.add(newItemText.getText());\n}\n"
|
"public void flush() throws IOException {\n if (out instanceof org.apache.hadoop.fs.Syncable) {\n ((org.apache.hadoop.fs.Syncable) out).hflush();\n } else {\n out.flush();\n }\n}\n"
|
"public boolean checkFastBreak(Player player, Block block) {\n if (!Utilities.isUsingMcMMOAbility(player)) {\n int violations = FASTBREAK_MAXVIOLATIONS;\n if (player.getGameMode() == GameMode.CREATIVE) {\n violations = FASTBREAK_MAXVIOLATIONS_CREATIVE;\n }\n String name = playe... |
"protected StringBuilder toString(final StringBuilder sb) {\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\").append(getDisplayName()).append('\\'');\n sb.append(\"String_Node_Str\").append(getShortDescription()).append('\\'');\n sb.append(\"String_Node_Str\").append(getLongDescription()).a... |
"protected boolean shouldUpdateDatabaseFromScratch(ScriptIndexes currentVersion, Set<ExecutedScript> alreadyExecutedScripts) {\n if (scriptSource.isIncrementalScriptModified(currentVersion, alreadyExecutedScripts)) {\n if (fromScratchEnabled) {\n if (!keepRetryingAfterError) {\n thro... |
"private synchronized void flushConfig(Map<String, RSGroupInfo> newGroupMap) throws IOException {\n Map<TableName, String> newTableMap;\n if (!isOnline()) {\n Map<String, RSGroupInfo> m = Maps.newHashMap(rsGroupMap);\n RSGroupInfo oldDefaultGroup = m.remove(RSGroupInfo.DEFAULT_GROUP);\n RSGro... |
"public void flush() {\n for (IntegrityChecker integrityChecker : integrityCheckers) {\n integrityChecker.checkIntegrity();\n }\n for (TransactionListener listener : getListenersIterable()) {\n listener.flush();\n }\n}\n"
|
"public static Bitmap extractMiniThumb(Bitmap source, int width, int height, boolean recycle) {\n if (source == null) {\n return null;\n }\n float scale;\n if (source.getWidth() < source.getHeight()) {\n scale = width / (float) source.getWidth();\n } else {\n scale = height / (float)... |
"protected Schedule _getSchedule() throws IllegalActionException, NotSchedulableException {\n NamedObj director = getContainer();\n CompositeActor compositeActor = (CompositeActor) (director.getContainer());\n List actors = compositeActor.deepEntityList();\n Iterator actorIterator = actors.iterator();\n ... |
"protected IStatus run(IProgressMonitor monitor) {\n ColumnAnalysisSqlParallelExecutor columnSqlParallel = ColumnAnalysisSqlParallelExecutor.createInstance(parent, connection, elementToIndicator, indicator, connPool);\n columnSqlParallel.run();\n if (columnSqlParallel.ok) {\n return Status.OK_STATUS;\n ... |
"public void onActionMove(MotionEvent event) {\n final int pointerIndex = event.findPointerIndex(mEditorView.getActivePointerId());\n final int x = (int) event.getX(pointerIndex);\n final int y = (int) event.getY(pointerIndex);\n if (!mEditorView.scaleDetectorActive()) {\n final int offX = x - mEdito... |
"private void createColumnsViewerArea(Composite parent) {\n cmpColumnsList = ChartUIUtil.createCompositeWrapper(parent);\n Label label = new Label(cmpColumnsList, SWT.NONE);\n {\n label.setText(Messages.getString(\"String_Node_Str\"));\n label.setFont(JFaceResources.getBannerFont());\n }\n ... |
"public void comment(char[] ch, int start, int length) throws SAXException {\n try {\n if (isStartElementOpen) {\n writer.write('>');\n writer.write(cr);\n isStartElementOpen = false;\n }\n writeComment(ch, start, length);\n complexType = false;\n } cat... |
"public CacheKey generateCacheKey(CacheKeyInvocationContext<? extends Annotation> cacheKeyInvocationContext) {\n final CacheInvocationParameter[] keyParameters = cacheKeyInvocationContext.getKeyParameters();\n final Object[] parameters = new Object[keyParameters.length];\n for (int index = 0; index < keyParame... |
"public List<String> getVideoBitrateOptions(DLNAResource dlna, DLNAMediaInfo media, OutputParams params) {\n List<String> videoBitrateOptions = new ArrayList<>();\n int[] defaultMaxBitrates = getVideoBitrateConfig(configuration.getMaximumBitrate());\n int[] rendererMaxBitrates = new int[2];\n if (StringUtil... |
"protected void writeRequested(ChannelPipeline pipeline, MessageEvent evt) throws Exception {\n ChannelBuffer channelBuffer = (ChannelBuffer) evt.getMessage();\n AgronaChannel channel = (AgronaChannel) evt.getChannel();\n ChannelFuture future = evt.getFuture();\n channel.worker.write(channel, channelBuffer,... |
"private void verifyJARContainer(JarFile jarFile, X509Certificate trustedCert) throws IOException {\n if (jarFile == null || trustedCert == null)\n throw new SecurityException(\"String_Node_Str\");\n Vector<JarEntry> entriesVec = new Vector<JarEntry>();\n Manifest man = jarFile.getManifest();\n if (m... |
"private static Flyway setupFlyway(DataSource datasource) {\n if (flywaydb == null) {\n try (Connection connection = datasource.getConnection()) {\n flywaydb = new Flyway();\n flywaydb.setDataSource(datasource);\n flywaydb.setEncoding(\"String_Node_Str\");\n Databas... |
"public String toString() {\n return \"String_Node_Str\" + (min >= 0 ? min : \"String_Node_Str\") + ',' + (max == INF ? \"String_Node_Str\" : (max >= 0 ? max : \"String_Node_Str\")) + ')';\n}\n"
|
"public void action(List<String> children) {\n LOG.info(\"String_Node_Str\", cluster, table);\n updateLayout(cluster);\n}\n"
|
"public void checkWordFromOutside() {\n if (!ContextUtil.getCurrentActivity().equals(\"String_Node_Str\")) {\n System.err.println(\"String_Node_Str\");\n ScreenUtil.screenShotForce(\"String_Node_Str\");\n }\n LogUtil.printCurrentMethodName();\n AndroidElement searchEt = mDriver.findElement(By.... |
"public static int getWidthODT(final String dirName, final String fileName) {\n final DITAOTJavaLogger logger = new DITAOTJavaLogger();\n File imgInput = new File(dirName + File.separatorChar + fileName);\n if (checkDirName(dirName))\n imgInput = new File(getImageOutPutPath(fileName));\n try {\n ... |
"private void processParseResult(String currentFile) {\n final Map<String, String> cpMap = reader.getCopytoMap();\n final Map<String, KeyDef> kdMap = reader.getKeysDMap();\n final Map<String, String> exKdMap = reader.getExKeysDefMap();\n exKeyDefMap.putAll(exKdMap);\n for (final String file : reader.getN... |
"public void testLastIndexFile() throws IOException {\n final String baseDir = getTestPath();\n assertNotNull(baseDir);\n final ChronicleQueueBuilder.VanillaChronicleQueueBuilder builder = ChronicleQueueBuilder.vanilla(baseDir).indexCacheCapacity(32).cleanupOnClose(false);\n final VanillaDateCache dateCache... |
"private void replicateLastFrame() {\n if (bufferPosition >= 0) {\n float[] last = this.cepstraBuffer[bufferPosition - 1];\n if (bufferPosition + window < cepstraBufferSize) {\n Arrays.fill(cepstraBuffer, bufferPosition, bufferPosition + window, last);\n } else {\n for (int... |
"public void fillContextMenu(IMenuManager menu) {\n Object obj = ((TreeSelection) this.getContext().getSelection()).getFirstElement();\n if (obj instanceof IResource) {\n IResource resource = (IResource) obj;\n if (!ResourceService.isReadOnlyFolder(resource)) {\n menu.add(new DeleteObject... |
"private Component createLabel(Element aTag) throws Exception {\n final PlatypusLabel component = new PlatypusLabel();\n processEvents(component, aTag);\n Publisher.publish(component);\n if (aTag.hasAttribute(\"String_Node_Str\"))\n component.setText(aTag.getAttribute(\"String_Node_Str\"));\n if (... |
"public static PlayerCharacter loadFromXML(StringBuilder log, Element parentElement, Document doc) {\n PlayerCharacter character = new PlayerCharacter(new NameTriplet(\"String_Node_Str\"), \"String_Node_Str\", 0, Gender.F_V_B_FEMALE, RacialBody.HUMAN, RaceStage.HUMAN, new CharacterInventory(0), WorldType.DOMINION, P... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller == null) {\n return false;\n }\n int value = amount.calculate(game, source, this);\n boolean result = false;\n ChoiceColor choice = new ChoiceColor(false);\n fo... |
"public RecommendationResponse recommend(String userJid, int howMany) throws TasteException, SQLException {\n Long userId = recommenderDataModel.toUserId(userJid);\n if (userId == null) {\n return new RecommendationResponse(new LinkedList<ChannelData>(), 0);\n }\n List<RecommendedItem> recommended = ... |
"public void setButtonsEnabled(String filter) {\n boolean noFilter = isBlank(filter);\n Set<Object> selected = getSelectedItems();\n addEntityButton.setEnabled(noFilter);\n importButton.setEnabled(noFilter);\n addAttributeButton.setEnabled(noFilter && selected.size() > 0);\n removeButton.setEnabled(se... |
"public String[] getTickLabels(Axis1D axis, double[] tickPositions) {\n String[] tickLabels = new String[tickPositions.length];\n for (int i = 0; i < tickPositions.length; i++) {\n double value = tickPositions[i];\n if (zoomedIn) {\n value -= baseValue;\n value /= pow(10, order... |
"public static String sendCredentials(Project project, String username, String password) throws ServerException, IOException, URISyntaxException {\n URIBuilder requestUri = MMSUtils.getServiceUri(project);\n if (requestUri == null) {\n return null;\n }\n requestUri.setPath(requestUri.getPath() + \"St... |
"private synchronized void setWarningReport(Date lastDate) {\n if (messageManager != null) {\n StringBuilder finalContent = new StringBuilder();\n finalContent.append(Messages.memoryWarningMsg);\n finalContent.append(\"String_Node_Str\");\n finalContent.append(new SimpleDateFormat(\"Strin... |
"protected String dump(boolean canonical) {\n if (canonical) {\n StringBuffer buf = new StringBuffer();\n int ln = getRegulatedChildCount();\n for (int i = 0; i < ln; i++) {\n ConditionalBlock cblock = (ConditionalBlock) getRegulatedChild(i);\n buf.append(cblock.dump(canoni... |
"public boolean onOptionsItemSelected(MenuItem item) {\n final int itemId = item.getItemId();\n switch(itemId) {\n case R.id.miColdStorage:\n InstantWalletActivity.callMe(this);\n return true;\n case R.id.miSettings:\n {\n Intent intent = new Intent(th... |
"public void fatalError(SAXParseException exception) throws SAXException {\n if (null == errorHandler) {\n throw exception;\n }\n errorHandler.fatalError(marshalSAXParseException(exception));\n}\n"
|
"public IntDoubleEntry next() {\n entry.i++;\n return entry;\n}\n"
|
"private boolean isComplexNode(List<PathwayVertexRep> vertexReps) {\n for (PathwayVertexRep vertexRep : vertexReps) {\n for (PathwayVertexRep vRep : vertexReps) {\n if (vertexRep != vRep) {\n Set<DefaultEdge> edges1 = pathway.edgesOf(vertexRep);\n Set<DefaultEdge> edge... |
"public void testIsContainsTableConnectionCatalogString() {\n String catalogName = \"String_Node_Str\";\n String tablePattern = null;\n boolean containsTable = false;\n Connection dataProvider = null;\n DatabaseMetaData metaData = null;\n java.sql.Connection sqlConn = null;\n Catalog catalog = null... |
"private IType resolveTopLevelWith(MarkerList markers, IContext context) {\n final IClass theClass = context.resolveClass(this.name);\n if (theClass != null) {\n final IType classType = theClass.getThisType();\n return this.checkCount(markers, theClass, \"String_Node_Str\", classType);\n }\n f... |
"protected <T> String internalValueToString(final T value, final Boolean isNullable, final Integer maxLength, final Integer precision, final Integer scale, final Boolean isUnicode) throws EdmPrimitiveTypeException {\n Date date = null;\n Integer fractionalSecs = null;\n if (value instanceof Calendar) {\n ... |
"private void encodeJS(FacesContext fc, ResponseWriter rw, DateTimePicker dtp, String datePickerId) throws IOException {\n String clientId = dtp.getClientId();\n String fieldId = dtp.getFieldId();\n if (null == fieldId) {\n fieldId = clientId + \"String_Node_Str\";\n } else if (fieldId.equals(dtp.get... |
"public void onError(WebSocket socket, WebSocketException e) {\n fireException(e);\n}\n"
|
"public void initGui() {\n super.initGui();\n int maxEnergyStored = tileEntity.getMaxEnergyStored();\n energyBar = new EnergyBar(mc, this).setVertical().setMaxValue(maxEnergyStored).setLayoutHint(new PositionalLayout.PositionalHint(12, 141, 10, 76)).setShowText(false);\n energyBar.setValue(GenericEnergyStor... |
"public static void removeVxlanGpePort(final DataBroker dataBroker, final IpAddress local, final IpAddress remote, Long vni, String vppNode) {\n final DataBroker vppDataBroker = dataBroker;\n final WriteTransaction wTx = vppDataBroker.newWriteOnlyTransaction();\n final KeyedInstanceIdentifier<Interface, Interf... |
"public boolean read(Buffer buffer) throws PortAudioException {\n synchronized (readSync) {\n if (!started) {\n buffer.setLength(0);\n return true;\n }\n if (readActive)\n return false;\n readActive = true;\n }\n try {\n Object data = buffer.g... |
"private void initializeConversions(String[] row, ParsingContext context) {\n conversionsInitialized = true;\n this.fieldIndexes = null;\n this.fieldsReordered = false;\n this.conversionsInitialized = false;\n if (context.headers() != null && context.headers().length > 0) {\n conversions.prepareEx... |
"public int getSize() {\n Iterator<?> iterator = dictionary.getKeys();\n int i = 0;\n while (iterator.hasNext()) {\n iterator.next();\n i++;\n }\n return i;\n}\n"
|
"public Monitor createMonitor(Trajectory trajectory, Formula property) {\n if (trajectory.getLastPoint().getTime() < property.getTimeNeeded()) {\n throw new IllegalArgumentException(\"String_Node_Str\" + property.getTimeNeeded() + \"String_Node_Str\" + trajectory.getLastPoint().getTime() + \"String_Node_Str\"... |
"public void cleanup() {\n try {\n executeHeritrixCommand(SHUTDOWN_COMMAND);\n } catch (IOFailure e) {\n log.error(\"String_Node_Str\", e);\n }\n final long maxWait = Settings.getLong(CommonSettings.PROCESS_TIMEOUT);\n Integer exitValue = ProcessUtils.waitFor(heritrixProcess, maxWait);\n ... |
"public Pair<double[], double[]> oneEval(Genotype<T> individual, int num) {\n TorusPredPreyController[] predAgents = getPredAgents(individual);\n TorusPredPreyController[] preyAgents = getPreyAgents(individual);\n exec = new TorusWorldExec();\n TorusPredPreyGame game;\n if (CommonConstants.watch) {\n ... |
"protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) {\n return Util.makeMainEntrypoints(JavaSourceAnalysisScope.SOURCE, cha, new String[] { \"String_Node_Str\" });\n}\n"
|
"public boolean supportedWithHdfs2() {\n if (this.getDistroVendor().equalsIgnoreCase(Constants.CDH_VENDOR)) {\n Pattern pattern = Pattern.compile(Constants.CDH4_PATTERN);\n if (pattern.matcher(this.getDistroVersion()).matches()) {\n return true;\n }\n }\n return false;\n}\n"
|
"public synchronized List<Link> getLinksInMst() {\n List<Link> linksInMst = new ArrayList<>();\n if (networkGraph != null) {\n PrimMinimumSpanningTree<NodeId, Link> networkMst = new PrimMinimumSpanningTree<>(DelegateTree.<NodeId, Link>getFactory());\n Graph<NodeId, Link> mstGraph = networkMst.transf... |
"public boolean prefire() throws IllegalActionException {\n generateEvents(new ExecEvent(this, 1));\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n throw new InternalErrorException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n return super.prefire();\n}\n"
|
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute != _evalVar) {\n System.out.println(\"String_Node_Str\" + attribute.toString().substring(28));\n }\n if (attribute == encoding) {\n if (!_encoding.equals(encoding.getExpression())) {\n _e... |
"void addFilterMap(ServletFilterMapping sfm) {\n FilterMaps filterMaps = new FilterMaps();\n filterMaps.setFilterName(sfm.getName());\n filterMaps.setDispatcherTypes(sfm.getDispatchers());\n List<String> servletNames = sfm.getServletNames();\n if (servletNames != null) {\n for (String servletName ... |
"public Object exec(List arguments) throws TemplateModelException {\n try {\n return wrapper.invokeMethod(object, (Method) getMember(), unwrapArguments(arguments, wrapper));\n } catch (TemplateModelException e) {\n throw e;\n } catch (Exception e) {\n while (e instanceof InvocationTargetEx... |
"public Builders.Any.B setHeader(NameValuePair... header) {\n for (NameValuePair h : header) {\n headers.set(h.getName(), h.getValue());\n }\n return this;\n}\n"
|
"ComponentMetadata buildMetadata(String name, BeanDefinition beanDefinition) {\n Object metadata = beanDefinition.getAttribute(COMPONENT_METADATA_ATTRIBUTE);\n if (metadata instanceof ComponentMetadata)\n return (ComponentMetadata) metadata;\n if (name == null) {\n name = (String) beanDefinition.... |
"private ValidationRuleViolation valueDiff(Slot e, JSONObject info) {\n Debug.outln(\"String_Node_Str\" + Utils.slotValueToString(e) + \"String_Node_Str\" + info);\n List<ValueSpecification> vs = e.getValue();\n String valueTypes = (String) info.get(\"String_Node_Str\");\n JSONArray value = (JSONArray) info... |
"public static KeyboardExtension getCurrentKeyboardExtension(Context context, final int type) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n final String settingKey;\n final String defaultValue;\n switch(type) {\n case KeyboardExtension.TYPE_BOTTOM... |
"public void onScrollStateChanged(AbsListView view, int scrollState) {\n state.setScrollState(scrollState);\n mActionBar.getCustomView().findViewById(R.id.done).setVisibility(View.GONE);\n if (scrollState == OnScrollListener.SCROLL_STATE_IDLE) {\n mActionBar.getCustomView().findViewById(R.id.done).setVi... |
"protected Object getControlObject() {\n Customer cust = new Customer();\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true);\n factory.setIgnoringElementContentWhitespace(true);\n try {\n DocumentBuilder builder = factory.newDocumentBuilder()... |
"public void modifyText(ModifyEvent e) {\n String mintxt = minValue.getText();\n String maxtxt = maxValue.getText();\n if (maxtxt == \"String_Node_Str\") {\n updateStatus(IStatus.ERROR, MSG_EMPTY);\n } else if (!CheckValueUtils.isRealNumberValue(max)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_R... |
"public Response index(HttpContext httpContext) {\n Map<String, Object> parameters = new HashMap<String, Object>();\n parameters.put(\"String_Node_Str\", BrandingController_.uploadFile(null));\n parameters.put(\"String_Node_Str\", getLogoUrl(httpContext, true));\n ResourceBundle rs = renderContext.getApplic... |
"public void startPrefixMapping(String prefix, String namespaceURI) {\n try {\n contentHandler.startPrefixMapping(prefix, namespaceURI);\n if (Collections.EMPTY_LIST == currentLevelPrefixMappings) {\n currentLevelPrefixMappings = new ArrayList<String>();\n prefixMappings.put(level... |
"synchronized void getAllProperties() {\n mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, \"String_Node_Str\");\n mAdapterProperties.clear();\n String[] properties = (String[]) getAdapterPropertiesNative();\n if (properties == null) {\n Log.e(TAG, \"String_Node_Str\");\n return;\n }... |
"private void addFile(File file) {\n if (!hasChildNamed(file.getName())) {\n try {\n if (file.isDirectory()) {\n addFileEntry(new DirectoryNode(getOwnerFilesystem(), file, false));\n } else {\n addFileEntry(new FileNode(getOwnerFilesystem(), file));\n ... |
"public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {\n if (instrument != this.instrument || period != this.period)\n return;\n dc = transpose(indicators.donchian(instrument, period, OfferSide.BID, dcTimePeriod, indicatorFilter, PREV + 1, bidBar.getTime(), ... |
"public void testUuidCanBeChangedWhenImmutableIsFalse() throws InterruptedException {\n database = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().loadPropertiesFromFile(this.getClass().getClassLoader().getResource(\"String_Node_Str\").getPath()).newGraphDatabase();\n getRuntime(database).waitUntil... |
"private void showError(String title, String message) {\n Alert alert = new Alert(title, message, null, AlertType.ERROR);\n alert.setTimeout(Alert.FOREVER);\n Alert.setCurrent((Display) JavaRosaServiceProvider.instance().getDisplay().getDisplayObject(), alert, this);\n}\n"
|
"public void updateDeleteManagedRepoWithStagedRepo() throws Exception {\n String repoId = \"String_Node_Str\";\n String repoLocation = APPSERVER_BASE_PATH + File.separator + \"String_Node_Str\";\n String stageRepoLocation = APPSERVER_BASE_PATH + File.separator + repoId;\n File repoDir = clearRepoLocation(re... |
"public String[] outputLabels() {\n return Parameters.parameters.booleanParameter(\"String_Node_Str\") ? new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" } : new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_No... |
"public SGeometry convertToSObject(Geometry input) {\n if (input == null) {\n return null;\n }\n SExternalServiceCalled result = new SExternalServiceCalled();\n result.setOid(input.getOid());\n result.setRid(input.getRid());\n result.getIndices().addAll(input.getIndices());\n result.getVerti... |
"public void test() throws InterruptedException {\n long startMem = memoryUsed();\n data1.setLongString(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", data1.getLongString());\n data7.setLongString(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", data7.getLongString());\n System.out... |
"public void close() throws Exception {\n System.out.println(\"String_Node_Str\" + baos.size() + \"String_Node_Str\" + stopwatch.stop());\n if (realWriter != null) {\n CharStreams.copy(CharStreams.asCharSource(baos.toString(Charsets.UTF_8.name())).openStream(), realWriter);\n } else if (realOS != null) ... |
"private static String getCurrencySymbol(ULocale locale) {\n NumberFormat format = NumberFormat.getCurrencyInstance(locale);\n Currency currency = format.getCurrency();\n if (currency != null) {\n String symbol = currency.getSymbol(locale);\n if (symbol.equals(\"String_Node_Str\")) {\n ... |
"protected void uploadFiles(final List<FileUploader> files) throws IOException {\n final Map<String, String> originalDistCpEntries = new HashMap<String, String>();\n for (FileUploader f : files) {\n f.prepare();\n f.upload();\n if (f instanceof HDFSFileUploader)\n dataSourceDistCpE... |
"private void openFile(SessionContext context, OpenParams args) throws SVNException, IOException {\n final EntryUpdater parent = getParent(args.parentToken);\n final int rev = args.rev.length > 0 ? args.rev[0] : -1;\n log.info(\"String_Node_Str\", args.name, rev);\n VcsFile vcsFile = parent.getEntry(StringH... |
"public boolean updateNetworkPartition(NetworkPartition networkPartition) throws NetworkPartitionNotExistsException {\n try {\n handleNullObject(networkPartition, \"String_Node_Str\");\n handleNullObject(networkPartition.getUuid(), \"String_Node_Str\");\n if (log.isInfoEnabled()) {\n ... |
"public void onTopItemClicked(String idSubscription, boolean isFolder, String optional_folder_id) {\n if (!shouldDrawerStayOpen())\n mSlidingLayout.closePane();\n startDetailFHolder = new StartDetailFragmentHolder(idSubscription, isFolder, optional_folder_id);\n}\n"
|
"public Reader getReader(String s) throws LoaderException {\n try {\n final String buffer = vertx.fileSystem().readFileBlocking(s).toString(charset);\n return new StringReader(buffer);\n } catch (RuntimeException e) {\n throw new LoaderException(e, e.getMessage());\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.