content stringlengths 40 137k |
|---|
"public static void publishInstanceStartedEvent() {\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\");\n }\n InstanceStartedEvent event = new InstanceStartedEvent(CartridgeAgentConfiguration.getInstance().getServiceName(), CartridgeAgentConfiguration.getInstance().getClusterId(), CartridgeAge... |
"public void change_owner(Player this_player) {\n Player old_owner = owner;\n old_owner.looseAPiece(this);\n owner = this_player;\n owner.win_a_piece(this);\n if (my_listener != null)\n my_listener.on_owner_changed(this, old_owner, owner);\n}\n"
|
"private int transferDimensions(int srcAxis, int offset) throws SemanticException {\n int transfered = 0;\n int dimCount = crosstab.getDimensionCount(srcAxis) - offset;\n if (dimCount > 0) {\n int targetAxis = CrosstabModelUtil.getOppositeAxisType(srcAxis);\n CrosstabViewHandle targetCrosstabView... |
"public String getDescription() {\n JshExecutor anExecutor = new JshExecutor();\n return \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + anExecutor.getPathKey() + \"String_Node_Str\" + anExecutor.getDefaultPaths() + \"String_Node_... |
"public void testClusterStop() {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n this.buildReqRespWithoutRespBody(\"String_Node_Str\", HttpMethod.PUT, HttpStatus.NO_CONTENT, \"String_Node_Str\");\n clusterCommands.stopCluster(\"String_Node_Str\");\n CookieCache.clear();\n}\n"
|
"private static void addValidates(Set<Property> props, BindContext ctx) {\n if (ctx == null) {\n return;\n }\n Set<Property> validates = getValidates(ctx);\n if (validates == null) {\n validates = new LinkedHashSet<Property>();\n ctx.setAttribute(BinderImpl.VALIDATES, validates);\n }... |
"public void messageReceived(ConnectorMessageEvent event) {\n String message = event.getMessage();\n if (message.startsWith(\"String_Node_Str\" + getApplication().getName() + \"String_Node_Str\")) {\n String data = message.substring((\"String_Node_Str\" + getApplication().getName() + \"String_Node_Str\").l... |
"private boolean isEvictablePerPartition(final MapContainer mapContainer, int partitionId) {\n final MapServiceContext mapServiceContext = mapContainer.getMapServiceContext();\n final MaxSizeConfig maxSizeConfig = mapContainer.getMapConfig().getMaxSizeConfig();\n final double maxSize = getApproximateMaxSize(ma... |
"public void setValue(String key, Object value) {\n synchronized (this) {\n if (values == null) {\n values = new HashMap<>();\n }\n }\n values.put(key, value);\n}\n"
|
"public void run() {\n Log.v(TAG, \"String_Node_Str\" + currentDirectory);\n File[] files = currentDirectory.listFiles();\n int fileCount = 0;\n int dirCount = 0;\n int sdCount = 0;\n int totalCount = 0;\n if (cancel) {\n Log.v(TAG, \"String_Node_Str\");\n clearData();\n return... |
"private static Format findFirstMatchingFormat(Format[] formats, Format format) {\n double formatSampleRate = (format instanceof AudioFormat) ? ((AudioFormat) format).getSampleRate() : Format.NOT_SPECIFIED;\n for (Format match : formats) {\n if (match.isSameEncoding(format)) {\n if (match instan... |
"public boolean performNextAttack() {\n boolean doContinue = false;\n if (initialMessage == null || initialMessage.getRequest() == null) {\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"String_Node_Str\");\n }\n if (initialMessage.getReq().getChangeParam() == null) {\n BurpC... |
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n ActionReport.MessagePart part = report.getTopMessagePart();\n ApplicationInfo appInfo = appRegistry.get(appname);\n if (appInfo != null) {\n Application app = appInfo.getMetaData(Application... |
"public Entry<Binary, Binary> next() {\n if (offset >= map.partitionCount)\n throw new NoSuchElementException();\n long locationAddress = map.unsafe.getAddress(map.partitionAddress + (offset * map.addressSize));\n while (locationAddress == 0) {\n offset++;\n return next();\n }\n int ... |
"private void init(ConfigurationFile cfg) {\n this.cfg = cfg;\n spawnableMobs = cfg.getString(\"String_Node_Str\", \"String_Node_Str\").split(\"String_Node_Str\");\n spawnableAnimals = cfg.getString(\"String_Node_Str\", \"String_Node_Str\").split(\"String_Node_Str\");\n spawnableWaterAnimals = cfg.getString... |
"private void refreshStats() {\n if (WordPress.getCurrentBlog() == null) {\n mPullToRefreshHelper.setRefreshing(false);\n return;\n }\n if (!NetworkUtils.isNetworkAvailable(this)) {\n mPullToRefreshHelper.setRefreshing(false);\n return;\n }\n if (mIsUpdatingStats) {\n m... |
"private static Index[] getIndicesInternal(final Class<?> implementingClass, final Configuration configuration) {\n final Map<String, String> input = configuration.getValByRegex(enumToConfKey(implementingClass, GeoWaveMetaStore.INDEX) + \"String_Node_Str\");\n if (input != null) {\n final List<Index> indic... |
"public void check(View view, NoMatchingViewException e) {\n RecyclerView recyclerView = (RecyclerView) view;\n LinearLayoutManager layoutManager = ((LinearLayoutManager) recyclerView.getLayoutManager());\n int firstVisiblePosition = layoutManager.findFirstVisibleItemPosition();\n if (firstVisiblePosition !... |
"public static SubstitutedLine parseLine(String str, ParsingStateCallbackHandler callbackHandler, ParsingState initialState, boolean strict, CommandContext ctx) throws CommandFormatException {\n try {\n return doParse(str, callbackHandler, initialState, strict, disableResolutionException, ctx);\n } catch (... |
"public QueryExecutionNode convertToProgressiveAgg() throws VerdictDBValueException {\n List<QueryExecutionNode> individualAggNodes = new ArrayList<>();\n List<QueryExecutionNode> combiners = new ArrayList<>();\n ScrambleMeta scrambleMeta = plan.getScrambleMeta();\n List<Pair<QueryExecutionNode, Triple<Stri... |
"public static void globalSetUp() throws Exception {\n doSettings();\n callback = new MyActivityCallback();\n rs = new RouterService(callback);\n assertEquals(\"String_Node_Str\", PORT, ConnectionSettings.PORT.getValue());\n rs.start();\n RouterService.clearHostCatcher();\n RouterService.connect();... |
"public void handleMessage(Message msg) {\n super.handleMessage(msg);\n chartRecordDoList.clear();\n chartRecordDoList.addAll((List<ChartRecordDo>) msg.obj);\n recordPieAnalysisAdapter.notifyDataSetChanged();\n mTypePieChart.clear();\n xVals1.clear();\n yVals1.clear();\n List<ChartRecordDo> list... |
"private void removePongs(String loc, List l) {\n if (l != null) {\n BucketQueue<PingReply> bq = PONGS.get(loc);\n for (PingReply pr : l) {\n bq.removeAll(pr);\n }\n }\n}\n"
|
"public void removeRelevanceEntity(EntityRef entity) {\n regionLock.writeLock().lock();\n try {\n regions.remove(entity);\n } finally {\n regionLock.writeLock().unlock();\n }\n}\n"
|
"public IReportItemExecutor getNextChild() {\n IReportItemExecutor nextExecutor = null;\n try {\n while (walker.hasNext()) {\n ColumnEvent ev = walker.next();\n switch(currentChangeType) {\n case ColumnEvent.ROW_EDGE_CHANGE:\n case ColumnEvent.MEASURE_HEA... |
"public org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.TestScript.TestScriptTeardownAct... |
"public ArrayList<String> importData(DataSource dataSource, CoreResources resources, StudyBean studyBean, UserAccountBean userBean, String xml) throws Exception {\n locale = new Locale(\"String_Node_Str\");\n ResourceBundleProvider.updateLocale(locale);\n respage = ResourceBundleProvider.getPageMessagesBundle(... |
"public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {\n if (event.getEntity() instanceof Player) {\n Player p = (Player) event.getEntity();\n Player attacker = null;\n if (event.getDamager() instanceof Projectile) {\n Projectile projectile = (Projectile) event.getDama... |
"public void run() {\n toast(((org.mozilla.javascript.ConsString) args[0]).toString());\n}\n"
|
"private void renderPlugin(DiagnosticsPlugin plugin) throws IOException {\n logWriter.init(printWriter);\n plugin.run(logWriter);\n int desiredLength = charBuff.length;\n int actualSize = logWriter.length();\n while (desiredLength < actualSize) {\n desiredLength *= 2;\n }\n if (desiredLength... |
"public void run() throws Exception {\n AbstractCacheService service = getService();\n response = service.createCacheConfigIfAbsent(config);\n if (createAlsoOnOthers) {\n NodeEngine nodeEngine = getNodeEngine();\n Collection<MemberImpl> members = nodeEngine.getClusterService().getMemberList();\n ... |
"public List checkCompatibility() {\n List errorList = new ArrayList(1);\n if (checkVersion(handle.getExtensionVersion()) < 0) {\n try {\n handle.setExtensionVersion(CROSSTAB_CURRENT_VERSION);\n } catch (SemanticException e) {\n errorList.add(e);\n }\n if (getHead... |
"public static Iterable<Read> readSequentiallyForTesting(Objects storageClient, String storagePath, Contig contig, ReaderOptions options) throws IOException {\n Stopwatch timer = Stopwatch.createStarted();\n SamReader samReader = BAMIO.openBAM(storageClient, storagePath, options.getStringency());\n SAMRecordIt... |
"private void genScript(PrintWriter mainPw, String template) {\n StringBuffer buf = new StringBuffer(template);\n replaceAll(buf, \"String_Node_Str\", moduleFunction);\n replaceAll(buf, \"String_Node_Str\", moduleName);\n if (orderedProps != null) {\n int startPos = buf.indexOf(\"String_Node_Str\");\... |
"protected boolean shouldIgnore(GraphNode<Tile, E> node) {\n Tile tile = node.getValue();\n for (int i = 0; i < zonesToAvoid.size(); i++) {\n Zone zone = zonesToAvoid.get(i);\n if (zone.getBounds().intersects(tile.getBounds())) {\n return true;\n }\n }\n return shouldIgnoreTi... |
"public void testRejected() throws Exception {\n synchronized (this.lock_) {\n Promise.reject(new IllegalStateException())._catch(onUiThread(rejected(new RejectNoReturn() {\n\n public void rejectNoReturn(Throwable reason) {\n boolean isUiThread = Looper.getMainLooper().getThread().eq... |
"public static File[] procedureRaw(String params, String fastqFile, String sgrFile, boolean keepSam, boolean removeDups, String genomeVersion, String referenceGenome, String filepathRaw, String filepathProfile) throws ProcessException, InterruptedException, IOException {\n ArrayList<File> returnFiles = new ArrayList... |
"public void setAudioSystem(String name, CaptureDeviceInfo captureDevice, boolean save) {\n ConfigurationService config = NeomediaActivator.getConfigurationService();\n audioSystem = name;\n if (name.equals(AUDIO_SYSTEM_NONE)) {\n setAudioCaptureDevice(null, save);\n setAudioNotifyDevice(null, sa... |
"private long copyBackupToFile(BackupDataInput data, File file, int toRead) throws IOException {\n final int CHUNK = 8192;\n byte[] buf = new byte[CHUNK];\n CRC32 crc = new CRC32();\n FileOutputStream out = new FileOutputStream(file);\n try {\n while (toRead > 0) {\n int numRead = data.... |
"public String execute(Map parameters, String body, RenderContext renderContext) throws MacroException {\n if (!(renderContext instanceof PageContext)) {\n throw new MacroException(\"String_Node_Str\");\n }\n ContentEntityObject page = ((PageContext) renderContext).getEntity();\n Metadata metadata;\n... |
"protected void publishReplicatedMessage(IdentifiedDataSerializable message) {\n Collection<EventRegistration> registrations = eventService.getRegistrations(ReplicatedMapService.SERVICE_NAME, ReplicatedMapService.EVENT_TOPIC_NAME);\n eventService.publishEvent(ReplicatedMapService.SERVICE_NAME, registrations, mess... |
"public Set<URI> getMemberURIs() {\n Set<URI> result = new HashSet<>();\n result.addAll(members);\n return result;\n}\n"
|
"private Expression readCondition() throws SQLException {\n if (readIf(\"String_Node_Str\")) {\n return new ConditionNot(readCondition());\n }\n if (readIf(\"String_Node_Str\")) {\n read(\"String_Node_Str\");\n Query query = parseSelect();\n read(\"String_Node_Str\");\n retur... |
"public void select(Axis1D axis, boolean horizontal, float posX, float posY) {\n if (!allowSelect)\n return;\n if (axis.isSelectionLocked())\n return;\n double posPixels = getDim(horizontal, posX, posY);\n double posData = axis.screenPixelToValue(posPixels);\n axis.setMouseValue(posData);\n... |
"protected Object formBackingObject(HttpServletRequest request) throws Exception {\n if (!isFormSubmission(request)) {\n String username = request.getParameter(\"String_Node_Str\");\n log.debug(\"String_Node_Str\");\n AuthenticationTrustResolver resolver = new AuthenticationTrustResolverImpl();\... |
"private void createVBOs(GL3 gl, RenderObject robj, float pointRadius) {\n positionPutter = PositionBufferPutter.createDefault();\n normalPutter = NormalBufferPutter.createDefault();\n colorPutter = ColorBufferPutter.createDefault();\n texturePutter = TextureCoordBufferPutter.createDefault();\n final int... |
"private void genStyled(File cache, String organisation, String module, String[] confs, String style, String ext) throws IOException {\n File out;\n if (todir != null) {\n out = todir;\n } else {\n out = new File(\"String_Node_Str\");\n }\n InputStream xsltStream = null;\n try {\n ... |
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n this.addPositionalNodes(xPathFragment, namespaceResolver);\n if (isStartElementOpen) {\n outputStreamWrite(CLOSE_ELEMENT);\n }\n if (!isLastEventText) {\n if (numberOfTabs > 0) {\n ou... |
"public int[] shape() {\n int[] ret = new int[rank()];\n DataBuffer buffer = Shape.shapeOf(shapeInformation);\n for (int i = 0; i < ret.length; i++) ret[i] = buffer.getInt(i);\n return ret;\n}\n"
|
"public boolean shouldOverrideUrlLoading(final WebView view, final String url) {\n if (url == null)\n return false;\n if (url.startsWith(\"String_Node_Str\")) {\n return true;\n }\n } else {\n if (RedditURLParser.parse(Uri.parse(url)) != null) {\n LinkHandler.onLinkClicked(mA... |
"void sealAndInitialize(Map<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) {\n for (BaseRuntimeChildDefinition next : myExtensions) {\n next.sealAndInitialize(theClassToElementDefinitions);\n }\n for (RuntimeChildDeclaredExtensionDefinition next : myExtensions)... |
"public void queue(Runnable runnable) {\n synchronized (runnables) {\n runnables.addFirst(runnable);\n }\n int lag = lagMillisMin + (int) (Math.random() * (lagMillisMax - lagMillisMin));\n threadPool.schedule(new Runnable() {\n public void run() {\n Runnable runnable;\n s... |
"public byte[] readBytes(int id) {\n Cursor c = helper.getHandle().query(table, new String[] { DatabaseHelper.ID_COL, DatabaseHelper.DATA_COL }, DatabaseHelper.ID_COL + \"String_Node_Str\", new String[] { String.valueOf(id) }, null, null, null);\n try {\n if (!c.moveToFirst()) {\n throw new NoSu... |
"private Object txnalReplaceIfSame(ClusterOperation operation, String name, Object key, Object newValue, Object expectedValue, long timeout) {\n ThreadContext threadContext = ThreadContext.get();\n TransactionImpl txn = threadContext.getCallContext().getTransaction();\n if (txn != null && txn.getStatus() == Tr... |
"public String handleArg(String arg) {\n arg = arg.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n Matcher matcher = sPattern.matcher(arg);\n if (matcher.find()) {\n return \"String_Node_Str\" + arg;\n } else {\n if (CheckUtil.getInstant().checkKeyWord(arg)) {\n return arg +... |
"public boolean hasReadOnlyMetadataColumns() {\n boolean hasReadOnlyMetadataColumns = false;\n IOConnection connection = getConnection();\n if (connection != null) {\n INode source = connection.getSource();\n if (source != null) {\n hasReadOnlyMetadataColumns = connection.isReadOnly() ... |
"private static CommonExpression readExpression(List<Token> tokens) {\n CommonExpression rt = null;\n tokens = trimWhitespace(tokens);\n Token lastToken = tokens.get(tokens.size() - 1);\n if (lastToken.type == TokenType.WORD && (lastToken.value.equals(\"String_Node_Str\") || lastToken.value.equals(\"String_... |
"public ParseTreeCodeGenerator getParseTreeCodeGenerator() {\n if (!(_parseTreeCodeGenerator instanceof CParseTreeCodeGenerator)) {\n _parseTreeCodeGenerator = new CParseTreeCodeGenerator(_codeGenerator);\n }\n return _parseTreeCodeGenerator;\n}\n"
|
"public void onClick(final View v) {\n final TaskView tv = this;\n final boolean delayViewClick = (v != this) && (v != mActionButtonView);\n if (delayViewClick) {\n postDelayed(new Runnable() {\n public void run() {\n if (Constants.DebugFlags.App.EnableTaskFiltering && v == mHe... |
"public void doReadFields(DataInput in) throws IOException {\n this.trainCount = in.readDouble();\n this.validationCount = in.readDouble();\n this.trainError = in.readDouble();\n this.validationError = in.readDouble();\n this.isSwitchToNextTree = in.readBoolean();\n int treeNum = in.readInt();\n th... |
"public int getPowerProfile() {\n return getUserProfile();\n}\n"
|
"private void handleRequestTypeText(WPBPage webPage, HttpServletRequest req, HttpServletResponse resp, InternalModel model) throws WPBException, IOException {\n if (webPage == null) {\n resp.setStatus(HttpServletResponse.SC_NOT_FOUND);\n return;\n }\n resp.setCharacterEncoding(\"String_Node_Str\"... |
"public void testStoreCount() 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 ... |
"private void logStateToEventlog() {\n boolean isShowing = mStatusBarKeyguardViewManager.isShowing();\n boolean isOccluded = mStatusBarKeyguardViewManager.isOccluded();\n boolean isBouncerShowing = mStatusBarKeyguardViewManager.isBouncerShowing();\n boolean isSecure = mUnlockMethodCache.isMethodSecure();\n ... |
"private Object convertValue(Element node, XMLField key, Object value) {\n XMLConversionManager xmlCnvMgr = (XMLConversionManager) session.getDatasourcePlatform().getConversionManager();\n if (key.isTypedTextField() && (node != null)) {\n String schemaType = node.getAttributeNS(XMLConstants.SCHEMA_INSTANCE... |
"public boolean handle(Object receive) throws Exception {\n if (receive instanceof HttpResponse) {\n HttpResponse response = (HttpResponse) receive;\n if (NettyUtil.isSuccessful(response.getStatus())) {\n if (response.isChunked()) {\n this.chunkedBuffer = response.getContent()... |
"public RecordCursor get(MultiMap.KeyWriter key) {\n MapValues values = map.getValues(key);\n records.of(values == null ? -1 : values.getLong(0));\n return records;\n}\n"
|
"private void closeClicked() {\n QApplication.exit();\n}\n"
|
"public AbstractRecord buildRow(AbstractRecord record, Object object, org.eclipse.persistence.internal.sessions.AbstractSession session, XMLMarshaller marshaller, XPathFragment rootFragment, WriteType writeType) {\n lazyInitialize();\n XPathNode textNode = rootXPathNode.getTextNode();\n List<XPathNode> nonAttr... |
"public void setUp() throws ServiceNotDeployedException {\n ServicesManager servicesManagerMock = mock(ServicesManager.class);\n when(servicesManagerMock.createService(getSpec())).thenReturn(getService());\n this.servicesResources = new ServicesResourceForTest(servicesManagerMock, null);\n}\n"
|
"public void modifyText(ModifyEvent e) {\n saveExportPath(DIRECTORY_PATH, directoryPathField.getText());\n}\n"
|
"public void postParse(TypeDeclaration typeDec) {\n this.selector = NameMangler.adviceName(EclipseWorld.fromBinding(typeDec.binding), kind, sourceStart).toCharArray();\n if (arguments != null) {\n baseArgumentCount = arguments.length;\n }\n if (kind == AdviceKind.Around) {\n extraArgument = ma... |
"public void run() {\n ImmutablePair<List<TurboUser>, String> changes = repo.getUpdatedCollaborators(model.getRepoId().generateId(), model.getUpdateSignature().collaboratorsETag);\n List<TurboUser> changed = changes.left;\n logger.info(HTLog.format(model.getRepoId(), \"String_Node_Str\", changed.size(), change... |
"public void handleDrop(GL2 gl, Set<IDraggable> draggables, float mouseCoordinateX, float mouseCoordinateY, DragAndDropController dragAndDropController) {\n ArrayList<DataContainer> dataContainers = new ArrayList<DataContainer>();\n for (IDraggable draggable : draggables) {\n if (draggable instanceof Dimen... |
"public Set<QueryableEntry> getSubRecords(ComparisonType comparisonType, Comparable searchedValue) {\n takeReadLock();\n try {\n MultiResultSet results = createMultiResultSet();\n for (Map.Entry<Comparable, ConcurrentMap<Data, QueryableEntry>> recordMapEntry : recordMap.entrySet()) {\n Co... |
"public synchronized void display(GL gl) {\n gl.glCallList(iGLDisplayListToCall);\n if (bBusyModeChanged || bBusyMode)\n updateBusyMode(gl);\n}\n"
|
"public TridentChunk chunkAt(ChunkLocation location, boolean generateIfNotFound) {\n if (location == null) {\n return null;\n }\n TridentChunk chunk = this.loadedChunks.get(location, generateIfNotFound);\n if (chunk != null && generateIfNotFound)\n chunk.paint();\n return chunk;\n}\n"
|
"public List<ApplicationChildContext> findAllParentContextWithId(String id) {\n List<ApplicationChildContext> applicationContexts = new ArrayList<ApplicationChildContext>();\n return findAllParent(applicationContexts, context);\n}\n"
|
"public static void getAngleChange(float[] angleChange, float[] R, float[] prevR) {\n float rd1 = 0, rd4 = 0, rd6 = 0, rd7 = 0, rd8 = 0;\n float ri0 = 0, ri1 = 0, ri2 = 0, ri3 = 0, ri4 = 0, ri5 = 0, ri6 = 0, ri7 = 0, ri8 = 0;\n float pri0 = 0, pri1 = 0, pri2 = 0, pri3 = 0, pri4 = 0, pri5 = 0, pri6 = 0, pri7 = ... |
"public void setPriority(MediaFormat encoding, int priority) {\n encodingPreferences.put(encoding, priority);\n NeomediaActivator.getConfigurationService().setProperty(PROP_SDP_PREFERENCE + \"String_Node_Str\" + encoding.getEncoding() + \"String_Node_Str\" + encoding.getClockRateString(), priority);\n updateSu... |
"private String uri(String name) {\n return baseURI + name;\n}\n"
|
"public static void main(String[] args) throws Exception {\n network = BayesianNetworkLoader.loadFromFile(\"String_Node_Str\");\n System.out.println(network);\n for (int i = 0; i < batchSize.length; i++) {\n for (int j = 0; j < deltaValue.length; j++) {\n for (int k = 0; k < memoryPopulationV... |
"protected void dispatchDraw(Canvas canvas) {\n super.dispatchDraw(canvas);\n if ((mChildIndicator == null) && (mGroupIndicator == null)) {\n return;\n }\n int saveCount = 0;\n final boolean clipToPadding = (mGroupFlags & CLIP_TO_PADDING_MASK) == CLIP_TO_PADDING_MASK;\n if (clipToPadding) {\n ... |
"public Interpreter getInterpreter(String zslang) {\n zslang = (zslang != null ? zslang : _zslang).toLowerCase();\n Interpreter ip = _ips.get(zslang);\n if (ip == null) {\n if (_desktop != null && !_desktop.getWebApp().getConfiguration().isZScriptEnabled())\n throw new UiException(\"String_No... |
"public void updateAuthPassword(String newAuth) {\n PasswordHashPreference pwPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_password_hash));\n PasswordHashPreference pinPref = (PasswordHashPreference) catSecurity.findPreference(getString(R.string.settings_key_auth_... |
"public ResultSet getTables(String catalog, String database, String tableNamePattern, String[] types) throws SQLException {\n if (databaseName != null) {\n database = databaseName;\n }\n String sql = null;\n if (types != null && types.length > 0) {\n String kind = \"String_Node_Str\";\n ... |
"public void modifyText(ModifyEvent e) {\n if (e.widget.equals(txtWrapping)) {\n getBlockForProcessing().setWrappingSize(txtWrapping.getValue());\n } else if (e.widget.equals(txtMaxPercent)) {\n if (e.data != null && ((Boolean) e.data).booleanValue()) {\n getBlockForProcessing().setMaxPer... |
"public ResponseLinking apply(ResponseLinking responseLinking) {\n final Function<Response, Response> responseMapping = MapUtils.asFunction(replacedResponses, Functions.<Response>identity());\n final Predicate<Response> notDeleted = not(in(deletedResponses));\n final ImmutableSet.Builder<ResponseSet> newRespon... |
"private static void tagSlaveInstance(JSONObject instance, ElasticBoxSlave slave) throws IOException {\n if (instance.getJSONArray(\"String_Node_Str\").contains(slave.getNodeName())) {\n return;\n }\n instance.getJSONArray(\"String_Node_Str\").add(slave.getNodeName());\n Client client = ClientCache.g... |
"public List<NutResource> list(String src, String filter) {\n final List<NutResource> list = new LinkedList<NutResource>();\n final Pattern regex = null == filter ? null : Pattern.compile(filter);\n File f = Files.findFile(src);\n if (f != null && f.exists()) {\n if (f.isFile())\n list.add... |
"public void debug(CommandContext args, CommandSender sender) throws CommandException {\n if (args.hasFlag('s')) {\n if (!dB.showDebug)\n dB.toggle();\n dB.showStackTraces = !dB.showStackTraces;\n Messaging.sendInfo(sender, (dB.showStackTraces ? \"String_Node_Str\" + \"String_Node_Str... |
"public void resolveTypes(MarkerList markers, IContext context) {\n if (this.type == null) {\n this.type = dyvil.tools.compiler.ast.type.Types.UNKNOWN;\n markers.add(this.position, \"String_Node_Str\");\n return;\n }\n this.type = this.type.resolveType(markers, context);\n ClassGenericT... |
"public void onUpdateProperties(final NodeRef nodeRef, final Map<QName, Serializable> before, final Map<QName, Serializable> after) {\n if (AuthenticationUtil.getFullyAuthenticatedUser() != null && !AuthenticationUtil.isRunAsUserTheSystemUser() && nodeService.exists(nodeRef) && isRecord(nodeRef)) {\n for (Map... |
"private void run() {\n Properties props = new Properties();\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n props.put(\"String_... |
"public void widgetSelected(SelectionEvent e) {\n try {\n setTTL((int) service.getTTL(id, db, key));\n } finally {\n setTTLApply(false);\n throw e1;\n }\n}\n"
|
"public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n response.setStatus(HttpServletResponse.SC_OK);\n final Continuation continuation = ContinuationSupport.getContinuation(request);\n continuation.suspend();\n... |
"public void closeEditorIfOpened(Property property) {\n IWorkbenchPage activePage = CorePlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage();\n IEditorReference[] editorReferences = activePage.getEditorReferences();\n IEditorInput editorInput = null;\n for (IEditorReference referenc... |
"private void initView() {\n TextView tv_title = (TextView) rootView.findViewById(R.id.tv_title_task);\n ImageButton addTaskBTN = (ImageButton) rootView.findViewById(R.id.btn_add_task);\n listView = (ListView) rootView.findViewById(R.id.list_task);\n Typeface roboto = Typeface.createFromAsset(getActivity().... |
"public void actionPerformed(ActionEvent evt) {\n JButton button = (JButton) evt.getSource();\n String buttonName = button.getName();\n if (buttonName.equals(CALL_BUTTON)) {\n if (isCallMetaContact) {\n Object[] selectedContacts = mainFrame.getContactListPanel().getContactList().getSelectedVa... |
"public static Map<String, XmlBindings> getXmlBindingsFromProperties(Map properties, ClassLoader classLoader) {\n Map<String, List<XmlBindings>> bindings = new HashMap<String, List<XmlBindings>>();\n Object value;\n if (properties != null && ((value = properties.get(ECLIPSELINK_OXM_XML_KEY)) != null)) {\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.