content stringlengths 40 137k |
|---|
"public int getLineHeight() {\n if (content != null) {\n IStyle contentStyle = content.getComputedStyle();\n return PropertyUtil.getDimensionValueConsiderDpi(contentStyle.getProperty(IStyle.STYLE_LINE_HEIGHT), content);\n }\n return 0;\n}\n"
|
"public static void onInventoryOpen(InventoryOpenEvent event) {\n if (event.getInventory().getType() != InventoryType.CHEST) {\n return;\n }\n if (!Properties.TURN_OFF_DEFAULT_PROTECTION_WHEN_PROTECTED_EXTERNALLY) {\n return;\n }\n HumanEntity entity = event.getPlayer();\n if (!(entity i... |
"private void initialize(String context) throws IOException {\n this.props = SphinxProperties.getSphinxProperties(context);\n String format = props.getString(LanguageModel.PROP_FORMAT, LanguageModel.PROP_FORMAT_DEFAULT);\n String location = props.getString(LanguageModel.PROP_LOCATION, LanguageModel.PROP_LOCATI... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mAdapter = new AudioBrowserListAdapter(getActivity(), AudioBrowserListAdapter.ITEM_WITHOUT_COVER);\n mAdapter.addAllDBPlaylists(MediaLibrary.getInstance().getPlaylistDbItems());\n mTracks = getArguments().getParcelabl... |
"public Object executeTransform(final Object input) {\n if (skipTransform())\n return null;\n log(OETLProcessor.LOG_LEVELS.DEBUG, \"String_Node_Str\", input);\n final List<String> fields = OStringSerializerHelper.smartSplit(input.toString(), new char[] { separator }, 0, -1, false, false, false, false);\... |
"public int getMode() {\n return getInt(getModeStart());\n}\n"
|
"public void publish(String id, State state) {\n try {\n JSONObject json = state.inner.toMonitorJSON();\n json.put(\"String_Node_Str\", id);\n queue.put(json.toString());\n } catch (Exception e) {\n logger.error(\"String_Node_Str\", e.getMessage());\n e.printStackTrace();\n }... |
"public boolean post(Event spongeEvent, boolean allowClientThread) {\n this.extendedPost(spongeEvent, allowClientThread);\n return spongeEvent instanceof Cancellable && ((Cancellable) spongeEvent).isCancelled();\n}\n"
|
"public static ThriftClientConfig getInstance() {\n if (instance == null) {\n synchronized (ThriftClientConfig.class) {\n if (instance == null) {\n String configFilePath = System.getProperty(THRIFT_CLIENT_CONFIG_FILE_PATH);\n instance = ThriftClientConfigParser.parse(c... |
"public static void addStyles(Element element, XPath xpath, String paramKey, AVList params) {\n List<Style> styles = new ArrayList<Style>();\n if (element != null) {\n Element[] styleElements = WWXML.getElements(element, \"String_Node_Str\", xpath);\n if (styleElements != null) {\n for (E... |
"private JSONObject getWeeksScale() throws JSONException {\n DateTime dateTimeFrom = new DateTime(dateFrom);\n DateTime dateTimeTo = new DateTime(dateTo);\n int dateTimeFromDayOfWeek = dateTimeFrom.getDayOfWeek();\n int dateTimeToDayOfWeek = dateTimeTo.getDayOfWeek();\n List<Integer> weekNumbers = new Ar... |
"private void validateVHeader(WorkLoadSchema s, String vLabel, String[] header) throws SchemaViolationException {\n Set<String> props = s.getVertexProperties().get(vLabel);\n if (props == null)\n throw new SchemaViolationException(\"String_Node_Str\" + vLabel);\n for (String col : header) {\n if ... |
"public static Integer selectIntValue(String query, Object... args) {\n Connection c = DBConnect.getDBConnection();\n PreparedStatement s = null;\n try {\n s = DBUtils.prepareStatement(c, query, args);\n return selectIntValue(s);\n } catch (SQLException e) {\n throw new IOFailure(\"Stri... |
"public void addUser(User user) {\n if (user.getRoles() == null) {\n user.setRoles(new ArrayList<Role>());\n lsmOAuthHttpManager.addUser(user);\n}\n"
|
"private void transformChanged(Cell cell, boolean isAttached) {\n logger.finest(\"String_Node_Str\" + cell.getName() + \"String_Node_Str\" + cell.getLocalTransform());\n positionAttachedOrbs(cell);\n}\n"
|
"public InputStream getInputStream() throws IOException {\n return new ByteBufInputStream(fileUpload.getByteBuf(), true);\n}\n"
|
"public int maximumCollectionAttempt() {\n int max = 1;\n for (int t = 0; t <= VM_Scheduler.getThreadHighWatermark(); t++) {\n VM_Thread thread = VM_Scheduler.threads[t];\n if (thread != null) {\n int current = thread.getCollectionAttempt();\n if (current > max)\n ... |
"static ModFormat checkType(String id) {\n if (id.equals(\"String_Node_Str\") || id.equals(\"String_Node_Str\"))\n return new ModFormat(pt, 4, 31, ptText + \"String_Node_Str\" + id + \"String_Node_Str\");\n if (id.equals(\"String_Node_Str\") || id.equals(\"String_Node_Str\") || id.equals(\"String_Node_Str\... |
"public void mouseDown(MouseEvent e) {\n IndicatorUnit indicatorUnit = (IndicatorUnit) ((Label) e.getSource()).getData();\n IndicatorOptionsWizard wizard = new IndicatorOptionsWizard(indicatorUnit);\n if (FormEnum.isExsitingForm(indicatorUnit)) {\n String href = FormEnum.getFirstFormHelpHref(indicatorUn... |
"public void widgetSelected(SelectionEvent e) {\n int selectionIndex = tabFolder.getSelectionIndex();\n AClusterTab tab = (AClusterTab) tabFolder.getItem(selectionIndex).getData();\n if (tab == null)\n return;\n int selectedMeasure = distanceMeasureCombo.getSelectionIndex();\n String[] supportedMe... |
"public static TypeX fromBinding(TypeBinding binding) {\n if (binding instanceof HelperInterfaceBinding) {\n return ((HelperInterfaceBinding) binding).getTypeX();\n }\n if (binding == null || binding.qualifiedSourceName() == null) {\n return ResolvedTypeX.MISSING;\n }\n if (binding instance... |
"private ArtifactReadable getAssociatedWorkflowArt(BranchId branchId) {\n ArtifactReadable toReturn = null;\n BranchReadable branch = queryFactory.branchQuery().andIds(branchId).getResults().getExactlyOne();\n long workflowUuid = branch.getAssociatedArtifactId();\n try {\n BranchReadable branch = que... |
"private void injectAutoAnnotation(PsiElementFactory factory, PsiClass cls) {\n PsiModifierList modifierList = cls.getModifierList();\n if (modifierList != null) {\n PsiElement firstChild = modifierList.getFirstChild();\n Pattern pattern = Pattern.compile(\"String_Node_Str\");\n if (firstChil... |
"public void testSetupMetadataWhenExceptionOccurs() {\n given(metadataSetups.get(CloudPlatform.AZURE)).willReturn(metadataSetup);\n given(stackRepository.findOneWithLists(1L)).willReturn(stack);\n doThrow(new IllegalStateException()).when(metadataSetup).setupMetadata(stack);\n underTest.setupMetadata(CloudP... |
"public byte[] snapshot() {\n HashMap<String, SnapshotObject> snapshots = new HashMap<String, SnapshotObject>(snapshotableList.size());\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n try {\n executionPlanContext.getSharedLock().lock();\n for (Snapshotable snapshot... |
"public void OnExitState() {\n if (!mContentViewActive)\n MainController.setAllBubblePositions(mBubble);\n mBubble = null;\n}\n"
|
"public void testCopyFromFilePattern() throws Exception {\n execute(\"String_Node_Str\" + \"String_Node_Str\");\n ensureYellow();\n execute(\"String_Node_Str\", new Object[] { copyFilePath + \"String_Node_Str\" });\n assertEquals(3L, response.rowCount());\n refresh();\n execute(\"String_Node_Str\");\n... |
"public boolean removeCoopPlayer(Player requester, UUID targetPlayerUUID) {\n boolean removed = false;\n if (coopPlayers.containsKey(targetPlayerUUID)) {\n Island coopIsland = plugin.getGrid().getIsland(requester.getUniqueId());\n if (coopIsland != null) {\n removed = coopPlayers.get(targ... |
"void existsAction(NodeRepresentation nodeRep) {\n int idx = nodeRep.getParentIndex();\n Vector<NodeRepresentation> parentVec = nodeRep.parentVector;\n Decomposition decomp = nodeRep.decomposition;\n hasChanged = true;\n if (decomp.definedOp != null) {\n goalDefinitions.add(decomp.definedOp);\n ... |
"public void invalidOptionsArgumentsShouldFailOnAltering() throws Exception {\n final List<Runnable> invalidOptions = new ArrayList<>();\n invalidOptions.add(() -> waitOptions(ofMillis(-1)));\n invalidOptions.add(() -> new ElementOption().withCoordinates(0, 0).withElement(null));\n invalidOptions.add(() -> ... |
"public static List<String> createAvailableMarkets(JSONArray availableMarketsJson) {\n List<String> availableMarkets = new ArrayList<String>();\n for (int i = 0; i < availableMarketsJson.size(); i++) {\n availableMarkets.add(CountryCode.getByCode(availableMarketsJson.getString(i)));\n }\n return avai... |
"private void matchEnd() {\n if (match != null) {\n for (Entry<UUID, UUID> entry : userPlayerMap.entrySet()) {\n MatchPlayer matchPlayer = match.getPlayer(entry.getValue());\n if (matchPlayer != null) {\n if (!matchPlayer.hasQuit()) {\n User user = UserM... |
"public boolean except(Item item, ERepositoryObjectType type, RepositoryNode seletetedNode, IComponent component, String repositoryType) {\n boolean isOracleSid = false;\n if (item != null && item instanceof DatabaseConnectionItem) {\n if (((DatabaseConnectionItem) item).getConnection() instanceof Database... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n JmsConnectionInfo other = (JmsConnectionInfo) obj;\n if (connectionId != null) {\n return ... |
"public Collection<ParameterEnum<?>> getParameters() {\n final List<ParameterEnum<?>> params = new ArrayList<ParameterEnum<?>>();\n if (inputFormat != null) {\n params.addAll(inputFormat.getParameters());\n }\n if (outputFormat != null) {\n params.addAll(inputFormat.getParameters());\n }\n ... |
"public static void main(String[] args) {\n StringReader nodeReader = new StringReader(testNodeStr);\n StringReader elemReader = new StringReader(testElemStr);\n FemModel3d fem = new FemModel3d();\n try {\n FemModel3d fem = new FemModel3d();\n AnsysReader.read(fem, new StringReader(testNodeStr... |
"public static void copyDirectory(File source, File target) {\n if (source.isDirectory()) {\n if (!target.exists()) {\n target.mkdir();\n }\n for (String child : source.list()) {\n copyDirectory(new File(source, child), new File(target, child));\n }\n } else {\n ... |
"public int run() throws InvalidOptionException, DataStoreException, JAXBException, IOException {\n Convention convention = null;\n final Format outputFormat;\n final String format = options.get(Option.FORMAT);\n if (format == null || format.equalsIgnoreCase(\"String_Node_Str\")) {\n if (isCRS) {\n ... |
"private int evaluatePeriodsN(String n, Object expression) throws DataException, BirtException {\n int num = 0;\n if (n == null || n.trim().equals(\"String_Node_Str\")) {\n n = \"String_Node_Str\";\n }\n try {\n num = Integer.valueOf(n);\n } catch (Exception e) {\n ScriptExpression s... |
"protected AnalysisResult update(List<String> targets, boolean keepGoing, int loadingPhaseThreads, boolean doAnalysis, EventBus eventBus) throws Exception {\n LoadingPhaseRunner.Options loadingOptions = Options.getDefaults(LoadingPhaseRunner.Options.class);\n loadingOptions.loadingPhaseThreads = loadingPhaseThrea... |
"public final String getQualifiedName() {\n if (StringUtils.isBlank(getSchema().getName())) {\n return getName();\n } else {\n return getDatabase().getOutputSchema(getSchema().getName()) + \"String_Node_Str\" + getName();\n }\n}\n"
|
"private void drawKeyFrameMarkers(DrawContext dc) {\n try {\n frontLock.readLock().lock();\n ArrayList<Marker> combinedBuffer = new ArrayList<Marker>();\n combinedBuffer.addAll(eyeMarkersFrontBuffer);\n combinedBuffer.addAll(lookatMarkersFrontBuffer);\n markerRenderer.render(dc, co... |
"private String extractPackage(String className) {\n String classPackage = null;\n int index = className.lastIndexOf(\"String_Node_Str\");\n return index == -1 ? null : className.substring(0, index);\n}\n"
|
"public SpawnedDataBlock spawn(OrthogonalSpace space, InitialSampling initialSampling) {\n if (space.getDimension() != initialSampling.getDimension()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n float[] distance = new float[space.getDimension()];\n int numOfSeeds = 1;\n for ... |
"protected Object[][] createInputParam(Method candidate, Method validation) {\n Class[] c = candidate.getParameterTypes();\n ImageSingleBand input = GeneralizedImageOps.createSingleBand(c[0], width, height);\n ImageSingleBand output = GeneralizedImageOps.createSingleBand(c[1], width, height);\n GImageMiscOp... |
"public static void main(String... args) throws Exception {\n OptionParser parser = new OptionParser();\n parser.acceptsAll(TridentStart.asList(\"String_Node_Str\", \"String_Node_Str\"), \"String_Node_Str\").forHelp();\n OptionSpec<Boolean> append = parser.acceptsAll(TridentStart.asList(\"String_Node_Str\"), \... |
"public static int getFormatTypeForLocale(Locale locale) {\n String country = locale.getCountry();\n return getFormatTypeFromCountryCode(country);\n}\n"
|
"public void doSave(IProgressMonitor monitor) {\n ReturnCode rc = canSave();\n if (!rc.isOk()) {\n MessageDialogWithToggle.openError(null, \"String_Node_Str\", rc.getMessage());\n } else {\n super.doSave(monitor);\n try {\n saveAnalysis();\n currentEditor.setRunAction... |
"public static synchronized List<TrackFile> getTracks(Context context) {\n final List<TrackFile> tracks = new ArrayList<>();\n final File logDir = getTrackDirectory(context);\n if (logDir != null) {\n final File[] files = logDir.listFiles();\n for (File file : files) {\n if (!file.getN... |
"public static final Scope beforeInterpret(Scope scope) {\n if (scope == null)\n scope = new SimpleScope(null);\n final Implicit impl = beforeInterpret0(scope);\n impl.setImplicit(\"String_Node_Str\", scope);\n if (scope instanceof Component)\n impl.setImplicit(\"String_Node_Str\", new Deferre... |
"protected Step0Output[] parseOutput(JobContext job) throws IOException {\n Configuration conf = job.getConfiguration();\n log.info(\"String_Node_Str\", conf.getInt(\"String_Node_Str\", -1));\n FileSystem fs = outputPath.getFileSystem(conf);\n Path[] outfiles = DFUtils.listOutputFiles(fs, outputPath);\n ... |
"private void addTab(final String tag, final ChatModel chat, final Screen host) {\n if (tabs == null)\n return;\n View preexisting = tabs.getTabByTag(tag);\n if (preexisting != null) {\n preexisting.setVisibility(View.VISIBLE);\n } else {\n Controller channel = new ChannelController(get... |
"private static SortSpec getSortSpec(IResultClass rsMeta) {\n int fieldCount = rsMeta.getFieldCount();\n int[] sortKeyIndexs = new int[fieldCount];\n String[] sortKeyNames = new String[fieldCount];\n boolean[] ascending = new boolean[fieldCount];\n for (int i = 0; i < fieldCount; i++) {\n sortKeyI... |
"protected void createFormContent(IManagedForm managedForm) {\n try {\n managedForm.getForm().setText(this.getTitle());\n FormToolkit toolkit = WidgetFactory.getWidgetFactory();\n Composite composite = managedForm.getForm().getBody();\n composite.setLayout(new GridLayout());\n Comp... |
"public void onEnable() {\n plugin = this;\n new File(getPlugin().getDataFolder().getAbsolutePath() + File.separator + \"String_Node_Str\").mkdirs();\n File delCraftBukkit = new File(getPlugin().getDataFolder().getPath() + File.separator + \"String_Node_Str\");\n if (delCraftBukkit.exists()) {\n delC... |
"protected HandleNextCharacterResult moveToStoredProcedureStateResult(Character currentChar, StatementBuilder statementBuilder) {\n if (isWhitespace(currentChar) && storedProcedureMatcher.isStartOfStoredProcedure(statementBuilder.getStatementInUppercaseWithoutCommentsOrWhitespace())) {\n return toInStoredProc... |
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n if (null != namespaceURI && namespaceURI.length() == 0) {\n namespaceURI = null;\n }\n Element element = getInitializedDocument().createElementNS(namespaceURI, qName);\n Node parent... |
"public void addDefinitionDimensionToBatch(final Sha1HashId defDimsId, final Sha1HashId defId, Sha1HashId dimId) {\n if (!this.defDimMap.containsKey(defDimsId)) {\n final DefDim defDim = new DefDim(defDimsId, defId, dimId);\n this.defDimMap.put(defDimsId, defDim);\n }\n}\n"
|
"public int moveCaretToLineEndAppendOffset(Editor editor, int cntForward) {\n int line = EditorHelper.normalizeVisualLine(editor, EditorHelper.getCurrentVisualLine(editor) + cntForward);\n return EditorHelper.getLineEndOffset(editor, EditorHelper.visualLineToLogicalLine(editor, line));\n}\n"
|
"public void modify(Object element, String property, Object value) {\n LanguageInfo modifiedLangInfo = getLanguageInfoFromSelection(element);\n if (!isLanguageInfo(modifiedLangInfo))\n return;\n if (isColumnLanguage(property) && isComboCellEditorValue(value)) {\n onModfiyColumnLanguage(modifiedLa... |
"public final static MinHashBitSequenceSubSketches fromByteStream(DataInputStream input) throws IOException {\n try {\n int numSubSequences = input.readInt();\n int numWords = input.readInt();\n int stepSize = input.readInt();\n MinHashBitSketch[] sequence = new MinHashBitSketch[numSubSeq... |
"private void startAsync(String procName, List<Var> waitVars, List<Var> passIn, Arg priority, boolean recursive, TaskMode mode) {\n assert (priority == null || priority.isImmediateInt());\n mode.checkSpawn(execContextStack.peek());\n for (Var v : passIn) {\n if (v.type().equals(Types.V_BLOB)) {\n ... |
"private void populateSessionFromCursorRow(SessionData session, Cursor cursor) {\n session.updateData(mContext, cursor.getString(cursor.getColumnIndex(ScheduleContract.Sessions.SESSION_TITLE)), cursor.getString(cursor.getColumnIndex(ScheduleContract.Sessions.SESSION_ABSTRACT)), cursor.getString(cursor.getColumnIndex... |
"public boolean onKeyDown(int keyCode, KeyEvent event) {\n InputConnection ic = getCurrentInputConnection();\n if (!mPredictionLandscape) {\n commitTyped(ic);\n mPredicting = false;\n }\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\" + event.getKeyCode() + \"String_Node_Str\" + ((event.ge... |
"private List<String> findFactoryCandidates(BundleContext context) throws IOException {\n Bundle[] bundles = context.getBundles();\n List<String> factoryCandidates = new ArrayList<String>();\n for (Bundle bundle : bundles) {\n if (bundle == null) {\n continue;\n }\n if (\"String... |
"public void run() {\n try {\n JsonObject response = sendRequest(METHOD_PING).getAsJsonObject();\n if (!PONG.equals(response.get(PONG_PAYLOAD).getAsString())) {\n closeHeartbeatOnFailure();\n }\n } catch (Exception e) {\n log.warn(\"String_Node_Str\", label, e);\n sto... |
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n setListAdapter(mAdapter);\n if (mAdapter.isOnFirstLoad()) {\n setListShown(false);\n }\n}\n"
|
"protected void onSaveFailure() {\n LogUtil.avlog.d(\"String_Node_Str\");\n synchronized (AVInstallation.class) {\n if (readInstallationFile(AVOSCloud.applicationContext) == null) {\n createNewInstallation(AVOSCloud.applicationContext);\n }\n }\n}\n"
|
"private void readNodeAndChildren(DataInputStream dis, ReteNode parent, List<Symbol> symbolMap, List<AlphaMemory> alphaMemories) throws IOException, SoarException {\n final ReteNodeType type = ReteNodeType.valueOf(dis.readUTF());\n ReteNode New = null;\n AlphaMemory am;\n boolean left_unlinked_flag;\n Re... |
"protected int subTimerEvent() {\n RequestStack wineStack = getWineStack();\n if (wineStack.pop()) {\n return CONSUME_DELAY;\n } else {\n return CHECK_DELAY;\n }\n}\n"
|
"public URL getUrl(String path) {\n try {\n if (getScheme() == HTTPS_SCHEME && httpsHandler != null) {\n return new URL(getScheme(), getHost(), getPort(), path, httpsHandler);\n } else {\n return new URL(getScheme(), getHost(), getPort(), path);\n }\n } catch (MalformedU... |
"public void onChildAnimationFinished() {\n requestChildrenUpdate();\n runAnimationFinishedRunnables();\n}\n"
|
"public void WriteOut() {\n if (this.sets == null) {\n return;\n }\n try (BufferedWriter output = Files.newBufferedWriter(outfile, Charset.forName(\"String_Node_Str\"), StandardOpenOption.APPEND)) {\n Collections.sort(sets);\n for (finalSets event : this.sets) {\n String outLine... |
"public void testK2UseCase() throws IOException {\n final Resource left = input.getK2Left();\n final Resource origin = input.getK2Origin();\n final Resource right = input.getK2Right();\n final IComparisonScope scope = new DefaultComparisonScope(left, right, origin);\n final Comparison comparison = EMFCom... |
"private List<MatchMetaData> discoverAgainstSingleModel(final IDBFactory factory, final Properties dataDiscoveryProperties, final Set<String> tables, final Model model, final double probabilityThreshold) throws AnonymizerException, ParseException {\n final IMetaData metaData = factory.fetchMetaData();\n final Lis... |
"public Set<IAUTMainPO> getAutMainList() {\n AUTContPO autCont = getHbmAutCont();\n if (autCont != null) {\n Set<IAUTMainPO> autMainList = autCont.getAutMainList();\n if (autMainList != null) {\n return Collections.unmodifiableSet(autMainList);\n }\n log.error(\"String_Node_... |
"private boolean extractVersionInfo(QrCode qr) {\n int version = estimateVersionBySize(qr);\n if (version >= QrCode.VERSION_ENCODED_AT) {\n readVersionRegion0(qr);\n int version0 = decodeVersion();\n readVersionRegion1(qr);\n int version1 = decodeVersion();\n if (version0 < 1 &&... |
"private static UnitType getCurrUnitType(String name) {\n double[] cpiTable = { 9.9, 10, 10.1, 10.9, 12.8, 15.1, 17.3, 20, 17.9, 16.8, 17.1, 17.1, 17.5, 17.7, 17.4, 17.1, 17.1, 16.7, 15.2, 13.7, 13, 13.4, 13.7, 13.9, 14.4, 14.1, 13.9, 14, 14.7, 16.3, 17.3, 17.6, 18, 19.5, 22.3, 24.1, 23.8, 24.1, 26, 26.5, 26.7, 26.9... |
"public Object executeInUnitOfWork(UnitOfWorkImpl unitOfWork, AbstractRecord translationRow) throws DatabaseException, OptimisticLockException {\n Object result = null;\n if (!shouldMaintainCache() || isReadOnly()) {\n result = unitOfWork.getParent().executeQuery(this, translationRow);\n } else {\n ... |
"public void run() {\n List<ServiceConfiguration> checkServicesList = ServiceConfigurations.collect(new Predicate<ServiceConfiguration>() {\n public boolean apply(ServiceConfiguration arg0) {\n if (Bootstrap.isCloudController()) {\n return true;\n } else {\n ... |
"public UnmarshalRecord buildSelfRecord(UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (null == xmlDescriptor) {\n xmlDescriptor = findReferenceDescriptor(null, unmarshalRecord, at... |
"private Memory visitMemory(Memory memory, PhysicalRegister reg1, PhysicalRegister reg2) {\n Register baseReg = memory.baseReg();\n Register indexReg = memory.indexReg();\n Var baseVar = (Var) baseReg;\n if (isMem(baseVar)) {\n append(\"String_Node_Str\", reg1, baseVar);\n baseReg = reg1;\n ... |
"private void clear() {\n mHighestApplicationLayer = 0;\n mPinnedWindows.clear();\n mDockedWindows.clear();\n mReplacingWindows.clear();\n mDockDivider = null;\n}\n"
|
"SurfaceControl createSurfaceLocked() {\n final WindowState w = mWin;\n if (mSurfaceControl == null) {\n if (DEBUG_ANIM || DEBUG_ORIENTATION)\n Slog.i(TAG, \"String_Node_Str\" + this + \"String_Node_Str\");\n mDrawState = DRAW_PENDING;\n if (w.mAppToken != null) {\n if (... |
"public void testSerialize() throws Exception {\n PinpointObjectMapper mapper = new PinpointObjectMapper();\n mapper.afterPropertiesSet();\n AgentInfoBo agentInfoBo = ServerInstanceListTest.createAgentInfo(\"String_Node_Str\", \"String_Node_Str\");\n HashSet<AgentInfoBo> agentInfoBoSet = new HashSet<AgentIn... |
"private static String _checkArgumentName(String name) throws IllegalActionException {\n return name.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"private static int getAxisQualifierEdgeType(List rowEdgeList, List columnEdgeList, DimensionLevel target) throws AdapterException {\n if (rowEdgeList != null) {\n for (Iterator i = rowEdgeList.iterator(); i.hasNext(); ) {\n String levelExpr = (String) i.next();\n DimensionLevel level = ... |
"public static void run(final Survey survey, final BoxedBool interrupt) throws SurveyException, ServiceException, IOException, ParseException {\n final Properties params = (Properties) MturkLibrary.props.clone();\n do {\n if (!interrupt.getInterrupt() && SurveyPoster.postMore(survey)) {\n survey... |
"public double getPixelScale() {\n return parent != null ? parent.getPixelScale() : (double) (getWidth() - getLeftPadding() - getRightPadding()) / (double) (getEnd() - getStart());\n}\n"
|
"public void createTray(String iconName) {\n this.appIndicator = libappindicator.app_indicator_new(this.appName, \"String_Node_Str\", AppIndicator.CATEGORY_APPLICATION_STATUS);\n AppIndicator.AppIndicatorClassStruct aiclass = new AppIndicator.AppIndicatorClassStruct(this.appIndicator.parent.g_type_instance.g_clas... |
"public void refresh() {\n container.removeAllItems();\n if (StringUtils.isEmpty(filterField.getValue())) {\n container.addAll(context.getOperationsService().findNotifications());\n } else {\n String filter = filterField.getValue().toUpperCase();\n for (Notification notification : context.... |
"public void start(int requestPort, int eventPort, Context cx) throws VMException {\n try {\n serverSocket = new ServerSocket(listenPort, 50, InetAddress.getLocalHost());\n Socket clientRequestSocket = serverSocket.accept();\n clientRequestReader = new ObjectInputStream(clientRequestSocket.getIn... |
"public void testReceivedMessageFromQueueWithNoAbsoluteExpiryOrTtlReturnsJMSExpirationZero() throws Exception {\n try (TestAmqpPeer testPeer = new TestAmqpPeer(testFixture.getAvailablePort())) {\n Connection connection = testFixture.establishConnecton(testPeer);\n connection.start();\n testPeer.... |
"public ProtocolDecl<K> getTargetProtocolDecl(JobContext jcontext, ModuleContext mcontext) {\n ProtocolName<K> fullname = getTargetProtocolDeclFullName(mcontext);\n return jcontext.getModule(fullname.getPrefix()).getProtocolDecl(fullname.getSimpleName());\n}\n"
|
"protected void generate() {\n super.generate();\n bitmap(bitmap);\n super.filter(fModeMin, fModeMax);\n super.wrap(wModeH, wModeV);\n}\n"
|
"public void resolveLayoutDirection(int layoutDirection) {\n setLayoutDirection(layoutDirection);\n if (!isMarginRelative() || !mNeedResolution || mIsRtlCompatibilityMode)\n return;\n switch(layoutDirection) {\n case View.LAYOUT_DIRECTION_RTL:\n leftMargin = (endMargin > DEFAULT_RELATI... |
"protected static JDKPlatform getPlatform() {\n if (platform == null) {\n if (JavaSEPlatform.CURRENT.equals(JavaSEPlatform.v1_6)) {\n try {\n Class platformClass = null;\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()) {\n try {\n ... |
"public static void writeToString(MethodWriter writer, IType type) throws BytecodeException {\n if (type.isArrayType()) {\n writer.writeInsn(Opcodes.SWAP);\n writer.writeInsn(Opcodes.DUP_X1);\n writeArrayToString(writer, type.getElementType());\n return;\n }\n StringBuilder desc = n... |
"public Image getImage(Object obj) {\n if (obj instanceof XSDElementDeclaration) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n boolean isConcept = false;\n EList l = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = l.iterator(); iter.hasNext(); ) {\n ... |
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n try {\n if (null != selfRecords) {\n for (int x = 0, selfRecordsSize = selfRecords.size(); x < selfRecordsSize; x++) {\n UnmarshalRecord selfRecord = selfRecords.get(x);\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.