content stringlengths 40 137k |
|---|
"private void setIpVersionAndStartEndAddress(ResultSet rs, Network objIp) throws SQLException {\n String ipVersionStr = rs.getString(\"String_Node_Str\");\n String startHighAddress = rs.getString(\"String_Node_Str\");\n String startLowAddress = rs.getString(\"String_Node_Str\");\n String endHighAddress = rs... |
"public void write(IOBuffer buffer) {\n super.write(buffer);\n buffer.putByte(state);\n BufferIO.writeAngle(buffer, orientation);\n BufferIO.writeAngle(buffer, turretOrientation);\n buffer.putByte(primaryWeaponState);\n buffer.putByte(secondaryWeaponState);\n BufferIO.writePlayerId(buffer, operator... |
"private Buffer getBuffer(long ssrc) {\n synchronized (buffers) {\n Buffer buffer = buffers.get(ssrc);\n if (buffer == null) {\n buffer = new Buffer(SIZE, ssrc);\n buffers.put(ssrc, buffer);\n }\n }\n return buffer;\n}\n"
|
"public String serviceAccomplishedStatus() {\n Map sessionAttributes = ActionContext.getContext().getSession();\n Orders orderEntity = orderService.findOrdersById(orderIdParam);\n List<OrderItems> orderItemEntityList = orderStatusLogsService.findAllItemsByOrderId(orderIdParam);\n Integer checkAllStatus = 0;... |
"public static String[] takeFirstLine(String dataSetRawPath, String delimeter, SourceType source) throws IOException {\n if (dataSetRawPath == null || delimeter == null || source == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String firstValidFile = null;\n FileSystem fs ... |
"public Type getTypeForSimpleJavaType(Class implClass) {\n return getTypeHelperDelegate().getTypeForSimpleJavaType(implClass);\n}\n"
|
"private void verifySigningCertificate(X509Certificate rawCertFromJar) throws SigningException {\n String certFromJar = Hasher.hex(rawCertFromJar);\n if (TextUtils.isEmpty(certFromJar)) {\n throw new SigningException(repo, SIGNED_FILE_NAME + \"String_Node_Str\");\n }\n if (repo.signingCertificate == ... |
"public void onClick(View view) {\n RequestsToAGiftFragment requestsToAGiftFragment = new RequestsToAGiftFragment();\n Bundle bundle = new Bundle();\n bundle.putString(Constants.GIFT_ID, gifts.get(i).giftId);\n bundle.putString(Constants.GIFT_NAME, gifts.get(i).title);\n bundle.putString(Constants.GIFT_R... |
"public synchronized void setNameTag(EventType eventType, String username, String alias, Color foregroundColor, Font font) {\n logger.fine(\"String_Node_Str\" + eventType + \"String_Node_Str\" + username + \"String_Node_Str\" + alias + \"String_Node_Str\" + foregroundColor + \"String_Node_Str\" + font);\n switch(... |
"private static boolean resizeImageAndWriteToStream(Context context, Uri imageUri, String fileExtension, int maxWidth, int orientation, int quality, OutputStream outStream) throws OutOfMemoryError, IOException {\n String realFilePath = MediaUtils.getRealPathFromURI(context, imageUri);\n BitmapFactory.Options optB... |
"private void handleCmd(String cmd, int[] cmdBytes, int cmdLen) throws IOException, EmulationException {\n System.out.println(\"String_Node_Str\" + cmd);\n char c = cmd.charAt(0);\n switch(c) {\n case 'H':\n sendResponse(OK);\n break;\n case 'q':\n if (\"String_No... |
"public static int getNextGroupIndex(List groups, int currentDimensionIndex, int currentLevelIndex) {\n int currentGroup = -1;\n for (int i = 0; i < groups.size(); i++) {\n EdgeGroup gp = groups.get(i);\n if (gp.dimensionIndex == currentDimensionIndex && gp.levelIndex == currentLevelIndex) {\n ... |
"public static int deletePostsWithTag(String tagName) {\n if (TextUtils.isEmpty(tagName)) {\n return 0;\n int numDeleted = ReaderDatabase.getWritableDb().delete(\"String_Node_Str\", \"String_Node_Str\", new String[] { tagName });\n if (numDeleted > 0)\n ReaderDatabase.getWritableDb().delete(\"Str... |
"public IComplexNDArray vectorAlongDimension(int index, int dimension) {\n return (IComplexNDArray) super.vectorAlongDimension(index, dimension);\n}\n"
|
"public void loadWarps(Configuration config, Map<String, Warp> target) {\n ConfigurationSection warpSection = config.getConfigurationSection(WARPS_LIST_KEY);\n if (warpSection != null) {\n Set<String> keys = warpSection.getKeys(false);\n if (keys != null) {\n for (String key : keys) {\n ... |
"public void testAttachDetachOrder() {\n HasWidgetsTester.testAll(new Tree(), new Adder());\n}\n"
|
"private IComputedColumn getComputedColumnInstance(Context cx, int interval, IGroupDefinition src, String expr, String groupName, IQuery.GroupSpec dest, int dataType) throws DataException {\n if (dest.getInterval() != IGroupDefinition.NO_INTERVAL) {\n return new GroupComputedColumn(groupName, expr, QueryExecu... |
"public UnprocessedChangeEvents changed(PropertyChangeEvent[] events) {\n jmsService = serverConfig.getExtensionByType(JmsService.class);\n List<UnprocessedChangeEvent> unprocessedEvents = new ArrayList<UnprocessedChangeEvent>();\n _logger.log(Level.FINE, \"String_Node_Str\");\n Domain domain = Globals.get(... |
"public boolean onTouch(View v, MotionEvent event) {\n float pos = event.getY();\n if (event.getAction() == 0)\n lastYPos = pos;\n if (event.getAction() > 1) {\n if (((lastYPos - pos) > 2.0f) || ((pos - lastYPos) > 2.0f))\n scrollDetected = true;\n }\n lastYPos = pos;\n if (ev... |
"private void initialize() {\n URI itemURI = URI.createFileURI(file.getAbsolutePath());\n URI propURI = itemURI.trimFileExtension().appendFileExtension(FactoriesUtil.PROPERTIES_EXTENSION);\n elementEName = EElementEName.findENameByExt(itemURI.fileExtension());\n try {\n if (property == null) {\n ... |
"public void acceptSearchMatch(SearchMatch match) throws CoreException {\n result.add((IMethod) match.getElement());\n}\n"
|
"public void testTableJoinQuery4() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String streams = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = \"String_Node_Str\" + \"String_Nod... |
"private void validateKeystore(File keystoreFile) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException {\n Assert.assertTrue(\"String_Node_Str\", keystoreFile.exists());\n InputStream is = null;\n try {\n is = new FileInputStream(keystoreFile);\n KeyStore keystore... |
"private FhirFormat checkIsResource(String path) {\n String ext = Utilities.getFileExtension(path);\n if (Utilities.existsInList(ext, \"String_Node_Str\"))\n return FhirFormat.XML;\n if (Utilities.existsInList(ext, \"String_Node_Str\"))\n return FhirFormat.JSON;\n if (Utilities.existsInList(ex... |
"public Object visitDateTimeLiteral(cqlParser.DateTimeLiteralContext ctx) {\n String input = ctx.getText();\n if (input.startsWith(\"String_Node_Str\")) {\n input = input.substring(1);\n }\n Pattern dateTimePattern = Pattern.compile(\"String_Node_Str\");\n Matcher matcher = dateTimePattern.matcher... |
"private void paintSpecial(Graphics g, String text, int x, int y, boolean firstBox, boolean rtl, boolean isMirrored) {\n Image image = null;\n GC gc = null;\n if (rtl || isMirrored) {\n TextLayout textLayout = BidiUIUtils.INSTANCE.getTextLayout(SWT.LEFT_TO_RIGHT);\n textLayout.setFont(g.getFont()... |
"private void drawBack() {\n String back = isHovered ? \"String_Node_Str\" : \"String_Node_Str\";\n Renderer.text(ChatLib.addColor(back), 20 + width - Renderer.getStringWidth(\"String_Node_Str\") - 2, infoHeight - scrolled).setShadow(true).draw();\n}\n"
|
"private void testTwoParty(String algName, int size, int privateValueSize, KeyPairGenerator keyGen) throws Exception {\n KeyPair aKeyPair = keyGen.generateKeyPair();\n KeyAgreement aKeyAgree = KeyAgreement.getInstance(algName, \"String_Node_Str\");\n checkKeySize(privateValueSize, aKeyPair);\n aKeyAgree.ini... |
"protected void onFailure(final RequestFailureType type, final Throwable t, final StatusLine status, final String readableMessage) {\n final String title, message;\n switch(type) {\n case CANCELLED:\n title = context.getString(R.string.error_cancelled_title);\n message = context.getSt... |
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Card sourceCard = game.getCard(source.getSourceId());\n if (controller != null && sourceCard != null) {\n Permanent targetEnchantment = game.getPermanent(getTargetPointer().getFirst(game,... |
"public void importFile(IPlatformImportBundle bundle) throws PlatformImportException, DomainIdNullException, DomainAlreadyExistsException, DomainStorageException, IOException {\n RepositoryFileImportBundle importBundle = (RepositoryFileImportBundle) bundle;\n ZipInputStream zipImportStream = new ZipInputStream(bu... |
"public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n logger.info(\"String_Node_Str\");\n try {\n KeyStore keyStore = CommonUtil.loadAppMgrKeyStore(Constants.APPMANAGER_KEYSTORE_PATH);\n if (keyStore == null) {\n logger.error(\"String_No... |
"private <DataType> void updateCollection(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?> service, Graph database, Property p, Object toUpdate, Vertex rootVertex, CascadeType cascade, Map<String, Object> objectsBeingAccessed) {\n Collection<?> value = (Collection<?>) p.get(toUpdate);\n if (val... |
"public void bindView(final View view, final Context context, final Cursor cursor) {\n final ExchangeRate exchangeRate = ExchangeRatesProvider.getExchangeRate(cursor);\n final BigDecimal bdRate = new BigDecimal(exchangeRate.rate);\n final boolean isDefaultCurrency = exchangeRate.currencyCode.equals(defaultCurr... |
"private void processBlock(Block m) throws IOException {\n log.debug(\"String_Node_Str\", m.getHashAsString());\n try {\n synchronized (pendingGetBlockFutures) {\n for (int i = 0; i < pendingGetBlockFutures.size(); i++) {\n GetDataFuture<Block> f = pendingGetBlockFutures.get(i);\n... |
"protected Composite getTogglesControl(Composite parent) {\n if (toggles == null && providers != null) {\n composite = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.horizontalSpacing = 7;\n layout.numColumns = providers.length;\n composite.setLay... |
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n ... |
"public TmfEvent clone() {\n TmfEvent clone = null;\n try {\n clone = (TmfEvent) super.clone();\n clone.fParentTrace = fParentTrace;\n clone.fEventRank = fEventRank;\n clone.fOriginalTimestamp = fOriginalTimestamp != null ? fOriginalTimestamp.clone() : null;\n clone.fEffectiveTi... |
"protected void writeImage(DataOutputStream out, ImageItemDesign image) throws IOException {\n writeReportItem(out, image);\n IOUtil.writeShort(out, FIELD_IMAGE_SOURCE);\n int imageSource = image.getImageSource();\n IOUtil.writeInt(out, imageSource);\n switch(imageSource) {\n case ImageItemDesign.... |
"public void preinitialize() throws IllegalActionException {\n _firingsPerScheduleIteration = 1;\n _firingsSoFar = 0;\n super.preinitialize();\n FSMActor ctrl = getController();\n State initialState = ctrl.getInitialState();\n if (_debug_info) {\n System.out.println(getName() + \"String_Node_St... |
"private boolean needCachedDataSetToEnhancePerformance(TabularCubeHandle cubeHandle) {\n DataSetHandle dsHandle = cubeHandle.getDataSet();\n List dimHandles = cubeHandle.getContents(CubeHandle.DIMENSIONS_PROP);\n for (int i = 0; i < dimHandles.size(); i++) {\n DimensionHandle dimHandle = (DimensionHandl... |
"public CellEditor[] getCellEditors() {\n if (cellEditor != null) {\n return cellEditor;\n }\n ComboBoxCellEditor comboCell = new ComboBoxCellEditor(viewer.getTable(), new String[0], SWT.READ_ONLY);\n ComboBoxCellEditor positionCell = new ComboBoxCellEditor(viewer.getTable(), positionItems, SWT.READ_... |
"public Map<String, Object> value() {\n if (row.isComplete()) {\n OsStats.Cgroup cgroup = row.extendedOsStats().osStats().getCgroup();\n if (cgroup != null) {\n return super.value();\n }\n return super.value();\n }\n return null;\n}\n"
|
"public void read(byte[] holder) throws ProtocolException {\n int readTotal = 0;\n try {\n while (readTotal < holder.length) {\n int count = input.read(holder, readTotal, holder.length - readTotal);\n if (count == -1) {\n throw new ProtocolException(\"String_Node_Str\")... |
"public void addGlobal(String name, Arg val) {\n String tclName = prefixVar(name);\n globInit.add(Turbine.makeTCLGlobal(tclName));\n String typePrefix;\n Expression expr;\n Command setCmd;\n switch(val.getKind()) {\n case INTVAL:\n typePrefix = Turbine.INTEGER_TYPENAME;\n ... |
"public boolean delete() throws Exception {\n if (isPhysicalDelete()) {\n LogicalDeleteFileHandle.deleteElement(file);\n IPath filePath = file.getFullPath();\n filePath = filePath.removeFileExtension().addFileExtension(FactoriesUtil.PROPERTIES_EXTENSION);\n IFile propFile = ResourceManage... |
"protected boolean canProceed() {\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageMa... |
"private void writeError429Response(HttpServletResponse response) throws IOException {\n ResponseEntity<ErrorMessage> responseEntity = RestResponseUtil.createResponse429();\n FilterHelper.writeResponse(responseEntity, response);\n}\n"
|
"public void getDebugInfo(List<String> left, List<String> right, EnumFacing side) {\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + battery.getDebugString());\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + frameBox.min());\n left.add(\"String_Node_Str\" + frameBox.max... |
"private Node tryOptimizeSwitch(Node n) {\n Preconditions.checkState(n.isSwitch());\n Node defaultCase = tryOptimizeDefaultCase(n);\n if (defaultCase == null) {\n Node cond = n.getFirstChild(), prev = null, next = null, cur;\n for (cur = cond.getNext(); cur != null; cur = next) {\n nex... |
"public static boolean hasTowny() {\n return townyPlugin != null && townyPlugin.isEnabled();\n}\n"
|
"public CollectionRegion buildCollectionRegion(final String regionName, final Properties properties, final CacheDataDescription metadata) throws CacheException {\n return new HazelcastCollectionRegion(instance, regionName, properties, metadata);\n}\n"
|
"protected void customRun() throws InterruptedException {\n if (outRunnable.reconnection.get()) {\n Thread.sleep(10L);\n return;\n }\n Packet packet;\n try {\n Connection oldConnection = connection;\n connection = client.connectionManager.getConnection();\n if (restoredCon... |
"public void updateTranslation(double[] state) {\n mTangoOdomPublisher.setPosePoint(state[5], -state[4], state[6]);\n mTangoPosePublisher.setPoint(state[5], -state[4], state[6]);\n mTangoTfPublisher.setTranslation(state[5], -state[4], state[6]);\n}\n"
|
"public int compare(Map.Entry<String, Float> o1, Map.Entry<String, Float> o2) {\n return o2.getValue().compareTo(o1.getValue());\n}\n"
|
"public static Slot newSlot(Item item) {\n if (item.isEmpty()) {\n return EMPTY;\n }\n return new Slot((short) item.getSubstance().getId(), (byte) item.getCount(), item.getDamage(), item.getMeta());\n}\n"
|
"private InstructorResultsQuestionTable buildQuestionTable(FeedbackQuestionAttributes question, List<FeedbackResponseAttributes> responses, ViewType statisticsViewType, String additionalInfoId, boolean isIncludeMissingResponses) {\n FeedbackQuestionDetails questionDetails = question.getQuestionDetails();\n String... |
"public void send(Invitation model, Locale locale, boolean sendBySigmah) throws EmailException, TemplateException, IOException {\n final ResourceBundle mailMessages = getResourceBundle(locale);\n SimpleEmail mail = new SimpleEmail();\n mail.addTo(model.getNewUser().getEmail(), model.getNewUser().getName());\n ... |
"public org.hl7.fhir.dstu2.model.InstantType convertInstant(org.hl7.fhir.dstu3.model.InstantType src) throws FHIRException {\n org.hl7.fhir.dstu2.model.InstantType tgt = new org.hl7.fhir.dstu2.model.InstantType(src.getValueAsString());\n copyElement(src, tgt);\n return tgt;\n}\n"
|
"protected void okPressed() {\n IProxyRepositoryFactory prf = CorePlugin.getDefault().getProxyRepositoryFactory();\n try {\n prf.saveProject(project);\n ShowStandardAction.getInstance().doRun();\n if (needCodeGen) {\n Job refreshTemplates = CorePlugin.getDefault().getCodeGeneratorS... |
"public boolean transferInputs(IOPort port) throws IllegalActionException {\n boolean result = false;\n for (int channelIndex = 0; channelIndex < port.getWidth(); channelIndex++) {\n try {\n if (port.isKnown(channelIndex)) {\n if (port.hasToken(channelIndex)) {\n ... |
"public Image getNodeIcon(Object model) {\n if (model instanceof DesignElementHandle && ((DesignElementHandle) model).getSemanticErrors().size() > 0) {\n return ReportPlatformUIImages.getImage(ISharedImages.IMG_OBJS_ERROR_TSK);\n }\n if (OlapUtil.isFromLibrary(model))\n return UIHelper.getImage(B... |
"public static String getPaletteMessage(Context context, String filename, ArrayList<PaletteSwatch> swatches) {\n StringBuilder message = new StringBuilder();\n message.append(\"String_Node_Str\");\n message.append(System.getProperty(\"String_Node_Str\"));\n if (!\"String_Node_Str\".equals(filename)) {\n ... |
"private void initControls() {\n buttonList.clear();\n buttonList.add(new GuiButton(1, guiLeft + xSize - 60 - 8, guiTop + 120, 60, 20, \"String_Node_Str\"));\n textArea = new GuiTextArea(fontRendererObj, guiLeft + 8, guiTop + 5, xSize - 16, ySize - 35, lineCount);\n textArea.setFocused(true);\n String[] ... |
"public boolean seekIndex(long index) {\n this.prio.clear();\n long tempIndex = Long.MIN_VALUE;\n long tempTimestamp = Long.MIN_VALUE;\n try {\n for (StreamInputReader streamInputReader : this.streamInputReaders) {\n final long streamIndex = streamInputReader.seekIndex(index);\n ... |
"boolean isVisibleLocked() {\n final boolean keyguardOn = mService.mPolicy.isKeyguardShowingOrOccluded();\n if (keyguardOn && !StackId.isAllowedOverLockscreen(mStackId)) {\n return ignoreVisibilityOnKeyguardShowing;\n }\n for (int i = mTasks.size() - 1; i >= 0; i--) {\n Task task = mTasks.get(... |
"public static GroupType getGroup(ServiceConfiguration configuration, String groupName, String effectiveUserId) throws Exception {\n GroupType retVal = null;\n boolean seenAllGroups = false;\n String groupMarker = null;\n while (!seenAllGroups && retVal == null) {\n ListGroupsType listGroupsType = Me... |
"public String[] getDistinctValuesOrdered(int column, String[][] hierarchy) {\n interrupt.value = false;\n String[] list = getDistinctValues(column);\n String attribute = handle.getAttributeName(column);\n DataType<?> datatype = handle.getDataType(attribute);\n int level = handle.getGeneralization(attrib... |
"private void addPropertyParameters(final List<ElementParameter> listParam, final INode node, String formName, EComponentCategory category) {\n ComponentProperties props = node.getComponentProperties();\n Form form = props.getForm(formName);\n List<ElementParameter> parameters = ComponentsUtils.getParametersFr... |
"public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {\n Script script = (Script) scriptEntry.getObject(\"String_Node_Str\");\n String step = (String) scriptEntry.getObject(\"String_Node_Str\");\n Duration duration = (Duration) scriptEntry.getObject(\"String_Node_Str\");\n String c... |
"public boolean setCondensedKeys(CondenseType condenseType, KeyboardDimens keyboardDimens) {\n if (mKeyboardCondenseType.equals(condenseType))\n return false;\n final float condensingFactor;\n switch(condenseType) {\n case CompactToLeft:\n case CompactToRight:\n condensingFactor... |
"public static void updateSuperposition(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException {\n int optLength = afpChain.getOptLength();\n int alnPos = 0;\n Atom[] aln1 = new Atom[optLength];\n Atom[] aln2 = new Atom[optLength];\n int[] optLen = afpChain.getOptLen();\n int[][][] optAl... |
"public TestResult execute(String path, List<String> classesToExecute, int waitTime) {\n Process p = null;\n if (!ProjectConfiguration.validJDK())\n throw new IllegalArgumentException(\"String_Node_Str\");\n String javaPath = ConfigurationProperties.getProperty(\"String_Node_Str\");\n javaPath += Fil... |
"private void introduceAttribute(Attribute<?> sourceAttribute, Artifact destinationArtifact) throws OseeDataStoreException, OseeCoreException {\n if (sourceAttribute.isDirty()) {\n throw new OseeArgumentException(\"String_Node_Str\", sourceAttribute);\n } else if (sourceAttribute.isInDb()) {\n Attri... |
"public static ProgressStatusDTO readProgressStatus(JsonParser jp) throws IOException {\n ChildProgressStatusDTO child = readChildProgressStatus(jp);\n return child.getProgressStatus();\n}\n"
|
"public ContextMap<CallString, SymbolicAddressMap> initial(InstructionHandle stmt) {\n ContextMap<CallString, SymbolicAddressMap> retval = new ContextMap<CallString, SymbolicAddressMap>(new Context(), new HashMap<CallString, SymbolicAddressMap>());\n CallString l = CallString.EMPTY;\n SymbolicAddressMap init =... |
"private void buildSQLMaps() {\n sqlMaps = new HashMap<String, String>();\n if (null != paths)\n for (String path : paths) {\n if (null == path)\n continue;\n File f = Files.findFile(Strings.trim(path));\n if (f == null || (!f.exists())) {\n In... |
"public void leavePlayer(String playername, boolean fullLeave) {\n if (!this.containsPlayer(playername)) {\n return;\n }\n this.players.remove(playername);\n MinigamesAPI.global_players.remove(playername);\n if (fullLeave) {\n return;\n }\n final Player p = Bukkit.getPlayer(playername... |
"static int newObject(int cons) {\n int size = Native.rdMem(cons);\n if (Config.USE_SCOPES) {\n int ptr = allocationPointer;\n if (RtThreadImpl.initArea == null) {\n allocationPointer += size + HEADER_SIZE;\n } else {\n Memory sc = null;\n if (RtThreadImpl.mis... |
"public boolean acceptResource(String resource) {\n return defaultFilter.acceptResource(resource) || authorizerResources.contains(resource);\n}\n"
|
"public MutableContextData getMutableContextData() {\n final MutableContextData map = localMap.get();\n return map == null ? EMPTY_CONTEXT_DATA : map;\n}\n"
|
"public boolean marshal(MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller, MarshalContext marshalContext, XPathFragment rootFragment) {\n if ((null == marshalNodeValue) || isMarshalOnlyNodeValue) {\n if (marshalRecord.isWrapperA... |
"public BoundedSet<SymbolicAddress> getTopOfStack() {\n if (this.isTop())\n return bsFactory.top();\n return map.get(new Location(topOfStack));\n}\n"
|
"public static int sendBuffersCount(Config cfg) {\n return cfg.getIntegerValue(SEND_BUFFERS_COUNT, 16);\n}\n"
|
"public void mouseDown(MouseEvent e) {\n if (table.getMenu() != null) {\n table.getMenu().setVisible(false);\n }\n ExecutionLanguage currentEngine = analysis.getParameters().getExecutionLanguage();\n if (e.button == 3) {\n StructuredSelection selection = (StructuredSelection) tbViewer.getSelec... |
"private List getEdgeSort(int edgeType) {\n List l = this.defn.getSorts();\n List result = new ArrayList();\n for (int i = 0; i < l.size(); i++) {\n ICubeSortDefinition sort = (ICubeSortDefinition) l.get(i);\n if (this.defn.getEdge(edgeType) != null && sort.getTargetLevel() != null && this.defn.g... |
"public void execute(long t) {\n if (DEBUG) {\n System.out.println(getName() + \"String_Node_Str\");\n if (packetListener != null) {\n int len = memory[RAM_TXFIFO];\n int[] data = new int[len];\n System.arraycopy(memory, RAM_TXFIFO + 1, data, 0, len);\n packetListener.transmissi... |
"public List<Atom[]> getAtomArrays() {\n if (atomArrays == null)\n ;\n return atomArrays;\n}\n"
|
"public static void writeTo(final byte[] data, int offset, int length, final ByteBufferDestination destination) {\n int chunk = 0;\n synchronized (destination) {\n ByteBuffer buffer = destination.getByteBuffer();\n do {\n if (length > buffer.remaining()) {\n buffer = destin... |
"public void createFieldEditors() {\n _setDefault();\n Composite parent = getFieldEditorParent();\n DirectoryFieldEditor directoryFieldEditor = new DirectoryFieldEditor(PreferenceConstants.PTII, \"String_Node_Str\", getFieldEditorParent()) {\n\n protected void fireValueChanged(String property, Object ol... |
"public void updateResources() {\n int panelWidth = getResources().getDimensionPixelSize(R.dimen.notification_panel_width);\n int panelGravity = getResources().getInteger(R.integer.notification_panel_layout_gravity);\n FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mQsDensityContainer.getLayoutParams... |
"public <T, E extends Exception> T createProxy(T obj, Class<E> exceptionClazz, boolean assertException) {\n InvocationHandler invocationHandler = new ExceptionProcessingJdkInvocationHandler<E>(obj, exceptionClazz, assertException);\n Set<Class<?>> interfaces = new HashSet<Class<?>>();\n Class<?> clazz = obj.ge... |
"public org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideDependencyComponent convertImplementationGuideDependencyComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.... |
"private JsStatement mapStatement(Node nodeStmt) throws JsParserException {\n JsNode unknown = map(nodeStmt);\n if (unknown != null) {\n if (unknown instanceof JsStatement) {\n return (JsStatement) unknown;\n } else if (unknown instanceof JsExpression) {\n return ((JsExpression... |
"void unregisterSpringConfigFactory() {\n try {\n springBootConfigReg.updateAndGet((r) -> {\n if (r != null) {\n r.unregister();\n }\n return null;\n });\n } catch (IllegalStateException e) {\n }\n}\n"
|
"public void setFrequency(long frequency) {\n long actualSourceFrequency = frequency - frequencyShift;\n if (isOpen()) {\n if (frequency < getMinFrequency() || frequency > getMaxFrequency()) {\n Log.e(LOGTAG, \"String_Node_Str\" + frequency + \"String_Node_Str\" + upconverterFrequencyShift + \"S... |
"void onSucceed(List<AVIMTypedMessage> typedMessages) {\n List<AVIMTypedMessage> newMessages = new ArrayList<>(PAGE_SIZE);\n newMessages.addAll(typedMessages);\n newMessages.addAll(adapter.getDatas());\n adapter.setDatas(newMessages);\n adapter.notifyDataSetChanged();\n if (typedMessages.size() > 0) {... |
"private static BaseDiskSortedStack find(Level level, ISelection[] filter) throws IOException, DataException {\n IDiskArray indexKeyArray = level.getDiskIndex().find(filter);\n PrimitiveDiskSortedStack resultStack = new PrimitiveDiskSortedStack(Constants.LIST_BUFFER_SIZE, true, true);\n if (indexKeyArray != nu... |
"public String getFailureReport() {\n String result = null;\n if (logger.isDebugEnabled()) {\n Collection<CapabilityReport> capabilities = RMMethodSecurityInterceptor.CAPABILITIES.get().values();\n if (!capabilities.isEmpty()) {\n StringBuffer buffer = new StringBuffer(\"String_Node_Str\"... |
"protected String getContent(IProgressMonitor monitor) throws CoreException {\n String content = null;\n CloudFoundryException cfe = null;\n CoreException error = null;\n try {\n content = server.getBehaviour().getFile(appName, instanceIndex, path, offset, monitor);\n if (content != null) {\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.