content
stringlengths
40
137k
"private void loopSession() {\n Screen s = getNextScreen();\n while (s != null) {\n s.init(mPlatform, mSession, mSandbox);\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n System.out.println(\"Stri...
"public boolean setFrom(ConnectorAnchor from) {\n boolean ret = super.setFrom(from);\n if (from == null) {\n synchronized (paramAnchors) {\n paramAnchors.remove(info);\n updateParamAnchors();\n }\n }\n return ret;\n}\n"
"public static void segment(Integer segmentId) throws JsonGenerationException, JsonMappingException, IOException {\n final Edge e = graph.getGraph().getEdgeById(segmentId);\n if (e != null) {\n final OsmSegment osmSegment = new OsmSegment(segmentId, e.getGeometry(), e.toString());\n renderJSON(jsonM...
"void calculateSimilarity() {\n for (int vaIndex = group.getStartIndex(); vaIndex < group.getStartIndex() + group.getSize(); vaIndex++) {\n Integer id = va1.get(vaIndex);\n if (va1.getIdType() != va2.getIdType()) {\n IDMappingManager idMappingManager = IDMappingManagerRegistry.get().getIDMap...
"private void workOnChangeSet(IndexWriter indexWriter, Repository repository, SVNLogEntry logEntry) {\n Set changedPathsSet = logEntry.getChangedPaths().keySet();\n TagBranchRecognition tbr = new TagBranchRecognition(repository);\n TagBranch res = null;\n if (changedPathsSet.size() == 1) {\n res = tb...
"private boolean checkSize() {\n if (this.changeSizeNeeded) {\n return changeSize();\n }\n}\n"
"public ConstraintsDisabler createConstraintsDisabler() {\n return new DefaultConstraintsDisabler(getDbSupports());\n}\n"
"public void call() {\n putItem(item, null);\n}\n"
"public boolean dumpHistory(PrintWriter pw, String prefix, int filterUid) {\n final int size = mEventIndices.size();\n if (size <= 0) {\n return false;\n }\n pw.println(\"String_Node_Str\");\n long now = SystemClock.elapsedRealtime();\n for (int i = EVENT_BUFFER_SIZE - 1; i >= 0; i--) {\n ...
"public Text getTextElement() {\n Field textField = LinqUtils.first(getClass().getDeclaredFields(), f -> (f.getType() == Text.class) || (f.getType() == IText.class));\n if (textField == null)\n throw JDISettings.exception(\"String_Node_Str\", toString());\n return (Text) getValueField(textField, element...
"public BingRule fulfilledBingRule(Event event) {\n if (null == event) {\n return null;\n }\n if (!isReady) {\n return null;\n }\n if ((null != event.userId) && (event.userId.equals(mMyUserId))) {\n return null;\n }\n if (mRules != null) {\n for (BingRule bingRule : mRul...
"public String getText(Mode mode) {\n if (staticText != null && !staticText.isEmpty()) {\n return staticText;\n }\n Target target = mode.getTargets().get(0);\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n if (target.getNumberOfTargets() == 0) {\n sb.append(...
"protected Scan applyScannerSettings(Scan scanner, ByteArrayId primaryId, ByteArrayId secondaryId) {\n Scan scan = super.applyScannerSettings(scanner, primaryId, secondaryId);\n if (primaryId != null) {\n ByteBuffer buf = ByteBuffer.allocate(primaryId.getBytes().length + 1);\n buf.put(primaryId.getB...
"public IdentifiedDataSerializable createNew(Integer arg) {\n return new RequestPartitionMapping();\n}\n"
"private void calculatePriceSellfromPST() {\n if (!reportlock) {\n reportlock = true;\n Double dPriceSellTax = readCurrency(m_jPriceSellTax.getText());\n if (dPriceSellTax == null) {\n setPriceSell(null);\n } else {\n double dTaxRate = taxeslogic.getTaxRate((TaxCateg...
"public final int matchDataAuthority(Uri data) {\n if (mDataAuthorities == null || data == null) {\n return NO_MATCH_DATA;\n }\n final int numDataAuthorities = mDataAuthorities.size();\n for (int i = 0; i < numDataAuthorities; i++) {\n final AuthorityEntry ae = mDataAuthorities.get(i);\n ...
"public void setSelected(int selected) {\n this.selectedImage = selected;\n this.isUndistorted = false;\n if (origMS == null) {\n BufferedImage image = images.get(selected);\n origMS = ConvertBufferedImage.convertFromMulti(image, null, ImageFloat32.class);\n correctedMS = ConvertBufferedIm...
"public void writeStatement(MethodWriter writer) throws BytecodeException {\n org.objectweb.asm.Label startLabel = this.startLabel.target = new org.objectweb.asm.Label();\n org.objectweb.asm.Label updateLabel = this.updateLabel.target = new org.objectweb.asm.Label();\n org.objectweb.asm.Label endLabel = this.e...
"private void extactHandlersFromArgumentList(MethodAccess method, Object body, List<Object> argsList) {\n if (body instanceof List) {\n List<Object> list = (List<Object>) body;\n extractHandlersFromArgumentListBodyIsList(method, argsList, list);\n } else if (body instanceof Object[]) {\n extr...
"public void adjustTargets(Ability ability, Game game) {\n if (ability.getOriginalId().equals(ability2Id)) {\n int cmc = 0;\n for (Cost cost : ability.getCosts()) {\n if (cost instanceof PayVariableLoyaltyCost) {\n cmc = ((PayVariableLoyaltyCost) cost).getAmount();\n ...
"private void checkVar(Var v, List<Reference> references) {\n blocksWithDeclarations.clear();\n boolean isDeclaredInScope = false;\n boolean isUnhoistedNamedFunction = false;\n boolean hasErrors = false;\n boolean isRead = false;\n Reference hoistedFn = null;\n Reference unusedAssignment = null;\n ...
"protected ResourceHandle createSingleResource(ResourceAllocator resourceAllocator) throws PoolingException {\n ResourceHandle resourceHandle;\n int count = 0;\n long startTime = 0;\n while (true) {\n try {\n count++;\n startTime = System.currentTimeMillis();\n resour...
"public void generateReport(Date fromDate, Date toDate, String criteria, String groupBy, String type) {\n String sessionId = clientFactory.getLocalSession().getSession().getId();\n final String reportUrl = \"String_Node_Str\" + \"String_Node_Str\" + sessionId + \"String_Node_Str\" + type + \"String_Node_Str\" + \...
"private static Track createTrack(JSONObject trackJson) {\n Track track = new Track();\n track.setAlbum(createSimpleAlbum(trackJson.getJSONObject(\"String_Node_Str\")));\n track.setArtists(createSimpleArtists(trackJson.getJSONArray(\"String_Node_Str\")));\n track.setAvailableMarkets(createAvailableMarkets(t...
"public ArrayList<TreeComposite> getChildExemplars() {\n ArrayList<TreeComposite> exemplars = new ArrayList<TreeComposite>();\n boolean childExists = false;\n for (EReference exemplar : ecoreNodeMetaData.getEAllReferences()) {\n if (\"String_Node_Str\".equals(exemplar.getEReferenceType().getName())) {\n...
"private void approveProcessOutput(List<UtxoOutput> outputs, Transaction tx, Set<String> addressSet) {\n for (int i = 0; i < outputs.size(); i++) {\n UtxoOutput output = outputs.get(i);\n if (tx instanceof LockNulsTransaction && i == 0 && output.getLockTime() == 0) {\n output.setStatus(OutPu...
"public int[] nodeToFileId(int nodeId) {\n if (nodeId < 1 || nodeId > maxId)\n return null;\n int power = Math.max(1, 0x1 << (log2Ceil(maxId) - 1));\n if (nodeId == 1)\n return new int[] { 0, maxId - power };\n int[] ret = new int[2];\n int times = 0;\n while (nodeId < power) {\n ...
"private void initConfigEntries() {\n ConfigEntry cfg;\n config.addEntry(cfg = new ConfigEntry(ConfigContainer.TYPE_TEXTFIELD, subConfig, PARAM_NICK, JDL.L(\"String_Node_Str\", \"String_Node_Str\")));\n config.addEntry(cfg = new ConfigEntry(ConfigContainer.TYPE_TEXTAREA, subConfig, PARAM_PERFORM, JDL.L(\"Strin...
"public ARXResult anonymize(final Data data, ARXConfiguration config) throws IOException {\n final long time = System.currentTimeMillis();\n if (data == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (config.containsCriterion(LDiversity.class) || config.containsCriterion(TClo...
"public void setAdapterClass(JavaClass adapterCls) {\n adapterClass = adapterCls;\n valueType = helper.getJavaClass(Object.class);\n for (Iterator<JavaMethod> methodIt = adapterClass.getDeclaredMethods().iterator(); methodIt.hasNext(); ) {\n JavaMethod method = methodIt.next();\n if (method.getNa...
"public void init() {\n ConnectionSocketFactory plainsf = new PlainConnectionSocketFactory();\n SSLConnectionSocketFactory sslsf = initSSLConnectionSocketFactory();\n Registry<ConnectionSocketFactory> r = RegistryBuilder.<ConnectionSocketFactory>create().register(\"String_Node_Str\", plainsf).register(\"String...
"public void load(GuaguaWritableAdapter<LongWritable> currentKey, GuaguaWritableAdapter<Tuple> currentValue, WorkerContext<NNParams, NNParams> workerContext) {\n this.initFieldList();\n super.count += 1;\n if ((super.count) % 100000 == 0) {\n LOG.info(\"String_Node_Str\", super.count);\n }\n doubl...
"private static void addKerberos2Client(WebClient client, HCatalogConnection connection) throws Exception {\n HadoopClusterConnection hcConnection = HCRepositoryUtil.getRelativeHadoopClusterConnection(connection);\n if (hcConnection != null) {\n if (hcConnection.isEnableKerberos()) {\n KerberosA...
"private void console(MessageReceiver caller, String[] args) {\n if (args.length < 3) {\n Canary.help().getHelp(caller, \"String_Node_Str\");\n return;\n }\n int amount = 1;\n if (args[args.length - 2].matches(\"String_Node_Str\")) {\n amount = Integer.parseInt(args[args.length - 2]);\n...
"private void createPreviewArea(Composite parent) {\n Composite cmpPreview = ChartUIUtil.createCompositeWrapper(parent);\n {\n GridData gridData = new GridData(GridData.FILL_BOTH);\n gridData.widthHint = CENTER_WIDTH_HINT;\n gridData.heightHint = 200;\n cmpPreview.setLayoutData(gridDat...
"public CtClass getType() throws NotFoundException {\n ConstPool cp = getConstPool();\n int pos = currentPos;\n int index = iterator.u16bitAt(pos + 1);\n String name = cp.getClassInfo(index);\n return thisClass.getClassPool().getCtClass(name);\n}\n"
"private void loadTooltip(final ExtendedTooltip tip) {\n Iterator<Contact> i = metaContact.getContacts();\n MetaContactPhoneUtil contactPhoneUtil = MetaContactPhoneUtil.getPhoneUtil(metaContact);\n String statusMessage = null;\n Contact protocolContact;\n boolean isLoading = false;\n while (i.hasNext(...
"public void unloadAll() {\n for (Resource resource : resources) resource.unload();\n}\n"
"public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) {\n if (mOutsetBottom != null) {\n final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics();\n int bottom = (int) mOutsetBottom.getDimension(metrics);\n WindowInsets newInsets = insets.replaceSystemWindowIn...
"private void updateChildren() {\n mCurrentStackScrollState.setScrollY(mOwnScrollY);\n mStackScrollAlgorithm.getStackScrollState(mCurrentStackScrollState);\n if (!isCurrentlyAnimating() && !mChildHierarchyDirty) {\n applyCurrentState();\n if (mListener != null) {\n mListener.onChildLoc...
"public AbstractRecord buildIntoNestedRow(AbstractRecord row, Object originalObject, Object object, AbstractSession session, XMLDescriptor refDesc, XMLField xmlField, boolean wasXMLRoot) {\n XMLRecord record = (XMLRecord) row;\n record.setSession(session);\n XMLMarshaller marshaller = record.getMarshaller();\n...
"protected void setup() {\n dbAccessor = new DatabaseAccessor();\n expectedException = org.eclipse.persistence.exceptions.DatabaseException.databaseAccessorConnectionIsNull(dbAccessor, null);\n}\n"
"public void testTagBatchingInfo() {\n ArrayList<Data> list1 = Utils.fakeCollection(5);\n ArrayList<Data> list2 = new ArrayList<>(list1);\n TagBatchingStrategy.TagBatch tagBatchInfo = new TagBatchingStrategy.TagBatch(AD_TAG, new SizeBatchingStrategy.SizeBatch<>(list1, 5));\n TagBatchingStrategy.TagBatch tag...
"public ShortPoint2D findBestConstructionPosition(AiStatistics aiStatistics, AbstractConstructionMarkableMap constructionMap, byte playerId) {\n List<ScoredConstructionPosition> scoredConstructionPositions = new ArrayList<>();\n for (ShortPoint2D point : aiStatistics.getLandForPlayer(playerId)) {\n if (con...
"public Trace disableSampling() {\n return traceFactory.disableSampling();\n}\n"
"<T> BindingImpl<T> createBindingForInjectableType(Class<T> type, Scope scope, Object source, boolean isJit) {\n if (Modifier.isAbstract(type.getModifiers())) {\n return null;\n }\n if (Classes.isInnerClass(type)) {\n errorHandler.handle(SourceProviders.defaultSource(), ErrorMessages.CANNOT_INJEC...
"private boolean teleportTo(double x, double y, double z, boolean ignoreChecks) {\n if (prevTeleportAttempt != null)\n return prevTeleportAttempt.booleanValue();\n else if (!(prevTeleportAttempt = Boolean.valueOf(canTeleport())))\n return false;\n double oldX = posX, oldY = posY, oldZ = posZ;\n ...
"private void updateCubeSegmentInfoOnSucceed(JobInstance jobInstance, JobEngineConfig engineConfig) throws CubeIntegrityException, IOException {\n if (jobInstance.getStatus().equals(JobStatusEnum.FINISHED)) {\n validate(jobInstance);\n log.info(\"String_Node_Str\" + jobInstance.getRelatedSegment() + \"...
"public int[] getTree(String attribute) {\n final int[][] data = dataAnalyzed.getArray();\n final int index = indexesSensitive.get(attribute);\n final int[][] hierarchy = hierarchiesSensitive.get(attribute).map;\n final int totalElementsP = subset == null ? data.length : subsetSize;\n final int height = ...
"private long getVersion() {\n if (!transaction.hasTable(\"String_Node_Str\")) {\n return UNVERSIONED;\n }\n return metadataTable.getLong(0, 0);\n}\n"
"public Number remove(Keyword recordName) {\n Record head = get(recordName).map(select(Keywords.keyword(\"String_Node_Str\", String.class))).head();\n Number result = Numbers.valueOf(head.get(Keywords.keyword(\"String_Node_Str\", String.class)));\n List<Keyword<?>> undefine = undefine(recordName);\n define(...
"static JsonNode checkDouble(JsonNode parent, String key) throws CloudFormationException {\n JsonNode jsonNode = parent.get(key);\n if (jsonNode != null && !jsonNode.isTextual()) {\n throw error(errorMsg(key, \"String_Node_Str\"));\n }\n try {\n if (jsonNode != null) {\n Double.pars...
"public void renderReport(OutputStream out, HttpServletRequest request, IReportDocument reportDocument, String format, long pageNumber, String pageRange, boolean masterPage, boolean svgFlag, List activeIds, Locale locale, boolean rtl, String iServletPath) throws RemoteException {\n if (reportDocument == null) {\n ...
"public boolean containsPoint(Point p) {\n boolean retVal = false;\n Iterator<LineSegment> lineSegIter = this.lineSegIterator();\n while (lineSegIter.hasNext() && !retVal) {\n LineSegment seg = lineSegIter.next();\n retVal = seg.intersectsWithCircle(p, MOUSE_HOT_SPHERE_RADIUS);\n if (logge...
"public int branchForInstance(Instance inst) {\n int instAttIndex = this.attIndex;\n if (inst.isMissing(instAttIndex)) {\n return -1;\n }\n double v = inst.valueInputAttribute(instAttIndex);\n if (v == this.attValue) {\n return this.equalsPassesTest ? 0 : 1;\n }\n return v < this.attV...
"private BundleDescription createBundleDescription(ArtifactDescriptor artifact, State state) throws BundleException {\n Dictionary<String, String> manifest = BundleBridge.convertToDictionary(artifact);\n try {\n URI uri = artifact.getUri();\n String installLocation = \"String_Node_Str\".equals(uri.g...
"public static boolean isSignedInWPComOrHasWPOrgSite(AccountStore accountStore, SiteStore siteStore) {\n return accountStore.hasAccessToken() || siteStore.hasSelfHostedSite();\n}\n"
"protected void composeImmunizationEvaluationInner(ImmunizationEvaluation element) throws IOException {\n composeDomainResourceElements(element);\n if (element.hasIdentifier()) {\n openArray(\"String_Node_Str\");\n for (Identifier e : element.getIdentifier()) composeIdentifier(null, e);\n clo...
"private void filteValues() {\n valueList.removeAll();\n valueList.deselectAll();\n for (Iterator itor = resultList.iterator(); itor.hasNext(); ) {\n String value = (String) itor.next();\n try {\n if (selectedList.indexOf(value) == -1 && value.startsWith(valueEditor.getText()) || value...
"public void visitMROp(MapReduceOper mr) throws VisitorException {\n splan.UDFs.addAll(mr.UDFs);\n updateUDFs(mr.mapPlan);\n new PhyPlanSetter(mr.mapPlan).visit();\n new PhyPlanSetter(mr.reducePlan).visit();\n StormOper mo = getSOp(StormOper.OpType.MAP, getAlias(mr.mapPlan, false));\n mo.mapKeyType = ...
"public void create(NamespaceMeta namespaceMeta) throws IOException, ExploreException, SQLException {\n super.create(namespaceMeta);\n if (NamespaceId.DEFAULT.equals(namespaceMeta.getNamespaceId())) {\n return;\n }\n String hbaseNamespace = tableUtil.getHBaseNamespace(namespaceMeta);\n if (Strings...
"public void saveGameStatus() {\n List<String> status = statusWindow.getGameStatus().getTextContents();\n JFileChooser jfc = new JFileChooser();\n String filename = saveDirectory + \"String_Node_Str\" + savePrefix + \"String_Node_Str\" + saveDateTimeFormat.format(new Date()) + \"String_Node_Str\";\n File pr...
"private int getIndex(int k, int p) {\n if ((k & 1L) != 0) {\n return (k >>> 6 & ((1 << p) - 1));\n } else {\n return (k >>> 1 & ((1 << (p + 1)) - 1));\n }\n}\n"
"protected MaxSizeChecker createNearCacheMaxSizeChecker(EvictionConfig evictionConfig, NearCacheConfig nearCacheConfig, NearCacheContext nearCacheContext) {\n EvictionConfig.MaxSizePolicy maxSizePolicy = evictionConfig.getMaximumSizePolicy();\n if (maxSizePolicy == null) {\n throw new IllegalArgumentExcept...
"public void onSuccess(List<ErrorTimeSlotData> dataRanges) {\n String serviceOpName = selectionContext.getSelection(ObjectType.ServiceName);\n if (selectionContext.getSelection(ObjectType.OperationName) != null) {\n serviceOpName += \"String_Node_Str\" + selectionContext.getSelection(ObjectType.OperationNa...
"protected void doStop() {\n executor.submit(new Runnable() {\n public void run() {\n LOG.debug(\"String_Node_Str\");\n notifyStopped();\n }\n });\n executor.shutdown();\n}\n"
"public void playerMove(PlayerMoveEvent event) {\n Player player = event.getPlayer();\n AutoRefMatch match = plugin.getMatch(player.getWorld());\n if (match == null)\n return;\n AutoRefPlayer apl = match.getPlayer(player);\n if (apl == null)\n return;\n AutoRefTeam team = apl.getTeam();\...
"private void updateCatInfo(Category cat) {\n if (_log.isDebugEnabled())\n _log.debug(\"String_Node_Str\" + cat.getName() + \"String_Node_Str\" + cat.getKey() + \"String_Node_Str\" + cat.getNumArticles());\n Date lut = cat.getLastUpdateTime();\n if (lut != null)\n lut = new Timestamp(lut.getTime(...
"public PaymentVoucher loadSelectedLines(PaymentVoucher paymentVoucher, PaymentVoucher paymentVoucherContext) throws AxelorException {\n LOG.debug(\"String_Node_Str\");\n List<PaymentInvoice> newPiList = Lists.newArrayList();\n if (paymentVoucherContext.getPaymentInvoiceList() != null) {\n List<PaymentI...
"public String toString() {\n String value = SWTUtil.getPrettyString(k) + Resources.getMessage(\"String_Node_Str\");\n if (estimator != null) {\n value += \"String_Node_Str\" + estimator + \"String_Node_Str\" + SWTUtil.getPrettyString(significanceLevel) + \"String_Node_Str\";\n }\n return value;\n}\n...
"private void publishStatus(ProtocolProviderService protocolProvider, int floorStatusValue, int ceilStatusValue) {\n if (!protocolProvider.isRegistered())\n return;\n OperationSetPresence presence = protocolProvider.getOperationSet(OperationSetPresence.class);\n if (presence == null)\n return;\n ...
"public RepositoryItem createRepositoryItem(String id) {\n if (!gridFS.find(id).isEmpty()) {\n throw new DuplicateItemException(id);\n }\n GridFSInputFile dbFile = gridFS.createFile(id);\n dbFile.setId(id);\n return createRepositoryItem(dbFile);\n}\n"
"public static String generateDefaultValueString(Schema schema, String fieldName) {\n if (DIRTY_BYTES_FIELD_NAME.equals(fieldName)) {\n return \"String_Node_Str\" + getNumberOfBytesNeededForDirtyBits(schema) + \"String_Node_Str\";\n } else {\n throw new IllegalArgumentException(fieldName + \"String_...
"public void widgetSelected(SelectionEvent e) {\n if (((Button) e.widget).getSelection()) {\n SessionHandleAdapter.getInstance().getCommandStack().startTrans(Messages.getString(\"String_Node_Str\"));\n for (int i = 0; i < toggleProviders.length; i++) {\n BorderInfomation information = new Bo...
"public void deleteResource(ResourceHandle resourceHandle) {\n try {\n super.deleteResource(resourceHandle);\n } finally {\n if (resourceHandle instanceof AssocWithThreadResourceHandle) {\n synchronized (resourceHandle.lock) {\n ((AssocWithThreadResourceHandle) resourceHand...
"public void download(URL url, File desc) throws Exception {\n TalendLibsServerManager manager = TalendLibsServerManager.getInstance();\n final NexusServerBean talendlibServer = manager.getTalentArtifactServer();\n String mavenUri = url.toExternalForm();\n MavenArtifact parseMvnUrl = MavenUrlHelper.parseMvn...
"public List<DavResource> getResources(String url) throws IOException {\n HttpPropFind propFind = new HttpPropFind(url);\n propFind.setEntity(SardineUtil.getResourcesEntity());\n HttpResponse response = this.client.execute(propFind);\n int statusCode = response.getStatusLine().getStatusCode();\n if (!Sar...
"public static X509Certificate generateEndEntityCert(PublicKey entityKey, PrivateKey caKey, X509Certificate caCert) throws Exception {\n X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();\n certGen.setSerialNumber(BigInteger.valueOf(1));\n certGen.setIssuerDN(PrincipalUtil.getSubjectX509Pri...
"public Cells call(Cells cells) throws Exception {\n Cells cellsOut = new Cells();\n for (ColumnName columnName : selectedCols) {\n Cell cell = cells.getCellByName(columnName.getTableName().getQualifiedName(), columnName.getName());\n cellsOut.add(cell);\n }\n return cellsout;\n}\n"
"private GuiValidityStateIndicator.State currentBiomeIDState() {\n if (generationInfo.getBiomeTypes() != null) {\n return GuiValidityStateIndicator.State.VALID;\n String biomeID = generationInfo.getBiomeID();\n BiomeGenBase[] biomes = BiomeGenBase.getBiomeGenArray();\n for (int i = 0; i < biomes.leng...
"public List<MLHyperParameter> getHyperParametersOfModel(long analysisId) throws DatabaseHandlerException {\n List<MLHyperParameter> hyperParams = new ArrayList<MLHyperParameter>();\n Connection connection = null;\n PreparedStatement getFeatues = null;\n ResultSet result = null;\n try {\n connecti...
"public static Pipeline extractPipeline(String name, AbstractProject<?, ?> firstJob) {\n Map<String, Stage> stages = newLinkedHashMap();\n for (AbstractProject job : getAllDownstreamJobs(firstJob)) {\n PipelineProperty property = (PipelineProperty) job.getProperty(PipelineProperty.class);\n String t...
"private void addDriverPage(TabFolder tabFolder) {\n Composite page = new Composite(tabFolder, SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.marginHeight = 10;\n layout.marginWidth = 10;\n layout.verticalSpacing = 5;\n page.setLayout(layout);\n page.setLayoutData(new GridData(GridData...
"public static String getXML(String filename) throws Exception {\n InputStream in = null;\n try {\n in = new FileInputStream(filename);\n return IOUtils.toString(in);\n } finally {\n if (in != null)\n in.close();\n }\n}\n"
"private void handleEnable(boolean quietMode) {\n mQuietEnable = quietMode;\n synchronized (mConnection) {\n if ((mBluetooth == null) && (!mBinding)) {\n Message timeoutMsg = mHandler.obtainMessage(MESSAGE_TIMEOUT_BIND);\n mHandler.sendMessageDelayed(timeoutMsg, TIMEOUT_BIND_MS);\n ...
"public boolean onMenuItemActionExpand(MenuItem item) {\n isNeedToHideSearchView = true;\n emptyListTextView.setVisibility(View.GONE);\n return true;\n}\n"
"public boolean step() {\n BlockManager blockManager = context.get(BlockManager.class);\n BiomeManager biomeManager = context.get(BiomeManager.class);\n ModuleEnvironment environment = context.get(ModuleManager.class).getEnvironment();\n context.put(WorldGeneratorPluginLibrary.class, new DefaultWorldGenerat...
"private static Iterator getFilterIterator(TabularHierarchyHandle handle) {\n if (handle.getDataSet() != null)\n return handle.filtersIterator();\n else {\n CubeHandle cubeHandle = DataRequestSessionImpl.acquireContainerCube(handle);\n if (cubeHandle != null)\n return cubeHandle.fi...
"public Promise<Collection<ResourceSetDescription>, ResourceException> apply(final Pair<QueryResult, Collection<UmaPolicy>> result) {\n final Set<ResourceSetDescription> filteredResourceSets = new HashSet<>();\n try {\n String realm = context.asContext(RealmContext.class).getResolvedRealm();\n Subje...
"private static DBType parseType(String datatype, int length) {\n if (datatype == null)\n return null;\n try {\n DBDatatype dbDatatype = DBDatatype.valueOf(datatype.toUpperCase());\n length = (length <= 0) ? DBType.NO_LENGTH : length;\n switch(dbDatatype) {\n case CHAR:\n ...
"public void setGMPath(String gmPath) {\n if (gmPath == null)\n throw new NullPointerException(\"String_Node_Str\");\n gmFactory = builder.buildFactory(gmPath);\n}\n"
"private void renderFull() throws IOException, java.sql.SQLException {\n JspWriter out = pageContext.getOut();\n DCValue[] values = item.getDC(Item.ANY, Item.ANY, Item.ANY);\n out.println(\"String_Node_Str\");\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n out.println(\"S...
"private void createSlot(int row) {\n PlayerListItem pli = new PlayerListItem();\n pli.setAction(PlayerListItem.Action.ADD_PLAYER);\n Item item = new Item();\n UUID offlineId = java.util.UUID.nameUUIDFromBytes((\"String_Node_Str\" + getSlotID(row)).getBytes(Charsets.UTF_8));\n item.setUuid(offlineId);\n ...
"public void getWorkflowSchedules(HttpRequest request, HttpResponder responder, String appId, String workflowId) {\n programLifecycleHttpHandler.getWorkflowSchedules(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE, appId, workflowId);\n}\n"
"private void initBcelWorld(IMessageHandler handler) throws IOException {\n List cp = buildConfig.getBootclasspath();\n cp.addAll(buildConfig.getClasspath());\n bcelWorld = new BcelWorld(cp, handler, null);\n bcelWorld.setXnoInline(buildConfig.isXnoInline());\n bcelWorld.setXlazyTjp(buildConfig.isXlazyTj...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n XMLMarshaller marshaller = marshalRecord.getMarshaller();\n value = xmlCompositeCollectionM...
"public CxxPreprocessorInput getCxxPreprocessorInput(final CxxPlatform cxxPlatform, HeaderVisibility headerVisibility) throws NoSuchBuildTargetException {\n CxxPreprocessorInput.Builder builder = CxxPreprocessorInput.builder();\n switch(headerVisibility) {\n case PUBLIC:\n if (hasHeaders(cxxPlat...
"public static PrimaryIndex[] getIndices(final PropertyManagement propertyManagement) {\n PersistableStore store = (PersistableStore) StoreParameters.StoreParam.INPUT_STORE.getHelper().getValue(propertyManagement);\n final IndexStore indexStore = store.getDataStoreOptions().createIndexStore();\n final mil.nga....
"public boolean canExtractItem(int slotIndex, ItemStack itemstack, int side) {\n ISidedInventory inventory = getStructureInventory();\n if (inventory == null)\n return false;\n if (!inventory.canExtractItem(slotIndex, itemstack, side))\n return false;\n return slotIndex != SLOT_QUEEN && slotIn...
"protected void generateObstacles() {\n int randDirection = Utility.getRandom(0, 359);\n asteroids[0] = new Obstacle(1, -400, -400, 2, randDirection);\n asteroids[1] = new Obstacle(1, 800, 800, 2, randDirection);\n asteroids[2] = new Obstacle(1, -1200, 400, 2, randDirection);\n planets[0] = new Obstacle(...