content stringlengths 40 137k |
|---|
"public void endElement(String uri, String localName, String qName) throws SAXException {\n String loopPath = this.loopPath;\n if (loopPath.indexOf(\"String_Node_Str\") != -1) {\n loopPath = this.loopPath.replace(\"String_Node_Str\", qName);\n }\n if (isLooping && outputText) {\n for (int inde... |
"public static TableViewer createTableViewer(Composite container, int style) {\n TableViewer viewer = new TableViewer(container, style);\n fixOSXTableBug(viewer.getTable());\n return viewer;\n}\n"
|
"private String invokeAntiSamy(String context, String input) throws ValidationException {\n if (StringUtilities.isEmpty(input)) {\n if (allowNull) {\n return null;\n }\n throw new ValidationException(context + \"String_Node_Str\", \"String_Node_Str\" + context + \"String_Node_Str\" + ... |
"private void onEditorAction_nearestConfigurableBeaconUrlEditTextDoneKeyPressed() {\n hideSoftKeyboard();\n String url = mEditCardUrl.getText().toString();\n try {\n byte[] scanRecord = BeaconHelper.createAdvertisingPacket(url);\n mBeaconConfig.writeUriBeacon(scanRecord);\n } catch (URISyntaxE... |
"public static void setHistoryAndPersonality(GameCharacter character) {\n double prostituteChance = 0.15f;\n if (character.isFeminine()) {\n prostituteChance += 0.10f;\n }\n prostituteChance += Math.min((character.body.getBreast().getRawSizeValue() - 7) * 0.02f, 0.35f);\n if (character.hasPenis())... |
"public void onClick(DialogInterface dialogI, int which) {\n eAssert(mCancelable);\n mUserCancelled = true;\n mDialog.setMessage(mContext.getResources().getText(R.string.msg_wait_cancel));\n if (null != mWorker)\n mWorker.onCancel(this);\n super.cancel(mInterruptOnCancel);\n}\n"
|
"public void updateObjectForWriteWithChangeSet() {\n WriteObjectQuery writeQuery = getWriteObjectQuery();\n ObjectChangeSet changeSet = writeQuery.getObjectChangeSet();\n Object object = writeQuery.getObject();\n ClassDescriptor descriptor = getDescriptor();\n DescriptorQueryManager queryManager = descri... |
"protected List<Polygon2D_F64> getFoundPolygons() {\n return alg.getDetectorSquare().getPolygons(null, null);\n}\n"
|
"public void createTestTable() throws Exception {\n if (m_admin == null) {\n throw new IOException(\"String_Node_Str\");\n }\n if (m_admin.tableExists(\"String_Node_Str\")) {\n m_admin.disableTable(\"String_Node_Str\");\n m_admin.deleteTable(\"String_Node_Str\");\n }\n List<String> c... |
"private ObjectLiteral objectLiteral() throws IOException {\n int pos = ts.tokenBeg, lineno = ts.lineno;\n int afterComma = -1;\n List<ObjectProperty> elems = new ArrayList<ObjectProperty>();\n Set<String> getterNames = null;\n Set<String> setterNames = null;\n if (this.inUseStrictDirective) {\n ... |
"public boolean attachISOToVM(long vmId, long isoId, boolean attach) {\n UserVmVO vm = _vmDao.findById(vmId);\n if (vm == null) {\n return false;\n } else if (vm.getState() != State.Running) {\n return true;\n }\n Pair<String, String> isoPathPair = _storageMgr.getAbsoluteIsoPath(isoId, vm.g... |
"private void track(String eventName, HashMap<String, Object> attributes, Date date) {\n if ((eventName == null) || (eventName.length() == 0)) {\n eventName = \"String_Node_Str\";\n }\n LQLog.infoVerbose(\"String_Node_Str\" + eventName);\n LQEvent event = new LQEvent(eventName, LQModel.sanitizeAttrib... |
"public Conditional<Entry> apply(final FeatureExpr f, final Stack s) {\n Stack clone = s.copy();\n boolean ref = copyRef ? clone.isRef(0) : false;\n int res = clone.pop();\n if (stackCTX.equivalentTo(f)) {\n stack = new One<>(clone);\n } else {\n stack = ChoiceFactory.create(f, new One<>(cl... |
"public static String format(final String messagePattern, final Object[] arguments) {\n final StringBuilder result = getThreadLocalStringBuilder();\n final int argCount = arguments == null ? 0 : arguments.length;\n formatMessage(result, messagePattern, arguments, argCount);\n return result.toString();\n}\n"... |
"public void setDirectChatRoomsDict(Map<String, List<String>> directChatRoomsDict) {\n if (null != mMetadata) {\n mMetadata.mDirectChatRoomsMap = directChatRoomsDict;\n Log.d(LOG_TAG, \"String_Node_Str\");\n commit();\n }\n}\n"
|
"public String toString() {\n return matchesReference ? String.format(\"String_Node_Str\", from, readerIndex) : String.format(\"String_Node_Str\", from, to, qualityScore, readerIndex);\n}\n"
|
"public void errorf(String fmt, Object... args) {\n if (isErrorEnabled())\n log(LEVEL_ERROR, String.format(fmt, args), null);\n}\n"
|
"private void pullVoteStoryFromNetwork() {\n if (mGetVoteStorySubscription != null) {\n mGetVoteStorySubscription.unsubscribe();\n mGetVoteStorySubscription = null;\n }\n mGetVoteStoryObservable = mGMHService.getVoteStory(ApiModule.VOTE_URL).subscribeOn(Schedulers.io()).observeOn(AndroidScheduler... |
"public Result<Record> executeStatementWithResult(DSLContext dsl, String statement, Context context) {\n Connection c = dsl.configuration().connectionProvider().acquire();\n try (PreparedStatement ps = c.prepareStatement(statement)) {\n try (ResultSet resultSet = ps.executeQuery()) {\n return ds... |
"private void checkExtendedColumnTypes(SqlNodeList extendList) {\n final List<RelDataTypeField> extendedFields = SqlValidatorUtil.getExtendedColumns(validator.getTypeFactory(), table, extendList);\n final List<RelDataTypeField> baseFields = getBaseRowType().getFieldList();\n final Map<String, Integer> nameToIn... |
"private final void _triggerRateEvent(final Time currentTime, final boolean force) throws IllegalActionException {\n if (_debugging) {\n _debugToStdOut(String.format(\"String_Node_Str\", System.identityHashCode(this), currentTime.toString()));\n }\n int currIdx = 0;\n boolean updatedInputVarMdl = fal... |
"public Object getValue(BindELContext ctx) {\n return tabbox.getModel().getElementAt(BindTabboxRenderer.this.getRenderedIndex(tabpanels, ntabpanel.getIndex()));\n}\n"
|
"protected boolean preprocess(AbstractQApiTypeDescriptor root) {\n if (fields != null)\n return false;\n innerTypes = new ArrayList<QApiTypeDescriptor>();\n fields = new ArrayList<Field>();\n if (data != null) {\n for (Map.Entry<String, Object> e : data.entrySet()) {\n Field field =... |
"public boolean containsValueInternal(Data dataValue) {\n final NodeEngine nodeEngine = getNodeEngine();\n try {\n ContainsValueOperation containsValueOperation = new ContainsValueOperation(name, dataValue);\n Map<Integer, Object> results = nodeEngine.getOperationService().invokeOnAllPartitions(SERV... |
"public void filterQuerySucceeded(FilterQuery query) {\n if (currentFilterQuery.equals(query))\n filterQueryFinished(query, true);\n}\n"
|
"public void testErmaGradient2WordGlobalFactor() {\n double[] root = new double[] { 1.0, 1.0 };\n double[][] child = new double[][] { { 0.0, 1.0 }, { 1.0, 0.0 } };\n FgAndLinks fgl = ProjDepTreeFactorTest.getFgl(root, child, logDomain);\n FactorGraph fg = fgl.fg;\n LinkVar[] rootVars = fgl.rootVars;\n ... |
"public void init(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n Properties props = context.getProps();\n try {\n SourceType sourceType = SourceType.valueOf(props.getProperty(CommonConstants.MODELSET_SOURCE_TYPE, SourceType.HDFS.toString()));\n this.modelConfig = CommonUtils.loadModelCon... |
"private boolean nextMinKey() {\n return Arrays.stream(nextList).filter(opt -> opt.isPresent()).map(opt -> opt.get().getSecond()).min((k, k2) -> k.compareTo(k2)).map(k -> {\n minKeyVal = k;\n return k;\n }).isPresent();\n}\n"
|
"public void handleSelectionUpdate(ISelectionDelta selectionDelta, boolean scrollToSelection, String info) {\n if (pathway == null)\n return;\n if (selectionDelta.getIDType() == mappingDataDomain.getDimensionIDType()) {\n for (SelectionDeltaItem item : selectionDelta.getAllItems()) {\n if... |
"public boolean isVisible(ICellContent cell) {\n IElement parent = cell.getParent();\n if (parent instanceof IContent) {\n if (LayoutUtil.isHidden(((IContent) parent), format, context.getOutputDisplayNone(), hiddenMask)) {\n return false;\n }\n }\n IColumn column = cell.getColumnIns... |
"public Result rollbackTx(Transaction tx) {\n if (tx == null) {\n return Result.getFailed(LedgerErrorCode.NULL_PARAMETER);\n }\n try {\n Result result = rollbackCoinData(tx);\n if (result.isFailed()) {\n return result;\n }\n result = utxoLedgerTransactionStorageSer... |
"public boolean onTouchEvent(MotionEvent event) {\n boolean retVal = mScaleGestureDetector.onTouchEvent(event);\n retVal = mGestureDetector.onTouchEvent(event) || retVal;\n final int action = MotionEventCompat.getActionMasked(event);\n if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANC... |
"public TestErrorEvent execute() throws JBException {\n IParamDescriptionPO desc = m_currentCap.getParameterForUniqueId(\"String_Node_Str\");\n try {\n ITDManager tdManager = m_externalTestDataBP.getExternalCheckedTDManager(m_currentCap);\n ITestDataPO date = tdManager.getCell(0, desc);\n Str... |
"public static void main(String[] args) {\n String configFile = null;\n String subscriptionFolderPath = null;\n try {\n configFile = args[0];\n subscriptionFolderPath = args[1];\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Nod... |
"public void testRemoteServiceAdapters() throws Exception {\n final IRemoteServiceContainerAdapter[] adapters = getRemoteServiceAdapters();\n assertNotNull(adapters);\n for (int i = 0; i < adapters.length; i++) assertNotNull(adapters[i]);\n}\n"
|
"public boolean offer(ResultFile resultFile) {\n if (resultFile != null) {\n if (maxFiles > 0 && fileQueue.size() >= maxFiles) {\n poll();\n }\n return fileQueue.offer(resultFile);\n } else\n return false;\n}\n"
|
"public static Kernel1D_F64 wrap(double[] data, int width) {\n Kernel1D_F64 ret = new Kernel1D_F64();\n ret.data = data;\n ret.width = width;\n ret.offset = offset;\n return ret;\n}\n"
|
"public IType resolveType(ITypeVariable typeVar, IType concrete) {\n return concrete.isArrayType() ? this.type.resolveType(typeVar, concrete.getElementType()) : Types.ANY;\n}\n"
|
"private void writeGwtFields(IndentedWriter niceWriter) throws UnableToCompleteException {\n Collection<OwnerField> ownerFields = getOwnerClass().getUiFields();\n for (OwnerField ownerField : ownerFields) {\n if (ownerField.isProvided()) {\n String fieldName = ownerField.getName();\n ... |
"public Object executeMethod(String methodName, JSONObject args) throws Exception {\n if (\"String_Node_Str\".equals(methodName)) {\n IFoundSetInternal foundset = FoundsetReferencePropertyType.INSTANCE.fromJSON(args, null, null, null, null);\n String sort = args.optString(\"String_Node_Str\");\n ... |
"public void testValidity() throws Exception {\n DefaultJAXWSValidator validator = new DefaultJAXWSValidator();\n TypeDeclaration declaration = getDeclaration(\"String_Node_Str\");\n assertFalse(validator.isEndpointInterface(declaration));\n try {\n new EndpointInterface(declaration, validator);\n ... |
"public void map(Chunk chk, NewChunk nc) {\n int chunkSize = chk.len();\n long chunkStart = chk.start();\n ValueString vstr = new ValueString();\n if (chunkStart > R.end() || (chunkStart + chunkSize) < R.start()) {\n return;\n }\n for (int r = 0; r < chunkSize; r++) {\n if (!R.contains(c... |
"public void writeGet(MethodWriter writer, IValue instance, int lineNumber) throws BytecodeException {\n if (instance != null) {\n instance.writeExpression(writer, this.theClass.getType());\n }\n if (this.theClass.hasModifier(Modifiers.ANNOTATION)) {\n StringBuilder desc = new StringBuilder(\"Str... |
"public void start(Stage stage) {\n this.testButton = new Button();\n final AnchorPane testPane = new AnchorPane(this.testButton);\n stage.setScene(new Scene(testPane, WIDTH_PANE, HEIGHT_PANE));\n stage.show();\n}\n"
|
"public void forceTTLExpire() throws Exception {\n healthService.register(\"String_Node_Str\", 1, TimeUnit.SECONDS);\n healthService.checkIn(\"String_Node_Str\", HealthStatus.PASS);\n countDownLatch = new CountDownLatch(1);\n result = new AtomicBoolean();\n healthService.findAllNodes(names -> {\n ... |
"public void stop() {\n try {\n this.context.unregisterReceiver(broadcastReceiver);\n } catch (IllegalArgumentException e) {\n Timber.w(e, \"String_Node_Str\");\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n resetNetworkBindings((ConnectivityManager.NetworkCallback... |
"public void attributeTypeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute == values) {\n Director director = getDirector();\n if (director != null) {\n director.invalidateResolvedTypes();\n }\n try {\n ArrayToken valuesArray = (ArrayToken... |
"public void removeAllLimitLines() {\n mLimitLines.clear();\n}\n"
|
"private void renderArch(GL2 gl) {\n gl.glColor3f(1, 0, 0);\n gl.glColor4f(0.5f, 0.5f, 0.5f, 1f);\n gl.glBegin(GL2.GL_POLYGON);\n gl.glVertex3f(0, 0, 0f);\n gl.glVertex3f(0, archBottomY, 0f);\n gl.glVertex3f(sideArchThickness, archBottomY, 0f);\n gl.glVertex3f(sideArchThickness, 0, 0f);\n gl.glE... |
"protected boolean resolveEnvironmentVariables(Map<String, String> envVariables) {\n List<EnvironmentVariable> vars = serviceCommand.getEnvironmentVariables();\n boolean shouldPrompt = false;\n if (vars != null) {\n for (EnvironmentVariable var : vars) {\n String valueVar = EnvironmentVariabl... |
"public boolean isCompleted() {\n return totalRecordsCount == totalProcessedRecordsCount.get();\n}\n"
|
"private void updateNamedRanges(XSSFWorkbook wb, PtgShifter shifter) {\n XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb);\n for (int i = 0; i < wb.getNumberOfNames(); i++) {\n XSSFName name = wb.getNameAt(i);\n String formula = name.getRefersToFormula();\n int sheetIndex = name... |
"private void addDevice(String deviceId) throws IoTFCReSTException {\n try {\n String deviceToBeAdded = \"String_Node_Str\" + deviceId + \"String_Node_Str\";\n JsonParser parser = new JsonParser();\n JsonElement input = parser.parse(deviceToBeAdded);\n JsonObject response = this.gwClient.... |
"private AnnotationSet findLinkGroupIntervals(List<FabricLink> linkSet, BTProgressMonitor monitor) throws AsynchExitRequestException {\n LoopReporter lr = new LoopReporter(linkSet.size(), 20, monitor, 0, .25, \"String_Node_Str\");\n AnnotationSet annots = new AnnotationSet();\n int startIdx = 0;\n String cu... |
"public void testArrayLiteralUsedGenericallyDoesntCrash() {\n checkNoWarnings(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
|
"public int run() throws Exception {\n log.info(\"String_Node_Str\");\n long start = System.currentTimeMillis();\n try {\n setUp(ModelStep.VARSELECT);\n if (isToReset) {\n resetAllFinalSelect();\n } else {\n String alg = super.getModelConfig().getTrain().getAlgorithm(... |
"private void update(PlayerTablistHandler tablistHandler) {\n if (tablistHandler.getPlayer().getServer() != null) {\n if (BungeeTabListPlus.getInstance().getConfigManager().getMainConfig().excludeServers.contains(tablistHandler.getPlayer().getServer().getInfo().getName()) || tablistHandler.isExcluded()) {\n ... |
"public void setBaby(boolean flag) {\n if (flag) {\n this.datawatcher.watch(12, new Integer(-24000));\n } else {\n this.datawatcher.watch(12, 0);\n }\n ((MyMooshroom) myPet).isBaby = flag;\n}\n"
|
"public void append(int pointerId, ResizableIntArray times, ResizableIntArray xCoordinates, ResizableIntArray yCoordinates, int startPos, int length) {\n if (length == 0) {\n return;\n }\n mXCoordinates.append(xCoordinates, startPos, length);\n mYCoordinates.append(yCoordinates, startPos, length);\n ... |
"public ArrayList<DownloadLink> decryptIt(CryptedLink param, ProgressController progress) throws Exception {\n try {\n progress.getBroadcaster().addListener(this);\n } catch (Throwable e) {\n }\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();\n String parameter = param.toS... |
"public int getFeatureIndex(int mouseX, int mouseY) {\n Feature[] features = tile.features();\n for (int ii = features.length - 1; ii >= 0; ii--) {\n if (features[ii].contains(mouseX, mouseY, orient)) {\n return ii;\n }\n }\n Log.warning(\"String_Node_Str\", \"String_Node_Str\", thi... |
"private void lsAsync() {\n try {\n final AbstractFile[] children = file.ls(cache.getFilter());\n Arrays.sort(children, cache.getSort());\n if (getCachedIcon() == null) {\n setCachedIcon(FileIcons.getFileIcon(getProxiedFile()));\n }\n Icon[] icons = new Icon[children.len... |
"public void onNavDrawerOpened() {\n if (mShowAppNameWhenDrawerOpened) {\n getSupportActionBar().setTitle(R.string.app_name);\n }\n}\n"
|
"public void testResumeCreateClusterFailure() throws Exception {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n BddErrorMessage errorMsg = new BddErrorMessage();\n errorMsg.setMessage(\"String_Node_Str\");\n ObjectMapper mapper = new ObjectMapper();\n buildReqRespWithoutReqBody(\"String_N... |
"public void onBrowserEvent(Event event) {\n if (DOM.eventGetType(event) == Event.ONCLICK) {\n Element target = DOM.eventGetTarget(event);\n int index = findDividerIndex(target);\n if (index != -1) {\n showStack(index);\n }\n }\n}\n"
|
"public void run() {\n int readWriteDataSizeInFrames = 750;\n int jsBufferSizeOverReadWriteSize = 8;\n TargetDataLine targetLine;\n int sampleSizeInBitsInt = 16;\n int channels = 1;\n int frameSizeInBits = sampleSizeInBitsInt;\n double frameRate = sampleRate;\n boolean signed = true;\n boolea... |
"public boolean execute(ExecutionContext executionContext) throws ProcessExecutionException, InterruptedException {\n log.info(\"String_Node_Str\");\n Args args = this.getArgs();\n if (!args.getOutputDir().exists()) {\n args.getOutputDir().mkdirs();\n }\n Set<AssemblyAnalyser> requestedServices = ... |
"private Bundle getJerseyServerBundle(BundleContext bc) {\n for (Bundle b : bc.getBundles()) {\n final String symbolicName = b.getSymbolicName();\n if ((symbolicName != null) && symbolicName.endsWith(\"String_Node_Str\")) {\n return b;\n }\n }\n return null;\n}\n"
|
"private boolean isDefaultChoice(SelectionChoice choice) {\n String choiceValue = choice.getValue();\n String defaultValue = convertToStandardFormat(this.defaultValue);\n if (canBeNull() && choiceValue == null && defaultValue == null) {\n return true;\n }\n}\n"
|
"public static <T> List<T> sortPageAll(int pageNo, int numPerPage, Comparator<T> comparator, Collection<T>... colls) {\n final List<T> result = new ArrayList<>();\n for (Collection<T> coll : colls) {\n result.addAll(coll);\n }\n Collections.sort(result, comparator);\n int resultSize = result.size(... |
"private final List<ProviderInfo> generateApplicationProvidersLocked(ProcessRecord app) {\n List<ProviderInfo> providers = null;\n try {\n providers = AppGlobals.getPackageManager().queryContentProviders(app.processName, app.uid, STOCK_PM_FLAGS | PackageManager.GET_URI_PERMISSION_PATTERNS);\n } catch (R... |
"public void onSendComplete(SocketChannel channel, TCPWriteRequest writeRequest) {\n LOG.log(Level.INFO, \"String_Node_Str\");\n writeRequest.setComplete(true);\n if (writeRequest.getEdge() == -1) {\n ByteBuffer buffer = writeRequest.getByteBuffer();\n buffer.clear();\n helloSendByteBuffer... |
"public void start(BundleContext context) throws Exception {\n super.start(context);\n configureLogs(loadPreferences());\n}\n"
|
"public void toString(StringBuffer buffer, int tabCount) {\n buffer.append(getType() + \"String_Node_Str\" + this.clazz.getTypeName() + \"String_Node_Str\");\n signature.toString(buffer, 0);\n buffer.append(\"String_Node_Str\" + Cpp.newline);\n appendBody(buffer, body, tabCount + 1);\n buffer.append(Cpp.... |
"public boolean shouldUpdate(long traktId, String lastUpdated) {\n if (lastUpdated == null)\n return true;\n Cursor movie = null;\n try {\n movie = resolver.query(Movies.MOVIES, new String[] { MovieColumns.WATCHED, MovieColumns.IN_COLLECTION, MovieColumns.IN_WATCHLIST }, MovieColumns.TRAKT_ID + \... |
"protected void doRead(Buffer buffer) throws IOException {\n long millis = 0;\n VideoFormat format;\n format = (VideoFormat) buffer.getFormat();\n if (format == null) {\n format = (VideoFormat) getFormat();\n if (format != null)\n buffer.setFormat(format);\n }\n Dimension size... |
"private String generatePropertyValueFromConcatQuery(String targetPropertyRef, List<NodeInstance> nodeInstance) {\n String testQuery = targetPropertyRef.trim();\n if (!testQuery.endsWith(\"String_Node_Str\")) {\n return null;\n }\n int functionOpeningBracket = testQuery.indexOf(\"String_Node_Str\");\... |
"private ASTNode wrapAggregate(CubeQueryContext cubeql, ASTNode node) throws LensException {\n String tabname = null;\n String colname;\n if (node.getToken().getType() == HiveParser.TOK_TABLE_OR_COL) {\n colname = node.getChild(0).getText();\n } else {\n ASTNode tabident = HQLParser.findNodeBy... |
"public CollectionResult<Set<URI>> findCycleContainingComponents() throws OpenRDFException {\n if (hierarchyGraph == null) {\n TupleQueryResult broaderResult = findTriples(HierarchyStyle.BROADER);\n TupleQueryResult narrowerResult = findTriples(HierarchyStyle.NARROWER);\n createGraph(broaderResu... |
"public double predict(double[] data) throws MLModelBuilderException {\n Predictor predictor = new Predictor(modelId, mlModel, Arrays.asList(data));\n List<?> predictions = predictor.predict();\n return predictions.get(0).toString();\n}\n"
|
"protected final void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String command = req.getPathInfo();\n try {\n if (!handle(command, req, resp)) {\n resp.sendError(HttpServletResponse.SC_BAD_REQUEST);\n }\n } catch (Exception error... |
"protected static MessageNode parseMessage(ScribbleParser parser, CommonTree ct) {\n AntlrNodeType type = ScribParserUtil.getAntlrNodeType(ct);\n if (type == AntlrNodeType.MESSAGESIGNATURE) {\n return (MessageSigNode) parser.parse(ct);\n } else {\n return (ct.getChildCount() == 1) ? AntlrAmbigNam... |
"public boolean validateDeploymentPolicy(String cartridgeType, Partition[] partitions) throws InvalidPartitionException, InvalidCartridgeTypeException {\n Map<String, IaasProvider> partitionToIaasProviders = new ConcurrentHashMap<String, IaasProvider>();\n Cartridge cartridge = dataHolder.getCartridge(cartridgeTy... |
"public void check_Query_SQL() {\n SqlManager sqls = new FileSqlManager(PATH);\n Sql sql = sqls.create(\"String_Node_Str\");\n assertTrue(sql.toString().toUpperCase().startsWith(\"String_Node_Str\"));\n}\n"
|
"private void mapTreeRootNodes(List<Tree> trees) {\n for (Tree tree : trees) {\n Transaction tx = gdb.beginTx();\n TreeNode root = tree.getRoot();\n TLongBipartition rootBipart = getGraphBipartForTreeNode(root, tree);\n HashSet<Node> graphNodes = new HashSet<Node>();\n for (TLongBi... |
"protected void setupLayoutOptions() {\n if (options != null) {\n Object fitToPage = options.get(IPDFRenderOption.FIT_TO_PAGE);\n if (fitToPage != null && fitToPage instanceof Boolean) {\n if (((Boolean) fitToPage).booleanValue()) {\n context.setFitToPage(true);\n }... |
"public BaseFont createFont(String familyName, int fontStyle) {\n String key = familyName + fontStyle;\n synchronized (baseFonts) {\n BaseFont font = (BaseFont) baseFonts.get(key);\n if (font == null) {\n try {\n String fontEncoding = (String) fontEncodings.get(familyName);... |
"public synchronized void clear() {\n mAddIndex = 0;\n mGetIndex = 0;\n}\n"
|
"public void closeSession(String transportId) {\n ServerSession serverSession = sessionsManager.getByTransportId(transportId);\n if (serverSession != null) {\n serverSession.closeNativeSession(\"String_Node_Str\");\n } else {\n log.warn(\"String_Node_Str\");\n }\n}\n"
|
"public void run() {\n Context context;\n ItemIterator iitems = null;\n try {\n context = new Context();\n context.setIgnoreAuthorization(true);\n iitems = new ItemIterator(context, items);\n String fileName = assembleFileName(\"String_Node_Str\", eperson, new Date());\n Stri... |
"static private boolean contains(String formats, String format) {\n int index = formats.indexOf(format);\n if (index != -1) {\n if (index > 0) {\n if (formats.charAt(index - 1) != ',') {\n return false;\n }\n }\n int lastIndex = index + format.length();\n ... |
"protected void drawText() {\n drawString(StringHelper.localize(\"String_Node_Str\"), 5, GRAY);\n drawString(StringHelper.localize(\"String_Node_Str\") + \"String_Node_Str\" + StringHelper.getScaledNumber(chopper.getRange()), infoScreenX, infoScreenW, infroScreenY3, (chopper.hasUpgrade(UpgradeType.WITHER)) ? GREE... |
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeCollectionMapping.getReferenceDescriptor();\n if (xmlDescriptor == null) {\n xmlDescriptor = findReferenceDescriptor(xPa... |
"private Set<Long> addPredicateQuantity(String theParamName, Set<Long> thePids, List<? extends IQueryParameterType> theList) {\n if (theList == null || theList.isEmpty()) {\n return thePids;\n }\n if (Boolean.TRUE.equals(theList.get(0).getMissing())) {\n return addPredicateParamMissing(thePids, \... |
"public void onBlockBreak(BlockBreakEvent event) {\n if (event.isCancelled()) {\n return;\n }\n for (DropEvent dropEvent : plugin.getDropEventFactory().createEvents(event)) {\n Bukkit.getPluginManager().callEvent(dropEvent);\n }\n}\n"
|
"public static void launchCamera(Activity activity, LaunchCameraCallback callback) {\n String state = android.os.Environment.getExternalStorageState();\n if (!state.equals(android.os.Environment.MEDIA_MOUNTED)) {\n showSDCardRequiredDialog(activity);\n } else {\n Intent intent = prepareLaunchCame... |
"private boolean lesser(Object a, Object b, boolean allowEq) {\n if (a == null || b == null) {\n return false;\n }\n if (a instanceof Long) {\n if (allowEq) {\n return (Long.valueOf(a.toString())).longValue() <= (Long.valueOf(b.toString())).longValue();\n }\n return (Long... |
"private void load() {\n scripts.clear();\n if (connected) {\n final List<ScriptDefinition> net = SRC_NETWORK.list();\n if (net != null) {\n scripts.addAll(net);\n }\n }\n scripts.addAll(SRC_PRECOMPILED.list());\n scripts.addAll(SRC_SOURCES.list());\n Collections.sort(s... |
"public static void extractJar(String jarEntryName, JarFile earFile, File jarFile) throws ZipFileException {\n try {\n File parent = jarFile.getParentFile();\n if (!parent.exists()) {\n if (!parent.mkdirs()) {\n throw new ZipFileException(\"String_Node_Str\" + parent);\n ... |
"public Expr tupleProbabilityColumn() {\n return new ConstantExpr(vc, 1.0);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.