content stringlengths 40 137k |
|---|
"public String parse(String raw, Map<String, Object> bindings) {\n PlaceholderHandler handler = new PlaceholderHandler(bindings);\n TokenParser parser = new TokenParser(\"String_Node_Str\", \"String_Node_Str\", handler);\n String result = parser.parse(raw);\n return result;\n}\n"
|
"private TimeUtil.Unit getStepUnit(DateTime latestStableInChannel) {\n if (lastQueryTime.isBefore(latestStableInChannel.minusHours(2))) {\n return TimeUtil.Unit.HOURS;\n } else if (lastQueryTime.minusMinutes(2).isBefore(latestStableInChannel)) {\n return TimeUtil.Unit.MINUTES;\n }\n return Tim... |
"public void run() {\n try {\n cleanupFinishedQueryStatuses();\n } catch (Throwable e) {\n LOG.error(\"String_Node_Str\", e);\n }\n}\n"
|
"private Response handleQuery(Request req, UriInfo uriInfo, String queryString, List<String> defgraphs, List<String> namedgraphs, String inference) {\n SailRepositoryConnection conn = null;\n try {\n if (queryString == null) {\n throw new MalformedQueryException(\"String_Node_Str\");\n }\... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.map);\n checkHappy = getIntent().getExtras().getInt(\"String_Node_Str\");\n checkSad = getIntent().getExtras().getInt(\"String_Node_Str\");\n goToMyLocation = getIntent().getExtras().getBool... |
"public static QuerySelector parse(Selector selector, OutputStream outputStream, SiddhiAppContext siddhiAppContext, MetaComplexEvent metaComplexEvent, Map<String, Table> tableMap, List<VariableExpressionExecutor> variableExpressionExecutors, String queryName) {\n boolean currentOn = false;\n boolean expiredOn = f... |
"public String toString() {\n return path + \"String_Node_Str\" + volume.getPath() + \"String_Node_Str\" + accessMode.toString();\n}\n"
|
"public void handle(TableColumn.CellEditEvent<Profile.PairLogoRelativeRectangle, String> t) {\n try {\n Profile.PairLogoRelativeRectangle p = ((Profile.PairLogoRelativeRectangle) t.getTableView().getItems().get(t.getTablePosition().getRow()));\n if (t.getNewValue().compareTo(\"String_Node_Str\") != 0) ... |
"private void handleNavigationPathOptions() throws UriParserException, EdmException {\n currentPathSegment = pathSegments.remove(0).getPath();\n checkCount();\n if (uriResult.isCount()) {\n uriResult.setUriType(UriType.URI16);\n } else if (\"String_Node_Str\".equals(currentPathSegment)) {\n if... |
"public Iterable<String> getIgnoreUndefinedSymbolsFlags() {\n return Linkers.iXlinker(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"public void removeWorldAccess(World world) {\n if (!worldAccessMap.containsKey(world)) {\n return;\n }\n net.minecraft.server.v1_10_R1.World nmsWorld = ((CraftWorld) world).getHandle();\n List<IWorldAccess> list = ReflectionHelper.getFieldValue(net.minecraft.server.v1_10_R1.World.class, \"String_Nod... |
"public void initData() {\n super.initData();\n initHierarchy();\n calculateTextures();\n initPosCursorLevel1();\n if (bSkipLevel2 == false) {\n initPosCursorLevel2();\n }\n if (set.getContentTree() != null) {\n bGeneDendrogramActive = true;\n bGeneDendrogramRenderCut = false;\... |
"public static void registerManagedService(String serviceClassName, long timeIntervall, boolean useWhileRoaming) {\n long minTime = 0;\n ContentValues cv = null;\n Cursor c = mContentResolver.query(ManagedService.CONTENT_URI, ManagedService.PROJECTION, ManagedService.SERVICE_CLASS + \"String_Node_Str\" + servi... |
"public static boolean isDirectRerenrence(IBaseExpression expression, List<IBinding> bindings) throws DataException {\n if (!(expression instanceof IScriptExpression))\n return false;\n String expr = ((IScriptExpression) expression).getText();\n if (expr == null)\n return false;\n if (expr.mat... |
"private static boolean start() {\n for (ServiceType tServiceType : SUBSERVICES.keySet()) {\n Service tService = SUBSERVICES.get(tServiceType);\n LOGGER.debug(\"String_Node_Str\" + cServiceNames.get(tServiceType));\n try {\n tService.run();\n } catch (ServiceRunException e) {\n... |
"public IStatus doRun() {\n try {\n TimeMeasure.display = CommonsPlugin.isDebugMode();\n TimeMeasure.displaySteps = CommonsPlugin.isDebugMode();\n TimeMeasure.measureActive = CommonsPlugin.isDebugMode();\n TimeMeasure.begin(\"String_Node_Str\");\n jetFilesCompileFail.clear();\n ... |
"public Object[] getChildren(Object parentElement) {\n TableNode tableNode = (TableNode) parentElement;\n List<TableNode> child = tableNode.getChildren();\n boolean extended = false;\n if (!child.isEmpty()) {\n for (TableNode node : child) {\n if (node.getType() == TableNode.TABLE) {\n ... |
"public Observable<String> importAccountWithMnemonics(String mnemonics, String password, String name) {\n return Observable.create((Subscriber<? super String> e) -> {\n try {\n long timeSeconds = System.currentTimeMillis() / 1000;\n DeterministicSeed seed = new DeterministicSeed(mnemonic... |
"public void caseAssignStmt(AssignStmt stmt) {\n Value lhs = stmt.getLeftOp();\n Value rhs = stmt.getRightOp();\n Type tlhs = null;\n if (lhs instanceof Local)\n tlhs = this.tg.get((Local) lhs);\n else if (lhs instanceof ArrayRef) {\n ArrayRef aref = (ArrayRef) lhs;\n Local base = (L... |
"public static boolean hasErrors(Shell shell) {\n try {\n boolean isPerl = false;\n if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.PERL)) {\n isPerl = true;\n }\n ITalendSynchronizer synchronizer = CorePlugin.getDefault().getCodeGeneratorService().createRoutineSy... |
"protected boolean update(final MetadataScope container, final String value) {\n if (container instanceof DefaultMetadataScope) {\n ((DefaultMetadataScope) container).setName(value != null ? new SimpleInternationalString(value) : null);\n return true;\n }\n return false;\n}\n"
|
"public void run() {\n Rect viewportRect = new Rect(0, 0, 0, 0);\n while (running) {\n while (cache.state != CacheState.START_UPDATE) try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n }\n boolean cont = false;\n synchronized (cache) {\n if (c... |
"public void exec() {\n int i, a, b, c, o, n, cb;\n LValue rkb, rkc, nvarargs, key, val;\n StringBuffer sb;\n LValue i0, step, idx, limit, init, table;\n boolean back, body;\n Proto proto;\n Closure newClosure;\n int[] code = p.code;\n while (true) {\n if (DEBUG)\n Print.pri... |
"void paint(Rectangle bounds, PaintEvent e) {\n GC gc = e.gc;\n gc.setBackground(_colors.getColor(TimeGraphColorScheme.BACKGROUND));\n drawBackground(gc, bounds.x, bounds.y, bounds.width, bounds.height);\n if (bounds.width < 2 || bounds.height < 2 || null == _timeProvider) {\n return;\n }\n _id... |
"public synchronized boolean sendReply(int type) throws IOException {\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n int bytesReceived;\n long id = mListener.getConnectionId();\n if (id == -1) {\n replyHeader.mConnectionID = null;\n } else {\n replyHeader.mConnectionID = ObexH... |
"public static List<IFile> getRepDocLinkFiles(IFile file) {\n List<IFile> linkFiles = new ArrayList<IFile>();\n if (file != null) {\n try {\n IResource[] reportListFiles = ReportUtils.getReportListFiles(file);\n for (IResource res : reportListFiles) {\n IFile linkFile =... |
"public synchronized void unregister() {\n if (!started) {\n return;\n }\n MBeanServer mbs = mBeanServer();\n Set<ObjectName> entries;\n try {\n entries = mbs.queryNames(ObjectNameSpec.getClusterNameFilter(this.name), null);\n for (ObjectName name : entries) {\n if (mbs.is... |
"public void convert(final String path, ExportMode exportMode, final boolean isStatic, final int scriptIndex, final int classIndex, final ABC abc, final Trait trait, final ConstantPool constants, final MethodInfo[] method_info, final Stack<GraphTargetItem> scopeStack, final boolean isStaticInitializer, final List<Strin... |
"final void processNextBroadcast(boolean fromMsg) {\n synchronized (mService) {\n BroadcastRecord r;\n if (DEBUG_BROADCAST)\n Slog.v(TAG, \"String_Node_Str\" + mQueueName + \"String_Node_Str\" + mParallelBroadcasts.size() + \"String_Node_Str\" + mOrderedBroadcasts.size() + \"String_Node_Str\... |
"public void testChainedStyleAndThen() {\n eq(-1 * (RAND_1 / RAND_2), divide.andThen(NEGATIVE).apply(RAND_1, RAND_2).doubleValue());\n}\n"
|
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.app_update_page);\n String[] columns = { InstalledAppDb.COLUMN_ID, InstalledAppDb.COLUMN_CODE, InstalledAppDb.COLUMN_APP_NAME, InstalledAppDb.COLUMN_AUTHOR, InstalledAppDb.COLUMN_VERSION, Installe... |
"public void handleEvent(Event event) {\n if (item != null || (coreItem instanceof AbstractItem)) {\n if (coreItem != null)\n item = (AbstractItem) coreItem;\n int yIncrease = 0;\n if (Main.game.getDialogueFlags().tradePartner != null) {\n yIncrease += 2;\n }\n ... |
"protected CompilerPass getProcessor(Compiler compiler) {\n if (withClosurePass) {\n pass = new ClosurePassAndRenameVars(compiler);\n } else {\n return renameVars = new RenameVars(compiler, prefix, localRenamingOnly, preserveFunctionExpressionNames, generatePseudoNames, shouldShadow, previouslyUsedM... |
"public static String getLocation(String moduleName) throws ConnectorRuntimeException {\n String location = null;\n if (ConnectorsUtil.belongsToSystemRA(moduleName)) {\n location = ConnectorsUtil.getSystemModuleLocation(moduleName);\n } else {\n location = internalGetLocation(moduleName);\n ... |
"private static KeyStore getKeyStore(File keyStore, String keyStorePassword) throws Exception {\n KeyStore ks = KeyStore.getInstance(\"String_Node_Str\");\n InputStream inputStream = new FileInputStream(keyStore);\n try {\n ks.load(inputStream, keyStorePassword.toCharArray());\n } finally {\n ... |
"public String getType() {\n String noteType = queryJSON(\"String_Node_Str\", NOTE_UNKNOWN_TYPE);\n if (noteType.contains(NOTE_ACHIEVEMENT_TYPE)) {\n noteType = NOTE_ACHIEVEMENT_TYPE;\n }\n return noteType;\n}\n"
|
"public Object executeTransform(final Object input) {\n Object joinValue = ((ODocument) ((OIdentifiable) input).getRecord()).field(joinFieldName);\n final Object result = lookup(joinValue, false);\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", joinValue, result);\n if (result == null) {\n ... |
"private Object _resolveLabel(String name, Object container) {\n int dotIndex = name.indexOf('.');\n if (dotIndex >= 0) {\n String subContainerName = name.substring(0, dotIndex);\n if (container instanceof CompositeActor) {\n Object object = ((CompositeActor) container).getEntity(subConta... |
"private Url previewUrl(OpenInBrowserRequest request, VirtualFile virtualFile, GaugeSettingsModel settings) throws IOException, InterruptedException {\n ProcessBuilder builder = new ProcessBuilder(settings.getGaugePath(), Constants.DOCS, Spectacle.NAME, virtualFile.getPath());\n String projectName = request.getPr... |
"public final boolean initialize(String name, String desc) {\n Assert.isNotNull(name, \"String_Node_Str\");\n if (!isInitialized) {\n this.name = name;\n this.description = desc;\n this.hashCode = name.hashCode();\n this.isInitialized = true;\n return true;\n } else\n ... |
"public void setVRegOn(boolean on) {\n if (this.on == on)\n return;\n if (newOn) {\n cpu.scheduleTimeEventMillis(vregEvent, 0.1);\n if (DEBUG)\n log(getName() + \"String_Node_Str\" + cpu.cycles + \"String_Node_Str\" + vregEvent.getTime() + \"String_Node_Str\" + cpu.getTime());\n ... |
"public boolean isThereGridHorizontal() {\n int x = tweetFlow.getTouchElement().getMiddleX();\n int xDiff = Integer.MAX_VALUE;\n for (AbstractElement e : tweetFlow.getmElements().values()) {\n if (e instanceof ServiceRequest) {\n if (tweetFlow.getTouchElement().getId() != e.getId()) {\n ... |
"public void handleMessage(Message message) {\n switch(message.what) {\n case MESSAGE_READ:\n byte[] readBuf = (byte[]) message.obj;\n int datalength = message.arg1;\n String readMessage = new String(readBuf, 0, datalength);\n if (readBuf.length > 0) {\n ... |
"public Set<Integer> getMultiSelectedIndex() {\n if (allSelectedIndex && dataSource != null) {\n dataSource.load(getSearchText(), getConditionalQueries(), 0, -1);\n Set<Integer> allIndex = new HashSet<Integer>();\n for (int i = dataModel.getRowCount(); i-- > 0; ) {\n allIndex.add(new ... |
"public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException {\n this.callbackContext = callbackContext;\n if (!wifiManager.isWifiEnabled()) {\n callbackContext.error(\"String_Node_Str\");\n return false;\n }\n if (action.equals(ADD_NETWORK)) {\n... |
"public boolean equals(Object o) {\n if (!(o instanceof QuerySignature))\n return false;\n QuerySignature sig = (QuerySignature) o;\n return name.equals(sig.name) && constIdx.equals(sig.constIdx) && dontcareIdx.equals(sig.dontcareIdx);\n}\n"
|
"public void setUp() throws Exception {\n ((TestComponent) SensorbergTestApplication.getComponent()).inject(this);\n testTransportWithMockService = new RetrofitApiTransport(mockRetrofitApiService, clock);\n tested = new BeaconActionHistoryPublisher(InstrumentationRegistry.getContext(), testTransportWithMockSer... |
"public BigDecimal scaleByPowerOfTen(int n) {\n double newScale = scale - n;\n if (bitLength < SMALL_VALUE_BITS) {\n if (smallValue == 0) {\n return zeroScaledBy(newScale);\n }\n return valueOf(smallValue, toIntScale(newScale));\n }\n return new BigDecimal(getUnscaledValue(),... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xPathFragment.hasLeafElementType()) {\n marshalRecord.setLeafElementType(xPathFra... |
"public String getSchemaFile() {\n makeResourcesVisible(this.solrConfig.getResourceLoader(), new String[] { MontySolrSetup.getMontySolrHome() + \"String_Node_Str\", MontySolrSetup.getSolrHome() + \"String_Node_Str\" });\n String configFile = MontySolrSetup.getMontySolrHome() + \"String_Node_Str\";\n File newCo... |
"public String toDate() {\n String newDate = \"String_Node_Str\";\n newDate += date.substring(0, 2) + \"String_Node_Str\";\n newDate += date.substring(2, 4) + \"String_Node_Str\";\n newDate += date.substring(4, 8);\n return newDate;\n}\n"
|
"private void saveCrendentialsInSmartLock() {\n if (!isGooglePlayServicesAvailable() || mCredentialsClient == null) {\n return;\n }\n Credential credential = new Credential.Builder(username).setPassword(password).setName(displayName).setProfilePictureUri(profilePicture).build();\n Auth.CredentialsApi... |
"public XAStormAuditEventDao getXAStormAuditEvent() {\n if (mStormDao == null) {\n mStormDao = new XAStormAuditEventDao(this);\n }\n return mStormDao;\n}\n"
|
"void service(ServletRequest request, ServletResponse response, Servlet serv) throws IOException, ServletException {\n InstanceSupport supp = getInstanceSupport();\n try {\n supp.fireInstanceEvent(BEFORE_SERVICE_EVENT, serv, request, response);\n if (!isAsyncSupported()) {\n RequestFacade... |
"private List<Integer> generateDayCandidatesQuestionMarkSupported(int year, int month, WeekDay mondayDoWValue) {\n LocalDate date = LocalDate.of(year, month, 1);\n int lengthOfMonth = date.lengthOfMonth();\n Set<Integer> candidates = new HashSet<>();\n if (daysOfMonthCronField.getExpression() instanceof Alw... |
"public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int slot) {\n ItemStack stack = null;\n Slot slotObject = (Slot) this.inventorySlots.get(slot);\n if (slotObject != null && slotObject.getHasStack()) {\n ItemStack stackInSlot = slotObject.getStack();\n stack = stackInSlot.copy(... |
"public final void close(boolean truncate) {\n long sz = getAppendOffset();\n releaseCurrentPage();\n super.close();\n if (fd != -1) {\n try {\n if (truncate) {\n if (ff.truncate(fd, sz)) {\n LOG.info().$(\"String_Node_Str\").$(fd).$(']').$();\n ... |
"public final void updateAxisMinMax(Object oMinValue, Object oMaxValue) {\n if (rtc.getScale() != null && rtc.getScale().isShared()) {\n updateContext(rtc.getScale());\n return;\n }\n if (rtc.getScale() != null) {\n oMinValue = rtc.getScale().getMin();\n oMaxValue = rtc.getScale().g... |
"public void encode(final CharSequence s) throws IOException {\n if (s.length() <= 0)\n return;\n final CharBuffer in = CharBuffer.wrap(s);\n if (s.length() * 4 > m_buffer.capacity())\n m_buffer = ByteBuffer.allocate(s.length() * 4);\n reset();\n CoderResult cr = m_stringEncoder.encode(in, ... |
"public void checkDimletConfigFromServer(Map<Integer, DimletKey> dimlets, World world) {\n RFTools.log(\"String_Node_Str\");\n DimletMapping mapping = DimletMapping.getDimletMapping(world);\n mapping.overrideServerMapping(dimlets);\n KnownDimletConfiguration.init(world);\n KnownDimletConfiguration.initCr... |
"private void tighten(JVariable x) {\n if (!(x.getType() instanceof JReferenceType)) {\n return;\n }\n JReferenceType refType = (JReferenceType) x.getType();\n if (refType == typeNull) {\n return;\n }\n if (!program.typeOracle.isInstantiatedType(refType)) {\n changeList.changeType... |
"private boolean isEdgeDefaultColumn(String id) {\n for (EdgeColumnsGDF c : defaultEdgeColumnsGDFs) {\n if (c.title.equalsIgnoreCase(id)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n Class valueClass = null;\n if (value instanceof XMLRoot) {\n XMLRoot root = (XMLRoot) va... |
"private String generateNewQuery() {\n if (realDBType != null) {\n dbType = realDBType;\n }\n if (node != null && node instanceof INode) {\n process = ((INode) node).getProcess();\n }\n if (this.realTableId != null && this.dbNameAndDbTypeMap.containsKey(this.realTableId)) {\n dbType ... |
"private synchronized BondMatcher createBondMatcher(IBond bond) {\n return new DefaultBondMatcher(bond, isBondMatchFlag(), isShouldMatchRings(), isMatchAtomType());\n}\n"
|
"public UpdateOperations<T> addAll(String fieldExpr, List<?> values, boolean addDups) {\n if (values == null || values.isEmpty())\n throw new QueryException(\"String_Node_Str\");\n List<?> convertedValues = (List<?>) mapr.toMongoObject(values, true);\n if (addDups)\n add(\"String_Node_Str\", fiel... |
"public RenderedImage decodeAsRenderedImage(int page) throws IOException {\n if ((page < 0) || (page >= getNumPages())) {\n throw new IOException(JaiI18N.getString(\"String_Node_Str\"));\n }\n try {\n return new TIFFImage(input, (TIFFDecodeParam) param, page);\n } catch (Exception e) {\n ... |
"protected void readContentV1(DataInputStream in) throws IOException {\n while (in.available() > 0) {\n int filedId = IOUtil.readShort(in);\n readField(VERSION_1, filedId, in, loader);\n }\n}\n"
|
"public boolean setClassName(String className) throws IOException {\n if (!checkState(GeneratorStates.CLASS))\n return false;\n writer.beginType(packageName + \"String_Node_Str\" + className + \"String_Node_Str\", \"String_Node_Str\", EnumSet.of(Modifier.PUBLIC, Modifier.FINAL), className).emitEmptyLine();... |
"public static Object unwrapToModel(Object obj) {\n if (obj instanceof ListBandProxy) {\n return ((ListBandProxy) obj).getSlotHandle();\n }\n List<Object> unwrapped = new ArrayList<Object>(objs.size());\n for (int i = 0; i < objs.size(); i++) {\n unwrapped.add(unwrapToModel(objs.get(i)));\n ... |
"private static boolean isDate(int dataType) {\n return (dataType == DataType.DATE_TYPE || dataType == DataType.SQL_DATE_TYPE || dataType == DataType.SQL_TIME_TYPE);\n}\n"
|
"private void migratePoolData(String orgid) throws DatabaseException, SQLException {\n this.logger.info(\"String_Node_Str\" + orgid);\n ResultSet pools = this.executeQuery(\"String_Node_Str\", orgid);\n while (pools.next()) {\n String poolid = pools.getString(1);\n ResultSet branding = this.execu... |
"protected UUID selectDefenderForAllAttack(Set<UUID> defenders, Game game) {\n TargetDefender target = new TargetDefender(defenders, null);\n target.setNotTarget(true);\n if (chooseTarget(Outcome.Damage, target, null, game)) {\n return response.getUUID();\n }\n return null;\n}\n"
|
"protected List<GraphTargetItem> printGraph(List<GraphPart> visited, BaseLocalData localData, TranslateStack stack, List<GraphPart> allParts, GraphPart parent, GraphPart part, List<GraphPart> stopPart, List<Loop> loops, List<GraphTargetItem> ret, int staticOperation, String path, int recursionLevel) throws InterruptedE... |
"protected Conditional<Instruction> put1(FeatureExpr ctx, ThreadInfo ti, StackFrame frame, ElementInfo eiFieldOwner, boolean initStatic) {\n Object attr = frame.getOperandAttr(ctx);\n Conditional<Integer> val;\n Conditional<Integer> field = eiFieldOwner.get1SlotField(fi);\n if (initStatic) {\n val = ... |
"private void _captureModelTypes(HashSet<ComponentEntity> entities, HashMap<String, Type> portTypes) throws IllegalActionException {\n for (ComponentEntity entity : entities) {\n for (Object portObject : entity.portList()) {\n Port port = (Port) portObject;\n if (port instanceof IOPort) ... |
"public final int getDpiResolution() {\n if (iDpiResolution == 0) {\n switch(getGraphicsContext().getDeviceConfiguration().getDevice().getType()) {\n case GraphicsDevice.TYPE_RASTER_SCREEN:\n if (GraphicsEnvironment.isHeadless()) {\n iDpiResolution = super.getDpiRe... |
"public void run() {\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewLattice.this, ModelPart.SELECTED_NODE, selectedNode));\n repaint();\n controller.getContextMenu().show(menu, x, y);\n}\n"
|
"private void processUsageDataIfNew(File usageFile) {\n long modifiedAt = usageFile.lastModified();\n Long oldModifiedAt = dataFileModifiedAtMillis.get(usageFile.getPath());\n if (oldModifiedAt == null || oldModifiedAt != modifiedAt) {\n String appName = getAppName(usageFile);\n applyRecordedUsag... |
"private void createTargetProduct() {\n targetProduct = new Product(sourceProduct.getName() + PRODUCT_SUFFIX, sourceProduct.getProductType(), sourceProduct.getSceneRasterWidth(), sourceProduct.getSceneRasterHeight());\n ProductUtils.copyProductNodes(sourceProduct, targetProduct);\n for (String key : targetMap.... |
"protected void process(Wire in, Wire out) throws StreamCorruptedException {\n try {\n final StringBuilder cspText = peekType(in);\n final String serviceName = serviceName(cspText);\n if (endsWith(cspText, \"String_Node_Str\")) {\n final ChronicleMap<byte[], byte[]> map = chronicleEng... |
"protected void processDefuzzify(String block, Engine engine) throws Exception {\n BufferedReader reader = new BufferedReader(new StringReader(block));\n String line = reader.readLine();\n String name;\n int index = line.indexOf(' ');\n if (index >= 0) {\n name = Op.makeValidId(line.substring(inde... |
"private StoragePool getStoragePool(Connect conn, StoragePoolVO pool) {\n StoragePool sp = null;\n try {\n sp = conn.storagePoolLookupByUUIDString(pool.getUuid());\n } catch (LibvirtException e) {\n }\n if (sp == null) {\n if (pool.getPoolType() == StoragePoolType.NetworkFilesystem) {\n ... |
"void connectNodes() {\n setupSearch();\n int indexCornerList = 0;\n for (int indexNode = 0; indexNode < nodes.size(); indexNode++) {\n SquareNode n = nodes.get(indexNode);\n for (int indexLocal = 0; indexLocal < 4; indexLocal++) {\n double[] point = searchPoints.get(indexCornerList++)... |
"public static IvBezierPath3D createQuickBezierPath(IvBezierPoint3D[] points) {\n ArrayList<IvBezierPoint3D> bezierPoints = new ArrayList<>();\n Collections.addAll(bezierPoints, points);\n return new IvBezierPath3D(bezierPoints);\n}\n"
|
"public Set<DistributionModuleGroup> getModuleGroups() throws Exception {\n Set<DistributionModuleGroup> hs = new HashSet<>();\n DynamicPluginAdapter pluginAdapter = getPluginAdapter();\n String hiveRuntimeId = pluginAdapter.getRuntimeModuleGroupIdByTemplateId(DynamicModuleGroupConstant.HIVE_MODULE_GROUP.getMo... |
"public static DatabaseConnection createEXistTdDataProvider(DBConnectionParameter parameter) {\n IXMLDBConnection xmlDBConnection = new EXistXMLDBConnection(parameter.getDriverClassName(), parameter.getJdbcUrl());\n ReturnCode rt = xmlDBConnection.checkDatabaseConnection();\n if (rt.isOk()) {\n Database... |
"public void mutateBatch(List<RowMutation> mutations) throws BlurException, TException {\n try {\n for (RowMutation mutation : mutations) {\n MutationHelper.validateMutation(mutation);\n }\n Map<String, List<RowMutation>> batches = new HashMap<String, List<RowMutation>>();\n fo... |
"protected String _generateFireCode() throws IllegalActionException {\n super._generateFireCode();\n ptolemy.actor.lib.VectorDisassembler actor = (ptolemy.actor.lib.VectorDisassembler) getComponent();\n StringBuffer fireCode = new StringBuffer();\n ArrayList<String> args = new ArrayList<String>();\n args... |
"private EnvTypePair analyzeNonStrictComparisonFwd(Node expr, TypeEnv inEnv, JSType specializedType) {\n int tokenType = expr.getType();\n Node lhs = expr.getFirstChild();\n Node rhs = expr.getLastChild();\n if ((specializedType.isTruthy() || specializedType.isFalsy()) && (lhs.isTypeOf() || rhs.isTypeOf()))... |
"public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {\n super.getWailaBody(itemStack, currenttip, accessor, config);\n TileEntity tileEntity = accessor.getTileEntity();\n if (tileEntity instanceof PowerCellTileEntity) {\n ... |
"public void destroy() {\n if (weaveRunnerService != null) {\n weaveRunnerService.stopAndWait();\n }\n}\n"
|
"public void run() {\n try {\n final int BUFFER_SIZE = 4 * 4096;\n long fileSize = file.length();\n if (fileSize == 0) {\n logger.warn(\"String_Node_Str\", request.shardId().index().name(), request.shardId().id(), file.getName());\n }\n try (FileInputStream fileStream = ... |
"public void testValidateNoSchemaReference() throws JAXBException {\n try {\n Class[] classes = { Address.class };\n JAXBContext jc = JAXBContextFactory.createContext(classes, null);\n Validator validator = jc.createValidator();\n validator.validate(new Address());\n } catch (Validatio... |
"public void createControl(Composite parent) {\n Composite parentComposite = new Composite(parent, SWT.NONE);\n parentComposite.setLayout(new GridLayout(1, true));\n Group categoryTypeGroup = new Group(parentComposite, SWT.SHADOW_ETCHED_IN);\n categoryTypeGroup.setText(\"String_Node_Str\");\n categoryTyp... |
"private void inlineAliases(GlobalNamespace namespace) {\n Deque<Name> workList = new ArrayDeque<>(namespace.getNameForest());\n while (!workList.isEmpty()) {\n Name name = workList.pop();\n if (name.type == Name.Type.GET || name.type == Name.Type.SET) {\n continue;\n }\n if... |
"private void handleDocumentsProvider(ProviderInfo info) {\n if ((info.applicationInfo.flags & ApplicationInfo.FLAG_STOPPED) != 0) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\" + info.authority);\n mTaskStoppedAuthorities.add(info.authority);\n return;\n }\n final boolean forc... |
"private void populate(Collection<com.sun.enterprise.deployment.EjbDescriptor> ejbs) {\n try {\n if (archive.exists(WEB_INF_BEANS_XML) || archive.exists(WEB_INF_CLASSES_META_INF_BEANS_XML)) {\n logger.log(FINE, \"String_Node_Str\" + archive.getURI() + \"String_Node_Str\" + WEB_INF_BEANS_XML + \"Str... |
"public boolean isVisible() {\n return mCameraControls.getVisibility() == View.VISIBLE;\n}\n"
|
"protected void closeOrder(IOrder order) throws JFException {\n if (isActive(order)) {\n order.close();\n order.waitForUpdate(200);\n prevOrder = order;\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.